public override void run() { if (this.roomId == -1) { return; } using (CLAN_WAR_ENEMY_INFO_PAK clanWarEnemyInfoPak = new CLAN_WAR_ENEMY_INFO_PAK(this.EnemyMatch)) { using (CLAN_WAR_JOINED_ROOM_PAK warJoinedRoomPak = new CLAN_WAR_JOINED_ROOM_PAK(this.EnemyMatch, this.roomId, 0)) { byte[] completeBytes1 = clanWarEnemyInfoPak.GetCompleteBytes("CLAN_WAR_CREATE_ROOM_REC-1"); byte[] completeBytes2 = warJoinedRoomPak.GetCompleteBytes("CLAN_WAR_CREATE_ROOM_REC-2"); foreach (Account allPlayer in this.MyMatch.getAllPlayers(this.MyMatch._leader)) { if (allPlayer._match != null) { allPlayer.SendCompletePacket(completeBytes1); allPlayer.SendCompletePacket(completeBytes2); this.MyMatch._slots[allPlayer.matchSlot].state = SlotMatchState.Ready; } } } } using (CLAN_WAR_ENEMY_INFO_PAK clanWarEnemyInfoPak = new CLAN_WAR_ENEMY_INFO_PAK(this.MyMatch)) { using (CLAN_WAR_JOINED_ROOM_PAK warJoinedRoomPak = new CLAN_WAR_JOINED_ROOM_PAK(this.MyMatch, this.roomId, 1)) { byte[] completeBytes1 = clanWarEnemyInfoPak.GetCompleteBytes("CLAN_WAR_CREATE_ROOM_REC-3"); byte[] completeBytes2 = warJoinedRoomPak.GetCompleteBytes("CLAN_WAR_CREATE_ROOM_REC-4"); foreach (Account allPlayer in this.EnemyMatch.getAllPlayers()) { if (allPlayer._match != null) { allPlayer.SendCompletePacket(completeBytes1); allPlayer.SendCompletePacket(completeBytes2); this.MyMatch._slots[allPlayer.matchSlot].state = SlotMatchState.Ready; } } } } }
public override void run() { if (roomId == -1) { return; } using (CLAN_WAR_ENEMY_INFO_PAK packet = new CLAN_WAR_ENEMY_INFO_PAK(EnemyMatch)) using (CLAN_WAR_JOINED_ROOM_PAK packet2 = new CLAN_WAR_JOINED_ROOM_PAK(EnemyMatch, roomId, 0)) { byte[] data = packet.GetCompleteBytes(); byte[] data2 = packet2.GetCompleteBytes(); foreach (Account pM in MyMatch.getAllPlayers(MyMatch._leader)) { if (pM._match != null) { pM.SendCompletePacket(data); pM.SendCompletePacket(data2); MyMatch._slots[pM.matchSlot].state = SlotMatchState.Ready; } } } using (CLAN_WAR_ENEMY_INFO_PAK packet = new CLAN_WAR_ENEMY_INFO_PAK(MyMatch)) using (CLAN_WAR_JOINED_ROOM_PAK packet2 = new CLAN_WAR_JOINED_ROOM_PAK(MyMatch, roomId, 1)) { byte[] data = packet.GetCompleteBytes(); byte[] data2 = packet2.GetCompleteBytes(); foreach (Account pM in EnemyMatch.getAllPlayers()) { if (pM._match != null) { pM.SendCompletePacket(data); pM.SendCompletePacket(data2); MyMatch._slots[pM.matchSlot].state = SlotMatchState.Ready; } } } }