bungie-net-core
Version:
An easy way to interact with the Bungie.net API
50 lines (49 loc) • 2.21 kB
TypeScript
/**
* Indicates how a socket is populated, and where you should look for valid plug
* data.
*
* This is a flags enumeration/bitmask field, as you may have to look in multiple
* sources across multiple components for valid plugs.
*
* For instance, a socket could have plugs that are sourced from its own
* definition, as well as plugs that are sourced from Character-scoped AND profile-
* scoped Plug Sets. Only by combining plug data for every indicated source will
* you be able to know all of the plugs available for a socket.
*
* This enum represents a set of flags - use bitwise operators to check which of
* these match your value.
* @see {@link https://bungie-net.github.io/#/components/schemas/Destiny.SocketPlugSources}
*/
export declare const SocketPlugSources: {
/** If there's no way we can detect to insert new plugs. */
readonly None: 0;
/**
* Use plugs found in the player's inventory, based on the socket type rules (see
* DestinySocketTypeDefinition for more info)
*
* Note that a socket - like Shaders - can have *both* reusable plugs and inventory
* items inserted theoretically.
*/
readonly InventorySourced: 1;
/**
* Use the DestinyItemSocketsComponent.sockets.reusablePlugs property to determine
* which plugs are valid for this socket. This may have to be combined with other
* sources, such as plug sets, if those flags are set.
*
* Note that "Reusable" plugs may not necessarily come from a plug set, nor from
* the "reusablePlugItems" in the socket's Definition data. They can sometimes be "
* randomized" in which case the only source of truth at the moment is still the
* runtime DestinyItemSocketsComponent.sockets.reusablePlugs property.
*/
readonly ReusablePlugItems: 2;
/**
* Use the ProfilePlugSets (DestinyProfileResponse.profilePlugSets) component data
* to determine which plugs are valid for this socket.
*/
readonly ProfilePlugSet: 4;
/**
* Use the CharacterPlugSets (DestinyProfileResponse.characterPlugSets) component
* data to determine which plugs are valid for this socket.
*/
readonly CharacterPlugSet: 8;
};