Namespace: DeltaEngine.GameLogic
Assembly: DeltaEngine.GameLogic (in DeltaEngine.GameLogic.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.GameLogic.Tests.WaveTests
1 unit tests call DeltaEngine.GameLogic.Wave.AsXmlData
Assembly: DeltaEngine.GameLogic (in DeltaEngine.GameLogic.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Return Value
Type: XmlDataRemarks
Examples
[Test] public void TestWaveXmlData() { var wave = new Wave(0.1f, 1.0f, "Paper, Cloth", "Dummy"); var waveXml = wave.AsXmlData(); Assert.AreEqual("Dummy", waveXml.GetAttributeValue("ShortName")); Assert.AreEqual("0.1", waveXml.GetAttributeValue("WaitTime")); Assert.AreEqual("1", waveXml.GetAttributeValue("SpawnInterval")); Assert.AreEqual("Paper, Cloth", waveXml.GetAttributeValue("SpawnTypeList")); Assert.AreEqual("1", waveXml.GetAttributeValue("MaxSpawnItems")); Assert.AreEqual("0", waveXml.GetAttributeValue("MaxTime")); }
See Also