This commit is contained in:
meixiongfeng 2023-11-01 21:08:59 +08:00
commit 330301441d
19 changed files with 20141 additions and 16463 deletions

View File

@ -9,6 +9,8 @@
"icon": "sx_fk_dhs",
"icon2": "sx_fk_ls",
"weight": 1500,
"effect": "effect_sx_xiaochu_dhs",
"pointeffect": "effect_sx_liuguang_dhs",
"score": 1,
"type": 0,
"value": 0
@ -23,6 +25,8 @@
"icon": "sx_fk_ls",
"icon2": "sx_fk_dhs",
"weight": 1500,
"effect": "effect_sx_xiaochu_ls",
"pointeffect": "effect_sx_liuguang_ls",
"score": 1,
"type": 0,
"value": 0
@ -37,6 +41,8 @@
"icon": "sx_fk_lvs",
"icon2": "sx_fk_lvs",
"weight": 1500,
"effect": "effect_sx_xiaochu_lvs",
"pointeffect": "effect_sx_liuguang_lvs",
"score": 1,
"type": 0,
"value": 0
@ -51,6 +57,8 @@
"icon": "sx_fk_zs",
"icon2": "sx_fk_zs",
"weight": 1500,
"effect": "effect_sx_xiaochu_zs",
"pointeffect": "effect_sx_liuguang_zs",
"score": 1,
"type": 0,
"value": 0
@ -65,6 +73,8 @@
"icon": "sx_fk_hs",
"icon2": "sx_fk_hs",
"weight": 1500,
"effect": "effect_sx_xiaochu_hs",
"pointeffect": "effect_sx_liuguang_hs",
"score": 1,
"type": 0,
"value": 0
@ -79,6 +89,8 @@
"icon": "sx_fk_fhs",
"icon2": "sx_fk_fhs",
"weight": 1500,
"effect": "effect_sx_xiaochu_fhs",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 0,
"value": 0
@ -96,6 +108,8 @@
"icon": "sx_sjt_dhs",
"icon2": "sx_sjt_ls",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -113,6 +127,8 @@
"icon": "sx_hjt_dhs",
"icon2": "sx_hjt_ls",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -130,6 +146,8 @@
"icon": "sx_sjt_ls",
"icon2": "sx_sjt_dhs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -147,6 +165,8 @@
"icon": "sx_hjt_ls",
"icon2": "sx_hjt_dhs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -164,6 +184,8 @@
"icon": "sx_sjt_lvs",
"icon2": "sx_sjt_lvs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -181,6 +203,8 @@
"icon": "sx_hjt_lvs",
"icon2": "sx_hjt_lvs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -198,6 +222,8 @@
"icon": "sx_sjt_zs",
"icon2": "sx_sjt_zs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -215,6 +241,8 @@
"icon": "sx_hjt_zs",
"icon2": "sx_hjt_zs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -232,6 +260,8 @@
"icon": "sx_sjt_hs",
"icon2": "sx_sjt_hs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -249,6 +279,8 @@
"icon": "sx_hjt_hs",
"icon2": "sx_hjt_hs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -266,6 +298,8 @@
"icon": "sx_sjt_fhs",
"icon2": "sx_sjt_fhs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 1,
"value": 0
@ -283,6 +317,8 @@
"icon": "sx_hjt_fhs",
"icon2": "sx_hjt_fhs",
"weight": 840,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 2,
"value": 0
@ -297,6 +333,8 @@
"icon": "sx_sd_dhs",
"icon2": "sx_sd_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -311,6 +349,8 @@
"icon": "sx_sd_ls",
"icon2": "sx_sd_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -325,6 +365,8 @@
"icon": "sx_sd_lvs",
"icon2": "sx_sd_lvs",
"weight": 1500,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -339,6 +381,8 @@
"icon": "sx_sd_zs",
"icon2": "sx_sd_zs",
"weight": 1500,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -353,6 +397,8 @@
"icon": "sx_sd_hs",
"icon2": "sx_sd_hs",
"weight": 2500,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -367,6 +413,8 @@
"icon": "sx_sd_fhs",
"icon2": "sx_sd_fhs",
"weight": 2500,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 3,
"value": 6
@ -381,6 +429,8 @@
"icon": "",
"icon2": "",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 3,
"type": 0,
"value": 0
@ -395,6 +445,8 @@
"icon": "sx_zd_dhs",
"icon2": "sx_zd_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -409,6 +461,8 @@
"icon": "sx_zd_ls",
"icon2": "sx_zd_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -423,6 +477,8 @@
"icon": "sx_zd_lvs",
"icon2": "sx_zd_lvs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -437,6 +493,8 @@
"icon": "sx_zd_zs",
"icon2": "sx_zd_zs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -451,6 +509,8 @@
"icon": "sx_zd_hs",
"icon2": "sx_zd_hs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -465,6 +525,8 @@
"icon": "sx_zd_fhs",
"icon2": "sx_zd_fhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 4,
"value": 9
@ -481,6 +543,8 @@
"icon": "sx_syh_dhs",
"icon2": "sx_syh_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -497,6 +561,8 @@
"icon": "sx_xyh_dhs",
"icon2": "sx_xyh_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -513,6 +579,8 @@
"icon": "sx_zyh_dhs",
"icon2": "sx_zyh_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -529,6 +597,8 @@
"icon": "sx_yyh_dhs",
"icon2": "sx_yyh_ls",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0
@ -545,6 +615,8 @@
"icon": "sx_syh_ls",
"icon2": "sx_syh_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -561,6 +633,8 @@
"icon": "sx_xyh_ls",
"icon2": "sx_xyh_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -577,6 +651,8 @@
"icon": "sx_zyh_ls",
"icon2": "sx_zyh_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -593,6 +669,8 @@
"icon": "sx_yyh_ls",
"icon2": "sx_yyh_dhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0
@ -609,6 +687,8 @@
"icon": "sx_syh_lvs",
"icon2": "sx_syh_lvs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -625,6 +705,8 @@
"icon": "sx_xyh_lvs",
"icon2": "sx_xyh_lvs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -641,6 +723,8 @@
"icon": "sx_zyh_lvs",
"icon2": "sx_zyh_lvs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -657,6 +741,8 @@
"icon": "sx_yyh_lvs",
"icon2": "sx_yyh_lvs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0
@ -673,6 +759,8 @@
"icon": "sx_syh_zs",
"icon2": "sx_syh_zs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -689,6 +777,8 @@
"icon": "sx_xyh_zs",
"icon2": "sx_xyh_zs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -705,6 +795,8 @@
"icon": "sx_zyh_zs",
"icon2": "sx_zyh_zs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -721,6 +813,8 @@
"icon": "sx_yyh_zs",
"icon2": "sx_yyh_zs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0
@ -737,6 +831,8 @@
"icon": "sx_syh_hs",
"icon2": "sx_syh_hs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -753,6 +849,8 @@
"icon": "sx_xyh_hs",
"icon2": "sx_xyh_hs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -769,6 +867,8 @@
"icon": "sx_zyh_hs",
"icon2": "sx_zyh_hs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -785,6 +885,8 @@
"icon": "sx_yyh_hs",
"icon2": "sx_yyh_hs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0
@ -801,6 +903,8 @@
"icon": "sx_syh_fhs",
"icon2": "sx_syh_fhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 5,
"value": 0
@ -817,6 +921,8 @@
"icon": "sx_xyh_fhs",
"icon2": "sx_xyh_fhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 6,
"value": 0
@ -833,6 +939,8 @@
"icon": "sx_zyh_fhs",
"icon2": "sx_zyh_fhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 7,
"value": 0
@ -849,6 +957,8 @@
"icon": "sx_yyh_fhs",
"icon2": "sx_yyh_fhs",
"weight": 1000,
"effect": "",
"pointeffect": "effect_sx_liuguang_fhs",
"score": 1,
"type": 8,
"value": 0

View File

@ -21280,7 +21280,7 @@
"type_sp": 1,
"tasktxt": {
"key": "buried_buried_condi_tasktxt_724",
"text": "调查喷泉花园处的恐惧灵气息"
"text": "调查喷泉花园附近"
},
"type": 20001,
"valid": 1,
@ -21305,7 +21305,7 @@
"type_sp": 1,
"tasktxt": {
"key": "buried_buried_condi_tasktxt_725",
"text": "调查圣桃树前的恐惧灵气息"
"text": "调查圣桃树附近"
},
"type": 20001,
"valid": 1,
@ -21330,7 +21330,7 @@
"type_sp": 1,
"tasktxt": {
"key": "buried_buried_condi_tasktxt_726",
"text": "调查擂台旁的恐惧灵气息"
"text": "调查擂台附近"
},
"type": 20001,
"valid": 1,

View File

@ -881,6 +881,7 @@
"a": "attr",
"t": "consumeexp",
"n": 1
}
},
"td_Hp": 100
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@
107
],
"url": "100001",
"tips": 10000,
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000MT.prefab",
"pvpAnimator": "Person/10000/10000_MPvp.controller",
@ -33,6 +34,7 @@
107
],
"url": "200001",
"tips": 10000,
"resources": "Person/10000/10000W.prefab",
"vague": "Person/10000/10000WT.prefab",
"pvpAnimator": "Person/10000/10000_WPvp.controller",
@ -57,6 +59,7 @@
107
],
"url": "explore",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -81,6 +84,7 @@
107
],
"url": "explore",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -105,6 +109,7 @@
107
],
"url": "character_cardshow",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -129,6 +134,7 @@
107
],
"url": "character_cardshow",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -153,6 +159,7 @@
107
],
"url": "",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -177,6 +184,7 @@
107
],
"url": "",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -201,6 +209,7 @@
107
],
"url": "",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",
@ -225,6 +234,7 @@
107
],
"url": "",
"tips": 10000,
"resources": "",
"vague": "",
"pvpAnimator": "",

