Module |
|
Header |
/Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
Include |
#include "MessageEndpointBuilder.h" |
template<typename HandlerType>
FMessageEndpointBuilder & WithCatchall
(
HandlerType * Handler,
typename TRawMessageCatchall< HandlerType >::FuncType HandlerFunc
)
Adds a message handler for the given type of messages (via raw function pointers).
It is legal to configure multiple handlers for the same message type. Each handler will be executed when a message of the specified type is received.
This overload is used to register raw class member functions.
This instance (for method chaining).
Parameter |
Description |
---|---|
HandlerType |
The type of the object handling the messages. |
MessageType |
The type of messages to handle. |
Handler |
The class handling the messages. |
HandlerFunc |
The class function handling the messages. |