Loading...
Searching...
No Matches
AdventureCore.IAttributeModifier Interface Reference

Detailed Description

interface for any class the modifies attributes
this modification does not change the actual attribute value
it is applied when an attribute value is retrieved from the AttributePool for example equipment that provides an attribute bonus(strength ring, vitality pants)

Inheritance diagram for AdventureCore.IAttributeModifier:
AdventureCore.AttributeEffect AdventureCore.AttributeMultiplierInstruction AdventureCore.EquipmentItem

Public Member Functions

int Modify (AttributeType attribute, int value)
 applies the modification
 

Properties

int ModifierPriority [get]
 modifiers are applied in the order of their priority
this means higher priority modifiers are applied before lower ones
 
IEnumerable< AttributeTypeModifierAttributes [get]
 which attributes this modifier applies to
 

Member Function Documentation

◆ Modify()

int AdventureCore.IAttributeModifier.Modify ( AttributeType attribute,
int value )

applies the modification

Parameters
attributethe attribute that will be modified
valuethe value before modification
Returns
the modified value

Implemented in AdventureCore.AttributeEffect, and AdventureCore.AttributeMultiplierInstruction.

Property Documentation

◆ ModifierAttributes

IEnumerable<AttributeType> AdventureCore.IAttributeModifier.ModifierAttributes
get

which attributes this modifier applies to

Implemented in AdventureCore.AttributeEffect, and AdventureCore.AttributeMultiplierInstruction.

◆ ModifierPriority

int AdventureCore.IAttributeModifier.ModifierPriority
get

modifiers are applied in the order of their priority
this means higher priority modifiers are applied before lower ones

Implemented in AdventureCore.AttributeEffect, and AdventureCore.AttributeMultiplierInstruction.