aboutsummaryrefslogtreecommitdiff
path: root/src/Types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Types.hpp')
-rw-r--r--src/Types.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Types.hpp b/src/Types.hpp
index 402bf12..83c79f0 100644
--- a/src/Types.hpp
+++ b/src/Types.hpp
@@ -1,7 +1,8 @@
#pragma once
-#include "CGEHalfMove.hpp"
+#include "CMI.hpp"
#include <string>
+#include <unordered_map>
namespace cgeditor {
@@ -54,7 +55,7 @@ typedef struct Event {
enum Type { CommentSelected, Promote, Delete, SetAsMainline, Goto, None };
Type type = None;
/// @brief Move related to the event
- CGEHalfMove *move = NULL;
+ CMI::HalfMove *move = nullptr;
} Event;
/**
@@ -92,10 +93,11 @@ typedef struct Status {
double MoveTableMaxX = 0, MoveTableMaxY = 0;
/// @brief User should set it to true when mouse is dragging
bool IsDrag = false;
- CGEHalfMove *Moves = NULL;
- CGEHalfMove *CurrentMove = NULL;
- CGEHalfMove *SelectedMove = NULL;
+ CMI::HalfMove *Moves = nullptr;
+ CMI::HalfMove *CurrentMove = nullptr;
+ CMI::HalfMove *SelectedMove = nullptr;
std::vector<Event> Events;
+ std::unordered_map<std::uint8_t, std::string> NagTable;
} Status;
} // namespace cgeditor \ No newline at end of file