public void SendGeneralPacket(bool players, bool spectators) { ArrayList mobiles = GetInGameMobiles(players, spectators); if (mobiles.Count == 0) { return; } MahjongGeneralInfo generalInfo = new MahjongGeneralInfo(m_Game); foreach (Mobile mobile in mobiles) { mobile.Send(generalInfo); } }
public void SendGeneralPacket(bool players, bool spectators) { List <Mobile> mobiles = GetInGameMobiles(players, spectators); if (mobiles.Count == 0) { return; } MahjongGeneralInfo generalInfo = new MahjongGeneralInfo(Game); generalInfo.Acquire(); foreach (Mobile mobile in mobiles) { mobile.Send(generalInfo); } generalInfo.Release(); }
public void SendGeneralPacket(bool players, bool spectators) { ArrayList mobiles = GetInGameMobiles(players, spectators); if (mobiles.Count == 0) return; MahjongGeneralInfo generalInfo = new MahjongGeneralInfo(m_Game); generalInfo.Acquire(); foreach (Mobile mobile in mobiles) { mobile.Send(generalInfo); } generalInfo.Release(); }