import {RenderingSystem} from 'terra/src/modules/rendering/renderingSystem.js'
RenderingSystem
Extends:
Constructor Summary
Public Constructor | ||
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 |
Creates a Rect Pixi Graphics object |
Inherited Summary
From class System | ||
public |
|
|
public |
|
|
public |
|
|
public |
onUpdate: * |
|
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 Members
Public Methods
public renderShape(system: System, entity: Entity) source
Renders a shape on an entity with a Shape component
public start(system: *) source
Params:
Name | Type | Attribute | Description |
system | * |
public update(system: *, time: *) source
Params:
Name | Type | Attribute | Description |
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
Return:
Pixi.Graphic | Pixi Graphics object |