mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Content packs indices auto build + WorldGenerator fix
This commit is contained in:
parent
d2a40d31a4
commit
76aeb8e4df
8 changed files with 90 additions and 6 deletions
|
|
@ -238,6 +238,10 @@ JObject& JArray::putObj() {
|
|||
return *obj;
|
||||
}
|
||||
|
||||
void JArray::remove(size_t index) {
|
||||
values.erase(values.begin() + index);
|
||||
}
|
||||
|
||||
JObject::~JObject() {
|
||||
for (auto entry : map) {
|
||||
delete entry.second;
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ namespace json {
|
|||
|
||||
JArray& putArray();
|
||||
JObject& putObj();
|
||||
|
||||
void remove(size_t index);
|
||||
};
|
||||
|
||||
class JObject {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue