同步配置文件命令修改
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,
|
||||
"type": 2,
|
||||
"lastend": 0,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 0,
|
||||
"rdtasknum": [
|
||||
101
|
||||
],
|
||||
"aftertaks": 1002,
|
||||
"icetime": 0,
|
||||
"aftertask": 1002,
|
||||
"taskcd": 0,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -32,13 +32,13 @@
|
||||
{
|
||||
"id": 1002,
|
||||
"type": 2,
|
||||
"lastend": 1001,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 1001,
|
||||
"rdtasknum": [
|
||||
101,
|
||||
102
|
||||
],
|
||||
"aftertaks": 1003,
|
||||
"icetime": 0,
|
||||
"aftertask": 1003,
|
||||
"taskcd": 0,
|
||||
"tag": 2,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -63,13 +63,13 @@
|
||||
{
|
||||
"id": 1003,
|
||||
"type": 2,
|
||||
"lastend": 1002,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 1002,
|
||||
"rdtasknum": [
|
||||
101,
|
||||
103
|
||||
],
|
||||
"aftertaks": 1004,
|
||||
"icetime": 0,
|
||||
"aftertask": 1004,
|
||||
"taskcd": 0,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -90,13 +90,13 @@
|
||||
{
|
||||
"id": 1004,
|
||||
"type": 2,
|
||||
"lastend": 1003,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 1003,
|
||||
"rdtasknum": [
|
||||
101,
|
||||
103
|
||||
],
|
||||
"aftertaks": 1005,
|
||||
"icetime": 0,
|
||||
"aftertask": 1005,
|
||||
"taskcd": 0,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -117,13 +117,13 @@
|
||||
{
|
||||
"id": 1005,
|
||||
"type": 2,
|
||||
"lastend": 1004,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 1004,
|
||||
"rdtasknum": [
|
||||
104,
|
||||
105
|
||||
],
|
||||
"aftertaks": 1006,
|
||||
"icetime": 0,
|
||||
"aftertask": 1006,
|
||||
"taskcd": 0,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -144,12 +144,12 @@
|
||||
{
|
||||
"id": 1006,
|
||||
"type": 2,
|
||||
"lastend": 1005,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 1005,
|
||||
"rdtasknum": [
|
||||
106
|
||||
],
|
||||
"aftertaks": 0,
|
||||
"icetime": 0,
|
||||
"aftertask": 0,
|
||||
"taskcd": 0,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -173,12 +173,12 @@
|
||||
{
|
||||
"id": 1007,
|
||||
"type": 1,
|
||||
"lastend": 0,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 0,
|
||||
"rdtasknum": [
|
||||
107
|
||||
],
|
||||
"aftertaks": 1002,
|
||||
"icetime": 1,
|
||||
"aftertask": 1002,
|
||||
"taskcd": 1,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
@ -199,12 +199,12 @@
|
||||
{
|
||||
"id": 1008,
|
||||
"type": 1,
|
||||
"lastend": 0,
|
||||
"rdtaks_num": [
|
||||
"lasttask": 0,
|
||||
"rdtasknum": [
|
||||
108
|
||||
],
|
||||
"aftertaks": 1002,
|
||||
"icetime": -1,
|
||||
"aftertask": 1002,
|
||||
"taskcd": -1,
|
||||
"tag": 1,
|
||||
"story": 3,
|
||||
"completetask": 0,
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
"chooseid": 10001,
|
||||
"num": 1,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -10,7 +10,7 @@
|
||||
{
|
||||
"chooseid": 10002,
|
||||
"num": 2,
|
||||
"rdtaks_num": 107,
|
||||
"rdtaksnum": 107,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -18,7 +18,7 @@
|
||||
{
|
||||
"chooseid": 10003,
|
||||
"num": 3,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -26,7 +26,7 @@
|
||||
{
|
||||
"chooseid": 10011,
|
||||
"num": 1,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -34,7 +34,7 @@
|
||||
{
|
||||
"chooseid": 10012,
|
||||
"num": 2,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -42,7 +42,7 @@
|
||||
{
|
||||
"chooseid": 10013,
|
||||
"num": 3,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -50,7 +50,7 @@
|
||||
{
|
||||
"chooseid": 10021,
|
||||
"num": 1,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -58,7 +58,7 @@
|
||||
{
|
||||
"chooseid": 10022,
|
||||
"num": 2,
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -66,7 +66,7 @@
|
||||
{
|
||||
"chooseid": 10031,
|
||||
"num": 1,
|
||||
"rdtaks_num": 0,
|
||||
"rdtaksnum": 0,
|
||||
"need": [
|
||||
10012
|
||||
]
|
||||
@ -74,7 +74,7 @@
|
||||
{
|
||||
"chooseid": 10032,
|
||||
"num": 2,
|
||||
"rdtaks_num": 0,
|
||||
"rdtaksnum": 0,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
@ -82,7 +82,7 @@
|
||||
{
|
||||
"chooseid": 10041,
|
||||
"num": 1,
|
||||
"rdtaks_num": 0,
|
||||
"rdtaksnum": 0,
|
||||
"need": [
|
||||
10010
|
||||
]
|
||||
@ -90,7 +90,7 @@
|
||||
{
|
||||
"chooseid": 10042,
|
||||
"num": 2,
|
||||
"rdtaks_num": 0,
|
||||
"rdtaksnum": 0,
|
||||
"need": [
|
||||
0
|
||||
]
|
||||
|
@ -1,72 +1,72 @@
|
||||
[
|
||||
{
|
||||
"rdtaks_num": 101,
|
||||
"rdtaksnum": 101,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 1,
|
||||
"typtaskid": 1,
|
||||
"data1": 90001,
|
||||
"data2": 0,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 102,
|
||||
"rdtaksnum": 102,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 2,
|
||||
"typtaskid": 2,
|
||||
"data1": 3,
|
||||
"data2": 0,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 103,
|
||||
"rdtaksnum": 103,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 3,
|
||||
"typtaskid": 3,
|
||||
"data1": 2,
|
||||
"data2": 0,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 104,
|
||||
"rdtaksnum": 104,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 4,
|
||||
"typtaskid": 4,
|
||||
"data1": 90001,
|
||||
"data2": 15,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 105,
|
||||
"rdtaksnum": 105,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 4,
|
||||
"typtaskid": 4,
|
||||
"data1": 25001,
|
||||
"data2": 10,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 106,
|
||||
"rdtaksnum": 106,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 5,
|
||||
"typtaskid": 5,
|
||||
"data1": 90001,
|
||||
"data2": 2,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 107,
|
||||
"rdtaksnum": 107,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 4,
|
||||
"typtaskid": 4,
|
||||
"data1": 25001,
|
||||
"data2": 20,
|
||||
"data3": 0
|
||||
},
|
||||
{
|
||||
"rdtaks_num": 108,
|
||||
"rdtaksnum": 108,
|
||||
"typdes": 2,
|
||||
"datatime": 1,
|
||||
"typtask_id": 6,
|
||||
"typtaskid": 6,
|
||||
"data1": 90001,
|
||||
"data2": 5,
|
||||
"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) {
|
||||
this.ModuleCompBase.Init(service, module, comp, options)
|
||||
this.module = module.(*Chat)
|
||||
this.LoadConfigure(game_chatchannel, cfg.NewGamechatChannel)
|
||||
this.LoadConfigure(game_chatsystem, cfg.NewGamechatSystem)
|
||||
this.LoadConfigure(game_chatchannel, cfg.NewGameChatChannel)
|
||||
this.LoadConfigure(game_chatsystem, cfg.NewGameChatSystem)
|
||||
|
||||
this.LoadConfigure(game_chatchannelcom, cfg.NewGamechatChannelCom)
|
||||
this.LoadConfigure(game_chatchannelcom, cfg.NewGameChatChannelCom)
|
||||
return
|
||||
}
|
||||
|
||||
@ -36,14 +36,14 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
||||
func (this *configureComp) GetAutoIntoChannelMax() (max int32, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
configure *cfg.GamechatChannelComData
|
||||
configure *cfg.GameChatChannelComData
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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")
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
@ -60,14 +60,14 @@ func (this *configureComp) GetAutoIntoChannelMax() (max int32, err error) {
|
||||
func (this *configureComp) GetChanageChannelMax() (max int32, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
configure *cfg.GamechatChannelComData
|
||||
configure *cfg.GameChatChannelComData
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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")
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
@ -84,14 +84,14 @@ func (this *configureComp) GetChanageChannelMax() (max int32, err error) {
|
||||
func (this *configureComp) GetChannelRecordMax() (max int32, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
configure *cfg.GamechatChannelComData
|
||||
configure *cfg.GameChatChannelComData
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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")
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
@ -108,14 +108,14 @@ func (this *configureComp) GetChannelRecordMax() (max int32, err error) {
|
||||
func (this *configureComp) GetChannelReadRecordNum() (max int32, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
configure *cfg.GamechatChannelComData
|
||||
configure *cfg.GameChatChannelComData
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_chatchannelcom); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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")
|
||||
this.module.Errorf("err:%v", err)
|
||||
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) {
|
||||
err = this.ModuleCompBase.Init(service, module, comp, options)
|
||||
err = this.LoadConfigure(game_global, cfg.NewGameglobal)
|
||||
err = this.LoadConfigure(game_initial, cfg.NewGameinitial)
|
||||
err = this.LoadConfigure(game_playerlv, cfg.NewGameplayerlv)
|
||||
err = this.LoadConfigure(game_facemod, cfg.NewGamefacemod)
|
||||
err = this.LoadConfigure(game_global, cfg.NewGameGlobal)
|
||||
err = this.LoadConfigure(game_initial, cfg.NewGameInitial)
|
||||
err = this.LoadConfigure(game_playerlv, cfg.NewGamePlayerlv)
|
||||
err = this.LoadConfigure(game_facemod, cfg.NewGameFacemod)
|
||||
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 (
|
||||
configure *cfg.Gameglobal
|
||||
configure *cfg.GameGlobal
|
||||
ok bool
|
||||
)
|
||||
if v, err := this.GetConfigure(game_global); err != nil {
|
||||
log.Errorf("get global conf err:%v", err)
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.Gameglobal); !ok {
|
||||
if configure, ok = v.(*cfg.GameGlobal); !ok {
|
||||
log.Errorf("%T no is *cfg.Game_global", v)
|
||||
}
|
||||
}
|
||||
return configure.GetDataList()[0] // 返回对象信息
|
||||
}
|
||||
|
||||
func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.Gameinitial, err error) {
|
||||
func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.GameInitial, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -77,7 +77,7 @@ func (this *MCompConfigure) GetGlobalInitConf() (configure *cfg.Gameinitial, err
|
||||
if v, err = this.GetConfigure(game_initial); err != nil {
|
||||
return
|
||||
} 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)
|
||||
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 {
|
||||
return
|
||||
} 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)
|
||||
return
|
||||
} 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 {
|
||||
return
|
||||
} 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)
|
||||
return
|
||||
} 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 {
|
||||
return
|
||||
} 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)
|
||||
return
|
||||
} 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) {
|
||||
var (
|
||||
err error
|
||||
confs []*cfg.GameequipData
|
||||
confs []*cfg.GameEquipData
|
||||
equipment *pb.DB_Equipment
|
||||
equipments []*pb.DB_Equipment
|
||||
updatequipment []*pb.DB_Equipment
|
||||
@ -33,7 +33,7 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
||||
return
|
||||
}
|
||||
//校验数据
|
||||
confs = make([]*cfg.GameequipData, len(req.EquipmentId))
|
||||
confs = make([]*cfg.GameEquipData, 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) {
|
||||
var (
|
||||
err error
|
||||
conf *cfg.GameequipData
|
||||
intensify *cfg.GameequipIntensifyData
|
||||
conf *cfg.GameEquipData
|
||||
intensify *cfg.GameEquipIntensifyData
|
||||
equipment *pb.DB_Equipment
|
||||
modifyequipments []*pb.DB_Equipment
|
||||
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) {
|
||||
this.ModuleCompBase.Init(service, module, comp, options)
|
||||
this.module = module.(*Equipment)
|
||||
this.LoadConfigure(game_equip, cfg.NewGameequip)
|
||||
this.LoadConfigure(equip_attrlibrary, cfg.NewGameequipAttrlibrary)
|
||||
this.LoadConfigure(equip_intensify, cfg.NewGameequipIntensify)
|
||||
this.LoadConfigure(equip_suit, cfg.NewGameequipSuit)
|
||||
this.LoadConfigure(game_equip, cfg.NewGameEquip)
|
||||
this.LoadConfigure(equip_attrlibrary, cfg.NewGameEquipAttrlibrary)
|
||||
this.LoadConfigure(equip_intensify, cfg.NewGameEquipIntensify)
|
||||
this.LoadConfigure(equip_suit, cfg.NewGameEquipSuit)
|
||||
return
|
||||
}
|
||||
|
||||
//获取装备配置数据
|
||||
func (this *configureComp) GetEquipmentConfigure() (configure *cfg.Gameequip, err error) {
|
||||
func (this *configureComp) GetEquipmentConfigure() (configure *cfg.GameEquip, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -42,7 +42,7 @@ func (this *configureComp) GetEquipmentConfigure() (configure *cfg.Gameequip, er
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -61,7 +61,7 @@ func (this *configureComp) GetEquipmentConfigureById(equipmentId string) (config
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -80,7 +80,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigure() (configure *cfg.Ga
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -99,7 +99,7 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureByKey(key int32) (con
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
)
|
||||
@ -117,8 +117,8 @@ func (this *configureComp) GetEquipmentAttrlibraryConfigureById(Id int32) (confi
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
configure = make([]*cfg.GameequipAttrlibraryData, 0)
|
||||
for _, v1 := range v.(*cfg.GameequipAttrlibrary).GetDataList() {
|
||||
configure = make([]*cfg.GameEquipAttrlibraryData, 0)
|
||||
for _, v1 := range v.(*cfg.GameEquipAttrlibrary).GetDataList() {
|
||||
if v1.Libraryid == Id {
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -137,7 +137,7 @@ func (this *configureComp) GetEquipmentIntensifyConfigure() (configure *cfg.Game
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
)
|
||||
@ -155,7 +155,7 @@ func (this *configureComp) GetEquipmentIntensifyConfigureById(star, lv int32) (c
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
for _, v1 := range v.(*cfg.GameequipIntensify).GetDataList() {
|
||||
for _, v1 := range v.(*cfg.GameEquipIntensify).GetDataList() {
|
||||
|
||||
if v1.Star == star && v1.Level == lv {
|
||||
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) {
|
||||
var (
|
||||
configure *cfg.Gameequip
|
||||
configure *cfg.GameEquip
|
||||
equipments []*pb.DB_Equipment
|
||||
iskeep bool
|
||||
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 (
|
||||
mattr []*cfg.GameequipAttrlibraryData
|
||||
sattr []*cfg.GameequipAttrlibraryData
|
||||
mattr []*cfg.GameEquipAttrlibraryData
|
||||
sattr []*cfg.GameEquipAttrlibraryData
|
||||
total int
|
||||
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.MainEntry.Lv++
|
||||
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
|
||||
}
|
||||
if len(equipment.AdverbEntry) < 4 { //去随机副词条
|
||||
var temp []*cfg.GameequipAttrlibraryData
|
||||
var sattr []*cfg.GameequipAttrlibraryData
|
||||
var temp []*cfg.GameEquipAttrlibraryData
|
||||
var sattr []*cfg.GameEquipAttrlibraryData
|
||||
if temp, err = this.module.configure.GetEquipmentAttrlibraryConfigureById(equip.Addlibrary); err != nil || len(temp) == 0 {
|
||||
log.Errorf("升级服务错误 读取副词条配置错误!")
|
||||
return
|
||||
@ -229,7 +229,7 @@ func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equ
|
||||
Value: sattr[index].Attrvar,
|
||||
})
|
||||
} else { //随机一个副词条 强化
|
||||
var attrlibrary *cfg.GameequipAttrlibraryData
|
||||
var attrlibrary *cfg.GameEquipAttrlibraryData
|
||||
r := rand.New(rand.NewSource(time.Now().Unix()))
|
||||
index := r.Perm(len(equipment.AdverbEntry))[0]
|
||||
|
||||
|
@ -19,7 +19,7 @@ type configureComp struct {
|
||||
// Init 组件初始化接口
|
||||
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.LoadConfigure(game_msgdistrib, cfg.NewGamemsgdistrib)
|
||||
this.LoadConfigure(game_msgdistrib, cfg.NewGameMsgdistrib)
|
||||
return
|
||||
}
|
||||
|
||||
@ -28,13 +28,13 @@ func (this *configureComp) GetMsgDistribute(msgid string) (rule string, ok bool)
|
||||
var (
|
||||
err error
|
||||
v interface{}
|
||||
item *cfg.GamemsgdistribData
|
||||
item *cfg.GameMsgdistribData
|
||||
)
|
||||
if v, err = this.GetConfigure(game_msgdistrib); err != nil {
|
||||
ok = false
|
||||
return
|
||||
} else {
|
||||
if item, ok = v.(*cfg.Gamemsgdistrib).GetDataMap()[msgid]; ok {
|
||||
if item, ok = v.(*cfg.GameMsgdistrib).GetDataMap()[msgid]; ok {
|
||||
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) {
|
||||
var (
|
||||
awakenData *cfg.GameheroAwakenData
|
||||
awakenData *cfg.GameHeroAwakenData
|
||||
_hero *pb.DBHero
|
||||
chanegCard []*pb.DBHero // change
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
||||
costRes []*cfg.Gameatn
|
||||
star4Max int32 // 10连抽最大4星数量
|
||||
star5Max int32 // 10连抽最大5星数量
|
||||
cfgDraw *cfg.GameglobalData
|
||||
cfgDraw *cfg.GameGlobalData
|
||||
costAtn *cfg.Gameatn
|
||||
heroRecord *pb.DBHeroRecord
|
||||
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) {
|
||||
var (
|
||||
target *cfg.GameheroStarupData // 配置表目标升星英雄信息
|
||||
target *cfg.GameHeroStarupData // 配置表目标升星英雄信息
|
||||
costNeedHeroCount int32 // 消耗指定英雄的数量
|
||||
costRaceHeroCount int32 // 消耗种族英雄的数量
|
||||
_hero *pb.DBHero // 目标英雄
|
||||
|
@ -29,7 +29,7 @@ const (
|
||||
///配置管理组件
|
||||
type configureComp struct {
|
||||
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
|
||||
}
|
||||
|
||||
@ -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.LoadMultiConfigure(map[string]interface{}{
|
||||
new_hero: cfg.NewGamehero,
|
||||
hero_stargrow: cfg.NewGameheroStargrow,
|
||||
hero_levelgrow: cfg.NewGameheroLevelgrow,
|
||||
hero_starup: cfg.NewGameheroStarup,
|
||||
hero_levelup: cfg.NewGameheroLevelup,
|
||||
hero_exp: cfg.NewGameheroExp,
|
||||
hero_skillup: cfg.NewGameheroSkillLevel,
|
||||
game_skillatk: cfg.NewGameskillAtk,
|
||||
hero_resonance: cfg.NewGameheroResonance,
|
||||
hero_comatn: cfg.NewGamecomAtn,
|
||||
hero_awaken: cfg.NewGameheroAwaken,
|
||||
hero_drawcard: cfg.NewGamedrawCard,
|
||||
new_hero: cfg.NewGameHero,
|
||||
hero_stargrow: cfg.NewGameHeroStargrow,
|
||||
hero_levelgrow: cfg.NewGameHeroLevelgrow,
|
||||
hero_starup: cfg.NewGameHeroStarup,
|
||||
hero_levelup: cfg.NewGameHeroLevelup,
|
||||
hero_exp: cfg.NewGameHeroExp,
|
||||
hero_skillup: cfg.NewGameHeroSkillLevel,
|
||||
game_skillatk: cfg.NewGameSkillAtk,
|
||||
hero_resonance: cfg.NewGameHeroResonance,
|
||||
hero_comatn: cfg.NewGameComAtn,
|
||||
hero_awaken: cfg.NewGameHeroAwaken,
|
||||
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()
|
||||
})
|
||||
return
|
||||
@ -65,16 +65,16 @@ func (this *configureComp) SetHeroDrawConfig() (err error) {
|
||||
v interface{}
|
||||
)
|
||||
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)
|
||||
return
|
||||
} else {
|
||||
for _, v := range _configure.GetDataList() {
|
||||
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 {
|
||||
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)
|
||||
}
|
||||
@ -85,12 +85,12 @@ func (this *configureComp) SetHeroDrawConfig() (err error) {
|
||||
|
||||
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]
|
||||
}
|
||||
|
||||
//获取英雄配置数据
|
||||
func (this *configureComp) getHeroConfigure() (configure *cfg.Gamehero, err error) {
|
||||
func (this *configureComp) getHeroConfigure() (configure *cfg.GameHero, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -99,40 +99,40 @@ func (this *configureComp) getHeroConfigure() (configure *cfg.Gamehero, err erro
|
||||
if v, err = this.GetConfigure(new_hero); err != nil {
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.Gamehero); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
||||
if configure, ok = v.(*cfg.GameHero); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 获取英雄强化增加属性配置数据
|
||||
func (this *configureComp) GetHeroStargrowConfig() (configure *cfg.GameheroStargrow, err error) {
|
||||
func (this *configureComp) GetHeroStargrowConfig() (configure *cfg.GameHeroStargrow, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_stargrow); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroStargrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
||||
if configure, ok = v.(*cfg.GameHeroStargrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.Gamehero", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHero", v)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// 获取英雄升级属性变化相关配置数据
|
||||
func (this *configureComp) GetHeroLevelgrowConfig() (configure *cfg.GameheroLevelgrow, err error) {
|
||||
func (this *configureComp) GetHeroLevelgrowConfig() (configure *cfg.GameHeroLevelgrow, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_levelgrow); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroLevelgrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelgrow", v)
|
||||
if configure, ok = v.(*cfg.GameHeroLevelgrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroLevelgrow", v)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_starup); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroStarup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroStarup", v)
|
||||
if configure, ok = v.(*cfg.GameHeroStarup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroStarup", v)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroStarup", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroStarup", v)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 获取英雄升级相关配置数据
|
||||
func (this *configureComp) GetHeroLevelUpConfig() (configure *cfg.GameheroLevelup, err error) {
|
||||
func (this *configureComp) GetHeroLevelUpConfig() (configure *cfg.GameHeroLevelup, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_levelup); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroLevelup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
||||
if configure, ok = v.(*cfg.GameHeroLevelup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (this *configureComp) GetHeroExpConfig() (configure *cfg.GameheroExp, err error) {
|
||||
func (this *configureComp) GetHeroExpConfig() (configure *cfg.GameHeroExp, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_exp); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroExp); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
||||
if configure, ok = v.(*cfg.GameHeroExp); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||
}
|
||||
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 configure, ok := v.(*cfg.GameheroExp); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
||||
if configure, ok := v.(*cfg.GameHeroExp); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||
return nil
|
||||
} else {
|
||||
return configure.Get(hid)
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroExp", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroExp", v)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//英雄等级基础属性
|
||||
func (this *configureComp) GetHeroLevelup() (configure *cfg.GameheroLevelup, err error) {
|
||||
func (this *configureComp) GetHeroLevelup() (configure *cfg.GameHeroLevelup, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -213,8 +213,8 @@ func (this *configureComp) GetHeroLevelup() (configure *cfg.GameheroLevelup, err
|
||||
if v, err = this.GetConfigure(hero_levelup); err != nil {
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.GameheroLevelup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelup", v)
|
||||
if configure, ok = v.(*cfg.GameHeroLevelup); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroLevelup", v)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -230,8 +230,8 @@ func (this *configureComp) GetHeroStargrow() (configure *cfg.GameheroStargrow, e
|
||||
if v, err = this.GetConfigure(hero_stargrow); err != nil {
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.GameheroStargrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroStargrow", v)
|
||||
if configure, ok = v.(*cfg.GameHeroStargrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroStargrow", v)
|
||||
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()
|
||||
if err != 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()
|
||||
if err != 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()
|
||||
if err != 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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -284,8 +284,8 @@ func (this *configureComp) GetHeroLevelgrow() (configure *cfg.GameheroLevelgrow,
|
||||
if v, err = this.GetConfigure(hero_levelgrow); err != nil {
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.GameheroLevelgrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroLevelgrow", v)
|
||||
if configure, ok = v.(*cfg.GameHeroLevelgrow); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroLevelgrow", v)
|
||||
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()
|
||||
if err != 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 conf, ok := v.(*cfg.GameheroSkillLevel); ok {
|
||||
if conf, ok := v.(*cfg.GameHeroSkillLevel); ok {
|
||||
data = conf.Get(skillid)
|
||||
return
|
||||
}
|
||||
@ -321,7 +321,7 @@ func (this *configureComp) GetHeroSkillUpConfig(skillid int32) (data *cfg.Gamehe
|
||||
func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
@ -330,30 +330,30 @@ func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
||||
}
|
||||
|
||||
// 通过英雄配置ID获取共鸣配置信息
|
||||
func (this *configureComp) GetHeroResonanceConfig(cardConfigID string) (data *cfg.GameheroResonanceData, err error) {
|
||||
func (this *configureComp) GetHeroResonanceConfig(cardConfigID string) (data *cfg.GameHeroResonanceData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_resonance); err == nil {
|
||||
if configure, ok := v.(*cfg.GameheroResonance); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroResonance", v)
|
||||
if configure, ok := v.(*cfg.GameHeroResonance); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroResonance", v)
|
||||
return
|
||||
} else {
|
||||
data = configure.Get(cardConfigID)
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroResonance", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroResonance", v)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GamecomAtnData, err error) {
|
||||
func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GameComAtnData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
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)
|
||||
return
|
||||
} else {
|
||||
@ -365,18 +365,18 @@ func (this *configureComp) GetHeroResonanceRestConfig() (data *cfg.GamecomAtnDat
|
||||
|
||||
return
|
||||
}
|
||||
func (this *configureComp) GetHeroAwakenConfig() (configure *cfg.GameheroAwaken, err error) {
|
||||
func (this *configureComp) GetHeroAwakenConfig() (configure *cfg.GameHeroAwaken, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(hero_awaken); err == nil {
|
||||
if configure, ok = v.(*cfg.GameheroAwaken); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroAwaken", v)
|
||||
if configure, ok = v.(*cfg.GameHeroAwaken); !ok {
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroAwaken", v)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
err = fmt.Errorf("%T no is *cfg.GameheroAwaken", v)
|
||||
err = fmt.Errorf("%T no is *cfg.GameHeroAwaken", v)
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -550,7 +550,7 @@ func (this *ModelHero) FloorDrawCard(Cardpool int32) (cardId string) {
|
||||
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 {
|
||||
return config.BasePool1.P
|
||||
} 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 (
|
||||
err error
|
||||
item *pb.DB_UserItemData
|
||||
itemcf *cfg.GameitemData
|
||||
itemcf *cfg.GameItemData
|
||||
sale []*cfg.Gameatn
|
||||
)
|
||||
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 (
|
||||
err error
|
||||
item *pb.DB_UserItemData
|
||||
itemcf *cfg.GameitemData
|
||||
prop []*cfg.GamepropsgroupData
|
||||
itemcf *cfg.GameItemData
|
||||
prop []*cfg.GamePropsgroupData
|
||||
)
|
||||
if code = this.UseitemCheck(session, req); code != pb.ErrorCode_Success {
|
||||
return
|
||||
|
@ -22,23 +22,23 @@ type ConfigureComp struct {
|
||||
modules.MCompConfigure
|
||||
module *Items
|
||||
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) {
|
||||
this.MCompConfigure.Init(service, module, comp, options)
|
||||
this.module = module.(*Items)
|
||||
this.propsgroup = make(map[int32][]*cfg.GamepropsgroupData)
|
||||
err = this.LoadConfigure(game_item, cfg.NewGameitem)
|
||||
err = configure.RegisterConfigure(game_propsgroup, cfg.NewGamepropsgroup, func() {
|
||||
this.propsgroup = make(map[int32][]*cfg.GamePropsgroupData)
|
||||
err = this.LoadConfigure(game_item, cfg.NewGameItem)
|
||||
err = configure.RegisterConfigure(game_propsgroup, cfg.NewGamePropsgroup, func() {
|
||||
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()
|
||||
defer this.lock.Unlock()
|
||||
for _, value := range configure.GetDataList() {
|
||||
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)
|
||||
}
|
||||
@ -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 (
|
||||
v interface{}
|
||||
)
|
||||
@ -60,13 +60,13 @@ func (this *ConfigureComp) GetItemsConfigure() (items map[string]*cfg.GameitemDa
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
items = v.(*cfg.Gameitem).GetDataMap()
|
||||
items = v.(*cfg.GameItem).GetDataMap()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//读取物品配置
|
||||
func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameitemData, err error) {
|
||||
func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameItemData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -75,7 +75,7 @@ func (this *ConfigureComp) GetItemConfigure(id string) (item *cfg.GameitemData,
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
@ -89,8 +89,8 @@ func (this *ConfigureComp) GetPackItemByType(itmes []*pb.DB_UserItemData, bagtyp
|
||||
result = make([]*pb.DB_UserItemData, 0, len(itmes))
|
||||
var (
|
||||
v interface{}
|
||||
table *cfg.Gameitem
|
||||
item *cfg.GameitemData
|
||||
table *cfg.GameItem
|
||||
item *cfg.GameItemData
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
@ -98,7 +98,7 @@ func (this *ConfigureComp) GetPackItemByType(itmes []*pb.DB_UserItemData, bagtyp
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
table = v.(*cfg.Gameitem)
|
||||
table = v.(*cfg.GameItem)
|
||||
for _, v := range itmes {
|
||||
if item, ok = table.GetDataMap()[v.ItemId]; ok {
|
||||
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
|
||||
this.lock.RLock()
|
||||
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 {
|
||||
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) {
|
||||
var (
|
||||
conf *cfg.GameitemData
|
||||
conf *cfg.GameItemData
|
||||
itme *pb.DB_UserItemData
|
||||
num 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) {
|
||||
var (
|
||||
err error
|
||||
conf *cfg.GameitemData
|
||||
conf *cfg.GameItemData
|
||||
num int64
|
||||
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)
|
||||
this.module = module.(*Mainline)
|
||||
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||
game_mainlinechapter: cfg.NewGamemainlineChapter,
|
||||
game_mainlineeasy: cfg.NewGamemainlineEasy,
|
||||
game_mainlinehard: cfg.NewGamemainlineHard,
|
||||
game_mainlinepurgatory: cfg.NewGamemainlinePurgatory,
|
||||
game_mainlinechapter: cfg.NewGameMainlineChapter,
|
||||
game_mainlineeasy: cfg.NewGameMainlineEasy,
|
||||
game_mainlinehard: cfg.NewGameMainlineHard,
|
||||
game_mainlinepurgatory: cfg.NewGameMainlinePurgatory,
|
||||
})
|
||||
|
||||
return
|
||||
@ -39,17 +39,17 @@ func (this *configureComp) GetConfigure(name string) (v interface{}, err error)
|
||||
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 {
|
||||
this.module.Errorf("get global conf err:%v", err)
|
||||
return
|
||||
} else {
|
||||
var (
|
||||
configure *cfg.GamemainlineChapter
|
||||
configure *cfg.GameMainlineChapter
|
||||
ok bool
|
||||
)
|
||||
if configure, ok = v.(*cfg.GamemainlineChapter); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_mainlineChapterData", v)
|
||||
if configure, ok = v.(*cfg.GameMainlineChapter); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_MainlineChapterData", v)
|
||||
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 {
|
||||
this.module.Errorf("get global conf err:%v", err)
|
||||
return
|
||||
} else {
|
||||
var (
|
||||
configure *cfg.GamemainlineEasy
|
||||
configure *cfg.GameMainlineEasy
|
||||
ok bool
|
||||
)
|
||||
if configure, ok = v.(*cfg.GamemainlineEasy); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_mainlineEasyData", v)
|
||||
if configure, ok = v.(*cfg.GameMainlineEasy); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_MainlineEasyData", v)
|
||||
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 {
|
||||
this.module.Errorf("get global conf err:%v", err)
|
||||
return
|
||||
} else {
|
||||
var (
|
||||
configure *cfg.GamemainlinePurgatory
|
||||
configure *cfg.GameMainlinePurgatory
|
||||
ok bool
|
||||
)
|
||||
if configure, ok = v.(*cfg.GamemainlinePurgatory); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_mainlinePurgatoryData", v)
|
||||
if configure, ok = v.(*cfg.GameMainlinePurgatory); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_MainlinePurgatoryData", v)
|
||||
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 {
|
||||
this.module.Errorf("get global conf err:%v", err)
|
||||
return
|
||||
} else {
|
||||
var (
|
||||
configure *cfg.GamemainlineHard
|
||||
configure *cfg.GameMainlineHard
|
||||
ok bool
|
||||
)
|
||||
if configure, ok = v.(*cfg.GamemainlineHard); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_mainlineHardData", v)
|
||||
if configure, ok = v.(*cfg.GameMainlineHard); !ok {
|
||||
this.module.Errorf("%T no is *cfg.Game_MainlineHardData", v)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.MartialhallInfoReq)
|
||||
var (
|
||||
err error
|
||||
mart *pb.DBMartialhall
|
||||
mdata *cfg.Gamekungfu_masterworkerData
|
||||
mdata *cfg.GameKungfuMasterworkerData
|
||||
)
|
||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||
code = pb.ErrorCode_DBError
|
||||
|
@ -21,7 +21,7 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.MartialhallPrac
|
||||
err error
|
||||
mart *pb.DBMartialhall
|
||||
pillar *pb.DBPillar
|
||||
mdata *cfg.Gamekungfu_masterworkerData
|
||||
mdata *cfg.GameKungfuMasterworkerData
|
||||
filed string
|
||||
)
|
||||
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
|
||||
mart *pb.DBMartialhall
|
||||
pillar *pb.DBPillar
|
||||
mdata *cfg.Gamekungfu_masterworkerData
|
||||
mdata *cfg.GameKungfuMasterworkerData
|
||||
filed string
|
||||
)
|
||||
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 (
|
||||
err error
|
||||
mart *pb.DBMartialhall
|
||||
mdata *cfg.Gamekungfu_unlockData
|
||||
mdata *cfg.GameKungfuUnlockData
|
||||
pillar *pb.DBPillar
|
||||
filed string
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.MartialhallUpgra
|
||||
var (
|
||||
err error
|
||||
mart *pb.DBMartialhall
|
||||
mdata *cfg.Gamekungfu_masterworkerData
|
||||
mdata *cfg.GameKungfuMasterworkerData
|
||||
)
|
||||
if mart, err = this.module.modelMartialhall.queryUserMartialhall(session.GetUserId()); err != nil {
|
||||
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) {
|
||||
this.MCompConfigure.Init(service, module, comp, options)
|
||||
this.module = module.(*Martialhall)
|
||||
this.LoadConfigure(game_kungfu_unlock, cfg.NewGamekungfu_unlock)
|
||||
this.LoadConfigure(game_kungfu_masterworker, cfg.NewGamekungfu_masterworker)
|
||||
this.LoadConfigure(game_kungfu_unlock, cfg.NewGameKungfuUnlock)
|
||||
this.LoadConfigure(game_kungfu_masterworker, cfg.NewGameKungfuMasterworker)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -37,7 +37,7 @@ func (this *configureComp) getMasterworker(lv int32) (result *cfg.Gamekungfu_mas
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
@ -46,7 +46,7 @@ func (this *configureComp) getMasterworker(lv int32) (result *cfg.Gamekungfu_mas
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -55,7 +55,7 @@ func (this *configureComp) getunlock(pillar int32) (result *cfg.Gamekungfu_unloc
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorln(err)
|
||||
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 {
|
||||
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 {
|
||||
return
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ const (
|
||||
type configureComp struct {
|
||||
cbase.ModuleCompBase
|
||||
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.LoadMultiConfigure(map[string]interface{}{
|
||||
//game_pagoda: cfg.NewGame_pagoda,
|
||||
game_pagodaseasonreward: cfg.NewGamepagodaSeasonReward,
|
||||
game_pagodataskreward: cfg.NewGamepagodaTaskReward,
|
||||
game_pagodaseasonreward: cfg.NewGamePagodaSeasonReward,
|
||||
game_pagodataskreward: cfg.NewGamePagodaTaskReward,
|
||||
})
|
||||
|
||||
this._pagodaMap = make(map[int64]*cfg.GamepagodaData, 0)
|
||||
configure.RegisterConfigure(game_pagoda, cfg.NewGamepagoda, func() {
|
||||
this._pagodaMap = make(map[int64]*cfg.GamePagodaData, 0)
|
||||
configure.RegisterConfigure(game_pagoda, cfg.NewGamePagoda, func() {
|
||||
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()
|
||||
defer this.hlock.Unlock()
|
||||
for _, value := range configure.GetDataList() {
|
||||
@ -50,7 +50,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
||||
}
|
||||
|
||||
// 获取爬塔信息 参数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)]
|
||||
}
|
||||
@ -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 {
|
||||
log.Errorf("get global conf err:%v", err)
|
||||
return
|
||||
} else {
|
||||
var (
|
||||
configure *cfg.Gamepagoda
|
||||
configure *cfg.GamePagoda
|
||||
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)
|
||||
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 {
|
||||
var (
|
||||
configure *cfg.GamepagodaTaskReward
|
||||
configure *cfg.GamePagodaTaskReward
|
||||
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)
|
||||
return
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ func (this *configureComp) getFirstTask() *cfg.GameRdtaskAllData {
|
||||
}
|
||||
if cfg != nil {
|
||||
for _, v := range cfg.GetDataList() {
|
||||
if v.Aftertaks == 0 {
|
||||
if v.Aftertask == 0 {
|
||||
return v
|
||||
}
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ func (this *ModelRtask) doRtaskHandle(uid string, param *pb.RtaskParam) (rtaskId
|
||||
if len(rtask.FrtaskIds) == 0 {
|
||||
conf := this.moduleRtask.configure.getFirstTask()
|
||||
if conf != nil {
|
||||
taskId = conf.Aftertaks
|
||||
taskId = conf.Aftertask
|
||||
}
|
||||
} else {
|
||||
//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 != nil {
|
||||
|
@ -24,7 +24,7 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb
|
||||
var (
|
||||
err error
|
||||
ok bool
|
||||
conf *cfg.GameshopitemData
|
||||
conf *cfg.GameShopitemData
|
||||
shopitem *pb.DBShopItem
|
||||
need []*cfg.Gameatn
|
||||
give []*cfg.Gameatn
|
||||
|
@ -23,11 +23,11 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
||||
var (
|
||||
err error
|
||||
filed string
|
||||
shopconf *cfg.GameshopData
|
||||
shopconf *cfg.GameShopData
|
||||
shopData *pb.DBShop
|
||||
udata *pb.DBUser
|
||||
sdata *pb.UserShopData
|
||||
items []*cfg.GameshopitemData
|
||||
items []*cfg.GameShopitemData
|
||||
ushoputem map[int32]*pb.DBShopItem
|
||||
goods []*pb.ShopItem
|
||||
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 {
|
||||
return
|
||||
}
|
||||
var _items []*cfg.GameshopitemData
|
||||
var _items []*cfg.GameShopitemData
|
||||
for _, v := range shopconf.Shopitem {
|
||||
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
||||
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})
|
||||
} else if !req.IsManualRefresh {
|
||||
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
||||
var _items []*cfg.GameshopitemData
|
||||
var _items []*cfg.GameShopitemData
|
||||
for _, v := range shopconf.Shopitem {
|
||||
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
||||
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) {
|
||||
this.ModuleCompBase.Init(service, module, comp, options)
|
||||
this.module = module.(*Shop)
|
||||
this.LoadConfigure(game_shop, cfg.NewGameshop)
|
||||
this.LoadConfigure(game_shopitem, cfg.NewGameshopitem)
|
||||
this.LoadConfigure(game_shop, cfg.NewGameShop)
|
||||
this.LoadConfigure(game_shopitem, cfg.NewGameShopitem)
|
||||
return
|
||||
}
|
||||
|
||||
//获取装备配置数据
|
||||
func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameshopData, err error) {
|
||||
func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameShopData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -38,7 +38,7 @@ func (this *configureComp) GetShopConfigure(id int32) (configure *cfg.GameshopDa
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -57,7 +57,7 @@ func (this *configureComp) GetShopItemsConfigure(key int32) (result *cfg.Gamesho
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} 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)
|
||||
this.module.Errorf("err:%v", err)
|
||||
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) {
|
||||
result = make([]*cfg.GameshopitemData, 0, 10)
|
||||
func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb.DBUser) (result []*cfg.GameShopitemData, err error) {
|
||||
result = make([]*cfg.GameShopitemData, 0, 10)
|
||||
var (
|
||||
v interface{}
|
||||
table *cfg.Gameshopitem
|
||||
table *cfg.GameShopitem
|
||||
)
|
||||
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
table = v.(*cfg.Gameshopitem)
|
||||
table = v.(*cfg.GameShopitem)
|
||||
for _, v := range table.GetDataMap() {
|
||||
if v.Id == groupid &&
|
||||
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) {
|
||||
result = make([]*cfg.GameshopitemData, 0, len(keys))
|
||||
func (this *configureComp) GetShopItemsConfigureByIds(keys ...int32) (result []*cfg.GameShopitemData, err error) {
|
||||
result = make([]*cfg.GameShopitemData, 0, len(keys))
|
||||
var (
|
||||
v interface{}
|
||||
table *cfg.Gameshopitem
|
||||
item *cfg.GameshopitemData
|
||||
table *cfg.GameShopitem
|
||||
item *cfg.GameShopitemData
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_shopitem); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
table = v.(*cfg.Gameshopitem)
|
||||
table = v.(*cfg.GameShopitem)
|
||||
for _, v := range keys {
|
||||
if item, ok = table.GetDataMap()[v]; ok {
|
||||
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 (
|
||||
totle 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))
|
||||
ok := false
|
||||
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) {
|
||||
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||
this.LoadMultiConfigure(map[string]interface{}{
|
||||
gameTaskRound: cfg.NewGametaskRound,
|
||||
gameActiveReward: cfg.NewGameactiveReward,
|
||||
gameTaskRound: cfg.NewGameTaskRound,
|
||||
gameActiveReward: cfg.NewGameActiveReward,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
//获取活跃度奖励配置
|
||||
func (this *configureComp) getActiveRewardCfg() (data *cfg.GameactiveReward, err error) {
|
||||
func (this *configureComp) getActiveRewardCfg() (data *cfg.GameActiveReward, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -37,7 +37,7 @@ func (this *configureComp) getActiveRewardCfg() (data *cfg.GameactiveReward, err
|
||||
if v, err = this.GetConfigure(gameActiveReward); err != nil {
|
||||
return
|
||||
} 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)
|
||||
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 (
|
||||
v interface{}
|
||||
ok bool
|
||||
@ -54,7 +54,7 @@ func (this *configureComp) getTaskRoundCfg() (data *cfg.GametaskRound, err error
|
||||
if v, err = this.GetConfigure(gameTaskRound); err != nil {
|
||||
return
|
||||
} 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)
|
||||
return
|
||||
}
|
||||
@ -63,7 +63,7 @@ func (this *configureComp) getTaskRoundCfg() (data *cfg.GametaskRound, err error
|
||||
}
|
||||
|
||||
//根据taskId获取配置
|
||||
func (this *configureComp) getTaskById(taskId int32) (data *cfg.GametaskRoundData) {
|
||||
func (this *configureComp) getTaskById(taskId int32) (data *cfg.GameTaskRoundData) {
|
||||
cfg, err := this.getTaskRoundCfg()
|
||||
if err != nil {
|
||||
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))
|
||||
for _, v := range data {
|
||||
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()
|
||||
if err != nil {
|
||||
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()
|
||||
if err != nil {
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
@ -142,7 +142,7 @@ func (this *configureComp) getSortedTasks(taskType int32) (data []*cfg.GametaskR
|
||||
}
|
||||
|
||||
//获取任务配置 条件 tasktag
|
||||
func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GametaskRoundData) {
|
||||
func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GameTaskRoundData) {
|
||||
list, err := this.getTaskList()
|
||||
if err != nil {
|
||||
log.Errorf("%v", err)
|
||||
@ -156,7 +156,7 @@ func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.GametaskRoun
|
||||
return
|
||||
}
|
||||
|
||||
func (this *configureComp) getTaskActiveList() (data []*cfg.GameactiveRewardData) {
|
||||
func (this *configureComp) getTaskActiveList() (data []*cfg.GameActiveRewardData) {
|
||||
conf, err := this.getActiveRewardCfg()
|
||||
if err != nil {
|
||||
log.Errorf("get conf err:%v", err)
|
||||
@ -169,7 +169,7 @@ func (this *configureComp) getTaskActiveList() (data []*cfg.GameactiveRewardData
|
||||
}
|
||||
|
||||
//获取活跃度奖励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()
|
||||
if err != nil {
|
||||
log.Errorf("get conf err:%v", err)
|
||||
@ -187,7 +187,7 @@ func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.Gameac
|
||||
}
|
||||
|
||||
// 获取活跃度配置map
|
||||
func (this *configureComp) getTaskActiveById(id int32) (data *cfg.GameactiveRewardData) {
|
||||
func (this *configureComp) getTaskActiveById(id int32) (data *cfg.GameActiveRewardData) {
|
||||
conf, err := this.getActiveRewardCfg()
|
||||
if err != nil {
|
||||
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"
|
||||
|
||||
type Gamekungfu_masterworkerData struct {
|
||||
type GameKungfuMasterworkerData struct {
|
||||
Level int32
|
||||
Star int32
|
||||
Quality int32
|
||||
@ -26,13 +26,13 @@ type Gamekungfu_masterworkerData struct {
|
||||
Deplete []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_Gamekungfu_masterworkerData = -2026478053
|
||||
const TypeId_GameKungfuMasterworkerData = -203564424
|
||||
|
||||
func (*Gamekungfu_masterworkerData) GetTypeId() int32 {
|
||||
return -2026478053
|
||||
func (*GameKungfuMasterworkerData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -75,8 +75,8 @@ func (_v *Gamekungfu_masterworkerData)Deserialize(_buf map[string]interface{}) (
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamekungfu_masterworkerData(_buf map[string]interface{}) (*Gamekungfu_masterworkerData, error) {
|
||||
v := &Gamekungfu_masterworkerData{}
|
||||
func DeserializeGameKungfuMasterworkerData(_buf map[string]interface{}) (*GameKungfuMasterworkerData, error) {
|
||||
v := &GameKungfuMasterworkerData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} 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"
|
||||
|
||||
type Gamekungfu_unlockData struct {
|
||||
type GameKungfuUnlockData struct {
|
||||
Id int32
|
||||
Type int32
|
||||
Area int32
|
||||
Consume []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_Gamekungfu_unlockData = -515174465
|
||||
const TypeId_GameKungfuUnlockData = 1816415708
|
||||
|
||||
func (*Gamekungfu_unlockData) GetTypeId() int32 {
|
||||
return -515174465
|
||||
func (*GameKungfuUnlockData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -44,8 +44,8 @@ func (_v *Gamekungfu_unlockData)Deserialize(_buf map[string]interface{}) (err er
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamekungfu_unlockData(_buf map[string]interface{}) (*Gamekungfu_unlockData, error) {
|
||||
v := &Gamekungfu_unlockData{}
|
||||
func DeserializeGameKungfuUnlockData(_buf map[string]interface{}) (*GameKungfuUnlockData, error) {
|
||||
v := &GameKungfuUnlockData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
@ -11,70 +11,69 @@ package cfg
|
||||
type JsonLoader func(string) ([]map[string]interface{}, error)
|
||||
|
||||
type Tables struct {
|
||||
global *Gameglobal
|
||||
ui *Gameui
|
||||
plot *Gameplot
|
||||
extservers *Gameextservers
|
||||
skillAtk *GameskillAtk
|
||||
skillAfteratk *GameskillAfteratk
|
||||
skillBuff *GameskillBuff
|
||||
skillPassive *GameskillPassive
|
||||
hero *Gamehero
|
||||
heroStargrow *GameheroStargrow
|
||||
heroLevelgrow *GameheroLevelgrow
|
||||
heroStarup *GameheroStarup
|
||||
heroExp *GameheroExp
|
||||
heroLevelup *GameheroLevelup
|
||||
equip *Gameequip
|
||||
equipAttrlibrary *GameequipAttrlibrary
|
||||
equipSuit *GameequipSuit
|
||||
equipColor *GameequipColor
|
||||
equipIntensify *GameequipIntensify
|
||||
item *Gameitem
|
||||
heroSkillLevel *GameheroSkillLevel
|
||||
heroResonance *GameheroResonance
|
||||
comAtn *GamecomAtn
|
||||
heroAwaken *GameheroAwaken
|
||||
heroMethod *GameheroMethod
|
||||
shop *Gameshop
|
||||
shopitem *Gameshopitem
|
||||
activeReward *GameactiveReward
|
||||
com *Gamecom
|
||||
skill *Gameskill
|
||||
model *Gamemodel
|
||||
mainlineChapter *GamemainlineChapter
|
||||
mainlineEasy *GamemainlineEasy
|
||||
mainlineHard *GamemainlineHard
|
||||
mainlinePurgatory *GamemainlinePurgatory
|
||||
drawCard *GamedrawCard
|
||||
chatChannel *GamechatChannel
|
||||
chatSystem *GamechatSystem
|
||||
chatServerGroup *GamechatServerGroup
|
||||
chatChannelCom *GamechatChannelCom
|
||||
taskRound *GametaskRound
|
||||
taskActiveReward *GametaskActiveReward
|
||||
coin *Gamecoin
|
||||
initial *Gameinitial
|
||||
monster *Gamemonster
|
||||
equipPos *GameequipPos
|
||||
playerlv *Gameplayerlv
|
||||
propsgroup *Gamepropsgroup
|
||||
facemod *Gamefacemod
|
||||
msgdistrib *Gamemsgdistrib
|
||||
language *Gamelanguage
|
||||
opencond *Gameopencond
|
||||
stroy *Gamestroy
|
||||
pagoda *Gamepagoda
|
||||
pagodaTaskReward *GamepagodaTaskReward
|
||||
pagodaSeasonReward *GamepagodaSeasonReward
|
||||
pagodaseasonLoop *GamepagodaseasonLoop
|
||||
Global *GameGlobal
|
||||
Plot *GamePlot
|
||||
Extservers *GameExtservers
|
||||
SkillAtk *GameSkillAtk
|
||||
SkillAfteratk *GameSkillAfteratk
|
||||
SkillBuff *GameSkillBuff
|
||||
SkillPassive *GameSkillPassive
|
||||
Hero *GameHero
|
||||
HeroStargrow *GameHeroStargrow
|
||||
HeroLevelgrow *GameHeroLevelgrow
|
||||
HeroStarup *GameHeroStarup
|
||||
HeroExp *GameHeroExp
|
||||
HeroLevelup *GameHeroLevelup
|
||||
Equip *GameEquip
|
||||
EquipAttrlibrary *GameEquipAttrlibrary
|
||||
EquipSuit *GameEquipSuit
|
||||
EquipColor *GameEquipColor
|
||||
EquipIntensify *GameEquipIntensify
|
||||
Item *GameItem
|
||||
HeroSkillLevel *GameHeroSkillLevel
|
||||
HeroResonance *GameHeroResonance
|
||||
ComAtn *GameComAtn
|
||||
HeroAwaken *GameHeroAwaken
|
||||
HeroMethod *GameHeroMethod
|
||||
Shop *GameShop
|
||||
Shopitem *GameShopitem
|
||||
ActiveReward *GameActiveReward
|
||||
Com *GameCom
|
||||
Skill *GameSkill
|
||||
Model *GameModel
|
||||
MainlineChapter *GameMainlineChapter
|
||||
MainlineEasy *GameMainlineEasy
|
||||
MainlineHard *GameMainlineHard
|
||||
MainlinePurgatory *GameMainlinePurgatory
|
||||
DrawCard *GameDrawCard
|
||||
ChatChannel *GameChatChannel
|
||||
ChatSystem *GameChatSystem
|
||||
ChatServerGroup *GameChatServerGroup
|
||||
ChatChannelCom *GameChatChannelCom
|
||||
TaskRound *GameTaskRound
|
||||
TaskActiveReward *GameTaskActiveReward
|
||||
Coin *GameCoin
|
||||
Initial *GameInitial
|
||||
Monster *GameMonster
|
||||
EquipPos *GameEquipPos
|
||||
Playerlv *GamePlayerlv
|
||||
Propsgroup *GamePropsgroup
|
||||
Facemod *GameFacemod
|
||||
Msgdistrib *GameMsgdistrib
|
||||
Opencond *GameOpencond
|
||||
Stroy *GameStroy
|
||||
Pagoda *GamePagoda
|
||||
PagodaTaskReward *GamePagodaTaskReward
|
||||
PagodaSeasonReward *GamePagodaSeasonReward
|
||||
PagodaseasonLoop *GamePagodaseasonLoop
|
||||
RdtaskAll *GameRdtaskAll
|
||||
RdtaskType *GameRdtaskType
|
||||
RdtaskChoose *GameRdtaskChoose
|
||||
kungfu_unlock *Gamekungfu_unlock
|
||||
kungfu_masterworker *Gamekungfu_masterworker
|
||||
KungfuUnlock *GameKungfuUnlock
|
||||
KungfuMasterworker *GameKungfuMasterworker
|
||||
Gourmet *GameGourmet
|
||||
GourmetSkill *GameGourmetSkill
|
||||
Drop *GameDrop
|
||||
}
|
||||
|
||||
func NewTables(loader JsonLoader) (*Tables, error) {
|
||||
@ -85,343 +84,331 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
||||
if buf, err = loader("game_global") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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 {
|
||||
if tables.Global, err = NewGameGlobal(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_plot") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.plot, err = NewGameplot(buf) ; err != nil {
|
||||
if tables.Plot, err = NewGamePlot(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_extservers") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.extservers, err = NewGameextservers(buf) ; err != nil {
|
||||
if tables.Extservers, err = NewGameExtservers(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_skillatk") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.skillAtk, err = NewGameskillAtk(buf) ; err != nil {
|
||||
if tables.SkillAtk, err = NewGameSkillAtk(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_skillafteratk") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.skillAfteratk, err = NewGameskillAfteratk(buf) ; err != nil {
|
||||
if tables.SkillAfteratk, err = NewGameSkillAfteratk(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_skillbuff") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.skillBuff, err = NewGameskillBuff(buf) ; err != nil {
|
||||
if tables.SkillBuff, err = NewGameSkillBuff(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_skillpassive") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.skillPassive, err = NewGameskillPassive(buf) ; err != nil {
|
||||
if tables.SkillPassive, err = NewGameSkillPassive(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_hero") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.hero, err = NewGamehero(buf) ; err != nil {
|
||||
if tables.Hero, err = NewGameHero(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_herostargrow") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroStargrow, err = NewGameheroStargrow(buf) ; err != nil {
|
||||
if tables.HeroStargrow, err = NewGameHeroStargrow(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_herolevelgrow") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroLevelgrow, err = NewGameheroLevelgrow(buf) ; err != nil {
|
||||
if tables.HeroLevelgrow, err = NewGameHeroLevelgrow(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_herostarup") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroStarup, err = NewGameheroStarup(buf) ; err != nil {
|
||||
if tables.HeroStarup, err = NewGameHeroStarup(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_heroexp") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroExp, err = NewGameheroExp(buf) ; err != nil {
|
||||
if tables.HeroExp, err = NewGameHeroExp(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_herolevelup") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroLevelup, err = NewGameheroLevelup(buf) ; err != nil {
|
||||
if tables.HeroLevelup, err = NewGameHeroLevelup(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equip") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equip, err = NewGameequip(buf) ; err != nil {
|
||||
if tables.Equip, err = NewGameEquip(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equipattrlibrary") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equipAttrlibrary, err = NewGameequipAttrlibrary(buf) ; err != nil {
|
||||
if tables.EquipAttrlibrary, err = NewGameEquipAttrlibrary(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equipsuit") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equipSuit, err = NewGameequipSuit(buf) ; err != nil {
|
||||
if tables.EquipSuit, err = NewGameEquipSuit(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equipcolor") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equipColor, err = NewGameequipColor(buf) ; err != nil {
|
||||
if tables.EquipColor, err = NewGameEquipColor(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equipintensify") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equipIntensify, err = NewGameequipIntensify(buf) ; err != nil {
|
||||
if tables.EquipIntensify, err = NewGameEquipIntensify(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_item") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.item, err = NewGameitem(buf) ; err != nil {
|
||||
if tables.Item, err = NewGameItem(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_heroskilllevel") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroSkillLevel, err = NewGameheroSkillLevel(buf) ; err != nil {
|
||||
if tables.HeroSkillLevel, err = NewGameHeroSkillLevel(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_heroresonance") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroResonance, err = NewGameheroResonance(buf) ; err != nil {
|
||||
if tables.HeroResonance, err = NewGameHeroResonance(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_comatn") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.comAtn, err = NewGamecomAtn(buf) ; err != nil {
|
||||
if tables.ComAtn, err = NewGameComAtn(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_heroawaken") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroAwaken, err = NewGameheroAwaken(buf) ; err != nil {
|
||||
if tables.HeroAwaken, err = NewGameHeroAwaken(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_heromethod") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.heroMethod, err = NewGameheroMethod(buf) ; err != nil {
|
||||
if tables.HeroMethod, err = NewGameHeroMethod(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_shop") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.shop, err = NewGameshop(buf) ; err != nil {
|
||||
if tables.Shop, err = NewGameShop(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_shopitem") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.shopitem, err = NewGameshopitem(buf) ; err != nil {
|
||||
if tables.Shopitem, err = NewGameShopitem(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_activereward") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.activeReward, err = NewGameactiveReward(buf) ; err != nil {
|
||||
if tables.ActiveReward, err = NewGameActiveReward(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_com") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.com, err = NewGamecom(buf) ; err != nil {
|
||||
if tables.Com, err = NewGameCom(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_skill") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.skill, err = NewGameskill(buf) ; err != nil {
|
||||
if tables.Skill, err = NewGameSkill(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_model") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.model, err = NewGamemodel(buf) ; err != nil {
|
||||
if tables.Model, err = NewGameModel(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_mainlinechapter") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.mainlineChapter, err = NewGamemainlineChapter(buf) ; err != nil {
|
||||
if tables.MainlineChapter, err = NewGameMainlineChapter(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_mainlineeasy") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.mainlineEasy, err = NewGamemainlineEasy(buf) ; err != nil {
|
||||
if tables.MainlineEasy, err = NewGameMainlineEasy(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_mainlinehard") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.mainlineHard, err = NewGamemainlineHard(buf) ; err != nil {
|
||||
if tables.MainlineHard, err = NewGameMainlineHard(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_mainlinepurgatory") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.mainlinePurgatory, err = NewGamemainlinePurgatory(buf) ; err != nil {
|
||||
if tables.MainlinePurgatory, err = NewGameMainlinePurgatory(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_drawcard") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.drawCard, err = NewGamedrawCard(buf) ; err != nil {
|
||||
if tables.DrawCard, err = NewGameDrawCard(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_chatchannel") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.chatChannel, err = NewGamechatChannel(buf) ; err != nil {
|
||||
if tables.ChatChannel, err = NewGameChatChannel(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_chatsystem") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.chatSystem, err = NewGamechatSystem(buf) ; err != nil {
|
||||
if tables.ChatSystem, err = NewGameChatSystem(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_chatservergroup") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.chatServerGroup, err = NewGamechatServerGroup(buf) ; err != nil {
|
||||
if tables.ChatServerGroup, err = NewGameChatServerGroup(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_chatchannelcom") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.chatChannelCom, err = NewGamechatChannelCom(buf) ; err != nil {
|
||||
if tables.ChatChannelCom, err = NewGameChatChannelCom(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_taskround") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.taskRound, err = NewGametaskRound(buf) ; err != nil {
|
||||
if tables.TaskRound, err = NewGameTaskRound(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_taskactivereward") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.taskActiveReward, err = NewGametaskActiveReward(buf) ; err != nil {
|
||||
if tables.TaskActiveReward, err = NewGameTaskActiveReward(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_coin") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.coin, err = NewGamecoin(buf) ; err != nil {
|
||||
if tables.Coin, err = NewGameCoin(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_initial") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.initial, err = NewGameinitial(buf) ; err != nil {
|
||||
if tables.Initial, err = NewGameInitial(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_monster") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.monster, err = NewGamemonster(buf) ; err != nil {
|
||||
if tables.Monster, err = NewGameMonster(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_equippos") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.equipPos, err = NewGameequipPos(buf) ; err != nil {
|
||||
if tables.EquipPos, err = NewGameEquipPos(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_playerlv") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.playerlv, err = NewGameplayerlv(buf) ; err != nil {
|
||||
if tables.Playerlv, err = NewGamePlayerlv(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_propsgroup") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.propsgroup, err = NewGamepropsgroup(buf) ; err != nil {
|
||||
if tables.Propsgroup, err = NewGamePropsgroup(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_facemod") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.facemod, err = NewGamefacemod(buf) ; err != nil {
|
||||
if tables.Facemod, err = NewGameFacemod(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_msgdistrib") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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 {
|
||||
if tables.Msgdistrib, err = NewGameMsgdistrib(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_opencond") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.opencond, err = NewGameopencond(buf) ; err != nil {
|
||||
if tables.Opencond, err = NewGameOpencond(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_stroy") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.stroy, err = NewGamestroy(buf) ; err != nil {
|
||||
if tables.Stroy, err = NewGameStroy(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_pagoda") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.pagoda, err = NewGamepagoda(buf) ; err != nil {
|
||||
if tables.Pagoda, err = NewGamePagoda(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_pagodataskreward") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.pagodaTaskReward, err = NewGamepagodaTaskReward(buf) ; err != nil {
|
||||
if tables.PagodaTaskReward, err = NewGamePagodaTaskReward(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_pagodaseasonreward") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.pagodaSeasonReward, err = NewGamepagodaSeasonReward(buf) ; err != nil {
|
||||
if tables.PagodaSeasonReward, err = NewGamePagodaSeasonReward(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_pagodaseasonloop") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.pagodaseasonLoop, err = NewGamepagodaseasonLoop(buf) ; err != nil {
|
||||
if tables.PagodaseasonLoop, err = NewGamePagodaseasonLoop(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_kungfu_unlock") ; err != nil {
|
||||
if buf, err = loader("game_kungfuunlock") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.kungfu_unlock, err = NewGamekungfu_unlock(buf) ; err != nil {
|
||||
if tables.KungfuUnlock, err = NewGameKungfuUnlock(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if buf, err = loader("game_kungfu_masterworker") ; err != nil {
|
||||
if buf, err = loader("game_kungfumasterworker") ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if tables.kungfu_masterworker, err = NewGamekungfu_masterworker(buf) ; err != nil {
|
||||
if tables.KungfuMasterworker, err = NewGameKungfuMasterworker(buf) ; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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 {
|
||||
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
|
||||
}
|
||||
|
@ -14,10 +14,10 @@ type GameChildSkills struct {
|
||||
Id []int32
|
||||
}
|
||||
|
||||
const TypeId_GameChildSkills = -1958253470
|
||||
const TypeId_GameChildSkills = 1493938306
|
||||
|
||||
func (*GameChildSkills) GetTypeId() int32 {
|
||||
return -1958253470
|
||||
return 1493938306
|
||||
}
|
||||
|
||||
func (_v *GameChildSkills)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -18,10 +18,10 @@ type GameDropData struct {
|
||||
P int32
|
||||
}
|
||||
|
||||
const TypeId_GameDropData = 901242325
|
||||
const TypeId_GameDropData = 1700203957
|
||||
|
||||
func (*GameDropData) GetTypeId() int32 {
|
||||
return 901242325
|
||||
return 1700203957
|
||||
}
|
||||
|
||||
func (_v *GameDropData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -21,10 +21,10 @@ type GameFigure struct {
|
||||
Icon string
|
||||
}
|
||||
|
||||
const TypeId_GameFigure = -1818502016
|
||||
const TypeId_GameFigure = -150633376
|
||||
|
||||
func (*GameFigure) GetTypeId() int32 {
|
||||
return -1818502016
|
||||
return -150633376
|
||||
}
|
||||
|
||||
func (_v *GameFigure)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -23,10 +23,10 @@ type GameGourmetData struct {
|
||||
Propsgroup int32
|
||||
}
|
||||
|
||||
const TypeId_GameGourmetData = -359286171
|
||||
const TypeId_GameGourmetData = -1202061691
|
||||
|
||||
func (*GameGourmetData) GetTypeId() int32 {
|
||||
return -359286171
|
||||
return -1202061691
|
||||
}
|
||||
|
||||
func (_v *GameGourmetData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -29,10 +29,10 @@ type GameGourmetSkillData struct {
|
||||
Consume []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_GameGourmetSkillData = 235491264
|
||||
const TypeId_GameGourmetSkillData = 2062196640
|
||||
|
||||
func (*GameGourmetSkillData) GetTypeId() int32 {
|
||||
return 235491264
|
||||
return 2062196640
|
||||
}
|
||||
|
||||
func (_v *GameGourmetSkillData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameactiveReward struct {
|
||||
_dataMap map[int32]*GameactiveRewardData
|
||||
_dataList []*GameactiveRewardData
|
||||
type GameActiveReward struct {
|
||||
_dataMap map[int32]*GameActiveRewardData
|
||||
_dataList []*GameActiveRewardData
|
||||
}
|
||||
|
||||
func NewGameactiveReward(_buf []map[string]interface{}) (*GameactiveReward, error) {
|
||||
_dataList := make([]*GameactiveRewardData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameactiveRewardData)
|
||||
func NewGameActiveReward(_buf []map[string]interface{}) (*GameActiveReward, error) {
|
||||
_dataList := make([]*GameActiveRewardData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameActiveRewardData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameactiveRewardData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameActiveRewardData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameactiveReward) GetDataList() []*GameactiveRewardData {
|
||||
func (table *GameActiveReward) GetDataList() []*GameActiveRewardData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameactiveReward) Get(key int32) *GameactiveRewardData {
|
||||
func (table *GameActiveReward) Get(key int32) *GameActiveRewardData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,20 +10,20 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameactiveRewardData struct {
|
||||
type GameActiveRewardData struct {
|
||||
Key int32
|
||||
IdTag int32
|
||||
Active int32
|
||||
Reword []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_GameactiveRewardData = -41023077
|
||||
const TypeId_GameActiveRewardData = 942906779
|
||||
|
||||
func (*GameactiveRewardData) GetTypeId() int32 {
|
||||
return -41023077
|
||||
func (*GameActiveRewardData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -44,8 +44,8 @@ func (_v *GameactiveRewardData)Deserialize(_buf map[string]interface{}) (err err
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameactiveRewardData(_buf map[string]interface{}) (*GameactiveRewardData, error) {
|
||||
v := &GameactiveRewardData{}
|
||||
func DeserializeGameActiveRewardData(_buf map[string]interface{}) (*GameActiveRewardData, error) {
|
||||
v := &GameActiveRewardData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -16,10 +16,10 @@ type Gameatn struct {
|
||||
N int32
|
||||
}
|
||||
|
||||
const TypeId_Gameatn = -1770297697
|
||||
const TypeId_Gameatn = -1705653569
|
||||
|
||||
func (*Gameatn) GetTypeId() int32 {
|
||||
return -1770297697
|
||||
return -1705653569
|
||||
}
|
||||
|
||||
func (_v *Gameatn)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -16,10 +16,10 @@ type Gamebasepool struct {
|
||||
P string
|
||||
}
|
||||
|
||||
const TypeId_Gamebasepool = -451033879
|
||||
const TypeId_Gamebasepool = 347927753
|
||||
|
||||
func (*Gamebasepool) GetTypeId() int32 {
|
||||
return -451033879
|
||||
return 347927753
|
||||
}
|
||||
|
||||
func (_v *Gamebasepool)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamechatChannel struct {
|
||||
_dataMap map[string]*GamechatChannelData
|
||||
_dataList []*GamechatChannelData
|
||||
type GameChatChannel struct {
|
||||
_dataMap map[string]*GameChatChannelData
|
||||
_dataList []*GameChatChannelData
|
||||
}
|
||||
|
||||
func NewGamechatChannel(_buf []map[string]interface{}) (*GamechatChannel, error) {
|
||||
_dataList := make([]*GamechatChannelData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GamechatChannelData)
|
||||
func NewGameChatChannel(_buf []map[string]interface{}) (*GameChatChannel, error) {
|
||||
_dataList := make([]*GameChatChannelData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameChatChannelData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamechatChannelData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameChatChannelData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamechatChannel) GetDataList() []*GamechatChannelData {
|
||||
func (table *GameChatChannel) GetDataList() []*GameChatChannelData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamechatChannel) Get(key string) *GamechatChannelData {
|
||||
func (table *GameChatChannel) Get(key string) *GameChatChannelData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamechatChannelCom struct {
|
||||
_dataMap map[string]*GamechatChannelComData
|
||||
_dataList []*GamechatChannelComData
|
||||
type GameChatChannelCom struct {
|
||||
_dataMap map[string]*GameChatChannelComData
|
||||
_dataList []*GameChatChannelComData
|
||||
}
|
||||
|
||||
func NewGamechatChannelCom(_buf []map[string]interface{}) (*GamechatChannelCom, error) {
|
||||
_dataList := make([]*GamechatChannelComData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GamechatChannelComData)
|
||||
func NewGameChatChannelCom(_buf []map[string]interface{}) (*GameChatChannelCom, error) {
|
||||
_dataList := make([]*GameChatChannelComData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameChatChannelComData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamechatChannelComData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameChatChannelComData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamechatChannelCom) GetDataList() []*GamechatChannelComData {
|
||||
func (table *GameChatChannelCom) GetDataList() []*GameChatChannelComData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamechatChannelCom) Get(key string) *GamechatChannelComData {
|
||||
func (table *GameChatChannelCom) Get(key string) *GameChatChannelComData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,27 +10,27 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamechatChannelComData struct {
|
||||
type GameChatChannelComData struct {
|
||||
Key string
|
||||
Value int32
|
||||
Dec string
|
||||
}
|
||||
|
||||
const TypeId_GamechatChannelComData = 1284108092
|
||||
const TypeId_GameChatChannelComData = 1947894588
|
||||
|
||||
func (*GamechatChannelComData) GetTypeId() int32 {
|
||||
return 1284108092
|
||||
func (*GameChatChannelComData) GetTypeId() int32 {
|
||||
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; 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 } }
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamechatChannelComData(_buf map[string]interface{}) (*GamechatChannelComData, error) {
|
||||
v := &GamechatChannelComData{}
|
||||
func DeserializeGameChatChannelComData(_buf map[string]interface{}) (*GameChatChannelComData, error) {
|
||||
v := &GameChatChannelComData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -10,27 +10,27 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamechatChannelData struct {
|
||||
type GameChatChannelData struct {
|
||||
Key string
|
||||
TagList int32
|
||||
SpeakCd int32
|
||||
}
|
||||
|
||||
const TypeId_GamechatChannelData = -19547431
|
||||
const TypeId_GameChatChannelData = -819091751
|
||||
|
||||
func (*GamechatChannelData) GetTypeId() int32 {
|
||||
return -19547431
|
||||
func (*GameChatChannelData) GetTypeId() int32 {
|
||||
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; 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_) }
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamechatChannelData(_buf map[string]interface{}) (*GamechatChannelData, error) {
|
||||
v := &GamechatChannelData{}
|
||||
func DeserializeGameChatChannelData(_buf map[string]interface{}) (*GameChatChannelData, error) {
|
||||
v := &GameChatChannelData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamechatServerGroup struct {
|
||||
_dataMap map[string]*GamechatServerGroupData
|
||||
_dataList []*GamechatServerGroupData
|
||||
type GameChatServerGroup struct {
|
||||
_dataMap map[string]*GameChatServerGroupData
|
||||
_dataList []*GameChatServerGroupData
|
||||
}
|
||||
|
||||
func NewGamechatServerGroup(_buf []map[string]interface{}) (*GamechatServerGroup, error) {
|
||||
_dataList := make([]*GamechatServerGroupData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GamechatServerGroupData)
|
||||
func NewGameChatServerGroup(_buf []map[string]interface{}) (*GameChatServerGroup, error) {
|
||||
_dataList := make([]*GameChatServerGroupData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameChatServerGroupData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamechatServerGroupData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameChatServerGroupData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamechatServerGroup) GetDataList() []*GamechatServerGroupData {
|
||||
func (table *GameChatServerGroup) GetDataList() []*GameChatServerGroupData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamechatServerGroup) Get(key string) *GamechatServerGroupData {
|
||||
func (table *GameChatServerGroup) Get(key string) *GameChatServerGroupData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,25 +10,25 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamechatServerGroupData struct {
|
||||
type GameChatServerGroupData struct {
|
||||
Server string
|
||||
Group int32
|
||||
}
|
||||
|
||||
const TypeId_GamechatServerGroupData = 825941074
|
||||
const TypeId_GameChatServerGroupData = -71514030
|
||||
|
||||
func (*GamechatServerGroupData) GetTypeId() int32 {
|
||||
return 825941074
|
||||
func (*GameChatServerGroupData) GetTypeId() int32 {
|
||||
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; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["group"].(float64); !_ok_ { err = errors.New("group error"); return }; _v.Group = int32(_tempNum_) }
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamechatServerGroupData(_buf map[string]interface{}) (*GamechatServerGroupData, error) {
|
||||
v := &GamechatServerGroupData{}
|
||||
func DeserializeGameChatServerGroupData(_buf map[string]interface{}) (*GameChatServerGroupData, error) {
|
||||
v := &GameChatServerGroupData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamechatSystem struct {
|
||||
_dataMap map[int32]*GamechatSystemData
|
||||
_dataList []*GamechatSystemData
|
||||
type GameChatSystem struct {
|
||||
_dataMap map[int32]*GameChatSystemData
|
||||
_dataList []*GameChatSystemData
|
||||
}
|
||||
|
||||
func NewGamechatSystem(_buf []map[string]interface{}) (*GamechatSystem, error) {
|
||||
_dataList := make([]*GamechatSystemData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GamechatSystemData)
|
||||
func NewGameChatSystem(_buf []map[string]interface{}) (*GameChatSystem, error) {
|
||||
_dataList := make([]*GameChatSystemData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameChatSystemData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamechatSystemData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameChatSystemData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamechatSystem) GetDataList() []*GamechatSystemData {
|
||||
func (table *GameChatSystem) GetDataList() []*GameChatSystemData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamechatSystem) Get(key int32) *GamechatSystemData {
|
||||
func (table *GameChatSystem) Get(key int32) *GameChatSystemData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamechatSystemData struct {
|
||||
type GameChatSystemData struct {
|
||||
Key int32
|
||||
Type int32
|
||||
Title string
|
||||
@ -22,13 +22,13 @@ type GamechatSystemData struct {
|
||||
TimeM int32
|
||||
}
|
||||
|
||||
const TypeId_GamechatSystemData = -198348435
|
||||
const TypeId_GameChatSystemData = 52954477
|
||||
|
||||
func (*GamechatSystemData) GetTypeId() int32 {
|
||||
return -198348435
|
||||
func (*GameChatSystemData) GetTypeId() int32 {
|
||||
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["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 } }
|
||||
@ -54,8 +54,8 @@ func (_v *GamechatSystemData)Deserialize(_buf map[string]interface{}) (err error
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamechatSystemData(_buf map[string]interface{}) (*GamechatSystemData, error) {
|
||||
v := &GamechatSystemData{}
|
||||
func DeserializeGameChatSystemData(_buf map[string]interface{}) (*GameChatSystemData, error) {
|
||||
v := &GameChatSystemData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gamecoin struct {
|
||||
_dataMap map[string]*GamecoinData
|
||||
_dataList []*GamecoinData
|
||||
type GameCoin struct {
|
||||
_dataMap map[string]*GameCoinData
|
||||
_dataList []*GameCoinData
|
||||
}
|
||||
|
||||
func NewGamecoin(_buf []map[string]interface{}) (*Gamecoin, error) {
|
||||
_dataList := make([]*GamecoinData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GamecoinData)
|
||||
func NewGameCoin(_buf []map[string]interface{}) (*GameCoin, error) {
|
||||
_dataList := make([]*GameCoinData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameCoinData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamecoinData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameCoinData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gamecoin) GetDataList() []*GamecoinData {
|
||||
func (table *GameCoin) GetDataList() []*GameCoinData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gamecoin) Get(key string) *GamecoinData {
|
||||
func (table *GameCoin) Get(key string) *GameCoinData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamecoinData struct {
|
||||
type GameCoinData struct {
|
||||
Key string
|
||||
Name string
|
||||
Color int32
|
||||
@ -23,13 +23,13 @@ type GamecoinData struct {
|
||||
Intr string
|
||||
}
|
||||
|
||||
const TypeId_GamecoinData = 552622167
|
||||
const TypeId_GameCoinData = 1416227927
|
||||
|
||||
func (*GamecoinData) GetTypeId() int32 {
|
||||
return 552622167
|
||||
func (*GameCoinData) GetTypeId() int32 {
|
||||
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.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_) }
|
||||
@ -43,8 +43,8 @@ func (_v *GamecoinData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamecoinData(_buf map[string]interface{}) (*GamecoinData, error) {
|
||||
v := &GamecoinData{}
|
||||
func DeserializeGameCoinData(_buf map[string]interface{}) (*GameCoinData, error) {
|
||||
v := &GameCoinData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gamecom struct {
|
||||
_dataMap map[int32]*GamecomData
|
||||
_dataList []*GamecomData
|
||||
type GameCom struct {
|
||||
_dataMap map[int32]*GameComData
|
||||
_dataList []*GameComData
|
||||
}
|
||||
|
||||
func NewGamecom(_buf []map[string]interface{}) (*Gamecom, error) {
|
||||
_dataList := make([]*GamecomData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GamecomData)
|
||||
func NewGameCom(_buf []map[string]interface{}) (*GameCom, error) {
|
||||
_dataList := make([]*GameComData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameComData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamecomData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameComData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gamecom) GetDataList() []*GamecomData {
|
||||
func (table *GameCom) GetDataList() []*GameComData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gamecom) Get(key int32) *GamecomData {
|
||||
func (table *GameCom) Get(key int32) *GameComData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamecomAtn struct {
|
||||
_dataMap map[string]*GamecomAtnData
|
||||
_dataList []*GamecomAtnData
|
||||
type GameComAtn struct {
|
||||
_dataMap map[string]*GameComAtnData
|
||||
_dataList []*GameComAtnData
|
||||
}
|
||||
|
||||
func NewGamecomAtn(_buf []map[string]interface{}) (*GamecomAtn, error) {
|
||||
_dataList := make([]*GamecomAtnData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GamecomAtnData)
|
||||
func NewGameComAtn(_buf []map[string]interface{}) (*GameComAtn, error) {
|
||||
_dataList := make([]*GameComAtnData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameComAtnData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamecomAtnData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameComAtnData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamecomAtn) GetDataList() []*GamecomAtnData {
|
||||
func (table *GameComAtn) GetDataList() []*GameComAtnData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamecomAtn) Get(key string) *GamecomAtnData {
|
||||
func (table *GameComAtn) Get(key string) *GameComAtnData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,18 +10,18 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamecomAtnData struct {
|
||||
type GameComAtnData struct {
|
||||
Index string
|
||||
Var []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_GamecomAtnData = 1272050592
|
||||
const TypeId_GameComAtnData = -2026469472
|
||||
|
||||
func (*GamecomAtnData) GetTypeId() int32 {
|
||||
return 1272050592
|
||||
func (*GameComAtnData) GetTypeId() int32 {
|
||||
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 _arr_ []interface{}
|
||||
@ -40,8 +40,8 @@ func (_v *GamecomAtnData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamecomAtnData(_buf map[string]interface{}) (*GamecomAtnData, error) {
|
||||
v := &GamecomAtnData{}
|
||||
func DeserializeGameComAtnData(_buf map[string]interface{}) (*GameComAtnData, error) {
|
||||
v := &GameComAtnData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamecomData struct {
|
||||
type GameComData struct {
|
||||
MaxChar int32
|
||||
TaskReset int32
|
||||
InitGold int32
|
||||
@ -73,13 +73,13 @@ type GamecomData struct {
|
||||
SmithyMaxtime int32
|
||||
}
|
||||
|
||||
const TypeId_GamecomData = -395344177
|
||||
const TypeId_GameComData = 1433629391
|
||||
|
||||
func (*GamecomData) GetTypeId() int32 {
|
||||
return -395344177
|
||||
func (*GameComData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -208,8 +208,8 @@ func (_v *GamecomData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamecomData(_buf map[string]interface{}) (*GamecomData, error) {
|
||||
v := &GamecomData{}
|
||||
func DeserializeGameComData(_buf map[string]interface{}) (*GameComData, error) {
|
||||
v := &GameComData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GamedrawCard struct {
|
||||
_dataMap map[int32]*GamedrawCardData
|
||||
_dataList []*GamedrawCardData
|
||||
type GameDrawCard struct {
|
||||
_dataMap map[int32]*GameDrawCardData
|
||||
_dataList []*GameDrawCardData
|
||||
}
|
||||
|
||||
func NewGamedrawCard(_buf []map[string]interface{}) (*GamedrawCard, error) {
|
||||
_dataList := make([]*GamedrawCardData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GamedrawCardData)
|
||||
func NewGameDrawCard(_buf []map[string]interface{}) (*GameDrawCard, error) {
|
||||
_dataList := make([]*GameDrawCardData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameDrawCardData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamedrawCardData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameDrawCardData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GamedrawCard) GetDataList() []*GamedrawCardData {
|
||||
func (table *GameDrawCard) GetDataList() []*GameDrawCardData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GamedrawCard) Get(key int32) *GamedrawCardData {
|
||||
func (table *GameDrawCard) Get(key int32) *GameDrawCardData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamedrawCardData struct {
|
||||
type GameDrawCardData struct {
|
||||
Key int32
|
||||
RecruitmentType int32
|
||||
CardPoolType string
|
||||
@ -20,13 +20,13 @@ type GamedrawCardData struct {
|
||||
Weight int32
|
||||
}
|
||||
|
||||
const TypeId_GamedrawCardData = -179684166
|
||||
const TypeId_GameDrawCardData = -371601222
|
||||
|
||||
func (*GamedrawCardData) GetTypeId() int32 {
|
||||
return -179684166
|
||||
func (*GameDrawCardData) GetTypeId() int32 {
|
||||
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["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 } }
|
||||
@ -37,8 +37,8 @@ func (_v *GamedrawCardData)Deserialize(_buf map[string]interface{}) (err error)
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGamedrawCardData(_buf map[string]interface{}) (*GamedrawCardData, error) {
|
||||
v := &GamedrawCardData{}
|
||||
func DeserializeGameDrawCardData(_buf map[string]interface{}) (*GameDrawCardData, error) {
|
||||
v := &GameDrawCardData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gameequip struct {
|
||||
_dataMap map[string]*GameequipData
|
||||
_dataList []*GameequipData
|
||||
type GameEquip struct {
|
||||
_dataMap map[string]*GameEquipData
|
||||
_dataList []*GameEquipData
|
||||
}
|
||||
|
||||
func NewGameequip(_buf []map[string]interface{}) (*Gameequip, error) {
|
||||
_dataList := make([]*GameequipData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameequipData)
|
||||
func NewGameEquip(_buf []map[string]interface{}) (*GameEquip, error) {
|
||||
_dataList := make([]*GameEquipData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameEquipData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gameequip) GetDataList() []*GameequipData {
|
||||
func (table *GameEquip) GetDataList() []*GameEquipData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gameequip) Get(key string) *GameequipData {
|
||||
func (table *GameEquip) Get(key string) *GameEquipData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameequipAttrlibrary struct {
|
||||
_dataMap map[int32]*GameequipAttrlibraryData
|
||||
_dataList []*GameequipAttrlibraryData
|
||||
type GameEquipAttrlibrary struct {
|
||||
_dataMap map[int32]*GameEquipAttrlibraryData
|
||||
_dataList []*GameEquipAttrlibraryData
|
||||
}
|
||||
|
||||
func NewGameequipAttrlibrary(_buf []map[string]interface{}) (*GameequipAttrlibrary, error) {
|
||||
_dataList := make([]*GameequipAttrlibraryData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameequipAttrlibraryData)
|
||||
func NewGameEquipAttrlibrary(_buf []map[string]interface{}) (*GameEquipAttrlibrary, error) {
|
||||
_dataList := make([]*GameEquipAttrlibraryData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameEquipAttrlibraryData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipAttrlibraryData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipAttrlibraryData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameequipAttrlibrary) GetDataList() []*GameequipAttrlibraryData {
|
||||
func (table *GameEquipAttrlibrary) GetDataList() []*GameEquipAttrlibraryData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameequipAttrlibrary) Get(key int32) *GameequipAttrlibraryData {
|
||||
func (table *GameEquipAttrlibrary) Get(key int32) *GameEquipAttrlibraryData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipAttrlibraryData struct {
|
||||
type GameEquipAttrlibraryData struct {
|
||||
Key int32
|
||||
Libraryid int32
|
||||
Attrkey string
|
||||
@ -19,13 +19,13 @@ type GameequipAttrlibraryData struct {
|
||||
Addition []int32
|
||||
}
|
||||
|
||||
const TypeId_GameequipAttrlibraryData = -437457248
|
||||
const TypeId_GameEquipAttrlibraryData = 1806205600
|
||||
|
||||
func (*GameequipAttrlibraryData) GetTypeId() int32 {
|
||||
return -437457248
|
||||
func (*GameEquipAttrlibraryData) GetTypeId() int32 {
|
||||
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["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 } }
|
||||
@ -48,8 +48,8 @@ func (_v *GameequipAttrlibraryData)Deserialize(_buf map[string]interface{}) (err
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameequipAttrlibraryData(_buf map[string]interface{}) (*GameequipAttrlibraryData, error) {
|
||||
v := &GameequipAttrlibraryData{}
|
||||
func DeserializeGameEquipAttrlibraryData(_buf map[string]interface{}) (*GameEquipAttrlibraryData, error) {
|
||||
v := &GameEquipAttrlibraryData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameequipColor struct {
|
||||
_dataMap map[int32]*GameequipColorData
|
||||
_dataList []*GameequipColorData
|
||||
type GameEquipColor struct {
|
||||
_dataMap map[int32]*GameEquipColorData
|
||||
_dataList []*GameEquipColorData
|
||||
}
|
||||
|
||||
func NewGameequipColor(_buf []map[string]interface{}) (*GameequipColor, error) {
|
||||
_dataList := make([]*GameequipColorData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameequipColorData)
|
||||
func NewGameEquipColor(_buf []map[string]interface{}) (*GameEquipColor, error) {
|
||||
_dataList := make([]*GameEquipColorData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameEquipColorData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipColorData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipColorData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameequipColor) GetDataList() []*GameequipColorData {
|
||||
func (table *GameEquipColor) GetDataList() []*GameEquipColorData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameequipColor) Get(key int32) *GameequipColorData {
|
||||
func (table *GameEquipColor) Get(key int32) *GameEquipColorData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,25 +10,25 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipColorData struct {
|
||||
type GameEquipColorData struct {
|
||||
Num int32
|
||||
Color string
|
||||
}
|
||||
|
||||
const TypeId_GameequipColorData = 2132033753
|
||||
const TypeId_GameEquipColorData = -1911630631
|
||||
|
||||
func (*GameequipColorData) GetTypeId() int32 {
|
||||
return 2132033753
|
||||
func (*GameEquipColorData) GetTypeId() int32 {
|
||||
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 __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
|
||||
}
|
||||
|
||||
func DeserializeGameequipColorData(_buf map[string]interface{}) (*GameequipColorData, error) {
|
||||
v := &GameequipColorData{}
|
||||
func DeserializeGameEquipColorData(_buf map[string]interface{}) (*GameEquipColorData, error) {
|
||||
v := &GameEquipColorData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipData struct {
|
||||
type GameEquipData struct {
|
||||
Id string
|
||||
Name string
|
||||
Suittype int32
|
||||
@ -27,13 +27,13 @@ type GameequipData struct {
|
||||
Sale []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_GameequipData = 1778846974
|
||||
const TypeId_GameEquipData = -1514145538
|
||||
|
||||
func (*GameequipData) GetTypeId() int32 {
|
||||
return 1778846974
|
||||
func (*GameEquipData) GetTypeId() int32 {
|
||||
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; 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_) }
|
||||
@ -90,8 +90,8 @@ func (_v *GameequipData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameequipData(_buf map[string]interface{}) (*GameequipData, error) {
|
||||
v := &GameequipData{}
|
||||
func DeserializeGameEquipData(_buf map[string]interface{}) (*GameEquipData, error) {
|
||||
v := &GameEquipData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameequipIntensify struct {
|
||||
_dataMap map[int32]*GameequipIntensifyData
|
||||
_dataList []*GameequipIntensifyData
|
||||
type GameEquipIntensify struct {
|
||||
_dataMap map[int32]*GameEquipIntensifyData
|
||||
_dataList []*GameEquipIntensifyData
|
||||
}
|
||||
|
||||
func NewGameequipIntensify(_buf []map[string]interface{}) (*GameequipIntensify, error) {
|
||||
_dataList := make([]*GameequipIntensifyData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameequipIntensifyData)
|
||||
func NewGameEquipIntensify(_buf []map[string]interface{}) (*GameEquipIntensify, error) {
|
||||
_dataList := make([]*GameEquipIntensifyData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameEquipIntensifyData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipIntensifyData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipIntensifyData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameequipIntensify) GetDataList() []*GameequipIntensifyData {
|
||||
func (table *GameEquipIntensify) GetDataList() []*GameEquipIntensifyData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameequipIntensify) Get(key int32) *GameequipIntensifyData {
|
||||
func (table *GameEquipIntensify) Get(key int32) *GameEquipIntensifyData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipIntensifyData struct {
|
||||
type GameEquipIntensifyData struct {
|
||||
Key int32
|
||||
Star int32
|
||||
Level int32
|
||||
@ -21,13 +21,13 @@ type GameequipIntensifyData struct {
|
||||
Num int32
|
||||
}
|
||||
|
||||
const TypeId_GameequipIntensifyData = 1687417591
|
||||
const TypeId_GameEquipIntensifyData = -1943763209
|
||||
|
||||
func (*GameequipIntensifyData) GetTypeId() int32 {
|
||||
return 1687417591
|
||||
func (*GameEquipIntensifyData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -52,8 +52,8 @@ func (_v *GameequipIntensifyData)Deserialize(_buf map[string]interface{}) (err e
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameequipIntensifyData(_buf map[string]interface{}) (*GameequipIntensifyData, error) {
|
||||
v := &GameequipIntensifyData{}
|
||||
func DeserializeGameEquipIntensifyData(_buf map[string]interface{}) (*GameEquipIntensifyData, error) {
|
||||
v := &GameEquipIntensifyData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameequipPos struct {
|
||||
_dataMap map[int32]*GameequipPosData
|
||||
_dataList []*GameequipPosData
|
||||
type GameEquipPos struct {
|
||||
_dataMap map[int32]*GameEquipPosData
|
||||
_dataList []*GameEquipPosData
|
||||
}
|
||||
|
||||
func NewGameequipPos(_buf []map[string]interface{}) (*GameequipPos, error) {
|
||||
_dataList := make([]*GameequipPosData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameequipPosData)
|
||||
func NewGameEquipPos(_buf []map[string]interface{}) (*GameEquipPos, error) {
|
||||
_dataList := make([]*GameEquipPosData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameEquipPosData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipPosData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipPosData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameequipPos) GetDataList() []*GameequipPosData {
|
||||
func (table *GameEquipPos) GetDataList() []*GameEquipPosData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameequipPos) Get(key int32) *GameequipPosData {
|
||||
func (table *GameEquipPos) Get(key int32) *GameEquipPosData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,20 +10,20 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipPosData struct {
|
||||
type GameEquipPosData struct {
|
||||
Pos int32
|
||||
Suitnum int32
|
||||
Leadlibrary []string
|
||||
Addlibrary []string
|
||||
}
|
||||
|
||||
const TypeId_GameequipPosData = 487964234
|
||||
const TypeId_GameEquipPosData = 296047178
|
||||
|
||||
func (*GameequipPosData) GetTypeId() int32 {
|
||||
return 487964234
|
||||
func (*GameEquipPosData) GetTypeId() int32 {
|
||||
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["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
|
||||
}
|
||||
|
||||
func DeserializeGameequipPosData(_buf map[string]interface{}) (*GameequipPosData, error) {
|
||||
v := &GameequipPosData{}
|
||||
func DeserializeGameEquipPosData(_buf map[string]interface{}) (*GameEquipPosData, error) {
|
||||
v := &GameEquipPosData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameequipSuit struct {
|
||||
_dataMap map[int32]*GameequipSuitData
|
||||
_dataList []*GameequipSuitData
|
||||
type GameEquipSuit struct {
|
||||
_dataMap map[int32]*GameEquipSuitData
|
||||
_dataList []*GameEquipSuitData
|
||||
}
|
||||
|
||||
func NewGameequipSuit(_buf []map[string]interface{}) (*GameequipSuit, error) {
|
||||
_dataList := make([]*GameequipSuitData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameequipSuitData)
|
||||
func NewGameEquipSuit(_buf []map[string]interface{}) (*GameEquipSuit, error) {
|
||||
_dataList := make([]*GameEquipSuitData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameEquipSuitData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameequipSuitData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameEquipSuitData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameequipSuit) GetDataList() []*GameequipSuitData {
|
||||
func (table *GameEquipSuit) GetDataList() []*GameEquipSuitData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameequipSuit) Get(key int32) *GameequipSuitData {
|
||||
func (table *GameEquipSuit) Get(key int32) *GameEquipSuitData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameequipSuitData struct {
|
||||
type GameEquipSuitData struct {
|
||||
Suittype int32
|
||||
Suitnum int32
|
||||
Skill int32
|
||||
@ -18,13 +18,13 @@ type GameequipSuitData struct {
|
||||
Skillintr string
|
||||
}
|
||||
|
||||
const TypeId_GameequipSuitData = -332303445
|
||||
const TypeId_GameEquipSuitData = -1986764885
|
||||
|
||||
func (*GameequipSuitData) GetTypeId() int32 {
|
||||
return -332303445
|
||||
func (*GameEquipSuitData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -33,8 +33,8 @@ func (_v *GameequipSuitData)Deserialize(_buf map[string]interface{}) (err error)
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameequipSuitData(_buf map[string]interface{}) (*GameequipSuitData, error) {
|
||||
v := &GameequipSuitData{}
|
||||
func DeserializeGameEquipSuitData(_buf map[string]interface{}) (*GameEquipSuitData, error) {
|
||||
v := &GameEquipSuitData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gameextservers struct {
|
||||
_dataMap map[int32]*GameextserversData
|
||||
_dataList []*GameextserversData
|
||||
type GameExtservers struct {
|
||||
_dataMap map[int32]*GameExtserversData
|
||||
_dataList []*GameExtserversData
|
||||
}
|
||||
|
||||
func NewGameextservers(_buf []map[string]interface{}) (*Gameextservers, error) {
|
||||
_dataList := make([]*GameextserversData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameextserversData)
|
||||
func NewGameExtservers(_buf []map[string]interface{}) (*GameExtservers, error) {
|
||||
_dataList := make([]*GameExtserversData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameExtserversData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameextserversData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameExtserversData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gameextservers) GetDataList() []*GameextserversData {
|
||||
func (table *GameExtservers) GetDataList() []*GameExtserversData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gameextservers) Get(key int32) *GameextserversData {
|
||||
func (table *GameExtservers) Get(key int32) *GameExtserversData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameextserversData struct {
|
||||
type GameExtserversData struct {
|
||||
Index int32
|
||||
Name string
|
||||
Ips string
|
||||
@ -18,13 +18,13 @@ type GameextserversData struct {
|
||||
Sid string
|
||||
}
|
||||
|
||||
const TypeId_GameextserversData = -245856747
|
||||
const TypeId_GameExtserversData = 5446165
|
||||
|
||||
func (*GameextserversData) GetTypeId() int32 {
|
||||
return -245856747
|
||||
func (*GameExtserversData) GetTypeId() int32 {
|
||||
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 __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 } }
|
||||
@ -33,8 +33,8 @@ func (_v *GameextserversData)Deserialize(_buf map[string]interface{}) (err error
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameextserversData(_buf map[string]interface{}) (*GameextserversData, error) {
|
||||
v := &GameextserversData{}
|
||||
func DeserializeGameExtserversData(_buf map[string]interface{}) (*GameExtserversData, error) {
|
||||
v := &GameExtserversData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gamefacemod struct {
|
||||
_dataMap map[int32]*GamefacemodData
|
||||
_dataList []*GamefacemodData
|
||||
type GameFacemod struct {
|
||||
_dataMap map[int32]*GameFacemodData
|
||||
_dataList []*GameFacemodData
|
||||
}
|
||||
|
||||
func NewGamefacemod(_buf []map[string]interface{}) (*Gamefacemod, error) {
|
||||
_dataList := make([]*GamefacemodData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GamefacemodData)
|
||||
func NewGameFacemod(_buf []map[string]interface{}) (*GameFacemod, error) {
|
||||
_dataList := make([]*GameFacemodData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameFacemodData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGamefacemodData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameFacemodData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gamefacemod) GetDataList() []*GamefacemodData {
|
||||
func (table *GameFacemod) GetDataList() []*GameFacemodData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gamefacemod) Get(key int32) *GamefacemodData {
|
||||
func (table *GameFacemod) Get(key int32) *GameFacemodData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,19 +10,19 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GamefacemodData struct {
|
||||
type GameFacemodData struct {
|
||||
Id int32
|
||||
Suitintr string
|
||||
Figure []*GameFigure
|
||||
}
|
||||
|
||||
const TypeId_GamefacemodData = -214755117
|
||||
const TypeId_GameFacemodData = 610338003
|
||||
|
||||
func (*GamefacemodData) GetTypeId() int32 {
|
||||
return -214755117
|
||||
func (*GameFacemodData) GetTypeId() int32 {
|
||||
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; 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
|
||||
}
|
||||
|
||||
func DeserializeGamefacemodData(_buf map[string]interface{}) (*GamefacemodData, error) {
|
||||
v := &GamefacemodData{}
|
||||
func DeserializeGameFacemodData(_buf map[string]interface{}) (*GameFacemodData, error) {
|
||||
v := &GameFacemodData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gameglobal struct {
|
||||
_dataMap map[int32]*GameglobalData
|
||||
_dataList []*GameglobalData
|
||||
type GameGlobal struct {
|
||||
_dataMap map[int32]*GameGlobalData
|
||||
_dataList []*GameGlobalData
|
||||
}
|
||||
|
||||
func NewGameglobal(_buf []map[string]interface{}) (*Gameglobal, error) {
|
||||
_dataList := make([]*GameglobalData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameglobalData)
|
||||
func NewGameGlobal(_buf []map[string]interface{}) (*GameGlobal, error) {
|
||||
_dataList := make([]*GameGlobalData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameGlobalData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameglobalData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameGlobalData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gameglobal) GetDataList() []*GameglobalData {
|
||||
func (table *GameGlobal) GetDataList() []*GameGlobalData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gameglobal) Get(key int32) *GameglobalData {
|
||||
func (table *GameGlobal) Get(key int32) *GameGlobalData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameglobalData struct {
|
||||
type GameGlobalData struct {
|
||||
MaxChar int32
|
||||
TaskReset int32
|
||||
InitGold int32
|
||||
@ -73,13 +73,13 @@ type GameglobalData struct {
|
||||
SmithyMaxtime int32
|
||||
}
|
||||
|
||||
const TypeId_GameglobalData = -518904471
|
||||
const TypeId_GameGlobalData = 477542761
|
||||
|
||||
func (*GameglobalData) GetTypeId() int32 {
|
||||
return -518904471
|
||||
func (*GameGlobalData) GetTypeId() int32 {
|
||||
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["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_) }
|
||||
@ -208,8 +208,8 @@ func (_v *GameglobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameglobalData(_buf map[string]interface{}) (*GameglobalData, error) {
|
||||
v := &GameglobalData{}
|
||||
func DeserializeGameGlobalData(_buf map[string]interface{}) (*GameGlobalData, error) {
|
||||
v := &GameGlobalData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type Gamehero struct {
|
||||
_dataMap map[string]*GameheroData
|
||||
_dataList []*GameheroData
|
||||
type GameHero struct {
|
||||
_dataMap map[string]*GameHeroData
|
||||
_dataList []*GameHeroData
|
||||
}
|
||||
|
||||
func NewGamehero(_buf []map[string]interface{}) (*Gamehero, error) {
|
||||
_dataList := make([]*GameheroData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameheroData)
|
||||
func NewGameHero(_buf []map[string]interface{}) (*GameHero, error) {
|
||||
_dataList := make([]*GameHeroData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameHeroData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *Gamehero) GetDataList() []*GameheroData {
|
||||
func (table *GameHero) GetDataList() []*GameHeroData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *Gamehero) Get(key string) *GameheroData {
|
||||
func (table *GameHero) Get(key string) *GameHeroData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameheroAwaken struct {
|
||||
_dataMap map[int32]*GameheroAwakenData
|
||||
_dataList []*GameheroAwakenData
|
||||
type GameHeroAwaken struct {
|
||||
_dataMap map[int32]*GameHeroAwakenData
|
||||
_dataList []*GameHeroAwakenData
|
||||
}
|
||||
|
||||
func NewGameheroAwaken(_buf []map[string]interface{}) (*GameheroAwaken, error) {
|
||||
_dataList := make([]*GameheroAwakenData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameheroAwakenData)
|
||||
func NewGameHeroAwaken(_buf []map[string]interface{}) (*GameHeroAwaken, error) {
|
||||
_dataList := make([]*GameHeroAwakenData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameHeroAwakenData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroAwakenData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroAwakenData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameheroAwaken) GetDataList() []*GameheroAwakenData {
|
||||
func (table *GameHeroAwaken) GetDataList() []*GameHeroAwakenData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameheroAwaken) Get(key int32) *GameheroAwakenData {
|
||||
func (table *GameHeroAwaken) Get(key int32) *GameHeroAwakenData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameheroAwakenData struct {
|
||||
type GameHeroAwakenData struct {
|
||||
Key int32
|
||||
Hid string
|
||||
Phase int32
|
||||
@ -20,13 +20,13 @@ type GameheroAwakenData struct {
|
||||
Phaseneed []*Gameatn
|
||||
}
|
||||
|
||||
const TypeId_GameheroAwakenData = -1396976663
|
||||
const TypeId_GameHeroAwakenData = -1145673751
|
||||
|
||||
func (*GameheroAwakenData) GetTypeId() int32 {
|
||||
return -1396976663
|
||||
func (*GameHeroAwakenData) GetTypeId() int32 {
|
||||
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; 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_) }
|
||||
@ -63,8 +63,8 @@ func (_v *GameheroAwakenData)Deserialize(_buf map[string]interface{}) (err error
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameheroAwakenData(_buf map[string]interface{}) (*GameheroAwakenData, error) {
|
||||
v := &GameheroAwakenData{}
|
||||
func DeserializeGameHeroAwakenData(_buf map[string]interface{}) (*GameHeroAwakenData, error) {
|
||||
v := &GameHeroAwakenData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -11,7 +11,7 @@ package cfg
|
||||
import "errors"
|
||||
import "bright/serialization"
|
||||
|
||||
type GameheroData struct {
|
||||
type GameHeroData struct {
|
||||
Hid string
|
||||
Name string
|
||||
Star int32
|
||||
@ -39,13 +39,13 @@ type GameheroData struct {
|
||||
Camerainterval float32
|
||||
}
|
||||
|
||||
const TypeId_GameheroData = 650222912
|
||||
const TypeId_GameHeroData = 1513828672
|
||||
|
||||
func (*GameheroData) GetTypeId() int32 {
|
||||
return 650222912
|
||||
func (*GameHeroData) GetTypeId() int32 {
|
||||
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; 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_) }
|
||||
@ -107,8 +107,8 @@ func (_v *GameheroData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameheroData(_buf map[string]interface{}) (*GameheroData, error) {
|
||||
v := &GameheroData{}
|
||||
func DeserializeGameHeroData(_buf map[string]interface{}) (*GameHeroData, error) {
|
||||
v := &GameHeroData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameheroExp struct {
|
||||
_dataMap map[string]*GameheroExpData
|
||||
_dataList []*GameheroExpData
|
||||
type GameHeroExp struct {
|
||||
_dataMap map[string]*GameHeroExpData
|
||||
_dataList []*GameHeroExpData
|
||||
}
|
||||
|
||||
func NewGameheroExp(_buf []map[string]interface{}) (*GameheroExp, error) {
|
||||
_dataList := make([]*GameheroExpData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameheroExpData)
|
||||
func NewGameHeroExp(_buf []map[string]interface{}) (*GameHeroExp, error) {
|
||||
_dataList := make([]*GameHeroExpData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameHeroExpData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroExpData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroExpData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameheroExp) GetDataList() []*GameheroExpData {
|
||||
func (table *GameHeroExp) GetDataList() []*GameHeroExpData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameheroExp) Get(key string) *GameheroExpData {
|
||||
func (table *GameHeroExp) Get(key string) *GameHeroExpData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameheroExpData struct {
|
||||
type GameHeroExpData struct {
|
||||
Hid string
|
||||
Name string
|
||||
Star int32
|
||||
@ -20,13 +20,13 @@ type GameheroExpData struct {
|
||||
Needgold int32
|
||||
}
|
||||
|
||||
const TypeId_GameheroExpData = 2029779473
|
||||
const TypeId_GameHeroExpData = -1440094703
|
||||
|
||||
func (*GameheroExpData) GetTypeId() int32 {
|
||||
return 2029779473
|
||||
func (*GameHeroExpData) GetTypeId() int32 {
|
||||
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.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_) }
|
||||
@ -37,8 +37,8 @@ func (_v *GameheroExpData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameheroExpData(_buf map[string]interface{}) (*GameheroExpData, error) {
|
||||
v := &GameheroExpData{}
|
||||
func DeserializeGameHeroExpData(_buf map[string]interface{}) (*GameHeroExpData, error) {
|
||||
v := &GameHeroExpData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameheroLevelgrow struct {
|
||||
_dataMap map[string]*GameheroLevelgrowData
|
||||
_dataList []*GameheroLevelgrowData
|
||||
type GameHeroLevelgrow struct {
|
||||
_dataMap map[string]*GameHeroLevelgrowData
|
||||
_dataList []*GameHeroLevelgrowData
|
||||
}
|
||||
|
||||
func NewGameheroLevelgrow(_buf []map[string]interface{}) (*GameheroLevelgrow, error) {
|
||||
_dataList := make([]*GameheroLevelgrowData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameheroLevelgrowData)
|
||||
func NewGameHeroLevelgrow(_buf []map[string]interface{}) (*GameHeroLevelgrow, error) {
|
||||
_dataList := make([]*GameHeroLevelgrowData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameHeroLevelgrowData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroLevelgrowData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroLevelgrowData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameheroLevelgrow) GetDataList() []*GameheroLevelgrowData {
|
||||
func (table *GameHeroLevelgrow) GetDataList() []*GameHeroLevelgrowData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameheroLevelgrow) Get(key string) *GameheroLevelgrowData {
|
||||
func (table *GameHeroLevelgrow) Get(key string) *GameHeroLevelgrowData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameheroLevelgrowData struct {
|
||||
type GameHeroLevelgrowData struct {
|
||||
Id string
|
||||
Hp int32
|
||||
Atk int32
|
||||
@ -26,13 +26,13 @@ type GameheroLevelgrowData struct {
|
||||
Speedgrow int32
|
||||
}
|
||||
|
||||
const TypeId_GameheroLevelgrowData = 939442443
|
||||
const TypeId_GameHeroLevelgrowData = 1376496907
|
||||
|
||||
func (*GameheroLevelgrowData) GetTypeId() int32 {
|
||||
return 939442443
|
||||
func (*GameHeroLevelgrowData) GetTypeId() int32 {
|
||||
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; 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_) }
|
||||
@ -49,8 +49,8 @@ func (_v *GameheroLevelgrowData)Deserialize(_buf map[string]interface{}) (err er
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameheroLevelgrowData(_buf map[string]interface{}) (*GameheroLevelgrowData, error) {
|
||||
v := &GameheroLevelgrowData{}
|
||||
func DeserializeGameHeroLevelgrowData(_buf map[string]interface{}) (*GameHeroLevelgrowData, error) {
|
||||
v := &GameHeroLevelgrowData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameheroLevelup struct {
|
||||
_dataMap map[int32]*GameheroLevelupData
|
||||
_dataList []*GameheroLevelupData
|
||||
type GameHeroLevelup struct {
|
||||
_dataMap map[int32]*GameHeroLevelupData
|
||||
_dataList []*GameHeroLevelupData
|
||||
}
|
||||
|
||||
func NewGameheroLevelup(_buf []map[string]interface{}) (*GameheroLevelup, error) {
|
||||
_dataList := make([]*GameheroLevelupData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameheroLevelupData)
|
||||
func NewGameHeroLevelup(_buf []map[string]interface{}) (*GameHeroLevelup, error) {
|
||||
_dataList := make([]*GameHeroLevelupData, 0, len(_buf))
|
||||
dataMap := make(map[int32]*GameHeroLevelupData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroLevelupData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroLevelupData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameheroLevelup) GetDataList() []*GameheroLevelupData {
|
||||
func (table *GameHeroLevelup) GetDataList() []*GameHeroLevelupData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameheroLevelup) Get(key int32) *GameheroLevelupData {
|
||||
func (table *GameHeroLevelup) Get(key int32) *GameHeroLevelupData {
|
||||
return table._dataMap[key]
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ package cfg
|
||||
|
||||
import "errors"
|
||||
|
||||
type GameheroLevelupData struct {
|
||||
type GameHeroLevelupData struct {
|
||||
Level int32
|
||||
Heroexp []*Gameatn
|
||||
Hp float32
|
||||
@ -18,13 +18,13 @@ type GameheroLevelupData struct {
|
||||
Def float32
|
||||
}
|
||||
|
||||
const TypeId_GameheroLevelupData = 1582994195
|
||||
const TypeId_GameHeroLevelupData = 783449875
|
||||
|
||||
func (*GameheroLevelupData) GetTypeId() int32 {
|
||||
return 1582994195
|
||||
func (*GameHeroLevelupData) GetTypeId() int32 {
|
||||
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 _arr_ []interface{}
|
||||
@ -46,8 +46,8 @@ func (_v *GameheroLevelupData)Deserialize(_buf map[string]interface{}) (err erro
|
||||
return
|
||||
}
|
||||
|
||||
func DeserializeGameheroLevelupData(_buf map[string]interface{}) (*GameheroLevelupData, error) {
|
||||
v := &GameheroLevelupData{}
|
||||
func DeserializeGameHeroLevelupData(_buf map[string]interface{}) (*GameHeroLevelupData, error) {
|
||||
v := &GameHeroLevelupData{}
|
||||
if err := v.Deserialize(_buf); err == nil {
|
||||
return v, nil
|
||||
} else {
|
||||
|
@ -8,34 +8,34 @@
|
||||
|
||||
package cfg
|
||||
|
||||
type GameheroMethod struct {
|
||||
_dataMap map[string]*GameheroMethodData
|
||||
_dataList []*GameheroMethodData
|
||||
type GameHeroMethod struct {
|
||||
_dataMap map[string]*GameHeroMethodData
|
||||
_dataList []*GameHeroMethodData
|
||||
}
|
||||
|
||||
func NewGameheroMethod(_buf []map[string]interface{}) (*GameheroMethod, error) {
|
||||
_dataList := make([]*GameheroMethodData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameheroMethodData)
|
||||
func NewGameHeroMethod(_buf []map[string]interface{}) (*GameHeroMethod, error) {
|
||||
_dataList := make([]*GameHeroMethodData, 0, len(_buf))
|
||||
dataMap := make(map[string]*GameHeroMethodData)
|
||||
for _, _ele_ := range _buf {
|
||||
if _v, err2 := DeserializeGameheroMethodData(_ele_); err2 != nil {
|
||||
if _v, err2 := DeserializeGameHeroMethodData(_ele_); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
_dataList = append(_dataList, _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
|
||||
}
|
||||
|
||||
func (table *GameheroMethod) GetDataList() []*GameheroMethodData {
|
||||
func (table *GameHeroMethod) GetDataList() []*GameHeroMethodData {
|
||||
return table._dataList
|
||||
}
|
||||
|
||||
func (table *GameheroMethod) Get(key string) *GameheroMethodData {
|
||||
func (table *GameHeroMethod) Get(key string) *GameHeroMethodData {
|
||||
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