Is there a way to retrieve a pointer to the context from a class that’s not a LogicComponent or Application subclass?
I’m trying to make some classes generic without tight coupling to Urho3D. So I got my World, Chunk and ChunkModel classes. My World has many Chunks that has one ChunkModel. Both World and Chunk are “generic” and no 3D context is needed. But I don’t want to pass the context pointer through World and chunk just to get it in my ChunkModel class that actually requires it.
I would like to do something as GetSubsystem->context_ from my ChunkModel class. Any ideas or pointers(pun intended)?