Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240514
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed May 14, 2024
2 parents b044e7c + d61332c commit c9ed19d
Show file tree
Hide file tree
Showing 18 changed files with 190 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.193.240426"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.194.240514"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public enum AzureVmFamily
NCasT4_v3,
Ddv4,
Ddsv4,
HBv3
HBv3,
Ddv5,
Ddsv5
}

public enum AzureVmSize
Expand Down Expand Up @@ -191,7 +193,17 @@ public enum AzureVmSize
Standard_HB120_32rs_v3,
Standard_HB120_64rs_v3,
Standard_HB120_96rs_v3,
Standard_HB120rs_v3
Standard_HB120rs_v3,
Standard_D2d_v5,
Standard_D4d_v5,
Standard_D8d_v5,
Standard_D16d_v5,
Standard_D32d_v5,
Standard_D2ds_v5,
Standard_D4ds_v5,
Standard_D8ds_v5,
Standard_D16ds_v5,
Standard_D32ds_v5
}

[Serializable]
Expand Down Expand Up @@ -975,7 +987,7 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public string GameWorkingDirectory;
/// <summary>
/// The instrumentation configuration for the build.
/// The instrumentation configuration for the Build. Used only if it is a Windows Build.
/// </summary>
public InstrumentationConfiguration InstrumentationConfiguration;
/// <summary>
Expand All @@ -984,6 +996,10 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public bool? IsOSPreview;
/// <summary>
/// The Linux instrumentation configuration for the Build. Used only if it is a Linux Build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration;
/// <summary>
/// Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
/// Game Server SDK (GSDK).Constraints: Maximum number of keys: 30, Maximum key length: 50, Maximum value length: 100
/// </summary>
Expand Down Expand Up @@ -1074,6 +1090,10 @@ public class CreateBuildWithProcessBasedServerResponse : PlayFabResultCommon
/// </summary>
public bool? IsOSPreview;
/// <summary>
/// The Linux instrumentation configuration for this build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration;
/// <summary>
/// The metadata of the build.
/// </summary>
public Dictionary<string,string> Metadata;
Expand Down
2 changes: 2 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<LinkSteamIdResult> OnServerLinkSteamIdResultEvent;
public event PlayFabRequestEvent<LinkXboxAccountRequest> OnServerLinkXboxAccountRequestEvent;
public event PlayFabResultEvent<LinkXboxAccountResult> OnServerLinkXboxAccountResultEvent;
public event PlayFabRequestEvent<LoginWithPSNRequest> OnServerLoginWithPSNRequestEvent;
public event PlayFabResultEvent<ServerLoginResult> OnServerLoginWithPSNResultEvent;
public event PlayFabRequestEvent<LoginWithServerCustomIdRequest> OnServerLoginWithServerCustomIdRequestEvent;
public event PlayFabResultEvent<ServerLoginResult> OnServerLoginWithServerCustomIdResultEvent;
public event PlayFabRequestEvent<LoginWithSteamIdRequest> OnServerLoginWithSteamIdRequestEvent;
Expand Down
14 changes: 14 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,20 @@ public static void LinkXboxAccount(LinkXboxAccountRequest request, Action<LinkXb
PlayFabHttp.MakeApiCall("/Server/LinkXboxAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public static void LoginWithPSN(LoginWithPSNRequest request, Action<ServerLoginResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
var callSettings = PlayFabSettings.staticSettings;
if (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); }


PlayFabHttp.MakeApiCall("/Server/LoginWithPSN", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,18 @@ public void LinkXboxAccount(LinkXboxAccountRequest request, Action<LinkXboxAccou
PlayFabHttp.MakeApiCall("/Server/LinkXboxAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public void LoginWithPSN(LoginWithPSNRequest request, Action<ServerLoginResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); }
PlayFabHttp.MakeApiCall("/Server/LoginWithPSN", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
36 changes: 36 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4390,6 +4390,42 @@ public enum LoginIdentityProvider
GooglePlayGames
}

/// <summary>
/// If this is the first time a user has signed in with the PlayStation :tm: Network account and CreateAccount is set to
/// true, a new PlayFab account will be created and linked to the PlayStation :tm: Network account. In this case, no email
/// or username will be associated with the PlayFab account. Otherwise, if no PlayFab account is linked to the PlayStation
/// :tm: Network account, an error indicating this will be returned, so that the title can guide the user through creation
/// of a PlayFab account.
/// </summary>
[Serializable]
public class LoginWithPSNRequest : PlayFabRequestCommon
{
/// <summary>
/// Auth code provided by the PlayStation :tm: Network OAuth provider.
/// </summary>
public string AuthCode;
/// <summary>
/// Automatically create a PlayFab account if one is not currently linked to this ID.
/// </summary>
public bool? CreateAccount;
/// <summary>
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
/// </summary>
public Dictionary<string,string> CustomTags;
/// <summary>
/// Flags for which pieces of info to return for the user.
/// </summary>
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
/// <summary>
/// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment.
/// </summary>
public int? IssuerId;
/// <summary>
/// Redirect URI supplied to PlayStation :tm: Network when requesting an auth code
/// </summary>
public string RedirectUri;
}

[Serializable]
public class LoginWithServerCustomIdRequest : PlayFabRequestCommon
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,9 @@ public void UnregisterInstance(object instance)
if (OnServerLinkXboxAccountRequestEvent != null) { foreach (var each in OnServerLinkXboxAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkXboxAccountRequestEvent -= (PlayFabRequestEvent<ServerModels.LinkXboxAccountRequest>)each; } } }
if (OnServerLinkXboxAccountResultEvent != null) { foreach (var each in OnServerLinkXboxAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLinkXboxAccountResultEvent -= (PlayFabResultEvent<ServerModels.LinkXboxAccountResult>)each; } } }

if (OnServerLoginWithPSNRequestEvent != null) { foreach (var each in OnServerLoginWithPSNRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithPSNRequestEvent -= (PlayFabRequestEvent<ServerModels.LoginWithPSNRequest>)each; } } }
if (OnServerLoginWithPSNResultEvent != null) { foreach (var each in OnServerLoginWithPSNResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithPSNResultEvent -= (PlayFabResultEvent<ServerModels.ServerLoginResult>)each; } } }

if (OnServerLoginWithServerCustomIdRequestEvent != null) { foreach (var each in OnServerLoginWithServerCustomIdRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithServerCustomIdRequestEvent -= (PlayFabRequestEvent<ServerModels.LoginWithServerCustomIdRequest>)each; } } }
if (OnServerLoginWithServerCustomIdResultEvent != null) { foreach (var each in OnServerLoginWithServerCustomIdResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerLoginWithServerCustomIdResultEvent -= (PlayFabResultEvent<ServerModels.ServerLoginResult>)each; } } }

Expand Down Expand Up @@ -2317,6 +2320,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e)
if (type == typeof(ServerModels.LinkServerCustomIdRequest)) { if (_instance.OnServerLinkServerCustomIdRequestEvent != null) { _instance.OnServerLinkServerCustomIdRequestEvent((ServerModels.LinkServerCustomIdRequest)e.Request); return; } }
if (type == typeof(ServerModels.LinkSteamIdRequest)) { if (_instance.OnServerLinkSteamIdRequestEvent != null) { _instance.OnServerLinkSteamIdRequestEvent((ServerModels.LinkSteamIdRequest)e.Request); return; } }
if (type == typeof(ServerModels.LinkXboxAccountRequest)) { if (_instance.OnServerLinkXboxAccountRequestEvent != null) { _instance.OnServerLinkXboxAccountRequestEvent((ServerModels.LinkXboxAccountRequest)e.Request); return; } }
if (type == typeof(ServerModels.LoginWithPSNRequest)) { if (_instance.OnServerLoginWithPSNRequestEvent != null) { _instance.OnServerLoginWithPSNRequestEvent((ServerModels.LoginWithPSNRequest)e.Request); return; } }
if (type == typeof(ServerModels.LoginWithServerCustomIdRequest)) { if (_instance.OnServerLoginWithServerCustomIdRequestEvent != null) { _instance.OnServerLoginWithServerCustomIdRequestEvent((ServerModels.LoginWithServerCustomIdRequest)e.Request); return; } }
if (type == typeof(ServerModels.LoginWithSteamIdRequest)) { if (_instance.OnServerLoginWithSteamIdRequestEvent != null) { _instance.OnServerLoginWithSteamIdRequestEvent((ServerModels.LoginWithSteamIdRequest)e.Request); return; } }
if (type == typeof(ServerModels.LoginWithXboxRequest)) { if (_instance.OnServerLoginWithXboxRequestEvent != null) { _instance.OnServerLoginWithXboxRequestEvent((ServerModels.LoginWithXboxRequest)e.Request); return; } }
Expand Down Expand Up @@ -2967,6 +2971,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e)
if (type == typeof(ServerModels.LinkServerCustomIdResult)) { if (_instance.OnServerLinkServerCustomIdResultEvent != null) { _instance.OnServerLinkServerCustomIdResultEvent((ServerModels.LinkServerCustomIdResult)e.Result); return; } }
if (type == typeof(ServerModels.LinkSteamIdResult)) { if (_instance.OnServerLinkSteamIdResultEvent != null) { _instance.OnServerLinkSteamIdResultEvent((ServerModels.LinkSteamIdResult)e.Result); return; } }
if (type == typeof(ServerModels.LinkXboxAccountResult)) { if (_instance.OnServerLinkXboxAccountResultEvent != null) { _instance.OnServerLinkXboxAccountResultEvent((ServerModels.LinkXboxAccountResult)e.Result); return; } }
if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithPSNResultEvent != null) { _instance.OnServerLoginWithPSNResultEvent((ServerModels.ServerLoginResult)e.Result); return; } }
if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithServerCustomIdResultEvent != null) { _instance.OnServerLoginWithServerCustomIdResultEvent((ServerModels.ServerLoginResult)e.Result); return; } }
if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithSteamIdResultEvent != null) { _instance.OnServerLoginWithSteamIdResultEvent((ServerModels.ServerLoginResult)e.Result); return; } }
if (type == typeof(ServerModels.ServerLoginResult)) { if (_instance.OnServerLoginWithXboxResultEvent != null) { _instance.OnServerLoginWithXboxResultEvent((ServerModels.ServerLoginResult)e.Result); return; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ static PlayFabSettings()
/// </summary>
public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext();

public const string SdkVersion = "2.193.240426";
public const string SdkVersion = "2.194.240514";
public const string BuildIdentifier = "adobuild_unitysdk_167";
public const string VersionString = "UnitySDK-2.193.240426";
public const string VersionString = "UnitySDK-2.194.240514";
public static string EngineVersion = UnityEngine.Application.unityVersion;
public static string PlatformString;

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.193.240426"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.194.240514"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public enum AzureVmFamily
NCasT4_v3,
Ddv4,
Ddsv4,
HBv3
HBv3,
Ddv5,
Ddsv5
}

public enum AzureVmSize
Expand Down Expand Up @@ -191,7 +193,17 @@ public enum AzureVmSize
Standard_HB120_32rs_v3,
Standard_HB120_64rs_v3,
Standard_HB120_96rs_v3,
Standard_HB120rs_v3
Standard_HB120rs_v3,
Standard_D2d_v5,
Standard_D4d_v5,
Standard_D8d_v5,
Standard_D16d_v5,
Standard_D32d_v5,
Standard_D2ds_v5,
Standard_D4ds_v5,
Standard_D8ds_v5,
Standard_D16ds_v5,
Standard_D32ds_v5
}

