sync.proto 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. uint64 Step = 2;
  11. map<string, bytes> Values = 3;
  12. }
  13. // 同步消息
  14. message SyncRequest {
  15. uint64 Step = 1;
  16. map<string, bytes> Values = 2;
  17. }
  18. // 同步消息响应
  19. message SyncResponse {
  20. bool Status = 1;
  21. uint64 Step = 2; // status=false时才有值
  22. map<string, bytes> Values = 3; // status=false时才有值
  23. }
  24. // 同步消息推送
  25. message SyncPush {
  26. uint64 Step = 1;
  27. map<string, bytes> Values = 2;
  28. }
  29. // 服务器合并用户操作给master
  30. message MasterPush {
  31. uint64 Step = 1;
  32. map<string, bytes> Values = 2;
  33. }
  34. // 主机广播消息给flower
  35. message MasterNotify {
  36. uint64 Step = 1;
  37. map<string, bytes> Values = 2;
  38. }