Class SettlementComponent
- Namespace
- TaleWorlds.CampaignSystem.Settlements
- Assembly
- TaleWorlds.CampaignSystem.dll
public abstract class SettlementComponent : MBObjectBase
- Inheritance
-
SettlementComponent
- Derived
- Inherited Members
Constructors
SettlementComponent()
protected SettlementComponent()
Properties
BackgroundCropPosition
public float BackgroundCropPosition { get; protected set; }
Property Value
BackgroundMeshName
public string BackgroundMeshName { get; protected set; }
Property Value
CastleBackgroundMeshName
public string CastleBackgroundMeshName { get; protected set; }
Property Value
Gold
[SaveableProperty(50)]
public int Gold { get; }
Property Value
IsCastle
public virtual bool IsCastle { get; }
Property Value
IsOwnerUnassigned
[SaveableProperty(80)]
public bool IsOwnerUnassigned { get; set; }
Property Value
IsTown
public virtual bool IsTown { get; }
Property Value
Name
public TextObject Name { get; }
Property Value
Owner
public PartyBase Owner { get; }
Property Value
Settlement
public Settlement Settlement { get; }
Property Value
WaitMeshName
public string WaitMeshName { get; protected set; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
ChangeGold(int)
public void ChangeGold(int changeAmount)
Parameters
changeAmount
int
Deserialize(MBObjectManager, XmlNode)
public override void Deserialize(MBObjectManager objectManager, XmlNode node)
Parameters
objectManager
MBObjectManagernode
XmlNode
GetItemPrice(EquipmentElement, MobileParty, bool)
public virtual int GetItemPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false)
Parameters
itemRosterElement
EquipmentElementtradingParty
MobilePartyisSelling
bool
Returns
GetItemPrice(ItemObject, MobileParty, bool)
public virtual int GetItemPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false)
Parameters
item
ItemObjecttradingParty
MobilePartyisSelling
bool
Returns
GetNumberOfTroops()
public int GetNumberOfTroops()
Returns
GetPrisonerHeroes()
public List<CharacterObject> GetPrisonerHeroes()
Returns
GetProsperityLevel()
public virtual SettlementComponent.ProsperityLevel GetProsperityLevel()
Returns
OnInit()
public virtual void OnInit()
OnInventoryUpdated(ItemRosterElement, int)
protected abstract void OnInventoryUpdated(ItemRosterElement item, int count)
Parameters
item
ItemRosterElementcount
int
OnPartyEntered(MobileParty)
public virtual void OnPartyEntered(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
OnPartyLeft(MobileParty)
public virtual void OnPartyLeft(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
OnRelatedPartyRemoved(MobileParty)
public virtual void OnRelatedPartyRemoved(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).