mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
implement nextEntityID save/load
This commit is contained in:
parent
f4d3e62b3f
commit
cf2faa4a01
5 changed files with 18 additions and 1 deletions
|
|
@ -192,9 +192,17 @@ public:
|
|||
void despawn(entityid_t id);
|
||||
dynamic::Value serialize(const Entity& entity);
|
||||
|
||||
void setNextID(entityid_t id) {
|
||||
nextID = id;
|
||||
}
|
||||
|
||||
inline size_t size() const {
|
||||
return entities.size();
|
||||
}
|
||||
|
||||
inline entityid_t peekNextID() const {
|
||||
return nextID;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // OBJECTS_ENTITIES_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue