TowerPropertiesXml ClassDelta Engine Documentation
Contains the stats for the Towers View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Content ContentData
    DeltaEngine.Content.Xml XmlContent
      CreepyTowers PropertiesXml
        CreepyTowers.Towers TowerPropertiesXml

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

public class TowerPropertiesXml : PropertiesXml

The TowerPropertiesXml type exposes the following members.

Constructors

  NameDescription
Public methodTowerPropertiesXml
Initializes a new instance of the TowerPropertiesXml class
Top
Methods

  NameDescription
Protected methodCreateDefault (Inherited from ContentData.)
Public methodDispose (Inherited from ContentData.)
Protected methodDisposeData (Inherited from XmlContent.)
Public methodGet(BossType) (Inherited from PropertiesXml.)
Public methodGet(CreepType) (Inherited from PropertiesXml.)
Public methodGet(TowerType) (Overrides PropertiesXml Get(TowerType).)
Public methodInternalCreateDefault (Inherited from ContentData.)
Protected methodLoadData (Inherited from PropertiesXml.)
Protected methodParseData (Overrides PropertiesXml ParseData(XmlData).)
Public methodToString (Inherited from ContentData.)
Top
Fields

  NameDescription
Protected fieldagentData (Inherited from PropertiesXml.)
Protected fieldContentChanged (Inherited from ContentData.)
Top
Properties

  NameDescription
Protected propertyAllowCreationIfContentNotFound (Inherited from ContentData.)
Public propertyData (Inherited from XmlContent.)
Public propertyIsDisposed (Inherited from ContentData.)
Public propertyMetaData (Inherited from ContentData.)
Public propertyName (Inherited from ContentData.)
Top
Remarks

Tests: CreepyTowers.Tests.Towers.TowerPropertiesXmlTests
Examples

1 unit tests call CreepyTowers.Towers.TowerPropertiesXml
[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