-
Notifications
You must be signed in to change notification settings - Fork 17
/
conf.yaml
144 lines (143 loc) · 3.13 KB
/
conf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package: "GameData"
channel: "" #导出渠道, 可以根据渠道导出不同的数据
pb_bytes_file_ext: ".bytes" #unity must use .bytes extension, cocoscreator use .bin
comment_symbol: "#"
export_type: 4 #全局导出类型设置,1-all,2-client,3-server,4-ignore-不支持此行
array_split_char: "," #默认数组分割符号
pause_on_end: false # 运行完毕后是否暂停
strict_mode: false # 是否严格模式,如:int配置为空时,严格模式将会报错,非严格模式默认为0
rules: #数据规则,可在字段类型后加入规则id,在数据导出时进行规则检测,严格模式会中断输出,否则只进行日志提示
-
id: 1 # 规则id,在类型表达式中使用
rule: '\w+?\.png' # 规则正则表达式
desc: '图片' # 描述
disable: false # 是否关闭此规则
-
id: 2
rule: '\d+'
desc: '数字'
disable: false
sheets:
-
id: 1
type: define #type: define/table/language
file: 'data/define.xlsx'
sheet: 'define'
# -
# id: 2
# type: define
# file: 'data/define.xlsx'
# sheet: 'consts'
# -
# id: 3
# type: table
# file: 'data/model.xlsx'
# sheet: 'class'
# type_name: 'PClass'
# -
# id: 4
# type: table
# file: 'data/model.xlsx'
# sheet: 'class1'
# type_name: 'PClass'
# -
# id: 5
# type: table
# file: 'data/model.xlsx'
# sheet: 'user'
# type_name: 'User'
-
id: 8
type: table
file: 'data/enemy.xlsx'
sheet: 'enemy'
type_name: 'EnemyCfg'
# -
# id: 6
# type: table
# file: 'data/bubble.xlsx'
# sheet: 'bubble'
# type_name: 'Bubble'
# -
# id: 7
# type: table
# file: 'data/i18n.xlsx'
# sheet: 'location1'
# is_lang: true
# -
# id: 7
# type: table
# file: 'data/i18n.xlsx'
# sheet: 'location2'
# is_lang: true
# -
# id: 1
# type: table
# file: 'data/data.xlsx'
# sheet: 'chain'
# type_name: 'Chain'
# -
# id: 5
# type: define
# file: 'data/define.xml'
# -
# id: 6
# type: message
# file: 'data/message.xml'
exports:
# -
# id: 1
# type: "proto"
# path: "./gen/code/all_proto.proto"
# includes: "" #导出表id集合,不设置为导出所有表,逗号分割表示数组,如:1,2,3,横杠分割表示范围,如:1-7,可混用如:1,2-4,6-7
# export_type: 1 #单项导出类型设置,1-ignore,2-client,3-server
# -
# id: 2
# type: "golang"
# path: "./gen/code/data_model.pb.go"
# sheets: ""
# package: "game_data"
-
id: 3
type: "csharp"
path: "./gen/code/DataModel.cs"
sheets: ""
package: "Cfg"
-
id: 4
type: "proto_bytes"
path: "./gen/data/"
# -
# id: 5
# type: "charset"
# path: "./gen/data/lang.txt"
# -
# id: 6
# type: "js,dts"
# path: "./gen/code/data_mode.js,./gen/code/data_mode.d.ts"
# imports:
# - "import UserData from './userdata'"
# - "import XXX from './xxx'"
# -
# id: 7
# type: "dts"
# path: "./gen/code/data_mode.d.ts"
# -
# id: 8
# type: "ts"
# path: "./gen/code/data_mode.ts"
# -
# id: 10
# type: "csharp"
# path: "./gen/code/Message.cs"
# package: "Message"
# -
# id: 11
# type: "golang"
# path: "./gen/code/message.go"
# package: "Message"
# -
# id: 12
# type: "json"
# path: "./gen/data/json/"
# excludes: "5"