Class FixedAttributeValuesSO
- Namespace
- ElectricDrill.AstraRpgFramework.Attributes
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Standalone asset holding fixed base attribute values, reusable across multiple EntityAttributes components. Mirrors the inline FixedAttributeValues wrapper's shape but owns its own AttributeSetSO reference so it's self-contained.
public class FixedAttributeValuesSO : ScriptableObject, IFixedAttributeSource, IValueContainer<AttributeSO>
- Inheritance
-
objectFixedAttributeValuesSO
- Implements
Properties
AttributeSet
The attribute set this asset supplies values for. Reassigning it reconciles the value set: values for attributes present in both sets are preserved, new attributes default to 0.
public AttributeSetSO AttributeSet { get; set; }
Property Value
this[AttributeSO]
Gets or sets the fixed base value for attribute.
public long this[AttributeSO attribute] { get; set; }
Parameters
attributeAttributeSO
Property Value
- long
Methods
Contains(AttributeSO)
Determines whether the container includes the specified value.
public bool Contains(AttributeSO attribute)
Parameters
attributeAttributeSO
Returns
- bool
True if the value is found in the container; otherwise, false.
GetBase(AttributeSO)
Gets the fixed base value for attribute. Only called for attributes for
which Contains(T) returns true.
public long GetBase(AttributeSO attribute)
Parameters
attributeAttributeSO
Returns
- long