M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.LobbyState Class Reference

Inherits TaleWorlds.Core.GameState.

Public Member Functions

void InitializeLogic (ILobbyStateHandler lobbyStateHandler)
 
async Task UpdateHasMultiplayerPrivilege ()
 
async Task UpdateHasCrossplayPrivilege ()
 
async Task UpdateHasUserGeneratedContentPrivilege (bool showResolveUI)
 
async Task TryLogin ()
 
async Task TryLogin (string userName, string password, bool forceAntiCheatEnabled=false)
 
void HostGame ()
 
void CreatePremadeGame ()
 
string ShowFeedback (string title, string message)
 
string ShowFeedback (InquiryData inquiryData)
 
void DismissFeedback (string messageId)
 
void OnPause ()
 
void OnResume ()
 
void OnRequestedToSearchBattle ()
 
void OnUpdateFindingGame (MatchmakingWaitTimeStats matchmakingWaitTimeStats, string[] gameTypeInfo=null)
 
void OnRequestedToCancelSearchBattle ()
 
void OnCancelFindingGame ()
 
void OnDisconnected (TextObject feedback)
 
void OnPlayerDataReceived (PlayerData playerData)
 
void OnPendingRejoin ()
 
void OnEnterBattleWithParty (string[] selectedGameTypes)
 
async void OnPartyInvitationReceived (string inviterPlayerName, PlayerId playerId)
 
void OnAdminMessageReceived (string message)
 
void OnPartyInvitationInvalidated ()
 
void OnPlayerInvitedToParty (PlayerId playerId)
 
void OnPlayerRemovedFromParty (PlayerId playerId, PartyRemoveReason reason)
 
void OnPlayersAddedToParty (List<(PlayerId PlayerId, string PlayerName, bool IsPartyLeader)> addedPlayers, List<(PlayerId PlayerId, string PlayerName)> invitedPlayers)
 
void OnGameClientStateChange (LobbyClient.State state)
 
void SetConnectionState (bool isAuthenticated)
 
void OnActivateHome ()
 
void OnActivateCustomServer ()
 
void OnActivateMatchmaking ()
 
void OnActivateProfile ()
 
void OnActivateClan ()
 
void OnClanInvitationReceived (string clanName, string clanTag, bool isCreation)
 
void OnClanInvitationAnswered (PlayerId playerId, ClanCreationAnswer answer)
 
void OnClanCreationSuccessful ()
 
void OnClanCreationFailed ()
 
void OnClanCreationStarted ()
 
void OnClanInfoChanged ()
 
void OnPremadeGameEligibilityStatusReceived (bool isEligible)
 
void OnPremadeGameCreated ()
 
void OnPremadeGameListReceived ()
 
void OnPremadeGameCreationCancelled ()
 
void OnJoinPremadeGameRequested (string clanName, string clanSigilCode, Guid partyId, PlayerId[] challengerPlayerIDs, PlayerId challengerPartyLeaderID, PremadeGameType premadeGameType)
 
void OnJoinPremadeGameRequestSuccessful ()
 
void OnActivateArmory ()
 
void OnActivateOptions ()
 
void OnDeactivateOptions ()
 
void OnCustomGameServerListReceived (AvailableCustomGames customGameServerList)
 
void OnMatchmakerGameOver (int oldExp, int newExp, List< string > badgesEarned, int lootGained, RankBarInfo oldRankBarInfo, RankBarInfo newRankBarInfo)
 
void OnBattleServerLost ()
 
void OnRemovedFromMatchmakerGame (DisconnectType disconnectType)
 
void OnRemovedFromCustomGame (DisconnectType disconnectType)
 
void OnPlayerAssignedPartyLeader (PlayerId partyLeaderId)
 
void OnPlayerSuggestedToParty (PlayerId playerId, string playerName, PlayerId suggestingPlayerId, string suggestingPlayerName)
 
