2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "EnvironmentQueryGraph.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
|
class UEnvironmentQueryGraph : public UEdGraph
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
int32 GraphVersion;
|
|
|
|
|
|
|
|
|
|
void UpdateVersion();
|
|
|
|
|
void MarkVersion();
|
|
|
|
|
|
|
|
|
|
void CalculateAllWeights();
|
|
|
|
|
void UpdateAsset();
|
2014-04-23 19:29:53 -04:00
|
|
|
void RemoveOrphanedNodes();
|
2014-03-14 14:13:41 -04:00
|
|
|
void CreateEnvQueryFromGraph(class UEnvironmentQueryGraphNode* RootEdNode);
|
|
|
|
|
|
2014-04-23 19:29:53 -04:00
|
|
|
void LockUpdates();
|
|
|
|
|
void UnlockUpdates();
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
protected:
|
|
|
|
|
|
2014-04-23 19:29:53 -04:00
|
|
|
/** if set, graph modifications won't cause updates in internal tree structure (skipping UpdateAsset)
|
|
|
|
|
* flag allows freezing update during heavy changes like pasting new nodes */
|
|
|
|
|
uint32 bLockUpdates : 1;
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
void UpdateVersion_NestedNodes();
|
2014-04-23 19:29:53 -04:00
|
|
|
void UpdateVersion_FixupOuters();
|
2014-03-14 14:13:41 -04:00
|
|
|
};
|
|
|
|
|
|