aboutsummaryrefslogtreecommitdiff
path: root/internal/player
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-10 04:44:31 -0400
committerhistoria <[not public]>2026-06-10 04:44:31 -0400
commit69d8757ad983697cdc9182fdcc1cdb612a77fb41 (patch)
tree348c26d1f6defe3aef64f5aa9e7cefed0e764214 /internal/player
parenta226d72e51eecb768b13600303f73483118d9104 (diff)
downloadthehouseoficarus-69d8757ad983697cdc9182fdcc1cdb612a77fb41.tar.gz
feat: yaml architecture for complex object interaction
Diffstat (limited to 'internal/player')
-rw-r--r--internal/player/account.go7
-rw-r--r--internal/player/player.go1
2 files changed, 5 insertions, 3 deletions
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:"-"`
}