module ECS::DSL::System

Defined in:

flecs/dsl/system.cr

Constant Summary

INTERNAL_TERMS_COUNTER = [] of Nil

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

Macro Summary

Macro Detail

macro _dsl_begin #

[View source]
macro _dsl_end #

[View source]
macro phase(name) #

[View source]
macro 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.


[View source]
macro 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.


[View source]