public enum ListenerYieldBehaviour
Specifies the yield behaviour of a World Grouping Listener, which tells the World how it should proceed after one of the listeners multi-frame methods has finished running.
Name | Value | Description |
---|---|---|
NeverYield | 0 |
Indicates that after executing one of the Listener's methods, the World should continue
running (in the given frame),
which usually means beginning execution the same method of the next listener.
You would typically use this type of behaviour if you need to ensure that one listener runs immediately after another. |
YieldOrContinue | 1 |
Indicates that after executing one of the Listener's methods, the World should query
its Execution Controller to determine if
it should continue running (in the given frame).
This behaviour is useful if you don't care one way or another whether the World yields control, as it allows you to leave the decision up to the Execution Controller. |
AlwaysYield | 2 |
Indicates that after executing one of the Listener's methods, the World should yield
for at least a frame, allowing other components to run.
You would typically use this type of behaviour if you need to ensure that the World yields control for at least a frame after the Listener's method executes, perhaps because whatever action the Listener performed needs a frame to "process". |