protobuf def

yokyo 1e0fd9ae43 add field il y a 5 ans
google b95fd8ea83 init repo il y a 5 ans
logics a709c9785d update comments,README il y a 5 ans
modules a64cc9b1dd update il y a 5 ans
.gitignore a709c9785d update comments,README il y a 5 ans
README.md a709c9785d update comments,README il y a 5 ans
build a709c9785d update comments,README il y a 5 ans
confs.proto a709c9785d update comments,README il y a 5 ans
enums.proto da1133ad4d update il y a 5 ans
enums_msgid.proto 452645fbc3 change il y a 5 ans
errors.proto b95fd8ea83 init repo il y a 5 ans
login.proto 1e0fd9ae43 add field il y a 5 ans
login_internal.proto 109494a5da update il y a 5 ans
manager.proto 896f51d47a update msgq protos il y a 5 ans
msgq_evid.proto 452645fbc3 change il y a 5 ans
msgq_mgr.proto 896f51d47a update msgq protos il y a 5 ans
msgq_sys.proto 896f51d47a update msgq protos il y a 5 ans
msgq_usr.proto 896f51d47a update msgq protos il y a 5 ans
outline.proto 896f51d47a update msgq protos il y a 5 ans
redis.proto 43ff6495bb add User comment il y a 5 ans
structs.proto 658bd94709 add il y a 5 ans
tajmahal.proto ef57f5c405 update il y a 5 ans

README.md

protos

protocol in protobuf3

编译

build -h #查看帮助
build -g #编译 golang
build -p #编译 python
build -c #清除编译后文件

文件说明

  • modules 目录

    每个文件对应一个游戏内子功能模块

  • login.proto

    定义客户端和登录服务器相关的所有协议 (实际为 json 格式)

  • login_internal.proto

    定义登录服务器和其他服务器的协议

  • tajmahal.proto

    定义客户端和游戏服务器的协议

  • outline.proto

    定义客户端和游戏服务器的协议轮廓

  • errors.proto

    定义所有通信过程中的所有错误码

  • structs.proto

    定义子结构

  • enums*.proto

    定义 enum

  • logics 目录

    定义各个游戏逻辑的协议, 包括主游戏和将来的游戏内小游戏

  • errors.proto

    定义错误码,理想情况下,包含所有项目的所有错误码

  • confs.proto

    定义可重用的配置项目