76c3564f-f23b-4e52-bb82-062165f70a23.js
945 Bytes
"use strict";
cc._RF.push(module, '76c35ZP8jtOUruCBiFl9woj', 'ConfigManager');
// script/common/gameplay/managers/ConfigManager.ts
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigManager = void 0;
const ResUtils_1 = require("../../utils/ResUtils");
var ConfigManager;
(function (ConfigManager) {
let configData;
async function initConfigData() {
configData = await ResUtils_1.ResUtils.loadRes("config/config", cc.JsonAsset);
ResUtils_1.ResUtils.releaseRes("config/config");
}
ConfigManager.initConfigData = initConfigData;
function getConfig(config, id) {
return configData[config.name][id];
}
ConfigManager.getConfig = getConfig;
function getAllConfig(config) {
return configData[config.name];
}
ConfigManager.getAllConfig = getAllConfig;
})(ConfigManager = exports.ConfigManager || (exports.ConfigManager = {}));
cc._RF.pop();