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
+10 -9
View File
@@ -1,5 +1,7 @@
#ifndef Model_h__
#define Model_h__
#ifndef Components_Model_h__
#define Components_Model_h__
#include <string>
#include "Component.h"
#include "Color.h"
@@ -7,12 +9,11 @@
namespace Components
{
struct Model : Component
{
std::string ModelName;
Color color;
};
REGISTER_COMPONENT("Model", Model);
struct Model : Component
{
std::string ModelFile;
Color Color;
};
}
#endif // !Model_h__
#endif // !Components_Model_h__