[Serializable]
Expand Down Expand Up @@ -975,7 +987,7 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public string GameWorkingDirectory;
/// <summary>
/// The instrumentation configuration for the build.
/// The instrumentation configuration for the Build. Used only if it is a Windows Build.
/// </summary>
public InstrumentationConfiguration InstrumentationConfiguration;
/// <summary>
Expand All @@ -984,6 +996,10 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public bool? IsOSPreview;
/// <summary>
/// The Linux instrumentation configuration for the Build. Used only if it is a Linux Build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration;
/// <summary>
/// Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
/// Game Server SDK (GSDK).Constraints: Maximum number of keys: 30, Maximum key length: 50, Maximum value length: 100
/// </summary>
Expand Down Expand Up @@ -1074,6 +1090,10 @@ public class CreateBuildWithProcessBasedServerResponse : PlayFabResultCommon
/// </summary>
public bool? IsOSPreview;
/// <summary>
/// The Linux instrumentation configuration for this build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration;
/// <summary>
/// The metadata of the build.
/// </summary>
public Dictionary<string,string> Metadata;
Expand Down
2 changes: 2 additions & 0 deletions ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<LinkSteamIdResult> OnServerLinkSteamIdResultEvent;
public event PlayFabRequestEvent<LinkXboxAccountRequest> OnServerLinkXboxAccountRequestEvent;
public event PlayFabResultEvent<LinkXboxAccountResult> OnServerLinkXboxAccountResultEvent;
public event PlayFabRequestEvent<LoginWithPSNRequest> OnServerLoginWithPSNRequestEvent;
public event PlayFabResultEvent<ServerLoginResult> OnServerLoginWithPSNResultEvent;
public event PlayFabRequestEvent<LoginWithServerCustomIdRequest> OnServerLoginWithServerCustomIdRequestEvent;
public event PlayFabResultEvent<ServerLoginResult> OnServerLoginWithServerCustomIdResultEvent;
public event PlayFabRequestEvent<LoginWithSteamIdRequest> OnServerLoginWithSteamIdRequestEvent;
Expand Down
14 changes: 14 additions & 0 deletions ExampleTestProject/Assets/PlayFabSDK/Server/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,20 @@ public static void LinkXboxAccount(LinkXboxAccountRequest request, Action<LinkXb
PlayFabHttp.MakeApiCall("/Server/LinkXboxAccount", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public static void LoginWithPSN(LoginWithPSNRequest request, Action<ServerLoginResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
var callSettings = PlayFabSettings.staticSettings;
if (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); }


PlayFabHttp.MakeApiCall("/Server/LoginWithPSN", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
Loading

0 comments on commit c9ed19d

Please sign in to comment.