Crate bevy_attr

Source
Expand description

Automatic management of highly modular, highly parallel values with minimal overhead.

Good examples of things to use this crate for are in-game stats, and systems like health management (both maximum health and health could be implemented as attributes).

See the Attribute trait for a more detailed overview, or view the examples.

Structs§

AttributePlugin
Registers the required information for an Attribute.
DirtyAttr
Marker component to indicates that an Attribute’s modifiers have changed since the last update.
ModifierGenericPlugin
Registers the required information for a ModifierGeneric.
ModifierPriority
Indicates the priority of a modifier.

Traits§

Attribute
Marker trait for components which act as attributes.
Modifier
A modifier on an Attribute.
ModifierGeneric
A generic version of Modifier.
Reset
Resets a variable to its default value.

Type Aliases§

ModifierPlugin
Registers the required information for a Modifier.