Refactored factory and component system.
This commit is contained in:
@@ -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__
|
||||
Reference in New Issue
Block a user