Fixed indentation
This commit is contained in:
@@ -17,7 +17,7 @@ class EventBroker;
|
||||
|
||||
class BaseEventRelay
|
||||
{
|
||||
friend class EventBroker;
|
||||
friend class EventBroker;
|
||||
|
||||
protected:
|
||||
BaseEventRelay(std::string contextTypeName, std::string eventTypeName)
|
||||
@@ -70,7 +70,7 @@ bool EventRelay<ContextType, EventType>::Receive(const std::shared_ptr<Event> ev
|
||||
|
||||
class EventBroker
|
||||
{
|
||||
template <typename ContextType, typename EventType> friend class EventRelay;
|
||||
template <typename ContextType, typename EventType> friend class EventRelay;
|
||||
|
||||
public:
|
||||
EventBroker()
|
||||
|
||||
@@ -5,20 +5,16 @@ void PlayerSystem::Update(World * world, ComponentWrapper & player, double dt)
|
||||
{
|
||||
if (input.Forward) {
|
||||
m_Direction.z = -1;
|
||||
}
|
||||
else if (input.Back) {
|
||||
} else if (input.Back) {
|
||||
m_Direction.z = 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
m_Direction.z = 0;
|
||||
}
|
||||
if (input.Left) {
|
||||
m_Direction.x = -1;
|
||||
}
|
||||
else if (input.Right) {
|
||||
} else if (input.Right) {
|
||||
m_Direction.x = 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
m_Direction.x = 0;
|
||||
}
|
||||
m_EventBroker->Process<PlayerSystem>();
|
||||
|
||||
Reference in New Issue
Block a user