-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVehicleType.cs
More file actions
28 lines (26 loc) · 978 Bytes
/
Copy pathVehicleType.cs
File metadata and controls
28 lines (26 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
namespace FirstPersonCamera
{
[Flags] // Indicates that the enum can be treated as a set of flags (bitwise operations)
internal enum VehicleType : long // Explicitly set the underlying type to long
{
Unknown = 0,
PersonalCar = 1L << 0, // 1
PostVan = 1L << 1, // 2
PoliceVan = 1L << 2, // 4
PoliceCar = 1L << 3, // 8
MaintenanceVehicle = 1L << 4, // 16
Ambulance = 1L << 5, // 32
GarbageTruck = 1L << 6, // 64
FireEngine = 1L << 7, // 128
DeliveryTruck = 1L << 8, // 256
Hearse = 1L << 9, // 512
CargoTransport = 1L << 10, // 1024
Taxi = 1L << 11, // 2048
CarTrailer = 1L << 12, // 4096
Helicopter = 1L << 13, // 8192
Cars = PersonalCar | PoliceCar | Hearse | Taxi,
Vans = PostVan | PoliceVan | Ambulance | MaintenanceVehicle,
Trucks = GarbageTruck | FireEngine | DeliveryTruck | CargoTransport
}
}