Home Reference Source
import {System} from 'terra/src/core/system.js'
public class | source

System

Direct Subclass:

RenderingSystem

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public

Method Summary

Public Methods
public

getComponentFromEntity(entityId: string, componentId: string): *

Retrieves a Components from a specific Entity

public

Retrieves an Entity from the Game

public

listenSignal(signalId: *, callback: *)

public

sendSignal(signalId: *, data: *)

Public Constructors

public constructor() source

Public Members

public game: Game source

public id: string source

public onStart: function source

public onUpdate: * source

Public Methods

public getComponentFromEntity(entityId: string, componentId: string): * source

Retrieves a Components from a specific Entity

Params:

NameTypeAttributeDescription
entityId string

The ID of the Entity

componentId string

The ID of the Component

Return:

*

public getEntity(id: string): Entity source

Retrieves an Entity from the Game

Params:

NameTypeAttributeDescription
id string

ID of the entity

Return:

Entity

public listenSignal(signalId: *, callback: *) source

Params:

NameTypeAttributeDescription
signalId *
callback *

public sendSignal(signalId: *, data: *) source

Params:

NameTypeAttributeDescription
signalId *
data *