Contains the stats for the Towers
View code on GitHub
Inheritance Hierarchy
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
The TowerPropertiesXml type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TowerPropertiesXml | Initializes a new instance of the TowerPropertiesXml class |
Methods
Name | Description | |
---|---|---|
CreateDefault | (Inherited from ContentData.) | |
Dispose | (Inherited from ContentData.) | |
DisposeData | (Inherited from XmlContent.) | |
Get(BossType) | (Inherited from PropertiesXml.) | |
Get(CreepType) | (Inherited from PropertiesXml.) | |
Get(TowerType) | (Overrides PropertiesXml Get(TowerType).) | |
InternalCreateDefault | (Inherited from ContentData.) | |
LoadData | (Inherited from PropertiesXml.) | |
ParseData | (Overrides PropertiesXml ParseData(XmlData).) | |
ToString | (Inherited from ContentData.) |
Fields
Name | Description | |
---|---|---|
agentData | (Inherited from PropertiesXml.) | |
ContentChanged | (Inherited from ContentData.) |
Properties
Name | Description | |
---|---|---|
AllowCreationIfContentNotFound | (Inherited from ContentData.) | |
Data | (Inherited from XmlContent.) | |
IsDisposed | (Inherited from ContentData.) | |
MetaData | (Inherited from ContentData.) | |
Name | (Inherited from ContentData.) |
Remarks
Examples
[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