2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class NeonAPI
|
|
|
|
{
|
|
|
|
private:
|
2020-12-25 16:22:28 -05:00
|
|
|
static RwTexture* neon_texture;
|
|
|
|
|
|
|
|
class NeonData {
|
|
|
|
public:
|
|
|
|
CRGBA color;
|
|
|
|
bool neon_installed;
|
|
|
|
float val;
|
|
|
|
uint timer;
|
|
|
|
bool increment;
|
2021-01-07 16:07:45 -05:00
|
|
|
bool pulsing;
|
2020-12-25 16:22:28 -05:00
|
|
|
|
|
|
|
NeonData(CVehicle *pVeh)
|
|
|
|
{
|
|
|
|
neon_installed = false;
|
|
|
|
val = 0.0;
|
|
|
|
timer = 0;
|
|
|
|
increment = true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static VehicleExtendedData<NeonData> VehNeon;
|
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
public:
|
|
|
|
NeonAPI();
|
|
|
|
~NeonAPI();
|
2020-12-25 16:22:28 -05:00
|
|
|
static void InstallNeon(CVehicle *veh, int red, int green, int blue);
|
2020-12-02 16:19:16 -05:00
|
|
|
static bool IsNeonInstalled(CVehicle *veh);
|
2021-01-07 16:07:45 -05:00
|
|
|
static bool IsPulsingEnabled(CVehicle *veh);
|
|
|
|
static void SetPulsing(CVehicle *veh, bool state);
|
2020-12-25 16:22:28 -05:00
|
|
|
static void RemoveNeon(CVehicle *veh);
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|
|
|
|
|