View File

@ -1,34 +1,18 @@
[
{
"key": 1,
"model": "组件",
"model": "组件名称",
"num": 5,
"thing": "",
"upthing": 0,
"detailthing": 0,
"cdtxt": {
"type": [
90,
10
],
"typeone": [],
"typetwo": [],
"cd": {
"key": "repeat_repeat_all_cdtxt_01",
"text": "别薅羊毛了,没了。"
},
"cdtime": 18000,
"reward": [
{
"a": "attr",
"t": "gold",
"n": 10000
}
]
},
{
"key": 2,
"model": "0",
"num": 5,
"thing": "",
"upthing": 0,
"detailthing": 0,
"cdtxt": {
"key": "repeat_repeat_all_cdtxt_02",
"text": "还行吧,等会再做吧。"
"text": "地面干净了不少。"
},
"cdtime": 18000,
"reward": [

View File

@ -27860,9 +27860,7 @@
2,
500
],
"FollowSK": [
255006213
],
"FollowSK": [],
"SucFollowSK": [],
"FailFollowSK": [],
"MustHit": false,
@ -35646,7 +35644,7 @@
"From": 2,
"Where": [],
"Order": "",
"Limit": 10,
"Limit": 1,
"ExecuteCnt": 1,
"Type": 3,
"Argu": [

View File

@ -21688,7 +21688,8 @@
"ChildSkill": {
"Id": [
255006211,
255006212
255006212,
255006213
]
},
"passSkill": [],
@ -27127,7 +27128,7 @@
"Type": 1,
"CD": 4,
"Where": [],
"Target": 1,
"Target": 0,
"ChildSkill": {
"Id": [
234005211
@ -47136,13 +47137,11 @@
"Target": 0,
"ChildSkill": {
"Id": [
253007211,
253007212,
253007213
]
},
"passSkill": [
253007211
],
"passSkill": [],
"Desc": {
"key": "skill_skill_atk_Desc_153007211_1",
"text": "尽可能的复活死亡的队友。"

File diff suppressed because it is too large Load Diff

122
bin/json/game_tdlv.json Normal file
View File

@ -0,0 +1,122 @@
[
{
"td_lv": 1,
"exp": 0
},
{
"td_lv": 2,
"exp": 2
},
{
"td_lv": 3,
"exp": 8
},
{
"td_lv": 4,
"exp": 16
},
{
"td_lv": 5,
"exp": 26
},
{
"td_lv": 6,
"exp": 38
},
{
"td_lv": 7,
"exp": 52
},
{
"td_lv": 8,
"exp": 68
},
{
"td_lv": 9,
"exp": 86
},
{
"td_lv": 10,
"exp": 106
},
{
"td_lv": 11,
"exp": 128
},
{
"td_lv": 12,
"exp": 152
},
{
"td_lv": 13,
"exp": 178
},
{
"td_lv": 14,
"exp": 206
},
{
"td_lv": 15,
"exp": 236
},
{
"td_lv": 16,
"exp": 268
},
{
"td_lv": 17,
"exp": 302
},
{
"td_lv": 18,
"exp": 338
},
{
"td_lv": 19,
"exp": 376
},
{
"td_lv": 20,
"exp": 416
},
{
"td_lv": 21,
"exp": 458
},
{
"td_lv": 22,
"exp": 502
},
{
"td_lv": 23,
"exp": 548
},
{
"td_lv": 24,
"exp": 596
},
{
"td_lv": 25,
"exp": 646
},
{
"td_lv": 26,
"exp": 698
},
{
"td_lv": 27,
"exp": 752
},
{
"td_lv": 28,
"exp": 808
},
{
"td_lv": 29,
"exp": 866
},
{
"td_lv": 30,
"exp": 926
}
]

View File

@ -12,7 +12,7 @@
"width": 1,
"height": 1,
"hp": 100,
"dis": 1,
"dis": 2,
"atk": 1,
"atk_speed": 2000,
"move_speed": 2,
@ -31,7 +31,7 @@
"width": 1,
"height": 1,
"hp": 500,
"dis": 1,
"dis": 3,
"atk": 3,
"atk_speed": 5000,
"move_speed": 1,
@ -50,7 +50,7 @@
"width": 1,
"height": 1.5,
"hp": 70,
"dis": 1,
"dis": 4,
"atk": 1,
"atk_speed": 1500,
"move_speed": 2.5,
@ -69,7 +69,7 @@
"width": 1,
"height": 1.5,
"hp": 100,
"dis": 10,
"dis": 5,
"atk": 1,
"atk_speed": 2000,
"move_speed": 2,
@ -88,7 +88,7 @@
"width": 1,
"height": 2,
"hp": 200,
"dis": 10,
"dis": 6,
"atk": 1,
"atk_speed": 2000,
"move_speed": 2,
@ -107,7 +107,7 @@
"width": 1,
"height": 2,
"hp": 300,
"dis": 1,
"dis": 7,
"atk": 1,
"atk_speed": 2000,
"move_speed": 2,
@ -126,7 +126,7 @@
"width": 3,
"height": 3,
"hp": 3000,
"dis": 1,
"dis": 8,
"atk": 2,
"atk_speed": 2000,
"move_speed": 1.5,

View File

@ -0,0 +1,53 @@
[
{
"id": 1,
"name": {
"key": "td_t_weapon_name1",
"text": "法杖"
},
"describe": {
"key": "td_t_weapon_describe1",
"text": "向前方发射冲击能量打击敌人"
},
"sak": 20,
"atk_speed": 2000,
"weapon_type": 1,
"fly_speed": 10,
"data": 0,
"pro": 1000
},
{
"id": 2,
"name": {
"key": "td_t_weapon_name2",
"text": "爆炎弹"
},
"describe": {
"key": "td_t_weapon_describe2",
"text": "向前方射出一枚爆炎弹,碰到第一个敌人后会立刻爆炸造成范围伤害"
},
"sak": 50,
"atk_speed": 5000,
"weapon_type": 2,
"fly_speed": 8,
"data": 50,
"pro": 1000
},
{
"id": 3,
"name": {
"key": "td_t_weapon_name3",
"text": "弹力球"
},
"describe": {
"key": "td_t_weapon_describe3",
"text": "射出后可以穿透敌人的弹力球,会在敌人之间相互碰撞"
},
"sak": 15,
"atk_speed": 2000,
"weapon_type": 3,
"fly_speed": 10,
"data": 3,
"pro": 1000
}
]

View File

@ -2668,5 +2668,53 @@
"n": 0
}
]
},
{
"id": "eliminationmain",
"subId": "",
"currencyField": [
{
"a": "attr",
"t": "gold",
"n": 1
},
{
"a": "attr",
"t": "diamond",
"n": 1
}
]
},
{
"id": "eliminationselection",
"subId": "",
"currencyField": [
{
"a": "attr",
"t": "gold",
"n": 1
},
{
"a": "attr",
"t": "diamond",
"n": 1
}
]
},
{
"id": "eliminationtask",
"subId": "",
"currencyField": [
{
"a": "attr",
"t": "gold",
"n": 1
},
{
"a": "attr",
"t": "diamond",
"n": 1
}
]
}
]

41
modules/island/api_buy.go Normal file
View File

@ -0,0 +1,41 @@
package island
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
// 参数校验
func (this *apiComp) BuyCheck(session comm.IUserSession, req *pb.IsLandBuyReq) (errdata *pb.ErrorData) {
return
}
// /获取自己的排行榜信息
func (this *apiComp) Buy(session comm.IUserSession, req *pb.IsLandBuyReq) (errdata *pb.ErrorData) {
var (
info *pb.DBIsland
heros []*pb.DBHero
err error
)
if errdata = this.BuyCheck(session, req); errdata != nil {
return
}
if info, err = this.module.model.getmodel(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
if heros, err = this.module.modelhero.getHeroList(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
session.SendMsg(string(this.module.GetType()), "info", &pb.IsLandInfoResp{Info: info, Heros: heros})
return
}

View File

@ -0,0 +1,41 @@
package island
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
// 参数校验
func (this *apiComp) RefreshHeroShopCheck(session comm.IUserSession, req *pb.IsLandRefresHeroShopReq) (errdata *pb.ErrorData) {
return
}
//刷新商店
func (this *apiComp) RefreshHeroShop(session comm.IUserSession, req *pb.IsLandRefresHeroShopReq) (errdata *pb.ErrorData) {
var (
info *pb.DBIsland
heros []*pb.DBHero
err error
)
if errdata = this.RefreshHeroShopCheck(session, req); errdata != nil {
return
}
if info, err = this.module.model.getmodel(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
if heros, err = this.module.modelhero.getHeroList(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
session.SendMsg(string(this.module.GetType()), "info", &pb.IsLandInfoResp{Info: info, Heros: heros})
return
}

View File

@ -32,3 +32,7 @@ func (this *modelHeroComp) getHeroList(uid string) (heros []*pb.DBHero, err erro
err = this.GetList(uid, &heros)
return
}
func (this *modelHeroComp) addheros(heros *pb.DBHero) (err error) {
return
}

View File

@ -27,6 +27,7 @@ type DBIsland struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
Heroshop []int32 `protobuf:"varint,3,rep,packed,name=heroshop,proto3" json:"heroshop"` //英雄商店
Islands map[int32]*DBIslandItem `protobuf:"bytes,4,rep,name=islands,proto3" json:"islands" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //岛屿
Nodes map[int32]int32 `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //养成节点
Freeprogress int32 `protobuf:"varint,6,opt,name=freeprogress,proto3" json:"freeprogress"` //已领取天数
@ -80,6 +81,13 @@ func (x *DBIsland) GetUid() string {
return ""
}
func (x *DBIsland) GetHeroshop() []int32 {
if x != nil {
return x.Heroshop
}
return nil
}
func (x *DBIsland) GetIslands() map[int32]*DBIslandItem {
if x != nil {
return x.Islands
@ -175,39 +183,41 @@ var File_island_island_db_proto protoreflect.FileDescriptor
var file_island_island_db_proto_rawDesc = []byte{
0x0a, 0x16, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x2f, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x5f,
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, 0x02, 0x0a, 0x08, 0x44, 0x42, 0x49,
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x03, 0x0a, 0x08, 0x44, 0x42, 0x49,
0x73, 0x6c, 0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x07, 0x69, 0x73, 0x6c, 0x61, 0x6e,
0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c,
0x61, 0x6e, 0x64, 0x2e, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x07, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x6e, 0x6f, 0x64,
0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c,
0x61, 0x6e, 0x64, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72, 0x65, 0x65, 0x70, 0x72, 0x6f,
0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x66, 0x72, 0x65,
0x65, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x79,
0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b,
0x70, 0x61, 0x79, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76,
0x69, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x76, 0x69, 0x70, 0x1a, 0x49, 0x0a,
0x0c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x65, 0x72, 0x6f, 0x73,
0x68, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x68, 0x65, 0x72, 0x6f, 0x73,
0x68, 0x6f, 0x70, 0x12, 0x30, 0x0a, 0x07, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x04,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x2e,
0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x69, 0x73,
0x6c, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x2e,
0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65,
0x73, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x72, 0x65, 0x65, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x66, 0x72, 0x65, 0x65, 0x70, 0x72, 0x6f,
0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x79, 0x70, 0x72, 0x6f, 0x67,
0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x70,
0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70, 0x18, 0x08,
0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x76, 0x69, 0x70, 0x1a, 0x49, 0x0a, 0x0c, 0x49, 0x73, 0x6c,
0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x49,
0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88,
0x01, 0x0a, 0x0c, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12,
0x2e, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x65,
0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x1a,
0x38, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x88, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49,
0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65,
0x6d, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6c, 0x65,
0x76, 0x65, 0x6c, 0x1a, 0x38, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@ -354,6 +354,188 @@ func (x *IsLandCompleteResp) GetAward() []*UserAtno {
return nil
}
//刷新英雄商店
type IsLandRefresHeroShopReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *IsLandRefresHeroShopReq) Reset() {
*x = IsLandRefresHeroShopReq{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IsLandRefresHeroShopReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IsLandRefresHeroShopReq) ProtoMessage() {}
func (x *IsLandRefresHeroShopReq) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IsLandRefresHeroShopReq.ProtoReflect.Descriptor instead.
func (*IsLandRefresHeroShopReq) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{6}
}
type IsLandRefresHeroShopResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Heroshop []int32 `protobuf:"varint,1,rep,packed,name=heroshop,proto3" json:"heroshop"` //英雄商店
}
func (x *IsLandRefresHeroShopResp) Reset() {
*x = IsLandRefresHeroShopResp{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IsLandRefresHeroShopResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IsLandRefresHeroShopResp) ProtoMessage() {}
func (x *IsLandRefresHeroShopResp) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IsLandRefresHeroShopResp.ProtoReflect.Descriptor instead.
func (*IsLandRefresHeroShopResp) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{7}
}
func (x *IsLandRefresHeroShopResp) GetHeroshop() []int32 {
if x != nil {
return x.Heroshop
}
return nil
}
//购买英雄卡
type IsLandBuyReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Cids []int32 `protobuf:"varint,1,rep,packed,name=cids,proto3" json:"cids"`
}
func (x *IsLandBuyReq) Reset() {
*x = IsLandBuyReq{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IsLandBuyReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IsLandBuyReq) ProtoMessage() {}
func (x *IsLandBuyReq) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IsLandBuyReq.ProtoReflect.Descriptor instead.
func (*IsLandBuyReq) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{8}
}
func (x *IsLandBuyReq) GetCids() []int32 {
if x != nil {
return x.Cids
}
return nil
}
//购买英雄卡回应
type IsLandBuyResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Award []*UserAtno `protobuf:"bytes,1,rep,name=award,proto3" json:"award"` //奖励
}
func (x *IsLandBuyResp) Reset() {
*x = IsLandBuyResp{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IsLandBuyResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IsLandBuyResp) ProtoMessage() {}
func (x *IsLandBuyResp) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IsLandBuyResp.ProtoReflect.Descriptor instead.
func (*IsLandBuyResp) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{9}
}
func (x *IsLandBuyResp) GetAward() []*UserAtno {
if x != nil {
return x.Award
}
return nil
}
//升级节点
type IsLandUpgradeReq struct {
state protoimpl.MessageState
@ -366,7 +548,7 @@ type IsLandUpgradeReq struct {
func (x *IsLandUpgradeReq) Reset() {
*x = IsLandUpgradeReq{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[6]
mi := &file_island_island_msg_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -379,7 +561,7 @@ func (x *IsLandUpgradeReq) String() string {
func (*IsLandUpgradeReq) ProtoMessage() {}
func (x *IsLandUpgradeReq) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[6]
mi := &file_island_island_msg_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -392,7 +574,7 @@ func (x *IsLandUpgradeReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsLandUpgradeReq.ProtoReflect.Descriptor instead.
func (*IsLandUpgradeReq) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{6}
return file_island_island_msg_proto_rawDescGZIP(), []int{10}
}
func (x *IsLandUpgradeReq) GetNid() int32 {
@ -415,7 +597,7 @@ type IsLandUpgradeResp struct {
func (x *IsLandUpgradeResp) Reset() {
*x = IsLandUpgradeResp{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[7]
mi := &file_island_island_msg_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -428,7 +610,7 @@ func (x *IsLandUpgradeResp) String() string {
func (*IsLandUpgradeResp) ProtoMessage() {}
func (x *IsLandUpgradeResp) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[7]
mi := &file_island_island_msg_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -441,7 +623,7 @@ func (x *IsLandUpgradeResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsLandUpgradeResp.ProtoReflect.Descriptor instead.
func (*IsLandUpgradeResp) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{7}
return file_island_island_msg_proto_rawDescGZIP(), []int{11}
}
func (x *IsLandUpgradeResp) GetNid() int32 {
@ -468,7 +650,7 @@ type IsLandReceiveReq struct {
func (x *IsLandReceiveReq) Reset() {
*x = IsLandReceiveReq{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[8]
mi := &file_island_island_msg_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -481,7 +663,7 @@ func (x *IsLandReceiveReq) String() string {
func (*IsLandReceiveReq) ProtoMessage() {}
func (x *IsLandReceiveReq) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[8]
mi := &file_island_island_msg_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -494,7 +676,7 @@ func (x *IsLandReceiveReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsLandReceiveReq.ProtoReflect.Descriptor instead.
func (*IsLandReceiveReq) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{8}
return file_island_island_msg_proto_rawDescGZIP(), []int{12}
}
type IsLandReceiveResp struct {
@ -509,7 +691,7 @@ type IsLandReceiveResp struct {
func (x *IsLandReceiveResp) Reset() {
*x = IsLandReceiveResp{}
if protoimpl.UnsafeEnabled {
mi := &file_island_island_msg_proto_msgTypes[9]
mi := &file_island_island_msg_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -522,7 +704,7 @@ func (x *IsLandReceiveResp) String() string {
func (*IsLandReceiveResp) ProtoMessage() {}
func (x *IsLandReceiveResp) ProtoReflect() protoreflect.Message {
mi := &file_island_island_msg_proto_msgTypes[9]
mi := &file_island_island_msg_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -535,7 +717,7 @@ func (x *IsLandReceiveResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsLandReceiveResp.ProtoReflect.Descriptor instead.
func (*IsLandReceiveResp) Descriptor() ([]byte, []int) {
return file_island_island_msg_proto_rawDescGZIP(), []int{9}
return file_island_island_msg_proto_rawDescGZIP(), []int{13}
}
func (x *IsLandReceiveResp) GetInfo() *DBIsland {
@ -590,20 +772,31 @@ var file_island_island_msg_proto_rawDesc = []byte{
0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74,
0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61,
0x77, 0x61, 0x72, 0x64, 0x22, 0x24, 0x0a, 0x10, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x55, 0x70,
0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x22, 0x35, 0x0a, 0x11, 0x49, 0x73,
0x4c, 0x61, 0x6e, 0x64, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
0x10, 0x0a, 0x03, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69,
0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c,
0x76, 0x22, 0x12, 0x0a, 0x10, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69,
0x76, 0x65, 0x52, 0x65, 0x71, 0x22, 0x53, 0x0a, 0x11, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x52,
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x6e,
0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c,
0x61, 0x6e, 0x64, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61,
0x72, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x77, 0x61, 0x72, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x52, 0x65,
0x66, 0x72, 0x65, 0x73, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x68, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x22,
0x36, 0x0a, 0x18, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x48,
0x65, 0x72, 0x6f, 0x53, 0x68, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x68,
0x65, 0x72, 0x6f, 0x73, 0x68, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x68,
0x65, 0x72, 0x6f, 0x73, 0x68, 0x6f, 0x70, 0x22, 0x22, 0x0a, 0x0c, 0x49, 0x73, 0x4c, 0x61, 0x6e,
0x64, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x63, 0x69, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x0d, 0x49,
0x73, 0x4c, 0x61, 0x6e, 0x64, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x05,
0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x22, 0x24, 0x0a,
0x10, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65,
0x71, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
0x6e, 0x69, 0x64, 0x22, 0x35, 0x0a, 0x11, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x55, 0x70, 0x67,
0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x12, 0x0a, 0x10, 0x49, 0x73,
0x4c, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x22, 0x53,
0x0a, 0x11, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52,
0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x52, 0x04, 0x69, 0x6e,
0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77,
0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
@ -618,39 +811,44 @@ func file_island_island_msg_proto_rawDescGZIP() []byte {
return file_island_island_msg_proto_rawDescData
}
var file_island_island_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_island_island_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_island_island_msg_proto_goTypes = []interface{}{
(*IsLandInfoReq)(nil), // 0: IsLandInfoReq
(*IsLandInfoResp)(nil), // 1: IsLandInfoResp
(*IsLandBattleReq)(nil), // 2: IsLandBattleReq
(*IsLandBattleResp)(nil), // 3: IsLandBattleResp
(*IsLandCompleteReq)(nil), // 4: IsLandCompleteReq
(*IsLandCompleteResp)(nil), // 5: IsLandCompleteResp
(*IsLandUpgradeReq)(nil), // 6: IsLandUpgradeReq
(*IsLandUpgradeResp)(nil), // 7: IsLandUpgradeResp
(*IsLandReceiveReq)(nil), // 8: IsLandReceiveReq
(*IsLandReceiveResp)(nil), // 9: IsLandReceiveResp
(*DBIsland)(nil), // 10: DBIsland
(*DBHero)(nil), // 11: DBHero
(*BattleFormation)(nil), // 12: BattleFormation
(*BattleInfo)(nil), // 13: BattleInfo
(*BattleReport)(nil), // 14: BattleReport
(*UserAtno)(nil), // 15: UserAtno
(*IsLandInfoReq)(nil), // 0: IsLandInfoReq
(*IsLandInfoResp)(nil), // 1: IsLandInfoResp
(*IsLandBattleReq)(nil), // 2: IsLandBattleReq
(*IsLandBattleResp)(nil), // 3: IsLandBattleResp
(*IsLandCompleteReq)(nil), // 4: IsLandCompleteReq
(*IsLandCompleteResp)(nil), // 5: IsLandCompleteResp
(*IsLandRefresHeroShopReq)(nil), // 6: IsLandRefresHeroShopReq
(*IsLandRefresHeroShopResp)(nil), // 7: IsLandRefresHeroShopResp
(*IsLandBuyReq)(nil), // 8: IsLandBuyReq
(*IsLandBuyResp)(nil), // 9: IsLandBuyResp
(*IsLandUpgradeReq)(nil), // 10: IsLandUpgradeReq
(*IsLandUpgradeResp)(nil), // 11: IsLandUpgradeResp
(*IsLandReceiveReq)(nil), // 12: IsLandReceiveReq
(*IsLandReceiveResp)(nil), // 13: IsLandReceiveResp
(*DBIsland)(nil), // 14: DBIsland
(*DBHero)(nil), // 15: DBHero
(*BattleFormation)(nil), // 16: BattleFormation
(*BattleInfo)(nil), // 17: BattleInfo
(*BattleReport)(nil), // 18: BattleReport
(*UserAtno)(nil), // 19: UserAtno
}
var file_island_island_msg_proto_depIdxs = []int32{
10, // 0: IsLandInfoResp.info:type_name -> DBIsland
11, // 1: IsLandInfoResp.heros:type_name -> DBHero
12, // 2: IsLandBattleReq.battle:type_name -> BattleFormation
13, // 3: IsLandBattleResp.info:type_name -> BattleInfo
14, // 4: IsLandCompleteReq.report:type_name -> BattleReport
15, // 5: IsLandCompleteResp.award:type_name -> UserAtno
10, // 6: IsLandReceiveResp.info:type_name -> DBIsland
15, // 7: IsLandReceiveResp.award:type_name -> UserAtno
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
14, // 0: IsLandInfoResp.info:type_name -> DBIsland
15, // 1: IsLandInfoResp.heros:type_name -> DBHero
16, // 2: IsLandBattleReq.battle:type_name -> BattleFormation
17, // 3: IsLandBattleResp.info:type_name -> BattleInfo
18, // 4: IsLandCompleteReq.report:type_name -> BattleReport
19, // 5: IsLandCompleteResp.award:type_name -> UserAtno
19, // 6: IsLandBuyResp.award:type_name -> UserAtno
14, // 7: IsLandReceiveResp.info:type_name -> DBIsland
19, // 8: IsLandReceiveResp.award:type_name -> UserAtno
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_island_island_msg_proto_init() }
@ -736,7 +934,7 @@ func file_island_island_msg_proto_init() {
}
}
file_island_island_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandUpgradeReq); i {
switch v := v.(*IsLandRefresHeroShopReq); i {
case 0:
return &v.state
case 1:
@ -748,7 +946,7 @@ func file_island_island_msg_proto_init() {
}
}
file_island_island_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandUpgradeResp); i {
switch v := v.(*IsLandRefresHeroShopResp); i {
case 0:
return &v.state
case 1:
@ -760,7 +958,7 @@ func file_island_island_msg_proto_init() {
}
}
file_island_island_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandReceiveReq); i {
switch v := v.(*IsLandBuyReq); i {
case 0:
return &v.state
case 1:
@ -772,6 +970,54 @@ func file_island_island_msg_proto_init() {
}
}
file_island_island_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandBuyResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_island_island_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandUpgradeReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_island_island_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandUpgradeResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_island_island_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandReceiveReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_island_island_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IsLandReceiveResp); i {
case 0:
return &v.state
@ -790,7 +1036,7 @@ func file_island_island_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_island_island_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 10,
NumMessages: 14,
NumExtensions: 0,
NumServices: 0,
},