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

Method addCustomTerrainRegion

source/game/StarWorldTemplate.cpp:188–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void WorldTemplate::addCustomTerrainRegion(PolyF poly) {
189 m_customTerrainRegions.append({poly, poly.boundBox(), true});
190 m_blockCache.clear();
191}
192
193void WorldTemplate::addCustomSpaceRegion(PolyF poly) {
194 m_customTerrainRegions.append({poly, poly.boundBox(), false});

Callers 1

markTerrainMethod · 0.80

Calls 3

appendMethod · 0.45
boundBoxMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected