mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
refactor.读取资源接口解耦
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
|
||||
#include <meojson/json.hpp>
|
||||
|
||||
#include "Logger.hpp"
|
||||
|
||||
bool asst::InfrastConfiger::parse(const json::value& json)
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
for (const json::value& facility : json.at("facility").as_array()) {
|
||||
std::string facility_name = facility.as_string();
|
||||
json::value facility_json = json.at(facility_name);
|
||||
|
||||
Reference in New Issue
Block a user