Class System

Iterates over Entities.

From these Entities its get Components and modify them. A System contains 1 or more Pools. A System is contained by 1 World.

Methods

System:new (table) Creates a new SystemClass.
System:setEnabled (enable) Sets if the System is enabled
System:isEnabled () Returns is the System is enabled
System:getWorld () Returns the World the System is in.

Callbacks

System:init (world) Callback for system initialization.
System:onEnabled () Callback for when a System is enabled.
System:onDisabled () Callback for when a System is disabled.


Methods

System:new (table)
Creates a new SystemClass.

Parameters:

  • table filters A table containing filters (name = {components...})

Returns:

    System A new SystemClass
System:setEnabled (enable)
Sets if the System is enabled

Parameters:

  • enable boolean

Returns:

    System self
System:isEnabled ()
Returns is the System is enabled

Returns:

    boolean
System:getWorld ()
Returns the World the System is in.

Returns:

    World

Callbacks

System:init (world)
Callback for system initialization.

Parameters:

  • world World The World the System was added to
System:onEnabled ()
Callback for when a System is enabled.
System:onDisabled ()
Callback for when a System is disabled.
generated by LDoc 1.4.6 Last updated 2023-02-26 15:29:07