Class ItemObject
- Namespace
- TaleWorlds.Core
- Assembly
- TaleWorlds.Core.dll
public sealed class ItemObject : MBObjectBase
- Inheritance
-
ItemObject
- Inherited Members
Constructors
ItemObject()
public ItemObject()
ItemObject(string)
public ItemObject(string stringId)
Parameters
stringId
string
ItemObject(ItemObject)
public ItemObject(ItemObject itemToCopy)
Parameters
itemToCopy
ItemObject
Fields
DefaultAppearanceValue
public const float DefaultAppearanceValue = 0.5
Field Value
MaxHolsterSlotCount
public const int MaxHolsterSlotCount = 4
Field Value
Type
public ItemObject.ItemTypeEnum Type
Field Value
Properties
Appearance
public float Appearance { get; }
Property Value
ArmBandMeshName
public string ArmBandMeshName { get; }
Property Value
ArmorComponent
public ArmorComponent ArmorComponent { get; }
Property Value
BannerComponent
public BannerComponent BannerComponent { get; }
Property Value
BodyName
public string BodyName { get; }
Property Value
CollisionBodyName
public string CollisionBodyName { get; }
Property Value
Culture
public BasicCultureObject Culture { get; }
Property Value
Difficulty
public int Difficulty { get; }
Property Value
DoesNotHideChest
public bool DoesNotHideChest { get; }
Property Value
Effectiveness
public float Effectiveness { get; }
Property Value
FlyingMeshName
public string FlyingMeshName { get; }
Property Value
FoodComponent
public TradeItemComponent FoodComponent { get; }
Property Value
HasArmorComponent
public bool HasArmorComponent { get; }
Property Value
HasBannerComponent
public bool HasBannerComponent { get; }
Property Value
HasFoodComponent
public bool HasFoodComponent { get; }
Property Value
HasHorseComponent
public bool HasHorseComponent { get; }
Property Value
HasLowerHolsterPriority
public bool HasLowerHolsterPriority { get; }
Property Value
HasSaddleComponent
public bool HasSaddleComponent { get; }
Property Value
HasWeaponComponent
public bool HasWeaponComponent { get; }
Property Value
HolsterBodyName
public string HolsterBodyName { get; }
Property Value
HolsterMeshName
public string HolsterMeshName { get; }
Property Value
HolsterPositionShift
public Vec3 HolsterPositionShift { get; }
Property Value
HolsterWithWeaponMeshName
public string HolsterWithWeaponMeshName { get; }
Property Value
HorseComponent
public HorseComponent HorseComponent { get; }
Property Value
IsAnimal
public bool IsAnimal { get; }
Property Value
IsBannerItem
public bool IsBannerItem { get; }
Property Value
IsCivilian
public bool IsCivilian { get; }
Property Value
IsCraftedByPlayer
public bool IsCraftedByPlayer { get; }
Property Value
IsCraftedWeapon
public bool IsCraftedWeapon { get; }
Property Value
IsFood
public bool IsFood { get; }
Property Value
IsMountable
public bool IsMountable { get; }
Property Value
IsTradeGood
public bool IsTradeGood { get; }
Property Value
IsUniqueItem
public bool IsUniqueItem { get; }
Property Value
IsUsingTableau
public bool IsUsingTableau { get; }
Property Value
IsUsingTeamColor
public bool IsUsingTeamColor { get; }
Property Value
ItemCategory
public ItemCategory ItemCategory { get; }
Property Value
ItemComponent
public ItemComponent ItemComponent { get; }
Property Value
ItemFlags
public ItemFlags ItemFlags { get; }
Property Value
ItemHolsters
public string[] ItemHolsters { get; }
Property Value
- string[]
ItemType
public ItemObject.ItemTypeEnum ItemType { get; }
Property Value
LodAtlasIndex
public int LodAtlasIndex { get; }
Property Value
MultiMeshName
public string MultiMeshName { get; }
Property Value
MultiplayerItem
public bool MultiplayerItem { get; }
Property Value
Name
public TextObject Name { get; }
Property Value
NotMerchandise
public bool NotMerchandise { get; }
Property Value
PrefabName
public string PrefabName { get; }
Property Value
PrerequisiteItem
public ItemObject PrerequisiteItem { get; }
Property Value
PrimaryWeapon
public WeaponComponentData PrimaryWeapon { get; }
Property Value
RecalculateBody
public bool RecalculateBody { get; }
Property Value
RelevantSkill
public SkillObject RelevantSkill { get; }
Property Value
SaddleComponent
public SaddleComponent SaddleComponent { get; }
Property Value
ScaleFactor
public float ScaleFactor { get; }
Property Value
Tier
public ItemObject.ItemTiers Tier { get; }
Property Value
Tierf
public float Tierf { get; }
Property Value
UsingFacegenScaling
public bool UsingFacegenScaling { get; }
Property Value
Value
public int Value { get; }
Property Value
WeaponComponent
public WeaponComponent WeaponComponent { get; }
Property Value
WeaponDesign
public WeaponDesign WeaponDesign { get; }
Property Value
Weapons
public MBReadOnlyList<WeaponComponentData> Weapons { get; }
Property Value
Weight
public float Weight { get; }
Property Value
Methods
AddWeapon(WeaponComponentData, ItemModifierGroup)
public void AddWeapon(WeaponComponentData weapon, ItemModifierGroup itemModifierGroup)
Parameters
weapon
WeaponComponentDataitemModifierGroup
ItemModifierGroup
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
Deserialize(MBObjectManager, XmlNode)
public override void Deserialize(MBObjectManager objectManager, XmlNode node)
Parameters
objectManager
MBObjectManagernode
XmlNode
DetermineItemCategoryForItem()
public void DetermineItemCategoryForItem()
GetAirFrictionConstant(WeaponClass, WeaponFlags)
public static float GetAirFrictionConstant(WeaponClass weaponClass, WeaponFlags weaponFlags)
Parameters
weaponClass
WeaponClassweaponFlags
WeaponFlags
Returns
GetAmmoTypeForItemType(ItemTypeEnum)
public static ItemObject.ItemTypeEnum GetAmmoTypeForItemType(ItemObject.ItemTypeEnum itemType)
Parameters
itemType
ItemObject.ItemTypeEnum
Returns
GetCraftedItemObjectFromHashedCode(string)
public static ItemObject GetCraftedItemObjectFromHashedCode(string hashedCode)
Parameters
hashedCode
string
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetItemFromWeaponKind(int)
public static ItemObject GetItemFromWeaponKind(int weaponKind)
Parameters
weaponKind
int
Returns
GetWeaponWithUsageIndex(int)
public WeaponComponentData GetWeaponWithUsageIndex(int usageIndex)
Parameters
usageIndex
int
Returns
InitAsPlayerCraftedItem(ref ItemObject)
public static void InitAsPlayerCraftedItem(ref ItemObject itemObject)
Parameters
itemObject
ItemObject
InitializeTradeGood(ItemObject, TextObject, string, ItemCategory, int, float, ItemTypeEnum, bool)
public static ItemObject InitializeTradeGood(ItemObject item, TextObject name, string meshName, ItemCategory category, int value, float weight, ItemObject.ItemTypeEnum itemType, bool isFood = false)
Parameters
item
ItemObjectname
TextObjectmeshName
stringcategory
ItemCategoryvalue
intweight
floatitemType
ItemObject.ItemTypeEnumisFood
bool
Returns
SetItemFlagsForCosmetics(ItemFlags)
public void SetItemFlagsForCosmetics(ItemFlags newFlags)
Parameters
newFlags
ItemFlags
ToString()
public override string ToString()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).