VRC SDK
This project aims to completely document the VRChat Unity SDK
Loading...
Searching...
No Matches
VRC.SDKBase.VRC_EventHandler Class Reference
Inheritance diagram for VRC.SDKBase.VRC_EventHandler:
Collaboration diagram for VRC.SDKBase.VRC_EventHandler:

Classes

class  EventInfo
 
class  VrcEvent
 

Public Types

enum  VrcEventType : Enum
 
enum  VrcBroadcastType : Enum
 
enum  VrcTargetType : Enum
 
enum  VrcBooleanOp : Enum
 

Public Member Functions

delegate int GetNetworkIdDelegate (GameObject obj)
 
delegate void LogEventDelegate (VRC_EventHandler eventHandler, VrcEvent vrcEvent, VrcBroadcastType broadcast, int instagatorId, float fastForward)
 
void VrcAnimationEvent (AnimationEvent aEvent)
 
void TriggerEvent (VrcEvent e, VrcBroadcastType broadcast, GameObject instagator=null, float fastForward=0f)
 
void TriggerEvent (VrcEvent e, VrcBroadcastType broadcast, int instagatorId, float fastForward)
 
void TriggerEvent (string eventName, VrcBroadcastType broadcast, GameObject instagator=null, int instagatorId=0)
 
void TriggerEvent (string eventName, VrcBroadcastType broadcast, GameObject instagator, int instagatorId, float fastForward)
 
long GetCombinedNetworkId ()
 
bool IsReadyForEvents ()
 
void DeferEvent (VrcEvent e, VrcBroadcastType broadcast, GameObject instagator, float fastForward)
 

Static Public Member Functions

static bool BooleanOp (VrcBooleanOp Op, bool Current)
 
static bool IsReceiverRequiredForEventType (VrcEventType eventType)
 
static bool HasEventTrigger (GameObject go)
 

Public Attributes

List< VrcEventEvents = new List<VrcEvent>()
 
List< EventInfodeferredEvents = new List<EventInfo>()
 

Static Public Attributes

static GetNetworkIdDelegate GetInstigatorId
 
static LogEventDelegate LogEvent
 

Properties

VRC_EventDispatcher Dispatcher [get]
 
static GetNetworkIdDelegate GetInsitgatorId [get, set]
 

Private Member Functions

void Awake ()
 
void InternalTriggerEvent (VrcEvent e, VrcBroadcastType broadcast, int instagatorId, float fastForward)
 
void OnValidate ()
 
void OnDestroy ()
 
IEnumerator ProcessDeferredEvents ()
 

Private Attributes

Coroutine DeferredEventProcessor
 

Detailed Description

Definition at line 9571 of file VRCSDKBase.cs.

Member Enumeration Documentation

◆ VrcBooleanOp

Definition at line 9639 of file VRCSDKBase.cs.

◆ VrcBroadcastType

Definition at line 9611 of file VRCSDKBase.cs.

◆ VrcEventType

Definition at line 9573 of file VRCSDKBase.cs.

◆ VrcTargetType

Definition at line 9625 of file VRCSDKBase.cs.

Member Function Documentation

◆ Awake()

void VRC.SDKBase.VRC_EventHandler.Awake ( )
private

Definition at line 9746 of file VRCSDKBase.cs.

◆ BooleanOp()

static bool VRC.SDKBase.VRC_EventHandler.BooleanOp ( VrcBooleanOp  Op,
bool  Current 
)
static

Definition at line 9734 of file VRCSDKBase.cs.

◆ DeferEvent()

void VRC.SDKBase.VRC_EventHandler.DeferEvent ( VrcEvent  e,
VrcBroadcastType  broadcast,
GameObject  instagator,
float  fastForward 
)

Definition at line 10019 of file VRCSDKBase.cs.

Here is the call graph for this function:

◆ GetCombinedNetworkId()

long VRC.SDKBase.VRC_EventHandler.GetCombinedNetworkId ( )

Definition at line 10003 of file VRCSDKBase.cs.

◆ GetNetworkIdDelegate()

delegate int VRC.SDKBase.VRC_EventHandler.GetNetworkIdDelegate ( GameObject  obj)

◆ HasEventTrigger()

static bool VRC.SDKBase.VRC_EventHandler.HasEventTrigger ( GameObject  go)
static

Definition at line 10008 of file VRCSDKBase.cs.

◆ InternalTriggerEvent()

