aboutsummaryrefslogtreecommitdiff
path: root/src/CGEditor.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-19 13:06:36 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-19 13:06:36 +0100
commita84b210ca397194ad360175cf89451f319121e6c (patch)
treef44e9396fd5bf0abfd731d5bf897811e95384c32 /src/CGEditor.hpp
parent5e18d43a6ba4fd378178418de6b2ca7a67d64c21 (diff)
Integrate CMI
Diffstat (limited to 'src/CGEditor.hpp')
-rw-r--r--src/CGEditor.hpp7
1 files changed, 6 insertions, 1 deletions
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();