Level MapData Property Delta Engine Documentation

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

public LevelTileType[] MapData { get; set; }

Property Value

Type:  LevelTileType 
Remarks

Tests: DeltaEngine.GameLogic.Tests.LevelTests
Examples

1 unit tests call DeltaEngine.GameLogic.Level.MapData
[Test, CloseAfterFirstFrame]
public void SaveAndLoadMapData()
{
    TileMap map = CreateSimple2X3TileMap();
    string mapData = map.Save();
    string newLine = Environment.NewLine;
    string expectedData = "E." + newLine + "X." + newLine + "S." + newLine;
    Assert.AreEqual(expectedData, mapData);
    var loadedMap = new TileMap(mapData);
    Assert.AreEqual(expectedData, loadedMap.Save());
}
See Also