SlotData

Each Slot in the Inventory, Hotbar or Chest requires an initialized SlotData. SlotData contains essential information about the Item a slot carries, its amount, attachments, bullets, and much more.


  • item: This can be Item_SO, Weapon_SO, BulletsItem_SO, AttachmentIdentifier_SO, etc...

  • amount: Amount of items in the Slot. this is always less or equal to the max stack of the Item.

  • isOriented: If the Inventory is Tetris style, you can rotate the items in the Inventory by pressing "R". If facing the default direction, isOriented = true;

  • bulletsLeftInMagazine: For Weapons only

  • totalBullets: For Weapons only

Attachments ( AttachmentIdentifier_SO ) | For Weapons Only

  • barrel

  • scope

  • stock

  • grip

  • magazine

  • flashlight

  • laser

Last updated