拼图领取进度奖励

This commit is contained in:
meixiongfeng 2023-08-08 20:52:11 +08:00
parent 6f3805d0d5
commit 40f4650305
13 changed files with 1570 additions and 920 deletions

View File

@ -12,7 +12,7 @@
"days": 2,
"tipstxt": {
"key": "celebration_celebration_tipstxt_1",
"text": "每日前{1}次挑战狩猎任意boss可以获得双倍奖励"
"text": "每日前{0}次挑战狩猎任意boss可以获得双倍奖励"
}
},
{
@ -28,7 +28,7 @@
"days": 2,
"tipstxt": {
"key": "celebration_celebration_tipstxt_2",
"text": "每日前{1}次挑战经验副本,可以获得双倍奖励"
"text": "每日前{0}次挑战经验副本,可以获得双倍奖励"
}
},
{

View File

@ -7851,7 +7851,7 @@
"text": "小麦"
},
"usetype": 1,
"color": 3,
"color": 2,
"bagtype": 4,
"index": 9,
"special_type": 450,
@ -7894,7 +7894,7 @@
"text": "苹果"
},
"usetype": 1,
"color": 3,
"color": 2,
"bagtype": 4,
"index": 10,
"special_type": 400,
@ -7937,7 +7937,7 @@
"text": "香蕉"
},
"usetype": 1,
"color": 3,
"color": 2,
"bagtype": 4,
"index": 11,
"special_type": 350,
@ -7980,7 +7980,7 @@
"text": "玉米"
},
"usetype": 1,
"color": 3,
"color": 2,
"bagtype": 4,
"index": 12,
"special_type": 300,
@ -8023,7 +8023,7 @@
"text": "土豆"
},
"usetype": 1,
"color": 3,
"color": 2,
"bagtype": 4,
"index": 13,
"special_type": 250,
@ -8066,7 +8066,7 @@
"text": "萝卜"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8107,7 +8107,7 @@
"text": "蘑菇"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8148,7 +8148,7 @@
"text": "牛奶"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8189,7 +8189,7 @@
"text": "南瓜"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8230,7 +8230,7 @@
"text": "番茄"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8271,7 +8271,7 @@
"text": "蜂蜜"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8312,7 +8312,7 @@
"text": "杏仁"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8353,7 +8353,7 @@
"text": "鸡蛋"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8394,7 +8394,7 @@
"text": "鸡肉"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8435,7 +8435,7 @@
"text": "猪肉"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8476,7 +8476,7 @@
"text": "鱼肉"
},
"usetype": 0,
"color": 0,
"color": 2,
"bagtype": 0,
"index": 0,
"special_type": 0,
@ -8517,7 +8517,7 @@
"text": "垃圾菜"
},
"usetype": 1,
"color": 3,
"color": 1,
"bagtype": 1,
"index": 99,
"special_type": 1000,
@ -8560,7 +8560,7 @@
"text": "啤酒"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 99,
"special_type": 800,
@ -8603,7 +8603,7 @@
"text": "蜂蜜酒"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 900,
@ -8646,7 +8646,7 @@
"text": "苹果酒"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 2,
"special_type": 800,
@ -8689,7 +8689,7 @@
"text": "黄金饼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 3,
"special_type": 750,
@ -8732,7 +8732,7 @@
"text": "冰淇淋"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 4,
"special_type": 700,
@ -8775,7 +8775,7 @@
"text": "蜜汁烤鸡"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 5,
"special_type": 650,
@ -8818,7 +8818,7 @@
"text": "培根馅饼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 6,
"special_type": 600,
@ -8861,7 +8861,7 @@
"text": "猪腰子派"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 7,
"special_type": 550,
@ -8904,7 +8904,7 @@
"text": "烤乳猪"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 8,
"special_type": 500,
@ -8947,7 +8947,7 @@
"text": "血煎饼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -8990,7 +8990,7 @@
"text": "蜂蜜蛋糕"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9033,7 +9033,7 @@
"text": "肉菜大杂烩"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9076,7 +9076,7 @@
"text": "玉米鱼排"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9119,7 +9119,7 @@
"text": "风味肉丸"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9162,7 +9162,7 @@
"text": "鱼丸粗面"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9205,7 +9205,7 @@
"text": "黄金鸡蛋饼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9248,7 +9248,7 @@
"text": "炸酱面"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9291,7 +9291,7 @@
"text": "番茄肉酱面"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9334,7 +9334,7 @@
"text": "猪肉玉米煎饺"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9377,7 +9377,7 @@
"text": "烤鸡腿"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9420,7 +9420,7 @@
"text": "沙漠风情鸡肉卷"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9463,7 +9463,7 @@
"text": "烟熏三文鱼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9506,7 +9506,7 @@
"text": "黄金蛋挞"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9549,7 +9549,7 @@
"text": "杏仁茶"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9592,7 +9592,7 @@
"text": "盐腌鳕鱼"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9635,7 +9635,7 @@
"text": "暖心布丁"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9678,7 +9678,7 @@
"text": "刺身拼盘"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9721,7 +9721,7 @@
"text": "玉米浓汤"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9764,7 +9764,7 @@
"text": "蛋奶酒"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9807,7 +9807,7 @@
"text": "黄油啤酒"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9850,7 +9850,7 @@
"text": "苹果派"
},
"usetype": 2,
"color": 3,
"color": 2,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9936,7 +9936,7 @@
"text": "蜜汁萝卜"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -9979,7 +9979,7 @@
"text": "小麦牛奶粥"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10022,7 +10022,7 @@
"text": "杏仁乳布丁"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10065,7 +10065,7 @@
"text": "萝卜葛缕子汤"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10108,7 +10108,7 @@
"text": "夹馅草菇"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10151,7 +10151,7 @@
"text": "南瓜蘑菇汤"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10194,7 +10194,7 @@
"text": "番茄披萨"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10237,7 +10237,7 @@
"text": "南瓜汁"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10280,7 +10280,7 @@
"text": "蜜饯浇汁烤鱼"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10323,7 +10323,7 @@
"text": "奶油蘑菇汤"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10366,7 +10366,7 @@
"text": "番茄培根卷"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10409,7 +10409,7 @@
"text": "番茄罗宋汤"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10452,7 +10452,7 @@
"text": "烤猪肘"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10495,7 +10495,7 @@
"text": "大麦面包"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10538,7 +10538,7 @@
"text": "鸡蛋番茄沙拉"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10581,7 +10581,7 @@
"text": "香蕉冰沙"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,
@ -10624,7 +10624,7 @@
"text": "小鸡炖蘑菇"
},
"usetype": 2,
"color": 3,
"color": 4,
"bagtype": 1,
"index": 1,
"special_type": 0,

