mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
38 lines
996 B
Go
38 lines
996 B
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 TestRefDynamicBase struct {
|
||
|
X int32
|
||
|
}
|
||
|
|
||
|
const TypeId_TestRefDynamicBase = 772878873
|
||
|
|
||
|
func (*TestRefDynamicBase) GetTypeId() int32 {
|
||
|
return 772878873
|
||
|
}
|
||
|
|
||
|
func NewTestRefDynamicBase(_buf map[string]interface{}) (interface{}, error) {
|
||
|
var id string
|
||
|
var _ok_ bool
|
||
|
if id, _ok_ = _buf["$type"].(string) ; !_ok_ {
|
||
|
return nil, errors.New("type id missing")
|
||
|
}
|
||
|
switch id {
|
||
|
case "RefBean": _v, err := NewTestRefBean(_buf); if err != nil { return nil, errors.New("testrefbean") } else { return _v, nil }
|
||
|
default: return nil, errors.New("unknown type id")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|