(Edited)
I'm trying to understand how to create a listenable event in a custom module. I understand how to inherit from a listener class and override the execute() function.
There is a line in the manual showing this:
MyObject* myObject = objectNode->objectAs(MyObject);
TreeNode* onDoStuffNode = myObject->assertEvent("OnDoStuff");
should I be able to just use: this->assertEvent("SnowEvent") from inside the bindEvents function?
More importantly, is this meant to create a flexscript node on the object for the event somewhere? how might a custom event be triggered? by calling function_s() pointing at some point on that flexscript node?
If I wanted my custom module to hold the code for the event, say SnowProcessor::SnowEvent() do I need to create a dll toggled node under SnowProcessor>behavior/cppfunctions/ or something like that?
And I need to just manually add OnSnowEvent as an object node like the others under to >behavior/eventfunctions/eventInfo to make it selectable from the eyedropper of a process flow?