| 2179 | } |
| 2180 | |
| 2181 | void NetworkManagerImpl::queueLevelScript(const std::vector<EmbeddedScript>& scripts) { |
| 2182 | auto info = this->connInfo(); |
| 2183 | if (!info) return; |
| 2184 | |
| 2185 | if (info->m_gameEstablished) { |
| 2186 | info->m_queuedScripts.clear(); |
| 2187 | this->sendLevelScript(scripts); |
| 2188 | } else { |
| 2189 | info->m_queuedScripts = scripts; |
| 2190 | } |
| 2191 | } |
| 2192 | |
| 2193 | void NetworkManagerImpl::sendLevelScript(const std::vector<EmbeddedScript>& scripts) { |
| 2194 | this->sendToGame([&](GameMessage::Builder& msg) { |
no test coverage detected