Exemplo n.º 1
0
		internal void Execute(SelfRunningTaskQueue queue)
		{
			Callback();
			LastCallTime = queue.LastUpdateTime;
			if (IsOneShot)
			{
				queue.CancelTimer(this);
			}
		}
Exemplo n.º 2
0
 internal void Execute(SelfRunningTaskQueue queue)
 {
     Callback();
     LastCallTime = queue.LastUpdateTime;
     if (IsOneShot)
     {
         queue.CancelTimer(this);
     }
 }
Exemplo n.º 3
0
 internal void Execute(SelfRunningTaskQueue queue)
 {
     this.Callback();
     this.LastCallTime = queue.LastUpdateTime;
     if (!this.IsOneShot)
     {
         return;
     }
     queue.CancelTimer(this);
 }
Exemplo n.º 4
0
 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);
 }