update ContentUnitIndices

This commit is contained in:
MihailRis 2025-12-15 22:05:27 +03:00
parent 55e4e6de02
commit c3c343ffdb
9 changed files with 38 additions and 26 deletions

View file

@ -11,11 +11,13 @@
#include <unordered_set>
#include <vector>
#include "typedefs.hpp"
class Block;
class Level;
class GlobalChunks;
template <typename T>
template <typename T, typename IdType>
class ContentUnitIndices;
namespace voxels {
@ -82,7 +84,7 @@ namespace voxels {
private:
const Level& level;
const GlobalChunks& chunks;
const ContentUnitIndices<Block>& blockDefs;
const ContentUnitIndices<Block, blockid_t>& blockDefs;
std::unordered_map<int, Agent> agents;
int nextAgent = 1;