WIP InputController for easier command handling in systems

This commit is contained in:
2014-05-06 14:33:02 +02:00
parent 0e068be77b
commit 8c8edd0e8e
10 changed files with 77 additions and 52 deletions
+3
View File
@@ -1,6 +1,8 @@
#ifndef Events_InputCommand_h__
#define Events_InputCommand_h__
#include <boost/any.hpp>
#include "EventBroker.h"
namespace Events
@@ -10,6 +12,7 @@ struct InputCommand : Event
{
unsigned int PlayerID;
std::string Command;
boost::any Value;
};
}
-18
View File
@@ -1,18 +0,0 @@
#ifndef Events_InputCommandValue_h__
#define Events_InputCommandValue_h__
#include "EventBroker.h"
#include "Events/InputCommand.h"
namespace Events
{
template <typename T>
struct InputCommandValue : public InputCommand
{
T Value;
};
}
#endif // Events_InputCommandValue_h__