Show / Hide Table of Contents

Class MyDamageInformation

This structure contains all information about damage being done.

Inheritance
System.Object
MyDamageInformation
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public sealed class MyDamageInformation : ValueType

Constructors

MyDamageInformation(Boolean, Single, MyStringHash, Int64, Nullable<MyStringHash>)

Damage information constructor

Declaration
public MyDamageInformation(bool isDeformation, float amount, MyStringHash type, long attackerId, Nullable<MyStringHash> extraInfo = null)
Parameters
Type Name Description
System.Boolean isDeformation

true if deformation should happen

System.Single amount

damage amount

MyStringHash type

type of the damage

System.Int64 attackerId

id of the attacker

System.Nullable<MyStringHash> extraInfo

Extra info about what caused damage. For projectiles and missiles direct damage it is storing ammo SubtypeName that caused damage

Fields

Amount

Gets or Sets the amount of the damage

Declaration
public float Amount
Field Value
Type Description
System.Single

AttackerId

Gets or Sets the id of the attacker

Declaration
public long AttackerId
Field Value
Type Description
System.Int64

ExtraInfo

Gets or Sets the type of the damage

Declaration
public Nullable<MyStringHash> ExtraInfo
Field Value
Type Description
System.Nullable<MyStringHash>

IsDeformation

Determines whether deformation is enabled

Declaration
public bool IsDeformation
Field Value
Type Description
System.Boolean

Type

Gets or Sets the type of the damage

Declaration
public MyStringHash Type
Field Value
Type Description
MyStringHash
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