M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.ViewModelCollection.SaveLoad.SavedGameVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

 SavedGameVM (SaveGameFileInfo save, bool isSaving, Action< SavedGameVM > onDelete, Action< SavedGameVM > onSelection, Action onCancelLoadSave, Action onDone, bool isCorruptedSave=false, bool isDiscrepancyDetectedForSave=false, bool isIronman=false)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void ExecuteSaveLoad ()
 
void ExecuteUpdate ()
 
void ExecuteDelete ()
 
void ExecuteSelection ()
 
- 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

SaveGameFileInfo Save [get]
 
bool RequiresInquiryOnLoad [get]
 
bool IsModuleDiscrepancyDetected [get]
 Means the saved game's modules are not the same as the currently loaded modules. Does not check versions of the modules.
 
MBBindingList< SavedGamePropertyVMSavedGameProperties [get, set]
 
MBBindingList< SavedGameModuleInfoVMLoadedModulesInSave [get, set]
 
string SaveVersionAsString [get, set]
 
string DeleteText [get, set]
 
bool IsSelected [get, set]
 
bool IsCorrupted [get, set]
 
string BannerTextCode [get, set]
 
string SaveLoadText [get, set]
 
string OverrideSaveText [get, set]
 
string UpdateSaveText [get, set]
 
string ModulesText [get, set]
 
string CorruptedSaveText [get, set]
 
string NameText [get, set]
 
string GameTimeText [get, set]
 
string CharacterNameText [get, set]
 
string MainHeroVisualCode [get, set]
 
CharacterViewModel CharacterVisual [get, set]
 
ImageIdentifierVM ClanBanner [get, set]
 
string RealTimeText1 [get, set]
 
string RealTimeText2 [get, set]
 
string LevelText [get, set]
 
HintViewModel DateTimeHint [get, set]
 
HintViewModel UpdateButtonHint [get, set]
 
HintViewModel DisabledReasonHint [get, set]
 
bool IsFilteredOut [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
 

Constructor & Destructor Documentation

◆ SavedGameVM()

SandBox.ViewModelCollection.SaveLoad.SavedGameVM.SavedGameVM ( SaveGameFileInfo  save,
bool  isSaving,
Action< SavedGameVM onDelete,
Action< SavedGameVM onSelection,
Action  onCancelLoadSave,
Action  onDone,
bool  isCorruptedSave = false,
bool  isDiscrepancyDetectedForSave = false,
bool  isIronman = false 
)

Member Function Documentation

◆ RefreshValues()

override void SandBox.ViewModelCollection.SaveLoad.SavedGameVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ ExecuteSaveLoad()

void SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ExecuteSaveLoad ( )

◆ ExecuteUpdate()

void SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ExecuteUpdate ( )

◆ ExecuteDelete()

void SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ExecuteDelete ( )

◆ ExecuteSelection()

void SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ExecuteSelection ( )

Property Documentation

◆ Save

SaveGameFileInfo SandBox.ViewModelCollection.SaveLoad.SavedGameVM.Save
get

◆ RequiresInquiryOnLoad

bool SandBox.ViewModelCollection.SaveLoad.SavedGameVM.RequiresInquiryOnLoad
get

◆ IsModuleDiscrepancyDetected

bool SandBox.ViewModelCollection.SaveLoad.SavedGameVM.IsModuleDiscrepancyDetected
get

◆ SavedGameProperties

MBBindingList<SavedGamePropertyVM> SandBox.ViewModelCollection.SaveLoad.SavedGameVM.SavedGameProperties
getset

◆ LoadedModulesInSave

MBBindingList<SavedGameModuleInfoVM> SandBox.ViewModelCollection.SaveLoad.SavedGameVM.LoadedModulesInSave
getset

◆ SaveVersionAsString

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.SaveVersionAsString
getset

◆ DeleteText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.DeleteText
getset

◆ IsSelected

bool SandBox.ViewModelCollection.SaveLoad.SavedGameVM.IsSelected
getset

◆ IsCorrupted

bool SandBox.ViewModelCollection.SaveLoad.SavedGameVM.IsCorrupted
getset

◆ BannerTextCode

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.BannerTextCode
getset

◆ SaveLoadText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.SaveLoadText
getset

◆ OverrideSaveText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.OverrideSaveText
getset

◆ UpdateSaveText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.UpdateSaveText
getset

◆ ModulesText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ModulesText
getset

◆ CorruptedSaveText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.CorruptedSaveText
getset

◆ NameText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.NameText
getset

◆ GameTimeText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.GameTimeText
getset

◆ CharacterNameText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.CharacterNameText
getset

◆ MainHeroVisualCode

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.MainHeroVisualCode
getset

◆ CharacterVisual

CharacterViewModel SandBox.ViewModelCollection.SaveLoad.SavedGameVM.CharacterVisual
getset

◆ ClanBanner

ImageIdentifierVM SandBox.ViewModelCollection.SaveLoad.SavedGameVM.ClanBanner
getset

◆ RealTimeText1

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.RealTimeText1
getset

◆ RealTimeText2

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.RealTimeText2
getset

◆ LevelText

string SandBox.ViewModelCollection.SaveLoad.SavedGameVM.LevelText
getset

◆ DateTimeHint

HintViewModel SandBox.ViewModelCollection.SaveLoad.SavedGameVM.DateTimeHint
getset

◆ UpdateButtonHint

HintViewModel SandBox.ViewModelCollection.SaveLoad.SavedGameVM.UpdateButtonHint
getset

◆ DisabledReasonHint

HintViewModel SandBox.ViewModelCollection.SaveLoad.SavedGameVM.DisabledReasonHint
getset

◆ IsFilteredOut

bool SandBox.ViewModelCollection.SaveLoad.SavedGameVM.IsFilteredOut
getset