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

Inherits SandBox.ViewModelCollection.Nameplate.NameplateVM.

Public Types

enum  Type {
  Village = 0 ,
  Castle = 1 ,
  Town
}
 
enum  RelationType {
  Neutral = 0 ,
  Ally = 1 ,
  Enemy
}
 
enum  IssueTypes {
  None = 0 ,
  Possible ,
  Active
}
 
enum  MainQuestTypes {
  None = 0 ,
  Possible ,
  Active
}
 

Public Member Functions

 SettlementNameplateVM (Settlement settlement, GameEntity entity, Camera mapCamera, Action< Vec2 > fastMoveCameraToPosition)
 
override void RefreshValues ()
 Used for updating localized texts.
 
override void RefreshDynamicProperties (bool forceUpdate)
 
override void RefreshRelationStatus ()
 
override void RefreshPosition ()
 
override void RefreshTutorialStatus (string newTutorialHighlightElementID)
 
void OnSiegeEventStartedOnSettlement (SiegeEvent siegeEvent)
 
void OnSiegeEventEndedOnSettlement (SiegeEvent siegeEvent)
 
void OnMapEventStartedOnSettlement (MapEvent mapEvent)
 
void OnMapEventEndedOnSettlement ()
 
void OnRebelliousClanFormed (Clan clan)
 
void OnRebelliousClanDisbanded (Clan clan)
 
void CalculatePosition (in Vec3 cameraPosition)
 
void DetermineIsVisibleOnMap (in Vec3 cameraPosition)
 
void DetermineIsInsideWindow ()
 
void RefreshBindValues ()
 
override void OnFinalize ()
 
void ExecuteTrack ()
 
void ExecuteSetCameraPosition ()
 
void ExecuteOpenEncyclopedia ()
 
- Public Member Functions inherited from SandBox.ViewModelCollection.Nameplate.NameplateVM
 NameplateVM ()
 
override void OnFinalize ()
 
virtual void Initialize (GameEntity strategicEntity)
 
virtual void RefreshDynamicProperties (bool forceUpdate)
 
virtual void RefreshPosition ()
 
virtual void RefreshRelationStatus ()
 
virtual void RefreshTutorialStatus (string newTutorialHighlightElementID)
 
- 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

Settlement Settlement [get]
 
SettlementNameplateNotificationsVM SettlementNotifications [get, set]
 
SettlementNameplatePartyMarkersVM SettlementParties [get, set]
 
SettlementNameplateEventsVM SettlementEvents [get, set]
 
int Relation [get, set]
 
int MapEventVisualType [get, set]
 
int WSign [get, set]
 
float WPos [get, set]
 
ImageIdentifierVM Banner [get, set]
 
string Name [get, set]
 
bool IsTracked [get, set]
 
bool IsInside [get, set]
 
bool IsInRange [get, set]
 
int SettlementType [get, set]
 
- Properties inherited from SandBox.ViewModelCollection.Nameplate.NameplateVM
double Scale [get, set]
 
int NameplateOrder [get, set]
 
int SizeType [get, set]
 
string FactionColor [get, set]
 
float DistanceToCamera [get, set]
 
bool IsVisibleOnMap [get, set]
 
bool IsTargetedByTutorial [get, set]
 
Vec2 Position [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 Types inherited from SandBox.ViewModelCollection.Nameplate.NameplateVM
enum  NameplateSize {
  Small = 0 ,
  Normal ,
  Big
}
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 
- Protected Attributes inherited from SandBox.ViewModelCollection.Nameplate.NameplateVM
bool _bindIsTargetedByTutorial
 
- 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

◆ Type

Enumerator
Village 
Castle 
Town 

◆ RelationType

◆ IssueTypes

◆ MainQuestTypes

Constructor & Destructor Documentation

◆ SettlementNameplateVM()

SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.SettlementNameplateVM ( Settlement  settlement,
GameEntity  entity,
Camera  mapCamera,
Action< Vec2 fastMoveCameraToPosition 
)

Member Function Documentation

◆ RefreshValues()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ RefreshDynamicProperties()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshDynamicProperties ( bool  forceUpdate)
virtual

◆ RefreshRelationStatus()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshRelationStatus ( )
virtual

◆ RefreshPosition()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshPosition ( )
virtual

◆ RefreshTutorialStatus()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshTutorialStatus ( string  newTutorialHighlightElementID)
virtual

◆ OnSiegeEventStartedOnSettlement()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnSiegeEventStartedOnSettlement ( SiegeEvent  siegeEvent)

◆ OnSiegeEventEndedOnSettlement()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnSiegeEventEndedOnSettlement ( SiegeEvent  siegeEvent)

◆ OnMapEventStartedOnSettlement()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnMapEventStartedOnSettlement ( MapEvent  mapEvent)

◆ OnMapEventEndedOnSettlement()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnMapEventEndedOnSettlement ( )

◆ OnRebelliousClanFormed()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnRebelliousClanFormed ( Clan  clan)

◆ OnRebelliousClanDisbanded()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnRebelliousClanDisbanded ( Clan  clan)

◆ CalculatePosition()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.CalculatePosition ( in Vec3  cameraPosition)

◆ DetermineIsVisibleOnMap()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.DetermineIsVisibleOnMap ( in Vec3  cameraPosition)

◆ DetermineIsInsideWindow()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.DetermineIsInsideWindow ( )

◆ RefreshBindValues()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshBindValues ( )

◆ OnFinalize()

override void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.OnFinalize ( )
virtual

◆ ExecuteTrack()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.ExecuteTrack ( )

◆ ExecuteSetCameraPosition()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.ExecuteSetCameraPosition ( )

◆ ExecuteOpenEncyclopedia()

void SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.ExecuteOpenEncyclopedia ( )

Property Documentation

◆ Settlement

Settlement SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.Settlement
get

◆ SettlementNotifications

SettlementNameplateNotificationsVM SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.SettlementNotifications
getset

◆ SettlementParties

SettlementNameplatePartyMarkersVM SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.SettlementParties
getset

◆ SettlementEvents

SettlementNameplateEventsVM SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.SettlementEvents
getset

◆ Relation

int SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.Relation
getset

◆ MapEventVisualType

int SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.MapEventVisualType
getset

◆ WSign

int SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.WSign
getset

◆ WPos

float SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.WPos
getset

◆ Banner

ImageIdentifierVM SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.Banner
getset

◆ Name

string SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.Name
getset

◆ IsTracked

bool SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.IsTracked
getset

◆ IsInside

bool SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.IsInside
getset

◆ IsInRange

bool SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.IsInRange
getset

◆ SettlementType

int SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.SettlementType
getset