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); } }
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); } }