sync.proto 491 B

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