internal void Execute(SelfRunningTaskQueue queue) { Callback(); LastCallTime = queue.LastUpdateTime; if (IsOneShot) { queue.CancelTimer(this); } }
internal void Execute(SelfRunningTaskQueue queue) { Callback(); LastCallTime = queue.LastUpdateTime; if (IsOneShot) { queue.CancelTimer(this); } }
internal void Execute(SelfRunningTaskQueue queue) { this.Callback(); this.LastCallTime = queue.LastUpdateTime; if (!this.IsOneShot) { return; } queue.CancelTimer(this); }
protected DeffenceTownEvent(Map map, int minLevel, int maxLevel, float amountMod, float healthMod, float otherStatsMod, float speedMod, float difficulty) { this.MinLevel = minLevel; this.MaxLevel = maxLevel; this.Town = map.Id; this._map = map; this._amountMod = amountMod; this._healthMod = healthMod; this._otherStatsMod = otherStatsMod; this._speedMod = speedMod; this._difficulty = difficulty; this._spawnTasks = new SelfRunningTaskQueue(1000, "Defence town event " + (object)this.Town, false); NpcCustomEntries.Init(maxLevel, healthMod, otherStatsMod, speedMod); this.InitMovingPaths(); this.InitMonsterSpawn(amountMod); }