func (obj *ToSrvInvAction) deserialize(r io.Reader) {
var local23 []uint8
- for {
- var local24 uint8
- err := pcall(func() {
- {
- p := &local24
- *p = read8(r)
- }
- })
- if err == io.EOF {
- break
- }
- (local23) = append((local23), local24)
+ {
+ var err error
+ (local23), err = io.ReadAll(r)
chk(err)
}
((*(*(struct {
}
func (obj *ToSrvChatMsg) serialize(w io.Writer) {
- if len((utf16.Encode([]rune((*(*(struct {
+ local24 := utf16.Encode([]rune((*(*(struct {
//mt:utf16
Msg string
- }))(obj)).Msg)))) > math.MaxUint16 {
+ }))(obj)).Msg))
+ if len((local24)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
- x := uint16(len((utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Msg string
- }))(obj)).Msg)))))
+ x := uint16(len((local24)))
write16(w, uint16(x))
}
- for local25 := range utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Msg string
- }))(obj)).Msg)) {
+ for local25 := range local24 {
{
- x := (utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Msg string
- }))(obj)).Msg)))[local25]
+ x := (local24)[local25]
write16(w, uint16(x))
}
}
p := &n
*p = read32(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
p := &(*(*(struct {
Action Interaction
}
func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ SudoAuthMethods AuthMethods
+ }))(obj)).SudoAuthMethods).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
+ }
+ {
+ local57 := [15]byte{}
+ {
+ _, err := w.Write((local57)[:])
+ chk(err)
+ }
+ }
}
func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ SudoAuthMethods AuthMethods
+ }))(obj)).SudoAuthMethods).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
+ }
+ {
+ var local58 [15]byte
+ local59 := [15]byte{}
+ {
+ _, err := io.ReadFull(r, (local58)[:])
+ chk(err)
+ }
+ if local58 != local59 {
+ chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
+ }
+ }
}
func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
}
-func (obj *ToCltDisco) serialize(w io.Writer) {
+func (obj *ToCltKick) serialize(w io.Writer) {
if err := pcall(func() {
((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DiscoReason", err))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
}
if !((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
//mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
Reconnect bool
- }))(obj)).Reason < maxDiscoReason) {
- chk(errors.New("assertion failed: %s.Reason < maxDiscoReason"))
+ }))(obj)).Reason < maxKickReason) {
+ chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
}
if dr := (*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
Reconnect bool
}))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
if len(([]byte((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}
{
x := uint16(len(([]byte((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}
{
_, err := w.Write(([]byte((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}
}
if dr := (*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}))(obj)).Reason; dr == Shutdown || dr == Crash {
{
x := (*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}
}
-func (obj *ToCltDisco) deserialize(r io.Reader) {
+func (obj *ToCltKick) deserialize(r io.Reader) {
if err := pcall(func() {
((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DiscoReason", err))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
}
if !((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
//mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
Reconnect bool
- }))(obj)).Reason < maxDiscoReason) {
- chk(errors.New("assertion failed: %s.Reason < maxDiscoReason"))
+ }))(obj)).Reason < maxKickReason) {
+ chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
}
if dr := (*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
//mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
Reconnect bool
}))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
- var local57 []uint8
- var local58 uint16
+ var local60 []uint8
+ var local61 uint16
{
- p := &local58
+ p := &local61
*p = read16(r)
}
- (local57) = make([]uint8, local58)
+ (local60) = make([]uint8, local61)
{
- _, err := io.ReadFull(r, (local57)[:])
+ _, err := io.ReadFull(r, (local60)[:])
chk(err)
}
((*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
//mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
Reconnect bool
- }))(obj)).Custom) = string(local57)
+ }))(obj)).Custom) = string(local60)
}
if dr := (*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}))(obj)).Reason; dr == Shutdown || dr == Crash {
{
p := &(*(*(struct {
- Reason DiscoReason
+ Reason KickReason
//mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
Custom string
}
func (obj *ToCltBlkData) serialize(w io.Writer) {
- for local59 := range (*(*(struct {
+ for local62 := range (*(*(struct {
Blkpos [3]int16
Blk MapBlk
}))(obj)).Blkpos {
x := ((*(*(struct {
Blkpos [3]int16
Blk MapBlk
- }))(obj)).Blkpos)[local59]
+ }))(obj)).Blkpos)[local62]
write16(w, uint16(x))
}
}
}
func (obj *ToCltBlkData) deserialize(r io.Reader) {
- for local60 := range (*(*(struct {
+ for local63 := range (*(*(struct {
Blkpos [3]int16
Blk MapBlk
}))(obj)).Blkpos {
p := &((*(*(struct {
Blkpos [3]int16
Blk MapBlk
- }))(obj)).Blkpos)[local60]
+ }))(obj)).Blkpos)[local63]
*p = int16(read16(r))
}
}
}
func (obj *ToCltAddNode) serialize(w io.Writer) {
- for local61 := range (*(*(struct {
+ for local64 := range (*(*(struct {
Pos [3]int16
Node
KeepMeta bool
Pos [3]int16
Node
KeepMeta bool
- }))(obj)).Pos)[local61]
+ }))(obj)).Pos)[local64]
write16(w, uint16(x))
}
}
}
func (obj *ToCltAddNode) deserialize(r io.Reader) {
- for local62 := range (*(*(struct {
+ for local65 := range (*(*(struct {
Pos [3]int16
Node
KeepMeta bool
Pos [3]int16
Node
KeepMeta bool
- }))(obj)).Pos)[local62]
+ }))(obj)).Pos)[local65]
*p = int16(read16(r))
}
}
}
func (obj *ToCltRemoveNode) serialize(w io.Writer) {
- for local63 := range (*(*(struct {
+ for local66 := range (*(*(struct {
Pos [3]int16
}))(obj)).Pos {
{
x := ((*(*(struct {
Pos [3]int16
- }))(obj)).Pos)[local63]
+ }))(obj)).Pos)[local66]
write16(w, uint16(x))
}
}
}
func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
- for local64 := range (*(*(struct {
+ for local67 := range (*(*(struct {
Pos [3]int16
}))(obj)).Pos {
{
p := &((*(*(struct {
Pos [3]int16
- }))(obj)).Pos)[local64]
+ }))(obj)).Pos)[local67]
*p = int16(read16(r))
}
}
}
func (obj *ToCltInv) deserialize(r io.Reader) {
- var local65 []uint8
- for {
- var local66 uint8
- err := pcall(func() {
- {
- p := &local66
- *p = read8(r)
- }
- })
- if err == io.EOF {
- break
- }
- (local65) = append((local65), local66)
+ var local68 []uint8
+ {
+ var err error
+ (local68), err = io.ReadAll(r)
chk(err)
}
((*(*(struct {
//mt:raw
Inv string
- }))(obj)).Inv) = string(local65)
+ }))(obj)).Inv) = string(local68)
}
func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
func (obj *ToCltMediaPush) serialize(w io.Writer) {
{
- local67 := uint16(sha1.Size)
+ local69 := uint16(sha1.Size)
{
- x := local67
+ x := local69
write16(w, uint16(x))
}
}
func (obj *ToCltMediaPush) deserialize(r io.Reader) {
{
- var local68 uint16
+ var local70 uint16
+ local71 := uint16(sha1.Size)
{
- p := &local68
+ p := &local70
*p = read16(r)
}
- if local68 != (20) {
- chk(fmt.Errorf("const %v: %v", 20, local68))
+ if local70 != local71 {
+ chk(fmt.Errorf("const %v: %v", "uint16(sha1.Size)", local70))
}
}
{
}))(obj)).SHA1)[:])
chk(err)
}
- var local69 []uint8
- var local70 uint16
+ var local72 []uint8
+ var local73 uint16
{
- p := &local70
+ p := &local73
*p = read16(r)
}
- (local69) = make([]uint8, local70)
+ (local72) = make([]uint8, local73)
{
- _, err := io.ReadFull(r, (local69)[:])
+ _, err := io.ReadFull(r, (local72)[:])
chk(err)
}
((*(*(struct {
//mt:len32
Data []byte
- }))(obj)).Filename) = string(local69)
+ }))(obj)).Filename) = string(local72)
{
p := &(*(*(struct {
//mt:const uint16(sha1.Size)
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local71 uint32
+ var local74 uint32
{
- p := &local71
+ p := &local74
*p = read32(r)
}
((*(*(struct {
//mt:len32
Data []byte
- }))(obj)).Data) = make([]byte, local71)
+ }))(obj)).Data) = make([]byte, local74)
{
_, err := io.ReadFull(r, ((*(*(struct {
//mt:const uint16(sha1.Size)
func (obj *ToCltChatMsg) serialize(w io.Writer) {
{
- local72 := uint8(1)
+ local75 := uint8(1)
{
- x := local72
+ x := local75
write8(w, uint8(x))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
}
- if len((utf16.Encode([]rune((*(*(struct {
+ local76 := utf16.Encode([]rune((*(*(struct {
Type ChatMsgType
//mt:utf16
Sender, Text string
Timestamp int64 // Unix time.
- }))(obj)).Sender)))) > math.MaxUint16 {
+ }))(obj)).Sender))
+ if len((local76)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
- x := uint16(len((utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Sender)))))
+ x := uint16(len((local76)))
write16(w, uint16(x))
}
- for local73 := range utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Sender)) {
+ for local77 := range local76 {
{
- x := (utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Sender)))[local73]
+ x := (local76)[local77]
write16(w, uint16(x))
}
}
- if len((utf16.Encode([]rune((*(*(struct {
+ local78 := utf16.Encode([]rune((*(*(struct {
Type ChatMsgType
//mt:utf16
Sender, Text string
Timestamp int64 // Unix time.
- }))(obj)).Text)))) > math.MaxUint16 {
+ }))(obj)).Text))
+ if len((local78)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
- x := uint16(len((utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Text)))))
+ x := uint16(len((local78)))
write16(w, uint16(x))
}
- for local74 := range utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Text)) {
+ for local79 := range local78 {
{
- x := (utf16.Encode([]rune((*(*(struct {
- Type ChatMsgType
-
- //mt:utf16
- Sender, Text string
-
- Timestamp int64 // Unix time.
- }))(obj)).Text)))[local74]
+ x := (local78)[local79]
write16(w, uint16(x))
}
}
func (obj *ToCltChatMsg) deserialize(r io.Reader) {
{
- var local75 uint8
+ var local80 uint8
+ local81 := uint8(1)
{
- p := &local75
+ p := &local80
*p = read8(r)
}
- if local75 != (1) {
- chk(fmt.Errorf("const %v: %v", 1, local75))
+ if local80 != local81 {
+ chk(fmt.Errorf("const %v: %v", "uint8(1)", local80))
}
}
if err := pcall(func() {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
}
- var local76 []uint16
- var local77 uint16
+ var local82 []uint16
+ var local83 uint16
{
- p := &local77
+ p := &local83
*p = read16(r)
}
- (local76) = make([]uint16, local77)
- for local78 := range local76 {
+ (local82) = make([]uint16, local83)
+ for local84 := range local82 {
{
- p := &(local76)[local78]
+ p := &(local82)[local84]
*p = read16(r)
}
}
Sender, Text string
Timestamp int64 // Unix time.
- }))(obj)).Sender = string(utf16.Decode(local76))
- var local79 []uint16
- var local80 uint16
+ }))(obj)).Sender = string(utf16.Decode(local82))
+ var local85 []uint16
+ var local86 uint16
{
- p := &local80
+ p := &local86
*p = read16(r)
}
- (local79) = make([]uint16, local80)
- for local81 := range local79 {
+ (local85) = make([]uint16, local86)
+ for local87 := range local85 {
{
- p := &(local79)[local81]
+ p := &(local85)[local87]
*p = read16(r)
}
}
Sender, Text string
Timestamp int64 // Unix time.
- }))(obj)).Text = string(utf16.Decode(local79))
+ }))(obj)).Text = string(utf16.Decode(local85))
{
p := &(*(*(struct {
Type ChatMsgType
func (obj *ToCltAORmAdd) serialize(w io.Writer) {
if len(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Remove)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Remove)))
write16(w, uint16(x))
}
- for local82 := range (*(*(struct {
+ for local88 := range (*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Remove {
if err := pcall(func() {
(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Remove)[local82]).serialize(w)
+ Add []AOAdd
+ }))(obj)).Remove)[local88]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
if len(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Add)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Add)))
write16(w, uint16(x))
}
- for local83 := range (*(*(struct {
+ for local89 := range (*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Add {
if err := pcall(func() {
- ((((*(*(struct {
+ (((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Add)[local83]).ID).serialize(w)
+ Add []AOAdd
+ }))(obj)).Add)[local89]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
- }
- {
- local84 := genericCAO
- if err := pcall(func() {
- (local84).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
- }
- }
- {
- ow := w
- w := new(bytes.Buffer)
- if err := pcall(func() {
- ((((*(*(struct {
- Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Add)[local83]).InitData).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
- }
- {
- buf := w
- w := ow
- if len((buf.Bytes())) > math.MaxUint32 {
- chk(ErrTooLong)
- }
- {
- x := uint32(len((buf.Bytes())))
- write32(w, uint32(x))
- }
- {
- _, err := w.Write((buf.Bytes())[:])
- chk(err)
- }
- }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
}
}
}
func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
- var local85 uint16
+ var local90 uint16
{
- p := &local85
+ p := &local90
*p = read16(r)
}
((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Remove) = make([]AOID, local85)
- for local86 := range (*(*(struct {
+ Add []AOAdd
+ }))(obj)).Remove) = make([]AOID, local90)
+ for local91 := range (*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Remove {
if err := pcall(func() {
(((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Remove)[local86]).deserialize(r)
+ Add []AOAdd
+ }))(obj)).Remove)[local91]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
}
- var local87 uint16
+ var local92 uint16
{
- p := &local87
+ p := &local92
*p = read16(r)
}
((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Add) = make([]struct {
- ID AOID
- InitData AOInitData
- }, local87)
- for local88 := range (*(*(struct {
+ Add []AOAdd
+ }))(obj)).Add) = make([]AOAdd, local92)
+ for local93 := range (*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
+ Add []AOAdd
}))(obj)).Add {
if err := pcall(func() {
- ((((*(*(struct {
+ (((*(*(struct {
Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Add)[local88]).ID).deserialize(r)
+ Add []AOAdd
+ }))(obj)).Add)[local93]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
- }
- {
- var local89 aoType
- if err := pcall(func() {
- (local89).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
- }
- if local89 != (101) {
- chk(fmt.Errorf("const %v: %v", 101, local89))
- }
- }
- {
- var n uint32
- {
- p := &n
- *p = read32(r)
- }
- r := &io.LimitedReader{r, int64(n)}
- if err := pcall(func() {
- ((((*(*(struct {
- Remove []AOID
- Add []struct {
- ID AOID
- //mt:const genericCAO
- //mt:lenhdr 32
- InitData AOInitData
- }
- }))(obj)).Add)[local88]).InitData).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
- }
- if r.N > 0 {
- chk(fmt.Errorf("%d bytes of trailing data", r.N))
- }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
}
}
}
func (obj *ToCltAOMsgs) serialize(w io.Writer) {
- for local90 := range (*(*(struct {
+ for local94 := range (*(*(struct {
//mt:raw
Msgs []IDAOMsg
}))(obj)).Msgs {
(((*(*(struct {
//mt:raw
Msgs []IDAOMsg
- }))(obj)).Msgs)[local90]).serialize(w)
+ }))(obj)).Msgs)[local94]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
for {
- var local91 IDAOMsg
+ var local95 IDAOMsg
err := pcall(func() {
if err := pcall(func() {
- (local91).deserialize(r)
+ (local95).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Msgs) = append(((*(*(struct {
//mt:raw
Msgs []IDAOMsg
- }))(obj)).Msgs), local91)
+ }))(obj)).Msgs), local95)
chk(err)
}
}
}
}
-func (obj *ToCltDiscoLegacy) serialize(w io.Writer) {
- if len((utf16.Encode([]rune((*(*(struct {
+func (obj *ToCltLegacyKick) serialize(w io.Writer) {
+ local96 := utf16.Encode([]rune((*(*(struct {
//mt:utf16
Reason string
- }))(obj)).Reason)))) > math.MaxUint16 {
+ }))(obj)).Reason))
+ if len((local96)) > math.MaxUint16 {
chk(ErrTooLong)
}
{
- x := uint16(len((utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Reason string
- }))(obj)).Reason)))))
+ x := uint16(len((local96)))
write16(w, uint16(x))
}
- for local92 := range utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Reason string
- }))(obj)).Reason)) {
+ for local97 := range local96 {
{
- x := (utf16.Encode([]rune((*(*(struct {
- //mt:utf16
- Reason string
- }))(obj)).Reason)))[local92]
+ x := (local96)[local97]
write16(w, uint16(x))
}
}
}
-func (obj *ToCltDiscoLegacy) deserialize(r io.Reader) {
- var local93 []uint16
- var local94 uint16
+func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
+ var local98 []uint16
+ var local99 uint16
{
- p := &local94
+ p := &local99
*p = read16(r)
}
- (local93) = make([]uint16, local94)
- for local95 := range local93 {
+ (local98) = make([]uint16, local99)
+ for local100 := range local98 {
{
- p := &(local93)[local95]
+ p := &(local98)[local100]
*p = read16(r)
}
}
(*(*(struct {
//mt:utf16
Reason string
- }))(obj)).Reason = string(utf16.Decode(local93))
+ }))(obj)).Reason = string(utf16.Decode(local98))
}
func (obj *ToCltFOV) serialize(w io.Writer) {
}))(obj)).Files)))
write32(w, uint32(x))
}
- for local96 := range (*(*(struct {
+ for local101 := range (*(*(struct {
// N is the total number of ToCltMedia packets.
// I is the index of this packet.
N, I uint16
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Name))) > math.MaxUint16 {
+ }))(obj)).Files)[local101]).Name))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Name))))
+ }))(obj)).Files)[local101]).Name))))
write16(w, uint16(x))
}
{
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Name))[:])
+ }))(obj)).Files)[local101]).Name))[:])
chk(err)
}
if len(((((*(*(struct {
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Data)) > math.MaxUint32 {
+ }))(obj)).Files)[local101]).Data)) > math.MaxUint32 {
chk(ErrTooLong)
}
{
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Data)))
+ }))(obj)).Files)[local101]).Data)))
write32(w, uint32(x))
}
{
//mt:len32
Data []byte
}
- }))(obj)).Files)[local96]).Data)[:])
+ }))(obj)).Files)[local101]).Data)[:])
chk(err)
}
}
}))(obj)).I
*p = read16(r)
}
- var local97 uint32
+ var local102 uint32
{
- p := &local97
+ p := &local102
*p = read32(r)
}
((*(*(struct {
}))(obj)).Files) = make([]struct {
Name string
Data []byte
- }, local97)
- for local98 := range (*(*(struct {
+ }, local102)
+ for local103 := range (*(*(struct {
// N is the total number of ToCltMedia packets.
// I is the index of this packet.
N, I uint16
Data []byte
}
}))(obj)).Files {
- var local99 []uint8
- var local100 uint16
+ var local104 []uint8
+ var local105 uint16
{
- p := &local100
+ p := &local105
*p = read16(r)
}
- (local99) = make([]uint8, local100)
+ (local104) = make([]uint8, local105)
{
- _, err := io.ReadFull(r, (local99)[:])
+ _, err := io.ReadFull(r, (local104)[:])
chk(err)
}
((((*(*(struct {
//mt:len32
Data []byte
}
- }))(obj)).Files)[local98]).Name) = string(local99)
- var local101 uint32
+ }))(obj)).Files)[local103]).Name) = string(local104)
+ var local106 uint32
{
- p := &local101
+ p := &local106
*p = read32(r)
}
((((*(*(struct {
//mt:len32
Data []byte
}
- }))(obj)).Files)[local98]).Data) = make([]byte, local101)
+ }))(obj)).Files)[local103]).Data) = make([]byte, local106)
{
_, err := io.ReadFull(r, ((((*(*(struct {
// N is the total number of ToCltMedia packets.
//mt:len32
Data []byte
}
- }))(obj)).Files)[local98]).Data)[:])
+ }))(obj)).Files)[local103]).Data)[:])
chk(err)
}
}
{
w := zlib.NewWriter(w)
{
- local102 := uint8(1)
+ local107 := uint8(1)
{
- x := local102
+ x := local107
write8(w, uint8(x))
}
}
p := &n
*p = read32(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
r, err := zlib.NewReader(byteReader{r})
chk(err)
{
- var local103 uint8
+ var local108 uint8
+ local109 := uint8(1)
{
- p := &local103
+ p := &local108
*p = read8(r)
}
- if local103 != (1) {
- chk(fmt.Errorf("const %v: %v", 1, local103))
+ if local108 != local109 {
+ chk(fmt.Errorf("const %v: %v", "uint8(1)", local108))
}
}
{
}))(obj)).Defs
{ // For ToCltNodeDefs.Defs.
*p = make([]NodeDef, read16(r))
- r := &io.LimitedReader{r, int64(read32(r))}
+ r := &io.LimitedReader{R: r, N: int64(read32(r))}
for i := range *p {
(*p)[i].deserialize(r)
}
}))(obj)).Files)))
write16(w, uint16(x))
}
- for local104 := range (*(*(struct {
+ for local110 := range (*(*(struct {
Files []struct {
Name string
Base64SHA1 string
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Name))) > math.MaxUint16 {
+ }))(obj)).Files)[local110]).Name))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Name))))
+ }))(obj)).Files)[local110]).Name))))
write16(w, uint16(x))
}
{
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Name))[:])
+ }))(obj)).Files)[local110]).Name))[:])
chk(err)
}
if len(([]byte((((*(*(struct {
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Base64SHA1))) > math.MaxUint16 {
+ }))(obj)).Files)[local110]).Base64SHA1))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Base64SHA1))))
+ }))(obj)).Files)[local110]).Base64SHA1))))
write16(w, uint16(x))
}
{
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local104]).Base64SHA1))[:])
+ }))(obj)).Files)[local110]).Base64SHA1))[:])
chk(err)
}
}
}
func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
- var local105 uint16
+ var local111 uint16
{
- p := &local105
+ p := &local111
*p = read16(r)
}
((*(*(struct {
}))(obj)).Files) = make([]struct {
Name string
Base64SHA1 string
- }, local105)
- for local106 := range (*(*(struct {
+ }, local111)
+ for local112 := range (*(*(struct {
Files []struct {
Name string
Base64SHA1 string
}
URL string
}))(obj)).Files {
- var local107 []uint8
- var local108 uint16
+ var local113 []uint8
+ var local114 uint16
{
- p := &local108
+ p := &local114
*p = read16(r)
}
- (local107) = make([]uint8, local108)
+ (local113) = make([]uint8, local114)
{
- _, err := io.ReadFull(r, (local107)[:])
+ _, err := io.ReadFull(r, (local113)[:])
chk(err)
}
((((*(*(struct {
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local106]).Name) = string(local107)
- var local109 []uint8
- var local110 uint16
+ }))(obj)).Files)[local112]).Name) = string(local113)
+ var local115 []uint8
+ var local116 uint16
{
- p := &local110
+ p := &local116
*p = read16(r)
}
- (local109) = make([]uint8, local110)
+ (local115) = make([]uint8, local116)
{
- _, err := io.ReadFull(r, (local109)[:])
+ _, err := io.ReadFull(r, (local115)[:])
chk(err)
}
((((*(*(struct {
Base64SHA1 string
}
URL string
- }))(obj)).Files)[local106]).Base64SHA1) = string(local109)
+ }))(obj)).Files)[local112]).Base64SHA1) = string(local115)
}
- var local111 []uint8
- var local112 uint16
+ var local117 []uint8
+ var local118 uint16
{
- p := &local112
+ p := &local118
*p = read16(r)
}
- (local111) = make([]uint8, local112)
+ (local117) = make([]uint8, local118)
{
- _, err := io.ReadFull(r, (local111)[:])
+ _, err := io.ReadFull(r, (local117)[:])
chk(err)
}
((*(*(struct {
Base64SHA1 string
}
URL string
- }))(obj)).URL) = string(local111)
+ }))(obj)).URL) = string(local117)
}
func (obj *ToCltItemDefs) serialize(w io.Writer) {
{
w := zlib.NewWriter(w)
{
- local113 := uint8(0)
+ local119 := uint8(0)
{
- x := local113
+ x := local119
write8(w, uint8(x))
}
}
}))(obj)).Defs)))
write16(w, uint16(x))
}
- for local114 := range (*(*(struct {
+ for local120 := range (*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
}))(obj)).Defs {
(((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Defs)[local114]).serialize(w)
+ }))(obj)).Defs)[local120]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Aliases)))
write16(w, uint16(x))
}
- for local115 := range (*(*(struct {
+ for local121 := range (*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
}))(obj)).Aliases {
if len(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Alias))) > math.MaxUint16 {
+ }))(obj)).Aliases)[local121]).Alias))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Alias))))
+ }))(obj)).Aliases)[local121]).Alias))))
write16(w, uint16(x))
}
{
_, err := w.Write(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Alias))[:])
+ }))(obj)).Aliases)[local121]).Alias))[:])
chk(err)
}
if len(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Orig))) > math.MaxUint16 {
+ }))(obj)).Aliases)[local121]).Orig))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Orig))))
+ }))(obj)).Aliases)[local121]).Orig))))
write16(w, uint16(x))
}
{
_, err := w.Write(([]byte((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local115]).Orig))[:])
+ }))(obj)).Aliases)[local121]).Orig))[:])
chk(err)
}
}
p := &n
*p = read32(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
r, err := zlib.NewReader(byteReader{r})
chk(err)
{
- var local116 uint8
+ var local122 uint8
+ local123 := uint8(0)
{
- p := &local116
+ p := &local122
*p = read8(r)
}
- if local116 != (0) {
- chk(fmt.Errorf("const %v: %v", 0, local116))
+ if local122 != local123 {
+ chk(fmt.Errorf("const %v: %v", "uint8(0)", local122))
}
}
- var local117 uint16
+ var local124 uint16
{
- p := &local117
+ p := &local124
*p = read16(r)
}
((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Defs) = make([]ItemDef, local117)
- for local118 := range (*(*(struct {
+ }))(obj)).Defs) = make([]ItemDef, local124)
+ for local125 := range (*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
}))(obj)).Defs {
(((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Defs)[local118]).deserialize(r)
+ }))(obj)).Defs)[local125]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
}
}
- var local119 uint16
+ var local126 uint16
{
- p := &local119
+ p := &local126
*p = read16(r)
}
((*(*(struct {
}))(obj)).Aliases) = make([]struct {
Alias string
Orig string
- }, local119)
- for local120 := range (*(*(struct {
+ }, local126)
+ for local127 := range (*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
}))(obj)).Aliases {
- var local121 []uint8
- var local122 uint16
+ var local128 []uint8
+ var local129 uint16
{
- p := &local122
+ p := &local129
*p = read16(r)
}
- (local121) = make([]uint8, local122)
+ (local128) = make([]uint8, local129)
{
- _, err := io.ReadFull(r, (local121)[:])
+ _, err := io.ReadFull(r, (local128)[:])
chk(err)
}
((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local120]).Alias) = string(local121)
- var local123 []uint8
- var local124 uint16
+ }))(obj)).Aliases)[local127]).Alias) = string(local128)
+ var local130 []uint8
+ var local131 uint16
{
- p := &local124
+ p := &local131
*p = read16(r)
}
- (local123) = make([]uint8, local124)
+ (local130) = make([]uint8, local131)
{
- _, err := io.ReadFull(r, (local123)[:])
+ _, err := io.ReadFull(r, (local130)[:])
chk(err)
}
((((*(*(struct {
Defs []ItemDef
Aliases []struct{ Alias, Orig string }
- }))(obj)).Aliases)[local120]).Orig) = string(local123)
+ }))(obj)).Aliases)[local127]).Orig) = string(local130)
}
chk(r.Close())
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
}
- var local125 []uint8
- var local126 uint16
+ var local132 []uint8
+ var local133 uint16
{
- p := &local126
+ p := &local133
*p = read16(r)
}
- (local125) = make([]uint8, local126)
+ (local132) = make([]uint8, local133)
{
- _, err := io.ReadFull(r, (local125)[:])
+ _, err := io.ReadFull(r, (local132)[:])
chk(err)
}
((*(*(struct {
Fade float32
Pitch float32
Ephemeral bool
- }))(obj)).Name) = string(local125)
+ }))(obj)).Name) = string(local132)
{
p := &(*(*(struct {
ID SoundID
}))(obj)).Privs)))
write16(w, uint16(x))
}
- for local127 := range (*(*(struct {
+ for local134 := range (*(*(struct {
Privs []string
}))(obj)).Privs {
if len(([]byte(((*(*(struct {
Privs []string
- }))(obj)).Privs)[local127]))) > math.MaxUint16 {
+ }))(obj)).Privs)[local134]))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(([]byte(((*(*(struct {
Privs []string
- }))(obj)).Privs)[local127]))))
+ }))(obj)).Privs)[local134]))))
write16(w, uint16(x))
}
{
_, err := w.Write(([]byte(((*(*(struct {
Privs []string
- }))(obj)).Privs)[local127]))[:])
+ }))(obj)).Privs)[local134]))[:])
chk(err)
}
}
}
func (obj *ToCltPrivs) deserialize(r io.Reader) {
- var local128 uint16
+ var local135 uint16
{
- p := &local128
+ p := &local135
*p = read16(r)
}
((*(*(struct {
Privs []string
- }))(obj)).Privs) = make([]string, local128)
- for local129 := range (*(*(struct {
+ }))(obj)).Privs) = make([]string, local135)
+ for local136 := range (*(*(struct {
Privs []string
}))(obj)).Privs {
- var local130 []uint8
- var local131 uint16
+ var local137 []uint8
+ var local138 uint16
{
- p := &local131
+ p := &local138
*p = read16(r)
}
- (local130) = make([]uint8, local131)
+ (local137) = make([]uint8, local138)
{
- _, err := io.ReadFull(r, (local130)[:])
+ _, err := io.ReadFull(r, (local137)[:])
chk(err)
}
(((*(*(struct {
Privs []string
- }))(obj)).Privs)[local129]) = string(local130)
+ }))(obj)).Privs)[local136]) = string(local137)
}
}
}
func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
- var local132 []uint8
- var local133 uint32
+ var local139 []uint8
+ var local140 uint32
{
- p := &local133
+ p := &local140
*p = read32(r)
}
- (local132) = make([]uint8, local133)
+ (local139) = make([]uint8, local140)
{
- _, err := io.ReadFull(r, (local132)[:])
+ _, err := io.ReadFull(r, (local139)[:])
chk(err)
}
((*(*(struct {
//mt:len32
Formspec string
- }))(obj)).Formspec) = string(local132)
+ }))(obj)).Formspec) = string(local139)
}
func (obj *ToCltDetachedInv) serialize(w io.Writer) {
}
func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
- var local134 []uint8
- var local135 uint16
+ var local141 []uint8
+ var local142 uint16
{
- p := &local135
+ p := &local142
*p = read16(r)
}
- (local134) = make([]uint8, local135)
+ (local141) = make([]uint8, local142)
{
- _, err := io.ReadFull(r, (local134)[:])
+ _, err := io.ReadFull(r, (local141)[:])
chk(err)
}
((*(*(struct {
//mt:raw
Inv string
- }))(obj)).Name) = string(local134)
+ }))(obj)).Name) = string(local141)
{
p := &(*(*(struct {
Name string
}))(obj)).Len
*p = read16(r)
}
- var local136 []uint8
- for {
- var local137 uint8
- err := pcall(func() {
- {
- p := &local137
- *p = read8(r)
- }
- })
- if err == io.EOF {
- break
- }
- (local136) = append((local136), local137)
+ var local143 []uint8
+ {
+ var err error
+ (local143), err = io.ReadAll(r)
chk(err)
}
((*(*(struct {
//mt:raw
Inv string
- }))(obj)).Inv) = string(local136)
+ }))(obj)).Inv) = string(local143)
}
func (obj *ToCltShowFormspec) serialize(w io.Writer) {
}
func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
- var local138 []uint8
- var local139 uint32
+ var local144 []uint8
+ var local145 uint32
{
- p := &local139
+ p := &local145
*p = read32(r)
}
- (local138) = make([]uint8, local139)
+ (local144) = make([]uint8, local145)
{
- _, err := io.ReadFull(r, (local138)[:])
+ _, err := io.ReadFull(r, (local144)[:])
chk(err)
}
((*(*(struct {
Formspec string
Formname string
- }))(obj)).Formspec) = string(local138)
- var local140 []uint8
- var local141 uint16
+ }))(obj)).Formspec) = string(local144)
+ var local146 []uint8
+ var local147 uint16
{
- p := &local141
+ p := &local147
*p = read16(r)
}
- (local140) = make([]uint8, local141)
+ (local146) = make([]uint8, local147)
{
- _, err := io.ReadFull(r, (local140)[:])
+ _, err := io.ReadFull(r, (local146)[:])
chk(err)
}
((*(*(struct {
Formspec string
Formname string
- }))(obj)).Formname) = string(local140)
+ }))(obj)).Formname) = string(local146)
}
func (obj *ToCltMovement) serialize(w io.Writer) {
}
func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
- for local142 := range (*(*(struct {
+ for local148 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Pos)[local142]
+ }))(obj)).Pos)[local148]
write32(w, math.Float32bits(x))
}
}
- for local143 := range (*(*(struct {
+ for local149 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Vel)[local143]
+ }))(obj)).Vel)[local149]
write32(w, math.Float32bits(x))
}
}
- for local144 := range (*(*(struct {
+ for local150 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Acc)[local144]
+ }))(obj)).Acc)[local150]
write32(w, math.Float32bits(x))
}
}
}
func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
- for local145 := range (*(*(struct {
+ for local151 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Pos)[local145]
+ }))(obj)).Pos)[local151]
*p = math.Float32frombits(read32(r))
}
}
- for local146 := range (*(*(struct {
+ for local152 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Vel)[local146]
+ }))(obj)).Vel)[local152]
*p = math.Float32frombits(read32(r))
}
}
- for local147 := range (*(*(struct {
+ for local153 := range (*(*(struct {
Pos, Vel, Acc [3]float32
ExpirationTime float32 // in seconds.
Size float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Acc)[local147]
+ }))(obj)).Acc)[local153]
*p = math.Float32frombits(read32(r))
}
}
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local148 []uint8
- var local149 uint32
+ var local154 []uint8
+ var local155 uint32
{
- p := &local149
+ p := &local155
*p = read32(r)
}
- (local148) = make([]uint8, local149)
+ (local154) = make([]uint8, local155)
{
- _, err := io.ReadFull(r, (local148)[:])
+ _, err := io.ReadFull(r, (local154)[:])
chk(err)
}
(*(*string)(&((*(*(struct {
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Texture))) = string(local148)
+ }))(obj)).Texture))) = string(local154)
{
p := &(*(*(struct {
Pos, Vel, Acc [3]float32
}))(obj)).Duration
write32(w, math.Float32bits(x))
}
- for local150 := range (*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Pos {
- for local151 := range ((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Pos)[local150] {
- {
- x := (((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Pos)[local150])[local151]
- write32(w, math.Float32bits(x))
- }
- }
- }
- for local152 := range (*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Vel {
- for local153 := range ((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Vel)[local152] {
- {
- x := (((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Vel)[local152])[local153]
- write32(w, math.Float32bits(x))
- }
- }
- }
- for local154 := range (*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Acc {
- for local155 := range ((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Acc)[local154] {
- {
- x := (((*(*(struct {
- Amount uint16
- Duration float32
- Pos, Vel, Acc [2][3]float32
- ExpirationTime [2]float32 // in seconds.
- Size [2]float32
- Collide bool
-
- //mt:len32
- Texture
-
- ID ParticleSpawnerID
- Vertical bool
- CollisionRm bool
- AttachedAOID AOID
- AnimParams TileAnim
- Glow uint8
- AOCollision bool
- NodeParam0 Content
- NodeParam2 uint8
- NodeTile uint8
- }))(obj)).Acc)[local154])[local155]
- write32(w, math.Float32bits(x))
- }
- }
- }
for local156 := range (*(*(struct {
Amount uint16
Duration float32
//mt:len32
Texture
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Pos {
+ for local157 := range ((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Pos)[local156] {
+ {
+ x := (((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Pos)[local156])[local157]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ }
+ for local158 := range (*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Vel {
+ for local159 := range ((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Vel)[local158] {
+ {
+ x := (((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Vel)[local158])[local159]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ }
+ for local160 := range (*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Acc {
+ for local161 := range ((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Acc)[local160] {
+ {
+ x := (((*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
+ ID ParticleSpawnerID
+ Vertical bool
+ CollisionRm bool
+ AttachedAOID AOID
+ AnimParams TileAnim
+ Glow uint8
+ AOCollision bool
+ NodeParam0 Content
+ NodeParam2 uint8
+ NodeTile uint8
+ }))(obj)).Acc)[local160])[local161]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ }
+ for local162 := range (*(*(struct {
+ Amount uint16
+ Duration float32
+ Pos, Vel, Acc [2][3]float32
+ ExpirationTime [2]float32 // in seconds.
+ Size [2]float32
+ Collide bool
+
+ //mt:len32
+ Texture
+
ID ParticleSpawnerID
Vertical bool
CollisionRm bool
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).ExpirationTime)[local156]
+ }))(obj)).ExpirationTime)[local162]
write32(w, math.Float32bits(x))
}
}
- for local157 := range (*(*(struct {
+ for local163 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Size)[local157]
+ }))(obj)).Size)[local163]
write32(w, math.Float32bits(x))
}
}
}))(obj)).Duration
*p = math.Float32frombits(read32(r))
}
- for local158 := range (*(*(struct {
+ for local164 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam2 uint8
NodeTile uint8
}))(obj)).Pos {
- for local159 := range ((*(*(struct {
+ for local165 := range ((*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Pos)[local158] {
+ }))(obj)).Pos)[local164] {
{
p := &(((*(*(struct {
Amount uint16
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Pos)[local158])[local159]
+ }))(obj)).Pos)[local164])[local165]
*p = math.Float32frombits(read32(r))
}
}
}
- for local160 := range (*(*(struct {
+ for local166 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam2 uint8
NodeTile uint8
}))(obj)).Vel {
- for local161 := range ((*(*(struct {
+ for local167 := range ((*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Vel)[local160] {
+ }))(obj)).Vel)[local166] {
{
p := &(((*(*(struct {
Amount uint16
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Vel)[local160])[local161]
+ }))(obj)).Vel)[local166])[local167]
*p = math.Float32frombits(read32(r))
}
}
}
- for local162 := range (*(*(struct {
+ for local168 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam2 uint8
NodeTile uint8
}))(obj)).Acc {
- for local163 := range ((*(*(struct {
+ for local169 := range ((*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Acc)[local162] {
+ }))(obj)).Acc)[local168] {
{
p := &(((*(*(struct {
Amount uint16
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Acc)[local162])[local163]
+ }))(obj)).Acc)[local168])[local169]
*p = math.Float32frombits(read32(r))
}
}
}
- for local164 := range (*(*(struct {
+ for local170 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).ExpirationTime)[local164]
+ }))(obj)).ExpirationTime)[local170]
*p = math.Float32frombits(read32(r))
}
}
- for local165 := range (*(*(struct {
+ for local171 := range (*(*(struct {
Amount uint16
Duration float32
Pos, Vel, Acc [2][3]float32
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Size)[local165]
+ }))(obj)).Size)[local171]
*p = math.Float32frombits(read32(r))
}
}
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local166 []uint8
- var local167 uint32
+ var local172 []uint8
+ var local173 uint32
{
- p := &local167
+ p := &local173
*p = read32(r)
}
- (local166) = make([]uint8, local167)
+ (local172) = make([]uint8, local173)
{
- _, err := io.ReadFull(r, (local166)[:])
+ _, err := io.ReadFull(r, (local172)[:])
chk(err)
}
(*(*string)(&((*(*(struct {
NodeParam0 Content
NodeParam2 uint8
NodeTile uint8
- }))(obj)).Texture))) = string(local166)
+ }))(obj)).Texture))) = string(local172)
if err := pcall(func() {
((*(*(struct {
Amount uint16
if err := pcall(func() {
((*(*(struct {
ID HUDID
-
- Type HUDType
-
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
+ HUD
}))(obj)).ID).serialize(w)
}); err != nil {
if err == io.EOF {
if err := pcall(func() {
((*(*(struct {
ID HUDID
+ HUD
+ }))(obj)).HUD).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
+ }
+}
- Type HUDType
+func (obj *ToCltAddHUD) deserialize(r io.Reader) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID HUDID
+ HUD
+ }))(obj)).ID).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID HUDID
+ HUD
+ }))(obj)).HUD).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
+ }
+}
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Type).serialize(w)
+func (obj *ToCltRmHUD) serialize(w io.Writer) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID HUDID
+ }))(obj)).ID).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
}
- for local168 := range (*(*(struct {
- ID HUDID
+}
- Type HUDType
+func (obj *ToCltRmHUD) deserialize(r io.Reader) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID HUDID
+ }))(obj)).ID).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
+ }
+}
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Pos {
- {
- x := ((*(*(struct {
- ID HUDID
+func (obj *ToCltChangeHUD) serialize(w io.Writer) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID HUDID
- Type HUDType
+ Field HUDField
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Pos)[local168]
- write32(w, math.Float32bits(x))
- }
- }
- if len(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDName
+ Name string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Name))) > math.MaxUint16 {
- chk(ErrTooLong)
- }
- {
- x := uint16(len(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDText
+ Text string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Name))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Type HUDType
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Name))[:])
- chk(err)
- }
- for local169 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Type HUDType
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Scale {
- {
- x := ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Scale)[local169]
- write32(w, math.Float32bits(x))
- }
- }
- if len(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- Type HUDType
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text))) > math.MaxUint16 {
- chk(ErrTooLong)
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).ID).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
}
- {
- x := uint16(len(([]byte((*(*(struct {
+ if err := pcall(func() {
+ ((*(*(struct {
ID HUDID
- Type HUDType
+ Field HUDField
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDName
+ Name string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text))[:])
- chk(err)
- }
- {
- x := (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDText
+ Text string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Number
- write32(w, uint32(x))
- }
- {
- x := (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Type HUDType
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Item
- write32(w, uint32(x))
- }
- {
- x := (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Type HUDType
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Dir
- write32(w, uint32(x))
- }
- for local170 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Align {
- {
- x := ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- Type HUDType
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Align)[local170]
- write32(w, math.Float32bits(x))
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Field).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
}
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
}
- for local171 := range (*(*(struct {
+ if !((*(*(struct {
ID HUDID
- Type HUDType
+ Field HUDField
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Offset {
- {
- x := ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDName
+ Name string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Offset)[local171]
- write32(w, math.Float32bits(x))
- }
- }
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDText
+ Text string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).WorldPos).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
- }
- for local172 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Type HUDType
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Size {
- {
- x := ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Type HUDType
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Size)[local172]
- write32(w, uint32(x))
- }
- }
- {
- x := (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).ZIndex
- write16(w, uint16(x))
- }
- if len(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- Type HUDType
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text2))) > math.MaxUint16 {
- chk(ErrTooLong)
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Field < hudMax) {
+ chk(errors.New("assertion failed: %s.Field < hudMax"))
}
- {
- x := uint16(len(([]byte((*(*(struct {
- ID HUDID
+ if (*(*(struct {
+ ID HUDID
- Type HUDType
+ Field HUDField
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text2))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDName
+ Name string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text2))[:])
- chk(err)
- }
-}
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
-func (obj *ToCltAddHUD) deserialize(r io.Reader) {
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDText
+ Text string
- Type HUDType
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).ID).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
- }
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Type HUDType
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Type).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
- }
- for local173 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
+ //mt:if %s.Field == HUDWorldPos
WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Pos {
- {
- p := &((*(*(struct {
- ID HUDID
- Type HUDType
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Pos)[local173]
- *p = math.Float32frombits(read32(r))
- }
- }
- var local174 []uint8
- var local175 uint16
- {
- p := &local175
- *p = read16(r)
- }
- (local174) = make([]uint8, local175)
- {
- _, err := io.ReadFull(r, (local174)[:])
- chk(err)
- }
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- Type HUDType
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Field == HUDPos {
+ for local174 := range (*(*(struct {
+ ID HUDID
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Name) = string(local174)
- for local176 := range (*(*(struct {
- ID HUDID
+ Field HUDField
- Type HUDType
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Scale {
- {
- p := &((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDName
+ Name string
- Type HUDType
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Scale)[local176]
- *p = math.Float32frombits(read32(r))
- }
- }
- var local177 []uint8
- var local178 uint16
- {
- p := &local178
- *p = read16(r)
- }
- (local177) = make([]uint8, local178)
- {
- _, err := io.ReadFull(r, (local177)[:])
- chk(err)
- }
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDText
+ Text string
- Type HUDType
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text) = string(local177)
- {
- p := &(*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Type HUDType
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Number
- *p = read32(r)
- }
- {
- p := &(*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
+ //mt:if %s.Field == HUDWorldPos
WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Item
- *p = read32(r)
- }
- {
- p := &(*(*(struct {
- ID HUDID
- Type HUDType
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Dir
- *p = read32(r)
- }
- for local179 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- Type HUDType
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Pos {
+ {
+ x := ((*(*(struct {
+ ID HUDID
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Align {
- {
- p := &((*(*(struct {
- ID HUDID
+ Field HUDField
- Type HUDType
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Align)[local179]
- *p = math.Float32frombits(read32(r))
- }
- }
- for local180 := range (*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDName
+ Name string
- Type HUDType
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Offset {
- {
- p := &((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDText
+ Text string
- Type HUDType
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Offset)[local180]
- *p = math.Float32frombits(read32(r))
- }
- }
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Type HUDType
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).WorldPos).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
+
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
+
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
+
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
+
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
+
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Pos)[local174]
+ write32(w, math.Float32bits(x))
+ }
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
}
- for local181 := range (*(*(struct {
+ if (*(*(struct {
ID HUDID
- Type HUDType
+ Field HUDField
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Size {
- {
- p := &((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDName
+ Name string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Size)[local181]
- *p = int32(read32(r))
- }
- }
- {
- p := &(*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- Type HUDType
+ //mt:if %s.Field == HUDText
+ Text string
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
- WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).ZIndex
- *p = int16(read16(r))
- }
- var local182 []uint8
- var local183 uint16
- {
- p := &local183
- *p = read16(r)
- }
- (local182) = make([]uint8, local183)
- {
- _, err := io.ReadFull(r, (local182)[:])
- chk(err)
- }
- ((*(*(struct {
- ID HUDID
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- Type HUDType
+ //mt:if %s.Field == HUDItem
+ Item uint32
- Pos [2]float32
- Name string
- Scale [2]float32
- Text string
- Number uint32
- Item uint32
- Dir uint32
- Align [2]float32
- Offset [2]float32
+ //mt:if %s.Field == HUDDir
+ Dir uint32
+
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
+
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
+
+ //mt:if %s.Field == HUDWorldPos
WorldPos Pos
- Size [2]int32
- ZIndex int16
- Text2 string
- }))(obj)).Text2) = string(local182)
-}
-func (obj *ToCltRmHUD) serialize(w io.Writer) {
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
- }))(obj)).ID).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
- }
-}
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
-func (obj *ToCltRmHUD) deserialize(r io.Reader) {
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
- }))(obj)).ID).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
- }
-}
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
-func (obj *ToCltChangeHUD) serialize(w io.Writer) {
- if err := pcall(func() {
- ((*(*(struct {
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Field == HUDName {
+ if len(([]byte((*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).ID).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ }))(obj)).Name))) > math.MaxUint16 {
+ chk(ErrTooLong)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
- }
- if err := pcall(func() {
- ((*(*(struct {
- ID HUDID
+ {
+ x := uint16(len(([]byte((*(*(struct {
+ ID HUDID
- Field HUDField
+ Field HUDField
- //mt:if %s.Field == HUDPos
- Pos [2]float32
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- //mt:if %s.Field == HUDName
- Name string
+ //mt:if %s.Field == HUDName
+ Name string
- //mt:if %s.Field == HUDScale
- Scale [2]float32
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- //mt:if %s.Field == HUDText
- Text string
+ //mt:if %s.Field == HUDText
+ Text string
- //mt:if %s.Field == HUDNumber
- Number uint32
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- //mt:if %s.Field == HUDItem
- Item uint32
+ //mt:if %s.Field == HUDItem
+ Item uint32
- //mt:if %s.Field == HUDDir
- Dir uint32
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- //mt:if %s.Field == HUDAlign
- Align [2]float32
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
- //mt:if %s.Field == HUDSize
- Size [2]int32
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Field).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Name))))
+ write16(w, uint16(x))
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
- }
- if !((*(*(struct {
- ID HUDID
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+ ID HUDID
- Field HUDField
+ Field HUDField
- //mt:if %s.Field == HUDPos
- Pos [2]float32
+ //mt:if %s.Field == HUDPos
+ Pos [2]float32
- //mt:if %s.Field == HUDName
- Name string
+ //mt:if %s.Field == HUDName
+ Name string
- //mt:if %s.Field == HUDScale
- Scale [2]float32
+ //mt:if %s.Field == HUDScale
+ Scale [2]float32
- //mt:if %s.Field == HUDText
- Text string
+ //mt:if %s.Field == HUDText
+ Text string
- //mt:if %s.Field == HUDNumber
- Number uint32
+ //mt:if %s.Field == HUDNumber
+ Number uint32
- //mt:if %s.Field == HUDItem
- Item uint32
+ //mt:if %s.Field == HUDItem
+ Item uint32
- //mt:if %s.Field == HUDDir
- Dir uint32
+ //mt:if %s.Field == HUDDir
+ Dir uint32
- //mt:if %s.Field == HUDAlign
- Align [2]float32
+ //mt:if %s.Field == HUDAlign
+ Align [2]float32
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
+ //mt:if %s.Field == HUDOffset
+ Offset [2]float32
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
+ //mt:if %s.Field == HUDWorldPos
+ WorldPos Pos
- //mt:if %s.Field == HUDSize
- Size [2]int32
+ //mt:if %s.Field == HUDSize
+ Size [2]int32
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ //mt:if %s.Field == HUDZIndex
+ ZIndex int32
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Field < hudMax) {
- chk(errors.New("assertion failed: %s.Field < hudMax"))
+ //mt:if %s.Field == HUDText2
+ Text2 string
+ }))(obj)).Name))[:])
+ chk(err)
+ }
}
if (*(*(struct {
ID HUDID
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Field == HUDPos {
- for local184 := range (*(*(struct {
+ }))(obj)).Field == HUDScale {
+ for local175 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Pos {
+ }))(obj)).Scale {
{
x := ((*(*(struct {
ID HUDID
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Pos)[local184]
+ }))(obj)).Scale)[local175]
write32(w, math.Float32bits(x))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Field == HUDName {
+ }))(obj)).Field == HUDText {
if len(([]byte((*(*(struct {
ID HUDID
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Name))) > math.MaxUint16 {
- chk(ErrTooLong)
- }
- {
- x := uint16(len(([]byte((*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Name))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Name))[:])
- chk(err)
- }
- }
- if (*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Field == HUDScale {
- for local185 := range (*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Scale {
- {
- x := ((*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Scale)[local185]
- write32(w, math.Float32bits(x))
- }
- }
- }
- if (*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
-
- //mt:if %s.Field == HUDText2
- Text2 string
- }))(obj)).Field == HUDText {
- if len(([]byte((*(*(struct {
- ID HUDID
-
- Field HUDField
-
- //mt:if %s.Field == HUDPos
- Pos [2]float32
-
- //mt:if %s.Field == HUDName
- Name string
-
- //mt:if %s.Field == HUDScale
- Scale [2]float32
-
- //mt:if %s.Field == HUDText
- Text string
-
- //mt:if %s.Field == HUDNumber
- Number uint32
-
- //mt:if %s.Field == HUDItem
- Item uint32
-
- //mt:if %s.Field == HUDDir
- Dir uint32
-
- //mt:if %s.Field == HUDAlign
- Align [2]float32
-
- //mt:if %s.Field == HUDOffset
- Offset [2]float32
-
- //mt:if %s.Field == HUDWorldPos
- WorldPos Pos
-
- //mt:if %s.Field == HUDSize
- Size [2]int32
-
- //mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDAlign {
- for local186 := range (*(*(struct {
+ for local176 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Align)[local186]
+ }))(obj)).Align)[local176]
write32(w, math.Float32bits(x))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDOffset {
- for local187 := range (*(*(struct {
+ for local177 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Offset)[local187]
+ }))(obj)).Offset)[local177]
write32(w, math.Float32bits(x))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDSize {
- for local188 := range (*(*(struct {
+ for local178 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Size)[local188]
+ }))(obj)).Size)[local178]
write32(w, uint32(x))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDPos {
- for local189 := range (*(*(struct {
+ for local179 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Pos)[local189]
+ }))(obj)).Pos)[local179]
*p = math.Float32frombits(read32(r))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDName {
- var local190 []uint8
- var local191 uint16
+ var local180 []uint8
+ var local181 uint16
{
- p := &local191
+ p := &local181
*p = read16(r)
}
- (local190) = make([]uint8, local191)
+ (local180) = make([]uint8, local181)
{
- _, err := io.ReadFull(r, (local190)[:])
+ _, err := io.ReadFull(r, (local180)[:])
chk(err)
}
((*(*(struct {
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Name) = string(local190)
+ }))(obj)).Name) = string(local180)
}
if (*(*(struct {
ID HUDID
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDScale {
- for local192 := range (*(*(struct {
+ for local182 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Scale)[local192]
+ }))(obj)).Scale)[local182]
*p = math.Float32frombits(read32(r))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDText {
- var local193 []uint8
- var local194 uint16
+ var local183 []uint8
+ var local184 uint16
{
- p := &local194
+ p := &local184
*p = read16(r)
}
- (local193) = make([]uint8, local194)
+ (local183) = make([]uint8, local184)
{
- _, err := io.ReadFull(r, (local193)[:])
+ _, err := io.ReadFull(r, (local183)[:])
chk(err)
}
((*(*(struct {
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Text) = string(local193)
+ }))(obj)).Text) = string(local183)
}
if (*(*(struct {
ID HUDID
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDAlign {
- for local195 := range (*(*(struct {
+ for local185 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Align)[local195]
+ }))(obj)).Align)[local185]
*p = math.Float32frombits(read32(r))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDOffset {
- for local196 := range (*(*(struct {
+ for local186 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Offset)[local196]
+ }))(obj)).Offset)[local186]
*p = math.Float32frombits(read32(r))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDSize {
- for local197 := range (*(*(struct {
+ for local187 := range (*(*(struct {
ID HUDID
Field HUDField
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Size)[local197]
+ }))(obj)).Size)[local187]
*p = int32(read32(r))
}
}
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).ZIndex
- *p = read32(r)
+ *p = int32(read32(r))
}
}
if (*(*(struct {
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
}))(obj)).Field == HUDText2 {
- var local198 []uint8
- var local199 uint16
+ var local188 []uint8
+ var local189 uint16
{
- p := &local199
+ p := &local189
*p = read16(r)
}
- (local198) = make([]uint8, local199)
+ (local188) = make([]uint8, local189)
{
- _, err := io.ReadFull(r, (local198)[:])
+ _, err := io.ReadFull(r, (local188)[:])
chk(err)
}
((*(*(struct {
Size [2]int32
//mt:if %s.Field == HUDZIndex
- ZIndex uint32
+ ZIndex int32
//mt:if %s.Field == HUDText2
Text2 string
- }))(obj)).Text2) = string(local198)
+ }))(obj)).Text2) = string(local188)
}
}
Img Texture
}))(obj)).Param == HotbarSize {
{
- local200 := uint16(4) // Size of Size field.
+ local190 := uint16(4) // Size of Size field.
{
- x := local200
+ x := local190
write16(w, uint16(x))
}
}
Img Texture
}))(obj)).Param == HotbarSize {
{
- var local201 uint16
+ var local191 uint16
+ local192 := uint16(4) // Size of Size field.
{
- p := &local201
+ p := &local191
*p = read16(r)
}
- if local201 != (4) {
- chk(fmt.Errorf("const %v: %v", 4, local201))
+ if local191 != local192 {
+ chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local191))
}
}
{
}))(obj)).Textures)))
write16(w, uint16(x))
}
- for local202 := range (*(*(struct {
+ for local193 := range (*(*(struct {
BgColor color.NRGBA
Type string
Clouds bool
DawnSky, DawnHorizon,
NightSky, NightHorizon,
Indoor color.NRGBA
- }))(obj)).Textures)[local202]).serialize(w)
+ }))(obj)).Textures)[local193]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).BgColor
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
- var local203 []uint8
- var local204 uint16
+ var local194 []uint8
+ var local195 uint16
{
- p := &local204
+ p := &local195
*p = read16(r)
}
- (local203) = make([]uint8, local204)
+ (local194) = make([]uint8, local195)
{
- _, err := io.ReadFull(r, (local203)[:])
+ _, err := io.ReadFull(r, (local194)[:])
chk(err)
}
((*(*(struct {
DawnSky, DawnHorizon,
NightSky, NightHorizon,
Indoor color.NRGBA
- }))(obj)).Type) = string(local203)
+ }))(obj)).Type) = string(local194)
{
p := &(*(*(struct {
BgColor color.NRGBA
}))(obj)).MoonFogTint
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
- var local205 []uint8
- var local206 uint16
+ var local196 []uint8
+ var local197 uint16
{
- p := &local206
+ p := &local197
*p = read16(r)
}
- (local205) = make([]uint8, local206)
+ (local196) = make([]uint8, local197)
{
- _, err := io.ReadFull(r, (local205)[:])
+ _, err := io.ReadFull(r, (local196)[:])
chk(err)
}
((*(*(struct {
DawnSky, DawnHorizon,
NightSky, NightHorizon,
Indoor color.NRGBA
- }))(obj)).FogTintType) = string(local205)
+ }))(obj)).FogTintType) = string(local196)
if (*(*(struct {
BgColor color.NRGBA
Type string
NightSky, NightHorizon,
Indoor color.NRGBA
}))(obj)).Type == "skybox" {
- var local207 uint16
+ var local198 uint16
{
- p := &local207
+ p := &local198
*p = read16(r)
}
((*(*(struct {
DawnSky, DawnHorizon,
NightSky, NightHorizon,
Indoor color.NRGBA
- }))(obj)).Textures) = make([]Texture, local207)
- for local208 := range (*(*(struct {
+ }))(obj)).Textures) = make([]Texture, local198)
+ for local199 := range (*(*(struct {
BgColor color.NRGBA
Type string
Clouds bool
DawnSky, DawnHorizon,
NightSky, NightHorizon,
Indoor color.NRGBA
- }))(obj)).Textures)[local208]).deserialize(r)
+ }))(obj)).Textures)[local199]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
- for local209 := range (*(*(struct {
+ for local200 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Idle {
x := ((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Idle)[local209]
+ }))(obj)).Idle)[local200]
write32(w, uint32(x))
}
}
- for local210 := range (*(*(struct {
+ for local201 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Walk {
x := ((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Walk)[local210]
+ }))(obj)).Walk)[local201]
write32(w, uint32(x))
}
}
- for local211 := range (*(*(struct {
+ for local202 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Dig {
x := ((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Dig)[local211]
+ }))(obj)).Dig)[local202]
write32(w, uint32(x))
}
}
- for local212 := range (*(*(struct {
+ for local203 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).WalkDig {
x := ((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).WalkDig)[local212]
+ }))(obj)).WalkDig)[local203]
write32(w, uint32(x))
}
}
}
func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
- for local213 := range (*(*(struct {
+ for local204 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Idle {
p := &((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Idle)[local213]
+ }))(obj)).Idle)[local204]
*p = int32(read32(r))
}
}
- for local214 := range (*(*(struct {
+ for local205 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Walk {
p := &((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Walk)[local214]
+ }))(obj)).Walk)[local205]
*p = int32(read32(r))
}
}
- for local215 := range (*(*(struct {
+ for local206 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).Dig {
p := &((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).Dig)[local215]
+ }))(obj)).Dig)[local206]
*p = int32(read32(r))
}
}
- for local216 := range (*(*(struct {
+ for local207 := range (*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
}))(obj)).WalkDig {
p := &((*(*(struct {
Idle, Walk, Dig, WalkDig [2]int32
Speed float32
- }))(obj)).WalkDig)[local216]
+ }))(obj)).WalkDig)[local207]
*p = int32(read32(r))
}
}
}))(obj)).Thickness
write32(w, math.Float32bits(x))
}
- for local217 := range (*(*(struct {
+ for local208 := range (*(*(struct {
Density float32
DiffuseColor color.NRGBA
AmbientColor color.NRGBA
Height float32
Thickness float32
Speed [2]float32
- }))(obj)).Speed)[local217]
+ }))(obj)).Speed)[local208]
write32(w, math.Float32bits(x))
}
}
}))(obj)).Thickness
*p = math.Float32frombits(read32(r))
}
- for local218 := range (*(*(struct {
+ for local209 := range (*(*(struct {
Density float32
DiffuseColor color.NRGBA
AmbientColor color.NRGBA
Height float32
Thickness float32
Speed [2]float32
- }))(obj)).Speed)[local218]
+ }))(obj)).Speed)[local209]
*p = math.Float32frombits(read32(r))
}
}
}))(obj)).Players)))
write16(w, uint16(x))
}
- for local219 := range (*(*(struct {
+ for local210 := range (*(*(struct {
Type PlayerListUpdateType
Players []string
}))(obj)).Players {
if len(([]byte(((*(*(struct {
Type PlayerListUpdateType
Players []string
- }))(obj)).Players)[local219]))) > math.MaxUint16 {
+ }))(obj)).Players)[local210]))) > math.MaxUint16 {
chk(ErrTooLong)
}
{
x := uint16(len(([]byte(((*(*(struct {
Type PlayerListUpdateType
Players []string
- }))(obj)).Players)[local219]))))
+ }))(obj)).Players)[local210]))))
write16(w, uint16(x))
}
{
_, err := w.Write(([]byte(((*(*(struct {
Type PlayerListUpdateType
Players []string
- }))(obj)).Players)[local219]))[:])
+ }))(obj)).Players)[local210]))[:])
chk(err)
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
}
- var local220 uint16
+ var local211 uint16
{
- p := &local220
+ p := &local211
*p = read16(r)
}
((*(*(struct {
Type PlayerListUpdateType
Players []string
- }))(obj)).Players) = make([]string, local220)
- for local221 := range (*(*(struct {
+ }))(obj)).Players) = make([]string, local211)
+ for local212 := range (*(*(struct {
Type PlayerListUpdateType
Players []string
}))(obj)).Players {
- var local222 []uint8
- var local223 uint16
+ var local213 []uint8
+ var local214 uint16
{
- p := &local223
+ p := &local214
*p = read16(r)
}
- (local222) = make([]uint8, local223)
+ (local213) = make([]uint8, local214)
{
- _, err := io.ReadFull(r, (local222)[:])
+ _, err := io.ReadFull(r, (local213)[:])
chk(err)
}
(((*(*(struct {
Type PlayerListUpdateType
Players []string
- }))(obj)).Players)[local221]) = string(local222)
+ }))(obj)).Players)[local212]) = string(local213)
}
}
}
func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
- var local224 []uint8
- var local225 uint16
+ var local215 []uint8
+ var local216 uint16
{
- p := &local225
+ p := &local216
*p = read16(r)
}
- (local224) = make([]uint8, local225)
+ (local215) = make([]uint8, local216)
{
- _, err := io.ReadFull(r, (local224)[:])
+ _, err := io.ReadFull(r, (local215)[:])
chk(err)
}
((*(*(struct {
Channel string
Sender string
Msg string
- }))(obj)).Channel) = string(local224)
- var local226 []uint8
- var local227 uint16
+ }))(obj)).Channel) = string(local215)
+ var local217 []uint8
+ var local218 uint16
{
- p := &local227
+ p := &local218
*p = read16(r)
}
- (local226) = make([]uint8, local227)
+ (local217) = make([]uint8, local218)
{
- _, err := io.ReadFull(r, (local226)[:])
+ _, err := io.ReadFull(r, (local217)[:])
chk(err)
}
((*(*(struct {
Channel string
Sender string
Msg string
- }))(obj)).Sender) = string(local226)
- var local228 []uint8
- var local229 uint16
+ }))(obj)).Sender) = string(local217)
+ var local219 []uint8
+ var local220 uint16
{
- p := &local229
+ p := &local220
*p = read16(r)
}
- (local228) = make([]uint8, local229)
+ (local219) = make([]uint8, local220)
{
- _, err := io.ReadFull(r, (local228)[:])
+ _, err := io.ReadFull(r, (local219)[:])
chk(err)
}
((*(*(struct {
Channel string
Sender string
Msg string
- }))(obj)).Msg) = string(local228)
+ }))(obj)).Msg) = string(local219)
}
func (obj *ToCltModChanSig) serialize(w io.Writer) {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
}
- var local230 []uint8
- var local231 uint16
+ var local221 []uint8
+ var local222 uint16
{
- p := &local231
+ p := &local222
*p = read16(r)
}
- (local230) = make([]uint8, local231)
+ (local221) = make([]uint8, local222)
{
- _, err := io.ReadFull(r, (local230)[:])
+ _, err := io.ReadFull(r, (local221)[:])
chk(err)
}
((*(*(struct {
Signal ModChanSig
Channel string
- }))(obj)).Channel) = string(local230)
+ }))(obj)).Channel) = string(local221)
}
func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
p := &n
*p = read32(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
p := &(*(*(struct {
//mt:lenhdr 32
}
func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
- var local232 uint16
+ var local223 uint16
{
- p := &local232
+ p := &local223
*p = read16(r)
}
((*(*(struct {
Salt, B []byte
- }))(obj)).Salt) = make([]byte, local232)
+ }))(obj)).Salt) = make([]byte, local223)
{
_, err := io.ReadFull(r, ((*(*(struct {
Salt, B []byte
}))(obj)).Salt)[:])
chk(err)
}
- var local233 uint16
+ var local224 uint16
{
- p := &local233
+ p := &local224
*p = read16(r)
}
((*(*(struct {
Salt, B []byte
- }))(obj)).B) = make([]byte, local233)
+ }))(obj)).B) = make([]byte, local224)
{
_, err := io.ReadFull(r, ((*(*(struct {
Salt, B []byte
}
func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
- var local234 []uint8
- var local235 uint16
+ var local225 []uint8
+ var local226 uint16
{
- p := &local235
+ p := &local226
*p = read16(r)
}
- (local234) = make([]uint8, local235)
+ (local225) = make([]uint8, local226)
{
- _, err := io.ReadFull(r, (local234)[:])
+ _, err := io.ReadFull(r, (local225)[:])
chk(err)
}
((*(*(struct {
Prepend string
- }))(obj)).Prepend) = string(local234)
+ }))(obj)).Prepend) = string(local225)
}
func (obj *AOCmdProps) serialize(w io.Writer) {
}))(obj)).Armor)))
write16(w, uint16(x))
}
- for local236 := range (*(*(struct {
+ for local227 := range (*(*(struct {
Armor []Group
}))(obj)).Armor {
if err := pcall(func() {
(((*(*(struct {
Armor []Group
- }))(obj)).Armor)[local236]).serialize(w)
+ }))(obj)).Armor)[local227]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
- var local237 uint16
+ var local228 uint16
{
- p := &local237
+ p := &local228
*p = read16(r)
}
((*(*(struct {
Armor []Group
- }))(obj)).Armor) = make([]Group, local237)
- for local238 := range (*(*(struct {
+ }))(obj)).Armor) = make([]Group, local228)
+ for local229 := range (*(*(struct {
Armor []Group
}))(obj)).Armor {
if err := pcall(func() {
(((*(*(struct {
Armor []Group
- }))(obj)).Armor)[local238]).deserialize(r)
+ }))(obj)).Armor)[local229]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *AOCmdBonePos) deserialize(r io.Reader) {
- var local239 []uint8
- var local240 uint16
+ var local230 []uint8
+ var local231 uint16
{
- p := &local240
+ p := &local231
*p = read16(r)
}
- (local239) = make([]uint8, local240)
+ (local230) = make([]uint8, local231)
{
- _, err := io.ReadFull(r, (local239)[:])
+ _, err := io.ReadFull(r, (local230)[:])
chk(err)
}
((*(*(struct {
Bone string
Pos AOBonePos
- }))(obj)).Bone) = string(local239)
+ }))(obj)).Bone) = string(local230)
if err := pcall(func() {
((*(*(struct {
Bone string
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
{
- local241 := genericCAO
+ local232 := genericCAO
if err := pcall(func() {
- (local241).serialize(w)
+ (local232).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
{
- var local242 aoType
+ var local233 aoType
+ local234 := genericCAO
if err := pcall(func() {
- (local242).deserialize(r)
+ (local233).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
}
- if local242 != (101) {
- chk(fmt.Errorf("const %v: %v", 101, local242))
+ if local233 != local234 {
+ chk(fmt.Errorf("const %v: %v", "genericCAO", local233))
}
}
}
}))(obj)).Fields)))
write32(w, uint32(x))
}
- for local243 := range (*(*(struct {
+ for local235 := range (*(*(struct {
//mt:len32
Fields []NodeMetaField
Fields []NodeMetaField
Inv Inv
- }))(obj)).Fields)[local243]).serialize(w)
+ }))(obj)).Fields)[local235]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *NodeMeta) deserialize(r io.Reader) {
- var local244 uint32
+ var local236 uint32
{
- p := &local244
+ p := &local236
*p = read32(r)
}
((*(*(struct {
Fields []NodeMetaField
Inv Inv
- }))(obj)).Fields) = make([]NodeMetaField, local244)
- for local245 := range (*(*(struct {
+ }))(obj)).Fields) = make([]NodeMetaField, local236)
+ for local237 := range (*(*(struct {
//mt:len32
Fields []NodeMetaField
Fields []NodeMetaField
Inv Inv
- }))(obj)).Fields)[local245]).deserialize(r)
+ }))(obj)).Fields)[local237]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
}
- var local246 []uint8
- var local247 uint16
+ var local238 []uint8
+ var local239 uint16
{
- p := &local247
+ p := &local239
*p = read16(r)
}
- (local246) = make([]uint8, local247)
+ (local238) = make([]uint8, local239)
{
- _, err := io.ReadFull(r, (local246)[:])
+ _, err := io.ReadFull(r, (local238)[:])
chk(err)
}
((*(*(struct {
Size uint16
Texture
Scale uint16
- }))(obj)).Label) = string(local246)
+ }))(obj)).Label) = string(local238)
{
p := &(*(*(struct {
Type MinimapType
ow := w
w := new(bytes.Buffer)
{
- local248 := uint8(13)
+ local240 := uint8(13)
{
- x := local248
+ x := local240
write8(w, uint8(x))
}
}
}))(obj)).Groups)))
write16(w, uint16(x))
}
- for local249 := range (*(*(struct {
+ for local241 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).Groups)[local249]).serialize(w)
+ }))(obj)).Groups)[local241]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
write32(w, math.Float32bits(x))
}
{
- local250 := uint8(6)
+ local242 := uint8(6)
{
- x := local250
+ x := local242
write8(w, uint8(x))
}
}
- for local251 := range (*(*(struct {
+ for local243 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).Tiles)[local251]).serialize(w)
+ }))(obj)).Tiles)[local243]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
}
}
- for local252 := range (*(*(struct {
+ for local244 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).OverlayTiles)[local252]).serialize(w)
+ }))(obj)).OverlayTiles)[local244]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
{
- local253 := uint8(6)
+ local245 := uint8(6)
{
- x := local253
+ x := local245
write8(w, uint8(x))
}
}
- for local254 := range (*(*(struct {
+ for local246 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).SpecialTiles)[local254]).serialize(w)
+ }))(obj)).SpecialTiles)[local246]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).ConnectTo)))
write16(w, uint16(x))
}
- for local255 := range (*(*(struct {
+ for local247 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).ConnectTo)[local255]).serialize(w)
+ }))(obj)).ConnectTo)[local247]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
p := &n
*p = read16(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
- var local256 uint8
+ var local248 uint8
+ local249 := uint8(13)
{
- p := &local256
+ p := &local248
*p = read8(r)
}
- if local256 != (13) {
- chk(fmt.Errorf("const %v: %v", 13, local256))
+ if local248 != local249 {
+ chk(fmt.Errorf("const %v: %v", "uint8(13)", local248))
}
}
- var local257 []uint8
- var local258 uint16
+ var local250 []uint8
+ var local251 uint16
{
- p := &local258
+ p := &local251
*p = read16(r)
}
- (local257) = make([]uint8, local258)
+ (local250) = make([]uint8, local251)
{
- _, err := io.ReadFull(r, (local257)[:])
+ _, err := io.ReadFull(r, (local250)[:])
chk(err)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).Name) = string(local257)
- var local259 uint16
+ }))(obj)).Name) = string(local250)
+ var local252 uint16
{
- p := &local259
+ p := &local252
*p = read16(r)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).Groups) = make([]Group, local259)
- for local260 := range (*(*(struct {
+ }))(obj)).Groups) = make([]Group, local252)
+ for local253 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).Groups)[local260]).deserialize(r)
+ }))(obj)).Groups)[local253]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
}
- var local261 []uint8
- var local262 uint16
+ var local254 []uint8
+ var local255 uint16
{
- p := &local262
+ p := &local255
*p = read16(r)
}
- (local261) = make([]uint8, local262)
+ (local254) = make([]uint8, local255)
{
- _, err := io.ReadFull(r, (local261)[:])
+ _, err := io.ReadFull(r, (local254)[:])
chk(err)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).Mesh) = string(local261)
+ }))(obj)).Mesh) = string(local254)
{
p := &(*(*(struct {
Param0 Content
*p = math.Float32frombits(read32(r))
}
{
- var local263 uint8
+ var local256 uint8
+ local257 := uint8(6)
{
- p := &local263
+ p := &local256
*p = read8(r)
}
- if local263 != (6) {
- chk(fmt.Errorf("const %v: %v", 6, local263))
+ if local256 != local257 {
+ chk(fmt.Errorf("const %v: %v", "uint8(6)", local256))
}
}
- for local264 := range (*(*(struct {
+ for local258 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).Tiles)[local264]).deserialize(r)
+ }))(obj)).Tiles)[local258]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
}
}
- for local265 := range (*(*(struct {
+ for local259 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).OverlayTiles)[local265]).deserialize(r)
+ }))(obj)).OverlayTiles)[local259]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
{
- var local266 uint8
+ var local260 uint8
+ local261 := uint8(6)
{
- p := &local266
+ p := &local260
*p = read8(r)
}
- if local266 != (6) {
- chk(fmt.Errorf("const %v: %v", 6, local266))
+ if local260 != local261 {
+ chk(fmt.Errorf("const %v: %v", "uint8(6)", local260))
}
}
- for local267 := range (*(*(struct {
+ for local262 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).SpecialTiles)[local267]).deserialize(r)
+ }))(obj)).SpecialTiles)[local262]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).ConnectSides
*p = read8(r)
}
- var local268 uint16
+ var local263 uint16
{
- p := &local268
+ p := &local263
*p = read16(r)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).ConnectTo) = make([]Content, local268)
- for local269 := range (*(*(struct {
+ }))(obj)).ConnectTo) = make([]Content, local263)
+ for local264 := range (*(*(struct {
Param0 Content
Name string
MaxLvl uint8
AlphaUse
- }))(obj)).ConnectTo)[local269]).deserialize(r)
+ }))(obj)).ConnectTo)[local264]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
}
- var local270 []uint8
- var local271 uint16
+ var local265 []uint8
+ var local266 uint16
{
- p := &local271
+ p := &local266
*p = read16(r)
}
- (local270) = make([]uint8, local271)
+ (local265) = make([]uint8, local266)
{
- _, err := io.ReadFull(r, (local270)[:])
+ _, err := io.ReadFull(r, (local265)[:])
chk(err)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).FlowingAlt) = string(local270)
- var local272 []uint8
- var local273 uint16
+ }))(obj)).FlowingAlt) = string(local265)
+ var local267 []uint8
+ var local268 uint16
{
- p := &local273
+ p := &local268
*p = read16(r)
}
- (local272) = make([]uint8, local273)
+ (local267) = make([]uint8, local268)
{
- _, err := io.ReadFull(r, (local272)[:])
+ _, err := io.ReadFull(r, (local267)[:])
chk(err)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).SrcAlt) = string(local272)
+ }))(obj)).SrcAlt) = string(local267)
{
p := &(*(*(struct {
Param0 Content
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local274 []uint8
- var local275 uint16
+ var local269 []uint8
+ var local270 uint16
{
- p := &local275
+ p := &local270
*p = read16(r)
}
- (local274) = make([]uint8, local275)
+ (local269) = make([]uint8, local270)
{
- _, err := io.ReadFull(r, (local274)[:])
+ _, err := io.ReadFull(r, (local269)[:])
chk(err)
}
((*(*(struct {
MaxLvl uint8
AlphaUse
- }))(obj)).DigPredict) = string(local274)
+ }))(obj)).DigPredict) = string(local269)
{
p := &(*(*(struct {
Param0 Content
}
func (obj *PointedNode) serialize(w io.Writer) {
- for local276 := range (*(*(struct {
+ for local271 := range (*(*(struct {
Under, Above [3]int16
}))(obj)).Under {
{
x := ((*(*(struct {
Under, Above [3]int16
- }))(obj)).Under)[local276]
+ }))(obj)).Under)[local271]
write16(w, uint16(x))
}
}
- for local277 := range (*(*(struct {
+ for local272 := range (*(*(struct {
Under, Above [3]int16
}))(obj)).Above {
{
x := ((*(*(struct {
Under, Above [3]int16
- }))(obj)).Above)[local277]
+ }))(obj)).Above)[local272]
write16(w, uint16(x))
}
}
}
func (obj *PointedNode) deserialize(r io.Reader) {
- for local278 := range (*(*(struct {
+ for local273 := range (*(*(struct {
Under, Above [3]int16
}))(obj)).Under {
{
p := &((*(*(struct {
Under, Above [3]int16
- }))(obj)).Under)[local278]
+ }))(obj)).Under)[local273]
*p = int16(read16(r))
}
}
- for local279 := range (*(*(struct {
+ for local274 := range (*(*(struct {
Under, Above [3]int16
}))(obj)).Above {
{
p := &((*(*(struct {
Under, Above [3]int16
- }))(obj)).Above)[local279]
+ }))(obj)).Above)[local274]
*p = int16(read16(r))
}
}
}
func (obj *PlayerPos) serialize(w io.Writer) {
- for local280 := range (*(*(struct {
+ for local275 := range (*(*(struct {
Pos100, Vel100 [3]int32
Pitch100, Yaw100 int32
Keys Keys
Keys Keys
FOV80 uint8
WantedRange uint8 // in MapBlks.
- }))(obj)).Pos100)[local280]
+ }))(obj)).Pos100)[local275]
write32(w, uint32(x))
}
}
- for local281 := range (*(*(struct {
+ for local276 := range (*(*(struct {
Pos100, Vel100 [3]int32
Pitch100, Yaw100 int32
Keys Keys
Keys Keys
FOV80 uint8
WantedRange uint8 // in MapBlks.
- }))(obj)).Vel100)[local281]
+ }))(obj)).Vel100)[local276]
write32(w, uint32(x))
}
}
}
func (obj *PlayerPos) deserialize(r io.Reader) {
- for local282 := range (*(*(struct {
+ for local277 := range (*(*(struct {
Pos100, Vel100 [3]int32
Pitch100, Yaw100 int32
Keys Keys
Keys Keys
FOV80 uint8
WantedRange uint8 // in MapBlks.
- }))(obj)).Pos100)[local282]
+ }))(obj)).Pos100)[local277]
*p = int32(read32(r))
}
}
- for local283 := range (*(*(struct {
+ for local278 := range (*(*(struct {
Pos100, Vel100 [3]int32
Pitch100, Yaw100 int32
Keys Keys
Keys Keys
FOV80 uint8
WantedRange uint8 // in MapBlks.
- }))(obj)).Vel100)[local283]
+ }))(obj)).Vel100)[local278]
*p = int32(read32(r))
}
}
}
func (obj *Field) deserialize(r io.Reader) {
- var local284 []uint8
- var local285 uint16
+ var local279 []uint8
+ var local280 uint16
{
- p := &local285
+ p := &local280
*p = read16(r)
}
- (local284) = make([]uint8, local285)
+ (local279) = make([]uint8, local280)
{
- _, err := io.ReadFull(r, (local284)[:])
+ _, err := io.ReadFull(r, (local279)[:])
chk(err)
}
((*(*(struct {
//mt:len32
Value string
- }))(obj)).Name) = string(local284)
- var local286 []uint8
- var local287 uint32
+ }))(obj)).Name) = string(local279)
+ var local281 []uint8
+ var local282 uint32
{
- p := &local287
+ p := &local282
*p = read32(r)
}
- (local286) = make([]uint8, local287)
+ (local281) = make([]uint8, local282)
{
- _, err := io.ReadFull(r, (local286)[:])
+ _, err := io.ReadFull(r, (local281)[:])
chk(err)
}
((*(*(struct {
//mt:len32
Value string
- }))(obj)).Value) = string(local286)
+ }))(obj)).Value) = string(local281)
}
func (obj *AuthMethods) serialize(w io.Writer) {
}
}
-func (obj *DiscoReason) serialize(w io.Writer) {
+func (obj *KickReason) serialize(w io.Writer) {
{
x := *(*(uint8))(obj)
write8(w, uint8(x))
}
}
-func (obj *DiscoReason) deserialize(r io.Reader) {
+func (obj *KickReason) deserialize(r io.Reader) {
{
p := &*(*(uint8))(obj)
*p = read8(r)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
}
{
- local288 := uint8(2) // Size of param0 in bytes.
+ local283 := uint8(2) // Size of param0 in bytes.
{
- x := local288
+ x := local283
write8(w, uint8(x))
}
}
{
- local289 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
+ local284 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
{
- x := local289
+ x := local284
write8(w, uint8(x))
}
}
{
w := zlib.NewWriter(w)
- for local290 := range (*(*(struct {
+ for local285 := range (*(*(struct {
Flags MapBlkFlags
LitFrom LitFromBlks
Param2 [4096]uint8
NodeMetas map[uint16]*NodeMeta
- }))(obj)).Param0)[local290]).serialize(w)
+ }))(obj)).Param0)[local285]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
write8(w, 0)
} else {
write8(w, 2)
- if len(x) > math.MaxUint16 {
- chk(ErrTooLong)
- }
+ // len(map[uint16]...) always < math.MaxUint16
write16(w, uint16(len(x)))
keys := make([]uint16, 0, len(x))
for key := range x {
}
}
{
- local291 := uint8(2) // version
+ local286 := uint8(2) // version
{
- x := local291
+ x := local286
write8(w, uint8(x))
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
}
{
- var local292 uint8
+ var local287 uint8
+ local288 := uint8(2) // Size of param0 in bytes.
{
- p := &local292
+ p := &local287
*p = read8(r)
}
- if local292 != (2) {
- chk(fmt.Errorf("const %v: %v", 2, local292))
+ if local287 != local288 {
+ chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local287))
}
}
{
- var local293 uint8
+ var local289 uint8
+ local290 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
{
- p := &local293
+ p := &local289
*p = read8(r)
}
- if local293 != (2) {
- chk(fmt.Errorf("const %v: %v", 2, local293))
+ if local289 != local290 {
+ chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local289))
}
}
{
r, err := zlib.NewReader(byteReader{r})
chk(err)
- for local294 := range (*(*(struct {
+ for local291 := range (*(*(struct {
Flags MapBlkFlags
LitFrom LitFromBlks
Param2 [4096]uint8
NodeMetas map[uint16]*NodeMeta
- }))(obj)).Param0)[local294]).deserialize(r)
+ }))(obj)).Param0)[local291]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
{
- var local295 uint8
+ var local292 uint8
+ local293 := uint8(2) // version
{
- p := &local295
+ p := &local292
*p = read8(r)
}
- if local295 != (2) {
- chk(fmt.Errorf("const %v: %v", 2, local295))
+ if local292 != local293 {
+ chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local292))
}
}
}
}
func (obj *Vec) serialize(w io.Writer) {
- for local296 := range *(*([3]float32))(obj) {
+ for local294 := range *(*([3]float32))(obj) {
{
- x := (*(*([3]float32))(obj))[local296]
+ x := (*(*([3]float32))(obj))[local294]
write32(w, math.Float32bits(x))
}
}
}
func (obj *Vec) deserialize(r io.Reader) {
- for local297 := range *(*([3]float32))(obj) {
+ for local295 := range *(*([3]float32))(obj) {
{
- p := &(*(*([3]float32))(obj))[local297]
+ p := &(*(*([3]float32))(obj))[local295]
*p = math.Float32frombits(read32(r))
}
}
}
}
-func (obj *aoType) serialize(w io.Writer) {
- {
- x := *(*(uint8))(obj)
- write8(w, uint8(x))
- }
-}
-
-func (obj *aoType) deserialize(r io.Reader) {
- {
- p := &*(*(uint8))(obj)
- *p = read8(r)
- }
-}
-
-func (obj *AOInitData) serialize(w io.Writer) {
- {
- local298 := uint8(1)
- {
- x := local298
- write8(w, uint8(x))
- }
- }
- if len(([]byte((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Name))) > math.MaxUint16 {
- chk(ErrTooLong)
- }
- {
- x := uint16(len(([]byte((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Name))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Name))[:])
- chk(err)
- }
- {
- x := (*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).IsPlayer
- if x {
- write8(w, 1)
- } else {
- write8(w, 0)
- }
- }
+func (obj *AOAdd) serialize(w io.Writer) {
if err := pcall(func() {
((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
+ //mt:const genericCAO
+ //mt:lenhdr 32
+ InitData AOInitData
}))(obj)).ID).serialize(w)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
- if err := pcall(func() {
- ((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Pos).serialize(w)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ {
+ local296 := genericCAO
+ if err := pcall(func() {
+ (local296).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
}
- for local299 := range (*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Rot {
- {
- x := ((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
+ {
+ ow := w
+ w := new(bytes.Buffer)
+ if err := pcall(func() {
+ ((*(*(struct {
ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Rot)[local299]
- write32(w, math.Float32bits(x))
+ //mt:const genericCAO
+ //mt:lenhdr 32
+ InitData AOInitData
+ }))(obj)).InitData).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
}
- }
- {
- x := (*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).HP
- write16(w, uint16(x))
- }
- {
- x := (*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Msgs
- { // For AOInitData.Msgs.
- if len(x) > math.MaxUint8 {
+ {
+ buf := w
+ w := ow
+ if len((buf.Bytes())) > math.MaxUint32 {
chk(ErrTooLong)
}
- write8(w, uint8(len(x)))
- for _, msg := range x {
- var b bytes.Buffer
- chk(writeAOMsg(&b, msg))
- if b.Len() > math.MaxUint32 {
- chk(ErrTooLong)
- }
- write32(w, uint32(b.Len()))
- _, err := b.WriteTo(w)
+ {
+ x := uint32(len((buf.Bytes())))
+ write32(w, uint32(x))
+ }
+ {
+ _, err := w.Write((buf.Bytes())[:])
chk(err)
}
}
}
}
-func (obj *AOInitData) deserialize(r io.Reader) {
- {
- var local300 uint8
- {
- p := &local300
- *p = read8(r)
- }
- if local300 != (1) {
- chk(fmt.Errorf("const %v: %v", 1, local300))
- }
- }
- var local301 []uint8
- var local302 uint16
- {
- p := &local302
- *p = read16(r)
- }
- (local301) = make([]uint8, local302)
- {
- _, err := io.ReadFull(r, (local301)[:])
- chk(err)
- }
- ((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Name) = string(local301)
- {
- p := &(*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).IsPlayer
- switch n := read8(r); n {
- case 0:
- *p = false
- case 1:
- *p = true
- default:
- chk(fmt.Errorf("invalid bool: %d", n))
- }
- }
+func (obj *AOAdd) deserialize(r io.Reader) {
if err := pcall(func() {
((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
+ //mt:const genericCAO
+ //mt:lenhdr 32
+ InitData AOInitData
}))(obj)).ID).deserialize(r)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
- if err := pcall(func() {
- ((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Pos).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ {
+ var local297 aoType
+ local298 := genericCAO
+ if err := pcall(func() {
+ (local297).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
- }
- for local303 := range (*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Rot {
- {
- p := &((*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Rot)[local303]
- *p = math.Float32frombits(read32(r))
+ if local297 != local298 {
+ chk(fmt.Errorf("const %v: %v", "genericCAO", local297))
}
}
{
- p := &(*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).HP
- *p = read16(r)
- }
- {
- p := &(*(*(struct {
-
- // For players.
- Name string
- IsPlayer bool
-
- ID AOID
-
- Pos
- Rot [3]float32
-
- HP uint16
-
- // See (de)serialize.fmt.
- Msgs []AOMsg
- }))(obj)).Msgs
- { // For AOInitData.Msgs.
- *p = make([]AOMsg, read8(r))
- for i := range *p {
- r := &io.LimitedReader{r, int64(read32(r))}
- msg, err := readAOMsg(r)
- chk(err)
- (*p)[i] = msg
- if r.N > 0 {
- chk(fmt.Errorf("%d bytes of trailing data", r.N))
- }
+ var n uint32
+ {
+ p := &n
+ *p = read32(r)
+ }
+ r := &io.LimitedReader{R: r, N: int64(n)}
+ if err := pcall(func() {
+ ((*(*(struct {
+ ID AOID
+ //mt:const genericCAO
+ //mt:lenhdr 32
+ InitData AOInitData
+ }))(obj)).InitData).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
}
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
+ }
+ if r.N > 0 {
+ chk(fmt.Errorf("%d bytes of trailing data", r.N))
}
}
}
p := &n
*p = read16(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
{
p := &(*(*(struct {
ID AOID
ow := w
w := new(bytes.Buffer)
{
- local304 := uint8(6)
+ local299 := uint8(6)
{
- x := local304
+ x := local299
write8(w, uint8(x))
}
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Type).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Name))) > math.MaxUint16 {
chk(ErrTooLong)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Name))))
write16(w, uint16(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Name))[:])
chk(err)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Desc))) > math.MaxUint16 {
chk(ErrTooLong)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Desc))))
write16(w, uint16(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Desc))[:])
chk(err)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).InvImg).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).WieldImg).serialize(w)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
}
- for local305 := range (*(*(struct {
+ for local300 := range (*(*(struct {
Type ItemType
Name, Desc string
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).WieldScale {
{
x := ((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).WieldScale)[local305]
+ }))(obj)).WieldScale)[local300]
write32(w, math.Float32bits(x))
}
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).StackMax
write16(w, uint16(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Usable
if x {
write8(w, 1)
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).CanPointLiquids
if x {
write8(w, 1)
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).ToolCaps).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Groups)) > math.MaxUint16 {
chk(ErrTooLong)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Groups)))
write16(w, uint16(x))
}
- for local306 := range (*(*(struct {
+ for local301 := range (*(*(struct {
Type ItemType
Name, Desc string
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Groups {
if err := pcall(func() {
(((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Groups)[local306]).serialize(w)
+ }))(obj)).Groups)[local301]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlacePredict))) > math.MaxUint16 {
chk(ErrTooLong)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlacePredict))))
write16(w, uint16(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlacePredict))[:])
chk(err)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlaceSnd).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlaceFailSnd).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PointRange
write32(w, math.Float32bits(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Palette).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Color
w.Write([]byte{x.A, x.R, x.G, x.B})
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).InvOverlay).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).WieldOverlay).serialize(w)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).ShortDesc))) > math.MaxUint16 {
chk(ErrTooLong)
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).ShortDesc))))
write16(w, uint16(x))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).ShortDesc))[:])
chk(err)
}
{
- x := (*(*(struct {
+ buf := w
+ w := ow
+ if len((buf.Bytes())) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len((buf.Bytes())))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write((buf.Bytes())[:])
+ chk(err)
+ }
+ }
+ }
+}
+
+func (obj *ItemDef) deserialize(r io.Reader) {
+ {
+ var n uint16
+ {
+ p := &n
+ *p = read16(r)
+ }
+ r := &io.LimitedReader{R: r, N: int64(n)}
+ {
+ var local302 uint8
+ local303 := uint8(6)
+ {
+ p := &local302
+ *p = read8(r)
+ }
+ if local302 != local303 {
+ chk(fmt.Errorf("const %v: %v", "uint8(6)", local302))
+ }
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
Type ItemType
Name, Desc string
InvOverlay, WieldOverlay Texture
ShortDesc string
+ }))(obj)).Type).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
+ }
+ var local304 []uint8
+ var local305 uint16
+ {
+ p := &local305
+ *p = read16(r)
+ }
+ (local304) = make([]uint8, local305)
+ {
+ _, err := io.ReadFull(r, (local304)[:])
+ chk(err)
+ }
+ ((*(*(struct {
+ Type ItemType
- PlaceParam2 byte
- }))(obj)).PlaceParam2
- write8(w, uint8(x))
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).Name) = string(local304)
+ var local306 []uint8
+ var local307 uint16
+ {
+ p := &local307
+ *p = read16(r)
}
+ (local306) = make([]uint8, local307)
{
- buf := w
- w := ow
- if len((buf.Bytes())) > math.MaxUint16 {
- chk(ErrTooLong)
+ _, err := io.ReadFull(r, (local306)[:])
+ chk(err)
+ }
+ ((*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).Desc) = string(local306)
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).InvImg).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
}
- {
- x := uint16(len((buf.Bytes())))
- write16(w, uint16(x))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).WieldImg).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
}
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
+ }
+ for local308 := range (*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).WieldScale {
{
- _, err := w.Write((buf.Bytes())[:])
- chk(err)
+ p := &((*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).WieldScale)[local308]
+ *p = math.Float32frombits(read32(r))
}
}
- }
-}
-
-func (obj *ItemDef) deserialize(r io.Reader) {
- {
- var n uint16
{
- p := &n
+ p := &(*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).StackMax
*p = read16(r)
}
- r := &io.LimitedReader{r, int64(n)}
{
- var local307 uint8
- {
- p := &local307
- *p = read8(r)
- }
- if local307 != (6) {
- chk(fmt.Errorf("const %v: %v", 6, local307))
+ p := &(*(*(struct {
+ Type ItemType
+
+ Name, Desc string
+
+ InvImg, WieldImg Texture
+ WieldScale [3]float32
+
+ StackMax uint16
+
+ Usable bool
+ CanPointLiquids bool
+
+ ToolCaps ToolCaps
+
+ Groups []Group
+
+ PlacePredict string
+
+ PlaceSnd, PlaceFailSnd SoundDef
+
+ PointRange float32
+
+ // Set index in Palette with "palette_index" item meta field,
+ // this overrides Color.
+ Palette Texture
+ Color color.NRGBA
+
+ // Texture overlays.
+ InvOverlay, WieldOverlay Texture
+
+ ShortDesc string
+ }))(obj)).Usable
+ switch n := read8(r); n {
+ case 0:
+ *p = false
+ case 1:
+ *p = true
+ default:
+ chk(fmt.Errorf("invalid bool: %d", n))
}
}
- if err := pcall(func() {
- ((*(*(struct {
+ {
+ p := &(*(*(struct {
Type ItemType
Name, Desc string
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Type).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
- }
- var local308 []uint8
- var local309 uint16
- {
- p := &local309
- *p = read16(r)
- }
- (local308) = make([]uint8, local309)
- {
- _, err := io.ReadFull(r, (local308)[:])
- chk(err)
- }
- ((*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Name) = string(local308)
- var local310 []uint8
- var local311 uint16
- {
- p := &local311
- *p = read16(r)
- }
- (local310) = make([]uint8, local311)
- {
- _, err := io.ReadFull(r, (local310)[:])
- chk(err)
- }
- ((*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Desc) = string(local310)
- if err := pcall(func() {
- ((*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).InvImg).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
- }
- if err := pcall(func() {
- ((*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).WieldImg).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
- }
- for local312 := range (*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).WieldScale {
- {
- p := &((*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).WieldScale)[local312]
- *p = math.Float32frombits(read32(r))
- }
- }
- {
- p := &(*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).StackMax
- *p = read16(r)
- }
- {
- p := &(*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Usable
- switch n := read8(r); n {
- case 0:
- *p = false
- case 1:
- *p = true
- default:
- chk(fmt.Errorf("invalid bool: %d", n))
- }
- }
- {
- p := &(*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
}))(obj)).CanPointLiquids
switch n := read8(r); n {
case 0:
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).ToolCaps).deserialize(r)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
}
- var local313 uint16
+ var local309 uint16
{
- p := &local313
+ p := &local309
*p = read16(r)
}
((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Groups) = make([]Group, local313)
- for local314 := range (*(*(struct {
+ }))(obj)).Groups) = make([]Group, local309)
+ for local310 := range (*(*(struct {
Type ItemType
Name, Desc string
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Groups {
if err := pcall(func() {
(((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).Groups)[local314]).deserialize(r)
+ }))(obj)).Groups)[local310]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
}
}
- var local315 []uint8
- var local316 uint16
+ var local311 []uint8
+ var local312 uint16
{
- p := &local316
+ p := &local312
*p = read16(r)
}
- (local315) = make([]uint8, local316)
+ (local311) = make([]uint8, local312)
{
- _, err := io.ReadFull(r, (local315)[:])
+ _, err := io.ReadFull(r, (local311)[:])
chk(err)
}
((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).PlacePredict) = string(local315)
+ }))(obj)).PlacePredict) = string(local311)
if err := pcall(func() {
((*(*(struct {
Type ItemType
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlaceSnd).deserialize(r)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PlaceFailSnd).deserialize(r)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).PointRange
*p = math.Float32frombits(read32(r))
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Palette).deserialize(r)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).Color
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).InvOverlay).deserialize(r)
}); err != nil {
if err == io.EOF {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
}))(obj)).WieldOverlay).deserialize(r)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
}
- var local317 []uint8
- var local318 uint16
+ var local313 []uint8
+ var local314 uint16
{
- p := &local318
+ p := &local314
*p = read16(r)
}
- (local317) = make([]uint8, local318)
+ (local313) = make([]uint8, local314)
{
- _, err := io.ReadFull(r, (local317)[:])
+ _, err := io.ReadFull(r, (local313)[:])
chk(err)
}
((*(*(struct {
InvOverlay, WieldOverlay Texture
ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).ShortDesc) = string(local317)
- {
- p := &(*(*(struct {
- Type ItemType
-
- Name, Desc string
-
- InvImg, WieldImg Texture
- WieldScale [3]float32
-
- StackMax uint16
-
- Usable bool
- CanPointLiquids bool
-
- ToolCaps ToolCaps
-
- Groups []Group
-
- PlacePredict string
-
- PlaceSnd, PlaceFailSnd SoundDef
-
- PointRange float32
-
- // Set index in Palette with "palette_index" item meta field,
- // this overrides Color.
- Palette Texture
- Color color.NRGBA
-
- // Texture overlays.
- InvOverlay, WieldOverlay Texture
-
- ShortDesc string
-
- PlaceParam2 byte
- }))(obj)).PlaceParam2
- *p = read8(r)
- }
+ }))(obj)).ShortDesc) = string(local313)
if r.N > 0 {
chk(fmt.Errorf("%d bytes of trailing data", r.N))
}
Duration float32 // in seconds
}))(obj)).Type == VerticalFrameAnim {
- for local319 := range (*(*(struct {
+ for local315 := range (*(*(struct {
Type AnimType
//mt:if %s.Type == SpriteSheetAnim
//mt:if %s.Type != NoAnim
Duration float32 // in seconds
- }))(obj)).NFrames)[local319]
+ }))(obj)).NFrames)[local315]
write16(w, uint16(x))
}
}
//mt:if %s.Type != NoAnim
Duration float32 // in seconds
- }))(obj)).Type).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ }))(obj)).Type).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
+ }
+ if !((*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).Type < maxAnim) {
+ chk(errors.New("assertion failed: %s.Type < maxAnim"))
+ }
+ if (*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).Type == SpriteSheetAnim {
+ {
+ _, err := io.ReadFull(r, ((*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).AspectRatio)[:])
+ chk(err)
+ }
+ }
+ if (*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).Type == VerticalFrameAnim {
+ for local316 := range (*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).NFrames {
+ {
+ p := &((*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).NFrames)[local316]
+ *p = read16(r)
+ }
+ }
+ }
+ if (*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).Type != NoAnim {
+ {
+ p := &(*(*(struct {
+ Type AnimType
+
+ //mt:if %s.Type == SpriteSheetAnim
+ AspectRatio [2]uint8
+
+ //mt:if %s.Type == VerticalFrameAnim
+ NFrames [2]uint16
+
+ //mt:if %s.Type != NoAnim
+ Duration float32 // in seconds
+
+ }))(obj)).Duration
+ *p = math.Float32frombits(read32(r))
+ }
+ }
+}
+
+func (obj *Content) serialize(w io.Writer) {
+ {
+ x := *(*(uint16))(obj)
+ write16(w, uint16(x))
+ }
+}
+
+func (obj *Content) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint16))(obj)
+ *p = read16(r)
+ }
+}
+
+func (obj *ParticleSpawnerID) serialize(w io.Writer) {
+ {
+ x := *(*(uint32))(obj)
+ write32(w, uint32(x))
+ }
+}
+
+func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint32))(obj)
+ *p = read32(r)
+ }
+}
+
+func (obj *HUDID) serialize(w io.Writer) {
+ {
+ x := *(*(uint32))(obj)
+ write32(w, uint32(x))
+ }
+}
+
+func (obj *HUDID) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint32))(obj)
+ *p = read32(r)
+ }
+}
+
+func (obj *HUD) serialize(w io.Writer) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Type).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
+ }
+ for local317 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Pos {
+ {
+ x := ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Pos)[local317]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ if len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Name))) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Name))))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Name))[:])
+ chk(err)
+ }
+ for local318 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Scale {
+ {
+ x := ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Scale)[local318]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ if len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text))) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text))))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text))[:])
+ chk(err)
+ }
+ {
+ x := (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Number
+ write32(w, uint32(x))
+ }
+ {
+ x := (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Item
+ write32(w, uint32(x))
+ }
+ {
+ x := (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Dir
+ write32(w, uint32(x))
+ }
+ for local319 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Align {
+ {
+ x := ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Align)[local319]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ for local320 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Offset {
+ {
+ x := ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Offset)[local320]
+ write32(w, math.Float32bits(x))
+ }
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).WorldPos).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
+ }
+ for local321 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Size {
+ {
+ x := ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Size)[local321]
+ write32(w, uint32(x))
+ }
+ }
+ {
+ x := (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).ZIndex
+ write16(w, uint16(x))
+ }
+ if len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text2))) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text2))))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text2))[:])
+ chk(err)
+ }
+}
+
+func (obj *HUD) deserialize(r io.Reader) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Type).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
+ }
+ for local322 := range (*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Pos {
+ {
+ p := &((*(*(struct {
+ Type HUDType
+
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Pos)[local322]
+ *p = math.Float32frombits(read32(r))
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
}
- if !((*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
-
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
-
- }))(obj)).Type < maxAnim) {
- chk(errors.New("assertion failed: %s.Type < maxAnim"))
+ var local323 []uint8
+ var local324 uint16
+ {
+ p := &local324
+ *p = read16(r)
}
- if (*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
+ (local323) = make([]uint8, local324)
+ {
+ _, err := io.ReadFull(r, (local323)[:])
+ chk(err)
+ }
+ ((*(*(struct {
+ Type HUDType
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Name) = string(local323)
+ for local325 := range (*(*(struct {
+ Type HUDType
- }))(obj)).Type == SpriteSheetAnim {
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Scale {
{
- _, err := io.ReadFull(r, ((*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
-
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ p := &((*(*(struct {
+ Type HUDType
- }))(obj)).AspectRatio)[:])
- chk(err)
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Scale)[local325]
+ *p = math.Float32frombits(read32(r))
}
}
- if (*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
-
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
-
- }))(obj)).Type == VerticalFrameAnim {
- for local320 := range (*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
+ var local326 []uint8
+ var local327 uint16
+ {
+ p := &local327
+ *p = read16(r)
+ }
+ (local326) = make([]uint8, local327)
+ {
+ _, err := io.ReadFull(r, (local326)[:])
+ chk(err)
+ }
+ ((*(*(struct {
+ Type HUDType
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text) = string(local326)
+ {
+ p := &(*(*(struct {
+ Type HUDType
- }))(obj)).NFrames {
- {
- p := &((*(*(struct {
- Type AnimType
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Number
+ *p = read32(r)
+ }
+ {
+ p := &(*(*(struct {
+ Type HUDType
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Item
+ *p = read32(r)
+ }
+ {
+ p := &(*(*(struct {
+ Type HUDType
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Dir
+ *p = read32(r)
+ }
+ for local328 := range (*(*(struct {
+ Type HUDType
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Align {
+ {
+ p := &((*(*(struct {
+ Type HUDType
- }))(obj)).NFrames)[local320]
- *p = read16(r)
- }
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Align)[local328]
+ *p = math.Float32frombits(read32(r))
}
}
- if (*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
-
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ for local329 := range (*(*(struct {
+ Type HUDType
- }))(obj)).Type != NoAnim {
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Offset {
{
- p := &(*(*(struct {
- Type AnimType
-
- //mt:if %s.Type == SpriteSheetAnim
- AspectRatio [2]uint8
-
- //mt:if %s.Type == VerticalFrameAnim
- NFrames [2]uint16
-
- //mt:if %s.Type != NoAnim
- Duration float32 // in seconds
+ p := &((*(*(struct {
+ Type HUDType
- }))(obj)).Duration
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Offset)[local329]
*p = math.Float32frombits(read32(r))
}
}
-}
+ if err := pcall(func() {
+ ((*(*(struct {
+ Type HUDType
-func (obj *Content) serialize(w io.Writer) {
- {
- x := *(*(uint16))(obj)
- write16(w, uint16(x))
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).WorldPos).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
}
-}
+ for local330 := range (*(*(struct {
+ Type HUDType
-func (obj *Content) deserialize(r io.Reader) {
- {
- p := &*(*(uint16))(obj)
- *p = read16(r)
- }
-}
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Size {
+ {
+ p := &((*(*(struct {
+ Type HUDType
-func (obj *ParticleSpawnerID) serialize(w io.Writer) {
- {
- x := *(*(uint32))(obj)
- write32(w, uint32(x))
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Size)[local330]
+ *p = int32(read32(r))
+ }
}
-}
-
-func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
{
- p := &*(*(uint32))(obj)
- *p = read32(r)
- }
-}
+ p := &(*(*(struct {
+ Type HUDType
-func (obj *HUDID) serialize(w io.Writer) {
- {
- x := *(*(uint32))(obj)
- write32(w, uint32(x))
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).ZIndex
+ *p = int16(read16(r))
}
-}
-
-func (obj *HUDID) deserialize(r io.Reader) {
+ var local331 []uint8
+ var local332 uint16
{
- p := &*(*(uint32))(obj)
- *p = read32(r)
+ p := &local332
+ *p = read16(r)
}
-}
-
-func (obj *HUDType) serialize(w io.Writer) {
+ (local331) = make([]uint8, local332)
{
- x := *(*(uint8))(obj)
- write8(w, uint8(x))
+ _, err := io.ReadFull(r, (local331)[:])
+ chk(err)
}
-}
+ ((*(*(struct {
+ Type HUDType
-func (obj *HUDType) deserialize(r io.Reader) {
- {
- p := &*(*(uint8))(obj)
- *p = read8(r)
- }
+ Pos [2]float32
+ Name string
+ Scale [2]float32
+ Text string
+ Number uint32
+ Item uint32
+ Dir uint32
+ Align [2]float32
+ Offset [2]float32
+ WorldPos Pos
+ Size [2]int32
+ ZIndex int16
+ Text2 string
+ }))(obj)).Text2) = string(local331)
}
func (obj *HUDField) serialize(w io.Writer) {
}
func (obj *Texture) deserialize(r io.Reader) {
- var local321 []uint8
- var local322 uint16
+ var local333 []uint8
+ var local334 uint16
{
- p := &local322
+ p := &local334
*p = read16(r)
}
- (local321) = make([]uint8, local322)
+ (local333) = make([]uint8, local334)
{
- _, err := io.ReadFull(r, (local321)[:])
+ _, err := io.ReadFull(r, (local333)[:])
chk(err)
}
- (*(*(string))(obj)) = string(local321)
+ (*(*(string))(obj)) = string(local333)
}
func (obj *PlayerListUpdateType) serialize(w io.Writer) {
func (obj *AOProps) serialize(w io.Writer) {
{
- local323 := uint8(4)
+ local335 := uint8(4)
{
- x := local323
+ x := local335
write8(w, uint8(x))
}
}
}))(obj)).Visual))[:])
chk(err)
}
- for local324 := range (*(*(struct {
+ for local336 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).VisualSize)[local324]
+ }))(obj)).VisualSize)[local336]
write32(w, math.Float32bits(x))
}
}
}))(obj)).Textures)))
write16(w, uint16(x))
}
- for local325 := range (*(*(struct {
+ for local337 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Textures)[local325]).serialize(w)
+ }))(obj)).Textures)[local337]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
}
}
- for local326 := range (*(*(struct {
+ for local338 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpriteSheetSize)[local326]
+ }))(obj)).SpriteSheetSize)[local338]
write16(w, uint16(x))
}
}
- for local327 := range (*(*(struct {
+ for local339 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritePos)[local327]
+ }))(obj)).SpritePos)[local339]
write16(w, uint16(x))
}
}
}))(obj)).Colors)))
write16(w, uint16(x))
}
- for local328 := range (*(*(struct {
+ for local340 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Colors)[local328]
+ }))(obj)).Colors)[local340]
w.Write([]byte{x.A, x.R, x.G, x.B})
}
}
func (obj *AOProps) deserialize(r io.Reader) {
{
- var local329 uint8
+ var local341 uint8
+ local342 := uint8(4)
{
- p := &local329
+ p := &local341
*p = read8(r)
}
- if local329 != (4) {
- chk(fmt.Errorf("const %v: %v", 4, local329))
+ if local341 != local342 {
+ chk(fmt.Errorf("const %v: %v", "uint8(4)", local341))
}
}
{
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local330 []uint8
- var local331 uint16
+ var local343 []uint8
+ var local344 uint16
{
- p := &local331
+ p := &local344
*p = read16(r)
}
- (local330) = make([]uint8, local331)
+ (local343) = make([]uint8, local344)
{
- _, err := io.ReadFull(r, (local330)[:])
+ _, err := io.ReadFull(r, (local343)[:])
chk(err)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Visual) = string(local330)
- for local332 := range (*(*(struct {
+ }))(obj)).Visual) = string(local343)
+ for local345 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).VisualSize)[local332]
+ }))(obj)).VisualSize)[local345]
*p = math.Float32frombits(read32(r))
}
}
- var local333 uint16
+ var local346 uint16
{
- p := &local333
+ p := &local346
*p = read16(r)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Textures) = make([]Texture, local333)
- for local334 := range (*(*(struct {
+ }))(obj)).Textures) = make([]Texture, local346)
+ for local347 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Textures)[local334]).deserialize(r)
+ }))(obj)).Textures)[local347]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
}
}
- for local335 := range (*(*(struct {
+ for local348 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpriteSheetSize)[local335]
+ }))(obj)).SpriteSheetSize)[local348]
*p = int16(read16(r))
}
}
- for local336 := range (*(*(struct {
+ for local349 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritePos)[local336]
+ }))(obj)).SpritePos)[local349]
*p = int16(read16(r))
}
}
}))(obj)).RotateSpeed
*p = math.Float32frombits(read32(r))
}
- var local337 []uint8
- var local338 uint16
+ var local350 []uint8
+ var local351 uint16
{
- p := &local338
+ p := &local351
*p = read16(r)
}
- (local337) = make([]uint8, local338)
+ (local350) = make([]uint8, local351)
{
- _, err := io.ReadFull(r, (local337)[:])
+ _, err := io.ReadFull(r, (local350)[:])
chk(err)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Mesh) = string(local337)
- var local339 uint16
+ }))(obj)).Mesh) = string(local350)
+ var local352 uint16
{
- p := &local339
+ p := &local352
*p = read16(r)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Colors) = make([]color.NRGBA, local339)
- for local340 := range (*(*(struct {
+ }))(obj)).Colors) = make([]color.NRGBA, local352)
+ for local353 := range (*(*(struct {
MaxHP uint16 // Player only.
CollideWithNodes bool
Weight float32 // deprecated
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Colors)[local340]
+ }))(obj)).Colors)[local353]
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
}
chk(fmt.Errorf("invalid bool: %d", n))
}
}
- var local341 []uint8
- var local342 uint16
+ var local354 []uint8
+ var local355 uint16
{
- p := &local342
+ p := &local355
*p = read16(r)
}
- (local341) = make([]uint8, local342)
+ (local354) = make([]uint8, local355)
{
- _, err := io.ReadFull(r, (local341)[:])
+ _, err := io.ReadFull(r, (local354)[:])
chk(err)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Nametag) = string(local341)
+ }))(obj)).Nametag) = string(local354)
{
p := &(*(*(struct {
MaxHP uint16 // Player only.
}))(obj)).FaceRotateSpeed
*p = math.Float32frombits(read32(r))
}
- var local343 []uint8
- var local344 uint16
+ var local356 []uint8
+ var local357 uint16
{
- p := &local344
+ p := &local357
*p = read16(r)
}
- (local343) = make([]uint8, local344)
+ (local356) = make([]uint8, local357)
{
- _, err := io.ReadFull(r, (local343)[:])
+ _, err := io.ReadFull(r, (local356)[:])
chk(err)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Infotext) = string(local343)
- var local345 []uint8
- var local346 uint16
+ }))(obj)).Infotext) = string(local356)
+ var local358 []uint8
+ var local359 uint16
{
- p := &local346
+ p := &local359
*p = read16(r)
}
- (local345) = make([]uint8, local346)
+ (local358) = make([]uint8, local359)
{
- _, err := io.ReadFull(r, (local345)[:])
+ _, err := io.ReadFull(r, (local358)[:])
chk(err)
}
((*(*(struct {
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).Itemstring) = string(local345)
+ }))(obj)).Itemstring) = string(local358)
{
p := &(*(*(struct {
MaxHP uint16 // Player only.
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local347 := range (*(*(struct {
+ for local360 := range (*(*(struct {
Pos
Vel, Acc Vec
Rot [3]float32
Interpolate bool
End bool
UpdateInterval float32
- }))(obj)).Rot)[local347]
+ }))(obj)).Rot)[local360]
write32(w, math.Float32bits(x))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local348 := range (*(*(struct {
+ for local361 := range (*(*(struct {
Pos
Vel, Acc Vec
Rot [3]float32
Interpolate bool
End bool
UpdateInterval float32
- }))(obj)).Rot)[local348]
+ }))(obj)).Rot)[local361]
*p = math.Float32frombits(read32(r))
}
}
}
func (obj *AOSprite) serialize(w io.Writer) {
- for local349 := range (*(*(struct {
+ for local362 := range (*(*(struct {
Frame0 [2]int16
Frames uint16
FrameDuration float32
Frames uint16
FrameDuration float32
ViewAngleFrames bool
- }))(obj)).Frame0)[local349]
+ }))(obj)).Frame0)[local362]
write16(w, uint16(x))
}
}
}
func (obj *AOSprite) deserialize(r io.Reader) {
- for local350 := range (*(*(struct {
+ for local363 := range (*(*(struct {
Frame0 [2]int16
Frames uint16
FrameDuration float32
Frames uint16
FrameDuration float32
ViewAngleFrames bool
- }))(obj)).Frame0)[local350]
+ }))(obj)).Frame0)[local363]
*p = int16(read16(r))
}
}
}
func (obj *Group) deserialize(r io.Reader) {
- var local351 []uint8
- var local352 uint16
+ var local364 []uint8
+ var local365 uint16
{
- p := &local352
+ p := &local365
*p = read16(r)
}
- (local351) = make([]uint8, local352)
+ (local364) = make([]uint8, local365)
{
- _, err := io.ReadFull(r, (local351)[:])
+ _, err := io.ReadFull(r, (local364)[:])
chk(err)
}
((*(*(struct {
Name string
Rating int16
- }))(obj)).Name) = string(local351)
+ }))(obj)).Name) = string(local364)
{
p := &(*(*(struct {
Name string
}
func (obj *AOAnim) serialize(w io.Writer) {
- for local353 := range (*(*(struct {
+ for local366 := range (*(*(struct {
Frames [2]int32
Speed float32
Blend float32
Speed float32
Blend float32
NoLoop bool
- }))(obj)).Frames)[local353]
+ }))(obj)).Frames)[local366]
write32(w, uint32(x))
}
}
}
func (obj *AOAnim) deserialize(r io.Reader) {
- for local354 := range (*(*(struct {
+ for local367 := range (*(*(struct {
Frames [2]int32
Speed float32
Blend float32
Speed float32
Blend float32
NoLoop bool
- }))(obj)).Frames)[local354]
+ }))(obj)).Frames)[local367]
*p = int32(read32(r))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local355 := range (*(*(struct {
+ for local368 := range (*(*(struct {
Pos Vec
Rot [3]float32
}))(obj)).Rot {
x := ((*(*(struct {
Pos Vec
Rot [3]float32
- }))(obj)).Rot)[local355]
+ }))(obj)).Rot)[local368]
write32(w, math.Float32bits(x))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local356 := range (*(*(struct {
+ for local369 := range (*(*(struct {
Pos Vec
Rot [3]float32
}))(obj)).Rot {
p := &((*(*(struct {
Pos Vec
Rot [3]float32
- }))(obj)).Rot)[local356]
+ }))(obj)).Rot)[local369]
*p = math.Float32frombits(read32(r))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local357 := range (*(*(struct {
+ for local370 := range (*(*(struct {
ParentID AOID
Bone string
Pos Vec
Pos Vec
Rot [3]float32
ForceVisible bool
- }))(obj)).Rot)[local357]
+ }))(obj)).Rot)[local370]
write32(w, math.Float32bits(x))
}
}
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
- var local358 []uint8
- var local359 uint16
+ var local371 []uint8
+ var local372 uint16
{
- p := &local359
+ p := &local372
*p = read16(r)
}
- (local358) = make([]uint8, local359)
+ (local371) = make([]uint8, local372)
{
- _, err := io.ReadFull(r, (local358)[:])
+ _, err := io.ReadFull(r, (local371)[:])
chk(err)
}
((*(*(struct {
Pos Vec
Rot [3]float32
ForceVisible bool
- }))(obj)).Bone) = string(local358)
+ }))(obj)).Bone) = string(local371)
if err := pcall(func() {
((*(*(struct {
ParentID AOID
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
}
- for local360 := range (*(*(struct {
+ for local373 := range (*(*(struct {
ParentID AOID
Bone string
Pos Vec
Pos Vec
Rot [3]float32
ForceVisible bool
- }))(obj)).Rot)[local360]
+ }))(obj)).Rot)[local373]
*p = math.Float32frombits(read32(r))
}
}
}
}
+func (obj *aoType) serialize(w io.Writer) {
+ {
+ x := *(*(uint8))(obj)
+ write8(w, uint8(x))
+ }
+}
+
+func (obj *aoType) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint8))(obj)
+ *p = read8(r)
+ }
+}
+
func (obj *NodeMetaField) serialize(w io.Writer) {
if err := pcall(func() {
((*(*(struct {
func (obj *TileDef) serialize(w io.Writer) {
{
- local361 := uint8(6)
+ local374 := uint8(6)
{
- x := local361
+ x := local374
write8(w, uint8(x))
}
}
func (obj *TileDef) deserialize(r io.Reader) {
{
- var local362 uint8
+ var local375 uint8
+ local376 := uint8(6)
{
- p := &local362
+ p := &local375
*p = read8(r)
}
- if local362 != (6) {
- chk(fmt.Errorf("const %v: %v", 6, local362))
+ if local375 != local376 {
+ chk(fmt.Errorf("const %v: %v", "uint8(6)", local375))
}
}
if err := pcall(func() {
func (obj *NodeBox) serialize(w io.Writer) {
{
- local363 := uint8(6)
+ local377 := uint8(6)
{
- x := local363
+ x := local377
write8(w, uint8(x))
}
}
}))(obj)).Fixed)))
write16(w, uint16(x))
}
- for local364 := range (*(*(struct {
+ for local378 := range (*(*(struct {
Type NodeBoxType
//mt:if %s.Type == MountedBox
//mt:if %s.Type == ConnectedBox
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
- }))(obj)).Fixed)[local364]).serialize(w)
+ }))(obj)).Fixed)[local378]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).DiscoAll)))
write16(w, uint16(x))
}
- for local365 := range (*(*(struct {
+ for local379 := range (*(*(struct {
Type NodeBoxType
//mt:if %s.Type == MountedBox
//mt:if %s.Type == ConnectedBox
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
- }))(obj)).DiscoAll)[local365]).serialize(w)
+ }))(obj)).DiscoAll)[local379]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).DiscoSides)))
write16(w, uint16(x))
}
- for local366 := range (*(*(struct {
+ for local380 := range (*(*(struct {
Type NodeBoxType
//mt:if %s.Type == MountedBox
//mt:if %s.Type == ConnectedBox
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
- }))(obj)).DiscoSides)[local366]).serialize(w)
+ }))(obj)).DiscoSides)[local380]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
func (obj *NodeBox) deserialize(r io.Reader) {
{
- var local367 uint8
+ var local381 uint8
+ local382 := uint8(6)
{
- p := &local367
+ p := &local381
*p = read8(r)
}
- if local367 != (6) {
- chk(fmt.Errorf("const %v: %v", 6, local367))
+ if local381 != local382 {
+ chk(fmt.Errorf("const %v: %v", "uint8(6)", local381))
}
}
if err := pcall(func() {
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
}))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
- var local368 uint16
+ var local383 uint16
{
- p := &local368
+ p := &local383
*p = read16(r)
}
((*(*(struct {
//mt:if %s.Type == ConnectedBox
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
- }))(obj)).Fixed) = make([]Box, local368)
- for local369 := range (*(*(struct {
+ }))(obj)).Fixed) = make([]Box, local383)
+ for local384 := range (*(*(struct {
Type NodeBoxType
//mt:if %s.Type == MountedBox
//mt:if %s.Type == ConnectedBox
ConnDirs, DiscoDirs DirBoxes
DiscoAll, DiscoSides []Box
- }))(obj)).Fixed)[local369]).deserialize(r)
+ }))(obj)).Fixed)[local384]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
}
- var local370 uint16
+ var local385 uint16
{
- p := &local370
+ p := &local385
*p = read16(r)
}
- ((*(*(struct {
- Type NodeBoxType
+ ((*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoAll) = make([]Box, local385)
+ for local386 := range (*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoAll {
+ if err := pcall(func() {
+ (((*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoAll)[local386]).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
+ }
+ }
+ var local387 uint16
+ {
+ p := &local387
+ *p = read16(r)
+ }
+ ((*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoSides) = make([]Box, local387)
+ for local388 := range (*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoSides {
+ if err := pcall(func() {
+ (((*(*(struct {
+ Type NodeBoxType
+
+ //mt:if %s.Type == MountedBox
+ WallTop, WallBot, WallSides Box
+
+ //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
+ Fixed []Box
+
+ //mt:if %s.Type == ConnectedBox
+ ConnDirs, DiscoDirs DirBoxes
+ DiscoAll, DiscoSides []Box
+ }))(obj)).DiscoSides)[local388]).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
+ }
+ }
+ }
+}
+
+func (obj *SoundDef) serialize(w io.Writer) {
+ if len(([]byte((*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Name))) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len(([]byte((*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Name))))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Name))[:])
+ chk(err)
+ }
+ {
+ x := (*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Gain
+ write32(w, math.Float32bits(x))
+ }
+ {
+ x := (*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Pitch
+ write32(w, math.Float32bits(x))
+ }
+ {
+ x := (*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Fade
+ write32(w, math.Float32bits(x))
+ }
+}
+
+func (obj *SoundDef) deserialize(r io.Reader) {
+ var local389 []uint8
+ var local390 uint16
+ {
+ p := &local390
+ *p = read16(r)
+ }
+ (local389) = make([]uint8, local390)
+ {
+ _, err := io.ReadFull(r, (local389)[:])
+ chk(err)
+ }
+ ((*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Name) = string(local389)
+ {
+ p := &(*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Gain
+ *p = math.Float32frombits(read32(r))
+ }
+ {
+ p := &(*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Pitch
+ *p = math.Float32frombits(read32(r))
+ }
+ {
+ p := &(*(*(struct {
+ Name string
+ Gain, Pitch, Fade float32
+ }))(obj)).Fade
+ *p = math.Float32frombits(read32(r))
+ }
+}
+
+func (obj *AlphaUse) serialize(w io.Writer) {
+ {
+ x := *(*(uint8))(obj)
+ write8(w, uint8(x))
+ }
+}
+
+func (obj *AlphaUse) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint8))(obj)
+ *p = read8(r)
+ }
+}
+
+func (obj *Keys) serialize(w io.Writer) {
+ {
+ x := *(*(uint32))(obj)
+ write32(w, uint32(x))
+ }
+}
+
+func (obj *Keys) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint32))(obj)
+ *p = read32(r)
+ }
+}
+
+func (obj *MapBlkFlags) serialize(w io.Writer) {
+ {
+ x := *(*(uint8))(obj)
+ write8(w, uint8(x))
+ }
+}
+
+func (obj *MapBlkFlags) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint8))(obj)
+ *p = read8(r)
+ }
+}
+
+func (obj *LitFromBlks) serialize(w io.Writer) {
+ {
+ x := *(*(uint16))(obj)
+ write16(w, uint16(x))
+ }
+}
+
+func (obj *LitFromBlks) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint16))(obj)
+ *p = read16(r)
+ }
+}
+
+func (obj *AOInitData) serialize(w io.Writer) {
+ {
+ local391 := uint8(1)
+ {
+ x := local391
+ write8(w, uint8(x))
+ }
+ }
+ if len(([]byte((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Name))) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len(([]byte((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Name))))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write(([]byte((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Name))[:])
+ chk(err)
+ }
+ {
+ x := (*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).IsPlayer
+ if x {
+ write8(w, 1)
+ } else {
+ write8(w, 0)
+ }
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).ID).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
+ }
+ if err := pcall(func() {
+ ((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Pos).serialize(w)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
+ }
+ for local392 := range (*(*(struct {
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ // For players.
+ Name string
+ IsPlayer bool
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ ID AOID
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoAll) = make([]Box, local370)
- for local371 := range (*(*(struct {
- Type NodeBoxType
+ Pos
+ Rot [3]float32
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ HP uint16
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Rot {
+ {
+ x := ((*(*(struct {
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoAll {
- if err := pcall(func() {
- (((*(*(struct {
- Type NodeBoxType
+ // For players.
+ Name string
+ IsPlayer bool
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ ID AOID
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ Pos
+ Rot [3]float32
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoAll)[local371]).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
- }
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
- }
- }
- var local372 uint16
- {
- p := &local372
- *p = read16(r)
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Rot)[local392]
+ write32(w, math.Float32bits(x))
}
- ((*(*(struct {
- Type NodeBoxType
+ }
+ {
+ x := (*(*(struct {
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ // For players.
+ Name string
+ IsPlayer bool
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ ID AOID
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoSides) = make([]Box, local372)
- for local373 := range (*(*(struct {
- Type NodeBoxType
+ Pos
+ Rot [3]float32
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ HP uint16
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).HP
+ write16(w, uint16(x))
+ }
+ {
+ x := (*(*(struct {
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoSides {
- if err := pcall(func() {
- (((*(*(struct {
- Type NodeBoxType
+ // For players.
+ Name string
+ IsPlayer bool
- //mt:if %s.Type == MountedBox
- WallTop, WallBot, WallSides Box
+ ID AOID
- //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
- Fixed []Box
+ Pos
+ Rot [3]float32
- //mt:if %s.Type == ConnectedBox
- ConnDirs, DiscoDirs DirBoxes
- DiscoAll, DiscoSides []Box
- }))(obj)).DiscoSides)[local373]).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Msgs
+ { // For AOInitData.Msgs.
+ if len(x) > math.MaxUint8 {
+ chk(ErrTooLong)
+ }
+ write8(w, uint8(len(x)))
+ for _, msg := range x {
+ var b bytes.Buffer
+ chk(writeAOMsg(&b, msg))
+ if b.Len() > math.MaxUint32 {
+ chk(ErrTooLong)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
+ write32(w, uint32(b.Len()))
+ _, err := b.WriteTo(w)
+ chk(err)
}
}
}
}
-func (obj *SoundDef) serialize(w io.Writer) {
- if len(([]byte((*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Name))) > math.MaxUint16 {
- chk(ErrTooLong)
- }
- {
- x := uint16(len(([]byte((*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Name))))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write(([]byte((*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Name))[:])
- chk(err)
- }
- {
- x := (*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Gain
- write32(w, math.Float32bits(x))
- }
- {
- x := (*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Pitch
- write32(w, math.Float32bits(x))
- }
+func (obj *AOInitData) deserialize(r io.Reader) {
{
- x := (*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Fade
- write32(w, math.Float32bits(x))
+ var local393 uint8
+ local394 := uint8(1)
+ {
+ p := &local393
+ *p = read8(r)
+ }
+ if local393 != local394 {
+ chk(fmt.Errorf("const %v: %v", "uint8(1)", local393))
+ }
}
-}
-
-func (obj *SoundDef) deserialize(r io.Reader) {
- var local374 []uint8
- var local375 uint16
+ var local395 []uint8
+ var local396 uint16
{
- p := &local375
+ p := &local396
*p = read16(r)
}
- (local374) = make([]uint8, local375)
+ (local395) = make([]uint8, local396)
{
- _, err := io.ReadFull(r, (local374)[:])
+ _, err := io.ReadFull(r, (local395)[:])
chk(err)
}
((*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Name) = string(local374)
- {
- p := &(*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Gain
- *p = math.Float32frombits(read32(r))
- }
- {
- p := &(*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Pitch
- *p = math.Float32frombits(read32(r))
- }
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Name) = string(local395)
{
p := &(*(*(struct {
- Name string
- Gain, Pitch, Fade float32
- }))(obj)).Fade
- *p = math.Float32frombits(read32(r))
- }
-}
-func (obj *AlphaUse) serialize(w io.Writer) {
- {
- x := *(*(uint8))(obj)
- write8(w, uint8(x))
- }
-}
+ // For players.
+ Name string
+ IsPlayer bool
-func (obj *AlphaUse) deserialize(r io.Reader) {
- {
- p := &*(*(uint8))(obj)
- *p = read8(r)
- }
-}
+ ID AOID
-func (obj *Keys) serialize(w io.Writer) {
- {
- x := *(*(uint32))(obj)
- write32(w, uint32(x))
- }
-}
+ Pos
+ Rot [3]float32
-func (obj *Keys) deserialize(r io.Reader) {
- {
- p := &*(*(uint32))(obj)
- *p = read32(r)
- }
-}
+ HP uint16
-func (obj *MapBlkFlags) serialize(w io.Writer) {
- {
- x := *(*(uint8))(obj)
- write8(w, uint8(x))
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).IsPlayer
+ switch n := read8(r); n {
+ case 0:
+ *p = false
+ case 1:
+ *p = true
+ default:
+ chk(fmt.Errorf("invalid bool: %d", n))
+ }
}
-}
+ if err := pcall(func() {
+ ((*(*(struct {
-func (obj *MapBlkFlags) deserialize(r io.Reader) {
- {
- p := &*(*(uint8))(obj)
- *p = read8(r)
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).ID).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
}
-}
+ if err := pcall(func() {
+ ((*(*(struct {
-func (obj *LitFromBlks) serialize(w io.Writer) {
- {
- x := *(*(uint16))(obj)
- write16(w, uint16(x))
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Pos).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
}
-}
+ for local397 := range (*(*(struct {
-func (obj *LitFromBlks) deserialize(r io.Reader) {
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Rot {
+ {
+ p := &((*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Rot)[local397]
+ *p = math.Float32frombits(read32(r))
+ }
+ }
{
- p := &*(*(uint16))(obj)
+ p := &(*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).HP
*p = read16(r)
}
+ {
+ p := &(*(*(struct {
+
+ // For players.
+ Name string
+ IsPlayer bool
+
+ ID AOID
+
+ Pos
+ Rot [3]float32
+
+ HP uint16
+
+ // See (de)serialize.fmt.
+ Msgs []AOMsg
+ }))(obj)).Msgs
+ { // For AOInitData.Msgs.
+ *p = make([]AOMsg, read8(r))
+ for i := range *p {
+ r := &io.LimitedReader{R: r, N: int64(read32(r))}
+ msg, err := readAOMsg(r)
+ chk(err)
+ (*p)[i] = msg
+ if r.N > 0 {
+ chk(fmt.Errorf("%d bytes of trailing data", r.N))
+ }
+ }
+ }
+ }
}
func (obj *ItemType) serialize(w io.Writer) {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)); false {
{
x := (*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil
if x {
write8(w, 1)
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil = true}; /**/{
if (*(*(struct {
//mt:if _ = %s; false
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil {
{
- local376 := uint8(5)
+ local398 := uint8(5)
{
- x := local376
+ x := local398
write8(w, uint8(x))
}
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).AttackCooldown
write32(w, math.Float32bits(x))
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).MaxDropLvl
write16(w, uint16(x))
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).GroupCaps)) > math.MaxUint32 {
chk(ErrTooLong)
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).GroupCaps)))
write32(w, uint32(x))
}
- for local377 := range (*(*(struct {
+ for local399 := range (*(*(struct {
//mt:if _ = %s; false
NonNil bool
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).GroupCaps {
if err := pcall(func() {
(((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).GroupCaps)[local377]).serialize(w)
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).GroupCaps)[local399]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCaps", err))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
}
}
if len(((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).DmgGroups)) > math.MaxUint32 {
chk(ErrTooLong)
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).DmgGroups)))
write32(w, uint32(x))
}
- for local378 := range (*(*(struct {
+ for local400 := range (*(*(struct {
//mt:if _ = %s; false
NonNil bool
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).DmgGroups {
if err := pcall(func() {
(((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).DmgGroups)[local378]).serialize(w)
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).DmgGroups)[local400]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
{
- x := (*(*(struct {
+ x := uint16((*(*(struct {
//mt:if _ = %s; false
NonNil bool
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).AttackUses
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).PunchUses)
write16(w, uint16(x))
}
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)); false {
{
p := &(*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil
switch n := read8(r); n {
case 0:
p := &n
*p = read16(r)
}
- r := &io.LimitedReader{r, int64(n)}
+ r := &io.LimitedReader{R: r, N: int64(n)}
if r.N > 0 {
(*(*(struct {
//mt:if _ = %s; false
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil = true
} /**/
{
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).NonNil {
{
- var local379 uint8
+ var local401 uint8
+ local402 := uint8(5)
{
- p := &local379
+ p := &local401
*p = read8(r)
}
- if local379 != (5) {
- chk(fmt.Errorf("const %v: %v", 5, local379))
+ if local401 != local402 {
+ chk(fmt.Errorf("const %v: %v", "uint8(5)", local401))
}
}
{
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).AttackCooldown
*p = math.Float32frombits(read32(r))
}
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).MaxDropLvl
*p = int16(read16(r))
}
- var local380 uint32
+ var local403 uint32
{
- p := &local380
+ p := &local403
*p = read32(r)
}
((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).GroupCaps) = make([]ToolGroupCaps, local380)
- for local381 := range (*(*(struct {
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).GroupCaps) = make([]ToolGroupCap, local403)
+ for local404 := range (*(*(struct {
//mt:if _ = %s; false
NonNil bool
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).GroupCaps {
if err := pcall(func() {
(((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).GroupCaps)[local381]).deserialize(r)
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).GroupCaps)[local404]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
- chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCaps", err))
+ chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
}
}
- var local382 uint32
+ var local405 uint32
{
- p := &local382
+ p := &local405
*p = read32(r)
}
((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).DmgGroups) = make([]Group, local382)
- for local383 := range (*(*(struct {
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).DmgGroups) = make([]Group, local405)
+ for local406 := range (*(*(struct {
//mt:if _ = %s; false
NonNil bool
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
+ //mt:32tou16
+ PunchUses int32
}))(obj)).DmgGroups {
if err := pcall(func() {
(((*(*(struct {
MaxDropLvl int16
//mt:len32
- GroupCaps []ToolGroupCaps
+ GroupCaps []ToolGroupCap
//mt:len32
DmgGroups []Group
- AttackUses uint16
- }))(obj)).DmgGroups)[local383]).deserialize(r)
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).DmgGroups)[local406]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
}
}
+ var local407 uint16
{
- p := &(*(*(struct {
- //mt:if _ = %s; false
- NonNil bool
+ p := &local407
+ *p = read16(r)
+ }
+ (*(*(struct {
+ //mt:if _ = %s; false
+ NonNil bool
- AttackCooldown float32
- MaxDropLvl int16
+ AttackCooldown float32
+ MaxDropLvl int16
- //mt:len32
- GroupCaps []ToolGroupCaps
+ //mt:len32
+ GroupCaps []ToolGroupCap
- //mt:len32
- DmgGroups []Group
+ //mt:len32
+ DmgGroups []Group
- AttackUses uint16
- }))(obj)).AttackUses
- *p = read16(r)
- }
+ //mt:32tou16
+ PunchUses int32
+ }))(obj)).PunchUses = int32(local407)
}
}
if r.N > 0 {
}
}
+func (obj *HUDType) serialize(w io.Writer) {
+ {
+ x := *(*(uint8))(obj)
+ write8(w, uint8(x))
+ }
+}
+
+func (obj *HUDType) deserialize(r io.Reader) {
+ {
+ p := &*(*(uint8))(obj)
+ *p = read8(r)
+ }
+}
+
func (obj *Box) serialize(w io.Writer) {
- for local384 := range *(*([2]Vec))(obj) {
+ for local408 := range *(*([2]Vec))(obj) {
if err := pcall(func() {
- ((*(*([2]Vec))(obj))[local384]).serialize(w)
+ ((*(*([2]Vec))(obj))[local408]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *Box) deserialize(r io.Reader) {
- for local385 := range *(*([2]Vec))(obj) {
+ for local409 := range *(*([2]Vec))(obj) {
if err := pcall(func() {
- ((*(*([2]Vec))(obj))[local385]).deserialize(r)
+ ((*(*([2]Vec))(obj))[local409]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Top)))
write16(w, uint16(x))
}
- for local386 := range (*(*(struct {
+ for local410 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Top {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Top)[local386]).serialize(w)
+ }))(obj)).Top)[local410]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Bot)))
write16(w, uint16(x))
}
- for local387 := range (*(*(struct {
+ for local411 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Bot {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Bot)[local387]).serialize(w)
+ }))(obj)).Bot)[local411]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Front)))
write16(w, uint16(x))
}
- for local388 := range (*(*(struct {
+ for local412 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Front {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Front)[local388]).serialize(w)
+ }))(obj)).Front)[local412]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Left)))
write16(w, uint16(x))
}
- for local389 := range (*(*(struct {
+ for local413 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Left {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Left)[local389]).serialize(w)
+ }))(obj)).Left)[local413]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Back)))
write16(w, uint16(x))
}
- for local390 := range (*(*(struct {
+ for local414 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Back {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Back)[local390]).serialize(w)
+ }))(obj)).Back)[local414]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}))(obj)).Right)))
write16(w, uint16(x))
}
- for local391 := range (*(*(struct {
+ for local415 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Right {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Right)[local391]).serialize(w)
+ }))(obj)).Right)[local415]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
func (obj *DirBoxes) deserialize(r io.Reader) {
- var local392 uint16
+ var local416 uint16
{
- p := &local392
+ p := &local416
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Top) = make([]Box, local392)
- for local393 := range (*(*(struct {
+ }))(obj)).Top) = make([]Box, local416)
+ for local417 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Top {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Top)[local393]).deserialize(r)
+ }))(obj)).Top)[local417]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
}
}
- var local394 uint16
+ var local418 uint16
{
- p := &local394
+ p := &local418
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Bot) = make([]Box, local394)
- for local395 := range (*(*(struct {
+ }))(obj)).Bot) = make([]Box, local418)
+ for local419 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Bot {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Bot)[local395]).deserialize(r)
+ }))(obj)).Bot)[local419]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
}
}
- var local396 uint16
+ var local420 uint16
{
- p := &local396
+ p := &local420
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Front) = make([]Box, local396)
- for local397 := range (*(*(struct {
+ }))(obj)).Front) = make([]Box, local420)
+ for local421 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Front {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Front)[local397]).deserialize(r)
+ }))(obj)).Front)[local421]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
}
}
- var local398 uint16
+ var local422 uint16
{
- p := &local398
+ p := &local422
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Left) = make([]Box, local398)
- for local399 := range (*(*(struct {
+ }))(obj)).Left) = make([]Box, local422)
+ for local423 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Left {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Left)[local399]).deserialize(r)
+ }))(obj)).Left)[local423]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
}
}
- var local400 uint16
+ var local424 uint16
{
- p := &local400
+ p := &local424
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Back) = make([]Box, local400)
- for local401 := range (*(*(struct {
+ }))(obj)).Back) = make([]Box, local424)
+ for local425 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Back {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Back)[local401]).deserialize(r)
+ }))(obj)).Back)[local425]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
}
}
- var local402 uint16
+ var local426 uint16
{
- p := &local402
+ p := &local426
*p = read16(r)
}
((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Right) = make([]Box, local402)
- for local403 := range (*(*(struct {
+ }))(obj)).Right) = make([]Box, local426)
+ for local427 := range (*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
}))(obj)).Right {
(((*(*(struct {
Top, Bot []Box
Front, Left, Back, Right []Box
- }))(obj)).Right)[local403]).deserialize(r)
+ }))(obj)).Right)[local427]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
-func (obj *ToolGroupCaps) serialize(w io.Writer) {
+func (obj *ToolGroupCap) serialize(w io.Writer) {
if len(([]byte((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}
{
x := uint16(len(([]byte((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}
{
_, err := w.Write(([]byte((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
chk(err)
}
{
- x := (*(*(struct {
- Name string
- Uses int16
+ x := int16((*(*(struct {
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
Times []DigTime
- }))(obj)).Uses
+ }))(obj)).Uses)
write16(w, uint16(x))
}
{
x := (*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
write16(w, uint16(x))
}
if len(((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}
{
x := uint32(len(((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}))(obj)).Times)))
write32(w, uint32(x))
}
- for local404 := range (*(*(struct {
- Name string
- Uses int16
+ for local428 := range (*(*(struct {
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}))(obj)).Times {
if err := pcall(func() {
(((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
Times []DigTime
- }))(obj)).Times)[local404]).serialize(w)
+ }))(obj)).Times)[local428]).serialize(w)
}); err != nil {
if err == io.EOF {
chk(io.EOF)
}
}
-func (obj *ToolGroupCaps) deserialize(r io.Reader) {
- var local405 []uint8
- var local406 uint16
+func (obj *ToolGroupCap) deserialize(r io.Reader) {
+ var local429 []uint8
+ var local430 uint16
{
- p := &local406
+ p := &local430
*p = read16(r)
}
- (local405) = make([]uint8, local406)
+ (local429) = make([]uint8, local430)
{
- _, err := io.ReadFull(r, (local405)[:])
+ _, err := io.ReadFull(r, (local429)[:])
chk(err)
}
((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
Times []DigTime
- }))(obj)).Name) = string(local405)
+ }))(obj)).Name) = string(local429)
+ var local431 int16
{
- p := &(*(*(struct {
- Name string
- Uses int16
- MaxLvl int16
-
- //mt:len32
- Times []DigTime
- }))(obj)).Uses
+ p := &local431
*p = int16(read16(r))
}
+ (*(*(struct {
+ Name string
+
+ //mt:32to16
+ Uses int32
+
+ MaxLvl int16
+
+ //mt:len32
+ Times []DigTime
+ }))(obj)).Uses = int32(local431)
{
p := &(*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}))(obj)).MaxLvl
*p = int16(read16(r))
}
- var local407 uint32
+ var local432 uint32
{
- p := &local407
+ p := &local432
*p = read32(r)
}
((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
Times []DigTime
- }))(obj)).Times) = make([]DigTime, local407)
- for local408 := range (*(*(struct {
- Name string
- Uses int16
+ }))(obj)).Times) = make([]DigTime, local432)
+ for local433 := range (*(*(struct {
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
}))(obj)).Times {
if err := pcall(func() {
(((*(*(struct {
- Name string
- Uses int16
+ Name string
+
+ //mt:32to16
+ Uses int32
+
MaxLvl int16
//mt:len32
Times []DigTime
- }))(obj)).Times)[local408]).deserialize(r)
+ }))(obj)).Times)[local433]).deserialize(r)
}); err != nil {
if err == io.EOF {
chk(io.EOF)