From a84b210ca397194ad360175cf89451f319121e6c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 19 Jan 2023 13:06:36 +0100 Subject: Integrate CMI --- src/CGEditor.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/CGEditor.hpp') diff --git a/src/CGEditor.hpp b/src/CGEditor.hpp index e113325..2ac81a3 100644 --- a/src/CGEditor.hpp +++ b/src/CGEditor.hpp @@ -27,11 +27,16 @@ protected: void Draw(); /// @brief Process the events generated during the drawing bool ProcessEvents(); + /// @brief Synchronize the editor cache (must be called when game was modified from outside the editor) + void SyncCache(); /// @brief Draw an element on the canvas virtual void DrawElement(const Element &) = 0; /// @brief Handle event that occured during editor drawing virtual void HandleEvent(const Event &) = 0; - + /// @brief Convert NAG id to symbol using the NagTable + std::string GetNAGSymbol(const std::uint8_t) const; + /// @brief Convert NAG symbol to id using the NagTable + std::uint8_t GetNAGId(const std::string&) const; public: CGEditor(); ~CGEditor(); -- cgit v1.2.3