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 5a2f7f7 + 1a3a5b1 commit 1d5a83f
Show file tree
Hide file tree
Showing 707 changed files with 11,520 additions and 9,200 deletions.
4 changes: 2 additions & 2 deletions 4.23/ExampleProject/Plugins/PlayFab/PlayFab.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FriendlyName": "PlayFab Marketplace Plugin",
"Version": 0,
"EngineVersion": "4.23.0",
"VersionName": "1.151.240830",
"VersionName": "1.152.240913",
"CreatedBy": "PlayFab and Phoenix Labs",
"CreatedByURL": "https://playfab.com/",
"DocsURL": "https://learn.microsoft.com/en-us/gaming/playfab/sdks/unreal/quickstart",
"SupportURL": "https://community.playfab.com/index.html",
"Category": "PlayFab",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.151.240830",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.152.240913",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/217fdf581b784571af03d3fb6580368f",
"Modules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ enum class ELoginIdentityProvider : uint8
pfenum_NintendoSwitchAccount = 20 UMETA(DisplayName = "NintendoSwitchAccount"),
pfenum_GooglePlayGames = 21 UMETA(DisplayName = "GooglePlayGames"),
pfenum_XboxMobileStore = 22 UMETA(DisplayName = "XboxMobileStore"),
pfenum_King = 23 UMETA(DisplayName = "King"),
};

/** PushNotificationPlatform */
Expand Down Expand Up @@ -1263,6 +1264,7 @@ enum class EUserOrigination : uint8
pfenum_NintendoSwitchAccount = 22 UMETA(DisplayName = "NintendoSwitchAccount"),
pfenum_GooglePlayGames = 23 UMETA(DisplayName = "GooglePlayGames"),
pfenum_XboxMobileStore = 24 UMETA(DisplayName = "XboxMobileStore"),
pfenum_King = 25 UMETA(DisplayName = "King"),
};

/** AdActivity */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ class PLAYFAB_API UPlayFabProfilesAPI : public UOnlineBlueprintCallProxyBase
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
void HelperGetTitlePlayersFromXboxLiveIDs(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessSetDisplayName, FProfilesSetDisplayNameResponse, result, UObject*, customData);

/** Update the display name of the entity */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabProfilesAPI* SetDisplayName(FProfilesSetDisplayNameRequest request,
FDelegateOnSuccessSetDisplayName onSuccess,
FDelegateOnFailurePlayFabError onFailure, UObject* customData);

// Implements FOnPlayFabProfilesRequestCompleted
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
void HelperSetDisplayName(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessSetGlobalPolicy, FProfilesSetGlobalPolicyResponse, result, UObject*, customData);

Expand Down Expand Up @@ -188,6 +201,7 @@ class PLAYFAB_API UPlayFabProfilesAPI : public UOnlineBlueprintCallProxyBase
FDelegateOnSuccessGetProfiles OnSuccessGetProfiles;
FDelegateOnSuccessGetTitlePlayersFromMasterPlayerAccountIds OnSuccessGetTitlePlayersFromMasterPlayerAccountIds;
FDelegateOnSuccessGetTitlePlayersFromXboxLiveIDs OnSuccessGetTitlePlayersFromXboxLiveIDs;
FDelegateOnSuccessSetDisplayName OnSuccessSetDisplayName;
FDelegateOnSuccessSetGlobalPolicy OnSuccessSetGlobalPolicy;
FDelegateOnSuccessSetProfileLanguage OnSuccessSetProfileLanguage;
FDelegateOnSuccessSetProfilePolicy OnSuccessSetProfilePolicy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class PLAYFAB_API UPlayFabProfilesModelDecoder : public UBlueprintFunctionLibrar
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management Models")
static FProfilesGetTitlePlayersFromProviderIDsResponse decodeGetTitlePlayersFromProviderIDsResponseResponse(UPlayFabJsonObject* response);

