| 2200 | |
| 2201 | template<> |
| 2202 | void ParkFile::ReadWriteEntity(OrcaStream& os, OrcaStream::ChunkStream& cs, Vehicle& entity) |
| 2203 | { |
| 2204 | ReadWriteEntityCommon(cs, entity); |
| 2205 | cs.readWrite(entity.SubType); |
| 2206 | cs.readWrite(entity.pitch); |
| 2207 | cs.readWrite(entity.roll); |
| 2208 | cs.readWrite(entity.remaining_distance); |
| 2209 | cs.readWrite(entity.velocity); |
| 2210 | cs.readWrite(entity.acceleration); |
| 2211 | cs.readWrite(entity.ride); |
| 2212 | cs.readWrite(entity.vehicle_type); |
| 2213 | cs.readWrite(entity.colours.Body); |
| 2214 | cs.readWrite(entity.colours.Trim); |
| 2215 | cs.readWrite(entity.track_progress); |
| 2216 | cs.readWrite(entity.BoatLocation); |
| 2217 | cs.readWrite(entity.TrackTypeAndDirection); |
| 2218 | cs.readWrite(entity.TrackLocation.x); |
| 2219 | cs.readWrite(entity.TrackLocation.y); |
| 2220 | cs.readWrite(entity.TrackLocation.z); |
| 2221 | cs.readWrite(entity.next_vehicle_on_train); |
| 2222 | cs.readWrite(entity.prev_vehicle_on_ride); |
| 2223 | cs.readWrite(entity.next_vehicle_on_ride); |
| 2224 | cs.readWrite(entity.var_44); |
| 2225 | cs.readWrite(entity.mass); |
| 2226 | if (cs.getMode() == OrcaStream::Mode::reading && os.getHeader().targetVersion < 18) |
| 2227 | { |
| 2228 | uint16_t updateFlags = 0; |
| 2229 | cs.readWrite(updateFlags); |
| 2230 | entity.flags.holder = updateFlags; |
| 2231 | } |
| 2232 | else |
| 2233 | { |
| 2234 | cs.readWrite(entity.flags.holder); |
| 2235 | } |
| 2236 | cs.readWrite(entity.SwingSprite); |
| 2237 | cs.readWrite(entity.current_station); |
| 2238 | cs.readWrite(entity.current_time); |
| 2239 | cs.readWrite(entity.crash_z); |
| 2240 | cs.readWrite(entity.status); |
| 2241 | cs.readWrite(entity.sub_state); |
| 2242 | for (size_t i = 0; i < std::size(entity.peep); i++) |
| 2243 | { |
| 2244 | cs.readWrite(entity.peep[i]); |
| 2245 | cs.readWrite(entity.peep_tshirt_colours[i]); |
| 2246 | } |
| 2247 | cs.readWrite(entity.num_seats); |
| 2248 | cs.readWrite(entity.num_peeps); |
| 2249 | cs.readWrite(entity.next_free_seat); |
| 2250 | cs.readWrite(entity.restraints_position); |
| 2251 | cs.readWrite(entity.crash_x); |
| 2252 | cs.readWrite(entity.sound2_flags); |
| 2253 | cs.readWrite(entity.spin_sprite); |
| 2254 | cs.readWrite(entity.sound1_id); |
| 2255 | cs.readWrite(entity.sound1_volume); |
| 2256 | cs.readWrite(entity.sound2_id); |
| 2257 | cs.readWrite(entity.sound2_volume); |
| 2258 | cs.readWrite(entity.dopplerShift); |
| 2259 | cs.readWrite(entity.time_waiting); |
nothing calls this directly
no test coverage detected