Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | FEventManager |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/EventManager.h |
| Include Path | #include "EventManager.h" |
Syntax
class FEventManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEventManager
(
const Chaos::EMultiBufferMode& BufferModeIn |
EventManager.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FEventManager() |
EventManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BufferMode | Chaos::EMultiBufferMode | EventManager.h | ||
| ContainerLock | FTransactionallySafeRWLock | EventManager.h | ||
| EventContainers | TArray< FEventContainerBasePtr > | EventManager.h | ||
| ResourceLock | FTransactionallySafeRWLock | EventManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddEvent
(
const EEventType& EventType, |
EventManager.h | ||
void ClearEvents
(
const EEventType& EventType, |
Modify the producer side of the event buffer | EventManager.h | |
void DispatchEvents() |
// Dispatch events to the registered handlers | EventManager.h | |
void FillProducerData
(
const Chaos::FPBDRigidsSolver* Solver, |
Called by the solver to invoke the functions that fill the producer side of all the event data buffers | EventManager.h | |
void FlipBuffersIfRequired() |
Flips the event data buffer if it is of double or triple buffer type | EventManager.h | |
void RegisterEvent
(
const EEventType& EventType, |
Register a new event into the system, providing the function that will fill the producer side of the event buffer | EventManager.h | |
void RegisterHandler
(
const EEventType& EventType, |
Register a handler that will receive the dispatched events | EventManager.h | |
void Reset() |
Clears out every handler and container calling destructors on held items | EventManager.h | |
void SetBufferMode
(
const Chaos::EMultiBufferMode& BufferModeIn |
Set the buffer mode to be used within the event containers | EventManager.h | |
void UnregisterEvent
(
const EEventType& EventType |
Unregister specified event from system | EventManager.h | |
void UnregisterHandler
(
const EEventType& EventType, |
Unregister the specified event handler | EventManager.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 DecodeCollisionIndex
(
int32 EncodedCollisionIdx, |
Returns decoded collision index. | EventManager.h | |
static int32 EncodeCollisionIndex
(
int32 ActualCollisionIndex, |
Returns encoded collision index. | EventManager.h |