Table of Contents

Class AttributeSetInstanceExtensions

Namespace
ElectricDrill.SoapRpgFramework.Attributes
Assembly
com.electricdrill.soap-rpg-framework.Runtime.dll

Extension methods for converting SerializableDictionary to AttributeSetInstance.

public static class AttributeSetInstanceExtensions
Inheritance
object
AttributeSetInstanceExtensions

Methods

ToAttributeSetInstance(SerializableDictionary<Attribute, long>, AttributeSet)

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<Attribute, long> dictionary, AttributeSet attributeSet)

Parameters

dictionary SerializableDictionary<Attribute, long>

The dictionary to convert

attributeSet AttributeSet

The AttributeSet to validate against

Returns

AttributeSetInstance

A new AttributeSetInstance with values from the dictionary