mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
content pack dependency levels draft
This commit is contained in:
parent
13ae6c6950
commit
f298d6ef1d
4 changed files with 32 additions and 16 deletions
|
|
@ -75,7 +75,9 @@ ContentPack ContentPack::read(fs::path folder) {
|
|||
auto dependencies = root->list("dependencies");
|
||||
if (dependencies) {
|
||||
for (size_t i = 0; i < dependencies->size(); i++) {
|
||||
pack.dependencies.push_back(dependencies->str(i));
|
||||
pack.dependencies.push_back(
|
||||
{DependencyLevel::required, dependencies->str(i)}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue