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
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
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 |
|
Declaration
public virtual void EndInvoke(ref MyDamageInformation info, IAsyncResult result)
Parameters
Declaration
public virtual void Invoke(object target, ref MyDamageInformation info)
Parameters