PlayerMovementSystem now only updates the velocity of the local player, as it should

This commit is contained in:
2016-02-09 16:08:06 +01:00
parent c69a80f5ba
commit e69864680d
2 changed files with 16 additions and 8 deletions
+3 -2
View File
@@ -5,14 +5,13 @@
#include "Input/FirstPersonInputController.h"
#include <imgui/imgui.h>
class PlayerMovementSystem : public ImpureSystem, PureSystem
class PlayerMovementSystem : public ImpureSystem
{
public:
PlayerMovementSystem(SystemParams params);
~PlayerMovementSystem();
virtual void Update(double dt) override;
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt);
private:
// State
@@ -21,4 +20,6 @@ private:
EventRelay<PlayerMovementSystem, Events::PlayerSpawned> m_EPlayerSpawned;
bool OnPlayerSpawned(Events::PlayerSpawned& e);
void updateMovementControllers(double dt);
void updateVelocity(double dt);
};