30 virtual ~Module() =
default;
33 auto Id() const noexcept {
return m_id; }
49 virtual void Clear() noexcept {}
56 void SetId(
size_t id)
noexcept { m_id = id; }
Modules are extensions that provide functionality to the engine.
Definition: Module.h:18
virtual void OnBeforeSceneFragmentLoad()
Called on registered modules immediately before loading a SceneFragment file.
Definition: Module.h:42
Module(size_t id=0) noexcept
Constructor for the Module interface.
Definition: Module.h:27
virtual void Clear() noexcept
Called on registered modules prior to clearing the Registry. This includes Scene::Unload() and NcEngi...
Definition: Module.h:49
auto Id() const noexcept
Get the module's unique id.
Definition: Module.h:33
virtual void OnAfterSceneFragmentLoad()
Called on registered modules immediately after loading a SceneFragment file.
Definition: Module.h:45
virtual void OnBuildTaskGraph(task::UpdateTasks &, task::RenderTasks &)
Called on registered modules when the task graphs are constructed.
Definition: Module.h:36
virtual void OnBeforeSceneLoad()
Called on registered modules prior to loading a new scene.
Definition: Module.h:39
Definition: ModuleRegistry.h:19
Task graph interface for building a TaskGraphContext with Module tasks.
Definition: TaskGraph.h:36