MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / IsValidExitDirection

Function IsValidExitDirection

internal/mapper/mapper.go:131–134  ·  view source on GitHub ↗

Returns true if exitName resolves to any position delta

(exitName string)

Source from the content-addressed store, hash-verified

129
130// Returns true if exitName resolves to any position delta
131func IsValidExitDirection(exitName string) bool {
132 _, ok := posDeltas[exitName]
133 return ok
134}
135
136// Returns true if exitName is a compass direction (north, south, east, west, northwest)
137func IsCompassDirection(exitName string) bool {

Callers 1

AdjustExitNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected