예제 #1
0
        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);
        }
예제 #2
0
 public MainMap(TiledMap map, string mapPath, CompilerContext context)
 {
     this.Child = map;
     LoadData(mapPath, context);
 }