Files
UnrealEngine/Engine/Source/Runtime/NavigationSystem/Public/NavLinkHostInterface.h
2025-05-18 13:04:45 +08:00

36 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
#include "CoreMinimal.h"
#endif
#include "UObject/ObjectMacros.h"
#include "Templates/SubclassOf.h"
#include "UObject/Interface.h"
#include "AI/Navigation/NavLinkDefinition.h"
#include "NavLinkHostInterface.generated.h"
UINTERFACE(MinimalAPI, meta=(CannotImplementInterfaceInBlueprint))
class UNavLinkHostInterface : public UInterface
{
GENERATED_UINTERFACE_BODY()
};
class INavLinkHostInterface
{
GENERATED_IINTERFACE_BODY()
/**
* Retrieves UNavLinkDefinition derived UClasses hosted by this interface implementer
*/
NAVIGATIONSYSTEM_API virtual bool GetNavigationLinksClasses(TArray<TSubclassOf<class UNavLinkDefinition> >& OutClasses) const PURE_VIRTUAL(INavLinkHostInterface::GetNavigationLinksClasses,return false;);
/**
* _Optional_ way of retrieving navigation link data - if INavLinkHostInterface
* implementer defines custom navigation links then it can just retrieve
* a list of links
*/
virtual bool GetNavigationLinksArray(TArray<FNavigationLink>& OutLink, TArray<FNavigationSegmentLink>& OutSegments) const { return false; }
};