public DecayDaemon(DataSQLite db, Clients clients) { _db = db; _clients = clients; _decays = new List<DecayDefinition>(); _timer = new Timer(DoDecays, null, 0, 5000); }
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); }
public HeartbeatDaemon(DataSQLite db, Clients clients) { _db = db; _clients = clients; _heartbeatTimer = new Timer(HeartbeatTimer_Elapsed, null, 0, 5000); }
public RegenDaemon(DataSQLite db, Clients clients) { _db = db; _clients = clients; _timer = new Timer(DoRegens, null, 0, 5000); }
public NpcDaemon(DataSQLite db, Clients clients) { _db = db; _clients = clients; _timer = new Timer(OnTick, null, 0, 5000); }