StartingLives Lives Property Delta Engine Documentation

Namespace: CreepyTowers.Triggers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public int Lives { get; }

Property Value

Type: Int32
Remarks

Tests: CreepyTowers.Tests.Triggers.StartingLivesTests
Examples

1 unit tests call CreepyTowers.Triggers.StartingLives.Lives
[Test, CloseAfterFirstFrame]
public void TestStartingLives()
{
    var trigger = new StartingLives("5");
    Assert.AreEqual(5, trigger.Lives);
    var player = new Player();
    GameTrigger.OnGameStarting();
    Assert.AreEqual(trigger.Lives, player.LivesLeft);
}
See Also