ExtendibleMap

Stores, loads, and saves a level data from an XML and multiple MAP files.

Constructors

this
this(string filename)

Load from datastream Load from file

this
this()

Create new from scratch

Members

Functions

addFileToTileSource
void addFileToTileSource(int num, string file)

Loads the bitmaps for the Tilelayer from the XMP files Adds a new file for the tilesource.

addTileLayer
void addTileLayer(TileLayerData t)

Adds a new TileLayer to the file.

addTileToTileSource
void addTileToTileSource(int num, wchar ID, string name, string source, string file)

Adds a new tile for the tilesource. If file source doesn't exist, it adds to the filelist. Source: the ID in the file.

getNumOfLayers
int getNumOfLayers()

Gets the number of layers.

getTileLayer
TileLayerData getTileLayer(int num)

Gets the TileLayer from the file.

loadFile
void loadFile()

Loads a file

loadTileSet
ABitmap[wchar] loadTileSet(int num)

Loads the bitmaps for the Tilelayer from the XMP files

removeTileLayer
void removeTileLayer(int num)

Removes a tilelayer.

saveFile
void saveFile(string filename)

Saves the file to the given location

saveFile
void saveFile()

Saves the file to the last location

Variables

filename
string filename;

Name of the file alongside with the path.

metaData
string[string] metaData;

Stores metadata. Serialized as: index = value &lt = &gt &lt index &gt value &lt / index &gt

sld
SpriteLayerData[int] sld;

Stores the data regarding the sprite layers.

tld
TileLayerData[int] tld;

Stores the data regarding the tile layers.

Meta