Show / Hide Table of Contents

    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 Source

    DamageInfo(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 Source

    ApplyBloodToEnvironment

    Gets a value indicating whether to apply blood to the environment.

    Declaration
    public bool ApplyBloodToEnvironment { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Blood

    Gets or sets the blood of the damage.

    Declaration
    public BloodType Blood { get; set; }
    Property Value
    Type Description
    BloodType
    | Improve this Doc View Source

    Damage

    Gets or sets the damage value.

    Declaration
    public int Damage { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Dealer

    Gets the original damage dealer.

    Declaration
    public ICombatant Dealer { get; }
    Property Value
    Type Description
    ICombatant
    | Improve this Doc View Source

    Effect

    Gets or sets the effect of the damage.

    Declaration
    public AnimatedEffect Effect { get; set; }
    Property Value
    Type Description
    AnimatedEffect

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.