RedCore
Loading...
Searching...
No Matches
red::FreezeFrameEvent< T > Class Template Reference

Actor event that will pause execution of all actors except the ones specified in the whitelist. More...

#include <FreezeFrameEvent.h>

Inherits red::EventBase< T >.

Public Member Functions

void unfreeze ()
 Ends the freeze event and resumes execution of all actors.
Public Member Functions inherited from red::EventBase< T >
void consume ()
bool isConsumed () const

Additional Inherited Members

Public Types inherited from red::EventBase< T >
using Delegator = EventDelegator<T>
using ListenerFunc = void (*)(T&)

Detailed Description

template<typename... T>
class red::FreezeFrameEvent< T >

Actor event that will pause execution of all actors except the ones specified in the whitelist.

Template Parameters
TActor types to be whitelisted. These will continue execution.

Push this to EventMgr to freeze, then call unfreeze() to end the event.

Member Function Documentation

◆ unfreeze()

template<typename... T>
void red::FreezeFrameEvent< T >::unfreeze ( )
inline

Ends the freeze event and resumes execution of all actors.