public BorderMap(TiledMap map, CompilerContext context, string mapPath) { Child = map; BorderMapTiles = new List <uint>(); BorderLayer = Child.Layers.GetObjectByMatchingProperties(Resources.STR_PROPERTY_LTYPE_NAME, Resources.STR_PROPERTY_LTYPE_BORDER, context); if (BorderLayer == null) { context.ExitError("could not find border layer in border map file"); } foreach (TiledTilesetDefinition def in Child.TilesetDefinitions) { def.LoadTileset(mapPath, context); } Csv.AddDataToMapList(BorderMapTiles, BorderLayer.Data.MapDataText, context); }
public MainMap(TiledMap map, string mapPath, CompilerContext context) { this.Child = map; LoadData(mapPath, context); }