Struct WeaponSlots
Represents the weapon slots of a player, containing data for each weapon slot.
public readonly struct WeaponSlots
- Inherited Members
Constructors
WeaponSlots(WeaponSlotData[])
Initializes a new instance of the WeaponSlots struct.
public WeaponSlots(WeaponSlotData[] data)
Parameters
dataWeaponSlotData[]The array of weapon slot data.
Exceptions
- ArgumentException
Thrown if the length of
datais not equal to MAX_WEAPON_SLOTS.
Fields
Data
The array of weapon slot data, where each index corresponds to a specific weapon slot.
public readonly WeaponSlotData[] Data
Field Value
MAX_WEAPON_SLOTS
The maximum number of weapon slots available.
public const int MAX_WEAPON_SLOTS = 13