From 69d8757ad983697cdc9182fdcc1cdb612a77fb41 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 10 Jun 2026 04:44:31 -0400 Subject: feat: yaml architecture for complex object interaction --- internal/player/account.go | 7 ++++--- internal/player/player.go | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'internal/player') diff --git a/internal/player/account.go b/internal/player/account.go index 5072009..679c5bc 100644 --- a/internal/player/account.go +++ b/internal/player/account.go @@ -1,7 +1,8 @@ package player type Account struct { - Name string `yaml:"name"` - PasswordHash string `yaml:"password_hash"` - Characters []string `yaml:"characters"` + Name string `yaml:"name"` + PasswordHash string `yaml:"password_hash"` + Characters []string `yaml:"characters"` + Aliases map[string]string `yaml:"aliases"` } diff --git a/internal/player/player.go b/internal/player/player.go index d6e450a..001eb8b 100644 --- a/internal/player/player.go +++ b/internal/player/player.go @@ -94,6 +94,7 @@ type Player struct { Description string `yaml:"description"` AttackStyle AttackStyle `yaml:"attack_style"` Toggles map[string]bool `yaml:"toggles"` + Flags map[string]any `yaml:"flags"` RegenerateTick int Action *action.Action `yaml:"-"` } -- cgit v1.2.3