public LDTKMap(LDTKJson json) { world = json; foreach (TilesetDefinition tileset in world.Defs.Tilesets) { string path = GetMonoGameContentName(tileset.RelPath); Assets.LoadTexture(path, path); } }
public LDTKMap Load(string filePath) { return(new LDTKMap(LDTKJson.FromJson(File.ReadAllText(filePath)))); }