From f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Fri, 25 Aug 2017 13:43:18 +0100 Subject: Add cUUID class (#3871) --- src/Root.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Root.h') diff --git a/src/Root.h b/src/Root.h index 23eeb8c80..44567018d 100644 --- a/src/Root.h +++ b/src/Root.h @@ -25,6 +25,7 @@ class cCommandOutputCallback; class cCompositeChat; class cSettingsRepositoryInterface; class cDeadlockDetect; +class cUUID; typedef cItemCallback cPlayerListCallback; typedef cItemCallback cWorldListCallback; @@ -123,7 +124,7 @@ public: void KickUser(int a_ClientID, const AString & a_Reason); /** Called by cAuthenticator to auth the specified user */ - void AuthenticateUser(int a_ClientID, const AString & a_Name, const AString & a_UUID, const Json::Value & a_Properties); + void AuthenticateUser(int a_ClientID, const AString & a_Name, const cUUID & a_UUID, const Json::Value & a_Properties); /** Executes commands queued in the command queue */ void TickCommands(void); @@ -141,7 +142,7 @@ public: bool FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << /** Finds the player over his uuid and calls the callback */ - bool DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << + bool DoWithPlayerByUUID(const cUUID & a_PlayerUUID, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << /** Finds the player using it's complete username and calls the callback */ bool DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); -- cgit v1.2.3