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

Method paint

source/game/StarDungeonGenerator.cpp:285–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 void RandomBrush::paint(Vec2I position, Phase phase, DungeonGeneratorWriter* writer) const {
286 size_t rnd = (size_t)staticRandomI32(m_seed, position[0], position[1]);
287 m_brushes[rnd % m_brushes.size()]->paint(position, phase, writer);
288 }
289
290 void ClearBrush::paint(Vec2I position, Phase phase, DungeonGeneratorWriter* writer) const {
291 if (phase != Phase::ClearPhase)

Callers 1

placeMethod · 0.80

Calls 15

staticRandomI32Function · 0.85
LiquidStoreClass · 0.85
singletonClass · 0.85
isSolidCollidingFunction · 0.85
isRealModFunction · 0.85
biomeMaterialForJsonFunction · 0.85
errorFunction · 0.85
materialDatabaseMethod · 0.80
modIdMethod · 0.80
materialCollisionKindMethod · 0.80
isValidMethod · 0.80

Tested by

no test coverage detected