aboutsummaryrefslogtreecommitdiff
path: root/internal/behavior/desc.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-09 05:27:10 -0400
committerhistoria <[not public]>2026-07-09 05:27:10 -0400
commitc705ae942573984784ef501bf8198f61f5206ddd (patch)
treec964066f3a244002bf75cb50a877630f46496f81 /internal/behavior/desc.go
parent74153c7814fc4cef988066ef04e38731a943bc12 (diff)
downloadthehouseoficarus-c705ae942573984784ef501bf8198f61f5206ddd.tar.gz
refactor: simplify yaml, remove support for old scalar fields
Diffstat (limited to 'internal/behavior/desc.go')
-rw-r--r--internal/behavior/desc.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/behavior/desc.go b/internal/behavior/desc.go
index ca4bf69..f6dbaf3 100644
--- a/internal/behavior/desc.go
+++ b/internal/behavior/desc.go
@@ -1,27 +1,8 @@
package behavior
-import "gopkg.in/yaml.v3"
-
type DescVariant struct {
Text string `yaml:"text"`
Condition *Condition `yaml:"condition,omitempty"`
}
type DescList []DescVariant
-
-func (dl *DescList) UnmarshalYAML(value *yaml.Node) error {
- if value.Kind == yaml.ScalarNode {
- var s string
- if err := value.Decode(&s); err != nil {
- return err
- }
- *dl = DescList{{Text: s}}
- return nil
- }
- var entries []DescVariant
- if err := value.Decode(&entries); err != nil {
- return err
- }
- *dl = entries
- return nil
-}