//------------------------------------------------------------------------------
// <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 GameTalentBoxData struct {
    Heroid string
    Itemid string
}

const TypeId_GameTalentBoxData = -1223889779

func (*GameTalentBoxData) GetTypeId() int32 {
    return -1223889779
}

func (_v *GameTalentBoxData)Deserialize(_buf map[string]interface{}) (err error) {
    { var _ok_ bool; if _v.Heroid, _ok_ = _buf["heroid"].(string); !_ok_ { err = errors.New("heroid error"); return } }
    { var _ok_ bool; if _v.Itemid, _ok_ = _buf["itemid"].(string); !_ok_ { err = errors.New("itemid error"); return } }
    return
}

func DeserializeGameTalentBoxData(_buf map[string]interface{}) (*GameTalentBoxData, error) {
    v := &GameTalentBoxData{}
    if err := v.Deserialize(_buf); err == nil {
        return v, nil
    } else {
        return nil, err
    }
}
