| 803 | } |
| 804 | |
| 805 | static void importVehicleTail(OpenLoco::Vehicles::VehicleTail& dst, const S5::VehicleTail& src) |
| 806 | { |
| 807 | dst.head = static_cast<EntityId>(src.head); |
| 808 | dst.remainingDistance = src.remainingDistance; |
| 809 | dst.trackAndDirection.track._data = src.trackAndDirection; |
| 810 | dst.subPosition = src.subPosition; |
| 811 | dst.tileX = src.tileX; |
| 812 | dst.tileY = src.tileY; |
| 813 | dst.tileBaseZ = src.tileBaseZ; |
| 814 | dst.trackType = src.trackType; |
| 815 | dst.routingHandle._data = src.routingHandle; |
| 816 | dst.var_38 = static_cast<Vehicles::Flags38>(src.var_38); |
| 817 | dst.nextCarId = static_cast<EntityId>(src.nextCarId); |
| 818 | dst.mode = static_cast<TransportMode>(src.mode); |
| 819 | dst.sound.drivingSoundId = src.drivingSoundId; |
| 820 | dst.sound.drivingSoundVolume = src.drivingSoundVolume; |
| 821 | dst.sound.drivingSoundFrequency = src.drivingSoundFrequency; |
| 822 | dst.sound.objectId = src.objectId; |
| 823 | dst.sound.soundFlags = static_cast<Vehicles::SoundFlags>(src.soundFlags); |
| 824 | dst.sound.soundWindowNumber = src.soundWindowNumber; |
| 825 | dst.sound.soundWindowType = static_cast<Ui::WindowType>(src.soundWindowType); |
| 826 | dst.sound.audioHandle = Audio::AudioHandle::null; |
| 827 | dst.trainDanglingTimeout = src.trainDanglingTimeout; |
| 828 | } |
| 829 | |
| 830 | static OpenLoco::Entity importVehicleEntity(const S5::Entity& src) |
| 831 | { |
no outgoing calls
no test coverage detected