Navigation
API > API/Runtime > API/Runtime/Chaos
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/EventManager.h |
| Include | #include "EventManager.h" |
Syntax
class FEventManager
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEventManager
(
const Chaos::EMultiBufferMode& BufferModeIn |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEvent
(
const EEventType& EventType, |
||
| void | ClearEvents
(
const EEventType& EventType, |
Modify the producer side of the event buffer | |
| int32 | DecodeCollisionIndex
(
int32 EncodedCollisionIdx, |
Returns decoded collision index. | |
| void | // Dispatch events to the registered handlers | ||
| int32 | EncodeCollisionIndex
(
int32 ActualCollisionIndex, |
Returns encoded collision index. | |
| 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 | |
| void | Flips the event data buffer if it is of double or triple buffer type | ||
| 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 | |
| void | RegisterHandler
(
const EEventType& EventType, |
Register a handler that will receive the dispatched events | |
| void | Reset () |
Clears out every handler and container calling destructors on held items | |
| void | SetBufferMode
(
const Chaos::EMultiBufferMode& BufferModeIn |
Set the buffer mode to be used within the event containers | |
| void | UnregisterEvent
(
const EEventType& EventType |
Unregister specified event from system | |
| void | UnregisterHandler
(
const EEventType& EventType, |
Unregister the specified event handler |