#ifndef FillOctreeSystem_h__ #define FillOctreeSystem_h__ #include "../Core/System.h" #include "../Core/Octree.h" #include "Collision.h" #include "EntityAABB.h" class FillOctreeSystem : public ImpureSystem, public PureSystem { public: FillOctreeSystem(World* world, EventBroker* eventBroker, Octree* octree, const std::string& fillComponentType) : System(world, eventBroker) , PureSystem(fillComponentType) , m_Octree(octree) { } virtual void Update(double dt) override; virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt) override; private: Octree* m_Octree; }; #endif