mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
update ContentUnitIndices
This commit is contained in:
parent
55e4e6de02
commit
c3c343ffdb
9 changed files with 38 additions and 26 deletions
|
|
@ -104,9 +104,9 @@ void WorldFiles::writePacks(const std::vector<ContentPack>& packs) {
|
|||
io::write_string(packsFile, ss.str());
|
||||
}
|
||||
|
||||
template <class T>
|
||||
template <class T, typename IdType>
|
||||
static void write_indices(
|
||||
const ContentUnitIndices<T>& indices, dv::value& list
|
||||
const ContentUnitIndices<T, IdType>& indices, dv::value& list
|
||||
) {
|
||||
for (auto unit : indices.getIterable()) {
|
||||
list.add(unit->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue