Add OnDamaged method to IOnDamageBehavior (#685)
* Add OnDamaged method to IOnDamageBehavior * Adds Source, SourceMob to OnDamage.
This commit is contained in:
committed by
GitHub
parent
3292939756
commit
934f6fb7e2
@@ -17,15 +17,19 @@ namespace Content.Server.Interfaces.GameObjects
|
||||
/// </summary>
|
||||
/// <param name="damageType">Type of damage being received.</param>
|
||||
/// <param name="amount">Amount of damage being received.</param>
|
||||
void TakeDamage(DamageType damageType, int amount);
|
||||
/// <param name="source">Entity that damaged this entity.</param>
|
||||
/// <param name="sourceMob">Mob that damaged this entity.</param>
|
||||
void TakeDamage(DamageType damageType, int amount, IEntity source, IEntity sourceMob);
|
||||
|
||||
/// <summary>
|
||||
/// Handles receiving healing.
|
||||
/// Converts healing via the resistance set then applies it
|
||||
/// and informs components of thresholds passed as necessary.
|
||||
/// </summary>
|
||||
/// <param name="damageType">Type of damage being received.</param>
|
||||
/// <param name="amount">Amount of damage being received.</param>
|
||||
void TakeHealing(DamageType damageType, int amount);
|
||||
/// <param name="damageType">Type of healing being received.</param>
|
||||
/// <param name="amount">Amount of healing being received.</param>
|
||||
/// <param name="source">Entity that healed this entity.</param>
|
||||
/// <param name="sourceMob">Mob that healed this entity.</param>
|
||||
void TakeHealing(DamageType damageType, int amount, IEntity source, IEntity sourceMob);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user