diff options
| author | historia <[not public]> | 2026-06-24 20:58:25 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-24 20:58:25 -0400 |
| commit | 9d4b799db4868bcab291b83599ff088763cd4ed6 (patch) | |
| tree | 252f0fcc779acf35243983d643d6399ee2e0cd0b /internal/world/world.go | |
| parent | d25638d98fe63efdeab570ef77e6a6a97f2d7a60 (diff) | |
| download | thehouseoficarus-9d4b799db4868bcab291b83599ff088763cd4ed6.tar.gz | |
feat: new type of non-violent 'combat': work
Diffstat (limited to 'internal/world/world.go')
| -rw-r--r-- | internal/world/world.go | 5 |
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), } } |
