config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir    string          // config and data directory
	StartRoom  int             // the starting room number
	MainTitle  string          // title screen
	BcryptCost int             // work factor for auth
	Commands   world.CmdConfig // command aliases
	Logging    *lumberjack.Logger
	ChatMode   struct {
		Enabled string // "allow" "deny" or "require"
		Default bool   // whether chatmode starts enabled or not
		Prefix  string // if not "deny", commands other than movement must start with a prefix
	}
	Direction []game.Direction
	Gender    []game.Gender
}

Config contains all the general configuration parameters for the mud.

func Init

func Init() (*Config, error)

Init sets up the application's configuration directory.

Jump to

Keyboard shortcuts

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