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

Method setForegroundMod

source/game/StarWorldGeneration.cpp:485–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void DungeonGeneratorWorld::setForegroundMod(Vec2I const& position, ModId mod, MaterialHue hueshift) {
486 ServerTile* tile = m_worldServer->modifyServerTile(position);
487 if (tile) {
488 tile->foregroundMod = mod;
489 tile->foregroundModHueShift = hueshift;
490 }
491}
492
493void DungeonGeneratorWorld::setBackgroundMod(Vec2I const& position, ModId mod, MaterialHue hueshift) {
494 ServerTile* tile = m_worldServer->modifyServerTile(position);

Callers

nothing calls this directly

Calls 1

modifyServerTileMethod · 0.80

Tested by

no test coverage detected