コード例 #1
0
        private void fetchServerTimestamp(bool fetchEncryptionKeyAfterwards)
        {
            long      num       = timestampRequestCount++;
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            timeStampRequests.Add(num, new TimeStampRequest(stopwatch, fetchEncryptionKeyAfterwards));
            mt.send(SmartfoxCommand.GET_SERVER_TIME, new Dictionary <string, SFSDataWrapper> {
                {
                    "ct",
                    SmartFoxGameServerClientShared.serialize(num)
                }
            });
        }
コード例 #2
0
 public void LeaveRoom()
 {
     mt.SfsRoomToLeave = mt.getCurrentRoom();
     mt.send(SmartfoxCommand.LEAVE_ROOM);
 }