You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Ran IWYU on ~170 plugins to remove includes not needed. Public api still keep old includes inside #if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2 #preflight 63d09351574ab9cae4670216 #rb none [CL 23844750 by henrik karlsson in ue5-main branch]
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Templates/SubclassOf.h"
|
|
#include "StateTreeConditionBase.h"
|
|
#include "StateTreeNodeBlueprintBase.h"
|
|
#include "StateTreeConditionBlueprintBase.generated.h"
|
|
|
|
struct FStateTreeExecutionContext;
|
|
|
|
/*
|
|
* Base class for Blueprint based Conditions.
|
|
*/
|
|
UCLASS(Abstract, Blueprintable)
|
|
class STATETREEMODULE_API UStateTreeConditionBlueprintBase : public UStateTreeNodeBlueprintBase
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
UStateTreeConditionBlueprintBase(const FObjectInitializer& ObjectInitializer);
|
|
|
|
UFUNCTION(BlueprintImplementableEvent)
|
|
bool ReceiveTestCondition() const;
|
|
|
|
protected:
|
|
virtual bool TestCondition(FStateTreeExecutionContext& Context) const;
|
|
|
|
friend struct FStateTreeBlueprintConditionWrapper;
|
|
|
|
uint8 bHasTestCondition : 1;
|
|
};
|
|
|
|
/**
|
|
* Wrapper for Blueprint based Conditions.
|
|
*/
|
|
USTRUCT()
|
|
struct STATETREEMODULE_API FStateTreeBlueprintConditionWrapper : public FStateTreeConditionBase
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
virtual const UStruct* GetInstanceDataType() const override { return ConditionClass; };
|
|
virtual bool TestCondition(FStateTreeExecutionContext& Context) const override;
|
|
|
|
UPROPERTY()
|
|
TSubclassOf<UStateTreeConditionBlueprintBase> ConditionClass = nullptr;
|
|
};
|
|
|
|
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2
|
|
#include "CoreMinimal.h"
|
|
#endif
|