mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
46 lines
1.5 KiB
Go
46 lines
1.5 KiB
Go
|
|
//------------------------------------------------------------------------------
|
|
// <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 TestTestIndex struct {
|
|
Id int32
|
|
Eles []*TestDemoType1
|
|
}
|
|
|
|
const TypeId_TestTestIndex = 1941154020
|
|
|
|
func (*TestTestIndex) GetTypeId() int32 {
|
|
return 1941154020
|
|
}
|
|
|
|
func NewTestTestIndex(_buf map[string]interface{}) (_v *TestTestIndex, err error) {
|
|
_v = &TestTestIndex{}
|
|
{ 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["eles"].([]interface{}); !_ok_ { err = errors.New("eles error"); return }
|
|
|
|
_v.Eles = make([]*TestDemoType1, 0, len(_arr_))
|
|
|
|
for _, _e_ := range _arr_ {
|
|
var _list_v_ *TestDemoType1
|
|
{ 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 = NewTestDemoType1(_x_); err != nil { return } }
|
|
_v.Eles = append(_v.Eles, _list_v_)
|
|
}
|
|
}
|
|
|
|
return
|
|
}
|
|
|