Class AttributesScalingComponent
- 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
-
objectAttributesScalingComponent
- Implements
- Inherited Members
Methods
GetEntitySet(EntityCore)
Gets the AttributeSet from the specified entity.
protected override AttributeSet GetEntitySet(EntityCore entity)
Parameters
entityEntityCoreThe 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
entityEntityCoreThe entity.
keyAttributeThe 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.