Skip to content

File System.hpp

File List > ECS > System.hpp

Go to the documentation of this file

#ifndef ENGINE_ECS_SYSTEM_HPP_
#define ENGINE_ECS_SYSTEM_HPP_
#include "Entity.hpp"
#include <set>

namespace Engine {
class Registry;

class System {
  public:
    virtual ~System() = default;
    virtual void Update(Registry& registry, float dt) {}
    virtual void Render(Registry& registry) {}
    virtual void RenderScreen(Registry& registry) {}
    virtual void OnSceneUnloaded(Registry& registry) {}

    std::set<Entity> m_Entities;
};
} // namespace Engine

#endif // ENGINE_ECS_SYSTEM_HPP_