Beispiel #1
0
        public static bool ContainsBattleServer(uint id)
        {
            BattleServerConnector connector = ConnectingMgr[id] as BattleServerConnector;

            if (connector != null)
            {
                return(true);
            }

            return(BattleServerMgr.Contains(id));
        }
Beispiel #2
0
        public static bool ContainsGameLogicServer(uint id)
        {
            if (id <= 0)
            {
                throw new ArgumentOutOfRangeException("id");
            }

            GameLogicServerConnector connector = ConnectingMgr[id] as GameLogicServerConnector;

            if (connector != null)
            {
                return(true);
            }

            return(GameLogicServerMgr.Contains(id));
        }