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

Method weatherType

source/game/StarBiomeDatabase.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126WeatherType BiomeDatabase::weatherType(String const& name) const {
127 if (!m_weathers.contains(name))
128 throw BiomeException(strf("No such weather type '{}'", name));
129
130 auto config = m_weathers.get(name);
131
132 try {
133 return WeatherType(config.parameters, config.path);
134 } catch (MapException const& e) {
135 throw BiomeException(strf("Required key not found in weather config {}", config.path), e);
136 }
137}
138
139BiomePtr BiomeDatabase::createBiome(String const& biomeName, uint64_t seed, float verticalMidPoint, float threatLevel) const {
140 if (!m_biomes.contains(biomeName))

Callers 1

updateMethod · 0.80

Calls 4

strfFunction · 0.85
WeatherTypeClass · 0.85
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected