Closed C0Florent closed 1 month ago
This PR adds a new member function in the IComponent interface: IComponent::any_cast
IComponent
IComponent::any_cast
This allows any code accessing the ComponentManager to access the SparseArrays of components, without knowing any concrete type of loaded components.
ComponentManager
SparseArray
This PR also implements this new function in AComponent for all current components, so that they don't have to reimplement the method.
AComponent
You may read the added documentation for any additional info on this PR's additions
This PR adds a new member function in the
IComponent
interface:IComponent::any_cast
This allows any code accessing the
ComponentManager
to access theSparseArray
s of components, without knowing any concrete type of loaded components.This PR also implements this new function in
AComponent
for all current components, so that they don't have to reimplement the method.You may read the added documentation for any additional info on this PR's additions