11 lines
385 B
Plaintext
11 lines
385 B
Plaintext
以 client 为例,修改 config.xml 配置文件。
|
||
1、把 isServer 设为 false(表示客户端);
|
||
2、把 protoPath 设为proto协议输入路径;
|
||
3、把 outPutPath 设为proto输出路径;
|
||
|
||
运行 genProtocol.bat
|
||
|
||
客户端替换步骤:
|
||
1、把 out\message\proto.js 文件拷贝覆盖 assets\src\framework\Protobuf\proto\proto.js;
|
||
2、把 out\MsgDef_pb.js 和 out\MsgRoomService_pb.js 拷贝到目录 assets\src\framework\Protobuf\ ;
|