SilentPatch/SilentPatch/StoredCar.h
2017-09-27 23:12:05 +02:00

30 lines
No EOL
572 B
C++

#pragma once
#include "General.h"
#if _GTA_III
#include "../SilentPatchIII/VehicleIII.h"
#elif _GTA_VC
#include "../SilentPatchVC/VehicleVC.h"
#endif
class CStoredCar
{
private:
int32_t m_modelIndex;
CVector m_position;
CVector m_angle;
uint32_t m_handlingFlags;
uint8_t m_nPrimaryColor;
uint8_t m_nSecondaryColor;
int8_t m_nRadioStation;
int8_t m_anCompsToUse[2];
uint8_t m_bombType;
public:
static CVehicle* (CStoredCar::*orgRestoreCar)();
CVehicle* RestoreCar_SilentPatch();
};
static_assert(sizeof(CStoredCar) == 0x28, "Wrong size: CStoredCar");