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

Method checkOceanLiquid

source/game/StarWorldGeneration.cpp:515–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515bool DungeonGeneratorWorld::checkOceanLiquid(Vec2I const& position) {
516 auto const& block = m_worldServer->worldTemplate()->blockInfo(position[0], position[1]);
517 return block.oceanLiquid != EmptyLiquidId && position[1] < block.oceanLiquidLevel;
518}
519
520DungeonId DungeonGeneratorWorld::getDungeonIdAt(Vec2I const& position) {
521 return m_worldServer->getServerTile(position).dungeonId;

Callers 1

checkLiquidMethod · 0.80

Calls 2

blockInfoMethod · 0.80
worldTemplateMethod · 0.80

Tested by

no test coverage detected