sync.proto 517 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package protos;
  3. import "userinfo.proto";
  4. // 载入游戏请求
  5. message RestoreRequest {
  6. }
  7. // 载入游戏响应
  8. message RestoreResponse {
  9. map<int32, UserInfo> Users = 1;
  10. int64 Step = 2;
  11. map<string, bytes> Values = 3;
  12. }
  13. // 同步消息
  14. message SyncRequest {
  15. int64 Step = 1;
  16. map<string, bytes> Values = 2;
  17. }
  18. // 同步消息响应
  19. message SyncResponse {
  20. bool Status = 1;
  21. }
  22. // 同步消息推送
  23. message SyncPush {
  24. int64 Step = 1;
  25. map<string, bytes> Values = 2;
  26. }