1static void CheckLocalCloudBaseLifecycle(
Viewscreen& view,
grid& terrain)
2{
9 LoadTerrain(view,{1024,1016},0,450);
14 const int x=9,y=5,index=x*64+y;
15 auto cell=frame.grid->cells[y*64+x];
16 Check(Near(cell.base,(750+index)*.001f) && Near(cell.turbulence,float((index/7)%256)/255)
17 && cell.coverage==1,"cloud grid transposed, wrong terrain join, or wrong scalar units");
18 Check(frame.grid->cells[31*64].coverage==0,"missing terrain supplied invented cloud base");
23 Check(cell.base>frame.grid->cells[y*64+x].base && cell.base<frame.grid->cells[y*64+x].base+.01f,"terrain-only refresh snapped or ignored cloud base");
52}
RiseMath::Vector3 CalculatePlanar(short u, short v)
float cloudCeilingOverrideKm
CloudBaseWeather::Store cloudBaseWeather
void QueuePlotWeatherReset()
bool plotWeatherSuspended
uint16_t weatherRequestToken
float visibilityOverrideKm
CloudVolume::Parameters cloudParameters
void UpdateCloudBaseWeather(float elapsed)
void ResetPlotWeatherConnection()
PlotWeather::Store plotWeather
s_network_objects playerships[MAX_SCAN]
bool Active(const Frame &frame)
CloudBaseWeather::Frame localBase
RiseMath::Vector3 position