コード例 #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);
            }
        }
コード例 #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();
        }
コード例 #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();
        }