You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900 #ROBOMERGE-BOT: (v613-10869866) [CL 10870549 by ryan durand in Main branch]
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Templates/SharedPointer.h"
|
|
#include "UObject/NameTypes.h"
|
|
|
|
class IMessageContext;
|
|
struct FGuid;
|
|
|
|
|
|
/**
|
|
* Interface for message interceptors.
|
|
*/
|
|
class IMessageInterceptor
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Gets the interceptor's name (for debugging purposes).
|
|
*
|
|
* @return The debug name.
|
|
* @see GetInterceptorId
|
|
*/
|
|
virtual FName GetDebugName() const = 0;
|
|
|
|
/**
|
|
* Gets the interceptor's unique identifier (for debugging purposes).
|
|
*
|
|
* @return The interceptor's identifier.
|
|
* @see GetDebugName
|
|
*/
|
|
virtual const FGuid& GetInterceptorId() const = 0;
|
|
|
|
/**
|
|
* Intercepts a message before it is being passed to the message router.
|
|
*
|
|
* @param Context The context of the message to intercept.
|
|
* @return true if the message was intercepted and should not be routed, false otherwise.
|
|
*/
|
|
virtual bool InterceptMessage(const TSharedRef<IMessageContext, ESPMode::ThreadSafe>& Context) = 0;
|
|
|
|
public:
|
|
|
|
/** Virtual destructor. */
|
|
virtual ~IMessageInterceptor() { }
|
|
};
|