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

Method undergroundLevel

source/game/StarWorldTemplate.cpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144float WorldTemplate::undergroundLevel() const {
145 if (auto terrestrialParameters = as<TerrestrialWorldParameters>(m_worldParameters))
146 return terrestrialParameters->surfaceLayer.layerMinHeight;
147 else if (auto floatingDungeonParameters = as<FloatingDungeonWorldParameters>(m_worldParameters))
148 return floatingDungeonParameters->dungeonUndergroundLevel;
149 return 0.0f;
150}
151
152bool WorldTemplate::inSurfaceLayer(Vec2I const& position) const {
153 if (auto terrestrialParameters = as<TerrestrialWorldParameters>(m_worldParameters)) {

Callers 8

drainLevelMethod · 0.80
lightingTileGatherMethod · 0.80
initWorldMethod · 0.80
isUndergroundMethod · 0.80
lightLevelFunction · 0.80
setPlanetTypeMethod · 0.80
initMethod · 0.80
isUndergroundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected