Skip to content

Class Engine::InputPlugin

ClassList > Engine > InputPlugin

Bundles the Input component andInputManager resource into the ECS registry.More...

  • #include <InputPlugin.hpp>

Inherits the following classes: Engine::IPlugin

Public Functions

Type Name
virtual void Init (Registry & registry) override
Registers the Input component and ensures theInputManager resource is registered.

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, int idxPlayer)
Attaches an Input component to a specified entity.

Detailed Description

Provides initialization logic and utility methods to attach the Input component to entities.

Public Functions Documentation

function Init

Registers the Input component and ensures theInputManager resource is registered.

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

Parameters:

  • registry Main ECS registry.

Implements Engine::IPlugin::Init


Public Static Functions Documentation

function AttachToEntity

Attaches an Input component to a specified entity.

static void Engine::InputPlugin::AttachToEntity (
    Registry & registry,
    Entity entity,
    int idxPlayer
) 

Parameters:

  • registry Main ECS registry.
  • entity Target entity to attach input control to.
  • idxPlayer Player identifier.


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