Files
UnrealEngine/Engine/Source/Developer/AITestSuite/Classes/MockAI_BT.h
2025-05-18 13:04:45 +08:00

27 lines
598 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "BehaviorTree/BehaviorTreeTypes.h"
#include "MockAI.h"
#include "MockAI_BT.generated.h"
class UBehaviorTree;
class UBehaviorTreeComponent;
UCLASS()
class UMockAI_BT : public UMockAI
{
GENERATED_UCLASS_BODY()
UPROPERTY()
TObjectPtr<UBehaviorTreeComponent> BTComp;
static TArray<int32> ExecutionLog;
TArray<int32> ExpectedResult;
bool IsRunning() const;
void RunBT(UBehaviorTree& BTAsset, EBTExecutionMode::Type RunType = EBTExecutionMode::SingleRun);
};