1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 21:16:38 +00:00

clangformat

This commit is contained in:
Kindi 2025-04-05 11:26:34 +08:00
parent 71a6b26b4f
commit a5580718f7

View file

@ -1237,14 +1237,15 @@ namespace MWScript
// sort for user convenience
std::map<ESM::RefId, std::shared_ptr<GlobalScriptDesc>> globalScripts(scripts.begin(), scripts.end());
auto printVariables = [&str](std::string_view scptName, const auto& names, const auto& values,
std::string_view type) {
size_t size = std::min(names.size(), values.size());
for (size_t i = 0; i < size; ++i)
{
str << std::endl << " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
}
};
auto printVariables
= [&str](std::string_view scptName, const auto& names, const auto& values, std::string_view type) {
size_t size = std::min(names.size(), values.size());
for (size_t i = 0; i < size; ++i)
{
str << std::endl
<< " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
}
};
for (const auto& [refId, script] : globalScripts)
{