Tugduoff / RType

RTypeeeeeeeuh
3 stars 0 forks source link

:sparkles: Make Component plugins `any_cast` #75

Closed C0Florent closed 1 month ago

C0Florent commented 1 month ago

This PR adds a new member function in the IComponent interface: IComponent::any_cast

This allows any code accessing the ComponentManager to access the SparseArrays 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