|
@@ -11,25 +11,37 @@ message RestoreRequest {
|
|
// 载入游戏响应
|
|
// 载入游戏响应
|
|
message RestoreResponse {
|
|
message RestoreResponse {
|
|
repeated UserInfo Users = 1;
|
|
repeated UserInfo Users = 1;
|
|
- int64 Step = 2;
|
|
|
|
|
|
+ uint64 Step = 2;
|
|
map<string, bytes> Values = 3;
|
|
map<string, bytes> Values = 3;
|
|
}
|
|
}
|
|
|
|
|
|
// 同步消息
|
|
// 同步消息
|
|
message SyncRequest {
|
|
message SyncRequest {
|
|
- int64 Step = 1;
|
|
|
|
|
|
+ uint64 Step = 1;
|
|
map<string, bytes> Values = 2;
|
|
map<string, bytes> Values = 2;
|
|
}
|
|
}
|
|
|
|
|
|
// 同步消息响应
|
|
// 同步消息响应
|
|
message SyncResponse {
|
|
message SyncResponse {
|
|
bool Status = 1;
|
|
bool Status = 1;
|
|
- int64 Step = 2; // status=false时才有值
|
|
|
|
|
|
+ uint64 Step = 2; // status=false时才有值
|
|
map<string, bytes> Values = 3; // status=false时才有值
|
|
map<string, bytes> Values = 3; // status=false时才有值
|
|
}
|
|
}
|
|
|
|
|
|
// 同步消息推送
|
|
// 同步消息推送
|
|
message SyncPush {
|
|
message SyncPush {
|
|
- int64 Step = 1;
|
|
|
|
|
|
+ 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;
|
|
map<string, bytes> Values = 2;
|
|
}
|
|
}
|