-
-
Notifications
You must be signed in to change notification settings - Fork 129
CEconItem
A class which represents an item within the Steam Economy. Returned by calls to CSteamUser#getInventory
or SteamCommunity#getUserInventory
.
Contains many properties which come directly from Steam and can change at any time. Properties of note are listed below:
The item's unique ID within its app+context.
Alias of id
.
The ID of the context within the app in which the item resides.
The ID of the app which owns the item.
The first half of the item cache identifier. The classid is enough to get you basic details about the item.
The second half of the item cache identifier.
How much of this item is in this stack.
The item's position within the inventory (starting at 1). Not defined if this item wasn't retrieved directly from an inventory (e.g. from a trade offer or inventory history).
The item's display name.
The item's universal market name. This identifies the item's market listing page.
The render color of the item's name, in hexadecimal.
The displayed background color, in hexadecimal.
The "type" that's shown under the game name to the right of the game icon.
true
if the item can be traded, false
if not.
true
if the item can be listed on the Steam Community Market, false
if not.
true
if, on the Steam Community Market, this item will use buy orders. false
if not.
How many days for which the item will be untradable after being sold on the market.
How many days for which the item will be unmarketable after being sold on the market.
An array of objects containing information about the item. Displayed under the item's type
.
An array of strings containing "fraud warnings" about the item. In inventories and trades, items with fraud warnings have a red (!) symbol, and fraud warnings are displayed in red under the item's name.
An array of objects containing the item's inventory tags.
Not always present. An object containing arbitrary data as reported by the game's item server.
Returns a URL where this item's image can be downloaded. You can optionally append a size as such:
var url = item.getImageURL() + "128x128";
Same as getImageURL()
, except for the item's large image, if present.
-
category
- A string containing the tag's category (thecategory
property of the tag object)
Returns a specific tag from the item, or null
if it doesn't exist