Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240119
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Jan 22, 2024
1 parent 26c222c commit 4260a71
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 66 deletions.
22 changes: 22 additions & 0 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5457,6 +5457,8 @@ namespace PlayFab
GenericErrorCodesLeaderboardColumnsNotSpecified,
GenericErrorCodesLeaderboardMaxSizeTooLarge,
GenericErrorCodesInvalidAttributeStatisticsSpecified,
GenericErrorCodesLeaderboardNotFound,
GenericErrorCodesTokenSigningKeyNotFound,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand Down Expand Up @@ -8447,6 +8449,16 @@ namespace PlayFab
output = Json::Value("InvalidAttributeStatisticsSpecified");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesLeaderboardNotFound)
{
output = Json::Value("LeaderboardNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTokenSigningKeyNotFound)
{
output = Json::Value("TokenSigningKeyNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -12305,6 +12317,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesInvalidAttributeStatisticsSpecified;
return;
}
if (inputStr == "LeaderboardNotFound")
{
output = GenericErrorCodes::GenericErrorCodesLeaderboardNotFound;
return;
}
if (inputStr == "TokenSigningKeyNotFound")
{
output = GenericErrorCodes::GenericErrorCodesTokenSigningKeyNotFound;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ namespace PlayFab
PlayFabErrorLeaderboardColumnsNotSpecified = 1564,
PlayFabErrorLeaderboardMaxSizeTooLarge = 1565,
PlayFabErrorInvalidAttributeStatisticsSpecified = 1566,
PlayFabErrorLeaderboardNotFound = 1567,
PlayFabErrorTokenSigningKeyNotFound = 1568,
PlayFabErrorMatchmakingEntityInvalid = 2001,
PlayFabErrorMatchmakingPlayerAttributesInvalid = 2002,
PlayFabErrorMatchmakingQueueNotFound = 2016,
Expand Down
114 changes: 60 additions & 54 deletions code/include/playfab/PlayFabMultiplayerDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -1884,44 +1884,6 @@ namespace PlayFab
}
}

enum class ServerDataStatus
{
ServerDataStatusInitialized,
ServerDataStatusIgnored
};

inline void ToJsonEnum(const ServerDataStatus input, Json::Value& output)
{
if (input == ServerDataStatus::ServerDataStatusInitialized)
{
output = Json::Value("Initialized");
return;
}
if (input == ServerDataStatus::ServerDataStatusIgnored)
{
output = Json::Value("Ignored");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, ServerDataStatus& output)
{
if (!input.isString())
{
return;
}
const std::string& inputStr = input.asString();
if (inputStr == "Initialized")
{
output = ServerDataStatus::ServerDataStatusInitialized;
return;
}
if (inputStr == "Ignored")
{
output = ServerDataStatus::ServerDataStatusIgnored;
return;
}
}

enum class ServerType
{
ServerTypeContainer,
Expand Down Expand Up @@ -6204,6 +6166,45 @@ namespace PlayFab
}
};

struct LobbyServer : public PlayFabBaseModel
{
std::string PubSubConnectionHandle;
std::map<std::string, std::string> ServerData;
Boxed<EntityKey> ServerEntity;

LobbyServer() :
PlayFabBaseModel(),
PubSubConnectionHandle(),
ServerData(),
ServerEntity()
{}

LobbyServer(const LobbyServer& src) :
PlayFabBaseModel(),
PubSubConnectionHandle(src.PubSubConnectionHandle),
ServerData(src.ServerData),
ServerEntity(src.ServerEntity)
{}

~LobbyServer() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["PubSubConnectionHandle"], PubSubConnectionHandle);
FromJsonUtilS(input["ServerData"], ServerData);
FromJsonUtilO(input["ServerEntity"], ServerEntity);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_PubSubConnectionHandle; ToJsonUtilS(PubSubConnectionHandle, each_PubSubConnectionHandle); output["PubSubConnectionHandle"] = each_PubSubConnectionHandle;
Json::Value each_ServerData; ToJsonUtilS(ServerData, each_ServerData); output["ServerData"] = each_ServerData;
Json::Value each_ServerEntity; ToJsonUtilO(ServerEntity, each_ServerEntity); output["ServerEntity"] = each_ServerEntity;
return output;
}
};

