Level AddWave Method Delta Engine Documentation

Namespace: DeltaEngine.GameLogic
Assembly: DeltaEngine.GameLogic (in DeltaEngine.GameLogic.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AddWave(
	Wave wave
)
Remarks

Tests: DeltaEngine.GameLogic.Tests.LevelTests
Examples

1 unit tests call DeltaEngine.GameLogic.Level.AddWave(DeltaEngine.GameLogic.Wave)
[Test, CloseAfterFirstFrame]
public void TestAddWave()
{
    var level = new MockLevel(new Size(3));
    Assert.AreEqual(0, level.Waves.Count);
    level.AddWave(new Wave(0.0f, 0.0f, ""));
    Assert.AreEqual(1, level.Waves.Count);
}
See Also