RaylibCell

Cell implementation with Raylib.

DrawableResource is implemented as a wrapper for the cell's resource calls.

Constructors

this
this(Display display, Position position, string type)

Members

Functions

draw
void draw()
reload
void reload()

Variables

color
Color color;

Modulate the color of the cell.

decoration
Decoration decoration;
Undocumented in source.
side
Side side;
Undocumented in source.
tile
Tile tile;
Undocumented in source.

Inherited Members

From Cell

__anonymous
mixin Object3D.ImplementConst
Undocumented in source.
type
string type;

Type of the cell.

seed
ulong seed;

Seed to use for RNG calls related to generation of this cell's resources.

make
Cell make(Display display, Position position, string type)

Create a cell with the current renderer.

getTile
Pack.Resource!string getTile()
getSide
Pack.Resource!string[4] getSide()
getDecoration
Pack.Resource!string[] getDecoration(ResourceOptions* tileOptions)
getNeighbor
Cell getNeighbor(ubyte direction)

Get a neighbor in given direction.

getVisualNeighbor
Cell getVisualNeighbor(ubyte direction)

Get a visual neighbour in given direction — this will take cell offset into account.

From WithDrawableResources

draw
void draw()

Draw this resource, if supported by the renderer.

Meta