Some clean up, web version prepare
This commit is contained in:
1 parent
e9c888e2bf
commit
0975f3b9cd
104 files changed
+779
-1483
No files matched your search
@@ -5,7 +5,7 @@
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
namespace ZL::Quest {
|
||||
namespace FRG::Quest {
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
@@ -27,7 +27,7 @@ static QuestStatus parseQuestStatus(const std::string& value) {
|
||||
}
|
||||
|
||||
bool QuestJournal::loadFromFile(const std::string& path, const std::string& zipFile) {
|
||||
const std::string content = ZL::readLocalizedConfigFile(path, zipFile);
|
||||
const std::string content = FRG::readLocalizedConfigFile(path, zipFile);
|
||||
if (content.empty()) {
|
||||
std::cerr << "[quest] Failed to read " << path << std::endl;
|
||||
return false;
|
||||
@@ -260,4 +260,4 @@ void QuestJournal::load(const nlohmann::json& in) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ZL::Quest
|
||||
} // namespace FRG::Quest
|
||||
@@ -8,9 +8,9 @@
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
namespace ZL::Quest {
|
||||
namespace FRG::Quest {
|
||||
|
||||
class QuestJournal : public ZL::ISaveable {
|
||||
class QuestJournal : public FRG::ISaveable {
|
||||
public:
|
||||
bool loadFromFile(const std::string& path, const std::string& zipFile = "");
|
||||
|
||||
@@ -49,4 +49,4 @@ private:
|
||||
bool setStatus(const std::string& questId, QuestStatus status);
|
||||
};
|
||||
|
||||
} // namespace ZL::Quest
|
||||
} // namespace FRG::Quest
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace ZL::Quest {
|
||||
namespace FRG::Quest {
|
||||
|
||||
enum class QuestStatus {
|
||||
Hidden,
|
||||
@@ -37,4 +37,4 @@ struct QuestState {
|
||||
|
||||
const char* toString(QuestStatus status);
|
||||
|
||||
} // namespace ZL::Quest
|
||||
} // namespace FRG::Quest
|
||||
Reference in new issue
Block a user