MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / AddNetworkPlugin

Method AddNetworkPlugin

src/openrct2/scripting/ScriptEngine.cpp:1307–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1305}
1306
1307void ScriptEngine::AddNetworkPlugin(std::string_view code)
1308{
1309 auto plugin = std::make_shared<Plugin>(std::string());
1310 plugin->SetCode(code);
1311 _plugins.push_back(plugin);
1312}
1313
1314void ScriptEngine::RemoveNetworkPlugins()
1315{

Callers 2

TEST_FFunction · 0.80

Calls 2

SetCodeMethod · 0.80
push_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.64