Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataDir ¶
func DataDir() string
DataDir returns the directory where claymud configuration and game data is stored. By default it is in ~/.config/
func Initialize ¶
func Initialize() error
Initialize sets up the application's configuration directory.
Types ¶
type Direction ¶
type Direction struct { // Id is the unique id of the exit, and determines sort order. Id int // Name is what will be shown in room descriptions. Name string // From is used when displaying enter/exit notifications for players. From string // Aliases is a list of alternate names for the direction. Aliases []string }
Direction is a direction that a standard exit can use
func AllDirections ¶
func AllDirections() []Direction
AllDirections returns a list of all the directions that exist in the world.
func FindDirection ¶
FindDir will find a direction by name or alias. This method is not case sensitive.
Click to show internal directories.
Click to hide internal directories.