Skip to content

McpUserInventoryBase

Class in IpDrv · IpDrv.McpUserInventoryBase · abstract, config

Object › McpServiceBase › McpUserInventoryBase

Subclasses: McpUserInventoryManager, McpUserInventoryManagerV3

Using it from Lua
h7.find_all("McpUserInventoryBase")            -- live instances
h7.find_class("IpDrv.McpUserInventoryBase")   -- the class
h7.hook("IpDrv.McpUserInventoryBase.ConsumeItem", fn)

Structs

McpIapItem

FieldType
ItemIdString
Quantityint
SaveSlotIdString

McpIapList

FieldType
McpIdString
Iapsarray<McpIapItem>

McpInventoryItem

FieldType
InstanceItemIdstring
GlobalItemIdstring
Quantityint
QuantityIAPint
Scalarfloat
LastUpdateTimestring
Attributesarray<McpInventoryItemAttribute>

McpInventoryItemAttribute

FieldType
AttributeIdstring
Valueint

McpInventoryItemContainer

FieldType
GlobalItemIdstring
Quantityint

McpInventorySaveSlot

FieldType
OwningMcpIdstring
SaveSlotIdstring
Itemsarray<McpInventoryItem>

Properties

NameTypeNotes
McpUserInventoryClassNamestringconfig

Functions

NameDeclaration
ConsumeItemfunction ConsumeItem(string McpId, string SaveSlotId, string InstanceItemId, int Quantity, int StoreVersion)
CreateInstancestatic final function McpUserInventoryBase CreateInstance()
CreateSaveSlotfunction CreateSaveSlot(string McpId, string SaveSlotId, optional string ParentSaveSlotId)
DeleteItemfunction DeleteItem(string McpId, string SaveSlotId, string InstanceItemId, int StoreVersion)
DeleteSaveSlotfunction DeleteSaveSlot(string McpId, string SaveSlotId)
EarnItemfunction EarnItem(string McpId, string SaveSlotId, string GlobalItemId, int Quantity, int StoreVersion)
GetIapListfunction bool GetIapList(String McpId, out McpIapList Iaps)
GetInventoryItemfunction bool GetInventoryItem(string McpId, string SaveSlotId, string InstanceItemId, out McpInventoryItem OutInventoryItem)
GetInventoryItemsfunction GetInventoryItems(string McpId, string SaveSlotId, out array<McpInventoryItem> OutInventoryItems)
GetSaveSlotfunction bool GetSaveSlot(String McpId, String SaveSlotId, out McpInventorySaveSlot SaveSlot)
GetSaveSlotListfunction array GetSaveSlotList(string McpId)
OnConsumeItemCompletedelegate OnConsumeItemComplete(string McpId, string SaveSlotId, string InstanceItemId, array UpdatedItemIds, bool bWasSuccessful, string Error)
OnCreateSaveSlotCompletedelegate OnCreateSaveSlotComplete(string McpId, string SaveSlotId, bool bWasSuccessful, string Error)
OnDeleteItemCompletedelegate OnDeleteItemComplete(string McpId, string SaveSlotId, string InstanceItemId, bool bWasSuccessful, string Error)
OnDeleteSaveSlotCompletedelegate OnDeleteSaveSlotComplete(string McpId, string SaveSlotId, bool bWasSuccessful, string Error)
OnEarnItemCompletedelegate OnEarnItemComplete(string McpId, string SaveSlotId, string GlobalItemId, array UpdatedItemIds, bool bWasSuccessful, string Error)
OnPurchaseItemCompletedelegate OnPurchaseItemComplete(string McpId, string SaveSlotId, string GlobalItemId, array UpdatedItemIds, bool bWasSuccessful, string Error)
OnQueryIapListCompletedelegate OnQueryIapListComplete(String McpId, bool bWasSuccessful, String Error)
OnQueryInventoryItemsCompletedelegate OnQueryInventoryItemsComplete(string McpId, string SaveSlotId, bool bWasSuccessful, string Error)
OnQuerySaveSlotListCompletedelegate OnQuerySaveSlotListComplete(string McpId, bool bWasSuccessful, string Error)
OnReadSaveSlotCompletedelegate OnReadSaveSlotComplete(String McpId, String SaveSlotId, bool bWasSuccessful, String Error)
OnRecordIapCompletedelegate OnRecordIapComplete(string McpId, string SaveSlotId, array<McpIapItem> UpdatedItems, bool bWasSuccessful, string Error)
OnSellItemCompletedelegate OnSellItemComplete(string McpId, string SaveSlotId, string InstanceItemId, array UpdatedItemIds, bool bWasSuccessful, string Error)
PurchaseItemfunction PurchaseItem(string McpId, string SaveSlotId, string GlobalItemId, array PurchaseItemIds, int Quantity, int StoreVersion, float Scalar)
QueryIapListfunction QueryIapList(String McpId)
QueryInventoryItemsfunction QueryInventoryItems(string McpId, string SaveSlotId)
QuerySaveSlotListfunction QuerySaveSlotList(string McpId)
ReadSaveSlotfunction ReadSaveSlot(String McpId, String SaveSlotId)
RecordIapfunction RecordIap(string McpId, string SaveSlotId, String Vendor, String Receipt)
SellItemfunction SellItem(string McpId, string SaveSlotId, string InstanceItemId, int Quantity, int StoreVersion, optional const out array<McpInventoryItemContainer> ExpectedResultItems)

Inherited

FromMembers
McpServiceBase2 properties, 16 functions
Object13 properties, 308 functions