@@ -0,0 +1,17 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Diamond;
|
4
|
+
using TaleWorlds.PlayerServices;
|
5
|
+
|
6
|
+
namespace Messages.FromClient.ToLobbyServer
|
7
|
+
{
|
8
|
+
[Serializable]
|
9
|
+
[MessageDescription("Client", "LobbyServer")]
|
10
|
+
public class GetBannerlordIDMessage : Message
|
11
|
+
{
|
12
|
+
public PlayerId PlayerId { [CompilerGenerated]
|
13
|
+
get; }
|
14
|
+
|
15
|
+
public extern GetBannerlordIDMessage(PlayerId playerId);
|
16
|
+
}
|
17
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Collections.Generic;
|
2
3
|
using System.Runtime.CompilerServices;
|
3
4
|
using TaleWorlds.Diamond;
|
4
5
|
using TaleWorlds.Library;
|
@@ -28,6 +29,9 @@ namespace Messages.FromClient.ToLobbyServer
|
|
28
29
|
public string ConnectionPassword { [CompilerGenerated]
|
29
30
|
get; }
|
30
31
|
|
31
|
-
public
|
32
|
+
public Dictionary<string, string> LoadedModules { [CompilerGenerated]
|
33
|
+
get; }
|
34
|
+
|
35
|
+
public extern InitializeSession(PlayerId playerId, string playerName, object accessObject, ApplicationVersion applicationVersion, bool isRunningWithAntiCheat, string connectionPassword, Dictionary<string, string> loadedModules);
|
32
36
|
}
|
33
37
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Collections.Generic;
|
2
3
|
using System.Runtime.CompilerServices;
|
3
4
|
using TaleWorlds.Diamond;
|
4
5
|
using TaleWorlds.Library;
|
@@ -15,6 +16,9 @@ namespace Messages.FromCustomBattleServer.ToCustomBattleServerManager
|
|
15
16
|
public string AuthToken { [CompilerGenerated]
|
16
17
|
get; }
|
17
18
|
|
18
|
-
public
|
19
|
+
public Dictionary<string, string> LoadedModules { [CompilerGenerated]
|
20
|
+
get; }
|
21
|
+
|
22
|
+
public extern CustomBattleServerReadyMessage(PeerId peerId, ApplicationVersion applicationVersion, string authToken, Dictionary<string, string> loadedModules);
|
19
23
|
}
|
20
24
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Diamond;
|
4
|
+
|
5
|
+
namespace Messages.FromLobbyServer.ToClient
|
6
|
+
{
|
7
|
+
[Serializable]
|
8
|
+
public class GetBannerlordIDMessageResult : FunctionResult
|
9
|
+
{
|
10
|
+
public string BannerlordID { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public extern GetBannerlordIDMessageResult(string bannerlordID);
|
14
|
+
}
|
15
|
+
}
|
@@ -8,9 +8,12 @@ namespace Messages.FromLobbyServer.ToClient
|
|
8
8
|
[MessageDescription("LobbyServer", "Client")]
|
9
9
|
public class RejoinBattleRequestAnswerMessage : Message
|
10
10
|
{
|
11
|
-
public bool
|
11
|
+
public bool IsRejoinAccepted { [CompilerGenerated]
|
12
12
|
get; }
|
13
13
|
|
14
|
-
public
|
14
|
+
public bool IsSuccessful { [CompilerGenerated]
|
15
|
+
get; }
|
16
|
+
|
17
|
+
public extern RejoinBattleRequestAnswerMessage(bool isRejoinAccepted, bool isSuccessful);
|
15
18
|
}
|
16
19
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Diamond;
|
4
|
+
using TaleWorlds.MountAndBlade.Diamond;
|
5
|
+
|
6
|
+
namespace Messages.FromLobbyServer.ToClient
|
7
|
+
{
|
8
|
+
[Serializable]
|
9
|
+
public class ShowAnnouncementMessage : Message
|
10
|
+
{
|
11
|
+
public Announcement Announcement { [CompilerGenerated]
|
12
|
+
get; }
|
13
|
+
|
14
|
+
public extern ShowAnnouncementMessage(Announcement announcement);
|
15
|
+
}
|
16
|
+
}
|
@@ -7,12 +7,21 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
7
7
|
[Serializable]
|
8
8
|
public class Announcement
|
9
9
|
{
|
10
|
+
public int Id { [CompilerGenerated]
|
11
|
+
get; }
|
12
|
+
|
13
|
+
public Guid BattleId { [CompilerGenerated]
|
14
|
+
get; }
|
15
|
+
|
10
16
|
public AnnouncementType Type { [CompilerGenerated]
|
11
17
|
get; }
|
12
18
|
|
13
19
|
public TextObject Text { [CompilerGenerated]
|
14
20
|
get; }
|
15
21
|
|
16
|
-
public
|
22
|
+
public bool IsEnabled { [CompilerGenerated]
|
23
|
+
get; }
|
24
|
+
|
25
|
+
public extern Announcement(int id, Guid battleId, AnnouncementType type, TextObject text, bool isEnabled);
|
17
26
|
}
|
18
27
|
}
|
@@ -5,6 +5,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
5
5
|
NoAnswer,
|
6
6
|
NotFound,
|
7
7
|
AtLobby,
|
8
|
+
InParty,
|
8
9
|
InMultiplayerGame
|
9
10
|
}
|
10
11
|
}
|
@@ -50,7 +50,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
50
50
|
|
51
51
|
public extern void SetBadgeComponent(IBadgeComponent badgeComponent);
|
52
52
|
|
53
|
-
public extern void Connect(ICustomBattleServerSessionHandler handler, string authToken);
|
53
|
+
public extern void Connect(ICustomBattleServerSessionHandler handler, string authToken, string[] loadedModuleIDs);
|
54
54
|
|
55
55
|
public override extern void OnConnected();
|
56
56
|
|
@@ -62,10 +62,10 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
62
62
|
|
63
63
|
public extern void ResponseCustomGameClientConnection(PlayerJoinGameResponseDataFromHost[] playerJoinData);
|
64
64
|
|
65
|
-
[AsyncStateMachine(typeof(
|
65
|
+
[AsyncStateMachine(typeof(_003CRegisterGame_003Ed__61))]
|
66
66
|
public extern Task RegisterGame(string gameModule, string gameType, string serverName, int maxPlayerCount, string scene, int port, string region, string gamePassword, string adminPassword, int permission);
|
67
67
|
|
68
|
-
[AsyncStateMachine(typeof(
|
68
|
+
[AsyncStateMachine(typeof(_003CRegisterGame_003Ed__62))]
|
69
69
|
public extern Task RegisterGame(int gameDefinitionId, string gameModule, string gameType, string serverName, int maxPlayerCount, string scene, int port, string region, string gamePassword, string adminPassword, int permission);
|
70
70
|
|
71
71
|
public extern void KickPlayer(PlayerId id, bool banPlayer);
|
@@ -18,6 +18,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
18
18
|
AlreadyRequestedWaitingForServerResponse,
|
19
19
|
RequesterIsNotPartyLeader,
|
20
20
|
NotAllPlayersReady,
|
21
|
-
NotAllPlayersUsingAntiCheat
|
21
|
+
NotAllPlayersUsingAntiCheat,
|
22
|
+
NotAllPlayersModulesMatchWithServer
|
22
23
|
}
|
23
24
|
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
using System;
|
2
|
+
using System.Collections.Generic;
|
2
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.PlayerServices;
|
3
5
|
|
4
6
|
namespace TaleWorlds.MountAndBlade.Diamond
|
5
7
|
{
|
@@ -48,6 +50,12 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
48
50
|
public int Permission { [CompilerGenerated]
|
49
51
|
get; }
|
50
52
|
|
51
|
-
public
|
53
|
+
public PlayerId HostId { [CompilerGenerated]
|
54
|
+
get; }
|
55
|
+
|
56
|
+
public Dictionary<string, string> LoadedModules { [CompilerGenerated]
|
57
|
+
get; }
|
58
|
+
|
59
|
+
public extern GameServerEntry(CustomBattleId id, string serverName, string address, int port, string region, string gameModule, string gameType, string map, int playerCount, int maxPlayerCount, bool isOfficial, PlayerId hostId, Dictionary<string, string> loadedModules, bool passwordProtected = false, int permission = 0);
|
52
60
|
}
|
53
61
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.PlayerServices;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.Diamond
|
6
7
|
{
|
@@ -46,7 +47,13 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
46
47
|
public int Permission { [CompilerGenerated]
|
47
48
|
get; }
|
48
49
|
|
49
|
-
public
|
50
|
+
public PlayerId HostId { [CompilerGenerated]
|
51
|
+
get; }
|
52
|
+
|
53
|
+
public Dictionary<string, string> LoadedModules { [CompilerGenerated]
|
54
|
+
get; }
|
55
|
+
|
56
|
+
public extern GameServerProperties(string name, string address, int port, string region, string gameModule, string gameType, string map, string gamePassword, string adminPassword, int maxPlayerCount, bool isOfficial, PlayerId hostId, Dictionary<string, string> loadedModules, int permission);
|
50
57
|
|
51
58
|
public extern void CheckAndReplaceProxyAddress(IReadOnlyDictionary<string, string> proxyAddressMap);
|
52
59
|
}
|
@@ -22,5 +22,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
22
22
|
void OnGameFinished();
|
23
23
|
|
24
24
|
void OnChatFilterListsReceived(string[] profanityList, string[] allowList);
|
25
|
+
|
26
|
+
void OnPlayerKickRequested(PlayerId playerID, bool isBanning);
|
25
27
|
}
|
26
28
|
}
|
@@ -72,7 +72,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
72
72
|
|
73
73
|
void OnRecentPlayerStatusesReceived(FriendInfo[] friends);
|
74
74
|
|
75
|
-
void
|
75
|
+
void OnNotificationsReceived(LobbyNotification[] notifications);
|
76
76
|
|
77
77
|
void OnChatMessageReceived(Guid roomId, string roomName, string playerName, string messageText, string textColor, MessageType type);
|
78
78
|
|
@@ -124,6 +124,8 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
124
124
|
|
125
125
|
void OnRemovedFromCustomGame(DisconnectType disconnectType);
|
126
126
|
|
127
|
+
void OnAnnouncementReceived(Announcement announcement);
|
128
|
+
|
127
129
|
Task<bool> OnInviteToGame(PlayerId playerId);
|
128
130
|
|
129
131
|
void OnEnterCustomBattleWithPartyAnswer();
|
@@ -103,6 +103,10 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
103
103
|
|
104
104
|
public bool IsCustomBattleAvailable { get; }
|
105
105
|
|
106
|
+
public IReadOnlyDictionary<string, string> LoadedModules { get; }
|
107
|
+
|
108
|
+
public bool HasUnofficialModulesLoaded { get; }
|
109
|
+
|
106
110
|
public bool IsPartyLeader { get; }
|
107
111
|
|
108
112
|
public bool IsClanLeader { get; }
|
@@ -165,24 +169,26 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
165
169
|
|
166
170
|
public extern LobbyClient(DiamondClientApplication diamondClientApplication, IClientSessionProvider<LobbyClient> sessionProvider);
|
167
171
|
|
168
|
-
[
|
172
|
+
public extern void SetLoadedModules(string[] moduleIDs);
|
173
|
+
|
174
|
+
[AsyncStateMachine(typeof(_003CGetCustomGameServerList_003Ed__183))]
|
169
175
|
public extern Task<AvailableCustomGames> GetCustomGameServerList();
|
170
176
|
|
171
177
|
public extern void QuitFromCustomGame();
|
172
178
|
|
173
179
|
public extern void QuitFromMatchmakerGame();
|
174
180
|
|
175
|
-
[AsyncStateMachine(typeof(
|
181
|
+
[AsyncStateMachine(typeof(_003CRequestJoinCustomGame_003Ed__186))]
|
176
182
|
public extern Task<bool> RequestJoinCustomGame(CustomBattleId serverId, string password);
|
177
183
|
|
178
184
|
public extern void CancelFindGame();
|
179
185
|
|
180
186
|
public extern void FindGame();
|
181
187
|
|
182
|
-
[AsyncStateMachine(typeof(
|
188
|
+
[AsyncStateMachine(typeof(_003CFindCustomGame_003Ed__189))]
|
183
189
|
public extern Task<bool> FindCustomGame(string[] selectedCustomGameTypes, string region);
|
184
190
|
|
185
|
-
[AsyncStateMachine(typeof(
|
191
|
+
[AsyncStateMachine(typeof(_003CConnect_003Ed__190))]
|
186
192
|
public extern Task<LobbyClientConnectResult> Connect(ILobbyClientSessionHandler lobbyClientSessionHandler, ILoginAccessProvider lobbyClientLoginAccessProvider, string overridenUserName, bool isRunningWithAntiCheat, PlatformInitParams initParams);
|
187
193
|
|
188
194
|
public extern void KickPlayer(PlayerId id, bool banPlayer);
|
@@ -197,26 +203,26 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
197
203
|
|
198
204
|
public override extern void OnDisconnected();
|
199
205
|
|
200
|
-
public extern void FleeBattle();
|
201
|
-
|
202
|
-
protected override extern void OnTick();
|
203
|
-
|
204
206
|
public extern void SendWhisper(string playerName, string message);
|
205
207
|
|
206
|
-
public extern void
|
207
|
-
|
208
|
-
public extern void RejoinBattle();
|
208
|
+
public extern void FleeBattle();
|
209
209
|
|
210
210
|
public extern void SendPartyMessage(string message);
|
211
211
|
|
212
212
|
public extern void SendChannelMessage(Guid roomId, string message);
|
213
213
|
|
214
|
-
|
214
|
+
protected override extern void OnTick();
|
215
|
+
|
216
|
+
public extern void RejoinBattle();
|
217
|
+
|
218
|
+
public extern void OnBattleResultsSeen();
|
215
219
|
|
216
220
|
public extern void AcceptClanInvitation();
|
217
221
|
|
218
222
|
public extern void DeclineClanInvitation();
|
219
223
|
|
224
|
+
public extern void MarkNotificationAsRead(int notificationID);
|
225
|
+
|
220
226
|
public extern void AcceptClanCreationRequest();
|
221
227
|
|
222
228
|
public extern void DeclineClanCreationRequest();
|
@@ -225,39 +231,39 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
225
231
|
|
226
232
|
public extern void KickFromClan(PlayerId playerId);
|
227
233
|
|
228
|
-
[AsyncStateMachine(typeof(
|
234
|
+
[AsyncStateMachine(typeof(_003CClanNameExists_003Ed__270))]
|
229
235
|
public extern Task<CheckClanParameterValidResult> ClanNameExists(string clanName);
|
230
236
|
|
231
|
-
[AsyncStateMachine(typeof(
|
237
|
+
[AsyncStateMachine(typeof(_003CClanTagExists_003Ed__271))]
|
232
238
|
public extern Task<CheckClanParameterValidResult> ClanTagExists(string clanTag);
|
233
239
|
|
234
|
-
[AsyncStateMachine(typeof(
|
240
|
+
[AsyncStateMachine(typeof(_003CGetClanHomeInfo_003Ed__272))]
|
235
241
|
public extern Task<ClanHomeInfo> GetClanHomeInfo();
|
236
242
|
|
237
|
-
public extern void AssignAsClanOfficer(PlayerId playerId);
|
238
|
-
|
239
|
-
public extern void RemoveClanOfficerRoleForPlayer(PlayerId playerId);
|
240
|
-
|
241
|
-
[AsyncStateMachine(typeof(_003CGetPlayerClanInfo_003Ed__268))]
|
242
|
-
public extern Task<ClanInfo> GetPlayerClanInfo(PlayerId playerId);
|
243
|
-
|
244
243
|
public extern void SendChatMessage(Guid roomId, string message);
|
245
244
|
|
246
|
-
[AsyncStateMachine(typeof(_003CGetAvailableScenes_003Ed__270))]
|
247
|
-
public extern Task<AvailableScenes> GetAvailableScenes();
|
248
|
-
|
249
245
|
public extern void JoinChannel(ChatChannelType channel);
|
250
246
|
|
247
|
+
public extern void AssignAsClanOfficer(PlayerId playerId);
|
248
|
+
|
249
|
+
public extern void RemoveClanOfficerRoleForPlayer(PlayerId playerId);
|
250
|
+
|
251
251
|
public extern void LeaveChannel(ChatChannelType channel);
|
252
252
|
|
253
|
-
[AsyncStateMachine(typeof(
|
253
|
+
[AsyncStateMachine(typeof(_003CGetClanLeaderboardInfo_003Ed__279))]
|
254
254
|
public extern Task<ClanLeaderboardInfo> GetClanLeaderboardInfo();
|
255
255
|
|
256
|
+
[AsyncStateMachine(typeof(_003CGetPlayerClanInfo_003Ed__280))]
|
257
|
+
public extern Task<ClanInfo> GetPlayerClanInfo(PlayerId playerId);
|
258
|
+
|
256
259
|
public extern void SendClanMessage(string message);
|
257
260
|
|
258
|
-
[AsyncStateMachine(typeof(
|
261
|
+
[AsyncStateMachine(typeof(_003CGetPremadeGameList_003Ed__282))]
|
259
262
|
public extern Task<PremadeGameList> GetPremadeGameList();
|
260
263
|
|
264
|
+
[AsyncStateMachine(typeof(_003CGetAvailableScenes_003Ed__283))]
|
265
|
+
public extern Task<AvailableScenes> GetAvailableScenes();
|
266
|
+
|
261
267
|
public extern void SetClanInformationText(string informationText);
|
262
268
|
|
263
269
|
public extern void AddClanAnnouncement(string announcement);
|
@@ -274,7 +280,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
274
280
|
|
275
281
|
public extern void InviteToClan(PlayerId invitedPlayerId);
|
276
282
|
|
277
|
-
[AsyncStateMachine(typeof(
|
283
|
+
[AsyncStateMachine(typeof(_003CCreatePremadeGame_003Ed__292))]
|
278
284
|
public extern void CreatePremadeGame(string name, string gameType, string mapName, string factionA, string factionB, string password, PremadeGameType premadeGameType);
|
279
285
|
|
280
286
|
public extern void CancelCreatingPremadeGame();
|
@@ -299,66 +305,68 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
299
305
|
|
300
306
|
public extern IEnumerable<string> Test_ListChatRoomIds();
|
301
307
|
|
302
|
-
|
303
|
-
public extern Task<bool> InviteToGame(PlayerId playerId);
|
304
|
-
|
305
|
-
public extern void ToggleUseClanSigil(bool isUsed);
|
308
|
+
public extern void KickPlayerFromParty(PlayerId playerId);
|
306
309
|
|
307
|
-
public extern void
|
310
|
+
public extern void OnPlayerNameUpdated(string name);
|
308
311
|
|
309
|
-
public extern void
|
312
|
+
public extern void ToggleUseClanSigil(bool isUsed);
|
310
313
|
|
311
314
|
public extern void PromotePlayerToPartyLeader(PlayerId playerId);
|
312
315
|
|
313
|
-
public extern void
|
316
|
+
public extern void ChangeSigil(string sigilId);
|
314
317
|
|
315
|
-
|
318
|
+
[AsyncStateMachine(typeof(_003CInviteToGame_003Ed__309))]
|
319
|
+
public extern Task<bool> InviteToGame(PlayerId playerId);
|
316
320
|
|
317
|
-
[AsyncStateMachine(typeof(
|
321
|
+
[AsyncStateMachine(typeof(_003CEndCustomGame_003Ed__310))]
|
318
322
|
public extern void EndCustomGame();
|
319
323
|
|
320
|
-
[AsyncStateMachine(typeof(
|
324
|
+
[AsyncStateMachine(typeof(_003CRegisterCustomGame_003Ed__311))]
|
321
325
|
public extern void RegisterCustomGame(string gameModule, string gameType, string serverName, int maxPlayerCount, string map, string gamePassword, string adminPassword, int port);
|
322
326
|
|
323
327
|
public extern void ResponseCustomGameClientConnection(PlayerJoinGameResponseDataFromHost[] playerJoinData);
|
324
328
|
|
325
|
-
public extern void
|
329
|
+
public extern void AcceptPartyInvitation();
|
330
|
+
|
331
|
+
public extern void DeclinePartyInvitation();
|
326
332
|
|
327
333
|
public extern void UpdateCharacter(BodyProperties bodyProperties, bool isFemale);
|
328
334
|
|
329
|
-
[AsyncStateMachine(typeof(
|
335
|
+
[AsyncStateMachine(typeof(_003CUpdateShownBadgeId_003Ed__316))]
|
330
336
|
public extern Task<bool> UpdateShownBadgeId(string shownBadgeId);
|
331
337
|
|
332
|
-
[AsyncStateMachine(typeof(
|
338
|
+
[AsyncStateMachine(typeof(_003CGetAnotherPlayerState_003Ed__317))]
|
333
339
|
public extern Task<AnotherPlayerData> GetAnotherPlayerState(PlayerId playerId);
|
334
340
|
|
335
|
-
|
341
|
+
public extern void SuggestToParty(PlayerId playerId);
|
342
|
+
|
343
|
+
[AsyncStateMachine(typeof(_003CGetAnotherPlayerData_003Ed__319))]
|
336
344
|
public extern Task<PlayerData> GetAnotherPlayerData(PlayerId playerID);
|
337
345
|
|
338
|
-
[AsyncStateMachine(typeof(
|
346
|
+
[AsyncStateMachine(typeof(_003CGetPlayerCountInQueue_003Ed__320))]
|
339
347
|
public extern Task<MatchmakingQueueStats> GetPlayerCountInQueue();
|
340
348
|
|
341
|
-
[AsyncStateMachine(typeof(
|
349
|
+
[AsyncStateMachine(typeof(_003CGetOtherPlayersState_003Ed__321))]
|
342
350
|
public extern Task<List<(PlayerId, AnotherPlayerData)>> GetOtherPlayersState(List<PlayerId> players);
|
343
351
|
|
344
|
-
[AsyncStateMachine(typeof(
|
352
|
+
[AsyncStateMachine(typeof(_003CGetMatchmakingWaitTimes_003Ed__322))]
|
345
353
|
public extern Task<MatchmakingWaitTimeStats> GetMatchmakingWaitTimes();
|
346
354
|
|
347
|
-
[AsyncStateMachine(typeof(
|
355
|
+
[AsyncStateMachine(typeof(_003CGetPlayerBadges_003Ed__323))]
|
348
356
|
public extern Task<Badge[]> GetPlayerBadges();
|
349
357
|
|
350
|
-
[AsyncStateMachine(typeof(
|
358
|
+
[AsyncStateMachine(typeof(_003CGetPlayerStats_003Ed__324))]
|
351
359
|
public extern Task<PlayerStatsBase[]> GetPlayerStats(PlayerId playerID);
|
352
360
|
|
353
|
-
[AsyncStateMachine(typeof(
|
361
|
+
[AsyncStateMachine(typeof(_003CGetGameTypeRankInfo_003Ed__325))]
|
354
362
|
public extern Task<GameTypeRankInfo[]> GetGameTypeRankInfo(PlayerId playerID);
|
355
363
|
|
356
|
-
[AsyncStateMachine(typeof(
|
364
|
+
[AsyncStateMachine(typeof(_003CGetRankedLeaderboard_003Ed__326))]
|
357
365
|
public extern Task<(PlayerId, int, string)[]> GetRankedLeaderboard(string gameType);
|
358
366
|
|
359
367
|
public extern void SendCreateClanMessage(string clanName, string clanTag, string clanFaction, string clanSigil);
|
360
368
|
|
361
|
-
[AsyncStateMachine(typeof(
|
369
|
+
[AsyncStateMachine(typeof(_003CCanLogin_003Ed__328))]
|
362
370
|
public extern Task<bool> CanLogin();
|
363
371
|
|
364
372
|
public extern void GetFriendList();
|
@@ -377,25 +385,28 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
377
385
|
|
378
386
|
public extern void AddFriendByUsernameAndId(string username, int userId);
|
379
387
|
|
380
|
-
[AsyncStateMachine(typeof(
|
388
|
+
[AsyncStateMachine(typeof(_003CDoesPlayerWithUsernameAndIdExist_003Ed__337))]
|
381
389
|
public extern Task<bool> DoesPlayerWithUsernameAndIdExist(string username, int userId);
|
382
390
|
|
383
391
|
public extern bool IsPlayerClanLeader(PlayerId playerID);
|
384
392
|
|
385
393
|
public extern bool IsPlayerClanOfficer(PlayerId playerID);
|
386
394
|
|
387
|
-
[AsyncStateMachine(typeof(
|
395
|
+
[AsyncStateMachine(typeof(_003CUpdateUsedCosmeticItems_003Ed__340))]
|
388
396
|
public extern Task<bool> UpdateUsedCosmeticItems(Dictionary<string, List<(string cosmeticIndex, bool isEquipped)>> usedCosmetics);
|
389
397
|
|
390
|
-
[AsyncStateMachine(typeof(
|
398
|
+
[AsyncStateMachine(typeof(_003CBuyCosmetic_003Ed__341))]
|
391
399
|
public extern Task<(bool isSuccessful, int finalGold)> BuyCosmetic(string cosmeticId);
|
392
400
|
|
393
|
-
[AsyncStateMachine(typeof(
|
401
|
+
[AsyncStateMachine(typeof(_003CGetCosmeticsInfo_003Ed__342))]
|
394
402
|
public extern Task<(bool isSuccessful, List<string> ownedCosmetics, Dictionary<string, List<string>> usedCosmetics)> GetCosmeticsInfo();
|
395
403
|
|
396
|
-
[AsyncStateMachine(typeof(
|
404
|
+
[AsyncStateMachine(typeof(_003CGetDedicatedCustomServerAuthToken_003Ed__343))]
|
397
405
|
public extern Task<string> GetDedicatedCustomServerAuthToken();
|
398
406
|
|
407
|
+
[AsyncStateMachine(typeof(_003CGetPlayerBannerlordID_003Ed__344))]
|
408
|
+
public extern Task<string> GetPlayerBannerlordID(PlayerId playerId);
|
409
|
+
|
399
410
|
public extern bool IsKnownPlayer(PlayerId playerID);
|
400
411
|
}
|
401
412
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using System;
|
1
2
|
using System.Collections.Generic;
|
2
3
|
using System.Runtime.CompilerServices;
|
3
4
|
using System.Threading.Tasks;
|
@@ -12,7 +13,9 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
12
13
|
|
13
14
|
public static IReadOnlyList<(string Id, string Name)> MutedPlayers { get; }
|
14
15
|
|
15
|
-
|
16
|
+
public static extern void SetPermanentMuteAvailableCallback(Func<bool> getPermanentMuteAvailable);
|
17
|
+
|
18
|
+
[AsyncStateMachine(typeof(_003CLoadMutedPlayers_003Ed__13))]
|
16
19
|
public static extern Task LoadMutedPlayers(PlayerId currentPlayerId);
|
17
20
|
|
18
21
|
public static extern void SaveMutedPlayers();
|
@@ -30,6 +30,10 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
30
30
|
get; [CompilerGenerated]
|
31
31
|
set; }
|
32
32
|
|
33
|
+
public int Race { [CompilerGenerated]
|
34
|
+
get; [CompilerGenerated]
|
35
|
+
set; }
|
36
|
+
|
33
37
|
public bool IsFemale { [CompilerGenerated]
|
34
38
|
get; [CompilerGenerated]
|
35
39
|
set; }
|
@@ -40,6 +40,8 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
40
40
|
MustBeInParty,
|
41
41
|
MustBePartyLeader,
|
42
42
|
InvitePartyAntiCheatNotEnabled,
|
43
|
+
InvitePartyHasModules,
|
44
|
+
InvitePartyOtherPlayerHasModules,
|
43
45
|
InvitePartyCantInviteSelf,
|
44
46
|
InvitePartyOtherPlayerAntiCheatNotEnabled,
|
45
47
|
InvitePartyOtherPlayerAlreadyInParty,
|
@@ -112,6 +114,7 @@ namespace TaleWorlds.MountAndBlade.Diamond
|
|
112
114
|
GetPremadeGameListNotEligible,
|
113
115
|
ReportPlayerGameNotFound,
|
114
116
|
ReportPlayerPlayerNotFound,
|
117
|
+
ReportPlayerServerIsUnofficial,
|
115
118
|
ReportPlayerSuccess,
|
116
119
|
ChangeBannerlordIDFailure,
|
117
120
|
ChangeBannerlordIDSuccess,
|