RealtimeStyleTransferRuntime/Source/LyraGame/Messages/LyraVerbMessage.h

40 lines
1.0 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameplayTagContainer.h"
#include "LyraVerbMessage.generated.h"
// Represents a generic message of the form Instigator Verb Target (in Context, with Magnitude)
USTRUCT(BlueprintType)
struct FLyraVerbMessage
{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
FGameplayTag Verb;
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
2022-09-13 07:18:28 +00:00
TObjectPtr<UObject> Instigator = nullptr;
2022-05-23 18:41:30 +00:00
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
2022-09-13 07:18:28 +00:00
TObjectPtr<UObject> Target = nullptr;
2022-05-23 18:41:30 +00:00
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
FGameplayTagContainer InstigatorTags;
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
FGameplayTagContainer TargetTags;
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
FGameplayTagContainer ContextTags;
UPROPERTY(BlueprintReadWrite, Category=Gameplay)
double Magnitude = 1.0;
// Returns a debug string representation of this message
LYRAGAME_API FString ToString() const;
};