Aura.Channel.World.CreatureSpawner.Spawn C# (CSharp) Метод

Spawn() публичный Метод

Spawns as many creatures as necessary to reach this spawn's amount.
public Spawn ( ) : void
Результат 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());
			}
		}