Search Results for

    Class MelonEventBase<T>

    Inheritance
    object
    MelonEventBase<T>
    MelonEvent
    MelonEvent<T1>
    MelonEvent<T1, T2>
    MelonEvent<T1, T2, T3>
    MelonEvent<T1, T2, T3, T4>
    MelonEvent<T1, T2, T3, T4, T5>
    MelonEvent<T1, T2, T3, T4, T5, T6>
    MelonEvent<T1, T2, T3, T4, T5, T6, T7>
    MelonEvent<T1, T2, T3, T4, T5, T6, T7, T8>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedLoader
    Assembly: RedLoader.dll
    Syntax
    public abstract class MelonEventBase<T> where T : Delegate
    Type Parameters
    Name Description
    T

    Constructors

    MelonEventBase(bool)

    Declaration
    public MelonEventBase(bool oneTimeUse = false)
    Parameters
    Type Name Description
    bool oneTimeUse

    Fields

    oneTimeUse

    Declaration
    public readonly bool oneTimeUse
    Field Value
    Type Description
    bool

    Properties

    Disposed

    Declaration
    public bool Disposed { get; }
    Property Value
    Type Description
    bool

    Methods

    CheckIfSubscribed(MethodInfo, object)

    Declaration
    public bool CheckIfSubscribed(MethodInfo method, object obj = null)
    Parameters
    Type Name Description
    MethodInfo method
    object obj
    Returns
    Type Description
    bool

    Dispose()

    Declaration
    public void Dispose()

    GetSubscribers()

    Declaration
    public MelonEventBase<T>.MelonEventSubscriber[] GetSubscribers()
    Returns
    Type Description
    MelonEventSubscriber[]

    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
    Type Name Description
    MethodInfo method
    object obj

    Unsubscribe(T)

    Declaration
    public void Unsubscribe(T action)
    Parameters
    Type Name Description
    T action

    UnsubscribeAll()

    Declaration
    public void UnsubscribeAll()