Exemple #1
0
        public void SendGeneralPacket(bool players, bool spectators)
        {
            ArrayList mobiles = GetInGameMobiles(players, spectators);

            if (mobiles.Count == 0)
            {
                return;
            }

            MahjongGeneralInfo generalInfo = new MahjongGeneralInfo(m_Game);

            generalInfo.SetStatic();
            foreach (Mobile mobile in mobiles)
            {
                mobile.Send(generalInfo);
            }
            generalInfo.Release();
        }
Exemple #2
0
        public void SendGeneralPacket(bool players, bool spectators)
        {
            var mobiles = GetInGameMobiles(players, spectators);

            if (mobiles.Count == 0)
            {
                return;
            }

            var generalInfo = new MahjongGeneralInfo(Game);

            generalInfo.Acquire();

            foreach (var 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();
        }