Ejemplo n.º 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);

            foreach (Mobile mobile in mobiles)
            {
                mobile.Send(generalInfo);
            }
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
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.Acquire();

            foreach (Mobile mobile in mobiles)
            {
                mobile.Send(generalInfo);
            }

            generalInfo.Release();
        }