Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240202
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Feb 5, 2024
2 parents 87bdc6a + 107773f commit 909872f
Show file tree
Hide file tree
Showing 458 changed files with 14,202 additions and 148 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.137.240119",
"VersionName": "1.138.240202",
"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.137.240119",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.138.240202",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/217fdf581b784571af03d3fb6580368f",
"Modules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,19 @@ class PLAYFAB_API UPlayFabClientAPI : public UOnlineBlueprintCallProxyBase
UFUNCTION(BlueprintCallable, Category = "PlayFab | Client | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
void HelperGetPlayFabIDsFromPSNAccountIDs(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs, FClientGetPlayFabIDsFromPSNOnlineIDsResult, result, UObject*, customData);

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Client | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabClientAPI* GetPlayFabIDsFromPSNOnlineIDs(FClientGetPlayFabIDsFromPSNOnlineIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs onSuccess,
FDelegateOnFailurePlayFabError onFailure, UObject* customData);

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

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetPlayFabIDsFromSteamIDs, FClientGetPlayFabIDsFromSteamIDsResult, result, UObject*, customData);

Expand Down Expand Up @@ -2546,6 +2559,7 @@ class PLAYFAB_API UPlayFabClientAPI : public UOnlineBlueprintCallProxyBase
FDelegateOnSuccessGetPlayFabIDsFromNintendoServiceAccountIds OnSuccessGetPlayFabIDsFromNintendoServiceAccountIds;
FDelegateOnSuccessGetPlayFabIDsFromNintendoSwitchDeviceIds OnSuccessGetPlayFabIDsFromNintendoSwitchDeviceIds;
FDelegateOnSuccessGetPlayFabIDsFromPSNAccountIDs OnSuccessGetPlayFabIDsFromPSNAccountIDs;
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs OnSuccessGetPlayFabIDsFromPSNOnlineIDs;
FDelegateOnSuccessGetPlayFabIDsFromSteamIDs OnSuccessGetPlayFabIDsFromSteamIDs;
FDelegateOnSuccessGetPlayFabIDsFromTwitchIDs OnSuccessGetPlayFabIDsFromTwitchIDs;
FDelegateOnSuccessGetPlayFabIDsFromXboxLiveIDs OnSuccessGetPlayFabIDsFromXboxLiveIDs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ class PLAYFAB_API UPlayFabClientModelDecoder : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintCallable, Category = "PlayFab | Client | Account Management Models")
static FClientGetPlayFabIDsFromPSNAccountIDsResult decodeGetPlayFabIDsFromPSNAccountIDsResultResponse(UPlayFabJsonObject* response);

