Reply To: Reflected nodes that should act as events?

FlowCanvas Forums Support Reflected nodes that should act as events? Reply To: Reflected nodes that should act as events?

#1144
swiftillusion
Participant

Currently I’m having the most difficulty trying to build a custom event for getting the moment an entity is ‘attached’ in the Photon Bolt architecture.
http://doc.photonengine.com/en-us/bolt/current/getting-started/bolt-102-properties-and-callbacks

The difficulty is increased because the 2nd “Creating Event Nodes” example documentation for FlowCanvas, regarding custom events that have a type of object you can equip doesn’t function, so I can’t work out how all of that comes together (e.g. if value is getting the ‘MyComponent’ (or whatever that would be)), etc.
Also I can’t use the “public override void Attached()” inside the custom event as it says the “Attached” namespace isn’t valid.
Note that I’d like to use ‘Transform.GetComponent<BoltEntity>().GetState<IState>()’ (with Transform as the MyComponent value) because I believe that’s required for the ‘Bolt.EntityBehaviour<()> section to function. At the very least I needed that elsewhere.
I’m trying to make it as generic as possible so I can use it for all my entity’s required using Photon Bolt.
Thanks a lot for your response, hoping the above can help find some way to solving this, even if you could just give a more functional example for the second Custom Event type shown in the FlowCanvas documentation.