From 1be298b173b71b816acbd5a1b9e81828b712d567 Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 16 Dec 2020 14:55:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86configs=E6=94=B9=E4=B8=BAconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {configs => config}/compound_tbl.json | 0 {configs => config}/effectcard_tbl.json | 0 {configs => config}/hero_tbl.json | 0 {configs => config}/skill_tbl.json | 0 {configs => config}/systemcard_tbl.json | 0 {configs => config}/unit_tbl.json | 0 src/common/DataParser.ts | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) rename {configs => config}/compound_tbl.json (100%) rename {configs => config}/effectcard_tbl.json (100%) rename {configs => config}/hero_tbl.json (100%) rename {configs => config}/skill_tbl.json (100%) rename {configs => config}/systemcard_tbl.json (100%) rename {configs => config}/unit_tbl.json (100%) diff --git a/configs/compound_tbl.json b/config/compound_tbl.json similarity index 100% rename from configs/compound_tbl.json rename to config/compound_tbl.json diff --git a/configs/effectcard_tbl.json b/config/effectcard_tbl.json similarity index 100% rename from configs/effectcard_tbl.json rename to config/effectcard_tbl.json diff --git a/configs/hero_tbl.json b/config/hero_tbl.json similarity index 100% rename from configs/hero_tbl.json rename to config/hero_tbl.json diff --git a/configs/skill_tbl.json b/config/skill_tbl.json similarity index 100% rename from configs/skill_tbl.json rename to config/skill_tbl.json diff --git a/configs/systemcard_tbl.json b/config/systemcard_tbl.json similarity index 100% rename from configs/systemcard_tbl.json rename to config/systemcard_tbl.json diff --git a/configs/unit_tbl.json b/config/unit_tbl.json similarity index 100% rename from configs/unit_tbl.json rename to config/unit_tbl.json diff --git a/src/common/DataParser.ts b/src/common/DataParser.ts index c3df2e6..e354ac9 100644 --- a/src/common/DataParser.ts +++ b/src/common/DataParser.ts @@ -5,7 +5,7 @@ import {BaseConst} from "../constants/BaseConst"; import {error} from "./Debug"; const $cfg = new Map(); -const jsonPath = 'configs'; +const jsonPath = 'config'; export var DataParser = (function (){ const parsers: { [index: string]: ConfigDataParser } = {};