Entity ToString Method Delta Engine Documentation

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

public override string ToString()

Return Value

Type: String
Remarks

Tests: CreepyTowers.Tests.Towers.TowerPropertiesXmlTests
Examples

1 unit tests call DeltaEngine.Entities.Entity.ToString
[Test, CloseAfterFirstFrame]
public void TestTowerPropertiesXml()
{
    var towerProperties = ContentLoader.Load<TowerPropertiesXml>(Xml.TowerProperties.ToString());
    var towerData = towerProperties.Get(TowerType.Acid);
    Assert.AreEqual(1.0f, towerData.AttackFrequency);
    Assert.AreEqual(4.0f, towerData.Range);
    Assert.AreEqual(35.0f, towerData.BasePower);
    Assert.AreEqual(230, towerData.Cost);
    Assert.AreEqual(AttackType.DirectShot, towerData.AttackType);
}
See Also