#include <EventManager.h>
|
| | FEventManager (const Chaos::EMultiBufferMode &BufferModeIn) |
| |
| | ~FEventManager () |
| |
| CHAOS_API void | Reset () |
| |
| void | SetBufferMode (const Chaos::EMultiBufferMode &BufferModeIn) |
| |
| template<typename PayloadType > |
| void | RegisterEvent (const EEventType &EventType, TFunction< void(const Chaos::FPBDRigidsSolver *Solver, PayloadType &EventData, bool bResetData)> InFunction) |
| |
| template<typename PayloadType > |
| void | ClearEvents (const EEventType &EventType, TFunction< void(PayloadType &EventData)> InFunction) |
| |
| CHAOS_API void | UnregisterEvent (const EEventType &EventType) |
| |
| template<typename PayloadType , typename HandlerType > |
| void | RegisterHandler (const EEventType &EventType, HandlerType *Handler, typename TRawEventHandler< PayloadType, HandlerType >::FHandlerFunction HandlerFunction, typename TRawEventHandler< PayloadType, HandlerType >::FInterestedProxyOwnerFunction InterestedProxyOwnerFunction=nullptr) |
| |
| CHAOS_API void | UnregisterHandler (const EEventType &EventType, const void *InHandler) |
| |
| CHAOS_API void | FillProducerData (const Chaos::FPBDRigidsSolver *Solver, bool bResetData=true) |
| |
| CHAOS_API void | FlipBuffersIfRequired () |
| |
| CHAOS_API void | DispatchEvents () |
| |
| template<typename PayloadType > |
| void | AddEvent (const EEventType &EventType, TFunction< void(PayloadType &EventData)> InFunction) |
| |
◆ FEventManager()
◆ ~FEventManager()
| Chaos::FEventManager::~FEventManager |
( |
| ) |
|
|
inline |
◆ AddEvent()
◆ ClearEvents()
Modify the producer side of the event buffer
◆ DecodeCollisionIndex()
| int32 Chaos::FEventManager::DecodeCollisionIndex |
( |
int32 |
EncodedCollisionIdx, |
|
|
bool & |
bSwapOrder |
|
) |
| |
|
static |
Returns decoded collision index.
◆ DispatchEvents()
| void Chaos::FEventManager::DispatchEvents |
( |
| ) |
|
// Dispatch events to the registered handlers
◆ EncodeCollisionIndex()
| int32 Chaos::FEventManager::EncodeCollisionIndex |
( |
int32 |
ActualCollisionIndex, |
|
|
bool |
bSwapOrder |
|
) |
| |
|
static |
Returns encoded collision index.
◆ FillProducerData()
Called by the solver to invoke the functions that fill the producer side of all the event data buffers
◆ FlipBuffersIfRequired()
| void Chaos::FEventManager::FlipBuffersIfRequired |
( |
| ) |
|
Flips the event data buffer if it is of double or triple buffer type
◆ RegisterEvent()
Register a new event into the system, providing the function that will fill the producer side of the event buffer
◆ RegisterHandler()
Register a handler that will receive the dispatched events
◆ Reset()
| void Chaos::FEventManager::Reset |
( |
| ) |
|
Clears out every handler and container calling destructors on held items
◆ SetBufferMode()
Set the buffer mode to be used within the event containers
◆ UnregisterEvent()
| void Chaos::FEventManager::UnregisterEvent |
( |
const EEventType & |
EventType | ) |
|
Unregister specified event from system
◆ UnregisterHandler()
| void Chaos::FEventManager::UnregisterHandler |
( |
const EEventType & |
EventType, |
|
|
const void * |
InHandler |
|
) |
| |
Unregister the specified event handler
◆ FPBDRigidsSolver
The documentation for this class was generated from the following files: