src/necsus/runtime/pragmas
Theme:
🌗 Match OS
🌑 Dark
🌕 Light
Search:
Group by:
Section
Type
template accessory ( ) {.pragma .}
Flags that a component should be attached to existing archetypes rather than creating new ones. This is a useful tool for reducing build times when iteration over a set of entities is inexpensive.
template active ( states : varargs [ typed ] ) {.pragma .}
Indicates a value that must be true for a system to run
template depends ( dependencies : varargs [ typed ] ) {.pragma .}
Marks that a system depends on another system
template eventSys ( ) {.pragma .}
Marks that a system should be triggered for a specific kind of event
template instanced ( ) {.pragma .}
Indicates that a system proc should be used as an initializer to create an instance of a system. During the primary loop, the tick proc is called on that instance.
template loopSys ( ) {.pragma .}
Marks that a system should always be added as part of the standard loop
template maxCapacity ( capacity : Natural ) {.pragma .}
Indicates the maximum number of entities that might exist with a specific component
template restoreSys ( ) {.pragma .}
Marks a proc that restores values from JSON
template saveSys ( ) {.pragma .}
Marks that a proc generates a saved value
template startupSys ( ) {.pragma .}
Marks that a system should always be added as a setup system
template teardownSys ( ) {.pragma .}
Marks that a system should always be added as a teardown
Made with Nim. Generated: 2025-04-16 03:56:46 UTC