2019-06-30 21:06:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CEntity;
|
2019-08-11 20:11:54 +03:00
|
|
|
class CVehicle;
|
2019-06-30 21:06:55 +02:00
|
|
|
|
2019-08-08 03:21:38 +03:00
|
|
|
enum {
|
|
|
|
PED_LIGHTS_WALK,
|
|
|
|
PED_LIGHTS_WALK_BLINK,
|
|
|
|
PED_LIGHTS_DONT_WALK,
|
|
|
|
};
|
|
|
|
|
2019-06-30 21:06:55 +02:00
|
|
|
class CTrafficLights
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void DisplayActualLight(CEntity *ent);
|
2019-10-19 01:23:40 +03:00
|
|
|
static void ScanForLightsOnMap(void);
|
2019-08-08 03:21:38 +03:00
|
|
|
static uint8 LightForPeds(void);
|
2019-08-11 20:11:54 +03:00
|
|
|
static bool ShouldCarStopForLight(CVehicle*, bool);
|
|
|
|
static bool ShouldCarStopForBridge(CVehicle*);
|
2019-06-30 21:06:55 +02:00
|
|
|
};
|