Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
Created April 14, 2022 16:25
Show Gist options
  • Save glinesbdev/1a6f07199832575d003be767159b21c3 to your computer and use it in GitHub Desktop.
Save glinesbdev/1a6f07199832575d003be767159b21c3 to your computer and use it in GitHub Desktop.
gw2_data_gen output
require "json"
module Gw2Api
struct Bank
include JSON::Serializable
# The item's ID.
getter id : UInt32
# The amount of items in the item stack.
getter count : UInt32
# The amount of charges remaining on the item.
getter charges : UInt32?
# The skin applied to the item, if it is different from its original. Can be resolved against /v2/skins.
getter skin : UInt32?
# The IDs of the dyes applied to the item. Can be resolved against /v2/colors.
getter dyes : Array(UInt32)?
# The item IDs of the runes or sigills applied to the item.
getter upgrades : Array(UInt32)?
# The slot occupied by the upgrade at the corresponding position in upgrades.
getter upgrade_slot_indices : Array(UInt32)?
# An array of item IDs for each infusion applied to the item.
getter infusions : Array()?
# The current binding of the item. Either Account or Character if present.
getter binding : String?
# If binding is Character, this field tells which character it is bound to.
getter bound_to : String?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment