2019-08-03 13:01:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-10 09:20:53 +00:00
|
|
|
#define NUM_RESTART_POINTS 8
|
|
|
|
|
2019-08-03 13:01:13 +00:00
|
|
|
class CRestart
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void AddPoliceRestartPoint(const CVector&, float);
|
|
|
|
static void AddHospitalRestartPoint(const CVector&, float);
|
|
|
|
static void OverrideNextRestart(const CVector&, float);
|
2019-10-07 21:29:30 +00:00
|
|
|
|
|
|
|
static void FindClosestHospitalRestartPoint(const CVector &, CVector *, float *);
|
|
|
|
static void FindClosestPoliceRestartPoint(const CVector &, CVector *, float *);
|
2019-10-10 09:20:53 +00:00
|
|
|
static void Initialise();
|
|
|
|
static void CancelOverrideRestart();
|
|
|
|
|
|
|
|
static void LoadAllRestartPoints(uint8 *buf, uint32 size);
|
|
|
|
static void SaveAllRestartPoints(uint8 *buf, uint32 *size);
|
2019-10-07 21:29:30 +00:00
|
|
|
|
2019-10-10 09:20:53 +00:00
|
|
|
static uint8 &OverrideHospitalLevel;
|
|
|
|
static uint8 &OverridePoliceStationLevel;
|
2019-10-07 21:29:30 +00:00
|
|
|
static bool &bFadeInAfterNextArrest;
|
|
|
|
static bool &bFadeInAfterNextDeath;
|
2019-10-10 09:20:53 +00:00
|
|
|
|
|
|
|
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;
|
2019-08-03 13:01:13 +00:00
|
|
|
};
|