UNPKG

bungie-net-core

Version:

An easy way to interact with the Bungie.net API

64 lines (63 loc) 3.07 kB
/** * 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. * * Contact: support@bungie.com * * NOTE: This class is auto generated by the bungie-net-core code generator program * Repository: {@link https://github.com/owens1127/bungie-net-core} * Do not edit these files manually. */ import { DestinyDisplayPropertiesDefinition } from '../Common/DestinyDisplayPropertiesDefinition'; import { DestinySocketCategoryStyle } from '../../DestinySocketCategoryStyle'; /** * Sockets on an item are organized into Categories visually. * * You can find references to the socket category defined on an item's * DestinyInventoryItemDefinition.sockets.socketCategories property. * * This has the display information for rendering the categories' header, and a * hint for how the UI should handle showing this category. * * The shitty thing about this, however, is that the socket categories' UI style * can be overridden by the item's UI style. For instance, the Socket Category used * by Emote Sockets says it's "consumable," but that's a lie: they're all reusable, * and overridden by the detail UI pages in ways that we can't easily account for * in the API. * * As a result, I will try to compile these rules into the individual sockets on * items, and provide the best hint possible there through the plugSources property. * In the future, I may attempt to use this information in conjunction with the * item to provide a more usable UI hint on the socket layer, but for now improving * the consistency of plugSources is the best I have time to provide. (See https:// * github.com/Bungie-net/api/issues/522 for more info) * @see {@link https://bungie-net.github.io/#/components/schemas/Destiny.Definitions.Sockets.DestinySocketCategoryDefinition} */ export interface DestinySocketCategoryDefinition { readonly displayProperties: DestinyDisplayPropertiesDefinition; /** * A string hinting to the game's UI system about how the sockets in this category * should be displayed. * * BNet doesn't use it: it's up to you to find valid values and make your own * special UI if you want to honor this category style. */ readonly uiCategoryStyle: number; /** Same as uiCategoryStyle, but in a more usable enumeration form. */ readonly categoryStyle: DestinySocketCategoryStyle; /** * The unique identifier for this entity. Guaranteed to be unique for the type of * entity, but not globally. * * When entities refer to each other in Destiny content, it is this hash that they * are referring to. */ readonly hash: number; /** The index of the entity as it was found in the investment tables. */ readonly index: number; /** * If this is true, then there is an entity with this identifier/type combination, * but BNet is not yet allowed to show it. Sorry! */ readonly redacted: boolean; }