Table of Contents

Class BuildingType

Namespace
TaleWorlds.CampaignSystem.Settlements.Buildings
Assembly
TaleWorlds.CampaignSystem.dll
public sealed class BuildingType : MBObjectBase
Inheritance
BuildingType
Inherited Members

Constructors

BuildingType(string)

public BuildingType(string stringId)

Parameters

stringId string

Fields

BuildingLocation

public BuildingLocation BuildingLocation

Field Value

BuildingLocation

IsDefaultProject

public bool IsDefaultProject

Field Value

bool

MaxLevel

public const int MaxLevel = 3

Field Value

int

StartLevel

public int StartLevel

Field Value

int

Properties

All

public static MBReadOnlyList<BuildingType> All { get; }

Property Value

MBReadOnlyList<BuildingType>

Explanation

public TextObject Explanation { get; }

Property Value

TextObject

Name

public TextObject Name { get; }

Property Value

TextObject

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

GetBaseBuildingEffectAmount(BuildingEffectEnum, int)

public float GetBaseBuildingEffectAmount(BuildingEffectEnum effect, int level)

Parameters

effect BuildingEffectEnum
level int

Returns

float

GetExplanationAtLevel(int)

public TextObject GetExplanationAtLevel(int level)

Parameters

level int

Returns

TextObject

GetProductionCost(int)

public int GetProductionCost(int level)

Parameters

level int

Returns

int

Initialize(TextObject, TextObject, int[], BuildingLocation, Tuple<BuildingEffectEnum, float, float, float>[], int)

public void Initialize(TextObject name, TextObject explanation, int[] productionCosts, BuildingLocation buildingLocation, Tuple<BuildingEffectEnum, float, float, float>[] effects, int startLevel = 0)

Parameters

name TextObject
explanation TextObject
productionCosts int[]
buildingLocation BuildingLocation
effects Tuple<BuildingEffectEnum, float, float, float>[]
startLevel int

ToString()

public override string ToString()

Returns

string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).