Files
svn/tech/msg/使用说明.txt
2025-08-04 10:46:00 +08:00

11 lines
385 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
以 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\