Class Engine::HierarchyPlugin¶
ClassList > Engine > HierarchyPlugin
Registers Parent andHierarchySystem for parent-child hierarchies.More...
#include <HierarchyPlugin.hpp>
Inherits the following classes: Engine::IPlugin
Public Functions¶
| Type | Name |
|---|---|
| virtual void | Init (Registry & registry) override Initializes the plugin, registering components and systems. |
Public Functions inherited from Engine::IPlugin¶
See Engine::IPlugin
| Type | Name |
|---|---|
| virtual void | Init (Registry & registry) = 0 Initializes the plugin, registering components and systems. |
| virtual | ~IPlugin () = default |
Public Static Functions¶
| Type | Name |
|---|---|
| void | AttachChild (Registry & registry, Entity child, Entity parent, bool relative=true) Links child underparent ; optionally marks the child position as relative. |
Detailed Description¶
Initialize this plugin before PositionPlugin so HierarchySystem runs before PositionSystem snapshots prevX/prevY/prevZ.
Public Functions Documentation¶
function Init¶
Initializes the plugin, registering components and systems.
Parameters:
registryA reference to the main ECS registry.
Implements Engine::IPlugin::Init
Public Static Functions Documentation¶
function AttachChild¶
Links child underparent ; optionally marks the child position as relative.
static void Engine::HierarchyPlugin::AttachChild (
Registry & registry,
Entity child,
Entity parent,
bool relative=true
)
Parameters:
registryECS registry with Parent and Position registered.childEntity that receives Parent.parentEntity referenced by Parent::parent.relativeWhen true, sets Position::relative onchild(requires Position).
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Plugins/HierarchyPlugin.hpp