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

summaryrefslogtreecommitdiff
path: root/source/game/StarEntityMap.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-22 22:31:04 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-22 22:31:04 +1000
commitcb19eef701b5c9e27d0464795fffcf8a4d795a21 (patch)
tree5cfbdf49ebd7ac9539891eea850e244887d4c355 /source/game/StarEntityMap.hpp
parent4fbd67daccfa69df6988bdf17c67ee3d5f3049c5 (diff)
Add character swapping (no GUI yet)
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.