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

RenderingSystem

Extends:

System → RenderingSystem

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

onStart: *

public

Method Summary

Public Methods
public

renderShape(system: System, entity: Entity)

Renders a shape on an entity with a Shape component

public

start(system: *)

public

update(system: *, time: *)

Private Methods
private

_drawCircle(system: System, x: number, y: number, radius: number, color: color): Pixi.Graphic

Creates a Circle Pixi Graphics object

private

_drawRect(x: number, y: number, width: number, height: number, color: color): Pixi.Graphic

Creates a Rect Pixi Graphics object

Inherited Summary

From class System
public
public
public
public
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

Override:

System#constructor

Public Members

public onStart: * source

Override:

System#onStart

public onUpdate: * source

Override:

System#onUpdate

Public Methods

public renderShape(system: System, entity: Entity) source

Renders a shape on an entity with a Shape component

Params:

NameTypeAttributeDescription
system System
entity Entity

public start(system: *) source

Params:

NameTypeAttributeDescription
system *

public update(system: *, time: *) source

Params:

NameTypeAttributeDescription
system *
time *

Private Methods

private _drawCircle(system: System, x: number, y: number, radius: number, color: color): Pixi.Graphic source

Creates a Circle Pixi Graphics object

Params:

NameTypeAttributeDescription
system System
x number
y number
radius number
color color

eg. '0xFFFFFF' or 'white'

Return:

Pixi.Graphic

Pixi Graphics object

private _drawRect(x: number, y: number, width: number, height: number, color: color): Pixi.Graphic source

Creates a Rect Pixi Graphics object

Params:

NameTypeAttributeDescription
x number
y number
width number
height number
color color

eg. '0xFFFFFF' or 'white'

Return:

Pixi.Graphic

Pixi Graphics object