pixelperfectengine.map.mapdata

Undocumented in source.

Public Imports

pixelperfectengine.system.exc
public import pixelperfectengine.system.exc;
Undocumented in source.

Members

Functions

loadMapFile
MappingElement[] loadMapFile(F file, MapDataHeader header)

Loads a map from an external file.

loadMapFromBase64
MappingElement[] loadMapFromBase64(char[] input, int length)

Loads a map from a BASE64 string.

saveMapFile
deprecated void saveMapFile(MapDataHeader* header, MappingElement[] map, string name)

Saves a map to an external file. Will be deprecated soon.

saveMapFile
void saveMapFile(MapDataHeader header, MappingElement[] map, F file)

Saves a map to an external file. See documentation about the format.

saveMapToBase64
char[] saveMapToBase64(MappingElement[] input)

Saves a map to a BASE64 string.

Structs

MapDataHeader
struct MapDataHeader

Contains the very basic data for the map binary file (*.mbf). Length of the map is calculated as length = sizeX * sizeY, all words are 32 bits long, so size of map in bytes equals mapSize = length * 4, and header should be 12 bytes in size. Maps are always starting in the top-left corner of their tile layers.

Meta