Interface IModifierData
IModifierDataCollection associated with its IModifier would contains multiple ModifierData. Each of the ModifierData would allow the IModifier to know how to affect the IModifiable.
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IModifierData
Properties
affectAll
Does this affect every IModifiable entities in the content? If so the modifiableId should be left blank.
Declaration
bool affectAll { get; }
Property Value
Type | Description |
---|---|
Boolean |
amounts
The list of numerical values that are going to be used with the IModifierGroupData. The reason that this is an array of double because we want to be able to apply different multiplier based on the IModifier's IUpgradeable level. When applying the modifier, only the selected index/level would be applied.
Declaration
double[] amounts { get; }
Property Value
Type | Description |
---|---|
Double[] |
modifiableId
The id of the IModifiable that is being affected. If the affectAll flag is true, this should be left blank.
Declaration
string modifiableId { get; }
Property Value
Type | Description |
---|---|
String |
modifierGroupId
The id of the IModifierGroupData that is being used as the modifier logic.
Declaration
string modifierGroupId { get; }
Property Value
Type | Description |
---|---|
String |
Methods
GetAmount(Int32)
Returns the total modifier amount for the specified level, or the last available amount.
Declaration
double GetAmount(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Double |