]> icculus.org git repositories - btb/d2x.git/blob - main/playsave.h
use hardcoded value instead of sizeof(tmap_info), since size depends on whether edito...
[btb/d2x.git] / main / playsave.h
1 /* $Id: playsave.h,v 1.3 2004-08-28 23:17:45 schaffner Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * Header for playsave.c
18  *
19  */
20
21
22 #ifndef _PLAYSAVE_H
23 #define _PLAYSAVE_H
24
25 #define N_SAVE_SLOTS    10
26 #define GAME_NAME_LEN   25      // +1 for terminating zero = 26
27
28 #ifndef EZERO
29 #define EZERO 0
30 #endif
31
32 extern int Default_leveling_on;
33
34 // update the player's highest level.  returns errno (0 == no error)
35 int update_player_file();
36
37 // Used to save kconfig values to disk.
38 int write_player_file();
39
40 int new_player_config();
41
42 int read_player_file();
43
44 // set a new highest level for player for this mission
45 void set_highest_level(int levelnum);
46
47 // gets the player's highest level from the file for this mission
48 int get_highest_level(void);
49
50 #endif /* _PLAYSAVE_H */