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

Method gravity

source/game/StarWorldTemplate.cpp:558–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558float WorldTemplate::gravity() const {
559 if (m_worldParameters)
560 return m_worldParameters->gravity;
561 return m_templateConfig.getFloat("defaultGravity");
562}
563
564float WorldTemplate::threatLevel() const {
565 if (m_worldParameters)

Callers

nothing calls this directly

Calls 1

getFloatMethod · 0.80

Tested by

no test coverage detected