Added memory checks
Some checks failed
Build Dusk / run-tests (push) Successful in 2m6s
Build Dusk / build-linux (push) Successful in 2m6s
Build Dusk / build-psp (push) Failing after 1m47s

This commit is contained in:
2026-01-06 11:02:26 -06:00
parent af5bf987c8
commit 0df7845f2c
19 changed files with 640 additions and 13 deletions

View File

@@ -100,4 +100,18 @@ bool_t inventoryIsFull(const inventory_t *inventory);
* @param item The item ID to check.
* @return true if the item stack is full, false otherwise.
*/
bool_t inventoryItemFull(const inventory_t *inventory, const itemid_t item);
bool_t inventoryItemFull(const inventory_t *inventory, const itemid_t item);
/**
* Sorts the inventory by item ID in ascending order.
*
* @param inventory The inventory to sort.
*/
void inventorySortById(inventory_t *inventory);
/**
* Sorts the inventory by item type in ascending order.
*
* @param inventory The inventory to sort.
*/
void inventorySortByType(inventory_t *inventory);