System

System

Abstract baseclass for ecs systems

A System is a function that acts on all entites with a certain set of components

Constructor

new System(component_names, priority)

Source:
Parameters:
Name Type Default Description
component_names Array.<String>

array of components an entity needs to have to be updated by this system

priority Number 0

optional priority, this decides the execution order of the systems

Methods

update()

Source:

Called by the entity component system