public bool Progress(float deltaTime) { progress += deltaTime; while (wave.spawnSeq.Count > 0 && wave.spawnSeq.Peek().SpawnTime < progress) { SpawnSequenceConfigEntry entry = wave.spawnSeq.Pop(); Game.SpawnEnemy(entry.EnemyId, entry.PathId, entry.SpawnId); } return(wave.spawnSeq.Count == 0); }
public override object GetKey(AbstractConfigEntry t) { SpawnSequenceConfigEntry configEntry = (SpawnSequenceConfigEntry)t; return(configEntry.Id); }