配置更新

This commit is contained in:
meixiongfeng 2023-02-22 12:08:44 +08:00
parent a498860214
commit d90e938959
12 changed files with 1041 additions and 573 deletions

View File

@ -5,8 +5,8 @@
"card_pool_type": "base_pool1",
"star": 3,
"race": 1,
"id": "35006",
"weight": 10000
"id": "34006",
"weight": 1000
},
{
"key": 2,
@ -14,7 +14,7 @@
"card_pool_type": "base_pool1",
"star": 4,
"race": 1,
"id": "24004",
"id": "34006",
"weight": 1000
},
{
@ -23,7 +23,7 @@
"card_pool_type": "base_pool1",
"star": 5,
"race": 1,
"id": "24004",
"id": "34006",
"weight": 1000
},
{
@ -32,7 +32,7 @@
"card_pool_type": "base_pool2",
"star": 3,
"race": 1,
"id": "25001",
"id": "24002",
"weight": 1000
},
{
@ -41,7 +41,7 @@
"card_pool_type": "base_pool2",
"star": 4,
"race": 1,
"id": "25001",
"id": "24002",
"weight": 1000
},
{
@ -50,7 +50,7 @@
"card_pool_type": "base_pool2",
"star": 5,
"race": 1,
"id": "25001",
"id": "24002",
"weight": 1000
},
{
@ -59,7 +59,7 @@
"card_pool_type": "base_pool3",
"star": 3,
"race": 1,
"id": "25004",
"id": "14003",
"weight": 1000
},
{
@ -68,7 +68,7 @@
"card_pool_type": "base_pool3",
"star": 4,
"race": 1,
"id": "25004",
"id": "14003",
"weight": 1000
},
{
@ -77,7 +77,7 @@
"card_pool_type": "base_pool3",
"star": 5,
"race": 1,
"id": "25004",
"id": "14003",
"weight": 1000
},
{

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[
{
"id": "10",
"id": "10110",
"tab_id": 1,
"type_id": 1,
"name_text": {
@ -16,7 +16,7 @@
"quality": 0
},
{
"id": "11",
"id": "10111",
"tab_id": 1,
"type_id": 1,
"name_text": {
@ -32,7 +32,7 @@
"quality": 0
},
{
"id": "12",
"id": "10112",
"tab_id": 1,
"type_id": 1,
"name_text": {
@ -48,7 +48,7 @@
"quality": 0
},
{
"id": "13",
"id": "10113",
"tab_id": 1,
"type_id": 1,
"name_text": {
@ -64,7 +64,7 @@
"quality": 0
},
{
"id": "14",
"id": "10210",
"tab_id": 2,
"type_id": 1,
"name_text": {
@ -80,7 +80,7 @@
"quality": 0
},
{
"id": "15",
"id": "10211",
"tab_id": 2,
"type_id": 1,
"name_text": {
@ -96,7 +96,7 @@
"quality": 0
},
{
"id": "16",
"id": "10212",
"tab_id": 2,
"type_id": 1,
"name_text": {
@ -112,7 +112,7 @@
"quality": 0
},
{
"id": "17",
"id": "10213",
"tab_id": 2,
"type_id": 1,
"name_text": {
@ -128,7 +128,7 @@
"quality": 0
},
{
"id": "18",
"id": "10310",
"tab_id": 3,
"type_id": 1,
"name_text": {
@ -144,7 +144,7 @@
"quality": 0
},
{
"id": "19",
"id": "10311",
"tab_id": 3,
"type_id": 1,
"name_text": {
@ -160,7 +160,7 @@
"quality": 0
},
{
"id": "20",
"id": "10312",
"tab_id": 3,
"type_id": 1,
"name_text": {
@ -176,7 +176,7 @@
"quality": 0
},
{
"id": "21",
"id": "10313",
"tab_id": 3,
"type_id": 1,
"name_text": {

View File

@ -5,7 +5,7 @@
"item_id": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
}
]
@ -27,7 +27,7 @@
"item_id": [
{
"a": "item",
"t": "10003",
"t": "10002",
"n": 1
}
]
@ -38,7 +38,7 @@
"item_id": [
{
"a": "item",
"t": "10004",
"t": "10002",
"n": 1
}
]
@ -49,7 +49,7 @@
"item_id": [
{
"a": "item",
"t": "10005",
"t": "10002",
"n": 1
}
]
@ -60,7 +60,7 @@
"item_id": [
{
"a": "item",
"t": "10006",
"t": "10002",
"n": 1
}
]
@ -71,7 +71,7 @@
"item_id": [
{
"a": "item",
"t": "10007",
"t": "10002",
"n": 1
}
]
@ -82,7 +82,7 @@
"item_id": [
{
"a": "item",
"t": "10008",
"t": "10002",
"n": 1
}
]
@ -93,7 +93,7 @@
"item_id": [
{
"a": "item",
"t": "10009",
"t": "10002",
"n": 1
}
]
@ -104,7 +104,7 @@
"item_id": [
{
"a": "item",
"t": "10010",
"t": "10002",
"n": 1
}
]
@ -115,7 +115,7 @@
"item_id": [
{
"a": "item",
"t": "10011",
"t": "10002",
"n": 1
}
]
@ -126,7 +126,7 @@
"item_id": [
{
"a": "item",
"t": "10012",
"t": "10002",
"n": 1
}
]
@ -137,7 +137,7 @@
"item_id": [
{
"a": "item",
"t": "10013",
"t": "10002",
"n": 1
}
]
@ -148,7 +148,7 @@
"item_id": [
{
"a": "item",
"t": "10014",
"t": "10002",
"n": 1
}
]
@ -159,7 +159,7 @@
"item_id": [
{
"a": "item",
"t": "10015",
"t": "10002",
"n": 1
}
]
@ -170,7 +170,7 @@
"item_id": [
{
"a": "item",
"t": "10016",
"t": "10002",
"n": 1
}
]

View File

@ -1,9 +1,9 @@
[
{
"id": 1,
"proficiency": 20,
"proficiency_lv": 1,
"reelId": 1,
"proficiency_lv": 1,
"proficiency": 20,
"title_text": {
"key": "1",
"text": "lv.{0}:熟练度{1}"
@ -18,9 +18,9 @@
},
{
"id": 2,
"proficiency": 40,
"proficiency_lv": 2,
"reelId": 1,
"proficiency_lv": 2,
"proficiency": 40,
"title_text": {
"key": "2",
"text": "lv.{0}:熟练度{1}"
@ -30,14 +30,14 @@
"text": "材料消耗减少"
},
"type": 2,
"value1": 10001,
"value2": -125
"value1": 10012,
"value2": -1
},
{
"id": 3,
"proficiency": 60,
"proficiency_lv": 3,
"reelId": 1,
"proficiency_lv": 3,
"proficiency": 60,
"title_text": {
"key": "3",
"text": "lv.{0}:熟练度{1}"
@ -52,9 +52,9 @@
},
{
"id": 4,
"proficiency": 80,
"proficiency_lv": 4,
"reelId": 1,
"proficiency_lv": 4,
"proficiency": 80,
"title_text": {
"key": "4",
"text": "lv.{0}:熟练度{1}"
@ -69,9 +69,9 @@
},
{
"id": 5,
"proficiency": 100,
"proficiency_lv": 5,
"reelId": 1,
"proficiency_lv": 5,
"proficiency": 100,
"title_text": {
"key": "5",
"text": "lv.{0}:熟练度{1}"
@ -86,9 +86,9 @@
},
{
"id": 6,
"proficiency": 25,
"proficiency_lv": 1,
"reelId": 2,
"proficiency_lv": 1,
"proficiency": 25,
"title_text": {
"key": "6",
"text": "lv.{0}:熟练度{1}"
@ -103,9 +103,9 @@
},
{
"id": 7,
"proficiency": 50,
"proficiency_lv": 2,
"reelId": 2,
"proficiency_lv": 2,
"proficiency": 50,
"title_text": {
"key": "7",
"text": "lv.{0}:熟练度{1}"
@ -115,14 +115,14 @@
"text": "材料消耗减少"
},
"type": 2,
"value1": 10001,
"value2": -125
"value1": 10012,
"value2": -1
},
{
"id": 8,
"proficiency": 75,
"proficiency_lv": 3,
"reelId": 2,
"proficiency_lv": 3,
"proficiency": 75,
"title_text": {
"key": "8",
"text": "lv.{0}:熟练度{1}"
@ -137,9 +137,9 @@
},
{
"id": 9,
"proficiency": 100,
"proficiency_lv": 4,
"reelId": 2,
"proficiency_lv": 4,
"proficiency": 100,
"title_text": {
"key": "9",
"text": "lv.{0}:熟练度{1}"
@ -154,9 +154,9 @@
},
{
"id": 10,
"proficiency": 125,
"proficiency_lv": 5,
"reelId": 2,
"proficiency_lv": 5,
"proficiency": 125,
"title_text": {
"key": "10",
"text": "lv.{0}:熟练度{1}"

View File

@ -6,17 +6,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -32,17 +32,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -58,17 +58,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -84,17 +84,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -110,17 +110,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -136,17 +136,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -162,17 +162,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -188,17 +188,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -214,17 +214,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -240,17 +240,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],

View File

@ -7,17 +7,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -39,17 +39,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -71,17 +71,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -103,17 +103,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -135,17 +135,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -167,17 +167,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -199,17 +199,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -231,17 +231,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -263,17 +263,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -295,17 +295,17 @@
"up_material": [
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 1
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 2
},
{
"a": "item",
"t": "10001",
"t": "10002",
"n": 3
}
],
@ -333,7 +333,7 @@
"key": "11",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 12,
@ -349,7 +349,7 @@
"key": "12",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 13,
@ -365,7 +365,7 @@
"key": "13",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 14,
@ -381,7 +381,7 @@
"key": "14",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 15,
@ -397,7 +397,7 @@
"key": "15",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 16,
@ -413,7 +413,7 @@
"key": "16",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 17,
@ -429,7 +429,7 @@
"key": "17",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 18,
@ -445,7 +445,7 @@
"key": "18",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 19,
@ -461,7 +461,7 @@
"key": "19",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 20,
@ -477,7 +477,7 @@
"key": "20",
"text": "所有装备售价提升{0}%"
},
"value": 0
"value": 1
},
{
"id": 21,
@ -493,7 +493,7 @@
"key": "21",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 22,
@ -509,7 +509,7 @@
"key": "22",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 23,
@ -525,7 +525,7 @@
"key": "23",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 24,
@ -541,7 +541,7 @@
"key": "24",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 25,
@ -557,7 +557,7 @@
"key": "25",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 26,
@ -573,7 +573,7 @@
"key": "26",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 27,
@ -589,7 +589,7 @@
"key": "27",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 28,
@ -605,7 +605,7 @@
"key": "28",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 29,
@ -621,7 +621,7 @@
"key": "29",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 30,
@ -637,7 +637,7 @@
"key": "30",
"text": "所有图纸炉温消耗减少{0}%"
},
"value": 0
"value": 1
},
{
"id": 31,
@ -653,7 +653,7 @@
"key": "31",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 32,
@ -669,7 +669,7 @@
"key": "32",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 33,
@ -685,7 +685,7 @@
"key": "33",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 34,
@ -701,7 +701,7 @@
"key": "34",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 35,
@ -717,7 +717,7 @@
"key": "35",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 36,
@ -733,7 +733,7 @@
"key": "36",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 37,
@ -749,7 +749,7 @@
"key": "37",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 38,
@ -765,7 +765,7 @@
"key": "38",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 39,
@ -781,7 +781,7 @@
"key": "39",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 40,
@ -797,7 +797,7 @@
"key": "40",
"text": "每日顾客数量提升至{0}人"
},
"value": 0
"value": 1
},
{
"id": 41,
@ -813,7 +813,7 @@
"key": "41",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 5
"value": 1
},
{
"id": 42,
@ -829,7 +829,7 @@
"key": "42",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 43,
@ -845,7 +845,7 @@
"key": "43",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 44,
@ -861,7 +861,7 @@
"key": "44",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 45,
@ -877,7 +877,7 @@
"key": "45",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 46,
@ -893,7 +893,7 @@
"key": "46",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 47,
@ -909,7 +909,7 @@
"key": "47",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 48,
@ -925,7 +925,7 @@
"key": "48",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 49,
@ -941,7 +941,7 @@
"key": "49",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
},
{
"id": 50,
@ -957,6 +957,6 @@
"key": "50",
"text": "顾客购买装备数量上限提高至{0}件"
},
"value": 0
"value": 1
}
]

View File

@ -376,7 +376,7 @@
{
"key": 20010,
"lock": 1,
"ontxe": 0,
"ontxe": 30011,
"id_after": 20011,
"group": 2,
"des": 2,
@ -403,7 +403,7 @@
401
],
"completetask": 0,
"auto_accept": 1,
"auto_accept": 0,
"overtips": 1,
"reword": []
},

View File

@ -154,7 +154,7 @@ func (this *configureComp) CheckSmithyFirstReelConfigData(etype int32, id int32)
func (this *configureComp) GetSmithProficiencyConf(id int32) (data *cfg.GameSmithyProficiencyData) {
if v, err := this.GetConfigure(game_smproficiency); err == nil {
if configure, ok := v.(*cfg.GameSmithyProficiency); ok {
data = configure.Get(int32(id))
data = configure.Get(int(id))
return
}
}
@ -228,7 +228,7 @@ func (this *configureComp) GetSmithyCustomerConf(id int32) *cfg.GameSmithyCustom
func (this *configureComp) GetSmithyToolsData(id int32) (data *cfg.GameSmithyToolData) {
if v, err := this.GetConfigure(game_smithytools); err == nil {
if configure, ok := v.(*cfg.GameSmithyTool); ok {
data = configure.Get(int32(id))
data = configure.Get(int(id))
return
}

View File

@ -9,34 +9,26 @@
package cfg
type GameSmithyProficiency struct {
_dataMap map[int32]*GameSmithyProficiencyData
_dataList []*GameSmithyProficiencyData
}
func NewGameSmithyProficiency(_buf []map[string]interface{}) (*GameSmithyProficiency, error) {
_dataList := make([]*GameSmithyProficiencyData, 0, len(_buf))
dataMap := make(map[int32]*GameSmithyProficiencyData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameSmithyProficiencyData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameSmithyProficiency{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameSmithyProficiency) GetDataMap() map[int32]*GameSmithyProficiencyData {
return table._dataMap
return &GameSmithyProficiency{_dataList:_dataList}, nil
}
func (table *GameSmithyProficiency) GetDataList() []*GameSmithyProficiencyData {
return table._dataList
}
func (table *GameSmithyProficiency) Get(key int32) *GameSmithyProficiencyData {
return table._dataMap[key]
func (table *GameSmithyProficiency) Get(index int) *GameSmithyProficiencyData {
return table._dataList[index]
}

View File

@ -12,9 +12,9 @@ import "errors"
type GameSmithyProficiencyData struct {
Id int32
Proficiency int32
ProficiencyLv int32
ReelId int32
ProficiencyLv int32
Proficiency int32
TitleText string
ContentText string
Type int32
@ -30,9 +30,9 @@ func (*GameSmithyProficiencyData) GetTypeId() int32 {
func (_v *GameSmithyProficiencyData)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["proficiency"].(float64); !_ok_ { err = errors.New("proficiency error"); return }; _v.Proficiency = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["proficiency_lv"].(float64); !_ok_ { err = errors.New("proficiency_lv error"); return }; _v.ProficiencyLv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["reelId"].(float64); !_ok_ { err = errors.New("reelId error"); return }; _v.ReelId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["proficiency_lv"].(float64); !_ok_ { err = errors.New("proficiency_lv error"); return }; _v.ProficiencyLv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["proficiency"].(float64); !_ok_ { err = errors.New("proficiency error"); return }; _v.Proficiency = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["title_text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.TitleText error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.TitleText, _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["content_text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.ContentText error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.ContentText, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }

View File

@ -9,34 +9,26 @@
package cfg
type GameSmithyTool struct {
_dataMap map[int32]*GameSmithyToolData
_dataList []*GameSmithyToolData
}
func NewGameSmithyTool(_buf []map[string]interface{}) (*GameSmithyTool, error) {
_dataList := make([]*GameSmithyToolData, 0, len(_buf))
dataMap := make(map[int32]*GameSmithyToolData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameSmithyToolData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameSmithyTool{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameSmithyTool) GetDataMap() map[int32]*GameSmithyToolData {
return table._dataMap
return &GameSmithyTool{_dataList:_dataList}, nil
}
func (table *GameSmithyTool) GetDataList() []*GameSmithyToolData {
return table._dataList
}
func (table *GameSmithyTool) Get(key int32) *GameSmithyToolData {
return table._dataMap[key]
func (table *GameSmithyTool) Get(index int) *GameSmithyToolData {
return table._dataList[index]
}