Skip to content

Class Engine::PluginExample

ClassList > Engine > PluginExample

A template plugin demonstrating how to bundle Data + Logic + Events.

  • #include <PluginExample.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 AttachToEntity (Registry & registry, Entity entity)
A helper function to easily bundle all related plugin components onto a specific entity. Prevents the game developer from having to manually call AddComponent multiple times.

Public Functions Documentation

function Init

Initializes the plugin, registering components and systems.

virtual void Engine::PluginExample::Init (
    Registry & registry
) override

Parameters:

  • registry A reference to the main ECS registry.

Implements Engine::IPlugin::Init


Public Static Functions Documentation

function AttachToEntity

A helper function to easily bundle all related plugin components onto a specific entity. Prevents the game developer from having to manually call AddComponent multiple times.

static void Engine::PluginExample::AttachToEntity (
    Registry & registry,
    Entity entity
) 



The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Plugins/PluginExample.hpp