void OnJoinCustomGameFailureResponse (CustomGameJoinResponse response)
 
void OnServerStatusReceived (ServerStatus serverStatus)
 
void OnFriendListReceived (FriendInfo[] friends)
 
void OnRecentPlayerStatusesReceived (FriendInfo[] friends)
 
void OnBattleServerInformationReceived (BattleServerInformationForClient battleServerInformation)
 
void OnRejoinBattleRequestAnswered (bool isSuccessful)
 
void OnNotificationsReceived (LobbyNotification[] notifications)
 
async Task< bool > OnInviteToPlatformSession (PlayerId playerId)
 
async void OnPlatformRequestedMultiplayer ()
 
async void OnSessionInvitationAccepted (SessionInvitationType targetGameType)
 
List< CustomServerActionGetCustomActionsForServer (GameServerEntry gameServerEntry)
 
void RegisterForCustomServerAction (Func< GameServerEntry, List< CustomServerAction > > action)
 
void UnregisterForCustomServerAction (Func< GameServerEntry, List< CustomServerAction > > action)
 
- Public Member Functions inherited from TaleWorlds.Core.GameState
bool RegisterListener (IGameStateListener listener)
 
bool UnregisterListener (IGameStateListener listener)
 
GetListenerOfType< T > ()
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Public Attributes

Action< bool > OnMultiplayerPrivilegeUpdated
 
Action< bool > OnCrossplayPrivilegeUpdated
 
Action< bool > OnUserGeneratedContentPrivilegeUpdated
 
- Public Attributes inherited from TaleWorlds.Core.GameState
int Level
 

Protected Member Functions

override async void OnInitialize ()
 
override void OnFinalize ()
 
override void OnTick (float dt)
 
- Protected Member Functions inherited from TaleWorlds.Core.GameState
 GameState ()
 
virtual void OnInitialize ()
 
virtual void OnFinalize ()
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Properties

override bool IsMenuState [get]
 
override bool IsMusicMenuState [get]
 
bool IsLoggingIn [get]
 
ILobbyStateHandler Handler [get, set]
 
LobbyClient LobbyClient [get]
 
NewsManager NewsManager [get]
 
bool? HasMultiplayerPrivilege [get]
 
bool? HasCrossplayPrivilege [get]
 
bool? HasUserGeneratedContentPrivilege [get]
 
- Properties inherited from TaleWorlds.Core.GameState
GameState Predecessor [get]
 
bool IsActive [get]
 
IReadOnlyCollection< IGameStateListenerListeners [get]
 
GameStateManager GameStateManager [get]
 
virtual bool IsMusicMenuState [get]
 Whether or not if this state should be treated as a menu state for the music manager. More...
 
virtual bool IsMenuState [get]
 Whether or not if this state is a screen/menu state for GUI. More...
 
virtual bool IsMission [get]
 
