aboutsummaryrefslogtreecommitdiff
path: root/internal/world/world.go
diff options
context:
space:
mode:
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),
}
}