/// <summary> /// Add Tile to Tilelist (or return Tile) /// </summary> public GraalLevelTile AddTile(int boardindex, int tile_index) { GraalLevelTile pl = FindTile(boardindex); if (pl == null) { GraalLevelTile Tile = new GraalLevelTile(); Tile.SetTile(tile_index); TileList[boardindex] = Tile; return Tile; } return pl; }
/// <summary> /// Add Tile to Tilelist (or return Tile) /// </summary> public GraalLevelTile AddTile(int x, int start_y, int width, int tile_index) { GraalLevelTile pl = FindTile(x, start_y); if (pl == null) { GraalLevelTile Tile = new GraalLevelTile(); Tile.SetTile(tile_index); TileList[x + start_y * width] = Tile; return Tile; } return pl; }