public ObjectComponent(GameServer server)
     : base(server)
 {
     _updateEventScheduler =
         new GameServerTimer(TimeSpan.FromSeconds(ServerContext.Config.ObjectHandlerInterval));
     _updateMediatorScheduler =
         new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.ObjectGarbageCollectorInterval));
 }
        public void Update(TimeSpan elapsedTime)
        {
            _timer.Update(elapsedTime);

            if (_timer.Elapsed)
            {
                Expired = true;
                _timer  = null;
            }
        }
        public MonolithComponent(GameServer server)
            : base(server)
        {
            _timer = new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.GlobalSpawnTimer));
            var spawnThread = new Thread(SpawnEmitter)
            {
                IsBackground = true
            };

            spawnThread.Start();
        }
Ejemplo n.º 4
0
 public ObjectComponent(GameServer server)
     : base(server)
 {
     _updateEventScheduler =
         new GameServerTimer(TimeSpan.FromSeconds(ServerContext.Config.ObjectHandlerInterval));
     _cacheEventScheduler     = new GameServerTimer(TimeSpan.FromSeconds(ServerContext.Config.ObjectCacheInterval));
     _updateMediatorScheduler =
         new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.ObjectGarbageCollectorInterval));
     OnAdded(OnObjectAdded);
     OnUpdated(OnObjectUpdate);
     OnRemoved(OnObjectRemoved);
 }
 public EphemeralReactor(string lpKey, int lpTimeout)
 {
     YamlKey = lpKey;
     _timer  = new GameServerTimer(TimeSpan.FromSeconds(lpTimeout));
 }
 public GrimReaper(GameClient client) : base(client)
 {
     GrimTimer = new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.HealoutTolerance));
     Client    = client;
 }
Ejemplo n.º 7
0
 public Save(GameServer server) : base(server)
 {
     Timer = new GameServerTimer(TimeSpan.FromSeconds(45));
 }
 public MessageComponent(GameServer server)
     : base(server)
 {
     Timer = new GameServerTimer(
         TimeSpan.FromSeconds(ServerContextBase.GlobalConfig.MessageClearInterval));
 }
Ejemplo n.º 9
0
 public Barrens(Area area)
     : base(area)
 {
     this.Timer = new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.MapUpdateInterval));
 }
 public MonolithComponent(GameServer server)
     : base(server)
 {
     _timer = new GameServerTimer(TimeSpan.FromMilliseconds(ServerContext.Config.GlobalSpawnTimer));
 }
Ejemplo n.º 11
0
 public ServerCacheComponent(GameServer server) : base(server)
 {
     Timer = new GameServerTimer(TimeSpan.FromSeconds(45));
 }
Ejemplo n.º 12
0
 public Arena(Area area)
     : base(area)
 {
     this.Timer = new GameServerTimer(TimeSpan.FromMilliseconds(2000));
 }
 public AfkComponent(GameServer server) : base(server)
 {
     _timer = new GameServerTimer(TimeSpan.FromSeconds(6));
 }
Ejemplo n.º 14
0
 public DayLightComponent(GameServer server)
     : base(server)
 {
     _timer = new GameServerTimer(TimeSpan.FromSeconds(20.0f));
 }
Ejemplo n.º 15
0
 public WishingWell(GameClient client) : base(client)
 {
     Timer = new GameServerTimer(TimeSpan.FromMilliseconds(200));
 }
Ejemplo n.º 16
0
 public Reactors(GameClient client) : base(client)
 {
     Timer = new GameServerTimer(TimeSpan.FromMilliseconds(100));
     LoadReactorScripts();
 }
Ejemplo n.º 17
0
 public PingComponent(GameServer server)
     : base(server)
 {
     Timer = new GameServerTimer(
         TimeSpan.FromSeconds(ServerContextBase.GlobalConfig.PingInterval));
 }
Ejemplo n.º 18
0
 public MundaneComponent(GameServer server) : base(server)
 {
     Timer = new GameServerTimer(TimeSpan.FromSeconds(ServerContext.Config.MundaneRespawnInterval));
 }
Ejemplo n.º 19
0
 public ClientTickComponent(GameServer server)
     : base(server)
 {
     _timer = new GameServerTimer(
         TimeSpan.FromSeconds(30));
 }
Ejemplo n.º 20
0
 public Debuff()
 {
     Timer = new GameServerTimer(TimeSpan.FromSeconds(1));
 }
Ejemplo n.º 21
0
 public DaytimeComponent(GameServer server)
     : base(server)
 {
     _timer = new GameServerTimer(
         TimeSpan.FromSeconds(ServerContextBase.GlobalConfig.DayTimeInterval));
 }
Ejemplo n.º 22
0
 public Buff()
 {
     Timer = new GameServerTimer(TimeSpan.FromSeconds(1.0));
 }
Ejemplo n.º 23
0
        public Tut(GameClient client) : base(client)
        {
            Timer = new GameServerTimer(TimeSpan.FromMilliseconds(200));

            CreateReactors();
        }