Show / Hide Table of Contents

Delegate ModTriggers.OnTriggerChanged

Used in conjunction with RegisterCallback.

Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public delegate void OnTriggerChanged(Entity entity, Action activate, bool removed);
Parameters
Type Name Description
Entity entity

The entity that was modified.

Action activate

Callback to activate the trigger on this entity. Null if removed.

Boolean removed

Whether the trigger was removed from the entity and not added.

Constructors

OnTriggerChanged(Object, IntPtr)

Declaration
public OnTriggerChanged(object object, IntPtr method)
Parameters
Type Name Description
Object object
IntPtr method

Methods

BeginInvoke(Entity, Action, Boolean, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(Entity entity, Action activate, bool removed, AsyncCallback callback, object object)
Parameters
Type Name Description
Entity entity
Action activate
Boolean removed
AsyncCallback callback
Object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result

Invoke(Entity, Action, Boolean)

Declaration
public virtual void Invoke(Entity entity, Action activate, bool removed)
Parameters
Type Name Description
Entity entity
Action activate
Boolean removed
Back to top Generated by DocFX