NXEngine v1.0.0.6
[NXEngine.git] / profile.h
blob0e7904836cb81ecaf1fbb252d7cbaae57e04d4b3
2 #ifndef _PROFILE_H
3 #define _PROFILE_H
5 // how many bytes of data long a profile.dat is.
6 // used by the replays which use the regular profile functions
7 // to write a savefile then tack their own data onto the end.
8 #define PROFILE_LENGTH 0x604
10 struct Profile
12 int stage;
13 int songno;
14 int px, py, pdir;
15 int hp, maxhp, num_whimstars;
16 uint32_t equipmask;
18 int curWeapon;
19 struct
21 bool hasWeapon;
22 int level;
23 int xp;
24 int ammo, maxammo;
25 } weapons[WPN_COUNT];
27 int inventory[MAX_INVENTORY];
28 int ninventory;
30 bool flags[NUM_GAMEFLAGS];
32 struct
34 int slotno;
35 int scriptno;
36 } teleslots[NUM_TELEPORTER_SLOTS];
37 int num_teleslots;
40 #endif