Quote:
Originally Posted by minimoney1
Hello everyone.
For Simple Chat Processor (Redux), I needed a way to call each forward one by one (as the current forward manager's methods call either the first or the highest depending on your settings set in CreateForward).
|
Are you talking about return values here?
The forward manager is supposed to call all private forwards registered. The value it returns depends on the execution type.
ET_Ignore doesn't return anything.
ET_Single returns the value from the last forward.
ET_Event runs all forwards until it hits a forward that returns something other than Plugin_Continue (or runs all of them). It then returns that value.
ET_Hook runs all forwards until it hits a forward that returns Plugin_Stop (or runs all of them). It then returns the highest value that was returned.
By highest value, I mean out of these values:
Code:
Plugin_Continue = 0, /**< Continue with the original action */
Plugin_Changed = 1, /**< Inputs or outputs have been overridden with new values */
Plugin_Handled = 3, /**< Handle the action at the end (don't call it) */
Plugin_Stop = 4, /**< Immediately stop the hook chain and handle the original */
__________________