This commit is contained in:
meixiongfeng 2023-03-24 15:53:38 +08:00
parent 95c22e3bec
commit d8dd0d6ebf
14 changed files with 2461 additions and 2303 deletions

View File

@ -1,117 +1,94 @@
[ [
{ {
"id": 10001, "id": 10001,
"drop": 1002, "drop": 1002
"boxname": "Moon Box"
}, },
{ {
"id": 10002, "id": 10002,
"drop": 1002, "drop": 1002
"boxname": "Moon Box"
}, },
{ {
"id": 10003, "id": 10003,
"drop": 1002, "drop": 1002
"boxname": "Moon Box"
}, },
{ {
"id": 10004, "id": 10004,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10005, "id": 10005,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10006, "id": 10006,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10007, "id": 10007,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10008, "id": 10008,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10009, "id": 10009,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10010, "id": 10010,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10011, "id": 10011,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10012, "id": 10012,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10013, "id": 10013,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10014, "id": 10014,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10015, "id": 10015,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10101, "id": 10101,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10102, "id": 10102,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10103, "id": 10103,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10301, "id": 10301,
"drop": 1001, "drop": 1001
"boxname": "Psionics Of The Tree"
}, },
{ {
"id": 10302, "id": 10302,
"drop": 1002, "drop": 1002
"boxname": "Psionics Of The Tree"
}, },
{ {
"id": 10401, "id": 10401,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10402, "id": 10402,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
}, },
{ {
"id": 10403, "id": 10403,
"drop": 1001, "drop": 1001
"boxname": "Moon Box"
} }
] ]

View File

@ -21,7 +21,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_1", "scenemusic": "scenemusic_leveldemo_fcamer_1_1",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_1" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_1"
}, },
@ -46,7 +45,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_3", "scenemusic": "scenemusic_leveldemo_fcamer_1_3",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_3" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_3"
}, },
@ -72,7 +70,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_2", "scenemusic": "scenemusic_leveldemo_fcamer_1_2",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_2" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_2"
}, },
@ -98,7 +95,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_4", "scenemusic": "scenemusic_leveldemo_fcamer_1_4",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_4" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_4"
}, },
@ -124,7 +120,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_5", "scenemusic": "scenemusic_leveldemo_fcamer_1_5",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_5" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_5"
}, },
@ -148,7 +143,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_6", "scenemusic": "scenemusic_leveldemo_fcamer_1_6",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_6" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_6"
}, },
@ -174,7 +168,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_7", "scenemusic": "scenemusic_leveldemo_fcamer_1_7",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_7" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_7"
}, },
@ -199,7 +192,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_8", "scenemusic": "scenemusic_leveldemo_fcamer_1_8",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_8" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_8"
}, },
@ -224,7 +216,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_9", "scenemusic": "scenemusic_leveldemo_fcamer_1_9",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_9" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_9"
}, },
@ -249,7 +240,6 @@
"n": 1 "n": 1
} }
], ],
"description": "Mission Successed",
"scenemusic": "scenemusic_leveldemo_fcamer_1_10", "scenemusic": "scenemusic_leveldemo_fcamer_1_10",
"atmosphere": "atmospheremusic_leveldemo_fcamer_1_10" "atmosphere": "atmospheremusic_leveldemo_fcamer_1_10"
} }

View File

