implement nextEntityID save/load

This commit is contained in:
MihailRis
2024-07-05 23:41:55 +03:00
parent f4d3e62b3f
commit cf2faa4a01
5 changed files with 18 additions and 1 deletions
+8
View File
@@ -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_