Files
UnrealEngineUWP/Engine/Plugins/Runtime/GameplayStateTree/Source/GameplayStateTreeModule/Public/Components/StateTreeAIComponent.h
guillaume arruda a3f5944e10 Create IStateTreeSchemaProvider that allows a derived class to override the schema used by a parent property.
Create StateTreeAIComponent & StateTreeAIComponentSchema derived from StateTreeComponent but guaranteed to have a AIController
#rb mikko.mononen

[CL 31940750 by guillaume arruda in ue5-main branch]
2024-03-01 07:42:54 -05:00

24 lines
671 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/StateTreeComponent.h"
#include "StateTreeAIComponent.generated.h"
/**
* State tree component designed to be run on an AIController.
* It uses the StateTreeAIComponentSchema that guarantees access to the AIController.
*/
UCLASS(ClassGroup = AI, meta = (BlueprintSpawnableComponent))
class UStateTreeAIComponent : public UStateTreeComponent
{
GENERATED_BODY()
public:
// BEGIN IStateTreeSchemaProvider
TSubclassOf<UStateTreeSchema> GetSchema() const override;
// END
virtual bool SetContextRequirements(FStateTreeExecutionContext& Context, bool bLogErrors = false) override;
};