예제 #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);
 }