Class: Component

Core.Component

new Core.Component (owner)object

Component - the empty component object used as a c'tor to extend it. (this method replaces inheritance to keep wide support)
Name Type Description
owner Core.Entity parent entity
Returns:
Type Description
object null

Members

Core.Component.component_name String static

the component's name

parent Core.Entity

component's owner ( and parent )

Methods

Core.Component.typeToName (type)String static

static-like method that converts type to component name.
Name Type Description
type Type the type of the component
Returns:
Type Description
String the component's name

update ()

stub update function