3#include "../IGraphRenderer.h"
7#include "../Utilities/ICanvasEditor.h"
27 bool Load(
const std::string& path)
override;
28 bool Save(
const std::string& path)
override;
ComponentTypeID GetComponentTypeID_Static()
Renderer adapter for Entity Prefab graphs.
bool Save(const std::string &path) override
Saves the current graph state to disk.
void SetCanvasStateJSON(const std::string &json) override
Restore canvas state from JSON string.
std::unique_ptr< ICanvasEditor > m_canvasEditor
bool IsDirty() const override
Returns true when the graph has unsaved changes.
void Render() override
Renders the graph canvas into the current ImGui child window.
ComponentPalettePanel m_componentPalette
bool Load(const std::string &path) override
Loads a graph from a file on disk.
std::string GetCanvasStateJSON() const override
Get canvas state as JSON string for persistence.
void RestoreCanvasState() override
Restore previously saved canvas viewport state Called when tab is reactivated.
void SaveCanvasState() override
Save the current canvas viewport state (pan, zoom, etc.) Called when tab is deactivated.
void RenderRightPanelTabs()
std::string GetCurrentPath() const override
Returns the last path successfully loaded/saved, or empty string.
std::string GetGraphType() const override
Returns the graph type string, e.g.
PropertyEditorPanel m_propertyEditor
struct Olympe::EntityPrefabRenderer::CanvasState m_savedCanvasState
void RenderLayoutWithTabs()
int m_rightPanelTabSelection
Polymorphic interface for all graph editor renderers.
< Provides AssetID and INVALID_ASSET_ID