addEntityComponent

Script::addEntityComponent

Adds a Component to an Entity.

Declaration

template <typename T>
void addEntityComponent(Entity entity, T component);

Parameters

Name

Type

Description

entity

Entity

The Entity to add the Component to.

component

T (Component)

The component to add to the Entity.

Returns

None.