M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Types

enum  MatchmakingSubPages {
  QuickPlay = 0 ,
  CustomGame ,
  CustomGameList ,
  PremadeMatchList ,
  Default
}
 

Public Member Functions

 MPMatchmakingVM (LobbyState lobbyState, Action< MPLobbyVM.LobbyPage > onChangePageRequest, Action< string, bool > onMatchSelectionChanged, Action< bool > onGameFindRequestStateChanged)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void TrySetMatchmakingSubPage (MatchmakingSubPages newPage)
 
void RefreshPlayerData (PlayerData playerData)
 
void OnFindingGame ()
 
void OnCancelFindingGame ()
 
override void OnFinalize ()
 
bool GetSelectedGameTypesInfo (out string[] gameTypes)
 
void RefreshWaitingTime ()
 
void ExecuteAutoFindGame ()
 
void RefreshSubPageStates ()
 
void OnPremadeGameEligibilityStatusReceived (bool isEligible)
 
void OnSupportedFeaturesRefreshed (SupportedFeatures supportedFeatures)
 
- Public Member Functions inherited from TaleWorlds.Library.ViewModel
void OnPropertyChanged ([CallerMemberName] string propertyName=null)
 Method for notifying binded views about the changes in a property. Uses reflection to get the value of the property. If reflection is not needed or updated value of the property is already known, use OnPropertyChangedWithValue() instead.
 
void OnPropertyChangedWithValue< T > (T value, [CallerMemberName]string propertyName=null)
 Faster method for notifying binded views about the changes in a property. To avoid reflection, caller can pass changed value to this method. If caller does not have access rights to the value, use OnPropertyChanged() instead.
 
