Class EquipmentGadget
Represents an equipment gadget
public class EquipmentGadget : Gadget
- Inheritance
-
EquipmentGadget
- Inherited Members
- Extension Methods
Constructors
EquipmentGadget(ICustomPrefab)
Constructs an equipment gadget.
public EquipmentGadget(ICustomPrefab prefab)
Parameters
prefab
ICustomPrefab- The custom prefab to operate on.
EquipmentGadget(ICustomPrefab, EquipmentType)
Constructs an equipment gadget.
public EquipmentGadget(ICustomPrefab prefab, EquipmentType equipmentType)
Parameters
prefab
ICustomPrefab- The custom prefab to operate on.
equipmentType
EquipmentType- The type of equipment slot this item can fit into.
Properties
EquipmentType
The type of equipment slot this item can fit into.
public required EquipmentType EquipmentType { get; set; }
Property Value
- EquipmentType
QuickSlotType
The way the game should treat this item as when in a quick slot.
public QuickSlotType QuickSlotType { get; set; }
Property Value
- QuickSlotType
Methods
Build()
Where the data actually gets registered to the game.
This is called after prefab register and PostRegisters in Register().
This is called after prefab register and PostRegisters in Register().
protected override void Build()
WithQuickSlotType(QuickSlotType)
Sets the way the game should treat this item as when in a quick slot.
public EquipmentGadget WithQuickSlotType(QuickSlotType quickSlotType)
Parameters
quickSlotType
QuickSlotType- The quick slot type
Returns
- EquipmentGadget
- A reference to this instance after the operation has completed.