Kalevala.Character.Controller behaviour (kalevala v0.1.0) View Source

Kalevala controllers are the current set of actions for the user

For instance, you might have a LoginController that handles authentication, that then passes to a CommandController to start processing player commands after they signed in.

Link to this section Summary

Functions

Marks the module as a controller and imports controller functions

Callbacks

Called when a Kalevala.Character.Event.Display is sent to the foreman process

Called when a Kalevala.Character.Event is sent to the foreman process

Called when the controller is first switched to

Called when text is received from the player

Called when the connection receives an event (e.g. incoming GMCP)

Link to this section Functions

Link to this macro

__using__(opts)

View Source (macro)

Marks the module as a controller and imports controller functions

Link to this section Callbacks

Specs

Called when a Kalevala.Character.Event.Display is sent to the foreman process

Specs

Called when a Kalevala.Character.Event is sent to the foreman process

Specs

Called when the controller is first switched to

Specs

Called when text is received from the player

Specs

Called when the connection receives an event (e.g. incoming GMCP)