MappingElement

Mapping element, that is used on most if not all layers in this engine. It reserves: * 16 bits for tile selection. * 6 bits for extra purposes (can be user defined if the layer doesn't use it for anything else). * 1 bit for vertical mirroring. * 1 bit for horizontal mirroring. * 8 bits for palette selection (can be used for user-defined purposes if tiles are either 16 or 32 bit). User defined purposes may include marking tiles with special purpose for the game logic.

Constructors

this
this(wchar tileID, BitmapAttrib attributes, ubyte paletteSel)

Default constructor

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

attributes
BitmapAttrib attributes;

General attributes, such as vertical and horizontal mirroring. The extra 6 bits can be used for various purposes

paletteSel
ubyte paletteSel;

Selects the palette for the bitmap if supported

tileID
wchar tileID;

Determines which tile is being used for the given instance. 0xFFFF is reserved for transparency.

Meta