同步配置

This commit is contained in:
liwei 2023-07-07 18:38:54 +08:00
parent 9aa031e32c
commit 27740aa98e
14 changed files with 9240 additions and 9100 deletions

View File

@ -493,5 +493,22 @@
"AssistTeam": 0,
"CanFriendHelp": 0,
"Numrounds": 0
},
{
"id": 129,
"PlayType": 2,
"HeroCount": 5,
"readyScene": "scenesfight_role_interface_06",
"battleScenes": [
"scenesfight_06"
],
"disableAiCamera": 0,
"DefaultHero": 0,
"ChoseHero": [],
"DisableHero": [],
"LockSlots": [],
"AssistTeam": 0,
"CanFriendHelp": 0,
"Numrounds": 0
}
]

View File

@ -21617,7 +21617,7 @@
"NPC": -102,
"value": 1,
"filter": [
10
9
],
"filter2": [
"套装效果",

View File

@ -298,5 +298,15 @@
},
"data": "",
"prefix": "bingo:jx"
},
{
"id": 33,
"type": 1,
"text": {
"key": "GM_GM_text_33",
"text": "一键超神"
},
"data": "",
"prefix": "bingo:godlike"
}
]

View File

@ -3469,10 +3469,6 @@
{
"s": "def",
"d": 70
},
{
"s": "915004211",
"d": 1
}
],
"describe": {
@ -3507,10 +3503,6 @@
{
"s": "915004211",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -5065,10 +5057,6 @@
{
"s": "def",
"d": 70
},
{
"s": "924003411",
"d": 1
}
],
"describe": {
@ -5103,10 +5091,6 @@
{
"s": "924003411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -5293,10 +5277,6 @@
{
"s": "def",
"d": 70
},
{
"s": "924004411",
"d": 1
}
],
"describe": {
@ -5331,10 +5311,6 @@
{
"s": "924004411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -6661,10 +6637,6 @@
{
"s": "def",
"d": 70
},
{
"s": "925001411",
"d": 1
}
],
"describe": {
@ -6699,10 +6671,6 @@
{
"s": "925001411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -10081,10 +10049,6 @@
{
"s": "def",
"d": 70
},
{
"s": "934006411",
"d": 1
}
],
"describe": {
@ -10119,10 +10083,6 @@
{
"s": "934006411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -10765,10 +10725,6 @@
{
"s": "def",
"d": 70
},
{
"s": "935001411",
"d": 1
}
],
"describe": {
@ -10803,10 +10759,6 @@
{
"s": "935001411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -10993,10 +10945,6 @@
{
"s": "def",
"d": 70
},
{
"s": "935002411",
"d": 1
}
],
"describe": {
@ -11031,10 +10979,6 @@
{
"s": "935002411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -14641,10 +14585,6 @@
{
"s": "def",
"d": 70
},
{
"s": "944006411",
"d": 1
}
],
"describe": {
@ -14679,10 +14619,6 @@
{
"s": "944006411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {
@ -15781,10 +15717,6 @@
{
"s": "def",
"d": 70
},
{
"s": "944005411",
"d": 1
}
],
"describe": {
@ -15819,10 +15751,6 @@
{
"s": "944005411",
"d": 1
},
{
"s": "hppro",
"d": 30
}
],
"describe": {

View File

@ -13894,7 +13894,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "icon_mcs",
"img": "item_10000005",
"intr": {
"key": "item_item_intr_356",
"text": "用于巨怪商队内移动列车的消耗品"
@ -13931,7 +13931,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020028",
"img": "item_birdeggs",
"intr": {
"key": "item_item_intr_357",
"text": "原始鸵鸟产的蛋,具有极高的营养价值。"
@ -13968,7 +13968,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020029",
"img": "item_conch",
"intr": {
"key": "item_item_intr_358",
"text": "海螺响起时,可能是传递一种信号,也可能是传递一种思念。"
@ -14005,7 +14005,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020030",
"img": "item_neckpillow",
"intr": {
"key": "item_item_intr_359",
"text": "长途旅行过程中,可以把颈枕放在脖子后,缓解疲劳感。"
@ -14042,7 +14042,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020031",
"img": "tem_shellnecklace",
"intr": {
"key": "item_item_intr_360",
"text": "用原始世界各种造型的贝壳串联起来的项链。"
@ -14079,7 +14079,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020032",
"img": "tem_simplesauce",
"intr": {
"key": "item_item_intr_361",
"text": "平先生做的阳春面,深受和平谷居民的欢迎。"
@ -14116,7 +14116,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020033",
"img": "item_skychair",
"intr": {
"key": "item_item_intr_362",
"text": "一个绑满鞭炮的椅子,能够达到一飞冲天的效果。"
@ -14153,7 +14153,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020034",
"img": "item_pandasign",
"intr": {
"key": "item_item_intr_363",
"text": "神龙大侠诞生之后,繁衍出的应援物。"
@ -14190,7 +14190,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020035",
"img": "item_lantern",
"intr": {
"key": "item_item_intr_364",
"text": "传统手工艺品,逢年过节挂上灯笼,增添节日氛围。"
@ -14227,7 +14227,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020036",
"img": "item_smile",
"intr": {
"key": "item_item_intr_365",
"text": "闻名于坏蛋联盟的世界名画。"
@ -14264,7 +14264,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020037",
"img": "item_goldcup",
"intr": {
"key": "item_item_intr_366",
"text": "用来提升室内装潢高级感的摆件。"
@ -14301,7 +14301,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020038",
"img": "item_creamcake",
"intr": {
"key": "item_item_intr_367",
"text": "用于庆祝一年中最重要的一天。"
@ -14338,7 +14338,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020039",
"img": "item_pushsugar",
"intr": {
"key": "item_item_intr_368",
"text": "一种冰棒,吃完会让人心情愉悦。"
@ -14375,7 +14375,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020040",
"img": "item_magicblanket",
"intr": {
"key": "item_item_intr_369",
"text": "被赋予魔法的毛毯,把人带到想去的地方。"
@ -14412,7 +14412,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020041",
"img": "item_happinesspotion",
"intr": {
"key": "item_item_intr_370",
"text": "传说,只要喝下幸福药水,就能和所爱之人幸福的生活在一起。"
@ -14449,7 +14449,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020042",
"img": "item_tambourine",
"intr": {
"key": "item_item_intr_371",
"text": "一种击打乐器,经常在具有地方特色的庆典活动中出现。"
@ -14486,7 +14486,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020043",
"img": "item_mirror",
"intr": {
"key": "item_item_intr_372",
"text": "这是一面能窥探到人内心深处欲望的镜子。"
@ -14523,7 +14523,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020044",
"img": "item_treasureclassic",
"intr": {
"key": "item_item_intr_373",
"text": "这本书里记载了各种龙的信息,爱龙人士的首选。"
@ -14560,7 +14560,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020045",
"img": "item_dragonteeth",
"intr": {
"key": "item_item_intr_374",
"text": "维京人纯手工打造的龙牙,坚硬无比。"
@ -14597,7 +14597,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020046",
"img": "item_bolt",
"intr": {
"key": "item_item_intr_375",
"text": "猎龙人研发的弩箭,是龙的天敌。"
@ -14634,7 +14634,7 @@
"access": [],
"use_skip": 11001,
"upper_limit": 999,
"img": "item_14020047",
"img": "item_dragonsaddle",
"intr": {
"key": "item_item_intr_376",
"text": "龙骑士驯龙时安置在龙身上的护具。"

File diff suppressed because it is too large Load Diff

86
bin/json/game_passon.json Normal file
View File

@ -0,0 +1,86 @@
[
{
"exework": 1,
"openlv": 20,
"cd": 24,
"sift": 3,
"text": "passon_unlock_text_1"
},
{
"exework": 2,
"openlv": 22,
"cd": 24,
"sift": 3,
"text": "passon_unlock_text_2"
},
{
"exework": 3,
"openlv": 24,
"cd": 24,
"sift": 3,
"text": "passon_unlock_text_3"
},
{
"exework": 4,
"openlv": 26,
"cd": 24,
"sift": 4,
"text": "passon_unlock_text_4"
},
{
"exework": 5,
"openlv": 28,
"cd": 24,
"sift": 4,
"text": "passon_unlock_text_5"
},
{
"exework": 6,
"openlv": 30,
"cd": 24,
"sift": 5,
"text": "passon_unlock_text_6"
},
{
"exework": 7,
"openlv": 32,
"cd": 24,
"sift": 3,
"text": "passon_unlock_text_7"
},
{
"exework": 8,
"openlv": 34,
"cd": 24,
"sift": 4,
"text": "passon_unlock_text_8"
},
{
"exework": 9,
"openlv": 36,
"cd": 24,
"sift": 5,
"text": "passon_unlock_text_9"
},
{
"exework": 10,
"openlv": 38,
"cd": 24,
"sift": 3,
"text": "passon_unlock_text_10"
},
{
"exework": 11,
"openlv": 40,
"cd": 24,
"sift": 4,
"text": "passon_unlock_text_11"
},
{
"exework": 12,
"openlv": 42,
"cd": 24,
"sift": 5,
"text": "passon_unlock_text_12"
}
]

View File

@ -5,7 +5,7 @@
"reward": [],
"ps_ceiling": 180,
"cops_ps_ceiling": 60,
"hero_lv": 14
"hero_lv": 20
},
{
"lv": 2,
@ -24,7 +24,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 62,
"hero_lv": 14
"hero_lv": 20
},
{
"lv": 3,
@ -43,7 +43,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 64,
"hero_lv": 14
"hero_lv": 20
},
{
"lv": 4,
@ -62,7 +62,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 66,
"hero_lv": 14
"hero_lv": 20
},
{
"lv": 5,
@ -195,7 +195,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 80,
"hero_lv": 28
"hero_lv": 20
},
{
"lv": 12,
@ -214,7 +214,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 82,
"hero_lv": 28
"hero_lv": 20
},
{
"lv": 13,
@ -233,7 +233,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 84,
"hero_lv": 28
"hero_lv": 20
},
{
"lv": 14,
@ -252,7 +252,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 86,
"hero_lv": 36
"hero_lv": 20
},
{
"lv": 15,
@ -271,7 +271,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 88,
"hero_lv": 38
"hero_lv": 20
},
{
"lv": 16,
@ -290,7 +290,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 90,
"hero_lv": 40
"hero_lv": 20
},
{
"lv": 17,
@ -309,7 +309,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 92,
"hero_lv": 42
"hero_lv": 20
},
{
"lv": 18,
@ -328,7 +328,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 94,
"hero_lv": 44
"hero_lv": 20
},
{
"lv": 19,
@ -347,7 +347,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 96,
"hero_lv": 46
"hero_lv": 20
},
{
"lv": 20,
@ -366,7 +366,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 98,
"hero_lv": 48
"hero_lv": 20
},
{
"lv": 21,
@ -385,7 +385,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 100,
"hero_lv": 50
"hero_lv": 30
},
{
"lv": 22,
@ -404,7 +404,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 102,
"hero_lv": 52
"hero_lv": 30
},
{
"lv": 23,
@ -423,7 +423,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 104,
"hero_lv": 54
"hero_lv": 30
},
{
"lv": 24,
@ -442,7 +442,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 106,
"hero_lv": 56
"hero_lv": 30
},
{
"lv": 25,
@ -461,7 +461,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 108,
"hero_lv": 58
"hero_lv": 30
},
{
"lv": 26,
@ -480,7 +480,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 110,
"hero_lv": 60
"hero_lv": 30
},
{
"lv": 27,
@ -499,7 +499,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 112,
"hero_lv": 60
"hero_lv": 30
},
{
"lv": 28,
@ -518,7 +518,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 114,
"hero_lv": 60
"hero_lv": 30
},
{
"lv": 29,
@ -537,7 +537,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 116,
"hero_lv": 60
"hero_lv": 30
},
{
"lv": 30,
@ -556,7 +556,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 118,
"hero_lv": 60
"hero_lv": 30
},
{
"lv": 31,
@ -575,7 +575,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 120,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 32,
@ -594,7 +594,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 122,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 33,
@ -613,7 +613,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 124,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 34,
@ -632,7 +632,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 126,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 35,
@ -651,7 +651,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 128,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 36,
@ -670,7 +670,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 130,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 37,
@ -689,7 +689,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 132,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 38,
@ -708,7 +708,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 134,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 39,
@ -727,7 +727,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 136,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 40,
@ -746,7 +746,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 138,
"hero_lv": 60
"hero_lv": 40
},
{
"lv": 41,
@ -765,7 +765,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 140,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 42,
@ -784,7 +784,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 142,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 43,
@ -803,7 +803,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 144,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 44,
@ -822,7 +822,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 146,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 45,
@ -841,7 +841,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 148,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 46,
@ -860,7 +860,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 150,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 47,
@ -879,7 +879,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 152,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 48,
@ -898,7 +898,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 154,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 49,
@ -917,7 +917,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 156,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 50,
@ -936,7 +936,7 @@
],
"ps_ceiling": 180,
"cops_ps_ceiling": 158,
"hero_lv": 60
"hero_lv": 50
},
{
"lv": 51,

View File

@ -53,6 +53,7 @@ func (this *configureComp) getMaxHoroscopes() (result map[int32]*cfg.GameHorosco
if v, err = this.GetConfigure(game_horoscope); err != nil {
this.module.Errorln(err)
} else {
result = make(map[int32]*cfg.GameHoroscopeData)
for _, v := range v.(*cfg.GameHoroscope).GetDataMap() {
if _, ok = result[v.NodeId]; !ok {
result[v.NodeId] = v

View File

@ -1,6 +1,7 @@
package passon
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/modules"
@ -9,7 +10,7 @@ import (
)
const (
game_mail = "game_mail.json"
game_passon = "game_passon.json"
)
// /配置管理基础组件
@ -20,7 +21,7 @@ type Configure_Comp struct {
// 组件初始化接口
func (this *Configure_Comp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompConfigure.Init(service, module, comp, options)
this.LoadConfigure(game_mail, cfg.NewGameMail)
this.LoadConfigure(game_passon, cfg.NewGamePasson)
return
}
@ -37,16 +38,19 @@ func (this *Configure_Comp) LoadMultiConfigure(confs map[string]interface{}) (er
return
}
//读取配置数据
func (this *Configure_Comp) GetConfigure(name string) (v interface{}, err error) {
return configure.GetConfigure(name)
func (this *Configure_Comp) GetPassonConf(key int32) (configure *cfg.GamePassonData, err error) {
var (
v interface{}
ok bool
)
if v, err = this.GetConfigure(game_passon); err != nil {
return
}
func (this *Configure_Comp) GetMailConf(key string) (data *cfg.GameMailData) {
if v, err := this.GetConfigure(game_mail); err == nil {
if configure, ok := v.(*cfg.GameMail); ok {
return configure.Get(key)
}
if configure, ok = v.(*cfg.GamePasson).GetDataMap()[key]; !ok {
err = comm.NewNotFoundConfErr(moduleName, game_passon, key)
return
}
return
}

View File

@ -12,6 +12,8 @@ import (
"go_dreamfactory/lego/sys/log"
)
const moduleName = "传功塔"
/*
模块名:PassOn
描述:传功系统

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

View File

@ -0,0 +1,43 @@
//------------------------------------------------------------------------------
// <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 GamePassonData struct {
Exework int32
Openlv int32
Cd int32
Sift int32
Text string
}
const TypeId_GamePassonData = -1897293578
func (*GamePassonData) GetTypeId() int32 {
return -1897293578
}
func (_v *GamePassonData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["exework"].(float64); !_ok_ { err = errors.New("exework error"); return }; _v.Exework = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["openlv"].(float64); !_ok_ { err = errors.New("openlv error"); return }; _v.Openlv = int32(_tempNum_) }
{ 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["sift"].(float64); !_ok_ { err = errors.New("sift error"); return }; _v.Sift = int32(_tempNum_) }
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
return
}
func DeserializeGamePassonData(_buf map[string]interface{}) (*GamePassonData, error) {
v := &GamePassonData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -183,6 +183,7 @@ type Tables struct {
DrawWeight *GameDrawWeight
CardPool *GameCardPool
Robot *GameRobot
Passon *GamePasson
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -1222,5 +1223,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.Robot, err = NewGameRobot(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_passon") ; err != nil {
return nil, err
}
if tables.Passon, err = NewGamePasson(buf) ; err != nil {
return nil, err
}
return tables, nil
}