public sealed class InventoryItemDescriptorStable item metadata supplied to an inventory slot provider. CMAPI does not expose or transfer the game's mutable world-object instance.
Members
WorldObjectIdGets the game's world-object identifier, or -1 for a prospective item.propertyItemIdGets the stable group identifier.propertyItemCategoryGets the native item-category name.propertyItemSubCategoryGets the native item-subcategory name.propertyUsableTypeGets the native usable-type name.propertyEquipableTypeGets the native equipable-type name.propertyIsLockedGets whether the world object is locked in its inventory.propertyHasCustomStateGets whether this instance carries mutable state which should normally keep it in an independent slot.propertyStateKeyGets an opaque equality key for the mutable state represented by this descriptor. The format is owned by CMAPI and may change between API versions.propertyInventoryItemDescriptorCreates immutable item metadata.methodWorldObjectId
propertypublic int WorldObjectIdGets the game's world-object identifier, or -1 for a prospective item.
ItemId
propertypublic string ItemIdGets the stable group identifier.
ItemCategory
propertypublic string ItemCategoryGets the native item-category name.
ItemSubCategory
propertypublic string ItemSubCategoryGets the native item-subcategory name.
UsableType
propertypublic string UsableTypeGets the native usable-type name.
EquipableType
propertypublic string EquipableTypeGets the native equipable-type name.
IsLocked
propertypublic bool IsLockedGets whether the world object is locked in its inventory.
HasCustomState
propertypublic bool HasCustomStateGets whether this instance carries mutable state which should normally keep it in an independent slot.
StateKey
propertypublic string StateKeyGets an opaque equality key for the mutable state represented by this descriptor. The format is owned by CMAPI and may change between API versions.
InventoryItemDescriptor
methodpublic InventoryItemDescriptor( int worldObjectId, string itemId, string itemCategory, string itemSubCategory, string usableType, string equipableType, bool isLocked, bool hasCustomState, string stateKey)Creates immutable item metadata.