MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / queueLevelScript

Method queueLevelScript

src/core/net/NetworkManagerImpl.cpp:2181–2191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2179}
2180
2181void 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
2193void NetworkManagerImpl::sendLevelScript(const std::vector<EmbeddedScript>& scripts) {
2194 this->sendToGame([&](GameMessage::Builder& msg) {

Callers 1

postInitMethod · 0.80

Calls 3

connInfoMethod · 0.95
sendLevelScriptMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected