Store properties as Json::Value

This commit is contained in:
Tiger Wang
2014-07-16 00:03:47 +01:00
parent 4e24f711ab
commit 1f6854792c
9 changed files with 44 additions and 21 deletions
+8 -1
View File
@@ -23,6 +23,11 @@
// fwd: "cRoot.h"
class cRoot;
namespace Json
{
class Value;
}
@@ -79,12 +84,14 @@ private:
/** cIsThread override: */
virtual void Execute(void) override;
/** Connects to a hostname using SSL, sends given data, and sets the response, returning whether all was successful or not */
bool ConnectSecurelyToAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Data, AString & a_Response);
/** Returns true if the user authenticated okay, false on error; iLevel is the recursion deptht (bails out if too deep) */
bool AuthWithYggdrasil(AString & a_UserName, const AString & a_ServerId, AString & a_UUID);
bool GetPlayerProperties(const AString & a_UUID, AString & a_Properties);
/** Gets the properties, such as skin, of a player based on their UUID via Mojang's API */
bool GetPlayerProperties(const AString & a_UUID, Json::Value & a_Properties);
};