Table of Contents

Class AttributeSetInstanceExtensions

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

Extension methods for converting SerializableDictionary to AttributeSetInstance.

public static class AttributeSetInstanceExtensions
Inheritance
object
AttributeSetInstanceExtensions

Methods

ToAttributeSetInstance(SerializableDictionary<AttributeSO, long>, AttributeSetSO)

Converts a SerializableDictionary of attributes to an AttributeSetInstance. Validates that all attributes from the AttributeSet are present in the dictionary.

public static AttributeSetInstance ToAttributeSetInstance(this SerializableDictionary<AttributeSO, long> dictionary, AttributeSetSO attributeSet)

Parameters

dictionary SerializableDictionary<AttributeSO, long>

The dictionary to convert

attributeSet AttributeSetSO

The AttributeSet to validate against

Returns

AttributeSetInstance

A new AttributeSetInstance with values from the dictionary