MCPcopy Create free account
hub / github.com/DFHack/dfhack / doSaveData

Method doSaveData

library/PluginManager.cpp:1100–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100void PluginManager::doSaveData(color_ostream &out)
1101{
1102 for (auto it = begin(); it != end(); ++it)
1103 {
1104 command_result cr = CR_NOT_IMPLEMENTED;
1105
1106 if (World::IsSiteLoaded()) {
1107 cr = it->second->save_site_data(out);
1108 if (cr != CR_OK && cr != CR_NOT_IMPLEMENTED)
1109 out.printerr("Plugin {} has failed to save site data.\n", it->first);
1110 }
1111
1112 cr = it->second->save_world_data(out);
1113 if (cr != CR_OK && cr != CR_NOT_IMPLEMENTED)
1114 out.printerr("Plugin {} has failed to save world data.\n", it->first);
1115 }
1116}
1117
1118void PluginManager::doLoadWorldData(color_ostream &out)
1119{

Callers 1

doUpdateMethod · 0.80

Calls 3

beginFunction · 0.85
save_site_dataMethod · 0.80
save_world_dataMethod · 0.80

Tested by

no test coverage detected