Skip to content

class_StatItem

Tom edited this page Apr 1, 2018 · 2 revisions

StatItem

Class for all stat items returned by API

Constructor

StatItem(json)

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

Variables


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