新增任务埋点
This commit is contained in:
parent
c7752a6abe
commit
d417eec3ce
@ -1,7 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"key": 1,
|
"key": 1,
|
||||||
"moneystart": 0,
|
"moneystart": -1,
|
||||||
"moneyend": 10000,
|
"moneyend": 10000,
|
||||||
"reward": [
|
"reward": [
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@
|
|||||||
{
|
{
|
||||||
"key": 4,
|
"key": 4,
|
||||||
"moneystart": 30000,
|
"moneystart": 30000,
|
||||||
"moneyend": -1,
|
"moneyend": 50000,
|
||||||
"reward": [
|
"reward": [
|
||||||
{
|
{
|
||||||
"a": "attr",
|
"a": "attr",
|
||||||
@ -49,8 +49,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": 5,
|
"key": 5,
|
||||||
"moneystart": 1000,
|
"moneystart": 50000,
|
||||||
"moneyend": 0,
|
"moneyend": -1,
|
||||||
"reward": [
|
"reward": [
|
||||||
{
|
{
|
||||||
"a": "attr",
|
"a": "attr",
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"key": "gold",
|
"key": "gold",
|
||||||
|
"keyint": 1,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_1",
|
"key": "item_coin_name_1",
|
||||||
"text": "金币"
|
"text": "金币"
|
||||||
@ -18,6 +19,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "diamond",
|
"key": "diamond",
|
||||||
|
"keyint": 2,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_2",
|
"key": "item_coin_name_2",
|
||||||
"text": "钻石"
|
"text": "钻石"
|
||||||
@ -36,6 +38,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "exp",
|
"key": "exp",
|
||||||
|
"keyint": 3,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_3",
|
"key": "item_coin_name_3",
|
||||||
"text": "角色经验"
|
"text": "角色经验"
|
||||||
@ -53,6 +56,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "friendPoint",
|
"key": "friendPoint",
|
||||||
|
"keyint": 4,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_4",
|
"key": "item_coin_name_4",
|
||||||
"text": "友情点"
|
"text": "友情点"
|
||||||
@ -70,6 +74,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "palyexp",
|
"key": "palyexp",
|
||||||
|
"keyint": 5,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_5",
|
"key": "item_coin_name_5",
|
||||||
"text": "废弃角色经验"
|
"text": "废弃角色经验"
|
||||||
@ -87,6 +92,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "guildexp",
|
"key": "guildexp",
|
||||||
|
"keyint": 6,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_6",
|
"key": "item_coin_name_6",
|
||||||
"text": "公会经验"
|
"text": "公会经验"
|
||||||
@ -104,6 +110,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "guildactive",
|
"key": "guildactive",
|
||||||
|
"keyint": 7,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_7",
|
"key": "item_coin_name_7",
|
||||||
"text": "公会活跃度"
|
"text": "公会活跃度"
|
||||||
@ -121,6 +128,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "guildcoin",
|
"key": "guildcoin",
|
||||||
|
"keyint": 8,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_8",
|
"key": "item_coin_name_8",
|
||||||
"text": "公会币"
|
"text": "公会币"
|
||||||
@ -138,6 +146,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "starcoin",
|
"key": "starcoin",
|
||||||
|
"keyint": 9,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_9",
|
"key": "item_coin_name_9",
|
||||||
"text": "星图币"
|
"text": "星图币"
|
||||||
@ -155,6 +164,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "vipexp",
|
"key": "vipexp",
|
||||||
|
"keyint": 10,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_10",
|
"key": "item_coin_name_10",
|
||||||
"text": "商会经验"
|
"text": "商会经验"
|
||||||
@ -172,6 +182,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "arenacoin",
|
"key": "arenacoin",
|
||||||
|
"keyint": 11,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_11",
|
"key": "item_coin_name_11",
|
||||||
"text": "竞技场币"
|
"text": "竞技场币"
|
||||||
@ -189,6 +200,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "ps",
|
"key": "ps",
|
||||||
|
"keyint": 12,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_12",
|
"key": "item_coin_name_12",
|
||||||
"text": "体力值"
|
"text": "体力值"
|
||||||
@ -206,6 +218,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "heroexp",
|
"key": "heroexp",
|
||||||
|
"keyint": 13,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_13",
|
"key": "item_coin_name_13",
|
||||||
"text": "英雄经验"
|
"text": "英雄经验"
|
||||||
@ -221,6 +234,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "moongold",
|
"key": "moongold",
|
||||||
|
"keyint": 14,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_14",
|
"key": "item_coin_name_14",
|
||||||
"text": "荣耀值"
|
"text": "荣耀值"
|
||||||
@ -238,6 +252,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "merchantmoney",
|
"key": "merchantmoney",
|
||||||
|
"keyint": 15,
|
||||||
"name": {
|
"name": {
|
||||||
"key": "item_coin_name_15",
|
"key": "item_coin_name_15",
|
||||||
"text": "虚拟币"
|
"text": "虚拟币"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -10007,5 +10007,227 @@
|
|||||||
],
|
],
|
||||||
"synthetize_deplete": [],
|
"synthetize_deplete": [],
|
||||||
"decompose_deplete": []
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001001",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_274",
|
||||||
|
"text": "记忆碎片1"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_273",
|
||||||
|
"text": "旧时光用,测试道具1"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001002",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_275",
|
||||||
|
"text": "记忆碎片2"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_274",
|
||||||
|
"text": "旧时光用,测试道具2"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001003",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_276",
|
||||||
|
"text": "记忆碎片3"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_275",
|
||||||
|
"text": "旧时光用,测试道具3"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001004",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_277",
|
||||||
|
"text": "记忆碎片4"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_276",
|
||||||
|
"text": "旧时光用,测试道具4"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001005",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_278",
|
||||||
|
"text": "记忆碎片5"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_277",
|
||||||
|
"text": "旧时光用,测试道具5"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "16001006",
|
||||||
|
"name": {
|
||||||
|
"key": "item_item_name_279",
|
||||||
|
"text": "记忆碎片6"
|
||||||
|
},
|
||||||
|
"usetype": 16,
|
||||||
|
"color": 4,
|
||||||
|
"bagtype": 0,
|
||||||
|
"index": 1,
|
||||||
|
"special_type": 0,
|
||||||
|
"time": 0,
|
||||||
|
"reddottype": 0,
|
||||||
|
"effects": "",
|
||||||
|
"modelName": "",
|
||||||
|
"box_id": 0,
|
||||||
|
"synthetize_num": 0,
|
||||||
|
"access": [
|
||||||
|
902
|
||||||
|
],
|
||||||
|
"use_skip": 902,
|
||||||
|
"upper_limit": 999,
|
||||||
|
"img": "",
|
||||||
|
"intr": {
|
||||||
|
"key": "item_item_intr_278",
|
||||||
|
"text": "旧时光用,测试道具6"
|
||||||
|
},
|
||||||
|
"sale": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 1000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"synthetize_deplete": [],
|
||||||
|
"decompose_deplete": []
|
||||||
}
|
}
|
||||||
]
|
]
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -637,7 +637,22 @@ const (
|
|||||||
Rtype168 TaskType = 168 //完成功夫大师挑战塔第X层
|
Rtype168 TaskType = 168 //完成功夫大师挑战塔第X层
|
||||||
Rtype169 TaskType = 169 //触发指定套装的套装效果
|
Rtype169 TaskType = 169 //触发指定套装的套装效果
|
||||||
Rtype170 TaskType = 170 //获得指定材料X个
|
Rtype170 TaskType = 170 //获得指定材料X个
|
||||||
|
Rtype171 TaskType = 171
|
||||||
|
Rtype172 TaskType = 172 //连续战斗X次(接取任务后,在任意战斗内使用连续战斗一次,进度便加一)
|
||||||
|
Rtype173 TaskType = 173
|
||||||
|
Rtype174 TaskType = 174
|
||||||
|
Rtype175 TaskType = 175
|
||||||
|
Rtype176 TaskType = 176
|
||||||
|
Rtype177 TaskType = 177
|
||||||
|
Rtype178 TaskType = 178
|
||||||
|
Rtype179 TaskType = 179
|
||||||
|
Rtype180 TaskType = 180
|
||||||
|
Rtype181 TaskType = 181
|
||||||
|
Rtype182 TaskType = 182
|
||||||
|
Rtype183 TaskType = 183
|
||||||
|
Rtype184 TaskType = 184
|
||||||
|
Rtype185 TaskType = 185
|
||||||
|
Rtype186 TaskType = 186
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -168,6 +168,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if req.Auto {
|
||||||
|
tasks = append(tasks, comm.GettaskParam(comm.Rtype172, 1))
|
||||||
|
}
|
||||||
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), tasks...)
|
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), tasks...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -179,6 +179,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if req.Auto {
|
||||||
|
szTask = append(szTask, comm.GettaskParam(comm.Rtype172, 1))
|
||||||
|
}
|
||||||
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), szTask...)
|
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), szTask...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -249,6 +249,7 @@ type HuntingChallengeOverReq struct {
|
|||||||
Difficulty int32 `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty"` // 难度
|
Difficulty int32 `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty"` // 难度
|
||||||
Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报
|
Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报
|
||||||
Star []int32 `protobuf:"varint,4,rep,packed,name=star,proto3" json:"star"` // 自动出售装备的星级
|
Star []int32 `protobuf:"varint,4,rep,packed,name=star,proto3" json:"star"` // 自动出售装备的星级
|
||||||
|
Auto bool `protobuf:"varint,5,opt,name=auto,proto3" json:"auto"` // 是否是连续自动战斗
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *HuntingChallengeOverReq) Reset() {
|
func (x *HuntingChallengeOverReq) Reset() {
|
||||||
@ -311,6 +312,13 @@ func (x *HuntingChallengeOverReq) GetStar() []int32 {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *HuntingChallengeOverReq) GetAuto() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Auto
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// 客户端通知服务器打赢了
|
// 客户端通知服务器打赢了
|
||||||
type HuntingChallengeOverResp struct {
|
type HuntingChallengeOverResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -603,7 +611,7 @@ var file_hunting_hunting_msg_proto_rawDesc = []byte{
|
|||||||
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79,
|
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79,
|
||||||
0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79,
|
0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79,
|
||||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
||||||
0x74, 0x79, 0x22, 0x90, 0x01, 0x0a, 0x17, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x68,
|
0x74, 0x79, 0x22, 0xa4, 0x01, 0x0a, 0x17, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x68,
|
||||||
0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a,
|
0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a,
|
||||||
0x0a, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
0x0a, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x52, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69,
|
0x52, 0x08, 0x62, 0x6f, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69,
|
||||||
@ -612,29 +620,30 @@ var file_hunting_hunting_msg_proto_rawDesc = []byte{
|
|||||||
0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74,
|
0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74,
|
||||||
0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72,
|
0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72,
|
||||||
0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52,
|
0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52,
|
||||||
0x04, 0x73, 0x74, 0x61, 0x72, 0x22, 0x6f, 0x0a, 0x18, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67,
|
0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x18, 0x05, 0x20,
|
||||||
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73,
|
0x01, 0x28, 0x08, 0x52, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x18, 0x48, 0x75, 0x6e,
|
||||||
0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x74, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65,
|
||||||
0x0a, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74,
|
0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
|
||||||
0x61, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
|
0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
||||||
0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x73, 0x73,
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02,
|
||||||
0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52,
|
||||||
0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x22, 0x25, 0x0a, 0x0d, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e,
|
0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03,
|
||||||
0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x22, 0x25, 0x0a, 0x0d, 0x48, 0x75,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x30, 0x0a,
|
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63,
|
||||||
0x0e, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12,
|
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
|
||||||
0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e,
|
0x74, 0x22, 0x30, 0x0a, 0x0e, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52,
|
||||||
0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
|
0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x48, 0x0a, 0x12, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69,
|
0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64,
|
||||||
0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70,
|
0x61, 0x74, 0x61, 0x22, 0x48, 0x0a, 0x12, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61,
|
||||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70,
|
0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6f, 0x6f,
|
||||||
0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x6f,
|
||||||
0x08, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x48, 0x75, 0x6e,
|
0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18,
|
||||||
0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22, 0x3b, 0x0a,
|
||||||
0x12, 0x24, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
0x13, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74,
|
||||||
0x0e, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52,
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20,
|
||||||
0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x61, 0x6e, 0x6b, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -249,6 +249,7 @@ type VikingChallengeOverReq struct {
|
|||||||
Difficulty int32 `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty"` // 难度
|
Difficulty int32 `protobuf:"varint,2,opt,name=difficulty,proto3" json:"difficulty"` // 难度
|
||||||
Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报
|
Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报
|
||||||
Star []int32 `protobuf:"varint,4,rep,packed,name=star,proto3" json:"star"` // 自动出售装备的星级
|
Star []int32 `protobuf:"varint,4,rep,packed,name=star,proto3" json:"star"` // 自动出售装备的星级
|
||||||
|
Auto bool `protobuf:"varint,5,opt,name=auto,proto3" json:"auto"` // 是否是连续自动战斗
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *VikingChallengeOverReq) Reset() {
|
func (x *VikingChallengeOverReq) Reset() {
|
||||||
@ -311,6 +312,13 @@ func (x *VikingChallengeOverReq) GetStar() []int32 {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *VikingChallengeOverReq) GetAuto() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Auto
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// 客户端通知服务器打赢了
|
// 客户端通知服务器打赢了
|
||||||
type VikingChallengeOverResp struct {
|
type VikingChallengeOverResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -610,7 +618,7 @@ var file_viking_viking_msg_proto_rawDesc = []byte{
|
|||||||
0x73, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x73, 0x73, 0x49,
|
0x73, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x73, 0x73, 0x49,
|
||||||
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18,
|
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
||||||
0x79, 0x22, 0x8b, 0x01, 0x0a, 0x16, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c,
|
0x79, 0x22, 0x9f, 0x01, 0x0a, 0x16, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c,
|
||||||
0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
|
0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
|
||||||
0x62, 0x6f, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f,
|
0x62, 0x6f, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f,
|
||||||
0x73, 0x73, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
0x73, 0x73, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
||||||
@ -618,37 +626,38 @@ var file_viking_viking_msg_proto_rawDesc = []byte{
|
|||||||
0x75, 0x6c, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03,
|
0x75, 0x6c, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03,
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70,
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70,
|
||||||
0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73,
|
0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73,
|
||||||
0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x22,
|
0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12,
|
||||||
0xea, 0x01, 0x0a, 0x17, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65,
|
0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x61,
|
||||||
0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64,
|
0x75, 0x74, 0x6f, 0x22, 0xea, 0x01, 0x0a, 0x17, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68,
|
||||||
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x56, 0x69,
|
0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
|
||||||
0x6b, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x73,
|
0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e,
|
||||||
0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72,
|
0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f,
|
||||||
0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73,
|
0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
|
||||||
0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12,
|
0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12,
|
||||||
0x3f, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
|
0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x73,
|
||||||
0x32, 0x25, 0x2e, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e,
|
0x65, 0x6c, 0x6c, 0x12, 0x3f, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x18, 0x04,
|
||||||
0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x65,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61,
|
||||||
0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70,
|
0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x48,
|
||||||
0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x72,
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
|
0x6f, 0x65, 0x78, 0x70, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x45,
|
||||||
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x24, 0x0a, 0x0c,
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||||
0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
|
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
|
||||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75,
|
0x22, 0x24, 0x0a, 0x0c, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71,
|
||||||
0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0d, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52,
|
0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0d, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67,
|
||||||
0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61,
|
0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
||||||
0x74, 0x61, 0x22, 0x47, 0x0a, 0x11, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b,
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67,
|
||||||
0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54,
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x47, 0x0a, 0x11, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67,
|
||||||
0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54,
|
0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62,
|
||||||
0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20,
|
0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22, 0x39, 0x0a, 0x12, 0x56,
|
0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e,
|
||||||
0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
|
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22,
|
||||||
0x70, 0x12, 0x23, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
0x39, 0x0a, 0x12, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73,
|
||||||
0x32, 0x0d, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52,
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01,
|
||||||
0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x61, 0x6e, 0x6b, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -12,6 +12,7 @@ import "errors"
|
|||||||
|
|
||||||
type GameCoinData struct {
|
type GameCoinData struct {
|
||||||
Key string
|
Key string
|
||||||
|
Keyint int32
|
||||||
Name string
|
Name string
|
||||||
Color int32
|
Color int32
|
||||||
Effects string
|
Effects string
|
||||||
@ -28,6 +29,7 @@ func (*GameCoinData) GetTypeId() int32 {
|
|||||||
|
|
||||||
func (_v *GameCoinData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameCoinData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } }
|
{ var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["keyint"].(float64); !_ok_ { err = errors.New("keyint error"); return }; _v.Keyint = int32(_tempNum_) }
|
||||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["color"].(float64); !_ok_ { err = errors.New("color error"); return }; _v.Color = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["color"].(float64); !_ok_ { err = errors.New("color error"); return }; _v.Color = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Effects, _ok_ = _buf["effects"].(string); !_ok_ { err = errors.New("effects error"); return } }
|
{ var _ok_ bool; if _v.Effects, _ok_ = _buf["effects"].(string); !_ok_ { err = errors.New("effects error"); return } }
|
||||||
|
Loading…
Reference in New Issue
Block a user