aboutsummaryrefslogtreecommitdiff
path: root/internal/world/world.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-24 20:58:25 -0400
committerhistoria <[not public]>2026-06-24 20:58:25 -0400
commit9d4b799db4868bcab291b83599ff088763cd4ed6 (patch)
tree252f0fcc779acf35243983d643d6399ee2e0cd0b /internal/world/world.go
parentd25638d98fe63efdeab570ef77e6a6a97f2d7a60 (diff)
downloadthehouseoficarus-9d4b799db4868bcab291b83599ff088763cd4ed6.tar.gz
feat: new type of non-violent 'combat': work
Diffstat (limited to 'internal/world/world.go')
-rw-r--r--internal/world/world.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/world/world.go b/internal/world/world.go
index b305c4b..8ed9a7c 100644
--- a/internal/world/world.go
+++ b/internal/world/world.go
@@ -19,6 +19,10 @@ type World struct {
seeded map[int]bool
objStates map[string]*ObjState
objMoves []ObjMove
+
+ hazardMu sync.Mutex
+ hazardPathIndex map[string]string
+ hazardDefs map[string]*HazardDef
}
func New(dataDir string) *World {
@@ -28,6 +32,7 @@ func New(dataDir string) *World {
groundItems: make(map[int][]*groundEntry),
seeded: make(map[int]bool),
objStates: make(map[string]*ObjState),
+ hazardDefs: make(map[string]*HazardDef),
}
}