@@ -16,7 +16,7 @@ namespace TaleWorlds.PlatformService
|
|
16
16
|
|
17
17
|
void OnLeftParty();
|
18
18
|
|
19
|
-
PlatformInviteResponse OnPartyInvitationReceived(PlayerId playerId);
|
19
|
+
Task<PlatformInviteResponse> OnPartyInvitationReceived(PlayerId playerId);
|
20
20
|
|
21
21
|
bool OnInvitedPlayerOnline(PlayerId playerId);
|
22
22
|
|
@@ -21,6 +21,8 @@ namespace TaleWorlds.PlatformService
|
|
21
21
|
|
22
22
|
bool UserLoggedIn { get; }
|
23
23
|
|
24
|
+
bool IsPermanentMuteAvailable { get; }
|
25
|
+
|
24
26
|
IReadOnlyCollection<PlayerId> BlockedUsers { get; }
|
25
27
|
|
26
28
|
event Action<AvatarData> OnAvatarUpdated;
|
@@ -53,7 +55,7 @@ namespace TaleWorlds.PlatformService
|
|
53
55
|
|
54
56
|
IActivityService GetActivityService();
|
55
57
|
|
56
|
-
void CheckPrivilege(Privilege privilege, PrivilegeResult callback);
|
58
|
+
void CheckPrivilege(Privilege privilege, bool displayResolveUI, PrivilegeResult callback);
|
57
59
|
|
58
60
|
void CheckPermissionWithUser(Permission permission, PlayerId targetPlayerId, PermissionResult callback);
|
59
61
|
|
@@ -63,6 +65,10 @@ namespace TaleWorlds.PlatformService
|
|
63
65
|
|
64
66
|
void ShowPlayerProfileCard(PlayerId providedId);
|
65
67
|
|
68
|
+
void GetPlatformId(PlayerId playerId, Action<object> callback);
|
69
|
+
|
70
|
+
void OnFocusGained();
|
71
|
+
|
66
72
|
void ShowRestrictedInformation();
|
67
73
|
|
68
74
|
Task<bool> VerifyString(string content);
|
@@ -22,6 +22,8 @@ namespace TaleWorlds.PlatformService
|
|
22
22
|
|
23
23
|
IReadOnlyCollection<PlayerId> IPlatformServices.BlockedUsers { get; }
|
24
24
|
|
25
|
+
bool IPlatformServices.IsPermanentMuteAvailable { get; }
|
26
|
+
|
25
27
|
bool IPlatformServices.UserLoggedIn { get; }
|
26
28
|
|
27
29
|
public event Action<PlayerId> OnUserStatusChanged
|
@@ -94,14 +96,18 @@ namespace TaleWorlds.PlatformService
|
|
94
96
|
|
95
97
|
extern IActivityService IPlatformServices.GetActivityService();
|
96
98
|
|
97
|
-
extern void IPlatformServices.CheckPrivilege(Privilege privilege, PrivilegeResult callback);
|
99
|
+
extern void IPlatformServices.CheckPrivilege(Privilege privilege, bool displayResolveUI, PrivilegeResult callback);
|
98
100
|
|
99
101
|
extern void IPlatformServices.CheckPermissionWithUser(Permission privilege, PlayerId targetPlayerId, PermissionResult callback);
|
100
102
|
|
101
103
|
extern void IPlatformServices.CheckPermissionsWithUsers(Permission[] permissions, PlayerId[] targetPlayerIds, PermissionResults callback);
|
102
104
|
|
105
|
+
extern void IPlatformServices.GetPlatformId(PlayerId playerId, Action<object> callback);
|
106
|
+
|
103
107
|
extern Task<bool> IPlatformServices.VerifyString(string content);
|
104
108
|
|
105
109
|
extern void IPlatformServices.ShowRestrictedInformation();
|
110
|
+
|
111
|
+
extern void IPlatformServices.OnFocusGained();
|
106
112
|
}
|
107
113
|
}
|
@@ -2,5 +2,5 @@ using TaleWorlds.PlayerServices;
|
|
2
2
|
|
3
3
|
namespace TaleWorlds.PlatformService
|
4
4
|
{
|
5
|
-
public delegate void PermissionResults((PlayerId PlayerId, Permission Permission, bool
|
5
|
+
public delegate void PermissionResults((PlayerId PlayerId, Permission Permission, bool HasPermission)[] results);
|
6
6
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
-
using System.Collections.Specialized;
|
4
3
|
using System.Runtime.CompilerServices;
|
5
4
|
using System.Threading.Tasks;
|
6
5
|
using TaleWorlds.Library;
|
@@ -24,9 +23,6 @@ namespace TaleWorlds.PlatformService
|
|
24
23
|
public static SessionInvitationType SessionInvitationType { [CompilerGenerated]
|
25
24
|
get; }
|
26
25
|
|
27
|
-
public static NameValueCollection SessionInvitationData { [CompilerGenerated]
|
28
|
-
get; }
|
29
|
-
|
30
26
|
public static string ProviderName { get; }
|
31
27
|
|
32
28
|
public static string UserId { get; }
|
@@ -41,11 +37,11 @@ namespace TaleWorlds.PlatformService
|
|
41
37
|
|
42
38
|
public static extern void MultiplayerGameStateChanged(bool isPlaying);
|
43
39
|
|
44
|
-
public static extern void FireOnSessionInvitationAccepted(SessionInvitationType sessionInvitationType
|
40
|
+
public static extern void FireOnSessionInvitationAccepted(SessionInvitationType sessionInvitationType);
|
45
41
|
|
46
42
|
public static extern void OnSessionInvitationHandled();
|
47
43
|
|
48
|
-
[AsyncStateMachine(typeof(
|
44
|
+
[AsyncStateMachine(typeof(_003CFilterString_003Ed__27))]
|
49
45
|
public static extern Task<string> FilterString(string content, string defaultContent);
|
50
46
|
|
51
47
|
[CommandLineFunctionality.CommandLineArgumentFunction("trigger_invitation", "platform_services")]
|
@@ -3,7 +3,6 @@ namespace TaleWorlds.PlatformService
|
|
3
3
|
public enum SessionInvitationType
|
4
4
|
{
|
5
5
|
None,
|
6
|
-
Multiplayer
|
7
|
-
ConnectionString
|
6
|
+
Multiplayer
|
8
7
|
}
|
9
8
|
}
|
@@ -22,6 +22,8 @@ namespace TaleWorlds.PlatformService
|
|
22
22
|
|
23
23
|
IReadOnlyCollection<PlayerId> IPlatformServices.BlockedUsers { get; }
|
24
24
|
|
25
|
+
bool IPlatformServices.IsPermanentMuteAvailable { get; }
|
26
|
+
|
25
27
|
bool IPlatformServices.UserLoggedIn { get; }
|
26
28
|
|
27
29
|
public event Action<AvatarData> OnAvatarUpdated
|
@@ -86,7 +88,7 @@ namespace TaleWorlds.PlatformService
|
|
86
88
|
|
87
89
|
extern Task<ILoginAccessProvider> IPlatformServices.CreateLobbyClientLoginProvider();
|
88
90
|
|
89
|
-
extern void IPlatformServices.CheckPrivilege(Privilege privilege, PrivilegeResult callback);
|
91
|
+
extern void IPlatformServices.CheckPrivilege(Privilege privilege, bool displayResolveUI, PrivilegeResult callback);
|
90
92
|
|
91
93
|
extern void IPlatformServices.CheckPermissionWithUser(Permission privilege, PlayerId targetPlayerId, PermissionResult callback);
|
92
94
|
|
@@ -94,6 +96,10 @@ namespace TaleWorlds.PlatformService
|
|
94
96
|
|
95
97
|
extern Task<bool> IPlatformServices.VerifyString(string content);
|
96
98
|
|
99
|
+
extern void IPlatformServices.GetPlatformId(PlayerId playerId, Action<object> callback);
|
100
|
+
|
97
101
|
extern void IPlatformServices.ShowRestrictedInformation();
|
102
|
+
|
103
|
+
extern void IPlatformServices.OnFocusGained();
|
98
104
|
}
|
99
105
|
}
|