Example #1
0
 public DecayDaemon(DataSQLite db, Clients clients)
 {
     _db = db;
     _clients = clients;
     _decays = new List<DecayDefinition>();
     _timer = new Timer(DoDecays, null, 0, 5000);
 }
Example #2
0
        public GameServer(DataSQLite db)
        {
            _db = db;

            Cmd.Db = db;

            _clients = new Clients(_db);

            Cmd.Clients = _clients;

            Do.Clients = _clients;

            _spawnDaemon = new SpawnDaemon(_db, _clients);

            _decayDaemon = new DecayDaemon(_db, _clients);

            _regenDaemon = new RegenDaemon(_db, _clients);
            
            _npcDaemon = new NpcDaemon(_db, _clients);
        }
Example #3
0
 public HeartbeatDaemon(DataSQLite db, Clients clients)
 {
     _db = db;
     _clients = clients;
     _heartbeatTimer = new Timer(HeartbeatTimer_Elapsed, null, 0, 5000);
 }
Example #4
0
 public RegenDaemon(DataSQLite db, Clients clients)
 {
     _db = db;
     _clients = clients;
     _timer = new Timer(DoRegens, null, 0, 5000);
 }
Example #5
0
 public NpcDaemon(DataSQLite db, Clients clients)
 {
     _db = db;
     _clients = clients;
     _timer = new Timer(OnTick, null, 0, 5000);
 }