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 -10
View File
@@ -1,5 +1,5 @@
#ifndef Input_h__
#define Input_h__
#ifndef Components_Input_h__
#define Components_Input_h__
#include "Component.h"
#include <GLFW/glfw3.h>
@@ -7,13 +7,13 @@
namespace Components
{
struct Input : Component
{
int KeyState[GLFW_KEY_LAST];
float MouseState[2];
float dX, dY;
};
REGISTER_COMPONENT("Input", Input);
struct Input : Component
{
int KeyState[GLFW_KEY_LAST];
float MouseState[2];
float dX, dY;
};
}
#endif // !Input_h__
#endif // !Components_Input_h__