Table of Contents

Class FixedStatValues

Namespace
ElectricDrill.AstraRpgFramework.Stats
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Serializable wrapper around a set of fixed base stat values. Usable inline in a MonoBehaviour field or embedded in a dedicated ScriptableObject.

[Serializable]
public class FixedStatValues : IFixedStatSource, IValueContainer<StatSO>
Inheritance
object
FixedStatValues
Implements

Properties

this[StatSO]

Gets or sets the fixed base value for stat.

public long this[StatSO stat] { get; set; }

Parameters

stat StatSO

Property Value

long

Methods

Contains(StatSO)

Determines whether the container includes the specified value.

public bool Contains(StatSO stat)

Parameters

stat StatSO

Returns

bool

True if the value is found in the container; otherwise, false.

GetBase(StatSO)

Gets the fixed base value for stat. Only called for stats for which Contains(T) returns true.

public long GetBase(StatSO stat)

Parameters

stat StatSO

Returns

long