CheatMenuSA/src/NeonAPI.h

38 lines
680 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
class NeonAPI
{
private:
static RwTexture* neon_texture;
class NeonData {
public:
CRGBA color;
bool neon_installed;
float val;
uint timer;
bool increment;
bool pulsing;
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();
static void InstallNeon(CVehicle *veh, int red, int green, int blue);
2020-12-02 16:19:16 -05:00
static bool IsNeonInstalled(CVehicle *veh);
static bool IsPulsingEnabled(CVehicle *veh);
static void SetPulsing(CVehicle *veh, bool state);
static void RemoveNeon(CVehicle *veh);
2020-12-02 16:19:16 -05:00
};