Refactored factory and component system.

This commit is contained in:
2014-03-07 01:08:54 +01:00
parent 18197bf21d
commit e65db077d5
30 changed files with 313 additions and 284 deletions
+8 -9
View File
@@ -1,17 +1,16 @@
#ifndef Stat_h__
#define Stat_h__
#ifndef Components_Stat_h__
#define Components_Stat_h__
#include "Component.h"
namespace Components
{
struct Stat : Component
{
int Health;
bool Destroyable;
};
REGISTER_COMPONENT("Stat", Stat);
struct Stat : Component
{
float Health;
bool Destroyable;
};
}
#endif // !Stat_h__
#endif // !Components_Stat_h__