Files
UnrealEngineUWP/Engine/Plugins/Runtime/GameplayInteractions/Source/GameplayInteractionsModule/Public/GameplayInteractionStateTreeSchema.h
Yoan StAmant 726e6251f3 GameplayInteractions plugin
- base class for StateTree tasks (GameplayInteractionStateTreeTask)
- GameplayInteractions StateTree schema
   - supports StateTree common Tasks, Evaluators and Conditions + GameplayInteraction Tasks
   - requires two named external data items (Interactable actor and SmartObject claimed handle)
- GameplayInteraction specific SmartObjectBehaviorDefinition to execute a StateTree
- First pass of ContextualAnimStateTreeTask to play a scene from a ContextualAnimation scene asset
#rnx
#rb mikko.mononen
#preflight 627510442e58cb727d38e384

[CL 20074106 by Yoan StAmant in ue5-main branch]
2022-05-06 08:23:48 -04:00

29 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "StateTreeSchema.h"
#include "GameplayInteractionStateTreeSchema.generated.h"
struct FStateTreeExternalDataDesc;
UCLASS(BlueprintType, EditInlineNew, CollapseCategories, meta = (DisplayName = "Gameplay Interactions"))
class GAMEPLAYINTERACTIONSMODULE_API UGameplayInteractionStateTreeSchema : public UStateTreeSchema
{
GENERATED_BODY()
public:
UGameplayInteractionStateTreeSchema();
protected:
virtual bool IsStructAllowed(const UScriptStruct* InScriptStruct) const override;
virtual bool IsClassAllowed(const UClass* InScriptStruct) const override;
virtual bool IsExternalItemAllowed(const UStruct& InStruct) const override;
virtual TConstArrayView<FStateTreeExternalDataDesc> GetNamedExternalDataDescs() const override { return NamedExternalDataDescs; }
/** List of named external data required by schema and provided to the state tree through the execution context. */
UPROPERTY(VisibleAnywhere, Category = "Defaults")
TArray<FStateTreeExternalDataDesc> NamedExternalDataDescs;
};