View File

@ -0,0 +1,227 @@
[
{
"id": 1,
"parameter": 0,
"passcheck_type": 4
},
{
"id": 2,
"parameter": 200,
"passcheck_type": 4
},
{
"id": 3,
"parameter": 400,
"passcheck_type": 4
},
{
"id": 4,
"parameter": 600,
"passcheck_type": 4
},
{
"id": 5,
"parameter": 800,
"passcheck_type": 4
},
{
"id": 6,
"parameter": 1000,
"passcheck_type": 4
},
{
"id": 7,
"parameter": 1200,
"passcheck_type": 4
},
{
"id": 8,
"parameter": 1400,
"passcheck_type": 4
},
{
"id": 9,
"parameter": 1600,
"passcheck_type": 4
},
{
"id": 10,
"parameter": 1800,
"passcheck_type": 4
},
{
"id": 11,
"parameter": 2000,
"passcheck_type": 4
},
{
"id": 12,
"parameter": 2200,
"passcheck_type": 4
},
{
"id": 13,
"parameter": 2400,
"passcheck_type": 4
},
{
"id": 14,
"parameter": 2600,
"passcheck_type": 4
},
{
"id": 15,
"parameter": 2800,
"passcheck_type": 4
},
{
"id": 16,
"parameter": 3000,
"passcheck_type": 4
},
{
"id": 17,
"parameter": 3200,
"passcheck_type": 4
},
{
"id": 18,
"parameter": 3400,
"passcheck_type": 4
},
{
"id": 19,
"parameter": 3600,
"passcheck_type": 4
},
{
"id": 20,
"parameter": 3800,
"passcheck_type": 4
},
{
"id": 21,
"parameter": 4000,
"passcheck_type": 4
},
{
"id": 22,
"parameter": 4200,
"passcheck_type": 4
},
{
"id": 23,
"parameter": 4400,
"passcheck_type": 4
},
{
"id": 24,
"parameter": 4600,
"passcheck_type": 4
},
{
"id": 25,
"parameter": 4800,
"passcheck_type": 4
},
{
"id": 26,
"parameter": 5000,
"passcheck_type": 4
},
{
"id": 27,
"parameter": 5200,
"passcheck_type": 4
},
{
"id": 28,
"parameter": 5400,
"passcheck_type": 4
},
{
"id": 29,
"parameter": 5600,
"passcheck_type": 4
},
{
"id": 30,
"parameter": 5800,
"passcheck_type": 4
},
{
"id": 31,
"parameter": 6000,
"passcheck_type": 4
},
{
"id": 32,
"parameter": 6200,
"passcheck_type": 4
},
{
"id": 33,
"parameter": 6400,
"passcheck_type": 4
},
{
"id": 34,
"parameter": 6600,
"passcheck_type": 4
},
{
"id": 35,
"parameter": 6800,
"passcheck_type": 4
},
{
"id": 36,
"parameter": 7000,
"passcheck_type": 4
},
{
"id": 37,
"parameter": 7200,
"passcheck_type": 4
},
{
"id": 38,
"parameter": 7400,
"passcheck_type": 4
},
{
"id": 39,
"parameter": 7600,
"passcheck_type": 4
},
{
"id": 40,
"parameter": 7800,
"passcheck_type": 4
},
{
"id": 41,
"parameter": 8000,
"passcheck_type": 4
},
{
"id": 42,
"parameter": 8200,
"passcheck_type": 4
},
{
"id": 43,
"parameter": 8400,
"passcheck_type": 4
},
{
"id": 44,
"parameter": 8600,
"passcheck_type": 4
},
{
"id": 45,
"parameter": 8800,
"passcheck_type": 4
}
]

