Namespace ElectricDrill.AstraRpgFramework.Stats
Classes
- EntityStats
Component that manages the statistics of an entity in the game. It handles base stats, flat stat modifiers, stat to stat modifiers, and percentage stat modifiers.
Base stats can either be fixed or come from the entity's class (if one is available on the Game Object). When stats change because of a modifier of any kind, the assigned StatChangedGameEvent is raised.
- Stat
Represents a stat in the RPG system that extends BoundedValue with attribute scaling capabilities. Stats can be scaled based on entity attributes and provide equality comparison based on name.
- StatMenuItems
Provides Unity Editor menu items for creating Stat assets.
- StatSet
A ScriptableObject that defines a collection of stats that can be used by entities. Implements IStatContainer to provide stat containment functionality.
- StatSetInstance
Represents an instance of a StatSet with actual values for each stat. Implements IEnumerable and IStatContainer to provide collection functionality.
- StatSetMenuItems
Provides Unity Editor menu items for creating StatSet assets.
- StatToStatModifier
A ScriptableObject that defines how one stat can scale upon another stat basing on a percentage. Used to create relationships between different stats in the RPG system.
- StatToStatModifierMenuItems
Provides Unity Editor menu items for creating StatToStatModifier assets.
Structs
- StatChangeInfo
Contains information about a stat change event, including the entity, stat, and old/new values. Used for tracking and responding to stat modifications.
Interfaces
- IHasStatSet
Interface for objects that provide a source of stat sets. Defines the contract for accessing a StatSet that contains stat definitions.