M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.ItemCategory Class Reference

Inherits TaleWorlds.ObjectSystem.MBObjectBase.

Public Types

enum  Property
 

Public Member Functions

 ItemCategory ()
 
 ItemCategory (string stringId)
 
ItemCategory InitializeObject (bool isTradeGood=false, int baseDemand=0, int luxuryDemand=0, Property properties=Property.None, ItemCategory canSubstitute=null, float substitutionFactor=0f, bool isAnimal=false, bool isValid=true)
 
override TextObject GetName ()
 
override string ToString ()
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Properties

bool IsTradeGood [get]
 
bool IsAnimal [get]
 
ItemCategory CanSubstitute [get]
 More expensive trade goods can substitute less expensive ones. Add this property to the expensive category. More...
 
float SubstitutionFactor [get]
 
Property Properties [get]
 
bool IsValid [get]
 
float BaseDemand [get]
 
float LuxuryDemand [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 

Member Enumeration Documentation

◆ Property

Constructor & Destructor Documentation

◆ ItemCategory() [1/2]

TaleWorlds.Core.ItemCategory.ItemCategory ( )

◆ ItemCategory() [2/2]

TaleWorlds.Core.ItemCategory.ItemCategory ( string  stringId)

Member Function Documentation

◆ InitializeObject()

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

◆ GetName()

override TextObject TaleWorlds.Core.ItemCategory.GetName ( )
virtual

◆ ToString()

override string TaleWorlds.Core.ItemCategory.ToString ( )

Property Documentation

◆ IsTradeGood

bool TaleWorlds.Core.ItemCategory.IsTradeGood
get

◆ IsAnimal

bool TaleWorlds.Core.ItemCategory.IsAnimal
get

◆ CanSubstitute

ItemCategory TaleWorlds.Core.ItemCategory.CanSubstitute
get

◆ SubstitutionFactor

float TaleWorlds.Core.ItemCategory.SubstitutionFactor
get

◆ Properties

Property TaleWorlds.Core.ItemCategory.Properties
get

◆ IsValid

bool TaleWorlds.Core.ItemCategory.IsValid
get

◆ BaseDemand

float TaleWorlds.Core.ItemCategory.BaseDemand
get

◆ LuxuryDemand

float TaleWorlds.Core.ItemCategory.LuxuryDemand
get