Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Name returns the name of the controller. If multiple controllers of the same name are registered with the world // then the last one registered will be used. This enables the developer to override specific controllers with their // own implementation. Name() string // Start is called when the controller is set. Start(id string) error // Resume called when the world restarts, causing the portal to reset-assert the session. Resume(id string) error // Stop is called when the controller is unset. Stop(id string) error // HandleInput is called when the player sends input to the world. HandleInput(id string, input string) error }
Controller is the interface for a session controller. A session controller handles interactions from the player session to the game world
Click to show internal directories.
Click to hide internal directories.