diff options
| author | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
| commit | ab2597b22ccdb71116992aec78080d9858358d04 (patch) | |
| tree | 8beae4060c2831c4a68f92b682b5350cfa1d0afb /internal/game/game.go | |
| parent | 3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (diff) | |
| download | thehouseoficarus-ab2597b22ccdb71116992aec78080d9858358d04.tar.gz | |
rename flags to global_flags (differentiate from player_flags)
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index bf7bdc2..b9fb0af 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -44,13 +44,13 @@ type Deps struct { } // Game is the central orchestrator: it owns the data stores (via the embedded -// Deps), the shared mutable game state (flags, combat tracker, command queue, +// Deps), the shared mutable game state (global flags, combat tracker, command queue, // safespots), and the per-session runtime bookkeeping. type Game struct { Deps Hub *net.Hub - Flags *FlagStore + GlobalFlags *GlobalFlagStore Combat *combat.Tracker TriggerStore *world.TriggerStore queue *CommandQueue @@ -88,7 +88,7 @@ func New(dataDir string, colorConfig *config.ColorsConfig, valConfig config.Vali ColorConfig: colorConfig, DataDir: dataDir, }, - Flags: NewFlagStore(), + GlobalFlags: NewGlobalFlagStore(), Combat: combat.NewTracker(), TriggerStore: world.NewTriggerStore(), queue: NewCommandQueue(), @@ -127,8 +127,8 @@ func (g *Game) SetHub(hub *net.Hub) { } } }) - g.Flags.OnChange(func(name string, value any) { - g.TriggerStore.FireWorld(name, value) + g.GlobalFlags.OnChange(func(name string, value any) { + g.TriggerStore.FireGlobal(name, value) }) } |