/** Decode the SetDisplayNameResponse response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management Models")
static FProfilesSetDisplayNameResponse decodeSetDisplayNameResponseResponse(UPlayFabJsonObject* response);

/** Decode the SetGlobalPolicyResponse response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Profiles | Account Management Models")
static FProfilesSetGlobalPolicyResponse decodeSetGlobalPolicyResponseResponse(UPlayFabJsonObject* response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,42 @@ struct PLAYFAB_API FProfilesGetTitlePlayersFromXboxLiveIDsRequest : public FPlay
FString XboxLiveIds;
};

/**
* Given an entity profile, will update its display name to the one passed in if the profile's version is equal to the
* specified value
*/
USTRUCT(BlueprintType)
struct PLAYFAB_API FProfilesSetDisplayNameRequest : public FPlayFabRequestCommon
{
GENERATED_USTRUCT_BODY()
public:
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
UPlayFabJsonObject* CustomTags = nullptr;
/** The new value to be set on Entity Profile's display name */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
FString DisplayName;
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
UPlayFabJsonObject* Entity = nullptr;
/** The expected version of a profile to perform this update on */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
int32 ExpectedVersion = 0;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FProfilesSetDisplayNameResponse : public FPlayFabResultCommon
{
GENERATED_USTRUCT_BODY()
public:
/** The type of operation that occured on the profile's display name */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
EOperationTypes OperationResult = StaticCast<EOperationTypes>(0);
/** The updated version of the profile after the display name update */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Profiles | Account Management Models")
int32 VersionNumber = 0;
};

/**
* Updates the title access policy that is used before the profile's policy is inspected during a request. Policies are
* compiled and cached for several minutes so an update here may not be reflected in behavior for a short time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,6 @@ class PLAYFAB_API UPlayFabProgressionAPI : public UOnlineBlueprintCallProxyBase
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics ", meta = (BlueprintInternalUseOnly = "true"))
void HelperGetStatisticDefinition(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetStatisticDefinitions, FProgressionGetStatisticDefinitionsResponse, result, UObject*, customData);

/** Get all current statistic definitions information */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabProgressionAPI* GetStatisticDefinitions(FProgressionGetStatisticDefinitionsRequest request,
FDelegateOnSuccessGetStatisticDefinitions onSuccess,
FDelegateOnFailurePlayFabError onFailure, UObject* customData);

// Implements FOnPlayFabProgressionRequestCompleted
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics ", meta = (BlueprintInternalUseOnly = "true"))
void HelperGetStatisticDefinitions(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetStatistics, FProgressionGetStatisticsResponse, result, UObject*, customData);

Expand Down Expand Up @@ -385,7 +372,6 @@ class PLAYFAB_API UPlayFabProgressionAPI : public UOnlineBlueprintCallProxyBase
FDelegateOnSuccessDeleteStatisticDefinition OnSuccessDeleteStatisticDefinition;
FDelegateOnSuccessDeleteStatistics OnSuccessDeleteStatistics;
FDelegateOnSuccessGetStatisticDefinition OnSuccessGetStatisticDefinition;
FDelegateOnSuccessGetStatisticDefinitions OnSuccessGetStatisticDefinitions;
FDelegateOnSuccessGetStatistics OnSuccessGetStatistics;
FDelegateOnSuccessGetStatisticsForEntities OnSuccessGetStatisticsForEntities;
FDelegateOnSuccessIncrementStatisticVersion OnSuccessIncrementStatisticVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ class PLAYFAB_API UPlayFabProgressionModelDecoder : public UBlueprintFunctionLib
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics Models")
static FProgressionGetStatisticDefinitionResponse decodeGetStatisticDefinitionResponseResponse(UPlayFabJsonObject* response);

/** Decode the GetStatisticDefinitionsResponse response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics Models")
static FProgressionGetStatisticDefinitionsResponse decodeGetStatisticDefinitionsResponseResponse(UPlayFabJsonObject* response);

/** Decode the GetStatisticsResponse response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Statistics Models")
static FProgressionGetStatisticsResponse decodeGetStatisticsResponseResponse(UPlayFabJsonObject* response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,26 +443,6 @@ struct PLAYFAB_API FProgressionGetStatisticDefinitionResponse : public FPlayFabR
UPlayFabJsonObject* VersionConfiguration = nullptr;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FProgressionGetStatisticDefinitionsRequest : public FPlayFabRequestCommon
{
GENERATED_USTRUCT_BODY()
public:
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
UPlayFabJsonObject* CustomTags = nullptr;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FProgressionGetStatisticDefinitionsResponse : public FPlayFabResultCommon
{
GENERATED_USTRUCT_BODY()
public:
/** List of statistic definitions for the title. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
TArray<UPlayFabJsonObject*> StatisticDefinitions;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FProgressionGetStatisticsRequest : public FPlayFabRequestCommon
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,61 @@ void UPlayFabProfilesAPI::HelperGetTitlePlayersFromXboxLiveIDs(FPlayFabBaseModel
this->RemoveFromRoot();
}

/** Update the display name of the entity */
UPlayFabProfilesAPI* UPlayFabProfilesAPI::SetDisplayName(FProfilesSetDisplayNameRequest request,
FDelegateOnSuccessSetDisplayName onSuccess,
FDelegateOnFailurePlayFabError onFailure,
UObject* customData)
{
// Objects containing request data
UPlayFabProfilesAPI* manager = NewObject<UPlayFabProfilesAPI>();
if (manager->IsSafeForRootSet()) manager->AddToRoot();
UPlayFabJsonObject* OutRestJsonObj = NewObject<UPlayFabJsonObject>();
manager->mCustomData = customData;

// Assign delegates
manager->OnSuccessSetDisplayName = onSuccess;
manager->OnFailure = onFailure;
manager->OnPlayFabResponse.AddDynamic(manager, &UPlayFabProfilesAPI::HelperSetDisplayName);

// Setup the request
manager->SetCallAuthenticationContext(request.AuthenticationContext);
manager->PlayFabRequestURL = "/Profile/SetDisplayName";
manager->useEntityToken = true;


// Serialize all the request properties to json
if (request.CustomTags != nullptr) OutRestJsonObj->SetObjectField(TEXT("CustomTags"), request.CustomTags);
if (request.DisplayName.IsEmpty() || request.DisplayName == "") {
OutRestJsonObj->SetFieldNull(TEXT("DisplayName"));
} else {
OutRestJsonObj->SetStringField(TEXT("DisplayName"), request.DisplayName);
}
if (request.Entity != nullptr) OutRestJsonObj->SetObjectField(TEXT("Entity"), request.Entity);
OutRestJsonObj->SetNumberField(TEXT("ExpectedVersion"), request.ExpectedVersion);

// Add Request to manager
manager->SetRequestObject(OutRestJsonObj);

return manager;
}

// Implements FOnPlayFabProfilesRequestCompleted
void UPlayFabProfilesAPI::HelperSetDisplayName(FPlayFabBaseModel response, UObject* customData, bool successful)
{
FPlayFabError error = response.responseError;
if (error.hasError && OnFailure.IsBound())
{
OnFailure.Execute(error, customData);
}
else if (!error.hasError && OnSuccessSetDisplayName.IsBound())
{
FProfilesSetDisplayNameResponse ResultStruct = UPlayFabProfilesModelDecoder::decodeSetDisplayNameResponseResponse(response.responseData);
OnSuccessSetDisplayName.Execute(ResultStruct, mCustomData);
}
this->RemoveFromRoot();
}

/** Sets the global title access policy */
UPlayFabProfilesAPI* UPlayFabProfilesAPI::SetGlobalPolicy(FProfilesSetGlobalPolicyRequest request,
FDelegateOnSuccessSetGlobalPolicy onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ FProfilesGetTitlePlayersFromProviderIDsResponse UPlayFabProfilesModelDecoder::de
return tempStruct;
}

FProfilesSetDisplayNameResponse UPlayFabProfilesModelDecoder::decodeSetDisplayNameResponseResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
FProfilesSetDisplayNameResponse tempStruct;
UPlayFabJsonObject* dataObj = !(response->HasField("data")) ? nullptr : response->GetObjectField("data");

GetEnumValueFromString<EOperationTypes>(TEXT("EOperationTypes"), dataObj->GetStringField("OperationResult"), tempStruct.OperationResult);
tempStruct.VersionNumber = !(dataObj->HasField("VersionNumber")) ? 0 : int(dataObj->GetNumberField("VersionNumber"));

return tempStruct;
}

