Ejemplo n.º 1
0
        private static bool OnReceiveTieMessage(ByteArray byteArray, IPokemonBattleClientService clientService)
        {
            string     identity = byteArray.ReadUTF();
            TieMessage message  = TieMessageHelper.ReadFromByteArray(byteArray);

            clientService.OnReceiveTieMessage(identity, message);
            return(true);
        }
        private static bool OnReceiveTieMessage(int sessionID, ByteArray byteArray, IPokemonBattleServerService serverService)
        {
            string     identity = byteArray.ReadUTF();
            TieMessage message  = TieMessageHelper.ReadFromByteArray(byteArray);

            serverService.OnReceiveTieMessage(sessionID, identity, message);
            return(true);
        }
Ejemplo n.º 3
0
        public static ByteArray ReceiveTieMessage(string identity, TieMessage message)
        {
            ByteArray byteArray = new ByteArray();

            byteArray.WriteInt(0x823c9f1);
            byteArray.WriteUTF(identity);
            TieMessageHelper.WriteToByteArray(byteArray, message);
            return(byteArray);
        }