mirror of https://github.com/nmlgc/ReC98.git
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
enum key_mode_t {
|
|
KM_KEY_KEY,
|
|
KM_JOY_KEY,
|
|
KM_KEY_JOY
|
|
};
|
|
|
|
enum vs_mode_t {
|
|
VS_1P_CPU = 0,
|
|
VS_1P_2P = 1,
|
|
VS_CPU_CPU = 2,
|
|
};
|
|
|
|
enum game_mode_t {
|
|
GM_NONE = 0,
|
|
GM_STORY = 1,
|
|
GM_DEMO = 0x7F,
|
|
GM_VS = 0x80,
|
|
GM_VS_1P_CPU = GM_VS + VS_1P_CPU,
|
|
GM_VS_1P_2P = GM_VS + VS_1P_2P,
|
|
GM_VS_CPU_CPU = GM_VS + VS_CPU_CPU,
|
|
};
|
|
|
|
// Won't enter [score_last[0]] into YUME.NEM, even if it's high enough for a
|
|
// place. Also used for just showing the high scores from the main menu.
|
|
#define STAGE_NONE -1
|
|
#define STAGE_ALL 99
|
|
#define STAGE_COUNT 9
|
|
|
|
#define CREDIT_LIVES 2
|
|
|
|
#define DEMO_COUNT 4
|
|
|
|
#define RES_ID "YUMEConfig"
|
|
typedef struct {
|
|
char id[RES_ID_LEN];
|
|
unsigned char rank;
|
|
playchar_paletted_t playchar_paletted[PLAYER_COUNT];
|
|
bool is_cpu[PLAYER_COUNT];
|
|
long rand;
|
|
int8_t unused_1;
|
|
unsigned char bgm_mode;
|
|
unsigned char key_mode;
|
|
unsigned char pid_winner;
|
|
score_lebcd_t score_last[PLAYER_COUNT];
|
|
unsigned char game_mode;
|
|
playchar_paletted_t story_opponents[STAGE_COUNT];
|
|
int8_t unused_2;
|
|
unsigned char story_stage;
|
|
unsigned char story_lives;
|
|
bool show_score_menu;
|
|
unsigned char rem_credits;
|
|
bool op_skip_animation;
|
|
unsigned char skill;
|
|
unsigned char demo_num; // 0 = no demo active
|
|
int8_t unused_3[198];
|
|
} resident_t;
|