Ejemplo n.º 1
0
        private static bool OnReceiveTeam(ByteArray byteArray, IPokemonBattleClientService clientService)
        {
            byte         position = byteArray.ReadByte();
            string       identity = byteArray.ReadUTF();
            ByteSequence team     = new ByteSequence();

            team.ReadFromByteArray(byteArray);
            clientService.OnReceiveTeam(position, identity, team);
            return(true);
        }
        private static bool OnReceiveTeam(int sessionID, ByteArray byteArray, IPokemonBattleServerService serverService)
        {
            byte         position = byteArray.ReadByte();
            string       identity = byteArray.ReadUTF();
            ByteSequence team     = new ByteSequence();

            team.ReadFromByteArray(byteArray);
            serverService.OnReceiveTeam(sessionID, position, identity, team);
            return(true);
        }