ezEngine  Release 25.03
ezEventMessageSender< EventMessageType > Class Template Reference

A message sender that sends all messages to the next component derived from ezEventMessageHandlerComponent up in the hierarchy starting with the given search object. If none is found the message is sent to all components registered as global event message handler. The receiver is cached after the first send/post call. More...

#include <EventMessage.h>

Inheritance diagram for ezEventMessageSender< EventMessageType >:

Public Member Functions

EZ_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, ezComponent *pSenderComponent, ezGameObject *pSearchObject)
 
EZ_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, const ezComponent *pSenderComponent, const ezGameObject *pSearchObject) const
 
EZ_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, ezComponent *pSenderComponent, ezGameObject *pSearchObject, ezTime delay, ezObjectMsgQueueType::Enum queueType=ezObjectMsgQueueType::NextFrame)
 
EZ_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, const ezComponent *pSenderComponent, const ezGameObject *pSearchObject, ezTime delay, ezObjectMsgQueueType::Enum queueType=ezObjectMsgQueueType::NextFrame) const
 
EZ_ALWAYS_INLINE void Invalidate ()
 

Additional Inherited Members

- Public Types inherited from ezMessageSenderBase< EventMessageType >
using MessageType = EventMessageType
 

Detailed Description

template<typename EventMessageType>
class ezEventMessageSender< EventMessageType >

A message sender that sends all messages to the next component derived from ezEventMessageHandlerComponent up in the hierarchy starting with the given search object. If none is found the message is sent to all components registered as global event message handler. The receiver is cached after the first send/post call.


The documentation for this class was generated from the following file: