CalculateDamageTests CheckResistanceBasedOnVulnerableType 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 CheckResistanceBasedOnVulnerableType()
Examples

[Test, CloseAfterFirstFrame]
public void CheckResistanceBasedOnVulnerableType()
{
    var creep = new Creep(CreepType.Glass, Vector3D.Zero);
    var resistance = creep.State.GetVulnerabilityValue(TowerType.Impact);
    Assert.AreEqual(3.0f, resistance);
}
See Also