Show / Hide Table of Contents

Class BeforeDamageApplied

This delegate is used to handle damage before it's applied to an object. This returns a modified damage that is used in DoDamage. Return damage if no change.

Inheritance
System.Object
BeforeDamageApplied
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public sealed class BeforeDamageApplied : MulticastDelegate

Constructors

BeforeDamageApplied(Object, IntPtr)

Declaration
public BeforeDamageApplied(object object, IntPtr method)
Parameters
Type Name Description
System.Object object
System.IntPtr method

Methods

BeginInvoke(Object, ref MyDamageInformation, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(object target, ref MyDamageInformation info, AsyncCallback callback, object object)
Parameters
Type Name Description
System.Object target
MyDamageInformation info
System.AsyncCallback callback
System.Object object
Returns
Type Description
System.IAsyncResult

EndInvoke(ref MyDamageInformation, IAsyncResult)

Declaration
public virtual void EndInvoke(ref MyDamageInformation info, IAsyncResult result)
Parameters
Type Name Description
MyDamageInformation info
System.IAsyncResult result

Invoke(Object, ref MyDamageInformation)

Declaration
public virtual void Invoke(object target, ref MyDamageInformation info)
Parameters
Type Name Description
System.Object target
MyDamageInformation info
☀
☾
In This Article
  • Constructors
    • BeforeDamageApplied(Object, IntPtr)
  • Methods
    • BeginInvoke(Object, ref MyDamageInformation, AsyncCallback, Object)
    • EndInvoke(ref MyDamageInformation, IAsyncResult)
    • Invoke(Object, ref MyDamageInformation)
Back to top
Generated by DocFX
☀
☾