refactor: 重构肉鸽资源加载逻辑和任务流程

This commit is contained in:
zzyyyl
2022-10-13 14:10:15 +08:00
parent b2cf7163fb
commit 0a8db14315
20 changed files with 248 additions and 106 deletions

View File

@@ -60,14 +60,18 @@ bool asst::TaskData::parse(const json::value& json)
}
#ifdef ASST_DEBUG
bool some_next_null = false;
for (const auto& [name, task] : m_all_tasks_info) {
for (const auto& next : task->next) {
if (get(next) == nullptr) {
Log.error(name, "'s next", next, "is null");
return false;
some_next_null = true;
}
}
}
if (some_next_null) {
return false;
}
#endif
return true;
}