Skip to content

Class Engine::ScriptPlugin

ClassList > Engine > ScriptPlugin

Registers ScriptComponent andScriptSystem with the registry.

  • #include <ScriptPlugin.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, const ScriptComponent & script)

Public Functions Documentation

function Init

Initializes the plugin, registering components and systems.

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

Parameters:

  • registry A reference to the main ECS registry.

Implements Engine::IPlugin::Init


Public Static Functions Documentation

function AttachToEntity

static void Engine::ScriptPlugin::AttachToEntity (
    Registry & registry,
    Entity entity,
    const ScriptComponent & script
) 


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