public static bool ContainsBattleServer(uint id) { BattleServerConnector connector = ConnectingMgr[id] as BattleServerConnector; if (connector != null) { return(true); } return(BattleServerMgr.Contains(id)); }
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)); }