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 -11
View File
@@ -1,5 +1,5 @@
#ifndef DirectionalLight_h__
#define DirectionalLight_h__
#ifndef Components_DirectionalLight_h__
#define Components_DirectionalLight_h__
#include "Component.h"
#include "Color.h"
@@ -7,14 +7,13 @@
namespace Components
{
struct DirectionalLight : Component
{
float Intensity;
float MaxRange;
float SpecularIntensity;
Color color;
};
REGISTER_COMPONENT("DirectionalLight", DirectionalLight);
struct DirectionalLight : Component
{
float Intensity;
float MaxRange;
float SpecularIntensity;
Color Color;
};
}
#endif // !DirectionalLight_h__
#endif // !Components_DirectionalLight_h__