-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUtil.as
36 lines (31 loc) · 1.48 KB
/
Util.as
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
29
30
31
32
33
34
35
36
#if TMNEXT
bool isIceSurface(EPlugSurfaceMaterialId surface) {
return (surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Ice ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::RoadIce ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Snow ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Concrete);
}
bool isPlasticSurface(EPlugSurfaceMaterialId surface) {
return surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Plastic;
}
bool isDirtSurface(EPlugSurfaceMaterialId surface) {
return (surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Dirt ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::DirtRoad);
}
bool isTarmacSurface(EPlugSurfaceMaterialId surface) {
return (surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Concrete ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Asphalt ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::RoadSynthetic ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::TechMagnetic ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::TechSuperMagnetic);
}
bool isGrassSurface(EPlugSurfaceMaterialId surface) {
return (surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Grass ||
surface == CSceneVehicleVisState::EPlugSurfaceMaterialId::Green);
}
bool isPlasticDirtOrGrass(EPlugSurfaceMaterialId surface) {
return isPlasticSurface(surface) ||
isDirtSurface(surface) ||
isGrassSurface(surface);
}
#endif