This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 03:26:09 +08:00
parent ec4d6a15d7
commit 0014eff5e0
4034 changed files with 623229 additions and 41 deletions

View File

@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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;
const (
AudioType_UNKNOWN = 0;
AudioType_ACC = 1;
AudioType_AIFF = 2;
)

View File

@@ -0,0 +1,145 @@
//------------------------------------------------------------------------------
// <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 DefineFromExcel2 struct {
Id int32
X1 bool
X5 int64
X6 float32
X8 int32
X10 string
X13 int32
X132 int32
X14 interface{}
X15 interface{}
V2 *vec2
T1 int64
K1 []int32
K2 []int32
K8 map[int32]int32
K9 []*TestDemoE2
K10 []*vec3
K11 []*vec4
}
const TypeId_DefineFromExcel2 = 482045152
func (*DefineFromExcel2) GetTypeId() int32 {
return 482045152
}
func NewDefineFromExcel2(_buf map[string]interface{}) (_v *DefineFromExcel2, err error) {
_v = &DefineFromExcel2{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8"].(float64); !_ok_ { err = errors.New("x8 error"); return }; _v.X8 = int32(_tempNum_) }
{ var _ok_ bool; if _v.X10, _ok_ = _buf["x10"].(string); !_ok_ { err = errors.New("x10 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13_2"].(float64); !_ok_ { err = errors.New("x13_2 error"); return }; _v.X132 = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x15"].(map[string]interface{}); !_ok_ { err = errors.New("x15 error"); return }; if _v.X15, err = NewTestShape(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return }
_v.K1 = 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.K1 = append(_v.K1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k2"].([]interface{}); !_ok_ { err = errors.New("k2 error"); return }
_v.K2 = 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.K2 = append(_v.K2, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return }
_v.K8 = make(map[int32]int32)
for _, _e_ := range _arr_ {
var _kv_ []interface{}
if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return }
var _key_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) }
var _value_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) }
_v.K8[_key_] = _value_
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return }
_v.K9 = make([]*TestDemoE2, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *TestDemoE2
{ 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 = NewTestDemoE2(_x_); err != nil { return } }
_v.K9 = append(_v.K9, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k10"].([]interface{}); !_ok_ { err = errors.New("k10 error"); return }
_v.K10 = make([]*vec3, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *vec3
{ 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 = Newvec3(_x_); err != nil { return } }
_v.K10 = append(_v.K10, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k11"].([]interface{}); !_ok_ { err = errors.New("k11 error"); return }
_v.K11 = make([]*vec4, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *vec4
{ 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 = Newvec4(_x_); err != nil { return } }
_v.K11 = append(_v.K11, _list_v_)
}
}
return
}

View File

@@ -0,0 +1,312 @@
//------------------------------------------------------------------------------
// <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 JsonLoader func(string) ([]map[string]interface{}, error)
type Tables struct {
TbBlackboard *AiTbBlackboard
TbBehaviorTree *AiTbBehaviorTree
TbGlobalConfig *CommonTbGlobalConfig
TbItem *ItemTbItem
TbL10NDemo *L10nTbL10NDemo
TbPatchDemo *L10nTbPatchDemo
TbTestTag *TagTbTestTag
TbFullTypes *TestTbFullTypes
TbSingleton *TestTbSingleton
TbNotIndexList *TestTbNotIndexList
TbMultiUnionIndexList *TestTbMultiUnionIndexList
TbMultiIndexList *TestTbMultiIndexList
TbDataFromMisc *TestTbDataFromMisc
TbMultiRowRecord *TestTbMultiRowRecord
TbTestMultiColumn *TestTbTestMultiColumn
TbMultiRowTitle *TestTbMultiRowTitle
TbTestNull *TestTbTestNull
TbDemoPrimitive *TestTbDemoPrimitive
TbTestString *TestTbTestString
TbDemoGroup *TestTbDemoGroup
TbDemoGroup_C *TestTbDemoGroup_C
TbDemoGroup_S *TestTbDemoGroup_S
TbDemoGroup_E *TestTbDemoGroup_E
TbTestGlobal *TestTbTestGlobal
TbTestBeRef *TestTbTestBeRef
TbTestBeRef2 *TestTbTestBeRef2
TbTestRef *TestTbTestRef
TbTestSize *TestTbTestSize
TbTestSet *TestTbTestSet
TbDetectCsvEncoding *TestTbDetectCsvEncoding
TbItem2 *TestTbItem2
TbTestIndex *TestTbTestIndex
TbTestMap *TestTbTestMap
TbExcelFromJson *TestTbExcelFromJson
TbCompositeJsonTable1 *TestTbCompositeJsonTable1
TbCompositeJsonTable2 *TestTbCompositeJsonTable2
TbCompositeJsonTable3 *TestTbCompositeJsonTable3
TbExcelFromJsonMultiRow *TestTbExcelFromJsonMultiRow
TbTestScriptableObject *TestTbTestScriptableObject
TbTestMapper *TestTbTestMapper
TbDefineFromExcel2 *TestTbDefineFromExcel2
}
func NewTables(loader JsonLoader) (*Tables, error) {
var err error
var buf []map[string]interface{}
tables := &Tables{}
if buf, err = loader("ai_tbblackboard") ; err != nil {
return nil, err
}
if tables.TbBlackboard, err = NewAiTbBlackboard(buf) ; err != nil {
return nil, err
}
if buf, err = loader("ai_tbbehaviortree") ; err != nil {
return nil, err
}
if tables.TbBehaviorTree, err = NewAiTbBehaviorTree(buf) ; err != nil {
return nil, err
}
if buf, err = loader("common_tbglobalconfig") ; err != nil {
return nil, err
}
if tables.TbGlobalConfig, err = NewCommonTbGlobalConfig(buf) ; err != nil {
return nil, err
}
if buf, err = loader("item_tbitem") ; err != nil {
return nil, err
}
if tables.TbItem, err = NewItemTbItem(buf) ; err != nil {
return nil, err
}
if buf, err = loader("l10n_tbl10ndemo") ; err != nil {
return nil, err
}
if tables.TbL10NDemo, err = NewL10nTbL10NDemo(buf) ; err != nil {
return nil, err
}
if buf, err = loader("l10n_tbpatchdemo") ; err != nil {
return nil, err
}
if tables.TbPatchDemo, err = NewL10nTbPatchDemo(buf) ; err != nil {
return nil, err
}
if buf, err = loader("tag_tbtesttag") ; err != nil {
return nil, err
}
if tables.TbTestTag, err = NewTagTbTestTag(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbfulltypes") ; err != nil {
return nil, err
}
if tables.TbFullTypes, err = NewTestTbFullTypes(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbsingleton") ; err != nil {
return nil, err
}
if tables.TbSingleton, err = NewTestTbSingleton(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbnotindexlist") ; err != nil {
return nil, err
}
if tables.TbNotIndexList, err = NewTestTbNotIndexList(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbmultiunionindexlist") ; err != nil {
return nil, err
}
if tables.TbMultiUnionIndexList, err = NewTestTbMultiUnionIndexList(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbmultiindexlist") ; err != nil {
return nil, err
}
if tables.TbMultiIndexList, err = NewTestTbMultiIndexList(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdatafrommisc") ; err != nil {
return nil, err
}
if tables.TbDataFromMisc, err = NewTestTbDataFromMisc(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbmultirowrecord") ; err != nil {
return nil, err
}
if tables.TbMultiRowRecord, err = NewTestTbMultiRowRecord(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestmulticolumn") ; err != nil {
return nil, err
}
if tables.TbTestMultiColumn, err = NewTestTbTestMultiColumn(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbmultirowtitle") ; err != nil {
return nil, err
}
if tables.TbMultiRowTitle, err = NewTestTbMultiRowTitle(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestnull") ; err != nil {
return nil, err
}
if tables.TbTestNull, err = NewTestTbTestNull(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdemoprimitive") ; err != nil {
return nil, err
}
if tables.TbDemoPrimitive, err = NewTestTbDemoPrimitive(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbteststring") ; err != nil {
return nil, err
}
if tables.TbTestString, err = NewTestTbTestString(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdemogroup") ; err != nil {
return nil, err
}
if tables.TbDemoGroup, err = NewTestTbDemoGroup(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdemogroup_c") ; err != nil {
return nil, err
}
if tables.TbDemoGroup_C, err = NewTestTbDemoGroup_C(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdemogroup_s") ; err != nil {
return nil, err
}
if tables.TbDemoGroup_S, err = NewTestTbDemoGroup_S(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdemogroup_e") ; err != nil {
return nil, err
}
if tables.TbDemoGroup_E, err = NewTestTbDemoGroup_E(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestglobal") ; err != nil {
return nil, err
}
if tables.TbTestGlobal, err = NewTestTbTestGlobal(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestberef") ; err != nil {
return nil, err
}
if tables.TbTestBeRef, err = NewTestTbTestBeRef(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestberef2") ; err != nil {
return nil, err
}
if tables.TbTestBeRef2, err = NewTestTbTestBeRef2(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestref") ; err != nil {
return nil, err
}
if tables.TbTestRef, err = NewTestTbTestRef(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestsize") ; err != nil {
return nil, err
}
if tables.TbTestSize, err = NewTestTbTestSize(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestset") ; err != nil {
return nil, err
}
if tables.TbTestSet, err = NewTestTbTestSet(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdetectcsvencoding") ; err != nil {
return nil, err
}
if tables.TbDetectCsvEncoding, err = NewTestTbDetectCsvEncoding(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbitem2") ; err != nil {
return nil, err
}
if tables.TbItem2, err = NewTestTbItem2(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestindex") ; err != nil {
return nil, err
}
if tables.TbTestIndex, err = NewTestTbTestIndex(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestmap") ; err != nil {
return nil, err
}
if tables.TbTestMap, err = NewTestTbTestMap(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbexcelfromjson") ; err != nil {
return nil, err
}
if tables.TbExcelFromJson, err = NewTestTbExcelFromJson(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbcompositejsontable1") ; err != nil {
return nil, err
}
if tables.TbCompositeJsonTable1, err = NewTestTbCompositeJsonTable1(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbcompositejsontable2") ; err != nil {
return nil, err
}
if tables.TbCompositeJsonTable2, err = NewTestTbCompositeJsonTable2(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbcompositejsontable3") ; err != nil {
return nil, err
}
if tables.TbCompositeJsonTable3, err = NewTestTbCompositeJsonTable3(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbexcelfromjsonmultirow") ; err != nil {
return nil, err
}
if tables.TbExcelFromJsonMultiRow, err = NewTestTbExcelFromJsonMultiRow(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestscriptableobject") ; err != nil {
return nil, err
}
if tables.TbTestScriptableObject, err = NewTestTbTestScriptableObject(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbtestmapper") ; err != nil {
return nil, err
}
if tables.TbTestMapper, err = NewTestTbTestMapper(buf) ; err != nil {
return nil, err
}
if buf, err = loader("test_tbdefinefromexcel2") ; err != nil {
return nil, err
}
if tables.TbDefineFromExcel2, err = NewTestTbDefineFromExcel2(buf) ; err != nil {
return nil, err
}
return tables, nil
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <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 AiBehaviorTree struct {
Id int32
Name string
Desc string
BlackboardId string
Root interface{}
}
const TypeId_AiBehaviorTree = 159552822
func (*AiBehaviorTree) GetTypeId() int32 {
return 159552822
}
func NewAiBehaviorTree(_buf map[string]interface{}) (_v *AiBehaviorTree, err error) {
_v = &AiBehaviorTree{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; if _v.BlackboardId, _ok_ = _buf["blackboard_id"].(string); !_ok_ { err = errors.New("blackboard_id error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["root"].(map[string]interface{}); !_ok_ { err = errors.New("root error"); return }; if _v.Root, err = NewAiComposeNode(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 AiBinaryOperator struct {
Oper int32
Data interface{}
}
const TypeId_AiBinaryOperator = -979891605
func (*AiBinaryOperator) GetTypeId() int32 {
return -979891605
}
func NewAiBinaryOperator(_buf map[string]interface{}) (_v *AiBinaryOperator, err error) {
_v = &AiBinaryOperator{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["oper"].(float64); !_ok_ { err = errors.New("oper error"); return }; _v.Oper = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["data"].(map[string]interface{}); !_ok_ { err = errors.New("data error"); return }; if _v.Data, err = NewAiKeyData(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <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 AiBlackboard struct {
Name string
Desc string
ParentName string
Keys []*AiBlackboardKey
}
const TypeId_AiBlackboard = 1576193005
func (*AiBlackboard) GetTypeId() int32 {
return 1576193005
}
func NewAiBlackboard(_buf map[string]interface{}) (_v *AiBlackboard, err error) {
_v = &AiBlackboard{}
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; if _v.ParentName, _ok_ = _buf["parent_name"].(string); !_ok_ { err = errors.New("parent_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["keys"].([]interface{}); !_ok_ { err = errors.New("keys error"); return }
_v.Keys = make([]*AiBlackboardKey, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *AiBlackboardKey
{ 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 = NewAiBlackboardKey(_x_); err != nil { return } }
_v.Keys = append(_v.Keys, _list_v_)
}
}
return
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <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 AiBlackboardKey struct {
Name string
Desc string
IsStatic bool
Type int32
TypeClassName string
}
const TypeId_AiBlackboardKey = -511559886
func (*AiBlackboardKey) GetTypeId() int32 {
return -511559886
}
func NewAiBlackboardKey(_buf map[string]interface{}) (_v *AiBlackboardKey, err error) {
_v = &AiBlackboardKey{}
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; if _v.IsStatic, _ok_ = _buf["is_static"].(bool); !_ok_ { err = errors.New("is_static error"); return } }
{ 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; if _v.TypeClassName, _ok_ = _buf["type_class_name"].(string); !_ok_ { err = errors.New("type_class_name error"); return } }
return
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 AiBlackboardKeyData struct {
Value string
}
const TypeId_AiBlackboardKeyData = 1517269500
func (*AiBlackboardKeyData) GetTypeId() int32 {
return 1517269500
}
func NewAiBlackboardKeyData(_buf map[string]interface{}) (_v *AiBlackboardKeyData, err error) {
_v = &AiBlackboardKeyData{}
{ var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } }
return
}

View File

@@ -0,0 +1,68 @@
//------------------------------------------------------------------------------
// <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 AiChooseSkill struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
TargetActorKey string
ResultSkillIdKey string
}
const TypeId_AiChooseSkill = -918812268
func (*AiChooseSkill) GetTypeId() int32 {
return -918812268
}
func NewAiChooseSkill(_buf map[string]interface{}) (_v *AiChooseSkill, err error) {
_v = &AiChooseSkill{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } }
{ var _ok_ bool; if _v.ResultSkillIdKey, _ok_ = _buf["result_skill_id_key"].(string); !_ok_ { err = errors.New("result_skill_id_key error"); return } }
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 AiChooseTarget struct {
Id int32
NodeName string
ResultTargetKey string
}
const TypeId_AiChooseTarget = 1601247918
func (*AiChooseTarget) GetTypeId() int32 {
return 1601247918
}
func NewAiChooseTarget(_buf map[string]interface{}) (_v *AiChooseTarget, err error) {
_v = &AiChooseTarget{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; if _v.ResultTargetKey, _ok_ = _buf["result_target_key"].(string); !_ok_ { err = errors.New("result_target_key error"); return } }
return
}

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;
import "errors"
type AiComposeNode struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
}
const TypeId_AiComposeNode = -70129202
func (*AiComposeNode) GetTypeId() int32 {
return -70129202
}
func NewAiComposeNode(_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 "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil }
case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil }
case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 AiDebugPrint struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
Text string
}
const TypeId_AiDebugPrint = 1357409728
func (*AiDebugPrint) GetTypeId() int32 {
return 1357409728
}
func NewAiDebugPrint(_buf map[string]interface{}) (_v *AiDebugPrint, err error) {
_v = &AiDebugPrint{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
return
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 AiDecorator struct {
Id int32
NodeName string
FlowAbortMode int32
}
const TypeId_AiDecorator = 2017109461
func (*AiDecorator) GetTypeId() int32 {
return 2017109461
}
func NewAiDecorator(_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 "UeLoop": _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("aiueloop") } else { return _v, nil }
case "UeCooldown": _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("aiuecooldown") } else { return _v, nil }
case "UeTimeLimit": _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("aiuetimelimit") } else { return _v, nil }
case "UeBlackboard": _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("aiueblackboard") } else { return _v, nil }
case "UeForceSuccess": _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("aiueforcesuccess") } else { return _v, nil }
case "IsAtLocation": _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("aiisatlocation") } else { return _v, nil }
case "DistanceLessThan": _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("aidistancelessthan") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

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;
import "errors"
type AiDistanceLessThan struct {
Id int32
NodeName string
FlowAbortMode int32
Actor1Key string
Actor2Key string
Distance float32
ReverseResult bool
}
const TypeId_AiDistanceLessThan = -1207170283
func (*AiDistanceLessThan) GetTypeId() int32 {
return -1207170283
}
func NewAiDistanceLessThan(_buf map[string]interface{}) (_v *AiDistanceLessThan, err error) {
_v = &AiDistanceLessThan{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; if _v.Actor1Key, _ok_ = _buf["actor1_key"].(string); !_ok_ { err = errors.New("actor1_key error"); return } }
{ var _ok_ bool; if _v.Actor2Key, _ok_ = _buf["actor2_key"].(string); !_ok_ { err = errors.New("actor2_key error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["distance"].(float64); !_ok_ { err = errors.New("distance error"); return }; _v.Distance = float32(_tempNum_) }
{ var _ok_ bool; if _v.ReverseResult, _ok_ = _buf["reverse_result"].(bool); !_ok_ { err = errors.New("reverse_result error"); return } }
return
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <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;
const (
AiEExecutor_CLIENT = 0;
AiEExecutor_SERVER = 1;
)

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <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;
const (
AiEFinishMode_IMMEDIATE = 0;
AiEFinishMode_DELAYED = 1;
)

View File

@@ -0,0 +1,18 @@
//------------------------------------------------------------------------------
// <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;
const (
AiEFlowAbortMode_NONE = 0;
AiEFlowAbortMode_LOWER_PRIORITY = 1;
AiEFlowAbortMode_SELF = 2;
AiEFlowAbortMode_BOTH = 3;
)

View File

@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <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;
const (
AiEKeyType_BOOL = 1;
AiEKeyType_INT = 2;
AiEKeyType_FLOAT = 3;
AiEKeyType_STRING = 4;
AiEKeyType_VECTOR = 5;
AiEKeyType_ROTATOR = 6;
AiEKeyType_NAME = 7;
AiEKeyType_CLASS = 8;
AiEKeyType_ENUM = 9;
AiEKeyType_OBJECT = 10;
)

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <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;
const (
AiENotifyObserverMode_ON_VALUE_CHANGE = 0;
AiENotifyObserverMode_ON_RESULT_CHANGE = 1;
)

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <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;
const (
AiEOperator_IS_EQUAL_TO = 0;
AiEOperator_IS_NOT_EQUAL_TO = 1;
AiEOperator_IS_LESS_THAN = 2;
AiEOperator_IS_LESS_THAN_OR_EQUAL_TO = 3;
AiEOperator_IS_GREAT_THAN = 4;
AiEOperator_IS_GREAT_THAN_OR_EQUAL_TO = 5;
AiEOperator_CONTAINS = 6;
AiEOperator_NOT_CONTAINS = 7;
)

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 AiExecuteTimeStatistic struct {
Id int32
NodeName string
}
const TypeId_AiExecuteTimeStatistic = 990693812
func (*AiExecuteTimeStatistic) GetTypeId() int32 {
return 990693812
}
func NewAiExecuteTimeStatistic(_buf map[string]interface{}) (_v *AiExecuteTimeStatistic, err error) {
_v = &AiExecuteTimeStatistic{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
return
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 AiFloatKeyData struct {
Value float32
}
const TypeId_AiFloatKeyData = -719747885
func (*AiFloatKeyData) GetTypeId() int32 {
return -719747885
}
func NewAiFloatKeyData(_buf map[string]interface{}) (_v *AiFloatKeyData, err error) {
_v = &AiFloatKeyData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <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 AiFlowNode struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
}
const TypeId_AiFlowNode = -1109240970
func (*AiFlowNode) GetTypeId() int32 {
return -1109240970
}
func NewAiFlowNode(_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 "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil }
case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil }
case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil }
case "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil }
case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil }
case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil }
case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil }
case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil }
case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil }
case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 AiGetOwnerPlayer struct {
Id int32
NodeName string
PlayerActorKey string
}
const TypeId_AiGetOwnerPlayer = -999247644
func (*AiGetOwnerPlayer) GetTypeId() int32 {
return -999247644
}
func NewAiGetOwnerPlayer(_buf map[string]interface{}) (_v *AiGetOwnerPlayer, err error) {
_v = &AiGetOwnerPlayer{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; if _v.PlayerActorKey, _ok_ = _buf["player_actor_key"].(string); !_ok_ { err = errors.New("player_actor_key error"); return } }
return
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 AiIntKeyData struct {
Value int32
}
const TypeId_AiIntKeyData = -342751904
func (*AiIntKeyData) GetTypeId() int32 {
return -342751904
}
func NewAiIntKeyData(_buf map[string]interface{}) (_v *AiIntKeyData, err error) {
_v = &AiIntKeyData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <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 AiIsAtLocation struct {
Id int32
NodeName string
FlowAbortMode int32
AcceptableRadius float32
KeyboardKey string
InverseCondition bool
}
const TypeId_AiIsAtLocation = 1255972344
func (*AiIsAtLocation) GetTypeId() int32 {
return 1255972344
}
func NewAiIsAtLocation(_buf map[string]interface{}) (_v *AiIsAtLocation, err error) {
_v = &AiIsAtLocation{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) }
{ var _ok_ bool; if _v.KeyboardKey, _ok_ = _buf["keyboard_key"].(string); !_ok_ { err = errors.New("keyboard_key error"); return } }
{ var _ok_ bool; if _v.InverseCondition, _ok_ = _buf["inverse_condition"].(bool); !_ok_ { err = errors.New("inverse_condition error"); return } }
return
}

View File

@@ -0,0 +1,28 @@
//------------------------------------------------------------------------------
// <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 AiIsNotSet struct {
}
const TypeId_AiIsNotSet = 790736255
func (*AiIsNotSet) GetTypeId() int32 {
return 790736255
}
func NewAiIsNotSet(_buf map[string]interface{}) (_v *AiIsNotSet, err error) {
_v = &AiIsNotSet{}
return
}

View File

@@ -0,0 +1,28 @@
//------------------------------------------------------------------------------
// <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 AiIsSet struct {
}
const TypeId_AiIsSet = 1635350898
func (*AiIsSet) GetTypeId() int32 {
return 1635350898
}
func NewAiIsSet(_buf map[string]interface{}) (_v *AiIsSet, err error) {
_v = &AiIsSet{}
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 AiKeepFaceTarget struct {
Id int32
NodeName string
TargetActorKey string
}
const TypeId_AiKeepFaceTarget = 1195270745
func (*AiKeepFaceTarget) GetTypeId() int32 {
return 1195270745
}
func NewAiKeepFaceTarget(_buf map[string]interface{}) (_v *AiKeepFaceTarget, err error) {
_v = &AiKeepFaceTarget{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } }
return
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <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 AiKeyData struct {
}
const TypeId_AiKeyData = 1022478019
func (*AiKeyData) GetTypeId() int32 {
return 1022478019
}
func NewAiKeyData(_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 "FloatKeyData": _v, err := NewAiFloatKeyData(_buf); if err != nil { return nil, errors.New("aifloatkeydata") } else { return _v, nil }
case "IntKeyData": _v, err := NewAiIntKeyData(_buf); if err != nil { return nil, errors.New("aiintkeydata") } else { return _v, nil }
case "StringKeyData": _v, err := NewAiStringKeyData(_buf); if err != nil { return nil, errors.New("aistringkeydata") } else { return _v, nil }
case "BlackboardKeyData": _v, err := NewAiBlackboardKeyData(_buf); if err != nil { return nil, errors.New("aiblackboardkeydata") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <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 AiKeyQueryOperator struct {
}
const TypeId_AiKeyQueryOperator = -738364781
func (*AiKeyQueryOperator) GetTypeId() int32 {
return -738364781
}
func NewAiKeyQueryOperator(_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 "IsSet": _v, err := NewAiIsSet(_buf); if err != nil { return nil, errors.New("aiisset") } else { return _v, nil }
case "IsNotSet": _v, err := NewAiIsNotSet(_buf); if err != nil { return nil, errors.New("aiisnotset") } else { return _v, nil }
case "BinaryOperator": _v, err := NewAiBinaryOperator(_buf); if err != nil { return nil, errors.New("aibinaryoperator") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 AiMoveToLocation struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
AcceptableRadius float32
}
const TypeId_AiMoveToLocation = -969953113
func (*AiMoveToLocation) GetTypeId() int32 {
return -969953113
}
func NewAiMoveToLocation(_buf map[string]interface{}) (_v *AiMoveToLocation, err error) {
_v = &AiMoveToLocation{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,68 @@
//------------------------------------------------------------------------------
// <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 AiMoveToRandomLocation struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
OriginPositionKey string
Radius float32
}
const TypeId_AiMoveToRandomLocation = -2140042998
func (*AiMoveToRandomLocation) GetTypeId() int32 {
return -2140042998
}
func NewAiMoveToRandomLocation(_buf map[string]interface{}) (_v *AiMoveToRandomLocation, err error) {
_v = &AiMoveToRandomLocation{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; if _v.OriginPositionKey, _ok_ = _buf["origin_position_key"].(string); !_ok_ { err = errors.New("origin_position_key error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["radius"].(float64); !_ok_ { err = errors.New("radius error"); return }; _v.Radius = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,68 @@
//------------------------------------------------------------------------------
// <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 AiMoveToTarget struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
TargetActorKey string
AcceptableRadius float32
}
const TypeId_AiMoveToTarget = 514987779
func (*AiMoveToTarget) GetTypeId() int32 {
return 514987779
}
func NewAiMoveToTarget(_buf map[string]interface{}) (_v *AiMoveToTarget, err error) {
_v = &AiMoveToTarget{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; if _v.TargetActorKey, _ok_ = _buf["target_actor_key"].(string); !_ok_ { err = errors.New("target_actor_key error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["acceptable_radius"].(float64); !_ok_ { err = errors.New("acceptable_radius error"); return }; _v.AcceptableRadius = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <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 AiNode struct {
Id int32
NodeName string
}
const TypeId_AiNode = -1055479768
func (*AiNode) GetTypeId() int32 {
return -1055479768
}
func NewAiNode(_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 "UeSetDefaultFocus": _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("aiuesetdefaultfocus") } else { return _v, nil }
case "ExecuteTimeStatistic": _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("aiexecutetimestatistic") } else { return _v, nil }
case "ChooseTarget": _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("aichoosetarget") } else { return _v, nil }
case "KeepFaceTarget": _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("aikeepfacetarget") } else { return _v, nil }
case "GetOwnerPlayer": _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("aigetownerplayer") } else { return _v, nil }
case "UpdateDailyBehaviorProps": _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("aiupdatedailybehaviorprops") } else { return _v, nil }
case "UeLoop": _v, err := NewAiUeLoop(_buf); if err != nil { return nil, errors.New("aiueloop") } else { return _v, nil }
case "UeCooldown": _v, err := NewAiUeCooldown(_buf); if err != nil { return nil, errors.New("aiuecooldown") } else { return _v, nil }
case "UeTimeLimit": _v, err := NewAiUeTimeLimit(_buf); if err != nil { return nil, errors.New("aiuetimelimit") } else { return _v, nil }
case "UeBlackboard": _v, err := NewAiUeBlackboard(_buf); if err != nil { return nil, errors.New("aiueblackboard") } else { return _v, nil }
case "UeForceSuccess": _v, err := NewAiUeForceSuccess(_buf); if err != nil { return nil, errors.New("aiueforcesuccess") } else { return _v, nil }
case "IsAtLocation": _v, err := NewAiIsAtLocation(_buf); if err != nil { return nil, errors.New("aiisatlocation") } else { return _v, nil }
case "DistanceLessThan": _v, err := NewAiDistanceLessThan(_buf); if err != nil { return nil, errors.New("aidistancelessthan") } else { return _v, nil }
case "Sequence": _v, err := NewAiSequence(_buf); if err != nil { return nil, errors.New("aisequence") } else { return _v, nil }
case "Selector": _v, err := NewAiSelector(_buf); if err != nil { return nil, errors.New("aiselector") } else { return _v, nil }
case "SimpleParallel": _v, err := NewAiSimpleParallel(_buf); if err != nil { return nil, errors.New("aisimpleparallel") } else { return _v, nil }
case "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil }
case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil }
case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil }
case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil }
case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil }
case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil }
case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,77 @@
//------------------------------------------------------------------------------
// <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 AiSelector struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
Children []interface{}
}
const TypeId_AiSelector = -1946981627
func (*AiSelector) GetTypeId() int32 {
return -1946981627
}
func NewAiSelector(_buf map[string]interface{}) (_v *AiSelector, err error) {
_v = &AiSelector{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["children"].([]interface{}); !_ok_ { err = errors.New("children error"); return }
_v.Children = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiFlowNode(_x_); err != nil { return } }
_v.Children = append(_v.Children, _list_v_)
}
}
return
}

View File

@@ -0,0 +1,77 @@
//------------------------------------------------------------------------------
// <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 AiSequence struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
Children []interface{}
}
const TypeId_AiSequence = -1789006105
func (*AiSequence) GetTypeId() int32 {
return -1789006105
}
func NewAiSequence(_buf map[string]interface{}) (_v *AiSequence, err error) {
_v = &AiSequence{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["children"].([]interface{}); !_ok_ { err = errors.New("children error"); return }
_v.Children = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiFlowNode(_x_); err != nil { return } }
_v.Children = append(_v.Children, _list_v_)
}
}
return
}

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 AiService struct {
Id int32
NodeName string
}
const TypeId_AiService = -472395057
func (*AiService) GetTypeId() int32 {
return -472395057
}
func NewAiService(_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 "UeSetDefaultFocus": _v, err := NewAiUeSetDefaultFocus(_buf); if err != nil { return nil, errors.New("aiuesetdefaultfocus") } else { return _v, nil }
case "ExecuteTimeStatistic": _v, err := NewAiExecuteTimeStatistic(_buf); if err != nil { return nil, errors.New("aiexecutetimestatistic") } else { return _v, nil }
case "ChooseTarget": _v, err := NewAiChooseTarget(_buf); if err != nil { return nil, errors.New("aichoosetarget") } else { return _v, nil }
case "KeepFaceTarget": _v, err := NewAiKeepFaceTarget(_buf); if err != nil { return nil, errors.New("aikeepfacetarget") } else { return _v, nil }
case "GetOwnerPlayer": _v, err := NewAiGetOwnerPlayer(_buf); if err != nil { return nil, errors.New("aigetownerplayer") } else { return _v, nil }
case "UpdateDailyBehaviorProps": _v, err := NewAiUpdateDailyBehaviorProps(_buf); if err != nil { return nil, errors.New("aiupdatedailybehaviorprops") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,68 @@
//------------------------------------------------------------------------------
// <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 AiSimpleParallel struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
FinishMode int32
MainTask interface{}
BackgroundNode interface{}
}
const TypeId_AiSimpleParallel = -1952582529
func (*AiSimpleParallel) GetTypeId() int32 {
return -1952582529
}
func NewAiSimpleParallel(_buf map[string]interface{}) (_v *AiSimpleParallel, err error) {
_v = &AiSimpleParallel{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["finish_mode"].(float64); !_ok_ { err = errors.New("finish_mode error"); return }; _v.FinishMode = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["main_task"].(map[string]interface{}); !_ok_ { err = errors.New("main_task error"); return }; if _v.MainTask, err = NewAiTask(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["background_node"].(map[string]interface{}); !_ok_ { err = errors.New("background_node error"); return }; if _v.BackgroundNode, err = NewAiFlowNode(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 AiStringKeyData struct {
Value string
}
const TypeId_AiStringKeyData = -307888654
func (*AiStringKeyData) GetTypeId() int32 {
return -307888654
}
func NewAiStringKeyData(_buf map[string]interface{}) (_v *AiStringKeyData, err error) {
_v = &AiStringKeyData{}
{ var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } }
return
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <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 AiTask struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
}
const TypeId_AiTask = -1055314005
func (*AiTask) GetTypeId() int32 {
return -1055314005
}
func NewAiTask(_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 "UeWait": _v, err := NewAiUeWait(_buf); if err != nil { return nil, errors.New("aiuewait") } else { return _v, nil }
case "UeWaitBlackboardTime": _v, err := NewAiUeWaitBlackboardTime(_buf); if err != nil { return nil, errors.New("aiuewaitblackboardtime") } else { return _v, nil }
case "MoveToTarget": _v, err := NewAiMoveToTarget(_buf); if err != nil { return nil, errors.New("aimovetotarget") } else { return _v, nil }
case "ChooseSkill": _v, err := NewAiChooseSkill(_buf); if err != nil { return nil, errors.New("aichooseskill") } else { return _v, nil }
case "MoveToRandomLocation": _v, err := NewAiMoveToRandomLocation(_buf); if err != nil { return nil, errors.New("aimovetorandomlocation") } else { return _v, nil }
case "MoveToLocation": _v, err := NewAiMoveToLocation(_buf); if err != nil { return nil, errors.New("aimovetolocation") } else { return _v, nil }
case "DebugPrint": _v, err := NewAiDebugPrint(_buf); if err != nil { return nil, errors.New("aidebugprint") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 AiTbBehaviorTree struct {
_dataMap map[int32]*AiBehaviorTree
_dataList []*AiBehaviorTree
}
func NewAiTbBehaviorTree(_buf []map[string]interface{}) (*AiTbBehaviorTree, error) {
_dataList := make([]*AiBehaviorTree, 0, len(_buf))
dataMap := make(map[int32]*AiBehaviorTree)
for _, _ele_ := range _buf {
if _v, err2 := NewAiBehaviorTree(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &AiTbBehaviorTree{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *AiTbBehaviorTree) GetDataMap() map[int32]*AiBehaviorTree {
return table._dataMap
}
func (table *AiTbBehaviorTree) GetDataList() []*AiBehaviorTree {
return table._dataList
}
func (table *AiTbBehaviorTree) Get(key int32) *AiBehaviorTree {
return table._dataMap[key]
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 AiTbBlackboard struct {
_dataMap map[string]*AiBlackboard
_dataList []*AiBlackboard
}
func NewAiTbBlackboard(_buf []map[string]interface{}) (*AiTbBlackboard, error) {
_dataList := make([]*AiBlackboard, 0, len(_buf))
dataMap := make(map[string]*AiBlackboard)
for _, _ele_ := range _buf {
if _v, err2 := NewAiBlackboard(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Name] = _v
}
}
return &AiTbBlackboard{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *AiTbBlackboard) GetDataMap() map[string]*AiBlackboard {
return table._dataMap
}
func (table *AiTbBlackboard) GetDataList() []*AiBlackboard {
return table._dataList
}
func (table *AiTbBlackboard) Get(key string) *AiBlackboard {
return table._dataMap[key]
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <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 AiUeBlackboard struct {
Id int32
NodeName string
FlowAbortMode int32
NotifyObserver int32
BlackboardKey string
KeyQuery interface{}
}
const TypeId_AiUeBlackboard = -315297507
func (*AiUeBlackboard) GetTypeId() int32 {
return -315297507
}
func NewAiUeBlackboard(_buf map[string]interface{}) (_v *AiUeBlackboard, err error) {
_v = &AiUeBlackboard{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["notify_observer"].(float64); !_ok_ { err = errors.New("notify_observer error"); return }; _v.NotifyObserver = int32(_tempNum_) }
{ var _ok_ bool; if _v.BlackboardKey, _ok_ = _buf["blackboard_key"].(string); !_ok_ { err = errors.New("blackboard_key error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["key_query"].(map[string]interface{}); !_ok_ { err = errors.New("key_query error"); return }; if _v.KeyQuery, err = NewAiKeyQueryOperator(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <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 AiUeCooldown struct {
Id int32
NodeName string
FlowAbortMode int32
CooldownTime float32
}
const TypeId_AiUeCooldown = -951439423
func (*AiUeCooldown) GetTypeId() int32 {
return -951439423
}
func NewAiUeCooldown(_buf map[string]interface{}) (_v *AiUeCooldown, err error) {
_v = &AiUeCooldown{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["cooldown_time"].(float64); !_ok_ { err = errors.New("cooldown_time error"); return }; _v.CooldownTime = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 AiUeForceSuccess struct {
Id int32
NodeName string
FlowAbortMode int32
}
const TypeId_AiUeForceSuccess = 195054574
func (*AiUeForceSuccess) GetTypeId() int32 {
return 195054574
}
func NewAiUeForceSuccess(_buf map[string]interface{}) (_v *AiUeForceSuccess, err error) {
_v = &AiUeForceSuccess{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <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 AiUeLoop struct {
Id int32
NodeName string
FlowAbortMode int32
NumLoops int32
InfiniteLoop bool
InfiniteLoopTimeoutTime float32
}
const TypeId_AiUeLoop = -513308166
func (*AiUeLoop) GetTypeId() int32 {
return -513308166
}
func NewAiUeLoop(_buf map[string]interface{}) (_v *AiUeLoop, err error) {
_v = &AiUeLoop{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num_loops"].(float64); !_ok_ { err = errors.New("num_loops error"); return }; _v.NumLoops = int32(_tempNum_) }
{ var _ok_ bool; if _v.InfiniteLoop, _ok_ = _buf["infinite_loop"].(bool); !_ok_ { err = errors.New("infinite_loop error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["infinite_loop_timeout_time"].(float64); !_ok_ { err = errors.New("infinite_loop_timeout_time error"); return }; _v.InfiniteLoopTimeoutTime = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 AiUeSetDefaultFocus struct {
Id int32
NodeName string
KeyboardKey string
}
const TypeId_AiUeSetDefaultFocus = 1812449155
func (*AiUeSetDefaultFocus) GetTypeId() int32 {
return 1812449155
}
func NewAiUeSetDefaultFocus(_buf map[string]interface{}) (_v *AiUeSetDefaultFocus, err error) {
_v = &AiUeSetDefaultFocus{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; if _v.KeyboardKey, _ok_ = _buf["keyboard_key"].(string); !_ok_ { err = errors.New("keyboard_key error"); return } }
return
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <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 AiUeTimeLimit struct {
Id int32
NodeName string
FlowAbortMode int32
LimitTime float32
}
const TypeId_AiUeTimeLimit = 338469720
func (*AiUeTimeLimit) GetTypeId() int32 {
return 338469720
}
func NewAiUeTimeLimit(_buf map[string]interface{}) (_v *AiUeTimeLimit, err error) {
_v = &AiUeTimeLimit{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["flow_abort_mode"].(float64); !_ok_ { err = errors.New("flow_abort_mode error"); return }; _v.FlowAbortMode = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["limit_time"].(float64); !_ok_ { err = errors.New("limit_time error"); return }; _v.LimitTime = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,68 @@
//------------------------------------------------------------------------------
// <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 AiUeWait struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
WaitTime float32
RandomDeviation float32
}
const TypeId_AiUeWait = -512994101
func (*AiUeWait) GetTypeId() int32 {
return -512994101
}
func NewAiUeWait(_buf map[string]interface{}) (_v *AiUeWait, err error) {
_v = &AiUeWait{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["wait_time"].(float64); !_ok_ { err = errors.New("wait_time error"); return }; _v.WaitTime = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["random_deviation"].(float64); !_ok_ { err = errors.New("random_deviation error"); return }; _v.RandomDeviation = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 AiUeWaitBlackboardTime struct {
Id int32
NodeName string
Decorators []interface{}
Services []interface{}
IgnoreRestartSelf bool
BlackboardKey string
}
const TypeId_AiUeWaitBlackboardTime = 1215378271
func (*AiUeWaitBlackboardTime) GetTypeId() int32 {
return 1215378271
}
func NewAiUeWaitBlackboardTime(_buf map[string]interface{}) (_v *AiUeWaitBlackboardTime, err error) {
_v = &AiUeWaitBlackboardTime{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["decorators"].([]interface{}); !_ok_ { err = errors.New("decorators error"); return }
_v.Decorators = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiDecorator(_x_); err != nil { return } }
_v.Decorators = append(_v.Decorators, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["services"].([]interface{}); !_ok_ { err = errors.New("services error"); return }
_v.Services = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewAiService(_x_); err != nil { return } }
_v.Services = append(_v.Services, _list_v_)
}
}
{ var _ok_ bool; if _v.IgnoreRestartSelf, _ok_ = _buf["ignore_restart_self"].(bool); !_ok_ { err = errors.New("ignore_restart_self error"); return } }
{ var _ok_ bool; if _v.BlackboardKey, _ok_ = _buf["blackboard_key"].(string); !_ok_ { err = errors.New("blackboard_key error"); return } }
return
}

View File

@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <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 AiUpdateDailyBehaviorProps struct {
Id int32
NodeName string
SatietyKey string
EnergyKey string
MoodKey string
SatietyLowerThresholdKey string
SatietyUpperThresholdKey string
EnergyLowerThresholdKey string
EnergyUpperThresholdKey string
MoodLowerThresholdKey string
MoodUpperThresholdKey string
}
const TypeId_AiUpdateDailyBehaviorProps = -61887372
func (*AiUpdateDailyBehaviorProps) GetTypeId() int32 {
return -61887372
}
func NewAiUpdateDailyBehaviorProps(_buf map[string]interface{}) (_v *AiUpdateDailyBehaviorProps, err error) {
_v = &AiUpdateDailyBehaviorProps{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.NodeName, _ok_ = _buf["node_name"].(string); !_ok_ { err = errors.New("node_name error"); return } }
{ var _ok_ bool; if _v.SatietyKey, _ok_ = _buf["satiety_key"].(string); !_ok_ { err = errors.New("satiety_key error"); return } }
{ var _ok_ bool; if _v.EnergyKey, _ok_ = _buf["energy_key"].(string); !_ok_ { err = errors.New("energy_key error"); return } }
{ var _ok_ bool; if _v.MoodKey, _ok_ = _buf["mood_key"].(string); !_ok_ { err = errors.New("mood_key error"); return } }
{ var _ok_ bool; if _v.SatietyLowerThresholdKey, _ok_ = _buf["satiety_lower_threshold_key"].(string); !_ok_ { err = errors.New("satiety_lower_threshold_key error"); return } }
{ var _ok_ bool; if _v.SatietyUpperThresholdKey, _ok_ = _buf["satiety_upper_threshold_key"].(string); !_ok_ { err = errors.New("satiety_upper_threshold_key error"); return } }
{ var _ok_ bool; if _v.EnergyLowerThresholdKey, _ok_ = _buf["energy_lower_threshold_key"].(string); !_ok_ { err = errors.New("energy_lower_threshold_key error"); return } }
{ var _ok_ bool; if _v.EnergyUpperThresholdKey, _ok_ = _buf["energy_upper_threshold_key"].(string); !_ok_ { err = errors.New("energy_upper_threshold_key error"); return } }
{ var _ok_ bool; if _v.MoodLowerThresholdKey, _ok_ = _buf["mood_lower_threshold_key"].(string); !_ok_ { err = errors.New("mood_lower_threshold_key error"); return } }
{ var _ok_ bool; if _v.MoodUpperThresholdKey, _ok_ = _buf["mood_upper_threshold_key"].(string); !_ok_ { err = errors.New("mood_upper_threshold_key error"); return } }
return
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <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;
const (
CommonEBoolOperator_AND = 0;
CommonEBoolOperator_OR = 1;
)

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <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 CommonGlobalConfig struct {
X1 int32
X2 int32
X3 int32
X4 int32
X5 int32
X6 int32
X7 []int32
}
const TypeId_CommonGlobalConfig = -848234488
func (*CommonGlobalConfig) GetTypeId() int32 {
return -848234488
}
func NewCommonGlobalConfig(_buf map[string]interface{}) (_v *CommonGlobalConfig, err error) {
_v = &CommonGlobalConfig{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["x7"].([]interface{}); !_ok_ { err = errors.New("x7 error"); return }
_v.X7 = 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.X7 = append(_v.X7, _list_v_)
}
}
return
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <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 CommonTbGlobalConfig struct {
_data *CommonGlobalConfig
}
func NewCommonTbGlobalConfig(_buf []map[string]interface{}) (*CommonTbGlobalConfig, error) {
if len(_buf) != 1 {
return nil, errors.New(" size != 1 ")
} else {
if _v, err2 := NewCommonGlobalConfig(_buf[0]); err2 != nil {
return nil, err2
} else {
return &CommonTbGlobalConfig{_data:_v}, nil
}
}
}
func (table *CommonTbGlobalConfig) Get() *CommonGlobalConfig {
return table._data
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 一星
*/
ItemEClothersStarQualityType_ONE = 1;
/**
* 二星
*/
ItemEClothersStarQualityType_TWO = 2;
/**
* 三星
*/
ItemEClothersStarQualityType_THREE = 3;
/**
* 四星
*/
ItemEClothersStarQualityType_FOUR = 4;
/**
* 五星
*/
ItemEClothersStarQualityType_FIVE = 5;
/**
* 六星
*/
ItemEClothersStarQualityType_SIX = 6;
/**
* 七星
*/
ItemEClothersStarQualityType_SEVEN = 7;
/**
* 八星
*/
ItemEClothersStarQualityType_EIGHT = 8;
/**
* 九星
*/
ItemEClothersStarQualityType_NINE = 9;
/**
* 十星
*/
ItemEClothersStarQualityType_TEN = 10;
)

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 防晒
*/
ItemEClothersTag_FANG_SHAI = 1;
/**
* 舞者
*/
ItemEClothersTag_WU_ZHE = 2;
)

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 胸部
*/
ItemEClothesHidePartType_CHEST = 0;
/**
* 手
*/
ItemEClothesHidePartType_HEAD = 1;
/**
* 脊柱上
*/
ItemEClothesHidePartType_SPINE_UPPER = 2;
/**
* 脊柱下
*/
ItemEClothesHidePartType_SPINE_LOWER = 3;
/**
* 臀部
*/
ItemEClothesHidePartType_HIP = 4;
/**
* 腿上
*/
ItemEClothesHidePartType_LEG_UPPER = 5;
/**
* 腿中
*/
ItemEClothesHidePartType_LEG_MIDDLE = 6;
/**
* 腿下
*/
ItemEClothesHidePartType_LEG_LOWER = 7;
)

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 简约
*/
ItemEClothesPropertyType_JIAN_YUE = 1;
/**
* 华丽
*/
ItemEClothesPropertyType_HUA_LI = 2;
/**
* 可爱
*/
ItemEClothesPropertyType_KE_AI = 3;
/**
* 成熟
*/
ItemEClothesPropertyType_CHENG_SHU = 4;
/**
* 活泼
*/
ItemEClothesPropertyType_HUO_PO = 5;
/**
* 优雅
*/
ItemEClothesPropertyType_YOU_YA = 6;
/**
* 清纯
*/
ItemEClothesPropertyType_QING_CHUN = 7;
/**
* 性感
*/
ItemEClothesPropertyType_XING_GAN = 8;
/**
* 清凉
*/
ItemEClothesPropertyType_QING_LIANG = 9;
/**
* 保暖
*/
ItemEClothesPropertyType_BAO_NUAN = 10;
)

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 钻石
*/
ItemECurrencyType_DIAMOND = 1;
/**
* 金币
*/
ItemECurrencyType_GOLD = 2;
/**
* 银币
*/
ItemECurrencyType_SILVER = 3;
/**
* 经验
*/
ItemECurrencyType_EXP = 4;
/**
* 能量点
*/
ItemECurrencyType_POWER_POINT = 5;
)

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;
/**
* 道具品质
*/
const (
/**
* 白
*/
ItemEItemQuality_WHITE = 0;
/**
* 绿
*/
ItemEItemQuality_GREEN = 1;
/**
* 蓝
*/
ItemEItemQuality_BLUE = 2;
/**
* 紫
*/
ItemEItemQuality_PURPLE = 3;
/**
* 金
*/
ItemEItemQuality_GOLDEN = 4;
)

View File

@@ -0,0 +1,58 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 货币
*/
ItemEMajorType_CURRENCY = 1;
/**
* 服装
*/
ItemEMajorType_CLOTH = 2;
/**
* 任务
*/
ItemEMajorType_QUEST = 3;
/**
* 消耗品
*/
ItemEMajorType_CONSUMABLES = 4;
/**
* 宝箱
*/
ItemEMajorType_TREASURE_BOX = 5;
/**
* 成就和称谓
*/
ItemEMajorType_ACHIEVEMENT_AND_TITLE = 6;
/**
* 头像框
*/
ItemEMajorType_HEAD_FRAME = 7;
/**
* 语音
*/
ItemEMajorType_VOICE = 8;
/**
* 动作
*/
ItemEMajorType_ACTION = 9;
/**
* 扩容道具
*/
ItemEMajorType_EXPANSION = 10;
/**
* 制作材料
*/
ItemEMajorType_MATERIAL = 11;
)

View File

@@ -0,0 +1,210 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 钻石
*/
ItemEMinorType_DIAMOND = 101;
/**
* 金币
*/
ItemEMinorType_GOLD = 102;
/**
* 银币
*/
ItemEMinorType_SILVER = 103;
/**
* 经验
*/
ItemEMinorType_EXP = 104;
/**
* 能量点
*/
ItemEMinorType_POWER_POINT = 105;
/**
* 发型
*/
ItemEMinorType_HAIR_STYLE = 210;
/**
* 外套
*/
ItemEMinorType_COAT = 220;
/**
* 上衣
*/
ItemEMinorType_UPPER_JACKET = 230;
/**
* 裤子
*/
ItemEMinorType_TROUSERS = 241;
/**
* 裙子
*/
ItemEMinorType_SKIRT = 242;
/**
* 袜子
*/
ItemEMinorType_SOCKS = 250;
/**
* 鞋子
*/
ItemEMinorType_SHOES = 260;
/**
* 发饰
*/
ItemEMinorType_HAIR_ACCESSORY = 271;
/**
* 帽子
*/
ItemEMinorType_HAT = 272;
/**
* 耳饰
*/
ItemEMinorType_EARRING = 273;
/**
* 颈饰
*/
ItemEMinorType_NECKLACE = 274;
/**
* 腕饰
*/
ItemEMinorType_BRACELET = 275;
/**
* 发箍
*/
ItemEMinorType_HAIR_CLASP = 276;
/**
* 手套
*/
ItemEMinorType_GLOVE = 277;
/**
* 手持物
*/
ItemEMinorType_HANDHELD_OBJECT = 278;
/**
* 特殊
*/
ItemEMinorType_SPECIAL = 279;
/**
* 底妆
*/
ItemEMinorType_BASE_COSMETIC = 281;
/**
* 眉妆
*/
ItemEMinorType_EYEBROW_COSMETIC = 282;
/**
* 睫毛
*/
ItemEMinorType_EYELASH = 283;
/**
* 美瞳
*/
ItemEMinorType_COSMETIC_CONTACT_LENSES = 284;
/**
* 唇妆
*/
ItemEMinorType_LIP_COSMETIC = 285;
/**
* 肤色
*/
ItemEMinorType_SKIN_COLOR = 286;
/**
* 连衣裙
*/
ItemEMinorType_ONE_PIECE_DRESS = 290;
/**
* 换装场景
*/
ItemEMinorType_SWITCH_CLOTHES_SCENE = 291;
/**
* 任务道具
*/
ItemEMinorType_QUEST = 301;
/**
* 投掷物
*/
ItemEMinorType_CAST = 401;
/**
* 刀剑
*/
ItemEMinorType_SWORD = 421;
/**
* 弓箭
*/
ItemEMinorType_BOW_ARROW = 422;
/**
* 法杖
*/
ItemEMinorType_WANDS = 423;
/**
* 特殊工具
*/
ItemEMinorType_SPECIAL_TOOL = 424;
/**
* 食物
*/
ItemEMinorType_FOOD = 403;
/**
* 宝箱
*/
ItemEMinorType_TREASURE_BOX = 501;
/**
* 钥匙
*/
ItemEMinorType_KEY = 502;
/**
* 多选一宝箱
*/
ItemEMinorType_MULTI_CHOOSE_TREASURE_BOX = 503;
/**
* 成就相关
*/
ItemEMinorType_ACHIEVEMENT = 601;
/**
* 称谓相关
*/
ItemEMinorType_TITLE = 602;
/**
* 头像框
*/
ItemEMinorType_AVATAR_FRAME = 701;
/**
* 语音
*/
ItemEMinorType_VOICE = 801;
/**
* 特殊待机动作
*/
ItemEMinorType_IDLE_POSE = 901;
/**
* 拍照动作
*/
ItemEMinorType_PHOTO_POSE = 902;
/**
* 背包
*/
ItemEMinorType_BAG = 1001;
/**
* 好友数量
*/
ItemEMinorType_FRIEND_CAPACITY = 1002;
/**
* 制作材料
*/
ItemEMinorType_CONSTRUCTION_MATERIAL = 1101;
/**
* 设计图纸
*/
ItemEMinorType_DESIGN_DRAWING = 1102;
)

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 手动
*/
ItemEUseType_MANUAL = 0;
/**
* 自动
*/
ItemEUseType_AUTO = 1;
)

View File

@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <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 ItemItem struct {
Id int32
Name string
MajorType int32
MinorType int32
MaxPileNum int32
Quality int32
Icon string
IconBackgroud string
IconMask string
Desc string
ShowOrder int32
}
const TypeId_ItemItem = 2107285806
func (*ItemItem) GetTypeId() int32 {
return 2107285806
}
func NewItemItem(_buf map[string]interface{}) (_v *ItemItem, err error) {
_v = &ItemItem{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["major_type"].(float64); !_ok_ { err = errors.New("major_type error"); return }; _v.MajorType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["minor_type"].(float64); !_ok_ { err = errors.New("minor_type error"); return }; _v.MinorType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_pile_num"].(float64); !_ok_ { err = errors.New("max_pile_num error"); return }; _v.MaxPileNum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quality"].(float64); !_ok_ { err = errors.New("quality error"); return }; _v.Quality = int32(_tempNum_) }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{ var _ok_ bool; if _v.IconBackgroud, _ok_ = _buf["icon_backgroud"].(string); !_ok_ { err = errors.New("icon_backgroud error"); return } }
{ var _ok_ bool; if _v.IconMask, _ok_ = _buf["icon_mask"].(string); !_ok_ { err = errors.New("icon_mask error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["show_order"].(float64); !_ok_ { err = errors.New("show_order error"); return }; _v.ShowOrder = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 ItemTbItem struct {
_dataMap map[int32]*ItemItem
_dataList []*ItemItem
}
func NewItemTbItem(_buf []map[string]interface{}) (*ItemTbItem, error) {
_dataList := make([]*ItemItem, 0, len(_buf))
dataMap := make(map[int32]*ItemItem)
for _, _ele_ := range _buf {
if _v, err2 := NewItemItem(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &ItemTbItem{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *ItemTbItem) GetDataMap() map[int32]*ItemItem {
return table._dataMap
}
func (table *ItemTbItem) GetDataList() []*ItemItem {
return table._dataList
}
func (table *ItemTbItem) Get(key int32) *ItemItem {
return table._dataMap[key]
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 L10nL10NDemo struct {
Id int32
Text string
}
const TypeId_L10nL10NDemo = -331195887
func (*L10nL10NDemo) GetTypeId() int32 {
return -331195887
}
func NewL10nL10NDemo(_buf map[string]interface{}) (_v *L10nL10NDemo, err error) {
_v = &L10nL10NDemo{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Text, _ok_ = _buf["text"].(string); !_ok_ { err = errors.New("text error"); return } }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 L10nPatchDemo struct {
Id int32
Value int32
}
const TypeId_L10nPatchDemo = -1707294656
func (*L10nPatchDemo) GetTypeId() int32 {
return -1707294656
}
func NewL10nPatchDemo(_buf map[string]interface{}) (_v *L10nPatchDemo, err error) {
_v = &L10nPatchDemo{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 L10nTbL10NDemo struct {
_dataMap map[int32]*L10nL10NDemo
_dataList []*L10nL10NDemo
}
func NewL10nTbL10NDemo(_buf []map[string]interface{}) (*L10nTbL10NDemo, error) {
_dataList := make([]*L10nL10NDemo, 0, len(_buf))
dataMap := make(map[int32]*L10nL10NDemo)
for _, _ele_ := range _buf {
if _v, err2 := NewL10nL10NDemo(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &L10nTbL10NDemo{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *L10nTbL10NDemo) GetDataMap() map[int32]*L10nL10NDemo {
return table._dataMap
}
func (table *L10nTbL10NDemo) GetDataList() []*L10nL10NDemo {
return table._dataList
}
func (table *L10nTbL10NDemo) Get(key int32) *L10nL10NDemo {
return table._dataMap[key]
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 L10nTbPatchDemo struct {
_dataMap map[int32]*L10nPatchDemo
_dataList []*L10nPatchDemo
}
func NewL10nTbPatchDemo(_buf []map[string]interface{}) (*L10nTbPatchDemo, error) {
_dataList := make([]*L10nPatchDemo, 0, len(_buf))
dataMap := make(map[int32]*L10nPatchDemo)
for _, _ele_ := range _buf {
if _v, err2 := NewL10nPatchDemo(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &L10nTbPatchDemo{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *L10nTbPatchDemo) GetDataMap() map[int32]*L10nPatchDemo {
return table._dataMap
}
func (table *L10nTbPatchDemo) GetDataList() []*L10nPatchDemo {
return table._dataList
}
func (table *L10nTbPatchDemo) Get(key int32) *L10nPatchDemo {
return table._dataMap[key]
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 TagTbTestTag struct {
_dataMap map[int32]*TagTestTag
_dataList []*TagTestTag
}
func NewTagTbTestTag(_buf []map[string]interface{}) (*TagTbTestTag, error) {
_dataList := make([]*TagTestTag, 0, len(_buf))
dataMap := make(map[int32]*TagTestTag)
for _, _ele_ := range _buf {
if _v, err2 := NewTagTestTag(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &TagTbTestTag{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *TagTbTestTag) GetDataMap() map[int32]*TagTestTag {
return table._dataMap
}
func (table *TagTbTestTag) GetDataList() []*TagTestTag {
return table._dataList
}
func (table *TagTbTestTag) Get(key int32) *TagTestTag {
return table._dataMap[key]
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TagTestTag struct {
Id int32
Value string
}
const TypeId_TagTestTag = 1742933812
func (*TagTestTag) GetTypeId() int32 {
return 1742933812
}
func NewTagTestTag(_buf map[string]interface{}) (_v *TagTestTag, err error) {
_v = &TagTestTag{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Value, _ok_ = _buf["value"].(string); !_ok_ { err = errors.New("value error"); return } }
return
}

View File

@@ -0,0 +1,19 @@
//------------------------------------------------------------------------------
// <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;
const (
TestAccessFlag_WRITE = 1;
TestAccessFlag_READ = 2;
TestAccessFlag_TRUNCATE = 4;
TestAccessFlag_NEW = 8;
TestAccessFlag_READ_WRITE = 3;
)

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 TestCircle struct {
Radius float32
}
const TypeId_TestCircle = 2131829196
func (*TestCircle) GetTypeId() int32 {
return 2131829196
}
func NewTestCircle(_buf map[string]interface{}) (_v *TestCircle, err error) {
_v = &TestCircle{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["radius"].(float64); !_ok_ { err = errors.New("radius error"); return }; _v.Radius = float32(_tempNum_) }
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 TestCompactString struct {
Id int32
S2 string
S3 string
}
const TypeId_TestCompactString = 1968089240
func (*TestCompactString) GetTypeId() int32 {
return 1968089240
}
func NewTestCompactString(_buf map[string]interface{}) (_v *TestCompactString, err error) {
_v = &TestCompactString{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } }
{ var _ok_ bool; if _v.S3, _ok_ = _buf["s3"].(string); !_ok_ { err = errors.New("s3 error"); return } }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestCompositeJsonTable1 struct {
Id int32
X string
}
const TypeId_TestCompositeJsonTable1 = 1566207894
func (*TestCompositeJsonTable1) GetTypeId() int32 {
return 1566207894
}
func NewTestCompositeJsonTable1(_buf map[string]interface{}) (_v *TestCompositeJsonTable1, err error) {
_v = &TestCompositeJsonTable1{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.X, _ok_ = _buf["x"].(string); !_ok_ { err = errors.New("x error"); return } }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestCompositeJsonTable2 struct {
Id int32
Y int32
}
const TypeId_TestCompositeJsonTable2 = 1566207895
func (*TestCompositeJsonTable2) GetTypeId() int32 {
return 1566207895
}
func NewTestCompositeJsonTable2(_buf map[string]interface{}) (_v *TestCompositeJsonTable2, err error) {
_v = &TestCompositeJsonTable2{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["y"].(float64); !_ok_ { err = errors.New("y error"); return }; _v.Y = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestCompositeJsonTable3 struct {
A int32
B int32
}
const TypeId_TestCompositeJsonTable3 = 1566207896
func (*TestCompositeJsonTable3) GetTypeId() int32 {
return 1566207896
}
func NewTestCompositeJsonTable3(_buf map[string]interface{}) (_v *TestCompositeJsonTable3, err error) {
_v = &TestCompositeJsonTable3{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["a"].(float64); !_ok_ { err = errors.New("a error"); return }; _v.A = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["b"].(float64); !_ok_ { err = errors.New("b error"); return }; _v.B = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestDateTimeRange struct {
StartTime int64
EndTime int64
}
const TypeId_TestDateTimeRange = 495315430
func (*TestDateTimeRange) GetTypeId() int32 {
return 495315430
}
func NewTestDateTimeRange(_buf map[string]interface{}) (_v *TestDateTimeRange, err error) {
_v = &TestDateTimeRange{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["start_time"].(float64); !_ok_ { err = errors.New("start_time error"); return }; _v.StartTime = int64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["end_time"].(float64); !_ok_ { err = errors.New("end_time error"); return }; _v.EndTime = int64(_tempNum_) }
return
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <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 TestDecorator struct {
Id int32
Name string
Desc string
Duration int32
}
const TypeId_TestDecorator = -625155649
func (*TestDecorator) GetTypeId() int32 {
return -625155649
}
func NewTestDecorator(_buf map[string]interface{}) (_v *TestDecorator, err error) {
_v = &TestDecorator{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["duration"].(float64); !_ok_ { err = errors.New("duration error"); return }; _v.Duration = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestDemoD2 struct {
X1 int32
X2 int32
}
const TypeId_TestDemoD2 = -2138341747
func (*TestDemoD2) GetTypeId() int32 {
return -2138341747
}
func NewTestDemoD2(_buf map[string]interface{}) (_v *TestDemoD2, err error) {
_v = &TestDemoD2{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <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 TestDemoD3 struct {
X1 int32
X3 int32
}
const TypeId_TestDemoD3 = -2138341746
func (*TestDemoD3) GetTypeId() int32 {
return -2138341746
}
func NewTestDemoD3(_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 "DemoE1": _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("testdemoe1") } else { return _v, nil }
case "test.login.RoleInfo": _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("testloginroleinfo") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestDemoD5 struct {
X1 int32
Time *TestDateTimeRange
}
const TypeId_TestDemoD5 = -2138341744
func (*TestDemoD5) GetTypeId() int32 {
return -2138341744
}
func NewTestDemoD5(_buf map[string]interface{}) (_v *TestDemoD5, err error) {
_v = &TestDemoD5{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["time"].(map[string]interface{}); !_ok_ { err = errors.New("time error"); return }; if _v.Time, err = NewTestDateTimeRange(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <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 TestDemoDynamic struct {
X1 int32
}
const TypeId_TestDemoDynamic = -1863156384
func (*TestDemoDynamic) GetTypeId() int32 {
return -1863156384
}
func NewTestDemoDynamic(_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 "DemoD2": _v, err := NewTestDemoD2(_buf); if err != nil { return nil, errors.New("testdemod2") } else { return _v, nil }
case "DemoE1": _v, err := NewTestDemoE1(_buf); if err != nil { return nil, errors.New("testdemoe1") } else { return _v, nil }
case "test.login.RoleInfo": _v, err := NewTestLoginRoleInfo(_buf); if err != nil { return nil, errors.New("testloginroleinfo") } else { return _v, nil }
case "DemoD5": _v, err := NewTestDemoD5(_buf); if err != nil { return nil, errors.New("testdemod5") } else { return _v, nil }
default: return nil, errors.New("unknown type id")
}
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 TestDemoE1 struct {
X1 int32
X3 int32
X4 int32
}
const TypeId_TestDemoE1 = -2138341717
func (*TestDemoE1) GetTypeId() int32 {
return -2138341717
}
func NewTestDemoE1(_buf map[string]interface{}) (_v *TestDemoE1, err error) {
_v = &TestDemoE1{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestDemoE2 struct {
Y1 *int32
Y2 bool
}
const TypeId_TestDemoE2 = -2138341716
func (*TestDemoE2) GetTypeId() int32 {
return -2138341716
}
func NewTestDemoE2(_buf map[string]interface{}) (_v *TestDemoE2, err error) {
_v = &TestDemoE2{}
{ var _ok_ bool; var __json_y1__ interface{}; if __json_y1__, _ok_ = _buf["y1"]; !_ok_ || __json_y1__ == nil { _v.Y1 = nil } else { var __x__ int32; { var _ok_ bool; var _x_ float64; if _x_, _ok_ = __json_y1__.(float64); !_ok_ { err = errors.New("__x__ error"); return }; __x__ = int32(_x_) }; _v.Y1 = &__x__ }}
{ var _ok_ bool; if _v.Y2, _ok_ = _buf["y2"].(bool); !_ok_ { err = errors.New("y2 error"); return } }
return
}

View File

@@ -0,0 +1,31 @@
//------------------------------------------------------------------------------
// <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;
const (
TestDemoEnum_NONE = 0;
/**
* aa
*/
TestDemoEnum_A = 1;
/**
* bb
*/
TestDemoEnum_B = 2;
/**
* cc
*/
TestDemoEnum_C = 4;
/**
* dd
*/
TestDemoEnum_D = 5;
)

View File

@@ -0,0 +1,18 @@
//------------------------------------------------------------------------------
// <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;
const (
TestDemoFlag_A = 1;
TestDemoFlag_B = 2;
TestDemoFlag_C = 4;
TestDemoFlag_D = 8;
)

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <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 TestDemoGroup struct {
Id int32
X1 int32
X2 int32
X3 int32
X4 int32
X5 *TestInnerGroup
}
const TypeId_TestDemoGroup = -379263008
func (*TestDemoGroup) GetTypeId() int32 {
return -379263008
}
func NewTestDemoGroup(_buf map[string]interface{}) (_v *TestDemoGroup, err error) {
_v = &TestDemoGroup{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x5"].(map[string]interface{}); !_ok_ { err = errors.New("x5 error"); return }; if _v.X5, err = NewTestInnerGroup(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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 TestDemoPrimitiveTypesTable struct {
X1 bool
X2 byte
X3 int16
X4 int32
X5 int64
X6 float32
X7 float64
S1 string
S2 string
V2 *vec2
V3 *vec3
V4 *vec4
T1 int64
}
const TypeId_TestDemoPrimitiveTypesTable = -370934083
func (*TestDemoPrimitiveTypesTable) GetTypeId() int32 {
return -370934083
}
func NewTestDemoPrimitiveTypesTable(_buf map[string]interface{}) (_v *TestDemoPrimitiveTypesTable, err error) {
_v = &TestDemoPrimitiveTypesTable{}
{ var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = byte(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int16(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x7"].(float64); !_ok_ { err = errors.New("x7 error"); return }; _v.X7 = float64(_tempNum_) }
{ var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } }
{ var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v2"].(map[string]interface{}); !_ok_ { err = errors.New("v2 error"); return }; if _v.V2, err = Newvec2(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v3"].(map[string]interface{}); !_ok_ { err = errors.New("v3 error"); return }; if _v.V3, err = Newvec3(_x_); err != nil { return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["v4"].(map[string]interface{}); !_ok_ { err = errors.New("v4 error"); return }; if _v.V4, err = Newvec4(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) }
return
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <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 TestDemoSingletonType struct {
Id int32
Name string
Date interface{}
}
const TypeId_TestDemoSingletonType = 539196998
func (*TestDemoSingletonType) GetTypeId() int32 {
return 539196998
}
func NewTestDemoSingletonType(_buf map[string]interface{}) (_v *TestDemoSingletonType, err error) {
_v = &TestDemoSingletonType{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["date"].(map[string]interface{}); !_ok_ { err = errors.New("date error"); return }; if _v.Date, err = NewTestDemoDynamic(_x_); err != nil { return } }
return
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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 TestDemoType1 struct {
X1 int32
}
const TypeId_TestDemoType1 = -367048296
func (*TestDemoType1) GetTypeId() int32 {
return -367048296
}
func NewTestDemoType1(_buf map[string]interface{}) (_v *TestDemoType1, err error) {
_v = &TestDemoType1{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,153 @@
//------------------------------------------------------------------------------
// <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 TestDemoType2 struct {
X4 int32
X1 bool
X2 byte
X3 int16
X5 int64
X6 float32
X7 float64
X80 int16
X8 int32
X9 int64
X10 string
X12 *TestDemoType1
X13 int32
X14 interface{}
S1 string
T1 int64
K1 []int32
K2 []int32
K5 []int32
K8 map[int32]int32
K9 []*TestDemoE2
K15 []interface{}
}
const TypeId_TestDemoType2 = -367048295
func (*TestDemoType2) GetTypeId() int32 {
return -367048295
}
func NewTestDemoType2(_buf map[string]interface{}) (_v *TestDemoType2, err error) {
_v = &TestDemoType2{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
{ var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x2"].(float64); !_ok_ { err = errors.New("x2 error"); return }; _v.X2 = byte(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x3"].(float64); !_ok_ { err = errors.New("x3 error"); return }; _v.X3 = int16(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x7"].(float64); !_ok_ { err = errors.New("x7 error"); return }; _v.X7 = float64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8_0"].(float64); !_ok_ { err = errors.New("x8_0 error"); return }; _v.X80 = int16(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x8"].(float64); !_ok_ { err = errors.New("x8 error"); return }; _v.X8 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x9"].(float64); !_ok_ { err = errors.New("x9 error"); return }; _v.X9 = int64(_tempNum_) }
{ var _ok_ bool; if _v.X10, _ok_ = _buf["x10"].(string); !_ok_ { err = errors.New("x10 error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x12"].(map[string]interface{}); !_ok_ { err = errors.New("x12 error"); return }; if _v.X12, err = NewTestDemoType1(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } }
{ var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return }
_v.K1 = 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.K1 = append(_v.K1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k2"].([]interface{}); !_ok_ { err = errors.New("k2 error"); return }
_v.K2 = 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.K2 = append(_v.K2, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k5"].([]interface{}); !_ok_ { err = errors.New("k5 error"); return }
_v.K5 = 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.K5 = append(_v.K5, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return }
_v.K8 = make(map[int32]int32)
for _, _e_ := range _arr_ {
var _kv_ []interface{}
if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return }
var _key_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) }
var _value_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) }
_v.K8[_key_] = _value_
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return }
_v.K9 = make([]*TestDemoE2, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *TestDemoE2
{ 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 = NewTestDemoE2(_x_); err != nil { return } }
_v.K9 = append(_v.K9, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k15"].([]interface{}); !_ok_ { err = errors.New("k15 error"); return }
_v.K15 = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewTestDemoDynamic(_x_); err != nil { return } }
_v.K15 = append(_v.K15, _list_v_)
}
}
return
}

View File

@@ -0,0 +1,32 @@
//------------------------------------------------------------------------------
// <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 TestDetectEncoding struct {
Id int32
Name string
}
const TypeId_TestDetectEncoding = -1154609646
func (*TestDetectEncoding) GetTypeId() int32 {
return -1154609646
}
func NewTestDetectEncoding(_buf map[string]interface{}) (_v *TestDetectEncoding, err error) {
_v = &TestDetectEncoding{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
return
}

View File

@@ -0,0 +1,14 @@
//------------------------------------------------------------------------------
// <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;
const (
)

View File

@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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;
const (
TestETestEmptyEnum2_SMALL_THAN_256 = 255;
TestETestEmptyEnum2_X_256 = 256;
TestETestEmptyEnum2_X_257 = 257;
)

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 最高品质
*/
TestETestQuality_A = 1;
/**
* 黑色的
*/
TestETestQuality_B = 2;
/**
* 蓝色的
*/
TestETestQuality_C = 3;
/**
* 最差品质
*/
TestETestQuality_D = 4;
)

View File

@@ -0,0 +1,19 @@
//------------------------------------------------------------------------------
// <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;
const (
/**
* 白
*/
TestETestUeType_WHITE = 0;
TestETestUeType_BLACK = 1;
)

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <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 TestEquipment struct {
Id int32
Name string
Desc string
Attr int32
Value int32
}
const TypeId_TestEquipment = -76837102
func (*TestEquipment) GetTypeId() int32 {
return -76837102
}
func NewTestEquipment(_buf map[string]interface{}) (_v *TestEquipment, err error) {
_v = &TestEquipment{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["attr"].(float64); !_ok_ { err = errors.New("attr error"); return }; _v.Attr = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = int32(_tempNum_) }
return
}

View File

@@ -0,0 +1,111 @@
//------------------------------------------------------------------------------
// <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 TestExcelFromJson struct {
X4 int32
X1 bool
X5 int64
X6 float32
S1 string
S2 string
T1 int64
X12 *TestDemoType1
X13 int32
X14 interface{}
K1 []int32
K8 map[int32]int32
K9 []*TestDemoE2
K15 []interface{}
}
const TypeId_TestExcelFromJson = -1485706483
func (*TestExcelFromJson) GetTypeId() int32 {
return -1485706483
}
func NewTestExcelFromJson(_buf map[string]interface{}) (_v *TestExcelFromJson, err error) {
_v = &TestExcelFromJson{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x4"].(float64); !_ok_ { err = errors.New("x4 error"); return }; _v.X4 = int32(_tempNum_) }
{ var _ok_ bool; if _v.X1, _ok_ = _buf["x1"].(bool); !_ok_ { err = errors.New("x1 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x5"].(float64); !_ok_ { err = errors.New("x5 error"); return }; _v.X5 = int64(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x6"].(float64); !_ok_ { err = errors.New("x6 error"); return }; _v.X6 = float32(_tempNum_) }
{ var _ok_ bool; if _v.S1, _ok_ = _buf["s1"].(string); !_ok_ { err = errors.New("s1 error"); return } }
{ var _ok_ bool; if _v.S2, _ok_ = _buf["s2"].(string); !_ok_ { err = errors.New("s2 error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["t1"].(float64); !_ok_ { err = errors.New("t1 error"); return }; _v.T1 = int64(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x12"].(map[string]interface{}); !_ok_ { err = errors.New("x12 error"); return }; if _v.X12, err = NewTestDemoType1(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x13"].(float64); !_ok_ { err = errors.New("x13 error"); return }; _v.X13 = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["x14"].(map[string]interface{}); !_ok_ { err = errors.New("x14 error"); return }; if _v.X14, err = NewTestDemoDynamic(_x_); err != nil { return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k1"].([]interface{}); !_ok_ { err = errors.New("k1 error"); return }
_v.K1 = 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.K1 = append(_v.K1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k8"].([]interface{}); !_ok_ { err = errors.New("k8 error"); return }
_v.K8 = make(map[int32]int32)
for _, _e_ := range _arr_ {
var _kv_ []interface{}
if _kv_, _ok_ = _e_.([]interface{}); !_ok_ || len(_kv_) != 2 { err = errors.New("k8 error"); return }
var _key_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[0].(float64); !_ok_ { err = errors.New("_key_ error"); return }; _key_ = int32(_x_) }
var _value_ int32
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _kv_[1].(float64); !_ok_ { err = errors.New("_value_ error"); return }; _value_ = int32(_x_) }
_v.K8[_key_] = _value_
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k9"].([]interface{}); !_ok_ { err = errors.New("k9 error"); return }
_v.K9 = make([]*TestDemoE2, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *TestDemoE2
{ 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 = NewTestDemoE2(_x_); err != nil { return } }
_v.K9 = append(_v.K9, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["k15"].([]interface{}); !_ok_ { err = errors.New("k15 error"); return }
_v.K15 = make([]interface{}, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ interface{}
{ 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 = NewTestDemoDynamic(_x_); err != nil { return } }
_v.K15 = append(_v.K15, _list_v_)
}
}
return
}

Some files were not shown because too many files have changed in this diff Show More