93 lines
2.3 KiB
C
93 lines
2.3 KiB
C
/*
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
*/
|
|
|
|
/*
|
|
*
|
|
* Header for playsave.c
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef _PLAYSAVE_H
|
|
#define _PLAYSAVE_H
|
|
|
|
#include "kconfig.h"
|
|
#include "mission.h"
|
|
#include "weapon.h"
|
|
#include "multi.h"
|
|
#include "escort.h"
|
|
|
|
#define N_SAVE_SLOTS 10
|
|
#define GAME_NAME_LEN 25 // +1 for terminating zero = 26
|
|
|
|
typedef struct hli {
|
|
char Shortname[9];
|
|
ubyte LevelNum;
|
|
} hli;
|
|
|
|
typedef struct player_config
|
|
{
|
|
ubyte ControlType;
|
|
ubyte PrimaryOrder[MAX_PRIMARY_WEAPONS+1];
|
|
ubyte SecondaryOrder[MAX_SECONDARY_WEAPONS+1];
|
|
ubyte KeySettings[CONTROL_MAX_TYPES][MAX_CONTROLS];
|
|
ubyte KeySettingsD2X[MAX_D2X_CONTROLS];
|
|
int DefaultDifficulty;
|
|
int AutoLeveling;
|
|
short NHighestLevels;
|
|
hli HighestLevels[MAX_MISSIONS];
|
|
ubyte MouseSensitivity;
|
|
ubyte JoystickSensitivity;
|
|
int JoystickDeadzone;
|
|
int CockpitMode;
|
|
int Cockpit3DView[2];
|
|
char NetworkMessageMacro[4][MAX_MESSAGE_LEN];
|
|
int NetlifeKills;
|
|
int NetlifeKilled;
|
|
ubyte ReticleOn;
|
|
int MissileViewEnabled;
|
|
int HeadlightActiveDefault;
|
|
int GuidedInBigWindow;
|
|
char GuidebotName[GUIDEBOT_NAME_LEN+1];
|
|
char GuidebotNameReal[GUIDEBOT_NAME_LEN+1];
|
|
int HudMode;
|
|
int EscortHotKeys;
|
|
int PersistentDebris;
|
|
int OglAlphaEffects;
|
|
int OglReticle;
|
|
int OglPRShot;
|
|
} __pack__ player_config;
|
|
|
|
extern struct player_config PlayerCfg;
|
|
|
|
#ifndef EZERO
|
|
#define EZERO 0
|
|
#endif
|
|
|
|
extern int Default_leveling_on;
|
|
|
|
// Used to save kconfig values to disk.
|
|
int write_player_file();
|
|
|
|
int new_player_config();
|
|
|
|
int read_player_file();
|
|
|
|
// set a new highest level for player for this mission
|
|
void set_highest_level(int levelnum);
|
|
|
|
// gets the player's highest level from the file for this mission
|
|
int get_highest_level(void);
|
|
|
|
#endif /* _PLAYSAVE_H */
|