diff options
| author | historia <[not public]> | 2026-06-26 02:52:31 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-26 02:52:31 -0400 |
| commit | 3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (patch) | |
| tree | 65610fa4fb8abe1dc7a46d00658e85e0525d397c /internal/behavior | |
| parent | e2d5b081f27141bb3dd89dbe595860b8a1345d55 (diff) | |
| download | thehouseoficarus-3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5.tar.gz | |
feat: simplified conversation trees and output won't overwrite prompts now
Diffstat (limited to 'internal/behavior')
| -rw-r--r-- | internal/behavior/behavior.go | 10 | ||||
| -rw-r--r-- | internal/behavior/types.go | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/internal/behavior/behavior.go b/internal/behavior/behavior.go index f81c73c..e01d8a7 100644 --- a/internal/behavior/behavior.go +++ b/internal/behavior/behavior.go @@ -30,10 +30,12 @@ type TalkConfig struct { } type TalkNode struct { - Message MessageList `yaml:"message"` - Options []TalkOption `yaml:"options"` - Action *NodeAction `yaml:"action"` - Next string `yaml:"next,omitempty"` + Message MessageList `yaml:"message"` + Sequence []string `yaml:"sequence,omitempty"` + Condition *Condition `yaml:"condition,omitempty"` + Options []TalkOption `yaml:"options"` + Action *NodeAction `yaml:"action"` + Goto string `yaml:"goto,omitempty"` } type TalkOption struct { diff --git a/internal/behavior/types.go b/internal/behavior/types.go index f8e65f7..3d55d79 100644 --- a/internal/behavior/types.go +++ b/internal/behavior/types.go @@ -110,8 +110,14 @@ type StealData struct { type TalkData struct { Node string Cfg *TalkConfig + SeqIndex int EstateDirectory bool StealGuard bool + PendingChoice string + PendingAction *NodeAction + CancelTalk bool + PendingSeq bool + PendingChosen bool } type UseData struct { |
