mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 08:38:45 +00:00
update
This commit is contained in:
46
luban_examples/Projects/Go_bin/gen/ai.DistanceLessThan.go
Normal file
46
luban_examples/Projects/Go_bin/gen/ai.DistanceLessThan.go
Normal 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;
|
||||
|
||||
|
||||
import (
|
||||
"demo/luban"
|
||||
)
|
||||
|
||||
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 *luban.ByteBuf) (_v *AiDistanceLessThan, err error) {
|
||||
_v = &AiDistanceLessThan{}
|
||||
{ if _v.Id, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.NodeName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.FlowAbortMode, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.Actor1Key, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.Actor2Key, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.Distance, err = _buf.ReadFloat(); err != nil { err = errors.New("error"); return } }
|
||||
{ if _v.ReverseResult, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } }
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user