File size: 1,235 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "NativeGameplayTags.h"
#include "LyraNotificationMessage.generated.h"
class UObject;
LYRAGAME_API UE_DECLARE_GAMEPLAY_TAG_EXTERN(TAG_Lyra_AddNotification_Message);
class APlayerState;
// A message destined for a transient log (e.g., an elimination feed or inventory pickup stream)
USTRUCT(BlueprintType)
struct FLyraNotificationMessage
{
GENERATED_BODY()
// The destination channel
UPROPERTY(BlueprintReadWrite, Category=Notification)
FGameplayTag TargetChannel;
// The target player (if none is set then it will display for all local players)
UPROPERTY(BlueprintReadWrite, Category=Notification)
TObjectPtr<APlayerState> TargetPlayer = nullptr;
// The message to display
UPROPERTY(BlueprintReadWrite, Category=Notification)
FText PayloadMessage;
// Extra payload specific to the target channel (e.g., a style or definition asset)
UPROPERTY(BlueprintReadWrite, Category=Notification)
FGameplayTag PayloadTag;
// Extra payload specific to the target channel (e.g., a style or definition asset)
UPROPERTY(BlueprintReadWrite, Category=Notification)
TObjectPtr<UObject> PayloadObject = nullptr;
};
|