XII Release 0.1.0
Loading...
Searching...
No Matches
xiiEventMessageSender< EventMessageType > Class Template Reference

A message sender that sends all messages to the next component derived from xiiEventMessageHandlerComponent 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 xiiEventMessageSender< EventMessageType >:
[legend]

Public Member Functions

XII_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, xiiComponent *pSenderComponent, xiiGameObject *pSearchObject)
 
XII_ALWAYS_INLINE bool SendEventMessage (EventMessageType &inout_msg, const xiiComponent *pSenderComponent, const xiiGameObject *pSearchObject) const
 
XII_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, xiiComponent *pSenderComponent, xiiGameObject *pSearchObject, xiiTime delay, xiiObjectMsgQueueType::Enum queueType=xiiObjectMsgQueueType::NextFrame)
 
XII_ALWAYS_INLINE void PostEventMessage (EventMessageType &ref_msg, const xiiComponent *pSenderComponent, const xiiGameObject *pSearchObject, xiiTime delay, xiiObjectMsgQueueType::Enum queueType=xiiObjectMsgQueueType::NextFrame) const
 
XII_ALWAYS_INLINE void Invalidate ()
 

Additional Inherited Members

- Public Types inherited from xiiMessageSenderBase< EventMessageType >
using MessageType
 

Detailed Description

template<typename EventMessageType>
class xiiEventMessageSender< EventMessageType >

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