mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 20:12:25 +08:00
135 lines
2.3 KiB
Protocol Buffer
135 lines
2.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
import "server_only/bin_common.server.proto";
|
|
|
|
option go_package = "./;proto";
|
|
|
|
message OfflineOpDefaultContext {
|
|
uint32 tag = 1;
|
|
}
|
|
|
|
message OfflineOpPlantFlowerActivityGiveFlowerContext {
|
|
uint32 uid = 1;
|
|
map<uint32, uint32> flower_num_map = 2;
|
|
}
|
|
|
|
message GCGSettleContext {
|
|
uint32 uid = 1;
|
|
uint32 game_id = 2;
|
|
uint32 game_uid = 3;
|
|
}
|
|
|
|
message OfflineOpContext {
|
|
oneof context {
|
|
OfflineOpDefaultContext default_context = 1;
|
|
OfflineOpPlantFlowerActivityGiveFlowerContext plant_flower_give_flower_context = 2;
|
|
}
|
|
}
|
|
|
|
message OfflineOpData {
|
|
OfflineOpBin bin = 1;
|
|
OfflineOpContext context = 2;
|
|
uint32 max_length = 3;
|
|
}
|
|
|
|
message SendOfflineOpReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12226;
|
|
}
|
|
|
|
uint32 uid = 1;
|
|
fixed32 time = 2;
|
|
OfflineOpType op_type = 3;
|
|
OfflineOpData op_data = 4;
|
|
}
|
|
|
|
message SendOfflineOpRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12218;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 index = 2;
|
|
OfflineOpType op_type = 3;
|
|
OfflineOpContext context = 4;
|
|
}
|
|
|
|
message GetOfflineOpReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12225;
|
|
}
|
|
|
|
OfflineOpType op_type = 1;
|
|
uint32 index = 2;
|
|
}
|
|
|
|
message GetOfflineOpRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12207;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
repeated bytes bin_str_list = 2;
|
|
}
|
|
|
|
message NewOfflineOpNotify {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12202;
|
|
}
|
|
|
|
OfflineOpType op_type = 1;
|
|
uint32 index = 2;
|
|
}
|
|
|
|
message RemoveOfflineOpReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12231;
|
|
}
|
|
|
|
OfflineOpType op_type = 1;
|
|
uint32 index = 2;
|
|
}
|
|
|
|
message RemoveOfflineOpRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12229;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
OfflineOpType op_type = 2;
|
|
uint32 index = 3;
|
|
}
|
|
|
|
message SendGCGOfflineOpReq {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12222;
|
|
}
|
|
|
|
uint32 uid = 1;
|
|
fixed32 time = 2;
|
|
OfflineOpType op_type = 3;
|
|
OfflineOpData op_data = 4;
|
|
}
|
|
|
|
message SendGCGOfflineOpRsp {
|
|
enum CmdId {
|
|
NONE = 0;
|
|
CMD_ID = 12244;
|
|
}
|
|
|
|
int32 retcode = 1;
|
|
uint32 index = 2;
|
|
OfflineOpType op_type = 3;
|
|
OfflineOpContext context = 4;
|
|
}
|