FProfilesSetGlobalPolicyResponse UPlayFabProfilesModelDecoder::decodeSetGlobalPolicyResponseResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -998,54 +998,6 @@ void UPlayFabProgressionAPI::HelperGetStatisticDefinition(FPlayFabBaseModel resp
this->RemoveFromRoot();
}

/** Get all current statistic definitions information */
UPlayFabProgressionAPI* UPlayFabProgressionAPI::GetStatisticDefinitions(FProgressionGetStatisticDefinitionsRequest request,
FDelegateOnSuccessGetStatisticDefinitions onSuccess,
FDelegateOnFailurePlayFabError onFailure,
UObject* customData)
{
// Objects containing request data
UPlayFabProgressionAPI* manager = NewObject<UPlayFabProgressionAPI>();
if (manager->IsSafeForRootSet()) manager->AddToRoot();
UPlayFabJsonObject* OutRestJsonObj = NewObject<UPlayFabJsonObject>();
manager->mCustomData = customData;

// Assign delegates
manager->OnSuccessGetStatisticDefinitions = onSuccess;
manager->OnFailure = onFailure;
manager->OnPlayFabResponse.AddDynamic(manager, &UPlayFabProgressionAPI::HelperGetStatisticDefinitions);

// Setup the request
manager->SetCallAuthenticationContext(request.AuthenticationContext);
manager->PlayFabRequestURL = "/Statistic/GetStatisticDefinitions";
manager->useEntityToken = true;


// Serialize all the request properties to json
if (request.CustomTags != nullptr) OutRestJsonObj->SetObjectField(TEXT("CustomTags"), request.CustomTags);

// Add Request to manager
manager->SetRequestObject(OutRestJsonObj);

return manager;
}

