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

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayerStorage.hpp
diff options
context:
space:
mode:
authorVladimir Krasheninnikov <boba09@list.ru>2025-02-08 20:40:33 +0100
committerVladimir Krasheninnikov <boba09@list.ru>2025-02-08 20:40:33 +0100
commit0d860dc2e3832d5cb460e4d474b7e08c090a791a (patch)
tree1923174c217f39ad11451dc8f18961e4785dd068 /source/game/StarPlayerStorage.hpp
parent4244b60fd27122368d6a685199ddf325dfdd1c2e (diff)
Search character by name
Diffstat (limited to 'source/game/StarPlayerStorage.hpp')
-rw-r--r--source/game/StarPlayerStorage.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/StarPlayerStorage.hpp b/source/game/StarPlayerStorage.hpp
index c9bc2d8..4033dae 100644
--- a/source/game/StarPlayerStorage.hpp
+++ b/source/game/StarPlayerStorage.hpp
@@ -19,6 +19,8 @@ public:
Maybe<Uuid> playerUuidAt(size_t index);
// Returns nothing if name doesn't match a player.
Maybe<Uuid> playerUuidByName(String const& name, Maybe<Uuid> except = {});
+ // Returns nothing if name doesn't match a player.
+ List<Uuid> playerUuidListByName(String const& name, Maybe<Uuid> except = {});
// Also returns the diskStore Json if needed.
Json savePlayer(PlayerPtr const& player);