Texit.Event

Represents single thing that can appear or happen on the screen

mixintemplate Texit(string charmap, int charSize, float scale, int worldWidth, int worldHeight, int width, int height, string title)
abstract
class Event {}

Constructors

this
this(float start, float end)
Undocumented in source.

Members

Functions

changeTile
void changeTile(Point p, Tile t)

Changes the tile at (x, y) to the given tile

disable
void disable()

Called on the last frame of the event

enable
void enable()

Called when the event triggers

time
void time(float rel, float abs)

Called every frame when the event is active.

undoChanges
void undoChanges()

Undoes all changed tiles

Structs

TileChange
struct TileChange
Undocumented in source.

Variables

changedTiles
TileChange[] changedTiles;

Tiles changed by this event

end
float end;

When the event should disappear (set to Infinity if the event should always be active)

start
float start;

When the event should appear

triggered
bool triggered;

Whether this event has been triggered or not yet

Meta