Changed System to take World through constructor and store it instead, cause it makes more sense.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
class PlayerSpawnSystem : public ImpureSystem
|
||||
{
|
||||
public:
|
||||
PlayerSpawnSystem(EventBroker* eventBroker);
|
||||
PlayerSpawnSystem(World* world, EventBroker* eventBroker);
|
||||
|
||||
virtual void Update(World* world, double dt) override;
|
||||
virtual void Update(double dt) override;
|
||||
|
||||
private:
|
||||
EventRelay<PlayerSpawnSystem, Events::InputCommand> m_OnInputCommand;
|
||||
|
||||
Reference in New Issue
Block a user