CalculateDamageTests CheckResistanceBasedOnNormalDamageType Method Delta Engine Documentation

Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckResistanceBasedOnNormalDamageType()
Examples

[Test, CloseAfterFirstFrame]
public void CheckResistanceBasedOnNormalDamageType()
{
    var creep = new Creep(CreepType.Cloth, Vector3D.Zero);
    var resistance = creep.State.GetVulnerabilityValue(TowerType.Water);
    Assert.AreEqual(1.0f, resistance);
}
See Also