Show / Hide Table of Contents

Class EventListener

Manage bound event callbacks from Lua.

Inheritance
System.Object
EventListener
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class EventListener : object

Properties

ForEvent

The event this EventListener is bound to.

Declaration
public string ForEvent { get; }
Property Value
Type Description
System.String

IsOnce

Whether this event will only fire once (.Once())

Declaration
public bool IsOnce { get; }
Property Value
Type Description
System.Boolean

Selector

The hash selector this EventListener is bound to (i.e. if the bound event was WeaponEquip#my_weapon, this would be my_weapon)

Declaration
public string Selector { get; }
Property Value
Type Description
System.String

Methods

Cancel()

Cancel this bound EventListener.

Declaration
public void Cancel()

Emit(Object[])

Immediately execute this EventListener's callback.

Declaration
public bool Emit(object[] args)
Parameters
Type Name Description
System.Object[] args

The arguments to pass

Returns
Type Description
System.Boolean

Whether this event was cancelled by a callback returning False

Back to top © 2020 Anarkis Gaming. All rights reserved. Generated by DocFX