Kanfor
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!
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!
You can definitely do it, and that’s one of the main concepts
Example using LogicComponent: github.com/urho3d/Urho3D/blob/m … 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: github.com/urho3d/Urho3D/blob/m … eCache.cpp
All depends on your class.
Thanks you!
It was very useful