Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarEntityMap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarEntityMap.hpp')
-rw-r--r--source/game/StarEntityMap.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/game/StarEntityMap.hpp b/source/game/StarEntityMap.hpp
index d1adc49..bf8a12a 100644
--- a/source/game/StarEntityMap.hpp
+++ b/source/game/StarEntityMap.hpp
@@ -30,6 +30,10 @@ public:
// Get the next free id in the entity id space.
EntityId reserveEntityId();
+ // Or a specific one, can fail.
+ Maybe<EntityId> maybeReserveEntityId(EntityId entityId);
+ // If it doesn't matter that we don't get the one want
+ EntityId reserveEntityId(EntityId entityId);
// Add an entity to this EntityMap. The entity must already be initialized
// and have a unique EntityId returned by reserveEntityId.