feat: environment is primary

This commit is contained in:
MihailRis 2026-05-16 22:24:35 +03:00
parent 4aaa5b2d7e
commit 3476bddc6b
10 changed files with 60 additions and 29 deletions

View file

@ -31,6 +31,7 @@ Level::Level(
entities(std::make_unique<Entities>(*this)),
players(std::make_unique<Players>(*this)),
pathfinding(std::make_unique<voxels::Pathfinding>(*this)) {
const auto& worldInfo = world->getInfo();
auto& cameraIndices = content.getIndices(ResourceType::CAMERA);
for (size_t i = 0; i < cameraIndices.size(); i++) {