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
2 parents 09d31eb + b7f888c commit 660764a
Show file tree
Hide file tree
Showing 20 changed files with 315 additions and 83 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
**/*[Tt]estTitleData.json*
**/manifest.json

PluginSource/Android/release/bin
PluginSource/Android/libs/UnityPlayerClasses.jar
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.185.240105"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.187.240119"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -2612,6 +2612,8 @@ public enum GenericErrorCodes
LeaderboardColumnsNotSpecified,
LeaderboardMaxSizeTooLarge,
InvalidAttributeStatisticsSpecified,
LeaderboardNotFound,
TokenSigningKeyNotFound,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2766,12 +2766,6 @@ public class JoinLobbyAsServerResult : PlayFabResultCommon
/// Successfully joined lobby's id.
/// </summary>
public string LobbyId;
/// <summary>
/// A setting that describes the state of the ServerData after JoinLobbyAsServer call is completed. It is "Initialized", the
/// first time a server joins the lobby. It is "Ignored" in any subsequent JoinLobbyAsServer calls after it has been
/// initialized. Any new server taking over should call UpdateLobbyAsServer to update ServerData fields.
/// </summary>
public ServerDataStatus ServerDataStatus;
}

/// <summary>
Expand Down Expand Up @@ -3339,6 +3333,10 @@ public class ListQosServersForTitleRequest : PlayFabRequestCommon
/// deployed for the title.
/// </summary>
public bool? IncludeAllRegions;
/// <summary>
/// Indicates the Routing Preference used by the Qos servers. The default Routing Preference is Microsoft
/// </summary>
public string RoutingPreference;
}

[Serializable]
Expand Down Expand Up @@ -3507,6 +3505,10 @@ public class Lobby : PlayFabBaseModel
/// </summary>
public Dictionary<string,string> SearchData;
/// <summary>
/// Preview: Lobby joined server. This is not the server owner, rather the server that has joined a client owned lobby.
/// </summary>
public LobbyServer Server;
/// <summary>
/// A flag which determines if connections are used. Defaults to true. Only set on create.
/// </summary>
public bool UseConnections;
Expand All @@ -3517,6 +3519,23 @@ public class LobbyEmptyResult : PlayFabResultCommon
{
}

[Serializable]
public class LobbyServer : PlayFabBaseModel
{
/// <summary>
/// Opaque string, stored on a Subscribe call, which indicates the connection a joined server has with PubSub.
/// </summary>
public string PubSubConnectionHandle;
/// <summary>
/// Key-value pairs specific to the joined server.
/// </summary>
public Dictionary<string,string> ServerData;
/// <summary>
/// The server entity key.
/// </summary>
public EntityKey ServerEntity;
}

[Serializable]
public class LobbySummary : PlayFabBaseModel
{
Expand Down Expand Up @@ -4356,12 +4375,6 @@ public class ScheduledStandbySettings : PlayFabBaseModel
public List<Schedule> ScheduleList;
}

public enum ServerDataStatus
{
Initialized,
Ignored
}

