From abd612c15799f604e671e83dc7c410ed2b44185f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 15:40:48 -0400 Subject: slop refactor --- internal/world/world.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'internal/world/world.go') 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), -- cgit v1.2.3