Class MelonEventBase<T>
Inheritance
MelonEventBase<T>
Assembly: RedLoader.dll
Syntax
public abstract class MelonEventBase<T> where T : Delegate
Type Parameters
Constructors
MelonEventBase(bool)
Declaration
public MelonEventBase(bool oneTimeUse = false)
Parameters
Type |
Name |
Description |
bool |
oneTimeUse |
|
Fields
oneTimeUse
Declaration
public readonly bool oneTimeUse
Field Value
Properties
Disposed
Declaration
public bool Disposed { get; }
Property Value
Methods
CheckIfSubscribed(MethodInfo, object)
Declaration
public bool CheckIfSubscribed(MethodInfo method, object obj = null)
Parameters
Returns
Dispose()
Declaration
GetSubscribers()
Declaration
public MelonEventBase<T>.MelonEventSubscriber[] GetSubscribers()
Returns
Invoke(Action<T>)
Declaration
protected void Invoke(Action<T> delegateInvoker)
Parameters
Type |
Name |
Description |
Action<T> |
delegateInvoker |
|
Subscribe(T, int, bool)
Declaration
public void Subscribe(T action, int priority = 0, bool unsubscribeOnFirstInvocation = false)
Parameters
Type |
Name |
Description |
T |
action |
|
int |
priority |
|
bool |
unsubscribeOnFirstInvocation |
|
Unsubscribe(MethodInfo, object)
Declaration
public void Unsubscribe(MethodInfo method, object obj = null)
Parameters
Unsubscribe(T)
Declaration
public void Unsubscribe(T action)
Parameters
Type |
Name |
Description |
T |
action |
|
UnsubscribeAll()
Declaration
public void UnsubscribeAll()