View File

@ -0,0 +1,218 @@
[
{
"id": 1,
"parameter": 10001,
"passcheck_type": 4,
"page": 1,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_1",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 2,
"parameter": 10002,
"passcheck_type": 4,
"page": 1,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_2",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 3,
"parameter": 10003,
"passcheck_type": 4,
"page": 1,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_3",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 4,
"parameter": 10004,
"passcheck_type": 4,
"page": 1,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_4",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 5,
"parameter": 10005,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_5",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 6,
"parameter": 10006,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_6",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 7,
"parameter": 10007,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_7",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 8,
"parameter": 10008,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_8",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 9,
"parameter": 10009,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_9",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 10,
"parameter": 10010,
"passcheck_type": 4,
"page": 2,
"pro": 1000,
"text": {
"key": "passcheck_passcheck_task_text_10",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 11,
"parameter": 10011,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_11",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 12,
"parameter": 10012,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_12",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 13,
"parameter": 10013,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_13",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 14,
"parameter": 10014,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_14",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 15,
"parameter": 10015,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_15",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 16,
"parameter": 10016,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_16",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 17,
"parameter": 10017,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_17",
"text": "消费1000金币"
},
"score": 30
},
{
"id": 18,
"parameter": 10018,
"passcheck_type": 4,
"page": 3,
"pro": 0,
"text": {
"key": "passcheck_passcheck_task_text_18",
"text": "消费1000金币"
},
"score": 30
}
]

File diff suppressed because it is too large Load Diff

View File

@ -392,7 +392,7 @@
},
"content": {
"key": "ruledesc_ruledesc_content_36",
"text": "这里可以使用左右两侧的积木,通过在木板上组合只空出相应日期的益智游戏,挑战日期为当月所有日期,完成可以获得奖励,每个月后重置。"
"text": "这里是使用左右两侧的积木,通过在木板上组合积木形状,只空出相应日期的益智游戏。<br>挑战日期为当月所有日期,完成可以获得奖励,每个月后重置。<br>每次重置前可以挑战当月的所有日期。完成后有额外奖励。"
}
},
{

View File

@ -3994,7 +3994,7 @@
},
"BuffType": 33,
"EffectArgu": [
50
500
],
"BufParNum": 1,
"RelyCheckArgu": [],
@ -4003,7 +4003,7 @@
3
],
"AddEffect": false,
"RemoveType": true,
"RemoveType": false,
"NotOverlay": 0,
"OverlayTimes": 3,
"SameID": false,

View File