@ -2,7 +2,6 @@
{ {
"id": 101011, "id": 101011,
"type": 1, "type": 1,
"monstername": "Guard NO.1",
"sencenstory": [ "sencenstory": [
301, 301,
301 301
@ -24,7 +23,6 @@
{ {
"id": 101012, "id": 101012,
"type": 1, "type": 1,
"monstername": "Guard NO.2",
"sencenstory": [ "sencenstory": [
302, 302,
302 302
@ -46,7 +44,6 @@
{ {
"id": 101013, "id": 101013,
"type": 1, "type": 1,
"monstername": "Guard NO.3",
"sencenstory": [ "sencenstory": [
301, 301,
301 301
@ -68,7 +65,6 @@
{ {
"id": 101021, "id": 101021,
"type": 1, "type": 1,
"monstername": "Guard NO.4",
"sencenstory": [ "sencenstory": [
302, 302,
302 302
@ -90,7 +86,6 @@
{ {
"id": 110213, "id": 110213,
"type": 1, "type": 1,
"monstername": "Guard NO.5",
"sencenstory": [ "sencenstory": [
301, 301,
301 301
@ -112,7 +107,6 @@
{ {
"id": 110214, "id": 110214,
"type": 1, "type": 1,
"monstername": "Guard NO.6",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -131,7 +125,6 @@
{ {
"id": 110215, "id": 110215,
"type": 1, "type": 1,
"monstername": "Guard NO.7",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -150,7 +143,6 @@
{ {
"id": 110216, "id": 110216,
"type": 1, "type": 1,
"monstername": "Guard NO.8",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -169,7 +161,6 @@
{ {
"id": 120031, "id": 120031,
"type": 1, "type": 1,
"monstername": "Guard NO.9",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -188,7 +179,6 @@
{ {
"id": 120032, "id": 120032,
"type": 1, "type": 1,
"monstername": "Guard NO.10",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -207,7 +197,6 @@
{ {
"id": 120033, "id": 120033,
"type": 1, "type": 1,
"monstername": "Guard NO.11",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -226,7 +215,6 @@
{ {
"id": 120034, "id": 120034,
"type": 1, "type": 1,
"monstername": "Guard NO.12",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -245,7 +233,6 @@
{ {
"id": 120035, "id": 120035,
"type": 1, "type": 1,
"monstername": "Guard NO.13",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -264,7 +251,6 @@
{ {
"id": 120036, "id": 120036,
"type": 1, "type": 1,
"monstername": "Guard NO.14",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -283,7 +269,6 @@
{ {
"id": 130011, "id": 130011,
"type": 1, "type": 1,
"monstername": "Guard NO.15",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -302,7 +287,6 @@
{ {
"id": 130012, "id": 130012,
"type": 1, "type": 1,
"monstername": "Guard NO.16",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -321,7 +305,6 @@
{ {
"id": 130013, "id": 130013,
"type": 1, "type": 1,
"monstername": "Guard NO.17",
"sencenstory": [], "sencenstory": [],
"time": 0, "time": 0,
"clickstory": 0, "clickstory": 0,
@ -340,7 +323,6 @@
{ {
"id": 200001, "id": 200001,
"type": 2, "type": 2,
"monstername": "Guard NO.18",
"sencenstory": [ "sencenstory": [
301, 301,
301 301
@ -354,7 +336,6 @@
{ {
"id": 200002, "id": 200002,
"type": 2, "type": 2,
"monstername": "Guard NO.19",
"sencenstory": [ "sencenstory": [
302, 302,
302 302
@ -368,7 +349,6 @@
{ {
"id": 200003, "id": 200003,
"type": 2, "type": 2,
"monstername": "Guard NO.20",
"sencenstory": [ "sencenstory": [
301, 301,
301 301
@ -382,7 +362,6 @@
{ {
"id": 720013, "id": 720013,
"type": 1, "type": 1,
"monstername": "Guard Rhino ",
"sencenstory": [], "sencenstory": [],
"time": 3, "time": 3,
"clickstory": 0, "clickstory": 0,

View File

@ -8,11 +8,11 @@
"endstory": 0, "endstory": 0,
"battlename": { "battlename": {
"key": "story_80", "key": "story_80",
"text": "踢馆1号" "text": "闹事之人"
}, },
"battletxt": { "battletxt": {
"key": "story_80", "key": "story_80",
"text": "踢馆1号的文本" "text": "有人前来闹事,快去解决掉他"
}, },
"BattleReadyID": 100, "BattleReadyID": 100,
"EventList": [], "EventList": [],
@ -62,11 +62,11 @@
"endstory": 0, "endstory": 0,
"battlename": { "battlename": {
"key": "story_81", "key": "story_81",
"text": "踢馆2号" "text": "闹事之人"
}, },
"battletxt": { "battletxt": {
"key": "story_81", "key": "story_81",
"text": "踢馆2号的文本" "text": "有人前来闹事,快去解决掉他"
}, },
"BattleReadyID": 100, "BattleReadyID": 100,
"EventList": [], "EventList": [],

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,8 @@
"id": 1, "id": 1,
"unlock_condition": 20010, "unlock_condition": 20010,
"unlock_conditiondes": { "unlock_conditiondes": {
"key": "通关主线1-1后解锁", "key": "完成任务“这是哪里”",
"text": "通关主线1-1后解锁" "text": "完成任务“这是哪里”"
} }
}, },
{ {

View File

@ -4,7 +4,6 @@
"name": "右屏商人", "name": "右屏商人",
"information": "这是一位熊猫商人", "information": "这是一位熊猫商人",
"ico": "action_11001", "ico": "action_11001",
"scene": "1",
"time": 300 "time": 300
}, },
{ {
@ -12,7 +11,6 @@
"name": "上屏商人", "name": "上屏商人",
"information": "这是一位波比商人再此", "information": "这是一位波比商人再此",
"ico": "action_11003", "ico": "action_11003",
"scene": "2",
"time": 400 "time": 400
}, },
{ {
@ -20,7 +18,6 @@
"name": "左屏商人", "name": "左屏商人",
"information": "这是一位滑板鞋王子", "information": "这是一位滑板鞋王子",
"ico": "ytx_js_14007", "ico": "ytx_js_14007",
"scene": "3",
"time": 500 "time": 500
} }
] ]

View File

@ -753,7 +753,7 @@
"key": 30001, "key": 30001,
"lock": 1, "lock": 1,
"ontxe": 20010, "ontxe": 20010,
"id_after": 30002, "id_after": 0,
"group": 3, "group": 3,
"des": 2, "des": 2,
"icon": "", "icon": "",
@ -769,11 +769,11 @@
"key": "story_80", "key": "story_80",
"text": "新手引导" "text": "新手引导"
}, },
"npc": 27, "npc": 29,
"completetask": [ "completetask": [
301 301
], ],
"deliver_npc": 28, "deliver_npc": 1,
"auto_accept": 0, "auto_accept": 0,
"reword": [], "reword": [],
"module": [] "module": []

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

View File

@ -0,0 +1,56 @@
//------------------------------------------------------------------------------
// <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 GameBreakingbadData struct {
Delicacies string
Recipe []*Gameatr
Type int32
Flame int32
Unlockreward *Gameatn
}
const TypeId_GameBreakingbadData = -702491792
func (*GameBreakingbadData) GetTypeId() int32 {
return -702491792
}
func (_v *GameBreakingbadData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Delicacies, _ok_ = _buf["delicacies"].(string); !_ok_ { err = errors.New("delicacies error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["recipe"].([]interface{}); !_ok_ { err = errors.New("recipe error"); return }
_v.Recipe = make([]*Gameatr, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatr
{ 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 = DeserializeGameatr(_x_); err != nil { return } }
_v.Recipe = append(_v.Recipe, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Type"].(float64); !_ok_ { err = errors.New("Type error"); return }; _v.Type = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flame"].(float64); !_ok_ { err = errors.New("flame error"); return }; _v.Flame = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["unlockreward"].(map[string]interface{}); !_ok_ { err = errors.New("unlockreward error"); return }; if _v.Unlockreward, err = DeserializeGameatn(_x_); err != nil { return } }
return
}
func DeserializeGameBreakingbadData(_buf map[string]interface{}) (*GameBreakingbadData, error) {
v := &GameBreakingbadData{}
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 GameRdtaskNpc struct {
_dataMap map[int32]*GameRdtaskNpcData
_dataList []*GameRdtaskNpcData
}
func NewGameRdtaskNpc(_buf []map[string]interface{}) (*GameRdtaskNpc, error) {
_dataList := make([]*GameRdtaskNpcData, 0, len(_buf))
dataMap := make(map[int32]*GameRdtaskNpcData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameRdtaskNpcData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameRdtaskNpc{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameRdtaskNpc) GetDataMap() map[int32]*GameRdtaskNpcData {
return table._dataMap
}
func (table *GameRdtaskNpc) GetDataList() []*GameRdtaskNpcData {
return table._dataList
}
func (table *GameRdtaskNpc) Get(key int32) *GameRdtaskNpcData {
return table._dataMap[key]
}

View File

@ -0,0 +1,67 @@
//------------------------------------------------------------------------------
// <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 GameRdtaskNpcData struct {
Id int32
Datas []string
Event []int32
Goto int32
}
const TypeId_GameRdtaskNpcData = -2132874632
func (*GameRdtaskNpcData) GetTypeId() int32 {
return -2132874632
}
func (_v *GameRdtaskNpcData)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 _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["datas"].([]interface{}); !_ok_ { err = errors.New("datas error"); return }
_v.Datas = make([]string, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ string
{ if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
_v.Datas = append(_v.Datas, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["event"].([]interface{}); !_ok_ { err = errors.New("event error"); return }
_v.Event = 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.Event = append(_v.Event, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["goto"].(float64); !_ok_ { err = errors.New("goto error"); return }; _v.Goto = int32(_tempNum_) }
return
}
func DeserializeGameRdtaskNpcData(_buf map[string]interface{}) (*GameRdtaskNpcData, error) {
v := &GameRdtaskNpcData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -63,6 +63,7 @@ type Tables struct {
SeasonLoop *GameSeasonLoop SeasonLoop *GameSeasonLoop
PagodaSeasonReward *GamePagodaSeasonReward PagodaSeasonReward *GamePagodaSeasonReward
RdtaskCondi *GameRdtaskCondi RdtaskCondi *GameRdtaskCondi
RdtaskNpc *GameRdtaskNpc
Gourmet *GameGourmet Gourmet *GameGourmet
Drop *GameDrop Drop *GameDrop
VikingBoss *GameVikingBoss VikingBoss *GameVikingBoss
@ -176,6 +177,7 @@ type Tables struct {
PandamasTjjl *GamePandamasTjjl PandamasTjjl *GamePandamasTjjl
PandamasYxjx *GamePandamasYxjx PandamasYxjx *GamePandamasYxjx
BubbleGroup *GameBubbleGroup BubbleGroup *GameBubbleGroup
Breakingbad *GameBreakingbad
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -495,6 +497,12 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.RdtaskCondi, err = NewGameRdtaskCondi(buf) ; err != nil { if tables.RdtaskCondi, err = NewGameRdtaskCondi(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_rdtasknpc") ; err != nil {
return nil, err
}
if tables.RdtaskNpc, err = NewGameRdtaskNpc(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_gourmet") ; err != nil { if buf, err = loader("game_gourmet") ; err != nil {
return nil, err return nil, err
} }
@ -1173,5 +1181,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.BubbleGroup, err = NewGameBubbleGroup(buf) ; err != nil { if tables.BubbleGroup, err = NewGameBubbleGroup(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_breakingbad") ; err != nil {
return nil, err
}
if tables.Breakingbad, err = NewGameBreakingbad(buf) ; err != nil {
return nil, err
}
return tables, nil return tables, nil
} }

View File

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