Show / Hide Table of Contents

Class EventBase

The base of all Whiskey events.

Inheritance
System.Object
EventBase
Event
Event<TArg0>
Event<TArg0, TArg1>
Event<TArg0, TArg1, TArg2>
Event<TArg0, TArg1, TArg2, TArg3>
Namespace: FasterGames.Whiskey.Events
Assembly: cs.temp.dll.dll
Syntax
public abstract class EventBase : ScriptableObject

Properties

EventTypes

The argument types of the event.

Declaration
public abstract List<Type> EventTypes { get; }
Property Value
Type Description
System.Collections.Generic.List<Type>

ListenerCount

The number of currently listening listeners.

Declaration
public abstract int ListenerCount { get; }
Property Value
Type Description
System.Int32

Methods

UnsafeRaise(Object[])

An unsafe (can fail at runtime) hook to raise events. Do not use.

Declaration
public abstract void UnsafeRaise(params object[] args)
Parameters
Type Name Description
System.Object[] args

event arguments

Remarks

This exists to expose a hook for generic code (e.g. editors) that may want to invoke events knowing only the base type.

In This Article
Back to top Copyright FasterGames ©