Struct DamageInfo
Struct that represents damage information.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fibula.Mechanics.Contracts.Structs
Assembly: Fibula.Mechanics.Contracts.dll
Syntax
public struct DamageInfo
Constructors
| Improve this Doc View SourceDamageInfo(Int32, ICombatant)
Initializes a new instance of the DamageInfo struct.
Declaration
public DamageInfo(int damageValue, ICombatant damageDealer = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | damageValue | The value of the damage. |
ICombatant | damageDealer | Optional. The dealer of the damage, if any. |
Properties
| Improve this Doc View SourceApplyBloodToEnvironment
Gets a value indicating whether to apply blood to the environment.
Declaration
public bool ApplyBloodToEnvironment { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Blood
Gets or sets the blood of the damage.
Declaration
public BloodType Blood { get; set; }
Property Value
Type | Description |
---|---|
BloodType |
Damage
Gets or sets the damage value.
Declaration
public int Damage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Dealer
Gets the original damage dealer.
Declaration
public ICombatant Dealer { get; }
Property Value
Type | Description |
---|---|
ICombatant |
Effect
Gets or sets the effect of the damage.
Declaration
public AnimatedEffect Effect { get; set; }
Property Value
Type | Description |
---|---|
AnimatedEffect |