protobuf def

joe cff02d2fa2 update build 4 years ago
google b95fd8ea83 init repo 5 years ago
logics 57e8d09785 update to support latest protoc-gen-go 4 years ago
modules 57e8d09785 update to support latest protoc-gen-go 4 years ago
.gitignore 913fed62e7 add __init__ 4 years ago
README.md defae0bc53 adjust 4 years ago
__init__.py 913fed62e7 add __init__ 4 years ago
build cff02d2fa2 update build 4 years ago
confs.proto 2fb8aee238 make it cross app 4 years ago
enums.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
enums_msgid.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
errors.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
gossip.proto 2fb8aee238 make it cross app 4 years ago
login.proto 2fb8aee238 make it cross app 4 years ago
login_internal.proto 2fb8aee238 make it cross app 4 years ago
manager.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
msgq_evid.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
msgq_mgr.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
msgq_sys.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
msgq_usr.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
outline.proto 2fb8aee238 make it cross app 4 years ago
redis.proto 2fb8aee238 make it cross app 4 years ago
rpc_agent.proto b60b08c3b8 add rpc files 4 years ago
rpc_common.proto b60b08c3b8 add rpc files 4 years ago
rpc_logics.proto b60b08c3b8 add rpc files 4 years ago
structs.proto 57e8d09785 update to support latest protoc-gen-go 4 years ago
tajmahal.proto 2fb8aee238 make it cross app 4 years ago

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 目录

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

  • confs.proto

    定义可重用的配置项目