Class: Component

Component(params)

A Component in the ECS.

Constructor

new Component(params)

constructor
Parameters:
Name Type Description
params Object | * The parameters for the component. If it's not an object, it creates a property called value on the component, and assigns the value of params to it.
Source: