Changed System to take World through constructor and store it instead, cause it makes more sense.
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
class CollisionSystem : public PureSystem
|
||||
{
|
||||
public:
|
||||
CollisionSystem(EventBroker* eventBroker, Octree* octree)
|
||||
: System(eventBroker)
|
||||
CollisionSystem(World* world, EventBroker* eventBroker, Octree* octree)
|
||||
: System(world, eventBroker)
|
||||
, PureSystem("AABB")
|
||||
, m_Octree(octree)
|
||||
, zPress(false)
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
EVENT_SUBSCRIBE_MEMBER(m_EKeyUp, &CollisionSystem::OnKeyUp);
|
||||
}
|
||||
|
||||
virtual void UpdateComponent(World* world, EntityWrapper& entity, ComponentWrapper& component, double dt) override;
|
||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt) override;
|
||||
|
||||
private:
|
||||
Octree* m_Octree;
|
||||
|
||||
Reference in New Issue
Block a user