Alchemy
Loading...
Searching...
No Matches

game_internal.h File Reference

What every part of the game object shares: its includes and the inventory helper two parts use. More...

Go to the source code of this file.

Functions

static void Inventory_CompactSlots (s16 *inventory)
 Keeps occupied slots in order and clears the unused inventory tail, for Inventory_Remove (inventory.c) and InventorySnapshot_Save (snapshot.c).

Detailed Description

What every part of the game object shares: its includes and the inventory helper two parts use.

game.c includes it before the parts, and each part includes it too, so that a part read on its own still resolves.

Definition in file game_internal.h.

Function Documentation

◆ Inventory_CompactSlots()

void Inventory_CompactSlots ( s16 * inventory)
inlinestatic

Keeps occupied slots in order and clears the unused inventory tail, for Inventory_Remove (inventory.c) and InventorySnapshot_Save (snapshot.c).

Definition at line 61 of file game_internal.h.