API Documentation
World Management API
Loading the World
func LoadWorld() map[string]*RoomSaving the World
func SaveWorld(worldData map[string]*Room) errorRoom Structure
type Room struct {
Short string // Short description
Long string // Long description
Exits map[string]string // Map of directions to room IDs
Items []map[string]interface{} // Items in the room
Players []string // Players in the room
}Player Management API
Getting a Player
Getting a User by Client Name
User Structure
Player Structure
Session Management API
Session Structure
Configuration API
Loading Configuration
Getting Configuration
Configuration Structure
Background Routines API
Starting the Engine
Scheduling Cleanup
Nightly Cleanup
Last updated
Was this helpful?