// Implements FOnPlayFabProgressionRequestCompleted
void UPlayFabProgressionAPI::HelperGetStatisticDefinitions(FPlayFabBaseModel response, UObject* customData, bool successful)
{
FPlayFabError error = response.responseError;
if (error.hasError && OnFailure.IsBound())
{
OnFailure.Execute(error, customData);
}
else if (!error.hasError && OnSuccessGetStatisticDefinitions.IsBound())
{
FProgressionGetStatisticDefinitionsResponse ResultStruct = UPlayFabProgressionModelDecoder::decodeGetStatisticDefinitionsResponseResponse(response.responseData);
OnSuccessGetStatisticDefinitions.Execute(ResultStruct, mCustomData);
}
this->RemoveFromRoot();
}

/** Gets statistics for the specified entity. */
UPlayFabProgressionAPI* UPlayFabProgressionAPI::GetStatistics(FProgressionGetStatisticsRequest request,
FDelegateOnSuccessGetStatistics onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@ FProgressionGetStatisticDefinitionResponse UPlayFabProgressionModelDecoder::deco
return tempStruct;
}

FProgressionGetStatisticDefinitionsResponse UPlayFabProgressionModelDecoder::decodeGetStatisticDefinitionsResponseResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
FProgressionGetStatisticDefinitionsResponse tempStruct;
UPlayFabJsonObject* dataObj = !(response->HasField("data")) ? nullptr : response->GetObjectField("data");

tempStruct.StatisticDefinitions = !(dataObj->HasField("StatisticDefinitions")) ? TArray<UPlayFabJsonObject*>() : dataObj->GetObjectArrayField("StatisticDefinitions");

return tempStruct;
}

FProgressionGetStatisticsResponse UPlayFabProgressionModelDecoder::decodeGetStatisticsResponseResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

namespace PlayFabCommon
{
const FString PlayFabCommonSettings::sdkVersion = "1.151.240830";
const FString PlayFabCommonSettings::sdkVersion = "1.152.240913";
const FString PlayFabCommonSettings::buildIdentifier = "adobuild_unrealmarketplaceplugin_215";
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.151.240830";
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.152.240913";
const FString PlayFabCommonSettings::engineVersion = "4.23";
#if defined(_XBOX_ONE) || defined(_XBOX) || defined(MICROSOFT_GAME_CORE)
const FString PlayFabCommonSettings::platformString = "GDK";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10676,6 +10676,7 @@ void PlayFab::AdminModels::writeLoginIdentityProviderEnumJSON(LoginIdentityProvi
case LoginIdentityProviderNintendoSwitchAccount: writer->WriteValue(TEXT("NintendoSwitchAccount")); break;
case LoginIdentityProviderGooglePlayGames: writer->WriteValue(TEXT("GooglePlayGames")); break;
case LoginIdentityProviderXboxMobileStore: writer->WriteValue(TEXT("XboxMobileStore")); break;
case LoginIdentityProviderKing: writer->WriteValue(TEXT("King")); break;
}
}

Expand Down Expand Up @@ -10713,6 +10714,7 @@ AdminModels::LoginIdentityProvider PlayFab::AdminModels::readLoginIdentityProvid
_LoginIdentityProviderMap.Add(TEXT("NintendoSwitchAccount"), LoginIdentityProviderNintendoSwitchAccount);
_LoginIdentityProviderMap.Add(TEXT("GooglePlayGames"), LoginIdentityProviderGooglePlayGames);
_LoginIdentityProviderMap.Add(TEXT("XboxMobileStore"), LoginIdentityProviderXboxMobileStore);
_LoginIdentityProviderMap.Add(TEXT("King"), LoginIdentityProviderKing);

}

Expand Down Expand Up @@ -16963,6 +16965,7 @@ void PlayFab::AdminModels::writeUserOriginationEnumJSON(UserOrigination enumVal,
case UserOriginationNintendoSwitchAccount: writer->WriteValue(TEXT("NintendoSwitchAccount")); break;
case UserOriginationGooglePlayGames: writer->WriteValue(TEXT("GooglePlayGames")); break;
case UserOriginationXboxMobileStore: writer->WriteValue(TEXT("XboxMobileStore")); break;
case UserOriginationKing: writer->WriteValue(TEXT("King")); break;
}
}

Expand Down Expand Up @@ -17002,6 +17005,7 @@ AdminModels::UserOrigination PlayFab::AdminModels::readUserOriginationFromValue(
_UserOriginationMap.Add(TEXT("NintendoSwitchAccount"), UserOriginationNintendoSwitchAccount);
_UserOriginationMap.Add(TEXT("GooglePlayGames"), UserOriginationGooglePlayGames);
_UserOriginationMap.Add(TEXT("XboxMobileStore"), UserOriginationXboxMobileStore);
_UserOriginationMap.Add(TEXT("King"), UserOriginationKing);

}

Expand Down
Loading

0 comments on commit 1d5a83f

Please sign in to comment.