Class LobbyClient
- Namespace
- TaleWorlds.MountAndBlade.Diamond
- Assembly
- TaleWorlds.MountAndBlade.Diamond.dll
public class LobbyClient : Client<LobbyClient>, IClient, IChatClientHandler
- Inheritance
-
LobbyClient
- Implements
- Inherited Members
Constructors
LobbyClient(DiamondClientApplication, IClientSessionProvider<LobbyClient>)
public LobbyClient(DiamondClientApplication diamondClientApplication, IClientSessionProvider<LobbyClient> sessionProvider)
Parameters
diamondClientApplication
DiamondClientApplicationsessionProvider
IClientSessionProvider<LobbyClient>
Fields
TestRegionCode
public const string TestRegionCode = "Test"
Field Value
Properties
AliveCheckTimeInMiliSeconds
public override long AliveCheckTimeInMiliSeconds { get; }
Property Value
AtLobby
public bool AtLobby { get; }
Property Value
AvailableCustomGames
public AvailableCustomGames AvailableCustomGames { get; }
Property Value
AvailablePremadeGames
public PremadeGameList AvailablePremadeGames { get; }
Property Value
AvailableScenes
public AvailableScenes AvailableScenes { get; }
Property Value
CanInvitePlayers
public bool CanInvitePlayers { get; }
Property Value
CanPerformLobbyActions
public bool CanPerformLobbyActions { get; }
Property Value
CanSuggestPlayers
public bool CanSuggestPlayers { get; }
Property Value
ChatManager
public ChatManager ChatManager { get; }
Property Value
ClanHomeInfo
public ClanHomeInfo ClanHomeInfo { get; }
Property Value
ClanID
public Guid ClanID { get; }
Property Value
ClanInfo
public ClanInfo ClanInfo { get; }
Property Value
Connected
public bool Connected { get; }
Property Value
CurrentMatchId
public string CurrentMatchId { get; }
Property Value
CurrentState
public LobbyClient.State CurrentState { get; }
Property Value
CustomBattleId
public CustomBattleId CustomBattleId { get; }
Property Value
CustomGameScene
public string CustomGameScene { get; }
Property Value
CustomGameType
public string CustomGameType { get; }
Property Value
FriendIDs
public List<PlayerId> FriendIDs { get; }
Property Value
FriendInfos
public FriendInfo[] FriendInfos { get; }
Property Value
HasUnofficialModulesLoaded
public bool HasUnofficialModulesLoaded { get; }
Property Value
HasUserGeneratedContentPrivilege
public bool HasUserGeneratedContentPrivilege { get; }
Property Value
IsAbleToSearchForGame
public bool IsAbleToSearchForGame { get; }
Property Value
IsClanLeader
public bool IsClanLeader { get; }
Property Value
IsClanOfficer
public bool IsClanOfficer { get; }
Property Value
IsCustomBattleAvailable
public bool IsCustomBattleAvailable { get; }
Property Value
IsEligibleToCreatePremadeGame
public bool IsEligibleToCreatePremadeGame { get; }
Property Value
IsHostingCustomGame
public bool IsHostingCustomGame { get; }
Property Value
IsIdle
public bool IsIdle { get; }
Property Value
IsInClan
public bool IsInClan { get; }
Property Value
IsInGame
public bool IsInGame { get; }
Property Value
IsInParty
public bool IsInParty { get; }
Property Value
IsMatchmakingAvailable
public bool IsMatchmakingAvailable { get; }
Property Value
IsPartyFull
public bool IsPartyFull { get; }
Property Value
IsPartyInvitationPopupActive
public bool IsPartyInvitationPopupActive { get; }
Property Value
IsPartyJoinRequestPopupActive
public bool IsPartyJoinRequestPopupActive { get; }
Property Value
IsPartyLeader
public bool IsPartyLeader { get; }
Property Value
IsRefreshingPlayerData
public bool IsRefreshingPlayerData { get; set; }
Property Value
LastBattleIsOfficial
public bool LastBattleIsOfficial { get; }
Property Value
LastBattleServerAddressForClient
public string LastBattleServerAddressForClient { get; }
Property Value
LastBattleServerPortForClient
public ushort LastBattleServerPortForClient { get; }
Property Value
LoadedUnofficialModules
public IReadOnlyList<ModuleInfoModel> LoadedUnofficialModules { get; }
Property Value
LoggedIn
public bool LoggedIn { get; }
Property Value
Name
public string Name { get; }
Property Value
OwnedCosmetics
public IReadOnlyList<string> OwnedCosmetics { get; }
Property Value
PartySystemAvailable
public bool PartySystemAvailable { get; }
Property Value
PlayerData
public PlayerData PlayerData { get; }
Property Value
PlayerID
public PlayerId PlayerID { get; }
Property Value
PlayerInfosInClan
public List<ClanPlayerInfo> PlayerInfosInClan { get; }
Property Value
PlayersInClan
public List<ClanPlayer> PlayersInClan { get; }
Property Value
PlayersInParty
public List<PartyPlayerInLobbyClient> PlayersInParty { get; }
Property Value
SupportedFeatures
public SupportedFeatures SupportedFeatures { get; }
Property Value
UsedCosmetics
public IReadOnlyDictionary<string, List<string>> UsedCosmetics { get; }
Property Value
Methods
AcceptClanCreationRequest()
public void AcceptClanCreationRequest()
AcceptClanInvitation()
public void AcceptClanInvitation()
AcceptJoinPremadeGameRequest(Guid)
public void AcceptJoinPremadeGameRequest(Guid partyId)
Parameters
partyId
Guid
AcceptPartyInvitation()
public void AcceptPartyInvitation()
AcceptPartyJoinRequest(PlayerId)
public void AcceptPartyJoinRequest(PlayerId playerId)
Parameters
playerId
PlayerId
AddClanAnnouncement(string)
public void AddClanAnnouncement(string announcement)
Parameters
announcement
string
AddFriend(PlayerId, bool)
public void AddFriend(PlayerId friendId, bool dontUseNameForUnknownPlayer)
Parameters
AddFriendByUsernameAndId(string, int, bool)
public void AddFriendByUsernameAndId(string username, int userId, bool dontUseNameForUnknownPlayer)
Parameters
AssignAsClanOfficer(PlayerId, bool)
public void AssignAsClanOfficer(PlayerId playerId, bool dontUseNameForUnknownPlayer)
Parameters
BuyCosmetic(string)
public Task<(bool isSuccessful, int finalGold)> BuyCosmetic(string cosmeticId)
Parameters
cosmeticId
string
Returns
- Task<(bool isSuccessful, int finalGold)>
CanLogin()
public Task<bool> CanLogin()
Returns
CancelCreatingPremadeGame()
public void CancelCreatingPremadeGame()
CancelFindGame()
public void CancelFindGame()
ChangeClanFaction(string)
public void ChangeClanFaction(string faction)
Parameters
faction
string
ChangeClanSigil(string)
public void ChangeClanSigil(string sigil)
Parameters
sigil
string
ChangeGameTypes(string[])
public void ChangeGameTypes(string[] gameTypes)
Parameters
gameTypes
string[]
ChangeRegion(string)
public void ChangeRegion(string region)
Parameters
region
string
ChangeSigil(string)
public void ChangeSigil(string sigilId)
Parameters
sigilId
string
ChangeUsername(string)
public void ChangeUsername(string username)
Parameters
username
string
ClanNameExists(string)
public Task<CheckClanParameterValidResult> ClanNameExists(string clanName)
Parameters
clanName
string
Returns
ClanTagExists(string)
public Task<CheckClanParameterValidResult> ClanTagExists(string clanTag)
Parameters
clanTag
string
Returns
Connect(ILobbyClientSessionHandler, ILoginAccessProvider, string, bool, PlatformInitParams)
public Task<LobbyClientConnectResult> Connect(ILobbyClientSessionHandler lobbyClientSessionHandler, ILoginAccessProvider lobbyClientLoginAccessProvider, string overridenUserName, bool hasUserGeneratedContentPrivilege, PlatformInitParams initParams)
Parameters
lobbyClientSessionHandler
ILobbyClientSessionHandlerlobbyClientLoginAccessProvider
ILoginAccessProvideroverridenUserName
stringhasUserGeneratedContentPrivilege
boolinitParams
PlatformInitParams
Returns
CreatePremadeGame(string, string, string, string, string, string, PremadeGameType)
public void CreatePremadeGame(string name, string gameType, string mapName, string factionA, string factionB, string password, PremadeGameType premadeGameType)
Parameters
name
stringgameType
stringmapName
stringfactionA
stringfactionB
stringpassword
stringpremadeGameType
PremadeGameType
DeclineClanCreationRequest()
public void DeclineClanCreationRequest()
DeclineClanInvitation()
public void DeclineClanInvitation()
DeclineJoinPremadeGameRequest(Guid)
public void DeclineJoinPremadeGameRequest(Guid partyId)
Parameters
partyId
Guid
DeclinePartyInvitation()
public void DeclinePartyInvitation()
DeclinePartyJoinRequest(PlayerId, PartyJoinDeclineReason)
public void DeclinePartyJoinRequest(PlayerId playerId, PartyJoinDeclineReason reason)
Parameters
playerId
PlayerIdreason
PartyJoinDeclineReason
DestroyClan()
public void DestroyClan()
DisbandParty()
public void DisbandParty()
DoesPlayerWithUsernameAndIdExist(string, int)
public Task<bool> DoesPlayerWithUsernameAndIdExist(string username, int userId)
Parameters
Returns
EditClanAnnouncement(int, string)
public void EditClanAnnouncement(int announcementId, string text)
Parameters
EndCustomGame()
public void EndCustomGame()
FindCustomGame(string[], bool?, string)
public Task<bool> FindCustomGame(string[] selectedCustomGameTypes, bool? hasCrossplayPrivilege, string region)
Parameters
Returns
FindGame()
public void FindGame()
FleeBattle()
public void FleeBattle()
GetAnotherPlayerData(PlayerId)
public Task<PlayerData> GetAnotherPlayerData(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
GetAnotherPlayerState(PlayerId)
public Task<AnotherPlayerData> GetAnotherPlayerState(PlayerId playerId)
Parameters
playerId
PlayerId
Returns
GetAvailableScenes()
public Task<AvailableScenes> GetAvailableScenes()
Returns
GetClanHomeInfo()
public Task<ClanHomeInfo> GetClanHomeInfo()
Returns
GetClanLeaderboardInfo()
public Task<ClanLeaderboardInfo> GetClanLeaderboardInfo()
Returns
GetCosmeticsInfo()
public Task<(bool isSuccessful, List<string> ownedCosmetics, Dictionary<string, List<string>> usedCosmetics)> GetCosmeticsInfo()
Returns
- Task<(bool isSuccessful, List<string> ownedCosmetics, Dictionary<string, List<string>> usedCosmetics)>
GetCustomGameServerList()
public Task<AvailableCustomGames> GetCustomGameServerList()
Returns
GetDedicatedCustomServerAuthToken()
public Task<string> GetDedicatedCustomServerAuthToken()
Returns
GetFriendList()
public void GetFriendList()
GetGameTypeRankInfo(PlayerId)
public Task<GameTypeRankInfo[]> GetGameTypeRankInfo(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
GetLobbyNews()
public Task<PublishedLobbyNewsArticle[]> GetLobbyNews()
Returns
GetMatchmakingWaitTimes()
public Task<MatchmakingWaitTimeStats> GetMatchmakingWaitTimes()
Returns
GetOfficialServerProviderName()
public Task<string> GetOfficialServerProviderName()
Returns
GetOtherPlayersState(List<PlayerId>)
public Task<List<(PlayerId, AnotherPlayerData)>> GetOtherPlayersState(List<PlayerId> players)
Parameters
Returns
GetPingToServer(string)
public Task<long> GetPingToServer(string IpAddress)
Parameters
IpAddress
string
Returns
GetPlayerBadges()
public Task<Badge[]> GetPlayerBadges()
Returns
GetPlayerBannerlordID(PlayerId)
public Task<string> GetPlayerBannerlordID(PlayerId playerId)
Parameters
playerId
PlayerId
Returns
GetPlayerClanInfo(PlayerId)
public Task<ClanInfo> GetPlayerClanInfo(PlayerId playerId)
Parameters
playerId
PlayerId
Returns
GetPlayerCountInQueue()
public Task<MatchmakingQueueStats> GetPlayerCountInQueue()
Returns
GetPlayerStats(PlayerId)
public Task<PlayerStatsBase[]> GetPlayerStats(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
GetPremadeGameList()
public Task<PremadeGameList> GetPremadeGameList()
Returns
GetRankedLeaderboard(string, int, int)
public Task<PlayerLeaderboardData[]> GetRankedLeaderboard(string gameType, int startIndex, int count)
Parameters
Returns
GetRankedLeaderboardCount(string)
public Task<int> GetRankedLeaderboardCount(string gameType)
Parameters
gameType
string
Returns
InviteToClan(PlayerId, bool)
public void InviteToClan(PlayerId invitedPlayerId, bool dontUseNameForUnknownPlayer)
Parameters
InviteToParty(PlayerId, bool)
public void InviteToParty(PlayerId playerId, bool dontUseNameForUnknownPlayer)
Parameters
InviteToPlatformSession(PlayerId)
public Task<bool> InviteToPlatformSession(PlayerId playerId)
Parameters
playerId
PlayerId
Returns
IsKnownPlayer(PlayerId)
public bool IsKnownPlayer(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
IsPlayerClanLeader(PlayerId)
public bool IsPlayerClanLeader(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
IsPlayerClanOfficer(PlayerId)
public bool IsPlayerClanOfficer(PlayerId playerID)
Parameters
playerID
PlayerId
Returns
JoinChannel(ChatChannelType)
public void JoinChannel(ChatChannelType channel)
Parameters
channel
ChatChannelType
KickFromClan(PlayerId)
public void KickFromClan(PlayerId playerId)
Parameters
playerId
PlayerId
KickPlayer(PlayerId, bool)
public void KickPlayer(PlayerId id, bool banPlayer)
Parameters
KickPlayerFromParty(PlayerId)
public void KickPlayerFromParty(PlayerId playerId)
Parameters
playerId
PlayerId
LeaveChannel(ChatChannelType)
public void LeaveChannel(ChatChannelType channel)
Parameters
channel
ChatChannelType
Logout(TextObject)
public void Logout(TextObject logOutReason)
Parameters
logOutReason
TextObject
MarkNotificationAsRead(int)
public void MarkNotificationAsRead(int notificationID)
Parameters
notificationID
int
OnBattleResultsSeen()
public void OnBattleResultsSeen()
OnCantConnect()
public override void OnCantConnect()
OnConnected()
public override void OnConnected()
OnDisconnected()
public override void OnDisconnected()
OnPlayerNameUpdated(string)
public void OnPlayerNameUpdated(string name)
Parameters
name
string
OnTick()
protected override void OnTick()
PromotePlayerToPartyLeader(PlayerId)
public void PromotePlayerToPartyLeader(PlayerId playerId)
Parameters
playerId
PlayerId
PromoteToClanLeader(PlayerId, bool)
public void PromoteToClanLeader(PlayerId playerId, bool dontUseNameForUnknownPlayer)
Parameters
QuitFromCustomGame()
public void QuitFromCustomGame()
QuitFromMatchmakerGame()
public void QuitFromMatchmakerGame()
RegisterCustomGame(string, string, string, int, string, string, string, string, int)
public void RegisterCustomGame(string gameModule, string gameType, string serverName, int maxPlayerCount, string map, string uniqueMapId, string gamePassword, string adminPassword, int port)
Parameters
gameModule
stringgameType
stringserverName
stringmaxPlayerCount
intmap
stringuniqueMapId
stringgamePassword
stringadminPassword
stringport
int
RejoinBattle()
public void RejoinBattle()
RemoveClanAnnouncement(int)
public void RemoveClanAnnouncement(int announcementId)
Parameters
announcementId
int
RemoveClanOfficerRoleForPlayer(PlayerId)
public void RemoveClanOfficerRoleForPlayer(PlayerId playerId)
Parameters
playerId
PlayerId
RemoveFriend(PlayerId)
public void RemoveFriend(PlayerId friendId)
Parameters
friendId
PlayerId
ReportPlayer(string, PlayerId, string, PlayerReportType, string)
public void ReportPlayer(string gameId, PlayerId player, string playerName, PlayerReportType type, string message)
Parameters
gameId
stringplayer
PlayerIdplayerName
stringtype
PlayerReportTypemessage
string
RequestJoinCustomGame(CustomBattleId, string, bool)
public Task<bool> RequestJoinCustomGame(CustomBattleId serverId, string password, bool isJoinAsAdmin = false)
Parameters
serverId
CustomBattleIdpassword
stringisJoinAsAdmin
bool
Returns
RequestJoinPlayerParty(PlayerId, bool)
public Task<bool> RequestJoinPlayerParty(PlayerId targetPlayer, bool inviteRequest)
Parameters
Returns
RequestToJoinPremadeGame(Guid, string)
public void RequestToJoinPremadeGame(Guid gameId, string password)
Parameters
RespondToFriendRequest(PlayerId, bool, bool, bool)
public void RespondToFriendRequest(PlayerId playerId, bool dontUseNameForUnknownPlayer, bool isAccepted, bool isBlocked = false)
Parameters
ResponseCustomGameClientConnection(PlayerJoinGameResponseDataFromHost[])
public void ResponseCustomGameClientConnection(PlayerJoinGameResponseDataFromHost[] playerJoinData)
Parameters
playerJoinData
PlayerJoinGameResponseDataFromHost[]
SendChannelMessage(Guid, string)
public void SendChannelMessage(Guid roomId, string message)
Parameters
SendChatMessage(Guid, string)
public void SendChatMessage(Guid roomId, string message)
Parameters
SendClanMessage(string)
public void SendClanMessage(string message)
Parameters
message
string
SendCreateClanMessage(string, string, string, string)
public void SendCreateClanMessage(string clanName, string clanTag, string clanFaction, string clanSigil)
Parameters
SendPSPlayerJoinedToPlayerSessionMessage(ulong)
public Task<bool> SendPSPlayerJoinedToPlayerSessionMessage(ulong inviterAccountId)
Parameters
inviterAccountId
ulong
Returns
SendPartyMessage(string)
public void SendPartyMessage(string message)
Parameters
message
string
SendWhisper(string, string)
public void SendWhisper(string playerName, string message)
Parameters
SetClanInformationText(string)
public void SetClanInformationText(string informationText)
Parameters
informationText
string
SetLoadedModules(string[])
public void SetLoadedModules(string[] moduleIDs)
Parameters
moduleIDs
string[]
Test_AddChatRoomUser(string)
public void Test_AddChatRoomUser(string name)
Parameters
name
string
Test_CreateChatRoom(string)
public void Test_CreateChatRoom(string name)
Parameters
name
string
Test_DeleteChatRoom(Guid)
public void Test_DeleteChatRoom(Guid id)
Parameters
id
Guid
Test_ListChatRoomIds()
public IEnumerable<string> Test_ListChatRoomIds()
Returns
Test_RemoveChatRoomUser(string)
public void Test_RemoveChatRoomUser(string name)
Parameters
name
string
ToggleUseClanSigil(bool)
public void ToggleUseClanSigil(bool isUsed)
Parameters
isUsed
bool
UpdateCharacter(BodyProperties, bool)
public void UpdateCharacter(BodyProperties bodyProperties, bool isFemale)
Parameters
bodyProperties
BodyPropertiesisFemale
bool
UpdateCustomGameData(string, string, int)
public void UpdateCustomGameData(string newGameType, string newMap, int newCount)
Parameters
UpdateShownBadgeId(string)
public Task<bool> UpdateShownBadgeId(string shownBadgeId)
Parameters
shownBadgeId
string
Returns
UpdateUsedCosmeticItems(Dictionary<string, List<(string cosmeticId, bool isEquipped)>>)
public Task<bool> UpdateUsedCosmeticItems(Dictionary<string, List<(string cosmeticId, bool isEquipped)>> usedCosmetics)
Parameters
usedCosmetics
Dictionary<string, List<(string cosmeticId, bool isEquipped)>>
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).