Пример #1
0
        public void OnResponse(ChatPeerListener peerListener, OperationResponse response)
        {
            var createGame = response.Parameters[223] as bool?;
            if (createGame != null && createGame.Value)
            {
                peerListener.SendOperation((byte) OpCodes.CreateGame,
                    new Dictionary<byte, object> {{255, response.Parameters[225]}, {239, true} });
            }
            else
            {
                peerListener.SendOperation((byte)OpCodes.JoinChat, new Dictionary<byte, object> { { 255, response.Parameters[225] }, {239, true} });
            }

            peerListener.Player.GameId = (string)response.Parameters[225];

            //peerListener.SendOperation((byte)OpCodes.CreateGame, new Dictionary<byte, object> { { 255, response.Parameters[225] }, { 215, (byte)1 } });
        }
Пример #2
0
 public void OnResponse(ChatPeerListener peerListener, OperationResponse response)
 {
     peerListener.SendOperation((byte)OpCodes.FindMatcherPlayer, new Dictionary<byte, object>());
 }
Пример #3
0
 public void OnResponse(ChatPeerListener peerListener, OperationResponse response)
 {
     peerListener.SendOperation((byte)OpCodes.JoinLobby, new Dictionary<byte, object> { { 213, peerListener.Player.LobbyName }, { 212, (byte)0 } });
 }
Пример #4
0
 public void OnResponse(ChatPeerListener peerListener, OperationResponse response)
 {
     Trace.TraceInformation("======================JOIN GAME(GAME SERVER)==============");
     peerListener.SendOperation(1, new Dictionary<byte, object> { { 255, peerListener.Player.GameId } });
 }
Пример #5
0
 public void OnResponse(ChatPeerListener peerListener, OperationResponse response)
 {
     peerListener.SendOperation((byte)OpCodes.LobbyStats, new Dictionary<byte, object> { });
 }