Table of Contents

Class FixedAttributeValues

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

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

[Serializable]
public class FixedAttributeValues : IFixedAttributeSource, IValueContainer<AttributeSO>
Inheritance
object
FixedAttributeValues
Implements

Properties

this[AttributeSO]

Gets or sets the fixed base value for attribute.

public long this[AttributeSO attribute] { get; set; }

Parameters

attribute AttributeSO

Property Value

long

Methods

Contains(AttributeSO)

Determines whether the container includes the specified value.

public bool Contains(AttributeSO attribute)

Parameters

attribute AttributeSO

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

attribute AttributeSO

Returns

long