Texit.EntityEvent

Event that creates an entity

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

Constructors

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

Members

Functions

disable
void disable()
Undocumented in source. Be warned that the author may not have intended to support it.
enable
void enable()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

entity
Entity entity;
Undocumented in source.

Inherited Members

From Event

start
float start;

When the event should appear

end
float end;

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

triggered
bool triggered;

Whether this event has been triggered or not yet

TileChange
struct TileChange
Undocumented in source.
changedTiles
TileChange[] changedTiles;

Tiles changed by this event

enable
void enable()

Called when the event triggers

disable
void disable()

Called on the last frame of the event

time
void time(float rel, float abs)

Called every frame when the event is active.

changeTile
void changeTile(Point p, Tile t)

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

undoChanges
void undoChanges()

Undoes all changed tiles

Meta