Class StatSetSO
- Namespace
- ElectricDrill.AstraRpgFramework.Stats
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
A ScriptableObject that defines a collection of stats that can be used by entities. Implements IStatContainer to provide stat containment functionality.
[MovedFrom(true, "ElectricDrill.AstraRpgFramework.Stats", "com.electricdrill.astra-rpg-framework.Runtime", "StatSet")]
public class StatSetSO : ScriptableObject, IValueContainer<StatSO>, IEditorValidatable, ITaggable
- Inheritance
-
objectStatSetSO
- Implements
Properties
Stats
Gets a read-only list of all stats in this set, including stats from included StatSets. Direct stats appear first (in user-defined display order), followed by stats contributed by each included set (also in their display order). Duplicates are automatically removed.
public IReadOnlyList<StatSO> Stats { get; }
Property Value
- IReadOnlyList<StatSO>
Tags
The tags associated with this object.
public GameTagSet Tags { get; }
Property Value
Methods
Contains(StatSO)
Determines whether this stat set contains the specified stat. Also checks in included StatSets.
public virtual bool Contains(StatSO stat)
Parameters
statStatSOThe stat to check for.
Returns
- bool
true if the stat set contains the stat; otherwise, false. If
statis null, returns false.
Contains(StatSetSO)
Determines whether this stat set contains another stat set. Either directly or indirectly.
public virtual bool Contains(StatSetSO statSet)
Parameters
statSetStatSetSOThe stat set to check for.
Returns
- bool
true if the
statSetis contained in this stat set; otherwise, false.
Get(StatSO)
Gets the stat from this set that matches the specified stat. Also looks in included StatSets.
public StatSO Get(StatSO stat)
Parameters
statStatSOThe stat to find.
Returns
- StatSO
The matching stat from this set.