コード例 #1
0
        public void SendRelievePacket(bool players, bool spectators)
        {
            ArrayList mobiles = GetInGameMobiles(players, spectators);

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

            MahjongRelieve relieve = new MahjongRelieve(m_Game);

            foreach (Mobile mobile in mobiles)
            {
                mobile.Send(relieve);
            }
        }
コード例 #2
0
        public void SendRelievePacket(bool players, bool spectators)
        {
            List <Mobile> mobiles = GetInGameMobiles(players, spectators);

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

            MahjongRelieve relieve = new MahjongRelieve(Game);

            relieve.Acquire();

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

            relieve.Release();
        }
コード例 #3
0
        public void SendRelievePacket(bool players, bool spectators)
        {
            ArrayList mobiles = GetInGameMobiles(players, spectators);

            if (mobiles.Count == 0)
                return;

            MahjongRelieve relieve = new MahjongRelieve(m_Game);

            relieve.Acquire();

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

            relieve.Release();
        }