| 1098 | } |
| 1099 | |
| 1100 | void 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 | |
| 1118 | void PluginManager::doLoadWorldData(color_ostream &out) |
| 1119 | { |
no test coverage detected