static public void CreateTileObj(string spritepath, int depth, int scale, bool isbackground, string name = "null") { TileObj TileObject = new TileObj(spritepath, depth, scale, isbackground); Objects.TileObjList.Add(TileObject); if (name == "null") { Objects.NameIDObjList.Add(new NameIDObj(TileObject.ID, TileObject.ID, "TileObj")); } else { Objects.NameIDObjList.Add(new NameIDObj(TileObject.ID, name, "TileObj")); } }
static public void CreateTileGroup(string spritepath, int depth, int scale, List <Point> xypointlist, string name = "null") { TileObj TileObject = new TileObj(spritepath, depth, scale, false); TileGroup Tile_Group = new TileGroup(TileObject, xypointlist); Objects.TileGroupList.Add(Tile_Group); //Objects.TileGroupList = Objects.TileGroupList.OrderBy(TileGroupList => TileGroupList.Tile.Depth).ToList(); if (name == "null") { Objects.NameIDObjList.Add(new NameIDObj(TileObject.ID, TileObject.ID, "TileObj")); } else { Objects.NameIDObjList.Add(new NameIDObj(TileObject.ID, name, "TileObj")); } }
public TileGroup(TileObj TileObject, List <Point> pointlist) { PointList = pointlist; Tile = TileObject; }