Skip to content

class_Item

Tom edited this page Apr 1, 2018 · 2 revisions

Item

Class for all items returned by API

Constructor

Item(json)

  • json (object/dict) - raw json data of item

Variables

  • id (string) -
  • name (string) -
  • price (string) -
  • priceIcon (string) -
  • priceIconLink (string) -
  • rarity (string) -
  • type (string) -
  • readableType (string) -
  • icon (string) -
  • png (string) -
  • gallery (string) -
  • featured (boolean) -

Functions

load

load(name,json,default)

arguments

  • name (string) - Name of index to lookup
  • json (object/dict) - json of item
  • default (any) - default value to return if key(name) is not found

returns

value (any) - Either the value of json[name] or default if name is not found

Clone this wiki locally