Class StatSO
- Namespace
- ElectricDrill.AstraRpgFramework.Stats
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
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.
[MovedFrom(true, "ElectricDrill.AstraRpgFramework.Stats", "com.electricdrill.astra-rpg-framework.Runtime", "Stat")]
public class StatSO : BoundedValueSO, ITaggable
- Inheritance
-
objectStatSO
- Implements
- Inherited Members
Properties
AttributesScaling
Gets or sets the attributes scaling component that determines how this stat scales with entity attributes. Can be null if the stat doesn't scale with attributes.
[CanBeNull]
public AttributesScalingComponentSO AttributesScaling { get; }
Property Value
Tags
The tags associated with this object.
public GameTagSet Tags { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Operators
operator ==(StatSO, StatSO)
Determines whether two Stat objects are equal based on their names.
public static bool operator ==(StatSO a, StatSO b)
Parameters
Returns
- bool
true if the stats are equal; otherwise, false.
operator !=(StatSO, StatSO)
Determines whether two Stat objects are not equal.
public static bool operator !=(StatSO a, StatSO b)
Parameters
Returns
- bool
true if the stats are not equal; otherwise, false.