aboutsummaryrefslogtreecommitdiff
path: root/internal/world/trigger.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/world/trigger.go')
-rw-r--r--internal/world/trigger.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/world/trigger.go b/internal/world/trigger.go
deleted file mode 100644
index de07c18..0000000
--- a/internal/world/trigger.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package world
-
-import "thehouseoficarus/internal/behavior"
-
-type TriggerDef struct {
- ID string `yaml:"id"`
- OnPlayerFlag string `yaml:"on_player_flag"`
- OnGlobalFlag string `yaml:"on_global_flag"`
- Value any `yaml:"value"`
- Room int `yaml:"room"`
- Steps []behavior.StepAction `yaml:"steps"`
-}
-
-func (t *TriggerDef) IsPlayerFlagTrigger() bool { return t.OnPlayerFlag != "" }
-
-func (t *TriggerDef) IsGlobalFlagTrigger() bool { return t.OnGlobalFlag != "" } \ No newline at end of file