struct Lobby : public PlayFabBaseModel
{
AccessPolicy pfAccessPolicy;
Expand All @@ -6218,6 +6219,7 @@ namespace PlayFab
Boxed<OwnerMigrationPolicy> pfOwnerMigrationPolicy;
std::string PubSubConnectionHandle;
std::map<std::string, std::string> SearchData;
Boxed<LobbyServer> Server;
bool UseConnections;

Lobby() :
Expand All @@ -6234,6 +6236,7 @@ namespace PlayFab
pfOwnerMigrationPolicy(),
PubSubConnectionHandle(),
SearchData(),
Server(),
UseConnections()
{}

Expand All @@ -6251,6 +6254,7 @@ namespace PlayFab
pfOwnerMigrationPolicy(src.pfOwnerMigrationPolicy),
PubSubConnectionHandle(src.PubSubConnectionHandle),
SearchData(src.SearchData),
Server(src.Server),
UseConnections(src.UseConnections)
{}

Expand All @@ -6270,6 +6274,7 @@ namespace PlayFab
FromJsonUtilE(input["OwnerMigrationPolicy"], pfOwnerMigrationPolicy);
FromJsonUtilS(input["PubSubConnectionHandle"], PubSubConnectionHandle);
FromJsonUtilS(input["SearchData"], SearchData);
FromJsonUtilO(input["Server"], Server);
FromJsonUtilP(input["UseConnections"], UseConnections);
}

Expand All @@ -6288,6 +6293,7 @@ namespace PlayFab
Json::Value each_pfOwnerMigrationPolicy; ToJsonUtilE(pfOwnerMigrationPolicy, each_pfOwnerMigrationPolicy); output["OwnerMigrationPolicy"] = each_pfOwnerMigrationPolicy;
Json::Value each_PubSubConnectionHandle; ToJsonUtilS(PubSubConnectionHandle, each_PubSubConnectionHandle); output["PubSubConnectionHandle"] = each_PubSubConnectionHandle;
Json::Value each_SearchData; ToJsonUtilS(SearchData, each_SearchData); output["SearchData"] = each_SearchData;
Json::Value each_Server; ToJsonUtilO(Server, each_Server); output["Server"] = each_Server;
Json::Value each_UseConnections; ToJsonUtilP(UseConnections, each_UseConnections); output["UseConnections"] = each_UseConnections;
return output;
}
Expand Down Expand Up @@ -7522,33 +7528,28 @@ namespace PlayFab
struct JoinLobbyAsServerResult : public PlayFabResultCommon
{
std::string LobbyId;
ServerDataStatus pfServerDataStatus;

JoinLobbyAsServerResult() :
PlayFabResultCommon(),
LobbyId(),
pfServerDataStatus()
LobbyId()
{}

JoinLobbyAsServerResult(const JoinLobbyAsServerResult& src) :
PlayFabResultCommon(),
LobbyId(src.LobbyId),
pfServerDataStatus(src.pfServerDataStatus)
LobbyId(src.LobbyId)
{}

~JoinLobbyAsServerResult() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["LobbyId"], LobbyId);
FromJsonEnum(input["ServerDataStatus"], pfServerDataStatus);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_LobbyId; ToJsonUtilS(LobbyId, each_LobbyId); output["LobbyId"] = each_LobbyId;
Json::Value each_pfServerDataStatus; ToJsonEnum(pfServerDataStatus, each_pfServerDataStatus); output["ServerDataStatus"] = each_pfServerDataStatus;
return output;
}
};
Expand Down Expand Up @@ -8566,17 +8567,20 @@ namespace PlayFab
{
std::map<std::string, std::string> CustomTags;
Boxed<bool> IncludeAllRegions;
std::string RoutingPreference;

ListQosServersForTitleRequest() :
PlayFabRequestCommon(),
CustomTags(),
IncludeAllRegions()
IncludeAllRegions(),
RoutingPreference()
{}

ListQosServersForTitleRequest(const ListQosServersForTitleRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
IncludeAllRegions(src.IncludeAllRegions)
IncludeAllRegions(src.IncludeAllRegions),
RoutingPreference(src.RoutingPreference)
{}

~ListQosServersForTitleRequest() = default;
Expand All @@ -8585,13 +8589,15 @@ namespace PlayFab
{
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilP(input["IncludeAllRegions"], IncludeAllRegions);
FromJsonUtilS(input["RoutingPreference"], RoutingPreference);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_IncludeAllRegions; ToJsonUtilP(IncludeAllRegions, each_IncludeAllRegions); output["IncludeAllRegions"] = each_IncludeAllRegions;
Json::Value each_RoutingPreference; ToJsonUtilS(RoutingPreference, each_RoutingPreference); output["RoutingPreference"] = each_RoutingPreference;
return output;
}
};
Expand Down Expand Up @@ -9723,26 +9729,26 @@ namespace PlayFab
{
std::map<std::string, std::string> CustomTags;
std::string LobbyId;
Boxed<EntityKey> Server;
std::map<std::string, std::string> ServerData;
std::list<std::string> ServerDataToDelete;
Boxed<EntityKey> ServerEntity;

UpdateLobbyAsServerRequest() :
PlayFabRequestCommon(),
CustomTags(),
LobbyId(),
Server(),
ServerData(),
ServerDataToDelete()
ServerDataToDelete(),
ServerEntity()
{}

UpdateLobbyAsServerRequest(const UpdateLobbyAsServerRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
LobbyId(src.LobbyId),
Server(src.Server),
ServerData(src.ServerData),
ServerDataToDelete(src.ServerDataToDelete)
ServerDataToDelete(src.ServerDataToDelete),
ServerEntity(src.ServerEntity)
{}

~UpdateLobbyAsServerRequest() = default;
Expand All @@ -9751,19 +9757,19 @@ namespace PlayFab
{
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilS(input["LobbyId"], LobbyId);
FromJsonUtilO(input["Server"], Server);
FromJsonUtilS(input["ServerData"], ServerData);
FromJsonUtilS(input["ServerDataToDelete"], ServerDataToDelete);
FromJsonUtilO(input["ServerEntity"], ServerEntity);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_LobbyId; ToJsonUtilS(LobbyId, each_LobbyId); output["LobbyId"] = each_LobbyId;
Json::Value each_Server; ToJsonUtilO(Server, each_Server); output["Server"] = each_Server;
Json::Value each_ServerData; ToJsonUtilS(ServerData, each_ServerData); output["ServerData"] = each_ServerData;
Json::Value each_ServerDataToDelete; ToJsonUtilS(ServerDataToDelete, each_ServerDataToDelete); output["ServerDataToDelete"] = each_ServerDataToDelete;
Json::Value each_ServerEntity; ToJsonUtilO(ServerEntity, each_ServerEntity); output["ServerEntity"] = each_ServerEntity;
return output;
}
};
Expand Down
22 changes: 22 additions & 0 deletions code/include/playfab/PlayFabServerDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5474,6 +5474,8 @@ namespace PlayFab
GenericErrorCodesLeaderboardColumnsNotSpecified,
GenericErrorCodesLeaderboardMaxSizeTooLarge,
GenericErrorCodesInvalidAttributeStatisticsSpecified,
GenericErrorCodesLeaderboardNotFound,
GenericErrorCodesTokenSigningKeyNotFound,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand Down Expand Up @@ -8464,6 +8466,16 @@ namespace PlayFab
output = Json::Value("InvalidAttributeStatisticsSpecified");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesLeaderboardNotFound)
{
output = Json::Value("LeaderboardNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTokenSigningKeyNotFound)
{
output = Json::Value("TokenSigningKeyNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -12322,6 +12334,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesInvalidAttributeStatisticsSpecified;
return;
}
if (inputStr == "LeaderboardNotFound")
{
output = GenericErrorCodes::GenericErrorCodesLeaderboardNotFound;
return;
}
if (inputStr == "TokenSigningKeyNotFound")
{
output = GenericErrorCodes::GenericErrorCodesTokenSigningKeyNotFound;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down
4 changes: 2 additions & 2 deletions code/source/playfab/PlayFabSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace PlayFab
// Control whether all callbacks are threaded or whether the user manually controls callback timing from their main-thread
// Note ANY api call may synchronously throw an exception if the title id is not set
bool PlayFabSettings::threadedCallbacks = false;
const std::string PlayFabSettings::sdkVersion = "3.128.240105";
const std::string PlayFabSettings::sdkVersion = "3.130.240119";
const std::string PlayFabSettings::buildIdentifier = "adobuild_xplatcppsdk_117";
const std::string PlayFabSettings::versionString = "XPlatCppSdk-3.128.240105";
const std::string PlayFabSettings::versionString = "XPlatCppSdk-3.130.240119";
std::string PlayFabSettings::productionEnvironmentURL = ".playfabapi.com";

ErrorCallback PlayFabSettings::globalErrorHandler = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions com.playfab.xplatcppsdk.v141.autopkg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ configurations {
nuget {
nuspec {
id = "com.playfab.xplatcppsdk.v141";
version : 3.128.240105;
version : 3.130.240119;
title: "PlayFab Cross Platform C++ Sdk for Visual Studio 2017";
summary: "PlayFab is the unified backend platform for games and everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience.";
authors: "PlayFab";
Expand All @@ -18,7 +18,7 @@ nuget {
iconUrl: "https://playfab.com/assets/img/playfab-mark.png";
requireLicenseAcceptance: false;
description: "Authentication, in-game commerce, player data, title data, inventory, characters, statistics, leaderboards, analytics and reporting, friends, multiplayer, matchmaking, tournaments, cloud script, trading, real-time event handling, player management, live ops, and server hosting for all major platforms/devices and games of any scale. This sdk gives your game the ability log into PlayFab and access cloud data and services.";
releaseNotes: "https://api.playfab.com/releaseNotes/#240105";
releaseNotes: "https://api.playfab.com/releaseNotes/#240119";
copyright: "Copyright 2024";
language: "C++";
tags: { PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native };
Expand Down
Loading

0 comments on commit 4260a71

Please sign in to comment.