Search Results for

    Show / Hide Table of Contents

    Class DOTDamage

    Abstract class for handling damage-over-time(DOT) Defines the base structure for applying damage to a target over multiple intervals(ticks) with optional damage falloff.

    Inheritance
    System.Object
    DOTDamage
    Namespace: CatchIo.Runtime.Damages
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class DOTDamage

    Constructors

    DOTDamage(DOTDamageData)

    Constructor to initialize the DOTDamage object with data. Sets values for tick count, interval, damage falloff, and frequency, ensuring valid ranges.

    Declaration
    protected DOTDamage(DOTDamageData dotDamageData)
    Parameters
    Type Name Description
    DOTDamageData dotDamageData

    Data object that provides the necessary information for configuring the DOT

    Fields

    _damage

    The base damage object that holds the initial damage information

    Declaration
    protected readonly IDamage _damage
    Field Value
    Type Description
    IDamage

    Properties

    DamageFallOff

    Declaration
    public float DamageFallOff { get; }
    Property Value
    Type Description
    System.Single

    DamageFrequency

    Declaration
    public int DamageFrequency { get; }
    Property Value
    Type Description
    System.Int32

    TickCount

    The total number of ticks for the DOT. Each tick represents a damage event over time.

    Declaration
    public int TickCount { get; }
    Property Value
    Type Description
    System.Int32

    TickInterval

    The time interval between each damage tick in seconds. Defines how frequently the DOT damage is applied.

    Declaration
    public float TickInterval { get; }
    Property Value
    Type Description
    System.Single

    Methods

    GetDamage()

    Abstract method to retrieve the damage value.\

    Declaration
    public abstract float GetDamage()
    Returns
    Type Description
    System.Single

    A float representing the damage amount.

    GetSfxType()

    Abstract method to retrieve the type of sound effect (SFX) associated with the damage. Different damage types may have different sound effects.

    Declaration
    public abstract DamageSfxType GetSfxType()
    Returns
    Type Description
    DamageSfxType

    An enum representing the damage SFX type.

    In This Article
    Back to top ©Team STEP, All Rights Reserved.