Class Engine::ShapePlugin¶
ClassList > Engine > ShapePlugin
Plugin that bundles the ShapeComponent andShapeSystem .
#include <ShapePlugin.hpp>
Inherits the following classes: Engine::IPlugin
Public Functions¶
| Type | Name |
|---|---|
| virtual void | Init (Registry & registry) override Initializes the ShapePlugin by registering theShapeComponent andShapeSystem . |
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 | AttachToEntity (Registry & registry, Entity entity, const ShapeComponent & shape) Attaches a ShapeComponent to an entity. |
Public Functions Documentation¶
function Init¶
Initializes the ShapePlugin by registering theShapeComponent andShapeSystem .
Parameters:
registryThe ECS registry.
Implements Engine::IPlugin::Init
Public Static Functions Documentation¶
function AttachToEntity¶
Attaches a ShapeComponent to an entity.
static void Engine::ShapePlugin::AttachToEntity (
Registry & registry,
Entity entity,
const ShapeComponent & shape
)
Parameters:
registryThe ECS registry.entityThe entity to attach the shape to.shapeThe shape component to attach.
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Plugins/ShapePlugin.hpp