Files
UnrealEngineUWP/Engine/Source/Runtime/NavigationSystem/Public/NavGraph/NavigationGraph.h
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

65 lines
1.0 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "NavigationData.h"
#include "NavigationGraph.generated.h"
USTRUCT()
struct FNavGraphEdge
{
GENERATED_USTRUCT_BODY()
enum {
EgdeFlagsCount = 7
};
struct FNavGraphNode* Start;
struct FNavGraphNode* End;
int32 Flags : EgdeFlagsCount;
uint32 bEnabled : 1;
FNavGraphEdge()
: Start(NULL)
, End(NULL)
, Flags(0)
, bEnabled(false)
{
}
};
USTRUCT()
struct FNavGraphNode
{
GENERATED_USTRUCT_BODY()
/** Who's this node referring to? This will most commonly point to an actor or a component */
UPROPERTY()
UObject* Owner;
enum {
InitialEdgesCount = 4
};
TArray<FNavGraphEdge> Edges;
// Location to be added here
// Radius might be needed as well
FNavGraphNode();
};
/** currently abstract since it's not full implemented */
UCLASS(config=Engine, MinimalAPI, abstract)
class ANavigationGraph : public ANavigationData
{
GENERATED_UCLASS_BODY()
public:
};