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,5 +1,5 @@
#ifndef Bounds_h__
#define Bounds_h__
#ifndef Components_Bounds_h__
#define Components_Bounds_h__
#include "Component.h"
#include "AABB.h"
@@ -7,11 +7,10 @@
namespace Components
{
struct Bounds : Component
{
AABB BB; //Axis Aligned Bounding Box
};
REGISTER_COMPONENT("Bounds", Bounds);
struct Bounds : Component
{
AABB BoundingBox; //Axis Aligned Bounding Box
};
}
#endif // !Bounds_h__
#endif // !Components_Bounds_h__