summaryrefslogtreecommitdiffstats
path: root/src/control/Restart.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/control/Restart.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/control/Restart.h b/src/control/Restart.h
index 9a4d2155..fb7806db 100644
--- a/src/control/Restart.h
+++ b/src/control/Restart.h
@@ -1,5 +1,7 @@
#pragma once
+#define NUM_RESTART_POINTS 8
+
class CRestart
{
public:
@@ -9,9 +11,26 @@ public:
static void FindClosestHospitalRestartPoint(const CVector &, CVector *, float *);
static void FindClosestPoliceRestartPoint(const CVector &, CVector *, float *);
+ static void Initialise();
+ static void CancelOverrideRestart();
+
+ static void LoadAllRestartPoints(uint8 *buf, uint32 size);
+ static void SaveAllRestartPoints(uint8 *buf, uint32 *size);
- static bool &OverrideHospitalLevel;
- static bool &OverridePoliceStationLevel;
+ static uint8 &OverrideHospitalLevel;
+ static uint8 &OverridePoliceStationLevel;
static bool &bFadeInAfterNextArrest;
static bool &bFadeInAfterNextDeath;
+
+ static bool &bOverrideRestart;
+ static CVector &OverridePosition;
+ static float &OverrideHeading;
+
+ static CVector(&HospitalRestartPoints)[NUM_RESTART_POINTS];
+ static float (&HospitalRestartHeadings)[NUM_RESTART_POINTS];
+ static uint16 &NumberOfHospitalRestarts;
+
+ static CVector (&PoliceRestartPoints)[NUM_RESTART_POINTS];
+ static float (&PoliceRestartHeadings)[NUM_RESTART_POINTS];
+ static uint16 &NumberOfPoliceRestarts;
};