Immediate Stats
Game stats that reset every frame, inspired by immediate mode GUI.
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 Auto Plugin
If you use Bevy Auto Plugin, you can also use the bevy_auto_plugin feature flag.
This adds build hooks that automatically add the reset plugin.
;
// Use hook to add the `ResetComponentPlugin` to `MyPlugin` automatically.
;
Version Compatibility
| Bevy | Immediate Stats |
|---|---|
0.18 |
0.4 |
0.17 |
0.3 |
0.16 |
0.1 - 0.2 |