Class: EntitySystem

(abstract) EntitySystem(components)

This systems renders only entities that match the required components.

Constructor

(abstract) new EntitySystem(components)

Define required components
Parameters:
Name Type Description
components Array.<function()>
Source:

Members

components :Array.<function()>

Type:
  • Array.<function()>
Source:

Methods

getComponents() → {Array.<function()>}

Get list of components to work with this system
Source:
Returns:
Type
Array.<function()>

processEntities(entities)

Process all entities matching the required components
Parameters:
Name Type Description
entities Array.<Entity>
Source:

update(entity)

Parameters:
Name Type Description
entity Entity
Source: