0x004B97B7
| 778 | |
| 779 | // 0x004B97B7 |
| 780 | uint32_t VehicleHead::getVehicleTotalLength() const |
| 781 | { |
| 782 | auto totalLength = 0; |
| 783 | Vehicle train(head); |
| 784 | for (const auto& car : train.cars) |
| 785 | { |
| 786 | totalLength += car.body->getObject()->getLength(); |
| 787 | } |
| 788 | return totalLength; |
| 789 | } |
| 790 | |
| 791 | uint32_t VehicleHead::getCarCount() const |
| 792 | { |