Aura.Channel.World.CreatureSpawner.Spawn C# (CSharp) Méthode

Spawn() public méthode

Spawns as many creatures as necessary to reach this spawn's amount.
public Spawn ( ) : void
Résultat void
		public void Spawn()
		{
			var spawnAmount = Math.Max(0, this.Amount - _creatures.Count);

			for (int i = 0; i < spawnAmount; ++i)
			{
				if (this.Delay == 0)
					this.SpawnOne();
				else
					Task.Delay(this.Delay).ContinueWith(_ => this.SpawnOne());
			}
		}