Attribute Macros§
- action
- Add observers to a global action observer entity.
This macro must be placed above
#[derive(Component)]
as it sets theon_add
andon_remove
hooks.
Derive Macros§
- Action
- Declare an action, this is a component that also defines a relation between actions and the singleton observer.