Ejemplo n.º 1
0
 public MapNode(int id, ServerMap.ServerMapType type, int flag, string name, int mapServerId, int index)
     : this(id, type, flag, name, mapServerId, index, null)
 {
 }
Ejemplo n.º 2
0
 public MapNode(int id, ServerMap.ServerMapType type, int flag, string name, int mapServerId, int index, MapNode parent)
 {
     _id = id;
     _type = type;
     _flag = flag;
     _name = name;
     _mapServerId = mapServerId;
     _index = index;
     _parent = parent;
 }
Ejemplo n.º 3
0
 public MapNode(int id, ServerMap.ServerMapType type, int flag, string name)
     : this(id, type, flag, name, -1, 0, null)
 {
 }
Ejemplo n.º 4
0
		public GameServerManager()
		{
			_gameServerList = ArrayList.Synchronized(new ArrayList());
			_gameServerGroupList = ArrayList.Synchronized(new ArrayList());
            _serverRegionList = ArrayList.Synchronized(new ArrayList());
			_topServerGroupList = ArrayList.Synchronized(new ArrayList());
			_authenticationList = ArrayList.Synchronized(new ArrayList());
			_configGuardServerList = ArrayList.Synchronized(new ArrayList());
            _serverMap = new ServerMap();
			_systemTickTimer = new System.Timers.Timer();
			_systemTickTimer.Interval = SystemTickPeriod;
			Thread configThread = new Thread(new ThreadStart(ProcessConfigGuard));
			configThread.Priority = ThreadPriority.Lowest;
			configThread.Start();

            //定时统计当天最大人数
            _maxPlayerTimer = new System.Timers.Timer();
            _maxPlayerTimer.Interval = SystemConfig.Current.GroupPlayerCountKickInterval;
            _maxPlayerTimer.Elapsed += new System.Timers.ElapsedEventHandler(_maxPlayerTimer_Tick);
            
            //定时统计每个服务器组的在线人数,保存到文件
            _GroupPlayerCountTimer = new System.Timers.Timer();
            _GroupPlayerCountTimer.Interval = SystemConfig.Current.GroupPlayerCountKickInterval;
            _GroupPlayerCountTimer.Elapsed += new System.Timers.ElapsedEventHandler(GroupPlayerCount2File);

            _systemStartTime = DateTime.Now;
            _cabinetList = ArrayList.Synchronized(new ArrayList());
		}