Stat Percentage Property Delta Engine Documentation

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

public float Percentage { get; }

Property Value

Type: Single
Remarks

Tests: CreepyTowers.Tests.Stats.StatTests
Examples

1 unit tests call CreepyTowers.Stats.Stat.Percentage
[Test]
public void Percentage()
{
    stat.Adjust(-40.0f);
    Assert.AreEqual(0.6f, stat.Percentage);
    Assert.AreEqual(0.0f, new Stat(0.0f).Percentage);
}
See Also