DCode
Covers Engine 2.0.0
event
Declare a keyed ARGUS event with board-state and firing-state channels.
Syntax
event <event_key>:Available in
- File scope
Native C++
Event metadata is parsed by the engine in both modes. Generated trigger and handler calculation bodies must use the native numeric subset when this file selects Native C++.
Lifecycle
The event channel is 1 while the event is on the active board. The firing channel is 1 while trigger pulses continue within five seconds. Resolution requires acknowledgement and a stopped firing state.
Runtime sections
triggeron_firingon_event
Generated channels
<event_key><event_key>_firing<event_key>_trigger (when trigger: is present)
Example
event event_key:
title: "Event title"
type: ${3|message,warning,error,abort,hold,prompt|}
description: "What happened"
resolution: "How to resolve it"
trigger:
on_firing:
-- automate the live firing state with value
on_event:
-- automate board presence with value