| 120 | } |
| 121 | |
| 122 | EntityType* VehicleTypeBank::FindShape(const char* shape) |
| 123 | { |
| 124 | for (int i = 0; i < Size(); i++) |
| 125 | { |
| 126 | EntityType* type = Get(i); |
| 127 | if (type->IsAbstract()) |
| 128 | { |
| 129 | continue; |
| 130 | } |
| 131 | if (strcmpi(type->GetShapeName(), shape)) |
| 132 | { |
| 133 | continue; |
| 134 | } |
| 135 | return type; |
| 136 | } |
| 137 | return nullptr; |
| 138 | } |
| 139 | |
| 140 | EntityType* VehicleTypeBank::FindShapeAndSimulation(const char* shape, const char* sim) |
| 141 | { |
no test coverage detected