mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
refactor ContentLoader
This commit is contained in:
parent
3d478aef08
commit
39030efd74
2 changed files with 87 additions and 73 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue