public void LoadTiles(string path) { Tiles loadedTileset = XmlLoader.DeSerializeObject <Tiles>(path); tiles = loadedTileset.tiles; textureFolder = loadedTileset.textureFolder; name = loadedTileset.name; }
public void LoadLevel(string path) { Level loadedLevel = XmlLoader.DeSerializeObject <Level>(path); tiles = loadedLevel.tiles; floorColour = loadedLevel.floorColour; ceilingColour = loadedLevel.ceilingColour; }
public Level LoadAndGetLevel(string path) { return(XmlLoader.DeSerializeObject <Level>(path)); }