config

package
v0.0.0-...-194795b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2014 License: MIT Imports: 10 Imported by: 0

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.

func MainTitle

func MainTitle() string

MainTitle returns the text that is shown to users when they connect, before logging in.

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

func FindDirection(alias string) (dir Direction, found bool)

FindDir will find a direction by name or alias. This method is not case sensitive.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL