MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / loadPlayerScript

Function loadPlayerScript

src/qtscript.cpp:513–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513wzapi::scripting_instance* loadPlayerScript(const WzString& path, int player, AIDifficulty difficulty)
514{
515 return scripting_engine::instance().loadPlayerScript(path, player, difficulty);
516}
517
518static wzapi::scripting_instance* loadPlayerScriptByBackend(const WzString& path, int player, int realDifficulty)
519{

Callers 3

loadGlobalScriptFunction · 0.85
jsAutogameSpecificFunction · 0.85
loadMultiScriptsFunction · 0.85

Calls 1

loadPlayerScriptMethod · 0.80

Tested by

no test coverage detected