Show / Hide Table of Contents

    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.Gameplay
    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
    Back to top Copyright © 2020 East Side Games Inc.