/** Decode the GetPlayFabIDsFromPSNOnlineIDsResult response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Client | Account Management Models")
static FClientGetPlayFabIDsFromPSNOnlineIDsResult decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(UPlayFabJsonObject* response);

/** Decode the GetPlayFabIDsFromSteamIDsResult response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Client | Account Management Models")
static FClientGetPlayFabIDsFromSteamIDsResult decodeGetPlayFabIDsFromSteamIDsResultResponse(UPlayFabJsonObject* response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,33 @@ struct PLAYFAB_API FClientGetPlayFabIDsFromPSNAccountIDsResult : public FPlayFab
TArray<UPlayFabJsonObject*> Data;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FClientGetPlayFabIDsFromPSNOnlineIDsRequest : public FPlayFabRequestCommon
{
GENERATED_USTRUCT_BODY()
public:
/** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Client | Account Management Models")
int32 IssuerId = 0;
/**
* Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array
* cannot exceed 2,000 in length.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Client | Account Management Models")
FString PSNOnlineIDs;
};

/** For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. */
USTRUCT(BlueprintType)
struct PLAYFAB_API FClientGetPlayFabIDsFromPSNOnlineIDsResult : public FPlayFabResultCommon
{
GENERATED_USTRUCT_BODY()
public:
/** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Client | Account Management Models")
TArray<UPlayFabJsonObject*> Data;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FClientGetPlayFabIDsFromSteamIDsRequest : public FPlayFabRequestCommon
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,19 @@ class PLAYFAB_API UPlayFabServerAPI : public UOnlineBlueprintCallProxyBase
UFUNCTION(BlueprintCallable, Category = "PlayFab | Server | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
void HelperGetPlayFabIDsFromPSNAccountIDs(FPlayFabBaseModel response, UObject* customData, bool successful);

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs, FServerGetPlayFabIDsFromPSNOnlineIDsResult, result, UObject*, customData);

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Server | Account Management ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabServerAPI* GetPlayFabIDsFromPSNOnlineIDs(FServerGetPlayFabIDsFromPSNOnlineIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs onSuccess,
FDelegateOnFailurePlayFabError onFailure, UObject* customData);

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

// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetPlayFabIDsFromSteamIDs, FServerGetPlayFabIDsFromSteamIDsResult, result, UObject*, customData);

Expand Down Expand Up @@ -2091,6 +2104,7 @@ class PLAYFAB_API UPlayFabServerAPI : public UOnlineBlueprintCallProxyBase
FDelegateOnSuccessGetPlayFabIDsFromNintendoServiceAccountIds OnSuccessGetPlayFabIDsFromNintendoServiceAccountIds;
FDelegateOnSuccessGetPlayFabIDsFromNintendoSwitchDeviceIds OnSuccessGetPlayFabIDsFromNintendoSwitchDeviceIds;
FDelegateOnSuccessGetPlayFabIDsFromPSNAccountIDs OnSuccessGetPlayFabIDsFromPSNAccountIDs;
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs OnSuccessGetPlayFabIDsFromPSNOnlineIDs;
FDelegateOnSuccessGetPlayFabIDsFromSteamIDs OnSuccessGetPlayFabIDsFromSteamIDs;
FDelegateOnSuccessGetPlayFabIDsFromTwitchIDs OnSuccessGetPlayFabIDsFromTwitchIDs;
FDelegateOnSuccessGetPlayFabIDsFromXboxLiveIDs OnSuccessGetPlayFabIDsFromXboxLiveIDs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ class PLAYFAB_API UPlayFabServerModelDecoder : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintCallable, Category = "PlayFab | Server | Account Management Models")
static FServerGetPlayFabIDsFromPSNAccountIDsResult decodeGetPlayFabIDsFromPSNAccountIDsResultResponse(UPlayFabJsonObject* response);

/** Decode the GetPlayFabIDsFromPSNOnlineIDsResult response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Server | Account Management Models")
static FServerGetPlayFabIDsFromPSNOnlineIDsResult decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(UPlayFabJsonObject* response);

/** Decode the GetPlayFabIDsFromSteamIDsResult response object*/
UFUNCTION(BlueprintCallable, Category = "PlayFab | Server | Account Management Models")
static FServerGetPlayFabIDsFromSteamIDsResult decodeGetPlayFabIDsFromSteamIDsResultResponse(UPlayFabJsonObject* response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,33 @@ struct PLAYFAB_API FServerGetPlayFabIDsFromPSNAccountIDsResult : public FPlayFab
TArray<UPlayFabJsonObject*> Data;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FServerGetPlayFabIDsFromPSNOnlineIDsRequest : public FPlayFabRequestCommon
{
GENERATED_USTRUCT_BODY()
public:
/** Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Server | Account Management Models")
int32 IssuerId = 0;
/**
* Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array
* cannot exceed 2,000 in length.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Server | Account Management Models")
FString PSNOnlineIDs;
};

/** For PlayStation :tm: Network identifiers which have not been linked to PlayFab accounts, null will be returned. */
USTRUCT(BlueprintType)
struct PLAYFAB_API FServerGetPlayFabIDsFromPSNOnlineIDsResult : public FPlayFabResultCommon
{
GENERATED_USTRUCT_BODY()
public:
/** Mapping of PlayStation :tm: Network identifiers to PlayFab identifiers. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Server | Account Management Models")
TArray<UPlayFabJsonObject*> Data;
};

USTRUCT(BlueprintType)
struct PLAYFAB_API FServerGetPlayFabIDsFromSteamIDsRequest : public FPlayFabRequestCommon
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,62 @@ void UPlayFabClientAPI::HelperGetPlayFabIDsFromPSNAccountIDs(FPlayFabBaseModel r
this->RemoveFromRoot();
}

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
UPlayFabClientAPI* UPlayFabClientAPI::GetPlayFabIDsFromPSNOnlineIDs(FClientGetPlayFabIDsFromPSNOnlineIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs onSuccess,
FDelegateOnFailurePlayFabError onFailure,
UObject* customData)
{
// Objects containing request data
UPlayFabClientAPI* manager = NewObject<UPlayFabClientAPI>();
if (manager->IsSafeForRootSet()) manager->AddToRoot();
UPlayFabJsonObject* OutRestJsonObj = NewObject<UPlayFabJsonObject>();
manager->mCustomData = customData;

// Assign delegates
manager->OnSuccessGetPlayFabIDsFromPSNOnlineIDs = onSuccess;
manager->OnFailure = onFailure;
manager->OnPlayFabResponse.AddDynamic(manager, &UPlayFabClientAPI::HelperGetPlayFabIDsFromPSNOnlineIDs);

// Setup the request
manager->SetCallAuthenticationContext(request.AuthenticationContext);
manager->PlayFabRequestURL = "/Client/GetPlayFabIDsFromPSNOnlineIDs";
manager->useSessionTicket = true;


// Serialize all the request properties to json
OutRestJsonObj->SetNumberField(TEXT("IssuerId"), request.IssuerId);
// Check to see if string is empty
if (request.PSNOnlineIDs.IsEmpty() || request.PSNOnlineIDs == "") {
OutRestJsonObj->SetFieldNull(TEXT("PSNOnlineIDs"));
} else {
TArray<FString> PSNOnlineIDsArray;
FString(request.PSNOnlineIDs).ParseIntoArray(PSNOnlineIDsArray, TEXT(","), false);
OutRestJsonObj->SetStringArrayField(TEXT("PSNOnlineIDs"), PSNOnlineIDsArray);
}

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

return manager;
}

// Implements FOnPlayFabClientRequestCompleted
void UPlayFabClientAPI::HelperGetPlayFabIDsFromPSNOnlineIDs(FPlayFabBaseModel response, UObject* customData, bool successful)
{
FPlayFabError error = response.responseError;
if (error.hasError && OnFailure.IsBound())
{
OnFailure.Execute(error, customData);
}
else if (!error.hasError && OnSuccessGetPlayFabIDsFromPSNOnlineIDs.IsBound())
{
FClientGetPlayFabIDsFromPSNOnlineIDsResult ResultStruct = UPlayFabClientModelDecoder::decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(response.responseData);
OnSuccessGetPlayFabIDsFromPSNOnlineIDs.Execute(ResultStruct, mCustomData);
}
this->RemoveFromRoot();
}

/** Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile IDs for the user accounts, available as SteamId in the Steamworks Community API calls. */
UPlayFabClientAPI* UPlayFabClientAPI::GetPlayFabIDsFromSteamIDs(FClientGetPlayFabIDsFromSteamIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromSteamIDs onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ FClientGetPlayFabIDsFromPSNAccountIDsResult UPlayFabClientModelDecoder::decodeGe
return tempStruct;
}

FClientGetPlayFabIDsFromPSNOnlineIDsResult UPlayFabClientModelDecoder::decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
FClientGetPlayFabIDsFromPSNOnlineIDsResult tempStruct;
UPlayFabJsonObject* dataObj = !(response->HasField("data")) ? nullptr : response->GetObjectField("data");

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

return tempStruct;
}

FClientGetPlayFabIDsFromSteamIDsResult UPlayFabClientModelDecoder::decodeGetPlayFabIDsFromSteamIDsResultResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,62 @@ void UPlayFabServerAPI::HelperGetPlayFabIDsFromPSNAccountIDs(FPlayFabBaseModel r
this->RemoveFromRoot();
}

/** Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers. */
UPlayFabServerAPI* UPlayFabServerAPI::GetPlayFabIDsFromPSNOnlineIDs(FServerGetPlayFabIDsFromPSNOnlineIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromPSNOnlineIDs onSuccess,
FDelegateOnFailurePlayFabError onFailure,
UObject* customData)
{
// Objects containing request data
UPlayFabServerAPI* manager = NewObject<UPlayFabServerAPI>();
if (manager->IsSafeForRootSet()) manager->AddToRoot();
UPlayFabJsonObject* OutRestJsonObj = NewObject<UPlayFabJsonObject>();
manager->mCustomData = customData;

// Assign delegates
manager->OnSuccessGetPlayFabIDsFromPSNOnlineIDs = onSuccess;
manager->OnFailure = onFailure;
manager->OnPlayFabResponse.AddDynamic(manager, &UPlayFabServerAPI::HelperGetPlayFabIDsFromPSNOnlineIDs);

// Setup the request
manager->SetCallAuthenticationContext(request.AuthenticationContext);
manager->PlayFabRequestURL = "/Server/GetPlayFabIDsFromPSNOnlineIDs";
manager->useSecretKey = true;


// Serialize all the request properties to json
OutRestJsonObj->SetNumberField(TEXT("IssuerId"), request.IssuerId);
// Check to see if string is empty
if (request.PSNOnlineIDs.IsEmpty() || request.PSNOnlineIDs == "") {
OutRestJsonObj->SetFieldNull(TEXT("PSNOnlineIDs"));
} else {
TArray<FString> PSNOnlineIDsArray;
FString(request.PSNOnlineIDs).ParseIntoArray(PSNOnlineIDsArray, TEXT(","), false);
OutRestJsonObj->SetStringArrayField(TEXT("PSNOnlineIDs"), PSNOnlineIDsArray);
}

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

return manager;
}

// Implements FOnPlayFabServerRequestCompleted
void UPlayFabServerAPI::HelperGetPlayFabIDsFromPSNOnlineIDs(FPlayFabBaseModel response, UObject* customData, bool successful)
{
FPlayFabError error = response.responseError;
if (error.hasError && OnFailure.IsBound())
{
OnFailure.Execute(error, customData);
}
else if (!error.hasError && OnSuccessGetPlayFabIDsFromPSNOnlineIDs.IsBound())
{
FServerGetPlayFabIDsFromPSNOnlineIDsResult ResultStruct = UPlayFabServerModelDecoder::decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(response.responseData);
OnSuccessGetPlayFabIDsFromPSNOnlineIDs.Execute(ResultStruct, mCustomData);
}
this->RemoveFromRoot();
}

/** Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile IDs for the user accounts, available as SteamId in the Steamworks Community API calls. */
UPlayFabServerAPI* UPlayFabServerAPI::GetPlayFabIDsFromSteamIDs(FServerGetPlayFabIDsFromSteamIDsRequest request,
FDelegateOnSuccessGetPlayFabIDsFromSteamIDs onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ FServerGetPlayFabIDsFromPSNAccountIDsResult UPlayFabServerModelDecoder::decodeGe
return tempStruct;
}

FServerGetPlayFabIDsFromPSNOnlineIDsResult UPlayFabServerModelDecoder::decodeGetPlayFabIDsFromPSNOnlineIDsResultResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
FServerGetPlayFabIDsFromPSNOnlineIDsResult tempStruct;
UPlayFabJsonObject* dataObj = !(response->HasField("data")) ? nullptr : response->GetObjectField("data");

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

return tempStruct;
}

FServerGetPlayFabIDsFromSteamIDsResult UPlayFabServerModelDecoder::decodeGetPlayFabIDsFromSteamIDsResultResponse(UPlayFabJsonObject* response)
{
// Temp ustruct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,27 @@


#include "PlayFabCommonSettings.h"
#include "Misc/EngineVersion.h"
#include "Kismet/GameplayStatics.h"

namespace PlayFabCommon
{
const FString PlayFabCommonSettings::sdkVersion = "1.137.240119";
const FString PlayFabCommonSettings::sdkVersion = "1.138.240202";
const FString PlayFabCommonSettings::buildIdentifier = "adobuild_unrealmarketplaceplugin_215";
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.137.240119";
const FString PlayFabCommonSettings::engineVersion = FEngineVersion::Current().ToString();
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.138.240202";
const FString PlayFabCommonSettings::engineVersion = "4.23";
#if defined(_XBOX_ONE) || defined(_XBOX) || defined(MICROSOFT_GAME_CORE)
const FString PlayFabCommonSettings::platformString = "GDK";
#elif PLATFORM_IOS
const FString PlayFabCommonSettings::platformString = "iOS";
#elif PLATFORM_ANDROID
const FString PlayFabCommonSettings::platformString = "Android";
#elif PLATFORM_SWITCH
const FString PlayFabCommonSettings::platformString = "Switch";
#elif PLATFORM_WINDOWS
const FString PlayFabCommonSettings::platformString = "Windows";
#else
const FString PlayFabCommonSettings::platformString = UGameplayStatics::GetPlatformName();
#endif

FString PlayFabCommonSettings::clientSessionTicket;
FString PlayFabCommonSettings::entityToken;
Expand Down
Loading

0 comments on commit 909872f

Please sign in to comment.