Show raw api
{
"functions": [
{
"name": "new",
"desc": "",
"params": [
{
"name": "assetType",
"desc": "",
"lua_type": "GameConfigAssetTypes"
},
{
"name": "convertIds",
"desc": "",
"lua_type": "function"
},
{
"name": "observeIdsBrio",
"desc": "",
"lua_type": "function"
}
],
"returns": [
{
"desc": "",
"lua_type": "PlayerAssetMarketTracker"
}
],
"function_type": "static",
"source": {
"line": 27,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "ObserveAssetPurchased",
"desc": "Observes an asset purchased",
"params": [
{
"name": "idOrKey",
"desc": "",
"lua_type": "string | number"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<()>"
}
],
"function_type": "method",
"source": {
"line": 86,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "PromisePromptPurchase",
"desc": "Prompts the player to purchase a the asset and returns a tracking promise which\nwill resolve with the purchase state",
"params": [
{
"name": "idOrKey",
"desc": "",
"lua_type": "number | string"
}
],
"returns": [
{
"desc": "",
"lua_type": "Promise<boolean>"
}
],
"function_type": "method",
"source": {
"line": 132,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "SetOwnershipTracker",
"desc": "Sets the ownership tracker for this asset tracker",
"params": [
{
"name": "ownershipTracker",
"desc": "",
"lua_type": "PlayerAssetOwnershipTracker"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 205,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "HasPurchasedThisSession",
"desc": "Returns true if item has been purchased this session",
"params": [
{
"name": "idOrKey",
"desc": "",
"lua_type": "string | number"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean"
}
],
"function_type": "method",
"source": {
"line": 221,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "IsPromptOpen",
"desc": "Returns true if a prompt is open for the asset",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "boolean"
}
],
"function_type": "method",
"source": {
"line": 242,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
},
{
"name": "HandlePurchaseEvent",
"desc": "Handles a purchasing event resolving any promises as needed",
"params": [
{
"name": "id",
"desc": "",
"lua_type": "number"
},
{
"name": "isPurchased",
"desc": "",
"lua_type": "boolean"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 252,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
}
],
"properties": [],
"types": [],
"name": "PlayerAssetMarketTracker",
"desc": "Tracks a single asset type for pending purchase prompts.",
"source": {
"line": 6,
"path": "src/gameproductservice/src/Shared/Trackers/PlayerAssetMarketTracker.lua"
}
}