Class Building
- Namespace
- TaleWorlds.CampaignSystem.Settlements.Buildings
- Assembly
- TaleWorlds.CampaignSystem.dll
public class Building
- Inheritance
-
Building
- Inherited Members
Constructors
Building(BuildingType, Town, float, int)
public Building(BuildingType buildingType, Town town, float buildingProgress = 0, int currentLevel = 0)
Parameters
buildingType
BuildingTypetown
TownbuildingProgress
floatcurrentLevel
int
Fields
BuildingProgress
[SaveableField(1)]
public float BuildingProgress
Field Value
BuildingType
[SaveableField(0)]
public readonly BuildingType BuildingType
Field Value
IsCurrentlyDefault
[SaveableField(2)]
public bool IsCurrentlyDefault
Field Value
MaxHitpoints
public const float MaxHitpoints = 100
Field Value
Properties
CurrentLevel
public int CurrentLevel { get; set; }
Property Value
Explanation
public TextObject Explanation { get; }
Property Value
Name
public TextObject Name { get; }
Property Value
Town
[SaveableProperty(6)]
public Town Town { get; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
GetBonusExplanation()
public TextObject GetBonusExplanation()
Returns
GetBuildingEffectAmount(BuildingEffectEnum)
public float GetBuildingEffectAmount(BuildingEffectEnum effect)
Parameters
effect
BuildingEffectEnum
Returns
GetConstructionCost()
public int GetConstructionCost()
Returns
GetHashCode()
public override int GetHashCode()
Returns
HitPointChanged(float)
public void HitPointChanged(float change)
Parameters
change
float
LevelDown()
public void LevelDown()
LevelUp()
public void LevelUp()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).