From 8ec55f267ecdb8982b4f0acf04202073754b8149 Mon Sep 17 00:00:00 2001 From: Geequlim Date: Sun, 24 May 2020 19:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=80=E6=94=BE=E6=BA=90?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 26 ++++++++++++++++++++++++++ README.md | 12 ++++++------ excel-exporter.json | 11 +---------- 3 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fece41e --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright 2020 Tiny Fun Technologies + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/README.md b/README.md index da6c36e..e79e026 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ 将 Excel 配置表中的数据导出为方便程序读取和使用的数据。 -## 目前支持的导出格式有: -* JSON 文件 -* C# 类型声明 -~~* TypeScript 声明文件(需要配合 JSON 使用)~~ -~~* Godot 引擎的 GDScript 脚本文件~~ +## 支持将Excel配置表导出为: +- [x] JSON 文件 +- [x] C# 类型声明 +- [ ] TypeScript 声明文件、类型文件(可用 `instanceof` 进行类型检查) +- [ ] Godot 引擎的 GDScript 脚本文件 ## 表格格式说明 @@ -22,7 +22,7 @@ * 数值(优先使用整形) * 布尔值 * 空(`null`) -* 该工具设计原则是简单易用,表格字段可由策划自由调整, 不支持数据引用,暂不支持结构体 +* 该工具设计原则是简单易用,表格字段可由策划自由调整,不支持数据引用,暂不支持结构体 ## Windows 安装 安装 NodeJS, 注意勾选将 Node 添加到环境变量 `PATH` 中 diff --git a/excel-exporter.json b/excel-exporter.json index 1cca0f7..03eb2be 100644 --- a/excel-exporter.json +++ b/excel-exporter.json @@ -1,15 +1,6 @@ { "input": [ - { "file": "士兵表.xlsx", "encode": "GBK"}, - { "file": "统帅表.xlsx", "encode": "GBK"}, - { "file": "武器表.xlsx", "encode": "GBK"}, - { "file": "装备表.xlsx", "encode": "GBK"}, - { "file": "关卡表.xlsx", "encode": "GBK"}, - { "file": "箱子奖励招募表.xlsx", "encode": "GBK"}, - { "file": "僵尸表.xlsx", "encode": "GBK"}, - { "file": "任务表.xlsx", "encode": "GBK"}, - { "file": "伤害动作表.xlsx", "encode": "GBK"}, - { "file": "签到表.xlsx", "encode": "GBK"} + { "file": "配置表.xlsx", "encode": "GBK"} ], "parser": { "first_row_as_field_comment": true