void VRC.SDKBase.VRC_EventHandler.InternalTriggerEvent ( VrcEvent  e,
VrcBroadcastType  broadcast,
int  instagatorId,
float  fastForward 
)
private

Definition at line 9876 of file VRCSDKBase.cs.

◆ IsReadyForEvents()

bool VRC.SDKBase.VRC_EventHandler.IsReadyForEvents ( )

Definition at line 10014 of file VRCSDKBase.cs.

◆ IsReceiverRequiredForEventType()

static bool VRC.SDKBase.VRC_EventHandler.IsReceiverRequiredForEventType ( VrcEventType  eventType)
static

Definition at line 9802 of file VRCSDKBase.cs.

◆ LogEventDelegate()

delegate void VRC.SDKBase.VRC_EventHandler.LogEventDelegate ( VRC_EventHandler  eventHandler,
VrcEvent  vrcEvent,
VrcBroadcastType  broadcast,
int  instagatorId,
float  fastForward 
)

◆ OnDestroy()

void VRC.SDKBase.VRC_EventHandler.OnDestroy ( )
private

Definition at line 9990 of file VRCSDKBase.cs.

◆ OnValidate()

void VRC.SDKBase.VRC_EventHandler.OnValidate ( )
private

Definition at line 9961 of file VRCSDKBase.cs.

◆ ProcessDeferredEvents()

IEnumerator VRC.SDKBase.VRC_EventHandler.ProcessDeferredEvents ( )
private

Definition at line 10039 of file VRCSDKBase.cs.

◆ TriggerEvent() [1/4]

void VRC.SDKBase.VRC_EventHandler.TriggerEvent ( string  eventName,
VrcBroadcastType  broadcast,
GameObject  instagator,
int  instagatorId,
float  fastForward 
)

Definition at line 9939 of file VRCSDKBase.cs.

◆ TriggerEvent() [2/4]

void VRC.SDKBase.VRC_EventHandler.TriggerEvent ( string  eventName,
VrcBroadcastType  broadcast,
GameObject  instagator = null,
int  instagatorId = 0 
)

Definition at line 9916 of file VRCSDKBase.cs.

◆ TriggerEvent() [3/4]

void VRC.SDKBase.VRC_EventHandler.TriggerEvent ( VrcEvent  e,
VrcBroadcastType  broadcast,
GameObject  instagator = null,
float  fastForward = 0f 
)

Definition at line 9811 of file VRCSDKBase.cs.

Here is the caller graph for this function:

◆ TriggerEvent() [4/4]

void VRC.SDKBase.VRC_EventHandler.TriggerEvent ( VrcEvent  e,
VrcBroadcastType  broadcast,
int  instagatorId,
float  fastForward 
)

Definition at line 9897 of file VRCSDKBase.cs.

Here is the call graph for this function:

◆ VrcAnimationEvent()

void VRC.SDKBase.VRC_EventHandler.VrcAnimationEvent ( AnimationEvent  aEvent)

Definition at line 9780 of file VRCSDKBase.cs.

Member Data Documentation

◆ DeferredEventProcessor

Coroutine VRC.SDKBase.VRC_EventHandler.DeferredEventProcessor
private

Definition at line 9708 of file VRCSDKBase.cs.

◆ deferredEvents

List<EventInfo> VRC.SDKBase.VRC_EventHandler.deferredEvents = new List<EventInfo>()

Definition at line 9706 of file VRCSDKBase.cs.

◆ Events

List<VrcEvent> VRC.SDKBase.VRC_EventHandler.Events = new List<VrcEvent>()

Definition at line 9698 of file VRCSDKBase.cs.

◆ GetInstigatorId

GetNetworkIdDelegate VRC.SDKBase.VRC_EventHandler.GetInstigatorId
static

Definition at line 9702 of file VRCSDKBase.cs.

◆ LogEvent

LogEventDelegate VRC.SDKBase.VRC_EventHandler.LogEvent
static

Definition at line 9704 of file VRCSDKBase.cs.

Property Documentation

◆ Dispatcher

VRC_EventDispatcher VRC.SDKBase.VRC_EventHandler.Dispatcher
getprivate

Definition at line 9710 of file VRCSDKBase.cs.

◆ GetInsitgatorId

GetNetworkIdDelegate VRC.SDKBase.VRC_EventHandler.GetInsitgatorId
staticgetset

Definition at line 9722 of file VRCSDKBase.cs.


The documentation for this class was generated from the following file: