aboutsummaryrefslogtreecommitdiff
path: root/internal/player/player.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-15 15:35:52 -0400
committerhistoria <[not public]>2026-09-15 15:35:52 -0400
commit0b0b25222b3131ada79ff78c28eb8bf07d977deb (patch)
tree2ceaef5203595044f66a8f00064cd8e017f8f48d /internal/player/player.go
parent396c3facb8287b9a34076cae8f3d7b300d366d99 (diff)
downloadthehouseoficarus-0b0b25222b3131ada79ff78c28eb8bf07d977deb.tar.gz
feat: single-owner game state, transactional lifecycle, durable money on server stop
Diffstat (limited to 'internal/player/player.go')
-rw-r--r--internal/player/player.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/player/player.go b/internal/player/player.go
index 81ef056..ae147b2 100644
--- a/internal/player/player.go
+++ b/internal/player/player.go
@@ -159,6 +159,11 @@ func GetOptionDef(name string) *OptionDef {
type Player struct {
Name string `yaml:"name"`
+ // ID is a stable identifier assigned at creation. Filenames are
+ // renameable; the ID is not, so cached references authorize by ID.
+ ID string `yaml:"id,omitempty"`
+ // Account is the owning account name (case-canonical at write time).
+ Account string `yaml:"account,omitempty"`
Skills map[SkillName]int `yaml:"skills"`
Inventory map[int]*InventorySlot `yaml:"inventory"`
Bank map[int]*InventorySlot `yaml:"bank"`