同辈配置文件

This commit is contained in:
liwei1dao 2022-09-16 20:09:32 +08:00
parent ff58a55669
commit 4436df09d1
9 changed files with 1222 additions and 1126 deletions

File diff suppressed because it is too large Load Diff

View File

@ -504,7 +504,7 @@
"var": [
{
"a": "hero",
"t": "35002",
"t": "44006",
"n": 5
}
]
@ -514,7 +514,7 @@
"var": [
{
"a": "hero",
"t": "24003",
"t": "35001",
"n": 5
}
]
@ -524,7 +524,7 @@
"var": [
{
"a": "hero",
"t": "34006",
"t": "44005",
"n": 5
}
]
@ -534,7 +534,7 @@
"var": [
{
"a": "hero",
"t": "44006",
"t": "15004",
"n": 5
}
]
@ -544,7 +544,7 @@
"var": [
{
"a": "hero",
"t": "35001",
"t": "24002",
"n": 5
}
]
@ -554,7 +554,77 @@
"var": [
{
"a": "hero",
"t": "44005",
"t": "14007",
"n": 5
}
]
},
{
"index": "60",
"var": [
{
"a": "hero",
"t": "45003",
"n": 5
}
]
},
{
"index": "61",
"var": [
{
"a": "hero",
"t": "24004",
"n": 5
}
]
},
{
"index": "62",
"var": [
{
"a": "hero",
"t": "14003",
"n": 5
}
]
},
{
"index": "63",
"var": [
{
"a": "hero",
"t": "35003",
"n": 5
}
]
},
{
"index": "64",
"var": [
{
"a": "hero",
"t": "15005",
"n": 5
}
]
},
{
"index": "65",
"var": [
{
"a": "hero",
"t": "34006",
"n": 5
}
]
},
{
"index": "66",
"var": [
{
"a": "hero",
"t": "24003",
"n": 5
}
]

50
bin/json/game_ip.json Normal file
View File

@ -0,0 +1,50 @@
[
{
"ip_id": 1,
"ip_icon": "zm_ip_logo05"
},
{
"ip_id": 2,
"ip_icon": "zm_ip_logo12"
},
{
"ip_id": 3,
"ip_icon": "zm_ip_logo02"
},
{
"ip_id": 4,
"ip_icon": "zm_ip_logo01"
},
{
"ip_id": 5,
"ip_icon": "zm_ip_logo10"
},
{
"ip_id": 6,
"ip_icon": "zm_ip_logo11"
},
{
"ip_id": 7,
"ip_icon": "zm_ip_logo09"
},
{
"ip_id": 8,
"ip_icon": "zm_ip_logo08"
},
{
"ip_id": 9,
"ip_icon": "zm_ip_logo04"
},
{
"ip_id": 10,
"ip_icon": "zm_ip_logo07"
},
{
"ip_id": 11,
"ip_icon": "zm_ip_logo03"
},
{
"ip_id": 12,
"ip_icon": "zm_ip_logo06"
}
]

File diff suppressed because it is too large Load Diff

View File

@ -1586,7 +1586,7 @@
{
"id": "44005",
"preson": "44005",
"presonshow": "44005",
"presonshow": "44005_exhibition",
"presonstory": "44005_story",
"height": 1.5,
"weight": 0.3,

View File

@ -2690,7 +2690,7 @@
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
2,
4,
300,
1,
@ -2734,7 +2734,7 @@
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
2,
4,
300,
1,
@ -2778,7 +2778,7 @@
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
2,
4,
300,
1,
@ -2822,7 +2822,7 @@
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
2,
4,
300,
1,
@ -2866,7 +2866,7 @@
"ExecuteCnt": 1,
"Type": 1,
"Argu": [
1,
2,
4,
300,
1,

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

View File

@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <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 GameIpData struct {
IpId int32
IpIcon string
}
const TypeId_GameIpData = -59343123
func (*GameIpData) GetTypeId() int32 {
return -59343123
}
func (_v *GameIpData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ip_id"].(float64); !_ok_ { err = errors.New("ip_id error"); return }; _v.IpId = int32(_tempNum_) }
{ var _ok_ bool; if _v.IpIcon, _ok_ = _buf["ip_icon"].(string); !_ok_ { err = errors.New("ip_icon error"); return } }
return
}
func DeserializeGameIpData(_buf map[string]interface{}) (*GameIpData, error) {
v := &GameIpData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -98,6 +98,7 @@ type Tables struct {
LibraryHistory *GameLibraryHistory
LibraryFavor *GameLibraryFavor
Robot *GameRobot
Ip *GameIp
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -627,5 +628,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.Robot, err = NewGameRobot(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_ip") ; err != nil {
return nil, err
}
if tables.Ip, err = NewGameIp(buf) ; err != nil {
return nil, err
}
return tables, nil
}