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
+7 -8
View File
@@ -1,16 +1,15 @@
#ifndef PowerUp_h__
#define PowerUp_h__
#ifndef Components_PowerUp_h__
#define Components_PowerUp_h__
#include "Component.h"
namespace Components
{
struct PowerUp : Component
{
int Speed;
};
REGISTER_COMPONENT("PowerUp", PowerUp);
struct PowerUp : Component
{
float Speed;
};
}
#endif // !PowerUp_h__
#endif // !Components_PowerUp_h__