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

Method addLayer

source/game/StarWorldLayout.cpp:866–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void WorldLayout::addLayer(uint64_t seed, int yStart, RegionParams regionParams) {
867 WorldLayer layer;
868 layer.yStart = yStart;
869
870 WorldRegionPtr region = make_shared<WorldRegion>(buildRegion(seed, regionParams));
871 layer.cells.append(region);
872
873 m_layers.append(layer);
874}
875
876void WorldLayout::addLayer(uint64_t seed, int yStart, int yBase, String const& primaryBiome,
877 RegionParams primaryRegionParams, RegionParams primarySubRegionParams,

Callers 3

buildAsteroidsLayoutMethod · 0.80

Calls 15

singletonClass · 0.85
staticRandomFloatRangeFunction · 0.85
StarExceptionClass · 0.85
staticRandomI32RangeFunction · 0.85
toBoolMethod · 0.80
jsonMethod · 0.80
assetsMethod · 0.80
toIntMethod · 0.80
appendMethod · 0.45
addMethod · 0.45
sizeMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected