LoadTilemap

Struct for advanced tilemap loading.

Members

Functions

parse
void parse(T range)

Begin parsing. A callback member will be ran for each matched element of the input.

Variables

onCell
void delegate(ulong cellID, Height height) onCell;

This delegate is called when found a cell. It is called with an ID corresponding to the tile type declaration (from onDeclarations) and a definition of the cell's height.

onDeclarations
void delegate(scope string[]) onDeclarations;

This delegate is called with tile declarations at the start of the file. Indexes within the array are later to be used to find the tile name for a cell ID.

onEntry
void delegate(int x, int y, int layer) onEntry;

This delegate is called when matched an entry, that is, a row of cells in an arbitrary position.

Meta