You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900 #ROBOMERGE-BOT: (v613-10869866) [CL 10870549 by ryan durand in Main branch]
45 lines
1.6 KiB
C++
45 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "Components/PrimitiveComponent.h"
|
|
#include "AI/Navigation/NavLinkDefinition.h"
|
|
#include "NavLinkHostInterface.h"
|
|
#include "NavLinkComponent.generated.h"
|
|
|
|
class FPrimitiveSceneProxy;
|
|
struct FNavigationRelevantData;
|
|
|
|
UCLASS(ClassGroup = (Navigation), meta = (BlueprintSpawnableComponent), hidecategories = (Activation))
|
|
class NAVIGATIONSYSTEM_API UNavLinkComponent : public UPrimitiveComponent, public INavLinkHostInterface
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Navigation)
|
|
TArray<FNavigationLink> Links;
|
|
|
|
virtual void GetNavigationData(FNavigationRelevantData& Data) const override;
|
|
virtual bool IsNavigationRelevant() const override;
|
|
|
|
virtual bool GetNavigationLinksClasses(TArray<TSubclassOf<class UNavLinkDefinition> >& OutClasses) const override { return false; }
|
|
virtual bool GetNavigationLinksArray(TArray<FNavigationLink>& OutLink, TArray<FNavigationSegmentLink>& OutSegments) const override;
|
|
|
|
virtual FBoxSphereBounds CalcBounds(const FTransform &LocalToWorld) const override;
|
|
virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
|
|
virtual bool ShouldRecreateProxyOnUpdateTransform() const override { return true; }
|
|
|
|
#if WITH_EDITOR
|
|
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
|
virtual void PostEditUndo() override;
|
|
virtual void PostEditImport() override;
|
|
#endif // WITH_EDITOR
|
|
|
|
virtual void OnRegister() override;
|
|
|
|
protected:
|
|
void InitializeLinksAreaClasses();
|
|
};
|