System.new
Creates a new SystemClass. The return value is a class; the World constructs instances when the class is added.
system = System.new( name, definition )
Section titled “system = System.new( name, definition )”Creates a new SystemClass. The return value is a class; the World constructs instances when the class is added.
Reject components in filter lists with the ! prefix or Components.reject (same rules as FilterDefinition).
system = System.new( name, definition )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string | Name of the System. If the first argument is not a string, it is treated as the definition. |
definition |
table<string, FilterDefinition> | Map of pool names to filter definitions (component names, optional ! reject entries) |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
system |
SystemClass |
system = System.new( definition )
Section titled “system = System.new( definition )”system = System.new( definition )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
definition |
table<string, FilterDefinition> | Map of pool names to filter definitions (component names, optional ! reject entries) |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
system |
SystemClass |