mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
37 lines
820 B
Go
37 lines
820 B
Go
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
package cfg;
|
|
|
|
|
|
import (
|
|
"demo/luban"
|
|
)
|
|
|
|
import "errors"
|
|
|
|
type vec2 struct {
|
|
X float32
|
|
Y float32
|
|
}
|
|
|
|
const TypeId_vec2 = 3615518
|
|
|
|
func (*vec2) GetTypeId() int32 {
|
|
return 3615518
|
|
}
|
|
|
|
func Newvec2(_buf *luban.ByteBuf) (_v *vec2, err error) {
|
|
_v = &vec2{}
|
|
{ if _v.X, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } }
|
|
{ if _v.Y, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } }
|
|
return
|
|
}
|
|
|