Home Reference Source
import {ShapeComponent} from 'terra/src/modules/rendering/shapeComponent.js'
public class | source

ShapeComponent

Extends:

Component → ShapeComponent

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public

Inherited Summary

From class Component
public
public
public
public
public

offlineAttach(entity: *)

This is called if attached while game is not running

public

This is called when it is attached to an Entity

public

This is called when it is detatched from an Entity

public

setDependency(id: *)

private

_checkDependencies(entity: *)

This will check if the entity it's being attached to, has this component's dependencies.

Public Constructors

public constructor() source

Override:

Component#constructor

Public Methods

public onAttach() source

This is called when it is attached to an Entity

Override:

Component#onAttach

public onDetatch() source

This is called when it is detatched from an Entity

Override:

Component#onDetatch