Navigation
API > API/Runtime > API/Runtime/Chaos
Inheritance Hierarchy
- FEventContainerBase
- TEventContainer
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/EventManager.h |
| Include | #include "EventManager.h" |
Syntax
template<typename PayloadType>
class TEventContainer : public Chaos::FEventContainerBase
Remarks
Class that owns the injected producer function and its associated data buffer
Constructors
| Type | Name | Description | |
|---|---|---|---|
TEventContainer
(
TEventContainer< PayloadType >& Other |
Copy constructor | ||
TEventContainer
(
const Chaos::EMultiBufferMode& BufferMode, |
Regular constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor cleans up memory |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | DestroyStaleEvents
(
TFunction< void(PayloadType&EventDataInOut)> InFunction |
Overridden from FEventContainerBase
| Type | Name | Description | |
|---|---|---|---|
| void | Dispatch events to the registered handlers | ||
| void | Flips the buffer if the buffer type is double or triple | ||
| void | InjectProducerData
(
const FPBDRigidsSolver* Solver, |
Inject data from the physics solver into the producer side of the buffer | |
| void | RegisterHandler
(
const FEventHandlerPtr& Handler |
Register the delegate function that will handle the events on the game thread | |
| void | UnregisterHandler
(
const void* InHandler |
Unregister the delegate function that handles the events on the game thread |