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

Method setBackgroundMod

source/game/StarWorldGeneration.cpp:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void DungeonGeneratorWorld::setBackgroundMod(Vec2I const& position, ModId mod, MaterialHue hueshift) {
494 ServerTile* tile = m_worldServer->modifyServerTile(position);
495 if (tile) {
496 tile->backgroundMod = mod;
497 tile->foregroundModHueShift = hueshift;
498 }
499}
500
501void DungeonGeneratorWorld::setTileProtection(DungeonId dungeonId, bool isProtected) {
502 m_worldServer->setTileProtection(dungeonId, isProtected);

Callers

nothing calls this directly

Calls 1

modifyServerTileMethod · 0.80

Tested by

no test coverage detected