Fixed indentation
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user