/
model_all_of_destiny_definitions_destiny_inventory_item_definition_action.go
42 lines (41 loc) · 3.03 KB
/
model_all_of_destiny_definitions_destiny_inventory_item_definition_action.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
/*
* Bungie.Net API
*
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* API version: 2.18.0
* Contact: support@bungie.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package D2Client
// If the item can be \"used\", this block will be non-null, and will have data related to the action performed when using the item. (Guess what? 99% of the time, this action is \"dismantle\". Shocker)
type AllOfDestinyDefinitionsDestinyInventoryItemDefinitionAction struct {
// Localized text for the verb of the action being performed.
VerbName string `json:"verbName,omitempty"`
// Localized text describing the action being performed.
VerbDescription string `json:"verbDescription,omitempty"`
// The content has this property, however it's not entirely clear how it is used.
IsPositive bool `json:"isPositive,omitempty"`
// If the action has an overlay screen associated with it, this is the name of that screen. Unfortunately, we cannot return the screen's data itself.
OverlayScreenName string `json:"overlayScreenName,omitempty"`
// The icon associated with the overlay screen for the action, if any.
OverlayIcon string `json:"overlayIcon,omitempty"`
// The number of seconds to delay before allowing this action to be performed again.
RequiredCooldownSeconds int32 `json:"requiredCooldownSeconds,omitempty"`
// If the action requires other items to exist or be destroyed, this is the list of those items and requirements.
RequiredItems []DestinyDefinitionsDestinyItemActionRequiredItemDefinition `json:"requiredItems,omitempty"`
// If performing this action earns you Progression, this is the list of progressions and values granted for those progressions by performing this action.
ProgressionRewards []DestinyDefinitionsDestinyProgressionRewardDefinition `json:"progressionRewards,omitempty"`
// The internal identifier for the action.
ActionTypeLabel string `json:"actionTypeLabel,omitempty"`
// Theoretically, an item could have a localized string for a hint about the location in which the action should be performed. In practice, no items yet have this property.
RequiredLocation string `json:"requiredLocation,omitempty"`
// The identifier hash for the Cooldown associated with this action. We have not pulled this data yet for you to have more data to use for cooldowns.
RequiredCooldownHash int32 `json:"requiredCooldownHash,omitempty"`
// If true, the item is deleted when the action completes.
DeleteOnAction bool `json:"deleteOnAction,omitempty"`
// If true, the entire stack is deleted when the action completes.
ConsumeEntireStack bool `json:"consumeEntireStack,omitempty"`
// If true, this action will be performed as soon as you earn this item. Some rewards work this way, providing you a single item to pick up from a reward-granting vendor in-game and then immediately consuming itself to provide you multiple items.
UseOnAcquire bool `json:"useOnAcquire,omitempty"`
}