UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MessageSubscription.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "IMessageContext.h"
8
10
20{
21public:
22
37
38public:
39
40 //~ IMessageSubscription interface
41
42 virtual void Disable() override
43 {
44 Enabled = false;
45 }
46
47 virtual void Enable() override
48 {
49 Enabled = true;
50 }
51
53 {
54 return MessageType;
55 }
56
57 virtual const FMessageScopeRange& GetScopeRange() override
58 {
59 return ScopeRange;
60 }
61
63 {
64 return Subscriber;
65 }
66
67 virtual bool IsEnabled() override
68 {
69 return Enabled;
70 }
71
72private:
73
75 bool Enabled;
76
78 FTopLevelAssetPath MessageType;
79
81 FMessageScopeRange ScopeRange;
82
85};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
Definition MessageSubscription.h:20
virtual bool IsEnabled() override
Definition MessageSubscription.h:67
FMessageSubscription(const TSharedRef< IMessageReceiver, ESPMode::ThreadSafe > &InSubscriber, const FTopLevelAssetPath &InMessageType, const FMessageScopeRange &InScopeRange)
Definition MessageSubscription.h:31
virtual const TWeakPtr< IMessageReceiver, ESPMode::ThreadSafe > & GetSubscriber() override
Definition MessageSubscription.h:62
virtual void Enable() override
Definition MessageSubscription.h:47
virtual FTopLevelAssetPath GetMessageTypePathName() override
Definition MessageSubscription.h:52
virtual const FMessageScopeRange & GetScopeRange() override
Definition MessageSubscription.h:57
virtual void Disable() override
Definition MessageSubscription.h:42
Definition IMessageReceiver.h:26
Definition IMessageSubscription.h:25
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
Definition TopLevelAssetPath.h:38