MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / postEvent

Method postEvent

Engine/source/util/messaging/eventManager.cpp:253–257  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Post an event to the EventManager's queue. @param event The event to post. @param data Various data associated with the event. @return Whether or not the message was dispatched successfully. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

251/// @return Whether or not the message was dispatched successfully.
252//-----------------------------------------------------------------------------
253bool EventManager::postEvent( const char* event, const char* data )
254{
255 AssertFatal( mQueue != NULL, "EventManager::postEvent - Queue not initialized" );
256 return Dispatcher::dispatchMessage( mQueue, event, data );
257}
258
259//-----------------------------------------------------------------------------
260/// Subscribe a listener to an event.

Callers 1

eventManager.cppFile · 0.45

Calls 1

dispatchMessageFunction · 0.85

Tested by

no test coverage detected