| 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})); |
| 247 | |
| 248 | auto objectDatabase = Root::singleton().objectDatabase(); |
| 249 | if (auto object = objectDatabase->createForPlacement(m_worldServer, objectName, pos, direction, parameters)) |
| 250 | m_worldServer->addEntity(object); |
| 251 | else |
| 252 | Logger::warn("Failed to place dungeon object: {} direction: {} position: {}", objectName, (int)direction, pos); |
| 253 | } |
| 254 | |
| 255 | void DungeonGeneratorWorld::placeVehicle(Vec2F const& pos, String const& vehicleName, Json const& parameters) { |
| 256 | m_worldServer->signalRegion(RectI::withSize(Vec2I(pos), {1, 1})); |
nothing calls this directly
no test coverage detected