Fixed indentation

This commit is contained in:
stiffly
2015-12-11 15:29:57 +01:00
parent 16d636a87c
commit 3da69c8a1b
5 changed files with 171 additions and 175 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ class EventBroker;
class BaseEventRelay class BaseEventRelay
{ {
friend class EventBroker; friend class EventBroker;
protected: protected:
BaseEventRelay(std::string contextTypeName, std::string eventTypeName) BaseEventRelay(std::string contextTypeName, std::string eventTypeName)
@@ -70,7 +70,7 @@ bool EventRelay<ContextType, EventType>::Receive(const std::shared_ptr<Event> ev
class EventBroker class EventBroker
{ {
template <typename ContextType, typename EventType> friend class EventRelay; template <typename ContextType, typename EventType> friend class EventRelay;
public: public:
EventBroker() EventBroker()
+4 -8
View File
@@ -5,20 +5,16 @@ void PlayerSystem::Update(World * world, ComponentWrapper & player, double dt)
{ {
if (input.Forward) { if (input.Forward) {
m_Direction.z = -1; m_Direction.z = -1;
} } else if (input.Back) {
else if (input.Back) {
m_Direction.z = 1; m_Direction.z = 1;
} } else {
else {
m_Direction.z = 0; m_Direction.z = 0;
} }
if (input.Left) { if (input.Left) {
m_Direction.x = -1; m_Direction.x = -1;
} } else if (input.Right) {
else if (input.Right) {
m_Direction.x = 1; m_Direction.x = 1;
} } else {
else {
m_Direction.x = 0; m_Direction.x = 0;
} }
m_EventBroker->Process<PlayerSystem>(); m_EventBroker->Process<PlayerSystem>();