| 232 | } |
| 233 | |
| 234 | void DungeonGeneratorWorld::setBackgroundMaterial(Vec2I const& position, MaterialId material, MaterialHue hueshift, MaterialColorVariant colorVariant) { |
| 235 | if (ServerTile* tile = m_worldServer->modifyServerTile(position)) { |
| 236 | m_worldServer->modifyLiquid(position, EmptyLiquidId, 0); |
| 237 | tile->background = material; |
| 238 | tile->backgroundHueShift = hueshift; |
| 239 | tile->backgroundColorVariant = colorVariant; |
| 240 | tile->backgroundMod = NoModId; |
| 241 | tile->backgroundModHueShift = MaterialHue(); |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | void DungeonGeneratorWorld::placeObject(Vec2I const& pos, String const& objectName, Star::Direction direction, Json const& parameters) { |
| 246 | m_worldServer->signalRegion(RectI::withSize(pos, {1, 1})); |
nothing calls this directly
no test coverage detected