126 std::map<GraphId, std::unique_ptr<GraphDocument>>
m_graphs;
ComponentTypeID GetComponentTypeID_Static()
Document class for managing node graphs.
Main document class for a node graph.
Singleton manager for multiple node graphs.
std::string GetGraphName(GraphId id) const
Get graph name (for tab display)
std::map< GraphId, std::string > m_graphNames
GraphId GetActiveGraphId() const
Get active graph ID.
GraphDocument * GetGraph(GraphId id)
Get graph by ID.
std::vector< GraphId > GetGraphOrderForTabs() const
Get graph order for tabs.
static NodeGraphManager & Get()
Get singleton instance.
void SetActiveGraph(GraphId id)
Set active graph.
GraphDocument * GetActiveGraph()
Get active graph.
GraphId CreateGraph(const std::string &graphType, const std::string &graphKind)
Create a new graph.
bool SaveGraph(GraphId id, const std::string &filepath)
Save a graph to file.
std::vector< GraphId > GetAllGraphIds() const
Get all graph IDs.
std::vector< GraphId > m_graphOrder
GraphId LoadGraph(const std::string &filepath)
Load a graph from file.
std::map< GraphId, std::unique_ptr< GraphDocument > > m_graphs
NodeGraphManager & operator=(const NodeGraphManager &)=delete
bool CloseGraph(GraphId id)
Close a graph.
NodeGraphManager(const NodeGraphManager &)=delete
< Provides AssetID and INVALID_ASSET_ID