aboutsummaryrefslogtreecommitdiff
path: root/internal/object/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object/object.go')
-rw-r--r--internal/object/object.go26
1 files changed, 18 insertions, 8 deletions
diff --git a/internal/object/object.go b/internal/object/object.go
index 46e460e..fe55865 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -1,12 +1,22 @@
package object
+import "thehouseoficarus/internal/action"
+
+type UseInteraction struct {
+ Item string `yaml:"item"`
+ Condition *action.Condition `yaml:"condition"`
+ Message string `yaml:"message"`
+ Action *action.NodeAction `yaml:"action"`
+}
+
type ObjectDef struct {
- ID string `yaml:"id"`
- Name string `yaml:"name"`
- Color string `yaml:"color"`
- BehaviorID string `yaml:"behavior"`
- Hidden bool `yaml:"hidden"`
- InRoomDescription string `yaml:"inroom_description"`
- RemovalItem string `yaml:"removal_item"`
- Props map[string]any `yaml:"props"`
+ ID string `yaml:"id"`
+ Name string `yaml:"name"`
+ Color string `yaml:"color"`
+ BehaviorID string `yaml:"behavior"`
+ Hidden bool `yaml:"hidden"`
+ InRoomDescription string `yaml:"inroom_description"`
+ RemovalItem string `yaml:"removal_item"`
+ Description string `yaml:"description"`
+ UseInteractions []UseInteraction `yaml:"use_interactions"`
}