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

Method withCommonality

source/game/StarTerrainDatabase.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46TerrainSelectorParameters TerrainSelectorParameters::withCommonality(float commonality) const {
47 TerrainSelectorParameters copy = *this;
48 copy.commonality = commonality;
49 return copy;
50}
51
52TerrainSelector::TerrainSelector(String type, Json config, TerrainSelectorParameters parameters)
53 : type(std::move(type)), config(std::move(config)), parameters(std::move(parameters)) {}

Callers 1

buildRegionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected