Skip to content

Commit

Permalink
Change inventory slot defines to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ggGhosTt authored and Drombeys committed Jul 22, 2024
1 parent 4ff72eb commit a87d122
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/xrServerEntities/inventory_space.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
#define CMD_START (1<<0)
#define CMD_STOP (1<<1)

#define NO_ACTIVE_SLOT 0xffffffff
#define KNIFE_SLOT 0
#define PISTOL_SLOT 1
#define RIFLE_SLOT 2
#define GRENADE_SLOT 3
#define APPARATUS_SLOT 4
#define BOLT_SLOT 5
#define OUTFIT_SLOT 6
#define PDA_SLOT 7
#define DETECTOR_SLOT 8
#define TORCH_SLOT 9
#define ARTEFACT_SLOT 10
#define FLARE_SLOT 11
//.#define SLOTS_TOTAL 12
enum {
NO_ACTIVE_SLOT = 0xffffffff,
KNIFE_SLOT = 0,
PISTOL_SLOT,
RIFLE_SLOT,
GRENADE_SLOT,
APPARATUS_SLOT,
BOLT_SLOT,
OUTFIT_SLOT,
PDA_SLOT,
DETECTOR_SLOT,
TORCH_SLOT,
ARTEFACT_SLOT,
FLARE_SLOT,
LAST_SLOT = FLARE_SLOT
};


#define RUCK_HEIGHT 280
Expand Down

0 comments on commit a87d122

Please sign in to comment.