std::unique_ptr<Court> AvatarsFactory::createCourt() const { auto playerMap = createPlayerMap(); auto ball = createBall(); auto courtSettings = mSettingsParser->retrieveCourtSettings(); return std::unique_ptr<Court>(new Court(courtSettings, std::move(playerMap), std::move(ball))); }
QByteArray Dialog::prepareMessage() { QVariantMap preview; preview.insert("token", m_ui->tokenLineEdit->text()); preview.insert("game", "URT_411"); preview.insert("command", m_ui->commandCombo->currentText()); preview.insert("playerInfo", createPlayerMap()); QJson::Serializer serializer; return serializer.serialize(preview); }