Skip to content

McpUserInventoryManager

Class in IpDrv · IpDrv.McpUserInventoryManager

Object › McpServiceBase › McpUserInventoryBase › McpUserInventoryManager

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

Structs

InventoryItemRequestState

Struct extends SaveSlotRequestState

FieldType
ItemIdstring

SaveSlotRequestState

FieldType
McpIdstring
SaveSlotIdstring
RequestHttpRequestInterface

Properties

NameTypeNotes
ConsumeItemUrlstringconfig
CreateSaveSlotUrlstringconfig
DeleteItemUrlstringconfig
DeleteSaveSlotUrlstringconfig
EarnItemUrlstringconfig
IapRecordUrlstringconfig
ItemRequestsarray<InventoryItemRequestState>
ListItemsRequestsarray<SaveSlotRequestState>
ListItemsUrlstringconfig
ListSaveSlotRequestsarray<SaveSlotRequestState>
ListSaveSlotUrlstringconfig
PurchaseItemUrlstringconfig
SaveSlotRequestsarray<SaveSlotRequestState>
SaveSlotsarray<McpInventorySaveSlot>
SellItemUrlstringconfig

Functions

NameDeclaration
ConsumeItemfunction ConsumeItem(string McpId, string SaveSlotId, string InstanceItemId, int Quantity, int StoreVersion)
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)
FindItemRequestfunction int FindItemRequest(string McpId, string SaveSlotId, string ItemId, const out array<InventoryItemRequestState> InItemRequests)
FindSaveSlotIndexfunction int FindSaveSlotIndex(string McpId, string SaveSlotId)
FindSaveSlotRequestfunction int FindSaveSlotRequest(string McpId, string SaveSlotId, const out array<SaveSlotRequestState> InSaveSlotRequests)
GetInventoryItemfunction bool GetInventoryItem(string McpId, string SaveSlotId, string InstanceItemId, out McpInventoryItem OutInventoryItem)
GetInventoryItemsfunction GetInventoryItems(string McpId, string SaveSlotId, out array<McpInventoryItem> OutInventoryItems)
GetSaveSlotListfunction array GetSaveSlotList(string McpId)
OnConsumeItemRequestCompletefunction OnConsumeItemRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnCreateSaveSlotRequestCompletefunction OnCreateSaveSlotRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnDeleteItemRequestCompletefunction OnDeleteItemRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnDeleteSaveSlotRequestCompletefunction OnDeleteSaveSlotRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnEarnItemRequestCompletefunction OnEarnItemRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnPurchaseItemRequestCompletefunction OnPurchaseItemRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnQueryInventoryItemsRequestCompletefunction OnQueryInventoryItemsRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnQuerySaveSlotListRequestCompletefunction OnQuerySaveSlotListRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnRecordIapRequestCompletefunction OnRecordIapRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
OnSellItemRequestCompletefunction OnSellItemRequestComplete(HttpRequestInterface Request, HttpResponseInterface Response, bool bWasSuccessful)
ParseInventoryForSaveSlotfunction array ParseInventoryForSaveSlot(string McpId, string SaveSlotId, string JsonPayload)
ParseSaveSlotListfunction ParseSaveSlotList(string McpId, string JsonPayload)
PurchaseItemfunction PurchaseItem(string McpId, string SaveSlotId, string GlobalItemId, array PurchaseItemIds, int Quantity, int StoreVersion, float Scalar)
QueryInventoryItemsfunction QueryInventoryItems(string McpId, string SaveSlotId)
QuerySaveSlotListfunction QuerySaveSlotList(string McpId)
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
McpUserInventoryBase1 properties, 30 functions
McpServiceBase2 properties, 16 functions
Object13 properties, 308 functions