Character

A character in the visual novel

Constructors

this
this(CharDecl decl)

Creates a character from a definition

Destructor

~this
~this()

Clean up textures between scene switches.

Members

Functions

activate
void activate()
Undocumented in source. Be warned that the author may not have intended to support it.
currentTexture
AtlasIndex* currentTexture()

The current texture

displayName
dstring displayName()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
setTexture
void setTexture(string texture)

Sets the character's texture

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

Variables

isFlipped
bool isFlipped;

Whether the character's texture is flipped vertically

position
vec2 position;

Position of the character on the screen

shown
bool shown;

Whether to show the character

Meta