Macros§
Attribute Macros§
- listen
- 监听,为函数增加监听器属性
example:
#[listen(component = (Node, Position, Modify), entity = (Node, Delete))]
Derive Macros§
- Ambiguity
SetLabel - Bundle
- Component
- 实现组件,冲下组件存储 example: #[derive(Component)] #[storage=XXX]
- RunCriteria
Label - Stage
Label - System
Label - System
Param - Implement
SystemParam
to use a struct as a parameter in a system