Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / ComponentsContainer
Class: ComponentsContainer
Base class for anyone who wants to have components
Extended by
Constructors
new ComponentsContainer()
new ComponentsContainer():
ComponentsContainer
Returns
Defined in
Properties
components
components:
BaseComponent
[] =[]
Defined in
Methods
addComponent()
addComponent(
component
):void
Parameters
• component: BaseComponent
Returns
void
Defined in
configureComponents()
configureComponents(
info
):void
Parameters
• info
• info.components?: [string
, BaseComponent
][]
Returns
void
Defined in
getComponent()
getComponent<
Type
>(ctor
):undefined
|Type
Type Parameters
• Type extends BaseComponent
Parameters
• ctor
Returns
undefined
| Type
Defined in
getComponentByName()
getComponentByName(
class_name
):undefined
|BaseComponent
Parameters
• class_name: string
Returns
undefined
| BaseComponent
Defined in
removeAllComponents()
removeAllComponents():
void
Returns
void
Defined in
removeComponent()
removeComponent(
component
):void
Parameters
• component: BaseComponent
Returns
void