refactor ContentLoader

This commit is contained in:
MihailRis
2024-09-27 04:21:35 +03:00
parent 3d478aef08
commit 39030efd74
2 changed files with 87 additions and 73 deletions
+3
View File
@@ -52,9 +52,12 @@ class ContentLoader {
EntityDef& def, const std::string& name, const fs::path& file
);
void loadResources(ResourceType type, const dv::value& list);
void loadContent(const dv::value& map);
public:
ContentLoader(ContentPack* pack, ContentBuilder& builder);
// Refresh pack content.json
static bool fixPackIndices(
const fs::path& folder,
dv::value& indicesRoot,