Function EntityComponent.this

Constructs an entity component and attaches it to the given entity.

this(
  EventManager eventManager,
  Entity hostEntity
);

Parameters

NameDescription
eventManager The event manager.
hostEntity The entity to attach to.