Search Results for

    Show / Hide Table of Contents

    Interface IDamage

    Interface that defines a structure to handle various types of damage. Each type of damage can have its own specific value and associated sound effect(SFX). This allows flexibility in managing different damage behaviours in the game.

    Namespace: CatchIo.Runtime.Damages
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IDamage

    Methods

    GetDamage()

    Returns the amount of damage dealt. The calcultation and value of the damage may vary depending on the specific type of damage.

    Declaration
    float GetDamage()
    Returns
    Type Description
    System.Single

    A float representing the damage value.

    GetSfxType()

    Returns the type of sound effect associated with the damage. This allows the game to play different sounds for each type of damage.

    Declaration
    DamageSfxType GetSfxType()
    Returns
    Type Description
    DamageSfxType

    A DamageSfxType enum representing the sound effect type.

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