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

onBlock
void delegate(ulong blockID, int heightTop, int depth) @(safe) onBlock;

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

onDeclarations
void delegate(scope string[] blockNames, int heightSteps) @(safe) onDeclarations;

This delegate is called with data declarations at the start of the file.

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

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

Meta