同步配置文件命令修改
This commit is contained in:
parent
aa8914c14e
commit
cb7fff3445
@ -1,765 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"index": "ChineseSimplified",
|
|
||||||
"keycode": {
|
|
||||||
"key": "ChineseSimplified",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "ChineseTraditional",
|
|
||||||
"keycode": {
|
|
||||||
"key": "ChineseTraditional",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "English",
|
|
||||||
"keycode": {
|
|
||||||
"key": "English",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "3",
|
|
||||||
"keycode": {
|
|
||||||
"key": "3",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "4",
|
|
||||||
"keycode": {
|
|
||||||
"key": "4",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "5",
|
|
||||||
"keycode": {
|
|
||||||
"key": "5",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "6",
|
|
||||||
"keycode": {
|
|
||||||
"key": "6",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "7",
|
|
||||||
"keycode": {
|
|
||||||
"key": "7",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "8",
|
|
||||||
"keycode": {
|
|
||||||
"key": "8",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "9",
|
|
||||||
"keycode": {
|
|
||||||
"key": "9",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "10",
|
|
||||||
"keycode": {
|
|
||||||
"key": "10",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "Login",
|
|
||||||
"keycode": {
|
|
||||||
"key": "Login",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentDay1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentDay1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentDay2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentDay2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentHour1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentHour1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentHour2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentHour2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentMinutes1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentMinutes1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentMinutes2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentMinutes2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentSeconds1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentSeconds1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "MomentSeconds2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "MomentSeconds2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "Tuijian",
|
|
||||||
"keycode": {
|
|
||||||
"key": "Tuijian",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "Juese",
|
|
||||||
"keycode": {
|
|
||||||
"key": "Juese",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "star_2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "star_2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "star_3",
|
|
||||||
"keycode": {
|
|
||||||
"key": "star_3",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "star_4",
|
|
||||||
"keycode": {
|
|
||||||
"key": "star_4",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "star_5",
|
|
||||||
"keycode": {
|
|
||||||
"key": "star_5",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_3",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_3",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_4",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_4",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_5",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_5",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "color_6",
|
|
||||||
"keycode": {
|
|
||||||
"key": "color_6",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "race_1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "race_1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "race_2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "race_2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "race_3",
|
|
||||||
"keycode": {
|
|
||||||
"key": "race_3",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "race_4",
|
|
||||||
"keycode": {
|
|
||||||
"key": "race_4",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "job_1",
|
|
||||||
"keycode": {
|
|
||||||
"key": "job_1",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "job_2",
|
|
||||||
"keycode": {
|
|
||||||
"key": "job_2",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "job_3",
|
|
||||||
"keycode": {
|
|
||||||
"key": "job_3",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "job_4",
|
|
||||||
"keycode": {
|
|
||||||
"key": "job_4",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "job_5",
|
|
||||||
"keycode": {
|
|
||||||
"key": "job_5",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "equip_10001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "equip_10001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "equip_10002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "equip_10002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "equip_10003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "equip_10003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "equip_10004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "equip_10004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "equip_10005",
|
|
||||||
"keycode": {
|
|
||||||
"key": "equip_10005",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10005",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10005",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10006",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10006",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10007",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10007",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_10008",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_10008",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "nonactivated",
|
|
||||||
"keycode": {
|
|
||||||
"key": "nonactivated",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "activated",
|
|
||||||
"keycode": {
|
|
||||||
"key": "activated",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "tips_1001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "tips_1001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "tips_1002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "tips_1002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "tips_1003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "tips_1003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "tips_1004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "tips_1004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1005",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1005",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1006",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1006",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1007",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1007",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1008",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1008",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1009",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1009",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1010",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1010",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1011",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1011",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1012",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1012",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1013",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1013",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1014",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1014",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1015",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1015",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1016",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1016",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1017",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1017",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "num_1018",
|
|
||||||
"keycode": {
|
|
||||||
"key": "num_1018",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10005",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10005",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10006",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10006",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10007",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10007",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10008",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10008",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10009",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10009",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "opencond_name_10010",
|
|
||||||
"keycode": {
|
|
||||||
"key": "opencond_name_10010",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190011000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190011000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190012000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190012000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190013000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190013000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190014000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190014000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190015000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190015000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190016000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190016000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190017000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190017000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190018000",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190018000",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190011001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190011001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190011002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190011002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190011003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190011003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "skill_190011004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "skill_190011004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10001",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10001",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10002",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10002",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10003",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10003",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10004",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10004",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10005",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10005",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10006",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10006",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"index": "hero_help_10007",
|
|
||||||
"keycode": {
|
|
||||||
"key": "hero_help_10007",
|
|
||||||
"text": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
@ -2,12 +2,12 @@
|
|||||||
{
|
{
|
||||||
"id": 1001,
|
"id": 1001,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 0,
|
"lasttask": 0,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
101
|
101
|
||||||
],
|
],
|
||||||
"aftertaks": 1002,
|
"aftertask": 1002,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -32,13 +32,13 @@
|
|||||||
{
|
{
|
||||||
"id": 1002,
|
"id": 1002,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 1001,
|
"lasttask": 1001,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
101,
|
101,
|
||||||
102
|
102
|
||||||
],
|
],
|
||||||
"aftertaks": 1003,
|
"aftertask": 1003,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 2,
|
"tag": 2,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -63,13 +63,13 @@
|
|||||||
{
|
{
|
||||||
"id": 1003,
|
"id": 1003,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 1002,
|
"lasttask": 1002,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
101,
|
101,
|
||||||
103
|
103
|
||||||
],
|
],
|
||||||
"aftertaks": 1004,
|
"aftertask": 1004,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -90,13 +90,13 @@
|
|||||||
{
|
{
|
||||||
"id": 1004,
|
"id": 1004,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 1003,
|
"lasttask": 1003,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
101,
|
101,
|
||||||
103
|
103
|
||||||
],
|
],
|
||||||
"aftertaks": 1005,
|
"aftertask": 1005,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -117,13 +117,13 @@
|
|||||||
{
|
{
|
||||||
"id": 1005,
|
"id": 1005,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 1004,
|
"lasttask": 1004,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
104,
|
104,
|
||||||
105
|
105
|
||||||
],
|
],
|
||||||
"aftertaks": 1006,
|
"aftertask": 1006,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -144,12 +144,12 @@
|
|||||||
{
|
{
|
||||||
"id": 1006,
|
"id": 1006,
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"lastend": 1005,
|
"lasttask": 1005,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
106
|
106
|
||||||
],
|
],
|
||||||
"aftertaks": 0,
|
"aftertask": 0,
|
||||||
"icetime": 0,
|
"taskcd": 0,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -173,12 +173,12 @@
|
|||||||
{
|
{
|
||||||
"id": 1007,
|
"id": 1007,
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"lastend": 0,
|
"lasttask": 0,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
107
|
107
|
||||||
],
|
],
|
||||||
"aftertaks": 1002,
|
"aftertask": 1002,
|
||||||
"icetime": 1,
|
"taskcd": 1,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
@ -199,12 +199,12 @@
|
|||||||
{
|
{
|
||||||
"id": 1008,
|
"id": 1008,
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"lastend": 0,
|
"lasttask": 0,
|
||||||
"rdtaks_num": [
|
"rdtasknum": [
|
||||||
108
|
108
|
||||||
],
|
],
|
||||||
"aftertaks": 1002,
|
"aftertask": 1002,
|
||||||
"icetime": -1,
|
"taskcd": -1,
|
||||||
"tag": 1,
|
"tag": 1,
|
||||||
"story": 3,
|
"story": 3,
|
||||||
"completetask": 0,
|
"completetask": 0,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10001,
|
"chooseid": 10001,
|
||||||
"num": 1,
|
"num": 1,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -10,7 +10,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10002,
|
"chooseid": 10002,
|
||||||
"num": 2,
|
"num": 2,
|
||||||
"rdtaks_num": 107,
|
"rdtaksnum": 107,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10003,
|
"chooseid": 10003,
|
||||||
"num": 3,
|
"num": 3,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -26,7 +26,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10011,
|
"chooseid": 10011,
|
||||||
"num": 1,
|
"num": 1,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -34,7 +34,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10012,
|
"chooseid": 10012,
|
||||||
"num": 2,
|
"num": 2,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -42,7 +42,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10013,
|
"chooseid": 10013,
|
||||||
"num": 3,
|
"num": 3,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -50,7 +50,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10021,
|
"chooseid": 10021,
|
||||||
"num": 1,
|
"num": 1,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -58,7 +58,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10022,
|
"chooseid": 10022,
|
||||||
"num": 2,
|
"num": 2,
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -66,7 +66,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10031,
|
"chooseid": 10031,
|
||||||
"num": 1,
|
"num": 1,
|
||||||
"rdtaks_num": 0,
|
"rdtaksnum": 0,
|
||||||
"need": [
|
"need": [
|
||||||
10012
|
10012
|
||||||
]
|
]
|
||||||
@ -74,7 +74,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10032,
|
"chooseid": 10032,
|
||||||
"num": 2,
|
"num": 2,
|
||||||
"rdtaks_num": 0,
|
"rdtaksnum": 0,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
@ -82,7 +82,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10041,
|
"chooseid": 10041,
|
||||||
"num": 1,
|
"num": 1,
|
||||||
"rdtaks_num": 0,
|
"rdtaksnum": 0,
|
||||||
"need": [
|
"need": [
|
||||||
10010
|
10010
|
||||||
]
|
]
|
||||||
@ -90,7 +90,7 @@
|
|||||||
{
|
{
|
||||||
"chooseid": 10042,
|
"chooseid": 10042,
|
||||||
"num": 2,
|
"num": 2,
|
||||||
"rdtaks_num": 0,
|
"rdtaksnum": 0,
|
||||||
"need": [
|
"need": [
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
|
@ -1,72 +1,72 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"rdtaks_num": 101,
|
"rdtaksnum": 101,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 1,
|
"typtaskid": 1,
|
||||||
"data1": 90001,
|
"data1": 90001,
|
||||||
"data2": 0,
|
"data2": 0,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 102,
|
"rdtaksnum": 102,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 2,
|
"typtaskid": 2,
|
||||||
"data1": 3,
|
"data1": 3,
|
||||||
"data2": 0,
|
"data2": 0,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 103,
|
"rdtaksnum": 103,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 3,
|
"typtaskid": 3,
|
||||||
"data1": 2,
|
"data1": 2,
|
||||||
"data2": 0,
|
"data2": 0,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 104,
|
"rdtaksnum": 104,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 4,
|
"typtaskid": 4,
|
||||||
"data1": 90001,
|
"data1": 90001,
|
||||||
"data2": 15,
|
"data2": 15,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 105,
|
"rdtaksnum": 105,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 4,
|
"typtaskid": 4,
|
||||||
"data1": 25001,
|
"data1": 25001,
|
||||||
"data2": 10,
|
"data2": 10,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 106,
|
"rdtaksnum": 106,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 5,
|
"typtaskid": 5,
|
||||||
"data1": 90001,
|
"data1": 90001,
|
||||||
"data2": 2,
|
"data2": 2,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 107,
|
"rdtaksnum": 107,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 4,
|
"typtaskid": 4,
|
||||||
"data1": 25001,
|
"data1": 25001,
|
||||||
"data2": 20,
|
"data2": 20,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rdtaks_num": 108,
|
"rdtaksnum": 108,
|
||||||
"typdes": 2,
|
"typdes": 2,
|
||||||
"datatime": 1,
|
"datatime": 1,
|
||||||
"typtask_id": 6,
|
"typtaskid": 6,
|
||||||
"data1": 90001,
|
"data1": 90001,
|
||||||
"data2": 5,
|
"data2": 5,
|
||||||
"data3": 0
|
"data3": 0
|
||||||
|
@ -1,926 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"id": "loading",
|
|
||||||
"file": "LoadingWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "loading/loading",
|
|
||||||
"packagename": "loading",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "加载界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "login",
|
|
||||||
"file": "LoginWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "登录界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "useragreement",
|
|
||||||
"file": "LoginUseragreementWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "useragreement",
|
|
||||||
"des": "登录界面用户隐私协议"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "serverlist",
|
|
||||||
"file": "ServerListWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 2,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "serverlist",
|
|
||||||
"des": "服务器列表"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "loginaccountpopup",
|
|
||||||
"file": "LoginAccountPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "loginaccountnumber",
|
|
||||||
"des": "账号登录"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mobilephonelogin",
|
|
||||||
"file": "MobilePhoneLoginPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "mobilephonelogin",
|
|
||||||
"des": "手机号登录"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "gameadvice",
|
|
||||||
"file": "GameAdviceWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "login/login",
|
|
||||||
"packagename": "login",
|
|
||||||
"comname": "gameadvice",
|
|
||||||
"des": "游戏logo"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "tanxian",
|
|
||||||
"file": "TanXianWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "tanxian/tanxian",
|
|
||||||
"packagename": "tanxian",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "探险界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "bigmap",
|
|
||||||
"file": "BigmapWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "bigmap/bigmap",
|
|
||||||
"packagename": "bigmap",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "大地图界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "starup_hero",
|
|
||||||
"file": "HeroStarUpWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "hero/hero",
|
|
||||||
"packagename": "hero",
|
|
||||||
"comname": "heroCultivatePanel",
|
|
||||||
"des": "英雄升星界面(临时)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "heropanel",
|
|
||||||
"file": "HeroPanelWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "hero/hero",
|
|
||||||
"packagename": "hero",
|
|
||||||
"comname": "heroPanel",
|
|
||||||
"des": "英雄界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition2",
|
|
||||||
"file": "Exhibition2Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "main2",
|
|
||||||
"des": "临时展示界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition3",
|
|
||||||
"file": "Exhibition3Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "main1",
|
|
||||||
"des": "临时展示界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition_back1",
|
|
||||||
"file": "ExhibitionBack1Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "back",
|
|
||||||
"des": "临时展示界面-屏幕滑动"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition_back2",
|
|
||||||
"file": "ExhibitionBack2Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "back",
|
|
||||||
"des": "临时展示界面-左下按钮返回"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition_back3",
|
|
||||||
"file": "ExhibitionBack3Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "back",
|
|
||||||
"des": "临时展示界面-模型旋转"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "exhibition_back4",
|
|
||||||
"file": "ExhibitionBack4Window",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "exhibition/exhibition",
|
|
||||||
"packagename": "exhibition",
|
|
||||||
"comname": "back_up",
|
|
||||||
"des": "临时展示界面-左上按钮返回"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "generaltips",
|
|
||||||
"file": "GeneralTipsWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "GeneralTips",
|
|
||||||
"des": "跑马灯"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "noticetips",
|
|
||||||
"file": "NoticeTipsWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "NoticeTips",
|
|
||||||
"des": "通用提示"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "zhandou",
|
|
||||||
"file": "FightWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "main2",
|
|
||||||
"des": "战斗界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "koshow",
|
|
||||||
"file": "KOPanel",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "KOInterface",
|
|
||||||
"des": "KO界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "settlement",
|
|
||||||
"file": "SettlementWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "main_account",
|
|
||||||
"des": "战斗结算界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pausebattle",
|
|
||||||
"file": "PauseBattleWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "pausewindow",
|
|
||||||
"des": "战斗暂停界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "campties",
|
|
||||||
"file": "CampTiesWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "campties",
|
|
||||||
"des": "阵营加成"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "battleopen",
|
|
||||||
"file": "BattleOpenWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "battleopenwindow",
|
|
||||||
"des": "战斗开始界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "embattle",
|
|
||||||
"file": "EmbattleWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "Embattle",
|
|
||||||
"des": "布阵界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "battlestatistics",
|
|
||||||
"file": "BattleStatisticsWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "battlestatisticswindow",
|
|
||||||
"des": "战斗信息界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "battleinfo",
|
|
||||||
"file": "BattleInfoWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "battleinfo",
|
|
||||||
"des": "战斗信息设置界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "maincity",
|
|
||||||
"file": "MainCityWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "maincity/maincity",
|
|
||||||
"packagename": "maincity",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "主城界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "flagstonefunc",
|
|
||||||
"file": "FlagstoneFuncWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "maincity/maincity",
|
|
||||||
"packagename": "maincity",
|
|
||||||
"comname": "flagstonewindow",
|
|
||||||
"des": "交互场景石板功能界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "interactionui",
|
|
||||||
"file": "InteractionEventWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "maincity/maincity",
|
|
||||||
"packagename": "maincity",
|
|
||||||
"comname": "interactioneventwindow",
|
|
||||||
"des": "交互UI"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "messagebox",
|
|
||||||
"file": "MessageBoxWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "public/public",
|
|
||||||
"packagename": "public",
|
|
||||||
"comname": "messagebox",
|
|
||||||
"des": "默认弹出框"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "heronewlist",
|
|
||||||
"file": "HeroNewListWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "heronew/heronew",
|
|
||||||
"packagename": "heronew",
|
|
||||||
"comname": "heriopanel",
|
|
||||||
"des": "英雄列表"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "heronewinfo",
|
|
||||||
"file": "HeroNewInfoWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "heronew/heronew",
|
|
||||||
"packagename": "heronew",
|
|
||||||
"comname": "heroinfo",
|
|
||||||
"des": "英雄详情"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "heronewstart",
|
|
||||||
"file": "HeroNewStartWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "heronew/heronew",
|
|
||||||
"packagename": "heronew",
|
|
||||||
"comname": "herostarup",
|
|
||||||
"des": "升星-选择材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "battleready",
|
|
||||||
"file": "BattleReadyWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "battlereadywindow2",
|
|
||||||
"des": "战斗布阵界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "roledetail",
|
|
||||||
"file": "RoleDetailWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 3,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "roledetails",
|
|
||||||
"des": "英雄详细信息"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "bag",
|
|
||||||
"file": "BagWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "bag/bag",
|
|
||||||
"packagename": "bag",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "背包"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "notice",
|
|
||||||
"file": "NoticeWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "notice/notice",
|
|
||||||
"packagename": "notice",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "公告"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mainbarrier",
|
|
||||||
"file": "MainBarrierWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "mainline/mainline",
|
|
||||||
"packagename": "mainline",
|
|
||||||
"comname": "battledetails",
|
|
||||||
"des": "主线任务关卡界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mainworld",
|
|
||||||
"file": "MainWorldWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "mainline/mainline",
|
|
||||||
"packagename": "mainline",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "主线任务世界界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "rewardTips",
|
|
||||||
"file": "GeneralRewardPopup",
|
|
||||||
"unloadpkg": 5,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "rewardTips",
|
|
||||||
"des": "奖励预览弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "roleupgrade",
|
|
||||||
"file": "RoleUpGradeWindow",
|
|
||||||
"unloadpkg": 5,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "roleupgrade",
|
|
||||||
"des": "英雄升级升星详情"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "manual",
|
|
||||||
"file": "HeroManualWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "manual",
|
|
||||||
"des": "英雄图鉴"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "manual_grow",
|
|
||||||
"file": "ManualAttrGrowPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "role_grow",
|
|
||||||
"des": "英雄图鉴属性弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "task",
|
|
||||||
"file": "TaskWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "task/task",
|
|
||||||
"packagename": "task",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "任务"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "store",
|
|
||||||
"file": "StoreWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "store/store",
|
|
||||||
"packagename": "store",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "商店"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "storebuypopup",
|
|
||||||
"file": "StoreBuyPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "store/store",
|
|
||||||
"packagename": "store",
|
|
||||||
"comname": "popwindow",
|
|
||||||
"des": "商店数量选择"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "maininterface",
|
|
||||||
"file": "MainInterFaceWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 3,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "maininterface/maininterface",
|
|
||||||
"packagename": "maininterface",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "主界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mail",
|
|
||||||
"file": "EmailWindow",
|
|
||||||
"unloadpkg": 1,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "mail/mail",
|
|
||||||
"packagename": "mail",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "邮件界面"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "confirmpopup",
|
|
||||||
"file": "ConfirmPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "storetips",
|
|
||||||
"des": " 确认框"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "taskrewardpreview",
|
|
||||||
"file": "TaskRewardPreviewPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "task/task",
|
|
||||||
"packagename": "task",
|
|
||||||
"comname": "rewardPreview",
|
|
||||||
"des": "任务奖励预览"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "generalitempopup",
|
|
||||||
"file": "GeneralItemPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "GeneralItem",
|
|
||||||
"des": "通用奖励获取弹框"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "userset",
|
|
||||||
"file": "UserSetWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 0,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "userset/userset",
|
|
||||||
"packagename": "userset",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "用户设置"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "skillinfotips",
|
|
||||||
"file": "SkillInfoTipsWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "skillnametips",
|
|
||||||
"des": "技能描述提示框"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "captainskillinfotips",
|
|
||||||
"file": "CaptainSkillInfoTipsWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "skillnametips3",
|
|
||||||
"des": "队长技描述提示框"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "equistrengthen",
|
|
||||||
"file": "EquiStrengthenWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "equistrengthen",
|
|
||||||
"des": "装备强化"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "equistrengthenup",
|
|
||||||
"file": "EquiStrengthenUpPopup",
|
|
||||||
"unloadpkg": 5,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "equistrengthenup",
|
|
||||||
"des": "装备强化成功弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "croppingwindow",
|
|
||||||
"file": "CroppingWindow",
|
|
||||||
"unloadpkg": 0,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 2,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "zhandou/zhandou",
|
|
||||||
"packagename": "zhandou",
|
|
||||||
"comname": "cropping",
|
|
||||||
"des": "遮幅"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "saleconfirmpopup",
|
|
||||||
"file": "SaleConfirmPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "SaleTips",
|
|
||||||
"des": "出售确认弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "accesstopopup",
|
|
||||||
"file": "AccessToPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "tips/tips",
|
|
||||||
"packagename": "tips",
|
|
||||||
"comname": "AccessTo",
|
|
||||||
"des": "跳转弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "rolestrategy",
|
|
||||||
"file": "RoleStrategyWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 3,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "rolestrategy",
|
|
||||||
"des": "角色攻略"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "examine",
|
|
||||||
"file": "ExaminePopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "examine",
|
|
||||||
"des": "战术考核"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "plotwindow",
|
|
||||||
"file": "PlotWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "plotsystem/plotsystem",
|
|
||||||
"packagename": "plotsystem",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "剧情"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "recruit",
|
|
||||||
"file": "RecruitWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "recruit/recruit",
|
|
||||||
"packagename": "recruit",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "招募"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "recruittendraw",
|
|
||||||
"file": "RecruitTenDrawWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "recruit/recruit",
|
|
||||||
"packagename": "recruit",
|
|
||||||
"comname": "tendraw",
|
|
||||||
"des": "招募十连抽"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "recruitonedraw",
|
|
||||||
"file": "RecruitOneDrawWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "recruit/recruit",
|
|
||||||
"packagename": "recruit",
|
|
||||||
"comname": "onedraw",
|
|
||||||
"des": "招募单抽"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "resonancepopup",
|
|
||||||
"file": "ResonancePopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "com_resonance",
|
|
||||||
"des": "共鸣弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "materialsynthesispopup",
|
|
||||||
"file": "MaterialSynthesisPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 1,
|
|
||||||
"package": "roledetails/roledetails",
|
|
||||||
"packagename": "roledetails",
|
|
||||||
"comname": "com_synthesis",
|
|
||||||
"des": "材料合成弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "chatsystem",
|
|
||||||
"file": "ChatSystemWindow",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 2,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "chatsystem/chatsystem",
|
|
||||||
"packagename": "chatsystem",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "聊天"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pagoda",
|
|
||||||
"file": "PagodaWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "pagoda/pagoda",
|
|
||||||
"packagename": "pagoda",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "心魔之塔"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pagodaadoptreward",
|
|
||||||
"file": "PagodaAdoptRewardPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "pagoda/pagoda",
|
|
||||||
"packagename": "pagoda",
|
|
||||||
"comname": "pagodaadoptreward",
|
|
||||||
"des": "心魔之塔奖励弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pagodalineup",
|
|
||||||
"file": "PagodaLineupPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "pagoda/pagoda",
|
|
||||||
"packagename": "pagoda",
|
|
||||||
"comname": "pagodalineup",
|
|
||||||
"des": "心魔之塔推荐阵容弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pagodarankingpopup",
|
|
||||||
"file": "PagodaRankingPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "pagoda/pagoda",
|
|
||||||
"packagename": "pagoda",
|
|
||||||
"comname": "pagodaranking",
|
|
||||||
"des": "心魔之塔排行弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "pagodaseasonpopup",
|
|
||||||
"file": "PagodaRankingPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "pagoda/pagoda",
|
|
||||||
"packagename": "pagoda",
|
|
||||||
"comname": "pagodaranking",
|
|
||||||
"des": "心魔之塔排行弹窗"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "friendsystemwin",
|
|
||||||
"file": "FriendSystemWindow",
|
|
||||||
"unloadpkg": 2,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 1,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "friendsystem/friendsystem",
|
|
||||||
"packagename": "friendsystem",
|
|
||||||
"comname": "main",
|
|
||||||
"des": "好友系统"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "frienddetailspop",
|
|
||||||
"file": "FriendDetailsPopup",
|
|
||||||
"unloadpkg": 3,
|
|
||||||
"loadtype": 1,
|
|
||||||
"full": 0,
|
|
||||||
"blur": 0,
|
|
||||||
"package": "friendsystem/friendsystem",
|
|
||||||
"packagename": "friendsystem",
|
|
||||||
"comname": "details",
|
|
||||||
"des": "好详细信息"
|
|
||||||
}
|
|
||||||
]
|
|
@ -25,10 +25,10 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.ModuleCompBase.Init(service, module, comp, options)
|
this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
this.module = module.(*Chat)
|
this.module = module.(*Chat)
|
||||||
this.LoadConfigure(game_chatchannel, cfg.NewGamechatChannel)
|
this.LoadConfigure(game_chatchannel, cfg.NewGameChatChannel)
|
||||||
this.LoadConfigure(game_chatsystem, cfg.NewGamechatSystem)
|
this.LoadConfigure(game_chatsystem, cfg.NewGameChatSystem)
|
||||||
|
|
||||||
this.LoadConfigure(game_chatchannelcom, cfg.NewGamechatChannelCom)
|
this.LoadConfigure(game_chatchannelcom, cfg.NewGameChatChannelCom)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,14 +36,14 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
func (this *configureComp) GetAutoIntoChannelMax() (max int32, err error) {
|
func (this *configureComp) GetAutoIntoChannelMax() (max int32, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
configure *cfg.GamechatChannelComData
|
configure *cfg.GameChatChannelComData
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GamechatChannelCom).GetDataMap()["channel_allocation_max"]; !ok {
|
if configure, ok = v.(*cfg.GameChatChannelCom).GetDataMap()["channel_allocation_max"]; !ok {
|
||||||
err = fmt.Errorf("cfg.Game_chatServerGroupData on found channel_allocation_max")
|
err = fmt.Errorf("cfg.Game_chatServerGroupData on found channel_allocation_max")
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -60,14 +60,14 @@ func (this *configureComp) GetAutoIntoChannelMax() (max int32, err error) {
|
|||||||
func (this *configureComp) GetChanageChannelMax() (max int32, err error) {
|
func (this *configureComp) GetChanageChannelMax() (max int32, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
configure *cfg.GamechatChannelComData
|
configure *cfg.GameChatChannelComData
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GamechatChannelCom).GetDataMap()["channel_switching_max"]; !ok {
|
if configure, ok = v.(*cfg.GameChatChannelCom).GetDataMap()["channel_switching_max"]; !ok {
|
||||||
err = fmt.Errorf("cfg.Game_chatServerGroupData on found channel_switching_max")
|
err = fmt.Errorf("cfg.Game_chatServerGroupData on found channel_switching_max")
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -84,14 +84,14 @@ func (this *configureComp) GetChanageChannelMax() (max int32, err error) {
|
|||||||
func (this *configureComp) GetChannelRecordMax() (max int32, err error) {
|
func (this *configureComp) GetChannelRecordMax() (max int32, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
configure *cfg.GamechatChannelComData
|
configure *cfg.GameChatChannelComData
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GamechatChannelCom).GetDataMap()["max_chat"]; !ok {
|
if configure, ok = v.(*cfg.GameChatChannelCom).GetDataMap()["max_chat"]; !ok {
|
||||||
err = fmt.Errorf("cfg.Game_chatServerGroupData on found max_chat")
|
err = fmt.Errorf("cfg.Game_chatServerGroupData on found max_chat")
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -108,14 +108,14 @@ func (this *configureComp) GetChannelRecordMax() (max int32, err error) {
|
|||||||
func (this *configureComp) GetChannelReadRecordNum() (max int32, err error) {
|
func (this *configureComp) GetChannelReadRecordNum() (max int32, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
configure *cfg.GamechatChannelComData
|
configure *cfg.GameChatChannelComData
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GamechatChannelCom).GetDataMap()["load_chat"]; !ok {
|
if configure, ok = v.(*cfg.GameChatChannelCom).GetDataMap()["load_chat"]; !ok {
|
||||||
err = fmt.Errorf("cfg.Game_chatServerGroupData on found max_chat")
|
err = fmt.Errorf("cfg.Game_chatServerGroupData on found max_chat")
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
|
@ -24,10 +24,10 @@ type MCompConfigure struct {
|
|||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
func (this *MCompConfigure) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *MCompConfigure) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
err = this.ModuleCompBase.Init(service, module, comp, options)
|
err = this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
err = this.LoadConfigure(game_global, cfg.NewGameglobal)
|
err = this.LoadConfigure(game_global, cfg.NewGameGlobal)
|
||||||
err = this.LoadConfigure(game_initial, cfg.NewGameinitial)
|
err = this.LoadConfigure(game_initial, cfg.NewGameInitial)
|
||||||
err = this.LoadConfigure(game_playerlv, cfg.NewGameplayerlv)
|
err = this.LoadConfigure(game_playerlv, cfg.NewGamePlayerlv)
|
||||||
err = this.LoadConfigure(game_facemod, cfg.NewGamefacemod)
|
err = this.LoadConfigure(game_facemod, cfg.NewGameFacemod)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,22 +54,22 @@ func (this *MCompConfigure) GetConfigure(name string) (v interface{}, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//全局配置
|
//全局配置
|
||||||
func (this *MCompConfigure) GetGlobalConf() *cfg.GameglobalData {
|
func (this *MCompConfigure) GetGlobalConf() *cfg.GameGlobalData {
|
||||||
var (
|
var (
|
||||||
configure *cfg.Gameglobal
|
configure *cfg.GameGlobal
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err := this.GetConfigure(game_global); err != nil {
|
if v, err := this.GetConfigure(game_global); err != nil {
|
||||||
log.Errorf("get global conf err:%v", err)
|
log.Errorf("get global conf err:%v", err)
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gameglobal); !ok {
|
if configure, ok = v.(*cfg.GameGlobal); !ok {
|
||||||
log.Errorf("%T no is *cfg.Game_global", v)
|
log.Errorf("%T no is *cfg.Game_global", v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return configure.GetDataList()[0] // 返回对象信息
|
return configure.GetDataList()[0] // 返回对象信息
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.Gameinitial, err error) {
|
func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.GameInitial, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -77,7 +77,7 @@ func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.Gameinitial, err
|
|||||||
if v, err = this.GetConfigure(game_initial); err != nil {
|
if v, err = this.GetConfigure(game_initial); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gameinitial); !ok {
|
if configure, ok = v.(*cfg.GameInitial); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_comInitial", v)
|
err = fmt.Errorf("%T no is *cfg.Game_comInitial", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -86,11 +86,11 @@ func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.Gameinitial, err
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 主角等级经验配置列表
|
// 主角等级经验配置列表
|
||||||
func (this *MCompConfigure) GetPlayerlvConfList() (list []*cfg.GameplayerlvData) {
|
func (this *MCompConfigure) GetPlayerlvConfList() (list []*cfg.GamePlayerlvData) {
|
||||||
if v, err := this.GetConfigure(game_playerlv); err != nil {
|
if v, err := this.GetConfigure(game_playerlv); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok := v.(*cfg.Gameplayerlv); !ok {
|
if configure, ok := v.(*cfg.GamePlayerlv); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
@ -103,11 +103,11 @@ func (this *MCompConfigure) GetPlayerlvConfList() (list []*cfg.GameplayerlvData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 玩家等级经验配置表
|
// 玩家等级经验配置表
|
||||||
func (this *MCompConfigure) GetPlayerlvConf(lv int32) (data *cfg.GameplayerlvData) {
|
func (this *MCompConfigure) GetPlayerlvConf(lv int32) (data *cfg.GamePlayerlvData) {
|
||||||
if v, err := this.GetConfigure(game_playerlv); err != nil {
|
if v, err := this.GetConfigure(game_playerlv); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok := v.(*cfg.Gameplayerlv); !ok {
|
if configure, ok := v.(*cfg.GamePlayerlv); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
@ -120,11 +120,11 @@ func (this *MCompConfigure) GetPlayerlvConf(lv int32) (data *cfg.GameplayerlvDat
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 玩家形象预设配置
|
// 玩家形象预设配置
|
||||||
func (this *MCompConfigure) GetPlayerFigureConf() (list []*cfg.GamefacemodData) {
|
func (this *MCompConfigure) GetPlayerFigureConf() (list []*cfg.GameFacemodData) {
|
||||||
if v, err := this.GetConfigure(game_facemod); err != nil {
|
if v, err := this.GetConfigure(game_facemod); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok := v.(*cfg.Gamefacemod); !ok {
|
if configure, ok := v.(*cfg.GameFacemod); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
err = fmt.Errorf("%T no is *cfg.Game_playerlv", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
@ -22,7 +22,7 @@ func (this *apiComp) EquipCheck(session comm.IUserSession, req *pb.EquipmentEqui
|
|||||||
func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
confs []*cfg.GameequipData
|
confs []*cfg.GameEquipData
|
||||||
equipment *pb.DB_Equipment
|
equipment *pb.DB_Equipment
|
||||||
equipments []*pb.DB_Equipment
|
equipments []*pb.DB_Equipment
|
||||||
updatequipment []*pb.DB_Equipment
|
updatequipment []*pb.DB_Equipment
|
||||||
@ -33,7 +33,7 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
//校验数据
|
//校验数据
|
||||||
confs = make([]*cfg.GameequipData, len(req.EquipmentId))
|
confs = make([]*cfg.GameEquipData, len(req.EquipmentId))
|
||||||
equipments = make([]*pb.DB_Equipment, len(req.EquipmentId))
|
equipments = make([]*pb.DB_Equipment, len(req.EquipmentId))
|
||||||
|
|
||||||
//获取英雄数据
|
//获取英雄数据
|
||||||
|
@ -27,8 +27,8 @@ func (this *apiComp) UpgradeCheck(session comm.IUserSession, req *pb.EquipmentUp
|
|||||||
func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.EquipmentUpgradeReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.EquipmentUpgradeReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
conf *cfg.GameequipData
|
conf *cfg.GameEquipData
|
||||||
intensify *cfg.GameequipIntensifyData
|
intensify *cfg.GameEquipIntensifyData
|
||||||
equipment *pb.DB_Equipment
|
equipment *pb.DB_Equipment
|
||||||
modifyequipments []*pb.DB_Equipment
|
modifyequipments []*pb.DB_Equipment
|
||||||
hero *pb.DBHero
|
hero *pb.DBHero
|
||||||
|
@ -25,15 +25,15 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.ModuleCompBase.Init(service, module, comp, options)
|
this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
this.module = module.(*Equipment)
|
this.module = module.(*Equipment)
|
||||||
this.LoadConfigure(game_equip, cfg.NewGameequip)
|
this.LoadConfigure(game_equip, cfg.NewGameEquip)
|
||||||
this.LoadConfigure(equip_attrlibrary, cfg.NewGameequipAttrlibrary)
|
this.LoadConfigure(equip_attrlibrary, cfg.NewGameEquipAttrlibrary)
|
||||||
this.LoadConfigure(equip_intensify, cfg.NewGameequipIntensify)
|
this.LoadConfigure(equip_intensify, cfg.NewGameEquipIntensify)
|
||||||
this.LoadConfigure(equip_suit, cfg.NewGameequipSuit)
|
this.LoadConfigure(equip_suit, cfg.NewGameEquipSuit)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取装备配置数据
|
//获取装备配置数据
|
||||||
func (this *configureComp) GetEquipmentConfigure() (configure *cfg.Gameequip, err error) {
|
func (this *configureComp) GetEquipmentConfigure() (configure *cfg.GameEquip, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -42,7 +42,7 @@ func (this *configureComp) GetEquipmentConfigure() (configure *cfg.Gameequip, er
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gameequip); !ok {
|
if configure, ok = v.(*cfg.GameEquip); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -52,7 +52,7 @@ func (this *configureComp) GetEquipmentConfigure() (configure *cfg.Gameequip, er
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取装备配置数据
|
//获取装备配置数据
|
||||||
func (this *configureComp) GetEquipmentConfigureById(equipmentId string) (configure *cfg.GameequipData, err error) {
|
func (this *configureComp) GetEquipmentConfigureById(equipmentId string) (configure *cfg.GameEquipData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -61,7 +61,7 @@ func (this *configureComp) GetEquipmentConfigureById(equipmentId string) (config
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gameequip).GetDataMap()[equipmentId]; !ok {
|
if configure, ok = v.(*cfg.GameEquip).GetDataMap()[equipmentId]; !ok {
|
||||||
err = fmt.Errorf("EquipmentConfigure not found:%s ", equipmentId)
|
err = fmt.Errorf("EquipmentConfigure not found:%s ", equipmentId)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -71,7 +71,7 @@ func (this *configureComp) GetEquipmentConfigureById(equipmentId string) (config
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取装备属性表
|
//获取装备属性表
|
||||||
func (this *configureComp) GetEquipmentAttrlibraryConfigure() (configure *cfg.GameequipAttrlibrary, err error) {
|
func (this *configureComp) GetEquipmentAttrlibraryConfigure() (configure *cfg.GameEquipAttrlibrary, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -80,7 +80,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigure() (configure *cfg.Ga
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameequipAttrlibrary); !ok {
|
if configure, ok = v.(*cfg.GameEquipAttrlibrary); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -90,7 +90,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigure() (configure *cfg.Ga
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取属性词列表
|
//获取属性词列表
|
||||||
func (this *configureComp) GetEquipmentAttrlibraryConfigureByKey(key int32) (configure *cfg.GameequipAttrlibraryData, err error) {
|
func (this *configureComp) GetEquipmentAttrlibraryConfigureByKey(key int32) (configure *cfg.GameEquipAttrlibraryData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -99,7 +99,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureByKey(key int32) (con
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameequipAttrlibrary).GetDataMap()[key]; !ok {
|
if configure, ok = v.(*cfg.GameEquipAttrlibrary).GetDataMap()[key]; !ok {
|
||||||
err = fmt.Errorf("EquipmentConfigure GetEquipmentAttrlibraryConfigureByKey not found:%d ", key)
|
err = fmt.Errorf("EquipmentConfigure GetEquipmentAttrlibraryConfigureByKey not found:%d ", key)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -109,7 +109,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureByKey(key int32) (con
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取属性词列表
|
//获取属性词列表
|
||||||
func (this *configureComp) GetEquipmentAttrlibraryConfigureById(Id int32) (configure []*cfg.GameequipAttrlibraryData, err error) {
|
func (this *configureComp) GetEquipmentAttrlibraryConfigureById(Id int32) (configure []*cfg.GameEquipAttrlibraryData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
@ -117,8 +117,8 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureById(Id int32) (confi
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
configure = make([]*cfg.GameequipAttrlibraryData, 0)
|
configure = make([]*cfg.GameEquipAttrlibraryData, 0)
|
||||||
for _, v1 := range v.(*cfg.GameequipAttrlibrary).GetDataList() {
|
for _, v1 := range v.(*cfg.GameEquipAttrlibrary).GetDataList() {
|
||||||
if v1.Libraryid == Id {
|
if v1.Libraryid == Id {
|
||||||
configure = append(configure, v1)
|
configure = append(configure, v1)
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureById(Id int32) (confi
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取武器等级消耗表
|
//获取武器等级消耗表
|
||||||
func (this *configureComp) GetEquipmentIntensifyConfigure() (configure *cfg.GameequipIntensify, err error) {
|
func (this *configureComp) GetEquipmentIntensifyConfigure() (configure *cfg.GameEquipIntensify, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -137,7 +137,7 @@ func (this *configureComp) GetEquipmentIntensifyConfigure() (configure *cfg.Game
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameequipIntensify); !ok {
|
if configure, ok = v.(*cfg.GameEquipIntensify); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
err = fmt.Errorf("%T no is *cfg.Game_equipment", v)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -147,7 +147,7 @@ func (this *configureComp) GetEquipmentIntensifyConfigure() (configure *cfg.Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取武器等级消耗表
|
//获取武器等级消耗表
|
||||||
func (this *configureComp) GetEquipmentIntensifyConfigureById(star, lv int32) (configure *cfg.GameequipIntensifyData, err error) {
|
func (this *configureComp) GetEquipmentIntensifyConfigureById(star, lv int32) (configure *cfg.GameEquipIntensifyData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
@ -155,7 +155,7 @@ func (this *configureComp) GetEquipmentIntensifyConfigureById(star, lv int32) (c
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
for _, v1 := range v.(*cfg.GameequipIntensify).GetDataList() {
|
for _, v1 := range v.(*cfg.GameEquipIntensify).GetDataList() {
|
||||||
|
|
||||||
if v1.Star == star && v1.Level == lv {
|
if v1.Star == star && v1.Level == lv {
|
||||||
configure = v1
|
configure = v1
|
||||||
|
@ -70,7 +70,7 @@ func (this *modelEquipmentComp) QueryEquipmentAmount(uid string, equipmentId str
|
|||||||
//添加装备
|
//添加装备
|
||||||
func (this *modelEquipmentComp) AddEquipments(uId string, cIds map[string]uint32) (change []*pb.DB_Equipment, err error) {
|
func (this *modelEquipmentComp) AddEquipments(uId string, cIds map[string]uint32) (change []*pb.DB_Equipment, err error) {
|
||||||
var (
|
var (
|
||||||
configure *cfg.Gameequip
|
configure *cfg.GameEquip
|
||||||
equipments []*pb.DB_Equipment
|
equipments []*pb.DB_Equipment
|
||||||
iskeep bool
|
iskeep bool
|
||||||
add map[string]*pb.DB_Equipment
|
add map[string]*pb.DB_Equipment
|
||||||
@ -137,10 +137,10 @@ func (this *modelEquipmentComp) UpdateByHeroId(uid string, equipments ...*pb.DB_
|
|||||||
}
|
}
|
||||||
|
|
||||||
//创建新的武器对象
|
//创建新的武器对象
|
||||||
func (this *modelEquipmentComp) newEquipment(uid string, conf *cfg.GameequipData, num uint32) (equipment *pb.DB_Equipment, err error) {
|
func (this *modelEquipmentComp) newEquipment(uid string, conf *cfg.GameEquipData, num uint32) (equipment *pb.DB_Equipment, err error) {
|
||||||
var (
|
var (
|
||||||
mattr []*cfg.GameequipAttrlibraryData
|
mattr []*cfg.GameEquipAttrlibraryData
|
||||||
sattr []*cfg.GameequipAttrlibraryData
|
sattr []*cfg.GameEquipAttrlibraryData
|
||||||
total int
|
total int
|
||||||
satterNum int32
|
satterNum int32
|
||||||
)
|
)
|
||||||
@ -193,7 +193,7 @@ func (this *modelEquipmentComp) newEquipment(uid string, conf *cfg.GameequipData
|
|||||||
}
|
}
|
||||||
|
|
||||||
//升级武器
|
//升级武器
|
||||||
func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equip *cfg.GameequipData, intensify *cfg.GameequipIntensifyData) (err error) {
|
func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equip *cfg.GameEquipData, intensify *cfg.GameEquipIntensifyData) (err error) {
|
||||||
equipment.Lv++
|
equipment.Lv++
|
||||||
equipment.MainEntry.Lv++
|
equipment.MainEntry.Lv++
|
||||||
equipment.MainEntry.Value += int32(float64(equipment.MainEntry.Value) * float64(intensify.Bonus) / 1000.0)
|
equipment.MainEntry.Value += int32(float64(equipment.MainEntry.Value) * float64(intensify.Bonus) / 1000.0)
|
||||||
@ -201,8 +201,8 @@ func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equ
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(equipment.AdverbEntry) < 4 { //去随机副词条
|
if len(equipment.AdverbEntry) < 4 { //去随机副词条
|
||||||
var temp []*cfg.GameequipAttrlibraryData
|
var temp []*cfg.GameEquipAttrlibraryData
|
||||||
var sattr []*cfg.GameequipAttrlibraryData
|
var sattr []*cfg.GameEquipAttrlibraryData
|
||||||
if temp, err = this.module.configure.GetEquipmentAttrlibraryConfigureById(equip.Addlibrary); err != nil || len(temp) == 0 {
|
if temp, err = this.module.configure.GetEquipmentAttrlibraryConfigureById(equip.Addlibrary); err != nil || len(temp) == 0 {
|
||||||
log.Errorf("升级服务错误 读取副词条配置错误!")
|
log.Errorf("升级服务错误 读取副词条配置错误!")
|
||||||
return
|
return
|
||||||
@ -229,7 +229,7 @@ func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equ
|
|||||||
Value: sattr[index].Attrvar,
|
Value: sattr[index].Attrvar,
|
||||||
})
|
})
|
||||||
} else { //随机一个副词条 强化
|
} else { //随机一个副词条 强化
|
||||||
var attrlibrary *cfg.GameequipAttrlibraryData
|
var attrlibrary *cfg.GameEquipAttrlibraryData
|
||||||
r := rand.New(rand.NewSource(time.Now().Unix()))
|
r := rand.New(rand.NewSource(time.Now().Unix()))
|
||||||
index := r.Perm(len(equipment.AdverbEntry))[0]
|
index := r.Perm(len(equipment.AdverbEntry))[0]
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ type configureComp struct {
|
|||||||
// Init 组件初始化接口
|
// Init 组件初始化接口
|
||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.ModuleCompBase.Init(service, module, comp, options)
|
this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
this.LoadConfigure(game_msgdistrib, cfg.NewGamemsgdistrib)
|
this.LoadConfigure(game_msgdistrib, cfg.NewGameMsgdistrib)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,13 +28,13 @@ func (this *configureComp) GetMsgDistribute(msgid string) (rule string, ok bool)
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
v interface{}
|
v interface{}
|
||||||
item *cfg.GamemsgdistribData
|
item *cfg.GameMsgdistribData
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_msgdistrib); err != nil {
|
if v, err = this.GetConfigure(game_msgdistrib); err != nil {
|
||||||
ok = false
|
ok = false
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if item, ok = v.(*cfg.Gamemsgdistrib).GetDataMap()[msgid]; ok {
|
if item, ok = v.(*cfg.GameMsgdistrib).GetDataMap()[msgid]; ok {
|
||||||
rule = item.Routrules
|
rule = item.Routrules
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ func (this *apiComp) AwakenCheck(session comm.IUserSession, req *pb.HeroAwakenRe
|
|||||||
/// 英雄觉醒
|
/// 英雄觉醒
|
||||||
func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
awakenData *cfg.GameheroAwakenData
|
awakenData *cfg.GameHeroAwakenData
|
||||||
_hero *pb.DBHero
|
_hero *pb.DBHero
|
||||||
chanegCard []*pb.DBHero // change
|
chanegCard []*pb.DBHero // change
|
||||||
)
|
)
|
||||||
|
@ -24,7 +24,7 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
costRes []*cfg.Gameatn
|
costRes []*cfg.Gameatn
|
||||||
star4Max int32 // 10连抽最大4星数量
|
star4Max int32 // 10连抽最大4星数量
|
||||||
star5Max int32 // 10连抽最大5星数量
|
star5Max int32 // 10连抽最大5星数量
|
||||||
cfgDraw *cfg.GameglobalData
|
cfgDraw *cfg.GameGlobalData
|
||||||
costAtn *cfg.Gameatn
|
costAtn *cfg.Gameatn
|
||||||
heroRecord *pb.DBHeroRecord
|
heroRecord *pb.DBHeroRecord
|
||||||
pool string
|
pool string
|
||||||
|
@ -33,7 +33,7 @@ func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.He
|
|||||||
/// 英雄升星
|
/// 英雄升星
|
||||||
func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStrengthenUpStarReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStrengthenUpStarReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
var (
|
var (
|
||||||
target *cfg.GameheroStarupData // 配置表目标升星英雄信息
|
target *cfg.GameHeroStarupData // 配置表目标升星英雄信息
|
||||||
costNeedHeroCount int32 // 消耗指定英雄的数量
|
costNeedHeroCount int32 // 消耗指定英雄的数量
|
||||||
costRaceHeroCount int32 // 消耗种族英雄的数量
|
costRaceHeroCount int32 // 消耗种族英雄的数量
|
||||||
_hero *pb.DBHero // 目标英雄
|
_hero *pb.DBHero // 目标英雄
|
||||||
|
@ -29,7 +29,7 @@ const (
|
|||||||
///配置管理组件
|
///配置管理组件
|
||||||
type configureComp struct {
|
type configureComp struct {
|
||||||
modules.MCompConfigure
|
modules.MCompConfigure
|
||||||
drawCardCfg map[string]map[int32][]*cfg.GamedrawCardData // 第一个key 卡池id 第二个key 星级
|
drawCardCfg map[string]map[int32][]*cfg.GameDrawCardData // 第一个key 卡池id 第二个key 星级
|
||||||
//map["base_pool1"]map[3]*cfg.Game_drawCardData
|
//map["base_pool1"]map[3]*cfg.Game_drawCardData
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,22 +38,22 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
|
|
||||||
err = this.MCompConfigure.Init(service, module, comp, options)
|
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||||
err = this.LoadMultiConfigure(map[string]interface{}{
|
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||||
new_hero: cfg.NewGamehero,
|
new_hero: cfg.NewGameHero,
|
||||||
hero_stargrow: cfg.NewGameheroStargrow,
|
hero_stargrow: cfg.NewGameHeroStargrow,
|
||||||
hero_levelgrow: cfg.NewGameheroLevelgrow,
|
hero_levelgrow: cfg.NewGameHeroLevelgrow,
|
||||||
hero_starup: cfg.NewGameheroStarup,
|
hero_starup: cfg.NewGameHeroStarup,
|
||||||
hero_levelup: cfg.NewGameheroLevelup,
|
hero_levelup: cfg.NewGameHeroLevelup,
|
||||||
hero_exp: cfg.NewGameheroExp,
|
hero_exp: cfg.NewGameHeroExp,
|
||||||
hero_skillup: cfg.NewGameheroSkillLevel,
|
hero_skillup: cfg.NewGameHeroSkillLevel,
|
||||||
game_skillatk: cfg.NewGameskillAtk,
|
game_skillatk: cfg.NewGameSkillAtk,
|
||||||
hero_resonance: cfg.NewGameheroResonance,
|
hero_resonance: cfg.NewGameHeroResonance,
|
||||||
hero_comatn: cfg.NewGamecomAtn,
|
hero_comatn: cfg.NewGameComAtn,
|
||||||
hero_awaken: cfg.NewGameheroAwaken,
|
hero_awaken: cfg.NewGameHeroAwaken,
|
||||||
hero_drawcard: cfg.NewGamedrawCard,
|
hero_drawcard: cfg.NewGameDrawCard,
|
||||||
})
|
})
|
||||||
this.drawCardCfg = make(map[string]map[int32][]*cfg.GamedrawCardData, 0)
|
this.drawCardCfg = make(map[string]map[int32][]*cfg.GameDrawCardData, 0)
|
||||||
|
|
||||||
configure.RegisterConfigure(hero_drawcard, cfg.NewGamedrawCard, func() {
|
configure.RegisterConfigure(hero_drawcard, cfg.NewGameDrawCard, func() {
|
||||||
this.SetHeroDrawConfig()
|
this.SetHeroDrawConfig()
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
@ -65,16 +65,16 @@ func (this *configureComp) SetHeroDrawConfig() (err error) {
|
|||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_drawcard); err == nil {
|
if v, err = this.GetConfigure(hero_drawcard); err == nil {
|
||||||
if _configure, ok := v.(*cfg.GamedrawCard); !ok {
|
if _configure, ok := v.(*cfg.GameDrawCard); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_drawCard", v)
|
err = fmt.Errorf("%T no is *cfg.Game_drawCard", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
for _, v := range _configure.GetDataList() {
|
for _, v := range _configure.GetDataList() {
|
||||||
if _, ok := this.drawCardCfg[v.CardPoolType]; !ok {
|
if _, ok := this.drawCardCfg[v.CardPoolType]; !ok {
|
||||||
this.drawCardCfg[v.CardPoolType] = make(map[int32][]*cfg.GamedrawCardData, 0)
|
this.drawCardCfg[v.CardPoolType] = make(map[int32][]*cfg.GameDrawCardData, 0)
|
||||||
}
|
}
|
||||||
if _, ok := this.drawCardCfg[v.CardPoolType][v.Star]; !ok {
|
if _, ok := this.drawCardCfg[v.CardPoolType][v.Star]; !ok {
|
||||||
this.drawCardCfg[v.CardPoolType][v.Star] = make([]*cfg.GamedrawCardData, 0)
|
this.drawCardCfg[v.CardPoolType][v.Star] = make([]*cfg.GameDrawCardData, 0)
|
||||||
}
|
}
|
||||||
this.drawCardCfg[v.CardPoolType][v.Star] = append(this.drawCardCfg[v.CardPoolType][v.Star], v)
|
this.drawCardCfg[v.CardPoolType][v.Star] = append(this.drawCardCfg[v.CardPoolType][v.Star], v)
|
||||||
}
|
}
|
||||||
@ -85,12 +85,12 @@ func (this *configureComp) SetHeroDrawConfig() (err error) {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (this *configureComp) GetPollByType(poosType string) map[int32][]*cfg.GamedrawCardData {
|
func (this *configureComp) GetPollByType(poosType string) map[int32][]*cfg.GameDrawCardData {
|
||||||
return this.drawCardCfg[poosType]
|
return this.drawCardCfg[poosType]
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取英雄配置数据
|
//获取英雄配置数据
|
||||||
func (this *configureComp) getHeroConfigure() (configure *cfg.Gamehero, err error) {
|
func (this *configureComp) getHeroConfigure() (configure *cfg.GameHero, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -99,40 +99,40 @@ func (this *configureComp) getHeroConfigure() (configure *cfg.Gamehero, err erro
|
|||||||
if v, err = this.GetConfigure(new_hero); err != nil {
|
if v, err = this.GetConfigure(new_hero); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gamehero); !ok {
|
if configure, ok = v.(*cfg.GameHero); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取英雄强化增加属性配置数据
|
// 获取英雄强化增加属性配置数据
|
||||||
func (this *configureComp) GetHeroStargrowConfig() (configure *cfg.GameheroStargrow, err error) {
|
func (this *configureComp) GetHeroStargrowConfig() (configure *cfg.GameHeroStargrow, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_stargrow); err == nil {
|
if v, err = this.GetConfigure(hero_stargrow); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroStargrow); !ok {
|
if configure, ok = v.(*cfg.GameHeroStargrow); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取英雄升级属性变化相关配置数据
|
// 获取英雄升级属性变化相关配置数据
|
||||||
func (this *configureComp) GetHeroLevelgrowConfig() (configure *cfg.GameheroLevelgrow, err error) {
|
func (this *configureComp) GetHeroLevelgrowConfig() (configure *cfg.GameHeroLevelgrow, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_levelgrow); err == nil {
|
if v, err = this.GetConfigure(hero_levelgrow); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroLevelgrow); !ok {
|
if configure, ok = v.(*cfg.GameHeroLevelgrow); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelgrow", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroLevelgrow", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,71 +141,71 @@ func (this *configureComp) GetHeroLevelgrowConfig() (configure *cfg.GameheroLeve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取英雄升星相关配置数据
|
// 获取英雄升星相关配置数据
|
||||||
func (this *configureComp) GetHeroStarupConfig() (configure *cfg.GameheroStarup, err error) {
|
func (this *configureComp) GetHeroStarupConfig() (configure *cfg.GameHeroStarup, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_starup); err == nil {
|
if v, err = this.GetConfigure(hero_starup); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroStarup); !ok {
|
if configure, ok = v.(*cfg.GameHeroStarup); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroStarup", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroStarup", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroStarup", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroStarup", v)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取英雄升级相关配置数据
|
// 获取英雄升级相关配置数据
|
||||||
func (this *configureComp) GetHeroLevelUpConfig() (configure *cfg.GameheroLevelup, err error) {
|
func (this *configureComp) GetHeroLevelUpConfig() (configure *cfg.GameHeroLevelup, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_levelup); err == nil {
|
if v, err = this.GetConfigure(hero_levelup); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroLevelup); !ok {
|
if configure, ok = v.(*cfg.GameHeroLevelup); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) GetHeroExpConfig() (configure *cfg.GameheroExp, err error) {
|
func (this *configureComp) GetHeroExpConfig() (configure *cfg.GameHeroExp, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_exp); err == nil {
|
if v, err = this.GetConfigure(hero_exp); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroExp); !ok {
|
if configure, ok = v.(*cfg.GameHeroExp); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (this *configureComp) GetHeroExp(hid string) *cfg.GameheroExpData {
|
func (this *configureComp) GetHeroExp(hid string) *cfg.GameHeroExpData {
|
||||||
|
|
||||||
if v, err := this.GetConfigure(hero_exp); err == nil {
|
if v, err := this.GetConfigure(hero_exp); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameheroExp); !ok {
|
if configure, ok := v.(*cfg.GameHeroExp); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
return configure.Get(hid)
|
return configure.Get(hid)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//英雄等级基础属性
|
//英雄等级基础属性
|
||||||
func (this *configureComp) GetHeroLevelup() (configure *cfg.GameheroLevelup, err error) {
|
func (this *configureComp) GetHeroLevelup() (configure *cfg.GameHeroLevelup, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -213,8 +213,8 @@ func (this *configureComp) GetHeroLevelup() (configure *cfg.GameheroLevelup, err
|
|||||||
if v, err = this.GetConfigure(hero_levelup); err != nil {
|
if v, err = this.GetConfigure(hero_levelup); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameheroLevelup); !ok {
|
if configure, ok = v.(*cfg.GameHeroLevelup); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -222,7 +222,7 @@ func (this *configureComp) GetHeroLevelup() (configure *cfg.GameheroLevelup, err
|
|||||||
}
|
}
|
||||||
|
|
||||||
//英雄品质系数
|
//英雄品质系数
|
||||||
func (this *configureComp) GetHeroStargrow() (configure *cfg.GameheroStargrow, err error) {
|
func (this *configureComp) GetHeroStargrow() (configure *cfg.GameHeroStargrow, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -230,8 +230,8 @@ func (this *configureComp) GetHeroStargrow() (configure *cfg.GameheroStargrow, e
|
|||||||
if v, err = this.GetConfigure(hero_stargrow); err != nil {
|
if v, err = this.GetConfigure(hero_stargrow); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameheroStargrow); !ok {
|
if configure, ok = v.(*cfg.GameHeroStargrow); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroStargrow", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroStargrow", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -239,7 +239,7 @@ func (this *configureComp) GetHeroStargrow() (configure *cfg.GameheroStargrow, e
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取英雄配置
|
//获取英雄配置
|
||||||
func (this *configureComp) GetHero(heroCfgId string) *cfg.GameheroData {
|
func (this *configureComp) GetHero(heroCfgId string) *cfg.GameHeroData {
|
||||||
cfg, err := this.getHeroConfigure()
|
cfg, err := this.getHeroConfigure()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
@ -251,7 +251,7 @@ func (this *configureComp) GetHero(heroCfgId string) *cfg.GameheroData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取英雄星级配置
|
//获取英雄星级配置
|
||||||
func (this *configureComp) GetHeroStar(star int32) *cfg.GameheroStargrowData {
|
func (this *configureComp) GetHeroStar(star int32) *cfg.GameHeroStargrowData {
|
||||||
cfg, err := this.GetHeroStargrow()
|
cfg, err := this.GetHeroStargrow()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
@ -264,7 +264,7 @@ func (this *configureComp) GetHeroStar(star int32) *cfg.GameheroStargrowData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取英雄等级配置
|
//获取英雄等级配置
|
||||||
func (this *configureComp) GetHeroLv(lv int32) *cfg.GameheroLevelupData {
|
func (this *configureComp) GetHeroLv(lv int32) *cfg.GameHeroLevelupData {
|
||||||
cfg, err := this.GetHeroLevelup()
|
cfg, err := this.GetHeroLevelup()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
@ -276,7 +276,7 @@ func (this *configureComp) GetHeroLv(lv int32) *cfg.GameheroLevelupData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 英雄成长系数
|
// 英雄成长系数
|
||||||
func (this *configureComp) GetHeroLevelgrow() (configure *cfg.GameheroLevelgrow, err error) {
|
func (this *configureComp) GetHeroLevelgrow() (configure *cfg.GameHeroLevelgrow, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -284,8 +284,8 @@ func (this *configureComp) GetHeroLevelgrow() (configure *cfg.GameheroLevelgrow,
|
|||||||
if v, err = this.GetConfigure(hero_levelgrow); err != nil {
|
if v, err = this.GetConfigure(hero_levelgrow); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.GameheroLevelgrow); !ok {
|
if configure, ok = v.(*cfg.GameHeroLevelgrow); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelgrow", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroLevelgrow", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -293,7 +293,7 @@ func (this *configureComp) GetHeroLevelgrow() (configure *cfg.GameheroLevelgrow,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//英雄成长配置
|
//英雄成长配置
|
||||||
func (this *configureComp) GetHeroLvgrow(heroId string) *cfg.GameheroLevelgrowData {
|
func (this *configureComp) GetHeroLvgrow(heroId string) *cfg.GameHeroLevelgrowData {
|
||||||
cfg, err := this.GetHeroLevelgrow()
|
cfg, err := this.GetHeroLevelgrow()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
@ -305,10 +305,10 @@ func (this *configureComp) GetHeroLvgrow(heroId string) *cfg.GameheroLevelgrowDa
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取英雄技能升级相关信息
|
// 获取英雄技能升级相关信息
|
||||||
func (this *configureComp) GetHeroSkillUpConfig(skillid int32) (data *cfg.GameheroSkillLevelData) {
|
func (this *configureComp) GetHeroSkillUpConfig(skillid int32) (data *cfg.GameHeroSkillLevelData) {
|
||||||
|
|
||||||
if v, err := this.GetConfigure(hero_skillup); err == nil {
|
if v, err := this.GetConfigure(hero_skillup); err == nil {
|
||||||
if conf, ok := v.(*cfg.GameheroSkillLevel); ok {
|
if conf, ok := v.(*cfg.GameHeroSkillLevel); ok {
|
||||||
data = conf.Get(skillid)
|
data = conf.Get(skillid)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -321,7 +321,7 @@ func (this *configureComp) GetHeroSkillUpConfig(skillid int32) (data *cfg.Gamehe
|
|||||||
func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
||||||
|
|
||||||
if v, err := this.GetConfigure(game_skillatk); err == nil {
|
if v, err := this.GetConfigure(game_skillatk); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameskillAtk); ok {
|
if configure, ok := v.(*cfg.GameSkillAtk); ok {
|
||||||
return configure.Get(int32(skillId)).MaxLV
|
return configure.Get(int32(skillId)).MaxLV
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -330,30 +330,30 @@ func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 通过英雄配置ID获取共鸣配置信息
|
// 通过英雄配置ID获取共鸣配置信息
|
||||||
func (this *configureComp) GetHeroResonanceConfig(cardConfigID string) (data *cfg.GameheroResonanceData, err error) {
|
func (this *configureComp) GetHeroResonanceConfig(cardConfigID string) (data *cfg.GameHeroResonanceData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_resonance); err == nil {
|
if v, err = this.GetConfigure(hero_resonance); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameheroResonance); !ok {
|
if configure, ok := v.(*cfg.GameHeroResonance); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroResonance", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroResonance", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
data = configure.Get(cardConfigID)
|
data = configure.Get(cardConfigID)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroResonance", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroResonance", v)
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GamecomAtnData, err error) {
|
func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GameComAtnData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_comatn); err == nil {
|
if v, err = this.GetConfigure(hero_comatn); err == nil {
|
||||||
if configure, ok := v.(*cfg.GamecomAtn); !ok {
|
if configure, ok := v.(*cfg.GameComAtn); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GamecomAtn", v)
|
err = fmt.Errorf("%T no is *cfg.GamecomAtn", v)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
@ -365,18 +365,18 @@ func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GamecomAtnDat
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (this *configureComp) GetHeroAwakenConfig() (configure *cfg.GameheroAwaken, err error) {
|
func (this *configureComp) GetHeroAwakenConfig() (configure *cfg.GameHeroAwaken, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(hero_awaken); err == nil {
|
if v, err = this.GetConfigure(hero_awaken); err == nil {
|
||||||
if configure, ok = v.(*cfg.GameheroAwaken); !ok {
|
if configure, ok = v.(*cfg.GameHeroAwaken); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroAwaken", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroAwaken", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("%T no is *cfg.GameheroAwaken", v)
|
err = fmt.Errorf("%T no is *cfg.GameHeroAwaken", v)
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -550,7 +550,7 @@ func (this *ModelHero) FloorDrawCard(Cardpool int32) (cardId string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *ModelHero) CheckPool(drawCount int32, config *cfg.GameglobalData) (pools string) {
|
func (this *ModelHero) CheckPool(drawCount int32, config *cfg.GameGlobalData) (pools string) {
|
||||||
if config.BasePool1.S <= drawCount && config.BasePool1.E >= drawCount {
|
if config.BasePool1.S <= drawCount && config.BasePool1.E >= drawCount {
|
||||||
return config.BasePool1.P
|
return config.BasePool1.P
|
||||||
} else if config.BasePool2.S <= drawCount && config.BasePool2.E >= drawCount {
|
} else if config.BasePool2.S <= drawCount && config.BasePool2.E >= drawCount {
|
||||||
|
@ -21,7 +21,7 @@ func (this *apiComp) SellItem(session comm.IUserSession, req *pb.ItemsSellItemRe
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
item *pb.DB_UserItemData
|
item *pb.DB_UserItemData
|
||||||
itemcf *cfg.GameitemData
|
itemcf *cfg.GameItemData
|
||||||
sale []*cfg.Gameatn
|
sale []*cfg.Gameatn
|
||||||
)
|
)
|
||||||
if code = this.SellItemCheck(session, req); code != pb.ErrorCode_Success {
|
if code = this.SellItemCheck(session, req); code != pb.ErrorCode_Success {
|
||||||
|
@ -21,8 +21,8 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
item *pb.DB_UserItemData
|
item *pb.DB_UserItemData
|
||||||
itemcf *cfg.GameitemData
|
itemcf *cfg.GameItemData
|
||||||
prop []*cfg.GamepropsgroupData
|
prop []*cfg.GamePropsgroupData
|
||||||
)
|
)
|
||||||
if code = this.UseitemCheck(session, req); code != pb.ErrorCode_Success {
|
if code = this.UseitemCheck(session, req); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
|
@ -22,23 +22,23 @@ type ConfigureComp struct {
|
|||||||
modules.MCompConfigure
|
modules.MCompConfigure
|
||||||
module *Items
|
module *Items
|
||||||
lock sync.RWMutex
|
lock sync.RWMutex
|
||||||
propsgroup map[int32][]*cfg.GamepropsgroupData
|
propsgroup map[int32][]*cfg.GamePropsgroupData
|
||||||
}
|
}
|
||||||
|
|
||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
func (this *ConfigureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *ConfigureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.MCompConfigure.Init(service, module, comp, options)
|
this.MCompConfigure.Init(service, module, comp, options)
|
||||||
this.module = module.(*Items)
|
this.module = module.(*Items)
|
||||||
this.propsgroup = make(map[int32][]*cfg.GamepropsgroupData)
|
this.propsgroup = make(map[int32][]*cfg.GamePropsgroupData)
|
||||||
err = this.LoadConfigure(game_item, cfg.NewGameitem)
|
err = this.LoadConfigure(game_item, cfg.NewGameItem)
|
||||||
err = configure.RegisterConfigure(game_propsgroup, cfg.NewGamepropsgroup, func() {
|
err = configure.RegisterConfigure(game_propsgroup, cfg.NewGamePropsgroup, func() {
|
||||||
if v, err := this.GetConfigure(game_propsgroup); err == nil {
|
if v, err := this.GetConfigure(game_propsgroup); err == nil {
|
||||||
if configure, ok := v.(*cfg.Gamepropsgroup); ok {
|
if configure, ok := v.(*cfg.GamePropsgroup); ok {
|
||||||
this.lock.Lock()
|
this.lock.Lock()
|
||||||
defer this.lock.Unlock()
|
defer this.lock.Unlock()
|
||||||
for _, value := range configure.GetDataList() {
|
for _, value := range configure.GetDataList() {
|
||||||
if _, ok = this.propsgroup[value.Group]; !ok {
|
if _, ok = this.propsgroup[value.Group]; !ok {
|
||||||
this.propsgroup[value.Group] = make([]*cfg.GamepropsgroupData, 0)
|
this.propsgroup[value.Group] = make([]*cfg.GamePropsgroupData, 0)
|
||||||
}
|
}
|
||||||
this.propsgroup[value.Group] = append(this.propsgroup[value.Group], value)
|
this.propsgroup[value.Group] = append(this.propsgroup[value.Group], value)
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ func (this *ConfigureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
}
|
}
|
||||||
|
|
||||||
//读取物品配置
|
//读取物品配置
|
||||||
func (this *ConfigureComp) GetItemsConfigure() (items map[string]*cfg.GameitemData, err error) {
|
func (this *ConfigureComp) GetItemsConfigure() (items map[string]*cfg.GameItemData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
)
|
)
|
||||||
@ -60,13 +60,13 @@ func (this *ConfigureComp) GetItemsConfigure() (items map[string]*cfg.GameitemDa
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
items = v.(*cfg.Gameitem).GetDataMap()
|
items = v.(*cfg.GameItem).GetDataMap()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//读取物品配置
|
//读取物品配置
|
||||||
func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameitemData, err error) {
|
func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameItemData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -75,7 +75,7 @@ func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameitemData,
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if item, ok = v.(*cfg.Gameitem).GetDataMap()[id]; !ok {
|
if item, ok = v.(*cfg.GameItem).GetDataMap()[id]; !ok {
|
||||||
err = fmt.Errorf("no found item:%s configure", id)
|
err = fmt.Errorf("no found item:%s configure", id)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -89,8 +89,8 @@ func (this *ConfigureComp) GetPackItemByType(itmes []*pb.DB_UserItemData, bagtyp
|
|||||||
result = make([]*pb.DB_UserItemData, 0, len(itmes))
|
result = make([]*pb.DB_UserItemData, 0, len(itmes))
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
table *cfg.Gameitem
|
table *cfg.GameItem
|
||||||
item *cfg.GameitemData
|
item *cfg.GameItemData
|
||||||
ok bool
|
ok bool
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
@ -98,7 +98,7 @@ func (this *ConfigureComp) GetPackItemByType(itmes []*pb.DB_UserItemData, bagtyp
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
table = v.(*cfg.Gameitem)
|
table = v.(*cfg.GameItem)
|
||||||
for _, v := range itmes {
|
for _, v := range itmes {
|
||||||
if item, ok = table.GetDataMap()[v.ItemId]; ok {
|
if item, ok = table.GetDataMap()[v.ItemId]; ok {
|
||||||
if item.Bagtype == bagtype {
|
if item.Bagtype == bagtype {
|
||||||
@ -113,7 +113,7 @@ func (this *ConfigureComp) GetPackItemByType(itmes []*pb.DB_UserItemData, bagtyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取道具礼包组
|
//获取道具礼包组
|
||||||
func (this *ConfigureComp) GetPropsgroupConfigure(gid int32) (result []*cfg.GamepropsgroupData, err error) {
|
func (this *ConfigureComp) GetPropsgroupConfigure(gid int32) (result []*cfg.GamePropsgroupData, err error) {
|
||||||
var ok bool
|
var ok bool
|
||||||
this.lock.RLock()
|
this.lock.RLock()
|
||||||
result, ok = this.propsgroup[gid]
|
result, ok = this.propsgroup[gid]
|
||||||
|
@ -27,7 +27,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//随机权重宝箱
|
//随机权重宝箱
|
||||||
func RandomProps(group []*cfg.GamepropsgroupData) (prop *cfg.GamepropsgroupData) {
|
func RandomProps(group []*cfg.GamePropsgroupData) (prop *cfg.GamePropsgroupData) {
|
||||||
if group == nil || len(group) == 0 {
|
if group == nil || len(group) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ func (this *ModelItemsComp) AddItemsToUserPack(uId string, items map[string]int3
|
|||||||
///修改指定格子的物品数量
|
///修改指定格子的物品数量
|
||||||
func (this *ModelItemsComp) AddItemToUserPackByGrid(uId string, gridid string, addnum int32) (change []*pb.DB_UserItemData, err error) {
|
func (this *ModelItemsComp) AddItemToUserPackByGrid(uId string, gridid string, addnum int32) (change []*pb.DB_UserItemData, err error) {
|
||||||
var (
|
var (
|
||||||
conf *cfg.GameitemData
|
conf *cfg.GameItemData
|
||||||
itme *pb.DB_UserItemData
|
itme *pb.DB_UserItemData
|
||||||
num int64
|
num int64
|
||||||
amount int64
|
amount int64
|
||||||
@ -248,7 +248,7 @@ func (this *ModelItemsComp) AddItemToUserPackByGrid(uId string, gridid string, a
|
|||||||
func (this *ModelItemsComp) addItemToUserPack(uid string, items []*pb.DB_UserItemData, itemId string, addnum int32) (add, update, del []*pb.DB_UserItemData, leftnum int64) {
|
func (this *ModelItemsComp) addItemToUserPack(uid string, items []*pb.DB_UserItemData, itemId string, addnum int32) (add, update, del []*pb.DB_UserItemData, leftnum int64) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
conf *cfg.GameitemData
|
conf *cfg.GameItemData
|
||||||
num int64
|
num int64
|
||||||
isNew bool
|
isNew bool
|
||||||
)
|
)
|
||||||
|
@ -25,10 +25,10 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
err = this.ModuleCompBase.Init(service, module, comp, options)
|
err = this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
this.module = module.(*Mainline)
|
this.module = module.(*Mainline)
|
||||||
err = this.LoadMultiConfigure(map[string]interface{}{
|
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||||
game_mainlinechapter: cfg.NewGamemainlineChapter,
|
game_mainlinechapter: cfg.NewGameMainlineChapter,
|
||||||
game_mainlineeasy: cfg.NewGamemainlineEasy,
|
game_mainlineeasy: cfg.NewGameMainlineEasy,
|
||||||
game_mainlinehard: cfg.NewGamemainlineHard,
|
game_mainlinehard: cfg.NewGameMainlineHard,
|
||||||
game_mainlinepurgatory: cfg.NewGamemainlinePurgatory,
|
game_mainlinepurgatory: cfg.NewGameMainlinePurgatory,
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
@ -39,17 +39,17 @@ func (this *configureComp) GetConfigure(name string) (v interface{}, err error)
|
|||||||
return configure.GetConfigure(name)
|
return configure.GetConfigure(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) GetMainlineChapter(id int32) (data *cfg.GamemainlineChapterData) {
|
func (this *configureComp) GetMainlineChapter(id int32) (data *cfg.GameMainlineChapterData) {
|
||||||
if v, err := this.GetConfigure(game_mainlinechapter); err != nil {
|
if v, err := this.GetConfigure(game_mainlinechapter); err != nil {
|
||||||
this.module.Errorf("get global conf err:%v", err)
|
this.module.Errorf("get global conf err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
configure *cfg.GamemainlineChapter
|
configure *cfg.GameMainlineChapter
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.GamemainlineChapter); !ok {
|
if configure, ok = v.(*cfg.GameMainlineChapter); !ok {
|
||||||
this.module.Errorf("%T no is *cfg.Game_mainlineChapterData", v)
|
this.module.Errorf("%T no is *cfg.Game_MainlineChapterData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,17 +61,17 @@ func (this *configureComp) GetMainlineChapter(id int32) (data *cfg.GamemainlineC
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取简单的关卡配置信息
|
// 获取简单的关卡配置信息
|
||||||
func (this *configureComp) GetMainlineEasyChapter(id int32) (data *cfg.GamemainlineEasyData) {
|
func (this *configureComp) GetMainlineEasyChapter(id int32) (data *cfg.GameMainlineEasyData) {
|
||||||
if v, err := this.GetConfigure(game_mainlineeasy); err != nil {
|
if v, err := this.GetConfigure(game_mainlineeasy); err != nil {
|
||||||
this.module.Errorf("get global conf err:%v", err)
|
this.module.Errorf("get global conf err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
configure *cfg.GamemainlineEasy
|
configure *cfg.GameMainlineEasy
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.GamemainlineEasy); !ok {
|
if configure, ok = v.(*cfg.GameMainlineEasy); !ok {
|
||||||
this.module.Errorf("%T no is *cfg.Game_mainlineEasyData", v)
|
this.module.Errorf("%T no is *cfg.Game_MainlineEasyData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,17 +83,17 @@ func (this *configureComp) GetMainlineEasyChapter(id int32) (data *cfg.Gamemainl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取炼狱级别难度的关卡配置
|
// 获取炼狱级别难度的关卡配置
|
||||||
func (this *configureComp) GetMainlinePurgatoryChapter(id int32) (data *cfg.GamemainlinePurgatoryData) {
|
func (this *configureComp) GetMainlinePurgatoryChapter(id int32) (data *cfg.GameMainlinePurgatoryData) {
|
||||||
if v, err := this.GetConfigure(game_mainlinepurgatory); err != nil {
|
if v, err := this.GetConfigure(game_mainlinepurgatory); err != nil {
|
||||||
this.module.Errorf("get global conf err:%v", err)
|
this.module.Errorf("get global conf err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
configure *cfg.GamemainlinePurgatory
|
configure *cfg.GameMainlinePurgatory
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.GamemainlinePurgatory); !ok {
|
if configure, ok = v.(*cfg.GameMainlinePurgatory); !ok {
|
||||||
this.module.Errorf("%T no is *cfg.Game_mainlinePurgatoryData", v)
|
this.module.Errorf("%T no is *cfg.Game_MainlinePurgatoryData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,17 +105,17 @@ func (this *configureComp) GetMainlinePurgatoryChapter(id int32) (data *cfg.Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取困难的关卡配置
|
// 获取困难的关卡配置
|
||||||
func (this *configureComp) GetMainlineHardChapter(id int32) (data *cfg.GamemainlineHardData) {
|
func (this *configureComp) GetMainlineHardChapter(id int32) (data *cfg.GameMainlineHardData) {
|
||||||
if v, err := this.GetConfigure(game_mainlinehard); err != nil {
|
if v, err := this.GetConfigure(game_mainlinehard); err != nil {
|
||||||
this.module.Errorf("get global conf err:%v", err)
|
this.module.Errorf("get global conf err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
configure *cfg.GamemainlineHard
|
configure *cfg.GameMainlineHard
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.GamemainlineHard); !ok {
|
if configure, ok = v.(*cfg.GameMainlineHard); !ok {
|
||||||
this.module.Errorf("%T no is *cfg.Game_mainlineHardData", v)
|
this.module.Errorf("%T no is *cfg.Game_MainlineHardData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.MartialhallInfoReq)
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
mart *pb.DBMartialhall
|
mart *pb.DBMartialhall
|
||||||
mdata *cfg.Gamekungfu_masterworkerData
|
mdata *cfg.GameKungfuMasterworkerData
|
||||||
)
|
)
|
||||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
|
@ -21,7 +21,7 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.MartialhallPrac
|
|||||||
err error
|
err error
|
||||||
mart *pb.DBMartialhall
|
mart *pb.DBMartialhall
|
||||||
pillar *pb.DBPillar
|
pillar *pb.DBPillar
|
||||||
mdata *cfg.Gamekungfu_masterworkerData
|
mdata *cfg.GameKungfuMasterworkerData
|
||||||
filed string
|
filed string
|
||||||
)
|
)
|
||||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||||
|
@ -20,7 +20,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.MartialhallRecei
|
|||||||
err error
|
err error
|
||||||
mart *pb.DBMartialhall
|
mart *pb.DBMartialhall
|
||||||
pillar *pb.DBPillar
|
pillar *pb.DBPillar
|
||||||
mdata *cfg.Gamekungfu_masterworkerData
|
mdata *cfg.GameKungfuMasterworkerData
|
||||||
filed string
|
filed string
|
||||||
)
|
)
|
||||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||||
|
@ -19,7 +19,7 @@ func (this *apiComp) UnLock(session comm.IUserSession, req *pb.MartialhallUnLock
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
mart *pb.DBMartialhall
|
mart *pb.DBMartialhall
|
||||||
mdata *cfg.Gamekungfu_unlockData
|
mdata *cfg.GameKungfuUnlockData
|
||||||
pillar *pb.DBPillar
|
pillar *pb.DBPillar
|
||||||
filed string
|
filed string
|
||||||
)
|
)
|
||||||
|
@ -19,7 +19,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.MartialhallUpgra
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
mart *pb.DBMartialhall
|
mart *pb.DBMartialhall
|
||||||
mdata *cfg.Gamekungfu_masterworkerData
|
mdata *cfg.GameKungfuMasterworkerData
|
||||||
)
|
)
|
||||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
|
@ -23,12 +23,12 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.MCompConfigure.Init(service, module, comp, options)
|
this.MCompConfigure.Init(service, module, comp, options)
|
||||||
this.module = module.(*Martialhall)
|
this.module = module.(*Martialhall)
|
||||||
this.LoadConfigure(game_kungfu_unlock, cfg.NewGamekungfu_unlock)
|
this.LoadConfigure(game_kungfu_unlock, cfg.NewGameKungfuUnlock)
|
||||||
this.LoadConfigure(game_kungfu_masterworker, cfg.NewGamekungfu_masterworker)
|
this.LoadConfigure(game_kungfu_masterworker, cfg.NewGameKungfuMasterworker)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) getMasterworker(lv int32) (result *cfg.Gamekungfu_masterworkerData, err error) {
|
func (this *configureComp) getMasterworker(lv int32) (result *cfg.GameKungfuMasterworkerData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -37,7 +37,7 @@ func (this *configureComp) getMasterworker(lv int32) (result *cfg.Gamekungfu_mas
|
|||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if result, ok = v.(*cfg.Gamekungfu_masterworker).GetDataMap()[lv]; !ok {
|
if result, ok = v.(*cfg.GameKungfuMasterworker).GetDataMap()[lv]; !ok {
|
||||||
err = fmt.Errorf("not found:%d ", lv)
|
err = fmt.Errorf("not found:%d ", lv)
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
@ -46,7 +46,7 @@ func (this *configureComp) getMasterworker(lv int32) (result *cfg.Gamekungfu_mas
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) getunlock(pillar int32) (result *cfg.Gamekungfu_unlockData, err error) {
|
func (this *configureComp) getunlock(pillar int32) (result *cfg.GameKungfuUnlockData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -55,7 +55,7 @@ func (this *configureComp) getunlock(pillar int32) (result *cfg.Gamekungfu_unloc
|
|||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if result, ok = v.(*cfg.Gamekungfu_unlock).GetDataMap()[pillar]; !ok {
|
if result, ok = v.(*cfg.GameKungfuUnlock).GetDataMap()[pillar]; !ok {
|
||||||
err = fmt.Errorf("not found:%d ", pillar)
|
err = fmt.Errorf("not found:%d ", pillar)
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//结算
|
//结算
|
||||||
func settlement(pillar *pb.DBPillar, mdata *cfg.Gamekungfu_masterworkerData) {
|
func settlement(pillar *pb.DBPillar, mdata *cfg.GameKungfuMasterworkerData) {
|
||||||
if pillar == nil || pillar.State != pb.PillarState_Useing {
|
if pillar == nil || pillar.State != pb.PillarState_Useing {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ func settlement(pillar *pb.DBPillar, mdata *cfg.Gamekungfu_masterworkerData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//结算
|
//结算
|
||||||
func check(pillar *pb.DBPillar, mdata *cfg.Gamekungfu_masterworkerData) {
|
func check(pillar *pb.DBPillar, mdata *cfg.GameKungfuMasterworkerData) {
|
||||||
if pillar == nil || pillar.State != pb.PillarState_Useing {
|
if pillar == nil || pillar.State != pb.PillarState_Useing {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ const (
|
|||||||
type configureComp struct {
|
type configureComp struct {
|
||||||
cbase.ModuleCompBase
|
cbase.ModuleCompBase
|
||||||
hlock sync.RWMutex
|
hlock sync.RWMutex
|
||||||
_pagodaMap map[int64]*cfg.GamepagodaData
|
_pagodaMap map[int64]*cfg.GamePagodaData
|
||||||
}
|
}
|
||||||
|
|
||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
@ -27,14 +27,14 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
err = this.ModuleCompBase.Init(service, module, comp, options)
|
err = this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
err = this.LoadMultiConfigure(map[string]interface{}{
|
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||||
//game_pagoda: cfg.NewGame_pagoda,
|
//game_pagoda: cfg.NewGame_pagoda,
|
||||||
game_pagodaseasonreward: cfg.NewGamepagodaSeasonReward,
|
game_pagodaseasonreward: cfg.NewGamePagodaSeasonReward,
|
||||||
game_pagodataskreward: cfg.NewGamepagodaTaskReward,
|
game_pagodataskreward: cfg.NewGamePagodaTaskReward,
|
||||||
})
|
})
|
||||||
|
|
||||||
this._pagodaMap = make(map[int64]*cfg.GamepagodaData, 0)
|
this._pagodaMap = make(map[int64]*cfg.GamePagodaData, 0)
|
||||||
configure.RegisterConfigure(game_pagoda, cfg.NewGamepagoda, func() {
|
configure.RegisterConfigure(game_pagoda, cfg.NewGamePagoda, func() {
|
||||||
if v, err := this.GetConfigure(game_pagoda); err == nil {
|
if v, err := this.GetConfigure(game_pagoda); err == nil {
|
||||||
if configure, ok := v.(*cfg.Gamepagoda); ok {
|
if configure, ok := v.(*cfg.GamePagoda); ok {
|
||||||
this.hlock.Lock()
|
this.hlock.Lock()
|
||||||
defer this.hlock.Unlock()
|
defer this.hlock.Unlock()
|
||||||
for _, value := range configure.GetDataList() {
|
for _, value := range configure.GetDataList() {
|
||||||
@ -50,7 +50,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取爬塔信息 参数1 塔类型 参数2 层数
|
// 获取爬塔信息 参数1 塔类型 参数2 层数
|
||||||
func (this *configureComp) GetPagodaConfigData(PagodaType int32, floorId int32) (data *cfg.GamepagodaData) {
|
func (this *configureComp) GetPagodaConfigData(PagodaType int32, floorId int32) (data *cfg.GamePagodaData) {
|
||||||
|
|
||||||
return this._pagodaMap[int64(PagodaType<<16)+int64(floorId)]
|
return this._pagodaMap[int64(PagodaType<<16)+int64(floorId)]
|
||||||
}
|
}
|
||||||
@ -73,16 +73,16 @@ func (this *configureComp) GetConfigure(name string) (v interface{}, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取爬塔配置表数据
|
// 获取爬塔配置表数据
|
||||||
func (this *configureComp) GetPagodaconfig(id int32) (data *cfg.GamepagodaData) {
|
func (this *configureComp) GetPagodaconfig(id int32) (data *cfg.GamePagodaData) {
|
||||||
if v, err := this.GetConfigure(game_pagoda); err != nil {
|
if v, err := this.GetConfigure(game_pagoda); err != nil {
|
||||||
log.Errorf("get global conf err:%v", err)
|
log.Errorf("get global conf err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
configure *cfg.Gamepagoda
|
configure *cfg.GamePagoda
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.Gamepagoda); !ok {
|
if configure, ok = v.(*cfg.GamePagoda); !ok {
|
||||||
log.Errorf("%T no is *cfg.Game_pagodaData", v)
|
log.Errorf("%T no is *cfg.Game_pagodaData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -95,13 +95,13 @@ func (this *configureComp) GetPagodaconfig(id int32) (data *cfg.GamepagodaData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 爬塔奖励
|
// 爬塔奖励
|
||||||
func (this *configureComp) GetPagodaRewardconfig(id int32) (data *cfg.GamepagodaTaskRewardData) {
|
func (this *configureComp) GetPagodaRewardconfig(id int32) (data *cfg.GamePagodaTaskRewardData) {
|
||||||
if v, err := this.GetConfigure(game_pagodataskreward); err == nil {
|
if v, err := this.GetConfigure(game_pagodataskreward); err == nil {
|
||||||
var (
|
var (
|
||||||
configure *cfg.GamepagodaTaskReward
|
configure *cfg.GamePagodaTaskReward
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if configure, ok = v.(*cfg.GamepagodaTaskReward); !ok {
|
if configure, ok = v.(*cfg.GamePagodaTaskReward); !ok {
|
||||||
log.Errorf("%T no is *cfg.Game_pagodaData", v)
|
log.Errorf("%T no is *cfg.Game_pagodaData", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ func (this *configureComp) getFirstTask() *cfg.GameRdtaskAllData {
|
|||||||
}
|
}
|
||||||
if cfg != nil {
|
if cfg != nil {
|
||||||
for _, v := range cfg.GetDataList() {
|
for _, v := range cfg.GetDataList() {
|
||||||
if v.Aftertaks == 0 {
|
if v.Aftertask == 0 {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ func (this *ModelRtask) doRtaskHandle(uid string, param *pb.RtaskParam) (rtaskId
|
|||||||
if len(rtask.FrtaskIds) == 0 {
|
if len(rtask.FrtaskIds) == 0 {
|
||||||
conf := this.moduleRtask.configure.getFirstTask()
|
conf := this.moduleRtask.configure.getFirstTask()
|
||||||
if conf != nil {
|
if conf != nil {
|
||||||
taskId = conf.Aftertaks
|
taskId = conf.Aftertask
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//TODO
|
//TODO
|
||||||
|
@ -73,7 +73,7 @@ func (this *ModuleRtask) initRtaskHandle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//遍历任务的限定条件
|
//遍历任务的限定条件
|
||||||
for _, rtaskTypeId := range v.RdtaksNum {
|
for _, rtaskTypeId := range v.Rdtasknum {
|
||||||
// 获取每个限定条件配置
|
// 获取每个限定条件配置
|
||||||
if typeCfg, err2 := this.configure.getRtaskTypeById(rtaskTypeId); err2 == nil {
|
if typeCfg, err2 := this.configure.getRtaskTypeById(rtaskTypeId); err2 == nil {
|
||||||
if typeCfg != nil {
|
if typeCfg != nil {
|
||||||
|
@ -24,7 +24,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
ok bool
|
ok bool
|
||||||
conf *cfg.GameshopitemData
|
conf *cfg.GameShopitemData
|
||||||
shopitem *pb.DBShopItem
|
shopitem *pb.DBShopItem
|
||||||
need []*cfg.Gameatn
|
need []*cfg.Gameatn
|
||||||
give []*cfg.Gameatn
|
give []*cfg.Gameatn
|
||||||
|
@ -23,11 +23,11 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
filed string
|
filed string
|
||||||
shopconf *cfg.GameshopData
|
shopconf *cfg.GameShopData
|
||||||
shopData *pb.DBShop
|
shopData *pb.DBShop
|
||||||
udata *pb.DBUser
|
udata *pb.DBUser
|
||||||
sdata *pb.UserShopData
|
sdata *pb.UserShopData
|
||||||
items []*cfg.GameshopitemData
|
items []*cfg.GameShopitemData
|
||||||
ushoputem map[int32]*pb.DBShopItem
|
ushoputem map[int32]*pb.DBShopItem
|
||||||
goods []*pb.ShopItem
|
goods []*pb.ShopItem
|
||||||
tdata time.Duration
|
tdata time.Duration
|
||||||
@ -112,7 +112,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
if code = this.module.ConsumeRes(session, shopconf.Rneed, true); code != pb.ErrorCode_Success {
|
if code = this.module.ConsumeRes(session, shopconf.Rneed, true); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var _items []*cfg.GameshopitemData
|
var _items []*cfg.GameShopitemData
|
||||||
for _, v := range shopconf.Shopitem {
|
for _, v := range shopconf.Shopitem {
|
||||||
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
@ -130,7 +130,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
this.module.modelShop.Change(session.GetUserId(), map[string]interface{}{filed: sdata})
|
this.module.modelShop.Change(session.GetUserId(), map[string]interface{}{filed: sdata})
|
||||||
} else if !req.IsManualRefresh {
|
} else if !req.IsManualRefresh {
|
||||||
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
||||||
var _items []*cfg.GameshopitemData
|
var _items []*cfg.GameShopitemData
|
||||||
for _, v := range shopconf.Shopitem {
|
for _, v := range shopconf.Shopitem {
|
||||||
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
|
@ -23,13 +23,13 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
this.ModuleCompBase.Init(service, module, comp, options)
|
this.ModuleCompBase.Init(service, module, comp, options)
|
||||||
this.module = module.(*Shop)
|
this.module = module.(*Shop)
|
||||||
this.LoadConfigure(game_shop, cfg.NewGameshop)
|
this.LoadConfigure(game_shop, cfg.NewGameShop)
|
||||||
this.LoadConfigure(game_shopitem, cfg.NewGameshopitem)
|
this.LoadConfigure(game_shopitem, cfg.NewGameShopitem)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取装备配置数据
|
//获取装备配置数据
|
||||||
func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameshopData, err error) {
|
func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameShopData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -38,7 +38,7 @@ func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameshopDa
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if configure, ok = v.(*cfg.Gameshop).GetDataMap()[id]; !ok {
|
if configure, ok = v.(*cfg.GameShop).GetDataMap()[id]; !ok {
|
||||||
err = fmt.Errorf("ShopConfigure not found:%d ", id)
|
err = fmt.Errorf("ShopConfigure not found:%d ", id)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -48,7 +48,7 @@ func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameshopDa
|
|||||||
}
|
}
|
||||||
|
|
||||||
//读取商品
|
//读取商品
|
||||||
func (this *configureComp) GetShopItemsConfigure(key int32) (result *cfg.GameshopitemData, err error) {
|
func (this *configureComp) GetShopItemsConfigure(key int32) (result *cfg.GameShopitemData, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -57,7 +57,7 @@ func (this *configureComp) GetShopItemsConfigure(key int32) (result *cfg.Gamesho
|
|||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if result, ok = v.(*cfg.Gameshopitem).GetDataMap()[key]; !ok {
|
if result, ok = v.(*cfg.GameShopitem).GetDataMap()[key]; !ok {
|
||||||
err = fmt.Errorf("ShopConfigure not found:%d ", key)
|
err = fmt.Errorf("ShopConfigure not found:%d ", key)
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
@ -67,17 +67,17 @@ func (this *configureComp) GetShopItemsConfigure(key int32) (result *cfg.Gamesho
|
|||||||
}
|
}
|
||||||
|
|
||||||
//读取商品组
|
//读取商品组
|
||||||
func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb.DBUser) (result []*cfg.GameshopitemData, err error) {
|
func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb.DBUser) (result []*cfg.GameShopitemData, err error) {
|
||||||
result = make([]*cfg.GameshopitemData, 0, 10)
|
result = make([]*cfg.GameShopitemData, 0, 10)
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
table *cfg.Gameshopitem
|
table *cfg.GameShopitem
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
table = v.(*cfg.Gameshopitem)
|
table = v.(*cfg.GameShopitem)
|
||||||
for _, v := range table.GetDataMap() {
|
for _, v := range table.GetDataMap() {
|
||||||
if v.Id == groupid &&
|
if v.Id == groupid &&
|
||||||
user.Lv >= v.Lvmin &&
|
user.Lv >= v.Lvmin &&
|
||||||
@ -91,19 +91,19 @@ func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb
|
|||||||
}
|
}
|
||||||
|
|
||||||
//读取商品
|
//读取商品
|
||||||
func (this *configureComp) GetShopItemsConfigureByIds(keys ...int32) (result []*cfg.GameshopitemData, err error) {
|
func (this *configureComp) GetShopItemsConfigureByIds(keys ...int32) (result []*cfg.GameShopitemData, err error) {
|
||||||
result = make([]*cfg.GameshopitemData, 0, len(keys))
|
result = make([]*cfg.GameShopitemData, 0, len(keys))
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
table *cfg.Gameshopitem
|
table *cfg.GameShopitem
|
||||||
item *cfg.GameshopitemData
|
item *cfg.GameShopitemData
|
||||||
ok bool
|
ok bool
|
||||||
)
|
)
|
||||||
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
table = v.(*cfg.Gameshopitem)
|
table = v.(*cfg.GameShopitem)
|
||||||
for _, v := range keys {
|
for _, v := range keys {
|
||||||
if item, ok = table.GetDataMap()[v]; ok {
|
if item, ok = table.GetDataMap()[v]; ok {
|
||||||
result = append(result, item)
|
result = append(result, item)
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//随机商品列表
|
//随机商品列表
|
||||||
func randomGoods(goods []*cfg.GameshopitemData) (result *cfg.GameshopitemData) {
|
func randomGoods(goods []*cfg.GameShopitemData) (result *cfg.GameShopitemData) {
|
||||||
var (
|
var (
|
||||||
totle int64
|
totle int64
|
||||||
curr int64
|
curr int64
|
||||||
@ -31,7 +31,7 @@ func randomGoods(goods []*cfg.GameshopitemData) (result *cfg.GameshopitemData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//转换商品对象
|
//转换商品对象
|
||||||
func transGoods(stype pb.ShopType, goods []*cfg.GameshopitemData, ushoputem map[int32]*pb.DBShopItem) (result []*pb.ShopItem) {
|
func transGoods(stype pb.ShopType, goods []*cfg.GameShopitemData, ushoputem map[int32]*pb.DBShopItem) (result []*pb.ShopItem) {
|
||||||
result = make([]*pb.ShopItem, len(goods))
|
result = make([]*pb.ShopItem, len(goods))
|
||||||
ok := false
|
ok := false
|
||||||
uitem := &pb.DBShopItem{}
|
uitem := &pb.DBShopItem{}
|
||||||
|
@ -22,14 +22,14 @@ type configureComp struct {
|
|||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
err = this.MCompConfigure.Init(service, module, comp, options)
|
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||||
this.LoadMultiConfigure(map[string]interface{}{
|
this.LoadMultiConfigure(map[string]interface{}{
|
||||||
gameTaskRound: cfg.NewGametaskRound,
|
gameTaskRound: cfg.NewGameTaskRound,
|
||||||
gameActiveReward: cfg.NewGameactiveReward,
|
gameActiveReward: cfg.NewGameActiveReward,
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取活跃度奖励配置
|
//获取活跃度奖励配置
|
||||||
func (this *configureComp) getActiveRewardCfg() (data *cfg.GameactiveReward, err error) {
|
func (this *configureComp) getActiveRewardCfg() (data *cfg.GameActiveReward, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -37,7 +37,7 @@ func (this *configureComp) getActiveRewardCfg() (data *cfg.GameactiveReward, err
|
|||||||
if v, err = this.GetConfigure(gameActiveReward); err != nil {
|
if v, err = this.GetConfigure(gameActiveReward); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if data, ok = v.(*cfg.GameactiveReward); !ok {
|
if data, ok = v.(*cfg.GameActiveReward); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_ActiveReward", v)
|
err = fmt.Errorf("%T no is *cfg.Game_ActiveReward", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (this *configureComp) getActiveRewardCfg() (data *cfg.GameactiveReward, err
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取任务配置
|
//获取任务配置
|
||||||
func (this *configureComp) getTaskRoundCfg() (data *cfg.GametaskRound, err error) {
|
func (this *configureComp) getTaskRoundCfg() (data *cfg.GameTaskRound, err error) {
|
||||||
var (
|
var (
|
||||||
v interface{}
|
v interface{}
|
||||||
ok bool
|
ok bool
|
||||||
@ -54,7 +54,7 @@ func (this *configureComp) getTaskRoundCfg() (data *cfg.GametaskRound, err error
|
|||||||
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if data, ok = v.(*cfg.GametaskRound); !ok {
|
if data, ok = v.(*cfg.GameTaskRound); !ok {
|
||||||
err = fmt.Errorf("%T no is *cfg.Game_taskRound", v)
|
err = fmt.Errorf("%T no is *cfg.Game_taskRound", v)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ func (this *configureComp) getTaskRoundCfg() (data *cfg.GametaskRound, err error
|
|||||||
}
|
}
|
||||||
|
|
||||||
//根据taskId获取配置
|
//根据taskId获取配置
|
||||||
func (this *configureComp) getTaskById(taskId int32) (data *cfg.GametaskRoundData) {
|
func (this *configureComp) getTaskById(taskId int32) (data *cfg.GameTaskRoundData) {
|
||||||
cfg, err := this.getTaskRoundCfg()
|
cfg, err := this.getTaskRoundCfg()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%v", err)
|
log.Errorf("%v", err)
|
||||||
@ -90,7 +90,7 @@ func (this *configureComp) isFirstTask(taskId int32) (ok bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 上一个任务
|
// 上一个任务
|
||||||
func (this *configureComp) getPreTask(preTaskId int32) *cfg.GametaskRoundData {
|
func (this *configureComp) getPreTask(preTaskId int32) *cfg.GameTaskRoundData {
|
||||||
data := this.getTaskByTag(int32(comm.TASK_ACHIEVE))
|
data := this.getTaskByTag(int32(comm.TASK_ACHIEVE))
|
||||||
for _, v := range data {
|
for _, v := range data {
|
||||||
if v.IdAfter == preTaskId {
|
if v.IdAfter == preTaskId {
|
||||||
@ -101,7 +101,7 @@ func (this *configureComp) getPreTask(preTaskId int32) *cfg.GametaskRoundData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取任务配置列表
|
//获取任务配置列表
|
||||||
func (this *configureComp) getTaskList() (data []*cfg.GametaskRoundData, err error) {
|
func (this *configureComp) getTaskList() (data []*cfg.GameTaskRoundData, err error) {
|
||||||
cfg, err := this.getTaskRoundCfg()
|
cfg, err := this.getTaskRoundCfg()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%v", err)
|
log.Errorf("%v", err)
|
||||||
@ -114,7 +114,7 @@ func (this *configureComp) getTaskList() (data []*cfg.GametaskRoundData, err err
|
|||||||
}
|
}
|
||||||
|
|
||||||
//根据任务类型获取任务列表
|
//根据任务类型获取任务列表
|
||||||
func (this *configureComp) getTasks(taskType int32) (data []*cfg.GametaskRoundData, err error) {
|
func (this *configureComp) getTasks(taskType int32) (data []*cfg.GameTaskRoundData, err error) {
|
||||||
list, err := this.getTaskList()
|
list, err := this.getTaskList()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%v", err)
|
log.Errorf("%v", err)
|
||||||
@ -131,7 +131,7 @@ func (this *configureComp) getTasks(taskType int32) (data []*cfg.GametaskRoundDa
|
|||||||
}
|
}
|
||||||
|
|
||||||
//任务列表 正序
|
//任务列表 正序
|
||||||
func (this *configureComp) getSortedTasks(taskType int32) (data []*cfg.GametaskRoundData, err error) {
|
func (this *configureComp) getSortedTasks(taskType int32) (data []*cfg.GameTaskRoundData, err error) {
|
||||||
if data, err = this.getTasks(taskType); err != nil {
|
if data, err = this.getTasks(taskType); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ func (this *configureComp) getSortedTasks(taskType int32) (data []*cfg.GametaskR
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取任务配置 条件 tasktag
|
//获取任务配置 条件 tasktag
|
||||||
func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GametaskRoundData) {
|
func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GameTaskRoundData) {
|
||||||
list, err := this.getTaskList()
|
list, err := this.getTaskList()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%v", err)
|
log.Errorf("%v", err)
|
||||||
@ -156,7 +156,7 @@ func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GametaskRoun
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) getTaskActiveList() (data []*cfg.GameactiveRewardData) {
|
func (this *configureComp) getTaskActiveList() (data []*cfg.GameActiveRewardData) {
|
||||||
conf, err := this.getActiveRewardCfg()
|
conf, err := this.getActiveRewardCfg()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("get conf err:%v", err)
|
log.Errorf("get conf err:%v", err)
|
||||||
@ -169,7 +169,7 @@ func (this *configureComp) getTaskActiveList() (data []*cfg.GameactiveRewardData
|
|||||||
}
|
}
|
||||||
|
|
||||||
//获取活跃度奖励list
|
//获取活跃度奖励list
|
||||||
func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.GameactiveRewardData, err error) {
|
func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.GameActiveRewardData, err error) {
|
||||||
conf, err := this.getActiveRewardCfg()
|
conf, err := this.getActiveRewardCfg()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("get conf err:%v", err)
|
log.Errorf("get conf err:%v", err)
|
||||||
@ -187,7 +187,7 @@ func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.Gameac
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取活跃度配置map
|
// 获取活跃度配置map
|
||||||
func (this *configureComp) getTaskActiveById(id int32) (data *cfg.GameactiveRewardData) {
|
func (this *configureComp) getTaskActiveById(id int32) (data *cfg.GameActiveRewardData) {
|
||||||
conf, err := this.getActiveRewardCfg()
|
conf, err := this.getActiveRewardCfg()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("get conf err:%v", err)
|
log.Errorf("get conf err:%v", err)
|
||||||
|
42
sys/configure/structs/Game.KungfuMasterworker.go
Normal file
42
sys/configure/structs/Game.KungfuMasterworker.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
type GameKungfuMasterworker struct {
|
||||||
|
_dataMap map[int32]*GameKungfuMasterworkerData
|
||||||
|
_dataList []*GameKungfuMasterworkerData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameKungfuMasterworker(_buf []map[string]interface{}) (*GameKungfuMasterworker, error) {
|
||||||
|
_dataList := make([]*GameKungfuMasterworkerData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameKungfuMasterworkerData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameKungfuMasterworkerData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Level] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameKungfuMasterworker{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuMasterworker) GetDataMap() map[int32]*GameKungfuMasterworkerData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuMasterworker) GetDataList() []*GameKungfuMasterworkerData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuMasterworker) Get(key int32) *GameKungfuMasterworkerData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type Gamekungfu_masterworkerData struct {
|
type GameKungfuMasterworkerData struct {
|
||||||
Level int32
|
Level int32
|
||||||
Star int32
|
Star int32
|
||||||
Quality int32
|
Quality int32
|
||||||
@ -26,13 +26,13 @@ type Gamekungfu_masterworkerData struct {
|
|||||||
Deplete []*Gameatn
|
Deplete []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_Gamekungfu_masterworkerData = -2026478053
|
const TypeId_GameKungfuMasterworkerData = -203564424
|
||||||
|
|
||||||
func (*Gamekungfu_masterworkerData) GetTypeId() int32 {
|
func (*GameKungfuMasterworkerData) GetTypeId() int32 {
|
||||||
return -2026478053
|
return -203564424
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *Gamekungfu_masterworkerData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameKungfuMasterworkerData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quality"].(float64); !_ok_ { err = errors.New("quality error"); return }; _v.Quality = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quality"].(float64); !_ok_ { err = errors.New("quality error"); return }; _v.Quality = int32(_tempNum_) }
|
||||||
@ -75,8 +75,8 @@ func (_v *Gamekungfu_masterworkerData)Deserialize(_buf map[string]interface{}) (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamekungfu_masterworkerData(_buf map[string]interface{}) (*Gamekungfu_masterworkerData, error) {
|
func DeserializeGameKungfuMasterworkerData(_buf map[string]interface{}) (*GameKungfuMasterworkerData, error) {
|
||||||
v := &Gamekungfu_masterworkerData{}
|
v := &GameKungfuMasterworkerData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
42
sys/configure/structs/Game.KungfuUnlock.go
Normal file
42
sys/configure/structs/Game.KungfuUnlock.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
type GameKungfuUnlock struct {
|
||||||
|
_dataMap map[int32]*GameKungfuUnlockData
|
||||||
|
_dataList []*GameKungfuUnlockData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameKungfuUnlock(_buf []map[string]interface{}) (*GameKungfuUnlock, error) {
|
||||||
|
_dataList := make([]*GameKungfuUnlockData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameKungfuUnlockData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameKungfuUnlockData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Id] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameKungfuUnlock{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuUnlock) GetDataMap() map[int32]*GameKungfuUnlockData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuUnlock) GetDataList() []*GameKungfuUnlockData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameKungfuUnlock) Get(key int32) *GameKungfuUnlockData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -10,20 +10,20 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type Gamekungfu_unlockData struct {
|
type GameKungfuUnlockData struct {
|
||||||
Id int32
|
Id int32
|
||||||
Type int32
|
Type int32
|
||||||
Area int32
|
Area int32
|
||||||
Consume []*Gameatn
|
Consume []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_Gamekungfu_unlockData = -515174465
|
const TypeId_GameKungfuUnlockData = 1816415708
|
||||||
|
|
||||||
func (*Gamekungfu_unlockData) GetTypeId() int32 {
|
func (*GameKungfuUnlockData) GetTypeId() int32 {
|
||||||
return -515174465
|
return 1816415708
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *Gamekungfu_unlockData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameKungfuUnlockData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
|
||||||
@ -44,8 +44,8 @@ func (_v *Gamekungfu_unlockData)Deserialize(_buf map[string]interface{}) (err er
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamekungfu_unlockData(_buf map[string]interface{}) (*Gamekungfu_unlockData, error) {
|
func DeserializeGameKungfuUnlockData(_buf map[string]interface{}) (*GameKungfuUnlockData, error) {
|
||||||
v := &Gamekungfu_unlockData{}
|
v := &GameKungfuUnlockData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
@ -11,70 +11,69 @@ package cfg
|
|||||||
type JsonLoader func(string) ([]map[string]interface{}, error)
|
type JsonLoader func(string) ([]map[string]interface{}, error)
|
||||||
|
|
||||||
type Tables struct {
|
type Tables struct {
|
||||||
global *Gameglobal
|
Global *GameGlobal
|
||||||
ui *Gameui
|
Plot *GamePlot
|
||||||
plot *Gameplot
|
Extservers *GameExtservers
|
||||||
extservers *Gameextservers
|
SkillAtk *GameSkillAtk
|
||||||
skillAtk *GameskillAtk
|
SkillAfteratk *GameSkillAfteratk
|
||||||
skillAfteratk *GameskillAfteratk
|
SkillBuff *GameSkillBuff
|
||||||
skillBuff *GameskillBuff
|
SkillPassive *GameSkillPassive
|
||||||
skillPassive *GameskillPassive
|
Hero *GameHero
|
||||||
hero *Gamehero
|
HeroStargrow *GameHeroStargrow
|
||||||
heroStargrow *GameheroStargrow
|
HeroLevelgrow *GameHeroLevelgrow
|
||||||
heroLevelgrow *GameheroLevelgrow
|
HeroStarup *GameHeroStarup
|
||||||
heroStarup *GameheroStarup
|
HeroExp *GameHeroExp
|
||||||
heroExp *GameheroExp
|
HeroLevelup *GameHeroLevelup
|
||||||
heroLevelup *GameheroLevelup
|
Equip *GameEquip
|
||||||
equip *Gameequip
|
EquipAttrlibrary *GameEquipAttrlibrary
|
||||||
equipAttrlibrary *GameequipAttrlibrary
|
EquipSuit *GameEquipSuit
|
||||||
equipSuit *GameequipSuit
|
EquipColor *GameEquipColor
|
||||||
equipColor *GameequipColor
|
EquipIntensify *GameEquipIntensify
|
||||||
equipIntensify *GameequipIntensify
|
Item *GameItem
|
||||||
item *Gameitem
|
HeroSkillLevel *GameHeroSkillLevel
|
||||||
heroSkillLevel *GameheroSkillLevel
|
HeroResonance *GameHeroResonance
|
||||||
heroResonance *GameheroResonance
|
ComAtn *GameComAtn
|
||||||
comAtn *GamecomAtn
|
HeroAwaken *GameHeroAwaken
|
||||||
heroAwaken *GameheroAwaken
|
HeroMethod *GameHeroMethod
|
||||||
heroMethod *GameheroMethod
|
Shop *GameShop
|
||||||
shop *Gameshop
|
Shopitem *GameShopitem
|
||||||
shopitem *Gameshopitem
|
ActiveReward *GameActiveReward
|
||||||
activeReward *GameactiveReward
|
Com *GameCom
|
||||||
com *Gamecom
|
Skill *GameSkill
|
||||||
skill *Gameskill
|
Model *GameModel
|
||||||
model *Gamemodel
|
MainlineChapter *GameMainlineChapter
|
||||||
mainlineChapter *GamemainlineChapter
|
MainlineEasy *GameMainlineEasy
|
||||||
mainlineEasy *GamemainlineEasy
|
MainlineHard *GameMainlineHard
|
||||||
mainlineHard *GamemainlineHard
|
MainlinePurgatory *GameMainlinePurgatory
|
||||||
mainlinePurgatory *GamemainlinePurgatory
|
DrawCard *GameDrawCard
|
||||||
drawCard *GamedrawCard
|
ChatChannel *GameChatChannel
|
||||||
chatChannel *GamechatChannel
|
ChatSystem *GameChatSystem
|
||||||
chatSystem *GamechatSystem
|
ChatServerGroup *GameChatServerGroup
|
||||||
chatServerGroup *GamechatServerGroup
|
ChatChannelCom *GameChatChannelCom
|
||||||
chatChannelCom *GamechatChannelCom
|
TaskRound *GameTaskRound
|
||||||
taskRound *GametaskRound
|
TaskActiveReward *GameTaskActiveReward
|
||||||
taskActiveReward *GametaskActiveReward
|
Coin *GameCoin
|
||||||
coin *Gamecoin
|
Initial *GameInitial
|
||||||
initial *Gameinitial
|
Monster *GameMonster
|
||||||
monster *Gamemonster
|
EquipPos *GameEquipPos
|
||||||
equipPos *GameequipPos
|
Playerlv *GamePlayerlv
|
||||||
playerlv *Gameplayerlv
|
Propsgroup *GamePropsgroup
|
||||||
propsgroup *Gamepropsgroup
|
Facemod *GameFacemod
|
||||||
facemod *Gamefacemod
|
Msgdistrib *GameMsgdistrib
|
||||||
msgdistrib *Gamemsgdistrib
|
Opencond *GameOpencond
|
||||||
language *Gamelanguage
|
Stroy *GameStroy
|
||||||
opencond *Gameopencond
|
Pagoda *GamePagoda
|
||||||
stroy *Gamestroy
|
PagodaTaskReward *GamePagodaTaskReward
|
||||||
pagoda *Gamepagoda
|
PagodaSeasonReward *GamePagodaSeasonReward
|
||||||
pagodaTaskReward *GamepagodaTaskReward
|
PagodaseasonLoop *GamePagodaseasonLoop
|
||||||
pagodaSeasonReward *GamepagodaSeasonReward
|
|
||||||
pagodaseasonLoop *GamepagodaseasonLoop
|
|
||||||
RdtaskAll *GameRdtaskAll
|
RdtaskAll *GameRdtaskAll
|
||||||
RdtaskType *GameRdtaskType
|
RdtaskType *GameRdtaskType
|
||||||
RdtaskChoose *GameRdtaskChoose
|
RdtaskChoose *GameRdtaskChoose
|
||||||
kungfu_unlock *Gamekungfu_unlock
|
KungfuUnlock *GameKungfuUnlock
|
||||||
kungfu_masterworker *Gamekungfu_masterworker
|
KungfuMasterworker *GameKungfuMasterworker
|
||||||
Gourmet *GameGourmet
|
Gourmet *GameGourmet
|
||||||
GourmetSkill *GameGourmetSkill
|
GourmetSkill *GameGourmetSkill
|
||||||
|
Drop *GameDrop
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTables(loader JsonLoader) (*Tables, error) {
|
func NewTables(loader JsonLoader) (*Tables, error) {
|
||||||
@ -85,343 +84,331 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
|||||||
if buf, err = loader("game_global") ; err != nil {
|
if buf, err = loader("game_global") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.global, err = NewGameglobal(buf) ; err != nil {
|
if tables.Global, err = NewGameGlobal(buf) ; err != nil {
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if buf, err = loader("game_ui") ; err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if tables.ui, err = NewGameui(buf) ; err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_plot") ; err != nil {
|
if buf, err = loader("game_plot") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.plot, err = NewGameplot(buf) ; err != nil {
|
if tables.Plot, err = NewGamePlot(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_extservers") ; err != nil {
|
if buf, err = loader("game_extservers") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.extservers, err = NewGameextservers(buf) ; err != nil {
|
if tables.Extservers, err = NewGameExtservers(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_skillatk") ; err != nil {
|
if buf, err = loader("game_skillatk") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.skillAtk, err = NewGameskillAtk(buf) ; err != nil {
|
if tables.SkillAtk, err = NewGameSkillAtk(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_skillafteratk") ; err != nil {
|
if buf, err = loader("game_skillafteratk") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.skillAfteratk, err = NewGameskillAfteratk(buf) ; err != nil {
|
if tables.SkillAfteratk, err = NewGameSkillAfteratk(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_skillbuff") ; err != nil {
|
if buf, err = loader("game_skillbuff") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.skillBuff, err = NewGameskillBuff(buf) ; err != nil {
|
if tables.SkillBuff, err = NewGameSkillBuff(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_skillpassive") ; err != nil {
|
if buf, err = loader("game_skillpassive") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.skillPassive, err = NewGameskillPassive(buf) ; err != nil {
|
if tables.SkillPassive, err = NewGameSkillPassive(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_hero") ; err != nil {
|
if buf, err = loader("game_hero") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.hero, err = NewGamehero(buf) ; err != nil {
|
if tables.Hero, err = NewGameHero(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_herostargrow") ; err != nil {
|
if buf, err = loader("game_herostargrow") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroStargrow, err = NewGameheroStargrow(buf) ; err != nil {
|
if tables.HeroStargrow, err = NewGameHeroStargrow(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_herolevelgrow") ; err != nil {
|
if buf, err = loader("game_herolevelgrow") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroLevelgrow, err = NewGameheroLevelgrow(buf) ; err != nil {
|
if tables.HeroLevelgrow, err = NewGameHeroLevelgrow(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_herostarup") ; err != nil {
|
if buf, err = loader("game_herostarup") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroStarup, err = NewGameheroStarup(buf) ; err != nil {
|
if tables.HeroStarup, err = NewGameHeroStarup(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_heroexp") ; err != nil {
|
if buf, err = loader("game_heroexp") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroExp, err = NewGameheroExp(buf) ; err != nil {
|
if tables.HeroExp, err = NewGameHeroExp(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_herolevelup") ; err != nil {
|
if buf, err = loader("game_herolevelup") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroLevelup, err = NewGameheroLevelup(buf) ; err != nil {
|
if tables.HeroLevelup, err = NewGameHeroLevelup(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equip") ; err != nil {
|
if buf, err = loader("game_equip") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equip, err = NewGameequip(buf) ; err != nil {
|
if tables.Equip, err = NewGameEquip(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equipattrlibrary") ; err != nil {
|
if buf, err = loader("game_equipattrlibrary") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equipAttrlibrary, err = NewGameequipAttrlibrary(buf) ; err != nil {
|
if tables.EquipAttrlibrary, err = NewGameEquipAttrlibrary(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equipsuit") ; err != nil {
|
if buf, err = loader("game_equipsuit") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equipSuit, err = NewGameequipSuit(buf) ; err != nil {
|
if tables.EquipSuit, err = NewGameEquipSuit(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equipcolor") ; err != nil {
|
if buf, err = loader("game_equipcolor") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equipColor, err = NewGameequipColor(buf) ; err != nil {
|
if tables.EquipColor, err = NewGameEquipColor(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equipintensify") ; err != nil {
|
if buf, err = loader("game_equipintensify") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equipIntensify, err = NewGameequipIntensify(buf) ; err != nil {
|
if tables.EquipIntensify, err = NewGameEquipIntensify(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_item") ; err != nil {
|
if buf, err = loader("game_item") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.item, err = NewGameitem(buf) ; err != nil {
|
if tables.Item, err = NewGameItem(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_heroskilllevel") ; err != nil {
|
if buf, err = loader("game_heroskilllevel") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroSkillLevel, err = NewGameheroSkillLevel(buf) ; err != nil {
|
if tables.HeroSkillLevel, err = NewGameHeroSkillLevel(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_heroresonance") ; err != nil {
|
if buf, err = loader("game_heroresonance") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroResonance, err = NewGameheroResonance(buf) ; err != nil {
|
if tables.HeroResonance, err = NewGameHeroResonance(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_comatn") ; err != nil {
|
if buf, err = loader("game_comatn") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.comAtn, err = NewGamecomAtn(buf) ; err != nil {
|
if tables.ComAtn, err = NewGameComAtn(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_heroawaken") ; err != nil {
|
if buf, err = loader("game_heroawaken") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroAwaken, err = NewGameheroAwaken(buf) ; err != nil {
|
if tables.HeroAwaken, err = NewGameHeroAwaken(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_heromethod") ; err != nil {
|
if buf, err = loader("game_heromethod") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.heroMethod, err = NewGameheroMethod(buf) ; err != nil {
|
if tables.HeroMethod, err = NewGameHeroMethod(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_shop") ; err != nil {
|
if buf, err = loader("game_shop") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.shop, err = NewGameshop(buf) ; err != nil {
|
if tables.Shop, err = NewGameShop(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_shopitem") ; err != nil {
|
if buf, err = loader("game_shopitem") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.shopitem, err = NewGameshopitem(buf) ; err != nil {
|
if tables.Shopitem, err = NewGameShopitem(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_activereward") ; err != nil {
|
if buf, err = loader("game_activereward") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.activeReward, err = NewGameactiveReward(buf) ; err != nil {
|
if tables.ActiveReward, err = NewGameActiveReward(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_com") ; err != nil {
|
if buf, err = loader("game_com") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.com, err = NewGamecom(buf) ; err != nil {
|
if tables.Com, err = NewGameCom(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_skill") ; err != nil {
|
if buf, err = loader("game_skill") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.skill, err = NewGameskill(buf) ; err != nil {
|
if tables.Skill, err = NewGameSkill(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_model") ; err != nil {
|
if buf, err = loader("game_model") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.model, err = NewGamemodel(buf) ; err != nil {
|
if tables.Model, err = NewGameModel(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_mainlinechapter") ; err != nil {
|
if buf, err = loader("game_mainlinechapter") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.mainlineChapter, err = NewGamemainlineChapter(buf) ; err != nil {
|
if tables.MainlineChapter, err = NewGameMainlineChapter(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_mainlineeasy") ; err != nil {
|
if buf, err = loader("game_mainlineeasy") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.mainlineEasy, err = NewGamemainlineEasy(buf) ; err != nil {
|
if tables.MainlineEasy, err = NewGameMainlineEasy(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_mainlinehard") ; err != nil {
|
if buf, err = loader("game_mainlinehard") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.mainlineHard, err = NewGamemainlineHard(buf) ; err != nil {
|
if tables.MainlineHard, err = NewGameMainlineHard(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_mainlinepurgatory") ; err != nil {
|
if buf, err = loader("game_mainlinepurgatory") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.mainlinePurgatory, err = NewGamemainlinePurgatory(buf) ; err != nil {
|
if tables.MainlinePurgatory, err = NewGameMainlinePurgatory(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_drawcard") ; err != nil {
|
if buf, err = loader("game_drawcard") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.drawCard, err = NewGamedrawCard(buf) ; err != nil {
|
if tables.DrawCard, err = NewGameDrawCard(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_chatchannel") ; err != nil {
|
if buf, err = loader("game_chatchannel") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.chatChannel, err = NewGamechatChannel(buf) ; err != nil {
|
if tables.ChatChannel, err = NewGameChatChannel(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_chatsystem") ; err != nil {
|
if buf, err = loader("game_chatsystem") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.chatSystem, err = NewGamechatSystem(buf) ; err != nil {
|
if tables.ChatSystem, err = NewGameChatSystem(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_chatservergroup") ; err != nil {
|
if buf, err = loader("game_chatservergroup") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.chatServerGroup, err = NewGamechatServerGroup(buf) ; err != nil {
|
if tables.ChatServerGroup, err = NewGameChatServerGroup(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_chatchannelcom") ; err != nil {
|
if buf, err = loader("game_chatchannelcom") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.chatChannelCom, err = NewGamechatChannelCom(buf) ; err != nil {
|
if tables.ChatChannelCom, err = NewGameChatChannelCom(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_taskround") ; err != nil {
|
if buf, err = loader("game_taskround") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.taskRound, err = NewGametaskRound(buf) ; err != nil {
|
if tables.TaskRound, err = NewGameTaskRound(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_taskactivereward") ; err != nil {
|
if buf, err = loader("game_taskactivereward") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.taskActiveReward, err = NewGametaskActiveReward(buf) ; err != nil {
|
if tables.TaskActiveReward, err = NewGameTaskActiveReward(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_coin") ; err != nil {
|
if buf, err = loader("game_coin") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.coin, err = NewGamecoin(buf) ; err != nil {
|
if tables.Coin, err = NewGameCoin(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_initial") ; err != nil {
|
if buf, err = loader("game_initial") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.initial, err = NewGameinitial(buf) ; err != nil {
|
if tables.Initial, err = NewGameInitial(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_monster") ; err != nil {
|
if buf, err = loader("game_monster") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.monster, err = NewGamemonster(buf) ; err != nil {
|
if tables.Monster, err = NewGameMonster(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_equippos") ; err != nil {
|
if buf, err = loader("game_equippos") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.equipPos, err = NewGameequipPos(buf) ; err != nil {
|
if tables.EquipPos, err = NewGameEquipPos(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_playerlv") ; err != nil {
|
if buf, err = loader("game_playerlv") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.playerlv, err = NewGameplayerlv(buf) ; err != nil {
|
if tables.Playerlv, err = NewGamePlayerlv(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_propsgroup") ; err != nil {
|
if buf, err = loader("game_propsgroup") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.propsgroup, err = NewGamepropsgroup(buf) ; err != nil {
|
if tables.Propsgroup, err = NewGamePropsgroup(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_facemod") ; err != nil {
|
if buf, err = loader("game_facemod") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.facemod, err = NewGamefacemod(buf) ; err != nil {
|
if tables.Facemod, err = NewGameFacemod(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_msgdistrib") ; err != nil {
|
if buf, err = loader("game_msgdistrib") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.msgdistrib, err = NewGamemsgdistrib(buf) ; err != nil {
|
if tables.Msgdistrib, err = NewGameMsgdistrib(buf) ; err != nil {
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if buf, err = loader("game_language") ; err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if tables.language, err = NewGamelanguage(buf) ; err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_opencond") ; err != nil {
|
if buf, err = loader("game_opencond") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.opencond, err = NewGameopencond(buf) ; err != nil {
|
if tables.Opencond, err = NewGameOpencond(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_stroy") ; err != nil {
|
if buf, err = loader("game_stroy") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.stroy, err = NewGamestroy(buf) ; err != nil {
|
if tables.Stroy, err = NewGameStroy(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_pagoda") ; err != nil {
|
if buf, err = loader("game_pagoda") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.pagoda, err = NewGamepagoda(buf) ; err != nil {
|
if tables.Pagoda, err = NewGamePagoda(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_pagodataskreward") ; err != nil {
|
if buf, err = loader("game_pagodataskreward") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.pagodaTaskReward, err = NewGamepagodaTaskReward(buf) ; err != nil {
|
if tables.PagodaTaskReward, err = NewGamePagodaTaskReward(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_pagodaseasonreward") ; err != nil {
|
if buf, err = loader("game_pagodaseasonreward") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.pagodaSeasonReward, err = NewGamepagodaSeasonReward(buf) ; err != nil {
|
if tables.PagodaSeasonReward, err = NewGamePagodaSeasonReward(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_pagodaseasonloop") ; err != nil {
|
if buf, err = loader("game_pagodaseasonloop") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.pagodaseasonLoop, err = NewGamepagodaseasonLoop(buf) ; err != nil {
|
if tables.PagodaseasonLoop, err = NewGamePagodaseasonLoop(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_rdtaskall") ; err != nil {
|
if buf, err = loader("game_rdtaskall") ; err != nil {
|
||||||
@ -442,16 +429,16 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
|||||||
if tables.RdtaskChoose, err = NewGameRdtaskChoose(buf) ; err != nil {
|
if tables.RdtaskChoose, err = NewGameRdtaskChoose(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_kungfu_unlock") ; err != nil {
|
if buf, err = loader("game_kungfuunlock") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.kungfu_unlock, err = NewGamekungfu_unlock(buf) ; err != nil {
|
if tables.KungfuUnlock, err = NewGameKungfuUnlock(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_kungfu_masterworker") ; err != nil {
|
if buf, err = loader("game_kungfumasterworker") ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if tables.kungfu_masterworker, err = NewGamekungfu_masterworker(buf) ; err != nil {
|
if tables.KungfuMasterworker, err = NewGameKungfuMasterworker(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if buf, err = loader("game_gourmet") ; err != nil {
|
if buf, err = loader("game_gourmet") ; err != nil {
|
||||||
@ -466,5 +453,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
|||||||
if tables.GourmetSkill, err = NewGameGourmetSkill(buf) ; err != nil {
|
if tables.GourmetSkill, err = NewGameGourmetSkill(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if buf, err = loader("game_drop") ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if tables.Drop, err = NewGameDrop(buf) ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return tables, nil
|
return tables, nil
|
||||||
}
|
}
|
||||||
|
@ -14,10 +14,10 @@ type GameChildSkills struct {
|
|||||||
Id []int32
|
Id []int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameChildSkills = -1958253470
|
const TypeId_GameChildSkills = 1493938306
|
||||||
|
|
||||||
func (*GameChildSkills) GetTypeId() int32 {
|
func (*GameChildSkills) GetTypeId() int32 {
|
||||||
return -1958253470
|
return 1493938306
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameChildSkills)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameChildSkills)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -18,10 +18,10 @@ type GameDropData struct {
|
|||||||
P int32
|
P int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameDropData = 901242325
|
const TypeId_GameDropData = 1700203957
|
||||||
|
|
||||||
func (*GameDropData) GetTypeId() int32 {
|
func (*GameDropData) GetTypeId() int32 {
|
||||||
return 901242325
|
return 1700203957
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameDropData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameDropData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -21,10 +21,10 @@ type GameFigure struct {
|
|||||||
Icon string
|
Icon string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameFigure = -1818502016
|
const TypeId_GameFigure = -150633376
|
||||||
|
|
||||||
func (*GameFigure) GetTypeId() int32 {
|
func (*GameFigure) GetTypeId() int32 {
|
||||||
return -1818502016
|
return -150633376
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameFigure)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameFigure)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -23,10 +23,10 @@ type GameGourmetData struct {
|
|||||||
Propsgroup int32
|
Propsgroup int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameGourmetData = -359286171
|
const TypeId_GameGourmetData = -1202061691
|
||||||
|
|
||||||
func (*GameGourmetData) GetTypeId() int32 {
|
func (*GameGourmetData) GetTypeId() int32 {
|
||||||
return -359286171
|
return -1202061691
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameGourmetData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameGourmetData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -29,10 +29,10 @@ type GameGourmetSkillData struct {
|
|||||||
Consume []*Gameatn
|
Consume []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameGourmetSkillData = 235491264
|
const TypeId_GameGourmetSkillData = 2062196640
|
||||||
|
|
||||||
func (*GameGourmetSkillData) GetTypeId() int32 {
|
func (*GameGourmetSkillData) GetTypeId() int32 {
|
||||||
return 235491264
|
return 2062196640
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameGourmetSkillData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameGourmetSkillData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameactiveReward struct {
|
type GameActiveReward struct {
|
||||||
_dataMap map[int32]*GameactiveRewardData
|
_dataMap map[int32]*GameActiveRewardData
|
||||||
_dataList []*GameactiveRewardData
|
_dataList []*GameActiveRewardData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameactiveReward(_buf []map[string]interface{}) (*GameactiveReward, error) {
|
func NewGameActiveReward(_buf []map[string]interface{}) (*GameActiveReward, error) {
|
||||||
_dataList := make([]*GameactiveRewardData, 0, len(_buf))
|
_dataList := make([]*GameActiveRewardData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameactiveRewardData)
|
dataMap := make(map[int32]*GameActiveRewardData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameactiveRewardData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameActiveRewardData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameactiveReward{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameActiveReward{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameactiveReward) GetDataMap() map[int32]*GameactiveRewardData {
|
func (table *GameActiveReward) GetDataMap() map[int32]*GameActiveRewardData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameactiveReward) GetDataList() []*GameactiveRewardData {
|
func (table *GameActiveReward) GetDataList() []*GameActiveRewardData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameactiveReward) Get(key int32) *GameactiveRewardData {
|
func (table *GameActiveReward) Get(key int32) *GameActiveRewardData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,20 +10,20 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameactiveRewardData struct {
|
type GameActiveRewardData struct {
|
||||||
Key int32
|
Key int32
|
||||||
IdTag int32
|
IdTag int32
|
||||||
Active int32
|
Active int32
|
||||||
Reword []*Gameatn
|
Reword []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameactiveRewardData = -41023077
|
const TypeId_GameActiveRewardData = 942906779
|
||||||
|
|
||||||
func (*GameactiveRewardData) GetTypeId() int32 {
|
func (*GameActiveRewardData) GetTypeId() int32 {
|
||||||
return -41023077
|
return 942906779
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameactiveRewardData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameActiveRewardData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_tag"].(float64); !_ok_ { err = errors.New("id_tag error"); return }; _v.IdTag = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_tag"].(float64); !_ok_ { err = errors.New("id_tag error"); return }; _v.IdTag = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["active"].(float64); !_ok_ { err = errors.New("active error"); return }; _v.Active = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["active"].(float64); !_ok_ { err = errors.New("active error"); return }; _v.Active = int32(_tempNum_) }
|
||||||
@ -44,8 +44,8 @@ func (_v *GameactiveRewardData)Deserialize(_buf map[string]interface{}) (err err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameactiveRewardData(_buf map[string]interface{}) (*GameactiveRewardData, error) {
|
func DeserializeGameActiveRewardData(_buf map[string]interface{}) (*GameActiveRewardData, error) {
|
||||||
v := &GameactiveRewardData{}
|
v := &GameActiveRewardData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -16,10 +16,10 @@ type Gameatn struct {
|
|||||||
N int32
|
N int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_Gameatn = -1770297697
|
const TypeId_Gameatn = -1705653569
|
||||||
|
|
||||||
func (*Gameatn) GetTypeId() int32 {
|
func (*Gameatn) GetTypeId() int32 {
|
||||||
return -1770297697
|
return -1705653569
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *Gameatn)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *Gameatn)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -16,10 +16,10 @@ type Gamebasepool struct {
|
|||||||
P string
|
P string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_Gamebasepool = -451033879
|
const TypeId_Gamebasepool = 347927753
|
||||||
|
|
||||||
func (*Gamebasepool) GetTypeId() int32 {
|
func (*Gamebasepool) GetTypeId() int32 {
|
||||||
return -451033879
|
return 347927753
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *Gamebasepool)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *Gamebasepool)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamechatChannel struct {
|
type GameChatChannel struct {
|
||||||
_dataMap map[string]*GamechatChannelData
|
_dataMap map[string]*GameChatChannelData
|
||||||
_dataList []*GamechatChannelData
|
_dataList []*GameChatChannelData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamechatChannel(_buf []map[string]interface{}) (*GamechatChannel, error) {
|
func NewGameChatChannel(_buf []map[string]interface{}) (*GameChatChannel, error) {
|
||||||
_dataList := make([]*GamechatChannelData, 0, len(_buf))
|
_dataList := make([]*GameChatChannelData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GamechatChannelData)
|
dataMap := make(map[string]*GameChatChannelData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamechatChannelData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameChatChannelData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamechatChannel{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameChatChannel{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannel) GetDataMap() map[string]*GamechatChannelData {
|
func (table *GameChatChannel) GetDataMap() map[string]*GameChatChannelData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannel) GetDataList() []*GamechatChannelData {
|
func (table *GameChatChannel) GetDataList() []*GameChatChannelData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannel) Get(key string) *GamechatChannelData {
|
func (table *GameChatChannel) Get(key string) *GameChatChannelData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamechatChannelCom struct {
|
type GameChatChannelCom struct {
|
||||||
_dataMap map[string]*GamechatChannelComData
|
_dataMap map[string]*GameChatChannelComData
|
||||||
_dataList []*GamechatChannelComData
|
_dataList []*GameChatChannelComData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamechatChannelCom(_buf []map[string]interface{}) (*GamechatChannelCom, error) {
|
func NewGameChatChannelCom(_buf []map[string]interface{}) (*GameChatChannelCom, error) {
|
||||||
_dataList := make([]*GamechatChannelComData, 0, len(_buf))
|
_dataList := make([]*GameChatChannelComData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GamechatChannelComData)
|
dataMap := make(map[string]*GameChatChannelComData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamechatChannelComData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameChatChannelComData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamechatChannelCom{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameChatChannelCom{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannelCom) GetDataMap() map[string]*GamechatChannelComData {
|
func (table *GameChatChannelCom) GetDataMap() map[string]*GameChatChannelComData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannelCom) GetDataList() []*GamechatChannelComData {
|
func (table *GameChatChannelCom) GetDataList() []*GameChatChannelComData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatChannelCom) Get(key string) *GamechatChannelComData {
|
func (table *GameChatChannelCom) Get(key string) *GameChatChannelComData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,27 +10,27 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamechatChannelComData struct {
|
type GameChatChannelComData struct {
|
||||||
Key string
|
Key string
|
||||||
Value int32
|
Value int32
|
||||||
Dec string
|
Dec string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamechatChannelComData = 1284108092
|
const TypeId_GameChatChannelComData = 1947894588
|
||||||
|
|
||||||
func (*GamechatChannelComData) GetTypeId() int32 {
|
func (*GameChatChannelComData) GetTypeId() int32 {
|
||||||
return 1284108092
|
return 1947894588
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamechatChannelComData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameChatChannelComData)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["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Dec, _ok_ = _buf["dec"].(string); !_ok_ { err = errors.New("dec error"); return } }
|
{ var _ok_ bool; if _v.Dec, _ok_ = _buf["dec"].(string); !_ok_ { err = errors.New("dec error"); return } }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamechatChannelComData(_buf map[string]interface{}) (*GamechatChannelComData, error) {
|
func DeserializeGameChatChannelComData(_buf map[string]interface{}) (*GameChatChannelComData, error) {
|
||||||
v := &GamechatChannelComData{}
|
v := &GameChatChannelComData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -10,27 +10,27 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamechatChannelData struct {
|
type GameChatChannelData struct {
|
||||||
Key string
|
Key string
|
||||||
TagList int32
|
TagList int32
|
||||||
SpeakCd int32
|
SpeakCd int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamechatChannelData = -19547431
|
const TypeId_GameChatChannelData = -819091751
|
||||||
|
|
||||||
func (*GamechatChannelData) GetTypeId() int32 {
|
func (*GameChatChannelData) GetTypeId() int32 {
|
||||||
return -19547431
|
return -819091751
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamechatChannelData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameChatChannelData)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["tag_list"].(float64); !_ok_ { err = errors.New("tag_list error"); return }; _v.TagList = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["tag_list"].(float64); !_ok_ { err = errors.New("tag_list error"); return }; _v.TagList = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["speak_cd"].(float64); !_ok_ { err = errors.New("speak_cd error"); return }; _v.SpeakCd = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["speak_cd"].(float64); !_ok_ { err = errors.New("speak_cd error"); return }; _v.SpeakCd = int32(_tempNum_) }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamechatChannelData(_buf map[string]interface{}) (*GamechatChannelData, error) {
|
func DeserializeGameChatChannelData(_buf map[string]interface{}) (*GameChatChannelData, error) {
|
||||||
v := &GamechatChannelData{}
|
v := &GameChatChannelData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamechatServerGroup struct {
|
type GameChatServerGroup struct {
|
||||||
_dataMap map[string]*GamechatServerGroupData
|
_dataMap map[string]*GameChatServerGroupData
|
||||||
_dataList []*GamechatServerGroupData
|
_dataList []*GameChatServerGroupData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamechatServerGroup(_buf []map[string]interface{}) (*GamechatServerGroup, error) {
|
func NewGameChatServerGroup(_buf []map[string]interface{}) (*GameChatServerGroup, error) {
|
||||||
_dataList := make([]*GamechatServerGroupData, 0, len(_buf))
|
_dataList := make([]*GameChatServerGroupData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GamechatServerGroupData)
|
dataMap := make(map[string]*GameChatServerGroupData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamechatServerGroupData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameChatServerGroupData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Server] = _v
|
dataMap[_v.Server] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamechatServerGroup{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameChatServerGroup{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatServerGroup) GetDataMap() map[string]*GamechatServerGroupData {
|
func (table *GameChatServerGroup) GetDataMap() map[string]*GameChatServerGroupData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatServerGroup) GetDataList() []*GamechatServerGroupData {
|
func (table *GameChatServerGroup) GetDataList() []*GameChatServerGroupData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatServerGroup) Get(key string) *GamechatServerGroupData {
|
func (table *GameChatServerGroup) Get(key string) *GameChatServerGroupData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,25 +10,25 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamechatServerGroupData struct {
|
type GameChatServerGroupData struct {
|
||||||
Server string
|
Server string
|
||||||
Group int32
|
Group int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamechatServerGroupData = 825941074
|
const TypeId_GameChatServerGroupData = -71514030
|
||||||
|
|
||||||
func (*GamechatServerGroupData) GetTypeId() int32 {
|
func (*GameChatServerGroupData) GetTypeId() int32 {
|
||||||
return 825941074
|
return -71514030
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamechatServerGroupData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameChatServerGroupData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Server, _ok_ = _buf["server"].(string); !_ok_ { err = errors.New("server error"); return } }
|
{ var _ok_ bool; if _v.Server, _ok_ = _buf["server"].(string); !_ok_ { err = errors.New("server error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["group"].(float64); !_ok_ { err = errors.New("group error"); return }; _v.Group = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["group"].(float64); !_ok_ { err = errors.New("group error"); return }; _v.Group = int32(_tempNum_) }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamechatServerGroupData(_buf map[string]interface{}) (*GamechatServerGroupData, error) {
|
func DeserializeGameChatServerGroupData(_buf map[string]interface{}) (*GameChatServerGroupData, error) {
|
||||||
v := &GamechatServerGroupData{}
|
v := &GameChatServerGroupData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamechatSystem struct {
|
type GameChatSystem struct {
|
||||||
_dataMap map[int32]*GamechatSystemData
|
_dataMap map[int32]*GameChatSystemData
|
||||||
_dataList []*GamechatSystemData
|
_dataList []*GameChatSystemData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamechatSystem(_buf []map[string]interface{}) (*GamechatSystem, error) {
|
func NewGameChatSystem(_buf []map[string]interface{}) (*GameChatSystem, error) {
|
||||||
_dataList := make([]*GamechatSystemData, 0, len(_buf))
|
_dataList := make([]*GameChatSystemData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GamechatSystemData)
|
dataMap := make(map[int32]*GameChatSystemData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamechatSystemData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameChatSystemData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamechatSystem{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameChatSystem{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatSystem) GetDataMap() map[int32]*GamechatSystemData {
|
func (table *GameChatSystem) GetDataMap() map[int32]*GameChatSystemData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatSystem) GetDataList() []*GamechatSystemData {
|
func (table *GameChatSystem) GetDataList() []*GameChatSystemData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamechatSystem) Get(key int32) *GamechatSystemData {
|
func (table *GameChatSystem) Get(key int32) *GameChatSystemData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamechatSystemData struct {
|
type GameChatSystemData struct {
|
||||||
Key int32
|
Key int32
|
||||||
Type int32
|
Type int32
|
||||||
Title string
|
Title string
|
||||||
@ -22,13 +22,13 @@ type GamechatSystemData struct {
|
|||||||
TimeM int32
|
TimeM int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamechatSystemData = -198348435
|
const TypeId_GameChatSystemData = 52954477
|
||||||
|
|
||||||
func (*GamechatSystemData) GetTypeId() int32 {
|
func (*GameChatSystemData) GetTypeId() int32 {
|
||||||
return -198348435
|
return 52954477
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamechatSystemData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameChatSystemData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Title, _ok_ = _buf["title"].(string); !_ok_ { err = errors.New("title error"); return } }
|
{ var _ok_ bool; if _v.Title, _ok_ = _buf["title"].(string); !_ok_ { err = errors.New("title error"); return } }
|
||||||
@ -54,8 +54,8 @@ func (_v *GamechatSystemData)Deserialize(_buf map[string]interface{}) (err error
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamechatSystemData(_buf map[string]interface{}) (*GamechatSystemData, error) {
|
func DeserializeGameChatSystemData(_buf map[string]interface{}) (*GameChatSystemData, error) {
|
||||||
v := &GamechatSystemData{}
|
v := &GameChatSystemData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gamecoin struct {
|
type GameCoin struct {
|
||||||
_dataMap map[string]*GamecoinData
|
_dataMap map[string]*GameCoinData
|
||||||
_dataList []*GamecoinData
|
_dataList []*GameCoinData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamecoin(_buf []map[string]interface{}) (*Gamecoin, error) {
|
func NewGameCoin(_buf []map[string]interface{}) (*GameCoin, error) {
|
||||||
_dataList := make([]*GamecoinData, 0, len(_buf))
|
_dataList := make([]*GameCoinData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GamecoinData)
|
dataMap := make(map[string]*GameCoinData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamecoinData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameCoinData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gamecoin{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameCoin{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecoin) GetDataMap() map[string]*GamecoinData {
|
func (table *GameCoin) GetDataMap() map[string]*GameCoinData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecoin) GetDataList() []*GamecoinData {
|
func (table *GameCoin) GetDataList() []*GameCoinData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecoin) Get(key string) *GamecoinData {
|
func (table *GameCoin) Get(key string) *GameCoinData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamecoinData struct {
|
type GameCoinData struct {
|
||||||
Key string
|
Key string
|
||||||
Name string
|
Name string
|
||||||
Color int32
|
Color int32
|
||||||
@ -23,13 +23,13 @@ type GamecoinData struct {
|
|||||||
Intr string
|
Intr string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamecoinData = 552622167
|
const TypeId_GameCoinData = 1416227927
|
||||||
|
|
||||||
func (*GamecoinData) GetTypeId() int32 {
|
func (*GameCoinData) GetTypeId() int32 {
|
||||||
return 552622167
|
return 1416227927
|
||||||
}
|
}
|
||||||
|
|
||||||
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; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
|
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name 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_) }
|
||||||
@ -43,8 +43,8 @@ func (_v *GamecoinData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamecoinData(_buf map[string]interface{}) (*GamecoinData, error) {
|
func DeserializeGameCoinData(_buf map[string]interface{}) (*GameCoinData, error) {
|
||||||
v := &GamecoinData{}
|
v := &GameCoinData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gamecom struct {
|
type GameCom struct {
|
||||||
_dataMap map[int32]*GamecomData
|
_dataMap map[int32]*GameComData
|
||||||
_dataList []*GamecomData
|
_dataList []*GameComData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamecom(_buf []map[string]interface{}) (*Gamecom, error) {
|
func NewGameCom(_buf []map[string]interface{}) (*GameCom, error) {
|
||||||
_dataList := make([]*GamecomData, 0, len(_buf))
|
_dataList := make([]*GameComData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GamecomData)
|
dataMap := make(map[int32]*GameComData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamecomData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameComData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.MaxChar] = _v
|
dataMap[_v.MaxChar] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gamecom{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameCom{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecom) GetDataMap() map[int32]*GamecomData {
|
func (table *GameCom) GetDataMap() map[int32]*GameComData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecom) GetDataList() []*GamecomData {
|
func (table *GameCom) GetDataList() []*GameComData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamecom) Get(key int32) *GamecomData {
|
func (table *GameCom) Get(key int32) *GameComData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamecomAtn struct {
|
type GameComAtn struct {
|
||||||
_dataMap map[string]*GamecomAtnData
|
_dataMap map[string]*GameComAtnData
|
||||||
_dataList []*GamecomAtnData
|
_dataList []*GameComAtnData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamecomAtn(_buf []map[string]interface{}) (*GamecomAtn, error) {
|
func NewGameComAtn(_buf []map[string]interface{}) (*GameComAtn, error) {
|
||||||
_dataList := make([]*GamecomAtnData, 0, len(_buf))
|
_dataList := make([]*GameComAtnData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GamecomAtnData)
|
dataMap := make(map[string]*GameComAtnData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamecomAtnData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameComAtnData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Index] = _v
|
dataMap[_v.Index] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamecomAtn{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameComAtn{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamecomAtn) GetDataMap() map[string]*GamecomAtnData {
|
func (table *GameComAtn) GetDataMap() map[string]*GameComAtnData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamecomAtn) GetDataList() []*GamecomAtnData {
|
func (table *GameComAtn) GetDataList() []*GameComAtnData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamecomAtn) Get(key string) *GamecomAtnData {
|
func (table *GameComAtn) Get(key string) *GameComAtnData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,18 +10,18 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamecomAtnData struct {
|
type GameComAtnData struct {
|
||||||
Index string
|
Index string
|
||||||
Var []*Gameatn
|
Var []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamecomAtnData = 1272050592
|
const TypeId_GameComAtnData = -2026469472
|
||||||
|
|
||||||
func (*GamecomAtnData) GetTypeId() int32 {
|
func (*GameComAtnData) GetTypeId() int32 {
|
||||||
return 1272050592
|
return -2026469472
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamecomAtnData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameComAtnData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Index, _ok_ = _buf["index"].(string); !_ok_ { err = errors.New("index error"); return } }
|
{ var _ok_ bool; if _v.Index, _ok_ = _buf["index"].(string); !_ok_ { err = errors.New("index error"); return } }
|
||||||
{
|
{
|
||||||
var _arr_ []interface{}
|
var _arr_ []interface{}
|
||||||
@ -40,8 +40,8 @@ func (_v *GamecomAtnData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamecomAtnData(_buf map[string]interface{}) (*GamecomAtnData, error) {
|
func DeserializeGameComAtnData(_buf map[string]interface{}) (*GameComAtnData, error) {
|
||||||
v := &GamecomAtnData{}
|
v := &GameComAtnData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamecomData struct {
|
type GameComData struct {
|
||||||
MaxChar int32
|
MaxChar int32
|
||||||
TaskReset int32
|
TaskReset int32
|
||||||
InitGold int32
|
InitGold int32
|
||||||
@ -73,13 +73,13 @@ type GamecomData struct {
|
|||||||
SmithyMaxtime int32
|
SmithyMaxtime int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamecomData = -395344177
|
const TypeId_GameComData = 1433629391
|
||||||
|
|
||||||
func (*GamecomData) GetTypeId() int32 {
|
func (*GameComData) GetTypeId() int32 {
|
||||||
return -395344177
|
return 1433629391
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamecomData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameComData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_char"].(float64); !_ok_ { err = errors.New("max_char error"); return }; _v.MaxChar = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_char"].(float64); !_ok_ { err = errors.New("max_char error"); return }; _v.MaxChar = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_reset"].(float64); !_ok_ { err = errors.New("task_reset error"); return }; _v.TaskReset = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_reset"].(float64); !_ok_ { err = errors.New("task_reset error"); return }; _v.TaskReset = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["init_gold"].(float64); !_ok_ { err = errors.New("init_gold error"); return }; _v.InitGold = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["init_gold"].(float64); !_ok_ { err = errors.New("init_gold error"); return }; _v.InitGold = int32(_tempNum_) }
|
||||||
@ -208,8 +208,8 @@ func (_v *GamecomData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamecomData(_buf map[string]interface{}) (*GamecomData, error) {
|
func DeserializeGameComData(_buf map[string]interface{}) (*GameComData, error) {
|
||||||
v := &GamecomData{}
|
v := &GameComData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GamedrawCard struct {
|
type GameDrawCard struct {
|
||||||
_dataMap map[int32]*GamedrawCardData
|
_dataMap map[int32]*GameDrawCardData
|
||||||
_dataList []*GamedrawCardData
|
_dataList []*GameDrawCardData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamedrawCard(_buf []map[string]interface{}) (*GamedrawCard, error) {
|
func NewGameDrawCard(_buf []map[string]interface{}) (*GameDrawCard, error) {
|
||||||
_dataList := make([]*GamedrawCardData, 0, len(_buf))
|
_dataList := make([]*GameDrawCardData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GamedrawCardData)
|
dataMap := make(map[int32]*GameDrawCardData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamedrawCardData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameDrawCardData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GamedrawCard{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameDrawCard{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamedrawCard) GetDataMap() map[int32]*GamedrawCardData {
|
func (table *GameDrawCard) GetDataMap() map[int32]*GameDrawCardData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamedrawCard) GetDataList() []*GamedrawCardData {
|
func (table *GameDrawCard) GetDataList() []*GameDrawCardData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GamedrawCard) Get(key int32) *GamedrawCardData {
|
func (table *GameDrawCard) Get(key int32) *GameDrawCardData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamedrawCardData struct {
|
type GameDrawCardData struct {
|
||||||
Key int32
|
Key int32
|
||||||
RecruitmentType int32
|
RecruitmentType int32
|
||||||
CardPoolType string
|
CardPoolType string
|
||||||
@ -20,13 +20,13 @@ type GamedrawCardData struct {
|
|||||||
Weight int32
|
Weight int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamedrawCardData = -179684166
|
const TypeId_GameDrawCardData = -371601222
|
||||||
|
|
||||||
func (*GamedrawCardData) GetTypeId() int32 {
|
func (*GameDrawCardData) GetTypeId() int32 {
|
||||||
return -179684166
|
return -371601222
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamedrawCardData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameDrawCardData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recruitment_type"].(float64); !_ok_ { err = errors.New("recruitment_type error"); return }; _v.RecruitmentType = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["recruitment_type"].(float64); !_ok_ { err = errors.New("recruitment_type error"); return }; _v.RecruitmentType = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.CardPoolType, _ok_ = _buf["card_pool_type"].(string); !_ok_ { err = errors.New("card_pool_type error"); return } }
|
{ var _ok_ bool; if _v.CardPoolType, _ok_ = _buf["card_pool_type"].(string); !_ok_ { err = errors.New("card_pool_type error"); return } }
|
||||||
@ -37,8 +37,8 @@ func (_v *GamedrawCardData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamedrawCardData(_buf map[string]interface{}) (*GamedrawCardData, error) {
|
func DeserializeGameDrawCardData(_buf map[string]interface{}) (*GameDrawCardData, error) {
|
||||||
v := &GamedrawCardData{}
|
v := &GameDrawCardData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gameequip struct {
|
type GameEquip struct {
|
||||||
_dataMap map[string]*GameequipData
|
_dataMap map[string]*GameEquipData
|
||||||
_dataList []*GameequipData
|
_dataList []*GameEquipData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequip(_buf []map[string]interface{}) (*Gameequip, error) {
|
func NewGameEquip(_buf []map[string]interface{}) (*GameEquip, error) {
|
||||||
_dataList := make([]*GameequipData, 0, len(_buf))
|
_dataList := make([]*GameEquipData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GameequipData)
|
dataMap := make(map[string]*GameEquipData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Id] = _v
|
dataMap[_v.Id] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gameequip{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquip{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameequip) GetDataMap() map[string]*GameequipData {
|
func (table *GameEquip) GetDataMap() map[string]*GameEquipData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameequip) GetDataList() []*GameequipData {
|
func (table *GameEquip) GetDataList() []*GameEquipData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameequip) Get(key string) *GameequipData {
|
func (table *GameEquip) Get(key string) *GameEquipData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameequipAttrlibrary struct {
|
type GameEquipAttrlibrary struct {
|
||||||
_dataMap map[int32]*GameequipAttrlibraryData
|
_dataMap map[int32]*GameEquipAttrlibraryData
|
||||||
_dataList []*GameequipAttrlibraryData
|
_dataList []*GameEquipAttrlibraryData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequipAttrlibrary(_buf []map[string]interface{}) (*GameequipAttrlibrary, error) {
|
func NewGameEquipAttrlibrary(_buf []map[string]interface{}) (*GameEquipAttrlibrary, error) {
|
||||||
_dataList := make([]*GameequipAttrlibraryData, 0, len(_buf))
|
_dataList := make([]*GameEquipAttrlibraryData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameequipAttrlibraryData)
|
dataMap := make(map[int32]*GameEquipAttrlibraryData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipAttrlibraryData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipAttrlibraryData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameequipAttrlibrary{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquipAttrlibrary{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipAttrlibrary) GetDataMap() map[int32]*GameequipAttrlibraryData {
|
func (table *GameEquipAttrlibrary) GetDataMap() map[int32]*GameEquipAttrlibraryData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipAttrlibrary) GetDataList() []*GameequipAttrlibraryData {
|
func (table *GameEquipAttrlibrary) GetDataList() []*GameEquipAttrlibraryData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipAttrlibrary) Get(key int32) *GameequipAttrlibraryData {
|
func (table *GameEquipAttrlibrary) Get(key int32) *GameEquipAttrlibraryData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipAttrlibraryData struct {
|
type GameEquipAttrlibraryData struct {
|
||||||
Key int32
|
Key int32
|
||||||
Libraryid int32
|
Libraryid int32
|
||||||
Attrkey string
|
Attrkey string
|
||||||
@ -19,13 +19,13 @@ type GameequipAttrlibraryData struct {
|
|||||||
Addition []int32
|
Addition []int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipAttrlibraryData = -437457248
|
const TypeId_GameEquipAttrlibraryData = 1806205600
|
||||||
|
|
||||||
func (*GameequipAttrlibraryData) GetTypeId() int32 {
|
func (*GameEquipAttrlibraryData) GetTypeId() int32 {
|
||||||
return -437457248
|
return 1806205600
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipAttrlibraryData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipAttrlibraryData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["libraryid"].(float64); !_ok_ { err = errors.New("libraryid error"); return }; _v.Libraryid = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["libraryid"].(float64); !_ok_ { err = errors.New("libraryid error"); return }; _v.Libraryid = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Attrkey, _ok_ = _buf["attrkey"].(string); !_ok_ { err = errors.New("attrkey error"); return } }
|
{ var _ok_ bool; if _v.Attrkey, _ok_ = _buf["attrkey"].(string); !_ok_ { err = errors.New("attrkey error"); return } }
|
||||||
@ -48,8 +48,8 @@ func (_v *GameequipAttrlibraryData)Deserialize(_buf map[string]interface{}) (err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipAttrlibraryData(_buf map[string]interface{}) (*GameequipAttrlibraryData, error) {
|
func DeserializeGameEquipAttrlibraryData(_buf map[string]interface{}) (*GameEquipAttrlibraryData, error) {
|
||||||
v := &GameequipAttrlibraryData{}
|
v := &GameEquipAttrlibraryData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameequipColor struct {
|
type GameEquipColor struct {
|
||||||
_dataMap map[int32]*GameequipColorData
|
_dataMap map[int32]*GameEquipColorData
|
||||||
_dataList []*GameequipColorData
|
_dataList []*GameEquipColorData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequipColor(_buf []map[string]interface{}) (*GameequipColor, error) {
|
func NewGameEquipColor(_buf []map[string]interface{}) (*GameEquipColor, error) {
|
||||||
_dataList := make([]*GameequipColorData, 0, len(_buf))
|
_dataList := make([]*GameEquipColorData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameequipColorData)
|
dataMap := make(map[int32]*GameEquipColorData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipColorData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipColorData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Num] = _v
|
dataMap[_v.Num] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameequipColor{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquipColor{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipColor) GetDataMap() map[int32]*GameequipColorData {
|
func (table *GameEquipColor) GetDataMap() map[int32]*GameEquipColorData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipColor) GetDataList() []*GameequipColorData {
|
func (table *GameEquipColor) GetDataList() []*GameEquipColorData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipColor) Get(key int32) *GameequipColorData {
|
func (table *GameEquipColor) Get(key int32) *GameEquipColorData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,25 +10,25 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipColorData struct {
|
type GameEquipColorData struct {
|
||||||
Num int32
|
Num int32
|
||||||
Color string
|
Color string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipColorData = 2132033753
|
const TypeId_GameEquipColorData = -1911630631
|
||||||
|
|
||||||
func (*GameequipColorData) GetTypeId() int32 {
|
func (*GameEquipColorData) GetTypeId() int32 {
|
||||||
return 2132033753
|
return -1911630631
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipColorData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipColorData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) }
|
||||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["color"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Color error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Color, _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["color"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Color error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Color, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipColorData(_buf map[string]interface{}) (*GameequipColorData, error) {
|
func DeserializeGameEquipColorData(_buf map[string]interface{}) (*GameEquipColorData, error) {
|
||||||
v := &GameequipColorData{}
|
v := &GameEquipColorData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipData struct {
|
type GameEquipData struct {
|
||||||
Id string
|
Id string
|
||||||
Name string
|
Name string
|
||||||
Suittype int32
|
Suittype int32
|
||||||
@ -27,13 +27,13 @@ type GameequipData struct {
|
|||||||
Sale []*Gameatn
|
Sale []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipData = 1778846974
|
const TypeId_GameEquipData = -1514145538
|
||||||
|
|
||||||
func (*GameequipData) GetTypeId() int32 {
|
func (*GameEquipData) GetTypeId() int32 {
|
||||||
return 1778846974
|
return -1514145538
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id 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 __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["suittype"].(float64); !_ok_ { err = errors.New("suittype error"); return }; _v.Suittype = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suittype"].(float64); !_ok_ { err = errors.New("suittype error"); return }; _v.Suittype = int32(_tempNum_) }
|
||||||
@ -90,8 +90,8 @@ func (_v *GameequipData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipData(_buf map[string]interface{}) (*GameequipData, error) {
|
func DeserializeGameEquipData(_buf map[string]interface{}) (*GameEquipData, error) {
|
||||||
v := &GameequipData{}
|
v := &GameEquipData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameequipIntensify struct {
|
type GameEquipIntensify struct {
|
||||||
_dataMap map[int32]*GameequipIntensifyData
|
_dataMap map[int32]*GameEquipIntensifyData
|
||||||
_dataList []*GameequipIntensifyData
|
_dataList []*GameEquipIntensifyData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequipIntensify(_buf []map[string]interface{}) (*GameequipIntensify, error) {
|
func NewGameEquipIntensify(_buf []map[string]interface{}) (*GameEquipIntensify, error) {
|
||||||
_dataList := make([]*GameequipIntensifyData, 0, len(_buf))
|
_dataList := make([]*GameEquipIntensifyData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameequipIntensifyData)
|
dataMap := make(map[int32]*GameEquipIntensifyData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipIntensifyData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipIntensifyData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameequipIntensify{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquipIntensify{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipIntensify) GetDataMap() map[int32]*GameequipIntensifyData {
|
func (table *GameEquipIntensify) GetDataMap() map[int32]*GameEquipIntensifyData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipIntensify) GetDataList() []*GameequipIntensifyData {
|
func (table *GameEquipIntensify) GetDataList() []*GameEquipIntensifyData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipIntensify) Get(key int32) *GameequipIntensifyData {
|
func (table *GameEquipIntensify) Get(key int32) *GameEquipIntensifyData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipIntensifyData struct {
|
type GameEquipIntensifyData struct {
|
||||||
Key int32
|
Key int32
|
||||||
Star int32
|
Star int32
|
||||||
Level int32
|
Level int32
|
||||||
@ -21,13 +21,13 @@ type GameequipIntensifyData struct {
|
|||||||
Num int32
|
Num int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipIntensifyData = 1687417591
|
const TypeId_GameEquipIntensifyData = -1943763209
|
||||||
|
|
||||||
func (*GameequipIntensifyData) GetTypeId() int32 {
|
func (*GameEquipIntensifyData) GetTypeId() int32 {
|
||||||
return 1687417591
|
return -1943763209
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipIntensifyData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipIntensifyData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
||||||
@ -52,8 +52,8 @@ func (_v *GameequipIntensifyData)Deserialize(_buf map[string]interface{}) (err e
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipIntensifyData(_buf map[string]interface{}) (*GameequipIntensifyData, error) {
|
func DeserializeGameEquipIntensifyData(_buf map[string]interface{}) (*GameEquipIntensifyData, error) {
|
||||||
v := &GameequipIntensifyData{}
|
v := &GameEquipIntensifyData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameequipPos struct {
|
type GameEquipPos struct {
|
||||||
_dataMap map[int32]*GameequipPosData
|
_dataMap map[int32]*GameEquipPosData
|
||||||
_dataList []*GameequipPosData
|
_dataList []*GameEquipPosData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequipPos(_buf []map[string]interface{}) (*GameequipPos, error) {
|
func NewGameEquipPos(_buf []map[string]interface{}) (*GameEquipPos, error) {
|
||||||
_dataList := make([]*GameequipPosData, 0, len(_buf))
|
_dataList := make([]*GameEquipPosData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameequipPosData)
|
dataMap := make(map[int32]*GameEquipPosData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipPosData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipPosData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Pos] = _v
|
dataMap[_v.Pos] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameequipPos{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquipPos{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipPos) GetDataMap() map[int32]*GameequipPosData {
|
func (table *GameEquipPos) GetDataMap() map[int32]*GameEquipPosData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipPos) GetDataList() []*GameequipPosData {
|
func (table *GameEquipPos) GetDataList() []*GameEquipPosData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipPos) Get(key int32) *GameequipPosData {
|
func (table *GameEquipPos) Get(key int32) *GameEquipPosData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,20 +10,20 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipPosData struct {
|
type GameEquipPosData struct {
|
||||||
Pos int32
|
Pos int32
|
||||||
Suitnum int32
|
Suitnum int32
|
||||||
Leadlibrary []string
|
Leadlibrary []string
|
||||||
Addlibrary []string
|
Addlibrary []string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipPosData = 487964234
|
const TypeId_GameEquipPosData = 296047178
|
||||||
|
|
||||||
func (*GameequipPosData) GetTypeId() int32 {
|
func (*GameEquipPosData) GetTypeId() int32 {
|
||||||
return 487964234
|
return 296047178
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipPosData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipPosData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pos"].(float64); !_ok_ { err = errors.New("pos error"); return }; _v.Pos = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pos"].(float64); !_ok_ { err = errors.New("pos error"); return }; _v.Pos = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suitnum"].(float64); !_ok_ { err = errors.New("suitnum error"); return }; _v.Suitnum = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suitnum"].(float64); !_ok_ { err = errors.New("suitnum error"); return }; _v.Suitnum = int32(_tempNum_) }
|
||||||
{
|
{
|
||||||
@ -57,8 +57,8 @@ func (_v *GameequipPosData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipPosData(_buf map[string]interface{}) (*GameequipPosData, error) {
|
func DeserializeGameEquipPosData(_buf map[string]interface{}) (*GameEquipPosData, error) {
|
||||||
v := &GameequipPosData{}
|
v := &GameEquipPosData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameequipSuit struct {
|
type GameEquipSuit struct {
|
||||||
_dataMap map[int32]*GameequipSuitData
|
_dataMap map[int32]*GameEquipSuitData
|
||||||
_dataList []*GameequipSuitData
|
_dataList []*GameEquipSuitData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameequipSuit(_buf []map[string]interface{}) (*GameequipSuit, error) {
|
func NewGameEquipSuit(_buf []map[string]interface{}) (*GameEquipSuit, error) {
|
||||||
_dataList := make([]*GameequipSuitData, 0, len(_buf))
|
_dataList := make([]*GameEquipSuitData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameequipSuitData)
|
dataMap := make(map[int32]*GameEquipSuitData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameequipSuitData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameEquipSuitData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Suittype] = _v
|
dataMap[_v.Suittype] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameequipSuit{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameEquipSuit{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipSuit) GetDataMap() map[int32]*GameequipSuitData {
|
func (table *GameEquipSuit) GetDataMap() map[int32]*GameEquipSuitData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipSuit) GetDataList() []*GameequipSuitData {
|
func (table *GameEquipSuit) GetDataList() []*GameEquipSuitData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameequipSuit) Get(key int32) *GameequipSuitData {
|
func (table *GameEquipSuit) Get(key int32) *GameEquipSuitData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameequipSuitData struct {
|
type GameEquipSuitData struct {
|
||||||
Suittype int32
|
Suittype int32
|
||||||
Suitnum int32
|
Suitnum int32
|
||||||
Skill int32
|
Skill int32
|
||||||
@ -18,13 +18,13 @@ type GameequipSuitData struct {
|
|||||||
Skillintr string
|
Skillintr string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameequipSuitData = -332303445
|
const TypeId_GameEquipSuitData = -1986764885
|
||||||
|
|
||||||
func (*GameequipSuitData) GetTypeId() int32 {
|
func (*GameEquipSuitData) GetTypeId() int32 {
|
||||||
return -332303445
|
return -1986764885
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameequipSuitData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameEquipSuitData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suittype"].(float64); !_ok_ { err = errors.New("suittype error"); return }; _v.Suittype = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suittype"].(float64); !_ok_ { err = errors.New("suittype error"); return }; _v.Suittype = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suitnum"].(float64); !_ok_ { err = errors.New("suitnum error"); return }; _v.Suitnum = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["suitnum"].(float64); !_ok_ { err = errors.New("suitnum error"); return }; _v.Suitnum = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill"].(float64); !_ok_ { err = errors.New("skill error"); return }; _v.Skill = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill"].(float64); !_ok_ { err = errors.New("skill error"); return }; _v.Skill = int32(_tempNum_) }
|
||||||
@ -33,8 +33,8 @@ func (_v *GameequipSuitData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameequipSuitData(_buf map[string]interface{}) (*GameequipSuitData, error) {
|
func DeserializeGameEquipSuitData(_buf map[string]interface{}) (*GameEquipSuitData, error) {
|
||||||
v := &GameequipSuitData{}
|
v := &GameEquipSuitData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gameextservers struct {
|
type GameExtservers struct {
|
||||||
_dataMap map[int32]*GameextserversData
|
_dataMap map[int32]*GameExtserversData
|
||||||
_dataList []*GameextserversData
|
_dataList []*GameExtserversData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameextservers(_buf []map[string]interface{}) (*Gameextservers, error) {
|
func NewGameExtservers(_buf []map[string]interface{}) (*GameExtservers, error) {
|
||||||
_dataList := make([]*GameextserversData, 0, len(_buf))
|
_dataList := make([]*GameExtserversData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameextserversData)
|
dataMap := make(map[int32]*GameExtserversData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameextserversData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameExtserversData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Index] = _v
|
dataMap[_v.Index] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gameextservers{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameExtservers{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameextservers) GetDataMap() map[int32]*GameextserversData {
|
func (table *GameExtservers) GetDataMap() map[int32]*GameExtserversData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameextservers) GetDataList() []*GameextserversData {
|
func (table *GameExtservers) GetDataList() []*GameExtserversData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameextservers) Get(key int32) *GameextserversData {
|
func (table *GameExtservers) Get(key int32) *GameExtserversData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameextserversData struct {
|
type GameExtserversData struct {
|
||||||
Index int32
|
Index int32
|
||||||
Name string
|
Name string
|
||||||
Ips string
|
Ips string
|
||||||
@ -18,13 +18,13 @@ type GameextserversData struct {
|
|||||||
Sid string
|
Sid string
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameextserversData = -245856747
|
const TypeId_GameExtserversData = 5446165
|
||||||
|
|
||||||
func (*GameextserversData) GetTypeId() int32 {
|
func (*GameExtserversData) GetTypeId() int32 {
|
||||||
return -245856747
|
return 5446165
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameextserversData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameExtserversData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["index"].(float64); !_ok_ { err = errors.New("index error"); return }; _v.Index = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["index"].(float64); !_ok_ { err = errors.New("index error"); return }; _v.Index = 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; if _v.Ips, _ok_ = _buf["ips"].(string); !_ok_ { err = errors.New("ips error"); return } }
|
{ var _ok_ bool; if _v.Ips, _ok_ = _buf["ips"].(string); !_ok_ { err = errors.New("ips error"); return } }
|
||||||
@ -33,8 +33,8 @@ func (_v *GameextserversData)Deserialize(_buf map[string]interface{}) (err error
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameextserversData(_buf map[string]interface{}) (*GameextserversData, error) {
|
func DeserializeGameExtserversData(_buf map[string]interface{}) (*GameExtserversData, error) {
|
||||||
v := &GameextserversData{}
|
v := &GameExtserversData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gamefacemod struct {
|
type GameFacemod struct {
|
||||||
_dataMap map[int32]*GamefacemodData
|
_dataMap map[int32]*GameFacemodData
|
||||||
_dataList []*GamefacemodData
|
_dataList []*GameFacemodData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamefacemod(_buf []map[string]interface{}) (*Gamefacemod, error) {
|
func NewGameFacemod(_buf []map[string]interface{}) (*GameFacemod, error) {
|
||||||
_dataList := make([]*GamefacemodData, 0, len(_buf))
|
_dataList := make([]*GameFacemodData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GamefacemodData)
|
dataMap := make(map[int32]*GameFacemodData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGamefacemodData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameFacemodData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Id] = _v
|
dataMap[_v.Id] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gamefacemod{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameFacemod{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamefacemod) GetDataMap() map[int32]*GamefacemodData {
|
func (table *GameFacemod) GetDataMap() map[int32]*GameFacemodData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamefacemod) GetDataList() []*GamefacemodData {
|
func (table *GameFacemod) GetDataList() []*GameFacemodData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamefacemod) Get(key int32) *GamefacemodData {
|
func (table *GameFacemod) Get(key int32) *GameFacemodData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,19 +10,19 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GamefacemodData struct {
|
type GameFacemodData struct {
|
||||||
Id int32
|
Id int32
|
||||||
Suitintr string
|
Suitintr string
|
||||||
Figure []*GameFigure
|
Figure []*GameFigure
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GamefacemodData = -214755117
|
const TypeId_GameFacemodData = 610338003
|
||||||
|
|
||||||
func (*GamefacemodData) GetTypeId() int32 {
|
func (*GameFacemodData) GetTypeId() int32 {
|
||||||
return -214755117
|
return 610338003
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GamefacemodData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameFacemodData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Suitintr, _ok_ = _buf["suitintr"].(string); !_ok_ { err = errors.New("suitintr error"); return } }
|
{ var _ok_ bool; if _v.Suitintr, _ok_ = _buf["suitintr"].(string); !_ok_ { err = errors.New("suitintr error"); return } }
|
||||||
{
|
{
|
||||||
@ -42,8 +42,8 @@ func (_v *GamefacemodData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGamefacemodData(_buf map[string]interface{}) (*GamefacemodData, error) {
|
func DeserializeGameFacemodData(_buf map[string]interface{}) (*GameFacemodData, error) {
|
||||||
v := &GamefacemodData{}
|
v := &GameFacemodData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gameglobal struct {
|
type GameGlobal struct {
|
||||||
_dataMap map[int32]*GameglobalData
|
_dataMap map[int32]*GameGlobalData
|
||||||
_dataList []*GameglobalData
|
_dataList []*GameGlobalData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameglobal(_buf []map[string]interface{}) (*Gameglobal, error) {
|
func NewGameGlobal(_buf []map[string]interface{}) (*GameGlobal, error) {
|
||||||
_dataList := make([]*GameglobalData, 0, len(_buf))
|
_dataList := make([]*GameGlobalData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameglobalData)
|
dataMap := make(map[int32]*GameGlobalData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameglobalData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameGlobalData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.MaxChar] = _v
|
dataMap[_v.MaxChar] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gameglobal{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameGlobal{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameglobal) GetDataMap() map[int32]*GameglobalData {
|
func (table *GameGlobal) GetDataMap() map[int32]*GameGlobalData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameglobal) GetDataList() []*GameglobalData {
|
func (table *GameGlobal) GetDataList() []*GameGlobalData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gameglobal) Get(key int32) *GameglobalData {
|
func (table *GameGlobal) Get(key int32) *GameGlobalData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameglobalData struct {
|
type GameGlobalData struct {
|
||||||
MaxChar int32
|
MaxChar int32
|
||||||
TaskReset int32
|
TaskReset int32
|
||||||
InitGold int32
|
InitGold int32
|
||||||
@ -73,13 +73,13 @@ type GameglobalData struct {
|
|||||||
SmithyMaxtime int32
|
SmithyMaxtime int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameglobalData = -518904471
|
const TypeId_GameGlobalData = 477542761
|
||||||
|
|
||||||
func (*GameglobalData) GetTypeId() int32 {
|
func (*GameGlobalData) GetTypeId() int32 {
|
||||||
return -518904471
|
return 477542761
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameglobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_char"].(float64); !_ok_ { err = errors.New("max_char error"); return }; _v.MaxChar = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_char"].(float64); !_ok_ { err = errors.New("max_char error"); return }; _v.MaxChar = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_reset"].(float64); !_ok_ { err = errors.New("task_reset error"); return }; _v.TaskReset = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_reset"].(float64); !_ok_ { err = errors.New("task_reset error"); return }; _v.TaskReset = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["init_gold"].(float64); !_ok_ { err = errors.New("init_gold error"); return }; _v.InitGold = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["init_gold"].(float64); !_ok_ { err = errors.New("init_gold error"); return }; _v.InitGold = int32(_tempNum_) }
|
||||||
@ -208,8 +208,8 @@ func (_v *GameglobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameglobalData(_buf map[string]interface{}) (*GameglobalData, error) {
|
func DeserializeGameGlobalData(_buf map[string]interface{}) (*GameGlobalData, error) {
|
||||||
v := &GameglobalData{}
|
v := &GameGlobalData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type Gamehero struct {
|
type GameHero struct {
|
||||||
_dataMap map[string]*GameheroData
|
_dataMap map[string]*GameHeroData
|
||||||
_dataList []*GameheroData
|
_dataList []*GameHeroData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGamehero(_buf []map[string]interface{}) (*Gamehero, error) {
|
func NewGameHero(_buf []map[string]interface{}) (*GameHero, error) {
|
||||||
_dataList := make([]*GameheroData, 0, len(_buf))
|
_dataList := make([]*GameHeroData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GameheroData)
|
dataMap := make(map[string]*GameHeroData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Hid] = _v
|
dataMap[_v.Hid] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &Gamehero{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHero{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamehero) GetDataMap() map[string]*GameheroData {
|
func (table *GameHero) GetDataMap() map[string]*GameHeroData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamehero) GetDataList() []*GameheroData {
|
func (table *GameHero) GetDataList() []*GameHeroData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *Gamehero) Get(key string) *GameheroData {
|
func (table *GameHero) Get(key string) *GameHeroData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameheroAwaken struct {
|
type GameHeroAwaken struct {
|
||||||
_dataMap map[int32]*GameheroAwakenData
|
_dataMap map[int32]*GameHeroAwakenData
|
||||||
_dataList []*GameheroAwakenData
|
_dataList []*GameHeroAwakenData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameheroAwaken(_buf []map[string]interface{}) (*GameheroAwaken, error) {
|
func NewGameHeroAwaken(_buf []map[string]interface{}) (*GameHeroAwaken, error) {
|
||||||
_dataList := make([]*GameheroAwakenData, 0, len(_buf))
|
_dataList := make([]*GameHeroAwakenData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameheroAwakenData)
|
dataMap := make(map[int32]*GameHeroAwakenData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroAwakenData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroAwakenData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Key] = _v
|
dataMap[_v.Key] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameheroAwaken{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHeroAwaken{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroAwaken) GetDataMap() map[int32]*GameheroAwakenData {
|
func (table *GameHeroAwaken) GetDataMap() map[int32]*GameHeroAwakenData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroAwaken) GetDataList() []*GameheroAwakenData {
|
func (table *GameHeroAwaken) GetDataList() []*GameHeroAwakenData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroAwaken) Get(key int32) *GameheroAwakenData {
|
func (table *GameHeroAwaken) Get(key int32) *GameHeroAwakenData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameheroAwakenData struct {
|
type GameHeroAwakenData struct {
|
||||||
Key int32
|
Key int32
|
||||||
Hid string
|
Hid string
|
||||||
Phase int32
|
Phase int32
|
||||||
@ -20,13 +20,13 @@ type GameheroAwakenData struct {
|
|||||||
Phaseneed []*Gameatn
|
Phaseneed []*Gameatn
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameheroAwakenData = -1396976663
|
const TypeId_GameHeroAwakenData = -1145673751
|
||||||
|
|
||||||
func (*GameheroAwakenData) GetTypeId() int32 {
|
func (*GameHeroAwakenData) GetTypeId() int32 {
|
||||||
return -1396976663
|
return -1145673751
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameheroAwakenData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameHeroAwakenData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid error"); return } }
|
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["phase"].(float64); !_ok_ { err = errors.New("phase error"); return }; _v.Phase = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["phase"].(float64); !_ok_ { err = errors.New("phase error"); return }; _v.Phase = int32(_tempNum_) }
|
||||||
@ -63,8 +63,8 @@ func (_v *GameheroAwakenData)Deserialize(_buf map[string]interface{}) (err error
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameheroAwakenData(_buf map[string]interface{}) (*GameheroAwakenData, error) {
|
func DeserializeGameHeroAwakenData(_buf map[string]interface{}) (*GameHeroAwakenData, error) {
|
||||||
v := &GameheroAwakenData{}
|
v := &GameHeroAwakenData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -11,7 +11,7 @@ package cfg
|
|||||||
import "errors"
|
import "errors"
|
||||||
import "bright/serialization"
|
import "bright/serialization"
|
||||||
|
|
||||||
type GameheroData struct {
|
type GameHeroData struct {
|
||||||
Hid string
|
Hid string
|
||||||
Name string
|
Name string
|
||||||
Star int32
|
Star int32
|
||||||
@ -39,13 +39,13 @@ type GameheroData struct {
|
|||||||
Camerainterval float32
|
Camerainterval float32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameheroData = 650222912
|
const TypeId_GameHeroData = 1513828672
|
||||||
|
|
||||||
func (*GameheroData) GetTypeId() int32 {
|
func (*GameHeroData) GetTypeId() int32 {
|
||||||
return 650222912
|
return 1513828672
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameheroData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameHeroData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid error"); return } }
|
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid 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 __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["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
||||||
@ -107,8 +107,8 @@ func (_v *GameheroData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameheroData(_buf map[string]interface{}) (*GameheroData, error) {
|
func DeserializeGameHeroData(_buf map[string]interface{}) (*GameHeroData, error) {
|
||||||
v := &GameheroData{}
|
v := &GameHeroData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameheroExp struct {
|
type GameHeroExp struct {
|
||||||
_dataMap map[string]*GameheroExpData
|
_dataMap map[string]*GameHeroExpData
|
||||||
_dataList []*GameheroExpData
|
_dataList []*GameHeroExpData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameheroExp(_buf []map[string]interface{}) (*GameheroExp, error) {
|
func NewGameHeroExp(_buf []map[string]interface{}) (*GameHeroExp, error) {
|
||||||
_dataList := make([]*GameheroExpData, 0, len(_buf))
|
_dataList := make([]*GameHeroExpData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GameheroExpData)
|
dataMap := make(map[string]*GameHeroExpData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroExpData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroExpData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Hid] = _v
|
dataMap[_v.Hid] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameheroExp{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHeroExp{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroExp) GetDataMap() map[string]*GameheroExpData {
|
func (table *GameHeroExp) GetDataMap() map[string]*GameHeroExpData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroExp) GetDataList() []*GameheroExpData {
|
func (table *GameHeroExp) GetDataList() []*GameHeroExpData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroExp) Get(key string) *GameheroExpData {
|
func (table *GameHeroExp) Get(key string) *GameHeroExpData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameheroExpData struct {
|
type GameHeroExpData struct {
|
||||||
Hid string
|
Hid string
|
||||||
Name string
|
Name string
|
||||||
Star int32
|
Star int32
|
||||||
@ -20,13 +20,13 @@ type GameheroExpData struct {
|
|||||||
Needgold int32
|
Needgold int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameheroExpData = 2029779473
|
const TypeId_GameHeroExpData = -1440094703
|
||||||
|
|
||||||
func (*GameheroExpData) GetTypeId() int32 {
|
func (*GameHeroExpData) GetTypeId() int32 {
|
||||||
return 2029779473
|
return -1440094703
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameheroExpData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameHeroExpData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid error"); return } }
|
{ var _ok_ bool; if _v.Hid, _ok_ = _buf["hid"].(string); !_ok_ { err = errors.New("hid error"); return } }
|
||||||
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
|
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
||||||
@ -37,8 +37,8 @@ func (_v *GameheroExpData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameheroExpData(_buf map[string]interface{}) (*GameheroExpData, error) {
|
func DeserializeGameHeroExpData(_buf map[string]interface{}) (*GameHeroExpData, error) {
|
||||||
v := &GameheroExpData{}
|
v := &GameHeroExpData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameheroLevelgrow struct {
|
type GameHeroLevelgrow struct {
|
||||||
_dataMap map[string]*GameheroLevelgrowData
|
_dataMap map[string]*GameHeroLevelgrowData
|
||||||
_dataList []*GameheroLevelgrowData
|
_dataList []*GameHeroLevelgrowData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameheroLevelgrow(_buf []map[string]interface{}) (*GameheroLevelgrow, error) {
|
func NewGameHeroLevelgrow(_buf []map[string]interface{}) (*GameHeroLevelgrow, error) {
|
||||||
_dataList := make([]*GameheroLevelgrowData, 0, len(_buf))
|
_dataList := make([]*GameHeroLevelgrowData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GameheroLevelgrowData)
|
dataMap := make(map[string]*GameHeroLevelgrowData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroLevelgrowData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroLevelgrowData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Id] = _v
|
dataMap[_v.Id] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameheroLevelgrow{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHeroLevelgrow{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelgrow) GetDataMap() map[string]*GameheroLevelgrowData {
|
func (table *GameHeroLevelgrow) GetDataMap() map[string]*GameHeroLevelgrowData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelgrow) GetDataList() []*GameheroLevelgrowData {
|
func (table *GameHeroLevelgrow) GetDataList() []*GameHeroLevelgrowData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelgrow) Get(key string) *GameheroLevelgrowData {
|
func (table *GameHeroLevelgrow) Get(key string) *GameHeroLevelgrowData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameheroLevelgrowData struct {
|
type GameHeroLevelgrowData struct {
|
||||||
Id string
|
Id string
|
||||||
Hp int32
|
Hp int32
|
||||||
Atk int32
|
Atk int32
|
||||||
@ -26,13 +26,13 @@ type GameheroLevelgrowData struct {
|
|||||||
Speedgrow int32
|
Speedgrow int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameheroLevelgrowData = 939442443
|
const TypeId_GameHeroLevelgrowData = 1376496907
|
||||||
|
|
||||||
func (*GameheroLevelgrowData) GetTypeId() int32 {
|
func (*GameHeroLevelgrowData) GetTypeId() int32 {
|
||||||
return 939442443
|
return 1376496907
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameheroLevelgrowData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameHeroLevelgrowData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hp"].(float64); !_ok_ { err = errors.New("hp error"); return }; _v.Hp = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hp"].(float64); !_ok_ { err = errors.New("hp error"); return }; _v.Hp = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["atk"].(float64); !_ok_ { err = errors.New("atk error"); return }; _v.Atk = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["atk"].(float64); !_ok_ { err = errors.New("atk error"); return }; _v.Atk = int32(_tempNum_) }
|
||||||
@ -49,8 +49,8 @@ func (_v *GameheroLevelgrowData)Deserialize(_buf map[string]interface{}) (err er
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameheroLevelgrowData(_buf map[string]interface{}) (*GameheroLevelgrowData, error) {
|
func DeserializeGameHeroLevelgrowData(_buf map[string]interface{}) (*GameHeroLevelgrowData, error) {
|
||||||
v := &GameheroLevelgrowData{}
|
v := &GameHeroLevelgrowData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameheroLevelup struct {
|
type GameHeroLevelup struct {
|
||||||
_dataMap map[int32]*GameheroLevelupData
|
_dataMap map[int32]*GameHeroLevelupData
|
||||||
_dataList []*GameheroLevelupData
|
_dataList []*GameHeroLevelupData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameheroLevelup(_buf []map[string]interface{}) (*GameheroLevelup, error) {
|
func NewGameHeroLevelup(_buf []map[string]interface{}) (*GameHeroLevelup, error) {
|
||||||
_dataList := make([]*GameheroLevelupData, 0, len(_buf))
|
_dataList := make([]*GameHeroLevelupData, 0, len(_buf))
|
||||||
dataMap := make(map[int32]*GameheroLevelupData)
|
dataMap := make(map[int32]*GameHeroLevelupData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroLevelupData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroLevelupData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Level] = _v
|
dataMap[_v.Level] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameheroLevelup{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHeroLevelup{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelup) GetDataMap() map[int32]*GameheroLevelupData {
|
func (table *GameHeroLevelup) GetDataMap() map[int32]*GameHeroLevelupData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelup) GetDataList() []*GameheroLevelupData {
|
func (table *GameHeroLevelup) GetDataList() []*GameHeroLevelupData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroLevelup) Get(key int32) *GameheroLevelupData {
|
func (table *GameHeroLevelup) Get(key int32) *GameHeroLevelupData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ package cfg
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
type GameheroLevelupData struct {
|
type GameHeroLevelupData struct {
|
||||||
Level int32
|
Level int32
|
||||||
Heroexp []*Gameatn
|
Heroexp []*Gameatn
|
||||||
Hp float32
|
Hp float32
|
||||||
@ -18,13 +18,13 @@ type GameheroLevelupData struct {
|
|||||||
Def float32
|
Def float32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameheroLevelupData = 1582994195
|
const TypeId_GameHeroLevelupData = 783449875
|
||||||
|
|
||||||
func (*GameheroLevelupData) GetTypeId() int32 {
|
func (*GameHeroLevelupData) GetTypeId() int32 {
|
||||||
return 1582994195
|
return 783449875
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameheroLevelupData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameHeroLevelupData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["level"].(float64); !_ok_ { err = errors.New("level error"); return }; _v.Level = int32(_tempNum_) }
|
||||||
{
|
{
|
||||||
var _arr_ []interface{}
|
var _arr_ []interface{}
|
||||||
@ -46,8 +46,8 @@ func (_v *GameheroLevelupData)Deserialize(_buf map[string]interface{}) (err erro
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeGameheroLevelupData(_buf map[string]interface{}) (*GameheroLevelupData, error) {
|
func DeserializeGameHeroLevelupData(_buf map[string]interface{}) (*GameHeroLevelupData, error) {
|
||||||
v := &GameheroLevelupData{}
|
v := &GameHeroLevelupData{}
|
||||||
if err := v.Deserialize(_buf); err == nil {
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
return v, nil
|
return v, nil
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,34 +8,34 @@
|
|||||||
|
|
||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
type GameheroMethod struct {
|
type GameHeroMethod struct {
|
||||||
_dataMap map[string]*GameheroMethodData
|
_dataMap map[string]*GameHeroMethodData
|
||||||
_dataList []*GameheroMethodData
|
_dataList []*GameHeroMethodData
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGameheroMethod(_buf []map[string]interface{}) (*GameheroMethod, error) {
|
func NewGameHeroMethod(_buf []map[string]interface{}) (*GameHeroMethod, error) {
|
||||||
_dataList := make([]*GameheroMethodData, 0, len(_buf))
|
_dataList := make([]*GameHeroMethodData, 0, len(_buf))
|
||||||
dataMap := make(map[string]*GameheroMethodData)
|
dataMap := make(map[string]*GameHeroMethodData)
|
||||||
for _, _ele_ := range _buf {
|
for _, _ele_ := range _buf {
|
||||||
if _v, err2 := DeserializeGameheroMethodData(_ele_); err2 != nil {
|
if _v, err2 := DeserializeGameHeroMethodData(_ele_); err2 != nil {
|
||||||
return nil, err2
|
return nil, err2
|
||||||
} else {
|
} else {
|
||||||
_dataList = append(_dataList, _v)
|
_dataList = append(_dataList, _v)
|
||||||
dataMap[_v.Hid] = _v
|
dataMap[_v.Hid] = _v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return &GameheroMethod{_dataList:_dataList, _dataMap:dataMap}, nil
|
return &GameHeroMethod{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroMethod) GetDataMap() map[string]*GameheroMethodData {
|
func (table *GameHeroMethod) GetDataMap() map[string]*GameHeroMethodData {
|
||||||
return table._dataMap
|
return table._dataMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroMethod) GetDataList() []*GameheroMethodData {
|
func (table *GameHeroMethod) GetDataList() []*GameHeroMethodData {
|
||||||
return table._dataList
|
return table._dataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (table *GameheroMethod) Get(key string) *GameheroMethodData {
|
func (table *GameHeroMethod) Get(key string) *GameHeroMethodData {
|
||||||
return table._dataMap[key]
|
return table._dataMap[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user