-
Notifications
You must be signed in to change notification settings - Fork 0
/
profileComponents.go
50 lines (48 loc) · 4.71 KB
/
profileComponents.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package goBungieNet
type DestinyComponentType int
const (
ComponentNone DestinyComponentType = 0
ComponentProfiles = 100
//Profiles is the most basic component, only relevant when calling GetProfile. This returns basic information about the profile, which is almost nothing = a list of characterIds, some information about the last time you logged in, and that most sobering statistic = how long you've played.
ComponentVendorReceipts = 101
//Only applicable for GetProfile, this will return information about receipts for refundable vendor items.
ComponentProfileInventories = 102
//Asking for this will get you the profile-level inventories, such as your Vault buckets (yeah, the Vault is really inventory buckets located on your Profile)
ComponentProfileCurrencies = 103
//This will get you a summary of items on your Profile that we consider to be "currencies", such as Glimmer. I mean, if there's Glimmer in Destiny 2. I didn't say there was Glimmer.
ComponentCharacters = 200
//This will get you summary info about each of the characters in the profile.
ComponentCharacterInventories = 201
//This will get you information about any non-equipped items on the character or character(s) in question, if you're allowed to see it. You have to either be authenticated as that user, or that user must allow anonymous viewing of their non-equipped items in Bungie.Net settings to actually get results.
ComponentCharacterProgressions = 202
//This will get you information about the progression (faction, experience, etc... "levels") relevant to each character, if you are the currently authenticated user or the user has elected to allow anonymous viewing of its progression info.
ComponentCharacterRenderData = 203
//This will get you just enough information to be able to render the character in 3D if you have written a 3D rendering library for Destiny Characters, or "borrowed" ours. It's okay, I won't tell anyone if you're using it. I'm no snitch. (actually, we don't care if you use it - go to town)
ComponentCharacterActivities = 204
//This will return info about activities that a user can see and gating on it, if you are the currently authenticated user or the user has elected to allow anonymous viewing of its progression info. Note that the data returned by this can be unfortunately problematic and relatively unreliable in some cases. We'll eventually work on making it more consistently reliable.
ComponentCharacterEquipment = 205
//This will return info about the equipped items on the character(s). Everyone can see this.
ComponentItemInstances = 300
//This will return basic info about instanced items - whether they can be equipped, their tracked status, and some info commonly needed in many places (current damage type, primary stat value, etc)
ComponentItemObjectives = 301
//Items can have Objectives (DestinyObjectiveDefinition) bound to them. If they do, this will return info for items that have such bound objectives.
ComponentItemPerks = 302
//Items can have perks (DestinyPerkDefinition). If they do, this will return info for what perks are active on items.
ComponentItemRenderData = 303
//If you just want to render the weapon, this is just enough info to do that rendering.
ComponentItemStats = 304
//Items can have stats, like rate of fire. Asking for this component will return requested item's stats if they have stats.
ComponentItemSockets = 305
//Items can have sockets, where plugs can be inserted. Asking for this component will return all info relevant to the sockets on items that have them.
ComponentItemTalentGrids = 306
//Items can have talent grids, though that matters a lot less frequently than it used to. Asking for this component will return all relevant info about activated Nodes and Steps on this talent grid, like the good ol' days.
ComponentItemCommonData = 307
//Items that *aren't* instanced still have important information you need to know = how much of it you have, the itemHash so you can look up their DestinyInventoryItemDefinition, whether they're locked, etc... Both instanced and non-instanced items will have these properties.
ComponentItemPlugStates = 308
//Items that are "Plugs" can be inserted into sockets. This returns statuses about those plugs and why they can/can't be inserted. I hear you giggling, there's nothing funny about inserting plugs. Get your head out of the gutter and pay attention!
ComponentVendors = 400
ComponentVendorCategories = 401
ComponentVendorSales = 402
ComponentKiosks = 500
//Asking for this component will return you the account's Kiosk statuses = that is, what items have been filled out/acquired. But only if you are the currently authenticated user or the user has elected to allow anonymous viewing of its progression info.
)