aboutsummaryrefslogtreecommitdiff
path: root/src/CGEditor.hpp
diff options
context:
space:
mode:
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();