This commit is contained in:
liwei1dao 2022-09-09 11:18:12 +08:00
commit eada2cee45
30 changed files with 13092 additions and 3014 deletions

View File

@ -33,7 +33,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10002",
@ -69,7 +70,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10003",
@ -107,7 +109,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10004",
@ -143,7 +146,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10005",
@ -181,7 +185,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10006",
@ -217,7 +222,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10011",
@ -253,7 +259,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10012",
@ -289,7 +296,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10013",
@ -327,7 +335,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10014",
@ -363,7 +372,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10015",
@ -401,7 +411,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10016",
@ -437,7 +448,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10021",
@ -473,7 +485,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10022",
@ -509,7 +522,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10023",
@ -547,7 +561,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10024",
@ -583,7 +598,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10025",
@ -621,7 +637,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10026",
@ -657,7 +674,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10031",
@ -693,7 +711,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10032",
@ -729,7 +748,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10033",
@ -767,7 +787,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10034",
@ -803,7 +824,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10035",
@ -841,7 +863,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10036",
@ -877,7 +900,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10041",
@ -913,7 +937,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10042",
@ -949,7 +974,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10043",
@ -987,7 +1013,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10044",
@ -1023,7 +1050,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10045",
@ -1061,7 +1089,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10046",
@ -1097,7 +1126,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10051",
@ -1133,7 +1163,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10052",
@ -1169,7 +1200,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10053",
@ -1207,7 +1239,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10054",
@ -1243,7 +1276,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10055",
@ -1281,7 +1315,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "10056",
@ -1317,7 +1352,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11001",
@ -1353,7 +1389,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11002",
@ -1389,7 +1426,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11003",
@ -1427,7 +1465,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11004",
@ -1463,7 +1502,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11005",
@ -1501,7 +1541,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11006",
@ -1537,7 +1578,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11011",
@ -1573,7 +1615,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11012",
@ -1609,7 +1652,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11013",
@ -1647,7 +1691,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11014",
@ -1683,7 +1728,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11015",
@ -1721,7 +1767,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11016",
@ -1757,7 +1804,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11021",
@ -1793,7 +1841,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11022",
@ -1829,7 +1878,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11023",
@ -1867,7 +1917,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11024",
@ -1903,7 +1954,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11025",
@ -1941,7 +1993,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11026",
@ -1977,7 +2030,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11031",
@ -2013,7 +2067,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11032",
@ -2049,7 +2104,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11033",
@ -2087,7 +2143,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11034",
@ -2123,7 +2180,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11035",
@ -2161,7 +2219,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11036",
@ -2197,7 +2256,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11041",
@ -2233,7 +2293,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11042",
@ -2269,7 +2330,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11043",
@ -2307,7 +2369,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11044",
@ -2343,7 +2406,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11045",
@ -2381,7 +2445,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11046",
@ -2417,7 +2482,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11051",
@ -2453,7 +2519,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11052",
@ -2489,7 +2556,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11053",
@ -2527,7 +2595,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11054",
@ -2563,7 +2632,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11055",
@ -2601,7 +2671,8 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
},
{
"id": "11056",
@ -2637,6 +2708,7 @@
"t": "gold",
"n": 1000
}
]
],
"salecoef": 0.5
}
]

View File

