Files
UnrealEngineUWP/Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeEvents.h
mikko mononen bcf2639f01 StateTree: Fix missing include
#rb trivial

[CL 21739276 by mikko mononen in ue5-main branch]
2022-09-01 09:33:35 -04:00

45 lines
1007 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameplayTagContainer.h"
#include "InstancedStruct.h"
#include "StateTreeEvents.generated.h"
/** Enum used for flow control during event iteration. */
UENUM()
enum class EStateTreeLoopEvents : uint8
{
/** Continues to next event. */
Next,
/** Stops the event handling loop. */
Break,
};
/**
* StateTree event with payload.
*/
USTRUCT(BlueprintType)
struct STATETREEMODULE_API FStateTreeEvent
{
GENERATED_BODY()
FStateTreeEvent() = default;
FStateTreeEvent(const FGameplayTag& InTag)
: Tag(InTag)
{
}
/** Tag describing the event */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Default", meta=(Categories="StateTreeEvent"))
FGameplayTag Tag;
/** Optional payload for the event. */
UPROPERTY(EditAnywhere, Category = "Default")
FInstancedStruct Payload;
/** Optional info to describe who sent the event. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Default")
FName Origin;
};