chore: Rename Graph to EditorGraph
Signed-off-by: Michael Pollind <mpollind@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ namespace ScriptCanvas
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
//! EditorGraph is the editor version of the ScriptCanvas::Graph component that is activated when executing the script canvas engine
|
||||
class Graph
|
||||
class EditorGraph
|
||||
: public ScriptCanvas::Graph
|
||||
, private NodeCreationNotificationBus::Handler
|
||||
, private SceneCounterRequestBus::Handler
|
||||
@@ -77,7 +77,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
typedef AZStd::unordered_map< AZ::EntityId, AZ::EntityId > WrappedNodeGroupingMap;
|
||||
|
||||
static void ConvertToGetVariableNode(Graph* graph, ScriptCanvas::VariableId variableId, const AZ::EntityId& nodeId, AZStd::unordered_map<AZ::EntityId, AZ::EntityId>& setVariableRemapping);
|
||||
static void ConvertToGetVariableNode(EditorGraph* graph, ScriptCanvas::VariableId variableId, const AZ::EntityId& nodeId, AZStd::unordered_map<AZ::EntityId, AZ::EntityId>& setVariableRemapping);
|
||||
|
||||
struct CRCCache
|
||||
{
|
||||
@@ -100,13 +100,13 @@ namespace ScriptCanvasEditor
|
||||
};
|
||||
|
||||
public:
|
||||
AZ_COMPONENT(Graph, "{4D755CA9-AB92-462C-B24F-0B3376F19967}", ScriptCanvas::Graph);
|
||||
AZ_COMPONENT(EditorGraph, "{4D755CA9-AB92-462C-B24F-0B3376F19967}", ScriptCanvas::Graph);
|
||||
|
||||
static ScriptCanvas::DataPtr Create();
|
||||
|
||||
static void Reflect(AZ::ReflectContext* context);
|
||||
|
||||
Graph(const ScriptCanvas::ScriptCanvasId& scriptCanvasId = AZ::Entity::MakeId())
|
||||
EditorGraph(const ScriptCanvas::ScriptCanvasId& scriptCanvasId = AZ::Entity::MakeId())
|
||||
: ScriptCanvas::Graph(scriptCanvasId)
|
||||
, m_variableCounter(0)
|
||||
, m_graphCanvasSceneEntity(nullptr)
|
||||
@@ -115,11 +115,21 @@ namespace ScriptCanvasEditor
|
||||
, m_upgradeSM(this)
|
||||
{}
|
||||
|
||||
~Graph() override;
|
||||
~EditorGraph() override;
|
||||
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
|
||||
static const char* GetMimeType()
|
||||
{
|
||||
return "application/x-o3de-scriptcanvas";
|
||||
}
|
||||
|
||||
static const char* GetWrappedNodeGroupingMimeType()
|
||||
{
|
||||
return "application/x-03de-scriptcanvas-wrappednodegrouping";
|
||||
}
|
||||
|
||||
static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
||||
{
|
||||
ScriptCanvas::Graph::GetProvidedServices(provided);
|
||||
@@ -326,7 +336,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
void UnregisterToast(const AzToolsFramework::ToastId& toastId);
|
||||
|
||||
Graph(const Graph&) = delete;
|
||||
EditorGraph(const EditorGraph&) = delete;
|
||||
|
||||
void DisplayUpdateToast();
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace ScriptCanvasEditor
|
||||
// if CompleteDescription() succeeds, sets the handle to the result, else does nothing
|
||||
bool CompleteDescriptionInPlace(SourceHandle& source);
|
||||
|
||||
class Graph;
|
||||
class EditorGraph;
|
||||
class NodePaletteModel;
|
||||
|
||||
class NodeIdentifierFactory
|
||||
@@ -48,7 +48,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
virtual ~GraphStatisticsHelper() = default;
|
||||
|
||||
void PopulateStatisticData(const Graph* editorGraph);
|
||||
void PopulateStatisticData(const EditorGraph* editorGraph);
|
||||
|
||||
AZStd::unordered_map< ScriptCanvas::NodeTypeIdentifier, int > m_nodeIdentifierCount;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace ScriptCanvas
|
||||
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
class Graph;
|
||||
class EditorGraph;
|
||||
class StateMachine;
|
||||
|
||||
//! StateTraits provides each state the ability to provide its own compile time ID
|
||||
@@ -158,7 +158,7 @@ namespace ScriptCanvasEditor
|
||||
public:
|
||||
AZ_RTTI(EditorGraphUpgradeMachine, "{C7EABC22-A3DD-4ABE-8303-418EA3CD1246}", StateMachine);
|
||||
|
||||
EditorGraphUpgradeMachine(Graph* graph);
|
||||
EditorGraphUpgradeMachine(EditorGraph* graph);
|
||||
|
||||
AZStd::unordered_set<ScriptCanvas::Node*> m_allNodes;
|
||||
AZStd::unordered_set<ScriptCanvas::Node*> m_outOfDateNodes;
|
||||
@@ -180,7 +180,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
bool m_graphNeedsDirtying = false;
|
||||
|
||||
Graph* m_graph = nullptr;
|
||||
EditorGraph* m_graph = nullptr;
|
||||
SourceHandle m_asset;
|
||||
|
||||
void SetAsset(SourceHandle& assetasset);
|
||||
|
||||
Reference in New Issue
Block a user