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

Method needsForegroundBiomeMod

source/game/StarDungeonGenerator.cpp:1003–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001 }
1002
1003 bool DungeonGeneratorWriter::needsForegroundBiomeMod(Vec2I const& position) {
1004 if (!m_foregroundMaterial.contains(position))
1005 return false;
1006 if (!isBiomeMaterial(m_foregroundMaterial[position].material))
1007 return false;
1008 Vec2I abovePosition(position.x(), position.y() + 1);
1009 if (m_foregroundMaterial.contains(abovePosition))
1010 if (m_foregroundMaterial[abovePosition].material != EmptyMaterialId)
1011 return false;
1012 return true;
1013 }
1014
1015 bool DungeonGeneratorWriter::needsBackgroundBiomeMod(Vec2I const& position) {
1016 if (!m_backgroundMaterial.contains(position))

Callers 1

paintMethod · 0.80

Calls 4

isBiomeMaterialFunction · 0.85
xMethod · 0.80
yMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected