Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240412
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Apr 17, 2024
1 parent 0166924 commit f577eb5
Show file tree
Hide file tree
Showing 10 changed files with 327 additions and 87 deletions.
178 changes: 144 additions & 34 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5669,14 +5669,24 @@ namespace PlayFab
GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult,
GenericErrorCodesTrueSkillInvalidRanksInMatchResult,
GenericErrorCodesTrueSkillNoWinnerInMatchResult,
GenericErrorCodesTrueSkillMissingRequiredConditionInMatchResult,
GenericErrorCodesTrueSkillMissingRequiredEventInMatchResult,
GenericErrorCodesTrueSkillUnknownEventInMatchResult,
GenericErrorCodesTrueSkillUnknownConditionName,
GenericErrorCodesTrueSkillMissingRequiredCondition,
GenericErrorCodesTrueSkillMissingRequiredEvent,
GenericErrorCodesTrueSkillUnknownEventName,
GenericErrorCodesTrueSkillUnknownConditionKey,
GenericErrorCodesTrueSkillUnknownConditionValue,
GenericErrorCodesTrueSkillUnknownScenarioId,
GenericErrorCodesTrueSkillUnknownModelId,
GenericErrorCodesTrueSkillNoActiveModelInScenario,
GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam,
GenericErrorCodesTrueSkillPlayersInMatchResultExceedingLimit,
GenericErrorCodesTrueSkillInvalidPreMatchPartyInMatchResult,
GenericErrorCodesTrueSkillInvalidTimestampInMatchResult,
GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult,
GenericErrorCodesTrueSkillNoTeamInMatchResult,
GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult,
GenericErrorCodesTrueSkillScenarioConfigDoesNotExist,
GenericErrorCodesTrueSkillNoModelInScenario,
GenericErrorCodesTrueSkillNotSupportedForTitle,
GenericErrorCodesTrueSkillModelIsNotActive,
GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills,
GenericErrorCodesStateShareUnauthorized,
GenericErrorCodesStateShareStateNotFound,
GenericErrorCodesStateShareLinkNotFound
Expand Down Expand Up @@ -9514,44 +9524,94 @@ namespace PlayFab
output = Json::Value("TrueSkillNoWinnerInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredConditionInMatchResult)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition)
{
output = Json::Value("TrueSkillMissingRequiredConditionInMatchResult");
output = Json::Value("TrueSkillMissingRequiredCondition");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEventInMatchResult)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent)
{
output = Json::Value("TrueSkillMissingRequiredEventInMatchResult");
output = Json::Value("TrueSkillMissingRequiredEvent");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventInMatchResult)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName)
{
output = Json::Value("TrueSkillUnknownEventInMatchResult");
output = Json::Value("TrueSkillUnknownEventName");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionName)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey)
{
output = Json::Value("TrueSkillUnknownConditionName");
output = Json::Value("TrueSkillUnknownConditionKey");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue)
{
output = Json::Value("TrueSkillUnknownConditionValue");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownScenarioId)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId)
{
output = Json::Value("TrueSkillUnknownScenarioId");
output = Json::Value("TrueSkillUnknownModelId");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam)
{
output = Json::Value("TrueSkillUnknownModelId");
output = Json::Value("TrueSkillNoPlayerInMatchResultTeam");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillPlayersInMatchResultExceedingLimit)
{
output = Json::Value("TrueSkillPlayersInMatchResultExceedingLimit");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPreMatchPartyInMatchResult)
{
output = Json::Value("TrueSkillInvalidPreMatchPartyInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTimestampInMatchResult)
{
output = Json::Value("TrueSkillInvalidTimestampInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult)
{
output = Json::Value("TrueSkillInvalidPlayerSecondsPlayedInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoTeamInMatchResult)
{
output = Json::Value("TrueSkillNoTeamInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult)
{
output = Json::Value("TrueSkillNotEnoughTeamsInMatchResult");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist)
{
output = Json::Value("TrueSkillScenarioConfigDoesNotExist");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario)
{
output = Json::Value("TrueSkillNoModelInScenario");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNotSupportedForTitle)
{
output = Json::Value("TrueSkillNotSupportedForTitle");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillModelIsNotActive)
{
output = Json::Value("TrueSkillModelIsNotActive");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoActiveModelInScenario)
if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills)
{
output = Json::Value("TrueSkillNoActiveModelInScenario");
output = Json::Value("TrueSkillUnauthorizedToQueryOtherPlayerSkills");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesStateShareUnauthorized)
Expand Down Expand Up @@ -13407,44 +13467,94 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult;
return;
}
if (inputStr == "TrueSkillMissingRequiredConditionInMatchResult")
if (inputStr == "TrueSkillMissingRequiredCondition")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredConditionInMatchResult;
output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition;
return;
}
if (inputStr == "TrueSkillMissingRequiredEventInMatchResult")
if (inputStr == "TrueSkillMissingRequiredEvent")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEventInMatchResult;
output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent;
return;
}
if (inputStr == "TrueSkillUnknownEventInMatchResult")
if (inputStr == "TrueSkillUnknownEventName")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventInMatchResult;
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName;
return;
}
if (inputStr == "TrueSkillUnknownConditionName")
if (inputStr == "TrueSkillUnknownConditionKey")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionName;
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey;
return;
}
if (inputStr == "TrueSkillUnknownConditionValue")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue;
return;
}
if (inputStr == "TrueSkillUnknownScenarioId")
if (inputStr == "TrueSkillUnknownModelId")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownScenarioId;
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId;
return;
}
if (inputStr == "TrueSkillUnknownModelId")
if (inputStr == "TrueSkillNoPlayerInMatchResultTeam")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId;
output = GenericErrorCodes::GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam;
return;
}
if (inputStr == "TrueSkillPlayersInMatchResultExceedingLimit")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillPlayersInMatchResultExceedingLimit;
return;
}
if (inputStr == "TrueSkillInvalidPreMatchPartyInMatchResult")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPreMatchPartyInMatchResult;
return;
}
if (inputStr == "TrueSkillInvalidTimestampInMatchResult")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTimestampInMatchResult;
return;
}
if (inputStr == "TrueSkillInvalidPlayerSecondsPlayedInMatchResult")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult;
return;
}
if (inputStr == "TrueSkillNoTeamInMatchResult")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillNoTeamInMatchResult;
return;
}
if (inputStr == "TrueSkillNotEnoughTeamsInMatchResult")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult;
return;
}
if (inputStr == "TrueSkillScenarioConfigDoesNotExist")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist;
return;
}
if (inputStr == "TrueSkillNoModelInScenario")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario;
return;
}
if (inputStr == "TrueSkillNotSupportedForTitle")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillNotSupportedForTitle;
return;
}
if (inputStr == "TrueSkillModelIsNotActive")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillModelIsNotActive;
return;
}
if (inputStr == "TrueSkillNoActiveModelInScenario")
if (inputStr == "TrueSkillUnauthorizedToQueryOtherPlayerSkills")
{
output = GenericErrorCodes::GenericErrorCodesTrueSkillNoActiveModelInScenario;
output = GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills;
return;
}
if (inputStr == "StateShareUnauthorized")
Expand Down
10 changes: 10 additions & 0 deletions code/include/playfab/PlayFabEconomyDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -6960,6 +6960,7 @@ namespace PlayFab
{
Boxed<Int32> Amount;
Boxed<double> DurationInSeconds;
std::string ItemFriendlyId;
std::string ItemId;
std::string ItemType;
std::string StackId;
Expand All @@ -6969,6 +6970,7 @@ namespace PlayFab
PlayFabBaseModel(),
Amount(),
DurationInSeconds(),
ItemFriendlyId(),
ItemId(),
ItemType(),
StackId(),
Expand All @@ -6979,6 +6981,7 @@ namespace PlayFab
PlayFabBaseModel(),
Amount(src.Amount),
DurationInSeconds(src.DurationInSeconds),
ItemFriendlyId(src.ItemFriendlyId),
ItemId(src.ItemId),
ItemType(src.ItemType),
StackId(src.StackId),
Expand All @@ -6991,6 +6994,7 @@ namespace PlayFab
{
FromJsonUtilP(input["Amount"], Amount);
FromJsonUtilP(input["DurationInSeconds"], DurationInSeconds);
FromJsonUtilS(input["ItemFriendlyId"], ItemFriendlyId);
FromJsonUtilS(input["ItemId"], ItemId);
FromJsonUtilS(input["ItemType"], ItemType);
FromJsonUtilS(input["StackId"], StackId);
Expand All @@ -7002,6 +7006,7 @@ namespace PlayFab
Json::Value output;
Json::Value each_Amount; ToJsonUtilP(Amount, each_Amount); output["Amount"] = each_Amount;
Json::Value each_DurationInSeconds; ToJsonUtilP(DurationInSeconds, each_DurationInSeconds); output["DurationInSeconds"] = each_DurationInSeconds;
Json::Value each_ItemFriendlyId; ToJsonUtilS(ItemFriendlyId, each_ItemFriendlyId); output["ItemFriendlyId"] = each_ItemFriendlyId;
Json::Value each_ItemId; ToJsonUtilS(ItemId, each_ItemId); output["ItemId"] = each_ItemId;
Json::Value each_ItemType; ToJsonUtilS(ItemType, each_ItemType); output["ItemType"] = each_ItemType;
Json::Value each_StackId; ToJsonUtilS(StackId, each_StackId); output["StackId"] = each_StackId;
Expand All @@ -7012,28 +7017,33 @@ namespace PlayFab

struct TransactionPurchaseDetails : public PlayFabBaseModel
{
std::string StoreFriendlyId;
std::string StoreId;

TransactionPurchaseDetails() :
PlayFabBaseModel(),
StoreFriendlyId(),
StoreId()
{}

TransactionPurchaseDetails(const TransactionPurchaseDetails& src) :
PlayFabBaseModel(),
StoreFriendlyId(src.StoreFriendlyId),
StoreId(src.StoreId)
{}

~TransactionPurchaseDetails() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["StoreFriendlyId"], StoreFriendlyId);
FromJsonUtilS(input["StoreId"], StoreId);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_StoreFriendlyId; ToJsonUtilS(StoreFriendlyId, each_StoreFriendlyId); output["StoreFriendlyId"] = each_StoreFriendlyId;
Json::Value each_StoreId; ToJsonUtilS(StoreId, each_StoreId); output["StoreId"] = each_StoreId;
return output;
}
Expand Down
24 changes: 17 additions & 7 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -777,14 +777,24 @@ namespace PlayFab
PlayFabErrorTrueSkillDuplicatePlayerInMatchResult = 20003,
PlayFabErrorTrueSkillInvalidRanksInMatchResult = 20004,
PlayFabErrorTrueSkillNoWinnerInMatchResult = 20005,
PlayFabErrorTrueSkillMissingRequiredConditionInMatchResult = 20006,
PlayFabErrorTrueSkillMissingRequiredEventInMatchResult = 20007,
PlayFabErrorTrueSkillUnknownEventInMatchResult = 20008,
PlayFabErrorTrueSkillUnknownConditionName = 20009,
PlayFabErrorTrueSkillMissingRequiredCondition = 20006,
PlayFabErrorTrueSkillMissingRequiredEvent = 20007,
PlayFabErrorTrueSkillUnknownEventName = 20008,
PlayFabErrorTrueSkillUnknownConditionKey = 20009,
PlayFabErrorTrueSkillUnknownConditionValue = 20010,
PlayFabErrorTrueSkillUnknownScenarioId = 20011,
PlayFabErrorTrueSkillUnknownModelId = 20012,
PlayFabErrorTrueSkillNoActiveModelInScenario = 20013,
PlayFabErrorTrueSkillUnknownModelId = 20011,
PlayFabErrorTrueSkillNoPlayerInMatchResultTeam = 20012,
PlayFabErrorTrueSkillPlayersInMatchResultExceedingLimit = 20013,
PlayFabErrorTrueSkillInvalidPreMatchPartyInMatchResult = 20014,
PlayFabErrorTrueSkillInvalidTimestampInMatchResult = 20015,
PlayFabErrorTrueSkillInvalidPlayerSecondsPlayedInMatchResult = 20016,
PlayFabErrorTrueSkillNoTeamInMatchResult = 20017,
PlayFabErrorTrueSkillNotEnoughTeamsInMatchResult = 20018,
PlayFabErrorTrueSkillScenarioConfigDoesNotExist = 20019,
PlayFabErrorTrueSkillNoModelInScenario = 20020,
PlayFabErrorTrueSkillNotSupportedForTitle = 20021,
PlayFabErrorTrueSkillModelIsNotActive = 20022,
PlayFabErrorTrueSkillUnauthorizedToQueryOtherPlayerSkills = 20023,
PlayFabErrorStateShareUnauthorized = 21000,
PlayFabErrorStateShareStateNotFound = 21001,
PlayFabErrorStateShareLinkNotFound = 21002,
Expand Down
Loading

0 comments on commit f577eb5

Please sign in to comment.