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

Method surfaceLevel

source/game/StarWorldTemplate.cpp:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138float WorldTemplate::surfaceLevel() const {
139 if (auto terrestrialParameters = as<TerrestrialWorldParameters>(m_worldParameters))
140 return terrestrialParameters->surfaceLayer.layerBaseHeight;
141 return m_geometry.size()[1] / 2.0f;
142}
143
144float WorldTemplate::undergroundLevel() const {
145 if (auto terrestrialParameters = as<TerrestrialWorldParameters>(m_worldParameters))

Callers 2

findPlayerStartMethod · 0.80
makeWorldCallbacksFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected