summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/enums/resources/questtype.h14
-rw-r--r--src/gui/windows/questswindow.cpp2
-rw-r--r--src/resources/questitemtext.h6
3 files changed, 11 insertions, 11 deletions
diff --git a/src/enums/resources/questtype.h b/src/enums/resources/questtype.h
index 62f4271c7..4e83d0f14 100644
--- a/src/enums/resources/questtype.h
+++ b/src/enums/resources/questtype.h
@@ -21,14 +21,14 @@
#ifndef RESOURCES_QUESTTYPE_H
#define RESOURCES_QUESTTYPE_H
-namespace QuestType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(QuestType)
{
- enum Type
- {
- TEXT = 0,
- NAME = 1,
- REWARD = 2
- };
+ TEXT = 0,
+ NAME = 1,
+ REWARD = 2
}
+enumEnd(QuestType);
#endif // RESOURCES_QUESTTYPE_H
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index 5c57ca4eb..f8b36342a 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -26,8 +26,6 @@
#include "being/localplayer.h"
-#include "enums/resources/questtype.h"
-
#include "gui/gui.h"
#include "gui/fonts/font.h"
diff --git a/src/resources/questitemtext.h b/src/resources/questitemtext.h
index 306fe27b8..01d6706ea 100644
--- a/src/resources/questitemtext.h
+++ b/src/resources/questitemtext.h
@@ -21,19 +21,21 @@
#ifndef RESOURCES_QUESTITEMTEXT_H
#define RESOURCES_QUESTITEMTEXT_H
+#include "enums/resources/questtype.h"
+
#include <string>
#include "localconsts.h"
struct QuestItemText final
{
- QuestItemText(const std::string &text0, const int type0) :
+ QuestItemText(const std::string &text0, const QuestTypeT type0) :
text(text0), type(type0)
{
}
std::string text;
- int type;
+ QuestTypeT type;
};
#endif // RESOURCES_QUESTITEMTEXT_H