Plasma Engine  2.0
Loading...
Searching...
No Matches
plEventMessageSender< EventMessageType > Class Template Reference

A message sender that sends all messages to the next component derived from plEventMessageHandlerComponent 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 plEventMessageSender< EventMessageType >:

Public Member Functions

PL_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, plComponent *pSenderComponent, plGameObject *pSearchObject)
 
PL_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, const plComponent *pSenderComponent, const plGameObject *pSearchObject) const
 
PL_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, plComponent *pSenderComponent, plGameObject *pSearchObject, plTime delay, plObjectMsgQueueType::Enum queueType=plObjectMsgQueueType::NextFrame)
 
PL_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, const plComponent *pSenderComponent, const plGameObject *pSearchObject, plTime delay, plObjectMsgQueueType::Enum queueType=plObjectMsgQueueType::NextFrame) const
 
PL_ALWAYS_INLINE void Invalidate ()
 

Additional Inherited Members

- Public Types inherited from plMessageSenderBase< EventMessageType >
using MessageType
 

Detailed Description

template<typename EventMessageType>
class plEventMessageSender< EventMessageType >

A message sender that sends all messages to the next component derived from plEventMessageHandlerComponent 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: