Table of Contents

Class AttributeSetSO

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

A ScriptableObject that defines a collection of attributes for use in character systems. Attribute sets are usually used to group attributes that can be shared across different characters or classes. For example, any character of any class could have the same attribute set, including attributes like strength, dexterity, constitution, intelligence, and luck.

[MovedFrom(true, "ElectricDrill.AstraRpgFramework.Attributes", "com.electricdrill.astra-rpg-framework.Runtime", "AttributeSet")]
public class AttributeSetSO : ScriptableObject, IValueContainer<AttributeSO>, IEditorValidatable, ITaggable
Inheritance
object
AttributeSetSO
Implements

Properties

Attributes

Gets a read-only list of all attributes contained in this set.

public IReadOnlyList<AttributeSO> Attributes { get; }

Property Value

IReadOnlyList<AttributeSO>

Tags

The tags associated with this object.

public GameTagSet Tags { get; }

Property Value

GameTagSet

Methods

Contains(AttributeSO)

Checks whether the specified attribute is contained in this set.

public bool Contains(AttributeSO attribute)

Parameters

attribute AttributeSO

The attribute to check for

Returns

bool

True if the attribute is in the set, false otherwise. If attribute is null, returns false.