aboutsummaryrefslogtreecommitdiff
path: root/internal/world/world.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 15:40:48 -0400
committerhistoria <[not public]>2026-06-25 15:40:48 -0400
commitabd612c15799f604e671e83dc7c410ed2b44185f (patch)
tree0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/world/world.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/world/world.go')
-rw-r--r--internal/world/world.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/world/world.go b/internal/world/world.go
index 8ed9a7c..ee06142 100644
--- a/internal/world/world.go
+++ b/internal/world/world.go
@@ -7,18 +7,18 @@ import (
"strings"
"sync"
- "thehouseoficarus/internal/action"
"gopkg.in/yaml.v3"
+ "thehouseoficarus/internal/behavior"
)
type World struct {
- dataDir string
- mu sync.Mutex
- roomPathIndex map[int]string
- groundItems map[int][]*groundEntry
- seeded map[int]bool
- objStates map[string]*ObjState
- objMoves []ObjMove
+ dataDir string
+ mu sync.Mutex
+ roomPathIndex map[int]string
+ groundItems map[int][]*groundEntry
+ seeded map[int]bool
+ objStates map[string]*ObjState
+ objMoves []ObjMove
hazardMu sync.Mutex
hazardPathIndex map[string]string
@@ -28,7 +28,7 @@ type World struct {
func New(dataDir string) *World {
return &World{
dataDir: dataDir,
- roomPathIndex: action.BuildRoomIndex(filepath.Join(dataDir, "rooms")),
+ roomPathIndex: behavior.BuildRoomIndex(filepath.Join(dataDir, "rooms")),
groundItems: make(map[int][]*groundEntry),
seeded: make(map[int]bool),
objStates: make(map[string]*ObjState),