bool Activated [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Static Public Attributes inherited from TaleWorlds.Core.GameState
static int NumberOfListenerActivations
 

Member Function Documentation

◆ InitializeLogic()

void TaleWorlds.MountAndBlade.LobbyState.InitializeLogic ( ILobbyStateHandler  lobbyStateHandler)

◆ OnInitialize()

override async void TaleWorlds.MountAndBlade.LobbyState.OnInitialize ( )
protectedvirtual

Reimplemented from TaleWorlds.Core.GameState.

◆ OnFinalize()

override void TaleWorlds.MountAndBlade.LobbyState.OnFinalize ( )
protectedvirtual

Reimplemented from TaleWorlds.Core.GameState.

◆ OnTick()

override void TaleWorlds.MountAndBlade.LobbyState.OnTick ( float  dt)
protectedvirtual

Reimplemented from TaleWorlds.Core.GameState.

◆ UpdateHasMultiplayerPrivilege()

async Task TaleWorlds.MountAndBlade.LobbyState.UpdateHasMultiplayerPrivilege ( )

◆ UpdateHasCrossplayPrivilege()

async Task TaleWorlds.MountAndBlade.LobbyState.UpdateHasCrossplayPrivilege ( )

◆ UpdateHasUserGeneratedContentPrivilege()

async Task TaleWorlds.MountAndBlade.LobbyState.UpdateHasUserGeneratedContentPrivilege ( bool  showResolveUI)

◆ TryLogin() [1/2]

async Task TaleWorlds.MountAndBlade.LobbyState.TryLogin ( )

◆ TryLogin() [2/2]

async Task TaleWorlds.MountAndBlade.LobbyState.TryLogin ( string  userName,
string  password,
bool  forceAntiCheatEnabled = false 
)

◆ HostGame()

void TaleWorlds.MountAndBlade.LobbyState.HostGame ( )

◆ CreatePremadeGame()

void TaleWorlds.MountAndBlade.LobbyState.CreatePremadeGame ( )

◆ ShowFeedback() [1/2]

string TaleWorlds.MountAndBlade.LobbyState.ShowFeedback ( string  title,
string  message 
)

◆ ShowFeedback() [2/2]

string TaleWorlds.MountAndBlade.LobbyState.ShowFeedback ( InquiryData  inquiryData)

◆ DismissFeedback()

void TaleWorlds.MountAndBlade.LobbyState.DismissFeedback ( string  messageId)

◆ OnPause()

void TaleWorlds.MountAndBlade.LobbyState.OnPause ( )

◆ OnResume()

void TaleWorlds.MountAndBlade.LobbyState.OnResume ( )

◆ OnRequestedToSearchBattle()

void TaleWorlds.MountAndBlade.LobbyState.OnRequestedToSearchBattle ( )

◆ OnUpdateFindingGame()

void TaleWorlds.MountAndBlade.LobbyState.OnUpdateFindingGame ( MatchmakingWaitTimeStats  matchmakingWaitTimeStats,
string[]  gameTypeInfo = null 
)

◆ OnRequestedToCancelSearchBattle()

void TaleWorlds.MountAndBlade.LobbyState.OnRequestedToCancelSearchBattle ( )

◆ OnCancelFindingGame()

void TaleWorlds.MountAndBlade.LobbyState.OnCancelFindingGame ( )

◆ OnDisconnected()

void TaleWorlds.MountAndBlade.LobbyState.OnDisconnected ( TextObject  feedback)

◆ OnPlayerDataReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayerDataReceived ( PlayerData  playerData)

◆ OnPendingRejoin()

void TaleWorlds.MountAndBlade.LobbyState.OnPendingRejoin ( )

◆ OnEnterBattleWithParty()

void TaleWorlds.MountAndBlade.LobbyState.OnEnterBattleWithParty ( string[]  selectedGameTypes)

◆ OnPartyInvitationReceived()

async void TaleWorlds.MountAndBlade.LobbyState.OnPartyInvitationReceived ( string  inviterPlayerName,
PlayerId  playerId 
)

◆ OnAdminMessageReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnAdminMessageReceived ( string  message)

◆ OnPartyInvitationInvalidated()

void TaleWorlds.MountAndBlade.LobbyState.OnPartyInvitationInvalidated ( )

◆ OnPlayerInvitedToParty()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayerInvitedToParty ( PlayerId  playerId)

◆ OnPlayerRemovedFromParty()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayerRemovedFromParty ( PlayerId  playerId,
PartyRemoveReason  reason 
)

◆ OnPlayersAddedToParty()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayersAddedToParty ( List<(PlayerId PlayerId, string PlayerName, bool IsPartyLeader)>  addedPlayers,
List<(PlayerId PlayerId, string PlayerName)>  invitedPlayers 
)

◆ OnGameClientStateChange()

void TaleWorlds.MountAndBlade.LobbyState.OnGameClientStateChange ( LobbyClient.State  state)

◆ SetConnectionState()

void TaleWorlds.MountAndBlade.LobbyState.SetConnectionState ( bool  isAuthenticated)

◆ OnActivateHome()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateHome ( )

◆ OnActivateCustomServer()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateCustomServer ( )

◆ OnActivateMatchmaking()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateMatchmaking ( )

◆ OnActivateProfile()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateProfile ( )

◆ OnActivateClan()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateClan ( )

◆ OnClanInvitationReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnClanInvitationReceived ( string  clanName,
string  clanTag,
bool  isCreation 
)

◆ OnClanInvitationAnswered()

void TaleWorlds.MountAndBlade.LobbyState.OnClanInvitationAnswered ( PlayerId  playerId,
ClanCreationAnswer  answer 
)

◆ OnClanCreationSuccessful()

void TaleWorlds.MountAndBlade.LobbyState.OnClanCreationSuccessful ( )

◆ OnClanCreationFailed()

void TaleWorlds.MountAndBlade.LobbyState.OnClanCreationFailed ( )

◆ OnClanCreationStarted()

void TaleWorlds.MountAndBlade.LobbyState.OnClanCreationStarted ( )

◆ OnClanInfoChanged()

void TaleWorlds.MountAndBlade.LobbyState.OnClanInfoChanged ( )

◆ OnPremadeGameEligibilityStatusReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnPremadeGameEligibilityStatusReceived ( bool  isEligible)

◆ OnPremadeGameCreated()

void TaleWorlds.MountAndBlade.LobbyState.OnPremadeGameCreated ( )

◆ OnPremadeGameListReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnPremadeGameListReceived ( )

◆ OnPremadeGameCreationCancelled()

void TaleWorlds.MountAndBlade.LobbyState.OnPremadeGameCreationCancelled ( )

◆ OnJoinPremadeGameRequested()

void TaleWorlds.MountAndBlade.LobbyState.OnJoinPremadeGameRequested ( string  clanName,
string  clanSigilCode,
Guid  partyId,
PlayerId[]  challengerPlayerIDs,
PlayerId  challengerPartyLeaderID,
PremadeGameType  premadeGameType 
)

◆ OnJoinPremadeGameRequestSuccessful()

void TaleWorlds.MountAndBlade.LobbyState.OnJoinPremadeGameRequestSuccessful ( )

◆ OnActivateArmory()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateArmory ( )

◆ OnActivateOptions()

void TaleWorlds.MountAndBlade.LobbyState.OnActivateOptions ( )

◆ OnDeactivateOptions()

void TaleWorlds.MountAndBlade.LobbyState.OnDeactivateOptions ( )

◆ OnCustomGameServerListReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnCustomGameServerListReceived ( AvailableCustomGames  customGameServerList)

◆ OnMatchmakerGameOver()

void TaleWorlds.MountAndBlade.LobbyState.OnMatchmakerGameOver ( int  oldExp,
int  newExp,
List< string >  badgesEarned,
int  lootGained,
RankBarInfo  oldRankBarInfo,
RankBarInfo  newRankBarInfo 
)

◆ OnBattleServerLost()

void TaleWorlds.MountAndBlade.LobbyState.OnBattleServerLost ( )

◆ OnRemovedFromMatchmakerGame()

void TaleWorlds.MountAndBlade.LobbyState.OnRemovedFromMatchmakerGame ( DisconnectType  disconnectType)

◆ OnRemovedFromCustomGame()

void TaleWorlds.MountAndBlade.LobbyState.OnRemovedFromCustomGame ( DisconnectType  disconnectType)

◆ OnPlayerAssignedPartyLeader()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayerAssignedPartyLeader ( PlayerId  partyLeaderId)

◆ OnPlayerSuggestedToParty()

void TaleWorlds.MountAndBlade.LobbyState.OnPlayerSuggestedToParty ( PlayerId  playerId,
string  playerName,
PlayerId  suggestingPlayerId,
string  suggestingPlayerName 
)

◆ OnJoinCustomGameFailureResponse()

void TaleWorlds.MountAndBlade.LobbyState.OnJoinCustomGameFailureResponse ( CustomGameJoinResponse  response)

◆ OnServerStatusReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnServerStatusReceived ( ServerStatus  serverStatus)

◆ OnFriendListReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnFriendListReceived ( FriendInfo[]  friends)

◆ OnRecentPlayerStatusesReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnRecentPlayerStatusesReceived ( FriendInfo[]  friends)

◆ OnBattleServerInformationReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnBattleServerInformationReceived ( BattleServerInformationForClient  battleServerInformation)

◆ OnRejoinBattleRequestAnswered()

void TaleWorlds.MountAndBlade.LobbyState.OnRejoinBattleRequestAnswered ( bool  isSuccessful)

◆ OnNotificationsReceived()

void TaleWorlds.MountAndBlade.LobbyState.OnNotificationsReceived ( LobbyNotification[]  notifications)

◆ OnInviteToPlatformSession()

async Task< bool > TaleWorlds.MountAndBlade.LobbyState.OnInviteToPlatformSession ( PlayerId  playerId)

◆ OnPlatformRequestedMultiplayer()

async void TaleWorlds.MountAndBlade.LobbyState.OnPlatformRequestedMultiplayer ( )

◆ OnSessionInvitationAccepted()

async void TaleWorlds.MountAndBlade.LobbyState.OnSessionInvitationAccepted ( SessionInvitationType  targetGameType)

◆ GetCustomActionsForServer()

List< CustomServerAction > TaleWorlds.MountAndBlade.LobbyState.GetCustomActionsForServer ( GameServerEntry  gameServerEntry)

◆ RegisterForCustomServerAction()

void TaleWorlds.MountAndBlade.LobbyState.RegisterForCustomServerAction ( Func< GameServerEntry, List< CustomServerAction > >  action)

◆ UnregisterForCustomServerAction()

void TaleWorlds.MountAndBlade.LobbyState.UnregisterForCustomServerAction ( Func< GameServerEntry, List< CustomServerAction > >  action)

Member Data Documentation

◆ OnMultiplayerPrivilegeUpdated

Action<bool> TaleWorlds.MountAndBlade.LobbyState.OnMultiplayerPrivilegeUpdated

◆ OnCrossplayPrivilegeUpdated

Action<bool> TaleWorlds.MountAndBlade.LobbyState.OnCrossplayPrivilegeUpdated

◆ OnUserGeneratedContentPrivilegeUpdated

Action<bool> TaleWorlds.MountAndBlade.LobbyState.OnUserGeneratedContentPrivilegeUpdated

Property Documentation

◆ IsMenuState

override bool TaleWorlds.MountAndBlade.LobbyState.IsMenuState
get

◆ IsMusicMenuState

override bool TaleWorlds.MountAndBlade.LobbyState.IsMusicMenuState
get

◆ IsLoggingIn

bool TaleWorlds.MountAndBlade.LobbyState.IsLoggingIn
get

◆ Handler

ILobbyStateHandler TaleWorlds.MountAndBlade.LobbyState.Handler
getset

◆ LobbyClient

LobbyClient TaleWorlds.MountAndBlade.LobbyState.LobbyClient
get

◆ NewsManager

NewsManager TaleWorlds.MountAndBlade.LobbyState.NewsManager
get

◆ HasMultiplayerPrivilege

bool? TaleWorlds.MountAndBlade.LobbyState.HasMultiplayerPrivilege
get

◆ HasCrossplayPrivilege

bool? TaleWorlds.MountAndBlade.LobbyState.HasCrossplayPrivilege
get

◆ HasUserGeneratedContentPrivilege

bool? TaleWorlds.MountAndBlade.LobbyState.HasUserGeneratedContentPrivilege
get