| 33 | } |
| 34 | |
| 35 | ByteArray VehicleDatabase::netStore(VehiclePtr const& vehicle, NetCompatibilityRules rules) const { |
| 36 | DataStreamBuffer ds; |
| 37 | ds.setStreamCompatibilityVersion(rules); |
| 38 | |
| 39 | ds.write(vehicle->baseConfig().getString("name")); |
| 40 | ds.write(vehicle->dynamicConfig()); |
| 41 | return ds.takeData(); |
| 42 | } |
| 43 | |
| 44 | VehiclePtr VehicleDatabase::netLoad(ByteArray const& netStore, NetCompatibilityRules rules) const { |
| 45 | DataStreamBuffer ds(netStore); |
nothing calls this directly
no test coverage detected