1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- syntax = "proto3";
- package protos;
- import "userinfo.proto";
- // 载入游戏请求
- message RestoreRequest {
- }
- // 载入游戏响应
- message RestoreResponse {
- repeated UserInfo Users = 1;
- uint64 Step = 2;
- map<string, bytes> Values = 3;
- }
- // 同步消息
- message SyncRequest {
- uint64 Step = 1;
- map<string, bytes> Values = 2;
- }
- // 同步消息响应
- message SyncResponse {
- bool Status = 1;
- uint64 Step = 2; // status=false时才有值
- map<string, bytes> Values = 3; // status=false时才有值
- }
- // 同步消息推送
- message SyncPush {
- uint64 Step = 1;
- map<string, bytes> Values = 2;
- }
- // 服务器合并用户操作给master
- message MasterPush {
- uint64 Step = 1;
- map<string, bytes> Values = 2;
- }
- // 主机广播消息给flower
- message MasterNotify {
- uint64 Step = 1;
- map<string, bytes> Values = 2;
- }
|