Documentation
¶
Index ¶
- Constants
- Variables
- func AddMapper(m *mapper, lookupRoomId int)
- func GetDelta(exitName string) (x, y, z int)
- func GetDirectionDeltaNames() []string
- func GetMapper(roomId int, forceRefresh ...bool) *mapper
- func GetMapperIfExists(roomId int) *mapper
- func GetPath(startRoomId int, endRoomId ...int) ([]pathStep, error)
- func IsCompassDirection(exitName string) bool
- func IsValidDirection(directionName string) bool
- func NewMapper(rootRoomId int) *mapper
- func PreCacheMaps()
- type Config
- type RoomGrid
- type SymbolOverride
Constants ¶
View Source
const ( SecretSymbol = '?' LockedSymbol = '⚷' )
Variables ¶
View Source
var ( ErrOutOfBounds = errors.New(`out of bounds`) ErrRoomNotFound = errors.New(`room not found`) )
View Source
var ( ErrPathNotFound = errors.New(`path not found`) ErrPathDestMatch = errors.New(`path destination is same as source`) )
Functions ¶
func GetDirectionDeltaNames ¶
func GetDirectionDeltaNames() []string
func GetMapperIfExists ¶
func GetMapperIfExists(roomId int) *mapper
Returns the mapper if it exists, otherwise does nothing.
func IsCompassDirection ¶
func IsValidDirection ¶
func PreCacheMaps ¶
func PreCacheMaps()
Types ¶
type Config ¶
type SymbolOverride ¶
Click to show internal directories.
Click to hide internal directories.