Exemplo n.º 1
0
        private void OnC2B_LoadProgress(GameSession session, EMessage message, Stream stream)
        {
            BattleRoom room = Battle.BattleRoomManager.I.GetRoom(session.BattleRoomID);

            if (room != null)
            {
                C2B_LoadProgress req = Serializer.Deserialize <C2B_LoadProgress>(stream);
                room.LoadProgress(req);
            }
        }
Exemplo n.º 2
0
        private void OnC2B_Command(GameSession session, EMessage message, Stream stream)
        {
            BattleRoom room = Battle.BattleRoomManager.I.GetRoom(session.BattleRoomID);

            if (room != null)
            {
                C2B_Command req = Serializer.Deserialize <C2B_Command>(stream);
                room.AddCommand(req);
            }
        }