M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Inherits TaleWorlds.ObjectSystem.MBObjectBase.
Public Types | |
enum | Property { None , BonusToProduction , BonusToFoodStores , BonusToProsperity , BonusToLoyalty , BonusToMilitia , BonusToGarrison , BonusToTax } |
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. | |
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 () |
TaleWorlds.Core.ItemCategory.ItemCategory | ( | ) |
TaleWorlds.Core.ItemCategory.ItemCategory | ( | string | stringId | ) |
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 |
||
) |
|
virtual |
Reimplemented from TaleWorlds.ObjectSystem.MBObjectBase.
override string TaleWorlds.Core.ItemCategory.ToString | ( | ) |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |