mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
implement nextEntityID save/load
This commit is contained in:
parent
f4d3e62b3f
commit
cf2faa4a01
5 changed files with 18 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ Level::Level(
|
|||
entities(std::make_unique<Entities>(this)),
|
||||
settings(settings)
|
||||
{
|
||||
entities->setNextID(this->world->nextEntityId);
|
||||
auto inv = std::make_shared<Inventory>(
|
||||
this->world->getNextInventoryId(), DEF_PLAYER_INVENTORY_SIZE
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue