🎒Item Struct (FItem)

GitBook tip: A succinct video overview is a great way to introduce folks to your product. Embed a Loom, Vimeo or YouTube video and you're good to go! We love this video from the fine folks at Loom as a perfect example of a succinct feature overview.

Overview

A lightweight container representing an item in the inventory, including stack count and reference to its definition.

Key Methods:

  • IsValid(): Checks if the item is valid.

  • CanStack(): Returns true if the stack isn't full.

  • GetStackSpace(): How many more items can be stacked.

  • AddQuantity(uint8 Amount): Adds to the stack, returns remainder.

  • RemoveQuantity(uint8 Amount): Removes from the stack, returns actual amount removed.

Last updated