[Serializable]
public class ServerDetails : PlayFabBaseModel
{
Expand Down Expand Up @@ -4950,11 +4963,6 @@ public class UpdateLobbyAsServerRequest : PlayFabRequestCommon
/// </summary>
public string LobbyId;
/// <summary>
/// The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined
/// server). When changing the server the previous server will automatically be unsubscribed.
/// </summary>
public EntityKey Server;
/// <summary>
/// The private key-value pairs which are visible to all entities in the lobby and modifiable by the joined server.
/// Optional. Sets or updates key-value pairs on the lobby. Only the current lobby lobby server can set serverData. Keys may
/// be an arbitrary string of at most 30 characters. The total size of all serverData values may not exceed 4096 bytes.
Expand All @@ -4968,6 +4976,11 @@ public class UpdateLobbyAsServerRequest : PlayFabRequestCommon
/// request.
/// </summary>
public List<string> ServerDataToDelete;
/// <summary>
/// The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined
/// server). When changing the server the previous server will automatically be unsubscribed.
/// </summary>
public EntityKey ServerEntity;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,8 @@ public enum GenericErrorCodes
LeaderboardColumnsNotSpecified,
LeaderboardMaxSizeTooLarge,
InvalidAttributeStatisticsSpecified,
LeaderboardNotFound,
TokenSigningKeyNotFound,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ public enum PlayFabErrorCode
LeaderboardColumnsNotSpecified = 1564,
LeaderboardMaxSizeTooLarge = 1565,
InvalidAttributeStatisticsSpecified = 1566,
LeaderboardNotFound = 1567,
TokenSigningKeyNotFound = 1568,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,29 @@ public enum PlayFabLogLevel

public static class PlayFabSettings
{
static PlayFabSettings() { }
static PlayFabSettings()
{
#if UNITY_GAMECORE || UNITY_GAMECORE_XBOXONE || UNITY_GAMECORE_SCARLETT || MICROSOFT_GAME_CORE
PlatformString = "GDK";
#else
switch (Application.platform)
{
case RuntimePlatform.WindowsEditor:
case RuntimePlatform.WindowsPlayer:
case RuntimePlatform.WindowsServer:
PlatformString = "Windows";
break;

case RuntimePlatform.IPhonePlayer:
PlatformString = "iOS";
break;

default:
PlatformString = Application.platform.ToString();
break;
}
#endif
}

private static PlayFabSharedSettings _playFabShared = null;
private static PlayFabSharedSettings PlayFabSharedPrivate { get { if (_playFabShared == null) _playFabShared = GetSharedSettingsObjectPrivate(); return _playFabShared; } }
Expand All @@ -43,9 +65,11 @@ static PlayFabSettings() { }
/// </summary>
public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext();

public const string SdkVersion = "2.185.240105";
public const string BuildIdentifier = "test";
public const string VersionString = "UnitySDK-2.185.240105";
public const string SdkVersion = "2.187.240119";
public const string BuildIdentifier = "adobuild_unitysdk_217";
public const string VersionString = "UnitySDK-2.187.240119";
public static string EngineVersion = UnityEngine.Application.unityVersion;
public static string PlatformString;

public const string DefaultPlayFabApiUrl = "playfabapi.com";

Expand Down Expand Up @@ -142,7 +166,7 @@ private static StringBuilder AcquireStringBuilder()
_cachedStringBuilder.Clear();
return _cachedStringBuilder;
}

public static string GetFullUrl(string apiCall, Dictionary<string, string> getParams, PlayFabApiSettings apiSettings = null)
{
StringBuilder sb = AcquireStringBuilder();
Expand Down Expand Up @@ -198,9 +222,9 @@ public static string GetFullUrl(string apiCall, Dictionary<string, string> getPa

sb.Append(baseUrl).Append(apiCall);

bool firstParam = true;
if (getParams != null)
{
bool firstParam = true;
foreach (var paramPair in getParams)
{
if (firstParam)
Expand All @@ -216,6 +240,10 @@ public static string GetFullUrl(string apiCall, Dictionary<string, string> getPa
}
}

sb.Append(firstParam ? "?" : "&");
sb.Append("engine=").Append(EngineVersion);
sb.Append("&platform=").Append(PlatformString);

return sb.ToString();
}
}
Expand Down
42 changes: 42 additions & 0 deletions ExampleMacProject/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"dependencies": {
"com.unity.collab-proxy": "1.2.16",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.1.4",
"com.unity.test-framework": "1.1.13",
"com.unity.textmeshpro": "2.0.1",
"com.unity.timeline": "1.2.14",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}
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.185.240105"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.187.240119"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -2612,6 +2612,8 @@ public enum GenericErrorCodes
LeaderboardColumnsNotSpecified,
LeaderboardMaxSizeTooLarge,
InvalidAttributeStatisticsSpecified,
LeaderboardNotFound,
TokenSigningKeyNotFound,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2766,12 +2766,6 @@ public class JoinLobbyAsServerResult : PlayFabResultCommon
/// Successfully joined lobby's id.
/// </summary>
public string LobbyId;
/// <summary>
/// A setting that describes the state of the ServerData after JoinLobbyAsServer call is completed. It is "Initialized", the
/// first time a server joins the lobby. It is "Ignored" in any subsequent JoinLobbyAsServer calls after it has been
/// initialized. Any new server taking over should call UpdateLobbyAsServer to update ServerData fields.
/// </summary>
public ServerDataStatus ServerDataStatus;
}

/// <summary>
Expand Down Expand Up @@ -3339,6 +3333,10 @@ public class ListQosServersForTitleRequest : PlayFabRequestCommon
/// deployed for the title.
/// </summary>
public bool? IncludeAllRegions;
/// <summary>
/// Indicates the Routing Preference used by the Qos servers. The default Routing Preference is Microsoft
/// </summary>
public string RoutingPreference;
}

