DestinyEquippingBlockDefinition class
Items that can be equipped define this block. It contains information we need to understand how and when the item can be equipped.
- Annotations
-
- @JsonSerializable()
Constructors
- DestinyEquippingBlockDefinition()
-
DestinyEquippingBlockDefinition.fromJson(Map<
String, dynamic> json) -
factory
Properties
- ammoType ↔ DestinyAmmunitionType?
-
Ammo type used by a weapon is no longer determined by the bucket in which it is contained. If the item has an ammo type - i.e. if it is a weapon - this will be the type of ammunition expected.
getter/setter pair
- attributes ↔ EquippingItemBlockAttributes?
-
These are custom attributes on the equippability of the item.
For now, this can only be "equip on acquire", which would mean that the item will be automatically equipped as soon as you pick it up.
getter/setter pair
-
displayStrings
↔ List<
String> ? -
These are strings that represent the possible Game/Account/Character state failure conditions that can occur when trying to equip the item. They match up one-to-one with requiredUnlockExpressions.
getter/setter pair
- equipmentSlotTypeHash ↔ int?
-
An equipped item must be equipped in an Equipment Slot. This is the hash identifier of the DestinyEquipmentSlotDefinition into which it must be equipped.
getter/setter pair
- gearsetItemHash ↔ int?
-
If the item is part of a gearset, this is a reference to that gearset item.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uniqueLabel ↔ String?
-
If defined, this is the label used to check if the item has other items of matching types already equipped.
For instance, when you aren't allowed to equip more than one Exotic Weapon, that's because all exotic weapons have identical uniqueLabels and the game checks the to-be-equipped item's uniqueLabel vs. all other already equipped items (other than the item in the slot that's about to be occupied).
getter/setter pair
- uniqueLabelHash ↔ int?
-
The hash of that unique label. Does not point to a specific definition.
getter/setter pair
Methods
-
asyncToJson(
) → Future< Map< String, dynamic> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
asyncFromJson(
Map< String, dynamic> json) → Future<DestinyEquippingBlockDefinition>