Entity
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
container: * |
|
| public |
|
|
| public |
|
|
| public set |
|
|
| public get |
x: * |
|
| public set |
|
|
| public get |
y: * |
|
| Private Members | ||
| private |
|
|
| private |
|
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
Attach a Component to this Entity |
|
| public |
|
|
| public |
componentCallback(component: Component) Whenever a component is attached, it's callbacks are called |
|
| public |
Detatch a component from entity |
|
| public |
Find a specific Component from this Entity |
|
| public |
listenSignal(signalId: *, callback: *) |
|
| public |
sendSignal(signalId: *, data: *) |
|
Public Constructors
public constructor() source
Public Members
public container: * source
public set x source
public get x: * source
public set y source
public get y: * source
Private Members
Public Methods
public attach(component: Component) source
Attach a Component to this Entity
Params:
| Name | Type | Attribute | Description |
| component | Component |
public attachComponents() source
public componentCallback(component: Component) source
Whenever a component is attached, it's callbacks are called
Params:
| Name | Type | Attribute | Description |
| component | Component |
public detach(ID: string) source
Detatch a component from entity
Params:
| Name | Type | Attribute | Description |
| ID | string | of component |
public find(id: string): Component source
Find a specific Component from this Entity
Params:
| Name | Type | Attribute | Description |
| id | string | ID of the component |
public listenSignal(signalId: *, callback: *) source
Params:
| Name | Type | Attribute | Description |
| signalId | * | ||
| callback | * |
public sendSignal(signalId: *, data: *) source
Params:
| Name | Type | Attribute | Description |
| signalId | * | ||
| data | * |
