InventoryState struct
#include <Jazz2/Actors/Player.h>
Collected items and weapon loadout of a player.
Grouped into one value struct so the checkpoint snapshot and its rollback are single assignments instead of a hand-maintained set of parallel fields.
Public variables
-
std::
int32_t Coins - Number of collected coins.
-
std::
int32_t FoodEaten - Amount of eaten food (drives sugar rush).
-
std::
int32_t Gems - Number of collected gems, by gem type.
-
std::
uint16_t WeaponAmmo - Remaining weapon ammo (in 1/256 units), by weapon type;
UINT16_MAXmeans unlimited. -
std::
uint8_t WeaponUpgrades - Weapon upgrade flags, by weapon type.