module

ECS::DSL::System

Constants

INTERNAL_TERMS_COUNTER = [] of Nil

Hold some temporary state held in mutable DSL "constants".

Macros

_dsl_begin
Source
_dsl_end
Source
phase(name)
Source
singleton(decl, write = false, read = true)

Similar to term, singleton declares a query term, but in this case it refers to a singleton component (i.e. a global entity with the same name as the component itself). As such, this macro only declares accessors on Iter, not Iter::Row.

Source
term(decl, write = false, read = true, of = nil, relate = nil)

Declare a standard term in the query for this system, allowing read or write or read/write access to the given component type under the given accessor name. For every row in the query results, the component will be accessible to read and/or write using the accessors that get implicitly declared by this macro on Iter and Iter::Row.

Source