30 #include "engines/icb/common/px_common.h" 31 #include "engines/icb/session.h" 32 #include "engines/icb/string_vest.h" 40 #define SAVE_GAME_MAX_SIZE (8192 - 256 - 8) 43 #define MAX_sessions 5 44 #define MAX_fvars (MAX_voxel_list * 4) 49 int32 lvar_value[MAX_lvars];
52 _object_status status_flag;
57 char session__name[ENGINE_STRING_LEN];
59 uint32 number_of_micro_objects;
62 int32 fvars[MAX_fvars];
65 enum __load_result { __NO_SUCH_FILE, __WRONG_VERSION, __GLOBAL_MISMATCH, __LOAD_OK };
73 void ___init_mission(
const char *mission,
const char *session);
74 void ___delete_mission();
78 inline const char *Fetch_mission_name();
79 inline const char *Fetch_h_mission_name();
80 inline const char *Fetch_tiny_mission_name();
81 inline const char *Fetch_tiny_session_name();
83 void Create_display();
84 void Set_new_session_name(
const char *ascii);
85 void Set_init_nico_name(
const char *ascii);
86 bool8 Is_there_init_nico();
87 const char *Return_init_nico_name();
88 void Reset_init_nico();
89 void Save_micro_session();
90 void Restore_micro_session_coords(bool8 from_disk);
91 void Restore_micro_session_vars();
92 void Save_game_position(
const char *filename,
const char *slot_label, uint32 timeplayed);
100 uint32 camera_follow_id_overide;
104 int32 remora_save_mode;
112 uint32 resman_logic_time;
116 uint32 xtra_mega_time;
118 uint32 nActorsConsidered;
121 char new_session_name[TINY_NAME_LEN];
122 char init_nico_name[TINY_NAME_LEN];
123 int32 old_hits_value;
132 bool8 inited_globals;
135 char mission_name[ENGINE_STRING_LEN];
136 char tiny_mission_name[TINY_NAME_LEN];
137 char tiny_session_name[TINY_NAME_LEN];
139 uint32 mission_terminate;
140 char h_mission_name[8];
142 uint32 mission_status;
145 uint32 number_sessions_saved;
152 bool8 Setup_new_mission(
const char *mission_name,
const char *session_name);
153 bool8 Setup_camtest_mission();
154 __load_result Load_game(
const char *filename);
156 inline const char *_mission::Fetch_mission_name() {
return (mission_name); }
158 inline const char *_mission::Fetch_tiny_mission_name() {
return (tiny_mission_name); }
160 inline const char *_mission::Fetch_tiny_session_name() {
return (tiny_session_name); }
162 inline const char *_mission::Fetch_h_mission_name() {
return (h_mission_name); }
Definition: session.h:173