Table of Contents

Class ItemCategory

Namespace
TaleWorlds.Core
Assembly
TaleWorlds.Core.dll
public sealed class ItemCategory : MBObjectBase
Inheritance
ItemCategory
Inherited Members

Constructors

ItemCategory()

public ItemCategory()

ItemCategory(string)

public ItemCategory(string stringId)

Parameters

stringId string

Properties

BaseDemand

public float BaseDemand { get; }

Property Value

float

CanSubstitute

public ItemCategory CanSubstitute { get; }

Property Value

ItemCategory

IsAnimal

public bool IsAnimal { get; }

Property Value

bool

IsTradeGood

public bool IsTradeGood { get; }

Property Value

bool

IsValid

public bool IsValid { get; }

Property Value

bool

LuxuryDemand

public float LuxuryDemand { get; }

Property Value

float

Properties

public ItemCategory.Property Properties { get; }

Property Value

ItemCategory.Property

SubstitutionFactor

public float SubstitutionFactor { get; }

Property Value

float

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

GetName()

public override TextObject GetName()

Returns

TextObject

InitializeObject(bool, int, int, Property, ItemCategory, float, bool, bool)

public ItemCategory InitializeObject(bool isTradeGood = false, int baseDemand = 0, int luxuryDemand = 0, ItemCategory.Property properties = Property.None, ItemCategory canSubstitute = null, float substitutionFactor = 0, bool isAnimal = false, bool isValid = true)

Parameters

isTradeGood bool
baseDemand int
luxuryDemand int
properties ItemCategory.Property
canSubstitute ItemCategory
substitutionFactor float
isAnimal bool
isValid bool

Returns

ItemCategory

ToString()

public override string ToString()

Returns

string

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