Subscribte to event update in other class

Hi, urhofans.

I have a own class when I would like to subscribe an event update.
Can I do it? Must I create a class like LogicComponent, for example?

Thank you very much! :smiley:

You can definitely do it, and that’s one of the main concepts :smiley:

Example using LogicComponent: … ehicle.cpp You could also use a regular Component.

Here’s another option, inherit from a relatively lighter weight Object class if your class fits more of the subsystem concept: … eCache.cpp

All depends on your class.

Thanks you!
It was very useful :stuck_out_tongue: