16 lines
249 B
C++
Executable File
16 lines
249 B
C++
Executable File
#ifndef Component_h__
|
|
#define Component_h__
|
|
|
|
#include "Factory.h"
|
|
#include "Entity.h"
|
|
|
|
struct Component
|
|
{
|
|
EntityID Entity;
|
|
|
|
virtual Component* Clone() const = 0;
|
|
};
|
|
|
|
class ComponentFactory : public Factory<Component*> { };
|
|
|
|
#endif // Component_h__
|