Class DamagePreventionReasonExtensions
- Namespace
- ElectricDrill.AstraHealth.Damage
- Assembly
- com.electricdrill.astra-health.Runtime.dll
Extension helpers for DamagePreventionReason.
public static class DamagePreventionReasonExtensions
- Inheritance
-
objectDamagePreventionReasonExtensions
Methods
IsTerminal(DamagePreventionReason)
Returns true when the provided set of reasons indicates a terminal prevention state (i.e. any prevention reason is present). False when None.
public static bool IsTerminal(this DamagePreventionReason reasons)
Parameters
reasonsDamagePreventionReason
Returns
- bool
ToDetailedString(DamagePreventionReason)
Returns a detailed, ordered description for all active prevention reasons.
public static string ToDetailedString(this DamagePreventionReason reasons)
Parameters
reasonsDamagePreventionReason
Returns
- string