- Configure file is
config.json. Add files and directory to[IncludeFilesAndPath]to dealing with. Add files to[ExcludeFileNames]to disable processing. Add table name to[ExcludeCsvTableNames]to disable processing. - Set output
table nameat cellB1(Default value). It can be change at config Key[CSVNameCellID]. - Add output table
Column NameRow undertable nameRow. If a Column Name Start with#means is was a comment Column. It can be disable output at configEnableExportCommentColumns. - Add
Column Format Typeline underColumn NameRow. [Export]is temporary not supported.- A comment Row was start with word
#atA Column. Is can be disable output at configEnableExportCommentRows. - Cell
[N]A([N] is Row index)start with#is a comment line.
| type | desc |
|---|---|
| csv | csv format |
| json | Export as json format. If Export.OutputDir is a directory. Export as a separate file per sheet, otherwise export as one file. |
| js | Export as js format. Set Export.ExportTemple for export template. The tools will replace {name} with sheet name, and replace {data} with sheet data. If Export.OutputDir is a directory. Export as a separate file per sheet, otherwise export as one file. |
| tsd | Export *.d.ts file for language typescript type check. Set Export.ExportTemple for export template. The tools will replace {type} with table type, and replace {data} with row type. If Export.OutputDir is a directory. Export as a separate file per sheet, otherwise export as one file. |
| lua | Support in future releases |
- Declare type definitions using grammar rules like typescript interface.
- Support numeric type size overflow validation.
- More convenient type definitions for game developers(like vector2 vector3 etc...).
| type | desc |
|---|---|
| char | min:-127 max:127 |
| uchar | min:0 max:255 |
| short | min:-32768 max:32767 |
| ushort | min:0 max:65535 |
| int | min:-2147483648 max:2147483647 |
| uint | min:0 max:4294967295 |
| int64 | min:-9223372036854775808 max:9223372036854775807 |
| uint64 | min:0 max:18446744073709551615 |
| string | auto change 'line break' to '\n |
| double | ... |
| float | ... |
| bool | true: 'true' or '1' false: 'false' empty or '0 |
| date | YYYY/MM/DD HH:mm:ss |
| tinydate | YYYY/MM/DD |
| timestamp | Linux time stamp |
| utctime | UTC time stamp |
| type | desc |
|---|---|
{<name>:<type>} |
start with '{' and end with '}' with json format. <type> is one of "Base Type" or "Combination Type". |
<type>[<N> or null] |
<type> is one of "Base Type" or "Combination Type". <N> is empty(variable-length) or number. |
vector2 |
float[2] |
vector3 |
float[3] |
json |
JSON.parse() is vaild |