Table of Contents

Class AttributesScalingComponent

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

A scaling component that calculates a value based on an entity's attributes.

public class AttributesScalingComponent : SoSetScalingComponentBase<AttributeSet, Attribute>, IValueProvider<Attribute, double>
Inheritance
object
AttributesScalingComponent
Implements
Inherited Members

Methods

GetEntitySet(EntityCore)

Gets the AttributeSet from the specified entity.

protected override AttributeSet GetEntitySet(EntityCore entity)

Parameters

entity EntityCore

The entity.

Returns

AttributeSet

The entity's AttributeSet.

GetEntityValue(EntityCore, Attribute)

Gets the value of a specific attribute from the entity.

protected override long GetEntityValue(EntityCore entity, Attribute key)

Parameters

entity EntityCore

The entity.

key Attribute

The attribute to get the value of.

Returns

long

The value of the attribute.

GetSetItems()

Gets the collection of attributes from the associated AttributeSet.

protected override IEnumerable<Attribute> GetSetItems()

Returns

IEnumerable<Attribute>

An enumerable of attributes.