MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / read

Method read

source/game/StarSkyParameters.cpp:164–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void SkyParameters::read(DataStream& ds) {
165 ds >> seed;
166 ds >> dayLength;
167 ds >> nearbyPlanet;
168 ds >> nearbyMoons;
169 ds >> horizonImages;
170 ds >> horizonClouds;
171 ds >> skyType;
172 ds >> skyColoring;
173 ds >> spaceLevel;
174 ds >> surfaceLevel;
175 ds >> sunType;
176 if (ds.streamCompatibilityVersion() >= 3)
177 ds >> settings;
178 else
179 settings = JsonObject();
180}
181
182void SkyParameters::write(DataStream& ds) const {
183 ds << seed;

Callers 1

Calls 1

Tested by

no test coverage detected