void OnPropertyChangedWithValue (bool value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (int value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (float value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (uint value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Color value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (double value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Vec2 value, [CallerMemberName] string propertyName=null)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetViewModelAtPath (BindingPath path)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
object GetPropertyValue (string name)
 
Type GetPropertyType (string name)
 
void SetPropertyValue (string name, object value)
 
virtual void OnFinalize ()
 
void ExecuteCommand (string commandName, object[] parameters)
 
virtual void RefreshValues ()
 Used for updating localized texts.
 
object GetViewModelAtPath (BindingPath path)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetPropertyValue (string name)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
void SetPropertyValue (string name, object value)
 
void ExecuteCommand (string commandName, object[] parameters)
 

Properties

MatchmakingSubPages CurrentSubPage [get]
 
bool IsEnabled [get, set]
 
bool HasUnofficialModulesLoaded [get, set]
 
bool IsCustomGameStageFindEnabled [get, set]
 
bool IsRankedGamesEnabled [get, set]
 
bool IsCustomGamesEnabled [get, set]
 
bool IsQuickplayGamesEnabled [get, set]
 
bool IsCustomServerListEnabled [get, set]
 
bool IsPremadeGamesEnabled [get, set]
 
bool IsCustomServerFeatureSupported [get, set]
 
bool IsClansFeatureSupported [get, set]
 
MPCustomGameVM CustomServer [get, set]
 
MPCustomGameVM PremadeMatches [get, set]
 
bool IsRanked [get, set]
 
MBBindingList< MPMatchmakingItemVMRankedGameTypes [get, set]
 
MBBindingList< MPMatchmakingItemVMQuickplayGameTypes [get, set]
 
MBBindingList< MPMatchmakingItemVMCustomGameTypes [get, set]
 
SelectorVM< MPMatchmakingRegionSelectorItemVMRegions [get, set]
 
MPMatchmakingSelectionInfoVM SelectionInfo [get, set]
 
bool IsMatchFindPossible [get, set]
 
bool IsFindingMatch [get, set]
 
string PlayText [get, set]
 
string QuickPlayText [get, set]
 
string CustomGameText [get, set]
 
string CustomServerListText [get, set]
 
string AutoFindText [get, set]
 
string MatchFindNotPossibleText [get, set]
 
string RankedText [get, set]
 
string CasualText [get, set]
 
string SelectionInfoText [get, set]
 
int SelectedSubPageIndex [get, set]
 
string TeamMatchesText [get, set]
 
HintViewModel RegionsHint [get, set]
 
- Properties inherited from TaleWorlds.Library.ViewModel
PropertyChangedEventHandler PropertyChanged
 
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Additional Inherited Members

- Static Public Member Functions inherited from TaleWorlds.Library.ViewModel
static void CollectPropertiesAndMethods ()
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 
- Events inherited from TaleWorlds.Library.IViewModel
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Member Enumeration Documentation

◆ MatchmakingSubPages

Enumerator
QuickPlay 
CustomGame 
CustomGameList 
PremadeMatchList 
Default 

Constructor & Destructor Documentation

◆ MPMatchmakingVM()

TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.MPMatchmakingVM ( LobbyState  lobbyState,
Action< MPLobbyVM::LobbyPage onChangePageRequest,
Action< string, bool >  onMatchSelectionChanged,
Action< bool >  onGameFindRequestStateChanged 
)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ TrySetMatchmakingSubPage()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.TrySetMatchmakingSubPage ( MatchmakingSubPages  newPage)

◆ RefreshPlayerData()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RefreshPlayerData ( PlayerData  playerData)

◆ OnFindingGame()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.OnFindingGame ( )

◆ OnCancelFindingGame()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.OnCancelFindingGame ( )

◆ OnFinalize()

override void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ GetSelectedGameTypesInfo()

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.GetSelectedGameTypesInfo ( out string[]  gameTypes)

◆ RefreshWaitingTime()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RefreshWaitingTime ( )

◆ ExecuteAutoFindGame()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.ExecuteAutoFindGame ( )

◆ RefreshSubPageStates()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RefreshSubPageStates ( )

◆ OnPremadeGameEligibilityStatusReceived()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.OnPremadeGameEligibilityStatusReceived ( bool  isEligible)

◆ OnSupportedFeaturesRefreshed()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.OnSupportedFeaturesRefreshed ( SupportedFeatures  supportedFeatures)

Property Documentation

◆ CurrentSubPage

MatchmakingSubPages TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CurrentSubPage
get

◆ IsEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsEnabled
getset

◆ HasUnofficialModulesLoaded

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.HasUnofficialModulesLoaded
getset

◆ IsCustomGameStageFindEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsCustomGameStageFindEnabled
getset

◆ IsRankedGamesEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsRankedGamesEnabled
getset

◆ IsCustomGamesEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsCustomGamesEnabled
getset

◆ IsQuickplayGamesEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsQuickplayGamesEnabled
getset

◆ IsCustomServerListEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsCustomServerListEnabled
getset

◆ IsPremadeGamesEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsPremadeGamesEnabled
getset

◆ IsCustomServerFeatureSupported

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsCustomServerFeatureSupported
getset

◆ IsClansFeatureSupported

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsClansFeatureSupported
getset

◆ CustomServer

MPCustomGameVM TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CustomServer
getset

◆ PremadeMatches

MPCustomGameVM TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.PremadeMatches
getset

◆ IsRanked

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsRanked
getset

◆ RankedGameTypes

MBBindingList<MPMatchmakingItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RankedGameTypes
getset

◆ QuickplayGameTypes

MBBindingList<MPMatchmakingItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.QuickplayGameTypes
getset

◆ CustomGameTypes

MBBindingList<MPMatchmakingItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CustomGameTypes
getset

◆ Regions

SelectorVM<MPMatchmakingRegionSelectorItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.Regions
getset

◆ SelectionInfo

MPMatchmakingSelectionInfoVM TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.SelectionInfo
getset

◆ IsMatchFindPossible

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsMatchFindPossible
getset

◆ IsFindingMatch

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.IsFindingMatch
getset

◆ PlayText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.PlayText
getset

◆ QuickPlayText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.QuickPlayText
getset

◆ CustomGameText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CustomGameText
getset

◆ CustomServerListText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CustomServerListText
getset

◆ AutoFindText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.AutoFindText
getset

◆ MatchFindNotPossibleText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.MatchFindNotPossibleText
getset

◆ RankedText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RankedText
getset

◆ CasualText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.CasualText
getset

◆ SelectionInfoText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.SelectionInfoText
getset

◆ SelectedSubPageIndex

int TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.SelectedSubPageIndex
getset

◆ TeamMatchesText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.TeamMatchesText
getset

◆ RegionsHint

HintViewModel TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPMatchmakingVM.RegionsHint
getset