How can I resolve component types in a way that supports adding new types relatively easily?
- by John
I am trying to build an Entity Component System for an interactive application developed using C++ and OpenGL. My question is quite simple. In my GameObject class I have a collection of Components. I can add and retrieve components.
class GameObject: public Object
{
public:
GameObject(std::string objectName);
~GameObject(void);
…