M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM Class Reference

Inherits TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomDiplomacyItemVM.

Public Member Functions

 KingdomWarItemVM (StanceLink war, Action< KingdomWarItemVM > onSelect, Action< KingdomWarItemVM > onAction)
 
override void RefreshValues ()
 Used for updating localized texts.
 
- 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)
 

Protected Member Functions

override void OnSelect ()
 
override void UpdateDiplomacyProperties ()
 
override void ExecuteAction ()
 
- Protected Member Functions inherited from TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomDiplomacyItemVM
 KingdomDiplomacyItemVM (IFaction faction1, IFaction faction2)
 
virtual void UpdateDiplomacyProperties ()
 
abstract void ExecuteAction ()
 
virtual void OnSelect ()
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 

Properties

string WarName [get, set]
 
string NumberOfDaysSinceWarBegan [get, set]
 
bool IsBehaviorSelectionEnabled [get, set]
 
int Score [get, set]
 
int CasualtiesOfFaction1 [get, set]
 
int CasualtiesOfFaction2 [get, set]
 
MBBindingList< KingdomWarLogItemVMWarLog [get, set]
 
- Properties inherited from TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomDiplomacyItemVM
MBBindingList< KingdomDiplomacyFactionItemVMFaction1OwnedClans [get, set]
 
MBBindingList< KingdomDiplomacyFactionItemVMFaction2OwnedClans [get, set]
 
MBBindingList< KingdomDiplomacyFactionItemVMFaction2OtherWars [get, set]
 
MBBindingList< KingdomWarComparableStatVMStats [get, set]
 
ImageIdentifierVM Faction1Visual [get, set]
 
ImageIdentifierVM Faction2Visual [get, set]
 
string Faction1Name [get, set]
 
string Faction2Name [get, set]
 
string Faction1TributeText [get, set]
 
string Faction2TributeText [get, set]
 
HintViewModel Faction1TributeHint [get, set]
 
HintViewModel Faction2TributeHint [get, set]
 
bool IsFaction2OtherWarsVisible [get, set]
 
HeroVM Faction1Leader [get, set]
 
HeroVM Faction2Leader [get, set]
 
- Properties inherited from TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.KingdomItemVM
bool IsNew [get, set]
 
bool IsSelected [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 ()
 
- Public Attributes inherited from TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomDiplomacyItemVM
readonly IFaction Faction1
 
readonly IFaction Faction2
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 
- Protected Attributes inherited from TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomDiplomacyItemVM
readonly string _faction1Color
 
readonly string _faction2Color
 
readonly IFaction _playerKingdom
 
List< CampaignSystem.Settlements.Settlement_faction1Towns
 
List< CampaignSystem.Settlements.Settlement_faction2Towns
 
List< CampaignSystem.Settlements.Settlement_faction1Castles
 
List< CampaignSystem.Settlements.Settlement_faction2Castles
 
- 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

◆ KingdomWarItemVM()

TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.KingdomWarItemVM ( StanceLink  war,
Action< KingdomWarItemVM onSelect,
Action< KingdomWarItemVM onAction 
)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OnSelect()

override void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.OnSelect ( )
protectedvirtual

◆ UpdateDiplomacyProperties()

override void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.UpdateDiplomacyProperties ( )
protectedvirtual

◆ ExecuteAction()

override void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.ExecuteAction ( )
protectedvirtual

Property Documentation

◆ WarName

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.WarName
getset

◆ NumberOfDaysSinceWarBegan

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.NumberOfDaysSinceWarBegan
getset

◆ IsBehaviorSelectionEnabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.IsBehaviorSelectionEnabled
getset

◆ Score

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.Score
getset

◆ CasualtiesOfFaction1

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.CasualtiesOfFaction1
getset

◆ CasualtiesOfFaction2

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.CasualtiesOfFaction2
getset

◆ WarLog

MBBindingList<KingdomWarLogItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Diplomacy.KingdomWarItemVM.WarLog
getset