module ECS::DSL::System
Defined in:
flecs/dsl/system.crConstant Summary
-
INTERNAL_TERMS_COUNTER =
[] of Nil
-
Hold some temporary state held in mutable DSL "constants".
Macro Summary
- _dsl_begin
- _dsl_end
- phase(name)
- singleton(decl, write = false, read = true)
-
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.
Macro Detail
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.
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.