forked from Rox64/NXEngine
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprofile.h
More file actions
40 lines (32 loc) · 662 Bytes
/
Copy pathprofile.h
File metadata and controls
40 lines (32 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _PROFILE_H
#define _PROFILE_H
// how many bytes of data long a profile.dat is.
// used by the replays which use the regular profile functions
// to write a savefile then tack their own data onto the end.
#define PROFILE_LENGTH 0x604
struct Profile
{
int stage;
int songno;
int px, py, pdir;
int hp, maxhp, num_whimstars;
uint32_t equipmask;
int curWeapon;
struct
{
bool hasWeapon;
int level;
int xp;
int ammo, maxammo;
} weapons[WPN_COUNT];
int inventory[MAX_INVENTORY];
int ninventory;
bool flags[NUM_GAMEFLAGS];
struct
{
int slotno;
int scriptno;
} teleslots[NUM_TELEPORTER_SLOTS];
int num_teleslots;
};
#endif