Texit.Entity

Anything that isn't text

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

Constructors

this
this(Vector pos, Vector size, string id)

Members

Functions

hide
void hide()

Hides the entity

render
void render()

Call this to render the entity

render
void render(Vector spos, Vector ssize)

Rendering code (this is what should be overriden)

show
void show()

Shows the entity

Static functions

generateID
string generateID()

Generates an ID (they look like entity-0, entity-1, entity-2, entity-3, etc)

Variables

id
string id;

Unique ID of this entity

pos
Vector pos;
Undocumented in source.
size
Vector size;

Position and size of the entity

visible
bool visible;

Whether this entity is visible right now or not

Meta