[Serializable]
Expand Down Expand Up @@ -3507,6 +3505,10 @@ public class Lobby : PlayFabBaseModel
/// </summary>
public Dictionary<string,string> SearchData;
/// <summary>
/// Preview: Lobby joined server. This is not the server owner, rather the server that has joined a client owned lobby.
/// </summary>
public LobbyServer Server;
/// <summary>
/// A flag which determines if connections are used. Defaults to true. Only set on create.
/// </summary>
public bool UseConnections;
Expand All @@ -3517,6 +3519,23 @@ public class LobbyEmptyResult : PlayFabResultCommon
{
}

[Serializable]
public class LobbyServer : PlayFabBaseModel
{
/// <summary>
/// Opaque string, stored on a Subscribe call, which indicates the connection a joined server has with PubSub.
/// </summary>
public string PubSubConnectionHandle;
/// <summary>
/// Key-value pairs specific to the joined server.
/// </summary>
public Dictionary<string,string> ServerData;
/// <summary>
/// The server entity key.
/// </summary>
public EntityKey ServerEntity;
}

[Serializable]
public class LobbySummary : PlayFabBaseModel
{
Expand Down Expand Up @@ -4356,12 +4375,6 @@ public class ScheduledStandbySettings : PlayFabBaseModel
public List<Schedule> ScheduleList;
}

public enum ServerDataStatus
{
Initialized,
Ignored
}

[Serializable]
public class ServerDetails : PlayFabBaseModel
{
Expand Down Expand Up @@ -4950,11 +4963,6 @@ public class UpdateLobbyAsServerRequest : PlayFabRequestCommon
/// </summary>
public string LobbyId;
/// <summary>
/// The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined
/// server). When changing the server the previous server will automatically be unsubscribed.
/// </summary>
public EntityKey Server;
/// <summary>
/// The private key-value pairs which are visible to all entities in the lobby and modifiable by the joined server.
/// Optional. Sets or updates key-value pairs on the lobby. Only the current lobby lobby server can set serverData. Keys may
/// be an arbitrary string of at most 30 characters. The total size of all serverData values may not exceed 4096 bytes.
Expand All @@ -4968,6 +4976,11 @@ public class UpdateLobbyAsServerRequest : PlayFabRequestCommon
/// request.
/// </summary>
public List<string> ServerDataToDelete;
/// <summary>
/// The lobby server. Optional. Set a different server as the joined server of the lobby (there can only be 1 joined
/// server). When changing the server the previous server will automatically be unsubscribed.
/// </summary>
public EntityKey ServerEntity;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,8 @@ public enum GenericErrorCodes
LeaderboardColumnsNotSpecified,
LeaderboardMaxSizeTooLarge,
InvalidAttributeStatisticsSpecified,
LeaderboardNotFound,
TokenSigningKeyNotFound,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ public enum PlayFabErrorCode
LeaderboardColumnsNotSpecified = 1564,
LeaderboardMaxSizeTooLarge = 1565,
InvalidAttributeStatisticsSpecified = 1566,
LeaderboardNotFound = 1567,
TokenSigningKeyNotFound = 1568,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down
Loading

0 comments on commit 660764a

Please sign in to comment.