@ -17,8 +17,36 @@ func (this *apiComp) PuzzleReward(session comm.IUserSession, req *pb.UiGamePuzzl
return // 参数校验失败直接返回
}
var (
atno []*pb.UserAtno
)
list, _ := this.module.modelPuzzle.getPuzzleList(session.GetUserId(), req.Hdid)
session.SendMsg(string(this.module.GetType()), "puzzlereward", &pb.UiGamePuzzleRewardResp{Data: list})
if conf, err := this.module.configure.GetPuzzleConf(req.PuzzleId); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
} else {
list, _ := this.module.modelPuzzle.getPuzzleList(session.GetUserId(), req.Hdid)
if _, ok := list.Puzzle[req.PuzzleId]; ok { // 重复拼图
return
}
if errdata, atno = this.module.DispenseAtno(session, conf.Puzzleward, true); errdata != nil {
return
}
// 记录数据
list.Puzzle[req.PuzzleId] = 1
update := make(map[string]interface{}, 0)
update["puzzle"] = list.Puzzle
this.module.ModuleUser.ChangeUserExpand(session.GetUserId(), update) // 修改进度
}
session.SendMsg(string(this.module.GetType()), "puzzlereward", &pb.UiGamePuzzleRewardResp{
Data: list,
Atno: atno,
})
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 GamePassCheckExp struct {
_dataMap map[int32]*GamePassCheckExpData
_dataList []*GamePassCheckExpData
}
func NewGamePassCheckExp(_buf []map[string]interface{}) (*GamePassCheckExp, error) {
_dataList := make([]*GamePassCheckExpData, 0, len(_buf))
dataMap := make(map[int32]*GamePassCheckExpData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGamePassCheckExpData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GamePassCheckExp{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GamePassCheckExp) GetDataMap() map[int32]*GamePassCheckExpData {
return table._dataMap
}
func (table *GamePassCheckExp) GetDataList() []*GamePassCheckExpData {
return table._dataList
}
func (table *GamePassCheckExp) Get(key int32) *GamePassCheckExpData {
return table._dataMap[key]
}

View File

@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <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 GamePassCheckExpData struct {
Id int32
Parameter int32
PasscheckType int32
}
const TypeId_GamePassCheckExpData = -1113094548
func (*GamePassCheckExpData) GetTypeId() int32 {
return -1113094548
}
func (_v *GamePassCheckExpData)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["parameter"].(float64); !_ok_ { err = errors.New("parameter error"); return }; _v.Parameter = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["passcheck_type"].(float64); !_ok_ { err = errors.New("passcheck_type error"); return }; _v.PasscheckType = int32(_tempNum_) }
return
}
func DeserializeGamePassCheckExpData(_buf map[string]interface{}) (*GamePassCheckExpData, error) {
v := &GamePassCheckExpData{}
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 GamePassCheckTask struct {
_dataMap map[int32]*GamePassCheckTaskData
_dataList []*GamePassCheckTaskData
}
func NewGamePassCheckTask(_buf []map[string]interface{}) (*GamePassCheckTask, error) {
_dataList := make([]*GamePassCheckTaskData, 0, len(_buf))
dataMap := make(map[int32]*GamePassCheckTaskData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGamePassCheckTaskData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GamePassCheckTask{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GamePassCheckTask) GetDataMap() map[int32]*GamePassCheckTaskData {
return table._dataMap
}
func (table *GamePassCheckTask) GetDataList() []*GamePassCheckTaskData {
return table._dataList
}
func (table *GamePassCheckTask) Get(key int32) *GamePassCheckTaskData {
return table._dataMap[key]
}

View File

@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <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 GamePassCheckTaskData struct {
Id int32
Parameter int32
PasscheckType int32
Page int32
Pro int32
Text string
Score int32
}
const TypeId_GamePassCheckTaskData = 1409433706
func (*GamePassCheckTaskData) GetTypeId() int32 {
return 1409433706
}
func (_v *GamePassCheckTaskData)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["parameter"].(float64); !_ok_ { err = errors.New("parameter error"); return }; _v.Parameter = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["passcheck_type"].(float64); !_ok_ { err = errors.New("passcheck_type error"); return }; _v.PasscheckType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["page"].(float64); !_ok_ { err = errors.New("page error"); return }; _v.Page = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pro"].(float64); !_ok_ { err = errors.New("pro error"); return }; _v.Pro = int32(_tempNum_) }
{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 _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["score"].(float64); !_ok_ { err = errors.New("score error"); return }; _v.Score = int32(_tempNum_) }
return
}
func DeserializeGamePassCheckTaskData(_buf map[string]interface{}) (*GamePassCheckTaskData, error) {
v := &GamePassCheckTaskData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -107,6 +107,8 @@ type Tables struct {
PayGiftpack *GamePayGiftpack
WorldBattle *GameWorldBattle
PassCheck *GamePassCheck
PassCheckExp *GamePassCheckExp
PassCheckTask *GamePassCheckTask
Mail *GameMail
CombatLevel *GameCombatLevel
CombatManster *GameCombatManster
@ -240,7 +242,6 @@ type Tables struct {
UiGameLattice *GameUiGameLattice
UiGameMiner *GameUiGameMiner
PushGift *GamePushGift
UiGameConsum *GameUiGameConsum
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -824,6 +825,18 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.PassCheck, err = NewGamePassCheck(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_passcheckexp") ; err != nil {
return nil, err
}
if tables.PassCheckExp, err = NewGamePassCheckExp(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_passchecktask") ; err != nil {
return nil, err
}
if tables.PassCheckTask, err = NewGamePassCheckTask(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_mail") ; err != nil {
return nil, err
}
@ -1622,11 +1635,5 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.PushGift, err = NewGamePushGift(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_uigameconsum") ; err != nil {
return nil, err
}
if tables.UiGameConsum, err = NewGameUiGameConsum(buf) ; err != nil {
return nil, err
}
return tables, nil
}