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

Inherits TaleWorlds.Library.ViewModel.

Inherited by SandBox.ViewModelCollection.SPOrderOfBattleVM.

Public Member Functions

 OrderOfBattleVM ()
 
override void RefreshValues ()
 Used for updating localized texts.
 
override void OnFinalize ()
 
void Tick ()
 
void Initialize (Mission mission, Camera missionCamera, Action< int > selectFormationAtIndex, Action< int > deselectFormationAtIndex, Action clearFormationSelection, Action onAutoDeploy, Action onBeginMission, Dictionary< int, Agent > formationIndicesAndSergeants)
 
void OnAllFormationsAssignedSergeants (Dictionary< int, Agent > preAssignedCommanders)
 
void ExecuteAcceptHeroes ()
 
void ExecuteSelectAllHeroes ()
 
void ExecuteClearHeroSelection ()
 
void OnDeploymentFinalized (bool playerDeployed)
 
void SelectFormationItemAtIndex (int index)
 
void FocusFormationItemAtIndex (int index)
 
void DeselectAllFormations ()
 
void OnUnitDeployed ()
 
bool OnEscape ()
 
void ExecuteAutoDeploy ()
 
void ExecuteBeginMission ()
 
- 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

virtual void LoadConfiguration ()
 
virtual void SaveConfiguration ()
 
virtual List< TooltipPropertyGetAgentTooltip (Agent agent)
 
void AssignCommander (Agent agent, OrderOfBattleFormationItemVM formationItem)
 
void ClearFormationItem (OrderOfBattleFormationItemVM formationItem)
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 

Protected Attributes

List< OrderOfBattleFormationItemVM_allFormations
 
readonly List< OrderOfBattleHeroItemVM_allHeroes
 

Properties

bool IsOrderPreconfigured [get, protected set]
 
List<(int, List< int >)> CurrentConfiguration [get]
 
int TotalFormationCount [get]
 
bool IsEnabled [get, set]
 
bool IsPlayerGeneral [get, set]
 
bool IsPoolAcceptingCommander [get, set]
 
bool IsPoolAcceptingHeroTroops [get, set]
 
bool CanStartMission [get, set]
 
string BeginMissionText [get, set]
 
bool AreCameraControlsEnabled [get, set]
 
string AutoDeployText [get, set]
 
MBBindingList< OrderOfBattleFormationItemVMFormationsFirstHalf [get, set]
 
bool HasSelectedHeroes [get, set]
 
MBBindingList< OrderOfBattleFormationItemVMFormationsSecondHalf [get, set]
 
MBBindingList< OrderOfBattleHeroItemVMUnassignedHeroes [get, set]
 
int SelectedHeroCount [get, set]
 
HintViewModel ClearSelectionHint [get, set]
 
HintViewModel SelectAllHint [get, set]
 
HintViewModel MissingFormationsHint [get, set]
 
OrderOfBattleHeroItemVM LastSelectedHeroItem [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
 
- 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

◆ OrderOfBattleVM()

TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OrderOfBattleVM ( )

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OnFinalize()

override void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ Tick()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.Tick ( )

◆ Initialize()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.Initialize ( Mission  mission,
Camera  missionCamera,
Action< int >  selectFormationAtIndex,
Action< int >  deselectFormationAtIndex,
Action  clearFormationSelection,
Action  onAutoDeploy,
Action  onBeginMission,
Dictionary< int, Agent formationIndicesAndSergeants 
)

◆ LoadConfiguration()

virtual void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.LoadConfiguration ( )
protectedvirtual

◆ SaveConfiguration()

virtual void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.SaveConfiguration ( )
protectedvirtual

◆ GetAgentTooltip()

virtual List< TooltipProperty > TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.GetAgentTooltip ( Agent  agent)
protectedvirtual

◆ OnAllFormationsAssignedSergeants()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OnAllFormationsAssignedSergeants ( Dictionary< int, Agent preAssignedCommanders)

◆ AssignCommander()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.AssignCommander ( Agent  agent,
OrderOfBattleFormationItemVM  formationItem 
)
protected

◆ ExecuteAcceptHeroes()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteAcceptHeroes ( )

◆ ExecuteSelectAllHeroes()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteSelectAllHeroes ( )

◆ ExecuteClearHeroSelection()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteClearHeroSelection ( )

◆ OnDeploymentFinalized()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OnDeploymentFinalized ( bool  playerDeployed)

◆ SelectFormationItemAtIndex()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.SelectFormationItemAtIndex ( int  index)

◆ FocusFormationItemAtIndex()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.FocusFormationItemAtIndex ( int  index)

◆ DeselectAllFormations()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.DeselectAllFormations ( )

◆ OnUnitDeployed()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OnUnitDeployed ( )

◆ OnEscape()

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.OnEscape ( )

◆ ClearFormationItem()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ClearFormationItem ( OrderOfBattleFormationItemVM  formationItem)
protected

◆ ExecuteAutoDeploy()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteAutoDeploy ( )

◆ ExecuteBeginMission()

void TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteBeginMission ( )

Member Data Documentation

◆ _allFormations

List<OrderOfBattleFormationItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM._allFormations
protected

◆ _allHeroes

readonly List<OrderOfBattleHeroItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM._allHeroes
protected

Property Documentation

◆ IsOrderPreconfigured

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.IsOrderPreconfigured
getprotected set

◆ CurrentConfiguration

List<(int, List<int>)> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.CurrentConfiguration
get

◆ TotalFormationCount

int TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.TotalFormationCount
getprotected

◆ IsEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.IsEnabled
getset

◆ IsPlayerGeneral

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.IsPlayerGeneral
getset

◆ IsPoolAcceptingCommander

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.IsPoolAcceptingCommander
getset

◆ IsPoolAcceptingHeroTroops

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.IsPoolAcceptingHeroTroops
getset

◆ CanStartMission

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.CanStartMission
getset

◆ BeginMissionText

string TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.BeginMissionText
getset

◆ AreCameraControlsEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.AreCameraControlsEnabled
getset

◆ AutoDeployText

string TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.AutoDeployText
getset

◆ FormationsFirstHalf

MBBindingList<OrderOfBattleFormationItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.FormationsFirstHalf
getset

◆ HasSelectedHeroes

bool TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.HasSelectedHeroes
getset

◆ FormationsSecondHalf

MBBindingList<OrderOfBattleFormationItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.FormationsSecondHalf
getset

◆ UnassignedHeroes

MBBindingList<OrderOfBattleHeroItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.UnassignedHeroes
getset

◆ SelectedHeroCount

int TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.SelectedHeroCount
getset

◆ ClearSelectionHint

HintViewModel TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ClearSelectionHint
getset

◆ SelectAllHint

HintViewModel TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.SelectAllHint
getset

◆ MissingFormationsHint

HintViewModel TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.MissingFormationsHint
getset

◆ LastSelectedHeroItem

OrderOfBattleHeroItemVM TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.LastSelectedHeroItem
getset