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

Method write

source/game/StarWorldParameters.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void VisitableWorldParameters::write(DataStream& ds) const {
77 ds << typeName;
78 ds << threatLevel;
79 ds << worldSize;
80 ds << gravity;
81 ds << airless;
82 ds.writeContainer<WeatherPool::ItemsList>(weatherPool.items());
83 ds << environmentStatusEffects;
84 ds << overrideTech;
85 ds << globalDirectives;
86 ds << beamUpRule;
87 ds << disableDeathDrops;
88 ds << terraformed;
89 ds << worldEdgeForceRegions;
90}
91
92TerrestrialWorldParameters::TerrestrialWorldParameters(Json const& store) : VisitableWorldParameters(store) {
93 auto loadTerrestrialRegion = [](Json const& config) {

Callers 1

Calls 3

writeFunction · 0.85
itemsMethod · 0.80
writeContainerMethod · 0.80

Tested by

no test coverage detected