CloudThermal CloudThermal::Load(Deserialiser &s) { s.Read8(); const unsigned client_key = s.Read64(); std::chrono::steady_clock::time_point time; s >> time; SkyLinesTracking::Thermal t; s.ReadT(t); CloudThermal thermal(client_key, AGeoPoint(SkyLinesTracking::ImportGeoPoint(t.bottom_location), FromBE16(t.bottom_altitude)), AGeoPoint(SkyLinesTracking::ImportGeoPoint(t.top_location), FromBE16(t.top_altitude)), FromBE16(t.lift) / 256.); thermal.time = time; return thermal; }
void erosion() { for (int i = 0; i < erosion_steps; ++i) thermal(); }