Skip to content

Commit eb55311

Browse files
author
feeling
committed
update
1 parent 46a5d56 commit eb55311

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

.settings/org.eclipse.core.resources.prefs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
eclipse.preferences.version=1
2-
encoding//out/protocol.as=UTF-8
3-
encoding//out/protocol_clients_protocol.py=utf-8
4-
encoding//out/protocol_games_protocol.py=utf-8
5-
encoding//out/protocol_gateways_protocol.py=utf-8
6-
encoding//out/protocol_handler.py=utf-8
7-
encoding//out/protocol_message.py=UTF-8
8-
encoding//out/protocol_packet_id.py=UTF-8
2+
encoding//out/GameServer/handler/protocol_handler.py=utf-8
3+
encoding//out/GameServer/protocol/gateways/protocol_gateways_protocol.py=utf-8
4+
encoding//out/GateWay/protocol/clients/protocol_clients_protocol.py=utf-8
5+
encoding//out/GateWay/protocol/games/protocol_games_protocol.py=utf-8
96
encoding//pyexcel2sc/Excel2sc.py=utf-8
107
encoding//pyexcel2sc/dataread.py=utf-8
118
encoding//pyprotocol2sc/Protocol2sc.py=utf-8

pyprotocol2sc/generate.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def generateAs(protocols, filename):
9292
read_str += __generate_as_read_data_list(p.response.data_list, 0)
9393
read_str +='}'
9494

95-
f = open(data_as_dir + '/'+filename+'.as', 'w')
95+
f = open(data_as_dir + '/as/'+filename+'.as', 'w')
9696
f.write(read_str)
9797
f.write('\n\n')
9898
f.write(write_str)
@@ -147,7 +147,7 @@ def generatePythonProtocol(protocols, filename):
147147
response_packages_client += '}\n\n'
148148
request_handlers_gateway += '}\n\n'
149149
request_handlers_game += '}\n\n'
150-
f = open(data_python_dir + '/'+filename+'_clients_protocol.py', 'w')
150+
f = open(data_python_dir + '/GateWay/protocol/clients/'+filename+'_clients_protocol.py', 'w')
151151
f.write(python_file_code)
152152
f.write(python_client_file_header)
153153
f.write(request_packages_client)
@@ -156,21 +156,21 @@ def generatePythonProtocol(protocols, filename):
156156
f.write(python_client_file_footer)
157157
f.close()
158158

159-
f = open(data_python_dir + '/'+filename+'_games_protocol.py', 'w')
159+
f = open(data_python_dir + '/GateWay/protocol/games/'+filename+'_games_protocol.py', 'w')
160160
f.write(python_file_code)
161161
f.write(python_game_file_header)
162162
f.write(request_handlers_game)
163163
f.write(python_game_file_footer)
164164
f.close()
165165

166-
f = open(data_python_dir + '/'+filename+'_gateways_protocol.py', 'w')
166+
f = open(data_python_dir + '/GameServer/protocol/gateways/'+filename+'_gateways_protocol.py', 'w')
167167
f.write(python_file_code)
168168
f.write(python_gateway_file_header%filename)
169169
f.write(request_handlers_gateway)
170170
f.write(python_gateway_file_footer)
171171
f.close()
172172

173-
f = open(data_python_dir + '/'+filename+'_handler.py', 'w')
173+
f = open(data_python_dir + '/GameServer/handler/'+filename+'_handler.py', 'w')
174174
f.write(python_file_code)
175175
f.write(request_handlers_define)
176176
f.close()

0 commit comments

Comments
 (0)