1 // Code generated by mkserialize.sh; DO NOT EDIT.
16 "github.com/klauspost/compress/zstd"
19 func write8(w io.Writer, x uint8) {
20 _, err := w.Write([]byte{x})
23 func write16(w io.Writer, x uint16) {
24 buf := make([]byte, 2)
26 _, err := w.Write(buf)
29 func write32(w io.Writer, x uint32) {
30 buf := make([]byte, 4)
32 _, err := w.Write(buf)
35 func write64(w io.Writer, x uint64) {
36 buf := make([]byte, 8)
38 _, err := w.Write(buf)
41 func readBuf(r io.Reader, n int) []byte {
42 buf := make([]byte, n)
43 _, err := io.ReadFull(r, buf)
47 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
48 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
49 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
50 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
52 func (obj *ToSrvNil) serialize(w io.Writer) {
55 func (obj *ToSrvNil) deserialize(r io.Reader) {
58 func (obj *ToSrvInit) serialize(w io.Writer) {
62 SupportedCompression CompressionModes
63 MinProtoVer, MaxProtoVer uint16
68 }))(obj)).SerializeVer
71 if err := pcall(func() {
74 SupportedCompression CompressionModes
75 MinProtoVer, MaxProtoVer uint16
80 }))(obj)).SupportedCompression).serialize(w)
85 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CompressionModes", err))
90 SupportedCompression CompressionModes
91 MinProtoVer, MaxProtoVer uint16
102 SupportedCompression CompressionModes
103 MinProtoVer, MaxProtoVer uint16
107 SendFullItemMeta bool
108 }))(obj)).MaxProtoVer
109 write16(w, uint16(x))
111 if len(([]byte((*(*(struct {
113 SupportedCompression CompressionModes
114 MinProtoVer, MaxProtoVer uint16
118 SendFullItemMeta bool
119 }))(obj)).PlayerName))) > math.MaxUint16 {
123 x := uint16(len(([]byte((*(*(struct {
125 SupportedCompression CompressionModes
126 MinProtoVer, MaxProtoVer uint16
130 SendFullItemMeta bool
131 }))(obj)).PlayerName))))
132 write16(w, uint16(x))
135 _, err := w.Write(([]byte((*(*(struct {
137 SupportedCompression CompressionModes
138 MinProtoVer, MaxProtoVer uint16
142 SendFullItemMeta bool
143 }))(obj)).PlayerName))[:])
146 if err := pcall(func() {
150 SupportedCompression CompressionModes
151 MinProtoVer, MaxProtoVer uint16
155 SendFullItemMeta bool
156 }))(obj)).SendFullItemMeta
163 }); err != nil && err != io.EOF {
168 func (obj *ToSrvInit) deserialize(r io.Reader) {
172 SupportedCompression CompressionModes
173 MinProtoVer, MaxProtoVer uint16
177 SendFullItemMeta bool
178 }))(obj)).SerializeVer
181 if err := pcall(func() {
184 SupportedCompression CompressionModes
185 MinProtoVer, MaxProtoVer uint16
189 SendFullItemMeta bool
190 }))(obj)).SupportedCompression).deserialize(r)
195 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CompressionModes", err))
200 SupportedCompression CompressionModes
201 MinProtoVer, MaxProtoVer uint16
205 SendFullItemMeta bool
206 }))(obj)).MinProtoVer
212 SupportedCompression CompressionModes
213 MinProtoVer, MaxProtoVer uint16
217 SendFullItemMeta bool
218 }))(obj)).MaxProtoVer
227 (local1) = make([]uint8, local2)
229 _, err := io.ReadFull(r, (local1)[:])
234 SupportedCompression CompressionModes
235 MinProtoVer, MaxProtoVer uint16
239 SendFullItemMeta bool
240 }))(obj)).PlayerName) = string(local1)
241 if err := pcall(func() {
245 SupportedCompression CompressionModes
246 MinProtoVer, MaxProtoVer uint16
250 SendFullItemMeta bool
251 }))(obj)).SendFullItemMeta
252 switch n := read8(r); n {
258 chk(fmt.Errorf("invalid bool: %d", n))
261 }); err != nil && err != io.EOF {
266 func (obj *ToSrvInit2) serialize(w io.Writer) {
267 if len(([]byte((*(*(struct {
269 }))(obj)).Lang))) > math.MaxUint16 {
273 x := uint16(len(([]byte((*(*(struct {
276 write16(w, uint16(x))
279 _, err := w.Write(([]byte((*(*(struct {
286 func (obj *ToSrvInit2) deserialize(r io.Reader) {
293 (local3) = make([]uint8, local4)
295 _, err := io.ReadFull(r, (local3)[:])
300 }))(obj)).Lang) = string(local3)
303 func (obj *ToSrvJoinModChan) serialize(w io.Writer) {
304 if len(([]byte((*(*(struct {
306 }))(obj)).Channel))) > math.MaxUint16 {
310 x := uint16(len(([]byte((*(*(struct {
312 }))(obj)).Channel))))
313 write16(w, uint16(x))
316 _, err := w.Write(([]byte((*(*(struct {
318 }))(obj)).Channel))[:])
323 func (obj *ToSrvJoinModChan) deserialize(r io.Reader) {
330 (local5) = make([]uint8, local6)
332 _, err := io.ReadFull(r, (local5)[:])
337 }))(obj)).Channel) = string(local5)
340 func (obj *ToSrvLeaveModChan) serialize(w io.Writer) {
341 if len(([]byte((*(*(struct {
343 }))(obj)).Channel))) > math.MaxUint16 {
347 x := uint16(len(([]byte((*(*(struct {
349 }))(obj)).Channel))))
350 write16(w, uint16(x))
353 _, err := w.Write(([]byte((*(*(struct {
355 }))(obj)).Channel))[:])
360 func (obj *ToSrvLeaveModChan) deserialize(r io.Reader) {
367 (local7) = make([]uint8, local8)
369 _, err := io.ReadFull(r, (local7)[:])
374 }))(obj)).Channel) = string(local7)
377 func (obj *ToSrvMsgModChan) serialize(w io.Writer) {
378 if len(([]byte((*(*(struct {
381 }))(obj)).Channel))) > math.MaxUint16 {
385 x := uint16(len(([]byte((*(*(struct {
388 }))(obj)).Channel))))
389 write16(w, uint16(x))
392 _, err := w.Write(([]byte((*(*(struct {
395 }))(obj)).Channel))[:])
398 if len(([]byte((*(*(struct {
401 }))(obj)).Msg))) > math.MaxUint16 {
405 x := uint16(len(([]byte((*(*(struct {
409 write16(w, uint16(x))
412 _, err := w.Write(([]byte((*(*(struct {
420 func (obj *ToSrvMsgModChan) deserialize(r io.Reader) {
427 (local9) = make([]uint8, local10)
429 _, err := io.ReadFull(r, (local9)[:])
435 }))(obj)).Channel) = string(local9)
442 (local11) = make([]uint8, local12)
444 _, err := io.ReadFull(r, (local11)[:])
450 }))(obj)).Msg) = string(local11)
453 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
454 if err := pcall(func() {
457 }))(obj)).Pos).serialize(w)
462 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerPos", err))
466 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
467 if err := pcall(func() {
470 }))(obj)).Pos).deserialize(r)
475 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerPos", err))
479 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
480 if len(((*(*(struct {
483 }))(obj)).Blks)) > math.MaxUint8 {
487 x := uint8(len(((*(*(struct {
493 for local13 := range (*(*(struct {
497 for local14 := range ((*(*(struct {
500 }))(obj)).Blks)[local13] {
505 }))(obj)).Blks)[local13])[local14]
506 write16(w, uint16(x))
512 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
521 }))(obj)).Blks) = make([][3]int16, local15)
522 for local16 := range (*(*(struct {
526 for local17 := range ((*(*(struct {
529 }))(obj)).Blks)[local16] {
531 p := &(((*(*(struct {
534 }))(obj)).Blks)[local16])[local17]
535 *p = int16(read16(r))
541 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
542 if len(((*(*(struct {
545 }))(obj)).Blks)) > math.MaxUint8 {
549 x := uint8(len(((*(*(struct {
555 for local18 := range (*(*(struct {
559 for local19 := range ((*(*(struct {
562 }))(obj)).Blks)[local18] {
567 }))(obj)).Blks)[local18])[local19]
568 write16(w, uint16(x))
574 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
583 }))(obj)).Blks) = make([][3]int16, local20)
584 for local21 := range (*(*(struct {
588 for local22 := range ((*(*(struct {
591 }))(obj)).Blks)[local21] {
593 p := &(((*(*(struct {
596 }))(obj)).Blks)[local21])[local22]
597 *p = int16(read16(r))
603 func (obj *ToSrvInvAction) serialize(w io.Writer) {
605 _, err := w.Write(([]byte((*(*(struct {
608 }))(obj)).Action))[:])
613 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
617 (local23), err = io.ReadAll(r)
623 }))(obj)).Action) = string(local23)
626 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
627 local24 := utf16.Encode([]rune((*(*(struct {
631 if len((local24)) > math.MaxUint16 {
635 x := uint16(len((local24)))
636 write16(w, uint16(x))
638 for local25 := range local24 {
640 x := (local24)[local25]
641 write16(w, uint16(x))
646 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
653 (local26) = make([]uint16, local27)
654 for local28 := range local26 {
656 p := &(local26)[local28]
663 }))(obj)).Msg = string(utf16.Decode(local26))
666 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
671 write16(w, uint16(x))
675 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
684 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
689 write16(w, uint16(x))
693 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
702 func (obj *ToSrvRespawn) serialize(w io.Writer) {
705 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
708 func (obj *ToSrvInteract) serialize(w io.Writer) {
709 if err := pcall(func() {
717 }))(obj)).Action).serialize(w)
722 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Interaction", err))
733 write16(w, uint16(x))
737 w := new(bytes.Buffer)
747 chk(writePointedThing(w, x))
752 if len((buf.Bytes())) > math.MaxUint32 {
756 x := uint32(len((buf.Bytes())))
757 write32(w, uint32(x))
760 _, err := w.Write((buf.Bytes())[:])
765 if err := pcall(func() {
773 }))(obj)).Pos).serialize(w)
778 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerPos", err))
782 func (obj *ToSrvInteract) deserialize(r io.Reader) {
783 if err := pcall(func() {
791 }))(obj)).Action).deserialize(r)
796 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Interaction", err))
815 r := &io.LimitedReader{R: r, N: int64(n)}
827 *p, err = readPointedThing(r)
832 chk(fmt.Errorf("%d bytes of trailing data", r.N))
835 if err := pcall(func() {
843 }))(obj)).Pos).deserialize(r)
848 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerPos", err))
852 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
853 if len(((*(*(struct {
855 }))(obj)).IDs)) > math.MaxUint16 {
859 x := uint16(len(((*(*(struct {
862 write16(w, uint16(x))
864 for local29 := range (*(*(struct {
867 if err := pcall(func() {
870 }))(obj)).IDs)[local29]).serialize(w)
875 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
880 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
888 }))(obj)).IDs) = make([]SoundID, local30)
889 for local31 := range (*(*(struct {
892 if err := pcall(func() {
895 }))(obj)).IDs)[local31]).deserialize(r)
900 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
905 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
906 for local32 := range (*(*(struct {
916 }))(obj)).Pos)[local32]
917 write16(w, uint16(x))
920 if len(([]byte((*(*(struct {
924 }))(obj)).Formname))) > math.MaxUint16 {
928 x := uint16(len(([]byte((*(*(struct {
932 }))(obj)).Formname))))
933 write16(w, uint16(x))
936 _, err := w.Write(([]byte((*(*(struct {
940 }))(obj)).Formname))[:])
943 if len(((*(*(struct {
947 }))(obj)).Fields)) > math.MaxUint16 {
951 x := uint16(len(((*(*(struct {
956 write16(w, uint16(x))
958 for local33 := range (*(*(struct {
963 if err := pcall(func() {
968 }))(obj)).Fields)[local33]).serialize(w)
973 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
978 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
979 for local34 := range (*(*(struct {
989 }))(obj)).Pos)[local34]
990 *p = int16(read16(r))
999 (local35) = make([]uint8, local36)
1001 _, err := io.ReadFull(r, (local35)[:])
1008 }))(obj)).Formname) = string(local35)
1018 }))(obj)).Fields) = make([]Field, local37)
1019 for local38 := range (*(*(struct {
1024 if err := pcall(func() {
1029 }))(obj)).Fields)[local38]).deserialize(r)
1034 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
1039 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1040 if len(([]byte((*(*(struct {
1043 }))(obj)).Formname))) > math.MaxUint16 {
1047 x := uint16(len(([]byte((*(*(struct {
1050 }))(obj)).Formname))))
1051 write16(w, uint16(x))
1054 _, err := w.Write(([]byte((*(*(struct {
1057 }))(obj)).Formname))[:])
1060 if len(((*(*(struct {
1063 }))(obj)).Fields)) > math.MaxUint16 {
1067 x := uint16(len(((*(*(struct {
1071 write16(w, uint16(x))
1073 for local39 := range (*(*(struct {
1077 if err := pcall(func() {
1081 }))(obj)).Fields)[local39]).serialize(w)
1086 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
1091 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1098 (local40) = make([]uint8, local41)
1100 _, err := io.ReadFull(r, (local40)[:])
1106 }))(obj)).Formname) = string(local40)
1115 }))(obj)).Fields) = make([]Field, local42)
1116 for local43 := range (*(*(struct {
1120 if err := pcall(func() {
1124 }))(obj)).Fields)[local43]).deserialize(r)
1129 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
1134 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1135 if len(((*(*(struct {
1137 }))(obj)).Filenames)) > math.MaxUint16 {
1141 x := uint16(len(((*(*(struct {
1143 }))(obj)).Filenames)))
1144 write16(w, uint16(x))
1146 for local44 := range (*(*(struct {
1148 }))(obj)).Filenames {
1149 if len(([]byte(((*(*(struct {
1151 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1155 x := uint16(len(([]byte(((*(*(struct {
1157 }))(obj)).Filenames)[local44]))))
1158 write16(w, uint16(x))
1161 _, err := w.Write(([]byte(((*(*(struct {
1163 }))(obj)).Filenames)[local44]))[:])
1169 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1177 }))(obj)).Filenames) = make([]string, local45)
1178 for local46 := range (*(*(struct {
1180 }))(obj)).Filenames {
1187 (local47) = make([]uint8, local48)
1189 _, err := io.ReadFull(r, (local47)[:])
1194 }))(obj)).Filenames)[local46]) = string(local47)
1198 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1201 // Version information.
1202 Major, Minor, Patch uint8
1211 // Version information.
1212 Major, Minor, Patch uint8
1221 // Version information.
1222 Major, Minor, Patch uint8
1231 // Version information.
1232 Major, Minor, Patch uint8
1239 if len(([]byte((*(*(struct {
1240 // Version information.
1241 Major, Minor, Patch uint8
1245 }))(obj)).Version))) > math.MaxUint16 {
1249 x := uint16(len(([]byte((*(*(struct {
1250 // Version information.
1251 Major, Minor, Patch uint8
1255 }))(obj)).Version))))
1256 write16(w, uint16(x))
1259 _, err := w.Write(([]byte((*(*(struct {
1260 // Version information.
1261 Major, Minor, Patch uint8
1265 }))(obj)).Version))[:])
1270 // Version information.
1271 Major, Minor, Patch uint8
1276 write16(w, uint16(x))
1280 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1283 // Version information.
1284 Major, Minor, Patch uint8
1293 // Version information.
1294 Major, Minor, Patch uint8
1303 // Version information.
1304 Major, Minor, Patch uint8
1313 // Version information.
1314 Major, Minor, Patch uint8
1327 (local49) = make([]uint8, local50)
1329 _, err := io.ReadFull(r, (local49)[:])
1333 // Version information.
1334 Major, Minor, Patch uint8
1338 }))(obj)).Version) = string(local49)
1341 // Version information.
1342 Major, Minor, Patch uint8
1351 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1352 if len(((*(*(struct {
1356 }))(obj)).Salt)) > math.MaxUint16 {
1360 x := uint16(len(((*(*(struct {
1365 write16(w, uint16(x))
1368 _, err := w.Write(((*(*(struct {
1375 if len(((*(*(struct {
1379 }))(obj)).Verifier)) > math.MaxUint16 {
1383 x := uint16(len(((*(*(struct {
1387 }))(obj)).Verifier)))
1388 write16(w, uint16(x))
1391 _, err := w.Write(((*(*(struct {
1395 }))(obj)).Verifier)[:])
1403 }))(obj)).EmptyPasswd
1412 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1422 }))(obj)).Salt) = make([]byte, local51)
1424 _, err := io.ReadFull(r, ((*(*(struct {
1440 }))(obj)).Verifier) = make([]byte, local52)
1442 _, err := io.ReadFull(r, ((*(*(struct {
1446 }))(obj)).Verifier)[:])
1454 }))(obj)).EmptyPasswd
1455 switch n := read8(r); n {
1461 chk(fmt.Errorf("invalid bool: %d", n))
1466 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1467 if len(((*(*(struct {
1470 }))(obj)).A)) > math.MaxUint16 {
1474 x := uint16(len(((*(*(struct {
1478 write16(w, uint16(x))
1481 _, err := w.Write(((*(*(struct {
1500 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1509 }))(obj)).A) = make([]byte, local53)
1511 _, err := io.ReadFull(r, ((*(*(struct {
1522 switch n := read8(r); n {
1528 chk(fmt.Errorf("invalid bool: %d", n))
1533 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1534 if len(((*(*(struct {
1536 }))(obj)).M)) > math.MaxUint16 {
1540 x := uint16(len(((*(*(struct {
1543 write16(w, uint16(x))
1546 _, err := w.Write(((*(*(struct {
1553 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1561 }))(obj)).M) = make([]byte, local54)
1563 _, err := io.ReadFull(r, ((*(*(struct {
1570 func (obj *ToCltHello) serialize(w io.Writer) {
1574 Compression CompressionModes
1578 }))(obj)).SerializeVer
1581 if err := pcall(func() {
1584 Compression CompressionModes
1588 }))(obj)).Compression).serialize(w)
1593 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CompressionModes", err))
1598 Compression CompressionModes
1603 write16(w, uint16(x))
1605 if err := pcall(func() {
1608 Compression CompressionModes
1612 }))(obj)).AuthMethods).serialize(w)
1617 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1619 if len(([]byte((*(*(struct {
1621 Compression CompressionModes
1625 }))(obj)).Username))) > math.MaxUint16 {
1629 x := uint16(len(([]byte((*(*(struct {
1631 Compression CompressionModes
1635 }))(obj)).Username))))
1636 write16(w, uint16(x))
1639 _, err := w.Write(([]byte((*(*(struct {
1641 Compression CompressionModes
1645 }))(obj)).Username))[:])
1650 func (obj *ToCltHello) deserialize(r io.Reader) {
1654 Compression CompressionModes
1658 }))(obj)).SerializeVer
1661 if err := pcall(func() {
1664 Compression CompressionModes
1668 }))(obj)).Compression).deserialize(r)
1673 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CompressionModes", err))
1678 Compression CompressionModes
1685 if err := pcall(func() {
1688 Compression CompressionModes
1692 }))(obj)).AuthMethods).deserialize(r)
1697 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1705 (local55) = make([]uint8, local56)
1707 _, err := io.ReadFull(r, (local55)[:])
1712 Compression CompressionModes
1716 }))(obj)).Username) = string(local55)
1719 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1720 if err := pcall(func() {
1722 // The client does the equivalent of
1723 // PlayerPos[1] -= 5
1724 // before using PlayerPos.
1728 SendInterval float32
1729 SudoAuthMethods AuthMethods
1730 }))(obj)).PlayerPos).serialize(w)
1735 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
1739 // The client does the equivalent of
1740 // PlayerPos[1] -= 5
1741 // before using PlayerPos.
1745 SendInterval float32
1746 SudoAuthMethods AuthMethods
1748 write64(w, uint64(x))
1752 // The client does the equivalent of
1753 // PlayerPos[1] -= 5
1754 // before using PlayerPos.
1758 SendInterval float32
1759 SudoAuthMethods AuthMethods
1760 }))(obj)).SendInterval
1761 write32(w, math.Float32bits(x))
1763 if err := pcall(func() {
1765 // The client does the equivalent of
1766 // PlayerPos[1] -= 5
1767 // before using PlayerPos.
1771 SendInterval float32
1772 SudoAuthMethods AuthMethods
1773 }))(obj)).SudoAuthMethods).serialize(w)
1778 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1782 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1783 if err := pcall(func() {
1785 // The client does the equivalent of
1786 // PlayerPos[1] -= 5
1787 // before using PlayerPos.
1791 SendInterval float32
1792 SudoAuthMethods AuthMethods
1793 }))(obj)).PlayerPos).deserialize(r)
1798 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
1802 // The client does the equivalent of
1803 // PlayerPos[1] -= 5
1804 // before using PlayerPos.
1808 SendInterval float32
1809 SudoAuthMethods AuthMethods
1815 // The client does the equivalent of
1816 // PlayerPos[1] -= 5
1817 // before using PlayerPos.
1821 SendInterval float32
1822 SudoAuthMethods AuthMethods
1823 }))(obj)).SendInterval
1824 *p = math.Float32frombits(read32(r))
1826 if err := pcall(func() {
1828 // The client does the equivalent of
1829 // PlayerPos[1] -= 5
1830 // before using PlayerPos.
1834 SendInterval float32
1835 SudoAuthMethods AuthMethods
1836 }))(obj)).SudoAuthMethods).deserialize(r)
1841 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1845 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1846 if err := pcall(func() {
1848 SudoAuthMethods AuthMethods
1849 }))(obj)).SudoAuthMethods).serialize(w)
1854 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1857 local57 := [15]byte{}
1859 _, err := w.Write((local57)[:])
1865 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1866 if err := pcall(func() {
1868 SudoAuthMethods AuthMethods
1869 }))(obj)).SudoAuthMethods).deserialize(r)
1874 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AuthMethods", err))
1877 var local58 [15]byte
1878 local59 := [15]byte{}
1880 _, err := io.ReadFull(r, (local58)[:])
1883 if local58 != local59 {
1884 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1889 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1892 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1895 func (obj *ToCltKick) serialize(w io.Writer) {
1896 if err := pcall(func() {
1900 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1903 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1905 }))(obj)).Reason).serialize(w)
1910 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.KickReason", err))
1915 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1918 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1920 }))(obj)).Reason < maxKickReason) {
1921 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1923 if dr := (*(*(struct {
1926 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1929 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1931 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1932 if len(([]byte((*(*(struct {
1935 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1938 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1940 }))(obj)).Custom))) > math.MaxUint16 {
1944 x := uint16(len(([]byte((*(*(struct {
1947 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1950 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1952 }))(obj)).Custom))))
1953 write16(w, uint16(x))
1956 _, err := w.Write(([]byte((*(*(struct {
1959 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1962 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1964 }))(obj)).Custom))[:])
1968 if dr := (*(*(struct {
1971 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1974 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1976 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1981 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1984 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1996 func (obj *ToCltKick) deserialize(r io.Reader) {
1997 if err := pcall(func() {
2001 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2004 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2006 }))(obj)).Reason).deserialize(r)
2011 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.KickReason", err))
2016 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2019 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2021 }))(obj)).Reason < maxKickReason) {
2022 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2024 if dr := (*(*(struct {
2027 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2030 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2032 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2039 (local60) = make([]uint8, local61)
2041 _, err := io.ReadFull(r, (local60)[:])
2047 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2050 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2052 }))(obj)).Custom) = string(local60)
2054 if dr := (*(*(struct {
2057 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2060 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2062 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2067 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2070 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2073 switch n := read8(r); n {
2079 chk(fmt.Errorf("invalid bool: %d", n))
2085 func (obj *ToCltBlkData) serialize(w io.Writer) {
2086 for local62 := range (*(*(struct {
2094 }))(obj)).Blkpos)[local62]
2095 write16(w, uint16(x))
2098 if err := pcall(func() {
2102 }))(obj)).Blk).serialize(w)
2107 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2111 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2112 for local63 := range (*(*(struct {
2117 p := &((*(*(struct {
2120 }))(obj)).Blkpos)[local63]
2121 *p = int16(read16(r))
2124 if err := pcall(func() {
2128 }))(obj)).Blk).deserialize(r)
2133 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2137 func (obj *ToCltAddNode) serialize(w io.Writer) {
2138 for local64 := range (*(*(struct {
2148 }))(obj)).Pos)[local64]
2149 write16(w, uint16(x))
2152 if err := pcall(func() {
2157 }))(obj)).Node).serialize(w)
2162 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2178 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2179 for local65 := range (*(*(struct {
2185 p := &((*(*(struct {
2189 }))(obj)).Pos)[local65]
2190 *p = int16(read16(r))
2193 if err := pcall(func() {
2198 }))(obj)).Node).deserialize(r)
2203 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2211 switch n := read8(r); n {
2217 chk(fmt.Errorf("invalid bool: %d", n))
2222 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2223 for local66 := range (*(*(struct {
2229 }))(obj)).Pos)[local66]
2230 write16(w, uint16(x))
2235 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2236 for local67 := range (*(*(struct {
2240 p := &((*(*(struct {
2242 }))(obj)).Pos)[local67]
2243 *p = int16(read16(r))
2248 func (obj *ToCltInv) serialize(w io.Writer) {
2250 _, err := w.Write(([]byte((*(*(struct {
2258 func (obj *ToCltInv) deserialize(r io.Reader) {
2262 (local68), err = io.ReadAll(r)
2268 }))(obj)).Inv) = string(local68)
2271 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2274 Time uint16 // %24000
2275 Speed float32 // Speed times faster than real time
2277 write16(w, uint16(x))
2281 Time uint16 // %24000
2282 Speed float32 // Speed times faster than real time
2284 write32(w, math.Float32bits(x))
2288 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2291 Time uint16 // %24000
2292 Speed float32 // Speed times faster than real time
2298 Time uint16 // %24000
2299 Speed float32 // Speed times faster than real time
2301 *p = math.Float32frombits(read32(r))
2305 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2306 if err := pcall(func() {
2308 Flags CSMRestrictionFlags
2310 // MapRange is the maximum distance from the player CSMs can read the map
2311 // if Flags&LimitMapRange != 0.
2313 }))(obj)).Flags).serialize(w)
2318 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2322 Flags CSMRestrictionFlags
2324 // MapRange is the maximum distance from the player CSMs can read the map
2325 // if Flags&LimitMapRange != 0.
2328 write32(w, uint32(x))
2332 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2333 if err := pcall(func() {
2335 Flags CSMRestrictionFlags
2337 // MapRange is the maximum distance from the player CSMs can read the map
2338 // if Flags&LimitMapRange != 0.
2340 }))(obj)).Flags).deserialize(r)
2345 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2349 Flags CSMRestrictionFlags
2351 // MapRange is the maximum distance from the player CSMs can read the map
2352 // if Flags&LimitMapRange != 0.
2359 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2360 if err := pcall(func() {
2363 }))(obj)).Vel).serialize(w)
2368 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2372 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2373 if err := pcall(func() {
2376 }))(obj)).Vel).deserialize(r)
2381 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2385 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2386 if len(([]byte((*(*(struct {
2389 CallbackToken uint32
2391 }))(obj)).RawHash))) > math.MaxUint16 {
2395 x := uint16(len(([]byte((*(*(struct {
2398 CallbackToken uint32
2400 }))(obj)).RawHash))))
2401 write16(w, uint16(x))
2404 _, err := w.Write(([]byte((*(*(struct {
2407 CallbackToken uint32
2409 }))(obj)).RawHash))[:])
2412 if len(([]byte((*(*(struct {
2415 CallbackToken uint32
2417 }))(obj)).Filename))) > math.MaxUint16 {
2421 x := uint16(len(([]byte((*(*(struct {
2424 CallbackToken uint32
2426 }))(obj)).Filename))))
2427 write16(w, uint16(x))
2430 _, err := w.Write(([]byte((*(*(struct {
2433 CallbackToken uint32
2435 }))(obj)).Filename))[:])
2442 CallbackToken uint32
2444 }))(obj)).CallbackToken
2445 write32(w, uint32(x))
2451 CallbackToken uint32
2453 }))(obj)).ShouldCache
2462 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2469 (local69) = make([]uint8, local70)
2471 _, err := io.ReadFull(r, (local69)[:])
2477 CallbackToken uint32
2479 }))(obj)).RawHash) = string(local69)
2486 (local71) = make([]uint8, local72)
2488 _, err := io.ReadFull(r, (local71)[:])
2494 CallbackToken uint32
2496 }))(obj)).Filename) = string(local71)
2501 CallbackToken uint32
2503 }))(obj)).CallbackToken
2510 CallbackToken uint32
2512 }))(obj)).ShouldCache
2513 switch n := read8(r); n {
2519 chk(fmt.Errorf("invalid bool: %d", n))
2524 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2532 if err := pcall(func() {
2539 Timestamp int64 // Unix time.
2540 }))(obj)).Type).serialize(w)
2545 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2547 local74 := utf16.Encode([]rune((*(*(struct {
2553 Timestamp int64 // Unix time.
2555 if len((local74)) > math.MaxUint16 {
2559 x := uint16(len((local74)))
2560 write16(w, uint16(x))
2562 for local75 := range local74 {
2564 x := (local74)[local75]
2565 write16(w, uint16(x))
2568 local76 := utf16.Encode([]rune((*(*(struct {
2574 Timestamp int64 // Unix time.
2576 if len((local76)) > math.MaxUint16 {
2580 x := uint16(len((local76)))
2581 write16(w, uint16(x))
2583 for local77 := range local76 {
2585 x := (local76)[local77]
2586 write16(w, uint16(x))
2596 Timestamp int64 // Unix time.
2598 write64(w, uint64(x))
2602 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2610 if local78 != local79 {
2611 chk(fmt.Errorf("const %v: %v", "uint8(1)", local78))
2614 if err := pcall(func() {
2621 Timestamp int64 // Unix time.
2622 }))(obj)).Type).deserialize(r)
2627 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2629 var local80 []uint16
2635 (local80) = make([]uint16, local81)
2636 for local82 := range local80 {
2638 p := &(local80)[local82]
2648 Timestamp int64 // Unix time.
2649 }))(obj)).Sender = string(utf16.Decode(local80))
2650 var local83 []uint16
2656 (local83) = make([]uint16, local84)
2657 for local85 := range local83 {
2659 p := &(local83)[local85]
2669 Timestamp int64 // Unix time.
2670 }))(obj)).Text = string(utf16.Decode(local83))
2678 Timestamp int64 // Unix time.
2680 *p = int64(read64(r))
2684 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2685 if len(((*(*(struct {
2688 }))(obj)).Remove)) > math.MaxUint16 {
2692 x := uint16(len(((*(*(struct {
2696 write16(w, uint16(x))
2698 for local86 := range (*(*(struct {
2702 if err := pcall(func() {
2706 }))(obj)).Remove)[local86]).serialize(w)
2711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2714 if len(((*(*(struct {
2717 }))(obj)).Add)) > math.MaxUint16 {
2721 x := uint16(len(((*(*(struct {
2725 write16(w, uint16(x))
2727 for local87 := range (*(*(struct {
2731 if err := pcall(func() {
2735 }))(obj)).Add)[local87]).serialize(w)
2740 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2745 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2754 }))(obj)).Remove) = make([]AOID, local88)
2755 for local89 := range (*(*(struct {
2759 if err := pcall(func() {
2763 }))(obj)).Remove)[local89]).deserialize(r)
2768 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2779 }))(obj)).Add) = make([]AOAdd, local90)
2780 for local91 := range (*(*(struct {
2784 if err := pcall(func() {
2788 }))(obj)).Add)[local91]).deserialize(r)
2793 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2798 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2799 for local92 := range (*(*(struct {
2803 if err := pcall(func() {
2807 }))(obj)).Msgs)[local92]).serialize(w)
2812 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2817 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2820 err := pcall(func() {
2821 if err := pcall(func() {
2822 (local93).deserialize(r)
2827 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2836 }))(obj)).Msgs) = append(((*(*(struct {
2839 }))(obj)).Msgs), local93)
2844 func (obj *ToCltHP) serialize(w io.Writer) {
2849 write16(w, uint16(x))
2853 func (obj *ToCltHP) deserialize(r io.Reader) {
2862 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2863 if err := pcall(func() {
2867 }))(obj)).Pos).serialize(w)
2872 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2879 write32(w, math.Float32bits(x))
2886 write32(w, math.Float32bits(x))
2890 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2891 if err := pcall(func() {
2895 }))(obj)).Pos).deserialize(r)
2900 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2907 *p = math.Float32frombits(read32(r))
2914 *p = math.Float32frombits(read32(r))
2918 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
2919 local94 := utf16.Encode([]rune((*(*(struct {
2923 if len((local94)) > math.MaxUint16 {
2927 x := uint16(len((local94)))
2928 write16(w, uint16(x))
2930 for local95 := range local94 {
2932 x := (local94)[local95]
2933 write16(w, uint16(x))
2938 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
2939 var local96 []uint16
2945 (local96) = make([]uint16, local97)
2946 for local98 := range local96 {
2948 p := &(local96)[local98]
2955 }))(obj)).Reason = string(utf16.Decode(local96))
2958 func (obj *ToCltFOV) serialize(w io.Writer) {
2963 TransitionTime float32
2965 write32(w, math.Float32bits(x))
2971 TransitionTime float32
2972 }))(obj)).Multiplier
2983 TransitionTime float32
2984 }))(obj)).TransitionTime
2985 write32(w, math.Float32bits(x))
2989 func (obj *ToCltFOV) deserialize(r io.Reader) {
2994 TransitionTime float32
2996 *p = math.Float32frombits(read32(r))
3002 TransitionTime float32
3003 }))(obj)).Multiplier
3004 switch n := read8(r); n {
3010 chk(fmt.Errorf("invalid bool: %d", n))
3017 TransitionTime float32
3018 }))(obj)).TransitionTime
3019 *p = math.Float32frombits(read32(r))
3023 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3035 if err := pcall(func() {
3039 }))(obj)).PointAt).serialize(w)
3044 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3048 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3054 switch n := read8(r); n {
3060 chk(fmt.Errorf("invalid bool: %d", n))
3063 if err := pcall(func() {
3067 }))(obj)).PointAt).deserialize(r)
3072 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3076 func (obj *ToCltMedia) serialize(w io.Writer) {
3079 // N is the total number of ToCltMedia packets.
3080 // I is the index of this packet.
3091 write16(w, uint16(x))
3095 // N is the total number of ToCltMedia packets.
3096 // I is the index of this packet.
3107 write16(w, uint16(x))
3109 if len(((*(*(struct {
3110 // N is the total number of ToCltMedia packets.
3111 // I is the index of this packet.
3121 }))(obj)).Files)) > math.MaxUint32 {
3125 x := uint32(len(((*(*(struct {
3126 // N is the total number of ToCltMedia packets.
3127 // I is the index of this packet.
3138 write32(w, uint32(x))
3140 for local99 := range (*(*(struct {
3141 // N is the total number of ToCltMedia packets.
3142 // I is the index of this packet.
3153 if len(([]byte((((*(*(struct {
3154 // N is the total number of ToCltMedia packets.
3155 // I is the index of this packet.
3165 }))(obj)).Files)[local99]).Name))) > math.MaxUint16 {
3169 x := uint16(len(([]byte((((*(*(struct {
3170 // N is the total number of ToCltMedia packets.
3171 // I is the index of this packet.
3181 }))(obj)).Files)[local99]).Name))))
3182 write16(w, uint16(x))
3185 _, err := w.Write(([]byte((((*(*(struct {
3186 // N is the total number of ToCltMedia packets.
3187 // I is the index of this packet.
3197 }))(obj)).Files)[local99]).Name))[:])
3200 if len(((((*(*(struct {
3201 // N is the total number of ToCltMedia packets.
3202 // I is the index of this packet.
3212 }))(obj)).Files)[local99]).Data)) > math.MaxUint32 {
3216 x := uint32(len(((((*(*(struct {
3217 // N is the total number of ToCltMedia packets.
3218 // I is the index of this packet.
3228 }))(obj)).Files)[local99]).Data)))
3229 write32(w, uint32(x))
3232 _, err := w.Write(((((*(*(struct {
3233 // N is the total number of ToCltMedia packets.
3234 // I is the index of this packet.
3244 }))(obj)).Files)[local99]).Data)[:])
3250 func (obj *ToCltMedia) deserialize(r io.Reader) {
3253 // N is the total number of ToCltMedia packets.
3254 // I is the index of this packet.
3269 // N is the total number of ToCltMedia packets.
3270 // I is the index of this packet.
3289 // N is the total number of ToCltMedia packets.
3290 // I is the index of this packet.
3300 }))(obj)).Files) = make([]struct {
3304 for local101 := range (*(*(struct {
3305 // N is the total number of ToCltMedia packets.
3306 // I is the index of this packet.
3317 var local102 []uint8
3323 (local102) = make([]uint8, local103)
3325 _, err := io.ReadFull(r, (local102)[:])
3329 // N is the total number of ToCltMedia packets.
3330 // I is the index of this packet.
3340 }))(obj)).Files)[local101]).Name) = string(local102)
3347 // N is the total number of ToCltMedia packets.
3348 // I is the index of this packet.
3358 }))(obj)).Files)[local101]).Data) = make([]byte, local104)
3360 _, err := io.ReadFull(r, ((((*(*(struct {
3361 // N is the total number of ToCltMedia packets.
3362 // I is the index of this packet.
3372 }))(obj)).Files)[local101]).Data)[:])
3378 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3381 w := new(bytes.Buffer)
3383 w := zlib.NewWriter(w)
3385 local105 := uint8(1)
3394 // See (de)serialize.fmt.
3397 { // For ToCltNodeDefs.Defs.
3398 if len(x) > math.MaxUint16 {
3401 write16(w, uint16(len(x)))
3406 if b.Len() > math.MaxUint32 {
3409 write32(w, uint32(b.Len()))
3410 _, err := b.WriteTo(w)
3419 if len((buf.Bytes())) > math.MaxUint32 {
3423 x := uint32(len((buf.Bytes())))
3424 write32(w, uint32(x))
3427 _, err := w.Write((buf.Bytes())[:])
3434 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3441 r := &io.LimitedReader{R: r, N: int64(n)}
3443 r, err := zlib.NewReader(byteReader{r})
3447 local107 := uint8(1)
3452 if local106 != local107 {
3453 chk(fmt.Errorf("const %v: %v", "uint8(1)", local106))
3459 // See (de)serialize.fmt.
3462 { // For ToCltNodeDefs.Defs.
3463 *p = make([]NodeDef, read16(r))
3464 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3466 (*p)[i].deserialize(r)
3469 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3476 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3481 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3482 if len(((*(*(struct {
3488 }))(obj)).Files)) > math.MaxUint16 {
3492 x := uint16(len(((*(*(struct {
3499 write16(w, uint16(x))
3501 for local108 := range (*(*(struct {
3508 if len(([]byte((((*(*(struct {
3514 }))(obj)).Files)[local108]).Name))) > math.MaxUint16 {
3518 x := uint16(len(([]byte((((*(*(struct {
3524 }))(obj)).Files)[local108]).Name))))
3525 write16(w, uint16(x))
3528 _, err := w.Write(([]byte((((*(*(struct {
3534 }))(obj)).Files)[local108]).Name))[:])
3537 if len(([]byte((((*(*(struct {
3543 }))(obj)).Files)[local108]).Base64SHA1))) > math.MaxUint16 {
3547 x := uint16(len(([]byte((((*(*(struct {
3553 }))(obj)).Files)[local108]).Base64SHA1))))
3554 write16(w, uint16(x))
3557 _, err := w.Write(([]byte((((*(*(struct {
3563 }))(obj)).Files)[local108]).Base64SHA1))[:])
3567 if len(([]byte((*(*(struct {
3573 }))(obj)).URL))) > math.MaxUint16 {
3577 x := uint16(len(([]byte((*(*(struct {
3584 write16(w, uint16(x))
3587 _, err := w.Write(([]byte((*(*(struct {
3598 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3610 }))(obj)).Files) = make([]struct {
3614 for local110 := range (*(*(struct {
3621 var local111 []uint8
3627 (local111) = make([]uint8, local112)
3629 _, err := io.ReadFull(r, (local111)[:])
3638 }))(obj)).Files)[local110]).Name) = string(local111)
3639 var local113 []uint8
3645 (local113) = make([]uint8, local114)
3647 _, err := io.ReadFull(r, (local113)[:])
3656 }))(obj)).Files)[local110]).Base64SHA1) = string(local113)
3658 var local115 []uint8
3664 (local115) = make([]uint8, local116)
3666 _, err := io.ReadFull(r, (local115)[:])
3675 }))(obj)).URL) = string(local115)
3678 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3681 w := new(bytes.Buffer)
3683 w := zlib.NewWriter(w)
3685 local117 := uint8(0)
3691 if len(((*(*(struct {
3693 Aliases []struct{ Alias, Orig string }
3694 }))(obj)).Defs)) > math.MaxUint16 {
3698 x := uint16(len(((*(*(struct {
3700 Aliases []struct{ Alias, Orig string }
3702 write16(w, uint16(x))
3704 for local118 := range (*(*(struct {
3706 Aliases []struct{ Alias, Orig string }
3708 if err := pcall(func() {
3711 Aliases []struct{ Alias, Orig string }
3712 }))(obj)).Defs)[local118]).serialize(w)
3717 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3720 if len(((*(*(struct {
3722 Aliases []struct{ Alias, Orig string }
3723 }))(obj)).Aliases)) > math.MaxUint16 {
3727 x := uint16(len(((*(*(struct {
3729 Aliases []struct{ Alias, Orig string }
3730 }))(obj)).Aliases)))
3731 write16(w, uint16(x))
3733 for local119 := range (*(*(struct {
3735 Aliases []struct{ Alias, Orig string }
3737 if len(([]byte((((*(*(struct {
3739 Aliases []struct{ Alias, Orig string }
3740 }))(obj)).Aliases)[local119]).Alias))) > math.MaxUint16 {
3744 x := uint16(len(([]byte((((*(*(struct {
3746 Aliases []struct{ Alias, Orig string }
3747 }))(obj)).Aliases)[local119]).Alias))))
3748 write16(w, uint16(x))
3751 _, err := w.Write(([]byte((((*(*(struct {
3753 Aliases []struct{ Alias, Orig string }
3754 }))(obj)).Aliases)[local119]).Alias))[:])
3757 if len(([]byte((((*(*(struct {
3759 Aliases []struct{ Alias, Orig string }
3760 }))(obj)).Aliases)[local119]).Orig))) > math.MaxUint16 {
3764 x := uint16(len(([]byte((((*(*(struct {
3766 Aliases []struct{ Alias, Orig string }
3767 }))(obj)).Aliases)[local119]).Orig))))
3768 write16(w, uint16(x))
3771 _, err := w.Write(([]byte((((*(*(struct {
3773 Aliases []struct{ Alias, Orig string }
3774 }))(obj)).Aliases)[local119]).Orig))[:])
3783 if len((buf.Bytes())) > math.MaxUint32 {
3787 x := uint32(len((buf.Bytes())))
3788 write32(w, uint32(x))
3791 _, err := w.Write((buf.Bytes())[:])
3798 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3805 r := &io.LimitedReader{R: r, N: int64(n)}
3807 r, err := zlib.NewReader(byteReader{r})
3811 local121 := uint8(0)
3816 if local120 != local121 {
3817 chk(fmt.Errorf("const %v: %v", "uint8(0)", local120))
3827 Aliases []struct{ Alias, Orig string }
3828 }))(obj)).Defs) = make([]ItemDef, local122)
3829 for local123 := range (*(*(struct {
3831 Aliases []struct{ Alias, Orig string }
3833 if err := pcall(func() {
3836 Aliases []struct{ Alias, Orig string }
3837 }))(obj)).Defs)[local123]).deserialize(r)
3842 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3852 Aliases []struct{ Alias, Orig string }
3853 }))(obj)).Aliases) = make([]struct {
3857 for local125 := range (*(*(struct {
3859 Aliases []struct{ Alias, Orig string }
3861 var local126 []uint8
3867 (local126) = make([]uint8, local127)
3869 _, err := io.ReadFull(r, (local126)[:])
3874 Aliases []struct{ Alias, Orig string }
3875 }))(obj)).Aliases)[local125]).Alias) = string(local126)
3876 var local128 []uint8
3882 (local128) = make([]uint8, local129)
3884 _, err := io.ReadFull(r, (local128)[:])
3889 Aliases []struct{ Alias, Orig string }
3890 }))(obj)).Aliases)[local125]).Orig) = string(local128)
3895 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3900 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3901 if err := pcall(func() {
3906 SrcType SoundSrcType
3913 }))(obj)).ID).serialize(w)
3918 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
3920 if len(([]byte((*(*(struct {
3924 SrcType SoundSrcType
3931 }))(obj)).Name))) > math.MaxUint16 {
3935 x := uint16(len(([]byte((*(*(struct {
3939 SrcType SoundSrcType
3947 write16(w, uint16(x))
3950 _, err := w.Write(([]byte((*(*(struct {
3954 SrcType SoundSrcType
3961 }))(obj)).Name))[:])
3969 SrcType SoundSrcType
3977 write32(w, math.Float32bits(x))
3979 if err := pcall(func() {
3984 SrcType SoundSrcType
3991 }))(obj)).SrcType).serialize(w)
3996 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
3998 if err := pcall(func() {
4003 SrcType SoundSrcType
4010 }))(obj)).Pos).serialize(w)
4015 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4017 if err := pcall(func() {
4022 SrcType SoundSrcType
4029 }))(obj)).SrcAOID).serialize(w)
4034 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4041 SrcType SoundSrcType
4060 SrcType SoundSrcType
4068 write32(w, math.Float32bits(x))
4075 SrcType SoundSrcType
4083 write32(w, math.Float32bits(x))
4090 SrcType SoundSrcType
4106 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4107 if err := pcall(func() {
4112 SrcType SoundSrcType
4119 }))(obj)).ID).deserialize(r)
4124 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4126 var local130 []uint8
4132 (local130) = make([]uint8, local131)
4134 _, err := io.ReadFull(r, (local130)[:])
4141 SrcType SoundSrcType
4148 }))(obj)).Name) = string(local130)
4154 SrcType SoundSrcType
4162 *p = math.Float32frombits(read32(r))
4164 if err := pcall(func() {
4169 SrcType SoundSrcType
4176 }))(obj)).SrcType).deserialize(r)
4181 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
4183 if err := pcall(func() {
4188 SrcType SoundSrcType
4195 }))(obj)).Pos).deserialize(r)
4200 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4202 if err := pcall(func() {
4207 SrcType SoundSrcType
4214 }))(obj)).SrcAOID).deserialize(r)
4219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4226 SrcType SoundSrcType
4234 switch n := read8(r); n {
4240 chk(fmt.Errorf("invalid bool: %d", n))
4248 SrcType SoundSrcType
4256 *p = math.Float32frombits(read32(r))
4263 SrcType SoundSrcType
4271 *p = math.Float32frombits(read32(r))
4278 SrcType SoundSrcType
4286 switch n := read8(r); n {
4292 chk(fmt.Errorf("invalid bool: %d", n))
4297 func (obj *ToCltStopSound) serialize(w io.Writer) {
4298 if err := pcall(func() {
4301 }))(obj)).ID).serialize(w)
4306 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4310 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4311 if err := pcall(func() {
4314 }))(obj)).ID).deserialize(r)
4319 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4323 func (obj *ToCltPrivs) serialize(w io.Writer) {
4324 if len(((*(*(struct {
4326 }))(obj)).Privs)) > math.MaxUint16 {
4330 x := uint16(len(((*(*(struct {
4333 write16(w, uint16(x))
4335 for local132 := range (*(*(struct {
4338 if len(([]byte(((*(*(struct {
4340 }))(obj)).Privs)[local132]))) > math.MaxUint16 {
4344 x := uint16(len(([]byte(((*(*(struct {
4346 }))(obj)).Privs)[local132]))))
4347 write16(w, uint16(x))
4350 _, err := w.Write(([]byte(((*(*(struct {
4352 }))(obj)).Privs)[local132]))[:])
4358 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4366 }))(obj)).Privs) = make([]string, local133)
4367 for local134 := range (*(*(struct {
4370 var local135 []uint8
4376 (local135) = make([]uint8, local136)
4378 _, err := io.ReadFull(r, (local135)[:])
4383 }))(obj)).Privs)[local134]) = string(local135)
4387 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4388 if len(([]byte((*(*(struct {
4391 }))(obj)).Formspec))) > math.MaxUint32 {
4395 x := uint32(len(([]byte((*(*(struct {
4398 }))(obj)).Formspec))))
4399 write32(w, uint32(x))
4402 _, err := w.Write(([]byte((*(*(struct {
4405 }))(obj)).Formspec))[:])
4410 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4411 var local137 []uint8
4417 (local137) = make([]uint8, local138)
4419 _, err := io.ReadFull(r, (local137)[:])
4425 }))(obj)).Formspec) = string(local137)
4428 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4429 if len(([]byte((*(*(struct {
4432 Len uint16 // deprecated
4436 }))(obj)).Name))) > math.MaxUint16 {
4440 x := uint16(len(([]byte((*(*(struct {
4443 Len uint16 // deprecated
4448 write16(w, uint16(x))
4451 _, err := w.Write(([]byte((*(*(struct {
4454 Len uint16 // deprecated
4458 }))(obj)).Name))[:])
4465 Len uint16 // deprecated
4480 Len uint16 // deprecated
4485 write16(w, uint16(x))
4488 _, err := w.Write(([]byte((*(*(struct {
4491 Len uint16 // deprecated
4500 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4501 var local139 []uint8
4507 (local139) = make([]uint8, local140)
4509 _, err := io.ReadFull(r, (local139)[:])
4515 Len uint16 // deprecated
4519 }))(obj)).Name) = string(local139)
4524 Len uint16 // deprecated
4529 switch n := read8(r); n {
4535 chk(fmt.Errorf("invalid bool: %d", n))
4542 Len uint16 // deprecated
4549 var local141 []uint8
4552 (local141), err = io.ReadAll(r)
4558 Len uint16 // deprecated
4562 }))(obj)).Inv) = string(local141)
4565 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4566 if len(([]byte((*(*(struct {
4571 }))(obj)).Formspec))) > math.MaxUint32 {
4575 x := uint32(len(([]byte((*(*(struct {
4580 }))(obj)).Formspec))))
4581 write32(w, uint32(x))
4584 _, err := w.Write(([]byte((*(*(struct {
4589 }))(obj)).Formspec))[:])
4592 if len(([]byte((*(*(struct {
4597 }))(obj)).Formname))) > math.MaxUint16 {
4601 x := uint16(len(([]byte((*(*(struct {
4606 }))(obj)).Formname))))
4607 write16(w, uint16(x))
4610 _, err := w.Write(([]byte((*(*(struct {
4615 }))(obj)).Formname))[:])
4620 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4621 var local142 []uint8
4627 (local142) = make([]uint8, local143)
4629 _, err := io.ReadFull(r, (local142)[:])
4637 }))(obj)).Formspec) = string(local142)
4638 var local144 []uint8
4644 (local144) = make([]uint8, local145)
4646 _, err := io.ReadFull(r, (local144)[:])
4654 }))(obj)).Formname) = string(local144)
4657 func (obj *ToCltMovement) serialize(w io.Writer) {
4660 DefaultAccel, AirAccel, FastAccel,
4661 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4662 Fluidity, Smoothing, Sink,
4664 }))(obj)).DefaultAccel
4665 write32(w, math.Float32bits(x))
4669 DefaultAccel, AirAccel, FastAccel,
4670 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4671 Fluidity, Smoothing, Sink,
4674 write32(w, math.Float32bits(x))
4678 DefaultAccel, AirAccel, FastAccel,
4679 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4680 Fluidity, Smoothing, Sink,
4683 write32(w, math.Float32bits(x))
4687 DefaultAccel, AirAccel, FastAccel,
4688 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4689 Fluidity, Smoothing, Sink,
4692 write32(w, math.Float32bits(x))
4696 DefaultAccel, AirAccel, FastAccel,
4697 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4698 Fluidity, Smoothing, Sink,
4700 }))(obj)).CrouchSpeed
4701 write32(w, math.Float32bits(x))
4705 DefaultAccel, AirAccel, FastAccel,
4706 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4707 Fluidity, Smoothing, Sink,
4710 write32(w, math.Float32bits(x))
4714 DefaultAccel, AirAccel, FastAccel,
4715 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4716 Fluidity, Smoothing, Sink,
4718 }))(obj)).ClimbSpeed
4719 write32(w, math.Float32bits(x))
4723 DefaultAccel, AirAccel, FastAccel,
4724 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4725 Fluidity, Smoothing, Sink,
4728 write32(w, math.Float32bits(x))
4732 DefaultAccel, AirAccel, FastAccel,
4733 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4734 Fluidity, Smoothing, Sink,
4737 write32(w, math.Float32bits(x))
4741 DefaultAccel, AirAccel, FastAccel,
4742 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4743 Fluidity, Smoothing, Sink,
4746 write32(w, math.Float32bits(x))
4750 DefaultAccel, AirAccel, FastAccel,
4751 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4752 Fluidity, Smoothing, Sink,
4755 write32(w, math.Float32bits(x))
4759 DefaultAccel, AirAccel, FastAccel,
4760 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4761 Fluidity, Smoothing, Sink,
4764 write32(w, math.Float32bits(x))
4768 func (obj *ToCltMovement) deserialize(r io.Reader) {
4771 DefaultAccel, AirAccel, FastAccel,
4772 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4773 Fluidity, Smoothing, Sink,
4775 }))(obj)).DefaultAccel
4776 *p = math.Float32frombits(read32(r))
4780 DefaultAccel, AirAccel, FastAccel,
4781 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4782 Fluidity, Smoothing, Sink,
4785 *p = math.Float32frombits(read32(r))
4789 DefaultAccel, AirAccel, FastAccel,
4790 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4791 Fluidity, Smoothing, Sink,
4794 *p = math.Float32frombits(read32(r))
4798 DefaultAccel, AirAccel, FastAccel,
4799 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4800 Fluidity, Smoothing, Sink,
4803 *p = math.Float32frombits(read32(r))
4807 DefaultAccel, AirAccel, FastAccel,
4808 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4809 Fluidity, Smoothing, Sink,
4811 }))(obj)).CrouchSpeed
4812 *p = math.Float32frombits(read32(r))
4816 DefaultAccel, AirAccel, FastAccel,
4817 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4818 Fluidity, Smoothing, Sink,
4821 *p = math.Float32frombits(read32(r))
4825 DefaultAccel, AirAccel, FastAccel,
4826 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4827 Fluidity, Smoothing, Sink,
4829 }))(obj)).ClimbSpeed
4830 *p = math.Float32frombits(read32(r))
4834 DefaultAccel, AirAccel, FastAccel,
4835 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4836 Fluidity, Smoothing, Sink,
4839 *p = math.Float32frombits(read32(r))
4843 DefaultAccel, AirAccel, FastAccel,
4844 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4845 Fluidity, Smoothing, Sink,
4848 *p = math.Float32frombits(read32(r))
4852 DefaultAccel, AirAccel, FastAccel,
4853 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4854 Fluidity, Smoothing, Sink,
4857 *p = math.Float32frombits(read32(r))
4861 DefaultAccel, AirAccel, FastAccel,
4862 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4863 Fluidity, Smoothing, Sink,
4866 *p = math.Float32frombits(read32(r))
4870 DefaultAccel, AirAccel, FastAccel,
4871 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4872 Fluidity, Smoothing, Sink,
4875 *p = math.Float32frombits(read32(r))
4879 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4880 for local146 := range (*(*(struct {
4881 Pos, Vel, Acc [3]float32
4882 ExpirationTime float32 // in seconds.
4900 Pos, Vel, Acc [3]float32
4901 ExpirationTime float32 // in seconds.
4916 }))(obj)).Pos)[local146]
4917 write32(w, math.Float32bits(x))
4920 for local147 := range (*(*(struct {
4921 Pos, Vel, Acc [3]float32
4922 ExpirationTime float32 // in seconds.
4940 Pos, Vel, Acc [3]float32
4941 ExpirationTime float32 // in seconds.
4956 }))(obj)).Vel)[local147]
4957 write32(w, math.Float32bits(x))
4960 for local148 := range (*(*(struct {
4961 Pos, Vel, Acc [3]float32
4962 ExpirationTime float32 // in seconds.
4980 Pos, Vel, Acc [3]float32
4981 ExpirationTime float32 // in seconds.
4996 }))(obj)).Acc)[local148]
4997 write32(w, math.Float32bits(x))
5002 Pos, Vel, Acc [3]float32
5003 ExpirationTime float32 // in seconds.
5018 }))(obj)).ExpirationTime
5019 write32(w, math.Float32bits(x))
5023 Pos, Vel, Acc [3]float32
5024 ExpirationTime float32 // in seconds.
5040 write32(w, math.Float32bits(x))
5044 Pos, Vel, Acc [3]float32
5045 ExpirationTime float32 // in seconds.
5067 if len(([]byte(*(*string)(&((*(*(struct {
5068 Pos, Vel, Acc [3]float32
5069 ExpirationTime float32 // in seconds.
5084 }))(obj)).Texture))))) > math.MaxUint32 {
5088 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5089 Pos, Vel, Acc [3]float32
5090 ExpirationTime float32 // in seconds.
5105 }))(obj)).Texture))))))
5106 write32(w, uint32(x))
5109 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5110 Pos, Vel, Acc [3]float32
5111 ExpirationTime float32 // in seconds.
5126 }))(obj)).Texture))))[:])
5131 Pos, Vel, Acc [3]float32
5132 ExpirationTime float32 // in seconds.
5156 Pos, Vel, Acc [3]float32
5157 ExpirationTime float32 // in seconds.
5172 }))(obj)).CollisionRm
5179 if err := pcall(func() {
5181 Pos, Vel, Acc [3]float32
5182 ExpirationTime float32 // in seconds.
5197 }))(obj)).AnimParams).serialize(w)
5202 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5206 Pos, Vel, Acc [3]float32
5207 ExpirationTime float32 // in seconds.
5227 Pos, Vel, Acc [3]float32
5228 ExpirationTime float32 // in seconds.
5243 }))(obj)).AOCollision
5250 if err := pcall(func() {
5252 Pos, Vel, Acc [3]float32
5253 ExpirationTime float32 // in seconds.
5268 }))(obj)).NodeParam0).serialize(w)
5273 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5277 Pos, Vel, Acc [3]float32
5278 ExpirationTime float32 // in seconds.
5293 }))(obj)).NodeParam2
5298 Pos, Vel, Acc [3]float32
5299 ExpirationTime float32 // in seconds.
5319 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5320 for local149 := range (*(*(struct {
5321 Pos, Vel, Acc [3]float32
5322 ExpirationTime float32 // in seconds.
5339 p := &((*(*(struct {
5340 Pos, Vel, Acc [3]float32
5341 ExpirationTime float32 // in seconds.
5356 }))(obj)).Pos)[local149]
5357 *p = math.Float32frombits(read32(r))
5360 for local150 := range (*(*(struct {
5361 Pos, Vel, Acc [3]float32
5362 ExpirationTime float32 // in seconds.
5379 p := &((*(*(struct {
5380 Pos, Vel, Acc [3]float32
5381 ExpirationTime float32 // in seconds.
5396 }))(obj)).Vel)[local150]
5397 *p = math.Float32frombits(read32(r))
5400 for local151 := range (*(*(struct {
5401 Pos, Vel, Acc [3]float32
5402 ExpirationTime float32 // in seconds.
5419 p := &((*(*(struct {
5420 Pos, Vel, Acc [3]float32
5421 ExpirationTime float32 // in seconds.
5436 }))(obj)).Acc)[local151]
5437 *p = math.Float32frombits(read32(r))
5442 Pos, Vel, Acc [3]float32
5443 ExpirationTime float32 // in seconds.
5458 }))(obj)).ExpirationTime
5459 *p = math.Float32frombits(read32(r))
5463 Pos, Vel, Acc [3]float32
5464 ExpirationTime float32 // in seconds.
5480 *p = math.Float32frombits(read32(r))
5484 Pos, Vel, Acc [3]float32
5485 ExpirationTime float32 // in seconds.
5501 switch n := read8(r); n {
5507 chk(fmt.Errorf("invalid bool: %d", n))
5510 var local152 []uint8
5516 (local152) = make([]uint8, local153)
5518 _, err := io.ReadFull(r, (local152)[:])
5521 (*(*string)(&((*(*(struct {
5522 Pos, Vel, Acc [3]float32
5523 ExpirationTime float32 // in seconds.
5538 }))(obj)).Texture))) = string(local152)
5541 Pos, Vel, Acc [3]float32
5542 ExpirationTime float32 // in seconds.
5558 switch n := read8(r); n {
5564 chk(fmt.Errorf("invalid bool: %d", n))
5569 Pos, Vel, Acc [3]float32
5570 ExpirationTime float32 // in seconds.
5585 }))(obj)).CollisionRm
5586 switch n := read8(r); n {
5592 chk(fmt.Errorf("invalid bool: %d", n))
5595 if err := pcall(func() {
5597 Pos, Vel, Acc [3]float32
5598 ExpirationTime float32 // in seconds.
5613 }))(obj)).AnimParams).deserialize(r)
5618 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5622 Pos, Vel, Acc [3]float32
5623 ExpirationTime float32 // in seconds.
5643 Pos, Vel, Acc [3]float32
5644 ExpirationTime float32 // in seconds.
5659 }))(obj)).AOCollision
5660 switch n := read8(r); n {
5666 chk(fmt.Errorf("invalid bool: %d", n))
5669 if err := pcall(func() {
5671 Pos, Vel, Acc [3]float32
5672 ExpirationTime float32 // in seconds.
5687 }))(obj)).NodeParam0).deserialize(r)
5692 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5696 Pos, Vel, Acc [3]float32
5697 ExpirationTime float32 // in seconds.
5712 }))(obj)).NodeParam2
5717 Pos, Vel, Acc [3]float32
5718 ExpirationTime float32 // in seconds.
5738 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5743 Pos, Vel, Acc [2][3]float32
5744 ExpirationTime [2]float32 // in seconds.
5751 ID ParticleSpawnerID
5762 write16(w, uint16(x))
5768 Pos, Vel, Acc [2][3]float32
5769 ExpirationTime [2]float32 // in seconds.
5776 ID ParticleSpawnerID
5787 write32(w, math.Float32bits(x))
5789 for local154 := range (*(*(struct {
5792 Pos, Vel, Acc [2][3]float32
5793 ExpirationTime [2]float32 // in seconds.
5800 ID ParticleSpawnerID
5811 for local155 := range ((*(*(struct {
5814 Pos, Vel, Acc [2][3]float32
5815 ExpirationTime [2]float32 // in seconds.
5822 ID ParticleSpawnerID
5832 }))(obj)).Pos)[local154] {
5834 x := (((*(*(struct {
5837 Pos, Vel, Acc [2][3]float32
5838 ExpirationTime [2]float32 // in seconds.
5845 ID ParticleSpawnerID
5855 }))(obj)).Pos)[local154])[local155]
5856 write32(w, math.Float32bits(x))
5860 for local156 := range (*(*(struct {
5863 Pos, Vel, Acc [2][3]float32
5864 ExpirationTime [2]float32 // in seconds.
5871 ID ParticleSpawnerID
5882 for local157 := range ((*(*(struct {
5885 Pos, Vel, Acc [2][3]float32
5886 ExpirationTime [2]float32 // in seconds.
5893 ID ParticleSpawnerID
5903 }))(obj)).Vel)[local156] {
5905 x := (((*(*(struct {
5908 Pos, Vel, Acc [2][3]float32
5909 ExpirationTime [2]float32 // in seconds.
5916 ID ParticleSpawnerID
5926 }))(obj)).Vel)[local156])[local157]
5927 write32(w, math.Float32bits(x))
5931 for local158 := range (*(*(struct {
5934 Pos, Vel, Acc [2][3]float32
5935 ExpirationTime [2]float32 // in seconds.
5942 ID ParticleSpawnerID
5953 for local159 := range ((*(*(struct {
5956 Pos, Vel, Acc [2][3]float32
5957 ExpirationTime [2]float32 // in seconds.
5964 ID ParticleSpawnerID
5974 }))(obj)).Acc)[local158] {
5976 x := (((*(*(struct {
5979 Pos, Vel, Acc [2][3]float32
5980 ExpirationTime [2]float32 // in seconds.
5987 ID ParticleSpawnerID
5997 }))(obj)).Acc)[local158])[local159]
5998 write32(w, math.Float32bits(x))
6002 for local160 := range (*(*(struct {
6005 Pos, Vel, Acc [2][3]float32
6006 ExpirationTime [2]float32 // in seconds.
6013 ID ParticleSpawnerID
6023 }))(obj)).ExpirationTime {
6028 Pos, Vel, Acc [2][3]float32
6029 ExpirationTime [2]float32 // in seconds.
6036 ID ParticleSpawnerID
6046 }))(obj)).ExpirationTime)[local160]
6047 write32(w, math.Float32bits(x))
6050 for local161 := range (*(*(struct {
6053 Pos, Vel, Acc [2][3]float32
6054 ExpirationTime [2]float32 // in seconds.
6061 ID ParticleSpawnerID
6076 Pos, Vel, Acc [2][3]float32
6077 ExpirationTime [2]float32 // in seconds.
6084 ID ParticleSpawnerID
6094 }))(obj)).Size)[local161]
6095 write32(w, math.Float32bits(x))
6102 Pos, Vel, Acc [2][3]float32
6103 ExpirationTime [2]float32 // in seconds.
6110 ID ParticleSpawnerID
6127 if len(([]byte(*(*string)(&((*(*(struct {
6130 Pos, Vel, Acc [2][3]float32
6131 ExpirationTime [2]float32 // in seconds.
6138 ID ParticleSpawnerID
6148 }))(obj)).Texture))))) > math.MaxUint32 {
6152 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6155 Pos, Vel, Acc [2][3]float32
6156 ExpirationTime [2]float32 // in seconds.
6163 ID ParticleSpawnerID
6173 }))(obj)).Texture))))))
6174 write32(w, uint32(x))
6177 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6180 Pos, Vel, Acc [2][3]float32
6181 ExpirationTime [2]float32 // in seconds.
6188 ID ParticleSpawnerID
6198 }))(obj)).Texture))))[:])
6201 if err := pcall(func() {
6205 Pos, Vel, Acc [2][3]float32
6206 ExpirationTime [2]float32 // in seconds.
6213 ID ParticleSpawnerID
6223 }))(obj)).ID).serialize(w)
6228 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6234 Pos, Vel, Acc [2][3]float32
6235 ExpirationTime [2]float32 // in seconds.
6242 ID ParticleSpawnerID
6263 Pos, Vel, Acc [2][3]float32
6264 ExpirationTime [2]float32 // in seconds.
6271 ID ParticleSpawnerID
6281 }))(obj)).CollisionRm
6288 if err := pcall(func() {
6292 Pos, Vel, Acc [2][3]float32
6293 ExpirationTime [2]float32 // in seconds.
6300 ID ParticleSpawnerID
6310 }))(obj)).AttachedAOID).serialize(w)
6315 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
6317 if err := pcall(func() {
6321 Pos, Vel, Acc [2][3]float32
6322 ExpirationTime [2]float32 // in seconds.
6329 ID ParticleSpawnerID
6339 }))(obj)).AnimParams).serialize(w)
6344 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
6350 Pos, Vel, Acc [2][3]float32
6351 ExpirationTime [2]float32 // in seconds.
6358 ID ParticleSpawnerID
6375 Pos, Vel, Acc [2][3]float32
6376 ExpirationTime [2]float32 // in seconds.
6383 ID ParticleSpawnerID
6393 }))(obj)).AOCollision
6400 if err := pcall(func() {
6404 Pos, Vel, Acc [2][3]float32
6405 ExpirationTime [2]float32 // in seconds.
6412 ID ParticleSpawnerID
6422 }))(obj)).NodeParam0).serialize(w)
6427 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
6433 Pos, Vel, Acc [2][3]float32
6434 ExpirationTime [2]float32 // in seconds.
6441 ID ParticleSpawnerID
6451 }))(obj)).NodeParam2
6458 Pos, Vel, Acc [2][3]float32
6459 ExpirationTime [2]float32 // in seconds.
6466 ID ParticleSpawnerID
6481 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6486 Pos, Vel, Acc [2][3]float32
6487 ExpirationTime [2]float32 // in seconds.
6494 ID ParticleSpawnerID
6511 Pos, Vel, Acc [2][3]float32
6512 ExpirationTime [2]float32 // in seconds.
6519 ID ParticleSpawnerID
6530 *p = math.Float32frombits(read32(r))
6532 for local162 := range (*(*(struct {
6535 Pos, Vel, Acc [2][3]float32
6536 ExpirationTime [2]float32 // in seconds.
6543 ID ParticleSpawnerID
6554 for local163 := range ((*(*(struct {
6557 Pos, Vel, Acc [2][3]float32
6558 ExpirationTime [2]float32 // in seconds.
6565 ID ParticleSpawnerID
6575 }))(obj)).Pos)[local162] {
6577 p := &(((*(*(struct {
6580 Pos, Vel, Acc [2][3]float32
6581 ExpirationTime [2]float32 // in seconds.
6588 ID ParticleSpawnerID
6598 }))(obj)).Pos)[local162])[local163]
6599 *p = math.Float32frombits(read32(r))
6603 for local164 := range (*(*(struct {
6606 Pos, Vel, Acc [2][3]float32
6607 ExpirationTime [2]float32 // in seconds.
6614 ID ParticleSpawnerID
6625 for local165 := range ((*(*(struct {
6628 Pos, Vel, Acc [2][3]float32
6629 ExpirationTime [2]float32 // in seconds.
6636 ID ParticleSpawnerID
6646 }))(obj)).Vel)[local164] {
6648 p := &(((*(*(struct {
6651 Pos, Vel, Acc [2][3]float32
6652 ExpirationTime [2]float32 // in seconds.
6659 ID ParticleSpawnerID
6669 }))(obj)).Vel)[local164])[local165]
6670 *p = math.Float32frombits(read32(r))
6674 for local166 := range (*(*(struct {
6677 Pos, Vel, Acc [2][3]float32
6678 ExpirationTime [2]float32 // in seconds.
6685 ID ParticleSpawnerID
6696 for local167 := range ((*(*(struct {
6699 Pos, Vel, Acc [2][3]float32
6700 ExpirationTime [2]float32 // in seconds.
6707 ID ParticleSpawnerID
6717 }))(obj)).Acc)[local166] {
6719 p := &(((*(*(struct {
6722 Pos, Vel, Acc [2][3]float32
6723 ExpirationTime [2]float32 // in seconds.
6730 ID ParticleSpawnerID
6740 }))(obj)).Acc)[local166])[local167]
6741 *p = math.Float32frombits(read32(r))
6745 for local168 := range (*(*(struct {
6748 Pos, Vel, Acc [2][3]float32
6749 ExpirationTime [2]float32 // in seconds.
6756 ID ParticleSpawnerID
6766 }))(obj)).ExpirationTime {
6768 p := &((*(*(struct {
6771 Pos, Vel, Acc [2][3]float32
6772 ExpirationTime [2]float32 // in seconds.
6779 ID ParticleSpawnerID
6789 }))(obj)).ExpirationTime)[local168]
6790 *p = math.Float32frombits(read32(r))
6793 for local169 := range (*(*(struct {
6796 Pos, Vel, Acc [2][3]float32
6797 ExpirationTime [2]float32 // in seconds.
6804 ID ParticleSpawnerID
6816 p := &((*(*(struct {
6819 Pos, Vel, Acc [2][3]float32
6820 ExpirationTime [2]float32 // in seconds.
6827 ID ParticleSpawnerID
6837 }))(obj)).Size)[local169]
6838 *p = math.Float32frombits(read32(r))
6845 Pos, Vel, Acc [2][3]float32
6846 ExpirationTime [2]float32 // in seconds.
6853 ID ParticleSpawnerID
6864 switch n := read8(r); n {
6870 chk(fmt.Errorf("invalid bool: %d", n))
6873 var local170 []uint8
6879 (local170) = make([]uint8, local171)
6881 _, err := io.ReadFull(r, (local170)[:])
6884 (*(*string)(&((*(*(struct {
6887 Pos, Vel, Acc [2][3]float32
6888 ExpirationTime [2]float32 // in seconds.
6895 ID ParticleSpawnerID
6905 }))(obj)).Texture))) = string(local170)
6906 if err := pcall(func() {
6910 Pos, Vel, Acc [2][3]float32
6911 ExpirationTime [2]float32 // in seconds.
6918 ID ParticleSpawnerID
6928 }))(obj)).ID).deserialize(r)
6933 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6939 Pos, Vel, Acc [2][3]float32
6940 ExpirationTime [2]float32 // in seconds.
6947 ID ParticleSpawnerID
6958 switch n := read8(r); n {
6964 chk(fmt.Errorf("invalid bool: %d", n))
6971 Pos, Vel, Acc [2][3]float32
6972 ExpirationTime [2]float32 // in seconds.
6979 ID ParticleSpawnerID
6989 }))(obj)).CollisionRm
6990 switch n := read8(r); n {
6996 chk(fmt.Errorf("invalid bool: %d", n))
6999 if err := pcall(func() {
7003 Pos, Vel, Acc [2][3]float32
7004 ExpirationTime [2]float32 // in seconds.
7011 ID ParticleSpawnerID
7021 }))(obj)).AttachedAOID).deserialize(r)
7026 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
7028 if err := pcall(func() {
7032 Pos, Vel, Acc [2][3]float32
7033 ExpirationTime [2]float32 // in seconds.
7040 ID ParticleSpawnerID
7050 }))(obj)).AnimParams).deserialize(r)
7055 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
7061 Pos, Vel, Acc [2][3]float32
7062 ExpirationTime [2]float32 // in seconds.
7069 ID ParticleSpawnerID
7086 Pos, Vel, Acc [2][3]float32
7087 ExpirationTime [2]float32 // in seconds.
7094 ID ParticleSpawnerID
7104 }))(obj)).AOCollision
7105 switch n := read8(r); n {
7111 chk(fmt.Errorf("invalid bool: %d", n))
7114 if err := pcall(func() {
7118 Pos, Vel, Acc [2][3]float32
7119 ExpirationTime [2]float32 // in seconds.
7126 ID ParticleSpawnerID
7136 }))(obj)).NodeParam0).deserialize(r)
7141 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
7147 Pos, Vel, Acc [2][3]float32
7148 ExpirationTime [2]float32 // in seconds.
7155 ID ParticleSpawnerID
7165 }))(obj)).NodeParam2
7172 Pos, Vel, Acc [2][3]float32
7173 ExpirationTime [2]float32 // in seconds.
7180 ID ParticleSpawnerID
7195 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7196 if err := pcall(func() {
7200 }))(obj)).ID).serialize(w)
7205 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7207 if err := pcall(func() {
7211 }))(obj)).HUD).serialize(w)
7216 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7220 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7221 if err := pcall(func() {
7225 }))(obj)).ID).deserialize(r)
7230 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7232 if err := pcall(func() {
7236 }))(obj)).HUD).deserialize(r)
7241 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7245 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7246 if err := pcall(func() {
7249 }))(obj)).ID).serialize(w)
7254 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7258 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7259 if err := pcall(func() {
7262 }))(obj)).ID).deserialize(r)
7267 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7271 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
7272 if err := pcall(func() {
7278 //mt:if %s.Field == HUDPos
7281 //mt:if %s.Field == HUDName
7284 //mt:if %s.Field == HUDScale
7287 //mt:if %s.Field == HUDText
7290 //mt:if %s.Field == HUDNumber
7293 //mt:if %s.Field == HUDItem
7296 //mt:if %s.Field == HUDDir
7299 //mt:if %s.Field == HUDAlign
7302 //mt:if %s.Field == HUDOffset
7305 //mt:if %s.Field == HUDWorldPos
7308 //mt:if %s.Field == HUDSize
7311 //mt:if %s.Field == HUDZIndex
7314 //mt:if %s.Field == HUDText2
7317 //mt:if %s.Field == HUDStyle
7319 }))(obj)).ID).serialize(w)
7324 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7326 if err := pcall(func() {
7332 //mt:if %s.Field == HUDPos
7335 //mt:if %s.Field == HUDName
7338 //mt:if %s.Field == HUDScale
7341 //mt:if %s.Field == HUDText
7344 //mt:if %s.Field == HUDNumber
7347 //mt:if %s.Field == HUDItem
7350 //mt:if %s.Field == HUDDir
7353 //mt:if %s.Field == HUDAlign
7356 //mt:if %s.Field == HUDOffset
7359 //mt:if %s.Field == HUDWorldPos
7362 //mt:if %s.Field == HUDSize
7365 //mt:if %s.Field == HUDZIndex
7368 //mt:if %s.Field == HUDText2
7371 //mt:if %s.Field == HUDStyle
7373 }))(obj)).Field).serialize(w)
7378 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
7385 //mt:if %s.Field == HUDPos
7388 //mt:if %s.Field == HUDName
7391 //mt:if %s.Field == HUDScale
7394 //mt:if %s.Field == HUDText
7397 //mt:if %s.Field == HUDNumber
7400 //mt:if %s.Field == HUDItem
7403 //mt:if %s.Field == HUDDir
7406 //mt:if %s.Field == HUDAlign
7409 //mt:if %s.Field == HUDOffset
7412 //mt:if %s.Field == HUDWorldPos
7415 //mt:if %s.Field == HUDSize
7418 //mt:if %s.Field == HUDZIndex
7421 //mt:if %s.Field == HUDText2
7424 //mt:if %s.Field == HUDStyle
7426 }))(obj)).Field < hudMax) {
7427 chk(errors.New("assertion failed: %s.Field < hudMax"))
7434 //mt:if %s.Field == HUDPos
7437 //mt:if %s.Field == HUDName
7440 //mt:if %s.Field == HUDScale
7443 //mt:if %s.Field == HUDText
7446 //mt:if %s.Field == HUDNumber
7449 //mt:if %s.Field == HUDItem
7452 //mt:if %s.Field == HUDDir
7455 //mt:if %s.Field == HUDAlign
7458 //mt:if %s.Field == HUDOffset
7461 //mt:if %s.Field == HUDWorldPos
7464 //mt:if %s.Field == HUDSize
7467 //mt:if %s.Field == HUDZIndex
7470 //mt:if %s.Field == HUDText2
7473 //mt:if %s.Field == HUDStyle
7475 }))(obj)).Field == HUDPos {
7476 for local172 := range (*(*(struct {
7481 //mt:if %s.Field == HUDPos
7484 //mt:if %s.Field == HUDName
7487 //mt:if %s.Field == HUDScale
7490 //mt:if %s.Field == HUDText
7493 //mt:if %s.Field == HUDNumber
7496 //mt:if %s.Field == HUDItem
7499 //mt:if %s.Field == HUDDir
7502 //mt:if %s.Field == HUDAlign
7505 //mt:if %s.Field == HUDOffset
7508 //mt:if %s.Field == HUDWorldPos
7511 //mt:if %s.Field == HUDSize
7514 //mt:if %s.Field == HUDZIndex
7517 //mt:if %s.Field == HUDText2
7520 //mt:if %s.Field == HUDStyle
7529 //mt:if %s.Field == HUDPos
7532 //mt:if %s.Field == HUDName
7535 //mt:if %s.Field == HUDScale
7538 //mt:if %s.Field == HUDText
7541 //mt:if %s.Field == HUDNumber
7544 //mt:if %s.Field == HUDItem
7547 //mt:if %s.Field == HUDDir
7550 //mt:if %s.Field == HUDAlign
7553 //mt:if %s.Field == HUDOffset
7556 //mt:if %s.Field == HUDWorldPos
7559 //mt:if %s.Field == HUDSize
7562 //mt:if %s.Field == HUDZIndex
7565 //mt:if %s.Field == HUDText2
7568 //mt:if %s.Field == HUDStyle
7570 }))(obj)).Pos)[local172]
7571 write32(w, math.Float32bits(x))
7580 //mt:if %s.Field == HUDPos
7583 //mt:if %s.Field == HUDName
7586 //mt:if %s.Field == HUDScale
7589 //mt:if %s.Field == HUDText
7592 //mt:if %s.Field == HUDNumber
7595 //mt:if %s.Field == HUDItem
7598 //mt:if %s.Field == HUDDir
7601 //mt:if %s.Field == HUDAlign
7604 //mt:if %s.Field == HUDOffset
7607 //mt:if %s.Field == HUDWorldPos
7610 //mt:if %s.Field == HUDSize
7613 //mt:if %s.Field == HUDZIndex
7616 //mt:if %s.Field == HUDText2
7619 //mt:if %s.Field == HUDStyle
7621 }))(obj)).Field == HUDName {
7622 if len(([]byte((*(*(struct {
7627 //mt:if %s.Field == HUDPos
7630 //mt:if %s.Field == HUDName
7633 //mt:if %s.Field == HUDScale
7636 //mt:if %s.Field == HUDText
7639 //mt:if %s.Field == HUDNumber
7642 //mt:if %s.Field == HUDItem
7645 //mt:if %s.Field == HUDDir
7648 //mt:if %s.Field == HUDAlign
7651 //mt:if %s.Field == HUDOffset
7654 //mt:if %s.Field == HUDWorldPos
7657 //mt:if %s.Field == HUDSize
7660 //mt:if %s.Field == HUDZIndex
7663 //mt:if %s.Field == HUDText2
7666 //mt:if %s.Field == HUDStyle
7668 }))(obj)).Name))) > math.MaxUint16 {
7672 x := uint16(len(([]byte((*(*(struct {
7677 //mt:if %s.Field == HUDPos
7680 //mt:if %s.Field == HUDName
7683 //mt:if %s.Field == HUDScale
7686 //mt:if %s.Field == HUDText
7689 //mt:if %s.Field == HUDNumber
7692 //mt:if %s.Field == HUDItem
7695 //mt:if %s.Field == HUDDir
7698 //mt:if %s.Field == HUDAlign
7701 //mt:if %s.Field == HUDOffset
7704 //mt:if %s.Field == HUDWorldPos
7707 //mt:if %s.Field == HUDSize
7710 //mt:if %s.Field == HUDZIndex
7713 //mt:if %s.Field == HUDText2
7716 //mt:if %s.Field == HUDStyle
7719 write16(w, uint16(x))
7722 _, err := w.Write(([]byte((*(*(struct {
7727 //mt:if %s.Field == HUDPos
7730 //mt:if %s.Field == HUDName
7733 //mt:if %s.Field == HUDScale
7736 //mt:if %s.Field == HUDText
7739 //mt:if %s.Field == HUDNumber
7742 //mt:if %s.Field == HUDItem
7745 //mt:if %s.Field == HUDDir
7748 //mt:if %s.Field == HUDAlign
7751 //mt:if %s.Field == HUDOffset
7754 //mt:if %s.Field == HUDWorldPos
7757 //mt:if %s.Field == HUDSize
7760 //mt:if %s.Field == HUDZIndex
7763 //mt:if %s.Field == HUDText2
7766 //mt:if %s.Field == HUDStyle
7768 }))(obj)).Name))[:])
7777 //mt:if %s.Field == HUDPos
7780 //mt:if %s.Field == HUDName
7783 //mt:if %s.Field == HUDScale
7786 //mt:if %s.Field == HUDText
7789 //mt:if %s.Field == HUDNumber
7792 //mt:if %s.Field == HUDItem
7795 //mt:if %s.Field == HUDDir
7798 //mt:if %s.Field == HUDAlign
7801 //mt:if %s.Field == HUDOffset
7804 //mt:if %s.Field == HUDWorldPos
7807 //mt:if %s.Field == HUDSize
7810 //mt:if %s.Field == HUDZIndex
7813 //mt:if %s.Field == HUDText2
7816 //mt:if %s.Field == HUDStyle
7818 }))(obj)).Field == HUDScale {
7819 for local173 := range (*(*(struct {
7824 //mt:if %s.Field == HUDPos
7827 //mt:if %s.Field == HUDName
7830 //mt:if %s.Field == HUDScale
7833 //mt:if %s.Field == HUDText
7836 //mt:if %s.Field == HUDNumber
7839 //mt:if %s.Field == HUDItem
7842 //mt:if %s.Field == HUDDir
7845 //mt:if %s.Field == HUDAlign
7848 //mt:if %s.Field == HUDOffset
7851 //mt:if %s.Field == HUDWorldPos
7854 //mt:if %s.Field == HUDSize
7857 //mt:if %s.Field == HUDZIndex
7860 //mt:if %s.Field == HUDText2
7863 //mt:if %s.Field == HUDStyle
7872 //mt:if %s.Field == HUDPos
7875 //mt:if %s.Field == HUDName
7878 //mt:if %s.Field == HUDScale
7881 //mt:if %s.Field == HUDText
7884 //mt:if %s.Field == HUDNumber
7887 //mt:if %s.Field == HUDItem
7890 //mt:if %s.Field == HUDDir
7893 //mt:if %s.Field == HUDAlign
7896 //mt:if %s.Field == HUDOffset
7899 //mt:if %s.Field == HUDWorldPos
7902 //mt:if %s.Field == HUDSize
7905 //mt:if %s.Field == HUDZIndex
7908 //mt:if %s.Field == HUDText2
7911 //mt:if %s.Field == HUDStyle
7913 }))(obj)).Scale)[local173]
7914 write32(w, math.Float32bits(x))
7923 //mt:if %s.Field == HUDPos
7926 //mt:if %s.Field == HUDName
7929 //mt:if %s.Field == HUDScale
7932 //mt:if %s.Field == HUDText
7935 //mt:if %s.Field == HUDNumber
7938 //mt:if %s.Field == HUDItem
7941 //mt:if %s.Field == HUDDir
7944 //mt:if %s.Field == HUDAlign
7947 //mt:if %s.Field == HUDOffset
7950 //mt:if %s.Field == HUDWorldPos
7953 //mt:if %s.Field == HUDSize
7956 //mt:if %s.Field == HUDZIndex
7959 //mt:if %s.Field == HUDText2
7962 //mt:if %s.Field == HUDStyle
7964 }))(obj)).Field == HUDText {
7965 if len(([]byte((*(*(struct {
7970 //mt:if %s.Field == HUDPos
7973 //mt:if %s.Field == HUDName
7976 //mt:if %s.Field == HUDScale
7979 //mt:if %s.Field == HUDText
7982 //mt:if %s.Field == HUDNumber
7985 //mt:if %s.Field == HUDItem
7988 //mt:if %s.Field == HUDDir
7991 //mt:if %s.Field == HUDAlign
7994 //mt:if %s.Field == HUDOffset
7997 //mt:if %s.Field == HUDWorldPos
8000 //mt:if %s.Field == HUDSize
8003 //mt:if %s.Field == HUDZIndex
8006 //mt:if %s.Field == HUDText2
8009 //mt:if %s.Field == HUDStyle
8011 }))(obj)).Text))) > math.MaxUint16 {
8015 x := uint16(len(([]byte((*(*(struct {
8020 //mt:if %s.Field == HUDPos
8023 //mt:if %s.Field == HUDName
8026 //mt:if %s.Field == HUDScale
8029 //mt:if %s.Field == HUDText
8032 //mt:if %s.Field == HUDNumber
8035 //mt:if %s.Field == HUDItem
8038 //mt:if %s.Field == HUDDir
8041 //mt:if %s.Field == HUDAlign
8044 //mt:if %s.Field == HUDOffset
8047 //mt:if %s.Field == HUDWorldPos
8050 //mt:if %s.Field == HUDSize
8053 //mt:if %s.Field == HUDZIndex
8056 //mt:if %s.Field == HUDText2
8059 //mt:if %s.Field == HUDStyle
8062 write16(w, uint16(x))
8065 _, err := w.Write(([]byte((*(*(struct {
8070 //mt:if %s.Field == HUDPos
8073 //mt:if %s.Field == HUDName
8076 //mt:if %s.Field == HUDScale
8079 //mt:if %s.Field == HUDText
8082 //mt:if %s.Field == HUDNumber
8085 //mt:if %s.Field == HUDItem
8088 //mt:if %s.Field == HUDDir
8091 //mt:if %s.Field == HUDAlign
8094 //mt:if %s.Field == HUDOffset
8097 //mt:if %s.Field == HUDWorldPos
8100 //mt:if %s.Field == HUDSize
8103 //mt:if %s.Field == HUDZIndex
8106 //mt:if %s.Field == HUDText2
8109 //mt:if %s.Field == HUDStyle
8111 }))(obj)).Text))[:])
8120 //mt:if %s.Field == HUDPos
8123 //mt:if %s.Field == HUDName
8126 //mt:if %s.Field == HUDScale
8129 //mt:if %s.Field == HUDText
8132 //mt:if %s.Field == HUDNumber
8135 //mt:if %s.Field == HUDItem
8138 //mt:if %s.Field == HUDDir
8141 //mt:if %s.Field == HUDAlign
8144 //mt:if %s.Field == HUDOffset
8147 //mt:if %s.Field == HUDWorldPos
8150 //mt:if %s.Field == HUDSize
8153 //mt:if %s.Field == HUDZIndex
8156 //mt:if %s.Field == HUDText2
8159 //mt:if %s.Field == HUDStyle
8161 }))(obj)).Field == HUDNumber {
8168 //mt:if %s.Field == HUDPos
8171 //mt:if %s.Field == HUDName
8174 //mt:if %s.Field == HUDScale
8177 //mt:if %s.Field == HUDText
8180 //mt:if %s.Field == HUDNumber
8183 //mt:if %s.Field == HUDItem
8186 //mt:if %s.Field == HUDDir
8189 //mt:if %s.Field == HUDAlign
8192 //mt:if %s.Field == HUDOffset
8195 //mt:if %s.Field == HUDWorldPos
8198 //mt:if %s.Field == HUDSize
8201 //mt:if %s.Field == HUDZIndex
8204 //mt:if %s.Field == HUDText2
8207 //mt:if %s.Field == HUDStyle
8210 write32(w, uint32(x))
8218 //mt:if %s.Field == HUDPos
8221 //mt:if %s.Field == HUDName
8224 //mt:if %s.Field == HUDScale
8227 //mt:if %s.Field == HUDText
8230 //mt:if %s.Field == HUDNumber
8233 //mt:if %s.Field == HUDItem
8236 //mt:if %s.Field == HUDDir
8239 //mt:if %s.Field == HUDAlign
8242 //mt:if %s.Field == HUDOffset
8245 //mt:if %s.Field == HUDWorldPos
8248 //mt:if %s.Field == HUDSize
8251 //mt:if %s.Field == HUDZIndex
8254 //mt:if %s.Field == HUDText2
8257 //mt:if %s.Field == HUDStyle
8259 }))(obj)).Field == HUDItem {
8266 //mt:if %s.Field == HUDPos
8269 //mt:if %s.Field == HUDName
8272 //mt:if %s.Field == HUDScale
8275 //mt:if %s.Field == HUDText
8278 //mt:if %s.Field == HUDNumber
8281 //mt:if %s.Field == HUDItem
8284 //mt:if %s.Field == HUDDir
8287 //mt:if %s.Field == HUDAlign
8290 //mt:if %s.Field == HUDOffset
8293 //mt:if %s.Field == HUDWorldPos
8296 //mt:if %s.Field == HUDSize
8299 //mt:if %s.Field == HUDZIndex
8302 //mt:if %s.Field == HUDText2
8305 //mt:if %s.Field == HUDStyle
8308 write32(w, uint32(x))
8316 //mt:if %s.Field == HUDPos
8319 //mt:if %s.Field == HUDName
8322 //mt:if %s.Field == HUDScale
8325 //mt:if %s.Field == HUDText
8328 //mt:if %s.Field == HUDNumber
8331 //mt:if %s.Field == HUDItem
8334 //mt:if %s.Field == HUDDir
8337 //mt:if %s.Field == HUDAlign
8340 //mt:if %s.Field == HUDOffset
8343 //mt:if %s.Field == HUDWorldPos
8346 //mt:if %s.Field == HUDSize
8349 //mt:if %s.Field == HUDZIndex
8352 //mt:if %s.Field == HUDText2
8355 //mt:if %s.Field == HUDStyle
8357 }))(obj)).Field == HUDDir {
8364 //mt:if %s.Field == HUDPos
8367 //mt:if %s.Field == HUDName
8370 //mt:if %s.Field == HUDScale
8373 //mt:if %s.Field == HUDText
8376 //mt:if %s.Field == HUDNumber
8379 //mt:if %s.Field == HUDItem
8382 //mt:if %s.Field == HUDDir
8385 //mt:if %s.Field == HUDAlign
8388 //mt:if %s.Field == HUDOffset
8391 //mt:if %s.Field == HUDWorldPos
8394 //mt:if %s.Field == HUDSize
8397 //mt:if %s.Field == HUDZIndex
8400 //mt:if %s.Field == HUDText2
8403 //mt:if %s.Field == HUDStyle
8406 write32(w, uint32(x))
8414 //mt:if %s.Field == HUDPos
8417 //mt:if %s.Field == HUDName
8420 //mt:if %s.Field == HUDScale
8423 //mt:if %s.Field == HUDText
8426 //mt:if %s.Field == HUDNumber
8429 //mt:if %s.Field == HUDItem
8432 //mt:if %s.Field == HUDDir
8435 //mt:if %s.Field == HUDAlign
8438 //mt:if %s.Field == HUDOffset
8441 //mt:if %s.Field == HUDWorldPos
8444 //mt:if %s.Field == HUDSize
8447 //mt:if %s.Field == HUDZIndex
8450 //mt:if %s.Field == HUDText2
8453 //mt:if %s.Field == HUDStyle
8455 }))(obj)).Field == HUDAlign {
8456 for local174 := range (*(*(struct {
8461 //mt:if %s.Field == HUDPos
8464 //mt:if %s.Field == HUDName
8467 //mt:if %s.Field == HUDScale
8470 //mt:if %s.Field == HUDText
8473 //mt:if %s.Field == HUDNumber
8476 //mt:if %s.Field == HUDItem
8479 //mt:if %s.Field == HUDDir
8482 //mt:if %s.Field == HUDAlign
8485 //mt:if %s.Field == HUDOffset
8488 //mt:if %s.Field == HUDWorldPos
8491 //mt:if %s.Field == HUDSize
8494 //mt:if %s.Field == HUDZIndex
8497 //mt:if %s.Field == HUDText2
8500 //mt:if %s.Field == HUDStyle
8509 //mt:if %s.Field == HUDPos
8512 //mt:if %s.Field == HUDName
8515 //mt:if %s.Field == HUDScale
8518 //mt:if %s.Field == HUDText
8521 //mt:if %s.Field == HUDNumber
8524 //mt:if %s.Field == HUDItem
8527 //mt:if %s.Field == HUDDir
8530 //mt:if %s.Field == HUDAlign
8533 //mt:if %s.Field == HUDOffset
8536 //mt:if %s.Field == HUDWorldPos
8539 //mt:if %s.Field == HUDSize
8542 //mt:if %s.Field == HUDZIndex
8545 //mt:if %s.Field == HUDText2
8548 //mt:if %s.Field == HUDStyle
8550 }))(obj)).Align)[local174]
8551 write32(w, math.Float32bits(x))
8560 //mt:if %s.Field == HUDPos
8563 //mt:if %s.Field == HUDName
8566 //mt:if %s.Field == HUDScale
8569 //mt:if %s.Field == HUDText
8572 //mt:if %s.Field == HUDNumber
8575 //mt:if %s.Field == HUDItem
8578 //mt:if %s.Field == HUDDir
8581 //mt:if %s.Field == HUDAlign
8584 //mt:if %s.Field == HUDOffset
8587 //mt:if %s.Field == HUDWorldPos
8590 //mt:if %s.Field == HUDSize
8593 //mt:if %s.Field == HUDZIndex
8596 //mt:if %s.Field == HUDText2
8599 //mt:if %s.Field == HUDStyle
8601 }))(obj)).Field == HUDOffset {
8602 for local175 := range (*(*(struct {
8607 //mt:if %s.Field == HUDPos
8610 //mt:if %s.Field == HUDName
8613 //mt:if %s.Field == HUDScale
8616 //mt:if %s.Field == HUDText
8619 //mt:if %s.Field == HUDNumber
8622 //mt:if %s.Field == HUDItem
8625 //mt:if %s.Field == HUDDir
8628 //mt:if %s.Field == HUDAlign
8631 //mt:if %s.Field == HUDOffset
8634 //mt:if %s.Field == HUDWorldPos
8637 //mt:if %s.Field == HUDSize
8640 //mt:if %s.Field == HUDZIndex
8643 //mt:if %s.Field == HUDText2
8646 //mt:if %s.Field == HUDStyle
8655 //mt:if %s.Field == HUDPos
8658 //mt:if %s.Field == HUDName
8661 //mt:if %s.Field == HUDScale
8664 //mt:if %s.Field == HUDText
8667 //mt:if %s.Field == HUDNumber
8670 //mt:if %s.Field == HUDItem
8673 //mt:if %s.Field == HUDDir
8676 //mt:if %s.Field == HUDAlign
8679 //mt:if %s.Field == HUDOffset
8682 //mt:if %s.Field == HUDWorldPos
8685 //mt:if %s.Field == HUDSize
8688 //mt:if %s.Field == HUDZIndex
8691 //mt:if %s.Field == HUDText2
8694 //mt:if %s.Field == HUDStyle
8696 }))(obj)).Offset)[local175]
8697 write32(w, math.Float32bits(x))
8706 //mt:if %s.Field == HUDPos
8709 //mt:if %s.Field == HUDName
8712 //mt:if %s.Field == HUDScale
8715 //mt:if %s.Field == HUDText
8718 //mt:if %s.Field == HUDNumber
8721 //mt:if %s.Field == HUDItem
8724 //mt:if %s.Field == HUDDir
8727 //mt:if %s.Field == HUDAlign
8730 //mt:if %s.Field == HUDOffset
8733 //mt:if %s.Field == HUDWorldPos
8736 //mt:if %s.Field == HUDSize
8739 //mt:if %s.Field == HUDZIndex
8742 //mt:if %s.Field == HUDText2
8745 //mt:if %s.Field == HUDStyle
8747 }))(obj)).Field == HUDWorldPos {
8748 if err := pcall(func() {
8754 //mt:if %s.Field == HUDPos
8757 //mt:if %s.Field == HUDName
8760 //mt:if %s.Field == HUDScale
8763 //mt:if %s.Field == HUDText
8766 //mt:if %s.Field == HUDNumber
8769 //mt:if %s.Field == HUDItem
8772 //mt:if %s.Field == HUDDir
8775 //mt:if %s.Field == HUDAlign
8778 //mt:if %s.Field == HUDOffset
8781 //mt:if %s.Field == HUDWorldPos
8784 //mt:if %s.Field == HUDSize
8787 //mt:if %s.Field == HUDZIndex
8790 //mt:if %s.Field == HUDText2
8793 //mt:if %s.Field == HUDStyle
8795 }))(obj)).WorldPos).serialize(w)
8800 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
8808 //mt:if %s.Field == HUDPos
8811 //mt:if %s.Field == HUDName
8814 //mt:if %s.Field == HUDScale
8817 //mt:if %s.Field == HUDText
8820 //mt:if %s.Field == HUDNumber
8823 //mt:if %s.Field == HUDItem
8826 //mt:if %s.Field == HUDDir
8829 //mt:if %s.Field == HUDAlign
8832 //mt:if %s.Field == HUDOffset
8835 //mt:if %s.Field == HUDWorldPos
8838 //mt:if %s.Field == HUDSize
8841 //mt:if %s.Field == HUDZIndex
8844 //mt:if %s.Field == HUDText2
8847 //mt:if %s.Field == HUDStyle
8849 }))(obj)).Field == HUDSize {
8850 for local176 := range (*(*(struct {
8855 //mt:if %s.Field == HUDPos
8858 //mt:if %s.Field == HUDName
8861 //mt:if %s.Field == HUDScale
8864 //mt:if %s.Field == HUDText
8867 //mt:if %s.Field == HUDNumber
8870 //mt:if %s.Field == HUDItem
8873 //mt:if %s.Field == HUDDir
8876 //mt:if %s.Field == HUDAlign
8879 //mt:if %s.Field == HUDOffset
8882 //mt:if %s.Field == HUDWorldPos
8885 //mt:if %s.Field == HUDSize
8888 //mt:if %s.Field == HUDZIndex
8891 //mt:if %s.Field == HUDText2
8894 //mt:if %s.Field == HUDStyle
8903 //mt:if %s.Field == HUDPos
8906 //mt:if %s.Field == HUDName
8909 //mt:if %s.Field == HUDScale
8912 //mt:if %s.Field == HUDText
8915 //mt:if %s.Field == HUDNumber
8918 //mt:if %s.Field == HUDItem
8921 //mt:if %s.Field == HUDDir
8924 //mt:if %s.Field == HUDAlign
8927 //mt:if %s.Field == HUDOffset
8930 //mt:if %s.Field == HUDWorldPos
8933 //mt:if %s.Field == HUDSize
8936 //mt:if %s.Field == HUDZIndex
8939 //mt:if %s.Field == HUDText2
8942 //mt:if %s.Field == HUDStyle
8944 }))(obj)).Size)[local176]
8945 write32(w, uint32(x))
8954 //mt:if %s.Field == HUDPos
8957 //mt:if %s.Field == HUDName
8960 //mt:if %s.Field == HUDScale
8963 //mt:if %s.Field == HUDText
8966 //mt:if %s.Field == HUDNumber
8969 //mt:if %s.Field == HUDItem
8972 //mt:if %s.Field == HUDDir
8975 //mt:if %s.Field == HUDAlign
8978 //mt:if %s.Field == HUDOffset
8981 //mt:if %s.Field == HUDWorldPos
8984 //mt:if %s.Field == HUDSize
8987 //mt:if %s.Field == HUDZIndex
8990 //mt:if %s.Field == HUDText2
8993 //mt:if %s.Field == HUDStyle
8995 }))(obj)).Field == HUDZIndex {
9002 //mt:if %s.Field == HUDPos
9005 //mt:if %s.Field == HUDName
9008 //mt:if %s.Field == HUDScale
9011 //mt:if %s.Field == HUDText
9014 //mt:if %s.Field == HUDNumber
9017 //mt:if %s.Field == HUDItem
9020 //mt:if %s.Field == HUDDir
9023 //mt:if %s.Field == HUDAlign
9026 //mt:if %s.Field == HUDOffset
9029 //mt:if %s.Field == HUDWorldPos
9032 //mt:if %s.Field == HUDSize
9035 //mt:if %s.Field == HUDZIndex
9038 //mt:if %s.Field == HUDText2
9041 //mt:if %s.Field == HUDStyle
9044 write32(w, uint32(x))
9052 //mt:if %s.Field == HUDPos
9055 //mt:if %s.Field == HUDName
9058 //mt:if %s.Field == HUDScale
9061 //mt:if %s.Field == HUDText
9064 //mt:if %s.Field == HUDNumber
9067 //mt:if %s.Field == HUDItem
9070 //mt:if %s.Field == HUDDir
9073 //mt:if %s.Field == HUDAlign
9076 //mt:if %s.Field == HUDOffset
9079 //mt:if %s.Field == HUDWorldPos
9082 //mt:if %s.Field == HUDSize
9085 //mt:if %s.Field == HUDZIndex
9088 //mt:if %s.Field == HUDText2
9091 //mt:if %s.Field == HUDStyle
9093 }))(obj)).Field == HUDText2 {
9094 if len(([]byte((*(*(struct {
9099 //mt:if %s.Field == HUDPos
9102 //mt:if %s.Field == HUDName
9105 //mt:if %s.Field == HUDScale
9108 //mt:if %s.Field == HUDText
9111 //mt:if %s.Field == HUDNumber
9114 //mt:if %s.Field == HUDItem
9117 //mt:if %s.Field == HUDDir
9120 //mt:if %s.Field == HUDAlign
9123 //mt:if %s.Field == HUDOffset
9126 //mt:if %s.Field == HUDWorldPos
9129 //mt:if %s.Field == HUDSize
9132 //mt:if %s.Field == HUDZIndex
9135 //mt:if %s.Field == HUDText2
9138 //mt:if %s.Field == HUDStyle
9140 }))(obj)).Text2))) > math.MaxUint16 {
9144 x := uint16(len(([]byte((*(*(struct {
9149 //mt:if %s.Field == HUDPos
9152 //mt:if %s.Field == HUDName
9155 //mt:if %s.Field == HUDScale
9158 //mt:if %s.Field == HUDText
9161 //mt:if %s.Field == HUDNumber
9164 //mt:if %s.Field == HUDItem
9167 //mt:if %s.Field == HUDDir
9170 //mt:if %s.Field == HUDAlign
9173 //mt:if %s.Field == HUDOffset
9176 //mt:if %s.Field == HUDWorldPos
9179 //mt:if %s.Field == HUDSize
9182 //mt:if %s.Field == HUDZIndex
9185 //mt:if %s.Field == HUDText2
9188 //mt:if %s.Field == HUDStyle
9191 write16(w, uint16(x))
9194 _, err := w.Write(([]byte((*(*(struct {
9199 //mt:if %s.Field == HUDPos
9202 //mt:if %s.Field == HUDName
9205 //mt:if %s.Field == HUDScale
9208 //mt:if %s.Field == HUDText
9211 //mt:if %s.Field == HUDNumber
9214 //mt:if %s.Field == HUDItem
9217 //mt:if %s.Field == HUDDir
9220 //mt:if %s.Field == HUDAlign
9223 //mt:if %s.Field == HUDOffset
9226 //mt:if %s.Field == HUDWorldPos
9229 //mt:if %s.Field == HUDSize
9232 //mt:if %s.Field == HUDZIndex
9235 //mt:if %s.Field == HUDText2
9238 //mt:if %s.Field == HUDStyle
9240 }))(obj)).Text2))[:])
9249 //mt:if %s.Field == HUDPos
9252 //mt:if %s.Field == HUDName
9255 //mt:if %s.Field == HUDScale
9258 //mt:if %s.Field == HUDText
9261 //mt:if %s.Field == HUDNumber
9264 //mt:if %s.Field == HUDItem
9267 //mt:if %s.Field == HUDDir
9270 //mt:if %s.Field == HUDAlign
9273 //mt:if %s.Field == HUDOffset
9276 //mt:if %s.Field == HUDWorldPos
9279 //mt:if %s.Field == HUDSize
9282 //mt:if %s.Field == HUDZIndex
9285 //mt:if %s.Field == HUDText2
9288 //mt:if %s.Field == HUDStyle
9290 }))(obj)).Field == HUDStyle {
9291 if err := pcall(func() {
9297 //mt:if %s.Field == HUDPos
9300 //mt:if %s.Field == HUDName
9303 //mt:if %s.Field == HUDScale
9306 //mt:if %s.Field == HUDText
9309 //mt:if %s.Field == HUDNumber
9312 //mt:if %s.Field == HUDItem
9315 //mt:if %s.Field == HUDDir
9318 //mt:if %s.Field == HUDAlign
9321 //mt:if %s.Field == HUDOffset
9324 //mt:if %s.Field == HUDWorldPos
9327 //mt:if %s.Field == HUDSize
9330 //mt:if %s.Field == HUDZIndex
9333 //mt:if %s.Field == HUDText2
9336 //mt:if %s.Field == HUDStyle
9338 }))(obj)).Style).serialize(w)
9343 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
9348 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9349 if err := pcall(func() {
9355 //mt:if %s.Field == HUDPos
9358 //mt:if %s.Field == HUDName
9361 //mt:if %s.Field == HUDScale
9364 //mt:if %s.Field == HUDText
9367 //mt:if %s.Field == HUDNumber
9370 //mt:if %s.Field == HUDItem
9373 //mt:if %s.Field == HUDDir
9376 //mt:if %s.Field == HUDAlign
9379 //mt:if %s.Field == HUDOffset
9382 //mt:if %s.Field == HUDWorldPos
9385 //mt:if %s.Field == HUDSize
9388 //mt:if %s.Field == HUDZIndex
9391 //mt:if %s.Field == HUDText2
9394 //mt:if %s.Field == HUDStyle
9396 }))(obj)).ID).deserialize(r)
9401 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
9403 if err := pcall(func() {
9409 //mt:if %s.Field == HUDPos
9412 //mt:if %s.Field == HUDName
9415 //mt:if %s.Field == HUDScale
9418 //mt:if %s.Field == HUDText
9421 //mt:if %s.Field == HUDNumber
9424 //mt:if %s.Field == HUDItem
9427 //mt:if %s.Field == HUDDir
9430 //mt:if %s.Field == HUDAlign
9433 //mt:if %s.Field == HUDOffset
9436 //mt:if %s.Field == HUDWorldPos
9439 //mt:if %s.Field == HUDSize
9442 //mt:if %s.Field == HUDZIndex
9445 //mt:if %s.Field == HUDText2
9448 //mt:if %s.Field == HUDStyle
9450 }))(obj)).Field).deserialize(r)
9455 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
9462 //mt:if %s.Field == HUDPos
9465 //mt:if %s.Field == HUDName
9468 //mt:if %s.Field == HUDScale
9471 //mt:if %s.Field == HUDText
9474 //mt:if %s.Field == HUDNumber
9477 //mt:if %s.Field == HUDItem
9480 //mt:if %s.Field == HUDDir
9483 //mt:if %s.Field == HUDAlign
9486 //mt:if %s.Field == HUDOffset
9489 //mt:if %s.Field == HUDWorldPos
9492 //mt:if %s.Field == HUDSize
9495 //mt:if %s.Field == HUDZIndex
9498 //mt:if %s.Field == HUDText2
9501 //mt:if %s.Field == HUDStyle
9503 }))(obj)).Field < hudMax) {
9504 chk(errors.New("assertion failed: %s.Field < hudMax"))
9511 //mt:if %s.Field == HUDPos
9514 //mt:if %s.Field == HUDName
9517 //mt:if %s.Field == HUDScale
9520 //mt:if %s.Field == HUDText
9523 //mt:if %s.Field == HUDNumber
9526 //mt:if %s.Field == HUDItem
9529 //mt:if %s.Field == HUDDir
9532 //mt:if %s.Field == HUDAlign
9535 //mt:if %s.Field == HUDOffset
9538 //mt:if %s.Field == HUDWorldPos
9541 //mt:if %s.Field == HUDSize
9544 //mt:if %s.Field == HUDZIndex
9547 //mt:if %s.Field == HUDText2
9550 //mt:if %s.Field == HUDStyle
9552 }))(obj)).Field == HUDPos {
9553 for local177 := range (*(*(struct {
9558 //mt:if %s.Field == HUDPos
9561 //mt:if %s.Field == HUDName
9564 //mt:if %s.Field == HUDScale
9567 //mt:if %s.Field == HUDText
9570 //mt:if %s.Field == HUDNumber
9573 //mt:if %s.Field == HUDItem
9576 //mt:if %s.Field == HUDDir
9579 //mt:if %s.Field == HUDAlign
9582 //mt:if %s.Field == HUDOffset
9585 //mt:if %s.Field == HUDWorldPos
9588 //mt:if %s.Field == HUDSize
9591 //mt:if %s.Field == HUDZIndex
9594 //mt:if %s.Field == HUDText2
9597 //mt:if %s.Field == HUDStyle
9601 p := &((*(*(struct {
9606 //mt:if %s.Field == HUDPos
9609 //mt:if %s.Field == HUDName
9612 //mt:if %s.Field == HUDScale
9615 //mt:if %s.Field == HUDText
9618 //mt:if %s.Field == HUDNumber
9621 //mt:if %s.Field == HUDItem
9624 //mt:if %s.Field == HUDDir
9627 //mt:if %s.Field == HUDAlign
9630 //mt:if %s.Field == HUDOffset
9633 //mt:if %s.Field == HUDWorldPos
9636 //mt:if %s.Field == HUDSize
9639 //mt:if %s.Field == HUDZIndex
9642 //mt:if %s.Field == HUDText2
9645 //mt:if %s.Field == HUDStyle
9647 }))(obj)).Pos)[local177]
9648 *p = math.Float32frombits(read32(r))
9657 //mt:if %s.Field == HUDPos
9660 //mt:if %s.Field == HUDName
9663 //mt:if %s.Field == HUDScale
9666 //mt:if %s.Field == HUDText
9669 //mt:if %s.Field == HUDNumber
9672 //mt:if %s.Field == HUDItem
9675 //mt:if %s.Field == HUDDir
9678 //mt:if %s.Field == HUDAlign
9681 //mt:if %s.Field == HUDOffset
9684 //mt:if %s.Field == HUDWorldPos
9687 //mt:if %s.Field == HUDSize
9690 //mt:if %s.Field == HUDZIndex
9693 //mt:if %s.Field == HUDText2
9696 //mt:if %s.Field == HUDStyle
9698 }))(obj)).Field == HUDName {
9699 var local178 []uint8
9705 (local178) = make([]uint8, local179)
9707 _, err := io.ReadFull(r, (local178)[:])
9715 //mt:if %s.Field == HUDPos
9718 //mt:if %s.Field == HUDName
9721 //mt:if %s.Field == HUDScale
9724 //mt:if %s.Field == HUDText
9727 //mt:if %s.Field == HUDNumber
9730 //mt:if %s.Field == HUDItem
9733 //mt:if %s.Field == HUDDir
9736 //mt:if %s.Field == HUDAlign
9739 //mt:if %s.Field == HUDOffset
9742 //mt:if %s.Field == HUDWorldPos
9745 //mt:if %s.Field == HUDSize
9748 //mt:if %s.Field == HUDZIndex
9751 //mt:if %s.Field == HUDText2
9754 //mt:if %s.Field == HUDStyle
9756 }))(obj)).Name) = string(local178)
9763 //mt:if %s.Field == HUDPos
9766 //mt:if %s.Field == HUDName
9769 //mt:if %s.Field == HUDScale
9772 //mt:if %s.Field == HUDText
9775 //mt:if %s.Field == HUDNumber
9778 //mt:if %s.Field == HUDItem
9781 //mt:if %s.Field == HUDDir
9784 //mt:if %s.Field == HUDAlign
9787 //mt:if %s.Field == HUDOffset
9790 //mt:if %s.Field == HUDWorldPos
9793 //mt:if %s.Field == HUDSize
9796 //mt:if %s.Field == HUDZIndex
9799 //mt:if %s.Field == HUDText2
9802 //mt:if %s.Field == HUDStyle
9804 }))(obj)).Field == HUDScale {
9805 for local180 := range (*(*(struct {
9810 //mt:if %s.Field == HUDPos
9813 //mt:if %s.Field == HUDName
9816 //mt:if %s.Field == HUDScale
9819 //mt:if %s.Field == HUDText
9822 //mt:if %s.Field == HUDNumber
9825 //mt:if %s.Field == HUDItem
9828 //mt:if %s.Field == HUDDir
9831 //mt:if %s.Field == HUDAlign
9834 //mt:if %s.Field == HUDOffset
9837 //mt:if %s.Field == HUDWorldPos
9840 //mt:if %s.Field == HUDSize
9843 //mt:if %s.Field == HUDZIndex
9846 //mt:if %s.Field == HUDText2
9849 //mt:if %s.Field == HUDStyle
9853 p := &((*(*(struct {
9858 //mt:if %s.Field == HUDPos
9861 //mt:if %s.Field == HUDName
9864 //mt:if %s.Field == HUDScale
9867 //mt:if %s.Field == HUDText
9870 //mt:if %s.Field == HUDNumber
9873 //mt:if %s.Field == HUDItem
9876 //mt:if %s.Field == HUDDir
9879 //mt:if %s.Field == HUDAlign
9882 //mt:if %s.Field == HUDOffset
9885 //mt:if %s.Field == HUDWorldPos
9888 //mt:if %s.Field == HUDSize
9891 //mt:if %s.Field == HUDZIndex
9894 //mt:if %s.Field == HUDText2
9897 //mt:if %s.Field == HUDStyle
9899 }))(obj)).Scale)[local180]
9900 *p = math.Float32frombits(read32(r))
9909 //mt:if %s.Field == HUDPos
9912 //mt:if %s.Field == HUDName
9915 //mt:if %s.Field == HUDScale
9918 //mt:if %s.Field == HUDText
9921 //mt:if %s.Field == HUDNumber
9924 //mt:if %s.Field == HUDItem
9927 //mt:if %s.Field == HUDDir
9930 //mt:if %s.Field == HUDAlign
9933 //mt:if %s.Field == HUDOffset
9936 //mt:if %s.Field == HUDWorldPos
9939 //mt:if %s.Field == HUDSize
9942 //mt:if %s.Field == HUDZIndex
9945 //mt:if %s.Field == HUDText2
9948 //mt:if %s.Field == HUDStyle
9950 }))(obj)).Field == HUDText {
9951 var local181 []uint8
9957 (local181) = make([]uint8, local182)
9959 _, err := io.ReadFull(r, (local181)[:])
9967 //mt:if %s.Field == HUDPos
9970 //mt:if %s.Field == HUDName
9973 //mt:if %s.Field == HUDScale
9976 //mt:if %s.Field == HUDText
9979 //mt:if %s.Field == HUDNumber
9982 //mt:if %s.Field == HUDItem
9985 //mt:if %s.Field == HUDDir
9988 //mt:if %s.Field == HUDAlign
9991 //mt:if %s.Field == HUDOffset
9994 //mt:if %s.Field == HUDWorldPos
9997 //mt:if %s.Field == HUDSize
10000 //mt:if %s.Field == HUDZIndex
10003 //mt:if %s.Field == HUDText2
10006 //mt:if %s.Field == HUDStyle
10007 Style HUDStyleFlags
10008 }))(obj)).Text) = string(local181)
10015 //mt:if %s.Field == HUDPos
10018 //mt:if %s.Field == HUDName
10021 //mt:if %s.Field == HUDScale
10024 //mt:if %s.Field == HUDText
10027 //mt:if %s.Field == HUDNumber
10030 //mt:if %s.Field == HUDItem
10033 //mt:if %s.Field == HUDDir
10036 //mt:if %s.Field == HUDAlign
10039 //mt:if %s.Field == HUDOffset
10042 //mt:if %s.Field == HUDWorldPos
10045 //mt:if %s.Field == HUDSize
10048 //mt:if %s.Field == HUDZIndex
10051 //mt:if %s.Field == HUDText2
10054 //mt:if %s.Field == HUDStyle
10055 Style HUDStyleFlags
10056 }))(obj)).Field == HUDNumber {
10058 p := &(*(*(struct {
10063 //mt:if %s.Field == HUDPos
10066 //mt:if %s.Field == HUDName
10069 //mt:if %s.Field == HUDScale
10072 //mt:if %s.Field == HUDText
10075 //mt:if %s.Field == HUDNumber
10078 //mt:if %s.Field == HUDItem
10081 //mt:if %s.Field == HUDDir
10084 //mt:if %s.Field == HUDAlign
10087 //mt:if %s.Field == HUDOffset
10090 //mt:if %s.Field == HUDWorldPos
10093 //mt:if %s.Field == HUDSize
10096 //mt:if %s.Field == HUDZIndex
10099 //mt:if %s.Field == HUDText2
10102 //mt:if %s.Field == HUDStyle
10103 Style HUDStyleFlags
10113 //mt:if %s.Field == HUDPos
10116 //mt:if %s.Field == HUDName
10119 //mt:if %s.Field == HUDScale
10122 //mt:if %s.Field == HUDText
10125 //mt:if %s.Field == HUDNumber
10128 //mt:if %s.Field == HUDItem
10131 //mt:if %s.Field == HUDDir
10134 //mt:if %s.Field == HUDAlign
10137 //mt:if %s.Field == HUDOffset
10140 //mt:if %s.Field == HUDWorldPos
10143 //mt:if %s.Field == HUDSize
10146 //mt:if %s.Field == HUDZIndex
10149 //mt:if %s.Field == HUDText2
10152 //mt:if %s.Field == HUDStyle
10153 Style HUDStyleFlags
10154 }))(obj)).Field == HUDItem {
10156 p := &(*(*(struct {
10161 //mt:if %s.Field == HUDPos
10164 //mt:if %s.Field == HUDName
10167 //mt:if %s.Field == HUDScale
10170 //mt:if %s.Field == HUDText
10173 //mt:if %s.Field == HUDNumber
10176 //mt:if %s.Field == HUDItem
10179 //mt:if %s.Field == HUDDir
10182 //mt:if %s.Field == HUDAlign
10185 //mt:if %s.Field == HUDOffset
10188 //mt:if %s.Field == HUDWorldPos
10191 //mt:if %s.Field == HUDSize
10194 //mt:if %s.Field == HUDZIndex
10197 //mt:if %s.Field == HUDText2
10200 //mt:if %s.Field == HUDStyle
10201 Style HUDStyleFlags
10211 //mt:if %s.Field == HUDPos
10214 //mt:if %s.Field == HUDName
10217 //mt:if %s.Field == HUDScale
10220 //mt:if %s.Field == HUDText
10223 //mt:if %s.Field == HUDNumber
10226 //mt:if %s.Field == HUDItem
10229 //mt:if %s.Field == HUDDir
10232 //mt:if %s.Field == HUDAlign
10235 //mt:if %s.Field == HUDOffset
10238 //mt:if %s.Field == HUDWorldPos
10241 //mt:if %s.Field == HUDSize
10244 //mt:if %s.Field == HUDZIndex
10247 //mt:if %s.Field == HUDText2
10250 //mt:if %s.Field == HUDStyle
10251 Style HUDStyleFlags
10252 }))(obj)).Field == HUDDir {
10254 p := &(*(*(struct {
10259 //mt:if %s.Field == HUDPos
10262 //mt:if %s.Field == HUDName
10265 //mt:if %s.Field == HUDScale
10268 //mt:if %s.Field == HUDText
10271 //mt:if %s.Field == HUDNumber
10274 //mt:if %s.Field == HUDItem
10277 //mt:if %s.Field == HUDDir
10280 //mt:if %s.Field == HUDAlign
10283 //mt:if %s.Field == HUDOffset
10286 //mt:if %s.Field == HUDWorldPos
10289 //mt:if %s.Field == HUDSize
10292 //mt:if %s.Field == HUDZIndex
10295 //mt:if %s.Field == HUDText2
10298 //mt:if %s.Field == HUDStyle
10299 Style HUDStyleFlags
10309 //mt:if %s.Field == HUDPos
10312 //mt:if %s.Field == HUDName
10315 //mt:if %s.Field == HUDScale
10318 //mt:if %s.Field == HUDText
10321 //mt:if %s.Field == HUDNumber
10324 //mt:if %s.Field == HUDItem
10327 //mt:if %s.Field == HUDDir
10330 //mt:if %s.Field == HUDAlign
10333 //mt:if %s.Field == HUDOffset
10336 //mt:if %s.Field == HUDWorldPos
10339 //mt:if %s.Field == HUDSize
10342 //mt:if %s.Field == HUDZIndex
10345 //mt:if %s.Field == HUDText2
10348 //mt:if %s.Field == HUDStyle
10349 Style HUDStyleFlags
10350 }))(obj)).Field == HUDAlign {
10351 for local183 := range (*(*(struct {
10356 //mt:if %s.Field == HUDPos
10359 //mt:if %s.Field == HUDName
10362 //mt:if %s.Field == HUDScale
10365 //mt:if %s.Field == HUDText
10368 //mt:if %s.Field == HUDNumber
10371 //mt:if %s.Field == HUDItem
10374 //mt:if %s.Field == HUDDir
10377 //mt:if %s.Field == HUDAlign
10380 //mt:if %s.Field == HUDOffset
10383 //mt:if %s.Field == HUDWorldPos
10386 //mt:if %s.Field == HUDSize
10389 //mt:if %s.Field == HUDZIndex
10392 //mt:if %s.Field == HUDText2
10395 //mt:if %s.Field == HUDStyle
10396 Style HUDStyleFlags
10399 p := &((*(*(struct {
10404 //mt:if %s.Field == HUDPos
10407 //mt:if %s.Field == HUDName
10410 //mt:if %s.Field == HUDScale
10413 //mt:if %s.Field == HUDText
10416 //mt:if %s.Field == HUDNumber
10419 //mt:if %s.Field == HUDItem
10422 //mt:if %s.Field == HUDDir
10425 //mt:if %s.Field == HUDAlign
10428 //mt:if %s.Field == HUDOffset
10431 //mt:if %s.Field == HUDWorldPos
10434 //mt:if %s.Field == HUDSize
10437 //mt:if %s.Field == HUDZIndex
10440 //mt:if %s.Field == HUDText2
10443 //mt:if %s.Field == HUDStyle
10444 Style HUDStyleFlags
10445 }))(obj)).Align)[local183]
10446 *p = math.Float32frombits(read32(r))
10455 //mt:if %s.Field == HUDPos
10458 //mt:if %s.Field == HUDName
10461 //mt:if %s.Field == HUDScale
10464 //mt:if %s.Field == HUDText
10467 //mt:if %s.Field == HUDNumber
10470 //mt:if %s.Field == HUDItem
10473 //mt:if %s.Field == HUDDir
10476 //mt:if %s.Field == HUDAlign
10479 //mt:if %s.Field == HUDOffset
10482 //mt:if %s.Field == HUDWorldPos
10485 //mt:if %s.Field == HUDSize
10488 //mt:if %s.Field == HUDZIndex
10491 //mt:if %s.Field == HUDText2
10494 //mt:if %s.Field == HUDStyle
10495 Style HUDStyleFlags
10496 }))(obj)).Field == HUDOffset {
10497 for local184 := range (*(*(struct {
10502 //mt:if %s.Field == HUDPos
10505 //mt:if %s.Field == HUDName
10508 //mt:if %s.Field == HUDScale
10511 //mt:if %s.Field == HUDText
10514 //mt:if %s.Field == HUDNumber
10517 //mt:if %s.Field == HUDItem
10520 //mt:if %s.Field == HUDDir
10523 //mt:if %s.Field == HUDAlign
10526 //mt:if %s.Field == HUDOffset
10529 //mt:if %s.Field == HUDWorldPos
10532 //mt:if %s.Field == HUDSize
10535 //mt:if %s.Field == HUDZIndex
10538 //mt:if %s.Field == HUDText2
10541 //mt:if %s.Field == HUDStyle
10542 Style HUDStyleFlags
10545 p := &((*(*(struct {
10550 //mt:if %s.Field == HUDPos
10553 //mt:if %s.Field == HUDName
10556 //mt:if %s.Field == HUDScale
10559 //mt:if %s.Field == HUDText
10562 //mt:if %s.Field == HUDNumber
10565 //mt:if %s.Field == HUDItem
10568 //mt:if %s.Field == HUDDir
10571 //mt:if %s.Field == HUDAlign
10574 //mt:if %s.Field == HUDOffset
10577 //mt:if %s.Field == HUDWorldPos
10580 //mt:if %s.Field == HUDSize
10583 //mt:if %s.Field == HUDZIndex
10586 //mt:if %s.Field == HUDText2
10589 //mt:if %s.Field == HUDStyle
10590 Style HUDStyleFlags
10591 }))(obj)).Offset)[local184]
10592 *p = math.Float32frombits(read32(r))
10601 //mt:if %s.Field == HUDPos
10604 //mt:if %s.Field == HUDName
10607 //mt:if %s.Field == HUDScale
10610 //mt:if %s.Field == HUDText
10613 //mt:if %s.Field == HUDNumber
10616 //mt:if %s.Field == HUDItem
10619 //mt:if %s.Field == HUDDir
10622 //mt:if %s.Field == HUDAlign
10625 //mt:if %s.Field == HUDOffset
10628 //mt:if %s.Field == HUDWorldPos
10631 //mt:if %s.Field == HUDSize
10634 //mt:if %s.Field == HUDZIndex
10637 //mt:if %s.Field == HUDText2
10640 //mt:if %s.Field == HUDStyle
10641 Style HUDStyleFlags
10642 }))(obj)).Field == HUDWorldPos {
10643 if err := pcall(func() {
10649 //mt:if %s.Field == HUDPos
10652 //mt:if %s.Field == HUDName
10655 //mt:if %s.Field == HUDScale
10658 //mt:if %s.Field == HUDText
10661 //mt:if %s.Field == HUDNumber
10664 //mt:if %s.Field == HUDItem
10667 //mt:if %s.Field == HUDDir
10670 //mt:if %s.Field == HUDAlign
10673 //mt:if %s.Field == HUDOffset
10676 //mt:if %s.Field == HUDWorldPos
10679 //mt:if %s.Field == HUDSize
10682 //mt:if %s.Field == HUDZIndex
10685 //mt:if %s.Field == HUDText2
10688 //mt:if %s.Field == HUDStyle
10689 Style HUDStyleFlags
10690 }))(obj)).WorldPos).deserialize(r)
10695 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
10703 //mt:if %s.Field == HUDPos
10706 //mt:if %s.Field == HUDName
10709 //mt:if %s.Field == HUDScale
10712 //mt:if %s.Field == HUDText
10715 //mt:if %s.Field == HUDNumber
10718 //mt:if %s.Field == HUDItem
10721 //mt:if %s.Field == HUDDir
10724 //mt:if %s.Field == HUDAlign
10727 //mt:if %s.Field == HUDOffset
10730 //mt:if %s.Field == HUDWorldPos
10733 //mt:if %s.Field == HUDSize
10736 //mt:if %s.Field == HUDZIndex
10739 //mt:if %s.Field == HUDText2
10742 //mt:if %s.Field == HUDStyle
10743 Style HUDStyleFlags
10744 }))(obj)).Field == HUDSize {
10745 for local185 := range (*(*(struct {
10750 //mt:if %s.Field == HUDPos
10753 //mt:if %s.Field == HUDName
10756 //mt:if %s.Field == HUDScale
10759 //mt:if %s.Field == HUDText
10762 //mt:if %s.Field == HUDNumber
10765 //mt:if %s.Field == HUDItem
10768 //mt:if %s.Field == HUDDir
10771 //mt:if %s.Field == HUDAlign
10774 //mt:if %s.Field == HUDOffset
10777 //mt:if %s.Field == HUDWorldPos
10780 //mt:if %s.Field == HUDSize
10783 //mt:if %s.Field == HUDZIndex
10786 //mt:if %s.Field == HUDText2
10789 //mt:if %s.Field == HUDStyle
10790 Style HUDStyleFlags
10793 p := &((*(*(struct {
10798 //mt:if %s.Field == HUDPos
10801 //mt:if %s.Field == HUDName
10804 //mt:if %s.Field == HUDScale
10807 //mt:if %s.Field == HUDText
10810 //mt:if %s.Field == HUDNumber
10813 //mt:if %s.Field == HUDItem
10816 //mt:if %s.Field == HUDDir
10819 //mt:if %s.Field == HUDAlign
10822 //mt:if %s.Field == HUDOffset
10825 //mt:if %s.Field == HUDWorldPos
10828 //mt:if %s.Field == HUDSize
10831 //mt:if %s.Field == HUDZIndex
10834 //mt:if %s.Field == HUDText2
10837 //mt:if %s.Field == HUDStyle
10838 Style HUDStyleFlags
10839 }))(obj)).Size)[local185]
10840 *p = int32(read32(r))
10849 //mt:if %s.Field == HUDPos
10852 //mt:if %s.Field == HUDName
10855 //mt:if %s.Field == HUDScale
10858 //mt:if %s.Field == HUDText
10861 //mt:if %s.Field == HUDNumber
10864 //mt:if %s.Field == HUDItem
10867 //mt:if %s.Field == HUDDir
10870 //mt:if %s.Field == HUDAlign
10873 //mt:if %s.Field == HUDOffset
10876 //mt:if %s.Field == HUDWorldPos
10879 //mt:if %s.Field == HUDSize
10882 //mt:if %s.Field == HUDZIndex
10885 //mt:if %s.Field == HUDText2
10888 //mt:if %s.Field == HUDStyle
10889 Style HUDStyleFlags
10890 }))(obj)).Field == HUDZIndex {
10892 p := &(*(*(struct {
10897 //mt:if %s.Field == HUDPos
10900 //mt:if %s.Field == HUDName
10903 //mt:if %s.Field == HUDScale
10906 //mt:if %s.Field == HUDText
10909 //mt:if %s.Field == HUDNumber
10912 //mt:if %s.Field == HUDItem
10915 //mt:if %s.Field == HUDDir
10918 //mt:if %s.Field == HUDAlign
10921 //mt:if %s.Field == HUDOffset
10924 //mt:if %s.Field == HUDWorldPos
10927 //mt:if %s.Field == HUDSize
10930 //mt:if %s.Field == HUDZIndex
10933 //mt:if %s.Field == HUDText2
10936 //mt:if %s.Field == HUDStyle
10937 Style HUDStyleFlags
10939 *p = int32(read32(r))
10947 //mt:if %s.Field == HUDPos
10950 //mt:if %s.Field == HUDName
10953 //mt:if %s.Field == HUDScale
10956 //mt:if %s.Field == HUDText
10959 //mt:if %s.Field == HUDNumber
10962 //mt:if %s.Field == HUDItem
10965 //mt:if %s.Field == HUDDir
10968 //mt:if %s.Field == HUDAlign
10971 //mt:if %s.Field == HUDOffset
10974 //mt:if %s.Field == HUDWorldPos
10977 //mt:if %s.Field == HUDSize
10980 //mt:if %s.Field == HUDZIndex
10983 //mt:if %s.Field == HUDText2
10986 //mt:if %s.Field == HUDStyle
10987 Style HUDStyleFlags
10988 }))(obj)).Field == HUDText2 {
10989 var local186 []uint8
10990 var local187 uint16
10995 (local186) = make([]uint8, local187)
10997 _, err := io.ReadFull(r, (local186)[:])
11005 //mt:if %s.Field == HUDPos
11008 //mt:if %s.Field == HUDName
11011 //mt:if %s.Field == HUDScale
11014 //mt:if %s.Field == HUDText
11017 //mt:if %s.Field == HUDNumber
11020 //mt:if %s.Field == HUDItem
11023 //mt:if %s.Field == HUDDir
11026 //mt:if %s.Field == HUDAlign
11029 //mt:if %s.Field == HUDOffset
11032 //mt:if %s.Field == HUDWorldPos
11035 //mt:if %s.Field == HUDSize
11038 //mt:if %s.Field == HUDZIndex
11041 //mt:if %s.Field == HUDText2
11044 //mt:if %s.Field == HUDStyle
11045 Style HUDStyleFlags
11046 }))(obj)).Text2) = string(local186)
11053 //mt:if %s.Field == HUDPos
11056 //mt:if %s.Field == HUDName
11059 //mt:if %s.Field == HUDScale
11062 //mt:if %s.Field == HUDText
11065 //mt:if %s.Field == HUDNumber
11068 //mt:if %s.Field == HUDItem
11071 //mt:if %s.Field == HUDDir
11074 //mt:if %s.Field == HUDAlign
11077 //mt:if %s.Field == HUDOffset
11080 //mt:if %s.Field == HUDWorldPos
11083 //mt:if %s.Field == HUDSize
11086 //mt:if %s.Field == HUDZIndex
11089 //mt:if %s.Field == HUDText2
11092 //mt:if %s.Field == HUDStyle
11093 Style HUDStyleFlags
11094 }))(obj)).Field == HUDStyle {
11095 if err := pcall(func() {
11101 //mt:if %s.Field == HUDPos
11104 //mt:if %s.Field == HUDName
11107 //mt:if %s.Field == HUDScale
11110 //mt:if %s.Field == HUDText
11113 //mt:if %s.Field == HUDNumber
11116 //mt:if %s.Field == HUDItem
11119 //mt:if %s.Field == HUDDir
11122 //mt:if %s.Field == HUDAlign
11125 //mt:if %s.Field == HUDOffset
11128 //mt:if %s.Field == HUDWorldPos
11131 //mt:if %s.Field == HUDSize
11134 //mt:if %s.Field == HUDZIndex
11137 //mt:if %s.Field == HUDText2
11140 //mt:if %s.Field == HUDStyle
11141 Style HUDStyleFlags
11142 }))(obj)).Style).deserialize(r)
11147 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
11152 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
11153 if err := pcall(func() {
11157 Flags, Mask HUDFlags
11158 }))(obj)).Flags).serialize(w)
11163 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11165 if err := pcall(func() {
11169 Flags, Mask HUDFlags
11170 }))(obj)).Mask).serialize(w)
11175 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11179 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
11180 if err := pcall(func() {
11184 Flags, Mask HUDFlags
11185 }))(obj)).Flags).deserialize(r)
11190 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11192 if err := pcall(func() {
11196 Flags, Mask HUDFlags
11197 }))(obj)).Mask).deserialize(r)
11202 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11206 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
11207 if err := pcall(func() {
11211 //mt:if %s.Param == HotbarSize
11212 //mt:const uint16(4) // Size of Size field.
11215 //mt:if %s.Param != HotbarSize
11217 }))(obj)).Param).serialize(w)
11222 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11227 //mt:if %s.Param == HotbarSize
11228 //mt:const uint16(4) // Size of Size field.
11231 //mt:if %s.Param != HotbarSize
11233 }))(obj)).Param == HotbarSize {
11235 local188 := uint16(4) // Size of Size field.
11238 write16(w, uint16(x))
11245 //mt:if %s.Param == HotbarSize
11246 //mt:const uint16(4) // Size of Size field.
11249 //mt:if %s.Param != HotbarSize
11252 write32(w, uint32(x))
11258 //mt:if %s.Param == HotbarSize
11259 //mt:const uint16(4) // Size of Size field.
11262 //mt:if %s.Param != HotbarSize
11264 }))(obj)).Param != HotbarSize {
11265 if err := pcall(func() {
11269 //mt:if %s.Param == HotbarSize
11270 //mt:const uint16(4) // Size of Size field.
11273 //mt:if %s.Param != HotbarSize
11275 }))(obj)).Img).serialize(w)
11280 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11285 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
11286 if err := pcall(func() {
11290 //mt:if %s.Param == HotbarSize
11291 //mt:const uint16(4) // Size of Size field.
11294 //mt:if %s.Param != HotbarSize
11296 }))(obj)).Param).deserialize(r)
11301 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11306 //mt:if %s.Param == HotbarSize
11307 //mt:const uint16(4) // Size of Size field.
11310 //mt:if %s.Param != HotbarSize
11312 }))(obj)).Param == HotbarSize {
11314 var local189 uint16
11315 local190 := uint16(4) // Size of Size field.
11320 if local189 != local190 {
11321 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
11325 p := &(*(*(struct {
11328 //mt:if %s.Param == HotbarSize
11329 //mt:const uint16(4) // Size of Size field.
11332 //mt:if %s.Param != HotbarSize
11335 *p = int32(read32(r))
11341 //mt:if %s.Param == HotbarSize
11342 //mt:const uint16(4) // Size of Size field.
11345 //mt:if %s.Param != HotbarSize
11347 }))(obj)).Param != HotbarSize {
11348 if err := pcall(func() {
11352 //mt:if %s.Param == HotbarSize
11353 //mt:const uint16(4) // Size of Size field.
11356 //mt:if %s.Param != HotbarSize
11358 }))(obj)).Img).deserialize(r)
11363 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11368 func (obj *ToCltBreath) serialize(w io.Writer) {
11373 write16(w, uint16(x))
11377 func (obj *ToCltBreath) deserialize(r io.Reader) {
11379 p := &(*(*(struct {
11386 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11389 BgColor color.NRGBA
11392 SunFogTint color.NRGBA
11393 MoonFogTint color.NRGBA
11396 //mt:if %s.Type == "skybox"
11399 //mt:if %s.Type == "regular"
11400 DaySky, DayHorizon,
11401 DawnSky, DawnHorizon,
11402 NightSky, NightHorizon,
11405 w.Write([]byte{x.A, x.R, x.G, x.B})
11407 if len(([]byte((*(*(struct {
11408 BgColor color.NRGBA
11411 SunFogTint color.NRGBA
11412 MoonFogTint color.NRGBA
11415 //mt:if %s.Type == "skybox"
11418 //mt:if %s.Type == "regular"
11419 DaySky, DayHorizon,
11420 DawnSky, DawnHorizon,
11421 NightSky, NightHorizon,
11423 }))(obj)).Type))) > math.MaxUint16 {
11427 x := uint16(len(([]byte((*(*(struct {
11428 BgColor color.NRGBA
11431 SunFogTint color.NRGBA
11432 MoonFogTint color.NRGBA
11435 //mt:if %s.Type == "skybox"
11438 //mt:if %s.Type == "regular"
11439 DaySky, DayHorizon,
11440 DawnSky, DawnHorizon,
11441 NightSky, NightHorizon,
11444 write16(w, uint16(x))
11447 _, err := w.Write(([]byte((*(*(struct {
11448 BgColor color.NRGBA
11451 SunFogTint color.NRGBA
11452 MoonFogTint color.NRGBA
11455 //mt:if %s.Type == "skybox"
11458 //mt:if %s.Type == "regular"
11459 DaySky, DayHorizon,
11460 DawnSky, DawnHorizon,
11461 NightSky, NightHorizon,
11463 }))(obj)).Type))[:])
11468 BgColor color.NRGBA
11471 SunFogTint color.NRGBA
11472 MoonFogTint color.NRGBA
11475 //mt:if %s.Type == "skybox"
11478 //mt:if %s.Type == "regular"
11479 DaySky, DayHorizon,
11480 DawnSky, DawnHorizon,
11481 NightSky, NightHorizon,
11492 BgColor color.NRGBA
11495 SunFogTint color.NRGBA
11496 MoonFogTint color.NRGBA
11499 //mt:if %s.Type == "skybox"
11502 //mt:if %s.Type == "regular"
11503 DaySky, DayHorizon,
11504 DawnSky, DawnHorizon,
11505 NightSky, NightHorizon,
11507 }))(obj)).SunFogTint
11508 w.Write([]byte{x.A, x.R, x.G, x.B})
11512 BgColor color.NRGBA
11515 SunFogTint color.NRGBA
11516 MoonFogTint color.NRGBA
11519 //mt:if %s.Type == "skybox"
11522 //mt:if %s.Type == "regular"
11523 DaySky, DayHorizon,
11524 DawnSky, DawnHorizon,
11525 NightSky, NightHorizon,
11527 }))(obj)).MoonFogTint
11528 w.Write([]byte{x.A, x.R, x.G, x.B})
11530 if len(([]byte((*(*(struct {
11531 BgColor color.NRGBA
11534 SunFogTint color.NRGBA
11535 MoonFogTint color.NRGBA
11538 //mt:if %s.Type == "skybox"
11541 //mt:if %s.Type == "regular"
11542 DaySky, DayHorizon,
11543 DawnSky, DawnHorizon,
11544 NightSky, NightHorizon,
11546 }))(obj)).FogTintType))) > math.MaxUint16 {
11550 x := uint16(len(([]byte((*(*(struct {
11551 BgColor color.NRGBA
11554 SunFogTint color.NRGBA
11555 MoonFogTint color.NRGBA
11558 //mt:if %s.Type == "skybox"
11561 //mt:if %s.Type == "regular"
11562 DaySky, DayHorizon,
11563 DawnSky, DawnHorizon,
11564 NightSky, NightHorizon,
11566 }))(obj)).FogTintType))))
11567 write16(w, uint16(x))
11570 _, err := w.Write(([]byte((*(*(struct {
11571 BgColor color.NRGBA
11574 SunFogTint color.NRGBA
11575 MoonFogTint color.NRGBA
11578 //mt:if %s.Type == "skybox"
11581 //mt:if %s.Type == "regular"
11582 DaySky, DayHorizon,
11583 DawnSky, DawnHorizon,
11584 NightSky, NightHorizon,
11586 }))(obj)).FogTintType))[:])
11590 BgColor color.NRGBA
11593 SunFogTint color.NRGBA
11594 MoonFogTint color.NRGBA
11597 //mt:if %s.Type == "skybox"
11600 //mt:if %s.Type == "regular"
11601 DaySky, DayHorizon,
11602 DawnSky, DawnHorizon,
11603 NightSky, NightHorizon,
11605 }))(obj)).Type == "skybox" {
11606 if len(((*(*(struct {
11607 BgColor color.NRGBA
11610 SunFogTint color.NRGBA
11611 MoonFogTint color.NRGBA
11614 //mt:if %s.Type == "skybox"
11617 //mt:if %s.Type == "regular"
11618 DaySky, DayHorizon,
11619 DawnSky, DawnHorizon,
11620 NightSky, NightHorizon,
11622 }))(obj)).Textures)) > math.MaxUint16 {
11626 x := uint16(len(((*(*(struct {
11627 BgColor color.NRGBA
11630 SunFogTint color.NRGBA
11631 MoonFogTint color.NRGBA
11634 //mt:if %s.Type == "skybox"
11637 //mt:if %s.Type == "regular"
11638 DaySky, DayHorizon,
11639 DawnSky, DawnHorizon,
11640 NightSky, NightHorizon,
11642 }))(obj)).Textures)))
11643 write16(w, uint16(x))
11645 for local191 := range (*(*(struct {
11646 BgColor color.NRGBA
11649 SunFogTint color.NRGBA
11650 MoonFogTint color.NRGBA
11653 //mt:if %s.Type == "skybox"
11656 //mt:if %s.Type == "regular"
11657 DaySky, DayHorizon,
11658 DawnSky, DawnHorizon,
11659 NightSky, NightHorizon,
11661 }))(obj)).Textures {
11662 if err := pcall(func() {
11664 BgColor color.NRGBA
11667 SunFogTint color.NRGBA
11668 MoonFogTint color.NRGBA
11671 //mt:if %s.Type == "skybox"
11674 //mt:if %s.Type == "regular"
11675 DaySky, DayHorizon,
11676 DawnSky, DawnHorizon,
11677 NightSky, NightHorizon,
11679 }))(obj)).Textures)[local191]).serialize(w)
11684 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11689 BgColor color.NRGBA
11692 SunFogTint color.NRGBA
11693 MoonFogTint color.NRGBA
11696 //mt:if %s.Type == "skybox"
11699 //mt:if %s.Type == "regular"
11700 DaySky, DayHorizon,
11701 DawnSky, DawnHorizon,
11702 NightSky, NightHorizon,
11704 }))(obj)).Type == "regular" {
11707 BgColor color.NRGBA
11710 SunFogTint color.NRGBA
11711 MoonFogTint color.NRGBA
11714 //mt:if %s.Type == "skybox"
11717 //mt:if %s.Type == "regular"
11718 DaySky, DayHorizon,
11719 DawnSky, DawnHorizon,
11720 NightSky, NightHorizon,
11723 w.Write([]byte{x.A, x.R, x.G, x.B})
11727 BgColor color.NRGBA
11730 SunFogTint color.NRGBA
11731 MoonFogTint color.NRGBA
11734 //mt:if %s.Type == "skybox"
11737 //mt:if %s.Type == "regular"
11738 DaySky, DayHorizon,
11739 DawnSky, DawnHorizon,
11740 NightSky, NightHorizon,
11742 }))(obj)).DayHorizon
11743 w.Write([]byte{x.A, x.R, x.G, x.B})
11747 BgColor color.NRGBA
11750 SunFogTint color.NRGBA
11751 MoonFogTint color.NRGBA
11754 //mt:if %s.Type == "skybox"
11757 //mt:if %s.Type == "regular"
11758 DaySky, DayHorizon,
11759 DawnSky, DawnHorizon,
11760 NightSky, NightHorizon,
11763 w.Write([]byte{x.A, x.R, x.G, x.B})
11767 BgColor color.NRGBA
11770 SunFogTint color.NRGBA
11771 MoonFogTint color.NRGBA
11774 //mt:if %s.Type == "skybox"
11777 //mt:if %s.Type == "regular"
11778 DaySky, DayHorizon,
11779 DawnSky, DawnHorizon,
11780 NightSky, NightHorizon,
11782 }))(obj)).DawnHorizon
11783 w.Write([]byte{x.A, x.R, x.G, x.B})
11787 BgColor color.NRGBA
11790 SunFogTint color.NRGBA
11791 MoonFogTint color.NRGBA
11794 //mt:if %s.Type == "skybox"
11797 //mt:if %s.Type == "regular"
11798 DaySky, DayHorizon,
11799 DawnSky, DawnHorizon,
11800 NightSky, NightHorizon,
11803 w.Write([]byte{x.A, x.R, x.G, x.B})
11807 BgColor color.NRGBA
11810 SunFogTint color.NRGBA
11811 MoonFogTint color.NRGBA
11814 //mt:if %s.Type == "skybox"
11817 //mt:if %s.Type == "regular"
11818 DaySky, DayHorizon,
11819 DawnSky, DawnHorizon,
11820 NightSky, NightHorizon,
11822 }))(obj)).NightHorizon
11823 w.Write([]byte{x.A, x.R, x.G, x.B})
11827 BgColor color.NRGBA
11830 SunFogTint color.NRGBA
11831 MoonFogTint color.NRGBA
11834 //mt:if %s.Type == "skybox"
11837 //mt:if %s.Type == "regular"
11838 DaySky, DayHorizon,
11839 DawnSky, DawnHorizon,
11840 NightSky, NightHorizon,
11843 w.Write([]byte{x.A, x.R, x.G, x.B})
11848 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11850 p := &(*(*(struct {
11851 BgColor color.NRGBA
11854 SunFogTint color.NRGBA
11855 MoonFogTint color.NRGBA
11858 //mt:if %s.Type == "skybox"
11861 //mt:if %s.Type == "regular"
11862 DaySky, DayHorizon,
11863 DawnSky, DawnHorizon,
11864 NightSky, NightHorizon,
11867 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11869 var local192 []uint8
11870 var local193 uint16
11875 (local192) = make([]uint8, local193)
11877 _, err := io.ReadFull(r, (local192)[:])
11881 BgColor color.NRGBA
11884 SunFogTint color.NRGBA
11885 MoonFogTint color.NRGBA
11888 //mt:if %s.Type == "skybox"
11891 //mt:if %s.Type == "regular"
11892 DaySky, DayHorizon,
11893 DawnSky, DawnHorizon,
11894 NightSky, NightHorizon,
11896 }))(obj)).Type) = string(local192)
11898 p := &(*(*(struct {
11899 BgColor color.NRGBA
11902 SunFogTint color.NRGBA
11903 MoonFogTint color.NRGBA
11906 //mt:if %s.Type == "skybox"
11909 //mt:if %s.Type == "regular"
11910 DaySky, DayHorizon,
11911 DawnSky, DawnHorizon,
11912 NightSky, NightHorizon,
11915 switch n := read8(r); n {
11921 chk(fmt.Errorf("invalid bool: %d", n))
11925 p := &(*(*(struct {
11926 BgColor color.NRGBA
11929 SunFogTint color.NRGBA
11930 MoonFogTint color.NRGBA
11933 //mt:if %s.Type == "skybox"
11936 //mt:if %s.Type == "regular"
11937 DaySky, DayHorizon,
11938 DawnSky, DawnHorizon,
11939 NightSky, NightHorizon,
11941 }))(obj)).SunFogTint
11942 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11945 p := &(*(*(struct {
11946 BgColor color.NRGBA
11949 SunFogTint color.NRGBA
11950 MoonFogTint color.NRGBA
11953 //mt:if %s.Type == "skybox"
11956 //mt:if %s.Type == "regular"
11957 DaySky, DayHorizon,
11958 DawnSky, DawnHorizon,
11959 NightSky, NightHorizon,
11961 }))(obj)).MoonFogTint
11962 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11964 var local194 []uint8
11965 var local195 uint16
11970 (local194) = make([]uint8, local195)
11972 _, err := io.ReadFull(r, (local194)[:])
11976 BgColor color.NRGBA
11979 SunFogTint color.NRGBA
11980 MoonFogTint color.NRGBA
11983 //mt:if %s.Type == "skybox"
11986 //mt:if %s.Type == "regular"
11987 DaySky, DayHorizon,
11988 DawnSky, DawnHorizon,
11989 NightSky, NightHorizon,
11991 }))(obj)).FogTintType) = string(local194)
11993 BgColor color.NRGBA
11996 SunFogTint color.NRGBA
11997 MoonFogTint color.NRGBA
12000 //mt:if %s.Type == "skybox"
12003 //mt:if %s.Type == "regular"
12004 DaySky, DayHorizon,
12005 DawnSky, DawnHorizon,
12006 NightSky, NightHorizon,
12008 }))(obj)).Type == "skybox" {
12009 var local196 uint16
12015 BgColor color.NRGBA
12018 SunFogTint color.NRGBA
12019 MoonFogTint color.NRGBA
12022 //mt:if %s.Type == "skybox"
12025 //mt:if %s.Type == "regular"
12026 DaySky, DayHorizon,
12027 DawnSky, DawnHorizon,
12028 NightSky, NightHorizon,
12030 }))(obj)).Textures) = make([]Texture, local196)
12031 for local197 := range (*(*(struct {
12032 BgColor color.NRGBA
12035 SunFogTint color.NRGBA
12036 MoonFogTint color.NRGBA
12039 //mt:if %s.Type == "skybox"
12042 //mt:if %s.Type == "regular"
12043 DaySky, DayHorizon,
12044 DawnSky, DawnHorizon,
12045 NightSky, NightHorizon,
12047 }))(obj)).Textures {
12048 if err := pcall(func() {
12050 BgColor color.NRGBA
12053 SunFogTint color.NRGBA
12054 MoonFogTint color.NRGBA
12057 //mt:if %s.Type == "skybox"
12060 //mt:if %s.Type == "regular"
12061 DaySky, DayHorizon,
12062 DawnSky, DawnHorizon,
12063 NightSky, NightHorizon,
12065 }))(obj)).Textures)[local197]).deserialize(r)
12070 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
12075 BgColor color.NRGBA
12078 SunFogTint color.NRGBA
12079 MoonFogTint color.NRGBA
12082 //mt:if %s.Type == "skybox"
12085 //mt:if %s.Type == "regular"
12086 DaySky, DayHorizon,
12087 DawnSky, DawnHorizon,
12088 NightSky, NightHorizon,
12090 }))(obj)).Type == "regular" {
12092 p := &(*(*(struct {
12093 BgColor color.NRGBA
12096 SunFogTint color.NRGBA
12097 MoonFogTint color.NRGBA
12100 //mt:if %s.Type == "skybox"
12103 //mt:if %s.Type == "regular"
12104 DaySky, DayHorizon,
12105 DawnSky, DawnHorizon,
12106 NightSky, NightHorizon,
12109 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12112 p := &(*(*(struct {
12113 BgColor color.NRGBA
12116 SunFogTint color.NRGBA
12117 MoonFogTint color.NRGBA
12120 //mt:if %s.Type == "skybox"
12123 //mt:if %s.Type == "regular"
12124 DaySky, DayHorizon,
12125 DawnSky, DawnHorizon,
12126 NightSky, NightHorizon,
12128 }))(obj)).DayHorizon
12129 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12132 p := &(*(*(struct {
12133 BgColor color.NRGBA
12136 SunFogTint color.NRGBA
12137 MoonFogTint color.NRGBA
12140 //mt:if %s.Type == "skybox"
12143 //mt:if %s.Type == "regular"
12144 DaySky, DayHorizon,
12145 DawnSky, DawnHorizon,
12146 NightSky, NightHorizon,
12149 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12152 p := &(*(*(struct {
12153 BgColor color.NRGBA
12156 SunFogTint color.NRGBA
12157 MoonFogTint color.NRGBA
12160 //mt:if %s.Type == "skybox"
12163 //mt:if %s.Type == "regular"
12164 DaySky, DayHorizon,
12165 DawnSky, DawnHorizon,
12166 NightSky, NightHorizon,
12168 }))(obj)).DawnHorizon
12169 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12172 p := &(*(*(struct {
12173 BgColor color.NRGBA
12176 SunFogTint color.NRGBA
12177 MoonFogTint color.NRGBA
12180 //mt:if %s.Type == "skybox"
12183 //mt:if %s.Type == "regular"
12184 DaySky, DayHorizon,
12185 DawnSky, DawnHorizon,
12186 NightSky, NightHorizon,
12189 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12192 p := &(*(*(struct {
12193 BgColor color.NRGBA
12196 SunFogTint color.NRGBA
12197 MoonFogTint color.NRGBA
12200 //mt:if %s.Type == "skybox"
12203 //mt:if %s.Type == "regular"
12204 DaySky, DayHorizon,
12205 DawnSky, DawnHorizon,
12206 NightSky, NightHorizon,
12208 }))(obj)).NightHorizon
12209 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12212 p := &(*(*(struct {
12213 BgColor color.NRGBA
12216 SunFogTint color.NRGBA
12217 MoonFogTint color.NRGBA
12220 //mt:if %s.Type == "skybox"
12223 //mt:if %s.Type == "regular"
12224 DaySky, DayHorizon,
12225 DawnSky, DawnHorizon,
12226 NightSky, NightHorizon,
12229 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12234 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
12251 write16(w, uint16(x))
12255 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
12257 p := &(*(*(struct {
12261 switch n := read8(r); n {
12267 chk(fmt.Errorf("invalid bool: %d", n))
12271 p := &(*(*(struct {
12279 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
12280 for local198 := range (*(*(struct {
12281 Idle, Walk, Dig, WalkDig [2]int32
12285 x := ((*(*(struct {
12286 Idle, Walk, Dig, WalkDig [2]int32
12288 }))(obj)).Idle)[local198]
12289 write32(w, uint32(x))
12292 for local199 := range (*(*(struct {
12293 Idle, Walk, Dig, WalkDig [2]int32
12297 x := ((*(*(struct {
12298 Idle, Walk, Dig, WalkDig [2]int32
12300 }))(obj)).Walk)[local199]
12301 write32(w, uint32(x))
12304 for local200 := range (*(*(struct {
12305 Idle, Walk, Dig, WalkDig [2]int32
12309 x := ((*(*(struct {
12310 Idle, Walk, Dig, WalkDig [2]int32
12312 }))(obj)).Dig)[local200]
12313 write32(w, uint32(x))
12316 for local201 := range (*(*(struct {
12317 Idle, Walk, Dig, WalkDig [2]int32
12319 }))(obj)).WalkDig {
12321 x := ((*(*(struct {
12322 Idle, Walk, Dig, WalkDig [2]int32
12324 }))(obj)).WalkDig)[local201]
12325 write32(w, uint32(x))
12330 Idle, Walk, Dig, WalkDig [2]int32
12333 write32(w, math.Float32bits(x))
12337 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
12338 for local202 := range (*(*(struct {
12339 Idle, Walk, Dig, WalkDig [2]int32
12343 p := &((*(*(struct {
12344 Idle, Walk, Dig, WalkDig [2]int32
12346 }))(obj)).Idle)[local202]
12347 *p = int32(read32(r))
12350 for local203 := range (*(*(struct {
12351 Idle, Walk, Dig, WalkDig [2]int32
12355 p := &((*(*(struct {
12356 Idle, Walk, Dig, WalkDig [2]int32
12358 }))(obj)).Walk)[local203]
12359 *p = int32(read32(r))
12362 for local204 := range (*(*(struct {
12363 Idle, Walk, Dig, WalkDig [2]int32
12367 p := &((*(*(struct {
12368 Idle, Walk, Dig, WalkDig [2]int32
12370 }))(obj)).Dig)[local204]
12371 *p = int32(read32(r))
12374 for local205 := range (*(*(struct {
12375 Idle, Walk, Dig, WalkDig [2]int32
12377 }))(obj)).WalkDig {
12379 p := &((*(*(struct {
12380 Idle, Walk, Dig, WalkDig [2]int32
12382 }))(obj)).WalkDig)[local205]
12383 *p = int32(read32(r))
12387 p := &(*(*(struct {
12388 Idle, Walk, Dig, WalkDig [2]int32
12391 *p = math.Float32frombits(read32(r))
12395 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12396 if err := pcall(func() {
12399 }))(obj)).First).serialize(w)
12404 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12406 if err := pcall(func() {
12409 }))(obj)).Third).serialize(w)
12414 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12418 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12419 if err := pcall(func() {
12422 }))(obj)).First).deserialize(r)
12427 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12429 if err := pcall(func() {
12432 }))(obj)).Third).deserialize(r)
12437 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12441 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12442 if err := pcall(func() {
12444 ID ParticleSpawnerID
12445 }))(obj)).ID).serialize(w)
12450 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12454 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12455 if err := pcall(func() {
12457 ID ParticleSpawnerID
12458 }))(obj)).ID).deserialize(r)
12463 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12467 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12471 DiffuseColor color.NRGBA
12472 AmbientColor color.NRGBA
12477 write32(w, math.Float32bits(x))
12482 DiffuseColor color.NRGBA
12483 AmbientColor color.NRGBA
12487 }))(obj)).DiffuseColor
12488 w.Write([]byte{x.A, x.R, x.G, x.B})
12493 DiffuseColor color.NRGBA
12494 AmbientColor color.NRGBA
12498 }))(obj)).AmbientColor
12499 w.Write([]byte{x.A, x.R, x.G, x.B})
12504 DiffuseColor color.NRGBA
12505 AmbientColor color.NRGBA
12510 write32(w, math.Float32bits(x))
12515 DiffuseColor color.NRGBA
12516 AmbientColor color.NRGBA
12520 }))(obj)).Thickness
12521 write32(w, math.Float32bits(x))
12523 for local206 := range (*(*(struct {
12525 DiffuseColor color.NRGBA
12526 AmbientColor color.NRGBA
12532 x := ((*(*(struct {
12534 DiffuseColor color.NRGBA
12535 AmbientColor color.NRGBA
12539 }))(obj)).Speed)[local206]
12540 write32(w, math.Float32bits(x))
12545 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12547 p := &(*(*(struct {
12549 DiffuseColor color.NRGBA
12550 AmbientColor color.NRGBA
12555 *p = math.Float32frombits(read32(r))
12558 p := &(*(*(struct {
12560 DiffuseColor color.NRGBA
12561 AmbientColor color.NRGBA
12565 }))(obj)).DiffuseColor
12566 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12569 p := &(*(*(struct {
12571 DiffuseColor color.NRGBA
12572 AmbientColor color.NRGBA
12576 }))(obj)).AmbientColor
12577 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12580 p := &(*(*(struct {
12582 DiffuseColor color.NRGBA
12583 AmbientColor color.NRGBA
12588 *p = math.Float32frombits(read32(r))
12591 p := &(*(*(struct {
12593 DiffuseColor color.NRGBA
12594 AmbientColor color.NRGBA
12598 }))(obj)).Thickness
12599 *p = math.Float32frombits(read32(r))
12601 for local207 := range (*(*(struct {
12603 DiffuseColor color.NRGBA
12604 AmbientColor color.NRGBA
12610 p := &((*(*(struct {
12612 DiffuseColor color.NRGBA
12613 AmbientColor color.NRGBA
12617 }))(obj)).Speed)[local207]
12618 *p = math.Float32frombits(read32(r))
12623 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12624 if err := pcall(func() {
12629 }))(obj)).ID).serialize(w)
12634 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12642 write32(w, math.Float32bits(x))
12650 write32(w, math.Float32bits(x))
12654 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12655 if err := pcall(func() {
12660 }))(obj)).ID).deserialize(r)
12665 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12668 p := &(*(*(struct {
12673 *p = math.Float32frombits(read32(r))
12676 p := &(*(*(struct {
12681 *p = math.Float32frombits(read32(r))
12685 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12686 if err := pcall(func() {
12688 Type PlayerListUpdateType
12690 }))(obj)).Type).serialize(w)
12695 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12697 if len(((*(*(struct {
12698 Type PlayerListUpdateType
12700 }))(obj)).Players)) > math.MaxUint16 {
12704 x := uint16(len(((*(*(struct {
12705 Type PlayerListUpdateType
12707 }))(obj)).Players)))
12708 write16(w, uint16(x))
12710 for local208 := range (*(*(struct {
12711 Type PlayerListUpdateType
12713 }))(obj)).Players {
12714 if len(([]byte(((*(*(struct {
12715 Type PlayerListUpdateType
12717 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12721 x := uint16(len(([]byte(((*(*(struct {
12722 Type PlayerListUpdateType
12724 }))(obj)).Players)[local208]))))
12725 write16(w, uint16(x))
12728 _, err := w.Write(([]byte(((*(*(struct {
12729 Type PlayerListUpdateType
12731 }))(obj)).Players)[local208]))[:])
12737 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12738 if err := pcall(func() {
12740 Type PlayerListUpdateType
12742 }))(obj)).Type).deserialize(r)
12747 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12749 var local209 uint16
12755 Type PlayerListUpdateType
12757 }))(obj)).Players) = make([]string, local209)
12758 for local210 := range (*(*(struct {
12759 Type PlayerListUpdateType
12761 }))(obj)).Players {
12762 var local211 []uint8
12763 var local212 uint16
12768 (local211) = make([]uint8, local212)
12770 _, err := io.ReadFull(r, (local211)[:])
12774 Type PlayerListUpdateType
12776 }))(obj)).Players)[local210]) = string(local211)
12780 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12781 if len(([]byte((*(*(struct {
12785 }))(obj)).Channel))) > math.MaxUint16 {
12789 x := uint16(len(([]byte((*(*(struct {
12793 }))(obj)).Channel))))
12794 write16(w, uint16(x))
12797 _, err := w.Write(([]byte((*(*(struct {
12801 }))(obj)).Channel))[:])
12804 if len(([]byte((*(*(struct {
12808 }))(obj)).Sender))) > math.MaxUint16 {
12812 x := uint16(len(([]byte((*(*(struct {
12816 }))(obj)).Sender))))
12817 write16(w, uint16(x))
12820 _, err := w.Write(([]byte((*(*(struct {
12824 }))(obj)).Sender))[:])
12827 if len(([]byte((*(*(struct {
12831 }))(obj)).Msg))) > math.MaxUint16 {
12835 x := uint16(len(([]byte((*(*(struct {
12840 write16(w, uint16(x))
12843 _, err := w.Write(([]byte((*(*(struct {
12847 }))(obj)).Msg))[:])
12852 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12853 var local213 []uint8
12854 var local214 uint16
12859 (local213) = make([]uint8, local214)
12861 _, err := io.ReadFull(r, (local213)[:])
12868 }))(obj)).Channel) = string(local213)
12869 var local215 []uint8
12870 var local216 uint16
12875 (local215) = make([]uint8, local216)
12877 _, err := io.ReadFull(r, (local215)[:])
12884 }))(obj)).Sender) = string(local215)
12885 var local217 []uint8
12886 var local218 uint16
12891 (local217) = make([]uint8, local218)
12893 _, err := io.ReadFull(r, (local217)[:])
12900 }))(obj)).Msg) = string(local217)
12903 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12904 if err := pcall(func() {
12908 }))(obj)).Signal).serialize(w)
12913 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
12915 if len(([]byte((*(*(struct {
12918 }))(obj)).Channel))) > math.MaxUint16 {
12922 x := uint16(len(([]byte((*(*(struct {
12925 }))(obj)).Channel))))
12926 write16(w, uint16(x))
12929 _, err := w.Write(([]byte((*(*(struct {
12932 }))(obj)).Channel))[:])
12937 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12938 if err := pcall(func() {
12942 }))(obj)).Signal).deserialize(r)
12947 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
12949 var local219 []uint8
12950 var local220 uint16
12955 (local219) = make([]uint8, local220)
12957 _, err := io.ReadFull(r, (local219)[:])
12963 }))(obj)).Channel) = string(local219)
12966 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12969 w := new(bytes.Buffer)
12973 Changed map[[3]int16]*NodeMeta
12976 w := zlib.NewWriter(w)
12981 if len(x) > math.MaxUint16 {
12984 write16(w, uint16(len(x)))
12985 keys := make([][3]int16, 0, len(x))
12986 for key := range x {
12987 keys = append(keys, key)
12989 sort.Slice(keys, func(i, j int) bool {
12990 p, q := keys[i], keys[j]
13001 for _, key := range keys {
13002 for _, n := range key {
13003 write16(w, uint16(n))
13005 chk(serialize(w, x[key]))
13014 if len((buf.Bytes())) > math.MaxUint32 {
13018 x := uint32(len((buf.Bytes())))
13019 write32(w, uint32(x))
13022 _, err := w.Write((buf.Bytes())[:])
13029 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
13036 r := &io.LimitedReader{R: r, N: int64(n)}
13038 p := &(*(*(struct {
13040 Changed map[[3]int16]*NodeMeta
13043 r, err := zlib.NewReader(byteReader{r})
13045 switch ver := read8(r); ver {
13050 *p = make(map[[3]int16]*NodeMeta, n)
13053 for i := range pos {
13054 pos[i] = int16(read16(r))
13056 nm := new(NodeMeta)
13057 chk(deserialize(r, nm))
13061 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
13067 chk(fmt.Errorf("%d bytes of trailing data", r.N))
13072 func (obj *ToCltSunParams) serialize(w io.Writer) {
13088 if err := pcall(func() {
13096 }))(obj)).Texture).serialize(w)
13101 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13103 if err := pcall(func() {
13111 }))(obj)).ToneMap).serialize(w)
13116 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13118 if err := pcall(func() {
13126 }))(obj)).Rise).serialize(w)
13131 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13157 write32(w, math.Float32bits(x))
13161 func (obj *ToCltSunParams) deserialize(r io.Reader) {
13163 p := &(*(*(struct {
13171 switch n := read8(r); n {
13177 chk(fmt.Errorf("invalid bool: %d", n))
13180 if err := pcall(func() {
13188 }))(obj)).Texture).deserialize(r)
13193 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13195 if err := pcall(func() {
13203 }))(obj)).ToneMap).deserialize(r)
13208 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13210 if err := pcall(func() {
13218 }))(obj)).Rise).deserialize(r)
13223 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13226 p := &(*(*(struct {
13234 switch n := read8(r); n {
13240 chk(fmt.Errorf("invalid bool: %d", n))
13244 p := &(*(*(struct {
13252 *p = math.Float32frombits(read32(r))
13256 func (obj *ToCltMoonParams) serialize(w io.Writer) {
13270 if err := pcall(func() {
13276 }))(obj)).Texture).serialize(w)
13281 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13283 if err := pcall(func() {
13289 }))(obj)).ToneMap).serialize(w)
13294 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13303 write32(w, math.Float32bits(x))
13307 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
13309 p := &(*(*(struct {
13315 switch n := read8(r); n {
13321 chk(fmt.Errorf("invalid bool: %d", n))
13324 if err := pcall(func() {
13330 }))(obj)).Texture).deserialize(r)
13335 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13337 if err := pcall(func() {
13343 }))(obj)).ToneMap).deserialize(r)
13348 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13351 p := &(*(*(struct {
13357 *p = math.Float32frombits(read32(r))
13361 func (obj *ToCltStarParams) serialize(w io.Writer) {
13382 write32(w, uint32(x))
13391 w.Write([]byte{x.A, x.R, x.G, x.B})
13400 write32(w, math.Float32bits(x))
13404 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13406 p := &(*(*(struct {
13412 switch n := read8(r); n {
13418 chk(fmt.Errorf("invalid bool: %d", n))
13422 p := &(*(*(struct {
13431 p := &(*(*(struct {
13437 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13440 p := &(*(*(struct {
13446 *p = math.Float32frombits(read32(r))
13450 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13451 if len(((*(*(struct {
13453 }))(obj)).Salt)) > math.MaxUint16 {
13457 x := uint16(len(((*(*(struct {
13460 write16(w, uint16(x))
13463 _, err := w.Write(((*(*(struct {
13465 }))(obj)).Salt)[:])
13468 if len(((*(*(struct {
13470 }))(obj)).B)) > math.MaxUint16 {
13474 x := uint16(len(((*(*(struct {
13477 write16(w, uint16(x))
13480 _, err := w.Write(((*(*(struct {
13487 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13488 var local221 uint16
13495 }))(obj)).Salt) = make([]byte, local221)
13497 _, err := io.ReadFull(r, ((*(*(struct {
13499 }))(obj)).Salt)[:])
13502 var local222 uint16
13509 }))(obj)).B) = make([]byte, local222)
13511 _, err := io.ReadFull(r, ((*(*(struct {
13518 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13519 if len(([]byte((*(*(struct {
13521 }))(obj)).Prepend))) > math.MaxUint16 {
13525 x := uint16(len(([]byte((*(*(struct {
13527 }))(obj)).Prepend))))
13528 write16(w, uint16(x))
13531 _, err := w.Write(([]byte((*(*(struct {
13533 }))(obj)).Prepend))[:])
13538 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13539 var local223 []uint8
13540 var local224 uint16
13545 (local223) = make([]uint8, local224)
13547 _, err := io.ReadFull(r, (local223)[:])
13552 }))(obj)).Prepend) = string(local223)
13555 func (obj *AOCmdProps) serialize(w io.Writer) {
13556 if err := pcall(func() {
13559 }))(obj)).Props).serialize(w)
13564 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13568 func (obj *AOCmdProps) deserialize(r io.Reader) {
13569 if err := pcall(func() {
13572 }))(obj)).Props).deserialize(r)
13577 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13581 func (obj *AOCmdPos) serialize(w io.Writer) {
13582 if err := pcall(func() {
13585 }))(obj)).Pos).serialize(w)
13590 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13594 func (obj *AOCmdPos) deserialize(r io.Reader) {
13595 if err := pcall(func() {
13598 }))(obj)).Pos).deserialize(r)
13603 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13607 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13608 if err := pcall(func() {
13610 Mod Texture // suffix
13611 }))(obj)).Mod).serialize(w)
13616 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13620 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13621 if err := pcall(func() {
13623 Mod Texture // suffix
13624 }))(obj)).Mod).deserialize(r)
13629 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13633 func (obj *AOCmdSprite) serialize(w io.Writer) {
13634 if err := pcall(func() {
13637 }))(obj)).Sprite).serialize(w)
13642 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13646 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13647 if err := pcall(func() {
13650 }))(obj)).Sprite).deserialize(r)
13655 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13659 func (obj *AOCmdHP) serialize(w io.Writer) {
13664 write16(w, uint16(x))
13668 func (obj *AOCmdHP) deserialize(r io.Reader) {
13670 p := &(*(*(struct {
13677 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13678 if len(((*(*(struct {
13680 }))(obj)).Armor)) > math.MaxUint16 {
13684 x := uint16(len(((*(*(struct {
13687 write16(w, uint16(x))
13689 for local225 := range (*(*(struct {
13692 if err := pcall(func() {
13695 }))(obj)).Armor)[local225]).serialize(w)
13700 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13705 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13706 var local226 uint16
13713 }))(obj)).Armor) = make([]Group, local226)
13714 for local227 := range (*(*(struct {
13717 if err := pcall(func() {
13720 }))(obj)).Armor)[local227]).deserialize(r)
13725 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13730 func (obj *AOCmdAnim) serialize(w io.Writer) {
13731 if err := pcall(func() {
13734 }))(obj)).Anim).serialize(w)
13739 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13743 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13744 if err := pcall(func() {
13747 }))(obj)).Anim).deserialize(r)
13752 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13756 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13757 if len(([]byte((*(*(struct {
13760 }))(obj)).Bone))) > math.MaxUint16 {
13764 x := uint16(len(([]byte((*(*(struct {
13768 write16(w, uint16(x))
13771 _, err := w.Write(([]byte((*(*(struct {
13774 }))(obj)).Bone))[:])
13777 if err := pcall(func() {
13781 }))(obj)).Pos).serialize(w)
13786 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13790 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13791 var local228 []uint8
13792 var local229 uint16
13797 (local228) = make([]uint8, local229)
13799 _, err := io.ReadFull(r, (local228)[:])
13805 }))(obj)).Bone) = string(local228)
13806 if err := pcall(func() {
13810 }))(obj)).Pos).deserialize(r)
13815 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13819 func (obj *AOCmdAttach) serialize(w io.Writer) {
13820 if err := pcall(func() {
13823 }))(obj)).Attach).serialize(w)
13828 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13832 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13833 if err := pcall(func() {
13836 }))(obj)).Attach).deserialize(r)
13841 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13845 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13846 if err := pcall(func() {
13848 Phys AOPhysOverride
13849 }))(obj)).Phys).serialize(w)
13854 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13858 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13859 if err := pcall(func() {
13861 Phys AOPhysOverride
13862 }))(obj)).Phys).deserialize(r)
13867 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13871 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13872 if err := pcall(func() {
13875 }))(obj)).ID).serialize(w)
13880 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13883 local230 := genericCAO
13884 if err := pcall(func() {
13885 (local230).serialize(w)
13890 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13895 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13896 if err := pcall(func() {
13899 }))(obj)).ID).deserialize(r)
13904 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13907 var local231 aoType
13908 local232 := genericCAO
13909 if err := pcall(func() {
13910 (local231).deserialize(r)
13915 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13917 if local231 != local232 {
13918 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13923 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13928 write32(w, math.Float32bits(x))
13932 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13934 p := &(*(*(struct {
13937 *p = math.Float32frombits(read32(r))
13941 func (obj *NodeMeta) serialize(w io.Writer) {
13942 if len(((*(*(struct {
13944 Fields []NodeMetaField
13947 }))(obj)).Fields)) > math.MaxUint32 {
13951 x := uint32(len(((*(*(struct {
13953 Fields []NodeMetaField
13956 }))(obj)).Fields)))
13957 write32(w, uint32(x))
13959 for local233 := range (*(*(struct {
13961 Fields []NodeMetaField
13965 if err := pcall(func() {
13968 Fields []NodeMetaField
13971 }))(obj)).Fields)[local233]).serialize(w)
13976 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
13981 Fields []NodeMetaField
13984 }))(obj)).Inv).Serialize(w))
13987 func (obj *NodeMeta) deserialize(r io.Reader) {
13988 var local234 uint32
13995 Fields []NodeMetaField
13998 }))(obj)).Fields) = make([]NodeMetaField, local234)
13999 for local235 := range (*(*(struct {
14001 Fields []NodeMetaField
14005 if err := pcall(func() {
14008 Fields []NodeMetaField
14011 }))(obj)).Fields)[local235]).deserialize(r)
14016 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
14021 Fields []NodeMetaField
14024 }))(obj)).Inv).Deserialize(r))
14027 func (obj *MinimapMode) serialize(w io.Writer) {
14028 if err := pcall(func() {
14035 }))(obj)).Type).serialize(w)
14040 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14042 if len(([]byte((*(*(struct {
14048 }))(obj)).Label))) > math.MaxUint16 {
14052 x := uint16(len(([]byte((*(*(struct {
14058 }))(obj)).Label))))
14059 write16(w, uint16(x))
14062 _, err := w.Write(([]byte((*(*(struct {
14068 }))(obj)).Label))[:])
14079 write16(w, uint16(x))
14081 if err := pcall(func() {
14088 }))(obj)).Texture).serialize(w)
14093 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14103 write16(w, uint16(x))
14107 func (obj *MinimapMode) deserialize(r io.Reader) {
14108 if err := pcall(func() {
14115 }))(obj)).Type).deserialize(r)
14120 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14122 var local236 []uint8
14123 var local237 uint16
14128 (local236) = make([]uint8, local237)
14130 _, err := io.ReadFull(r, (local236)[:])
14139 }))(obj)).Label) = string(local236)
14141 p := &(*(*(struct {
14150 if err := pcall(func() {
14157 }))(obj)).Texture).deserialize(r)
14162 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14165 p := &(*(*(struct {
14176 func (obj *NodeDef) serialize(w io.Writer) {
14177 if err := pcall(func() {
14190 //mt:const uint8(6)
14192 OverlayTiles [6]TileDef
14193 //mt:const uint8(6)
14194 SpecialTiles [6]TileDef
14201 ConnectTo []Content
14202 InsideTint color.NRGBA
14203 Level uint8 // Must be < 128.
14205 Translucent bool // Sunlight is scattered and becomes normal light.
14206 Transparent bool // Sunlight isn't scattered.
14219 LiquidType LiquidType
14222 Viscosity uint8 // 0-7
14228 DrawBox, ColBox, SelBox NodeBox
14230 FootstepSnd, DiggingSnd, DugSnd SoundDef
14241 MoveResistance uint8
14243 LiquidMovePhysics bool
14244 }))(obj)).Param0).serialize(w)
14249 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
14253 w := new(bytes.Buffer)
14255 local238 := uint8(13)
14258 write8(w, uint8(x))
14261 if len(([]byte((*(*(struct {
14273 //mt:const uint8(6)
14275 OverlayTiles [6]TileDef
14276 //mt:const uint8(6)
14277 SpecialTiles [6]TileDef
14284 ConnectTo []Content
14285 InsideTint color.NRGBA
14286 Level uint8 // Must be < 128.
14288 Translucent bool // Sunlight is scattered and becomes normal light.
14289 Transparent bool // Sunlight isn't scattered.
14302 LiquidType LiquidType
14305 Viscosity uint8 // 0-7
14311 DrawBox, ColBox, SelBox NodeBox
14313 FootstepSnd, DiggingSnd, DugSnd SoundDef
14324 MoveResistance uint8
14326 LiquidMovePhysics bool
14327 }))(obj)).Name))) > math.MaxUint16 {
14331 x := uint16(len(([]byte((*(*(struct {
14343 //mt:const uint8(6)
14345 OverlayTiles [6]TileDef
14346 //mt:const uint8(6)
14347 SpecialTiles [6]TileDef
14354 ConnectTo []Content
14355 InsideTint color.NRGBA
14356 Level uint8 // Must be < 128.
14358 Translucent bool // Sunlight is scattered and becomes normal light.
14359 Transparent bool // Sunlight isn't scattered.
14372 LiquidType LiquidType
14375 Viscosity uint8 // 0-7
14381 DrawBox, ColBox, SelBox NodeBox
14383 FootstepSnd, DiggingSnd, DugSnd SoundDef
14394 MoveResistance uint8
14396 LiquidMovePhysics bool
14398 write16(w, uint16(x))
14401 _, err := w.Write(([]byte((*(*(struct {
14413 //mt:const uint8(6)
14415 OverlayTiles [6]TileDef
14416 //mt:const uint8(6)
14417 SpecialTiles [6]TileDef
14424 ConnectTo []Content
14425 InsideTint color.NRGBA
14426 Level uint8 // Must be < 128.
14428 Translucent bool // Sunlight is scattered and becomes normal light.
14429 Transparent bool // Sunlight isn't scattered.
14442 LiquidType LiquidType
14445 Viscosity uint8 // 0-7
14451 DrawBox, ColBox, SelBox NodeBox
14453 FootstepSnd, DiggingSnd, DugSnd SoundDef
14464 MoveResistance uint8
14466 LiquidMovePhysics bool
14467 }))(obj)).Name))[:])
14470 if len(((*(*(struct {
14482 //mt:const uint8(6)
14484 OverlayTiles [6]TileDef
14485 //mt:const uint8(6)
14486 SpecialTiles [6]TileDef
14493 ConnectTo []Content
14494 InsideTint color.NRGBA
14495 Level uint8 // Must be < 128.
14497 Translucent bool // Sunlight is scattered and becomes normal light.
14498 Transparent bool // Sunlight isn't scattered.
14511 LiquidType LiquidType
14514 Viscosity uint8 // 0-7
14520 DrawBox, ColBox, SelBox NodeBox
14522 FootstepSnd, DiggingSnd, DugSnd SoundDef
14533 MoveResistance uint8
14535 LiquidMovePhysics bool
14536 }))(obj)).Groups)) > math.MaxUint16 {
14540 x := uint16(len(((*(*(struct {
14552 //mt:const uint8(6)
14554 OverlayTiles [6]TileDef
14555 //mt:const uint8(6)
14556 SpecialTiles [6]TileDef
14563 ConnectTo []Content
14564 InsideTint color.NRGBA
14565 Level uint8 // Must be < 128.
14567 Translucent bool // Sunlight is scattered and becomes normal light.
14568 Transparent bool // Sunlight isn't scattered.
14581 LiquidType LiquidType
14584 Viscosity uint8 // 0-7
14590 DrawBox, ColBox, SelBox NodeBox
14592 FootstepSnd, DiggingSnd, DugSnd SoundDef
14603 MoveResistance uint8
14605 LiquidMovePhysics bool
14606 }))(obj)).Groups)))
14607 write16(w, uint16(x))
14609 for local239 := range (*(*(struct {
14621 //mt:const uint8(6)
14623 OverlayTiles [6]TileDef
14624 //mt:const uint8(6)
14625 SpecialTiles [6]TileDef
14632 ConnectTo []Content
14633 InsideTint color.NRGBA
14634 Level uint8 // Must be < 128.
14636 Translucent bool // Sunlight is scattered and becomes normal light.
14637 Transparent bool // Sunlight isn't scattered.
14650 LiquidType LiquidType
14653 Viscosity uint8 // 0-7
14659 DrawBox, ColBox, SelBox NodeBox
14661 FootstepSnd, DiggingSnd, DugSnd SoundDef
14672 MoveResistance uint8
14674 LiquidMovePhysics bool
14676 if err := pcall(func() {
14689 //mt:const uint8(6)
14691 OverlayTiles [6]TileDef
14692 //mt:const uint8(6)
14693 SpecialTiles [6]TileDef
14700 ConnectTo []Content
14701 InsideTint color.NRGBA
14702 Level uint8 // Must be < 128.
14704 Translucent bool // Sunlight is scattered and becomes normal light.
14705 Transparent bool // Sunlight isn't scattered.
14718 LiquidType LiquidType
14721 Viscosity uint8 // 0-7
14727 DrawBox, ColBox, SelBox NodeBox
14729 FootstepSnd, DiggingSnd, DugSnd SoundDef
14740 MoveResistance uint8
14742 LiquidMovePhysics bool
14743 }))(obj)).Groups)[local239]).serialize(w)
14748 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
14751 if err := pcall(func() {
14764 //mt:const uint8(6)
14766 OverlayTiles [6]TileDef
14767 //mt:const uint8(6)
14768 SpecialTiles [6]TileDef
14775 ConnectTo []Content
14776 InsideTint color.NRGBA
14777 Level uint8 // Must be < 128.
14779 Translucent bool // Sunlight is scattered and becomes normal light.
14780 Transparent bool // Sunlight isn't scattered.
14793 LiquidType LiquidType
14796 Viscosity uint8 // 0-7
14802 DrawBox, ColBox, SelBox NodeBox
14804 FootstepSnd, DiggingSnd, DugSnd SoundDef
14815 MoveResistance uint8
14817 LiquidMovePhysics bool
14818 }))(obj)).P1Type).serialize(w)
14823 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
14825 if err := pcall(func() {
14838 //mt:const uint8(6)
14840 OverlayTiles [6]TileDef
14841 //mt:const uint8(6)
14842 SpecialTiles [6]TileDef
14849 ConnectTo []Content
14850 InsideTint color.NRGBA
14851 Level uint8 // Must be < 128.
14853 Translucent bool // Sunlight is scattered and becomes normal light.
14854 Transparent bool // Sunlight isn't scattered.
14867 LiquidType LiquidType
14870 Viscosity uint8 // 0-7
14876 DrawBox, ColBox, SelBox NodeBox
14878 FootstepSnd, DiggingSnd, DugSnd SoundDef
14889 MoveResistance uint8
14891 LiquidMovePhysics bool
14892 }))(obj)).P2Type).serialize(w)
14897 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
14899 if err := pcall(func() {
14912 //mt:const uint8(6)
14914 OverlayTiles [6]TileDef
14915 //mt:const uint8(6)
14916 SpecialTiles [6]TileDef
14923 ConnectTo []Content
14924 InsideTint color.NRGBA
14925 Level uint8 // Must be < 128.
14927 Translucent bool // Sunlight is scattered and becomes normal light.
14928 Transparent bool // Sunlight isn't scattered.
14941 LiquidType LiquidType
14944 Viscosity uint8 // 0-7
14950 DrawBox, ColBox, SelBox NodeBox
14952 FootstepSnd, DiggingSnd, DugSnd SoundDef
14963 MoveResistance uint8
14965 LiquidMovePhysics bool
14966 }))(obj)).DrawType).serialize(w)
14971 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
14973 if len(([]byte((*(*(struct {
14985 //mt:const uint8(6)
14987 OverlayTiles [6]TileDef
14988 //mt:const uint8(6)
14989 SpecialTiles [6]TileDef
14996 ConnectTo []Content
14997 InsideTint color.NRGBA
14998 Level uint8 // Must be < 128.
15000 Translucent bool // Sunlight is scattered and becomes normal light.
15001 Transparent bool // Sunlight isn't scattered.
15014 LiquidType LiquidType
15017 Viscosity uint8 // 0-7
15023 DrawBox, ColBox, SelBox NodeBox
15025 FootstepSnd, DiggingSnd, DugSnd SoundDef
15036 MoveResistance uint8
15038 LiquidMovePhysics bool
15039 }))(obj)).Mesh))) > math.MaxUint16 {
15043 x := uint16(len(([]byte((*(*(struct {
15055 //mt:const uint8(6)
15057 OverlayTiles [6]TileDef
15058 //mt:const uint8(6)
15059 SpecialTiles [6]TileDef
15066 ConnectTo []Content
15067 InsideTint color.NRGBA
15068 Level uint8 // Must be < 128.
15070 Translucent bool // Sunlight is scattered and becomes normal light.
15071 Transparent bool // Sunlight isn't scattered.
15084 LiquidType LiquidType
15087 Viscosity uint8 // 0-7
15093 DrawBox, ColBox, SelBox NodeBox
15095 FootstepSnd, DiggingSnd, DugSnd SoundDef
15106 MoveResistance uint8
15108 LiquidMovePhysics bool
15110 write16(w, uint16(x))
15113 _, err := w.Write(([]byte((*(*(struct {
15125 //mt:const uint8(6)
15127 OverlayTiles [6]TileDef
15128 //mt:const uint8(6)
15129 SpecialTiles [6]TileDef
15136 ConnectTo []Content
15137 InsideTint color.NRGBA
15138 Level uint8 // Must be < 128.
15140 Translucent bool // Sunlight is scattered and becomes normal light.
15141 Transparent bool // Sunlight isn't scattered.
15154 LiquidType LiquidType
15157 Viscosity uint8 // 0-7
15163 DrawBox, ColBox, SelBox NodeBox
15165 FootstepSnd, DiggingSnd, DugSnd SoundDef
15176 MoveResistance uint8
15178 LiquidMovePhysics bool
15179 }))(obj)).Mesh))[:])
15195 //mt:const uint8(6)
15197 OverlayTiles [6]TileDef
15198 //mt:const uint8(6)
15199 SpecialTiles [6]TileDef
15206 ConnectTo []Content
15207 InsideTint color.NRGBA
15208 Level uint8 // Must be < 128.
15210 Translucent bool // Sunlight is scattered and becomes normal light.
15211 Transparent bool // Sunlight isn't scattered.
15224 LiquidType LiquidType
15227 Viscosity uint8 // 0-7
15233 DrawBox, ColBox, SelBox NodeBox
15235 FootstepSnd, DiggingSnd, DugSnd SoundDef
15246 MoveResistance uint8
15248 LiquidMovePhysics bool
15250 write32(w, math.Float32bits(x))
15253 local240 := uint8(6)
15256 write8(w, uint8(x))
15259 for local241 := range (*(*(struct {
15271 //mt:const uint8(6)
15273 OverlayTiles [6]TileDef
15274 //mt:const uint8(6)
15275 SpecialTiles [6]TileDef
15282 ConnectTo []Content
15283 InsideTint color.NRGBA
15284 Level uint8 // Must be < 128.
15286 Translucent bool // Sunlight is scattered and becomes normal light.
15287 Transparent bool // Sunlight isn't scattered.
15300 LiquidType LiquidType
15303 Viscosity uint8 // 0-7
15309 DrawBox, ColBox, SelBox NodeBox
15311 FootstepSnd, DiggingSnd, DugSnd SoundDef
15322 MoveResistance uint8
15324 LiquidMovePhysics bool
15326 if err := pcall(func() {
15339 //mt:const uint8(6)
15341 OverlayTiles [6]TileDef
15342 //mt:const uint8(6)
15343 SpecialTiles [6]TileDef
15350 ConnectTo []Content
15351 InsideTint color.NRGBA
15352 Level uint8 // Must be < 128.
15354 Translucent bool // Sunlight is scattered and becomes normal light.
15355 Transparent bool // Sunlight isn't scattered.
15368 LiquidType LiquidType
15371 Viscosity uint8 // 0-7
15377 DrawBox, ColBox, SelBox NodeBox
15379 FootstepSnd, DiggingSnd, DugSnd SoundDef
15390 MoveResistance uint8
15392 LiquidMovePhysics bool
15393 }))(obj)).Tiles)[local241]).serialize(w)
15398 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15401 for local242 := range (*(*(struct {
15413 //mt:const uint8(6)
15415 OverlayTiles [6]TileDef
15416 //mt:const uint8(6)
15417 SpecialTiles [6]TileDef
15424 ConnectTo []Content
15425 InsideTint color.NRGBA
15426 Level uint8 // Must be < 128.
15428 Translucent bool // Sunlight is scattered and becomes normal light.
15429 Transparent bool // Sunlight isn't scattered.
15442 LiquidType LiquidType
15445 Viscosity uint8 // 0-7
15451 DrawBox, ColBox, SelBox NodeBox
15453 FootstepSnd, DiggingSnd, DugSnd SoundDef
15464 MoveResistance uint8
15466 LiquidMovePhysics bool
15467 }))(obj)).OverlayTiles {
15468 if err := pcall(func() {
15481 //mt:const uint8(6)
15483 OverlayTiles [6]TileDef
15484 //mt:const uint8(6)
15485 SpecialTiles [6]TileDef
15492 ConnectTo []Content
15493 InsideTint color.NRGBA
15494 Level uint8 // Must be < 128.
15496 Translucent bool // Sunlight is scattered and becomes normal light.
15497 Transparent bool // Sunlight isn't scattered.
15510 LiquidType LiquidType
15513 Viscosity uint8 // 0-7
15519 DrawBox, ColBox, SelBox NodeBox
15521 FootstepSnd, DiggingSnd, DugSnd SoundDef
15532 MoveResistance uint8
15534 LiquidMovePhysics bool
15535 }))(obj)).OverlayTiles)[local242]).serialize(w)
15540 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15544 local243 := uint8(6)
15547 write8(w, uint8(x))
15550 for local244 := range (*(*(struct {
15562 //mt:const uint8(6)
15564 OverlayTiles [6]TileDef
15565 //mt:const uint8(6)
15566 SpecialTiles [6]TileDef
15573 ConnectTo []Content
15574 InsideTint color.NRGBA
15575 Level uint8 // Must be < 128.
15577 Translucent bool // Sunlight is scattered and becomes normal light.
15578 Transparent bool // Sunlight isn't scattered.
15591 LiquidType LiquidType
15594 Viscosity uint8 // 0-7
15600 DrawBox, ColBox, SelBox NodeBox
15602 FootstepSnd, DiggingSnd, DugSnd SoundDef
15613 MoveResistance uint8
15615 LiquidMovePhysics bool
15616 }))(obj)).SpecialTiles {
15617 if err := pcall(func() {
15630 //mt:const uint8(6)
15632 OverlayTiles [6]TileDef
15633 //mt:const uint8(6)
15634 SpecialTiles [6]TileDef
15641 ConnectTo []Content
15642 InsideTint color.NRGBA
15643 Level uint8 // Must be < 128.
15645 Translucent bool // Sunlight is scattered and becomes normal light.
15646 Transparent bool // Sunlight isn't scattered.
15659 LiquidType LiquidType
15662 Viscosity uint8 // 0-7
15668 DrawBox, ColBox, SelBox NodeBox
15670 FootstepSnd, DiggingSnd, DugSnd SoundDef
15681 MoveResistance uint8
15683 LiquidMovePhysics bool
15684 }))(obj)).SpecialTiles)[local244]).serialize(w)
15689 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15705 //mt:const uint8(6)
15707 OverlayTiles [6]TileDef
15708 //mt:const uint8(6)
15709 SpecialTiles [6]TileDef
15716 ConnectTo []Content
15717 InsideTint color.NRGBA
15718 Level uint8 // Must be < 128.
15720 Translucent bool // Sunlight is scattered and becomes normal light.
15721 Transparent bool // Sunlight isn't scattered.
15734 LiquidType LiquidType
15737 Viscosity uint8 // 0-7
15743 DrawBox, ColBox, SelBox NodeBox
15745 FootstepSnd, DiggingSnd, DugSnd SoundDef
15756 MoveResistance uint8
15758 LiquidMovePhysics bool
15760 w.Write([]byte{x.A, x.R, x.G, x.B})
15762 if err := pcall(func() {
15775 //mt:const uint8(6)
15777 OverlayTiles [6]TileDef
15778 //mt:const uint8(6)
15779 SpecialTiles [6]TileDef
15786 ConnectTo []Content
15787 InsideTint color.NRGBA
15788 Level uint8 // Must be < 128.
15790 Translucent bool // Sunlight is scattered and becomes normal light.
15791 Transparent bool // Sunlight isn't scattered.
15804 LiquidType LiquidType
15807 Viscosity uint8 // 0-7
15813 DrawBox, ColBox, SelBox NodeBox
15815 FootstepSnd, DiggingSnd, DugSnd SoundDef
15826 MoveResistance uint8
15828 LiquidMovePhysics bool
15829 }))(obj)).Palette).serialize(w)
15834 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
15836 if err := pcall(func() {
15849 //mt:const uint8(6)
15851 OverlayTiles [6]TileDef
15852 //mt:const uint8(6)
15853 SpecialTiles [6]TileDef
15860 ConnectTo []Content
15861 InsideTint color.NRGBA
15862 Level uint8 // Must be < 128.
15864 Translucent bool // Sunlight is scattered and becomes normal light.
15865 Transparent bool // Sunlight isn't scattered.
15878 LiquidType LiquidType
15881 Viscosity uint8 // 0-7
15887 DrawBox, ColBox, SelBox NodeBox
15889 FootstepSnd, DiggingSnd, DugSnd SoundDef
15900 MoveResistance uint8
15902 LiquidMovePhysics bool
15903 }))(obj)).Waving).serialize(w)
15908 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
15923 //mt:const uint8(6)
15925 OverlayTiles [6]TileDef
15926 //mt:const uint8(6)
15927 SpecialTiles [6]TileDef
15934 ConnectTo []Content
15935 InsideTint color.NRGBA
15936 Level uint8 // Must be < 128.
15938 Translucent bool // Sunlight is scattered and becomes normal light.
15939 Transparent bool // Sunlight isn't scattered.
15952 LiquidType LiquidType
15955 Viscosity uint8 // 0-7
15961 DrawBox, ColBox, SelBox NodeBox
15963 FootstepSnd, DiggingSnd, DugSnd SoundDef
15974 MoveResistance uint8
15976 LiquidMovePhysics bool
15977 }))(obj)).ConnectSides
15978 write8(w, uint8(x))
15980 if len(((*(*(struct {
15992 //mt:const uint8(6)
15994 OverlayTiles [6]TileDef
15995 //mt:const uint8(6)
15996 SpecialTiles [6]TileDef
16003 ConnectTo []Content
16004 InsideTint color.NRGBA
16005 Level uint8 // Must be < 128.
16007 Translucent bool // Sunlight is scattered and becomes normal light.
16008 Transparent bool // Sunlight isn't scattered.
16021 LiquidType LiquidType
16024 Viscosity uint8 // 0-7
16030 DrawBox, ColBox, SelBox NodeBox
16032 FootstepSnd, DiggingSnd, DugSnd SoundDef
16043 MoveResistance uint8
16045 LiquidMovePhysics bool
16046 }))(obj)).ConnectTo)) > math.MaxUint16 {
16050 x := uint16(len(((*(*(struct {
16062 //mt:const uint8(6)
16064 OverlayTiles [6]TileDef
16065 //mt:const uint8(6)
16066 SpecialTiles [6]TileDef
16073 ConnectTo []Content
16074 InsideTint color.NRGBA
16075 Level uint8 // Must be < 128.
16077 Translucent bool // Sunlight is scattered and becomes normal light.
16078 Transparent bool // Sunlight isn't scattered.
16091 LiquidType LiquidType
16094 Viscosity uint8 // 0-7
16100 DrawBox, ColBox, SelBox NodeBox
16102 FootstepSnd, DiggingSnd, DugSnd SoundDef
16113 MoveResistance uint8
16115 LiquidMovePhysics bool
16116 }))(obj)).ConnectTo)))
16117 write16(w, uint16(x))
16119 for local245 := range (*(*(struct {
16131 //mt:const uint8(6)
16133 OverlayTiles [6]TileDef
16134 //mt:const uint8(6)
16135 SpecialTiles [6]TileDef
16142 ConnectTo []Content
16143 InsideTint color.NRGBA
16144 Level uint8 // Must be < 128.
16146 Translucent bool // Sunlight is scattered and becomes normal light.
16147 Transparent bool // Sunlight isn't scattered.
16160 LiquidType LiquidType
16163 Viscosity uint8 // 0-7
16169 DrawBox, ColBox, SelBox NodeBox
16171 FootstepSnd, DiggingSnd, DugSnd SoundDef
16182 MoveResistance uint8
16184 LiquidMovePhysics bool
16185 }))(obj)).ConnectTo {
16186 if err := pcall(func() {
16199 //mt:const uint8(6)
16201 OverlayTiles [6]TileDef
16202 //mt:const uint8(6)
16203 SpecialTiles [6]TileDef
16210 ConnectTo []Content
16211 InsideTint color.NRGBA
16212 Level uint8 // Must be < 128.
16214 Translucent bool // Sunlight is scattered and becomes normal light.
16215 Transparent bool // Sunlight isn't scattered.
16228 LiquidType LiquidType
16231 Viscosity uint8 // 0-7
16237 DrawBox, ColBox, SelBox NodeBox
16239 FootstepSnd, DiggingSnd, DugSnd SoundDef
16250 MoveResistance uint8
16252 LiquidMovePhysics bool
16253 }))(obj)).ConnectTo)[local245]).serialize(w)
16258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
16274 //mt:const uint8(6)
16276 OverlayTiles [6]TileDef
16277 //mt:const uint8(6)
16278 SpecialTiles [6]TileDef
16285 ConnectTo []Content
16286 InsideTint color.NRGBA
16287 Level uint8 // Must be < 128.
16289 Translucent bool // Sunlight is scattered and becomes normal light.
16290 Transparent bool // Sunlight isn't scattered.
16303 LiquidType LiquidType
16306 Viscosity uint8 // 0-7
16312 DrawBox, ColBox, SelBox NodeBox
16314 FootstepSnd, DiggingSnd, DugSnd SoundDef
16325 MoveResistance uint8
16327 LiquidMovePhysics bool
16328 }))(obj)).InsideTint
16329 w.Write([]byte{x.A, x.R, x.G, x.B})
16344 //mt:const uint8(6)
16346 OverlayTiles [6]TileDef
16347 //mt:const uint8(6)
16348 SpecialTiles [6]TileDef
16355 ConnectTo []Content
16356 InsideTint color.NRGBA
16357 Level uint8 // Must be < 128.
16359 Translucent bool // Sunlight is scattered and becomes normal light.
16360 Transparent bool // Sunlight isn't scattered.
16373 LiquidType LiquidType
16376 Viscosity uint8 // 0-7
16382 DrawBox, ColBox, SelBox NodeBox
16384 FootstepSnd, DiggingSnd, DugSnd SoundDef
16395 MoveResistance uint8
16397 LiquidMovePhysics bool
16399 write8(w, uint8(x))
16414 //mt:const uint8(6)
16416 OverlayTiles [6]TileDef
16417 //mt:const uint8(6)
16418 SpecialTiles [6]TileDef
16425 ConnectTo []Content
16426 InsideTint color.NRGBA
16427 Level uint8 // Must be < 128.
16429 Translucent bool // Sunlight is scattered and becomes normal light.
16430 Transparent bool // Sunlight isn't scattered.
16443 LiquidType LiquidType
16446 Viscosity uint8 // 0-7
16452 DrawBox, ColBox, SelBox NodeBox
16454 FootstepSnd, DiggingSnd, DugSnd SoundDef
16465 MoveResistance uint8
16467 LiquidMovePhysics bool
16468 }))(obj)).Translucent
16488 //mt:const uint8(6)
16490 OverlayTiles [6]TileDef
16491 //mt:const uint8(6)
16492 SpecialTiles [6]TileDef
16499 ConnectTo []Content
16500 InsideTint color.NRGBA
16501 Level uint8 // Must be < 128.
16503 Translucent bool // Sunlight is scattered and becomes normal light.
16504 Transparent bool // Sunlight isn't scattered.
16517 LiquidType LiquidType
16520 Viscosity uint8 // 0-7
16526 DrawBox, ColBox, SelBox NodeBox
16528 FootstepSnd, DiggingSnd, DugSnd SoundDef
16539 MoveResistance uint8
16541 LiquidMovePhysics bool
16542 }))(obj)).Transparent
16562 //mt:const uint8(6)
16564 OverlayTiles [6]TileDef
16565 //mt:const uint8(6)
16566 SpecialTiles [6]TileDef
16573 ConnectTo []Content
16574 InsideTint color.NRGBA
16575 Level uint8 // Must be < 128.
16577 Translucent bool // Sunlight is scattered and becomes normal light.
16578 Transparent bool // Sunlight isn't scattered.
16591 LiquidType LiquidType
16594 Viscosity uint8 // 0-7
16600 DrawBox, ColBox, SelBox NodeBox
16602 FootstepSnd, DiggingSnd, DugSnd SoundDef
16613 MoveResistance uint8
16615 LiquidMovePhysics bool
16617 write8(w, uint8(x))
16632 //mt:const uint8(6)
16634 OverlayTiles [6]TileDef
16635 //mt:const uint8(6)
16636 SpecialTiles [6]TileDef
16643 ConnectTo []Content
16644 InsideTint color.NRGBA
16645 Level uint8 // Must be < 128.
16647 Translucent bool // Sunlight is scattered and becomes normal light.
16648 Transparent bool // Sunlight isn't scattered.
16661 LiquidType LiquidType
16664 Viscosity uint8 // 0-7
16670 DrawBox, ColBox, SelBox NodeBox
16672 FootstepSnd, DiggingSnd, DugSnd SoundDef
16683 MoveResistance uint8
16685 LiquidMovePhysics bool
16686 }))(obj)).GndContent
16706 //mt:const uint8(6)
16708 OverlayTiles [6]TileDef
16709 //mt:const uint8(6)
16710 SpecialTiles [6]TileDef
16717 ConnectTo []Content
16718 InsideTint color.NRGBA
16719 Level uint8 // Must be < 128.
16721 Translucent bool // Sunlight is scattered and becomes normal light.
16722 Transparent bool // Sunlight isn't scattered.
16735 LiquidType LiquidType
16738 Viscosity uint8 // 0-7
16744 DrawBox, ColBox, SelBox NodeBox
16746 FootstepSnd, DiggingSnd, DugSnd SoundDef
16757 MoveResistance uint8
16759 LiquidMovePhysics bool
16780 //mt:const uint8(6)
16782 OverlayTiles [6]TileDef
16783 //mt:const uint8(6)
16784 SpecialTiles [6]TileDef
16791 ConnectTo []Content
16792 InsideTint color.NRGBA
16793 Level uint8 // Must be < 128.
16795 Translucent bool // Sunlight is scattered and becomes normal light.
16796 Transparent bool // Sunlight isn't scattered.
16809 LiquidType LiquidType
16812 Viscosity uint8 // 0-7
16818 DrawBox, ColBox, SelBox NodeBox
16820 FootstepSnd, DiggingSnd, DugSnd SoundDef
16831 MoveResistance uint8
16833 LiquidMovePhysics bool
16834 }))(obj)).Pointable
16854 //mt:const uint8(6)
16856 OverlayTiles [6]TileDef
16857 //mt:const uint8(6)
16858 SpecialTiles [6]TileDef
16865 ConnectTo []Content
16866 InsideTint color.NRGBA
16867 Level uint8 // Must be < 128.
16869 Translucent bool // Sunlight is scattered and becomes normal light.
16870 Transparent bool // Sunlight isn't scattered.
16883 LiquidType LiquidType
16886 Viscosity uint8 // 0-7
16892 DrawBox, ColBox, SelBox NodeBox
16894 FootstepSnd, DiggingSnd, DugSnd SoundDef
16905 MoveResistance uint8
16907 LiquidMovePhysics bool
16928 //mt:const uint8(6)
16930 OverlayTiles [6]TileDef
16931 //mt:const uint8(6)
16932 SpecialTiles [6]TileDef
16939 ConnectTo []Content
16940 InsideTint color.NRGBA
16941 Level uint8 // Must be < 128.
16943 Translucent bool // Sunlight is scattered and becomes normal light.
16944 Transparent bool // Sunlight isn't scattered.
16957 LiquidType LiquidType
16960 Viscosity uint8 // 0-7
16966 DrawBox, ColBox, SelBox NodeBox
16968 FootstepSnd, DiggingSnd, DugSnd SoundDef
16979 MoveResistance uint8
16981 LiquidMovePhysics bool
16982 }))(obj)).Climbable
17002 //mt:const uint8(6)
17004 OverlayTiles [6]TileDef
17005 //mt:const uint8(6)
17006 SpecialTiles [6]TileDef
17013 ConnectTo []Content
17014 InsideTint color.NRGBA
17015 Level uint8 // Must be < 128.
17017 Translucent bool // Sunlight is scattered and becomes normal light.
17018 Transparent bool // Sunlight isn't scattered.
17031 LiquidType LiquidType
17034 Viscosity uint8 // 0-7
17040 DrawBox, ColBox, SelBox NodeBox
17042 FootstepSnd, DiggingSnd, DugSnd SoundDef
17053 MoveResistance uint8
17055 LiquidMovePhysics bool
17056 }))(obj)).Replaceable
17076 //mt:const uint8(6)
17078 OverlayTiles [6]TileDef
17079 //mt:const uint8(6)
17080 SpecialTiles [6]TileDef
17087 ConnectTo []Content
17088 InsideTint color.NRGBA
17089 Level uint8 // Must be < 128.
17091 Translucent bool // Sunlight is scattered and becomes normal light.
17092 Transparent bool // Sunlight isn't scattered.
17105 LiquidType LiquidType
17108 Viscosity uint8 // 0-7
17114 DrawBox, ColBox, SelBox NodeBox
17116 FootstepSnd, DiggingSnd, DugSnd SoundDef
17127 MoveResistance uint8
17129 LiquidMovePhysics bool
17130 }))(obj)).OnRightClick
17150 //mt:const uint8(6)
17152 OverlayTiles [6]TileDef
17153 //mt:const uint8(6)
17154 SpecialTiles [6]TileDef
17161 ConnectTo []Content
17162 InsideTint color.NRGBA
17163 Level uint8 // Must be < 128.
17165 Translucent bool // Sunlight is scattered and becomes normal light.
17166 Transparent bool // Sunlight isn't scattered.
17179 LiquidType LiquidType
17182 Viscosity uint8 // 0-7
17188 DrawBox, ColBox, SelBox NodeBox
17190 FootstepSnd, DiggingSnd, DugSnd SoundDef
17201 MoveResistance uint8
17203 LiquidMovePhysics bool
17204 }))(obj)).DmgPerSec
17205 write32(w, uint32(x))
17207 if err := pcall(func() {
17220 //mt:const uint8(6)
17222 OverlayTiles [6]TileDef
17223 //mt:const uint8(6)
17224 SpecialTiles [6]TileDef
17231 ConnectTo []Content
17232 InsideTint color.NRGBA
17233 Level uint8 // Must be < 128.
17235 Translucent bool // Sunlight is scattered and becomes normal light.
17236 Transparent bool // Sunlight isn't scattered.
17249 LiquidType LiquidType
17252 Viscosity uint8 // 0-7
17258 DrawBox, ColBox, SelBox NodeBox
17260 FootstepSnd, DiggingSnd, DugSnd SoundDef
17271 MoveResistance uint8
17273 LiquidMovePhysics bool
17274 }))(obj)).LiquidType).serialize(w)
17279 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
17281 if len(([]byte((*(*(struct {
17293 //mt:const uint8(6)
17295 OverlayTiles [6]TileDef
17296 //mt:const uint8(6)
17297 SpecialTiles [6]TileDef
17304 ConnectTo []Content
17305 InsideTint color.NRGBA
17306 Level uint8 // Must be < 128.
17308 Translucent bool // Sunlight is scattered and becomes normal light.
17309 Transparent bool // Sunlight isn't scattered.
17322 LiquidType LiquidType
17325 Viscosity uint8 // 0-7
17331 DrawBox, ColBox, SelBox NodeBox
17333 FootstepSnd, DiggingSnd, DugSnd SoundDef
17344 MoveResistance uint8
17346 LiquidMovePhysics bool
17347 }))(obj)).FlowingAlt))) > math.MaxUint16 {
17351 x := uint16(len(([]byte((*(*(struct {
17363 //mt:const uint8(6)
17365 OverlayTiles [6]TileDef
17366 //mt:const uint8(6)
17367 SpecialTiles [6]TileDef
17374 ConnectTo []Content
17375 InsideTint color.NRGBA
17376 Level uint8 // Must be < 128.
17378 Translucent bool // Sunlight is scattered and becomes normal light.
17379 Transparent bool // Sunlight isn't scattered.
17392 LiquidType LiquidType
17395 Viscosity uint8 // 0-7
17401 DrawBox, ColBox, SelBox NodeBox
17403 FootstepSnd, DiggingSnd, DugSnd SoundDef
17414 MoveResistance uint8
17416 LiquidMovePhysics bool
17417 }))(obj)).FlowingAlt))))
17418 write16(w, uint16(x))
17421 _, err := w.Write(([]byte((*(*(struct {
17433 //mt:const uint8(6)
17435 OverlayTiles [6]TileDef
17436 //mt:const uint8(6)
17437 SpecialTiles [6]TileDef
17444 ConnectTo []Content
17445 InsideTint color.NRGBA
17446 Level uint8 // Must be < 128.
17448 Translucent bool // Sunlight is scattered and becomes normal light.
17449 Transparent bool // Sunlight isn't scattered.
17462 LiquidType LiquidType
17465 Viscosity uint8 // 0-7
17471 DrawBox, ColBox, SelBox NodeBox
17473 FootstepSnd, DiggingSnd, DugSnd SoundDef
17484 MoveResistance uint8
17486 LiquidMovePhysics bool
17487 }))(obj)).FlowingAlt))[:])
17490 if len(([]byte((*(*(struct {
17502 //mt:const uint8(6)
17504 OverlayTiles [6]TileDef
17505 //mt:const uint8(6)
17506 SpecialTiles [6]TileDef
17513 ConnectTo []Content
17514 InsideTint color.NRGBA
17515 Level uint8 // Must be < 128.
17517 Translucent bool // Sunlight is scattered and becomes normal light.
17518 Transparent bool // Sunlight isn't scattered.
17531 LiquidType LiquidType
17534 Viscosity uint8 // 0-7
17540 DrawBox, ColBox, SelBox NodeBox
17542 FootstepSnd, DiggingSnd, DugSnd SoundDef
17553 MoveResistance uint8
17555 LiquidMovePhysics bool
17556 }))(obj)).SrcAlt))) > math.MaxUint16 {
17560 x := uint16(len(([]byte((*(*(struct {
17572 //mt:const uint8(6)
17574 OverlayTiles [6]TileDef
17575 //mt:const uint8(6)
17576 SpecialTiles [6]TileDef
17583 ConnectTo []Content
17584 InsideTint color.NRGBA
17585 Level uint8 // Must be < 128.
17587 Translucent bool // Sunlight is scattered and becomes normal light.
17588 Transparent bool // Sunlight isn't scattered.
17601 LiquidType LiquidType
17604 Viscosity uint8 // 0-7
17610 DrawBox, ColBox, SelBox NodeBox
17612 FootstepSnd, DiggingSnd, DugSnd SoundDef
17623 MoveResistance uint8
17625 LiquidMovePhysics bool
17626 }))(obj)).SrcAlt))))
17627 write16(w, uint16(x))
17630 _, err := w.Write(([]byte((*(*(struct {
17642 //mt:const uint8(6)
17644 OverlayTiles [6]TileDef
17645 //mt:const uint8(6)
17646 SpecialTiles [6]TileDef
17653 ConnectTo []Content
17654 InsideTint color.NRGBA
17655 Level uint8 // Must be < 128.
17657 Translucent bool // Sunlight is scattered and becomes normal light.
17658 Transparent bool // Sunlight isn't scattered.
17671 LiquidType LiquidType
17674 Viscosity uint8 // 0-7
17680 DrawBox, ColBox, SelBox NodeBox
17682 FootstepSnd, DiggingSnd, DugSnd SoundDef
17693 MoveResistance uint8
17695 LiquidMovePhysics bool
17696 }))(obj)).SrcAlt))[:])
17712 //mt:const uint8(6)
17714 OverlayTiles [6]TileDef
17715 //mt:const uint8(6)
17716 SpecialTiles [6]TileDef
17723 ConnectTo []Content
17724 InsideTint color.NRGBA
17725 Level uint8 // Must be < 128.
17727 Translucent bool // Sunlight is scattered and becomes normal light.
17728 Transparent bool // Sunlight isn't scattered.
17741 LiquidType LiquidType
17744 Viscosity uint8 // 0-7
17750 DrawBox, ColBox, SelBox NodeBox
17752 FootstepSnd, DiggingSnd, DugSnd SoundDef
17763 MoveResistance uint8
17765 LiquidMovePhysics bool
17766 }))(obj)).Viscosity
17767 write8(w, uint8(x))
17782 //mt:const uint8(6)
17784 OverlayTiles [6]TileDef
17785 //mt:const uint8(6)
17786 SpecialTiles [6]TileDef
17793 ConnectTo []Content
17794 InsideTint color.NRGBA
17795 Level uint8 // Must be < 128.
17797 Translucent bool // Sunlight is scattered and becomes normal light.
17798 Transparent bool // Sunlight isn't scattered.
17811 LiquidType LiquidType
17814 Viscosity uint8 // 0-7
17820 DrawBox, ColBox, SelBox NodeBox
17822 FootstepSnd, DiggingSnd, DugSnd SoundDef
17833 MoveResistance uint8
17835 LiquidMovePhysics bool
17836 }))(obj)).LiqRenewable
17856 //mt:const uint8(6)
17858 OverlayTiles [6]TileDef
17859 //mt:const uint8(6)
17860 SpecialTiles [6]TileDef
17867 ConnectTo []Content
17868 InsideTint color.NRGBA
17869 Level uint8 // Must be < 128.
17871 Translucent bool // Sunlight is scattered and becomes normal light.
17872 Transparent bool // Sunlight isn't scattered.
17885 LiquidType LiquidType
17888 Viscosity uint8 // 0-7
17894 DrawBox, ColBox, SelBox NodeBox
17896 FootstepSnd, DiggingSnd, DugSnd SoundDef
17907 MoveResistance uint8
17909 LiquidMovePhysics bool
17910 }))(obj)).FlowRange
17911 write8(w, uint8(x))
17926 //mt:const uint8(6)
17928 OverlayTiles [6]TileDef
17929 //mt:const uint8(6)
17930 SpecialTiles [6]TileDef
17937 ConnectTo []Content
17938 InsideTint color.NRGBA
17939 Level uint8 // Must be < 128.
17941 Translucent bool // Sunlight is scattered and becomes normal light.
17942 Transparent bool // Sunlight isn't scattered.
17955 LiquidType LiquidType
17958 Viscosity uint8 // 0-7
17964 DrawBox, ColBox, SelBox NodeBox
17966 FootstepSnd, DiggingSnd, DugSnd SoundDef
17977 MoveResistance uint8
17979 LiquidMovePhysics bool
17981 write8(w, uint8(x))
17996 //mt:const uint8(6)
17998 OverlayTiles [6]TileDef
17999 //mt:const uint8(6)
18000 SpecialTiles [6]TileDef
18007 ConnectTo []Content
18008 InsideTint color.NRGBA
18009 Level uint8 // Must be < 128.
18011 Translucent bool // Sunlight is scattered and becomes normal light.
18012 Transparent bool // Sunlight isn't scattered.
18025 LiquidType LiquidType
18028 Viscosity uint8 // 0-7
18034 DrawBox, ColBox, SelBox NodeBox
18036 FootstepSnd, DiggingSnd, DugSnd SoundDef
18047 MoveResistance uint8
18049 LiquidMovePhysics bool
18050 }))(obj)).Floodable
18057 if err := pcall(func() {
18070 //mt:const uint8(6)
18072 OverlayTiles [6]TileDef
18073 //mt:const uint8(6)
18074 SpecialTiles [6]TileDef
18081 ConnectTo []Content
18082 InsideTint color.NRGBA
18083 Level uint8 // Must be < 128.
18085 Translucent bool // Sunlight is scattered and becomes normal light.
18086 Transparent bool // Sunlight isn't scattered.
18099 LiquidType LiquidType
18102 Viscosity uint8 // 0-7
18108 DrawBox, ColBox, SelBox NodeBox
18110 FootstepSnd, DiggingSnd, DugSnd SoundDef
18121 MoveResistance uint8
18123 LiquidMovePhysics bool
18124 }))(obj)).DrawBox).serialize(w)
18129 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18131 if err := pcall(func() {
18144 //mt:const uint8(6)
18146 OverlayTiles [6]TileDef
18147 //mt:const uint8(6)
18148 SpecialTiles [6]TileDef
18155 ConnectTo []Content
18156 InsideTint color.NRGBA
18157 Level uint8 // Must be < 128.
18159 Translucent bool // Sunlight is scattered and becomes normal light.
18160 Transparent bool // Sunlight isn't scattered.
18173 LiquidType LiquidType
18176 Viscosity uint8 // 0-7
18182 DrawBox, ColBox, SelBox NodeBox
18184 FootstepSnd, DiggingSnd, DugSnd SoundDef
18195 MoveResistance uint8
18197 LiquidMovePhysics bool
18198 }))(obj)).ColBox).serialize(w)
18203 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18205 if err := pcall(func() {
18218 //mt:const uint8(6)
18220 OverlayTiles [6]TileDef
18221 //mt:const uint8(6)
18222 SpecialTiles [6]TileDef
18229 ConnectTo []Content
18230 InsideTint color.NRGBA
18231 Level uint8 // Must be < 128.
18233 Translucent bool // Sunlight is scattered and becomes normal light.
18234 Transparent bool // Sunlight isn't scattered.
18247 LiquidType LiquidType
18250 Viscosity uint8 // 0-7
18256 DrawBox, ColBox, SelBox NodeBox
18258 FootstepSnd, DiggingSnd, DugSnd SoundDef
18269 MoveResistance uint8
18271 LiquidMovePhysics bool
18272 }))(obj)).SelBox).serialize(w)
18277 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18279 if err := pcall(func() {
18292 //mt:const uint8(6)
18294 OverlayTiles [6]TileDef
18295 //mt:const uint8(6)
18296 SpecialTiles [6]TileDef
18303 ConnectTo []Content
18304 InsideTint color.NRGBA
18305 Level uint8 // Must be < 128.
18307 Translucent bool // Sunlight is scattered and becomes normal light.
18308 Transparent bool // Sunlight isn't scattered.
18321 LiquidType LiquidType
18324 Viscosity uint8 // 0-7
18330 DrawBox, ColBox, SelBox NodeBox
18332 FootstepSnd, DiggingSnd, DugSnd SoundDef
18343 MoveResistance uint8
18345 LiquidMovePhysics bool
18346 }))(obj)).FootstepSnd).serialize(w)
18351 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18353 if err := pcall(func() {
18366 //mt:const uint8(6)
18368 OverlayTiles [6]TileDef
18369 //mt:const uint8(6)
18370 SpecialTiles [6]TileDef
18377 ConnectTo []Content
18378 InsideTint color.NRGBA
18379 Level uint8 // Must be < 128.
18381 Translucent bool // Sunlight is scattered and becomes normal light.
18382 Transparent bool // Sunlight isn't scattered.
18395 LiquidType LiquidType
18398 Viscosity uint8 // 0-7
18404 DrawBox, ColBox, SelBox NodeBox
18406 FootstepSnd, DiggingSnd, DugSnd SoundDef
18417 MoveResistance uint8
18419 LiquidMovePhysics bool
18420 }))(obj)).DiggingSnd).serialize(w)
18425 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18427 if err := pcall(func() {
18440 //mt:const uint8(6)
18442 OverlayTiles [6]TileDef
18443 //mt:const uint8(6)
18444 SpecialTiles [6]TileDef
18451 ConnectTo []Content
18452 InsideTint color.NRGBA
18453 Level uint8 // Must be < 128.
18455 Translucent bool // Sunlight is scattered and becomes normal light.
18456 Transparent bool // Sunlight isn't scattered.
18469 LiquidType LiquidType
18472 Viscosity uint8 // 0-7
18478 DrawBox, ColBox, SelBox NodeBox
18480 FootstepSnd, DiggingSnd, DugSnd SoundDef
18491 MoveResistance uint8
18493 LiquidMovePhysics bool
18494 }))(obj)).DugSnd).serialize(w)
18499 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18514 //mt:const uint8(6)
18516 OverlayTiles [6]TileDef
18517 //mt:const uint8(6)
18518 SpecialTiles [6]TileDef
18525 ConnectTo []Content
18526 InsideTint color.NRGBA
18527 Level uint8 // Must be < 128.
18529 Translucent bool // Sunlight is scattered and becomes normal light.
18530 Transparent bool // Sunlight isn't scattered.
18543 LiquidType LiquidType
18546 Viscosity uint8 // 0-7
18552 DrawBox, ColBox, SelBox NodeBox
18554 FootstepSnd, DiggingSnd, DugSnd SoundDef
18565 MoveResistance uint8
18567 LiquidMovePhysics bool
18568 }))(obj)).LegacyFaceDir
18588 //mt:const uint8(6)
18590 OverlayTiles [6]TileDef
18591 //mt:const uint8(6)
18592 SpecialTiles [6]TileDef
18599 ConnectTo []Content
18600 InsideTint color.NRGBA
18601 Level uint8 // Must be < 128.
18603 Translucent bool // Sunlight is scattered and becomes normal light.
18604 Transparent bool // Sunlight isn't scattered.
18617 LiquidType LiquidType
18620 Viscosity uint8 // 0-7
18626 DrawBox, ColBox, SelBox NodeBox
18628 FootstepSnd, DiggingSnd, DugSnd SoundDef
18639 MoveResistance uint8
18641 LiquidMovePhysics bool
18642 }))(obj)).LegacyMounted
18649 if len(([]byte((*(*(struct {
18661 //mt:const uint8(6)
18663 OverlayTiles [6]TileDef
18664 //mt:const uint8(6)
18665 SpecialTiles [6]TileDef
18672 ConnectTo []Content
18673 InsideTint color.NRGBA
18674 Level uint8 // Must be < 128.
18676 Translucent bool // Sunlight is scattered and becomes normal light.
18677 Transparent bool // Sunlight isn't scattered.
18690 LiquidType LiquidType
18693 Viscosity uint8 // 0-7
18699 DrawBox, ColBox, SelBox NodeBox
18701 FootstepSnd, DiggingSnd, DugSnd SoundDef
18712 MoveResistance uint8
18714 LiquidMovePhysics bool
18715 }))(obj)).DigPredict))) > math.MaxUint16 {
18719 x := uint16(len(([]byte((*(*(struct {
18731 //mt:const uint8(6)
18733 OverlayTiles [6]TileDef
18734 //mt:const uint8(6)
18735 SpecialTiles [6]TileDef
18742 ConnectTo []Content
18743 InsideTint color.NRGBA
18744 Level uint8 // Must be < 128.
18746 Translucent bool // Sunlight is scattered and becomes normal light.
18747 Transparent bool // Sunlight isn't scattered.
18760 LiquidType LiquidType
18763 Viscosity uint8 // 0-7
18769 DrawBox, ColBox, SelBox NodeBox
18771 FootstepSnd, DiggingSnd, DugSnd SoundDef
18782 MoveResistance uint8
18784 LiquidMovePhysics bool
18785 }))(obj)).DigPredict))))
18786 write16(w, uint16(x))
18789 _, err := w.Write(([]byte((*(*(struct {
18801 //mt:const uint8(6)
18803 OverlayTiles [6]TileDef
18804 //mt:const uint8(6)
18805 SpecialTiles [6]TileDef
18812 ConnectTo []Content
18813 InsideTint color.NRGBA
18814 Level uint8 // Must be < 128.
18816 Translucent bool // Sunlight is scattered and becomes normal light.
18817 Transparent bool // Sunlight isn't scattered.
18830 LiquidType LiquidType
18833 Viscosity uint8 // 0-7
18839 DrawBox, ColBox, SelBox NodeBox
18841 FootstepSnd, DiggingSnd, DugSnd SoundDef
18852 MoveResistance uint8
18854 LiquidMovePhysics bool
18855 }))(obj)).DigPredict))[:])
18871 //mt:const uint8(6)
18873 OverlayTiles [6]TileDef
18874 //mt:const uint8(6)
18875 SpecialTiles [6]TileDef
18882 ConnectTo []Content
18883 InsideTint color.NRGBA
18884 Level uint8 // Must be < 128.
18886 Translucent bool // Sunlight is scattered and becomes normal light.
18887 Transparent bool // Sunlight isn't scattered.
18900 LiquidType LiquidType
18903 Viscosity uint8 // 0-7
18909 DrawBox, ColBox, SelBox NodeBox
18911 FootstepSnd, DiggingSnd, DugSnd SoundDef
18922 MoveResistance uint8
18924 LiquidMovePhysics bool
18926 write8(w, uint8(x))
18928 if err := pcall(func() {
18941 //mt:const uint8(6)
18943 OverlayTiles [6]TileDef
18944 //mt:const uint8(6)
18945 SpecialTiles [6]TileDef
18952 ConnectTo []Content
18953 InsideTint color.NRGBA
18954 Level uint8 // Must be < 128.
18956 Translucent bool // Sunlight is scattered and becomes normal light.
18957 Transparent bool // Sunlight isn't scattered.
18970 LiquidType LiquidType
18973 Viscosity uint8 // 0-7
18979 DrawBox, ColBox, SelBox NodeBox
18981 FootstepSnd, DiggingSnd, DugSnd SoundDef
18992 MoveResistance uint8
18994 LiquidMovePhysics bool
18995 }))(obj)).AlphaUse).serialize(w)
19000 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
19015 //mt:const uint8(6)
19017 OverlayTiles [6]TileDef
19018 //mt:const uint8(6)
19019 SpecialTiles [6]TileDef
19026 ConnectTo []Content
19027 InsideTint color.NRGBA
19028 Level uint8 // Must be < 128.
19030 Translucent bool // Sunlight is scattered and becomes normal light.
19031 Transparent bool // Sunlight isn't scattered.
19044 LiquidType LiquidType
19047 Viscosity uint8 // 0-7
19053 DrawBox, ColBox, SelBox NodeBox
19055 FootstepSnd, DiggingSnd, DugSnd SoundDef
19066 MoveResistance uint8
19068 LiquidMovePhysics bool
19069 }))(obj)).MoveResistance
19070 write8(w, uint8(x))
19085 //mt:const uint8(6)
19087 OverlayTiles [6]TileDef
19088 //mt:const uint8(6)
19089 SpecialTiles [6]TileDef
19096 ConnectTo []Content
19097 InsideTint color.NRGBA
19098 Level uint8 // Must be < 128.
19100 Translucent bool // Sunlight is scattered and becomes normal light.
19101 Transparent bool // Sunlight isn't scattered.
19114 LiquidType LiquidType
19117 Viscosity uint8 // 0-7
19123 DrawBox, ColBox, SelBox NodeBox
19125 FootstepSnd, DiggingSnd, DugSnd SoundDef
19136 MoveResistance uint8
19138 LiquidMovePhysics bool
19139 }))(obj)).LiquidMovePhysics
19149 if len((buf.Bytes())) > math.MaxUint16 {
19153 x := uint16(len((buf.Bytes())))
19154 write16(w, uint16(x))
19157 _, err := w.Write((buf.Bytes())[:])
19164 func (obj *NodeDef) deserialize(r io.Reader) {
19165 if err := pcall(func() {
19178 //mt:const uint8(6)
19180 OverlayTiles [6]TileDef
19181 //mt:const uint8(6)
19182 SpecialTiles [6]TileDef
19189 ConnectTo []Content
19190 InsideTint color.NRGBA
19191 Level uint8 // Must be < 128.
19193 Translucent bool // Sunlight is scattered and becomes normal light.
19194 Transparent bool // Sunlight isn't scattered.
19207 LiquidType LiquidType
19210 Viscosity uint8 // 0-7
19216 DrawBox, ColBox, SelBox NodeBox
19218 FootstepSnd, DiggingSnd, DugSnd SoundDef
19229 MoveResistance uint8
19231 LiquidMovePhysics bool
19232 }))(obj)).Param0).deserialize(r)
19237 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
19245 r := &io.LimitedReader{R: r, N: int64(n)}
19248 local247 := uint8(13)
19253 if local246 != local247 {
19254 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
19257 var local248 []uint8
19258 var local249 uint16
19263 (local248) = make([]uint8, local249)
19265 _, err := io.ReadFull(r, (local248)[:])
19280 //mt:const uint8(6)
19282 OverlayTiles [6]TileDef
19283 //mt:const uint8(6)
19284 SpecialTiles [6]TileDef
19291 ConnectTo []Content
19292 InsideTint color.NRGBA
19293 Level uint8 // Must be < 128.
19295 Translucent bool // Sunlight is scattered and becomes normal light.
19296 Transparent bool // Sunlight isn't scattered.
19309 LiquidType LiquidType
19312 Viscosity uint8 // 0-7
19318 DrawBox, ColBox, SelBox NodeBox
19320 FootstepSnd, DiggingSnd, DugSnd SoundDef
19331 MoveResistance uint8
19333 LiquidMovePhysics bool
19334 }))(obj)).Name) = string(local248)
19335 var local250 uint16
19352 //mt:const uint8(6)
19354 OverlayTiles [6]TileDef
19355 //mt:const uint8(6)
19356 SpecialTiles [6]TileDef
19363 ConnectTo []Content
19364 InsideTint color.NRGBA
19365 Level uint8 // Must be < 128.
19367 Translucent bool // Sunlight is scattered and becomes normal light.
19368 Transparent bool // Sunlight isn't scattered.
19381 LiquidType LiquidType
19384 Viscosity uint8 // 0-7
19390 DrawBox, ColBox, SelBox NodeBox
19392 FootstepSnd, DiggingSnd, DugSnd SoundDef
19403 MoveResistance uint8
19405 LiquidMovePhysics bool
19406 }))(obj)).Groups) = make([]Group, local250)
19407 for local251 := range (*(*(struct {
19419 //mt:const uint8(6)
19421 OverlayTiles [6]TileDef
19422 //mt:const uint8(6)
19423 SpecialTiles [6]TileDef
19430 ConnectTo []Content
19431 InsideTint color.NRGBA
19432 Level uint8 // Must be < 128.
19434 Translucent bool // Sunlight is scattered and becomes normal light.
19435 Transparent bool // Sunlight isn't scattered.
19448 LiquidType LiquidType
19451 Viscosity uint8 // 0-7
19457 DrawBox, ColBox, SelBox NodeBox
19459 FootstepSnd, DiggingSnd, DugSnd SoundDef
19470 MoveResistance uint8
19472 LiquidMovePhysics bool
19474 if err := pcall(func() {
19487 //mt:const uint8(6)
19489 OverlayTiles [6]TileDef
19490 //mt:const uint8(6)
19491 SpecialTiles [6]TileDef
19498 ConnectTo []Content
19499 InsideTint color.NRGBA
19500 Level uint8 // Must be < 128.
19502 Translucent bool // Sunlight is scattered and becomes normal light.
19503 Transparent bool // Sunlight isn't scattered.
19516 LiquidType LiquidType
19519 Viscosity uint8 // 0-7
19525 DrawBox, ColBox, SelBox NodeBox
19527 FootstepSnd, DiggingSnd, DugSnd SoundDef
19538 MoveResistance uint8
19540 LiquidMovePhysics bool
19541 }))(obj)).Groups)[local251]).deserialize(r)
19546 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
19549 if err := pcall(func() {
19562 //mt:const uint8(6)
19564 OverlayTiles [6]TileDef
19565 //mt:const uint8(6)
19566 SpecialTiles [6]TileDef
19573 ConnectTo []Content
19574 InsideTint color.NRGBA
19575 Level uint8 // Must be < 128.
19577 Translucent bool // Sunlight is scattered and becomes normal light.
19578 Transparent bool // Sunlight isn't scattered.
19591 LiquidType LiquidType
19594 Viscosity uint8 // 0-7
19600 DrawBox, ColBox, SelBox NodeBox
19602 FootstepSnd, DiggingSnd, DugSnd SoundDef
19613 MoveResistance uint8
19615 LiquidMovePhysics bool
19616 }))(obj)).P1Type).deserialize(r)
19621 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
19623 if err := pcall(func() {
19636 //mt:const uint8(6)
19638 OverlayTiles [6]TileDef
19639 //mt:const uint8(6)
19640 SpecialTiles [6]TileDef
19647 ConnectTo []Content
19648 InsideTint color.NRGBA
19649 Level uint8 // Must be < 128.
19651 Translucent bool // Sunlight is scattered and becomes normal light.
19652 Transparent bool // Sunlight isn't scattered.
19665 LiquidType LiquidType
19668 Viscosity uint8 // 0-7
19674 DrawBox, ColBox, SelBox NodeBox
19676 FootstepSnd, DiggingSnd, DugSnd SoundDef
19687 MoveResistance uint8
19689 LiquidMovePhysics bool
19690 }))(obj)).P2Type).deserialize(r)
19695 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
19697 if err := pcall(func() {
19710 //mt:const uint8(6)
19712 OverlayTiles [6]TileDef
19713 //mt:const uint8(6)
19714 SpecialTiles [6]TileDef
19721 ConnectTo []Content
19722 InsideTint color.NRGBA
19723 Level uint8 // Must be < 128.
19725 Translucent bool // Sunlight is scattered and becomes normal light.
19726 Transparent bool // Sunlight isn't scattered.
19739 LiquidType LiquidType
19742 Viscosity uint8 // 0-7
19748 DrawBox, ColBox, SelBox NodeBox
19750 FootstepSnd, DiggingSnd, DugSnd SoundDef
19761 MoveResistance uint8
19763 LiquidMovePhysics bool
19764 }))(obj)).DrawType).deserialize(r)
19769 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
19771 var local252 []uint8
19772 var local253 uint16
19777 (local252) = make([]uint8, local253)
19779 _, err := io.ReadFull(r, (local252)[:])
19794 //mt:const uint8(6)
19796 OverlayTiles [6]TileDef
19797 //mt:const uint8(6)
19798 SpecialTiles [6]TileDef
19805 ConnectTo []Content
19806 InsideTint color.NRGBA
19807 Level uint8 // Must be < 128.
19809 Translucent bool // Sunlight is scattered and becomes normal light.
19810 Transparent bool // Sunlight isn't scattered.
19823 LiquidType LiquidType
19826 Viscosity uint8 // 0-7
19832 DrawBox, ColBox, SelBox NodeBox
19834 FootstepSnd, DiggingSnd, DugSnd SoundDef
19845 MoveResistance uint8
19847 LiquidMovePhysics bool
19848 }))(obj)).Mesh) = string(local252)
19850 p := &(*(*(struct {
19862 //mt:const uint8(6)
19864 OverlayTiles [6]TileDef
19865 //mt:const uint8(6)
19866 SpecialTiles [6]TileDef
19873 ConnectTo []Content
19874 InsideTint color.NRGBA
19875 Level uint8 // Must be < 128.
19877 Translucent bool // Sunlight is scattered and becomes normal light.
19878 Transparent bool // Sunlight isn't scattered.
19891 LiquidType LiquidType
19894 Viscosity uint8 // 0-7
19900 DrawBox, ColBox, SelBox NodeBox
19902 FootstepSnd, DiggingSnd, DugSnd SoundDef
19913 MoveResistance uint8
19915 LiquidMovePhysics bool
19917 *p = math.Float32frombits(read32(r))
19921 local255 := uint8(6)
19926 if local254 != local255 {
19927 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19930 for local256 := range (*(*(struct {
19942 //mt:const uint8(6)
19944 OverlayTiles [6]TileDef
19945 //mt:const uint8(6)
19946 SpecialTiles [6]TileDef
19953 ConnectTo []Content
19954 InsideTint color.NRGBA
19955 Level uint8 // Must be < 128.
19957 Translucent bool // Sunlight is scattered and becomes normal light.
19958 Transparent bool // Sunlight isn't scattered.
19971 LiquidType LiquidType
19974 Viscosity uint8 // 0-7
19980 DrawBox, ColBox, SelBox NodeBox
19982 FootstepSnd, DiggingSnd, DugSnd SoundDef
19993 MoveResistance uint8
19995 LiquidMovePhysics bool
19997 if err := pcall(func() {
20010 //mt:const uint8(6)
20012 OverlayTiles [6]TileDef
20013 //mt:const uint8(6)
20014 SpecialTiles [6]TileDef
20021 ConnectTo []Content
20022 InsideTint color.NRGBA
20023 Level uint8 // Must be < 128.
20025 Translucent bool // Sunlight is scattered and becomes normal light.
20026 Transparent bool // Sunlight isn't scattered.
20039 LiquidType LiquidType
20042 Viscosity uint8 // 0-7
20048 DrawBox, ColBox, SelBox NodeBox
20050 FootstepSnd, DiggingSnd, DugSnd SoundDef
20061 MoveResistance uint8
20063 LiquidMovePhysics bool
20064 }))(obj)).Tiles)[local256]).deserialize(r)
20069 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20072 for local257 := range (*(*(struct {
20084 //mt:const uint8(6)
20086 OverlayTiles [6]TileDef
20087 //mt:const uint8(6)
20088 SpecialTiles [6]TileDef
20095 ConnectTo []Content
20096 InsideTint color.NRGBA
20097 Level uint8 // Must be < 128.
20099 Translucent bool // Sunlight is scattered and becomes normal light.
20100 Transparent bool // Sunlight isn't scattered.
20113 LiquidType LiquidType
20116 Viscosity uint8 // 0-7
20122 DrawBox, ColBox, SelBox NodeBox
20124 FootstepSnd, DiggingSnd, DugSnd SoundDef
20135 MoveResistance uint8
20137 LiquidMovePhysics bool
20138 }))(obj)).OverlayTiles {
20139 if err := pcall(func() {
20152 //mt:const uint8(6)
20154 OverlayTiles [6]TileDef
20155 //mt:const uint8(6)
20156 SpecialTiles [6]TileDef
20163 ConnectTo []Content
20164 InsideTint color.NRGBA
20165 Level uint8 // Must be < 128.
20167 Translucent bool // Sunlight is scattered and becomes normal light.
20168 Transparent bool // Sunlight isn't scattered.
20181 LiquidType LiquidType
20184 Viscosity uint8 // 0-7
20190 DrawBox, ColBox, SelBox NodeBox
20192 FootstepSnd, DiggingSnd, DugSnd SoundDef
20203 MoveResistance uint8
20205 LiquidMovePhysics bool
20206 }))(obj)).OverlayTiles)[local257]).deserialize(r)
20211 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20216 local259 := uint8(6)
20221 if local258 != local259 {
20222 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
20225 for local260 := range (*(*(struct {
20237 //mt:const uint8(6)
20239 OverlayTiles [6]TileDef
20240 //mt:const uint8(6)
20241 SpecialTiles [6]TileDef
20248 ConnectTo []Content
20249 InsideTint color.NRGBA
20250 Level uint8 // Must be < 128.
20252 Translucent bool // Sunlight is scattered and becomes normal light.
20253 Transparent bool // Sunlight isn't scattered.
20266 LiquidType LiquidType
20269 Viscosity uint8 // 0-7
20275 DrawBox, ColBox, SelBox NodeBox
20277 FootstepSnd, DiggingSnd, DugSnd SoundDef
20288 MoveResistance uint8
20290 LiquidMovePhysics bool
20291 }))(obj)).SpecialTiles {
20292 if err := pcall(func() {
20305 //mt:const uint8(6)
20307 OverlayTiles [6]TileDef
20308 //mt:const uint8(6)
20309 SpecialTiles [6]TileDef
20316 ConnectTo []Content
20317 InsideTint color.NRGBA
20318 Level uint8 // Must be < 128.
20320 Translucent bool // Sunlight is scattered and becomes normal light.
20321 Transparent bool // Sunlight isn't scattered.
20334 LiquidType LiquidType
20337 Viscosity uint8 // 0-7
20343 DrawBox, ColBox, SelBox NodeBox
20345 FootstepSnd, DiggingSnd, DugSnd SoundDef
20356 MoveResistance uint8
20358 LiquidMovePhysics bool
20359 }))(obj)).SpecialTiles)[local260]).deserialize(r)
20364 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20368 p := &(*(*(struct {
20380 //mt:const uint8(6)
20382 OverlayTiles [6]TileDef
20383 //mt:const uint8(6)
20384 SpecialTiles [6]TileDef
20391 ConnectTo []Content
20392 InsideTint color.NRGBA
20393 Level uint8 // Must be < 128.
20395 Translucent bool // Sunlight is scattered and becomes normal light.
20396 Transparent bool // Sunlight isn't scattered.
20409 LiquidType LiquidType
20412 Viscosity uint8 // 0-7
20418 DrawBox, ColBox, SelBox NodeBox
20420 FootstepSnd, DiggingSnd, DugSnd SoundDef
20431 MoveResistance uint8
20433 LiquidMovePhysics bool
20435 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20437 if err := pcall(func() {
20450 //mt:const uint8(6)
20452 OverlayTiles [6]TileDef
20453 //mt:const uint8(6)
20454 SpecialTiles [6]TileDef
20461 ConnectTo []Content
20462 InsideTint color.NRGBA
20463 Level uint8 // Must be < 128.
20465 Translucent bool // Sunlight is scattered and becomes normal light.
20466 Transparent bool // Sunlight isn't scattered.
20479 LiquidType LiquidType
20482 Viscosity uint8 // 0-7
20488 DrawBox, ColBox, SelBox NodeBox
20490 FootstepSnd, DiggingSnd, DugSnd SoundDef
20501 MoveResistance uint8
20503 LiquidMovePhysics bool
20504 }))(obj)).Palette).deserialize(r)
20509 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
20511 if err := pcall(func() {
20524 //mt:const uint8(6)
20526 OverlayTiles [6]TileDef
20527 //mt:const uint8(6)
20528 SpecialTiles [6]TileDef
20535 ConnectTo []Content
20536 InsideTint color.NRGBA
20537 Level uint8 // Must be < 128.
20539 Translucent bool // Sunlight is scattered and becomes normal light.
20540 Transparent bool // Sunlight isn't scattered.
20553 LiquidType LiquidType
20556 Viscosity uint8 // 0-7
20562 DrawBox, ColBox, SelBox NodeBox
20564 FootstepSnd, DiggingSnd, DugSnd SoundDef
20575 MoveResistance uint8
20577 LiquidMovePhysics bool
20578 }))(obj)).Waving).deserialize(r)
20583 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
20586 p := &(*(*(struct {
20598 //mt:const uint8(6)
20600 OverlayTiles [6]TileDef
20601 //mt:const uint8(6)
20602 SpecialTiles [6]TileDef
20609 ConnectTo []Content
20610 InsideTint color.NRGBA
20611 Level uint8 // Must be < 128.
20613 Translucent bool // Sunlight is scattered and becomes normal light.
20614 Transparent bool // Sunlight isn't scattered.
20627 LiquidType LiquidType
20630 Viscosity uint8 // 0-7
20636 DrawBox, ColBox, SelBox NodeBox
20638 FootstepSnd, DiggingSnd, DugSnd SoundDef
20649 MoveResistance uint8
20651 LiquidMovePhysics bool
20652 }))(obj)).ConnectSides
20655 var local261 uint16
20672 //mt:const uint8(6)
20674 OverlayTiles [6]TileDef
20675 //mt:const uint8(6)
20676 SpecialTiles [6]TileDef
20683 ConnectTo []Content
20684 InsideTint color.NRGBA
20685 Level uint8 // Must be < 128.
20687 Translucent bool // Sunlight is scattered and becomes normal light.
20688 Transparent bool // Sunlight isn't scattered.
20701 LiquidType LiquidType
20704 Viscosity uint8 // 0-7
20710 DrawBox, ColBox, SelBox NodeBox
20712 FootstepSnd, DiggingSnd, DugSnd SoundDef
20723 MoveResistance uint8
20725 LiquidMovePhysics bool
20726 }))(obj)).ConnectTo) = make([]Content, local261)
20727 for local262 := range (*(*(struct {
20739 //mt:const uint8(6)
20741 OverlayTiles [6]TileDef
20742 //mt:const uint8(6)
20743 SpecialTiles [6]TileDef
20750 ConnectTo []Content
20751 InsideTint color.NRGBA
20752 Level uint8 // Must be < 128.
20754 Translucent bool // Sunlight is scattered and becomes normal light.
20755 Transparent bool // Sunlight isn't scattered.
20768 LiquidType LiquidType
20771 Viscosity uint8 // 0-7
20777 DrawBox, ColBox, SelBox NodeBox
20779 FootstepSnd, DiggingSnd, DugSnd SoundDef
20790 MoveResistance uint8
20792 LiquidMovePhysics bool
20793 }))(obj)).ConnectTo {
20794 if err := pcall(func() {
20807 //mt:const uint8(6)
20809 OverlayTiles [6]TileDef
20810 //mt:const uint8(6)
20811 SpecialTiles [6]TileDef
20818 ConnectTo []Content
20819 InsideTint color.NRGBA
20820 Level uint8 // Must be < 128.
20822 Translucent bool // Sunlight is scattered and becomes normal light.
20823 Transparent bool // Sunlight isn't scattered.
20836 LiquidType LiquidType
20839 Viscosity uint8 // 0-7
20845 DrawBox, ColBox, SelBox NodeBox
20847 FootstepSnd, DiggingSnd, DugSnd SoundDef
20858 MoveResistance uint8
20860 LiquidMovePhysics bool
20861 }))(obj)).ConnectTo)[local262]).deserialize(r)
20866 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
20870 p := &(*(*(struct {
20882 //mt:const uint8(6)
20884 OverlayTiles [6]TileDef
20885 //mt:const uint8(6)
20886 SpecialTiles [6]TileDef
20893 ConnectTo []Content
20894 InsideTint color.NRGBA
20895 Level uint8 // Must be < 128.
20897 Translucent bool // Sunlight is scattered and becomes normal light.
20898 Transparent bool // Sunlight isn't scattered.
20911 LiquidType LiquidType
20914 Viscosity uint8 // 0-7
20920 DrawBox, ColBox, SelBox NodeBox
20922 FootstepSnd, DiggingSnd, DugSnd SoundDef
20933 MoveResistance uint8
20935 LiquidMovePhysics bool
20936 }))(obj)).InsideTint
20937 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20940 p := &(*(*(struct {
20952 //mt:const uint8(6)
20954 OverlayTiles [6]TileDef
20955 //mt:const uint8(6)
20956 SpecialTiles [6]TileDef
20963 ConnectTo []Content
20964 InsideTint color.NRGBA
20965 Level uint8 // Must be < 128.
20967 Translucent bool // Sunlight is scattered and becomes normal light.
20968 Transparent bool // Sunlight isn't scattered.
20981 LiquidType LiquidType
20984 Viscosity uint8 // 0-7
20990 DrawBox, ColBox, SelBox NodeBox
20992 FootstepSnd, DiggingSnd, DugSnd SoundDef
21003 MoveResistance uint8
21005 LiquidMovePhysics bool
21010 p := &(*(*(struct {
21022 //mt:const uint8(6)
21024 OverlayTiles [6]TileDef
21025 //mt:const uint8(6)
21026 SpecialTiles [6]TileDef
21033 ConnectTo []Content
21034 InsideTint color.NRGBA
21035 Level uint8 // Must be < 128.
21037 Translucent bool // Sunlight is scattered and becomes normal light.
21038 Transparent bool // Sunlight isn't scattered.
21051 LiquidType LiquidType
21054 Viscosity uint8 // 0-7
21060 DrawBox, ColBox, SelBox NodeBox
21062 FootstepSnd, DiggingSnd, DugSnd SoundDef
21073 MoveResistance uint8
21075 LiquidMovePhysics bool
21076 }))(obj)).Translucent
21077 switch n := read8(r); n {
21083 chk(fmt.Errorf("invalid bool: %d", n))
21087 p := &(*(*(struct {
21099 //mt:const uint8(6)
21101 OverlayTiles [6]TileDef
21102 //mt:const uint8(6)
21103 SpecialTiles [6]TileDef
21110 ConnectTo []Content
21111 InsideTint color.NRGBA
21112 Level uint8 // Must be < 128.
21114 Translucent bool // Sunlight is scattered and becomes normal light.
21115 Transparent bool // Sunlight isn't scattered.
21128 LiquidType LiquidType
21131 Viscosity uint8 // 0-7
21137 DrawBox, ColBox, SelBox NodeBox
21139 FootstepSnd, DiggingSnd, DugSnd SoundDef
21150 MoveResistance uint8
21152 LiquidMovePhysics bool
21153 }))(obj)).Transparent
21154 switch n := read8(r); n {
21160 chk(fmt.Errorf("invalid bool: %d", n))
21164 p := &(*(*(struct {
21176 //mt:const uint8(6)
21178 OverlayTiles [6]TileDef
21179 //mt:const uint8(6)
21180 SpecialTiles [6]TileDef
21187 ConnectTo []Content
21188 InsideTint color.NRGBA
21189 Level uint8 // Must be < 128.
21191 Translucent bool // Sunlight is scattered and becomes normal light.
21192 Transparent bool // Sunlight isn't scattered.
21205 LiquidType LiquidType
21208 Viscosity uint8 // 0-7
21214 DrawBox, ColBox, SelBox NodeBox
21216 FootstepSnd, DiggingSnd, DugSnd SoundDef
21227 MoveResistance uint8
21229 LiquidMovePhysics bool
21234 p := &(*(*(struct {
21246 //mt:const uint8(6)
21248 OverlayTiles [6]TileDef
21249 //mt:const uint8(6)
21250 SpecialTiles [6]TileDef
21257 ConnectTo []Content
21258 InsideTint color.NRGBA
21259 Level uint8 // Must be < 128.
21261 Translucent bool // Sunlight is scattered and becomes normal light.
21262 Transparent bool // Sunlight isn't scattered.
21275 LiquidType LiquidType
21278 Viscosity uint8 // 0-7
21284 DrawBox, ColBox, SelBox NodeBox
21286 FootstepSnd, DiggingSnd, DugSnd SoundDef
21297 MoveResistance uint8
21299 LiquidMovePhysics bool
21300 }))(obj)).GndContent
21301 switch n := read8(r); n {
21307 chk(fmt.Errorf("invalid bool: %d", n))
21311 p := &(*(*(struct {
21323 //mt:const uint8(6)
21325 OverlayTiles [6]TileDef
21326 //mt:const uint8(6)
21327 SpecialTiles [6]TileDef
21334 ConnectTo []Content
21335 InsideTint color.NRGBA
21336 Level uint8 // Must be < 128.
21338 Translucent bool // Sunlight is scattered and becomes normal light.
21339 Transparent bool // Sunlight isn't scattered.
21352 LiquidType LiquidType
21355 Viscosity uint8 // 0-7
21361 DrawBox, ColBox, SelBox NodeBox
21363 FootstepSnd, DiggingSnd, DugSnd SoundDef
21374 MoveResistance uint8
21376 LiquidMovePhysics bool
21378 switch n := read8(r); n {
21384 chk(fmt.Errorf("invalid bool: %d", n))
21388 p := &(*(*(struct {
21400 //mt:const uint8(6)
21402 OverlayTiles [6]TileDef
21403 //mt:const uint8(6)
21404 SpecialTiles [6]TileDef
21411 ConnectTo []Content
21412 InsideTint color.NRGBA
21413 Level uint8 // Must be < 128.
21415 Translucent bool // Sunlight is scattered and becomes normal light.
21416 Transparent bool // Sunlight isn't scattered.
21429 LiquidType LiquidType
21432 Viscosity uint8 // 0-7
21438 DrawBox, ColBox, SelBox NodeBox
21440 FootstepSnd, DiggingSnd, DugSnd SoundDef
21451 MoveResistance uint8
21453 LiquidMovePhysics bool
21454 }))(obj)).Pointable
21455 switch n := read8(r); n {
21461 chk(fmt.Errorf("invalid bool: %d", n))
21465 p := &(*(*(struct {
21477 //mt:const uint8(6)
21479 OverlayTiles [6]TileDef
21480 //mt:const uint8(6)
21481 SpecialTiles [6]TileDef
21488 ConnectTo []Content
21489 InsideTint color.NRGBA
21490 Level uint8 // Must be < 128.
21492 Translucent bool // Sunlight is scattered and becomes normal light.
21493 Transparent bool // Sunlight isn't scattered.
21506 LiquidType LiquidType
21509 Viscosity uint8 // 0-7
21515 DrawBox, ColBox, SelBox NodeBox
21517 FootstepSnd, DiggingSnd, DugSnd SoundDef
21528 MoveResistance uint8
21530 LiquidMovePhysics bool
21532 switch n := read8(r); n {
21538 chk(fmt.Errorf("invalid bool: %d", n))
21542 p := &(*(*(struct {
21554 //mt:const uint8(6)
21556 OverlayTiles [6]TileDef
21557 //mt:const uint8(6)
21558 SpecialTiles [6]TileDef
21565 ConnectTo []Content
21566 InsideTint color.NRGBA
21567 Level uint8 // Must be < 128.
21569 Translucent bool // Sunlight is scattered and becomes normal light.
21570 Transparent bool // Sunlight isn't scattered.
21583 LiquidType LiquidType
21586 Viscosity uint8 // 0-7
21592 DrawBox, ColBox, SelBox NodeBox
21594 FootstepSnd, DiggingSnd, DugSnd SoundDef
21605 MoveResistance uint8
21607 LiquidMovePhysics bool
21608 }))(obj)).Climbable
21609 switch n := read8(r); n {
21615 chk(fmt.Errorf("invalid bool: %d", n))
21619 p := &(*(*(struct {
21631 //mt:const uint8(6)
21633 OverlayTiles [6]TileDef
21634 //mt:const uint8(6)
21635 SpecialTiles [6]TileDef
21642 ConnectTo []Content
21643 InsideTint color.NRGBA
21644 Level uint8 // Must be < 128.
21646 Translucent bool // Sunlight is scattered and becomes normal light.
21647 Transparent bool // Sunlight isn't scattered.
21660 LiquidType LiquidType
21663 Viscosity uint8 // 0-7
21669 DrawBox, ColBox, SelBox NodeBox
21671 FootstepSnd, DiggingSnd, DugSnd SoundDef
21682 MoveResistance uint8
21684 LiquidMovePhysics bool
21685 }))(obj)).Replaceable
21686 switch n := read8(r); n {
21692 chk(fmt.Errorf("invalid bool: %d", n))
21696 p := &(*(*(struct {
21708 //mt:const uint8(6)
21710 OverlayTiles [6]TileDef
21711 //mt:const uint8(6)
21712 SpecialTiles [6]TileDef
21719 ConnectTo []Content
21720 InsideTint color.NRGBA
21721 Level uint8 // Must be < 128.
21723 Translucent bool // Sunlight is scattered and becomes normal light.
21724 Transparent bool // Sunlight isn't scattered.
21737 LiquidType LiquidType
21740 Viscosity uint8 // 0-7
21746 DrawBox, ColBox, SelBox NodeBox
21748 FootstepSnd, DiggingSnd, DugSnd SoundDef
21759 MoveResistance uint8
21761 LiquidMovePhysics bool
21762 }))(obj)).OnRightClick
21763 switch n := read8(r); n {
21769 chk(fmt.Errorf("invalid bool: %d", n))
21773 p := &(*(*(struct {
21785 //mt:const uint8(6)
21787 OverlayTiles [6]TileDef
21788 //mt:const uint8(6)
21789 SpecialTiles [6]TileDef
21796 ConnectTo []Content
21797 InsideTint color.NRGBA
21798 Level uint8 // Must be < 128.
21800 Translucent bool // Sunlight is scattered and becomes normal light.
21801 Transparent bool // Sunlight isn't scattered.
21814 LiquidType LiquidType
21817 Viscosity uint8 // 0-7
21823 DrawBox, ColBox, SelBox NodeBox
21825 FootstepSnd, DiggingSnd, DugSnd SoundDef
21836 MoveResistance uint8
21838 LiquidMovePhysics bool
21839 }))(obj)).DmgPerSec
21840 *p = int32(read32(r))
21842 if err := pcall(func() {
21855 //mt:const uint8(6)
21857 OverlayTiles [6]TileDef
21858 //mt:const uint8(6)
21859 SpecialTiles [6]TileDef
21866 ConnectTo []Content
21867 InsideTint color.NRGBA
21868 Level uint8 // Must be < 128.
21870 Translucent bool // Sunlight is scattered and becomes normal light.
21871 Transparent bool // Sunlight isn't scattered.
21884 LiquidType LiquidType
21887 Viscosity uint8 // 0-7
21893 DrawBox, ColBox, SelBox NodeBox
21895 FootstepSnd, DiggingSnd, DugSnd SoundDef
21906 MoveResistance uint8
21908 LiquidMovePhysics bool
21909 }))(obj)).LiquidType).deserialize(r)
21914 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
21916 var local263 []uint8
21917 var local264 uint16
21922 (local263) = make([]uint8, local264)
21924 _, err := io.ReadFull(r, (local263)[:])
21939 //mt:const uint8(6)
21941 OverlayTiles [6]TileDef
21942 //mt:const uint8(6)
21943 SpecialTiles [6]TileDef
21950 ConnectTo []Content
21951 InsideTint color.NRGBA
21952 Level uint8 // Must be < 128.
21954 Translucent bool // Sunlight is scattered and becomes normal light.
21955 Transparent bool // Sunlight isn't scattered.
21968 LiquidType LiquidType
21971 Viscosity uint8 // 0-7
21977 DrawBox, ColBox, SelBox NodeBox
21979 FootstepSnd, DiggingSnd, DugSnd SoundDef
21990 MoveResistance uint8
21992 LiquidMovePhysics bool
21993 }))(obj)).FlowingAlt) = string(local263)
21994 var local265 []uint8
21995 var local266 uint16
22000 (local265) = make([]uint8, local266)
22002 _, err := io.ReadFull(r, (local265)[:])
22017 //mt:const uint8(6)
22019 OverlayTiles [6]TileDef
22020 //mt:const uint8(6)
22021 SpecialTiles [6]TileDef
22028 ConnectTo []Content
22029 InsideTint color.NRGBA
22030 Level uint8 // Must be < 128.
22032 Translucent bool // Sunlight is scattered and becomes normal light.
22033 Transparent bool // Sunlight isn't scattered.
22046 LiquidType LiquidType
22049 Viscosity uint8 // 0-7
22055 DrawBox, ColBox, SelBox NodeBox
22057 FootstepSnd, DiggingSnd, DugSnd SoundDef
22068 MoveResistance uint8
22070 LiquidMovePhysics bool
22071 }))(obj)).SrcAlt) = string(local265)
22073 p := &(*(*(struct {
22085 //mt:const uint8(6)
22087 OverlayTiles [6]TileDef
22088 //mt:const uint8(6)
22089 SpecialTiles [6]TileDef
22096 ConnectTo []Content
22097 InsideTint color.NRGBA
22098 Level uint8 // Must be < 128.
22100 Translucent bool // Sunlight is scattered and becomes normal light.
22101 Transparent bool // Sunlight isn't scattered.
22114 LiquidType LiquidType
22117 Viscosity uint8 // 0-7
22123 DrawBox, ColBox, SelBox NodeBox
22125 FootstepSnd, DiggingSnd, DugSnd SoundDef
22136 MoveResistance uint8
22138 LiquidMovePhysics bool
22139 }))(obj)).Viscosity
22143 p := &(*(*(struct {
22155 //mt:const uint8(6)
22157 OverlayTiles [6]TileDef
22158 //mt:const uint8(6)
22159 SpecialTiles [6]TileDef
22166 ConnectTo []Content
22167 InsideTint color.NRGBA
22168 Level uint8 // Must be < 128.
22170 Translucent bool // Sunlight is scattered and becomes normal light.
22171 Transparent bool // Sunlight isn't scattered.
22184 LiquidType LiquidType
22187 Viscosity uint8 // 0-7
22193 DrawBox, ColBox, SelBox NodeBox
22195 FootstepSnd, DiggingSnd, DugSnd SoundDef
22206 MoveResistance uint8
22208 LiquidMovePhysics bool
22209 }))(obj)).LiqRenewable
22210 switch n := read8(r); n {
22216 chk(fmt.Errorf("invalid bool: %d", n))
22220 p := &(*(*(struct {
22232 //mt:const uint8(6)
22234 OverlayTiles [6]TileDef
22235 //mt:const uint8(6)
22236 SpecialTiles [6]TileDef
22243 ConnectTo []Content
22244 InsideTint color.NRGBA
22245 Level uint8 // Must be < 128.
22247 Translucent bool // Sunlight is scattered and becomes normal light.
22248 Transparent bool // Sunlight isn't scattered.
22261 LiquidType LiquidType
22264 Viscosity uint8 // 0-7
22270 DrawBox, ColBox, SelBox NodeBox
22272 FootstepSnd, DiggingSnd, DugSnd SoundDef
22283 MoveResistance uint8
22285 LiquidMovePhysics bool
22286 }))(obj)).FlowRange
22290 p := &(*(*(struct {
22302 //mt:const uint8(6)
22304 OverlayTiles [6]TileDef
22305 //mt:const uint8(6)
22306 SpecialTiles [6]TileDef
22313 ConnectTo []Content
22314 InsideTint color.NRGBA
22315 Level uint8 // Must be < 128.
22317 Translucent bool // Sunlight is scattered and becomes normal light.
22318 Transparent bool // Sunlight isn't scattered.
22331 LiquidType LiquidType
22334 Viscosity uint8 // 0-7
22340 DrawBox, ColBox, SelBox NodeBox
22342 FootstepSnd, DiggingSnd, DugSnd SoundDef
22353 MoveResistance uint8
22355 LiquidMovePhysics bool
22360 p := &(*(*(struct {
22372 //mt:const uint8(6)
22374 OverlayTiles [6]TileDef
22375 //mt:const uint8(6)
22376 SpecialTiles [6]TileDef
22383 ConnectTo []Content
22384 InsideTint color.NRGBA
22385 Level uint8 // Must be < 128.
22387 Translucent bool // Sunlight is scattered and becomes normal light.
22388 Transparent bool // Sunlight isn't scattered.
22401 LiquidType LiquidType
22404 Viscosity uint8 // 0-7
22410 DrawBox, ColBox, SelBox NodeBox
22412 FootstepSnd, DiggingSnd, DugSnd SoundDef
22423 MoveResistance uint8
22425 LiquidMovePhysics bool
22426 }))(obj)).Floodable
22427 switch n := read8(r); n {
22433 chk(fmt.Errorf("invalid bool: %d", n))
22436 if err := pcall(func() {
22449 //mt:const uint8(6)
22451 OverlayTiles [6]TileDef
22452 //mt:const uint8(6)
22453 SpecialTiles [6]TileDef
22460 ConnectTo []Content
22461 InsideTint color.NRGBA
22462 Level uint8 // Must be < 128.
22464 Translucent bool // Sunlight is scattered and becomes normal light.
22465 Transparent bool // Sunlight isn't scattered.
22478 LiquidType LiquidType
22481 Viscosity uint8 // 0-7
22487 DrawBox, ColBox, SelBox NodeBox
22489 FootstepSnd, DiggingSnd, DugSnd SoundDef
22500 MoveResistance uint8
22502 LiquidMovePhysics bool
22503 }))(obj)).DrawBox).deserialize(r)
22508 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22510 if err := pcall(func() {
22523 //mt:const uint8(6)
22525 OverlayTiles [6]TileDef
22526 //mt:const uint8(6)
22527 SpecialTiles [6]TileDef
22534 ConnectTo []Content
22535 InsideTint color.NRGBA
22536 Level uint8 // Must be < 128.
22538 Translucent bool // Sunlight is scattered and becomes normal light.
22539 Transparent bool // Sunlight isn't scattered.
22552 LiquidType LiquidType
22555 Viscosity uint8 // 0-7
22561 DrawBox, ColBox, SelBox NodeBox
22563 FootstepSnd, DiggingSnd, DugSnd SoundDef
22574 MoveResistance uint8
22576 LiquidMovePhysics bool
22577 }))(obj)).ColBox).deserialize(r)
22582 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22584 if err := pcall(func() {
22597 //mt:const uint8(6)
22599 OverlayTiles [6]TileDef
22600 //mt:const uint8(6)
22601 SpecialTiles [6]TileDef
22608 ConnectTo []Content
22609 InsideTint color.NRGBA
22610 Level uint8 // Must be < 128.
22612 Translucent bool // Sunlight is scattered and becomes normal light.
22613 Transparent bool // Sunlight isn't scattered.
22626 LiquidType LiquidType
22629 Viscosity uint8 // 0-7
22635 DrawBox, ColBox, SelBox NodeBox
22637 FootstepSnd, DiggingSnd, DugSnd SoundDef
22648 MoveResistance uint8
22650 LiquidMovePhysics bool
22651 }))(obj)).SelBox).deserialize(r)
22656 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22658 if err := pcall(func() {
22671 //mt:const uint8(6)
22673 OverlayTiles [6]TileDef
22674 //mt:const uint8(6)
22675 SpecialTiles [6]TileDef
22682 ConnectTo []Content
22683 InsideTint color.NRGBA
22684 Level uint8 // Must be < 128.
22686 Translucent bool // Sunlight is scattered and becomes normal light.
22687 Transparent bool // Sunlight isn't scattered.
22700 LiquidType LiquidType
22703 Viscosity uint8 // 0-7
22709 DrawBox, ColBox, SelBox NodeBox
22711 FootstepSnd, DiggingSnd, DugSnd SoundDef
22722 MoveResistance uint8
22724 LiquidMovePhysics bool
22725 }))(obj)).FootstepSnd).deserialize(r)
22730 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22732 if err := pcall(func() {
22745 //mt:const uint8(6)
22747 OverlayTiles [6]TileDef
22748 //mt:const uint8(6)
22749 SpecialTiles [6]TileDef
22756 ConnectTo []Content
22757 InsideTint color.NRGBA
22758 Level uint8 // Must be < 128.
22760 Translucent bool // Sunlight is scattered and becomes normal light.
22761 Transparent bool // Sunlight isn't scattered.
22774 LiquidType LiquidType
22777 Viscosity uint8 // 0-7
22783 DrawBox, ColBox, SelBox NodeBox
22785 FootstepSnd, DiggingSnd, DugSnd SoundDef
22796 MoveResistance uint8
22798 LiquidMovePhysics bool
22799 }))(obj)).DiggingSnd).deserialize(r)
22804 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22806 if err := pcall(func() {
22819 //mt:const uint8(6)
22821 OverlayTiles [6]TileDef
22822 //mt:const uint8(6)
22823 SpecialTiles [6]TileDef
22830 ConnectTo []Content
22831 InsideTint color.NRGBA
22832 Level uint8 // Must be < 128.
22834 Translucent bool // Sunlight is scattered and becomes normal light.
22835 Transparent bool // Sunlight isn't scattered.
22848 LiquidType LiquidType
22851 Viscosity uint8 // 0-7
22857 DrawBox, ColBox, SelBox NodeBox
22859 FootstepSnd, DiggingSnd, DugSnd SoundDef
22870 MoveResistance uint8
22872 LiquidMovePhysics bool
22873 }))(obj)).DugSnd).deserialize(r)
22878 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22881 p := &(*(*(struct {
22893 //mt:const uint8(6)
22895 OverlayTiles [6]TileDef
22896 //mt:const uint8(6)
22897 SpecialTiles [6]TileDef
22904 ConnectTo []Content
22905 InsideTint color.NRGBA
22906 Level uint8 // Must be < 128.
22908 Translucent bool // Sunlight is scattered and becomes normal light.
22909 Transparent bool // Sunlight isn't scattered.
22922 LiquidType LiquidType
22925 Viscosity uint8 // 0-7
22931 DrawBox, ColBox, SelBox NodeBox
22933 FootstepSnd, DiggingSnd, DugSnd SoundDef
22944 MoveResistance uint8
22946 LiquidMovePhysics bool
22947 }))(obj)).LegacyFaceDir
22948 switch n := read8(r); n {
22954 chk(fmt.Errorf("invalid bool: %d", n))
22958 p := &(*(*(struct {
22970 //mt:const uint8(6)
22972 OverlayTiles [6]TileDef
22973 //mt:const uint8(6)
22974 SpecialTiles [6]TileDef
22981 ConnectTo []Content
22982 InsideTint color.NRGBA
22983 Level uint8 // Must be < 128.
22985 Translucent bool // Sunlight is scattered and becomes normal light.
22986 Transparent bool // Sunlight isn't scattered.
22999 LiquidType LiquidType
23002 Viscosity uint8 // 0-7
23008 DrawBox, ColBox, SelBox NodeBox
23010 FootstepSnd, DiggingSnd, DugSnd SoundDef
23021 MoveResistance uint8
23023 LiquidMovePhysics bool
23024 }))(obj)).LegacyMounted
23025 switch n := read8(r); n {
23031 chk(fmt.Errorf("invalid bool: %d", n))
23034 var local267 []uint8
23035 var local268 uint16
23040 (local267) = make([]uint8, local268)
23042 _, err := io.ReadFull(r, (local267)[:])
23057 //mt:const uint8(6)
23059 OverlayTiles [6]TileDef
23060 //mt:const uint8(6)
23061 SpecialTiles [6]TileDef
23068 ConnectTo []Content
23069 InsideTint color.NRGBA
23070 Level uint8 // Must be < 128.
23072 Translucent bool // Sunlight is scattered and becomes normal light.
23073 Transparent bool // Sunlight isn't scattered.
23086 LiquidType LiquidType
23089 Viscosity uint8 // 0-7
23095 DrawBox, ColBox, SelBox NodeBox
23097 FootstepSnd, DiggingSnd, DugSnd SoundDef
23108 MoveResistance uint8
23110 LiquidMovePhysics bool
23111 }))(obj)).DigPredict) = string(local267)
23113 p := &(*(*(struct {
23125 //mt:const uint8(6)
23127 OverlayTiles [6]TileDef
23128 //mt:const uint8(6)
23129 SpecialTiles [6]TileDef
23136 ConnectTo []Content
23137 InsideTint color.NRGBA
23138 Level uint8 // Must be < 128.
23140 Translucent bool // Sunlight is scattered and becomes normal light.
23141 Transparent bool // Sunlight isn't scattered.
23154 LiquidType LiquidType
23157 Viscosity uint8 // 0-7
23163 DrawBox, ColBox, SelBox NodeBox
23165 FootstepSnd, DiggingSnd, DugSnd SoundDef
23176 MoveResistance uint8
23178 LiquidMovePhysics bool
23182 if err := pcall(func() {
23195 //mt:const uint8(6)
23197 OverlayTiles [6]TileDef
23198 //mt:const uint8(6)
23199 SpecialTiles [6]TileDef
23206 ConnectTo []Content
23207 InsideTint color.NRGBA
23208 Level uint8 // Must be < 128.
23210 Translucent bool // Sunlight is scattered and becomes normal light.
23211 Transparent bool // Sunlight isn't scattered.
23224 LiquidType LiquidType
23227 Viscosity uint8 // 0-7
23233 DrawBox, ColBox, SelBox NodeBox
23235 FootstepSnd, DiggingSnd, DugSnd SoundDef
23246 MoveResistance uint8
23248 LiquidMovePhysics bool
23249 }))(obj)).AlphaUse).deserialize(r)
23254 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
23257 p := &(*(*(struct {
23269 //mt:const uint8(6)
23271 OverlayTiles [6]TileDef
23272 //mt:const uint8(6)
23273 SpecialTiles [6]TileDef
23280 ConnectTo []Content
23281 InsideTint color.NRGBA
23282 Level uint8 // Must be < 128.
23284 Translucent bool // Sunlight is scattered and becomes normal light.
23285 Transparent bool // Sunlight isn't scattered.
23298 LiquidType LiquidType
23301 Viscosity uint8 // 0-7
23307 DrawBox, ColBox, SelBox NodeBox
23309 FootstepSnd, DiggingSnd, DugSnd SoundDef
23320 MoveResistance uint8
23322 LiquidMovePhysics bool
23323 }))(obj)).MoveResistance
23327 p := &(*(*(struct {
23339 //mt:const uint8(6)
23341 OverlayTiles [6]TileDef
23342 //mt:const uint8(6)
23343 SpecialTiles [6]TileDef
23350 ConnectTo []Content
23351 InsideTint color.NRGBA
23352 Level uint8 // Must be < 128.
23354 Translucent bool // Sunlight is scattered and becomes normal light.
23355 Transparent bool // Sunlight isn't scattered.
23368 LiquidType LiquidType
23371 Viscosity uint8 // 0-7
23377 DrawBox, ColBox, SelBox NodeBox
23379 FootstepSnd, DiggingSnd, DugSnd SoundDef
23390 MoveResistance uint8
23392 LiquidMovePhysics bool
23393 }))(obj)).LiquidMovePhysics
23394 switch n := read8(r); n {
23400 chk(fmt.Errorf("invalid bool: %d", n))
23404 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23409 func (obj *PointedNode) serialize(w io.Writer) {
23410 for local269 := range (*(*(struct {
23411 Under, Above [3]int16
23414 x := ((*(*(struct {
23415 Under, Above [3]int16
23416 }))(obj)).Under)[local269]
23417 write16(w, uint16(x))
23420 for local270 := range (*(*(struct {
23421 Under, Above [3]int16
23424 x := ((*(*(struct {
23425 Under, Above [3]int16
23426 }))(obj)).Above)[local270]
23427 write16(w, uint16(x))
23432 func (obj *PointedNode) deserialize(r io.Reader) {
23433 for local271 := range (*(*(struct {
23434 Under, Above [3]int16
23437 p := &((*(*(struct {
23438 Under, Above [3]int16
23439 }))(obj)).Under)[local271]
23440 *p = int16(read16(r))
23443 for local272 := range (*(*(struct {
23444 Under, Above [3]int16
23447 p := &((*(*(struct {
23448 Under, Above [3]int16
23449 }))(obj)).Above)[local272]
23450 *p = int16(read16(r))
23455 func (obj *PointedAO) serialize(w io.Writer) {
23456 if err := pcall(func() {
23459 }))(obj)).ID).serialize(w)
23464 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23468 func (obj *PointedAO) deserialize(r io.Reader) {
23469 if err := pcall(func() {
23472 }))(obj)).ID).deserialize(r)
23477 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23481 func (obj *CompressionModes) serialize(w io.Writer) {
23483 x := *(*(uint16))(obj)
23484 write16(w, uint16(x))
23488 func (obj *CompressionModes) deserialize(r io.Reader) {
23490 p := &*(*(uint16))(obj)
23495 func (obj *PlayerPos) serialize(w io.Writer) {
23496 for local273 := range (*(*(struct {
23497 Pos100, Vel100 [3]int32
23498 Pitch100, Yaw100 int32
23501 WantedRange uint8 // in MapBlks.
23504 x := ((*(*(struct {
23505 Pos100, Vel100 [3]int32
23506 Pitch100, Yaw100 int32
23509 WantedRange uint8 // in MapBlks.
23510 }))(obj)).Pos100)[local273]
23511 write32(w, uint32(x))
23514 for local274 := range (*(*(struct {
23515 Pos100, Vel100 [3]int32
23516 Pitch100, Yaw100 int32
23519 WantedRange uint8 // in MapBlks.
23522 x := ((*(*(struct {
23523 Pos100, Vel100 [3]int32
23524 Pitch100, Yaw100 int32
23527 WantedRange uint8 // in MapBlks.
23528 }))(obj)).Vel100)[local274]
23529 write32(w, uint32(x))
23534 Pos100, Vel100 [3]int32
23535 Pitch100, Yaw100 int32
23538 WantedRange uint8 // in MapBlks.
23540 write32(w, uint32(x))
23544 Pos100, Vel100 [3]int32
23545 Pitch100, Yaw100 int32
23548 WantedRange uint8 // in MapBlks.
23550 write32(w, uint32(x))
23552 if err := pcall(func() {
23554 Pos100, Vel100 [3]int32
23555 Pitch100, Yaw100 int32
23558 WantedRange uint8 // in MapBlks.
23559 }))(obj)).Keys).serialize(w)
23564 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23568 Pos100, Vel100 [3]int32
23569 Pitch100, Yaw100 int32
23572 WantedRange uint8 // in MapBlks.
23574 write8(w, uint8(x))
23578 Pos100, Vel100 [3]int32
23579 Pitch100, Yaw100 int32
23582 WantedRange uint8 // in MapBlks.
23583 }))(obj)).WantedRange
23584 write8(w, uint8(x))
23588 func (obj *PlayerPos) deserialize(r io.Reader) {
23589 for local275 := range (*(*(struct {
23590 Pos100, Vel100 [3]int32
23591 Pitch100, Yaw100 int32
23594 WantedRange uint8 // in MapBlks.
23597 p := &((*(*(struct {
23598 Pos100, Vel100 [3]int32
23599 Pitch100, Yaw100 int32
23602 WantedRange uint8 // in MapBlks.
23603 }))(obj)).Pos100)[local275]
23604 *p = int32(read32(r))
23607 for local276 := range (*(*(struct {
23608 Pos100, Vel100 [3]int32
23609 Pitch100, Yaw100 int32
23612 WantedRange uint8 // in MapBlks.
23615 p := &((*(*(struct {
23616 Pos100, Vel100 [3]int32
23617 Pitch100, Yaw100 int32
23620 WantedRange uint8 // in MapBlks.
23621 }))(obj)).Vel100)[local276]
23622 *p = int32(read32(r))
23626 p := &(*(*(struct {
23627 Pos100, Vel100 [3]int32
23628 Pitch100, Yaw100 int32
23631 WantedRange uint8 // in MapBlks.
23633 *p = int32(read32(r))
23636 p := &(*(*(struct {
23637 Pos100, Vel100 [3]int32
23638 Pitch100, Yaw100 int32
23641 WantedRange uint8 // in MapBlks.
23643 *p = int32(read32(r))
23645 if err := pcall(func() {
23647 Pos100, Vel100 [3]int32
23648 Pitch100, Yaw100 int32
23651 WantedRange uint8 // in MapBlks.
23652 }))(obj)).Keys).deserialize(r)
23657 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23660 p := &(*(*(struct {
23661 Pos100, Vel100 [3]int32
23662 Pitch100, Yaw100 int32
23665 WantedRange uint8 // in MapBlks.
23670 p := &(*(*(struct {
23671 Pos100, Vel100 [3]int32
23672 Pitch100, Yaw100 int32
23675 WantedRange uint8 // in MapBlks.
23676 }))(obj)).WantedRange
23681 func (obj *Interaction) serialize(w io.Writer) {
23683 x := *(*(uint8))(obj)
23684 write8(w, uint8(x))
23688 func (obj *Interaction) deserialize(r io.Reader) {
23690 p := &*(*(uint8))(obj)
23695 func (obj *SoundID) serialize(w io.Writer) {
23697 x := *(*(int32))(obj)
23698 write32(w, uint32(x))
23702 func (obj *SoundID) deserialize(r io.Reader) {
23704 p := &*(*(int32))(obj)
23705 *p = int32(read32(r))
23709 func (obj *Field) serialize(w io.Writer) {
23710 if len(([]byte((*(*(struct {
23715 }))(obj)).Name))) > math.MaxUint16 {
23719 x := uint16(len(([]byte((*(*(struct {
23725 write16(w, uint16(x))
23728 _, err := w.Write(([]byte((*(*(struct {
23733 }))(obj)).Name))[:])
23736 if len(([]byte((*(*(struct {
23741 }))(obj)).Value))) > math.MaxUint32 {
23745 x := uint32(len(([]byte((*(*(struct {
23750 }))(obj)).Value))))
23751 write32(w, uint32(x))
23754 _, err := w.Write(([]byte((*(*(struct {
23759 }))(obj)).Value))[:])
23764 func (obj *Field) deserialize(r io.Reader) {
23765 var local277 []uint8
23766 var local278 uint16
23771 (local277) = make([]uint8, local278)
23773 _, err := io.ReadFull(r, (local277)[:])
23781 }))(obj)).Name) = string(local277)
23782 var local279 []uint8
23783 var local280 uint32
23788 (local279) = make([]uint8, local280)
23790 _, err := io.ReadFull(r, (local279)[:])
23798 }))(obj)).Value) = string(local279)
23801 func (obj *AuthMethods) serialize(w io.Writer) {
23803 x := *(*(uint32))(obj)
23804 write32(w, uint32(x))
23808 func (obj *AuthMethods) deserialize(r io.Reader) {
23810 p := &*(*(uint32))(obj)
23815 func (obj *Pos) serialize(w io.Writer) {
23816 if err := pcall(func() {
23817 (*(*(Vec))(obj)).serialize(w)
23822 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23826 func (obj *Pos) deserialize(r io.Reader) {
23827 if err := pcall(func() {
23828 (*(*(Vec))(obj)).deserialize(r)
23833 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23837 func (obj *KickReason) serialize(w io.Writer) {
23839 x := *(*(uint8))(obj)
23840 write8(w, uint8(x))
23844 func (obj *KickReason) deserialize(r io.Reader) {
23846 p := &*(*(uint8))(obj)
23851 func (obj *MapBlk) serialize(w io.Writer) {
23852 if err := pcall(func() {
23855 LitFrom LitFromBlks
23858 Param0 [4096]Content
23862 NodeMetas map[uint16]*NodeMeta
23863 }))(obj)).Flags).serialize(w)
23868 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
23870 if err := pcall(func() {
23873 LitFrom LitFromBlks
23876 Param0 [4096]Content
23880 NodeMetas map[uint16]*NodeMeta
23881 }))(obj)).LitFrom).serialize(w)
23886 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
23889 local281 := uint8(2) // Size of param0 in bytes.
23892 write8(w, uint8(x))
23896 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23899 write8(w, uint8(x))
23903 w, err := zstd.NewWriter(w)
23905 for local283 := range (*(*(struct {
23907 LitFrom LitFromBlks
23910 Param0 [4096]Content
23914 NodeMetas map[uint16]*NodeMeta
23916 if err := pcall(func() {
23919 LitFrom LitFromBlks
23922 Param0 [4096]Content
23926 NodeMetas map[uint16]*NodeMeta
23927 }))(obj)).Param0)[local283]).serialize(w)
23932 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23936 _, err := w.Write(((*(*(struct {
23938 LitFrom LitFromBlks
23941 Param0 [4096]Content
23945 NodeMetas map[uint16]*NodeMeta
23946 }))(obj)).Param1)[:])
23950 _, err := w.Write(((*(*(struct {
23952 LitFrom LitFromBlks
23955 Param0 [4096]Content
23959 NodeMetas map[uint16]*NodeMeta
23960 }))(obj)).Param2)[:])
23968 LitFrom LitFromBlks
23971 Param0 [4096]Content
23975 NodeMetas map[uint16]*NodeMeta
23976 }))(obj)).NodeMetas
23978 w := zlib.NewWriter(w)
23983 // len(map[uint16]...) always < math.MaxUint16
23984 write16(w, uint16(len(x)))
23985 keys := make([]uint16, 0, len(x))
23986 for key := range x {
23987 keys = append(keys, key)
23989 sort.Slice(keys, func(i, j int) bool {
23990 i2pos := func(i int) [3]int16 {
23991 return Blkpos2Pos([3]int16{}, keys[i])
23993 p, q := i2pos(i), i2pos(j)
24004 for _, key := range keys {
24006 chk(serialize(w, x[key]))
24013 local284 := uint8(2) // version
24016 write8(w, uint8(x))
24021 func (obj *MapBlk) deserialize(r io.Reader) {
24022 if err := pcall(func() {
24025 LitFrom LitFromBlks
24028 Param0 [4096]Content
24032 NodeMetas map[uint16]*NodeMeta
24033 }))(obj)).Flags).deserialize(r)
24038 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
24040 if err := pcall(func() {
24043 LitFrom LitFromBlks
24046 Param0 [4096]Content
24050 NodeMetas map[uint16]*NodeMeta
24051 }))(obj)).LitFrom).deserialize(r)
24056 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
24060 local286 := uint8(2) // Size of param0 in bytes.
24065 if local285 != local286 {
24066 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local285))
24071 local288 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
24076 if local287 != local288 {
24077 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local287))
24081 r, err := zstd.NewReader(byteReader{r})
24083 for local289 := range (*(*(struct {
24085 LitFrom LitFromBlks
24088 Param0 [4096]Content
24092 NodeMetas map[uint16]*NodeMeta
24094 if err := pcall(func() {
24097 LitFrom LitFromBlks
24100 Param0 [4096]Content
24104 NodeMetas map[uint16]*NodeMeta
24105 }))(obj)).Param0)[local289]).deserialize(r)
24110 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24114 _, err := io.ReadFull(r, ((*(*(struct {
24116 LitFrom LitFromBlks
24119 Param0 [4096]Content
24123 NodeMetas map[uint16]*NodeMeta
24124 }))(obj)).Param1)[:])
24128 _, err := io.ReadFull(r, ((*(*(struct {
24130 LitFrom LitFromBlks
24133 Param0 [4096]Content
24137 NodeMetas map[uint16]*NodeMeta
24138 }))(obj)).Param2)[:])
24144 p := &(*(*(struct {
24146 LitFrom LitFromBlks
24149 Param0 [4096]Content
24153 NodeMetas map[uint16]*NodeMeta
24154 }))(obj)).NodeMetas
24156 r, err := zlib.NewReader(byteReader{r})
24158 switch ver := read8(r); ver {
24163 *p = make(map[uint16]*NodeMeta, n)
24166 nm := new(NodeMeta)
24167 chk(deserialize(r, nm))
24171 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
24178 local291 := uint8(2) // version
24183 if local290 != local291 {
24184 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local290))
24189 func (obj *Node) serialize(w io.Writer) {
24190 if err := pcall(func() {
24193 Param1, Param2 uint8
24194 }))(obj)).Param0).serialize(w)
24199 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24204 Param1, Param2 uint8
24206 write8(w, uint8(x))
24211 Param1, Param2 uint8
24213 write8(w, uint8(x))
24217 func (obj *Node) deserialize(r io.Reader) {
24218 if err := pcall(func() {
24221 Param1, Param2 uint8
24222 }))(obj)).Param0).deserialize(r)
24227 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24230 p := &(*(*(struct {
24232 Param1, Param2 uint8
24237 p := &(*(*(struct {
24239 Param1, Param2 uint8
24245 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
24247 x := *(*(uint64))(obj)
24248 write64(w, uint64(x))
24252 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
24254 p := &*(*(uint64))(obj)
24259 func (obj *Vec) serialize(w io.Writer) {
24260 for local292 := range *(*([3]float32))(obj) {
24262 x := (*(*([3]float32))(obj))[local292]
24263 write32(w, math.Float32bits(x))
24268 func (obj *Vec) deserialize(r io.Reader) {
24269 for local293 := range *(*([3]float32))(obj) {
24271 p := &(*(*([3]float32))(obj))[local293]
24272 *p = math.Float32frombits(read32(r))
24277 func (obj *ChatMsgType) serialize(w io.Writer) {
24279 x := *(*(uint8))(obj)
24280 write8(w, uint8(x))
24284 func (obj *ChatMsgType) deserialize(r io.Reader) {
24286 p := &*(*(uint8))(obj)
24291 func (obj *AOID) serialize(w io.Writer) {
24293 x := *(*(uint16))(obj)
24294 write16(w, uint16(x))
24298 func (obj *AOID) deserialize(r io.Reader) {
24300 p := &*(*(uint16))(obj)
24305 func (obj *AOAdd) serialize(w io.Writer) {
24306 if err := pcall(func() {
24309 //mt:const genericCAO
24311 InitData AOInitData
24312 }))(obj)).ID).serialize(w)
24317 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24320 local294 := genericCAO
24321 if err := pcall(func() {
24322 (local294).serialize(w)
24327 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24332 w := new(bytes.Buffer)
24333 if err := pcall(func() {
24336 //mt:const genericCAO
24338 InitData AOInitData
24339 }))(obj)).InitData).serialize(w)
24344 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24349 if len((buf.Bytes())) > math.MaxUint32 {
24353 x := uint32(len((buf.Bytes())))
24354 write32(w, uint32(x))
24357 _, err := w.Write((buf.Bytes())[:])
24364 func (obj *AOAdd) deserialize(r io.Reader) {
24365 if err := pcall(func() {
24368 //mt:const genericCAO
24370 InitData AOInitData
24371 }))(obj)).ID).deserialize(r)
24376 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24379 var local295 aoType
24380 local296 := genericCAO
24381 if err := pcall(func() {
24382 (local295).deserialize(r)
24387 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24389 if local295 != local296 {
24390 chk(fmt.Errorf("const %v: %v", "genericCAO", local295))
24399 r := &io.LimitedReader{R: r, N: int64(n)}
24400 if err := pcall(func() {
24403 //mt:const genericCAO
24405 InitData AOInitData
24406 }))(obj)).InitData).deserialize(r)
24411 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24414 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24419 func (obj *IDAOMsg) serialize(w io.Writer) {
24420 if err := pcall(func() {
24425 }))(obj)).ID).serialize(w)
24430 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24434 w := new(bytes.Buffer)
24446 if len((buf.Bytes())) > math.MaxUint16 {
24450 x := uint16(len((buf.Bytes())))
24451 write16(w, uint16(x))
24454 _, err := w.Write((buf.Bytes())[:])
24461 func (obj *IDAOMsg) deserialize(r io.Reader) {
24462 if err := pcall(func() {
24467 }))(obj)).ID).deserialize(r)
24472 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24480 r := &io.LimitedReader{R: r, N: int64(n)}
24482 p := &(*(*(struct {
24489 *p, err = readAOMsg(r)
24494 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24499 func (obj *ItemDef) serialize(w io.Writer) {
24502 w := new(bytes.Buffer)
24504 local297 := uint8(6)
24507 write8(w, uint8(x))
24510 if err := pcall(func() {
24516 InvImg, WieldImg Texture
24517 WieldScale [3]float32
24522 CanPointLiquids bool
24528 PlacePredict string
24530 PlaceSnd, PlaceFailSnd SoundDef
24534 // Set index in Palette with "palette_index" item meta field,
24535 // this overrides Color.
24539 // Texture overlays.
24540 InvOverlay, WieldOverlay Texture
24545 }))(obj)).Type).serialize(w)
24550 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
24552 if len(([]byte((*(*(struct {
24557 InvImg, WieldImg Texture
24558 WieldScale [3]float32
24563 CanPointLiquids bool
24569 PlacePredict string
24571 PlaceSnd, PlaceFailSnd SoundDef
24575 // Set index in Palette with "palette_index" item meta field,
24576 // this overrides Color.
24580 // Texture overlays.
24581 InvOverlay, WieldOverlay Texture
24586 }))(obj)).Name))) > math.MaxUint16 {
24590 x := uint16(len(([]byte((*(*(struct {
24595 InvImg, WieldImg Texture
24596 WieldScale [3]float32
24601 CanPointLiquids bool
24607 PlacePredict string
24609 PlaceSnd, PlaceFailSnd SoundDef
24613 // Set index in Palette with "palette_index" item meta field,
24614 // this overrides Color.
24618 // Texture overlays.
24619 InvOverlay, WieldOverlay Texture
24625 write16(w, uint16(x))
24628 _, err := w.Write(([]byte((*(*(struct {
24633 InvImg, WieldImg Texture
24634 WieldScale [3]float32
24639 CanPointLiquids bool
24645 PlacePredict string
24647 PlaceSnd, PlaceFailSnd SoundDef
24651 // Set index in Palette with "palette_index" item meta field,
24652 // this overrides Color.
24656 // Texture overlays.
24657 InvOverlay, WieldOverlay Texture
24662 }))(obj)).Name))[:])
24665 if len(([]byte((*(*(struct {
24670 InvImg, WieldImg Texture
24671 WieldScale [3]float32
24676 CanPointLiquids bool
24682 PlacePredict string
24684 PlaceSnd, PlaceFailSnd SoundDef
24688 // Set index in Palette with "palette_index" item meta field,
24689 // this overrides Color.
24693 // Texture overlays.
24694 InvOverlay, WieldOverlay Texture
24699 }))(obj)).Desc))) > math.MaxUint16 {
24703 x := uint16(len(([]byte((*(*(struct {
24708 InvImg, WieldImg Texture
24709 WieldScale [3]float32
24714 CanPointLiquids bool
24720 PlacePredict string
24722 PlaceSnd, PlaceFailSnd SoundDef
24726 // Set index in Palette with "palette_index" item meta field,
24727 // this overrides Color.
24731 // Texture overlays.
24732 InvOverlay, WieldOverlay Texture
24738 write16(w, uint16(x))
24741 _, err := w.Write(([]byte((*(*(struct {
24746 InvImg, WieldImg Texture
24747 WieldScale [3]float32
24752 CanPointLiquids bool
24758 PlacePredict string
24760 PlaceSnd, PlaceFailSnd SoundDef
24764 // Set index in Palette with "palette_index" item meta field,
24765 // this overrides Color.
24769 // Texture overlays.
24770 InvOverlay, WieldOverlay Texture
24775 }))(obj)).Desc))[:])
24778 if err := pcall(func() {
24784 InvImg, WieldImg Texture
24785 WieldScale [3]float32
24790 CanPointLiquids bool
24796 PlacePredict string
24798 PlaceSnd, PlaceFailSnd SoundDef
24802 // Set index in Palette with "palette_index" item meta field,
24803 // this overrides Color.
24807 // Texture overlays.
24808 InvOverlay, WieldOverlay Texture
24813 }))(obj)).InvImg).serialize(w)
24818 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24820 if err := pcall(func() {
24826 InvImg, WieldImg Texture
24827 WieldScale [3]float32
24832 CanPointLiquids bool
24838 PlacePredict string
24840 PlaceSnd, PlaceFailSnd SoundDef
24844 // Set index in Palette with "palette_index" item meta field,
24845 // this overrides Color.
24849 // Texture overlays.
24850 InvOverlay, WieldOverlay Texture
24855 }))(obj)).WieldImg).serialize(w)
24860 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24862 for local298 := range (*(*(struct {
24867 InvImg, WieldImg Texture
24868 WieldScale [3]float32
24873 CanPointLiquids bool
24879 PlacePredict string
24881 PlaceSnd, PlaceFailSnd SoundDef
24885 // Set index in Palette with "palette_index" item meta field,
24886 // this overrides Color.
24890 // Texture overlays.
24891 InvOverlay, WieldOverlay Texture
24896 }))(obj)).WieldScale {
24898 x := ((*(*(struct {
24903 InvImg, WieldImg Texture
24904 WieldScale [3]float32
24909 CanPointLiquids bool
24915 PlacePredict string
24917 PlaceSnd, PlaceFailSnd SoundDef
24921 // Set index in Palette with "palette_index" item meta field,
24922 // this overrides Color.
24926 // Texture overlays.
24927 InvOverlay, WieldOverlay Texture
24932 }))(obj)).WieldScale)[local298]
24933 write32(w, math.Float32bits(x))
24942 InvImg, WieldImg Texture
24943 WieldScale [3]float32
24948 CanPointLiquids bool
24954 PlacePredict string
24956 PlaceSnd, PlaceFailSnd SoundDef
24960 // Set index in Palette with "palette_index" item meta field,
24961 // this overrides Color.
24965 // Texture overlays.
24966 InvOverlay, WieldOverlay Texture
24972 write16(w, uint16(x))
24980 InvImg, WieldImg Texture
24981 WieldScale [3]float32
24986 CanPointLiquids bool
24992 PlacePredict string
24994 PlaceSnd, PlaceFailSnd SoundDef
24998 // Set index in Palette with "palette_index" item meta field,
24999 // this overrides Color.
25003 // Texture overlays.
25004 InvOverlay, WieldOverlay Texture
25022 InvImg, WieldImg Texture
25023 WieldScale [3]float32
25028 CanPointLiquids bool
25034 PlacePredict string
25036 PlaceSnd, PlaceFailSnd SoundDef
25040 // Set index in Palette with "palette_index" item meta field,
25041 // this overrides Color.
25045 // Texture overlays.
25046 InvOverlay, WieldOverlay Texture
25051 }))(obj)).CanPointLiquids
25058 if err := pcall(func() {
25064 InvImg, WieldImg Texture
25065 WieldScale [3]float32
25070 CanPointLiquids bool
25076 PlacePredict string
25078 PlaceSnd, PlaceFailSnd SoundDef
25082 // Set index in Palette with "palette_index" item meta field,
25083 // this overrides Color.
25087 // Texture overlays.
25088 InvOverlay, WieldOverlay Texture
25093 }))(obj)).ToolCaps).serialize(w)
25098 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
25100 if len(((*(*(struct {
25105 InvImg, WieldImg Texture
25106 WieldScale [3]float32
25111 CanPointLiquids bool
25117 PlacePredict string
25119 PlaceSnd, PlaceFailSnd SoundDef
25123 // Set index in Palette with "palette_index" item meta field,
25124 // this overrides Color.
25128 // Texture overlays.
25129 InvOverlay, WieldOverlay Texture
25134 }))(obj)).Groups)) > math.MaxUint16 {
25138 x := uint16(len(((*(*(struct {
25143 InvImg, WieldImg Texture
25144 WieldScale [3]float32
25149 CanPointLiquids bool
25155 PlacePredict string
25157 PlaceSnd, PlaceFailSnd SoundDef
25161 // Set index in Palette with "palette_index" item meta field,
25162 // this overrides Color.
25166 // Texture overlays.
25167 InvOverlay, WieldOverlay Texture
25172 }))(obj)).Groups)))
25173 write16(w, uint16(x))
25175 for local299 := range (*(*(struct {
25180 InvImg, WieldImg Texture
25181 WieldScale [3]float32
25186 CanPointLiquids bool
25192 PlacePredict string
25194 PlaceSnd, PlaceFailSnd SoundDef
25198 // Set index in Palette with "palette_index" item meta field,
25199 // this overrides Color.
25203 // Texture overlays.
25204 InvOverlay, WieldOverlay Texture
25210 if err := pcall(func() {
25216 InvImg, WieldImg Texture
25217 WieldScale [3]float32
25222 CanPointLiquids bool
25228 PlacePredict string
25230 PlaceSnd, PlaceFailSnd SoundDef
25234 // Set index in Palette with "palette_index" item meta field,
25235 // this overrides Color.
25239 // Texture overlays.
25240 InvOverlay, WieldOverlay Texture
25245 }))(obj)).Groups)[local299]).serialize(w)
25250 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
25253 if len(([]byte((*(*(struct {
25258 InvImg, WieldImg Texture
25259 WieldScale [3]float32
25264 CanPointLiquids bool
25270 PlacePredict string
25272 PlaceSnd, PlaceFailSnd SoundDef
25276 // Set index in Palette with "palette_index" item meta field,
25277 // this overrides Color.
25281 // Texture overlays.
25282 InvOverlay, WieldOverlay Texture
25287 }))(obj)).PlacePredict))) > math.MaxUint16 {
25291 x := uint16(len(([]byte((*(*(struct {
25296 InvImg, WieldImg Texture
25297 WieldScale [3]float32
25302 CanPointLiquids bool
25308 PlacePredict string
25310 PlaceSnd, PlaceFailSnd SoundDef
25314 // Set index in Palette with "palette_index" item meta field,
25315 // this overrides Color.
25319 // Texture overlays.
25320 InvOverlay, WieldOverlay Texture
25325 }))(obj)).PlacePredict))))
25326 write16(w, uint16(x))
25329 _, err := w.Write(([]byte((*(*(struct {
25334 InvImg, WieldImg Texture
25335 WieldScale [3]float32
25340 CanPointLiquids bool
25346 PlacePredict string
25348 PlaceSnd, PlaceFailSnd SoundDef
25352 // Set index in Palette with "palette_index" item meta field,
25353 // this overrides Color.
25357 // Texture overlays.
25358 InvOverlay, WieldOverlay Texture
25363 }))(obj)).PlacePredict))[:])
25366 if err := pcall(func() {
25372 InvImg, WieldImg Texture
25373 WieldScale [3]float32
25378 CanPointLiquids bool
25384 PlacePredict string
25386 PlaceSnd, PlaceFailSnd SoundDef
25390 // Set index in Palette with "palette_index" item meta field,
25391 // this overrides Color.
25395 // Texture overlays.
25396 InvOverlay, WieldOverlay Texture
25401 }))(obj)).PlaceSnd).serialize(w)
25406 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25408 if err := pcall(func() {
25414 InvImg, WieldImg Texture
25415 WieldScale [3]float32
25420 CanPointLiquids bool
25426 PlacePredict string
25428 PlaceSnd, PlaceFailSnd SoundDef
25432 // Set index in Palette with "palette_index" item meta field,
25433 // this overrides Color.
25437 // Texture overlays.
25438 InvOverlay, WieldOverlay Texture
25443 }))(obj)).PlaceFailSnd).serialize(w)
25448 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25456 InvImg, WieldImg Texture
25457 WieldScale [3]float32
25462 CanPointLiquids bool
25468 PlacePredict string
25470 PlaceSnd, PlaceFailSnd SoundDef
25474 // Set index in Palette with "palette_index" item meta field,
25475 // this overrides Color.
25479 // Texture overlays.
25480 InvOverlay, WieldOverlay Texture
25485 }))(obj)).PointRange
25486 write32(w, math.Float32bits(x))
25488 if err := pcall(func() {
25494 InvImg, WieldImg Texture
25495 WieldScale [3]float32
25500 CanPointLiquids bool
25506 PlacePredict string
25508 PlaceSnd, PlaceFailSnd SoundDef
25512 // Set index in Palette with "palette_index" item meta field,
25513 // this overrides Color.
25517 // Texture overlays.
25518 InvOverlay, WieldOverlay Texture
25523 }))(obj)).Palette).serialize(w)
25528 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25536 InvImg, WieldImg Texture
25537 WieldScale [3]float32
25542 CanPointLiquids bool
25548 PlacePredict string
25550 PlaceSnd, PlaceFailSnd SoundDef
25554 // Set index in Palette with "palette_index" item meta field,
25555 // this overrides Color.
25559 // Texture overlays.
25560 InvOverlay, WieldOverlay Texture
25566 w.Write([]byte{x.A, x.R, x.G, x.B})
25568 if err := pcall(func() {
25574 InvImg, WieldImg Texture
25575 WieldScale [3]float32
25580 CanPointLiquids bool
25586 PlacePredict string
25588 PlaceSnd, PlaceFailSnd SoundDef
25592 // Set index in Palette with "palette_index" item meta field,
25593 // this overrides Color.
25597 // Texture overlays.
25598 InvOverlay, WieldOverlay Texture
25603 }))(obj)).InvOverlay).serialize(w)
25608 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25610 if err := pcall(func() {
25616 InvImg, WieldImg Texture
25617 WieldScale [3]float32
25622 CanPointLiquids bool
25628 PlacePredict string
25630 PlaceSnd, PlaceFailSnd SoundDef
25634 // Set index in Palette with "palette_index" item meta field,
25635 // this overrides Color.
25639 // Texture overlays.
25640 InvOverlay, WieldOverlay Texture
25645 }))(obj)).WieldOverlay).serialize(w)
25650 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25652 if len(([]byte((*(*(struct {
25657 InvImg, WieldImg Texture
25658 WieldScale [3]float32
25663 CanPointLiquids bool
25669 PlacePredict string
25671 PlaceSnd, PlaceFailSnd SoundDef
25675 // Set index in Palette with "palette_index" item meta field,
25676 // this overrides Color.
25680 // Texture overlays.
25681 InvOverlay, WieldOverlay Texture
25686 }))(obj)).ShortDesc))) > math.MaxUint16 {
25690 x := uint16(len(([]byte((*(*(struct {
25695 InvImg, WieldImg Texture
25696 WieldScale [3]float32
25701 CanPointLiquids bool
25707 PlacePredict string
25709 PlaceSnd, PlaceFailSnd SoundDef
25713 // Set index in Palette with "palette_index" item meta field,
25714 // this overrides Color.
25718 // Texture overlays.
25719 InvOverlay, WieldOverlay Texture
25724 }))(obj)).ShortDesc))))
25725 write16(w, uint16(x))
25728 _, err := w.Write(([]byte((*(*(struct {
25733 InvImg, WieldImg Texture
25734 WieldScale [3]float32
25739 CanPointLiquids bool
25745 PlacePredict string
25747 PlaceSnd, PlaceFailSnd SoundDef
25751 // Set index in Palette with "palette_index" item meta field,
25752 // this overrides Color.
25756 // Texture overlays.
25757 InvOverlay, WieldOverlay Texture
25762 }))(obj)).ShortDesc))[:])
25771 InvImg, WieldImg Texture
25772 WieldScale [3]float32
25777 CanPointLiquids bool
25783 PlacePredict string
25785 PlaceSnd, PlaceFailSnd SoundDef
25789 // Set index in Palette with "palette_index" item meta field,
25790 // this overrides Color.
25794 // Texture overlays.
25795 InvOverlay, WieldOverlay Texture
25800 }))(obj)).PlaceParam2
25801 write8(w, uint8(x))
25806 if len((buf.Bytes())) > math.MaxUint16 {
25810 x := uint16(len((buf.Bytes())))
25811 write16(w, uint16(x))
25814 _, err := w.Write((buf.Bytes())[:])
25821 func (obj *ItemDef) deserialize(r io.Reader) {
25828 r := &io.LimitedReader{R: r, N: int64(n)}
25831 local301 := uint8(6)
25836 if local300 != local301 {
25837 chk(fmt.Errorf("const %v: %v", "uint8(6)", local300))
25840 if err := pcall(func() {
25846 InvImg, WieldImg Texture
25847 WieldScale [3]float32
25852 CanPointLiquids bool
25858 PlacePredict string
25860 PlaceSnd, PlaceFailSnd SoundDef
25864 // Set index in Palette with "palette_index" item meta field,
25865 // this overrides Color.
25869 // Texture overlays.
25870 InvOverlay, WieldOverlay Texture
25875 }))(obj)).Type).deserialize(r)
25880 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
25882 var local302 []uint8
25883 var local303 uint16
25888 (local302) = make([]uint8, local303)
25890 _, err := io.ReadFull(r, (local302)[:])
25898 InvImg, WieldImg Texture
25899 WieldScale [3]float32
25904 CanPointLiquids bool
25910 PlacePredict string
25912 PlaceSnd, PlaceFailSnd SoundDef
25916 // Set index in Palette with "palette_index" item meta field,
25917 // this overrides Color.
25921 // Texture overlays.
25922 InvOverlay, WieldOverlay Texture
25927 }))(obj)).Name) = string(local302)
25928 var local304 []uint8
25929 var local305 uint16
25934 (local304) = make([]uint8, local305)
25936 _, err := io.ReadFull(r, (local304)[:])
25944 InvImg, WieldImg Texture
25945 WieldScale [3]float32
25950 CanPointLiquids bool
25956 PlacePredict string
25958 PlaceSnd, PlaceFailSnd SoundDef
25962 // Set index in Palette with "palette_index" item meta field,
25963 // this overrides Color.
25967 // Texture overlays.
25968 InvOverlay, WieldOverlay Texture
25973 }))(obj)).Desc) = string(local304)
25974 if err := pcall(func() {
25980 InvImg, WieldImg Texture
25981 WieldScale [3]float32
25986 CanPointLiquids bool
25992 PlacePredict string
25994 PlaceSnd, PlaceFailSnd SoundDef
25998 // Set index in Palette with "palette_index" item meta field,
25999 // this overrides Color.
26003 // Texture overlays.
26004 InvOverlay, WieldOverlay Texture
26009 }))(obj)).InvImg).deserialize(r)
26014 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26016 if err := pcall(func() {
26022 InvImg, WieldImg Texture
26023 WieldScale [3]float32
26028 CanPointLiquids bool
26034 PlacePredict string
26036 PlaceSnd, PlaceFailSnd SoundDef
26040 // Set index in Palette with "palette_index" item meta field,
26041 // this overrides Color.
26045 // Texture overlays.
26046 InvOverlay, WieldOverlay Texture
26051 }))(obj)).WieldImg).deserialize(r)
26056 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26058 for local306 := range (*(*(struct {
26063 InvImg, WieldImg Texture
26064 WieldScale [3]float32
26069 CanPointLiquids bool
26075 PlacePredict string
26077 PlaceSnd, PlaceFailSnd SoundDef
26081 // Set index in Palette with "palette_index" item meta field,
26082 // this overrides Color.
26086 // Texture overlays.
26087 InvOverlay, WieldOverlay Texture
26092 }))(obj)).WieldScale {
26094 p := &((*(*(struct {
26099 InvImg, WieldImg Texture
26100 WieldScale [3]float32
26105 CanPointLiquids bool
26111 PlacePredict string
26113 PlaceSnd, PlaceFailSnd SoundDef
26117 // Set index in Palette with "palette_index" item meta field,
26118 // this overrides Color.
26122 // Texture overlays.
26123 InvOverlay, WieldOverlay Texture
26128 }))(obj)).WieldScale)[local306]
26129 *p = math.Float32frombits(read32(r))
26133 p := &(*(*(struct {
26138 InvImg, WieldImg Texture
26139 WieldScale [3]float32
26144 CanPointLiquids bool
26150 PlacePredict string
26152 PlaceSnd, PlaceFailSnd SoundDef
26156 // Set index in Palette with "palette_index" item meta field,
26157 // this overrides Color.
26161 // Texture overlays.
26162 InvOverlay, WieldOverlay Texture
26171 p := &(*(*(struct {
26176 InvImg, WieldImg Texture
26177 WieldScale [3]float32
26182 CanPointLiquids bool
26188 PlacePredict string
26190 PlaceSnd, PlaceFailSnd SoundDef
26194 // Set index in Palette with "palette_index" item meta field,
26195 // this overrides Color.
26199 // Texture overlays.
26200 InvOverlay, WieldOverlay Texture
26206 switch n := read8(r); n {
26212 chk(fmt.Errorf("invalid bool: %d", n))
26216 p := &(*(*(struct {
26221 InvImg, WieldImg Texture
26222 WieldScale [3]float32
26227 CanPointLiquids bool
26233 PlacePredict string
26235 PlaceSnd, PlaceFailSnd SoundDef
26239 // Set index in Palette with "palette_index" item meta field,
26240 // this overrides Color.
26244 // Texture overlays.
26245 InvOverlay, WieldOverlay Texture
26250 }))(obj)).CanPointLiquids
26251 switch n := read8(r); n {
26257 chk(fmt.Errorf("invalid bool: %d", n))
26260 if err := pcall(func() {
26266 InvImg, WieldImg Texture
26267 WieldScale [3]float32
26272 CanPointLiquids bool
26278 PlacePredict string
26280 PlaceSnd, PlaceFailSnd SoundDef
26284 // Set index in Palette with "palette_index" item meta field,
26285 // this overrides Color.
26289 // Texture overlays.
26290 InvOverlay, WieldOverlay Texture
26295 }))(obj)).ToolCaps).deserialize(r)
26300 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
26302 var local307 uint16
26312 InvImg, WieldImg Texture
26313 WieldScale [3]float32
26318 CanPointLiquids bool
26324 PlacePredict string
26326 PlaceSnd, PlaceFailSnd SoundDef
26330 // Set index in Palette with "palette_index" item meta field,
26331 // this overrides Color.
26335 // Texture overlays.
26336 InvOverlay, WieldOverlay Texture
26341 }))(obj)).Groups) = make([]Group, local307)
26342 for local308 := range (*(*(struct {
26347 InvImg, WieldImg Texture
26348 WieldScale [3]float32
26353 CanPointLiquids bool
26359 PlacePredict string
26361 PlaceSnd, PlaceFailSnd SoundDef
26365 // Set index in Palette with "palette_index" item meta field,
26366 // this overrides Color.
26370 // Texture overlays.
26371 InvOverlay, WieldOverlay Texture
26377 if err := pcall(func() {
26383 InvImg, WieldImg Texture
26384 WieldScale [3]float32
26389 CanPointLiquids bool
26395 PlacePredict string
26397 PlaceSnd, PlaceFailSnd SoundDef
26401 // Set index in Palette with "palette_index" item meta field,
26402 // this overrides Color.
26406 // Texture overlays.
26407 InvOverlay, WieldOverlay Texture
26412 }))(obj)).Groups)[local308]).deserialize(r)
26417 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
26420 var local309 []uint8
26421 var local310 uint16
26426 (local309) = make([]uint8, local310)
26428 _, err := io.ReadFull(r, (local309)[:])
26436 InvImg, WieldImg Texture
26437 WieldScale [3]float32
26442 CanPointLiquids bool
26448 PlacePredict string
26450 PlaceSnd, PlaceFailSnd SoundDef
26454 // Set index in Palette with "palette_index" item meta field,
26455 // this overrides Color.
26459 // Texture overlays.
26460 InvOverlay, WieldOverlay Texture
26465 }))(obj)).PlacePredict) = string(local309)
26466 if err := pcall(func() {
26472 InvImg, WieldImg Texture
26473 WieldScale [3]float32
26478 CanPointLiquids bool
26484 PlacePredict string
26486 PlaceSnd, PlaceFailSnd SoundDef
26490 // Set index in Palette with "palette_index" item meta field,
26491 // this overrides Color.
26495 // Texture overlays.
26496 InvOverlay, WieldOverlay Texture
26501 }))(obj)).PlaceSnd).deserialize(r)
26506 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26508 if err := pcall(func() {
26514 InvImg, WieldImg Texture
26515 WieldScale [3]float32
26520 CanPointLiquids bool
26526 PlacePredict string
26528 PlaceSnd, PlaceFailSnd SoundDef
26532 // Set index in Palette with "palette_index" item meta field,
26533 // this overrides Color.
26537 // Texture overlays.
26538 InvOverlay, WieldOverlay Texture
26543 }))(obj)).PlaceFailSnd).deserialize(r)
26548 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26551 p := &(*(*(struct {
26556 InvImg, WieldImg Texture
26557 WieldScale [3]float32
26562 CanPointLiquids bool
26568 PlacePredict string
26570 PlaceSnd, PlaceFailSnd SoundDef
26574 // Set index in Palette with "palette_index" item meta field,
26575 // this overrides Color.
26579 // Texture overlays.
26580 InvOverlay, WieldOverlay Texture
26585 }))(obj)).PointRange
26586 *p = math.Float32frombits(read32(r))
26588 if err := pcall(func() {
26594 InvImg, WieldImg Texture
26595 WieldScale [3]float32
26600 CanPointLiquids bool
26606 PlacePredict string
26608 PlaceSnd, PlaceFailSnd SoundDef
26612 // Set index in Palette with "palette_index" item meta field,
26613 // this overrides Color.
26617 // Texture overlays.
26618 InvOverlay, WieldOverlay Texture
26623 }))(obj)).Palette).deserialize(r)
26628 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26631 p := &(*(*(struct {
26636 InvImg, WieldImg Texture
26637 WieldScale [3]float32
26642 CanPointLiquids bool
26648 PlacePredict string
26650 PlaceSnd, PlaceFailSnd SoundDef
26654 // Set index in Palette with "palette_index" item meta field,
26655 // this overrides Color.
26659 // Texture overlays.
26660 InvOverlay, WieldOverlay Texture
26666 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
26668 if err := pcall(func() {
26674 InvImg, WieldImg Texture
26675 WieldScale [3]float32
26680 CanPointLiquids bool
26686 PlacePredict string
26688 PlaceSnd, PlaceFailSnd SoundDef
26692 // Set index in Palette with "palette_index" item meta field,
26693 // this overrides Color.
26697 // Texture overlays.
26698 InvOverlay, WieldOverlay Texture
26703 }))(obj)).InvOverlay).deserialize(r)
26708 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26710 if err := pcall(func() {
26716 InvImg, WieldImg Texture
26717 WieldScale [3]float32
26722 CanPointLiquids bool
26728 PlacePredict string
26730 PlaceSnd, PlaceFailSnd SoundDef
26734 // Set index in Palette with "palette_index" item meta field,
26735 // this overrides Color.
26739 // Texture overlays.
26740 InvOverlay, WieldOverlay Texture
26745 }))(obj)).WieldOverlay).deserialize(r)
26750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26752 var local311 []uint8
26753 var local312 uint16
26758 (local311) = make([]uint8, local312)
26760 _, err := io.ReadFull(r, (local311)[:])
26768 InvImg, WieldImg Texture
26769 WieldScale [3]float32
26774 CanPointLiquids bool
26780 PlacePredict string
26782 PlaceSnd, PlaceFailSnd SoundDef
26786 // Set index in Palette with "palette_index" item meta field,
26787 // this overrides Color.
26791 // Texture overlays.
26792 InvOverlay, WieldOverlay Texture
26797 }))(obj)).ShortDesc) = string(local311)
26799 p := &(*(*(struct {
26804 InvImg, WieldImg Texture
26805 WieldScale [3]float32
26810 CanPointLiquids bool
26816 PlacePredict string
26818 PlaceSnd, PlaceFailSnd SoundDef
26822 // Set index in Palette with "palette_index" item meta field,
26823 // this overrides Color.
26827 // Texture overlays.
26828 InvOverlay, WieldOverlay Texture
26833 }))(obj)).PlaceParam2
26837 chk(fmt.Errorf("%d bytes of trailing data", r.N))
26842 func (obj *SoundSrcType) serialize(w io.Writer) {
26844 x := *(*(uint8))(obj)
26845 write8(w, uint8(x))
26849 func (obj *SoundSrcType) deserialize(r io.Reader) {
26851 p := &*(*(uint8))(obj)
26856 func (obj *TileAnim) serialize(w io.Writer) {
26857 if err := pcall(func() {
26861 //mt:if %s.Type == SpriteSheetAnim
26862 AspectRatio [2]uint8
26864 //mt:if %s.Type == VerticalFrameAnim
26867 //mt:if %s.Type != NoAnim
26868 Duration float32 // in seconds
26870 }))(obj)).Type).serialize(w)
26875 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26880 //mt:if %s.Type == SpriteSheetAnim
26881 AspectRatio [2]uint8
26883 //mt:if %s.Type == VerticalFrameAnim
26886 //mt:if %s.Type != NoAnim
26887 Duration float32 // in seconds
26889 }))(obj)).Type < maxAnim) {
26890 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26895 //mt:if %s.Type == SpriteSheetAnim
26896 AspectRatio [2]uint8
26898 //mt:if %s.Type == VerticalFrameAnim
26901 //mt:if %s.Type != NoAnim
26902 Duration float32 // in seconds
26904 }))(obj)).Type == SpriteSheetAnim {
26906 _, err := w.Write(((*(*(struct {
26909 //mt:if %s.Type == SpriteSheetAnim
26910 AspectRatio [2]uint8
26912 //mt:if %s.Type == VerticalFrameAnim
26915 //mt:if %s.Type != NoAnim
26916 Duration float32 // in seconds
26918 }))(obj)).AspectRatio)[:])
26925 //mt:if %s.Type == SpriteSheetAnim
26926 AspectRatio [2]uint8
26928 //mt:if %s.Type == VerticalFrameAnim
26931 //mt:if %s.Type != NoAnim
26932 Duration float32 // in seconds
26934 }))(obj)).Type == VerticalFrameAnim {
26935 for local313 := range (*(*(struct {
26938 //mt:if %s.Type == SpriteSheetAnim
26939 AspectRatio [2]uint8
26941 //mt:if %s.Type == VerticalFrameAnim
26944 //mt:if %s.Type != NoAnim
26945 Duration float32 // in seconds
26947 }))(obj)).NFrames {
26949 x := ((*(*(struct {
26952 //mt:if %s.Type == SpriteSheetAnim
26953 AspectRatio [2]uint8
26955 //mt:if %s.Type == VerticalFrameAnim
26958 //mt:if %s.Type != NoAnim
26959 Duration float32 // in seconds
26961 }))(obj)).NFrames)[local313]
26962 write16(w, uint16(x))
26969 //mt:if %s.Type == SpriteSheetAnim
26970 AspectRatio [2]uint8
26972 //mt:if %s.Type == VerticalFrameAnim
26975 //mt:if %s.Type != NoAnim
26976 Duration float32 // in seconds
26978 }))(obj)).Type != NoAnim {
26983 //mt:if %s.Type == SpriteSheetAnim
26984 AspectRatio [2]uint8
26986 //mt:if %s.Type == VerticalFrameAnim
26989 //mt:if %s.Type != NoAnim
26990 Duration float32 // in seconds
26993 write32(w, math.Float32bits(x))
26998 func (obj *TileAnim) deserialize(r io.Reader) {
26999 if err := pcall(func() {
27003 //mt:if %s.Type == SpriteSheetAnim
27004 AspectRatio [2]uint8
27006 //mt:if %s.Type == VerticalFrameAnim
27009 //mt:if %s.Type != NoAnim
27010 Duration float32 // in seconds
27012 }))(obj)).Type).deserialize(r)
27017 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
27022 //mt:if %s.Type == SpriteSheetAnim
27023 AspectRatio [2]uint8
27025 //mt:if %s.Type == VerticalFrameAnim
27028 //mt:if %s.Type != NoAnim
27029 Duration float32 // in seconds
27031 }))(obj)).Type < maxAnim) {
27032 chk(errors.New("assertion failed: %s.Type < maxAnim"))
27037 //mt:if %s.Type == SpriteSheetAnim
27038 AspectRatio [2]uint8
27040 //mt:if %s.Type == VerticalFrameAnim
27043 //mt:if %s.Type != NoAnim
27044 Duration float32 // in seconds
27046 }))(obj)).Type == SpriteSheetAnim {
27048 _, err := io.ReadFull(r, ((*(*(struct {
27051 //mt:if %s.Type == SpriteSheetAnim
27052 AspectRatio [2]uint8
27054 //mt:if %s.Type == VerticalFrameAnim
27057 //mt:if %s.Type != NoAnim
27058 Duration float32 // in seconds
27060 }))(obj)).AspectRatio)[:])
27067 //mt:if %s.Type == SpriteSheetAnim
27068 AspectRatio [2]uint8
27070 //mt:if %s.Type == VerticalFrameAnim
27073 //mt:if %s.Type != NoAnim
27074 Duration float32 // in seconds
27076 }))(obj)).Type == VerticalFrameAnim {
27077 for local314 := range (*(*(struct {
27080 //mt:if %s.Type == SpriteSheetAnim
27081 AspectRatio [2]uint8
27083 //mt:if %s.Type == VerticalFrameAnim
27086 //mt:if %s.Type != NoAnim
27087 Duration float32 // in seconds
27089 }))(obj)).NFrames {
27091 p := &((*(*(struct {
27094 //mt:if %s.Type == SpriteSheetAnim
27095 AspectRatio [2]uint8
27097 //mt:if %s.Type == VerticalFrameAnim
27100 //mt:if %s.Type != NoAnim
27101 Duration float32 // in seconds
27103 }))(obj)).NFrames)[local314]
27111 //mt:if %s.Type == SpriteSheetAnim
27112 AspectRatio [2]uint8
27114 //mt:if %s.Type == VerticalFrameAnim
27117 //mt:if %s.Type != NoAnim
27118 Duration float32 // in seconds
27120 }))(obj)).Type != NoAnim {
27122 p := &(*(*(struct {
27125 //mt:if %s.Type == SpriteSheetAnim
27126 AspectRatio [2]uint8
27128 //mt:if %s.Type == VerticalFrameAnim
27131 //mt:if %s.Type != NoAnim
27132 Duration float32 // in seconds
27135 *p = math.Float32frombits(read32(r))
27140 func (obj *Content) serialize(w io.Writer) {
27142 x := *(*(uint16))(obj)
27143 write16(w, uint16(x))
27147 func (obj *Content) deserialize(r io.Reader) {
27149 p := &*(*(uint16))(obj)
27154 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
27156 x := *(*(uint32))(obj)
27157 write32(w, uint32(x))
27161 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
27163 p := &*(*(uint32))(obj)
27168 func (obj *HUDID) serialize(w io.Writer) {
27170 x := *(*(uint32))(obj)
27171 write32(w, uint32(x))
27175 func (obj *HUDID) deserialize(r io.Reader) {
27177 p := &*(*(uint32))(obj)
27182 func (obj *HUD) serialize(w io.Writer) {
27183 if err := pcall(func() {
27201 }))(obj)).Type).serialize(w)
27206 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27208 for local315 := range (*(*(struct {
27227 x := ((*(*(struct {
27244 }))(obj)).Pos)[local315]
27245 write32(w, math.Float32bits(x))
27248 if len(([]byte((*(*(struct {
27265 }))(obj)).Name))) > math.MaxUint16 {
27269 x := uint16(len(([]byte((*(*(struct {
27287 write16(w, uint16(x))
27290 _, err := w.Write(([]byte((*(*(struct {
27307 }))(obj)).Name))[:])
27310 for local316 := range (*(*(struct {
27329 x := ((*(*(struct {
27346 }))(obj)).Scale)[local316]
27347 write32(w, math.Float32bits(x))
27350 if len(([]byte((*(*(struct {
27367 }))(obj)).Text))) > math.MaxUint16 {
27371 x := uint16(len(([]byte((*(*(struct {
27389 write16(w, uint16(x))
27392 _, err := w.Write(([]byte((*(*(struct {
27409 }))(obj)).Text))[:])
27431 write32(w, uint32(x))
27452 write32(w, uint32(x))
27473 write32(w, uint32(x))
27475 for local317 := range (*(*(struct {
27494 x := ((*(*(struct {
27511 }))(obj)).Align)[local317]
27512 write32(w, math.Float32bits(x))
27515 for local318 := range (*(*(struct {
27534 x := ((*(*(struct {
27551 }))(obj)).Offset)[local318]
27552 write32(w, math.Float32bits(x))
27555 if err := pcall(func() {
27573 }))(obj)).WorldPos).serialize(w)
27578 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
27580 for local319 := range (*(*(struct {
27599 x := ((*(*(struct {
27616 }))(obj)).Size)[local319]
27617 write32(w, uint32(x))
27639 write16(w, uint16(x))
27641 if len(([]byte((*(*(struct {
27658 }))(obj)).Text2))) > math.MaxUint16 {
27662 x := uint16(len(([]byte((*(*(struct {
27679 }))(obj)).Text2))))
27680 write16(w, uint16(x))
27683 _, err := w.Write(([]byte((*(*(struct {
27700 }))(obj)).Text2))[:])
27722 write32(w, uint32(x))
27726 func (obj *HUD) deserialize(r io.Reader) {
27727 if err := pcall(func() {
27745 }))(obj)).Type).deserialize(r)
27750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27752 for local320 := range (*(*(struct {
27771 p := &((*(*(struct {
27788 }))(obj)).Pos)[local320]
27789 *p = math.Float32frombits(read32(r))
27792 var local321 []uint8
27793 var local322 uint16
27798 (local321) = make([]uint8, local322)
27800 _, err := io.ReadFull(r, (local321)[:])
27820 }))(obj)).Name) = string(local321)
27821 for local323 := range (*(*(struct {
27840 p := &((*(*(struct {
27857 }))(obj)).Scale)[local323]
27858 *p = math.Float32frombits(read32(r))
27861 var local324 []uint8
27862 var local325 uint16
27867 (local324) = make([]uint8, local325)
27869 _, err := io.ReadFull(r, (local324)[:])
27889 }))(obj)).Text) = string(local324)
27891 p := &(*(*(struct {
27912 p := &(*(*(struct {
27933 p := &(*(*(struct {
27953 for local326 := range (*(*(struct {
27972 p := &((*(*(struct {
27989 }))(obj)).Align)[local326]
27990 *p = math.Float32frombits(read32(r))
27993 for local327 := range (*(*(struct {
28012 p := &((*(*(struct {
28029 }))(obj)).Offset)[local327]
28030 *p = math.Float32frombits(read32(r))
28033 if err := pcall(func() {
28051 }))(obj)).WorldPos).deserialize(r)
28056 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
28058 for local328 := range (*(*(struct {
28077 p := &((*(*(struct {
28094 }))(obj)).Size)[local328]
28095 *p = int32(read32(r))
28099 p := &(*(*(struct {
28117 *p = int16(read16(r))
28119 var local329 []uint8
28120 var local330 uint16
28125 (local329) = make([]uint8, local330)
28127 _, err := io.ReadFull(r, (local329)[:])
28147 }))(obj)).Text2) = string(local329)
28149 p := &(*(*(struct {
28171 func (obj *HUDField) serialize(w io.Writer) {
28173 x := *(*(uint8))(obj)
28174 write8(w, uint8(x))
28178 func (obj *HUDField) deserialize(r io.Reader) {
28180 p := &*(*(uint8))(obj)
28185 func (obj *HUDStyleFlags) serialize(w io.Writer) {
28187 x := *(*(uint32))(obj)
28188 write32(w, uint32(x))
28192 func (obj *HUDStyleFlags) deserialize(r io.Reader) {
28194 p := &*(*(uint32))(obj)
28199 func (obj *HUDFlags) serialize(w io.Writer) {
28201 x := *(*(uint32))(obj)
28202 write32(w, uint32(x))
28206 func (obj *HUDFlags) deserialize(r io.Reader) {
28208 p := &*(*(uint32))(obj)
28213 func (obj *HotbarParam) serialize(w io.Writer) {
28215 x := *(*(uint16))(obj)
28216 write16(w, uint16(x))
28220 func (obj *HotbarParam) deserialize(r io.Reader) {
28222 p := &*(*(uint16))(obj)
28227 func (obj *Texture) serialize(w io.Writer) {
28228 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
28232 x := uint16(len(([]byte(*(*(string))(obj)))))
28233 write16(w, uint16(x))
28236 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
28241 func (obj *Texture) deserialize(r io.Reader) {
28242 var local331 []uint8
28243 var local332 uint16
28248 (local331) = make([]uint8, local332)
28250 _, err := io.ReadFull(r, (local331)[:])
28253 (*(*(string))(obj)) = string(local331)
28256 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
28258 x := *(*(uint8))(obj)
28259 write8(w, uint8(x))
28263 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
28265 p := &*(*(uint8))(obj)
28270 func (obj *ModChanSig) serialize(w io.Writer) {
28272 x := *(*(uint8))(obj)
28273 write8(w, uint8(x))
28277 func (obj *ModChanSig) deserialize(r io.Reader) {
28279 p := &*(*(uint8))(obj)
28284 func (obj *AOProps) serialize(w io.Writer) {
28286 local333 := uint8(4)
28289 write8(w, uint8(x))
28294 MaxHP uint16 // Player only.
28295 CollideWithNodes bool
28296 Weight float32 // deprecated
28300 VisualSize [3]float32
28302 SpriteSheetSize [2]int16 // in sprites.
28303 SpritePos [2]int16 // in sprite sheet.
28305 MakeFootstepSnds bool
28306 RotateSpeed float32 // in radians per second.
28308 Colors []color.NRGBA
28309 CollideWithAOs bool
28312 FaceRotateDirOff float32 // in degrees.
28315 NametagColor color.NRGBA
28316 FaceRotateSpeed float32 // in degrees per second.
28320 MaxBreath uint16 // Player only.
28321 EyeHeight float32 // Player only.
28322 ZoomFOV float32 // in degrees. Player only.
28323 UseTextureAlpha bool
28324 DmgTextureMod Texture // suffix
28327 NametagBG color.NRGBA
28329 write16(w, uint16(x))
28333 MaxHP uint16 // Player only.
28334 CollideWithNodes bool
28335 Weight float32 // deprecated
28339 VisualSize [3]float32
28341 SpriteSheetSize [2]int16 // in sprites.
28342 SpritePos [2]int16 // in sprite sheet.
28344 MakeFootstepSnds bool
28345 RotateSpeed float32 // in radians per second.
28347 Colors []color.NRGBA
28348 CollideWithAOs bool
28351 FaceRotateDirOff float32 // in degrees.
28354 NametagColor color.NRGBA
28355 FaceRotateSpeed float32 // in degrees per second.
28359 MaxBreath uint16 // Player only.
28360 EyeHeight float32 // Player only.
28361 ZoomFOV float32 // in degrees. Player only.
28362 UseTextureAlpha bool
28363 DmgTextureMod Texture // suffix
28366 NametagBG color.NRGBA
28367 }))(obj)).CollideWithNodes
28376 MaxHP uint16 // Player only.
28377 CollideWithNodes bool
28378 Weight float32 // deprecated
28382 VisualSize [3]float32
28384 SpriteSheetSize [2]int16 // in sprites.
28385 SpritePos [2]int16 // in sprite sheet.
28387 MakeFootstepSnds bool
28388 RotateSpeed float32 // in radians per second.
28390 Colors []color.NRGBA
28391 CollideWithAOs bool
28394 FaceRotateDirOff float32 // in degrees.
28397 NametagColor color.NRGBA
28398 FaceRotateSpeed float32 // in degrees per second.
28402 MaxBreath uint16 // Player only.
28403 EyeHeight float32 // Player only.
28404 ZoomFOV float32 // in degrees. Player only.
28405 UseTextureAlpha bool
28406 DmgTextureMod Texture // suffix
28409 NametagBG color.NRGBA
28411 write32(w, math.Float32bits(x))
28413 if err := pcall(func() {
28415 MaxHP uint16 // Player only.
28416 CollideWithNodes bool
28417 Weight float32 // deprecated
28421 VisualSize [3]float32
28423 SpriteSheetSize [2]int16 // in sprites.
28424 SpritePos [2]int16 // in sprite sheet.
28426 MakeFootstepSnds bool
28427 RotateSpeed float32 // in radians per second.
28429 Colors []color.NRGBA
28430 CollideWithAOs bool
28433 FaceRotateDirOff float32 // in degrees.
28436 NametagColor color.NRGBA
28437 FaceRotateSpeed float32 // in degrees per second.
28441 MaxBreath uint16 // Player only.
28442 EyeHeight float32 // Player only.
28443 ZoomFOV float32 // in degrees. Player only.
28444 UseTextureAlpha bool
28445 DmgTextureMod Texture // suffix
28448 NametagBG color.NRGBA
28449 }))(obj)).ColBox).serialize(w)
28454 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28456 if err := pcall(func() {
28458 MaxHP uint16 // Player only.
28459 CollideWithNodes bool
28460 Weight float32 // deprecated
28464 VisualSize [3]float32
28466 SpriteSheetSize [2]int16 // in sprites.
28467 SpritePos [2]int16 // in sprite sheet.
28469 MakeFootstepSnds bool
28470 RotateSpeed float32 // in radians per second.
28472 Colors []color.NRGBA
28473 CollideWithAOs bool
28476 FaceRotateDirOff float32 // in degrees.
28479 NametagColor color.NRGBA
28480 FaceRotateSpeed float32 // in degrees per second.
28484 MaxBreath uint16 // Player only.
28485 EyeHeight float32 // Player only.
28486 ZoomFOV float32 // in degrees. Player only.
28487 UseTextureAlpha bool
28488 DmgTextureMod Texture // suffix
28491 NametagBG color.NRGBA
28492 }))(obj)).SelBox).serialize(w)
28497 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28501 MaxHP uint16 // Player only.
28502 CollideWithNodes bool
28503 Weight float32 // deprecated
28507 VisualSize [3]float32
28509 SpriteSheetSize [2]int16 // in sprites.
28510 SpritePos [2]int16 // in sprite sheet.
28512 MakeFootstepSnds bool
28513 RotateSpeed float32 // in radians per second.
28515 Colors []color.NRGBA
28516 CollideWithAOs bool
28519 FaceRotateDirOff float32 // in degrees.
28522 NametagColor color.NRGBA
28523 FaceRotateSpeed float32 // in degrees per second.
28527 MaxBreath uint16 // Player only.
28528 EyeHeight float32 // Player only.
28529 ZoomFOV float32 // in degrees. Player only.
28530 UseTextureAlpha bool
28531 DmgTextureMod Texture // suffix
28534 NametagBG color.NRGBA
28535 }))(obj)).Pointable
28542 if len(([]byte((*(*(struct {
28543 MaxHP uint16 // Player only.
28544 CollideWithNodes bool
28545 Weight float32 // deprecated
28549 VisualSize [3]float32
28551 SpriteSheetSize [2]int16 // in sprites.
28552 SpritePos [2]int16 // in sprite sheet.
28554 MakeFootstepSnds bool
28555 RotateSpeed float32 // in radians per second.
28557 Colors []color.NRGBA
28558 CollideWithAOs bool
28561 FaceRotateDirOff float32 // in degrees.
28564 NametagColor color.NRGBA
28565 FaceRotateSpeed float32 // in degrees per second.
28569 MaxBreath uint16 // Player only.
28570 EyeHeight float32 // Player only.
28571 ZoomFOV float32 // in degrees. Player only.
28572 UseTextureAlpha bool
28573 DmgTextureMod Texture // suffix
28576 NametagBG color.NRGBA
28577 }))(obj)).Visual))) > math.MaxUint16 {
28581 x := uint16(len(([]byte((*(*(struct {
28582 MaxHP uint16 // Player only.
28583 CollideWithNodes bool
28584 Weight float32 // deprecated
28588 VisualSize [3]float32
28590 SpriteSheetSize [2]int16 // in sprites.
28591 SpritePos [2]int16 // in sprite sheet.
28593 MakeFootstepSnds bool
28594 RotateSpeed float32 // in radians per second.
28596 Colors []color.NRGBA
28597 CollideWithAOs bool
28600 FaceRotateDirOff float32 // in degrees.
28603 NametagColor color.NRGBA
28604 FaceRotateSpeed float32 // in degrees per second.
28608 MaxBreath uint16 // Player only.
28609 EyeHeight float32 // Player only.
28610 ZoomFOV float32 // in degrees. Player only.
28611 UseTextureAlpha bool
28612 DmgTextureMod Texture // suffix
28615 NametagBG color.NRGBA
28616 }))(obj)).Visual))))
28617 write16(w, uint16(x))
28620 _, err := w.Write(([]byte((*(*(struct {
28621 MaxHP uint16 // Player only.
28622 CollideWithNodes bool
28623 Weight float32 // deprecated
28627 VisualSize [3]float32
28629 SpriteSheetSize [2]int16 // in sprites.
28630 SpritePos [2]int16 // in sprite sheet.
28632 MakeFootstepSnds bool
28633 RotateSpeed float32 // in radians per second.
28635 Colors []color.NRGBA
28636 CollideWithAOs bool
28639 FaceRotateDirOff float32 // in degrees.
28642 NametagColor color.NRGBA
28643 FaceRotateSpeed float32 // in degrees per second.
28647 MaxBreath uint16 // Player only.
28648 EyeHeight float32 // Player only.
28649 ZoomFOV float32 // in degrees. Player only.
28650 UseTextureAlpha bool
28651 DmgTextureMod Texture // suffix
28654 NametagBG color.NRGBA
28655 }))(obj)).Visual))[:])
28658 for local334 := range (*(*(struct {
28659 MaxHP uint16 // Player only.
28660 CollideWithNodes bool
28661 Weight float32 // deprecated
28665 VisualSize [3]float32
28667 SpriteSheetSize [2]int16 // in sprites.
28668 SpritePos [2]int16 // in sprite sheet.
28670 MakeFootstepSnds bool
28671 RotateSpeed float32 // in radians per second.
28673 Colors []color.NRGBA
28674 CollideWithAOs bool
28677 FaceRotateDirOff float32 // in degrees.
28680 NametagColor color.NRGBA
28681 FaceRotateSpeed float32 // in degrees per second.
28685 MaxBreath uint16 // Player only.
28686 EyeHeight float32 // Player only.
28687 ZoomFOV float32 // in degrees. Player only.
28688 UseTextureAlpha bool
28689 DmgTextureMod Texture // suffix
28692 NametagBG color.NRGBA
28693 }))(obj)).VisualSize {
28695 x := ((*(*(struct {
28696 MaxHP uint16 // Player only.
28697 CollideWithNodes bool
28698 Weight float32 // deprecated
28702 VisualSize [3]float32
28704 SpriteSheetSize [2]int16 // in sprites.
28705 SpritePos [2]int16 // in sprite sheet.
28707 MakeFootstepSnds bool
28708 RotateSpeed float32 // in radians per second.
28710 Colors []color.NRGBA
28711 CollideWithAOs bool
28714 FaceRotateDirOff float32 // in degrees.
28717 NametagColor color.NRGBA
28718 FaceRotateSpeed float32 // in degrees per second.
28722 MaxBreath uint16 // Player only.
28723 EyeHeight float32 // Player only.
28724 ZoomFOV float32 // in degrees. Player only.
28725 UseTextureAlpha bool
28726 DmgTextureMod Texture // suffix
28729 NametagBG color.NRGBA
28730 }))(obj)).VisualSize)[local334]
28731 write32(w, math.Float32bits(x))
28734 if len(((*(*(struct {
28735 MaxHP uint16 // Player only.
28736 CollideWithNodes bool
28737 Weight float32 // deprecated
28741 VisualSize [3]float32
28743 SpriteSheetSize [2]int16 // in sprites.
28744 SpritePos [2]int16 // in sprite sheet.
28746 MakeFootstepSnds bool
28747 RotateSpeed float32 // in radians per second.
28749 Colors []color.NRGBA
28750 CollideWithAOs bool
28753 FaceRotateDirOff float32 // in degrees.
28756 NametagColor color.NRGBA
28757 FaceRotateSpeed float32 // in degrees per second.
28761 MaxBreath uint16 // Player only.
28762 EyeHeight float32 // Player only.
28763 ZoomFOV float32 // in degrees. Player only.
28764 UseTextureAlpha bool
28765 DmgTextureMod Texture // suffix
28768 NametagBG color.NRGBA
28769 }))(obj)).Textures)) > math.MaxUint16 {
28773 x := uint16(len(((*(*(struct {
28774 MaxHP uint16 // Player only.
28775 CollideWithNodes bool
28776 Weight float32 // deprecated
28780 VisualSize [3]float32
28782 SpriteSheetSize [2]int16 // in sprites.
28783 SpritePos [2]int16 // in sprite sheet.
28785 MakeFootstepSnds bool
28786 RotateSpeed float32 // in radians per second.
28788 Colors []color.NRGBA
28789 CollideWithAOs bool
28792 FaceRotateDirOff float32 // in degrees.
28795 NametagColor color.NRGBA
28796 FaceRotateSpeed float32 // in degrees per second.
28800 MaxBreath uint16 // Player only.
28801 EyeHeight float32 // Player only.
28802 ZoomFOV float32 // in degrees. Player only.
28803 UseTextureAlpha bool
28804 DmgTextureMod Texture // suffix
28807 NametagBG color.NRGBA
28808 }))(obj)).Textures)))
28809 write16(w, uint16(x))
28811 for local335 := range (*(*(struct {
28812 MaxHP uint16 // Player only.
28813 CollideWithNodes bool
28814 Weight float32 // deprecated
28818 VisualSize [3]float32
28820 SpriteSheetSize [2]int16 // in sprites.
28821 SpritePos [2]int16 // in sprite sheet.
28823 MakeFootstepSnds bool
28824 RotateSpeed float32 // in radians per second.
28826 Colors []color.NRGBA
28827 CollideWithAOs bool
28830 FaceRotateDirOff float32 // in degrees.
28833 NametagColor color.NRGBA
28834 FaceRotateSpeed float32 // in degrees per second.
28838 MaxBreath uint16 // Player only.
28839 EyeHeight float32 // Player only.
28840 ZoomFOV float32 // in degrees. Player only.
28841 UseTextureAlpha bool
28842 DmgTextureMod Texture // suffix
28845 NametagBG color.NRGBA
28846 }))(obj)).Textures {
28847 if err := pcall(func() {
28849 MaxHP uint16 // Player only.
28850 CollideWithNodes bool
28851 Weight float32 // deprecated
28855 VisualSize [3]float32
28857 SpriteSheetSize [2]int16 // in sprites.
28858 SpritePos [2]int16 // in sprite sheet.
28860 MakeFootstepSnds bool
28861 RotateSpeed float32 // in radians per second.
28863 Colors []color.NRGBA
28864 CollideWithAOs bool
28867 FaceRotateDirOff float32 // in degrees.
28870 NametagColor color.NRGBA
28871 FaceRotateSpeed float32 // in degrees per second.
28875 MaxBreath uint16 // Player only.
28876 EyeHeight float32 // Player only.
28877 ZoomFOV float32 // in degrees. Player only.
28878 UseTextureAlpha bool
28879 DmgTextureMod Texture // suffix
28882 NametagBG color.NRGBA
28883 }))(obj)).Textures)[local335]).serialize(w)
28888 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
28891 for local336 := range (*(*(struct {
28892 MaxHP uint16 // Player only.
28893 CollideWithNodes bool
28894 Weight float32 // deprecated
28898 VisualSize [3]float32
28900 SpriteSheetSize [2]int16 // in sprites.
28901 SpritePos [2]int16 // in sprite sheet.
28903 MakeFootstepSnds bool
28904 RotateSpeed float32 // in radians per second.
28906 Colors []color.NRGBA
28907 CollideWithAOs bool
28910 FaceRotateDirOff float32 // in degrees.
28913 NametagColor color.NRGBA
28914 FaceRotateSpeed float32 // in degrees per second.
28918 MaxBreath uint16 // Player only.
28919 EyeHeight float32 // Player only.
28920 ZoomFOV float32 // in degrees. Player only.
28921 UseTextureAlpha bool
28922 DmgTextureMod Texture // suffix
28925 NametagBG color.NRGBA
28926 }))(obj)).SpriteSheetSize {
28928 x := ((*(*(struct {
28929 MaxHP uint16 // Player only.
28930 CollideWithNodes bool
28931 Weight float32 // deprecated
28935 VisualSize [3]float32
28937 SpriteSheetSize [2]int16 // in sprites.
28938 SpritePos [2]int16 // in sprite sheet.
28940 MakeFootstepSnds bool
28941 RotateSpeed float32 // in radians per second.
28943 Colors []color.NRGBA
28944 CollideWithAOs bool
28947 FaceRotateDirOff float32 // in degrees.
28950 NametagColor color.NRGBA
28951 FaceRotateSpeed float32 // in degrees per second.
28955 MaxBreath uint16 // Player only.
28956 EyeHeight float32 // Player only.
28957 ZoomFOV float32 // in degrees. Player only.
28958 UseTextureAlpha bool
28959 DmgTextureMod Texture // suffix
28962 NametagBG color.NRGBA
28963 }))(obj)).SpriteSheetSize)[local336]
28964 write16(w, uint16(x))
28967 for local337 := range (*(*(struct {
28968 MaxHP uint16 // Player only.
28969 CollideWithNodes bool
28970 Weight float32 // deprecated
28974 VisualSize [3]float32
28976 SpriteSheetSize [2]int16 // in sprites.
28977 SpritePos [2]int16 // in sprite sheet.
28979 MakeFootstepSnds bool
28980 RotateSpeed float32 // in radians per second.
28982 Colors []color.NRGBA
28983 CollideWithAOs bool
28986 FaceRotateDirOff float32 // in degrees.
28989 NametagColor color.NRGBA
28990 FaceRotateSpeed float32 // in degrees per second.
28994 MaxBreath uint16 // Player only.
28995 EyeHeight float32 // Player only.
28996 ZoomFOV float32 // in degrees. Player only.
28997 UseTextureAlpha bool
28998 DmgTextureMod Texture // suffix
29001 NametagBG color.NRGBA
29002 }))(obj)).SpritePos {
29004 x := ((*(*(struct {
29005 MaxHP uint16 // Player only.
29006 CollideWithNodes bool
29007 Weight float32 // deprecated
29011 VisualSize [3]float32
29013 SpriteSheetSize [2]int16 // in sprites.
29014 SpritePos [2]int16 // in sprite sheet.
29016 MakeFootstepSnds bool
29017 RotateSpeed float32 // in radians per second.
29019 Colors []color.NRGBA
29020 CollideWithAOs bool
29023 FaceRotateDirOff float32 // in degrees.
29026 NametagColor color.NRGBA
29027 FaceRotateSpeed float32 // in degrees per second.
29031 MaxBreath uint16 // Player only.
29032 EyeHeight float32 // Player only.
29033 ZoomFOV float32 // in degrees. Player only.
29034 UseTextureAlpha bool
29035 DmgTextureMod Texture // suffix
29038 NametagBG color.NRGBA
29039 }))(obj)).SpritePos)[local337]
29040 write16(w, uint16(x))
29045 MaxHP uint16 // Player only.
29046 CollideWithNodes bool
29047 Weight float32 // deprecated
29051 VisualSize [3]float32
29053 SpriteSheetSize [2]int16 // in sprites.
29054 SpritePos [2]int16 // in sprite sheet.
29056 MakeFootstepSnds bool
29057 RotateSpeed float32 // in radians per second.
29059 Colors []color.NRGBA
29060 CollideWithAOs bool
29063 FaceRotateDirOff float32 // in degrees.
29066 NametagColor color.NRGBA
29067 FaceRotateSpeed float32 // in degrees per second.
29071 MaxBreath uint16 // Player only.
29072 EyeHeight float32 // Player only.
29073 ZoomFOV float32 // in degrees. Player only.
29074 UseTextureAlpha bool
29075 DmgTextureMod Texture // suffix
29078 NametagBG color.NRGBA
29088 MaxHP uint16 // Player only.
29089 CollideWithNodes bool
29090 Weight float32 // deprecated
29094 VisualSize [3]float32
29096 SpriteSheetSize [2]int16 // in sprites.
29097 SpritePos [2]int16 // in sprite sheet.
29099 MakeFootstepSnds bool
29100 RotateSpeed float32 // in radians per second.
29102 Colors []color.NRGBA
29103 CollideWithAOs bool
29106 FaceRotateDirOff float32 // in degrees.
29109 NametagColor color.NRGBA
29110 FaceRotateSpeed float32 // in degrees per second.
29114 MaxBreath uint16 // Player only.
29115 EyeHeight float32 // Player only.
29116 ZoomFOV float32 // in degrees. Player only.
29117 UseTextureAlpha bool
29118 DmgTextureMod Texture // suffix
29121 NametagBG color.NRGBA
29122 }))(obj)).MakeFootstepSnds
29131 MaxHP uint16 // Player only.
29132 CollideWithNodes bool
29133 Weight float32 // deprecated
29137 VisualSize [3]float32
29139 SpriteSheetSize [2]int16 // in sprites.
29140 SpritePos [2]int16 // in sprite sheet.
29142 MakeFootstepSnds bool
29143 RotateSpeed float32 // in radians per second.
29145 Colors []color.NRGBA
29146 CollideWithAOs bool
29149 FaceRotateDirOff float32 // in degrees.
29152 NametagColor color.NRGBA
29153 FaceRotateSpeed float32 // in degrees per second.
29157 MaxBreath uint16 // Player only.
29158 EyeHeight float32 // Player only.
29159 ZoomFOV float32 // in degrees. Player only.
29160 UseTextureAlpha bool
29161 DmgTextureMod Texture // suffix
29164 NametagBG color.NRGBA
29165 }))(obj)).RotateSpeed
29166 write32(w, math.Float32bits(x))
29168 if len(([]byte((*(*(struct {
29169 MaxHP uint16 // Player only.
29170 CollideWithNodes bool
29171 Weight float32 // deprecated
29175 VisualSize [3]float32
29177 SpriteSheetSize [2]int16 // in sprites.
29178 SpritePos [2]int16 // in sprite sheet.
29180 MakeFootstepSnds bool
29181 RotateSpeed float32 // in radians per second.
29183 Colors []color.NRGBA
29184 CollideWithAOs bool
29187 FaceRotateDirOff float32 // in degrees.
29190 NametagColor color.NRGBA
29191 FaceRotateSpeed float32 // in degrees per second.
29195 MaxBreath uint16 // Player only.
29196 EyeHeight float32 // Player only.
29197 ZoomFOV float32 // in degrees. Player only.
29198 UseTextureAlpha bool
29199 DmgTextureMod Texture // suffix
29202 NametagBG color.NRGBA
29203 }))(obj)).Mesh))) > math.MaxUint16 {
29207 x := uint16(len(([]byte((*(*(struct {
29208 MaxHP uint16 // Player only.
29209 CollideWithNodes bool
29210 Weight float32 // deprecated
29214 VisualSize [3]float32
29216 SpriteSheetSize [2]int16 // in sprites.
29217 SpritePos [2]int16 // in sprite sheet.
29219 MakeFootstepSnds bool
29220 RotateSpeed float32 // in radians per second.
29222 Colors []color.NRGBA
29223 CollideWithAOs bool
29226 FaceRotateDirOff float32 // in degrees.
29229 NametagColor color.NRGBA
29230 FaceRotateSpeed float32 // in degrees per second.
29234 MaxBreath uint16 // Player only.
29235 EyeHeight float32 // Player only.
29236 ZoomFOV float32 // in degrees. Player only.
29237 UseTextureAlpha bool
29238 DmgTextureMod Texture // suffix
29241 NametagBG color.NRGBA
29243 write16(w, uint16(x))
29246 _, err := w.Write(([]byte((*(*(struct {
29247 MaxHP uint16 // Player only.
29248 CollideWithNodes bool
29249 Weight float32 // deprecated
29253 VisualSize [3]float32
29255 SpriteSheetSize [2]int16 // in sprites.
29256 SpritePos [2]int16 // in sprite sheet.
29258 MakeFootstepSnds bool
29259 RotateSpeed float32 // in radians per second.
29261 Colors []color.NRGBA
29262 CollideWithAOs bool
29265 FaceRotateDirOff float32 // in degrees.
29268 NametagColor color.NRGBA
29269 FaceRotateSpeed float32 // in degrees per second.
29273 MaxBreath uint16 // Player only.
29274 EyeHeight float32 // Player only.
29275 ZoomFOV float32 // in degrees. Player only.
29276 UseTextureAlpha bool
29277 DmgTextureMod Texture // suffix
29280 NametagBG color.NRGBA
29281 }))(obj)).Mesh))[:])
29284 if len(((*(*(struct {
29285 MaxHP uint16 // Player only.
29286 CollideWithNodes bool
29287 Weight float32 // deprecated
29291 VisualSize [3]float32
29293 SpriteSheetSize [2]int16 // in sprites.
29294 SpritePos [2]int16 // in sprite sheet.
29296 MakeFootstepSnds bool
29297 RotateSpeed float32 // in radians per second.
29299 Colors []color.NRGBA
29300 CollideWithAOs bool
29303 FaceRotateDirOff float32 // in degrees.
29306 NametagColor color.NRGBA
29307 FaceRotateSpeed float32 // in degrees per second.
29311 MaxBreath uint16 // Player only.
29312 EyeHeight float32 // Player only.
29313 ZoomFOV float32 // in degrees. Player only.
29314 UseTextureAlpha bool
29315 DmgTextureMod Texture // suffix
29318 NametagBG color.NRGBA
29319 }))(obj)).Colors)) > math.MaxUint16 {
29323 x := uint16(len(((*(*(struct {
29324 MaxHP uint16 // Player only.
29325 CollideWithNodes bool
29326 Weight float32 // deprecated
29330 VisualSize [3]float32
29332 SpriteSheetSize [2]int16 // in sprites.
29333 SpritePos [2]int16 // in sprite sheet.
29335 MakeFootstepSnds bool
29336 RotateSpeed float32 // in radians per second.
29338 Colors []color.NRGBA
29339 CollideWithAOs bool
29342 FaceRotateDirOff float32 // in degrees.
29345 NametagColor color.NRGBA
29346 FaceRotateSpeed float32 // in degrees per second.
29350 MaxBreath uint16 // Player only.
29351 EyeHeight float32 // Player only.
29352 ZoomFOV float32 // in degrees. Player only.
29353 UseTextureAlpha bool
29354 DmgTextureMod Texture // suffix
29357 NametagBG color.NRGBA
29358 }))(obj)).Colors)))
29359 write16(w, uint16(x))
29361 for local338 := range (*(*(struct {
29362 MaxHP uint16 // Player only.
29363 CollideWithNodes bool
29364 Weight float32 // deprecated
29368 VisualSize [3]float32
29370 SpriteSheetSize [2]int16 // in sprites.
29371 SpritePos [2]int16 // in sprite sheet.
29373 MakeFootstepSnds bool
29374 RotateSpeed float32 // in radians per second.
29376 Colors []color.NRGBA
29377 CollideWithAOs bool
29380 FaceRotateDirOff float32 // in degrees.
29383 NametagColor color.NRGBA
29384 FaceRotateSpeed float32 // in degrees per second.
29388 MaxBreath uint16 // Player only.
29389 EyeHeight float32 // Player only.
29390 ZoomFOV float32 // in degrees. Player only.
29391 UseTextureAlpha bool
29392 DmgTextureMod Texture // suffix
29395 NametagBG color.NRGBA
29398 x := ((*(*(struct {
29399 MaxHP uint16 // Player only.
29400 CollideWithNodes bool
29401 Weight float32 // deprecated
29405 VisualSize [3]float32
29407 SpriteSheetSize [2]int16 // in sprites.
29408 SpritePos [2]int16 // in sprite sheet.
29410 MakeFootstepSnds bool
29411 RotateSpeed float32 // in radians per second.
29413 Colors []color.NRGBA
29414 CollideWithAOs bool
29417 FaceRotateDirOff float32 // in degrees.
29420 NametagColor color.NRGBA
29421 FaceRotateSpeed float32 // in degrees per second.
29425 MaxBreath uint16 // Player only.
29426 EyeHeight float32 // Player only.
29427 ZoomFOV float32 // in degrees. Player only.
29428 UseTextureAlpha bool
29429 DmgTextureMod Texture // suffix
29432 NametagBG color.NRGBA
29433 }))(obj)).Colors)[local338]
29434 w.Write([]byte{x.A, x.R, x.G, x.B})
29439 MaxHP uint16 // Player only.
29440 CollideWithNodes bool
29441 Weight float32 // deprecated
29445 VisualSize [3]float32
29447 SpriteSheetSize [2]int16 // in sprites.
29448 SpritePos [2]int16 // in sprite sheet.
29450 MakeFootstepSnds bool
29451 RotateSpeed float32 // in radians per second.
29453 Colors []color.NRGBA
29454 CollideWithAOs bool
29457 FaceRotateDirOff float32 // in degrees.
29460 NametagColor color.NRGBA
29461 FaceRotateSpeed float32 // in degrees per second.
29465 MaxBreath uint16 // Player only.
29466 EyeHeight float32 // Player only.
29467 ZoomFOV float32 // in degrees. Player only.
29468 UseTextureAlpha bool
29469 DmgTextureMod Texture // suffix
29472 NametagBG color.NRGBA
29473 }))(obj)).CollideWithAOs
29482 MaxHP uint16 // Player only.
29483 CollideWithNodes bool
29484 Weight float32 // deprecated
29488 VisualSize [3]float32
29490 SpriteSheetSize [2]int16 // in sprites.
29491 SpritePos [2]int16 // in sprite sheet.
29493 MakeFootstepSnds bool
29494 RotateSpeed float32 // in radians per second.
29496 Colors []color.NRGBA
29497 CollideWithAOs bool
29500 FaceRotateDirOff float32 // in degrees.
29503 NametagColor color.NRGBA
29504 FaceRotateSpeed float32 // in degrees per second.
29508 MaxBreath uint16 // Player only.
29509 EyeHeight float32 // Player only.
29510 ZoomFOV float32 // in degrees. Player only.
29511 UseTextureAlpha bool
29512 DmgTextureMod Texture // suffix
29515 NametagBG color.NRGBA
29516 }))(obj)).StepHeight
29517 write32(w, math.Float32bits(x))
29521 MaxHP uint16 // Player only.
29522 CollideWithNodes bool
29523 Weight float32 // deprecated
29527 VisualSize [3]float32
29529 SpriteSheetSize [2]int16 // in sprites.
29530 SpritePos [2]int16 // in sprite sheet.
29532 MakeFootstepSnds bool
29533 RotateSpeed float32 // in radians per second.
29535 Colors []color.NRGBA
29536 CollideWithAOs bool
29539 FaceRotateDirOff float32 // in degrees.
29542 NametagColor color.NRGBA
29543 FaceRotateSpeed float32 // in degrees per second.
29547 MaxBreath uint16 // Player only.
29548 EyeHeight float32 // Player only.
29549 ZoomFOV float32 // in degrees. Player only.
29550 UseTextureAlpha bool
29551 DmgTextureMod Texture // suffix
29554 NametagBG color.NRGBA
29555 }))(obj)).FaceRotateDir
29564 MaxHP uint16 // Player only.
29565 CollideWithNodes bool
29566 Weight float32 // deprecated
29570 VisualSize [3]float32
29572 SpriteSheetSize [2]int16 // in sprites.
29573 SpritePos [2]int16 // in sprite sheet.
29575 MakeFootstepSnds bool
29576 RotateSpeed float32 // in radians per second.
29578 Colors []color.NRGBA
29579 CollideWithAOs bool
29582 FaceRotateDirOff float32 // in degrees.
29585 NametagColor color.NRGBA
29586 FaceRotateSpeed float32 // in degrees per second.
29590 MaxBreath uint16 // Player only.
29591 EyeHeight float32 // Player only.
29592 ZoomFOV float32 // in degrees. Player only.
29593 UseTextureAlpha bool
29594 DmgTextureMod Texture // suffix
29597 NametagBG color.NRGBA
29598 }))(obj)).FaceRotateDirOff
29599 write32(w, math.Float32bits(x))
29603 MaxHP uint16 // Player only.
29604 CollideWithNodes bool
29605 Weight float32 // deprecated
29609 VisualSize [3]float32
29611 SpriteSheetSize [2]int16 // in sprites.
29612 SpritePos [2]int16 // in sprite sheet.
29614 MakeFootstepSnds bool
29615 RotateSpeed float32 // in radians per second.
29617 Colors []color.NRGBA
29618 CollideWithAOs bool
29621 FaceRotateDirOff float32 // in degrees.
29624 NametagColor color.NRGBA
29625 FaceRotateSpeed float32 // in degrees per second.
29629 MaxBreath uint16 // Player only.
29630 EyeHeight float32 // Player only.
29631 ZoomFOV float32 // in degrees. Player only.
29632 UseTextureAlpha bool
29633 DmgTextureMod Texture // suffix
29636 NametagBG color.NRGBA
29637 }))(obj)).BackfaceCull
29644 if len(([]byte((*(*(struct {
29645 MaxHP uint16 // Player only.
29646 CollideWithNodes bool
29647 Weight float32 // deprecated
29651 VisualSize [3]float32
29653 SpriteSheetSize [2]int16 // in sprites.
29654 SpritePos [2]int16 // in sprite sheet.
29656 MakeFootstepSnds bool
29657 RotateSpeed float32 // in radians per second.
29659 Colors []color.NRGBA
29660 CollideWithAOs bool
29663 FaceRotateDirOff float32 // in degrees.
29666 NametagColor color.NRGBA
29667 FaceRotateSpeed float32 // in degrees per second.
29671 MaxBreath uint16 // Player only.
29672 EyeHeight float32 // Player only.
29673 ZoomFOV float32 // in degrees. Player only.
29674 UseTextureAlpha bool
29675 DmgTextureMod Texture // suffix
29678 NametagBG color.NRGBA
29679 }))(obj)).Nametag))) > math.MaxUint16 {
29683 x := uint16(len(([]byte((*(*(struct {
29684 MaxHP uint16 // Player only.
29685 CollideWithNodes bool
29686 Weight float32 // deprecated
29690 VisualSize [3]float32
29692 SpriteSheetSize [2]int16 // in sprites.
29693 SpritePos [2]int16 // in sprite sheet.
29695 MakeFootstepSnds bool
29696 RotateSpeed float32 // in radians per second.
29698 Colors []color.NRGBA
29699 CollideWithAOs bool
29702 FaceRotateDirOff float32 // in degrees.
29705 NametagColor color.NRGBA
29706 FaceRotateSpeed float32 // in degrees per second.
29710 MaxBreath uint16 // Player only.
29711 EyeHeight float32 // Player only.
29712 ZoomFOV float32 // in degrees. Player only.
29713 UseTextureAlpha bool
29714 DmgTextureMod Texture // suffix
29717 NametagBG color.NRGBA
29718 }))(obj)).Nametag))))
29719 write16(w, uint16(x))
29722 _, err := w.Write(([]byte((*(*(struct {
29723 MaxHP uint16 // Player only.
29724 CollideWithNodes bool
29725 Weight float32 // deprecated
29729 VisualSize [3]float32
29731 SpriteSheetSize [2]int16 // in sprites.
29732 SpritePos [2]int16 // in sprite sheet.
29734 MakeFootstepSnds bool
29735 RotateSpeed float32 // in radians per second.
29737 Colors []color.NRGBA
29738 CollideWithAOs bool
29741 FaceRotateDirOff float32 // in degrees.
29744 NametagColor color.NRGBA
29745 FaceRotateSpeed float32 // in degrees per second.
29749 MaxBreath uint16 // Player only.
29750 EyeHeight float32 // Player only.
29751 ZoomFOV float32 // in degrees. Player only.
29752 UseTextureAlpha bool
29753 DmgTextureMod Texture // suffix
29756 NametagBG color.NRGBA
29757 }))(obj)).Nametag))[:])
29762 MaxHP uint16 // Player only.
29763 CollideWithNodes bool
29764 Weight float32 // deprecated
29768 VisualSize [3]float32
29770 SpriteSheetSize [2]int16 // in sprites.
29771 SpritePos [2]int16 // in sprite sheet.
29773 MakeFootstepSnds bool
29774 RotateSpeed float32 // in radians per second.
29776 Colors []color.NRGBA
29777 CollideWithAOs bool
29780 FaceRotateDirOff float32 // in degrees.
29783 NametagColor color.NRGBA
29784 FaceRotateSpeed float32 // in degrees per second.
29788 MaxBreath uint16 // Player only.
29789 EyeHeight float32 // Player only.
29790 ZoomFOV float32 // in degrees. Player only.
29791 UseTextureAlpha bool
29792 DmgTextureMod Texture // suffix
29795 NametagBG color.NRGBA
29796 }))(obj)).NametagColor
29797 w.Write([]byte{x.A, x.R, x.G, x.B})
29801 MaxHP uint16 // Player only.
29802 CollideWithNodes bool
29803 Weight float32 // deprecated
29807 VisualSize [3]float32
29809 SpriteSheetSize [2]int16 // in sprites.
29810 SpritePos [2]int16 // in sprite sheet.
29812 MakeFootstepSnds bool
29813 RotateSpeed float32 // in radians per second.
29815 Colors []color.NRGBA
29816 CollideWithAOs bool
29819 FaceRotateDirOff float32 // in degrees.
29822 NametagColor color.NRGBA
29823 FaceRotateSpeed float32 // in degrees per second.
29827 MaxBreath uint16 // Player only.
29828 EyeHeight float32 // Player only.
29829 ZoomFOV float32 // in degrees. Player only.
29830 UseTextureAlpha bool
29831 DmgTextureMod Texture // suffix
29834 NametagBG color.NRGBA
29835 }))(obj)).FaceRotateSpeed
29836 write32(w, math.Float32bits(x))
29838 if len(([]byte((*(*(struct {
29839 MaxHP uint16 // Player only.
29840 CollideWithNodes bool
29841 Weight float32 // deprecated
29845 VisualSize [3]float32
29847 SpriteSheetSize [2]int16 // in sprites.
29848 SpritePos [2]int16 // in sprite sheet.
29850 MakeFootstepSnds bool
29851 RotateSpeed float32 // in radians per second.
29853 Colors []color.NRGBA
29854 CollideWithAOs bool
29857 FaceRotateDirOff float32 // in degrees.
29860 NametagColor color.NRGBA
29861 FaceRotateSpeed float32 // in degrees per second.
29865 MaxBreath uint16 // Player only.
29866 EyeHeight float32 // Player only.
29867 ZoomFOV float32 // in degrees. Player only.
29868 UseTextureAlpha bool
29869 DmgTextureMod Texture // suffix
29872 NametagBG color.NRGBA
29873 }))(obj)).Infotext))) > math.MaxUint16 {
29877 x := uint16(len(([]byte((*(*(struct {
29878 MaxHP uint16 // Player only.
29879 CollideWithNodes bool
29880 Weight float32 // deprecated
29884 VisualSize [3]float32
29886 SpriteSheetSize [2]int16 // in sprites.
29887 SpritePos [2]int16 // in sprite sheet.
29889 MakeFootstepSnds bool
29890 RotateSpeed float32 // in radians per second.
29892 Colors []color.NRGBA
29893 CollideWithAOs bool
29896 FaceRotateDirOff float32 // in degrees.
29899 NametagColor color.NRGBA
29900 FaceRotateSpeed float32 // in degrees per second.
29904 MaxBreath uint16 // Player only.
29905 EyeHeight float32 // Player only.
29906 ZoomFOV float32 // in degrees. Player only.
29907 UseTextureAlpha bool
29908 DmgTextureMod Texture // suffix
29911 NametagBG color.NRGBA
29912 }))(obj)).Infotext))))
29913 write16(w, uint16(x))
29916 _, err := w.Write(([]byte((*(*(struct {
29917 MaxHP uint16 // Player only.
29918 CollideWithNodes bool
29919 Weight float32 // deprecated
29923 VisualSize [3]float32
29925 SpriteSheetSize [2]int16 // in sprites.
29926 SpritePos [2]int16 // in sprite sheet.
29928 MakeFootstepSnds bool
29929 RotateSpeed float32 // in radians per second.
29931 Colors []color.NRGBA
29932 CollideWithAOs bool
29935 FaceRotateDirOff float32 // in degrees.
29938 NametagColor color.NRGBA
29939 FaceRotateSpeed float32 // in degrees per second.
29943 MaxBreath uint16 // Player only.
29944 EyeHeight float32 // Player only.
29945 ZoomFOV float32 // in degrees. Player only.
29946 UseTextureAlpha bool
29947 DmgTextureMod Texture // suffix
29950 NametagBG color.NRGBA
29951 }))(obj)).Infotext))[:])
29954 if len(([]byte((*(*(struct {
29955 MaxHP uint16 // Player only.
29956 CollideWithNodes bool
29957 Weight float32 // deprecated
29961 VisualSize [3]float32
29963 SpriteSheetSize [2]int16 // in sprites.
29964 SpritePos [2]int16 // in sprite sheet.
29966 MakeFootstepSnds bool
29967 RotateSpeed float32 // in radians per second.
29969 Colors []color.NRGBA
29970 CollideWithAOs bool
29973 FaceRotateDirOff float32 // in degrees.
29976 NametagColor color.NRGBA
29977 FaceRotateSpeed float32 // in degrees per second.
29981 MaxBreath uint16 // Player only.
29982 EyeHeight float32 // Player only.
29983 ZoomFOV float32 // in degrees. Player only.
29984 UseTextureAlpha bool
29985 DmgTextureMod Texture // suffix
29988 NametagBG color.NRGBA
29989 }))(obj)).Itemstring))) > math.MaxUint16 {
29993 x := uint16(len(([]byte((*(*(struct {
29994 MaxHP uint16 // Player only.
29995 CollideWithNodes bool
29996 Weight float32 // deprecated
30000 VisualSize [3]float32
30002 SpriteSheetSize [2]int16 // in sprites.
30003 SpritePos [2]int16 // in sprite sheet.
30005 MakeFootstepSnds bool
30006 RotateSpeed float32 // in radians per second.
30008 Colors []color.NRGBA
30009 CollideWithAOs bool
30012 FaceRotateDirOff float32 // in degrees.
30015 NametagColor color.NRGBA
30016 FaceRotateSpeed float32 // in degrees per second.
30020 MaxBreath uint16 // Player only.
30021 EyeHeight float32 // Player only.
30022 ZoomFOV float32 // in degrees. Player only.
30023 UseTextureAlpha bool
30024 DmgTextureMod Texture // suffix
30027 NametagBG color.NRGBA
30028 }))(obj)).Itemstring))))
30029 write16(w, uint16(x))
30032 _, err := w.Write(([]byte((*(*(struct {
30033 MaxHP uint16 // Player only.
30034 CollideWithNodes bool
30035 Weight float32 // deprecated
30039 VisualSize [3]float32
30041 SpriteSheetSize [2]int16 // in sprites.
30042 SpritePos [2]int16 // in sprite sheet.
30044 MakeFootstepSnds bool
30045 RotateSpeed float32 // in radians per second.
30047 Colors []color.NRGBA
30048 CollideWithAOs bool
30051 FaceRotateDirOff float32 // in degrees.
30054 NametagColor color.NRGBA
30055 FaceRotateSpeed float32 // in degrees per second.
30059 MaxBreath uint16 // Player only.
30060 EyeHeight float32 // Player only.
30061 ZoomFOV float32 // in degrees. Player only.
30062 UseTextureAlpha bool
30063 DmgTextureMod Texture // suffix
30066 NametagBG color.NRGBA
30067 }))(obj)).Itemstring))[:])
30072 MaxHP uint16 // Player only.
30073 CollideWithNodes bool
30074 Weight float32 // deprecated
30078 VisualSize [3]float32
30080 SpriteSheetSize [2]int16 // in sprites.
30081 SpritePos [2]int16 // in sprite sheet.
30083 MakeFootstepSnds bool
30084 RotateSpeed float32 // in radians per second.
30086 Colors []color.NRGBA
30087 CollideWithAOs bool
30090 FaceRotateDirOff float32 // in degrees.
30093 NametagColor color.NRGBA
30094 FaceRotateSpeed float32 // in degrees per second.
30098 MaxBreath uint16 // Player only.
30099 EyeHeight float32 // Player only.
30100 ZoomFOV float32 // in degrees. Player only.
30101 UseTextureAlpha bool
30102 DmgTextureMod Texture // suffix
30105 NametagBG color.NRGBA
30107 write8(w, uint8(x))
30111 MaxHP uint16 // Player only.
30112 CollideWithNodes bool
30113 Weight float32 // deprecated
30117 VisualSize [3]float32
30119 SpriteSheetSize [2]int16 // in sprites.
30120 SpritePos [2]int16 // in sprite sheet.
30122 MakeFootstepSnds bool
30123 RotateSpeed float32 // in radians per second.
30125 Colors []color.NRGBA
30126 CollideWithAOs bool
30129 FaceRotateDirOff float32 // in degrees.
30132 NametagColor color.NRGBA
30133 FaceRotateSpeed float32 // in degrees per second.
30137 MaxBreath uint16 // Player only.
30138 EyeHeight float32 // Player only.
30139 ZoomFOV float32 // in degrees. Player only.
30140 UseTextureAlpha bool
30141 DmgTextureMod Texture // suffix
30144 NametagBG color.NRGBA
30145 }))(obj)).MaxBreath
30146 write16(w, uint16(x))
30150 MaxHP uint16 // Player only.
30151 CollideWithNodes bool
30152 Weight float32 // deprecated
30156 VisualSize [3]float32
30158 SpriteSheetSize [2]int16 // in sprites.
30159 SpritePos [2]int16 // in sprite sheet.
30161 MakeFootstepSnds bool
30162 RotateSpeed float32 // in radians per second.
30164 Colors []color.NRGBA
30165 CollideWithAOs bool
30168 FaceRotateDirOff float32 // in degrees.
30171 NametagColor color.NRGBA
30172 FaceRotateSpeed float32 // in degrees per second.
30176 MaxBreath uint16 // Player only.
30177 EyeHeight float32 // Player only.
30178 ZoomFOV float32 // in degrees. Player only.
30179 UseTextureAlpha bool
30180 DmgTextureMod Texture // suffix
30183 NametagBG color.NRGBA
30184 }))(obj)).EyeHeight
30185 write32(w, math.Float32bits(x))
30189 MaxHP uint16 // Player only.
30190 CollideWithNodes bool
30191 Weight float32 // deprecated
30195 VisualSize [3]float32
30197 SpriteSheetSize [2]int16 // in sprites.
30198 SpritePos [2]int16 // in sprite sheet.
30200 MakeFootstepSnds bool
30201 RotateSpeed float32 // in radians per second.
30203 Colors []color.NRGBA
30204 CollideWithAOs bool
30207 FaceRotateDirOff float32 // in degrees.
30210 NametagColor color.NRGBA
30211 FaceRotateSpeed float32 // in degrees per second.
30215 MaxBreath uint16 // Player only.
30216 EyeHeight float32 // Player only.
30217 ZoomFOV float32 // in degrees. Player only.
30218 UseTextureAlpha bool
30219 DmgTextureMod Texture // suffix
30222 NametagBG color.NRGBA
30224 write32(w, math.Float32bits(x))
30228 MaxHP uint16 // Player only.
30229 CollideWithNodes bool
30230 Weight float32 // deprecated
30234 VisualSize [3]float32
30236 SpriteSheetSize [2]int16 // in sprites.
30237 SpritePos [2]int16 // in sprite sheet.
30239 MakeFootstepSnds bool
30240 RotateSpeed float32 // in radians per second.
30242 Colors []color.NRGBA
30243 CollideWithAOs bool
30246 FaceRotateDirOff float32 // in degrees.
30249 NametagColor color.NRGBA
30250 FaceRotateSpeed float32 // in degrees per second.
30254 MaxBreath uint16 // Player only.
30255 EyeHeight float32 // Player only.
30256 ZoomFOV float32 // in degrees. Player only.
30257 UseTextureAlpha bool
30258 DmgTextureMod Texture // suffix
30261 NametagBG color.NRGBA
30262 }))(obj)).UseTextureAlpha
30269 if err := pcall(func() {
30271 MaxHP uint16 // Player only.
30272 CollideWithNodes bool
30273 Weight float32 // deprecated
30277 VisualSize [3]float32
30279 SpriteSheetSize [2]int16 // in sprites.
30280 SpritePos [2]int16 // in sprite sheet.
30282 MakeFootstepSnds bool
30283 RotateSpeed float32 // in radians per second.
30285 Colors []color.NRGBA
30286 CollideWithAOs bool
30289 FaceRotateDirOff float32 // in degrees.
30292 NametagColor color.NRGBA
30293 FaceRotateSpeed float32 // in degrees per second.
30297 MaxBreath uint16 // Player only.
30298 EyeHeight float32 // Player only.
30299 ZoomFOV float32 // in degrees. Player only.
30300 UseTextureAlpha bool
30301 DmgTextureMod Texture // suffix
30304 NametagBG color.NRGBA
30305 }))(obj)).DmgTextureMod).serialize(w)
30310 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30314 MaxHP uint16 // Player only.
30315 CollideWithNodes bool
30316 Weight float32 // deprecated
30320 VisualSize [3]float32
30322 SpriteSheetSize [2]int16 // in sprites.
30323 SpritePos [2]int16 // in sprite sheet.
30325 MakeFootstepSnds bool
30326 RotateSpeed float32 // in radians per second.
30328 Colors []color.NRGBA
30329 CollideWithAOs bool
30332 FaceRotateDirOff float32 // in degrees.
30335 NametagColor color.NRGBA
30336 FaceRotateSpeed float32 // in degrees per second.
30340 MaxBreath uint16 // Player only.
30341 EyeHeight float32 // Player only.
30342 ZoomFOV float32 // in degrees. Player only.
30343 UseTextureAlpha bool
30344 DmgTextureMod Texture // suffix
30347 NametagBG color.NRGBA
30357 MaxHP uint16 // Player only.
30358 CollideWithNodes bool
30359 Weight float32 // deprecated
30363 VisualSize [3]float32
30365 SpriteSheetSize [2]int16 // in sprites.
30366 SpritePos [2]int16 // in sprite sheet.
30368 MakeFootstepSnds bool
30369 RotateSpeed float32 // in radians per second.
30371 Colors []color.NRGBA
30372 CollideWithAOs bool
30375 FaceRotateDirOff float32 // in degrees.
30378 NametagColor color.NRGBA
30379 FaceRotateSpeed float32 // in degrees per second.
30383 MaxBreath uint16 // Player only.
30384 EyeHeight float32 // Player only.
30385 ZoomFOV float32 // in degrees. Player only.
30386 UseTextureAlpha bool
30387 DmgTextureMod Texture // suffix
30390 NametagBG color.NRGBA
30391 }))(obj)).ShowOnMinimap
30400 MaxHP uint16 // Player only.
30401 CollideWithNodes bool
30402 Weight float32 // deprecated
30406 VisualSize [3]float32
30408 SpriteSheetSize [2]int16 // in sprites.
30409 SpritePos [2]int16 // in sprite sheet.
30411 MakeFootstepSnds bool
30412 RotateSpeed float32 // in radians per second.
30414 Colors []color.NRGBA
30415 CollideWithAOs bool
30418 FaceRotateDirOff float32 // in degrees.
30421 NametagColor color.NRGBA
30422 FaceRotateSpeed float32 // in degrees per second.
30426 MaxBreath uint16 // Player only.
30427 EyeHeight float32 // Player only.
30428 ZoomFOV float32 // in degrees. Player only.
30429 UseTextureAlpha bool
30430 DmgTextureMod Texture // suffix
30433 NametagBG color.NRGBA
30434 }))(obj)).NametagBG
30435 w.Write([]byte{x.A, x.R, x.G, x.B})
30439 func (obj *AOProps) deserialize(r io.Reader) {
30442 local340 := uint8(4)
30447 if local339 != local340 {
30448 chk(fmt.Errorf("const %v: %v", "uint8(4)", local339))
30452 p := &(*(*(struct {
30453 MaxHP uint16 // Player only.
30454 CollideWithNodes bool
30455 Weight float32 // deprecated
30459 VisualSize [3]float32
30461 SpriteSheetSize [2]int16 // in sprites.
30462 SpritePos [2]int16 // in sprite sheet.
30464 MakeFootstepSnds bool
30465 RotateSpeed float32 // in radians per second.
30467 Colors []color.NRGBA
30468 CollideWithAOs bool
30471 FaceRotateDirOff float32 // in degrees.
30474 NametagColor color.NRGBA
30475 FaceRotateSpeed float32 // in degrees per second.
30479 MaxBreath uint16 // Player only.
30480 EyeHeight float32 // Player only.
30481 ZoomFOV float32 // in degrees. Player only.
30482 UseTextureAlpha bool
30483 DmgTextureMod Texture // suffix
30486 NametagBG color.NRGBA
30491 p := &(*(*(struct {
30492 MaxHP uint16 // Player only.
30493 CollideWithNodes bool
30494 Weight float32 // deprecated
30498 VisualSize [3]float32
30500 SpriteSheetSize [2]int16 // in sprites.
30501 SpritePos [2]int16 // in sprite sheet.
30503 MakeFootstepSnds bool
30504 RotateSpeed float32 // in radians per second.
30506 Colors []color.NRGBA
30507 CollideWithAOs bool
30510 FaceRotateDirOff float32 // in degrees.
30513 NametagColor color.NRGBA
30514 FaceRotateSpeed float32 // in degrees per second.
30518 MaxBreath uint16 // Player only.
30519 EyeHeight float32 // Player only.
30520 ZoomFOV float32 // in degrees. Player only.
30521 UseTextureAlpha bool
30522 DmgTextureMod Texture // suffix
30525 NametagBG color.NRGBA
30526 }))(obj)).CollideWithNodes
30527 switch n := read8(r); n {
30533 chk(fmt.Errorf("invalid bool: %d", n))
30537 p := &(*(*(struct {
30538 MaxHP uint16 // Player only.
30539 CollideWithNodes bool
30540 Weight float32 // deprecated
30544 VisualSize [3]float32
30546 SpriteSheetSize [2]int16 // in sprites.
30547 SpritePos [2]int16 // in sprite sheet.
30549 MakeFootstepSnds bool
30550 RotateSpeed float32 // in radians per second.
30552 Colors []color.NRGBA
30553 CollideWithAOs bool
30556 FaceRotateDirOff float32 // in degrees.
30559 NametagColor color.NRGBA
30560 FaceRotateSpeed float32 // in degrees per second.
30564 MaxBreath uint16 // Player only.
30565 EyeHeight float32 // Player only.
30566 ZoomFOV float32 // in degrees. Player only.
30567 UseTextureAlpha bool
30568 DmgTextureMod Texture // suffix
30571 NametagBG color.NRGBA
30573 *p = math.Float32frombits(read32(r))
30575 if err := pcall(func() {
30577 MaxHP uint16 // Player only.
30578 CollideWithNodes bool
30579 Weight float32 // deprecated
30583 VisualSize [3]float32
30585 SpriteSheetSize [2]int16 // in sprites.
30586 SpritePos [2]int16 // in sprite sheet.
30588 MakeFootstepSnds bool
30589 RotateSpeed float32 // in radians per second.
30591 Colors []color.NRGBA
30592 CollideWithAOs bool
30595 FaceRotateDirOff float32 // in degrees.
30598 NametagColor color.NRGBA
30599 FaceRotateSpeed float32 // in degrees per second.
30603 MaxBreath uint16 // Player only.
30604 EyeHeight float32 // Player only.
30605 ZoomFOV float32 // in degrees. Player only.
30606 UseTextureAlpha bool
30607 DmgTextureMod Texture // suffix
30610 NametagBG color.NRGBA
30611 }))(obj)).ColBox).deserialize(r)
30616 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30618 if err := pcall(func() {
30620 MaxHP uint16 // Player only.
30621 CollideWithNodes bool
30622 Weight float32 // deprecated
30626 VisualSize [3]float32
30628 SpriteSheetSize [2]int16 // in sprites.
30629 SpritePos [2]int16 // in sprite sheet.
30631 MakeFootstepSnds bool
30632 RotateSpeed float32 // in radians per second.
30634 Colors []color.NRGBA
30635 CollideWithAOs bool
30638 FaceRotateDirOff float32 // in degrees.
30641 NametagColor color.NRGBA
30642 FaceRotateSpeed float32 // in degrees per second.
30646 MaxBreath uint16 // Player only.
30647 EyeHeight float32 // Player only.
30648 ZoomFOV float32 // in degrees. Player only.
30649 UseTextureAlpha bool
30650 DmgTextureMod Texture // suffix
30653 NametagBG color.NRGBA
30654 }))(obj)).SelBox).deserialize(r)
30659 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30662 p := &(*(*(struct {
30663 MaxHP uint16 // Player only.
30664 CollideWithNodes bool
30665 Weight float32 // deprecated
30669 VisualSize [3]float32
30671 SpriteSheetSize [2]int16 // in sprites.
30672 SpritePos [2]int16 // in sprite sheet.
30674 MakeFootstepSnds bool
30675 RotateSpeed float32 // in radians per second.
30677 Colors []color.NRGBA
30678 CollideWithAOs bool
30681 FaceRotateDirOff float32 // in degrees.
30684 NametagColor color.NRGBA
30685 FaceRotateSpeed float32 // in degrees per second.
30689 MaxBreath uint16 // Player only.
30690 EyeHeight float32 // Player only.
30691 ZoomFOV float32 // in degrees. Player only.
30692 UseTextureAlpha bool
30693 DmgTextureMod Texture // suffix
30696 NametagBG color.NRGBA
30697 }))(obj)).Pointable
30698 switch n := read8(r); n {
30704 chk(fmt.Errorf("invalid bool: %d", n))
30707 var local341 []uint8
30708 var local342 uint16
30713 (local341) = make([]uint8, local342)
30715 _, err := io.ReadFull(r, (local341)[:])
30719 MaxHP uint16 // Player only.
30720 CollideWithNodes bool
30721 Weight float32 // deprecated
30725 VisualSize [3]float32
30727 SpriteSheetSize [2]int16 // in sprites.
30728 SpritePos [2]int16 // in sprite sheet.
30730 MakeFootstepSnds bool
30731 RotateSpeed float32 // in radians per second.
30733 Colors []color.NRGBA
30734 CollideWithAOs bool
30737 FaceRotateDirOff float32 // in degrees.
30740 NametagColor color.NRGBA
30741 FaceRotateSpeed float32 // in degrees per second.
30745 MaxBreath uint16 // Player only.
30746 EyeHeight float32 // Player only.
30747 ZoomFOV float32 // in degrees. Player only.
30748 UseTextureAlpha bool
30749 DmgTextureMod Texture // suffix
30752 NametagBG color.NRGBA
30753 }))(obj)).Visual) = string(local341)
30754 for local343 := range (*(*(struct {
30755 MaxHP uint16 // Player only.
30756 CollideWithNodes bool
30757 Weight float32 // deprecated
30761 VisualSize [3]float32
30763 SpriteSheetSize [2]int16 // in sprites.
30764 SpritePos [2]int16 // in sprite sheet.
30766 MakeFootstepSnds bool
30767 RotateSpeed float32 // in radians per second.
30769 Colors []color.NRGBA
30770 CollideWithAOs bool
30773 FaceRotateDirOff float32 // in degrees.
30776 NametagColor color.NRGBA
30777 FaceRotateSpeed float32 // in degrees per second.
30781 MaxBreath uint16 // Player only.
30782 EyeHeight float32 // Player only.
30783 ZoomFOV float32 // in degrees. Player only.
30784 UseTextureAlpha bool
30785 DmgTextureMod Texture // suffix
30788 NametagBG color.NRGBA
30789 }))(obj)).VisualSize {
30791 p := &((*(*(struct {
30792 MaxHP uint16 // Player only.
30793 CollideWithNodes bool
30794 Weight float32 // deprecated
30798 VisualSize [3]float32
30800 SpriteSheetSize [2]int16 // in sprites.
30801 SpritePos [2]int16 // in sprite sheet.
30803 MakeFootstepSnds bool
30804 RotateSpeed float32 // in radians per second.
30806 Colors []color.NRGBA
30807 CollideWithAOs bool
30810 FaceRotateDirOff float32 // in degrees.
30813 NametagColor color.NRGBA
30814 FaceRotateSpeed float32 // in degrees per second.
30818 MaxBreath uint16 // Player only.
30819 EyeHeight float32 // Player only.
30820 ZoomFOV float32 // in degrees. Player only.
30821 UseTextureAlpha bool
30822 DmgTextureMod Texture // suffix
30825 NametagBG color.NRGBA
30826 }))(obj)).VisualSize)[local343]
30827 *p = math.Float32frombits(read32(r))
30830 var local344 uint16
30836 MaxHP uint16 // Player only.
30837 CollideWithNodes bool
30838 Weight float32 // deprecated
30842 VisualSize [3]float32
30844 SpriteSheetSize [2]int16 // in sprites.
30845 SpritePos [2]int16 // in sprite sheet.
30847 MakeFootstepSnds bool
30848 RotateSpeed float32 // in radians per second.
30850 Colors []color.NRGBA
30851 CollideWithAOs bool
30854 FaceRotateDirOff float32 // in degrees.
30857 NametagColor color.NRGBA
30858 FaceRotateSpeed float32 // in degrees per second.
30862 MaxBreath uint16 // Player only.
30863 EyeHeight float32 // Player only.
30864 ZoomFOV float32 // in degrees. Player only.
30865 UseTextureAlpha bool
30866 DmgTextureMod Texture // suffix
30869 NametagBG color.NRGBA
30870 }))(obj)).Textures) = make([]Texture, local344)
30871 for local345 := range (*(*(struct {
30872 MaxHP uint16 // Player only.
30873 CollideWithNodes bool
30874 Weight float32 // deprecated
30878 VisualSize [3]float32
30880 SpriteSheetSize [2]int16 // in sprites.
30881 SpritePos [2]int16 // in sprite sheet.
30883 MakeFootstepSnds bool
30884 RotateSpeed float32 // in radians per second.
30886 Colors []color.NRGBA
30887 CollideWithAOs bool
30890 FaceRotateDirOff float32 // in degrees.
30893 NametagColor color.NRGBA
30894 FaceRotateSpeed float32 // in degrees per second.
30898 MaxBreath uint16 // Player only.
30899 EyeHeight float32 // Player only.
30900 ZoomFOV float32 // in degrees. Player only.
30901 UseTextureAlpha bool
30902 DmgTextureMod Texture // suffix
30905 NametagBG color.NRGBA
30906 }))(obj)).Textures {
30907 if err := pcall(func() {
30909 MaxHP uint16 // Player only.
30910 CollideWithNodes bool
30911 Weight float32 // deprecated
30915 VisualSize [3]float32
30917 SpriteSheetSize [2]int16 // in sprites.
30918 SpritePos [2]int16 // in sprite sheet.
30920 MakeFootstepSnds bool
30921 RotateSpeed float32 // in radians per second.
30923 Colors []color.NRGBA
30924 CollideWithAOs bool
30927 FaceRotateDirOff float32 // in degrees.
30930 NametagColor color.NRGBA
30931 FaceRotateSpeed float32 // in degrees per second.
30935 MaxBreath uint16 // Player only.
30936 EyeHeight float32 // Player only.
30937 ZoomFOV float32 // in degrees. Player only.
30938 UseTextureAlpha bool
30939 DmgTextureMod Texture // suffix
30942 NametagBG color.NRGBA
30943 }))(obj)).Textures)[local345]).deserialize(r)
30948 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30951 for local346 := range (*(*(struct {
30952 MaxHP uint16 // Player only.
30953 CollideWithNodes bool
30954 Weight float32 // deprecated
30958 VisualSize [3]float32
30960 SpriteSheetSize [2]int16 // in sprites.
30961 SpritePos [2]int16 // in sprite sheet.
30963 MakeFootstepSnds bool
30964 RotateSpeed float32 // in radians per second.
30966 Colors []color.NRGBA
30967 CollideWithAOs bool
30970 FaceRotateDirOff float32 // in degrees.
30973 NametagColor color.NRGBA
30974 FaceRotateSpeed float32 // in degrees per second.
30978 MaxBreath uint16 // Player only.
30979 EyeHeight float32 // Player only.
30980 ZoomFOV float32 // in degrees. Player only.
30981 UseTextureAlpha bool
30982 DmgTextureMod Texture // suffix
30985 NametagBG color.NRGBA
30986 }))(obj)).SpriteSheetSize {
30988 p := &((*(*(struct {
30989 MaxHP uint16 // Player only.
30990 CollideWithNodes bool
30991 Weight float32 // deprecated
30995 VisualSize [3]float32
30997 SpriteSheetSize [2]int16 // in sprites.
30998 SpritePos [2]int16 // in sprite sheet.
31000 MakeFootstepSnds bool
31001 RotateSpeed float32 // in radians per second.
31003 Colors []color.NRGBA
31004 CollideWithAOs bool
31007 FaceRotateDirOff float32 // in degrees.
31010 NametagColor color.NRGBA
31011 FaceRotateSpeed float32 // in degrees per second.
31015 MaxBreath uint16 // Player only.
31016 EyeHeight float32 // Player only.
31017 ZoomFOV float32 // in degrees. Player only.
31018 UseTextureAlpha bool
31019 DmgTextureMod Texture // suffix
31022 NametagBG color.NRGBA
31023 }))(obj)).SpriteSheetSize)[local346]
31024 *p = int16(read16(r))
31027 for local347 := range (*(*(struct {
31028 MaxHP uint16 // Player only.
31029 CollideWithNodes bool
31030 Weight float32 // deprecated
31034 VisualSize [3]float32
31036 SpriteSheetSize [2]int16 // in sprites.
31037 SpritePos [2]int16 // in sprite sheet.
31039 MakeFootstepSnds bool
31040 RotateSpeed float32 // in radians per second.
31042 Colors []color.NRGBA
31043 CollideWithAOs bool
31046 FaceRotateDirOff float32 // in degrees.
31049 NametagColor color.NRGBA
31050 FaceRotateSpeed float32 // in degrees per second.
31054 MaxBreath uint16 // Player only.
31055 EyeHeight float32 // Player only.
31056 ZoomFOV float32 // in degrees. Player only.
31057 UseTextureAlpha bool
31058 DmgTextureMod Texture // suffix
31061 NametagBG color.NRGBA
31062 }))(obj)).SpritePos {
31064 p := &((*(*(struct {
31065 MaxHP uint16 // Player only.
31066 CollideWithNodes bool
31067 Weight float32 // deprecated
31071 VisualSize [3]float32
31073 SpriteSheetSize [2]int16 // in sprites.
31074 SpritePos [2]int16 // in sprite sheet.
31076 MakeFootstepSnds bool
31077 RotateSpeed float32 // in radians per second.
31079 Colors []color.NRGBA
31080 CollideWithAOs bool
31083 FaceRotateDirOff float32 // in degrees.
31086 NametagColor color.NRGBA
31087 FaceRotateSpeed float32 // in degrees per second.
31091 MaxBreath uint16 // Player only.
31092 EyeHeight float32 // Player only.
31093 ZoomFOV float32 // in degrees. Player only.
31094 UseTextureAlpha bool
31095 DmgTextureMod Texture // suffix
31098 NametagBG color.NRGBA
31099 }))(obj)).SpritePos)[local347]
31100 *p = int16(read16(r))
31104 p := &(*(*(struct {
31105 MaxHP uint16 // Player only.
31106 CollideWithNodes bool
31107 Weight float32 // deprecated
31111 VisualSize [3]float32
31113 SpriteSheetSize [2]int16 // in sprites.
31114 SpritePos [2]int16 // in sprite sheet.
31116 MakeFootstepSnds bool
31117 RotateSpeed float32 // in radians per second.
31119 Colors []color.NRGBA
31120 CollideWithAOs bool
31123 FaceRotateDirOff float32 // in degrees.
31126 NametagColor color.NRGBA
31127 FaceRotateSpeed float32 // in degrees per second.
31131 MaxBreath uint16 // Player only.
31132 EyeHeight float32 // Player only.
31133 ZoomFOV float32 // in degrees. Player only.
31134 UseTextureAlpha bool
31135 DmgTextureMod Texture // suffix
31138 NametagBG color.NRGBA
31140 switch n := read8(r); n {
31146 chk(fmt.Errorf("invalid bool: %d", n))
31150 p := &(*(*(struct {
31151 MaxHP uint16 // Player only.
31152 CollideWithNodes bool
31153 Weight float32 // deprecated
31157 VisualSize [3]float32
31159 SpriteSheetSize [2]int16 // in sprites.
31160 SpritePos [2]int16 // in sprite sheet.
31162 MakeFootstepSnds bool
31163 RotateSpeed float32 // in radians per second.
31165 Colors []color.NRGBA
31166 CollideWithAOs bool
31169 FaceRotateDirOff float32 // in degrees.
31172 NametagColor color.NRGBA
31173 FaceRotateSpeed float32 // in degrees per second.
31177 MaxBreath uint16 // Player only.
31178 EyeHeight float32 // Player only.
31179 ZoomFOV float32 // in degrees. Player only.
31180 UseTextureAlpha bool
31181 DmgTextureMod Texture // suffix
31184 NametagBG color.NRGBA
31185 }))(obj)).MakeFootstepSnds
31186 switch n := read8(r); n {
31192 chk(fmt.Errorf("invalid bool: %d", n))
31196 p := &(*(*(struct {
31197 MaxHP uint16 // Player only.
31198 CollideWithNodes bool
31199 Weight float32 // deprecated
31203 VisualSize [3]float32
31205 SpriteSheetSize [2]int16 // in sprites.
31206 SpritePos [2]int16 // in sprite sheet.
31208 MakeFootstepSnds bool
31209 RotateSpeed float32 // in radians per second.
31211 Colors []color.NRGBA
31212 CollideWithAOs bool
31215 FaceRotateDirOff float32 // in degrees.
31218 NametagColor color.NRGBA
31219 FaceRotateSpeed float32 // in degrees per second.
31223 MaxBreath uint16 // Player only.
31224 EyeHeight float32 // Player only.
31225 ZoomFOV float32 // in degrees. Player only.
31226 UseTextureAlpha bool
31227 DmgTextureMod Texture // suffix
31230 NametagBG color.NRGBA
31231 }))(obj)).RotateSpeed
31232 *p = math.Float32frombits(read32(r))
31234 var local348 []uint8
31235 var local349 uint16
31240 (local348) = make([]uint8, local349)
31242 _, err := io.ReadFull(r, (local348)[:])
31246 MaxHP uint16 // Player only.
31247 CollideWithNodes bool
31248 Weight float32 // deprecated
31252 VisualSize [3]float32
31254 SpriteSheetSize [2]int16 // in sprites.
31255 SpritePos [2]int16 // in sprite sheet.
31257 MakeFootstepSnds bool
31258 RotateSpeed float32 // in radians per second.
31260 Colors []color.NRGBA
31261 CollideWithAOs bool
31264 FaceRotateDirOff float32 // in degrees.
31267 NametagColor color.NRGBA
31268 FaceRotateSpeed float32 // in degrees per second.
31272 MaxBreath uint16 // Player only.
31273 EyeHeight float32 // Player only.
31274 ZoomFOV float32 // in degrees. Player only.
31275 UseTextureAlpha bool
31276 DmgTextureMod Texture // suffix
31279 NametagBG color.NRGBA
31280 }))(obj)).Mesh) = string(local348)
31281 var local350 uint16
31287 MaxHP uint16 // Player only.
31288 CollideWithNodes bool
31289 Weight float32 // deprecated
31293 VisualSize [3]float32
31295 SpriteSheetSize [2]int16 // in sprites.
31296 SpritePos [2]int16 // in sprite sheet.
31298 MakeFootstepSnds bool
31299 RotateSpeed float32 // in radians per second.
31301 Colors []color.NRGBA
31302 CollideWithAOs bool
31305 FaceRotateDirOff float32 // in degrees.
31308 NametagColor color.NRGBA
31309 FaceRotateSpeed float32 // in degrees per second.
31313 MaxBreath uint16 // Player only.
31314 EyeHeight float32 // Player only.
31315 ZoomFOV float32 // in degrees. Player only.
31316 UseTextureAlpha bool
31317 DmgTextureMod Texture // suffix
31320 NametagBG color.NRGBA
31321 }))(obj)).Colors) = make([]color.NRGBA, local350)
31322 for local351 := range (*(*(struct {
31323 MaxHP uint16 // Player only.
31324 CollideWithNodes bool
31325 Weight float32 // deprecated
31329 VisualSize [3]float32
31331 SpriteSheetSize [2]int16 // in sprites.
31332 SpritePos [2]int16 // in sprite sheet.
31334 MakeFootstepSnds bool
31335 RotateSpeed float32 // in radians per second.
31337 Colors []color.NRGBA
31338 CollideWithAOs bool
31341 FaceRotateDirOff float32 // in degrees.
31344 NametagColor color.NRGBA
31345 FaceRotateSpeed float32 // in degrees per second.
31349 MaxBreath uint16 // Player only.
31350 EyeHeight float32 // Player only.
31351 ZoomFOV float32 // in degrees. Player only.
31352 UseTextureAlpha bool
31353 DmgTextureMod Texture // suffix
31356 NametagBG color.NRGBA
31359 p := &((*(*(struct {
31360 MaxHP uint16 // Player only.
31361 CollideWithNodes bool
31362 Weight float32 // deprecated
31366 VisualSize [3]float32
31368 SpriteSheetSize [2]int16 // in sprites.
31369 SpritePos [2]int16 // in sprite sheet.
31371 MakeFootstepSnds bool
31372 RotateSpeed float32 // in radians per second.
31374 Colors []color.NRGBA
31375 CollideWithAOs bool
31378 FaceRotateDirOff float32 // in degrees.
31381 NametagColor color.NRGBA
31382 FaceRotateSpeed float32 // in degrees per second.
31386 MaxBreath uint16 // Player only.
31387 EyeHeight float32 // Player only.
31388 ZoomFOV float32 // in degrees. Player only.
31389 UseTextureAlpha bool
31390 DmgTextureMod Texture // suffix
31393 NametagBG color.NRGBA
31394 }))(obj)).Colors)[local351]
31395 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31399 p := &(*(*(struct {
31400 MaxHP uint16 // Player only.
31401 CollideWithNodes bool
31402 Weight float32 // deprecated
31406 VisualSize [3]float32
31408 SpriteSheetSize [2]int16 // in sprites.
31409 SpritePos [2]int16 // in sprite sheet.
31411 MakeFootstepSnds bool
31412 RotateSpeed float32 // in radians per second.
31414 Colors []color.NRGBA
31415 CollideWithAOs bool
31418 FaceRotateDirOff float32 // in degrees.
31421 NametagColor color.NRGBA
31422 FaceRotateSpeed float32 // in degrees per second.
31426 MaxBreath uint16 // Player only.
31427 EyeHeight float32 // Player only.
31428 ZoomFOV float32 // in degrees. Player only.
31429 UseTextureAlpha bool
31430 DmgTextureMod Texture // suffix
31433 NametagBG color.NRGBA
31434 }))(obj)).CollideWithAOs
31435 switch n := read8(r); n {
31441 chk(fmt.Errorf("invalid bool: %d", n))
31445 p := &(*(*(struct {
31446 MaxHP uint16 // Player only.
31447 CollideWithNodes bool
31448 Weight float32 // deprecated
31452 VisualSize [3]float32
31454 SpriteSheetSize [2]int16 // in sprites.
31455 SpritePos [2]int16 // in sprite sheet.
31457 MakeFootstepSnds bool
31458 RotateSpeed float32 // in radians per second.
31460 Colors []color.NRGBA
31461 CollideWithAOs bool
31464 FaceRotateDirOff float32 // in degrees.
31467 NametagColor color.NRGBA
31468 FaceRotateSpeed float32 // in degrees per second.
31472 MaxBreath uint16 // Player only.
31473 EyeHeight float32 // Player only.
31474 ZoomFOV float32 // in degrees. Player only.
31475 UseTextureAlpha bool
31476 DmgTextureMod Texture // suffix
31479 NametagBG color.NRGBA
31480 }))(obj)).StepHeight
31481 *p = math.Float32frombits(read32(r))
31484 p := &(*(*(struct {
31485 MaxHP uint16 // Player only.
31486 CollideWithNodes bool
31487 Weight float32 // deprecated
31491 VisualSize [3]float32
31493 SpriteSheetSize [2]int16 // in sprites.
31494 SpritePos [2]int16 // in sprite sheet.
31496 MakeFootstepSnds bool
31497 RotateSpeed float32 // in radians per second.
31499 Colors []color.NRGBA
31500 CollideWithAOs bool
31503 FaceRotateDirOff float32 // in degrees.
31506 NametagColor color.NRGBA
31507 FaceRotateSpeed float32 // in degrees per second.
31511 MaxBreath uint16 // Player only.
31512 EyeHeight float32 // Player only.
31513 ZoomFOV float32 // in degrees. Player only.
31514 UseTextureAlpha bool
31515 DmgTextureMod Texture // suffix
31518 NametagBG color.NRGBA
31519 }))(obj)).FaceRotateDir
31520 switch n := read8(r); n {
31526 chk(fmt.Errorf("invalid bool: %d", n))
31530 p := &(*(*(struct {
31531 MaxHP uint16 // Player only.
31532 CollideWithNodes bool
31533 Weight float32 // deprecated
31537 VisualSize [3]float32
31539 SpriteSheetSize [2]int16 // in sprites.
31540 SpritePos [2]int16 // in sprite sheet.
31542 MakeFootstepSnds bool
31543 RotateSpeed float32 // in radians per second.
31545 Colors []color.NRGBA
31546 CollideWithAOs bool
31549 FaceRotateDirOff float32 // in degrees.
31552 NametagColor color.NRGBA
31553 FaceRotateSpeed float32 // in degrees per second.
31557 MaxBreath uint16 // Player only.
31558 EyeHeight float32 // Player only.
31559 ZoomFOV float32 // in degrees. Player only.
31560 UseTextureAlpha bool
31561 DmgTextureMod Texture // suffix
31564 NametagBG color.NRGBA
31565 }))(obj)).FaceRotateDirOff
31566 *p = math.Float32frombits(read32(r))
31569 p := &(*(*(struct {
31570 MaxHP uint16 // Player only.
31571 CollideWithNodes bool
31572 Weight float32 // deprecated
31576 VisualSize [3]float32
31578 SpriteSheetSize [2]int16 // in sprites.
31579 SpritePos [2]int16 // in sprite sheet.
31581 MakeFootstepSnds bool
31582 RotateSpeed float32 // in radians per second.
31584 Colors []color.NRGBA
31585 CollideWithAOs bool
31588 FaceRotateDirOff float32 // in degrees.
31591 NametagColor color.NRGBA
31592 FaceRotateSpeed float32 // in degrees per second.
31596 MaxBreath uint16 // Player only.
31597 EyeHeight float32 // Player only.
31598 ZoomFOV float32 // in degrees. Player only.
31599 UseTextureAlpha bool
31600 DmgTextureMod Texture // suffix
31603 NametagBG color.NRGBA
31604 }))(obj)).BackfaceCull
31605 switch n := read8(r); n {
31611 chk(fmt.Errorf("invalid bool: %d", n))
31614 var local352 []uint8
31615 var local353 uint16
31620 (local352) = make([]uint8, local353)
31622 _, err := io.ReadFull(r, (local352)[:])
31626 MaxHP uint16 // Player only.
31627 CollideWithNodes bool
31628 Weight float32 // deprecated
31632 VisualSize [3]float32
31634 SpriteSheetSize [2]int16 // in sprites.
31635 SpritePos [2]int16 // in sprite sheet.
31637 MakeFootstepSnds bool
31638 RotateSpeed float32 // in radians per second.
31640 Colors []color.NRGBA
31641 CollideWithAOs bool
31644 FaceRotateDirOff float32 // in degrees.
31647 NametagColor color.NRGBA
31648 FaceRotateSpeed float32 // in degrees per second.
31652 MaxBreath uint16 // Player only.
31653 EyeHeight float32 // Player only.
31654 ZoomFOV float32 // in degrees. Player only.
31655 UseTextureAlpha bool
31656 DmgTextureMod Texture // suffix
31659 NametagBG color.NRGBA
31660 }))(obj)).Nametag) = string(local352)
31662 p := &(*(*(struct {
31663 MaxHP uint16 // Player only.
31664 CollideWithNodes bool
31665 Weight float32 // deprecated
31669 VisualSize [3]float32
31671 SpriteSheetSize [2]int16 // in sprites.
31672 SpritePos [2]int16 // in sprite sheet.
31674 MakeFootstepSnds bool
31675 RotateSpeed float32 // in radians per second.
31677 Colors []color.NRGBA
31678 CollideWithAOs bool
31681 FaceRotateDirOff float32 // in degrees.
31684 NametagColor color.NRGBA
31685 FaceRotateSpeed float32 // in degrees per second.
31689 MaxBreath uint16 // Player only.
31690 EyeHeight float32 // Player only.
31691 ZoomFOV float32 // in degrees. Player only.
31692 UseTextureAlpha bool
31693 DmgTextureMod Texture // suffix
31696 NametagBG color.NRGBA
31697 }))(obj)).NametagColor
31698 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31701 p := &(*(*(struct {
31702 MaxHP uint16 // Player only.
31703 CollideWithNodes bool
31704 Weight float32 // deprecated
31708 VisualSize [3]float32
31710 SpriteSheetSize [2]int16 // in sprites.
31711 SpritePos [2]int16 // in sprite sheet.
31713 MakeFootstepSnds bool
31714 RotateSpeed float32 // in radians per second.
31716 Colors []color.NRGBA
31717 CollideWithAOs bool
31720 FaceRotateDirOff float32 // in degrees.
31723 NametagColor color.NRGBA
31724 FaceRotateSpeed float32 // in degrees per second.
31728 MaxBreath uint16 // Player only.
31729 EyeHeight float32 // Player only.
31730 ZoomFOV float32 // in degrees. Player only.
31731 UseTextureAlpha bool
31732 DmgTextureMod Texture // suffix
31735 NametagBG color.NRGBA
31736 }))(obj)).FaceRotateSpeed
31737 *p = math.Float32frombits(read32(r))
31739 var local354 []uint8
31740 var local355 uint16
31745 (local354) = make([]uint8, local355)
31747 _, err := io.ReadFull(r, (local354)[:])
31751 MaxHP uint16 // Player only.
31752 CollideWithNodes bool
31753 Weight float32 // deprecated
31757 VisualSize [3]float32
31759 SpriteSheetSize [2]int16 // in sprites.
31760 SpritePos [2]int16 // in sprite sheet.
31762 MakeFootstepSnds bool
31763 RotateSpeed float32 // in radians per second.
31765 Colors []color.NRGBA
31766 CollideWithAOs bool
31769 FaceRotateDirOff float32 // in degrees.
31772 NametagColor color.NRGBA
31773 FaceRotateSpeed float32 // in degrees per second.
31777 MaxBreath uint16 // Player only.
31778 EyeHeight float32 // Player only.
31779 ZoomFOV float32 // in degrees. Player only.
31780 UseTextureAlpha bool
31781 DmgTextureMod Texture // suffix
31784 NametagBG color.NRGBA
31785 }))(obj)).Infotext) = string(local354)
31786 var local356 []uint8
31787 var local357 uint16
31792 (local356) = make([]uint8, local357)
31794 _, err := io.ReadFull(r, (local356)[:])
31798 MaxHP uint16 // Player only.
31799 CollideWithNodes bool
31800 Weight float32 // deprecated
31804 VisualSize [3]float32
31806 SpriteSheetSize [2]int16 // in sprites.
31807 SpritePos [2]int16 // in sprite sheet.
31809 MakeFootstepSnds bool
31810 RotateSpeed float32 // in radians per second.
31812 Colors []color.NRGBA
31813 CollideWithAOs bool
31816 FaceRotateDirOff float32 // in degrees.
31819 NametagColor color.NRGBA
31820 FaceRotateSpeed float32 // in degrees per second.
31824 MaxBreath uint16 // Player only.
31825 EyeHeight float32 // Player only.
31826 ZoomFOV float32 // in degrees. Player only.
31827 UseTextureAlpha bool
31828 DmgTextureMod Texture // suffix
31831 NametagBG color.NRGBA
31832 }))(obj)).Itemstring) = string(local356)
31834 p := &(*(*(struct {
31835 MaxHP uint16 // Player only.
31836 CollideWithNodes bool
31837 Weight float32 // deprecated
31841 VisualSize [3]float32
31843 SpriteSheetSize [2]int16 // in sprites.
31844 SpritePos [2]int16 // in sprite sheet.
31846 MakeFootstepSnds bool
31847 RotateSpeed float32 // in radians per second.
31849 Colors []color.NRGBA
31850 CollideWithAOs bool
31853 FaceRotateDirOff float32 // in degrees.
31856 NametagColor color.NRGBA
31857 FaceRotateSpeed float32 // in degrees per second.
31861 MaxBreath uint16 // Player only.
31862 EyeHeight float32 // Player only.
31863 ZoomFOV float32 // in degrees. Player only.
31864 UseTextureAlpha bool
31865 DmgTextureMod Texture // suffix
31868 NametagBG color.NRGBA
31870 *p = int8(read8(r))
31873 p := &(*(*(struct {
31874 MaxHP uint16 // Player only.
31875 CollideWithNodes bool
31876 Weight float32 // deprecated
31880 VisualSize [3]float32
31882 SpriteSheetSize [2]int16 // in sprites.
31883 SpritePos [2]int16 // in sprite sheet.
31885 MakeFootstepSnds bool
31886 RotateSpeed float32 // in radians per second.
31888 Colors []color.NRGBA
31889 CollideWithAOs bool
31892 FaceRotateDirOff float32 // in degrees.
31895 NametagColor color.NRGBA
31896 FaceRotateSpeed float32 // in degrees per second.
31900 MaxBreath uint16 // Player only.
31901 EyeHeight float32 // Player only.
31902 ZoomFOV float32 // in degrees. Player only.
31903 UseTextureAlpha bool
31904 DmgTextureMod Texture // suffix
31907 NametagBG color.NRGBA
31908 }))(obj)).MaxBreath
31912 p := &(*(*(struct {
31913 MaxHP uint16 // Player only.
31914 CollideWithNodes bool
31915 Weight float32 // deprecated
31919 VisualSize [3]float32
31921 SpriteSheetSize [2]int16 // in sprites.
31922 SpritePos [2]int16 // in sprite sheet.
31924 MakeFootstepSnds bool
31925 RotateSpeed float32 // in radians per second.
31927 Colors []color.NRGBA
31928 CollideWithAOs bool
31931 FaceRotateDirOff float32 // in degrees.
31934 NametagColor color.NRGBA
31935 FaceRotateSpeed float32 // in degrees per second.
31939 MaxBreath uint16 // Player only.
31940 EyeHeight float32 // Player only.
31941 ZoomFOV float32 // in degrees. Player only.
31942 UseTextureAlpha bool
31943 DmgTextureMod Texture // suffix
31946 NametagBG color.NRGBA
31947 }))(obj)).EyeHeight
31948 *p = math.Float32frombits(read32(r))
31951 p := &(*(*(struct {
31952 MaxHP uint16 // Player only.
31953 CollideWithNodes bool
31954 Weight float32 // deprecated
31958 VisualSize [3]float32
31960 SpriteSheetSize [2]int16 // in sprites.
31961 SpritePos [2]int16 // in sprite sheet.
31963 MakeFootstepSnds bool
31964 RotateSpeed float32 // in radians per second.
31966 Colors []color.NRGBA
31967 CollideWithAOs bool
31970 FaceRotateDirOff float32 // in degrees.
31973 NametagColor color.NRGBA
31974 FaceRotateSpeed float32 // in degrees per second.
31978 MaxBreath uint16 // Player only.
31979 EyeHeight float32 // Player only.
31980 ZoomFOV float32 // in degrees. Player only.
31981 UseTextureAlpha bool
31982 DmgTextureMod Texture // suffix
31985 NametagBG color.NRGBA
31987 *p = math.Float32frombits(read32(r))
31990 p := &(*(*(struct {
31991 MaxHP uint16 // Player only.
31992 CollideWithNodes bool
31993 Weight float32 // deprecated
31997 VisualSize [3]float32
31999 SpriteSheetSize [2]int16 // in sprites.
32000 SpritePos [2]int16 // in sprite sheet.
32002 MakeFootstepSnds bool
32003 RotateSpeed float32 // in radians per second.
32005 Colors []color.NRGBA
32006 CollideWithAOs bool
32009 FaceRotateDirOff float32 // in degrees.
32012 NametagColor color.NRGBA
32013 FaceRotateSpeed float32 // in degrees per second.
32017 MaxBreath uint16 // Player only.
32018 EyeHeight float32 // Player only.
32019 ZoomFOV float32 // in degrees. Player only.
32020 UseTextureAlpha bool
32021 DmgTextureMod Texture // suffix
32024 NametagBG color.NRGBA
32025 }))(obj)).UseTextureAlpha
32026 switch n := read8(r); n {
32032 chk(fmt.Errorf("invalid bool: %d", n))
32035 if err := pcall(func() {
32037 MaxHP uint16 // Player only.
32038 CollideWithNodes bool
32039 Weight float32 // deprecated
32043 VisualSize [3]float32
32045 SpriteSheetSize [2]int16 // in sprites.
32046 SpritePos [2]int16 // in sprite sheet.
32048 MakeFootstepSnds bool
32049 RotateSpeed float32 // in radians per second.
32051 Colors []color.NRGBA
32052 CollideWithAOs bool
32055 FaceRotateDirOff float32 // in degrees.
32058 NametagColor color.NRGBA
32059 FaceRotateSpeed float32 // in degrees per second.
32063 MaxBreath uint16 // Player only.
32064 EyeHeight float32 // Player only.
32065 ZoomFOV float32 // in degrees. Player only.
32066 UseTextureAlpha bool
32067 DmgTextureMod Texture // suffix
32070 NametagBG color.NRGBA
32071 }))(obj)).DmgTextureMod).deserialize(r)
32076 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32079 p := &(*(*(struct {
32080 MaxHP uint16 // Player only.
32081 CollideWithNodes bool
32082 Weight float32 // deprecated
32086 VisualSize [3]float32
32088 SpriteSheetSize [2]int16 // in sprites.
32089 SpritePos [2]int16 // in sprite sheet.
32091 MakeFootstepSnds bool
32092 RotateSpeed float32 // in radians per second.
32094 Colors []color.NRGBA
32095 CollideWithAOs bool
32098 FaceRotateDirOff float32 // in degrees.
32101 NametagColor color.NRGBA
32102 FaceRotateSpeed float32 // in degrees per second.
32106 MaxBreath uint16 // Player only.
32107 EyeHeight float32 // Player only.
32108 ZoomFOV float32 // in degrees. Player only.
32109 UseTextureAlpha bool
32110 DmgTextureMod Texture // suffix
32113 NametagBG color.NRGBA
32115 switch n := read8(r); n {
32121 chk(fmt.Errorf("invalid bool: %d", n))
32125 p := &(*(*(struct {
32126 MaxHP uint16 // Player only.
32127 CollideWithNodes bool
32128 Weight float32 // deprecated
32132 VisualSize [3]float32
32134 SpriteSheetSize [2]int16 // in sprites.
32135 SpritePos [2]int16 // in sprite sheet.
32137 MakeFootstepSnds bool
32138 RotateSpeed float32 // in radians per second.
32140 Colors []color.NRGBA
32141 CollideWithAOs bool
32144 FaceRotateDirOff float32 // in degrees.
32147 NametagColor color.NRGBA
32148 FaceRotateSpeed float32 // in degrees per second.
32152 MaxBreath uint16 // Player only.
32153 EyeHeight float32 // Player only.
32154 ZoomFOV float32 // in degrees. Player only.
32155 UseTextureAlpha bool
32156 DmgTextureMod Texture // suffix
32159 NametagBG color.NRGBA
32160 }))(obj)).ShowOnMinimap
32161 switch n := read8(r); n {
32167 chk(fmt.Errorf("invalid bool: %d", n))
32171 p := &(*(*(struct {
32172 MaxHP uint16 // Player only.
32173 CollideWithNodes bool
32174 Weight float32 // deprecated
32178 VisualSize [3]float32
32180 SpriteSheetSize [2]int16 // in sprites.
32181 SpritePos [2]int16 // in sprite sheet.
32183 MakeFootstepSnds bool
32184 RotateSpeed float32 // in radians per second.
32186 Colors []color.NRGBA
32187 CollideWithAOs bool
32190 FaceRotateDirOff float32 // in degrees.
32193 NametagColor color.NRGBA
32194 FaceRotateSpeed float32 // in degrees per second.
32198 MaxBreath uint16 // Player only.
32199 EyeHeight float32 // Player only.
32200 ZoomFOV float32 // in degrees. Player only.
32201 UseTextureAlpha bool
32202 DmgTextureMod Texture // suffix
32205 NametagBG color.NRGBA
32206 }))(obj)).NametagBG
32207 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
32211 func (obj *AOPos) serialize(w io.Writer) {
32212 if err := pcall(func() {
32220 UpdateInterval float32
32221 }))(obj)).Pos).serialize(w)
32226 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32228 if err := pcall(func() {
32236 UpdateInterval float32
32237 }))(obj)).Vel).serialize(w)
32242 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32244 if err := pcall(func() {
32252 UpdateInterval float32
32253 }))(obj)).Acc).serialize(w)
32258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32260 for local358 := range (*(*(struct {
32267 UpdateInterval float32
32270 x := ((*(*(struct {
32277 UpdateInterval float32
32278 }))(obj)).Rot)[local358]
32279 write32(w, math.Float32bits(x))
32290 UpdateInterval float32
32291 }))(obj)).Interpolate
32306 UpdateInterval float32
32322 UpdateInterval float32
32323 }))(obj)).UpdateInterval
32324 write32(w, math.Float32bits(x))
32328 func (obj *AOPos) deserialize(r io.Reader) {
32329 if err := pcall(func() {
32337 UpdateInterval float32
32338 }))(obj)).Pos).deserialize(r)
32343 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32345 if err := pcall(func() {
32353 UpdateInterval float32
32354 }))(obj)).Vel).deserialize(r)
32359 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32361 if err := pcall(func() {
32369 UpdateInterval float32
32370 }))(obj)).Acc).deserialize(r)
32375 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32377 for local359 := range (*(*(struct {
32384 UpdateInterval float32
32387 p := &((*(*(struct {
32394 UpdateInterval float32
32395 }))(obj)).Rot)[local359]
32396 *p = math.Float32frombits(read32(r))
32400 p := &(*(*(struct {
32407 UpdateInterval float32
32408 }))(obj)).Interpolate
32409 switch n := read8(r); n {
32415 chk(fmt.Errorf("invalid bool: %d", n))
32419 p := &(*(*(struct {
32426 UpdateInterval float32
32428 switch n := read8(r); n {
32434 chk(fmt.Errorf("invalid bool: %d", n))
32438 p := &(*(*(struct {
32445 UpdateInterval float32
32446 }))(obj)).UpdateInterval
32447 *p = math.Float32frombits(read32(r))
32451 func (obj *AOSprite) serialize(w io.Writer) {
32452 for local360 := range (*(*(struct {
32455 FrameDuration float32
32456 ViewAngleFrames bool
32459 x := ((*(*(struct {
32462 FrameDuration float32
32463 ViewAngleFrames bool
32464 }))(obj)).Frame0)[local360]
32465 write16(w, uint16(x))
32472 FrameDuration float32
32473 ViewAngleFrames bool
32475 write16(w, uint16(x))
32481 FrameDuration float32
32482 ViewAngleFrames bool
32483 }))(obj)).FrameDuration
32484 write32(w, math.Float32bits(x))
32490 FrameDuration float32
32491 ViewAngleFrames bool
32492 }))(obj)).ViewAngleFrames
32501 func (obj *AOSprite) deserialize(r io.Reader) {
32502 for local361 := range (*(*(struct {
32505 FrameDuration float32
32506 ViewAngleFrames bool
32509 p := &((*(*(struct {
32512 FrameDuration float32
32513 ViewAngleFrames bool
32514 }))(obj)).Frame0)[local361]
32515 *p = int16(read16(r))
32519 p := &(*(*(struct {
32522 FrameDuration float32
32523 ViewAngleFrames bool
32528 p := &(*(*(struct {
32531 FrameDuration float32
32532 ViewAngleFrames bool
32533 }))(obj)).FrameDuration
32534 *p = math.Float32frombits(read32(r))
32537 p := &(*(*(struct {
32540 FrameDuration float32
32541 ViewAngleFrames bool
32542 }))(obj)).ViewAngleFrames
32543 switch n := read8(r); n {
32549 chk(fmt.Errorf("invalid bool: %d", n))
32554 func (obj *Group) serialize(w io.Writer) {
32555 if len(([]byte((*(*(struct {
32558 }))(obj)).Name))) > math.MaxUint16 {
32562 x := uint16(len(([]byte((*(*(struct {
32566 write16(w, uint16(x))
32569 _, err := w.Write(([]byte((*(*(struct {
32572 }))(obj)).Name))[:])
32580 write16(w, uint16(x))
32584 func (obj *Group) deserialize(r io.Reader) {
32585 var local362 []uint8
32586 var local363 uint16
32591 (local362) = make([]uint8, local363)
32593 _, err := io.ReadFull(r, (local362)[:])
32599 }))(obj)).Name) = string(local362)
32601 p := &(*(*(struct {
32605 *p = int16(read16(r))
32609 func (obj *AOAnim) serialize(w io.Writer) {
32610 for local364 := range (*(*(struct {
32617 x := ((*(*(struct {
32622 }))(obj)).Frames)[local364]
32623 write32(w, uint32(x))
32633 write32(w, math.Float32bits(x))
32642 write32(w, math.Float32bits(x))
32659 func (obj *AOAnim) deserialize(r io.Reader) {
32660 for local365 := range (*(*(struct {
32667 p := &((*(*(struct {
32672 }))(obj)).Frames)[local365]
32673 *p = int32(read32(r))
32677 p := &(*(*(struct {
32683 *p = math.Float32frombits(read32(r))
32686 p := &(*(*(struct {
32692 *p = math.Float32frombits(read32(r))
32695 p := &(*(*(struct {
32701 switch n := read8(r); n {
32707 chk(fmt.Errorf("invalid bool: %d", n))
32712 func (obj *AOBonePos) serialize(w io.Writer) {
32713 if err := pcall(func() {
32717 }))(obj)).Pos).serialize(w)
32722 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32724 for local366 := range (*(*(struct {
32729 x := ((*(*(struct {
32732 }))(obj)).Rot)[local366]
32733 write32(w, math.Float32bits(x))
32738 func (obj *AOBonePos) deserialize(r io.Reader) {
32739 if err := pcall(func() {
32743 }))(obj)).Pos).deserialize(r)
32748 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32750 for local367 := range (*(*(struct {
32755 p := &((*(*(struct {
32758 }))(obj)).Rot)[local367]
32759 *p = math.Float32frombits(read32(r))
32764 func (obj *AOAttach) serialize(w io.Writer) {
32765 if err := pcall(func() {
32772 }))(obj)).ParentID).serialize(w)
32777 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32779 if len(([]byte((*(*(struct {
32785 }))(obj)).Bone))) > math.MaxUint16 {
32789 x := uint16(len(([]byte((*(*(struct {
32796 write16(w, uint16(x))
32799 _, err := w.Write(([]byte((*(*(struct {
32805 }))(obj)).Bone))[:])
32808 if err := pcall(func() {
32815 }))(obj)).Pos).serialize(w)
32820 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32822 for local368 := range (*(*(struct {
32830 x := ((*(*(struct {
32836 }))(obj)).Rot)[local368]
32837 write32(w, math.Float32bits(x))
32847 }))(obj)).ForceVisible
32856 func (obj *AOAttach) deserialize(r io.Reader) {
32857 if err := pcall(func() {
32864 }))(obj)).ParentID).deserialize(r)
32869 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32871 var local369 []uint8
32872 var local370 uint16
32877 (local369) = make([]uint8, local370)
32879 _, err := io.ReadFull(r, (local369)[:])
32888 }))(obj)).Bone) = string(local369)
32889 if err := pcall(func() {
32896 }))(obj)).Pos).deserialize(r)
32901 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32903 for local371 := range (*(*(struct {
32911 p := &((*(*(struct {
32917 }))(obj)).Rot)[local371]
32918 *p = math.Float32frombits(read32(r))
32922 p := &(*(*(struct {
32928 }))(obj)).ForceVisible
32929 switch n := read8(r); n {
32935 chk(fmt.Errorf("invalid bool: %d", n))
32940 func (obj *AOPhysOverride) serialize(w io.Writer) {
32943 Walk, Jump, Gravity float32
32946 NoSneak, NoSneakGlitch, OldSneak bool
32948 write32(w, math.Float32bits(x))
32952 Walk, Jump, Gravity float32
32955 NoSneak, NoSneakGlitch, OldSneak bool
32957 write32(w, math.Float32bits(x))
32961 Walk, Jump, Gravity float32
32964 NoSneak, NoSneakGlitch, OldSneak bool
32966 write32(w, math.Float32bits(x))
32970 Walk, Jump, Gravity float32
32973 NoSneak, NoSneakGlitch, OldSneak bool
32983 Walk, Jump, Gravity float32
32986 NoSneak, NoSneakGlitch, OldSneak bool
32987 }))(obj)).NoSneakGlitch
32996 Walk, Jump, Gravity float32
32999 NoSneak, NoSneakGlitch, OldSneak bool
33009 func (obj *AOPhysOverride) deserialize(r io.Reader) {
33011 p := &(*(*(struct {
33012 Walk, Jump, Gravity float32
33015 NoSneak, NoSneakGlitch, OldSneak bool
33017 *p = math.Float32frombits(read32(r))
33020 p := &(*(*(struct {
33021 Walk, Jump, Gravity float32
33024 NoSneak, NoSneakGlitch, OldSneak bool
33026 *p = math.Float32frombits(read32(r))
33029 p := &(*(*(struct {
33030 Walk, Jump, Gravity float32
33033 NoSneak, NoSneakGlitch, OldSneak bool
33035 *p = math.Float32frombits(read32(r))
33038 p := &(*(*(struct {
33039 Walk, Jump, Gravity float32
33042 NoSneak, NoSneakGlitch, OldSneak bool
33044 switch n := read8(r); n {
33050 chk(fmt.Errorf("invalid bool: %d", n))
33054 p := &(*(*(struct {
33055 Walk, Jump, Gravity float32
33058 NoSneak, NoSneakGlitch, OldSneak bool
33059 }))(obj)).NoSneakGlitch
33060 switch n := read8(r); n {
33066 chk(fmt.Errorf("invalid bool: %d", n))
33070 p := &(*(*(struct {
33071 Walk, Jump, Gravity float32
33074 NoSneak, NoSneakGlitch, OldSneak bool
33076 switch n := read8(r); n {
33082 chk(fmt.Errorf("invalid bool: %d", n))
33087 func (obj *aoType) serialize(w io.Writer) {
33089 x := *(*(uint8))(obj)
33090 write8(w, uint8(x))
33094 func (obj *aoType) deserialize(r io.Reader) {
33096 p := &*(*(uint8))(obj)
33101 func (obj *NodeMetaField) serialize(w io.Writer) {
33102 if err := pcall(func() {
33106 }))(obj)).Field).serialize(w)
33111 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33126 func (obj *NodeMetaField) deserialize(r io.Reader) {
33127 if err := pcall(func() {
33131 }))(obj)).Field).deserialize(r)
33136 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33139 p := &(*(*(struct {
33143 switch n := read8(r); n {
33149 chk(fmt.Errorf("invalid bool: %d", n))
33154 func (obj *MinimapType) serialize(w io.Writer) {
33156 x := *(*(uint16))(obj)
33157 write16(w, uint16(x))
33161 func (obj *MinimapType) deserialize(r io.Reader) {
33163 p := &*(*(uint16))(obj)
33168 func (obj *Param1Type) serialize(w io.Writer) {
33170 x := *(*(uint8))(obj)
33171 write8(w, uint8(x))
33175 func (obj *Param1Type) deserialize(r io.Reader) {
33177 p := &*(*(uint8))(obj)
33182 func (obj *Param2Type) serialize(w io.Writer) {
33184 x := *(*(uint8))(obj)
33185 write8(w, uint8(x))
33189 func (obj *Param2Type) deserialize(r io.Reader) {
33191 p := &*(*(uint8))(obj)
33196 func (obj *DrawType) serialize(w io.Writer) {
33198 x := *(*(uint8))(obj)
33199 write8(w, uint8(x))
33203 func (obj *DrawType) deserialize(r io.Reader) {
33205 p := &*(*(uint8))(obj)
33210 func (obj *TileDef) serialize(w io.Writer) {
33212 local372 := uint8(6)
33215 write8(w, uint8(x))
33218 if err := pcall(func() {
33224 //mt:if %s.Flags&TileColor != 0
33227 //mt:if %s.Flags&TileScale != 0
33230 //mt:if %s.Flags&TileAlign != 0
33232 }))(obj)).Texture).serialize(w)
33237 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33239 if err := pcall(func() {
33245 //mt:if %s.Flags&TileColor != 0
33248 //mt:if %s.Flags&TileScale != 0
33251 //mt:if %s.Flags&TileAlign != 0
33253 }))(obj)).Anim).serialize(w)
33258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33260 if err := pcall(func() {
33266 //mt:if %s.Flags&TileColor != 0
33269 //mt:if %s.Flags&TileScale != 0
33272 //mt:if %s.Flags&TileAlign != 0
33274 }))(obj)).Flags).serialize(w)
33279 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33286 //mt:if %s.Flags&TileColor != 0
33289 //mt:if %s.Flags&TileScale != 0
33292 //mt:if %s.Flags&TileAlign != 0
33294 }))(obj)).Flags&TileColor != 0 {
33301 //mt:if %s.Flags&TileColor != 0
33304 //mt:if %s.Flags&TileScale != 0
33307 //mt:if %s.Flags&TileAlign != 0
33310 write8(w, uint8(x))
33318 //mt:if %s.Flags&TileColor != 0
33321 //mt:if %s.Flags&TileScale != 0
33324 //mt:if %s.Flags&TileAlign != 0
33327 write8(w, uint8(x))
33335 //mt:if %s.Flags&TileColor != 0
33338 //mt:if %s.Flags&TileScale != 0
33341 //mt:if %s.Flags&TileAlign != 0
33344 write8(w, uint8(x))
33352 //mt:if %s.Flags&TileColor != 0
33355 //mt:if %s.Flags&TileScale != 0
33358 //mt:if %s.Flags&TileAlign != 0
33360 }))(obj)).Flags&TileScale != 0 {
33367 //mt:if %s.Flags&TileColor != 0
33370 //mt:if %s.Flags&TileScale != 0
33373 //mt:if %s.Flags&TileAlign != 0
33376 write8(w, uint8(x))
33384 //mt:if %s.Flags&TileColor != 0
33387 //mt:if %s.Flags&TileScale != 0
33390 //mt:if %s.Flags&TileAlign != 0
33392 }))(obj)).Flags&TileAlign != 0 {
33393 if err := pcall(func() {
33399 //mt:if %s.Flags&TileColor != 0
33402 //mt:if %s.Flags&TileScale != 0
33405 //mt:if %s.Flags&TileAlign != 0
33407 }))(obj)).Align).serialize(w)
33412 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33417 func (obj *TileDef) deserialize(r io.Reader) {
33420 local374 := uint8(6)
33425 if local373 != local374 {
33426 chk(fmt.Errorf("const %v: %v", "uint8(6)", local373))
33429 if err := pcall(func() {
33435 //mt:if %s.Flags&TileColor != 0
33438 //mt:if %s.Flags&TileScale != 0
33441 //mt:if %s.Flags&TileAlign != 0
33443 }))(obj)).Texture).deserialize(r)
33448 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33450 if err := pcall(func() {
33456 //mt:if %s.Flags&TileColor != 0
33459 //mt:if %s.Flags&TileScale != 0
33462 //mt:if %s.Flags&TileAlign != 0
33464 }))(obj)).Anim).deserialize(r)
33469 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33471 if err := pcall(func() {
33477 //mt:if %s.Flags&TileColor != 0
33480 //mt:if %s.Flags&TileScale != 0
33483 //mt:if %s.Flags&TileAlign != 0
33485 }))(obj)).Flags).deserialize(r)
33490 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33497 //mt:if %s.Flags&TileColor != 0
33500 //mt:if %s.Flags&TileScale != 0
33503 //mt:if %s.Flags&TileAlign != 0
33505 }))(obj)).Flags&TileColor != 0 {
33507 p := &(*(*(struct {
33512 //mt:if %s.Flags&TileColor != 0
33515 //mt:if %s.Flags&TileScale != 0
33518 //mt:if %s.Flags&TileAlign != 0
33524 p := &(*(*(struct {
33529 //mt:if %s.Flags&TileColor != 0
33532 //mt:if %s.Flags&TileScale != 0
33535 //mt:if %s.Flags&TileAlign != 0
33541 p := &(*(*(struct {
33546 //mt:if %s.Flags&TileColor != 0
33549 //mt:if %s.Flags&TileScale != 0
33552 //mt:if %s.Flags&TileAlign != 0
33563 //mt:if %s.Flags&TileColor != 0
33566 //mt:if %s.Flags&TileScale != 0
33569 //mt:if %s.Flags&TileAlign != 0
33571 }))(obj)).Flags&TileScale != 0 {
33573 p := &(*(*(struct {
33578 //mt:if %s.Flags&TileColor != 0
33581 //mt:if %s.Flags&TileScale != 0
33584 //mt:if %s.Flags&TileAlign != 0
33595 //mt:if %s.Flags&TileColor != 0
33598 //mt:if %s.Flags&TileScale != 0
33601 //mt:if %s.Flags&TileAlign != 0
33603 }))(obj)).Flags&TileAlign != 0 {
33604 if err := pcall(func() {
33610 //mt:if %s.Flags&TileColor != 0
33613 //mt:if %s.Flags&TileScale != 0
33616 //mt:if %s.Flags&TileAlign != 0
33618 }))(obj)).Align).deserialize(r)
33623 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33628 func (obj *WaveType) serialize(w io.Writer) {
33630 x := *(*(uint8))(obj)
33631 write8(w, uint8(x))
33635 func (obj *WaveType) deserialize(r io.Reader) {
33637 p := &*(*(uint8))(obj)
33642 func (obj *LiquidType) serialize(w io.Writer) {
33644 x := *(*(uint8))(obj)
33645 write8(w, uint8(x))
33649 func (obj *LiquidType) deserialize(r io.Reader) {
33651 p := &*(*(uint8))(obj)
33656 func (obj *NodeBox) serialize(w io.Writer) {
33658 local375 := uint8(6)
33661 write8(w, uint8(x))
33664 if err := pcall(func() {
33668 //mt:if %s.Type == MountedBox
33669 WallTop, WallBot, WallSides Box
33671 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33674 //mt:if %s.Type == ConnectedBox
33675 ConnDirs, DiscoDirs DirBoxes
33676 DiscoAll, DiscoSides []Box
33677 }))(obj)).Type).serialize(w)
33682 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
33687 //mt:if %s.Type == MountedBox
33688 WallTop, WallBot, WallSides Box
33690 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33693 //mt:if %s.Type == ConnectedBox
33694 ConnDirs, DiscoDirs DirBoxes
33695 DiscoAll, DiscoSides []Box
33696 }))(obj)).Type < maxBox) {
33697 chk(errors.New("assertion failed: %s.Type < maxBox"))
33702 //mt:if %s.Type == MountedBox
33703 WallTop, WallBot, WallSides Box
33705 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33708 //mt:if %s.Type == ConnectedBox
33709 ConnDirs, DiscoDirs DirBoxes
33710 DiscoAll, DiscoSides []Box
33711 }))(obj)).Type == MountedBox {
33712 if err := pcall(func() {
33716 //mt:if %s.Type == MountedBox
33717 WallTop, WallBot, WallSides Box
33719 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33722 //mt:if %s.Type == ConnectedBox
33723 ConnDirs, DiscoDirs DirBoxes
33724 DiscoAll, DiscoSides []Box
33725 }))(obj)).WallTop).serialize(w)
33730 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33732 if err := pcall(func() {
33736 //mt:if %s.Type == MountedBox
33737 WallTop, WallBot, WallSides Box
33739 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33742 //mt:if %s.Type == ConnectedBox
33743 ConnDirs, DiscoDirs DirBoxes
33744 DiscoAll, DiscoSides []Box
33745 }))(obj)).WallBot).serialize(w)
33750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33752 if err := pcall(func() {
33756 //mt:if %s.Type == MountedBox
33757 WallTop, WallBot, WallSides Box
33759 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33762 //mt:if %s.Type == ConnectedBox
33763 ConnDirs, DiscoDirs DirBoxes
33764 DiscoAll, DiscoSides []Box
33765 }))(obj)).WallSides).serialize(w)
33770 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33773 if t := (*(*(struct {
33776 //mt:if %s.Type == MountedBox
33777 WallTop, WallBot, WallSides Box
33779 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33782 //mt:if %s.Type == ConnectedBox
33783 ConnDirs, DiscoDirs DirBoxes
33784 DiscoAll, DiscoSides []Box
33785 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33786 if len(((*(*(struct {
33789 //mt:if %s.Type == MountedBox
33790 WallTop, WallBot, WallSides Box
33792 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33795 //mt:if %s.Type == ConnectedBox
33796 ConnDirs, DiscoDirs DirBoxes
33797 DiscoAll, DiscoSides []Box
33798 }))(obj)).Fixed)) > math.MaxUint16 {
33802 x := uint16(len(((*(*(struct {
33805 //mt:if %s.Type == MountedBox
33806 WallTop, WallBot, WallSides Box
33808 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33811 //mt:if %s.Type == ConnectedBox
33812 ConnDirs, DiscoDirs DirBoxes
33813 DiscoAll, DiscoSides []Box
33815 write16(w, uint16(x))
33817 for local376 := range (*(*(struct {
33820 //mt:if %s.Type == MountedBox
33821 WallTop, WallBot, WallSides Box
33823 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33826 //mt:if %s.Type == ConnectedBox
33827 ConnDirs, DiscoDirs DirBoxes
33828 DiscoAll, DiscoSides []Box
33830 if err := pcall(func() {
33834 //mt:if %s.Type == MountedBox
33835 WallTop, WallBot, WallSides Box
33837 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33840 //mt:if %s.Type == ConnectedBox
33841 ConnDirs, DiscoDirs DirBoxes
33842 DiscoAll, DiscoSides []Box
33843 }))(obj)).Fixed)[local376]).serialize(w)
33848 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33855 //mt:if %s.Type == MountedBox
33856 WallTop, WallBot, WallSides Box
33858 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33861 //mt:if %s.Type == ConnectedBox
33862 ConnDirs, DiscoDirs DirBoxes
33863 DiscoAll, DiscoSides []Box
33864 }))(obj)).Type == ConnectedBox {
33865 if err := pcall(func() {
33869 //mt:if %s.Type == MountedBox
33870 WallTop, WallBot, WallSides Box
33872 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33875 //mt:if %s.Type == ConnectedBox
33876 ConnDirs, DiscoDirs DirBoxes
33877 DiscoAll, DiscoSides []Box
33878 }))(obj)).ConnDirs).serialize(w)
33883 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33885 if err := pcall(func() {
33889 //mt:if %s.Type == MountedBox
33890 WallTop, WallBot, WallSides Box
33892 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33895 //mt:if %s.Type == ConnectedBox
33896 ConnDirs, DiscoDirs DirBoxes
33897 DiscoAll, DiscoSides []Box
33898 }))(obj)).DiscoDirs).serialize(w)
33903 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33905 if len(((*(*(struct {
33908 //mt:if %s.Type == MountedBox
33909 WallTop, WallBot, WallSides Box
33911 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33914 //mt:if %s.Type == ConnectedBox
33915 ConnDirs, DiscoDirs DirBoxes
33916 DiscoAll, DiscoSides []Box
33917 }))(obj)).DiscoAll)) > math.MaxUint16 {
33921 x := uint16(len(((*(*(struct {
33924 //mt:if %s.Type == MountedBox
33925 WallTop, WallBot, WallSides Box
33927 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33930 //mt:if %s.Type == ConnectedBox
33931 ConnDirs, DiscoDirs DirBoxes
33932 DiscoAll, DiscoSides []Box
33933 }))(obj)).DiscoAll)))
33934 write16(w, uint16(x))
33936 for local377 := range (*(*(struct {
33939 //mt:if %s.Type == MountedBox
33940 WallTop, WallBot, WallSides Box
33942 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33945 //mt:if %s.Type == ConnectedBox
33946 ConnDirs, DiscoDirs DirBoxes
33947 DiscoAll, DiscoSides []Box
33948 }))(obj)).DiscoAll {
33949 if err := pcall(func() {
33953 //mt:if %s.Type == MountedBox
33954 WallTop, WallBot, WallSides Box
33956 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33959 //mt:if %s.Type == ConnectedBox
33960 ConnDirs, DiscoDirs DirBoxes
33961 DiscoAll, DiscoSides []Box
33962 }))(obj)).DiscoAll)[local377]).serialize(w)
33967 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33970 if len(((*(*(struct {
33973 //mt:if %s.Type == MountedBox
33974 WallTop, WallBot, WallSides Box
33976 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33979 //mt:if %s.Type == ConnectedBox
33980 ConnDirs, DiscoDirs DirBoxes
33981 DiscoAll, DiscoSides []Box
33982 }))(obj)).DiscoSides)) > math.MaxUint16 {
33986 x := uint16(len(((*(*(struct {
33989 //mt:if %s.Type == MountedBox
33990 WallTop, WallBot, WallSides Box
33992 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33995 //mt:if %s.Type == ConnectedBox
33996 ConnDirs, DiscoDirs DirBoxes
33997 DiscoAll, DiscoSides []Box
33998 }))(obj)).DiscoSides)))
33999 write16(w, uint16(x))
34001 for local378 := range (*(*(struct {
34004 //mt:if %s.Type == MountedBox
34005 WallTop, WallBot, WallSides Box
34007 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34010 //mt:if %s.Type == ConnectedBox
34011 ConnDirs, DiscoDirs DirBoxes
34012 DiscoAll, DiscoSides []Box
34013 }))(obj)).DiscoSides {
34014 if err := pcall(func() {
34018 //mt:if %s.Type == MountedBox
34019 WallTop, WallBot, WallSides Box
34021 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34024 //mt:if %s.Type == ConnectedBox
34025 ConnDirs, DiscoDirs DirBoxes
34026 DiscoAll, DiscoSides []Box
34027 }))(obj)).DiscoSides)[local378]).serialize(w)
34032 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34038 func (obj *NodeBox) deserialize(r io.Reader) {
34041 local380 := uint8(6)
34046 if local379 != local380 {
34047 chk(fmt.Errorf("const %v: %v", "uint8(6)", local379))
34050 if err := pcall(func() {
34054 //mt:if %s.Type == MountedBox
34055 WallTop, WallBot, WallSides Box
34057 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34060 //mt:if %s.Type == ConnectedBox
34061 ConnDirs, DiscoDirs DirBoxes
34062 DiscoAll, DiscoSides []Box
34063 }))(obj)).Type).deserialize(r)
34068 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
34073 //mt:if %s.Type == MountedBox
34074 WallTop, WallBot, WallSides Box
34076 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34079 //mt:if %s.Type == ConnectedBox
34080 ConnDirs, DiscoDirs DirBoxes
34081 DiscoAll, DiscoSides []Box
34082 }))(obj)).Type < maxBox) {
34083 chk(errors.New("assertion failed: %s.Type < maxBox"))
34088 //mt:if %s.Type == MountedBox
34089 WallTop, WallBot, WallSides Box
34091 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34094 //mt:if %s.Type == ConnectedBox
34095 ConnDirs, DiscoDirs DirBoxes
34096 DiscoAll, DiscoSides []Box
34097 }))(obj)).Type == MountedBox {
34098 if err := pcall(func() {
34102 //mt:if %s.Type == MountedBox
34103 WallTop, WallBot, WallSides Box
34105 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34108 //mt:if %s.Type == ConnectedBox
34109 ConnDirs, DiscoDirs DirBoxes
34110 DiscoAll, DiscoSides []Box
34111 }))(obj)).WallTop).deserialize(r)
34116 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34118 if err := pcall(func() {
34122 //mt:if %s.Type == MountedBox
34123 WallTop, WallBot, WallSides Box
34125 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34128 //mt:if %s.Type == ConnectedBox
34129 ConnDirs, DiscoDirs DirBoxes
34130 DiscoAll, DiscoSides []Box
34131 }))(obj)).WallBot).deserialize(r)
34136 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34138 if err := pcall(func() {
34142 //mt:if %s.Type == MountedBox
34143 WallTop, WallBot, WallSides Box
34145 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34148 //mt:if %s.Type == ConnectedBox
34149 ConnDirs, DiscoDirs DirBoxes
34150 DiscoAll, DiscoSides []Box
34151 }))(obj)).WallSides).deserialize(r)
34156 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34159 if t := (*(*(struct {
34162 //mt:if %s.Type == MountedBox
34163 WallTop, WallBot, WallSides Box
34165 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34168 //mt:if %s.Type == ConnectedBox
34169 ConnDirs, DiscoDirs DirBoxes
34170 DiscoAll, DiscoSides []Box
34171 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
34172 var local381 uint16
34180 //mt:if %s.Type == MountedBox
34181 WallTop, WallBot, WallSides Box
34183 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34186 //mt:if %s.Type == ConnectedBox
34187 ConnDirs, DiscoDirs DirBoxes
34188 DiscoAll, DiscoSides []Box
34189 }))(obj)).Fixed) = make([]Box, local381)
34190 for local382 := range (*(*(struct {
34193 //mt:if %s.Type == MountedBox
34194 WallTop, WallBot, WallSides Box
34196 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34199 //mt:if %s.Type == ConnectedBox
34200 ConnDirs, DiscoDirs DirBoxes
34201 DiscoAll, DiscoSides []Box
34203 if err := pcall(func() {
34207 //mt:if %s.Type == MountedBox
34208 WallTop, WallBot, WallSides Box
34210 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34213 //mt:if %s.Type == ConnectedBox
34214 ConnDirs, DiscoDirs DirBoxes
34215 DiscoAll, DiscoSides []Box
34216 }))(obj)).Fixed)[local382]).deserialize(r)
34221 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34228 //mt:if %s.Type == MountedBox
34229 WallTop, WallBot, WallSides Box
34231 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34234 //mt:if %s.Type == ConnectedBox
34235 ConnDirs, DiscoDirs DirBoxes
34236 DiscoAll, DiscoSides []Box
34237 }))(obj)).Type == ConnectedBox {
34238 if err := pcall(func() {
34242 //mt:if %s.Type == MountedBox
34243 WallTop, WallBot, WallSides Box
34245 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34248 //mt:if %s.Type == ConnectedBox
34249 ConnDirs, DiscoDirs DirBoxes
34250 DiscoAll, DiscoSides []Box
34251 }))(obj)).ConnDirs).deserialize(r)
34256 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34258 if err := pcall(func() {
34262 //mt:if %s.Type == MountedBox
34263 WallTop, WallBot, WallSides Box
34265 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34268 //mt:if %s.Type == ConnectedBox
34269 ConnDirs, DiscoDirs DirBoxes
34270 DiscoAll, DiscoSides []Box
34271 }))(obj)).DiscoDirs).deserialize(r)
34276 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34278 var local383 uint16
34286 //mt:if %s.Type == MountedBox
34287 WallTop, WallBot, WallSides Box
34289 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34292 //mt:if %s.Type == ConnectedBox
34293 ConnDirs, DiscoDirs DirBoxes
34294 DiscoAll, DiscoSides []Box
34295 }))(obj)).DiscoAll) = make([]Box, local383)
34296 for local384 := range (*(*(struct {
34299 //mt:if %s.Type == MountedBox
34300 WallTop, WallBot, WallSides Box
34302 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34305 //mt:if %s.Type == ConnectedBox
34306 ConnDirs, DiscoDirs DirBoxes
34307 DiscoAll, DiscoSides []Box
34308 }))(obj)).DiscoAll {
34309 if err := pcall(func() {
34313 //mt:if %s.Type == MountedBox
34314 WallTop, WallBot, WallSides Box
34316 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34319 //mt:if %s.Type == ConnectedBox
34320 ConnDirs, DiscoDirs DirBoxes
34321 DiscoAll, DiscoSides []Box
34322 }))(obj)).DiscoAll)[local384]).deserialize(r)
34327 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34330 var local385 uint16
34338 //mt:if %s.Type == MountedBox
34339 WallTop, WallBot, WallSides Box
34341 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34344 //mt:if %s.Type == ConnectedBox
34345 ConnDirs, DiscoDirs DirBoxes
34346 DiscoAll, DiscoSides []Box
34347 }))(obj)).DiscoSides) = make([]Box, local385)
34348 for local386 := range (*(*(struct {
34351 //mt:if %s.Type == MountedBox
34352 WallTop, WallBot, WallSides Box
34354 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34357 //mt:if %s.Type == ConnectedBox
34358 ConnDirs, DiscoDirs DirBoxes
34359 DiscoAll, DiscoSides []Box
34360 }))(obj)).DiscoSides {
34361 if err := pcall(func() {
34365 //mt:if %s.Type == MountedBox
34366 WallTop, WallBot, WallSides Box
34368 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34371 //mt:if %s.Type == ConnectedBox
34372 ConnDirs, DiscoDirs DirBoxes
34373 DiscoAll, DiscoSides []Box
34374 }))(obj)).DiscoSides)[local386]).deserialize(r)
34379 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34385 func (obj *SoundDef) serialize(w io.Writer) {
34386 if len(([]byte((*(*(struct {
34388 Gain, Pitch, Fade float32
34389 }))(obj)).Name))) > math.MaxUint16 {
34393 x := uint16(len(([]byte((*(*(struct {
34395 Gain, Pitch, Fade float32
34397 write16(w, uint16(x))
34400 _, err := w.Write(([]byte((*(*(struct {
34402 Gain, Pitch, Fade float32
34403 }))(obj)).Name))[:])
34409 Gain, Pitch, Fade float32
34411 write32(w, math.Float32bits(x))
34416 Gain, Pitch, Fade float32
34418 write32(w, math.Float32bits(x))
34423 Gain, Pitch, Fade float32
34425 write32(w, math.Float32bits(x))
34429 func (obj *SoundDef) deserialize(r io.Reader) {
34430 var local387 []uint8
34431 var local388 uint16
34436 (local387) = make([]uint8, local388)
34438 _, err := io.ReadFull(r, (local387)[:])
34443 Gain, Pitch, Fade float32
34444 }))(obj)).Name) = string(local387)
34446 p := &(*(*(struct {
34448 Gain, Pitch, Fade float32
34450 *p = math.Float32frombits(read32(r))
34453 p := &(*(*(struct {
34455 Gain, Pitch, Fade float32
34457 *p = math.Float32frombits(read32(r))
34460 p := &(*(*(struct {
34462 Gain, Pitch, Fade float32
34464 *p = math.Float32frombits(read32(r))
34468 func (obj *AlphaUse) serialize(w io.Writer) {
34470 x := *(*(uint8))(obj)
34471 write8(w, uint8(x))
34475 func (obj *AlphaUse) deserialize(r io.Reader) {
34477 p := &*(*(uint8))(obj)
34482 func (obj *Keys) serialize(w io.Writer) {
34484 x := *(*(uint32))(obj)
34485 write32(w, uint32(x))
34489 func (obj *Keys) deserialize(r io.Reader) {
34491 p := &*(*(uint32))(obj)
34496 func (obj *MapBlkFlags) serialize(w io.Writer) {
34498 x := *(*(uint8))(obj)
34499 write8(w, uint8(x))
34503 func (obj *MapBlkFlags) deserialize(r io.Reader) {
34505 p := &*(*(uint8))(obj)
34510 func (obj *LitFromBlks) serialize(w io.Writer) {
34512 x := *(*(uint16))(obj)
34513 write16(w, uint16(x))
34517 func (obj *LitFromBlks) deserialize(r io.Reader) {
34519 p := &*(*(uint16))(obj)
34524 func (obj *AOInitData) serialize(w io.Writer) {
34526 local389 := uint8(1)
34529 write8(w, uint8(x))
34532 if len(([]byte((*(*(struct {
34545 // See (de)serialize.fmt.
34547 }))(obj)).Name))) > math.MaxUint16 {
34551 x := uint16(len(([]byte((*(*(struct {
34564 // See (de)serialize.fmt.
34567 write16(w, uint16(x))
34570 _, err := w.Write(([]byte((*(*(struct {
34583 // See (de)serialize.fmt.
34585 }))(obj)).Name))[:])
34602 // See (de)serialize.fmt.
34611 if err := pcall(func() {
34625 // See (de)serialize.fmt.
34627 }))(obj)).ID).serialize(w)
34632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34634 if err := pcall(func() {
34648 // See (de)serialize.fmt.
34650 }))(obj)).Pos).serialize(w)
34655 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34657 for local390 := range (*(*(struct {
34670 // See (de)serialize.fmt.
34674 x := ((*(*(struct {
34687 // See (de)serialize.fmt.
34689 }))(obj)).Rot)[local390]
34690 write32(w, math.Float32bits(x))
34707 // See (de)serialize.fmt.
34710 write16(w, uint16(x))
34726 // See (de)serialize.fmt.
34729 { // For AOInitData.Msgs.
34730 if len(x) > math.MaxUint8 {
34733 write8(w, uint8(len(x)))
34734 for _, msg := range x {
34736 chk(writeAOMsg(&b, msg))
34737 if b.Len() > math.MaxUint32 {
34740 write32(w, uint32(b.Len()))
34741 _, err := b.WriteTo(w)
34748 func (obj *AOInitData) deserialize(r io.Reader) {
34751 local392 := uint8(1)
34756 if local391 != local392 {
34757 chk(fmt.Errorf("const %v: %v", "uint8(1)", local391))
34760 var local393 []uint8
34761 var local394 uint16
34766 (local393) = make([]uint8, local394)
34768 _, err := io.ReadFull(r, (local393)[:])
34784 // See (de)serialize.fmt.
34786 }))(obj)).Name) = string(local393)
34788 p := &(*(*(struct {
34801 // See (de)serialize.fmt.
34804 switch n := read8(r); n {
34810 chk(fmt.Errorf("invalid bool: %d", n))
34813 if err := pcall(func() {
34827 // See (de)serialize.fmt.
34829 }))(obj)).ID).deserialize(r)
34834 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34836 if err := pcall(func() {
34850 // See (de)serialize.fmt.
34852 }))(obj)).Pos).deserialize(r)
34857 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34859 for local395 := range (*(*(struct {
34872 // See (de)serialize.fmt.
34876 p := &((*(*(struct {
34889 // See (de)serialize.fmt.
34891 }))(obj)).Rot)[local395]
34892 *p = math.Float32frombits(read32(r))
34896 p := &(*(*(struct {
34909 // See (de)serialize.fmt.
34915 p := &(*(*(struct {
34928 // See (de)serialize.fmt.
34931 { // For AOInitData.Msgs.
34932 *p = make([]AOMsg, read8(r))
34933 for i := range *p {
34934 r := &io.LimitedReader{R: r, N: int64(read32(r))}
34935 msg, err := readAOMsg(r)
34939 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34946 func (obj *ItemType) serialize(w io.Writer) {
34948 x := *(*(uint8))(obj)
34949 write8(w, uint8(x))
34953 func (obj *ItemType) deserialize(r io.Reader) {
34955 p := &*(*(uint8))(obj)
34960 func (obj *ToolCaps) serialize(w io.Writer) {
34961 if _ = (*(*(struct {
34962 //mt:if _ = %s; false
34965 AttackCooldown float32
34969 GroupCaps []ToolGroupCap
34979 //mt:if _ = %s; false
34982 AttackCooldown float32
34986 GroupCaps []ToolGroupCap
35003 w := new(bytes.Buffer)
35005 if r.N > 0 { (*(*(struct {
35006 //mt:if _ = %s; false
35009 AttackCooldown float32
35013 GroupCaps []ToolGroupCap
35020 }))(obj)).NonNil = true}; /**/{
35022 //mt:if _ = %s; false
35025 AttackCooldown float32
35029 GroupCaps []ToolGroupCap
35038 local396 := uint8(5)
35041 write8(w, uint8(x))
35046 //mt:if _ = %s; false
35049 AttackCooldown float32
35053 GroupCaps []ToolGroupCap
35060 }))(obj)).AttackCooldown
35061 write32(w, math.Float32bits(x))
35065 //mt:if _ = %s; false
35068 AttackCooldown float32
35072 GroupCaps []ToolGroupCap
35079 }))(obj)).MaxDropLvl
35080 write16(w, uint16(x))
35082 if len(((*(*(struct {
35083 //mt:if _ = %s; false
35086 AttackCooldown float32
35090 GroupCaps []ToolGroupCap
35097 }))(obj)).GroupCaps)) > math.MaxUint32 {
35101 x := uint32(len(((*(*(struct {
35102 //mt:if _ = %s; false
35105 AttackCooldown float32
35109 GroupCaps []ToolGroupCap
35116 }))(obj)).GroupCaps)))
35117 write32(w, uint32(x))
35119 for local397 := range (*(*(struct {
35120 //mt:if _ = %s; false
35123 AttackCooldown float32
35127 GroupCaps []ToolGroupCap
35134 }))(obj)).GroupCaps {
35135 if err := pcall(func() {
35137 //mt:if _ = %s; false
35140 AttackCooldown float32
35144 GroupCaps []ToolGroupCap
35151 }))(obj)).GroupCaps)[local397]).serialize(w)
35156 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35159 if len(((*(*(struct {
35160 //mt:if _ = %s; false
35163 AttackCooldown float32
35167 GroupCaps []ToolGroupCap
35174 }))(obj)).DmgGroups)) > math.MaxUint32 {
35178 x := uint32(len(((*(*(struct {
35179 //mt:if _ = %s; false
35182 AttackCooldown float32
35186 GroupCaps []ToolGroupCap
35193 }))(obj)).DmgGroups)))
35194 write32(w, uint32(x))
35196 for local398 := range (*(*(struct {
35197 //mt:if _ = %s; false
35200 AttackCooldown float32
35204 GroupCaps []ToolGroupCap
35211 }))(obj)).DmgGroups {
35212 if err := pcall(func() {
35214 //mt:if _ = %s; false
35217 AttackCooldown float32
35221 GroupCaps []ToolGroupCap
35228 }))(obj)).DmgGroups)[local398]).serialize(w)
35233 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35237 x := uint16((*(*(struct {
35238 //mt:if _ = %s; false
35241 AttackCooldown float32
35245 GroupCaps []ToolGroupCap
35252 }))(obj)).PunchUses)
35253 write16(w, uint16(x))
35260 if len((buf.Bytes())) > math.MaxUint16 {
35264 x := uint16(len((buf.Bytes())))
35265 write16(w, uint16(x))
35268 _, err := w.Write((buf.Bytes())[:])
35275 func (obj *ToolCaps) deserialize(r io.Reader) {
35276 if _ = (*(*(struct {
35277 //mt:if _ = %s; false
35280 AttackCooldown float32
35284 GroupCaps []ToolGroupCap
35293 p := &(*(*(struct {
35294 //mt:if _ = %s; false
35297 AttackCooldown float32
35301 GroupCaps []ToolGroupCap
35309 switch n := read8(r); n {
35315 chk(fmt.Errorf("invalid bool: %d", n))
35325 r := &io.LimitedReader{R: r, N: int64(n)}
35328 //mt:if _ = %s; false
35331 AttackCooldown float32
35335 GroupCaps []ToolGroupCap
35342 }))(obj)).NonNil = true
35346 //mt:if _ = %s; false
35349 AttackCooldown float32
35353 GroupCaps []ToolGroupCap
35363 local400 := uint8(5)
35368 if local399 != local400 {
35369 chk(fmt.Errorf("const %v: %v", "uint8(5)", local399))
35373 p := &(*(*(struct {
35374 //mt:if _ = %s; false
35377 AttackCooldown float32
35381 GroupCaps []ToolGroupCap
35388 }))(obj)).AttackCooldown
35389 *p = math.Float32frombits(read32(r))
35392 p := &(*(*(struct {
35393 //mt:if _ = %s; false
35396 AttackCooldown float32
35400 GroupCaps []ToolGroupCap
35407 }))(obj)).MaxDropLvl
35408 *p = int16(read16(r))
35410 var local401 uint32
35416 //mt:if _ = %s; false
35419 AttackCooldown float32
35423 GroupCaps []ToolGroupCap
35430 }))(obj)).GroupCaps) = make([]ToolGroupCap, local401)
35431 for local402 := range (*(*(struct {
35432 //mt:if _ = %s; false
35435 AttackCooldown float32
35439 GroupCaps []ToolGroupCap
35446 }))(obj)).GroupCaps {
35447 if err := pcall(func() {
35449 //mt:if _ = %s; false
35452 AttackCooldown float32
35456 GroupCaps []ToolGroupCap
35463 }))(obj)).GroupCaps)[local402]).deserialize(r)
35468 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35471 var local403 uint32
35477 //mt:if _ = %s; false
35480 AttackCooldown float32
35484 GroupCaps []ToolGroupCap
35491 }))(obj)).DmgGroups) = make([]Group, local403)
35492 for local404 := range (*(*(struct {
35493 //mt:if _ = %s; false
35496 AttackCooldown float32
35500 GroupCaps []ToolGroupCap
35507 }))(obj)).DmgGroups {
35508 if err := pcall(func() {
35510 //mt:if _ = %s; false
35513 AttackCooldown float32
35517 GroupCaps []ToolGroupCap
35524 }))(obj)).DmgGroups)[local404]).deserialize(r)
35529 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35532 var local405 uint16
35538 //mt:if _ = %s; false
35541 AttackCooldown float32
35545 GroupCaps []ToolGroupCap
35552 }))(obj)).PunchUses = int32(local405)
35556 chk(fmt.Errorf("%d bytes of trailing data", r.N))
35561 func (obj *AnimType) serialize(w io.Writer) {
35563 x := *(*(uint8))(obj)
35564 write8(w, uint8(x))
35568 func (obj *AnimType) deserialize(r io.Reader) {
35570 p := &*(*(uint8))(obj)
35575 func (obj *HUDType) serialize(w io.Writer) {
35577 x := *(*(uint8))(obj)
35578 write8(w, uint8(x))
35582 func (obj *HUDType) deserialize(r io.Reader) {
35584 p := &*(*(uint8))(obj)
35589 func (obj *Box) serialize(w io.Writer) {
35590 for local406 := range *(*([2]Vec))(obj) {
35591 if err := pcall(func() {
35592 ((*(*([2]Vec))(obj))[local406]).serialize(w)
35597 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35602 func (obj *Box) deserialize(r io.Reader) {
35603 for local407 := range *(*([2]Vec))(obj) {
35604 if err := pcall(func() {
35605 ((*(*([2]Vec))(obj))[local407]).deserialize(r)
35610 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35615 func (obj *TileFlags) serialize(w io.Writer) {
35617 x := *(*(uint16))(obj)
35618 write16(w, uint16(x))
35622 func (obj *TileFlags) deserialize(r io.Reader) {
35624 p := &*(*(uint16))(obj)
35629 func (obj *AlignType) serialize(w io.Writer) {
35631 x := *(*(uint8))(obj)
35632 write8(w, uint8(x))
35636 func (obj *AlignType) deserialize(r io.Reader) {
35638 p := &*(*(uint8))(obj)
35643 func (obj *NodeBoxType) serialize(w io.Writer) {
35645 x := *(*(uint8))(obj)
35646 write8(w, uint8(x))
35650 func (obj *NodeBoxType) deserialize(r io.Reader) {
35652 p := &*(*(uint8))(obj)
35657 func (obj *DirBoxes) serialize(w io.Writer) {
35658 if len(((*(*(struct {
35660 Front, Left, Back, Right []Box
35661 }))(obj)).Top)) > math.MaxUint16 {
35665 x := uint16(len(((*(*(struct {
35667 Front, Left, Back, Right []Box
35669 write16(w, uint16(x))
35671 for local408 := range (*(*(struct {
35673 Front, Left, Back, Right []Box
35675 if err := pcall(func() {
35678 Front, Left, Back, Right []Box
35679 }))(obj)).Top)[local408]).serialize(w)
35684 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35687 if len(((*(*(struct {
35689 Front, Left, Back, Right []Box
35690 }))(obj)).Bot)) > math.MaxUint16 {
35694 x := uint16(len(((*(*(struct {
35696 Front, Left, Back, Right []Box
35698 write16(w, uint16(x))
35700 for local409 := range (*(*(struct {
35702 Front, Left, Back, Right []Box
35704 if err := pcall(func() {
35707 Front, Left, Back, Right []Box
35708 }))(obj)).Bot)[local409]).serialize(w)
35713 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35716 if len(((*(*(struct {
35718 Front, Left, Back, Right []Box
35719 }))(obj)).Front)) > math.MaxUint16 {
35723 x := uint16(len(((*(*(struct {
35725 Front, Left, Back, Right []Box
35727 write16(w, uint16(x))
35729 for local410 := range (*(*(struct {
35731 Front, Left, Back, Right []Box
35733 if err := pcall(func() {
35736 Front, Left, Back, Right []Box
35737 }))(obj)).Front)[local410]).serialize(w)
35742 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35745 if len(((*(*(struct {
35747 Front, Left, Back, Right []Box
35748 }))(obj)).Left)) > math.MaxUint16 {
35752 x := uint16(len(((*(*(struct {
35754 Front, Left, Back, Right []Box
35756 write16(w, uint16(x))
35758 for local411 := range (*(*(struct {
35760 Front, Left, Back, Right []Box
35762 if err := pcall(func() {
35765 Front, Left, Back, Right []Box
35766 }))(obj)).Left)[local411]).serialize(w)
35771 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35774 if len(((*(*(struct {
35776 Front, Left, Back, Right []Box
35777 }))(obj)).Back)) > math.MaxUint16 {
35781 x := uint16(len(((*(*(struct {
35783 Front, Left, Back, Right []Box
35785 write16(w, uint16(x))
35787 for local412 := range (*(*(struct {
35789 Front, Left, Back, Right []Box
35791 if err := pcall(func() {
35794 Front, Left, Back, Right []Box
35795 }))(obj)).Back)[local412]).serialize(w)
35800 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35803 if len(((*(*(struct {
35805 Front, Left, Back, Right []Box
35806 }))(obj)).Right)) > math.MaxUint16 {
35810 x := uint16(len(((*(*(struct {
35812 Front, Left, Back, Right []Box
35814 write16(w, uint16(x))
35816 for local413 := range (*(*(struct {
35818 Front, Left, Back, Right []Box
35820 if err := pcall(func() {
35823 Front, Left, Back, Right []Box
35824 }))(obj)).Right)[local413]).serialize(w)
35829 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35834 func (obj *DirBoxes) deserialize(r io.Reader) {
35835 var local414 uint16
35842 Front, Left, Back, Right []Box
35843 }))(obj)).Top) = make([]Box, local414)
35844 for local415 := range (*(*(struct {
35846 Front, Left, Back, Right []Box
35848 if err := pcall(func() {
35851 Front, Left, Back, Right []Box
35852 }))(obj)).Top)[local415]).deserialize(r)
35857 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35860 var local416 uint16
35867 Front, Left, Back, Right []Box
35868 }))(obj)).Bot) = make([]Box, local416)
35869 for local417 := range (*(*(struct {
35871 Front, Left, Back, Right []Box
35873 if err := pcall(func() {
35876 Front, Left, Back, Right []Box
35877 }))(obj)).Bot)[local417]).deserialize(r)
35882 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35885 var local418 uint16
35892 Front, Left, Back, Right []Box
35893 }))(obj)).Front) = make([]Box, local418)
35894 for local419 := range (*(*(struct {
35896 Front, Left, Back, Right []Box
35898 if err := pcall(func() {
35901 Front, Left, Back, Right []Box
35902 }))(obj)).Front)[local419]).deserialize(r)
35907 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35910 var local420 uint16
35917 Front, Left, Back, Right []Box
35918 }))(obj)).Left) = make([]Box, local420)
35919 for local421 := range (*(*(struct {
35921 Front, Left, Back, Right []Box
35923 if err := pcall(func() {
35926 Front, Left, Back, Right []Box
35927 }))(obj)).Left)[local421]).deserialize(r)
35932 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35935 var local422 uint16
35942 Front, Left, Back, Right []Box
35943 }))(obj)).Back) = make([]Box, local422)
35944 for local423 := range (*(*(struct {
35946 Front, Left, Back, Right []Box
35948 if err := pcall(func() {
35951 Front, Left, Back, Right []Box
35952 }))(obj)).Back)[local423]).deserialize(r)
35957 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35960 var local424 uint16
35967 Front, Left, Back, Right []Box
35968 }))(obj)).Right) = make([]Box, local424)
35969 for local425 := range (*(*(struct {
35971 Front, Left, Back, Right []Box
35973 if err := pcall(func() {
35976 Front, Left, Back, Right []Box
35977 }))(obj)).Right)[local425]).deserialize(r)
35982 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35987 func (obj *ToolGroupCap) serialize(w io.Writer) {
35988 if len(([]byte((*(*(struct {
35998 }))(obj)).Name))) > math.MaxUint16 {
36002 x := uint16(len(([]byte((*(*(struct {
36013 write16(w, uint16(x))
36016 _, err := w.Write(([]byte((*(*(struct {
36026 }))(obj)).Name))[:])
36030 x := int16((*(*(struct {
36041 write16(w, uint16(x))
36055 write16(w, uint16(x))
36057 if len(((*(*(struct {
36067 }))(obj)).Times)) > math.MaxUint32 {
36071 x := uint32(len(((*(*(struct {
36082 write32(w, uint32(x))
36084 for local426 := range (*(*(struct {
36095 if err := pcall(func() {
36106 }))(obj)).Times)[local426]).serialize(w)
36111 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36116 func (obj *ToolGroupCap) deserialize(r io.Reader) {
36117 var local427 []uint8
36118 var local428 uint16
36123 (local427) = make([]uint8, local428)
36125 _, err := io.ReadFull(r, (local427)[:])
36138 }))(obj)).Name) = string(local427)
36142 *p = int16(read16(r))
36154 }))(obj)).Uses = int32(local429)
36156 p := &(*(*(struct {
36167 *p = int16(read16(r))
36169 var local430 uint32
36184 }))(obj)).Times) = make([]DigTime, local430)
36185 for local431 := range (*(*(struct {
36196 if err := pcall(func() {
36207 }))(obj)).Times)[local431]).deserialize(r)
36212 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36217 func (obj *DigTime) serialize(w io.Writer) {
36223 write16(w, uint16(x))
36230 write32(w, math.Float32bits(x))
36234 func (obj *DigTime) deserialize(r io.Reader) {
36236 p := &(*(*(struct {
36240 *p = int16(read16(r))
36243 p := &(*(*(struct {
36247 *p = math.Float32frombits(read32(r))