Namespace CatchIo.Runtime.Damages
Classes
DamageReceiver
Abstract class that implements the IDamagable interface and inherits from MonoBehaviour. This class serves as a base for any object that can receive damage, such as players or entities.
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.
FixedDamage
Class that represents a specific type of IDamage: FixedDamage. This class uses the base IDamage structure to apply direct damage with fixed value.
PercentageDamage
Class that represents a specific type of IDamage: PercentageDamage. This class uses the base IDamage structure to apply damage based on a percentage of the current health.
Interfaces
IDamagable
Interface that defines a structure for an object that can receive damage. This allows objects, such as players or entities, to handle both direct damage and damage-over-time(DOT).
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.
IKnockBackable
Interface representing an object that can be knocked back. Defines behavior for applying a knock-back effect, typically to a player or an entity.
IStunnable
Interface that represents object that can be stunned. This defines for applying a stun effect to an object, typically a player.