Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240913
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Sep 16, 2024
2 parents 5861573 + 0647aed commit a4aacff
Show file tree
Hide file tree
Showing 35 changed files with 634 additions and 245 deletions.
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabAddonDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
27 changes: 25 additions & 2 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down Expand Up @@ -14445,7 +14446,8 @@ namespace PlayFab
LoginIdentityProviderApple,
LoginIdentityProviderNintendoSwitchAccount,
LoginIdentityProviderGooglePlayGames,
LoginIdentityProviderXboxMobileStore
LoginIdentityProviderXboxMobileStore,
LoginIdentityProviderKing
};

inline void ToJsonEnum(const LoginIdentityProvider input, Json::Value& output)
Expand Down Expand Up @@ -14565,6 +14567,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == LoginIdentityProvider::LoginIdentityProviderKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, LoginIdentityProvider& output)
{
Expand Down Expand Up @@ -14688,6 +14695,11 @@ namespace PlayFab
output = LoginIdentityProvider::LoginIdentityProviderXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = LoginIdentityProvider::LoginIdentityProviderKing;
return;
}
}

enum class PushNotificationPlatform
Expand Down Expand Up @@ -20624,7 +20636,8 @@ namespace PlayFab
UserOriginationApple,
UserOriginationNintendoSwitchAccount,
UserOriginationGooglePlayGames,
UserOriginationXboxMobileStore
UserOriginationXboxMobileStore,
UserOriginationKing
};

inline void ToJsonEnum(const UserOrigination input, Json::Value& output)
Expand Down Expand Up @@ -20754,6 +20767,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == UserOrigination::UserOriginationKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, UserOrigination& output)
{
Expand Down Expand Up @@ -20887,6 +20905,11 @@ namespace PlayFab
output = UserOrigination::UserOriginationXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = UserOrigination::UserOriginationKing;
return;
}
}

// Admin Classes
Expand Down
14 changes: 13 additions & 1 deletion code/include/playfab/PlayFabAuthenticationDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down Expand Up @@ -160,7 +161,8 @@ namespace PlayFab
LoginIdentityProviderApple,
LoginIdentityProviderNintendoSwitchAccount,
LoginIdentityProviderGooglePlayGames,
LoginIdentityProviderXboxMobileStore
LoginIdentityProviderXboxMobileStore,
LoginIdentityProviderKing
};

inline void ToJsonEnum(const LoginIdentityProvider input, Json::Value& output)
Expand Down Expand Up @@ -280,6 +282,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == LoginIdentityProvider::LoginIdentityProviderKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, LoginIdentityProvider& output)
{
Expand Down Expand Up @@ -403,6 +410,11 @@ namespace PlayFab
output = LoginIdentityProvider::LoginIdentityProviderXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = LoginIdentityProvider::LoginIdentityProviderKing;
return;
}
}

// Authentication Classes
Expand Down
27 changes: 25 additions & 2 deletions code/include/playfab/PlayFabClientDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down Expand Up @@ -4949,7 +4950,8 @@ namespace PlayFab
LoginIdentityProviderApple,
LoginIdentityProviderNintendoSwitchAccount,
LoginIdentityProviderGooglePlayGames,
LoginIdentityProviderXboxMobileStore
LoginIdentityProviderXboxMobileStore,
LoginIdentityProviderKing
};

inline void ToJsonEnum(const LoginIdentityProvider input, Json::Value& output)
Expand Down Expand Up @@ -5069,6 +5071,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == LoginIdentityProvider::LoginIdentityProviderKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, LoginIdentityProvider& output)
{
Expand Down Expand Up @@ -5192,6 +5199,11 @@ namespace PlayFab
output = LoginIdentityProvider::LoginIdentityProviderXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = LoginIdentityProvider::LoginIdentityProviderKing;
return;
}
}

enum class PushNotificationPlatform
Expand Down Expand Up @@ -5893,7 +5905,8 @@ namespace PlayFab
UserOriginationApple,
UserOriginationNintendoSwitchAccount,
UserOriginationGooglePlayGames,
UserOriginationXboxMobileStore
UserOriginationXboxMobileStore,
UserOriginationKing
};

inline void ToJsonEnum(const UserOrigination input, Json::Value& output)
Expand Down Expand Up @@ -6023,6 +6036,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == UserOrigination::UserOriginationKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, UserOrigination& output)
{
Expand Down Expand Up @@ -6156,6 +6174,11 @@ namespace PlayFab
output = UserOrigination::UserOriginationXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = UserOrigination::UserOriginationKing;
return;
}
}

// Client Classes
Expand Down
14 changes: 13 additions & 1 deletion code/include/playfab/PlayFabCloudScriptDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down Expand Up @@ -3002,7 +3003,8 @@ namespace PlayFab
LoginIdentityProviderApple,
LoginIdentityProviderNintendoSwitchAccount,
LoginIdentityProviderGooglePlayGames,
LoginIdentityProviderXboxMobileStore
LoginIdentityProviderXboxMobileStore,
LoginIdentityProviderKing
};

inline void ToJsonEnum(const LoginIdentityProvider input, Json::Value& output)
Expand Down Expand Up @@ -3122,6 +3124,11 @@ namespace PlayFab
output = Json::Value("XboxMobileStore");
return;
}
if (input == LoginIdentityProvider::LoginIdentityProviderKing)
{
output = Json::Value("King");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, LoginIdentityProvider& output)
{
Expand Down Expand Up @@ -3245,6 +3252,11 @@ namespace PlayFab
output = LoginIdentityProvider::LoginIdentityProviderXboxMobileStore;
return;
}
if (inputStr == "King")
{
output = LoginIdentityProvider::LoginIdentityProviderKing;
return;
}
}

enum class PushNotificationPlatform
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabDataDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabEconomyDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabEventsDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabExperimentationDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabGroupsDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabInsightsDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabLocalizationDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
Expand Down
43 changes: 43 additions & 0 deletions code/include/playfab/PlayFabMatchmakerApi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#pragma once

#if defined(ENABLE_PLAYFABSERVER_API)

#include <playfab/PlayFabMatchmakerDataModels.h>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Matchmaker APIs
/// </summary>
class PlayFabMatchmakerAPI
{
public:
/// <summary>
/// Calls the Update function on your implementation of the IHttpPlugin to check for responses to HTTP requests.
/// All api's (Client, Server, Admin etc.) share the same IHttpPlugin.
/// This means that you only need to call Update() on one API to retrieve the responses for all APIs.
/// Additional calls to Update (on any API) during the same tick are unlikely to retrieve additional responses.
/// Call Update when your game ticks as follows:
/// Matchmaker.Update();
/// </summary>
static size_t Update();
static void ForgetAllCredentials();


// ------------ Generated API calls

private:
PlayFabMatchmakerAPI(); // Private constructor, static class should never have an instance
PlayFabMatchmakerAPI(const PlayFabMatchmakerAPI& other); // Private copy-constructor, static class should never have an instance

// ------------ Generated result handlers

static bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container);
};
}

#endif // #if defined(ENABLE_PLAYFABSERVER_API)
18 changes: 18 additions & 0 deletions code/include/playfab/PlayFabMatchmakerDataModels.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

#if defined(ENABLE_PLAYFABSERVER_API)

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformUtils.h>

namespace PlayFab
{
namespace MatchmakerModels
{
// Matchmaker Enums
// Matchmaker Classes
}
}

#endif
Loading

0 comments on commit a4aacff

Please sign in to comment.