@ -2,7 +2,7 @@
{
"suittype": 0,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -15,7 +15,7 @@
{
"suittype": 1,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -28,7 +28,7 @@
{
"suittype": 2,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -41,7 +41,7 @@
{
"suittype": 3,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -54,7 +54,7 @@
{
"suittype": 4,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -67,7 +67,7 @@
{
"suittype": 5,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -80,7 +80,7 @@
{
"suittype": 6,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -93,7 +93,7 @@
{
"suittype": 7,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -106,7 +106,7 @@
{
"suittype": 8,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -119,7 +119,7 @@
{
"suittype": 9,
"suitnum": 4,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -132,7 +132,7 @@
{
"suittype": 100,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -145,7 +145,7 @@
{
"suittype": 101,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -158,7 +158,7 @@
{
"suittype": 102,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -171,7 +171,7 @@
{
"suittype": 103,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -184,7 +184,7 @@
{
"suittype": 104,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"
@ -197,7 +197,7 @@
{
"suittype": 105,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13214",
"text": "圆月套装"
@ -210,7 +210,7 @@
{
"suittype": 106,
"suitnum": 2,
"skill": 100012000,
"skill": 225001214,
"skillname": {
"key": "equip_13213",
"text": "神龙套装"

View File

@ -149,7 +149,8 @@
25001,
25004,
34006,
11017
35001,
35002
]
}
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,242 @@
[
{
"id": 1001,
"robotid": 10001,
"difficulty": 1,
"time": 30
},
{
"id": 1002,
"robotid": 10002,
"difficulty": 2,
"time": 30
},
{
"id": 1003,
"robotid": 10003,
"difficulty": 3,
"time": 30
},
{
"id": 1004,
"robotid": 10004,
"difficulty": 4,
"time": 30
},
{
"id": 1005,
"robotid": 10005,
"difficulty": 5,
"time": 30
},
{
"id": 1006,
"robotid": 10006,
"difficulty": 6,
"time": 30
},
{
"id": 1007,
"robotid": 10007,
"difficulty": 7,
"time": 30
},
{
"id": 1008,
"robotid": 10008,
"difficulty": 8,
"time": 30
},
{
"id": 1009,
"robotid": 10009,
"difficulty": 9,
"time": 30
},
{
"id": 1010,
"robotid": 10010,
"difficulty": 10,
"time": 30
},
{
"id": 2001,
"robotid": 10011,
"difficulty": 1,
"time": 30
},
{
"id": 2002,
"robotid": 10012,
"difficulty": 2,
"time": 30
},
{
"id": 2003,
"robotid": 10013,
"difficulty": 3,
"time": 30
},
{
"id": 2004,
"robotid": 10014,
"difficulty": 4,
"time": 30
},
{
"id": 2005,
"robotid": 10015,
"difficulty": 5,
"time": 30
},
{
"id": 2006,
"robotid": 10016,
"difficulty": 6,
"time": 30
},
{
"id": 2007,
"robotid": 10017,
"difficulty": 7,
"time": 30
},
{
"id": 2008,
"robotid": 10018,
"difficulty": 8,
"time": 30
},
{
"id": 2009,
"robotid": 10019,
"difficulty": 9,
"time": 30
},
{
"id": 2010,
"robotid": 10020,
"difficulty": 10,
"time": 30
},
{
"id": 3001,
"robotid": 10021,
"difficulty": 1,
"time": 30
},
{
"id": 3002,
"robotid": 10022,
"difficulty": 2,
"time": 30
},
{
"id": 3003,
"robotid": 10023,
"difficulty": 3,
"time": 30
},
{
"id": 3004,
"robotid": 10024,
"difficulty": 4,
"time": 30
},
{
"id": 3005,
"robotid": 10025,
"difficulty": 5,
"time": 30
},
{
"id": 3006,
"robotid": 10026,
"difficulty": 6,
"time": 30
},
{
"id": 3007,
"robotid": 10027,
"difficulty": 7,
"time": 30
},
{
"id": 3008,
"robotid": 10028,
"difficulty": 8,
"time": 30
},
{
"id": 3009,
"robotid": 10029,
"difficulty": 9,
"time": 30
},
{
"id": 3010,
"robotid": 10030,
"difficulty": 10,
"time": 30
},
{
"id": 4001,
"robotid": 10031,
"difficulty": 1,
"time": 30
},
{
"id": 4002,
"robotid": 10032,
"difficulty": 2,
"time": 30
},
{
"id": 4003,
"robotid": 10033,
"difficulty": 3,
"time": 30
},
{
"id": 4004,
"robotid": 10034,
"difficulty": 4,
"time": 30
},
{
"id": 4005,
"robotid": 10035,
"difficulty": 5,
"time": 30
},
{
"id": 4006,
"robotid": 10036,
"difficulty": 6,
"time": 30
},
{
"id": 4007,
"robotid": 10037,
"difficulty": 7,
"time": 30
},
{
"id": 4008,
"robotid": 10038,
"difficulty": 8,
"time": 30
},
{
"id": 4009,
"robotid": 10039,
"difficulty": 9,
"time": 30
},
{
"id": 4010,
"robotid": 10040,
"difficulty": 10,
"time": 30
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,462 @@
[
{
"id": 1,
"name": {
"key": "mainline_name_10001",
"text": "Chapter 1"
},
"Intensity": 1,
"map": "zx_ddt_zj01",
"title": {
"key": "mainline_title_10001",
"text": "第1章功夫世界"
},
"desc": {
"key": "mainline_desc_10001",
"text": "故事发生在很久以前的古代中国,而且要从一只喜欢滚来滚去、滚来滚去的大熊猫身上说起。话说熊猫阿宝是一家面条店的学徒,虽然笨手笨脚,也勉强算是谋到了一份职业。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10001",
"text": "金币5000"
},
"Episode": [
101,
102,
103,
104,
105,
106,
107,
108,
109,
110
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 2,
"name": {
"key": "mainline_name_10002",
"text": "Chapter 2"
},
"Intensity": 1,
"map": "zx_ddt_zj02",
"title": {
"key": "mainline_title_10002",
"text": "第2章练功房"
},
"desc": {
"key": "mainline_desc_10002",
"text": "别看阿宝所在的“和平谷”一派欣欣向荣的安详景象,其实是一个卧虎藏龙的风水宝地,先不说五大功夫高手皆坐镇于此,更有一大师级别的宗师在这里隐居。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10002",
"text": "金币5000"
},
"Episode": [
201,
202,
203,
204,
205,
206,
207,
208,
209,
210
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 3,
"name": {
"key": "mainline_name_10003",
"text": "Chapter 3"
},
"Intensity": 1,
"map": "zx_ddt_zj03",
"title": {
"key": "mainline_title_10003",
"text": "第3章太狼来袭"
},
"desc": {
"key": "mainline_desc_10003",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10003",
"text": "金币5000"
},
"Episode": [
301,
302,
303,
304,
305,
306,
307,
308,
309,
310
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 4,
"name": {
"key": "mainline_name_10004",
"text": "Chapter 4"
},
"Intensity": 1,
"map": "zx_ddt_zj04",
"title": {
"key": "mainline_title_10004",
"text": "第4章乌龟大师"
},
"desc": {
"key": "mainline_desc_10004",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10004",
"text": "金币5000"
},
"Episode": [
401,
402,
403,
404,
405,
406,
407,
408,
409,
410
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 5,
"name": {
"key": "mainline_name_10005",
"text": "Chapter 5"
},
"Intensity": 1,
"map": "zx_ddt_zj01",
"title": {
"key": "mainline_title_10005",
"text": "第5章太狼来袭"
},
"desc": {
"key": "mainline_desc_10005",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10005",
"text": "金币5000"
},
"Episode": [
501,
502,
503,
504,
505,
506,
507,
508,
509,
510
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 6,
"name": {
"key": "mainline_name_10006",
"text": "Chapter 6"
},
"Intensity": 1,
"map": "zx_ddt_zj02",
"title": {
"key": "mainline_title_10006",
"text": "第6章乌龟大师"
},
"desc": {
"key": "mainline_desc_10006",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10006",
"text": "金币5000"
},
"Episode": [
601,
602,
603,
604,
605,
606,
607,
608,
609,
610
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 7,
"name": {
"key": "mainline_name_10007",
"text": "Chapter 7"
},
"Intensity": 1,
"map": "zx_ddt_zj03",
"title": {
"key": "mainline_title_10007",
"text": "第7章太狼来袭"
},
"desc": {
"key": "mainline_desc_10007",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10007",
"text": "金币5000"
},
"Episode": [
701,
702,
703,
704,
705,
706,
707,
708,
709,
710
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 8,
"name": {
"key": "mainline_name_10008",
"text": "Chapter 8"
},
"Intensity": 1,
"map": "zx_ddt_zj04",
"title": {
"key": "mainline_title_10008",
"text": "第8章乌龟大师"
},
"desc": {
"key": "mainline_desc_10008",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10008",
"text": "金币5000"
},
"Episode": [
801,
802,
803,
804,
805,
806,
807,
808,
809,
810
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 9,
"name": {
"key": "mainline_name_10009",
"text": "Chapter 9"
},
"Intensity": 1,
"map": "zx_ddt_zj01",
"title": {
"key": "mainline_title_10009",
"text": "第9章太狼来袭"
},
"desc": {
"key": "mainline_desc_10009",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10009",
"text": "金币5000"
},
"Episode": [
901,
902,
903,
904,
905,
906,
907,
908,
909,
910
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
},
{
"id": 10,
"name": {
"key": "mainline_name_10010",
"text": "Chapter 10"
},
"Intensity": 1,
"map": "zx_ddt_zj02",
"title": {
"key": "mainline_title_10010",
"text": "第10章乌龟大师"
},
"desc": {
"key": "mainline_desc_10010",
"text": "可是在一场特殊的比武大会上胜出的人要代表“和平谷”将邪恶的大龙永久地驱除出去,啥都不会的阿宝却在经历了一系列阴差阳错之后屏雀中选,让所有人都大跌眼镜。"
},
"icon": "wp_icon_0002",
"text": {
"key": "mainline_text_10010",
"text": "金币5000"
},
"Episode": [
1001,
1002,
1003,
1004,
1005,
1006,
1007,
1008,
1009,
1010
],
"award": [
{
"a": "item",
"t": "1",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 40000
}
]
}
]

View File

@ -21,7 +21,7 @@
"id": 1002,
"objType": 1,
"location": "middle",
"modelaction": "enter",
"modelaction": "Enter",
"modelstate": 1,
"point": "model_02",
"storyBegin": 4,
@ -49,7 +49,7 @@
"id": 1003,
"objType": 1,
"location": "middle",
"modelaction": "",
"modelaction": "Run",
"modelstate": 2,
"point": "model_03",
"storyBegin": 3,

2442
bin/json/game_robot.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
"des": "这是什么...一朵花?",
"modelstatetarget": "",
"modelstate": 0,
"modelaction": "enter",
"modelaction": "Enter",
"speakstate": "",
"listenstate": "",
"chose": [],
@ -53,8 +53,8 @@
"des": "你干什么?住手!",
"modelstatetarget": "25001",
"modelstate": 1,
"modelaction": "",
"speakstate": "",
"modelaction": "Run",
"speakstate": "Atk2",
"listenstate": "",
"chose": [],
"turn": 0,
@ -95,7 +95,7 @@
"modelstatetarget": "25001",
"modelstate": 2,
"modelaction": "",
"speakstate": "",
"speakstate": "25001_tiaoxin",
"listenstate": "",
"chose": [],
"turn": 0,
@ -341,7 +341,7 @@
"modelstatetarget": "",
"modelstate": 0,
"modelaction": "",
"speakstate": "",
"speakstate": "25001_tiaoxin",
"listenstate": "",
"chose": [],
"turn": 0,
@ -464,7 +464,7 @@
"modelstatetarget": "",
"modelstate": 0,
"modelaction": "",
"speakstate": "",
"speakstate": "25001_tiaoxin",
"listenstate": "",
"chose": [],
"turn": 0,

File diff suppressed because it is too large Load Diff

View File

@ -113,6 +113,7 @@ func (this *ModelHero) copyPoint(m *pb.DBHero) *pb.DBHero {
}
// 克隆一个英雄
// 调用此方法前注意有使用map 切片等指针类型数据是 克隆完成后自行初始化这个指针对象
func (this *ModelHero) CloneNewHero(hero *pb.DBHero) (newHero *pb.DBHero) {
newHero = new(pb.DBHero)
*newHero = *hero //*this.copyPoint(hero)
@ -335,10 +336,6 @@ func (this *ModelHero) setEquipment(hero *pb.DBHero) (newHero *pb.DBHero, err er
this.moduleHero.Errorf("%v", err)
return
}
// 打印
for _, v := range hero.EquipID {
this.moduleHero.Debugf("设置装备%s\n", v)
}
return
}
@ -380,7 +377,7 @@ func (this *ModelHero) mergeEnegryProperty(uid string, hero *pb.DBHero, data map
}
}
//属性计算 - 暂时放在modelHero里实现
//属性计算
//英雄基础属性 + 英雄等级基础属性 * 英雄成长系数 + 英雄星级对应等级属性 * 英雄品质系数
func (this *ModelHero) PropertyCompute(hero *pb.DBHero) {

View File

@ -9,7 +9,7 @@ import (
//参数校验
func (this *apiComp) ChallengeCheck(session comm.IUserSession, req *pb.VikingChallengeReq) (code pb.ErrorCode) {
if req.BossType <= 0 && req.Difficulty > 0 || req.Leadpos >= 5 || len(req.Teamids) == 5 || req.Leadpos < 0 {
if req.BossType <= 0 && req.Difficulty > 0 || req.Leadpos >= 5 || len(req.Teamids) != 5 || req.Leadpos < 0 {
code = pb.ErrorCode_ReqParameterError
return
}
@ -54,7 +54,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
Ptype: pb.PlayType_moonfantasy,
Leadpos: req.Leadpos,
Teamids: req.Teamids,
//Mformat: cfgData.,
Mformat: cfgData.Boss,
})
if code != pb.ErrorCode_Success {
return

View File

@ -15,30 +15,13 @@ type GameHuntingBossData struct {
Type int32
Name string
Difficulty int32
Captionrecommend []int32
Firstprize []*Gameatn
Dropshow []*Gameatn
Drop int32
Bossmodel int32
Npcid1 []int32
Npc1lv int32
Npc1hp float32
Npc1atk float32
Npc1def float32
Npcid2 []int32
Npc2lv int32
Npc2hp float32
Npc2atk float32
Npc2def float32
Npcid3 []int32
Npc3lv int32
Npc3hp float32
Npc3atk float32
Npc3def float32
Bosslv int32
Bosshp float32
Bossatk float32
Bossdef float32
Boss1 int32
Boss2 int32
Boss3 int32
}
const TypeId_GameHuntingBossData = -450881718
@ -52,20 +35,6 @@ func (_v *GameHuntingBossData)Deserialize(_buf map[string]interface{}) (err erro
{ 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 __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["difficulty"].(float64); !_ok_ { err = errors.New("difficulty error"); return }; _v.Difficulty = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["captionrecommend"].([]interface{}); !_ok_ { err = errors.New("captionrecommend error"); return }
_v.Captionrecommend = 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.Captionrecommend = append(_v.Captionrecommend, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
@ -96,64 +65,9 @@ func (_v *GameHuntingBossData)Deserialize(_buf map[string]interface{}) (err erro
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["drop"].(float64); !_ok_ { err = errors.New("drop error"); return }; _v.Drop = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossmodel"].(float64); !_ok_ { err = errors.New("bossmodel error"); return }; _v.Bossmodel = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid1"].([]interface{}); !_ok_ { err = errors.New("npcid1 error"); return }
_v.Npcid1 = 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.Npcid1 = append(_v.Npcid1, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1lv"].(float64); !_ok_ { err = errors.New("npc1lv error"); return }; _v.Npc1lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1hp"].(float64); !_ok_ { err = errors.New("npc1hp error"); return }; _v.Npc1hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1atk"].(float64); !_ok_ { err = errors.New("npc1atk error"); return }; _v.Npc1atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1def"].(float64); !_ok_ { err = errors.New("npc1def error"); return }; _v.Npc1def = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid2"].([]interface{}); !_ok_ { err = errors.New("npcid2 error"); return }
_v.Npcid2 = 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.Npcid2 = append(_v.Npcid2, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2lv"].(float64); !_ok_ { err = errors.New("npc2lv error"); return }; _v.Npc2lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2hp"].(float64); !_ok_ { err = errors.New("npc2hp error"); return }; _v.Npc2hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2atk"].(float64); !_ok_ { err = errors.New("npc2atk error"); return }; _v.Npc2atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2def"].(float64); !_ok_ { err = errors.New("npc2def error"); return }; _v.Npc2def = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid3"].([]interface{}); !_ok_ { err = errors.New("npcid3 error"); return }
_v.Npcid3 = 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.Npcid3 = append(_v.Npcid3, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3lv"].(float64); !_ok_ { err = errors.New("npc3lv error"); return }; _v.Npc3lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3hp"].(float64); !_ok_ { err = errors.New("npc3hp error"); return }; _v.Npc3hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3atk"].(float64); !_ok_ { err = errors.New("npc3atk error"); return }; _v.Npc3atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3def"].(float64); !_ok_ { err = errors.New("npc3def error"); return }; _v.Npc3def = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bosslv"].(float64); !_ok_ { err = errors.New("bosslv error"); return }; _v.Bosslv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bosshp"].(float64); !_ok_ { err = errors.New("bosshp error"); return }; _v.Bosshp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossatk"].(float64); !_ok_ { err = errors.New("bossatk error"); return }; _v.Bossatk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossdef"].(float64); !_ok_ { err = errors.New("bossdef error"); return }; _v.Bossdef = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["boss1"].(float64); !_ok_ { err = errors.New("boss1 error"); return }; _v.Boss1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["boss2"].(float64); !_ok_ { err = errors.New("boss2 error"); return }; _v.Boss2 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["boss3"].(float64); !_ok_ { err = errors.New("boss3 error"); return }; _v.Boss3 = int32(_tempNum_) }
return
}

View 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 GameHuntingLineup struct {
_dataMap map[int32]*GameHuntingLineupData
_dataList []*GameHuntingLineupData
}
func NewGameHuntingLineup(_buf []map[string]interface{}) (*GameHuntingLineup, error) {
_dataList := make([]*GameHuntingLineupData, 0, len(_buf))
dataMap := make(map[int32]*GameHuntingLineupData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameHuntingLineupData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameHuntingLineup{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameHuntingLineup) GetDataMap() map[int32]*GameHuntingLineupData {
return table._dataMap
}
func (table *GameHuntingLineup) GetDataList() []*GameHuntingLineupData {
return table._dataList
}
func (table *GameHuntingLineup) Get(key int32) *GameHuntingLineupData {
return table._dataMap[key]
}

View File

@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <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 GameHuntingLineupData struct {
Id int32
Robotid int32
Difficulty int32
Time int32
}
const TypeId_GameHuntingLineupData = -1759956052
func (*GameHuntingLineupData) GetTypeId() int32 {
return -1759956052
}
func (_v *GameHuntingLineupData)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["robotid"].(float64); !_ok_ { err = errors.New("robotid error"); return }; _v.Robotid = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["difficulty"].(float64); !_ok_ { err = errors.New("difficulty error"); return }; _v.Difficulty = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["time"].(float64); !_ok_ { err = errors.New("time error"); return }; _v.Time = int32(_tempNum_) }
return
}
func DeserializeGameHuntingLineupData(_buf map[string]interface{}) (*GameHuntingLineupData, error) {
v := &GameHuntingLineupData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View 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 GameRDMainline struct {
_dataMap map[int32]*GameRDMainlineData
_dataList []*GameRDMainlineData
}
func NewGameRDMainline(_buf []map[string]interface{}) (*GameRDMainline, error) {
_dataList := make([]*GameRDMainlineData, 0, len(_buf))
dataMap := make(map[int32]*GameRDMainlineData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRDMainlineData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameRDMainline{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRDMainline) GetDataMap() map[int32]*GameRDMainlineData {
return table._dataMap
}
func (table *GameRDMainline) GetDataList() []*GameRDMainlineData {
return table._dataList
}
func (table *GameRDMainline) Get(key int32) *GameRDMainlineData {
return table._dataMap[key]
}

View 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 GameRDMainlineChapter struct {
_dataMap map[int32]*GameRDMainlineChapterData
_dataList []*GameRDMainlineChapterData
}
func NewGameRDMainlineChapter(_buf []map[string]interface{}) (*GameRDMainlineChapter, error) {
_dataList := make([]*GameRDMainlineChapterData, 0, len(_buf))
dataMap := make(map[int32]*GameRDMainlineChapterData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRDMainlineChapterData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameRDMainlineChapter{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRDMainlineChapter) GetDataMap() map[int32]*GameRDMainlineChapterData {
return table._dataMap
}
func (table *GameRDMainlineChapter) GetDataList() []*GameRDMainlineChapterData {
return table._dataList
}
func (table *GameRDMainlineChapter) Get(key int32) *GameRDMainlineChapterData {
return table._dataMap[key]
}

View File

@ -0,0 +1,79 @@
//------------------------------------------------------------------------------
// <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 GameRDMainlineChapterData struct {
Id int32
Name string
Intensity int32
Map string
Title string
Desc string
Icon string
Text string
Episode []int32
Award []*Gameatn
}
const TypeId_GameRDMainlineChapterData = -724417092
func (*GameRDMainlineChapterData) GetTypeId() int32 {
return -724417092
}
func (_v *GameRDMainlineChapterData)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 __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["Intensity"].(float64); !_ok_ { err = errors.New("Intensity error"); return }; _v.Intensity = int32(_tempNum_) }
{ var _ok_ bool; if _v.Map, _ok_ = _buf["map"].(string); !_ok_ { err = errors.New("map error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["title"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Title error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Title, _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["desc"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Desc error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Desc, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Text error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Text, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["Episode"].([]interface{}); !_ok_ { err = errors.New("Episode error"); return }
_v.Episode = 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.Episode = append(_v.Episode, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["award"].([]interface{}); !_ok_ { err = errors.New("award error"); return }
_v.Award = 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.Award = append(_v.Award, _list_v_)
}
}
return
}
func DeserializeGameRDMainlineChapterData(_buf map[string]interface{}) (*GameRDMainlineChapterData, error) {
v := &GameRDMainlineChapterData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -0,0 +1,111 @@
//------------------------------------------------------------------------------
// <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 GameRDMainlineData struct {
Id int32
Episodetype int32
Model string
Effect string
FormatList []int32
CaptainId string
Battlescene string
Sceneeffect string
Award []*Gameatn
Title string
Desc string
Stroyid []int32
Condition []int32
}
const TypeId_GameRDMainlineData = -1625502939
func (*GameRDMainlineData) GetTypeId() int32 {
return -1625502939
}
func (_v *GameRDMainlineData)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["Episodetype"].(float64); !_ok_ { err = errors.New("Episodetype error"); return }; _v.Episodetype = int32(_tempNum_) }
{ var _ok_ bool; if _v.Model, _ok_ = _buf["model"].(string); !_ok_ { err = errors.New("model error"); return } }
{ var _ok_ bool; if _v.Effect, _ok_ = _buf["effect"].(string); !_ok_ { err = errors.New("effect error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["FormatList"].([]interface{}); !_ok_ { err = errors.New("FormatList error"); return }
_v.FormatList = 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.FormatList = append(_v.FormatList, _list_v_)
}
}
{ var _ok_ bool; if _v.CaptainId, _ok_ = _buf["captainId"].(string); !_ok_ { err = errors.New("captainId error"); return } }
{ var _ok_ bool; if _v.Battlescene, _ok_ = _buf["battlescene"].(string); !_ok_ { err = errors.New("battlescene error"); return } }
{ var _ok_ bool; if _v.Sceneeffect, _ok_ = _buf["sceneeffect"].(string); !_ok_ { err = errors.New("sceneeffect error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["award"].([]interface{}); !_ok_ { err = errors.New("award error"); return }
_v.Award = 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.Award = append(_v.Award, _list_v_)
}
}
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["title"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Title error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Title, _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["desc"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Desc error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Desc, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["stroyid"].([]interface{}); !_ok_ { err = errors.New("stroyid error"); return }
_v.Stroyid = 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.Stroyid = append(_v.Stroyid, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["condition"].([]interface{}); !_ok_ { err = errors.New("condition error"); return }
_v.Condition = 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.Condition = append(_v.Condition, _list_v_)
}
}
return
}
func DeserializeGameRDMainlineData(_buf map[string]interface{}) (*GameRDMainlineData, error) {
v := &GameRDMainlineData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View 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 GameRobot struct {
_dataMap map[int32]*GameRobotData
_dataList []*GameRobotData
}
func NewGameRobot(_buf []map[string]interface{}) (*GameRobot, error) {
_dataList := make([]*GameRobotData, 0, len(_buf))
dataMap := make(map[int32]*GameRobotData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRobotData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Robotid] = _v
}
}
return &GameRobot{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRobot) GetDataMap() map[int32]*GameRobotData {
return table._dataMap
}
func (table *GameRobot) GetDataList() []*GameRobotData {
return table._dataList
}
func (table *GameRobot) Get(key int32) *GameRobotData {
return table._dataMap[key]
}

View File

@ -0,0 +1,146 @@
//------------------------------------------------------------------------------
// <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 GameRobotData struct {
Robotid int32
Icon string
Lvshow int32
Name string
Hero1 int32
Lv1 int32
Star1 int32
Equip1 []int32
Hero2 int32
Lv2 int32
Star2 int32
Equip2 []int32
Hero3 int32
Lv3 int32
Star3 int32
Equip3 []int32
Hero4 int32
Lv4 int32
Star4 int32
Equip4 []int32
Hero5 int32
Lv5 int32
Star5 int32
Equip5 []int32
}
const TypeId_GameRobotData = 2060865080
func (*GameRobotData) GetTypeId() int32 {
return 2060865080
}
func (_v *GameRobotData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["robotid"].(float64); !_ok_ { err = errors.New("robotid error"); return }; _v.Robotid = int32(_tempNum_) }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lvshow"].(float64); !_ok_ { err = errors.New("lvshow error"); return }; _v.Lvshow = int32(_tempNum_) }
{ 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["hero1"].(float64); !_ok_ { err = errors.New("hero1 error"); return }; _v.Hero1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv1"].(float64); !_ok_ { err = errors.New("lv1 error"); return }; _v.Lv1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star1"].(float64); !_ok_ { err = errors.New("star1 error"); return }; _v.Star1 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["equip1"].([]interface{}); !_ok_ { err = errors.New("equip1 error"); return }
_v.Equip1 = 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.Equip1 = append(_v.Equip1, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero2"].(float64); !_ok_ { err = errors.New("hero2 error"); return }; _v.Hero2 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv2"].(float64); !_ok_ { err = errors.New("lv2 error"); return }; _v.Lv2 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star2"].(float64); !_ok_ { err = errors.New("star2 error"); return }; _v.Star2 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["equip2"].([]interface{}); !_ok_ { err = errors.New("equip2 error"); return }
_v.Equip2 = 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.Equip2 = append(_v.Equip2, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero3"].(float64); !_ok_ { err = errors.New("hero3 error"); return }; _v.Hero3 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv3"].(float64); !_ok_ { err = errors.New("lv3 error"); return }; _v.Lv3 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star3"].(float64); !_ok_ { err = errors.New("star3 error"); return }; _v.Star3 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["equip3"].([]interface{}); !_ok_ { err = errors.New("equip3 error"); return }
_v.Equip3 = 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.Equip3 = append(_v.Equip3, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero4"].(float64); !_ok_ { err = errors.New("hero4 error"); return }; _v.Hero4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv4"].(float64); !_ok_ { err = errors.New("lv4 error"); return }; _v.Lv4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star4"].(float64); !_ok_ { err = errors.New("star4 error"); return }; _v.Star4 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["equip4"].([]interface{}); !_ok_ { err = errors.New("equip4 error"); return }
_v.Equip4 = 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.Equip4 = append(_v.Equip4, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero5"].(float64); !_ok_ { err = errors.New("hero5 error"); return }; _v.Hero5 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lv5"].(float64); !_ok_ { err = errors.New("lv5 error"); return }; _v.Lv5 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star5"].(float64); !_ok_ { err = errors.New("star5 error"); return }; _v.Star5 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["equip5"].([]interface{}); !_ok_ { err = errors.New("equip5 error"); return }
_v.Equip5 = 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.Equip5 = append(_v.Equip5, _list_v_)
}
}
return
}
func DeserializeGameRobotData(_buf map[string]interface{}) (*GameRobotData, error) {
v := &GameRobotData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -20,25 +20,7 @@ type GameVikingBossData struct {
Dropshow []*Gameatn
Drop int32
Bossmodel int32
Npcid1 []int32
Npc1lv int32
Npc1hp float32
Npc1atk float32
Npc1def float32
Npcid2 []int32
Npc2lv int32
Npc2hp float32
Npc2atk float32
Npc2def float32
Npcid3 []int32
Npc3lv int32
Npc3hp float32
Npc3atk float32
Npc3def float32
Bosslv int32
Bosshp float32
Bossatk float32
Bossdef float32
Boss []int32
}
const TypeId_GameVikingBossData = 550277405
@ -99,61 +81,17 @@ func (_v *GameVikingBossData)Deserialize(_buf map[string]interface{}) (err error
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid1"].([]interface{}); !_ok_ { err = errors.New("npcid1 error"); return }
if _arr_, _ok_ = _buf["boss"].([]interface{}); !_ok_ { err = errors.New("boss error"); return }
_v.Npcid1 = make([]int32, 0, len(_arr_))
_v.Boss = 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.Npcid1 = append(_v.Npcid1, _list_v_)
_v.Boss = append(_v.Boss, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1lv"].(float64); !_ok_ { err = errors.New("npc1lv error"); return }; _v.Npc1lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1hp"].(float64); !_ok_ { err = errors.New("npc1hp error"); return }; _v.Npc1hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1atk"].(float64); !_ok_ { err = errors.New("npc1atk error"); return }; _v.Npc1atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc1def"].(float64); !_ok_ { err = errors.New("npc1def error"); return }; _v.Npc1def = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid2"].([]interface{}); !_ok_ { err = errors.New("npcid2 error"); return }
_v.Npcid2 = 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.Npcid2 = append(_v.Npcid2, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2lv"].(float64); !_ok_ { err = errors.New("npc2lv error"); return }; _v.Npc2lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2hp"].(float64); !_ok_ { err = errors.New("npc2hp error"); return }; _v.Npc2hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2atk"].(float64); !_ok_ { err = errors.New("npc2atk error"); return }; _v.Npc2atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc2def"].(float64); !_ok_ { err = errors.New("npc2def error"); return }; _v.Npc2def = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["npcid3"].([]interface{}); !_ok_ { err = errors.New("npcid3 error"); return }
_v.Npcid3 = 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.Npcid3 = append(_v.Npcid3, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3lv"].(float64); !_ok_ { err = errors.New("npc3lv error"); return }; _v.Npc3lv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3hp"].(float64); !_ok_ { err = errors.New("npc3hp error"); return }; _v.Npc3hp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3atk"].(float64); !_ok_ { err = errors.New("npc3atk error"); return }; _v.Npc3atk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["npc3def"].(float64); !_ok_ { err = errors.New("npc3def error"); return }; _v.Npc3def = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bosslv"].(float64); !_ok_ { err = errors.New("bosslv error"); return }; _v.Bosslv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bosshp"].(float64); !_ok_ { err = errors.New("bosshp error"); return }; _v.Bosshp = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossatk"].(float64); !_ok_ { err = errors.New("bossatk error"); return }; _v.Bossatk = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossdef"].(float64); !_ok_ { err = errors.New("bossdef error"); return }; _v.Bossdef = float32(_tempNum_) }
return
}

View File

@ -41,6 +41,8 @@ type Tables struct {
Model *GameModel
MainlineChapter *GameMainlineChapter
Mainline *GameMainline
RDMainlineChapter *GameRDMainlineChapter
RDMainline *GameRDMainline
DrawCard *GameDrawCard
ChatChannel *GameChatChannel
ChatSystem *GameChatSystem
@ -80,6 +82,7 @@ type Tables struct {
HuntingBoss *GameHuntingBoss
HuntingChallenge *GameHuntingChallenge
HuntingOpenTime *GameHuntingOpenTime
HuntingLineup *GameHuntingLineup
MonsterFormat *GameMonsterFormat
Link *GameLink
GetResource *GameGetResource
@ -93,6 +96,7 @@ type Tables struct {
LibraryHero *GameLibraryHero
LibraryHistory *GameLibraryHistory
LibraryFavor *GameLibraryFavor
Robot *GameRobot
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -280,6 +284,18 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.Mainline, err = NewGameMainline(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_rdmainlinechapter") ; err != nil {
return nil, err
}
if tables.RDMainlineChapter, err = NewGameRDMainlineChapter(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_rdmainline") ; err != nil {
return nil, err
}
if tables.RDMainline, err = NewGameRDMainline(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_drawcard") ; err != nil {
return nil, err
}
@ -514,6 +530,12 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.HuntingOpenTime, err = NewGameHuntingOpenTime(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_huntinglineup") ; err != nil {
return nil, err
}
if tables.HuntingLineup, err = NewGameHuntingLineup(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_monsterformat") ; err != nil {
return nil, err
}
@ -592,5 +614,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.LibraryFavor, err = NewGameLibraryFavor(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_robot") ; err != nil {
return nil, err
}
if tables.Robot, err = NewGameRobot(buf) ; err != nil {
return nil, err
}
return tables, nil
}

View File

@ -25,6 +25,7 @@ type GameEquipData struct {
Ico string
UseSkip int32
Sale []*Gameatn
Salecoef float32
}
const TypeId_GameEquipData = -1514145538
@ -87,6 +88,7 @@ func (_v *GameEquipData)Deserialize(_buf map[string]interface{}) (err error) {
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["salecoef"].(float64); !_ok_ { err = errors.New("salecoef error"); return }; _v.Salecoef = float32(_tempNum_) }
return
}

View File

@ -17,6 +17,7 @@ type GameModelData struct {
Presonshow string
Presonstory string
Height float32
Weight float32
Ico string
Fight string
Img string
@ -39,6 +40,7 @@ func (_v *GameModelData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Presonshow, _ok_ = _buf["presonshow"].(string); !_ok_ { err = errors.New("presonshow error"); return } }
{ var _ok_ bool; if _v.Presonstory, _ok_ = _buf["presonstory"].(string); !_ok_ { err = errors.New("presonstory 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; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weight"].(float64); !_ok_ { err = errors.New("weight error"); return }; _v.Weight = float32(_tempNum_) }
{ 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.Img, _ok_ = _buf["img"].(string); !_ok_ { err = errors.New("img error"); return } }

View File

@ -43,7 +43,7 @@ func (_v *GameSkillAtkData)Deserialize(_buf map[string]interface{}) (err error)
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CD"].(float64); !_ok_ { err = errors.New("CD error"); return }; _v.CD = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Target"].(float64); !_ok_ { err = errors.New("Target error"); return }; _v.Target = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["ChildSkill"].(map[string]interface{}); !_ok_ { err = errors.New("ChildSkill error"); return }; if _v.ChildSkill, err = DeserializeGameChildSkills(_x_); err != nil { return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["Desc"].(string); !_ok_ { err = errors.New("Desc error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["Desc"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Desc error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Desc, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{
var _arr_ []interface{}
var _ok_ bool