Merge branch 'meixiongfeng' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
d181be0334
File diff suppressed because it is too large
Load Diff
19
bin/json/game_linestorychapter.json
Normal file
19
bin/json/game_linestorychapter.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"stroy": 101,
|
||||||
|
"name": "line_1007",
|
||||||
|
"cond": [
|
||||||
|
101
|
||||||
|
],
|
||||||
|
"img": "",
|
||||||
|
"taskid": [
|
||||||
|
1001,
|
||||||
|
1002,
|
||||||
|
1003,
|
||||||
|
1004,
|
||||||
|
1005,
|
||||||
|
1006
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
75
bin/json/game_linestorystagetask.json
Normal file
75
bin/json/game_linestorystagetask.json
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 100101,
|
||||||
|
"posTId": -1,
|
||||||
|
"nextTId": 100102,
|
||||||
|
"cond": [
|
||||||
|
101,
|
||||||
|
102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"jump": "heronewlist"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 100102,
|
||||||
|
"posTId": 100101,
|
||||||
|
"nextTId": 100103,
|
||||||
|
"cond": [
|
||||||
|
104
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"jump": "roleupgrade"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 100103,
|
||||||
|
"posTId": 100102,
|
||||||
|
"nextTId": 100104,
|
||||||
|
"cond": [
|
||||||
|
106
|
||||||
|
],
|
||||||
|
"reward": [],
|
||||||
|
"jump": "equistrengthen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 100104,
|
||||||
|
"posTId": 100103,
|
||||||
|
"nextTId": 100105,
|
||||||
|
"cond": [
|
||||||
|
108
|
||||||
|
],
|
||||||
|
"reward": [],
|
||||||
|
"jump": "roleupgrade"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 100105,
|
||||||
|
"posTId": 100103,
|
||||||
|
"nextTId": -1,
|
||||||
|
"cond": [
|
||||||
|
109
|
||||||
|
],
|
||||||
|
"reward": [],
|
||||||
|
"jump": "roleupgrade"
|
||||||
|
}
|
||||||
|
]
|
134
bin/json/game_linestorytask.json
Normal file
134
bin/json/game_linestorytask.json
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1001,
|
||||||
|
"preTId": -1,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 0,
|
||||||
|
"ending": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1002,
|
||||||
|
"preTId": 1001,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 0,
|
||||||
|
"ending": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003,
|
||||||
|
"preTId": 1002,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 0,
|
||||||
|
"ending": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1004,
|
||||||
|
"preTId": 1002,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 1,
|
||||||
|
"ending": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005,
|
||||||
|
"preTId": 1003,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 0,
|
||||||
|
"ending": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1006,
|
||||||
|
"preTId": 1005,
|
||||||
|
"stageTId": [
|
||||||
|
100101,
|
||||||
|
100102
|
||||||
|
],
|
||||||
|
"reward": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "gold",
|
||||||
|
"n": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"finish": 1,
|
||||||
|
"ending": 1
|
||||||
|
}
|
||||||
|
]
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,9 @@
|
|||||||
"text": "阿宝"
|
"text": "阿宝"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250012,
|
"monster_id": 250012,
|
||||||
@ -17,7 +19,9 @@
|
|||||||
"text": "阿宝"
|
"text": "阿宝"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250013,
|
"monster_id": 250013,
|
||||||
@ -27,7 +31,9 @@
|
|||||||
"text": "阿宝"
|
"text": "阿宝"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250014,
|
"monster_id": 250014,
|
||||||
@ -37,7 +43,9 @@
|
|||||||
"text": "阿宝"
|
"text": "阿宝"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250015,
|
"monster_id": 250015,
|
||||||
@ -47,7 +55,9 @@
|
|||||||
"text": "阿宝"
|
"text": "阿宝"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 340061,
|
"monster_id": 340061,
|
||||||
@ -57,7 +67,9 @@
|
|||||||
"text": "冰霜杰克"
|
"text": "冰霜杰克"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 340062,
|
"monster_id": 340062,
|
||||||
@ -67,7 +79,9 @@
|
|||||||
"text": "冰霜杰克"
|
"text": "冰霜杰克"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 340063,
|
"monster_id": 340063,
|
||||||
@ -77,7 +91,9 @@
|
|||||||
"text": "冰霜杰克"
|
"text": "冰霜杰克"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 340064,
|
"monster_id": 340064,
|
||||||
@ -87,7 +103,9 @@
|
|||||||
"text": "冰霜杰克"
|
"text": "冰霜杰克"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 340065,
|
"monster_id": 340065,
|
||||||
@ -97,7 +115,9 @@
|
|||||||
"text": "冰霜杰克"
|
"text": "冰霜杰克"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 440051,
|
"monster_id": 440051,
|
||||||
@ -107,7 +127,9 @@
|
|||||||
"text": "小伊"
|
"text": "小伊"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 440052,
|
"monster_id": 440052,
|
||||||
@ -117,7 +139,9 @@
|
|||||||
"text": "小伊"
|
"text": "小伊"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 440053,
|
"monster_id": 440053,
|
||||||
@ -127,7 +151,9 @@
|
|||||||
"text": "小伊"
|
"text": "小伊"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 440054,
|
"monster_id": 440054,
|
||||||
@ -137,7 +163,9 @@
|
|||||||
"text": "小伊"
|
"text": "小伊"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 440055,
|
"monster_id": 440055,
|
||||||
@ -147,7 +175,9 @@
|
|||||||
"text": "小伊"
|
"text": "小伊"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 240031,
|
"monster_id": 240031,
|
||||||
@ -157,7 +187,9 @@
|
|||||||
"text": "睡神沙人"
|
"text": "睡神沙人"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 240032,
|
"monster_id": 240032,
|
||||||
@ -167,7 +199,9 @@
|
|||||||
"text": "睡神沙人"
|
"text": "睡神沙人"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 240033,
|
"monster_id": 240033,
|
||||||
@ -177,7 +211,9 @@
|
|||||||
"text": "睡神沙人"
|
"text": "睡神沙人"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 240034,
|
"monster_id": 240034,
|
||||||
@ -187,7 +223,9 @@
|
|||||||
"text": "睡神沙人"
|
"text": "睡神沙人"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 240035,
|
"monster_id": 240035,
|
||||||
@ -197,7 +235,9 @@
|
|||||||
"text": "睡神沙人"
|
"text": "睡神沙人"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350021,
|
"monster_id": 350021,
|
||||||
@ -207,7 +247,9 @@
|
|||||||
"text": "希卡普"
|
"text": "希卡普"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350022,
|
"monster_id": 350022,
|
||||||
@ -217,7 +259,9 @@
|
|||||||
"text": "希卡普"
|
"text": "希卡普"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350023,
|
"monster_id": 350023,
|
||||||
@ -227,7 +271,9 @@
|
|||||||
"text": "希卡普"
|
"text": "希卡普"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350024,
|
"monster_id": 350024,
|
||||||
@ -237,7 +283,9 @@
|
|||||||
"text": "希卡普"
|
"text": "希卡普"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350025,
|
"monster_id": 350025,
|
||||||
@ -247,7 +295,9 @@
|
|||||||
"text": "希卡普"
|
"text": "希卡普"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350011,
|
"monster_id": 350011,
|
||||||
@ -257,7 +307,9 @@
|
|||||||
"text": "师父"
|
"text": "师父"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350012,
|
"monster_id": 350012,
|
||||||
@ -267,7 +319,9 @@
|
|||||||
"text": "师父"
|
"text": "师父"
|
||||||
},
|
},
|
||||||
"star": 2,
|
"star": 2,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350013,
|
"monster_id": 350013,
|
||||||
@ -277,7 +331,9 @@
|
|||||||
"text": "师父"
|
"text": "师父"
|
||||||
},
|
},
|
||||||
"star": 3,
|
"star": 3,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350014,
|
"monster_id": 350014,
|
||||||
@ -287,7 +343,9 @@
|
|||||||
"text": "师父"
|
"text": "师父"
|
||||||
},
|
},
|
||||||
"star": 4,
|
"star": 4,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 350015,
|
"monster_id": 350015,
|
||||||
@ -297,7 +355,9 @@
|
|||||||
"text": "师父"
|
"text": "师父"
|
||||||
},
|
},
|
||||||
"star": 5,
|
"star": 5,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250041,
|
"monster_id": 250041,
|
||||||
@ -307,7 +367,9 @@
|
|||||||
"text": "波比"
|
"text": "波比"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250042,
|
"monster_id": 250042,
|
||||||
@ -317,7 +379,9 @@
|
|||||||
"text": "波比"
|
"text": "波比"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250043,
|
"monster_id": 250043,
|
||||||
@ -327,7 +391,9 @@
|
|||||||
"text": "波比"
|
"text": "波比"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250044,
|
"monster_id": 250044,
|
||||||
@ -337,7 +403,9 @@
|
|||||||
"text": "波比"
|
"text": "波比"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"monster_id": 250045,
|
"monster_id": 250045,
|
||||||
@ -347,6 +415,8 @@
|
|||||||
"text": "波比"
|
"text": "波比"
|
||||||
},
|
},
|
||||||
"star": 1,
|
"star": 1,
|
||||||
"equip": "10001|10002|10003|10004"
|
"equip": [
|
||||||
|
1
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
File diff suppressed because it is too large
Load Diff
@ -934,8 +934,8 @@
|
|||||||
"Target": 1,
|
"Target": 1,
|
||||||
"ChildSkill": {
|
"ChildSkill": {
|
||||||
"Id": [
|
"Id": [
|
||||||
224003161,
|
224003211,
|
||||||
224003162
|
224003212
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Desc": "",
|
"Desc": "",
|
||||||
|
@ -28,7 +28,7 @@ func compose(parallelisms, dataSize []int, numKeys int, builders []TargetBuilder
|
|||||||
benchmarks := make([]Benchmark, 0, len(parallelisms)*len(dataSize)*len(builders))
|
benchmarks := make([]Benchmark, 0, len(parallelisms)*len(dataSize)*len(builders))
|
||||||
|
|
||||||
for _, p := range parallelisms {
|
for _, p := range parallelisms {
|
||||||
for _, _ = range dataSize {
|
for range dataSize {
|
||||||
|
|
||||||
for _, builder := range builders {
|
for _, builder := range builders {
|
||||||
benchmarks = append(benchmarks, Benchmark{
|
benchmarks = append(benchmarks, Benchmark{
|
||||||
|
@ -10,34 +10,34 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
game_vikingboss = "game_vikingboss.json"
|
game_huntingboss = "game_huntingboss.json"
|
||||||
game_challenge = "game_vikingchallenge.json"
|
game_challenge = "game_huntingchallenge.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
///配置管理基础组件
|
///配置管理基础组件
|
||||||
type configureComp struct {
|
type configureComp struct {
|
||||||
hlock sync.RWMutex
|
hlock sync.RWMutex
|
||||||
modules.MCompConfigure
|
modules.MCompConfigure
|
||||||
_vikingMap map[int64]*cfg.GameHuntingBossData
|
_huntingMap map[int64]*cfg.GameHuntingBossData
|
||||||
}
|
}
|
||||||
|
|
||||||
//组件初始化接口
|
//组件初始化接口
|
||||||
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
err = this.MCompConfigure.Init(service, module, comp, options)
|
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||||
|
|
||||||
this._vikingMap = make(map[int64]*cfg.GameHuntingBossData, 0)
|
this._huntingMap = make(map[int64]*cfg.GameHuntingBossData, 0)
|
||||||
configure.RegisterConfigure(game_vikingboss, cfg.NewGameHuntingBoss, func() {
|
configure.RegisterConfigure(game_huntingboss, cfg.NewGameHuntingBoss, func() {
|
||||||
if v, err := this.GetConfigure(game_vikingboss); err == nil {
|
if v, err := this.GetConfigure(game_huntingboss); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameHuntingBoss); ok {
|
if configure, ok := v.(*cfg.GameHuntingBoss); ok {
|
||||||
this.hlock.Lock()
|
this.hlock.Lock()
|
||||||
defer this.hlock.Unlock()
|
defer this.hlock.Unlock()
|
||||||
for _, value := range configure.GetDataList() {
|
for _, value := range configure.GetDataList() {
|
||||||
this._vikingMap[int64(value.Type<<16)+int64(value.Difficulty)] = value
|
this._huntingMap[int64(value.Type<<16)+int64(value.Difficulty)] = value
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Errorf("get game_vikingboss conf err:%v", err)
|
log.Errorf("get game_huntingboss conf err:%v", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
})
|
})
|
||||||
@ -48,7 +48,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
// 参数: boss类型 难度
|
// 参数: boss类型 难度
|
||||||
func (this *configureComp) GetHuntingBossConfigData(bossType int32, difficulty int32) (data *cfg.GameHuntingBossData) {
|
func (this *configureComp) GetHuntingBossConfigData(bossType int32, difficulty int32) (data *cfg.GameHuntingBossData) {
|
||||||
|
|
||||||
return this._vikingMap[int64(bossType<<16)+int64(difficulty)]
|
return this._huntingMap[int64(bossType<<16)+int64(difficulty)]
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载多个配置文件
|
//加载多个配置文件
|
||||||
@ -72,7 +72,7 @@ func (this *configureComp) GetConfigure(name string) (v interface{}, err error)
|
|||||||
func (this *configureComp) GetHuntingBossTypeConfigData() (mapType map[int32]struct{}) {
|
func (this *configureComp) GetHuntingBossTypeConfigData() (mapType map[int32]struct{}) {
|
||||||
|
|
||||||
mapType = make(map[int32]struct{}, 0)
|
mapType = make(map[int32]struct{}, 0)
|
||||||
if v, err := this.GetConfigure(game_vikingboss); err == nil {
|
if v, err := this.GetConfigure(game_huntingboss); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameHuntingBoss); ok {
|
if configure, ok := v.(*cfg.GameHuntingBoss); ok {
|
||||||
this.hlock.Lock()
|
this.hlock.Lock()
|
||||||
defer this.hlock.Unlock()
|
defer this.hlock.Unlock()
|
||||||
|
@ -131,13 +131,14 @@ func (this *modelSmithy) CalculationSmithy(uid string, smithy *pb.DBSmithy) {
|
|||||||
if curTime > costTime {
|
if curTime > costTime {
|
||||||
// 转时间戳
|
// 转时间戳
|
||||||
smithy.Clang.DeskType = order.DeskType
|
smithy.Clang.DeskType = order.DeskType
|
||||||
|
|
||||||
smithy.Clang.ETime = time.Now().Unix() + int64(curTime-costTime)
|
smithy.Clang.ETime = time.Now().Unix() + int64(curTime-costTime)
|
||||||
smithy.Clang.STime = smithy.Clang.ETime - int64(szTime[order.DeskType])
|
smithy.Clang.STime = smithy.Clang.ETime - int64(szTime[order.DeskType])
|
||||||
bCooking = true
|
bCooking = true
|
||||||
|
|
||||||
// 记录下订单时间
|
// 记录下订单时间
|
||||||
smithy.Ctime = time.Now().Unix()
|
smithy.Ctime = time.Now().Unix()
|
||||||
mapData["ctime"] = smithy.Ctime
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
smithy.Items = this.module.configure.GetMultipleDropReward(_smithycfg.Using, _smithycfg.Drop, smithy.Items) // 获取掉落奖励
|
smithy.Items = this.module.configure.GetMultipleDropReward(_smithycfg.Using, _smithycfg.Drop, smithy.Items) // 获取掉落奖励
|
||||||
@ -173,6 +174,7 @@ func (this *modelSmithy) CalculationSmithy(uid string, smithy *pb.DBSmithy) {
|
|||||||
mapData["orders"] = smithy.Orders
|
mapData["orders"] = smithy.Orders
|
||||||
mapData["orderCostTime"] = smithy.OrderCostTime
|
mapData["orderCostTime"] = smithy.OrderCostTime
|
||||||
mapData["clang"] = smithy.Clang // 正在做的
|
mapData["clang"] = smithy.Clang // 正在做的
|
||||||
|
mapData["ctime"] = smithy.Ctime
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *modelSmithy) CalculationDeskSkillLv(uid string, Smithy *pb.DBSmithy) {
|
func (this *modelSmithy) CalculationDeskSkillLv(uid string, Smithy *pb.DBSmithy) {
|
||||||
|
@ -37,13 +37,11 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
cfg := this.module.configure.GetVikingBossConfigData(req.BossType, req.Difficulty)
|
cfg := this.module.configure.GetVikingBossConfigData(req.BossType, req.Difficulty)
|
||||||
if cfg != nil {
|
if cfg == nil {
|
||||||
code = pb.ErrorCode_ConfigNoFound
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 类型校验
|
|
||||||
BossData := this.configure.GetVikingBossConfigData(req.BossType, req.Difficulty)
|
|
||||||
if BossData != nil {
|
|
||||||
if value, ok := viking.Boss[req.BossType]; !ok { // 类型校验
|
if value, ok := viking.Boss[req.BossType]; !ok { // 类型校验
|
||||||
viking.Boss[req.BossType] = 0
|
viking.Boss[req.BossType] = 0
|
||||||
if value < req.Difficulty {
|
if value < req.Difficulty {
|
||||||
@ -56,7 +54,6 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
|
|||||||
newChallenge = false
|
newChallenge = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if newChallenge { // 新关卡挑战通过 发放首通奖励
|
if newChallenge { // 新关卡挑战通过 发放首通奖励
|
||||||
if code = this.module.DispenseRes(session, cfg.Firstprize, true); code != pb.ErrorCode_Success {
|
if code = this.module.DispenseRes(session, cfg.Firstprize, true); code != pb.ErrorCode_Success {
|
||||||
|
@ -9,7 +9,9 @@ import (
|
|||||||
|
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) RankListCheck(session comm.IUserSession, req *pb.VikingRankListReq) (code pb.ErrorCode) {
|
func (this *apiComp) RankListCheck(session comm.IUserSession, req *pb.VikingRankListReq) (code pb.ErrorCode) {
|
||||||
|
if req.BoosType == 0 {
|
||||||
|
code = pb.ErrorCode_ReqParameterError
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19,7 +21,7 @@ func (this *apiComp) RankList(session comm.IUserSession, req *pb.VikingRankListR
|
|||||||
if code != pb.ErrorCode_Success {
|
if code != pb.ErrorCode_Success {
|
||||||
return // 参数校验失败直接返回
|
return // 参数校验失败直接返回
|
||||||
}
|
}
|
||||||
szRank, err := this.module.modulerank.GetRankData()
|
szRank, err := this.module.modulerank.GetRankData(req.BoosType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
}
|
}
|
||||||
|
@ -54,9 +54,14 @@ func (this *ModelRank) ChangeUserRank(uid string, value map[string]interface{})
|
|||||||
return this.Change(uid, value)
|
return this.Change(uid, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *ModelRank) GetRankData() (data []*pb.DBVikingRank, err error) {
|
func (this *ModelRank) GetRankData(bossType int32) (data []*pb.DBVikingRank, err error) {
|
||||||
|
tmpdata := make([]*pb.DBVikingRank, 0)
|
||||||
data = make([]*pb.DBVikingRank, 0)
|
data = make([]*pb.DBVikingRank, 0)
|
||||||
err = this.Redis.LRange(comm.TableVikingRank, 0, -1, &data)
|
err = this.Redis.LRange(comm.TableVikingRank, 0, -1, &tmpdata)
|
||||||
|
for _, v := range tmpdata {
|
||||||
|
if v.Bosstype == bossType {
|
||||||
|
data = append(data, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -308,6 +308,8 @@ type VikingRankListReq struct {
|
|||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
BoosType int32 `protobuf:"varint,1,opt,name=boosType,proto3" json:"boosType"` // boss 类型
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *VikingRankListReq) Reset() {
|
func (x *VikingRankListReq) Reset() {
|
||||||
@ -342,6 +344,13 @@ func (*VikingRankListReq) Descriptor() ([]byte, []int) {
|
|||||||
return file_viking_viking_msg_proto_rawDescGZIP(), []int{6}
|
return file_viking_viking_msg_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *VikingRankListReq) GetBoosType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BoosType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type VikingRankListResp struct {
|
type VikingRankListResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -413,13 +422,15 @@ var file_viking_viking_msg_proto_rawDesc = []byte{
|
|||||||
0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0d, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0d, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
||||||
0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
||||||
0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x11, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2f, 0x0a, 0x11, 0x56, 0x69, 0x6b, 0x69, 0x6e,
|
||||||
0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x39, 0x0a, 0x12,
|
0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
|
||||||
0x73, 0x70, 0x12, 0x23, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x22, 0x39, 0x0a, 0x12, 0x56, 0x69, 0x6b, 0x69,
|
||||||
0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b,
|
0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23,
|
||||||
0x52, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x44, 0x42, 0x56, 0x69, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x05, 0x72, 0x61,
|
||||||
|
0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
"go_dreamfactory/modules/gm"
|
"go_dreamfactory/modules/gm"
|
||||||
"go_dreamfactory/modules/gourmet"
|
"go_dreamfactory/modules/gourmet"
|
||||||
"go_dreamfactory/modules/hero"
|
"go_dreamfactory/modules/hero"
|
||||||
|
"go_dreamfactory/modules/hunting"
|
||||||
"go_dreamfactory/modules/items"
|
"go_dreamfactory/modules/items"
|
||||||
"go_dreamfactory/modules/mail"
|
"go_dreamfactory/modules/mail"
|
||||||
"go_dreamfactory/modules/mainline"
|
"go_dreamfactory/modules/mainline"
|
||||||
@ -72,6 +73,7 @@ func main() {
|
|||||||
viking.NewModule(),
|
viking.NewModule(),
|
||||||
smithy.NewModule(),
|
smithy.NewModule(),
|
||||||
moonfantasy.NewModule(),
|
moonfantasy.NewModule(),
|
||||||
|
hunting.NewModule(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
42
sys/configure/structs/Game.LineStoryChapter.go
Normal file
42
sys/configure/structs/Game.LineStoryChapter.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 GameLineStoryChapter struct {
|
||||||
|
_dataMap map[int32]*GameLineStoryChapterData
|
||||||
|
_dataList []*GameLineStoryChapterData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameLineStoryChapter(_buf []map[string]interface{}) (*GameLineStoryChapter, error) {
|
||||||
|
_dataList := make([]*GameLineStoryChapterData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameLineStoryChapterData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameLineStoryChapterData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Id] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameLineStoryChapter{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryChapter) GetDataMap() map[int32]*GameLineStoryChapterData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryChapter) GetDataList() []*GameLineStoryChapterData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryChapter) Get(key int32) *GameLineStoryChapterData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
71
sys/configure/structs/Game.LineStoryChapterData.go
Normal file
71
sys/configure/structs/Game.LineStoryChapterData.go
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type GameLineStoryChapterData struct {
|
||||||
|
Id int32
|
||||||
|
Stroy int32
|
||||||
|
Name string
|
||||||
|
Cond []int32
|
||||||
|
Img string
|
||||||
|
Taskid []int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const TypeId_GameLineStoryChapterData = -1620958734
|
||||||
|
|
||||||
|
func (*GameLineStoryChapterData) GetTypeId() int32 {
|
||||||
|
return -1620958734
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_v *GameLineStoryChapterData)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["stroy"].(float64); !_ok_ { err = errors.New("stroy error"); return }; _v.Stroy = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["cond"].([]interface{}); !_ok_ { err = errors.New("cond error"); return }
|
||||||
|
|
||||||
|
_v.Cond = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.Cond = append(_v.Cond, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{ var _ok_ bool; if _v.Img, _ok_ = _buf["img"].(string); !_ok_ { err = errors.New("img error"); return } }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["taskid"].([]interface{}); !_ok_ { err = errors.New("taskid error"); return }
|
||||||
|
|
||||||
|
_v.Taskid = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.Taskid = append(_v.Taskid, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeserializeGameLineStoryChapterData(_buf map[string]interface{}) (*GameLineStoryChapterData, error) {
|
||||||
|
v := &GameLineStoryChapterData{}
|
||||||
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
|
return v, nil
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
42
sys/configure/structs/Game.LineStoryStageTask.go
Normal file
42
sys/configure/structs/Game.LineStoryStageTask.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 GameLineStoryStageTask struct {
|
||||||
|
_dataMap map[int32]*GameLineStoryStageTaskData
|
||||||
|
_dataList []*GameLineStoryStageTaskData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameLineStoryStageTask(_buf []map[string]interface{}) (*GameLineStoryStageTask, error) {
|
||||||
|
_dataList := make([]*GameLineStoryStageTaskData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameLineStoryStageTaskData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameLineStoryStageTaskData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Id] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameLineStoryStageTask{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryStageTask) GetDataMap() map[int32]*GameLineStoryStageTaskData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryStageTask) GetDataList() []*GameLineStoryStageTaskData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryStageTask) Get(key int32) *GameLineStoryStageTaskData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
71
sys/configure/structs/Game.LineStoryStageTaskData.go
Normal file
71
sys/configure/structs/Game.LineStoryStageTaskData.go
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type GameLineStoryStageTaskData struct {
|
||||||
|
Id int32
|
||||||
|
PosTId int32
|
||||||
|
NextTId int32
|
||||||
|
Cond []int32
|
||||||
|
Reward []*Gameatn
|
||||||
|
Jump string
|
||||||
|
}
|
||||||
|
|
||||||
|
const TypeId_GameLineStoryStageTaskData = 884678024
|
||||||
|
|
||||||
|
func (*GameLineStoryStageTaskData) GetTypeId() int32 {
|
||||||
|
return 884678024
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_v *GameLineStoryStageTaskData)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["posTId"].(float64); !_ok_ { err = errors.New("posTId error"); return }; _v.PosTId = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextTId"].(float64); !_ok_ { err = errors.New("nextTId error"); return }; _v.NextTId = int32(_tempNum_) }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["cond"].([]interface{}); !_ok_ { err = errors.New("cond error"); return }
|
||||||
|
|
||||||
|
_v.Cond = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.Cond = append(_v.Cond, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["reward"].([]interface{}); !_ok_ { err = errors.New("reward error"); return }
|
||||||
|
|
||||||
|
_v.Reward = make([]*Gameatn, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ *Gameatn
|
||||||
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
|
_v.Reward = append(_v.Reward, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{ var _ok_ bool; if _v.Jump, _ok_ = _buf["jump"].(string); !_ok_ { err = errors.New("jump error"); return } }
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeserializeGameLineStoryStageTaskData(_buf map[string]interface{}) (*GameLineStoryStageTaskData, error) {
|
||||||
|
v := &GameLineStoryStageTaskData{}
|
||||||
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
|
return v, nil
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
42
sys/configure/structs/Game.LineStoryTask.go
Normal file
42
sys/configure/structs/Game.LineStoryTask.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 GameLineStoryTask struct {
|
||||||
|
_dataMap map[int32]*GameLineStoryTaskData
|
||||||
|
_dataList []*GameLineStoryTaskData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameLineStoryTask(_buf []map[string]interface{}) (*GameLineStoryTask, error) {
|
||||||
|
_dataList := make([]*GameLineStoryTaskData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameLineStoryTaskData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameLineStoryTaskData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Id] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameLineStoryTask{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryTask) GetDataMap() map[int32]*GameLineStoryTaskData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryTask) GetDataList() []*GameLineStoryTaskData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameLineStoryTask) Get(key int32) *GameLineStoryTaskData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
71
sys/configure/structs/Game.LineStoryTaskData.go
Normal file
71
sys/configure/structs/Game.LineStoryTaskData.go
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <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
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type GameLineStoryTaskData struct {
|
||||||
|
Id int32
|
||||||
|
PreTId int32
|
||||||
|
StageTId []int32
|
||||||
|
Reward []*Gameatn
|
||||||
|
Finish int32
|
||||||
|
Ending int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const TypeId_GameLineStoryTaskData = -2080476076
|
||||||
|
|
||||||
|
func (*GameLineStoryTaskData) GetTypeId() int32 {
|
||||||
|
return -2080476076
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_v *GameLineStoryTaskData)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["preTId"].(float64); !_ok_ { err = errors.New("preTId error"); return }; _v.PreTId = int32(_tempNum_) }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["stageTId"].([]interface{}); !_ok_ { err = errors.New("stageTId error"); return }
|
||||||
|
|
||||||
|
_v.StageTId = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.StageTId = append(_v.StageTId, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["reward"].([]interface{}); !_ok_ { err = errors.New("reward error"); return }
|
||||||
|
|
||||||
|
_v.Reward = make([]*Gameatn, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ *Gameatn
|
||||||
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
|
_v.Reward = append(_v.Reward, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["finish"].(float64); !_ok_ { err = errors.New("finish error"); return }; _v.Finish = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ending"].(float64); !_ok_ { err = errors.New("ending error"); return }; _v.Ending = int32(_tempNum_) }
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeserializeGameLineStoryTaskData(_buf map[string]interface{}) (*GameLineStoryTaskData, error) {
|
||||||
|
v := &GameLineStoryTaskData{}
|
||||||
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
|
return v, nil
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
@ -84,6 +84,9 @@ type Tables struct {
|
|||||||
Link *GameLink
|
Link *GameLink
|
||||||
GetResource *GameGetResource
|
GetResource *GameGetResource
|
||||||
Affix *GameAffix
|
Affix *GameAffix
|
||||||
|
LineStoryChapter *GameLineStoryChapter
|
||||||
|
LineStoryTask *GameLineStoryTask
|
||||||
|
LineStoryStageTask *GameLineStoryStageTask
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTables(loader JsonLoader) (*Tables, error) {
|
func NewTables(loader JsonLoader) (*Tables, error) {
|
||||||
@ -529,5 +532,23 @@ func NewTables(loader JsonLoader) (*Tables, error) {
|
|||||||
if tables.Affix, err = NewGameAffix(buf) ; err != nil {
|
if tables.Affix, err = NewGameAffix(buf) ; err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if buf, err = loader("game_linestorychapter") ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if tables.LineStoryChapter, err = NewGameLineStoryChapter(buf) ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if buf, err = loader("game_linestorytask") ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if tables.LineStoryTask, err = NewGameLineStoryTask(buf) ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if buf, err = loader("game_linestorystagetask") ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if tables.LineStoryStageTask, err = NewGameLineStoryStageTask(buf) ; err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return tables, nil
|
return tables, nil
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,8 @@ type GameHeroData struct {
|
|||||||
Race int32
|
Race int32
|
||||||
Job int32
|
Job int32
|
||||||
Type int32
|
Type int32
|
||||||
|
Ip int32
|
||||||
|
Sd int32
|
||||||
Handbook int32
|
Handbook int32
|
||||||
Prefab string
|
Prefab string
|
||||||
Rotation string
|
Rotation string
|
||||||
@ -53,6 +55,8 @@ func (_v *GameHeroData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["race"].(float64); !_ok_ { err = errors.New("race error"); return }; _v.Race = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["race"].(float64); !_ok_ { err = errors.New("race error"); return }; _v.Race = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["job"].(float64); !_ok_ { err = errors.New("job error"); return }; _v.Job = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["job"].(float64); !_ok_ { err = errors.New("job error"); return }; _v.Job = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ip"].(float64); !_ok_ { err = errors.New("ip error"); return }; _v.Ip = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["sd"].(float64); !_ok_ { err = errors.New("sd error"); return }; _v.Sd = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["handbook"].(float64); !_ok_ { err = errors.New("handbook error"); return }; _v.Handbook = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["handbook"].(float64); !_ok_ { err = errors.New("handbook error"); return }; _v.Handbook = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Prefab, _ok_ = _buf["prefab"].(string); !_ok_ { err = errors.New("prefab error"); return } }
|
{ var _ok_ bool; if _v.Prefab, _ok_ = _buf["prefab"].(string); !_ok_ { err = errors.New("prefab error"); return } }
|
||||||
{ var _ok_ bool; if _v.Rotation, _ok_ = _buf["rotation"].(string); !_ok_ { err = errors.New("rotation error"); return } }
|
{ var _ok_ bool; if _v.Rotation, _ok_ = _buf["rotation"].(string); !_ok_ { err = errors.New("rotation error"); return } }
|
||||||
|
@ -15,6 +15,7 @@ type GameModelData struct {
|
|||||||
Id string
|
Id string
|
||||||
Preson string
|
Preson string
|
||||||
Presonshow string
|
Presonshow string
|
||||||
|
Height float32
|
||||||
Ico string
|
Ico string
|
||||||
Fight string
|
Fight string
|
||||||
Img string
|
Img string
|
||||||
@ -35,6 +36,7 @@ func (_v *GameModelData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
{ var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } }
|
||||||
{ var _ok_ bool; if _v.Preson, _ok_ = _buf["preson"].(string); !_ok_ { err = errors.New("preson error"); return } }
|
{ var _ok_ bool; if _v.Preson, _ok_ = _buf["preson"].(string); !_ok_ { err = errors.New("preson error"); return } }
|
||||||
{ var _ok_ bool; if _v.Presonshow, _ok_ = _buf["presonshow"].(string); !_ok_ { err = errors.New("presonshow error"); return } }
|
{ var _ok_ bool; if _v.Presonshow, _ok_ = _buf["presonshow"].(string); !_ok_ { err = errors.New("presonshow error"); return } }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["height"].(float64); !_ok_ { err = errors.New("height error"); return }; _v.Height = float32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Ico, _ok_ = _buf["ico"].(string); !_ok_ { err = errors.New("ico error"); return } }
|
{ var _ok_ bool; if _v.Ico, _ok_ = _buf["ico"].(string); !_ok_ { err = errors.New("ico error"); return } }
|
||||||
{ var _ok_ bool; if _v.Fight, _ok_ = _buf["fight"].(string); !_ok_ { err = errors.New("fight error"); return } }
|
{ var _ok_ bool; if _v.Fight, _ok_ = _buf["fight"].(string); !_ok_ { err = errors.New("fight error"); return } }
|
||||||
{ var _ok_ bool; if _v.Img, _ok_ = _buf["img"].(string); !_ok_ { err = errors.New("img error"); return } }
|
{ var _ok_ bool; if _v.Img, _ok_ = _buf["img"].(string); !_ok_ { err = errors.New("img error"); return } }
|
||||||
|
@ -15,7 +15,7 @@ type GameMonsterData struct {
|
|||||||
HeroId string
|
HeroId string
|
||||||
Name string
|
Name string
|
||||||
Star int32
|
Star int32
|
||||||
Equip string
|
Equip []int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameMonsterData = 31965864
|
const TypeId_GameMonsterData = 31965864
|
||||||
@ -29,7 +29,20 @@ func (_v *GameMonsterData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
{ var _ok_ bool; if _v.HeroId, _ok_ = _buf["hero_id"].(string); !_ok_ { err = errors.New("hero_id error"); return } }
|
{ var _ok_ bool; if _v.HeroId, _ok_ = _buf["hero_id"].(string); !_ok_ { err = errors.New("hero_id error"); return } }
|
||||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Equip, _ok_ = _buf["equip"].(string); !_ok_ { err = errors.New("equip error"); return } }
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["equip"].([]interface{}); !_ok_ { err = errors.New("equip error"); return }
|
||||||
|
|
||||||
|
_v.Equip = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.Equip = append(_v.Equip, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,12 +17,12 @@ type GameSkillAfteratkData struct {
|
|||||||
Where []string
|
Where []string
|
||||||
Order []string
|
Order []string
|
||||||
Limit int32
|
Limit int32
|
||||||
Type int32
|
|
||||||
ExecuteCnt int32
|
ExecuteCnt int32
|
||||||
|
Type int32
|
||||||
Argu []int32
|
Argu []int32
|
||||||
FollowSK []int32
|
FollowSK []int32
|
||||||
SucFollowSK []string
|
SucFollowSK []int32
|
||||||
FailFollowSK []string
|
FailFollowSK []int32
|
||||||
MustHit bool
|
MustHit bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,8 +65,8 @@ func (_v *GameSkillAfteratkData)Deserialize(_buf map[string]interface{}) (err er
|
|||||||
}
|
}
|
||||||
|
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Limit"].(float64); !_ok_ { err = errors.New("Limit error"); return }; _v.Limit = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Limit"].(float64); !_ok_ { err = errors.New("Limit error"); return }; _v.Limit = 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["ExecuteCnt"].(float64); !_ok_ { err = errors.New("ExecuteCnt error"); return }; _v.ExecuteCnt = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ExecuteCnt"].(float64); !_ok_ { err = errors.New("ExecuteCnt error"); return }; _v.ExecuteCnt = 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 _arr_ []interface{}
|
var _arr_ []interface{}
|
||||||
var _ok_ bool
|
var _ok_ bool
|
||||||
@ -100,11 +100,11 @@ func (_v *GameSkillAfteratkData)Deserialize(_buf map[string]interface{}) (err er
|
|||||||
var _ok_ bool
|
var _ok_ bool
|
||||||
if _arr_, _ok_ = _buf["SucFollowSK"].([]interface{}); !_ok_ { err = errors.New("SucFollowSK error"); return }
|
if _arr_, _ok_ = _buf["SucFollowSK"].([]interface{}); !_ok_ { err = errors.New("SucFollowSK error"); return }
|
||||||
|
|
||||||
_v.SucFollowSK = make([]string, 0, len(_arr_))
|
_v.SucFollowSK = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
for _, _e_ := range _arr_ {
|
for _, _e_ := range _arr_ {
|
||||||
var _list_v_ string
|
var _list_v_ int32
|
||||||
{ if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
_v.SucFollowSK = append(_v.SucFollowSK, _list_v_)
|
_v.SucFollowSK = append(_v.SucFollowSK, _list_v_)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,11 +114,11 @@ func (_v *GameSkillAfteratkData)Deserialize(_buf map[string]interface{}) (err er
|
|||||||
var _ok_ bool
|
var _ok_ bool
|
||||||
if _arr_, _ok_ = _buf["FailFollowSK"].([]interface{}); !_ok_ { err = errors.New("FailFollowSK error"); return }
|
if _arr_, _ok_ = _buf["FailFollowSK"].([]interface{}); !_ok_ { err = errors.New("FailFollowSK error"); return }
|
||||||
|
|
||||||
_v.FailFollowSK = make([]string, 0, len(_arr_))
|
_v.FailFollowSK = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
for _, _e_ := range _arr_ {
|
for _, _e_ := range _arr_ {
|
||||||
var _list_v_ string
|
var _list_v_ int32
|
||||||
{ if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
_v.FailFollowSK = append(_v.FailFollowSK, _list_v_)
|
_v.FailFollowSK = append(_v.FailFollowSK, _list_v_)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user