FEventManager

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/EventManager.h

Include

#include "EventManager.h"

Syntax

class FEventManager

Constructors

Name Description

Public function

FEventManager

(
    const Chaos::EMultiBufferMode& Buf...
)

Destructors

Name Description

Public function

~FEventManager()

Functions

Name Description

Public function

void

 

ClearEvents

(
    const EEventType& EventType,
    TFunction< void(PayloadType&EventD...
)

Modify the producer side of the event buffer

Public function Static

int32

 

DecodeCollisionIndex

(
    int32 EncodedCollisionIdx,
    bool& bSwapOrder
)

Returns decoded collision index.

Public function

void

 

DispatchEvents()

Dispatch events to the registered handlers

Public function Static

int32

 

EncodeCollisionIndex

(
    int32 ActualCollisionIndex,
    bool bSwapOrder
)

Returns encoded collision index.

Public function

void

 

FillProducerData

(
    const Chaos::FPBDRigidsSolver*...
)

Called by the solver to invoke the functions that fill the producer side of all the event data buffers

Public function

void

 

FlipBuffersIfRequired()

Flips the event data buffer if it is of double or triple buffer type

Public function

void

 

RegisterEvent

(
    const EEventType& EventType,
    TFunction< void...
)

Register a new event into the system, providing the function that will fill the producer side of the event buffer

Public function

void

 

RegisterHandler

(
    const EEventType& EventType,
    HandlerType* Handler,
    typename TRawEventHandler< PayloadT...
)

Register a handler that will receive the dispatched events

Public function

void

 

Reset()

Clears out every handler and container calling destructors on held items

Public function

void

 

SetBufferMode

(
    const Chaos::EMultiBufferMode& Buf...
)

Set the buffer mode to be used within the event containers

Public function

void

 

UnregisterEvent

(
    const EEventType& EventType
)

Unregister specified event from system

Public function

void

 

UnregisterHandler

(
    const EEventType& EventType,
    const void* InHandler
)

Unregister the specified event handler

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss