#pragma once
#include <string>
#include <vector>

class asIScriptEngine;
class asIScriptModule;
class asIScriptContext;
class CScriptBuilder;

namespace Deer {
    // This namespace implements all interface ported from c++ ImGui to an easier lua aproach with simplifications
    namespace EditorEngine {
        class DockPanelContext;
        class DockPanelObject;

        void initialize();
        void deinitialize();

        void render();

        // INTERNAL
        // Panels
        extern asIScriptEngine* scriptEngine;
        extern asIScriptContext* executingScriptContext;
        extern CScriptBuilder dockPanelScriptBuilder;
        
        extern std::vector<DockPanelContext> dockPanelModules;
        extern DockPanelObject* currentDockPanelExecution;

        void loadDockPanels();
        void registerEditorEngineFunctions();
        void registerEditorEngineStructs();
        void registerDockPanel();
    }

    namespace DataStore {
        int getIconId(const std::string& name);
    }
}