EventStack
Addon SDK v1 retirement
The EventStack
class represents the execution stack in the event system. It is analogous to the stack in traditional programming languages, but adapted to the event system. For example triggering an event will push a new event stack frame, run the trigger, pop the event stack frame, and then resume from the calling event. This ensures each level of execution in the event system runs with its own context.
In Construct the main purpose of the event stack is to track the current event. The event stack is accessible via EventSheetManager's GetEventStack()
method.
Methods
- GetEventSheetManager()
- Return the associated EventSheetManager.
- GetRuntime()
- Return the associated Runtime.
- GetCurrentStackFrame()
- Return the current EventStackFrame.
- Push(currentEvent)
- Push a new EventStackFrame to the event stack, and return it. The initial current EventBlock for the new stack frame must be passed to this call. Every push must have a corresponding
Pop
call.
- Pop()
- Pop the top EventStackFrame from the event stack. This must be called after every
Push
call.
Addon SDK Manual
Construct.net
2018-07-02
2024-05-20
You are here:
Search this manual:
This manual entry was last updated on 20 May, 2024 at 15:15