Search Results for

    Show / Hide Table of Contents

    Class ShieldEffect

    Inheritance
    object
    BasicEffect
    ShieldEffect
    Inherited Members
    BasicEffect.victim
    BasicEffect.parent
    BasicEffect.isAlive
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public class ShieldEffect : BasicEffect

    Fields

    onAmountModified

    Called when the amount of this shield is modified by any means. In code, by damage, etc.

    Declaration
    public Action<float, float> onAmountModified
    Field Value
    Type Description
    System.Action<T1, T2><float, float>

    onDamageNegated

    Called when this shield negates a damage. Partially or completely.

    Declaration
    public SafeAction<EventInfoDamageNegatedByShield> onDamageNegated
    Field Value
    Type Description
    SafeAction<EventInfoDamageNegatedByShield>

    Properties

    amount

    Declaration
    public float amount { get; set; }
    Property Value
    Type Description
    float

    mask

    Declaration
    public override BasicEffectMask mask { get; }
    Property Value
    Type Description
    BasicEffectMask
    Overrides
    BasicEffect.mask

    Methods

    AddAmount(float, float, bool)

    This will process, add the amount to the effect, and invoke relevant effects.

    Declaration
    public void AddAmount(float originalAmount, float totalMax = Infinity, bool processTotalMax = true)
    Parameters
    Type Name Description
    float originalAmount
    float totalMax
    bool processTotalMax
    In This Article
    Back to top Shape of Dreams API Documentation