Immediate Stats
Game stats that reset every frame, inspired by immediate mode rendering.
This makes it easy to implement temporary buffs/debuffs, and effects that change over time. Using a derive macro, stat resets are propagated to any stat fields, making it easy to compose stats into more complex objects.
;
Bevy
There is build-in integration with the Bevy Engine via the bevy feature flag.
This adds plugins for resetting StatContainer components and resources.
;
Bevy Butler
If you use Bevy Butler, you can also use the bevy_butler feature flag.
This automatically registers the required system(s) using the add_component attribute
or the existing insert_resource macro.
;
// `StatContainer` derive adds the `add_component` attribute
// and hooks into the existing `insert_resource` macro.
// Adds `reset_component_modifiers` system.
// Adds `reset_resource_modifiers` system.
;
Version Compatibility
| Bevy | Immediate Stats |
|---|---|
0.16 |
0.1 |