Table of Contents

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 BuildingType
town Town
buildingProgress float
currentLevel int

Fields

BuildingProgress

[SaveableField(1)]
public float BuildingProgress

Field Value

float

BuildingType

[SaveableField(0)]
public readonly BuildingType BuildingType

Field Value

BuildingType

IsCurrentlyDefault

[SaveableField(2)]
public bool IsCurrentlyDefault

Field Value

bool

MaxHitpoints

public const float MaxHitpoints = 100

Field Value

float

Properties

CurrentLevel

public int CurrentLevel { get; set; }

Property Value

int

Explanation

public TextObject Explanation { get; }

Property Value

TextObject

Name

public TextObject Name { get; }

Property Value

TextObject

Town

[SaveableProperty(6)]
public Town Town { get; }

Property Value

Town

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

GetBonusExplanation()

public TextObject GetBonusExplanation()

Returns

TextObject

GetBuildingEffectAmount(BuildingEffectEnum)

public float GetBuildingEffectAmount(BuildingEffectEnum effect)

Parameters

effect BuildingEffectEnum

Returns

float

GetConstructionCost()

public int GetConstructionCost()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

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).