Interface IDamageable
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
attackerICharacterThe character dealing the damage.
amountintThe amount of damage to apply.
damageAttributeDamageAttributeTemplateThe type of damage being applied (e.g., fire, physical).
ignoreAchievementsboolIf true, achievement progress is not affected by this damage event.