Kantele.World.Room (ExVenture v0.1.0) View Source

Callbacks for a Kalevala room

Link to this section Summary

Functions

Forward an event to the Events router

Called after a room is initialized, used in the Callbacks protocol

Handle requesting picking up an item

Load an item based on room information

Link to this section Functions

Forward an event to the Events router

Used in the Callbacks protocol.

Called after a room is initialized, used in the Callbacks protocol

Link to this function

item_request_pickup(room, context, event, item_instance)

View Source

Handle requesting picking up an item

Used in the Callbacks protocol.

Checks if the item has the verb to pick up in a room before allowing.

If the instance id is nil then the event item_name is considered and id and searched accordingly before checking for the appropriate verb.

Link to this function

load_item(item_instance)

View Source

Load an item based on room information

Used in the Callbacks protocol.