kalevala v0.1.0 Kalevala.Character.Conn View Source
Struct for tracking data being processed in a controller or command
Link to this section Summary
Functions
Add to the assignment map on the conn
Get the character out of the conn
Delay an event
Send the foreman an in-game event
Get a value out of the session data
Mark the connection for termination
Creates an even to move from one room to another
Render a prompt to the conn
Request to publish a message to a channel
Put an action to be performed
Update the character in state
Put the new controller that the foreman should swap to
Update a key in a character's meta map
Put a value into the session data
Render text to the conn
Sends a request to drop an item into the room
Sends a request to get an item from the room
Request the room to move via the exit
Send a telnet option
Request to subscribe to a channel
Request to unsubscribe from a channel
Link to this section Types
Link to this section Functions
Add to the assignment map on the conn
Get the character out of the conn
If the character has been updated, this character will be returned
Delay an event
Send the foreman an in-game event
Get a value out of the session data
Mark the connection for termination
Creates an even to move from one room to another
Render a prompt to the conn
Request to publish a message to a channel
Available options for altering the message, these also get passed along to the channel callbacks.
type
, defaults to"speech"
meta
, defaults to%{}
Put an action to be performed
This should be a Kalevala.Character.Action
struct to save which
action module should be run, along with any delay and params.
Update the character in state
Put the new controller that the foreman should swap to
Update a key in a character's meta map
Put a value into the session data
Render text to the conn
Sends a request to drop an item into the room
Sends a request to get an item from the room
Request the room to move via the exit
Send a telnet option
Request to subscribe to a channel
Request to unsubscribe from a channel