-
Notifications
You must be signed in to change notification settings - Fork 3
Schema
A class which represents the Team Fortress 2 item schema in a manageable way. Returned by calling TF2Items#getSchema.
A status returned by the API, 1 for successful.
An array of items.
- apiKey - Your Steam Developers api key.
- callback
- err - If an error occurred, this is an
Errorobject, otherwisenull. - success -
trueif the request was successful.
- err - If an error occurred, this is an
Fetches the Schema and sets the properties, the result can be accessed right after initializing successfully.
Returns an item from the items array that matches the defindex. null if a match was not found.
Returns either the quality id or the name. Can take both a string (name) or an integer (id) and returns the opposite, null if a match was not found.
Returns either the effect id or the name. Can take both a string (name) or an integer (id) and returns the opposite, null if a match was not found.
Returns a name that identifies the item, for example: 'Non-Tradeable Competitive Matchmaking Beta Invite', 'Strange Carbonado Botkiller Stickybomb Launcher Mk.I' and 'Mann Co. Supply Crate Key'. It does not work with skins or warpaints (it uses the schema name of the item, and it does not contain the skin).
The item can look like this: { defindex: 5021, quality: 6, craftable: true, killstreak: 0, australium: true, effect: 32 }. It needs all the properties as shown.