sync.proto 625 B

1234567891011121314151617181920212223242526272829303132333435
  1. syntax = "proto3";
  2. package protos;
  3. import "userinfo.proto";
  4. // 载入游戏请求
  5. message RestoreRequest {
  6. }
  7. // 载入游戏响应
  8. message RestoreResponse {
  9. repeated 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. int64 Step = 2; // status=false时才有值
  22. map<string, bytes> Values = 3; // status=false时才有值
  23. }
  24. // 同步消息推送
  25. message SyncPush {
  26. int64 Step = 1;
  27. map<string, bytes> Values = 2;
  28. }