M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Settlements.VillageType Class Reference

Inherits TaleWorlds.ObjectSystem.MBObjectBase.

Public Member Functions

 VillageType (string stringId)
 
VillageType Initialize (TextObject shortName, string meshName, string meshNameUnderConstruction, string meshNameBurned, ValueTuple< ItemObject, float >[] productions)
 
override string ToString ()
 
void AddProductions (IEnumerable< ValueTuple< ItemObject, float > > productions)
 
float GetProductionPerDay (ItemObject item)
 
float GetProductionPerDay (ItemCategory itemCategory)
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Public Attributes

TextObject ShortName
 
string MeshName
 
string MeshNameUnderConstruction
 
string MeshNameBurned
 

Properties

static MBReadOnlyList< VillageTypeAll [get]
 
MBReadOnlyList< ValueTuple< ItemObject, float > > Productions [get]
 
ItemObject PrimaryProduction [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Constructor & Destructor Documentation

◆ VillageType()

TaleWorlds.CampaignSystem.Settlements.VillageType.VillageType ( string  stringId)

Member Function Documentation

◆ Initialize()

VillageType TaleWorlds.CampaignSystem.Settlements.VillageType.Initialize ( TextObject  shortName,
string  meshName,
string  meshNameUnderConstruction,
string  meshNameBurned,
ValueTuple< ItemObject, float >[]  productions 
)

◆ ToString()

override string TaleWorlds.CampaignSystem.Settlements.VillageType.ToString ( )

◆ AddProductions()

void TaleWorlds.CampaignSystem.Settlements.VillageType.AddProductions ( IEnumerable< ValueTuple< ItemObject, float > >  productions)

◆ GetProductionPerDay() [1/2]

float TaleWorlds.CampaignSystem.Settlements.VillageType.GetProductionPerDay ( ItemObject  item)

◆ GetProductionPerDay() [2/2]

float TaleWorlds.CampaignSystem.Settlements.VillageType.GetProductionPerDay ( ItemCategory  itemCategory)

Member Data Documentation

◆ ShortName

TextObject TaleWorlds.CampaignSystem.Settlements.VillageType.ShortName

◆ MeshName

string TaleWorlds.CampaignSystem.Settlements.VillageType.MeshName

◆ MeshNameUnderConstruction

string TaleWorlds.CampaignSystem.Settlements.VillageType.MeshNameUnderConstruction

◆ MeshNameBurned

string TaleWorlds.CampaignSystem.Settlements.VillageType.MeshNameBurned

Property Documentation

◆ All

MBReadOnlyList<VillageType> TaleWorlds.CampaignSystem.Settlements.VillageType.All
staticget

◆ Productions

MBReadOnlyList<ValueTuple<ItemObject, float> > TaleWorlds.CampaignSystem.Settlements.VillageType.Productions
get

◆ PrimaryProduction

ItemObject TaleWorlds.CampaignSystem.Settlements.VillageType.PrimaryProduction
get