Table of Contents

Interface IDamageable

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Interface for entities that can receive damage from attacks. Implement this to allow objects to be damaged by characters or other sources.

public interface IDamageable

Methods

Damage(ICharacter, int, DamageAttributeTemplate, bool)

Applies damage to the entity.

void Damage(ICharacter attacker, int amount, DamageAttributeTemplate damageAttribute, bool ignoreAchievements = false)

Parameters

attacker ICharacter

The character dealing the damage.

amount int

The amount of damage to apply.

damageAttribute DamageAttributeTemplate

The type of damage being applied (e.g., fire, physical).

ignoreAchievements bool

If true, achievement progress is not affected by this damage event.