Some clean up, web version prepare

This commit is contained in:
Vladislav Khorev committed 2026-07-17 21:27:47 +03:00
1 parent e9c888e2bf
commit 0975f3b9cd
104 files changed
+779 -1483

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@
#include <SDL.h>
namespace ZL {
namespace FRG {
using json = nlohmann::json;
@@ -389,4 +389,4 @@ namespace ZL {
return npcs;
}
} // namespace ZL
} // namespace FRG
+3 -3
View File
@@ -10,7 +10,7 @@
#include "InteractiveObjectState.h"
#include "../CharacterState.h"
namespace ZL {
namespace FRG {
class Character;
@@ -98,7 +98,7 @@ namespace ZL {
const std::string& zipPath = ""
);
static std::vector<std::unique_ptr<ZL::Character>> loadAndCreate_Npcs(
static std::vector<std::unique_ptr<FRG::Character>> loadAndCreate_Npcs(
const std::string& jsonPath,
Renderer& renderer,
const std::string& zipPath = ""
@@ -114,4 +114,4 @@ namespace ZL {
static std::vector<InteractiveObjectData> loadInteractiveFromJson(const std::string& jsonPath, const std::string& zipPath);
};
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -7,7 +7,7 @@
#include <algorithm>
#include <Eigen/Geometry>
namespace ZL {
namespace FRG {
extern const std::string textureUniformName;
#ifdef EMSCRIPTEN
@@ -300,4 +300,4 @@ namespace ZL {
}
}
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -8,7 +8,7 @@
#include "render/Renderer.h"
#include "InteractiveObjectState.h"
namespace ZL {
namespace FRG {
class Renderer;
@@ -42,4 +42,4 @@ namespace ZL {
void drawDarklands(Renderer& renderer) const;
};
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -7,7 +7,7 @@
#include "external/nlohmann/json.hpp"
#include "ISaveable.h"
namespace ZL {
namespace FRG {
// Animation task for timed position/rotation/scale/alpha transitions.
// Moved here from InteractiveObject so InteractiveObjectState can own it.
@@ -75,4 +75,4 @@ public:
void load(const nlohmann::json& in) override;
};
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -5,7 +5,7 @@
#include <iostream>
#include "../utils/Utils.h"
namespace ZL {
namespace FRG {
void Inventory::addItem(const std::string& itemId) {
itemIds.push_back(itemId);
@@ -54,4 +54,4 @@ namespace ZL {
}
}
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -5,7 +5,7 @@
#include <functional>
#include "ISaveable.h"
namespace ZL {
namespace FRG {
struct Item {
std::string id;
@@ -42,4 +42,4 @@ namespace ZL {
std::vector<std::string> itemIds;
};
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -4,7 +4,7 @@
#include "external/nlohmann/json.hpp"
#include <iostream>
namespace ZL {
namespace FRG {
ItemRegistry& ItemRegistry::instance() {
static ItemRegistry reg;
@@ -56,4 +56,4 @@ const Item* ItemRegistry::findById(const std::string& id) const {
return it != items_.end() ? &it->second : nullptr;
}
} // namespace ZL
} // namespace FRG
+2 -2
View File
@@ -3,7 +3,7 @@
#include <unordered_map>
#include "Item.h"
namespace ZL {
namespace FRG {
class ItemRegistry {
public:
@@ -20,4 +20,4 @@ private:
std::unordered_map<std::string, Item> items_;
};
} // namespace ZL
} // namespace FRG