gw2.data#
local gw2data = require 'gw2.data'
The gw2.data
module contains cached data from the GW2 API. This is
data that does not require authentication and does not change regularly, such as
map information.
This allows access to this data without querying the API every time.
Important
Module authors should prefer using this module over querying the API for the same data.
Functions#
- gw2.data.map(mapid)#
Return information about the given map id.
Returns a Lua table with the following fields:
id
name
min_level
max_level
type
default_floor
region_id
region_name
continent_id
continent_name
map_rect_left
map_rect_right
map_rect_top
map_rect_bottom
continent_rect_left
continent_rect_right
continent_rect_top
continent_rect_bottom
See also
- Return type:
Version History
Version
Notes
0.3.0
Added
- gw2.data.refreshmaps()#
Updates the cached map data from the GW2 API.
Version History
Version
Notes
0.3.0
Added
- gw2.data.specialization(id)#
Return information about the given specialization ID.
Returns a Lua table with the following fields:
id
name
profession
elite
icon
background
See also
- Return type:
Version History
Version
Notes
0.3.0
Added
- gw2.data.refreshspecializations()#
Updates the cached specialization data from the GW2 API.
Version History
Version
Notes
0.3.0
Added