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
14240 }))(obj)).Param0).serialize(w)
14245 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
14249 w := new(bytes.Buffer)
14251 local238 := uint8(13)
14254 write8(w, uint8(x))
14257 if len(([]byte((*(*(struct {
14269 //mt:const uint8(6)
14271 OverlayTiles [6]TileDef
14272 //mt:const uint8(6)
14273 SpecialTiles [6]TileDef
14280 ConnectTo []Content
14281 InsideTint color.NRGBA
14282 Level uint8 // Must be < 128.
14284 Translucent bool // Sunlight is scattered and becomes normal light.
14285 Transparent bool // Sunlight isn't scattered.
14298 LiquidType LiquidType
14301 Viscosity uint8 // 0-7
14307 DrawBox, ColBox, SelBox NodeBox
14309 FootstepSnd, DiggingSnd, DugSnd SoundDef
14319 }))(obj)).Name))) > math.MaxUint16 {
14323 x := uint16(len(([]byte((*(*(struct {
14335 //mt:const uint8(6)
14337 OverlayTiles [6]TileDef
14338 //mt:const uint8(6)
14339 SpecialTiles [6]TileDef
14346 ConnectTo []Content
14347 InsideTint color.NRGBA
14348 Level uint8 // Must be < 128.
14350 Translucent bool // Sunlight is scattered and becomes normal light.
14351 Transparent bool // Sunlight isn't scattered.
14364 LiquidType LiquidType
14367 Viscosity uint8 // 0-7
14373 DrawBox, ColBox, SelBox NodeBox
14375 FootstepSnd, DiggingSnd, DugSnd SoundDef
14386 write16(w, uint16(x))
14389 _, err := w.Write(([]byte((*(*(struct {
14401 //mt:const uint8(6)
14403 OverlayTiles [6]TileDef
14404 //mt:const uint8(6)
14405 SpecialTiles [6]TileDef
14412 ConnectTo []Content
14413 InsideTint color.NRGBA
14414 Level uint8 // Must be < 128.
14416 Translucent bool // Sunlight is scattered and becomes normal light.
14417 Transparent bool // Sunlight isn't scattered.
14430 LiquidType LiquidType
14433 Viscosity uint8 // 0-7
14439 DrawBox, ColBox, SelBox NodeBox
14441 FootstepSnd, DiggingSnd, DugSnd SoundDef
14451 }))(obj)).Name))[:])
14454 if len(((*(*(struct {
14466 //mt:const uint8(6)
14468 OverlayTiles [6]TileDef
14469 //mt:const uint8(6)
14470 SpecialTiles [6]TileDef
14477 ConnectTo []Content
14478 InsideTint color.NRGBA
14479 Level uint8 // Must be < 128.
14481 Translucent bool // Sunlight is scattered and becomes normal light.
14482 Transparent bool // Sunlight isn't scattered.
14495 LiquidType LiquidType
14498 Viscosity uint8 // 0-7
14504 DrawBox, ColBox, SelBox NodeBox
14506 FootstepSnd, DiggingSnd, DugSnd SoundDef
14516 }))(obj)).Groups)) > math.MaxUint16 {
14520 x := uint16(len(((*(*(struct {
14532 //mt:const uint8(6)
14534 OverlayTiles [6]TileDef
14535 //mt:const uint8(6)
14536 SpecialTiles [6]TileDef
14543 ConnectTo []Content
14544 InsideTint color.NRGBA
14545 Level uint8 // Must be < 128.
14547 Translucent bool // Sunlight is scattered and becomes normal light.
14548 Transparent bool // Sunlight isn't scattered.
14561 LiquidType LiquidType
14564 Viscosity uint8 // 0-7
14570 DrawBox, ColBox, SelBox NodeBox
14572 FootstepSnd, DiggingSnd, DugSnd SoundDef
14582 }))(obj)).Groups)))
14583 write16(w, uint16(x))
14585 for local239 := range (*(*(struct {
14597 //mt:const uint8(6)
14599 OverlayTiles [6]TileDef
14600 //mt:const uint8(6)
14601 SpecialTiles [6]TileDef
14608 ConnectTo []Content
14609 InsideTint color.NRGBA
14610 Level uint8 // Must be < 128.
14612 Translucent bool // Sunlight is scattered and becomes normal light.
14613 Transparent bool // Sunlight isn't scattered.
14626 LiquidType LiquidType
14629 Viscosity uint8 // 0-7
14635 DrawBox, ColBox, SelBox NodeBox
14637 FootstepSnd, DiggingSnd, DugSnd SoundDef
14648 if err := pcall(func() {
14661 //mt:const uint8(6)
14663 OverlayTiles [6]TileDef
14664 //mt:const uint8(6)
14665 SpecialTiles [6]TileDef
14672 ConnectTo []Content
14673 InsideTint color.NRGBA
14674 Level uint8 // Must be < 128.
14676 Translucent bool // Sunlight is scattered and becomes normal light.
14677 Transparent bool // Sunlight isn't scattered.
14690 LiquidType LiquidType
14693 Viscosity uint8 // 0-7
14699 DrawBox, ColBox, SelBox NodeBox
14701 FootstepSnd, DiggingSnd, DugSnd SoundDef
14711 }))(obj)).Groups)[local239]).serialize(w)
14716 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
14719 if err := pcall(func() {
14732 //mt:const uint8(6)
14734 OverlayTiles [6]TileDef
14735 //mt:const uint8(6)
14736 SpecialTiles [6]TileDef
14743 ConnectTo []Content
14744 InsideTint color.NRGBA
14745 Level uint8 // Must be < 128.
14747 Translucent bool // Sunlight is scattered and becomes normal light.
14748 Transparent bool // Sunlight isn't scattered.
14761 LiquidType LiquidType
14764 Viscosity uint8 // 0-7
14770 DrawBox, ColBox, SelBox NodeBox
14772 FootstepSnd, DiggingSnd, DugSnd SoundDef
14782 }))(obj)).P1Type).serialize(w)
14787 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
14789 if err := pcall(func() {
14802 //mt:const uint8(6)
14804 OverlayTiles [6]TileDef
14805 //mt:const uint8(6)
14806 SpecialTiles [6]TileDef
14813 ConnectTo []Content
14814 InsideTint color.NRGBA
14815 Level uint8 // Must be < 128.
14817 Translucent bool // Sunlight is scattered and becomes normal light.
14818 Transparent bool // Sunlight isn't scattered.
14831 LiquidType LiquidType
14834 Viscosity uint8 // 0-7
14840 DrawBox, ColBox, SelBox NodeBox
14842 FootstepSnd, DiggingSnd, DugSnd SoundDef
14852 }))(obj)).P2Type).serialize(w)
14857 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
14859 if err := pcall(func() {
14872 //mt:const uint8(6)
14874 OverlayTiles [6]TileDef
14875 //mt:const uint8(6)
14876 SpecialTiles [6]TileDef
14883 ConnectTo []Content
14884 InsideTint color.NRGBA
14885 Level uint8 // Must be < 128.
14887 Translucent bool // Sunlight is scattered and becomes normal light.
14888 Transparent bool // Sunlight isn't scattered.
14901 LiquidType LiquidType
14904 Viscosity uint8 // 0-7
14910 DrawBox, ColBox, SelBox NodeBox
14912 FootstepSnd, DiggingSnd, DugSnd SoundDef
14922 }))(obj)).DrawType).serialize(w)
14927 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
14929 if len(([]byte((*(*(struct {
14941 //mt:const uint8(6)
14943 OverlayTiles [6]TileDef
14944 //mt:const uint8(6)
14945 SpecialTiles [6]TileDef
14952 ConnectTo []Content
14953 InsideTint color.NRGBA
14954 Level uint8 // Must be < 128.
14956 Translucent bool // Sunlight is scattered and becomes normal light.
14957 Transparent bool // Sunlight isn't scattered.
14970 LiquidType LiquidType
14973 Viscosity uint8 // 0-7
14979 DrawBox, ColBox, SelBox NodeBox
14981 FootstepSnd, DiggingSnd, DugSnd SoundDef
14991 }))(obj)).Mesh))) > math.MaxUint16 {
14995 x := uint16(len(([]byte((*(*(struct {
15007 //mt:const uint8(6)
15009 OverlayTiles [6]TileDef
15010 //mt:const uint8(6)
15011 SpecialTiles [6]TileDef
15018 ConnectTo []Content
15019 InsideTint color.NRGBA
15020 Level uint8 // Must be < 128.
15022 Translucent bool // Sunlight is scattered and becomes normal light.
15023 Transparent bool // Sunlight isn't scattered.
15036 LiquidType LiquidType
15039 Viscosity uint8 // 0-7
15045 DrawBox, ColBox, SelBox NodeBox
15047 FootstepSnd, DiggingSnd, DugSnd SoundDef
15058 write16(w, uint16(x))
15061 _, err := w.Write(([]byte((*(*(struct {
15073 //mt:const uint8(6)
15075 OverlayTiles [6]TileDef
15076 //mt:const uint8(6)
15077 SpecialTiles [6]TileDef
15084 ConnectTo []Content
15085 InsideTint color.NRGBA
15086 Level uint8 // Must be < 128.
15088 Translucent bool // Sunlight is scattered and becomes normal light.
15089 Transparent bool // Sunlight isn't scattered.
15102 LiquidType LiquidType
15105 Viscosity uint8 // 0-7
15111 DrawBox, ColBox, SelBox NodeBox
15113 FootstepSnd, DiggingSnd, DugSnd SoundDef
15123 }))(obj)).Mesh))[:])
15139 //mt:const uint8(6)
15141 OverlayTiles [6]TileDef
15142 //mt:const uint8(6)
15143 SpecialTiles [6]TileDef
15150 ConnectTo []Content
15151 InsideTint color.NRGBA
15152 Level uint8 // Must be < 128.
15154 Translucent bool // Sunlight is scattered and becomes normal light.
15155 Transparent bool // Sunlight isn't scattered.
15168 LiquidType LiquidType
15171 Viscosity uint8 // 0-7
15177 DrawBox, ColBox, SelBox NodeBox
15179 FootstepSnd, DiggingSnd, DugSnd SoundDef
15190 write32(w, math.Float32bits(x))
15193 local240 := uint8(6)
15196 write8(w, uint8(x))
15199 for local241 := range (*(*(struct {
15211 //mt:const uint8(6)
15213 OverlayTiles [6]TileDef
15214 //mt:const uint8(6)
15215 SpecialTiles [6]TileDef
15222 ConnectTo []Content
15223 InsideTint color.NRGBA
15224 Level uint8 // Must be < 128.
15226 Translucent bool // Sunlight is scattered and becomes normal light.
15227 Transparent bool // Sunlight isn't scattered.
15240 LiquidType LiquidType
15243 Viscosity uint8 // 0-7
15249 DrawBox, ColBox, SelBox NodeBox
15251 FootstepSnd, DiggingSnd, DugSnd SoundDef
15262 if err := pcall(func() {
15275 //mt:const uint8(6)
15277 OverlayTiles [6]TileDef
15278 //mt:const uint8(6)
15279 SpecialTiles [6]TileDef
15286 ConnectTo []Content
15287 InsideTint color.NRGBA
15288 Level uint8 // Must be < 128.
15290 Translucent bool // Sunlight is scattered and becomes normal light.
15291 Transparent bool // Sunlight isn't scattered.
15304 LiquidType LiquidType
15307 Viscosity uint8 // 0-7
15313 DrawBox, ColBox, SelBox NodeBox
15315 FootstepSnd, DiggingSnd, DugSnd SoundDef
15325 }))(obj)).Tiles)[local241]).serialize(w)
15330 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15333 for local242 := range (*(*(struct {
15345 //mt:const uint8(6)
15347 OverlayTiles [6]TileDef
15348 //mt:const uint8(6)
15349 SpecialTiles [6]TileDef
15356 ConnectTo []Content
15357 InsideTint color.NRGBA
15358 Level uint8 // Must be < 128.
15360 Translucent bool // Sunlight is scattered and becomes normal light.
15361 Transparent bool // Sunlight isn't scattered.
15374 LiquidType LiquidType
15377 Viscosity uint8 // 0-7
15383 DrawBox, ColBox, SelBox NodeBox
15385 FootstepSnd, DiggingSnd, DugSnd SoundDef
15395 }))(obj)).OverlayTiles {
15396 if err := pcall(func() {
15409 //mt:const uint8(6)
15411 OverlayTiles [6]TileDef
15412 //mt:const uint8(6)
15413 SpecialTiles [6]TileDef
15420 ConnectTo []Content
15421 InsideTint color.NRGBA
15422 Level uint8 // Must be < 128.
15424 Translucent bool // Sunlight is scattered and becomes normal light.
15425 Transparent bool // Sunlight isn't scattered.
15438 LiquidType LiquidType
15441 Viscosity uint8 // 0-7
15447 DrawBox, ColBox, SelBox NodeBox
15449 FootstepSnd, DiggingSnd, DugSnd SoundDef
15459 }))(obj)).OverlayTiles)[local242]).serialize(w)
15464 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15468 local243 := uint8(6)
15471 write8(w, uint8(x))
15474 for local244 := range (*(*(struct {
15486 //mt:const uint8(6)
15488 OverlayTiles [6]TileDef
15489 //mt:const uint8(6)
15490 SpecialTiles [6]TileDef
15497 ConnectTo []Content
15498 InsideTint color.NRGBA
15499 Level uint8 // Must be < 128.
15501 Translucent bool // Sunlight is scattered and becomes normal light.
15502 Transparent bool // Sunlight isn't scattered.
15515 LiquidType LiquidType
15518 Viscosity uint8 // 0-7
15524 DrawBox, ColBox, SelBox NodeBox
15526 FootstepSnd, DiggingSnd, DugSnd SoundDef
15536 }))(obj)).SpecialTiles {
15537 if err := pcall(func() {
15550 //mt:const uint8(6)
15552 OverlayTiles [6]TileDef
15553 //mt:const uint8(6)
15554 SpecialTiles [6]TileDef
15561 ConnectTo []Content
15562 InsideTint color.NRGBA
15563 Level uint8 // Must be < 128.
15565 Translucent bool // Sunlight is scattered and becomes normal light.
15566 Transparent bool // Sunlight isn't scattered.
15579 LiquidType LiquidType
15582 Viscosity uint8 // 0-7
15588 DrawBox, ColBox, SelBox NodeBox
15590 FootstepSnd, DiggingSnd, DugSnd SoundDef
15600 }))(obj)).SpecialTiles)[local244]).serialize(w)
15605 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15621 //mt:const uint8(6)
15623 OverlayTiles [6]TileDef
15624 //mt:const uint8(6)
15625 SpecialTiles [6]TileDef
15632 ConnectTo []Content
15633 InsideTint color.NRGBA
15634 Level uint8 // Must be < 128.
15636 Translucent bool // Sunlight is scattered and becomes normal light.
15637 Transparent bool // Sunlight isn't scattered.
15650 LiquidType LiquidType
15653 Viscosity uint8 // 0-7
15659 DrawBox, ColBox, SelBox NodeBox
15661 FootstepSnd, DiggingSnd, DugSnd SoundDef
15672 w.Write([]byte{x.A, x.R, x.G, x.B})
15674 if err := pcall(func() {
15687 //mt:const uint8(6)
15689 OverlayTiles [6]TileDef
15690 //mt:const uint8(6)
15691 SpecialTiles [6]TileDef
15698 ConnectTo []Content
15699 InsideTint color.NRGBA
15700 Level uint8 // Must be < 128.
15702 Translucent bool // Sunlight is scattered and becomes normal light.
15703 Transparent bool // Sunlight isn't scattered.
15716 LiquidType LiquidType
15719 Viscosity uint8 // 0-7
15725 DrawBox, ColBox, SelBox NodeBox
15727 FootstepSnd, DiggingSnd, DugSnd SoundDef
15737 }))(obj)).Palette).serialize(w)
15742 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
15744 if err := pcall(func() {
15757 //mt:const uint8(6)
15759 OverlayTiles [6]TileDef
15760 //mt:const uint8(6)
15761 SpecialTiles [6]TileDef
15768 ConnectTo []Content
15769 InsideTint color.NRGBA
15770 Level uint8 // Must be < 128.
15772 Translucent bool // Sunlight is scattered and becomes normal light.
15773 Transparent bool // Sunlight isn't scattered.
15786 LiquidType LiquidType
15789 Viscosity uint8 // 0-7
15795 DrawBox, ColBox, SelBox NodeBox
15797 FootstepSnd, DiggingSnd, DugSnd SoundDef
15807 }))(obj)).Waving).serialize(w)
15812 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
15827 //mt:const uint8(6)
15829 OverlayTiles [6]TileDef
15830 //mt:const uint8(6)
15831 SpecialTiles [6]TileDef
15838 ConnectTo []Content
15839 InsideTint color.NRGBA
15840 Level uint8 // Must be < 128.
15842 Translucent bool // Sunlight is scattered and becomes normal light.
15843 Transparent bool // Sunlight isn't scattered.
15856 LiquidType LiquidType
15859 Viscosity uint8 // 0-7
15865 DrawBox, ColBox, SelBox NodeBox
15867 FootstepSnd, DiggingSnd, DugSnd SoundDef
15877 }))(obj)).ConnectSides
15878 write8(w, uint8(x))
15880 if len(((*(*(struct {
15892 //mt:const uint8(6)
15894 OverlayTiles [6]TileDef
15895 //mt:const uint8(6)
15896 SpecialTiles [6]TileDef
15903 ConnectTo []Content
15904 InsideTint color.NRGBA
15905 Level uint8 // Must be < 128.
15907 Translucent bool // Sunlight is scattered and becomes normal light.
15908 Transparent bool // Sunlight isn't scattered.
15921 LiquidType LiquidType
15924 Viscosity uint8 // 0-7
15930 DrawBox, ColBox, SelBox NodeBox
15932 FootstepSnd, DiggingSnd, DugSnd SoundDef
15942 }))(obj)).ConnectTo)) > math.MaxUint16 {
15946 x := uint16(len(((*(*(struct {
15958 //mt:const uint8(6)
15960 OverlayTiles [6]TileDef
15961 //mt:const uint8(6)
15962 SpecialTiles [6]TileDef
15969 ConnectTo []Content
15970 InsideTint color.NRGBA
15971 Level uint8 // Must be < 128.
15973 Translucent bool // Sunlight is scattered and becomes normal light.
15974 Transparent bool // Sunlight isn't scattered.
15987 LiquidType LiquidType
15990 Viscosity uint8 // 0-7
15996 DrawBox, ColBox, SelBox NodeBox
15998 FootstepSnd, DiggingSnd, DugSnd SoundDef
16008 }))(obj)).ConnectTo)))
16009 write16(w, uint16(x))
16011 for local245 := range (*(*(struct {
16023 //mt:const uint8(6)
16025 OverlayTiles [6]TileDef
16026 //mt:const uint8(6)
16027 SpecialTiles [6]TileDef
16034 ConnectTo []Content
16035 InsideTint color.NRGBA
16036 Level uint8 // Must be < 128.
16038 Translucent bool // Sunlight is scattered and becomes normal light.
16039 Transparent bool // Sunlight isn't scattered.
16052 LiquidType LiquidType
16055 Viscosity uint8 // 0-7
16061 DrawBox, ColBox, SelBox NodeBox
16063 FootstepSnd, DiggingSnd, DugSnd SoundDef
16073 }))(obj)).ConnectTo {
16074 if err := pcall(func() {
16087 //mt:const uint8(6)
16089 OverlayTiles [6]TileDef
16090 //mt:const uint8(6)
16091 SpecialTiles [6]TileDef
16098 ConnectTo []Content
16099 InsideTint color.NRGBA
16100 Level uint8 // Must be < 128.
16102 Translucent bool // Sunlight is scattered and becomes normal light.
16103 Transparent bool // Sunlight isn't scattered.
16116 LiquidType LiquidType
16119 Viscosity uint8 // 0-7
16125 DrawBox, ColBox, SelBox NodeBox
16127 FootstepSnd, DiggingSnd, DugSnd SoundDef
16137 }))(obj)).ConnectTo)[local245]).serialize(w)
16142 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
16158 //mt:const uint8(6)
16160 OverlayTiles [6]TileDef
16161 //mt:const uint8(6)
16162 SpecialTiles [6]TileDef
16169 ConnectTo []Content
16170 InsideTint color.NRGBA
16171 Level uint8 // Must be < 128.
16173 Translucent bool // Sunlight is scattered and becomes normal light.
16174 Transparent bool // Sunlight isn't scattered.
16187 LiquidType LiquidType
16190 Viscosity uint8 // 0-7
16196 DrawBox, ColBox, SelBox NodeBox
16198 FootstepSnd, DiggingSnd, DugSnd SoundDef
16208 }))(obj)).InsideTint
16209 w.Write([]byte{x.A, x.R, x.G, x.B})
16224 //mt:const uint8(6)
16226 OverlayTiles [6]TileDef
16227 //mt:const uint8(6)
16228 SpecialTiles [6]TileDef
16235 ConnectTo []Content
16236 InsideTint color.NRGBA
16237 Level uint8 // Must be < 128.
16239 Translucent bool // Sunlight is scattered and becomes normal light.
16240 Transparent bool // Sunlight isn't scattered.
16253 LiquidType LiquidType
16256 Viscosity uint8 // 0-7
16262 DrawBox, ColBox, SelBox NodeBox
16264 FootstepSnd, DiggingSnd, DugSnd SoundDef
16275 write8(w, uint8(x))
16290 //mt:const uint8(6)
16292 OverlayTiles [6]TileDef
16293 //mt:const uint8(6)
16294 SpecialTiles [6]TileDef
16301 ConnectTo []Content
16302 InsideTint color.NRGBA
16303 Level uint8 // Must be < 128.
16305 Translucent bool // Sunlight is scattered and becomes normal light.
16306 Transparent bool // Sunlight isn't scattered.
16319 LiquidType LiquidType
16322 Viscosity uint8 // 0-7
16328 DrawBox, ColBox, SelBox NodeBox
16330 FootstepSnd, DiggingSnd, DugSnd SoundDef
16340 }))(obj)).Translucent
16360 //mt:const uint8(6)
16362 OverlayTiles [6]TileDef
16363 //mt:const uint8(6)
16364 SpecialTiles [6]TileDef
16371 ConnectTo []Content
16372 InsideTint color.NRGBA
16373 Level uint8 // Must be < 128.
16375 Translucent bool // Sunlight is scattered and becomes normal light.
16376 Transparent bool // Sunlight isn't scattered.
16389 LiquidType LiquidType
16392 Viscosity uint8 // 0-7
16398 DrawBox, ColBox, SelBox NodeBox
16400 FootstepSnd, DiggingSnd, DugSnd SoundDef
16410 }))(obj)).Transparent
16430 //mt:const uint8(6)
16432 OverlayTiles [6]TileDef
16433 //mt:const uint8(6)
16434 SpecialTiles [6]TileDef
16441 ConnectTo []Content
16442 InsideTint color.NRGBA
16443 Level uint8 // Must be < 128.
16445 Translucent bool // Sunlight is scattered and becomes normal light.
16446 Transparent bool // Sunlight isn't scattered.
16459 LiquidType LiquidType
16462 Viscosity uint8 // 0-7
16468 DrawBox, ColBox, SelBox NodeBox
16470 FootstepSnd, DiggingSnd, DugSnd SoundDef
16481 write8(w, uint8(x))
16496 //mt:const uint8(6)
16498 OverlayTiles [6]TileDef
16499 //mt:const uint8(6)
16500 SpecialTiles [6]TileDef
16507 ConnectTo []Content
16508 InsideTint color.NRGBA
16509 Level uint8 // Must be < 128.
16511 Translucent bool // Sunlight is scattered and becomes normal light.
16512 Transparent bool // Sunlight isn't scattered.
16525 LiquidType LiquidType
16528 Viscosity uint8 // 0-7
16534 DrawBox, ColBox, SelBox NodeBox
16536 FootstepSnd, DiggingSnd, DugSnd SoundDef
16546 }))(obj)).GndContent
16566 //mt:const uint8(6)
16568 OverlayTiles [6]TileDef
16569 //mt:const uint8(6)
16570 SpecialTiles [6]TileDef
16577 ConnectTo []Content
16578 InsideTint color.NRGBA
16579 Level uint8 // Must be < 128.
16581 Translucent bool // Sunlight is scattered and becomes normal light.
16582 Transparent bool // Sunlight isn't scattered.
16595 LiquidType LiquidType
16598 Viscosity uint8 // 0-7
16604 DrawBox, ColBox, SelBox NodeBox
16606 FootstepSnd, DiggingSnd, DugSnd SoundDef
16636 //mt:const uint8(6)
16638 OverlayTiles [6]TileDef
16639 //mt:const uint8(6)
16640 SpecialTiles [6]TileDef
16647 ConnectTo []Content
16648 InsideTint color.NRGBA
16649 Level uint8 // Must be < 128.
16651 Translucent bool // Sunlight is scattered and becomes normal light.
16652 Transparent bool // Sunlight isn't scattered.
16665 LiquidType LiquidType
16668 Viscosity uint8 // 0-7
16674 DrawBox, ColBox, SelBox NodeBox
16676 FootstepSnd, DiggingSnd, DugSnd SoundDef
16686 }))(obj)).Pointable
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
16776 //mt:const uint8(6)
16778 OverlayTiles [6]TileDef
16779 //mt:const uint8(6)
16780 SpecialTiles [6]TileDef
16787 ConnectTo []Content
16788 InsideTint color.NRGBA
16789 Level uint8 // Must be < 128.
16791 Translucent bool // Sunlight is scattered and becomes normal light.
16792 Transparent bool // Sunlight isn't scattered.
16805 LiquidType LiquidType
16808 Viscosity uint8 // 0-7
16814 DrawBox, ColBox, SelBox NodeBox
16816 FootstepSnd, DiggingSnd, DugSnd SoundDef
16826 }))(obj)).Climbable
16846 //mt:const uint8(6)
16848 OverlayTiles [6]TileDef
16849 //mt:const uint8(6)
16850 SpecialTiles [6]TileDef
16857 ConnectTo []Content
16858 InsideTint color.NRGBA
16859 Level uint8 // Must be < 128.
16861 Translucent bool // Sunlight is scattered and becomes normal light.
16862 Transparent bool // Sunlight isn't scattered.
16875 LiquidType LiquidType
16878 Viscosity uint8 // 0-7
16884 DrawBox, ColBox, SelBox NodeBox
16886 FootstepSnd, DiggingSnd, DugSnd SoundDef
16896 }))(obj)).Replaceable
16916 //mt:const uint8(6)
16918 OverlayTiles [6]TileDef
16919 //mt:const uint8(6)
16920 SpecialTiles [6]TileDef
16927 ConnectTo []Content
16928 InsideTint color.NRGBA
16929 Level uint8 // Must be < 128.
16931 Translucent bool // Sunlight is scattered and becomes normal light.
16932 Transparent bool // Sunlight isn't scattered.
16945 LiquidType LiquidType
16948 Viscosity uint8 // 0-7
16954 DrawBox, ColBox, SelBox NodeBox
16956 FootstepSnd, DiggingSnd, DugSnd SoundDef
16966 }))(obj)).OnRightClick
16986 //mt:const uint8(6)
16988 OverlayTiles [6]TileDef
16989 //mt:const uint8(6)
16990 SpecialTiles [6]TileDef
16997 ConnectTo []Content
16998 InsideTint color.NRGBA
16999 Level uint8 // Must be < 128.
17001 Translucent bool // Sunlight is scattered and becomes normal light.
17002 Transparent bool // Sunlight isn't scattered.
17015 LiquidType LiquidType
17018 Viscosity uint8 // 0-7
17024 DrawBox, ColBox, SelBox NodeBox
17026 FootstepSnd, DiggingSnd, DugSnd SoundDef
17036 }))(obj)).DmgPerSec
17037 write32(w, uint32(x))
17039 if err := pcall(func() {
17052 //mt:const uint8(6)
17054 OverlayTiles [6]TileDef
17055 //mt:const uint8(6)
17056 SpecialTiles [6]TileDef
17063 ConnectTo []Content
17064 InsideTint color.NRGBA
17065 Level uint8 // Must be < 128.
17067 Translucent bool // Sunlight is scattered and becomes normal light.
17068 Transparent bool // Sunlight isn't scattered.
17081 LiquidType LiquidType
17084 Viscosity uint8 // 0-7
17090 DrawBox, ColBox, SelBox NodeBox
17092 FootstepSnd, DiggingSnd, DugSnd SoundDef
17102 }))(obj)).LiquidType).serialize(w)
17107 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
17109 if len(([]byte((*(*(struct {
17121 //mt:const uint8(6)
17123 OverlayTiles [6]TileDef
17124 //mt:const uint8(6)
17125 SpecialTiles [6]TileDef
17132 ConnectTo []Content
17133 InsideTint color.NRGBA
17134 Level uint8 // Must be < 128.
17136 Translucent bool // Sunlight is scattered and becomes normal light.
17137 Transparent bool // Sunlight isn't scattered.
17150 LiquidType LiquidType
17153 Viscosity uint8 // 0-7
17159 DrawBox, ColBox, SelBox NodeBox
17161 FootstepSnd, DiggingSnd, DugSnd SoundDef
17171 }))(obj)).FlowingAlt))) > math.MaxUint16 {
17175 x := uint16(len(([]byte((*(*(struct {
17187 //mt:const uint8(6)
17189 OverlayTiles [6]TileDef
17190 //mt:const uint8(6)
17191 SpecialTiles [6]TileDef
17198 ConnectTo []Content
17199 InsideTint color.NRGBA
17200 Level uint8 // Must be < 128.
17202 Translucent bool // Sunlight is scattered and becomes normal light.
17203 Transparent bool // Sunlight isn't scattered.
17216 LiquidType LiquidType
17219 Viscosity uint8 // 0-7
17225 DrawBox, ColBox, SelBox NodeBox
17227 FootstepSnd, DiggingSnd, DugSnd SoundDef
17237 }))(obj)).FlowingAlt))))
17238 write16(w, uint16(x))
17241 _, err := w.Write(([]byte((*(*(struct {
17253 //mt:const uint8(6)
17255 OverlayTiles [6]TileDef
17256 //mt:const uint8(6)
17257 SpecialTiles [6]TileDef
17264 ConnectTo []Content
17265 InsideTint color.NRGBA
17266 Level uint8 // Must be < 128.
17268 Translucent bool // Sunlight is scattered and becomes normal light.
17269 Transparent bool // Sunlight isn't scattered.
17282 LiquidType LiquidType
17285 Viscosity uint8 // 0-7
17291 DrawBox, ColBox, SelBox NodeBox
17293 FootstepSnd, DiggingSnd, DugSnd SoundDef
17303 }))(obj)).FlowingAlt))[:])
17306 if len(([]byte((*(*(struct {
17318 //mt:const uint8(6)
17320 OverlayTiles [6]TileDef
17321 //mt:const uint8(6)
17322 SpecialTiles [6]TileDef
17329 ConnectTo []Content
17330 InsideTint color.NRGBA
17331 Level uint8 // Must be < 128.
17333 Translucent bool // Sunlight is scattered and becomes normal light.
17334 Transparent bool // Sunlight isn't scattered.
17347 LiquidType LiquidType
17350 Viscosity uint8 // 0-7
17356 DrawBox, ColBox, SelBox NodeBox
17358 FootstepSnd, DiggingSnd, DugSnd SoundDef
17368 }))(obj)).SrcAlt))) > math.MaxUint16 {
17372 x := uint16(len(([]byte((*(*(struct {
17384 //mt:const uint8(6)
17386 OverlayTiles [6]TileDef
17387 //mt:const uint8(6)
17388 SpecialTiles [6]TileDef
17395 ConnectTo []Content
17396 InsideTint color.NRGBA
17397 Level uint8 // Must be < 128.
17399 Translucent bool // Sunlight is scattered and becomes normal light.
17400 Transparent bool // Sunlight isn't scattered.
17413 LiquidType LiquidType
17416 Viscosity uint8 // 0-7
17422 DrawBox, ColBox, SelBox NodeBox
17424 FootstepSnd, DiggingSnd, DugSnd SoundDef
17434 }))(obj)).SrcAlt))))
17435 write16(w, uint16(x))
17438 _, err := w.Write(([]byte((*(*(struct {
17450 //mt:const uint8(6)
17452 OverlayTiles [6]TileDef
17453 //mt:const uint8(6)
17454 SpecialTiles [6]TileDef
17461 ConnectTo []Content
17462 InsideTint color.NRGBA
17463 Level uint8 // Must be < 128.
17465 Translucent bool // Sunlight is scattered and becomes normal light.
17466 Transparent bool // Sunlight isn't scattered.
17479 LiquidType LiquidType
17482 Viscosity uint8 // 0-7
17488 DrawBox, ColBox, SelBox NodeBox
17490 FootstepSnd, DiggingSnd, DugSnd SoundDef
17500 }))(obj)).SrcAlt))[:])
17516 //mt:const uint8(6)
17518 OverlayTiles [6]TileDef
17519 //mt:const uint8(6)
17520 SpecialTiles [6]TileDef
17527 ConnectTo []Content
17528 InsideTint color.NRGBA
17529 Level uint8 // Must be < 128.
17531 Translucent bool // Sunlight is scattered and becomes normal light.
17532 Transparent bool // Sunlight isn't scattered.
17545 LiquidType LiquidType
17548 Viscosity uint8 // 0-7
17554 DrawBox, ColBox, SelBox NodeBox
17556 FootstepSnd, DiggingSnd, DugSnd SoundDef
17566 }))(obj)).Viscosity
17567 write8(w, uint8(x))
17582 //mt:const uint8(6)
17584 OverlayTiles [6]TileDef
17585 //mt:const uint8(6)
17586 SpecialTiles [6]TileDef
17593 ConnectTo []Content
17594 InsideTint color.NRGBA
17595 Level uint8 // Must be < 128.
17597 Translucent bool // Sunlight is scattered and becomes normal light.
17598 Transparent bool // Sunlight isn't scattered.
17611 LiquidType LiquidType
17614 Viscosity uint8 // 0-7
17620 DrawBox, ColBox, SelBox NodeBox
17622 FootstepSnd, DiggingSnd, DugSnd SoundDef
17632 }))(obj)).LiqRenewable
17652 //mt:const uint8(6)
17654 OverlayTiles [6]TileDef
17655 //mt:const uint8(6)
17656 SpecialTiles [6]TileDef
17663 ConnectTo []Content
17664 InsideTint color.NRGBA
17665 Level uint8 // Must be < 128.
17667 Translucent bool // Sunlight is scattered and becomes normal light.
17668 Transparent bool // Sunlight isn't scattered.
17681 LiquidType LiquidType
17684 Viscosity uint8 // 0-7
17690 DrawBox, ColBox, SelBox NodeBox
17692 FootstepSnd, DiggingSnd, DugSnd SoundDef
17702 }))(obj)).FlowRange
17703 write8(w, uint8(x))
17718 //mt:const uint8(6)
17720 OverlayTiles [6]TileDef
17721 //mt:const uint8(6)
17722 SpecialTiles [6]TileDef
17729 ConnectTo []Content
17730 InsideTint color.NRGBA
17731 Level uint8 // Must be < 128.
17733 Translucent bool // Sunlight is scattered and becomes normal light.
17734 Transparent bool // Sunlight isn't scattered.
17747 LiquidType LiquidType
17750 Viscosity uint8 // 0-7
17756 DrawBox, ColBox, SelBox NodeBox
17758 FootstepSnd, DiggingSnd, DugSnd SoundDef
17769 write8(w, uint8(x))
17784 //mt:const uint8(6)
17786 OverlayTiles [6]TileDef
17787 //mt:const uint8(6)
17788 SpecialTiles [6]TileDef
17795 ConnectTo []Content
17796 InsideTint color.NRGBA
17797 Level uint8 // Must be < 128.
17799 Translucent bool // Sunlight is scattered and becomes normal light.
17800 Transparent bool // Sunlight isn't scattered.
17813 LiquidType LiquidType
17816 Viscosity uint8 // 0-7
17822 DrawBox, ColBox, SelBox NodeBox
17824 FootstepSnd, DiggingSnd, DugSnd SoundDef
17834 }))(obj)).Floodable
17841 if err := pcall(func() {
17854 //mt:const uint8(6)
17856 OverlayTiles [6]TileDef
17857 //mt:const uint8(6)
17858 SpecialTiles [6]TileDef
17865 ConnectTo []Content
17866 InsideTint color.NRGBA
17867 Level uint8 // Must be < 128.
17869 Translucent bool // Sunlight is scattered and becomes normal light.
17870 Transparent bool // Sunlight isn't scattered.
17883 LiquidType LiquidType
17886 Viscosity uint8 // 0-7
17892 DrawBox, ColBox, SelBox NodeBox
17894 FootstepSnd, DiggingSnd, DugSnd SoundDef
17904 }))(obj)).DrawBox).serialize(w)
17909 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
17911 if err := pcall(func() {
17924 //mt:const uint8(6)
17926 OverlayTiles [6]TileDef
17927 //mt:const uint8(6)
17928 SpecialTiles [6]TileDef
17935 ConnectTo []Content
17936 InsideTint color.NRGBA
17937 Level uint8 // Must be < 128.
17939 Translucent bool // Sunlight is scattered and becomes normal light.
17940 Transparent bool // Sunlight isn't scattered.
17953 LiquidType LiquidType
17956 Viscosity uint8 // 0-7
17962 DrawBox, ColBox, SelBox NodeBox
17964 FootstepSnd, DiggingSnd, DugSnd SoundDef
17974 }))(obj)).ColBox).serialize(w)
17979 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
17981 if err := pcall(func() {
17994 //mt:const uint8(6)
17996 OverlayTiles [6]TileDef
17997 //mt:const uint8(6)
17998 SpecialTiles [6]TileDef
18005 ConnectTo []Content
18006 InsideTint color.NRGBA
18007 Level uint8 // Must be < 128.
18009 Translucent bool // Sunlight is scattered and becomes normal light.
18010 Transparent bool // Sunlight isn't scattered.
18023 LiquidType LiquidType
18026 Viscosity uint8 // 0-7
18032 DrawBox, ColBox, SelBox NodeBox
18034 FootstepSnd, DiggingSnd, DugSnd SoundDef
18044 }))(obj)).SelBox).serialize(w)
18049 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18051 if err := pcall(func() {
18064 //mt:const uint8(6)
18066 OverlayTiles [6]TileDef
18067 //mt:const uint8(6)
18068 SpecialTiles [6]TileDef
18075 ConnectTo []Content
18076 InsideTint color.NRGBA
18077 Level uint8 // Must be < 128.
18079 Translucent bool // Sunlight is scattered and becomes normal light.
18080 Transparent bool // Sunlight isn't scattered.
18093 LiquidType LiquidType
18096 Viscosity uint8 // 0-7
18102 DrawBox, ColBox, SelBox NodeBox
18104 FootstepSnd, DiggingSnd, DugSnd SoundDef
18114 }))(obj)).FootstepSnd).serialize(w)
18119 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18121 if err := pcall(func() {
18134 //mt:const uint8(6)
18136 OverlayTiles [6]TileDef
18137 //mt:const uint8(6)
18138 SpecialTiles [6]TileDef
18145 ConnectTo []Content
18146 InsideTint color.NRGBA
18147 Level uint8 // Must be < 128.
18149 Translucent bool // Sunlight is scattered and becomes normal light.
18150 Transparent bool // Sunlight isn't scattered.
18163 LiquidType LiquidType
18166 Viscosity uint8 // 0-7
18172 DrawBox, ColBox, SelBox NodeBox
18174 FootstepSnd, DiggingSnd, DugSnd SoundDef
18184 }))(obj)).DiggingSnd).serialize(w)
18189 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18191 if err := pcall(func() {
18204 //mt:const uint8(6)
18206 OverlayTiles [6]TileDef
18207 //mt:const uint8(6)
18208 SpecialTiles [6]TileDef
18215 ConnectTo []Content
18216 InsideTint color.NRGBA
18217 Level uint8 // Must be < 128.
18219 Translucent bool // Sunlight is scattered and becomes normal light.
18220 Transparent bool // Sunlight isn't scattered.
18233 LiquidType LiquidType
18236 Viscosity uint8 // 0-7
18242 DrawBox, ColBox, SelBox NodeBox
18244 FootstepSnd, DiggingSnd, DugSnd SoundDef
18254 }))(obj)).DugSnd).serialize(w)
18259 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18274 //mt:const uint8(6)
18276 OverlayTiles [6]TileDef
18277 //mt:const uint8(6)
18278 SpecialTiles [6]TileDef
18285 ConnectTo []Content
18286 InsideTint color.NRGBA
18287 Level uint8 // Must be < 128.
18289 Translucent bool // Sunlight is scattered and becomes normal light.
18290 Transparent bool // Sunlight isn't scattered.
18303 LiquidType LiquidType
18306 Viscosity uint8 // 0-7
18312 DrawBox, ColBox, SelBox NodeBox
18314 FootstepSnd, DiggingSnd, DugSnd SoundDef
18324 }))(obj)).LegacyFaceDir
18344 //mt:const uint8(6)
18346 OverlayTiles [6]TileDef
18347 //mt:const uint8(6)
18348 SpecialTiles [6]TileDef
18355 ConnectTo []Content
18356 InsideTint color.NRGBA
18357 Level uint8 // Must be < 128.
18359 Translucent bool // Sunlight is scattered and becomes normal light.
18360 Transparent bool // Sunlight isn't scattered.
18373 LiquidType LiquidType
18376 Viscosity uint8 // 0-7
18382 DrawBox, ColBox, SelBox NodeBox
18384 FootstepSnd, DiggingSnd, DugSnd SoundDef
18394 }))(obj)).LegacyMounted
18401 if len(([]byte((*(*(struct {
18413 //mt:const uint8(6)
18415 OverlayTiles [6]TileDef
18416 //mt:const uint8(6)
18417 SpecialTiles [6]TileDef
18424 ConnectTo []Content
18425 InsideTint color.NRGBA
18426 Level uint8 // Must be < 128.
18428 Translucent bool // Sunlight is scattered and becomes normal light.
18429 Transparent bool // Sunlight isn't scattered.
18442 LiquidType LiquidType
18445 Viscosity uint8 // 0-7
18451 DrawBox, ColBox, SelBox NodeBox
18453 FootstepSnd, DiggingSnd, DugSnd SoundDef
18463 }))(obj)).DigPredict))) > math.MaxUint16 {
18467 x := uint16(len(([]byte((*(*(struct {
18479 //mt:const uint8(6)
18481 OverlayTiles [6]TileDef
18482 //mt:const uint8(6)
18483 SpecialTiles [6]TileDef
18490 ConnectTo []Content
18491 InsideTint color.NRGBA
18492 Level uint8 // Must be < 128.
18494 Translucent bool // Sunlight is scattered and becomes normal light.
18495 Transparent bool // Sunlight isn't scattered.
18508 LiquidType LiquidType
18511 Viscosity uint8 // 0-7
18517 DrawBox, ColBox, SelBox NodeBox
18519 FootstepSnd, DiggingSnd, DugSnd SoundDef
18529 }))(obj)).DigPredict))))
18530 write16(w, uint16(x))
18533 _, err := w.Write(([]byte((*(*(struct {
18545 //mt:const uint8(6)
18547 OverlayTiles [6]TileDef
18548 //mt:const uint8(6)
18549 SpecialTiles [6]TileDef
18556 ConnectTo []Content
18557 InsideTint color.NRGBA
18558 Level uint8 // Must be < 128.
18560 Translucent bool // Sunlight is scattered and becomes normal light.
18561 Transparent bool // Sunlight isn't scattered.
18574 LiquidType LiquidType
18577 Viscosity uint8 // 0-7
18583 DrawBox, ColBox, SelBox NodeBox
18585 FootstepSnd, DiggingSnd, DugSnd SoundDef
18595 }))(obj)).DigPredict))[:])
18611 //mt:const uint8(6)
18613 OverlayTiles [6]TileDef
18614 //mt:const uint8(6)
18615 SpecialTiles [6]TileDef
18622 ConnectTo []Content
18623 InsideTint color.NRGBA
18624 Level uint8 // Must be < 128.
18626 Translucent bool // Sunlight is scattered and becomes normal light.
18627 Transparent bool // Sunlight isn't scattered.
18640 LiquidType LiquidType
18643 Viscosity uint8 // 0-7
18649 DrawBox, ColBox, SelBox NodeBox
18651 FootstepSnd, DiggingSnd, DugSnd SoundDef
18662 write8(w, uint8(x))
18664 if err := pcall(func() {
18677 //mt:const uint8(6)
18679 OverlayTiles [6]TileDef
18680 //mt:const uint8(6)
18681 SpecialTiles [6]TileDef
18688 ConnectTo []Content
18689 InsideTint color.NRGBA
18690 Level uint8 // Must be < 128.
18692 Translucent bool // Sunlight is scattered and becomes normal light.
18693 Transparent bool // Sunlight isn't scattered.
18706 LiquidType LiquidType
18709 Viscosity uint8 // 0-7
18715 DrawBox, ColBox, SelBox NodeBox
18717 FootstepSnd, DiggingSnd, DugSnd SoundDef
18727 }))(obj)).AlphaUse).serialize(w)
18732 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
18737 if len((buf.Bytes())) > math.MaxUint16 {
18741 x := uint16(len((buf.Bytes())))
18742 write16(w, uint16(x))
18745 _, err := w.Write((buf.Bytes())[:])
18752 func (obj *NodeDef) deserialize(r io.Reader) {
18753 if err := pcall(func() {
18766 //mt:const uint8(6)
18768 OverlayTiles [6]TileDef
18769 //mt:const uint8(6)
18770 SpecialTiles [6]TileDef
18777 ConnectTo []Content
18778 InsideTint color.NRGBA
18779 Level uint8 // Must be < 128.
18781 Translucent bool // Sunlight is scattered and becomes normal light.
18782 Transparent bool // Sunlight isn't scattered.
18795 LiquidType LiquidType
18798 Viscosity uint8 // 0-7
18804 DrawBox, ColBox, SelBox NodeBox
18806 FootstepSnd, DiggingSnd, DugSnd SoundDef
18816 }))(obj)).Param0).deserialize(r)
18821 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
18829 r := &io.LimitedReader{R: r, N: int64(n)}
18832 local247 := uint8(13)
18837 if local246 != local247 {
18838 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
18841 var local248 []uint8
18842 var local249 uint16
18847 (local248) = make([]uint8, local249)
18849 _, err := io.ReadFull(r, (local248)[:])
18864 //mt:const uint8(6)
18866 OverlayTiles [6]TileDef
18867 //mt:const uint8(6)
18868 SpecialTiles [6]TileDef
18875 ConnectTo []Content
18876 InsideTint color.NRGBA
18877 Level uint8 // Must be < 128.
18879 Translucent bool // Sunlight is scattered and becomes normal light.
18880 Transparent bool // Sunlight isn't scattered.
18893 LiquidType LiquidType
18896 Viscosity uint8 // 0-7
18902 DrawBox, ColBox, SelBox NodeBox
18904 FootstepSnd, DiggingSnd, DugSnd SoundDef
18914 }))(obj)).Name) = string(local248)
18915 var local250 uint16
18932 //mt:const uint8(6)
18934 OverlayTiles [6]TileDef
18935 //mt:const uint8(6)
18936 SpecialTiles [6]TileDef
18943 ConnectTo []Content
18944 InsideTint color.NRGBA
18945 Level uint8 // Must be < 128.
18947 Translucent bool // Sunlight is scattered and becomes normal light.
18948 Transparent bool // Sunlight isn't scattered.
18961 LiquidType LiquidType
18964 Viscosity uint8 // 0-7
18970 DrawBox, ColBox, SelBox NodeBox
18972 FootstepSnd, DiggingSnd, DugSnd SoundDef
18982 }))(obj)).Groups) = make([]Group, local250)
18983 for local251 := range (*(*(struct {
18995 //mt:const uint8(6)
18997 OverlayTiles [6]TileDef
18998 //mt:const uint8(6)
18999 SpecialTiles [6]TileDef
19006 ConnectTo []Content
19007 InsideTint color.NRGBA
19008 Level uint8 // Must be < 128.
19010 Translucent bool // Sunlight is scattered and becomes normal light.
19011 Transparent bool // Sunlight isn't scattered.
19024 LiquidType LiquidType
19027 Viscosity uint8 // 0-7
19033 DrawBox, ColBox, SelBox NodeBox
19035 FootstepSnd, DiggingSnd, DugSnd SoundDef
19046 if err := pcall(func() {
19059 //mt:const uint8(6)
19061 OverlayTiles [6]TileDef
19062 //mt:const uint8(6)
19063 SpecialTiles [6]TileDef
19070 ConnectTo []Content
19071 InsideTint color.NRGBA
19072 Level uint8 // Must be < 128.
19074 Translucent bool // Sunlight is scattered and becomes normal light.
19075 Transparent bool // Sunlight isn't scattered.
19088 LiquidType LiquidType
19091 Viscosity uint8 // 0-7
19097 DrawBox, ColBox, SelBox NodeBox
19099 FootstepSnd, DiggingSnd, DugSnd SoundDef
19109 }))(obj)).Groups)[local251]).deserialize(r)
19114 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
19117 if err := pcall(func() {
19130 //mt:const uint8(6)
19132 OverlayTiles [6]TileDef
19133 //mt:const uint8(6)
19134 SpecialTiles [6]TileDef
19141 ConnectTo []Content
19142 InsideTint color.NRGBA
19143 Level uint8 // Must be < 128.
19145 Translucent bool // Sunlight is scattered and becomes normal light.
19146 Transparent bool // Sunlight isn't scattered.
19159 LiquidType LiquidType
19162 Viscosity uint8 // 0-7
19168 DrawBox, ColBox, SelBox NodeBox
19170 FootstepSnd, DiggingSnd, DugSnd SoundDef
19180 }))(obj)).P1Type).deserialize(r)
19185 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
19187 if err := pcall(func() {
19200 //mt:const uint8(6)
19202 OverlayTiles [6]TileDef
19203 //mt:const uint8(6)
19204 SpecialTiles [6]TileDef
19211 ConnectTo []Content
19212 InsideTint color.NRGBA
19213 Level uint8 // Must be < 128.
19215 Translucent bool // Sunlight is scattered and becomes normal light.
19216 Transparent bool // Sunlight isn't scattered.
19229 LiquidType LiquidType
19232 Viscosity uint8 // 0-7
19238 DrawBox, ColBox, SelBox NodeBox
19240 FootstepSnd, DiggingSnd, DugSnd SoundDef
19250 }))(obj)).P2Type).deserialize(r)
19255 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
19257 if err := pcall(func() {
19270 //mt:const uint8(6)
19272 OverlayTiles [6]TileDef
19273 //mt:const uint8(6)
19274 SpecialTiles [6]TileDef
19281 ConnectTo []Content
19282 InsideTint color.NRGBA
19283 Level uint8 // Must be < 128.
19285 Translucent bool // Sunlight is scattered and becomes normal light.
19286 Transparent bool // Sunlight isn't scattered.
19299 LiquidType LiquidType
19302 Viscosity uint8 // 0-7
19308 DrawBox, ColBox, SelBox NodeBox
19310 FootstepSnd, DiggingSnd, DugSnd SoundDef
19320 }))(obj)).DrawType).deserialize(r)
19325 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
19327 var local252 []uint8
19328 var local253 uint16
19333 (local252) = make([]uint8, local253)
19335 _, err := io.ReadFull(r, (local252)[:])
19350 //mt:const uint8(6)
19352 OverlayTiles [6]TileDef
19353 //mt:const uint8(6)
19354 SpecialTiles [6]TileDef
19361 ConnectTo []Content
19362 InsideTint color.NRGBA
19363 Level uint8 // Must be < 128.
19365 Translucent bool // Sunlight is scattered and becomes normal light.
19366 Transparent bool // Sunlight isn't scattered.
19379 LiquidType LiquidType
19382 Viscosity uint8 // 0-7
19388 DrawBox, ColBox, SelBox NodeBox
19390 FootstepSnd, DiggingSnd, DugSnd SoundDef
19400 }))(obj)).Mesh) = string(local252)
19402 p := &(*(*(struct {
19414 //mt:const uint8(6)
19416 OverlayTiles [6]TileDef
19417 //mt:const uint8(6)
19418 SpecialTiles [6]TileDef
19425 ConnectTo []Content
19426 InsideTint color.NRGBA
19427 Level uint8 // Must be < 128.
19429 Translucent bool // Sunlight is scattered and becomes normal light.
19430 Transparent bool // Sunlight isn't scattered.
19443 LiquidType LiquidType
19446 Viscosity uint8 // 0-7
19452 DrawBox, ColBox, SelBox NodeBox
19454 FootstepSnd, DiggingSnd, DugSnd SoundDef
19465 *p = math.Float32frombits(read32(r))
19469 local255 := uint8(6)
19474 if local254 != local255 {
19475 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19478 for local256 := range (*(*(struct {
19490 //mt:const uint8(6)
19492 OverlayTiles [6]TileDef
19493 //mt:const uint8(6)
19494 SpecialTiles [6]TileDef
19501 ConnectTo []Content
19502 InsideTint color.NRGBA
19503 Level uint8 // Must be < 128.
19505 Translucent bool // Sunlight is scattered and becomes normal light.
19506 Transparent bool // Sunlight isn't scattered.
19519 LiquidType LiquidType
19522 Viscosity uint8 // 0-7
19528 DrawBox, ColBox, SelBox NodeBox
19530 FootstepSnd, DiggingSnd, DugSnd SoundDef
19541 if err := pcall(func() {
19554 //mt:const uint8(6)
19556 OverlayTiles [6]TileDef
19557 //mt:const uint8(6)
19558 SpecialTiles [6]TileDef
19565 ConnectTo []Content
19566 InsideTint color.NRGBA
19567 Level uint8 // Must be < 128.
19569 Translucent bool // Sunlight is scattered and becomes normal light.
19570 Transparent bool // Sunlight isn't scattered.
19583 LiquidType LiquidType
19586 Viscosity uint8 // 0-7
19592 DrawBox, ColBox, SelBox NodeBox
19594 FootstepSnd, DiggingSnd, DugSnd SoundDef
19604 }))(obj)).Tiles)[local256]).deserialize(r)
19609 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
19612 for local257 := range (*(*(struct {
19624 //mt:const uint8(6)
19626 OverlayTiles [6]TileDef
19627 //mt:const uint8(6)
19628 SpecialTiles [6]TileDef
19635 ConnectTo []Content
19636 InsideTint color.NRGBA
19637 Level uint8 // Must be < 128.
19639 Translucent bool // Sunlight is scattered and becomes normal light.
19640 Transparent bool // Sunlight isn't scattered.
19653 LiquidType LiquidType
19656 Viscosity uint8 // 0-7
19662 DrawBox, ColBox, SelBox NodeBox
19664 FootstepSnd, DiggingSnd, DugSnd SoundDef
19674 }))(obj)).OverlayTiles {
19675 if err := pcall(func() {
19688 //mt:const uint8(6)
19690 OverlayTiles [6]TileDef
19691 //mt:const uint8(6)
19692 SpecialTiles [6]TileDef
19699 ConnectTo []Content
19700 InsideTint color.NRGBA
19701 Level uint8 // Must be < 128.
19703 Translucent bool // Sunlight is scattered and becomes normal light.
19704 Transparent bool // Sunlight isn't scattered.
19717 LiquidType LiquidType
19720 Viscosity uint8 // 0-7
19726 DrawBox, ColBox, SelBox NodeBox
19728 FootstepSnd, DiggingSnd, DugSnd SoundDef
19738 }))(obj)).OverlayTiles)[local257]).deserialize(r)
19743 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
19748 local259 := uint8(6)
19753 if local258 != local259 {
19754 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
19757 for local260 := range (*(*(struct {
19769 //mt:const uint8(6)
19771 OverlayTiles [6]TileDef
19772 //mt:const uint8(6)
19773 SpecialTiles [6]TileDef
19780 ConnectTo []Content
19781 InsideTint color.NRGBA
19782 Level uint8 // Must be < 128.
19784 Translucent bool // Sunlight is scattered and becomes normal light.
19785 Transparent bool // Sunlight isn't scattered.
19798 LiquidType LiquidType
19801 Viscosity uint8 // 0-7
19807 DrawBox, ColBox, SelBox NodeBox
19809 FootstepSnd, DiggingSnd, DugSnd SoundDef
19819 }))(obj)).SpecialTiles {
19820 if err := pcall(func() {
19833 //mt:const uint8(6)
19835 OverlayTiles [6]TileDef
19836 //mt:const uint8(6)
19837 SpecialTiles [6]TileDef
19844 ConnectTo []Content
19845 InsideTint color.NRGBA
19846 Level uint8 // Must be < 128.
19848 Translucent bool // Sunlight is scattered and becomes normal light.
19849 Transparent bool // Sunlight isn't scattered.
19862 LiquidType LiquidType
19865 Viscosity uint8 // 0-7
19871 DrawBox, ColBox, SelBox NodeBox
19873 FootstepSnd, DiggingSnd, DugSnd SoundDef
19883 }))(obj)).SpecialTiles)[local260]).deserialize(r)
19888 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
19892 p := &(*(*(struct {
19904 //mt:const uint8(6)
19906 OverlayTiles [6]TileDef
19907 //mt:const uint8(6)
19908 SpecialTiles [6]TileDef
19915 ConnectTo []Content
19916 InsideTint color.NRGBA
19917 Level uint8 // Must be < 128.
19919 Translucent bool // Sunlight is scattered and becomes normal light.
19920 Transparent bool // Sunlight isn't scattered.
19933 LiquidType LiquidType
19936 Viscosity uint8 // 0-7
19942 DrawBox, ColBox, SelBox NodeBox
19944 FootstepSnd, DiggingSnd, DugSnd SoundDef
19955 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19957 if err := pcall(func() {
19970 //mt:const uint8(6)
19972 OverlayTiles [6]TileDef
19973 //mt:const uint8(6)
19974 SpecialTiles [6]TileDef
19981 ConnectTo []Content
19982 InsideTint color.NRGBA
19983 Level uint8 // Must be < 128.
19985 Translucent bool // Sunlight is scattered and becomes normal light.
19986 Transparent bool // Sunlight isn't scattered.
19999 LiquidType LiquidType
20002 Viscosity uint8 // 0-7
20008 DrawBox, ColBox, SelBox NodeBox
20010 FootstepSnd, DiggingSnd, DugSnd SoundDef
20020 }))(obj)).Palette).deserialize(r)
20025 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
20027 if err := pcall(func() {
20040 //mt:const uint8(6)
20042 OverlayTiles [6]TileDef
20043 //mt:const uint8(6)
20044 SpecialTiles [6]TileDef
20051 ConnectTo []Content
20052 InsideTint color.NRGBA
20053 Level uint8 // Must be < 128.
20055 Translucent bool // Sunlight is scattered and becomes normal light.
20056 Transparent bool // Sunlight isn't scattered.
20069 LiquidType LiquidType
20072 Viscosity uint8 // 0-7
20078 DrawBox, ColBox, SelBox NodeBox
20080 FootstepSnd, DiggingSnd, DugSnd SoundDef
20090 }))(obj)).Waving).deserialize(r)
20095 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
20098 p := &(*(*(struct {
20110 //mt:const uint8(6)
20112 OverlayTiles [6]TileDef
20113 //mt:const uint8(6)
20114 SpecialTiles [6]TileDef
20121 ConnectTo []Content
20122 InsideTint color.NRGBA
20123 Level uint8 // Must be < 128.
20125 Translucent bool // Sunlight is scattered and becomes normal light.
20126 Transparent bool // Sunlight isn't scattered.
20139 LiquidType LiquidType
20142 Viscosity uint8 // 0-7
20148 DrawBox, ColBox, SelBox NodeBox
20150 FootstepSnd, DiggingSnd, DugSnd SoundDef
20160 }))(obj)).ConnectSides
20163 var local261 uint16
20180 //mt:const uint8(6)
20182 OverlayTiles [6]TileDef
20183 //mt:const uint8(6)
20184 SpecialTiles [6]TileDef
20191 ConnectTo []Content
20192 InsideTint color.NRGBA
20193 Level uint8 // Must be < 128.
20195 Translucent bool // Sunlight is scattered and becomes normal light.
20196 Transparent bool // Sunlight isn't scattered.
20209 LiquidType LiquidType
20212 Viscosity uint8 // 0-7
20218 DrawBox, ColBox, SelBox NodeBox
20220 FootstepSnd, DiggingSnd, DugSnd SoundDef
20230 }))(obj)).ConnectTo) = make([]Content, local261)
20231 for local262 := range (*(*(struct {
20243 //mt:const uint8(6)
20245 OverlayTiles [6]TileDef
20246 //mt:const uint8(6)
20247 SpecialTiles [6]TileDef
20254 ConnectTo []Content
20255 InsideTint color.NRGBA
20256 Level uint8 // Must be < 128.
20258 Translucent bool // Sunlight is scattered and becomes normal light.
20259 Transparent bool // Sunlight isn't scattered.
20272 LiquidType LiquidType
20275 Viscosity uint8 // 0-7
20281 DrawBox, ColBox, SelBox NodeBox
20283 FootstepSnd, DiggingSnd, DugSnd SoundDef
20293 }))(obj)).ConnectTo {
20294 if err := pcall(func() {
20307 //mt:const uint8(6)
20309 OverlayTiles [6]TileDef
20310 //mt:const uint8(6)
20311 SpecialTiles [6]TileDef
20318 ConnectTo []Content
20319 InsideTint color.NRGBA
20320 Level uint8 // Must be < 128.
20322 Translucent bool // Sunlight is scattered and becomes normal light.
20323 Transparent bool // Sunlight isn't scattered.
20336 LiquidType LiquidType
20339 Viscosity uint8 // 0-7
20345 DrawBox, ColBox, SelBox NodeBox
20347 FootstepSnd, DiggingSnd, DugSnd SoundDef
20357 }))(obj)).ConnectTo)[local262]).deserialize(r)
20362 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
20366 p := &(*(*(struct {
20378 //mt:const uint8(6)
20380 OverlayTiles [6]TileDef
20381 //mt:const uint8(6)
20382 SpecialTiles [6]TileDef
20389 ConnectTo []Content
20390 InsideTint color.NRGBA
20391 Level uint8 // Must be < 128.
20393 Translucent bool // Sunlight is scattered and becomes normal light.
20394 Transparent bool // Sunlight isn't scattered.
20407 LiquidType LiquidType
20410 Viscosity uint8 // 0-7
20416 DrawBox, ColBox, SelBox NodeBox
20418 FootstepSnd, DiggingSnd, DugSnd SoundDef
20428 }))(obj)).InsideTint
20429 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20432 p := &(*(*(struct {
20444 //mt:const uint8(6)
20446 OverlayTiles [6]TileDef
20447 //mt:const uint8(6)
20448 SpecialTiles [6]TileDef
20455 ConnectTo []Content
20456 InsideTint color.NRGBA
20457 Level uint8 // Must be < 128.
20459 Translucent bool // Sunlight is scattered and becomes normal light.
20460 Transparent bool // Sunlight isn't scattered.
20473 LiquidType LiquidType
20476 Viscosity uint8 // 0-7
20482 DrawBox, ColBox, SelBox NodeBox
20484 FootstepSnd, DiggingSnd, DugSnd SoundDef
20498 p := &(*(*(struct {
20510 //mt:const uint8(6)
20512 OverlayTiles [6]TileDef
20513 //mt:const uint8(6)
20514 SpecialTiles [6]TileDef
20521 ConnectTo []Content
20522 InsideTint color.NRGBA
20523 Level uint8 // Must be < 128.
20525 Translucent bool // Sunlight is scattered and becomes normal light.
20526 Transparent bool // Sunlight isn't scattered.
20539 LiquidType LiquidType
20542 Viscosity uint8 // 0-7
20548 DrawBox, ColBox, SelBox NodeBox
20550 FootstepSnd, DiggingSnd, DugSnd SoundDef
20560 }))(obj)).Translucent
20561 switch n := read8(r); n {
20567 chk(fmt.Errorf("invalid bool: %d", n))
20571 p := &(*(*(struct {
20583 //mt:const uint8(6)
20585 OverlayTiles [6]TileDef
20586 //mt:const uint8(6)
20587 SpecialTiles [6]TileDef
20594 ConnectTo []Content
20595 InsideTint color.NRGBA
20596 Level uint8 // Must be < 128.
20598 Translucent bool // Sunlight is scattered and becomes normal light.
20599 Transparent bool // Sunlight isn't scattered.
20612 LiquidType LiquidType
20615 Viscosity uint8 // 0-7
20621 DrawBox, ColBox, SelBox NodeBox
20623 FootstepSnd, DiggingSnd, DugSnd SoundDef
20633 }))(obj)).Transparent
20634 switch n := read8(r); n {
20640 chk(fmt.Errorf("invalid bool: %d", n))
20644 p := &(*(*(struct {
20656 //mt:const uint8(6)
20658 OverlayTiles [6]TileDef
20659 //mt:const uint8(6)
20660 SpecialTiles [6]TileDef
20667 ConnectTo []Content
20668 InsideTint color.NRGBA
20669 Level uint8 // Must be < 128.
20671 Translucent bool // Sunlight is scattered and becomes normal light.
20672 Transparent bool // Sunlight isn't scattered.
20685 LiquidType LiquidType
20688 Viscosity uint8 // 0-7
20694 DrawBox, ColBox, SelBox NodeBox
20696 FootstepSnd, DiggingSnd, DugSnd SoundDef
20710 p := &(*(*(struct {
20722 //mt:const uint8(6)
20724 OverlayTiles [6]TileDef
20725 //mt:const uint8(6)
20726 SpecialTiles [6]TileDef
20733 ConnectTo []Content
20734 InsideTint color.NRGBA
20735 Level uint8 // Must be < 128.
20737 Translucent bool // Sunlight is scattered and becomes normal light.
20738 Transparent bool // Sunlight isn't scattered.
20751 LiquidType LiquidType
20754 Viscosity uint8 // 0-7
20760 DrawBox, ColBox, SelBox NodeBox
20762 FootstepSnd, DiggingSnd, DugSnd SoundDef
20772 }))(obj)).GndContent
20773 switch n := read8(r); n {
20779 chk(fmt.Errorf("invalid bool: %d", n))
20783 p := &(*(*(struct {
20795 //mt:const uint8(6)
20797 OverlayTiles [6]TileDef
20798 //mt:const uint8(6)
20799 SpecialTiles [6]TileDef
20806 ConnectTo []Content
20807 InsideTint color.NRGBA
20808 Level uint8 // Must be < 128.
20810 Translucent bool // Sunlight is scattered and becomes normal light.
20811 Transparent bool // Sunlight isn't scattered.
20824 LiquidType LiquidType
20827 Viscosity uint8 // 0-7
20833 DrawBox, ColBox, SelBox NodeBox
20835 FootstepSnd, DiggingSnd, DugSnd SoundDef
20846 switch n := read8(r); n {
20852 chk(fmt.Errorf("invalid bool: %d", n))
20856 p := &(*(*(struct {
20868 //mt:const uint8(6)
20870 OverlayTiles [6]TileDef
20871 //mt:const uint8(6)
20872 SpecialTiles [6]TileDef
20879 ConnectTo []Content
20880 InsideTint color.NRGBA
20881 Level uint8 // Must be < 128.
20883 Translucent bool // Sunlight is scattered and becomes normal light.
20884 Transparent bool // Sunlight isn't scattered.
20897 LiquidType LiquidType
20900 Viscosity uint8 // 0-7
20906 DrawBox, ColBox, SelBox NodeBox
20908 FootstepSnd, DiggingSnd, DugSnd SoundDef
20918 }))(obj)).Pointable
20919 switch n := read8(r); n {
20925 chk(fmt.Errorf("invalid bool: %d", n))
20929 p := &(*(*(struct {
20941 //mt:const uint8(6)
20943 OverlayTiles [6]TileDef
20944 //mt:const uint8(6)
20945 SpecialTiles [6]TileDef
20952 ConnectTo []Content
20953 InsideTint color.NRGBA
20954 Level uint8 // Must be < 128.
20956 Translucent bool // Sunlight is scattered and becomes normal light.
20957 Transparent bool // Sunlight isn't scattered.
20970 LiquidType LiquidType
20973 Viscosity uint8 // 0-7
20979 DrawBox, ColBox, SelBox NodeBox
20981 FootstepSnd, DiggingSnd, DugSnd SoundDef
20992 switch n := read8(r); n {
20998 chk(fmt.Errorf("invalid bool: %d", n))
21002 p := &(*(*(struct {
21014 //mt:const uint8(6)
21016 OverlayTiles [6]TileDef
21017 //mt:const uint8(6)
21018 SpecialTiles [6]TileDef
21025 ConnectTo []Content
21026 InsideTint color.NRGBA
21027 Level uint8 // Must be < 128.
21029 Translucent bool // Sunlight is scattered and becomes normal light.
21030 Transparent bool // Sunlight isn't scattered.
21043 LiquidType LiquidType
21046 Viscosity uint8 // 0-7
21052 DrawBox, ColBox, SelBox NodeBox
21054 FootstepSnd, DiggingSnd, DugSnd SoundDef
21064 }))(obj)).Climbable
21065 switch n := read8(r); n {
21071 chk(fmt.Errorf("invalid bool: %d", n))
21075 p := &(*(*(struct {
21087 //mt:const uint8(6)
21089 OverlayTiles [6]TileDef
21090 //mt:const uint8(6)
21091 SpecialTiles [6]TileDef
21098 ConnectTo []Content
21099 InsideTint color.NRGBA
21100 Level uint8 // Must be < 128.
21102 Translucent bool // Sunlight is scattered and becomes normal light.
21103 Transparent bool // Sunlight isn't scattered.
21116 LiquidType LiquidType
21119 Viscosity uint8 // 0-7
21125 DrawBox, ColBox, SelBox NodeBox
21127 FootstepSnd, DiggingSnd, DugSnd SoundDef
21137 }))(obj)).Replaceable
21138 switch n := read8(r); n {
21144 chk(fmt.Errorf("invalid bool: %d", n))
21148 p := &(*(*(struct {
21160 //mt:const uint8(6)
21162 OverlayTiles [6]TileDef
21163 //mt:const uint8(6)
21164 SpecialTiles [6]TileDef
21171 ConnectTo []Content
21172 InsideTint color.NRGBA
21173 Level uint8 // Must be < 128.
21175 Translucent bool // Sunlight is scattered and becomes normal light.
21176 Transparent bool // Sunlight isn't scattered.
21189 LiquidType LiquidType
21192 Viscosity uint8 // 0-7
21198 DrawBox, ColBox, SelBox NodeBox
21200 FootstepSnd, DiggingSnd, DugSnd SoundDef
21210 }))(obj)).OnRightClick
21211 switch n := read8(r); n {
21217 chk(fmt.Errorf("invalid bool: %d", n))
21221 p := &(*(*(struct {
21233 //mt:const uint8(6)
21235 OverlayTiles [6]TileDef
21236 //mt:const uint8(6)
21237 SpecialTiles [6]TileDef
21244 ConnectTo []Content
21245 InsideTint color.NRGBA
21246 Level uint8 // Must be < 128.
21248 Translucent bool // Sunlight is scattered and becomes normal light.
21249 Transparent bool // Sunlight isn't scattered.
21262 LiquidType LiquidType
21265 Viscosity uint8 // 0-7
21271 DrawBox, ColBox, SelBox NodeBox
21273 FootstepSnd, DiggingSnd, DugSnd SoundDef
21283 }))(obj)).DmgPerSec
21284 *p = int32(read32(r))
21286 if err := pcall(func() {
21299 //mt:const uint8(6)
21301 OverlayTiles [6]TileDef
21302 //mt:const uint8(6)
21303 SpecialTiles [6]TileDef
21310 ConnectTo []Content
21311 InsideTint color.NRGBA
21312 Level uint8 // Must be < 128.
21314 Translucent bool // Sunlight is scattered and becomes normal light.
21315 Transparent bool // Sunlight isn't scattered.
21328 LiquidType LiquidType
21331 Viscosity uint8 // 0-7
21337 DrawBox, ColBox, SelBox NodeBox
21339 FootstepSnd, DiggingSnd, DugSnd SoundDef
21349 }))(obj)).LiquidType).deserialize(r)
21354 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
21356 var local263 []uint8
21357 var local264 uint16
21362 (local263) = make([]uint8, local264)
21364 _, err := io.ReadFull(r, (local263)[:])
21379 //mt:const uint8(6)
21381 OverlayTiles [6]TileDef
21382 //mt:const uint8(6)
21383 SpecialTiles [6]TileDef
21390 ConnectTo []Content
21391 InsideTint color.NRGBA
21392 Level uint8 // Must be < 128.
21394 Translucent bool // Sunlight is scattered and becomes normal light.
21395 Transparent bool // Sunlight isn't scattered.
21408 LiquidType LiquidType
21411 Viscosity uint8 // 0-7
21417 DrawBox, ColBox, SelBox NodeBox
21419 FootstepSnd, DiggingSnd, DugSnd SoundDef
21429 }))(obj)).FlowingAlt) = string(local263)
21430 var local265 []uint8
21431 var local266 uint16
21436 (local265) = make([]uint8, local266)
21438 _, err := io.ReadFull(r, (local265)[:])
21453 //mt:const uint8(6)
21455 OverlayTiles [6]TileDef
21456 //mt:const uint8(6)
21457 SpecialTiles [6]TileDef
21464 ConnectTo []Content
21465 InsideTint color.NRGBA
21466 Level uint8 // Must be < 128.
21468 Translucent bool // Sunlight is scattered and becomes normal light.
21469 Transparent bool // Sunlight isn't scattered.
21482 LiquidType LiquidType
21485 Viscosity uint8 // 0-7
21491 DrawBox, ColBox, SelBox NodeBox
21493 FootstepSnd, DiggingSnd, DugSnd SoundDef
21503 }))(obj)).SrcAlt) = string(local265)
21505 p := &(*(*(struct {
21517 //mt:const uint8(6)
21519 OverlayTiles [6]TileDef
21520 //mt:const uint8(6)
21521 SpecialTiles [6]TileDef
21528 ConnectTo []Content
21529 InsideTint color.NRGBA
21530 Level uint8 // Must be < 128.
21532 Translucent bool // Sunlight is scattered and becomes normal light.
21533 Transparent bool // Sunlight isn't scattered.
21546 LiquidType LiquidType
21549 Viscosity uint8 // 0-7
21555 DrawBox, ColBox, SelBox NodeBox
21557 FootstepSnd, DiggingSnd, DugSnd SoundDef
21567 }))(obj)).Viscosity
21571 p := &(*(*(struct {
21583 //mt:const uint8(6)
21585 OverlayTiles [6]TileDef
21586 //mt:const uint8(6)
21587 SpecialTiles [6]TileDef
21594 ConnectTo []Content
21595 InsideTint color.NRGBA
21596 Level uint8 // Must be < 128.
21598 Translucent bool // Sunlight is scattered and becomes normal light.
21599 Transparent bool // Sunlight isn't scattered.
21612 LiquidType LiquidType
21615 Viscosity uint8 // 0-7
21621 DrawBox, ColBox, SelBox NodeBox
21623 FootstepSnd, DiggingSnd, DugSnd SoundDef
21633 }))(obj)).LiqRenewable
21634 switch n := read8(r); n {
21640 chk(fmt.Errorf("invalid bool: %d", n))
21644 p := &(*(*(struct {
21656 //mt:const uint8(6)
21658 OverlayTiles [6]TileDef
21659 //mt:const uint8(6)
21660 SpecialTiles [6]TileDef
21667 ConnectTo []Content
21668 InsideTint color.NRGBA
21669 Level uint8 // Must be < 128.
21671 Translucent bool // Sunlight is scattered and becomes normal light.
21672 Transparent bool // Sunlight isn't scattered.
21685 LiquidType LiquidType
21688 Viscosity uint8 // 0-7
21694 DrawBox, ColBox, SelBox NodeBox
21696 FootstepSnd, DiggingSnd, DugSnd SoundDef
21706 }))(obj)).FlowRange
21710 p := &(*(*(struct {
21722 //mt:const uint8(6)
21724 OverlayTiles [6]TileDef
21725 //mt:const uint8(6)
21726 SpecialTiles [6]TileDef
21733 ConnectTo []Content
21734 InsideTint color.NRGBA
21735 Level uint8 // Must be < 128.
21737 Translucent bool // Sunlight is scattered and becomes normal light.
21738 Transparent bool // Sunlight isn't scattered.
21751 LiquidType LiquidType
21754 Viscosity uint8 // 0-7
21760 DrawBox, ColBox, SelBox NodeBox
21762 FootstepSnd, DiggingSnd, DugSnd SoundDef
21776 p := &(*(*(struct {
21788 //mt:const uint8(6)
21790 OverlayTiles [6]TileDef
21791 //mt:const uint8(6)
21792 SpecialTiles [6]TileDef
21799 ConnectTo []Content
21800 InsideTint color.NRGBA
21801 Level uint8 // Must be < 128.
21803 Translucent bool // Sunlight is scattered and becomes normal light.
21804 Transparent bool // Sunlight isn't scattered.
21817 LiquidType LiquidType
21820 Viscosity uint8 // 0-7
21826 DrawBox, ColBox, SelBox NodeBox
21828 FootstepSnd, DiggingSnd, DugSnd SoundDef
21838 }))(obj)).Floodable
21839 switch n := read8(r); n {
21845 chk(fmt.Errorf("invalid bool: %d", n))
21848 if err := pcall(func() {
21861 //mt:const uint8(6)
21863 OverlayTiles [6]TileDef
21864 //mt:const uint8(6)
21865 SpecialTiles [6]TileDef
21872 ConnectTo []Content
21873 InsideTint color.NRGBA
21874 Level uint8 // Must be < 128.
21876 Translucent bool // Sunlight is scattered and becomes normal light.
21877 Transparent bool // Sunlight isn't scattered.
21890 LiquidType LiquidType
21893 Viscosity uint8 // 0-7
21899 DrawBox, ColBox, SelBox NodeBox
21901 FootstepSnd, DiggingSnd, DugSnd SoundDef
21911 }))(obj)).DrawBox).deserialize(r)
21916 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
21918 if err := pcall(func() {
21931 //mt:const uint8(6)
21933 OverlayTiles [6]TileDef
21934 //mt:const uint8(6)
21935 SpecialTiles [6]TileDef
21942 ConnectTo []Content
21943 InsideTint color.NRGBA
21944 Level uint8 // Must be < 128.
21946 Translucent bool // Sunlight is scattered and becomes normal light.
21947 Transparent bool // Sunlight isn't scattered.
21960 LiquidType LiquidType
21963 Viscosity uint8 // 0-7
21969 DrawBox, ColBox, SelBox NodeBox
21971 FootstepSnd, DiggingSnd, DugSnd SoundDef
21981 }))(obj)).ColBox).deserialize(r)
21986 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
21988 if err := pcall(func() {
22001 //mt:const uint8(6)
22003 OverlayTiles [6]TileDef
22004 //mt:const uint8(6)
22005 SpecialTiles [6]TileDef
22012 ConnectTo []Content
22013 InsideTint color.NRGBA
22014 Level uint8 // Must be < 128.
22016 Translucent bool // Sunlight is scattered and becomes normal light.
22017 Transparent bool // Sunlight isn't scattered.
22030 LiquidType LiquidType
22033 Viscosity uint8 // 0-7
22039 DrawBox, ColBox, SelBox NodeBox
22041 FootstepSnd, DiggingSnd, DugSnd SoundDef
22051 }))(obj)).SelBox).deserialize(r)
22056 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22058 if err := pcall(func() {
22071 //mt:const uint8(6)
22073 OverlayTiles [6]TileDef
22074 //mt:const uint8(6)
22075 SpecialTiles [6]TileDef
22082 ConnectTo []Content
22083 InsideTint color.NRGBA
22084 Level uint8 // Must be < 128.
22086 Translucent bool // Sunlight is scattered and becomes normal light.
22087 Transparent bool // Sunlight isn't scattered.
22100 LiquidType LiquidType
22103 Viscosity uint8 // 0-7
22109 DrawBox, ColBox, SelBox NodeBox
22111 FootstepSnd, DiggingSnd, DugSnd SoundDef
22121 }))(obj)).FootstepSnd).deserialize(r)
22126 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22128 if err := pcall(func() {
22141 //mt:const uint8(6)
22143 OverlayTiles [6]TileDef
22144 //mt:const uint8(6)
22145 SpecialTiles [6]TileDef
22152 ConnectTo []Content
22153 InsideTint color.NRGBA
22154 Level uint8 // Must be < 128.
22156 Translucent bool // Sunlight is scattered and becomes normal light.
22157 Transparent bool // Sunlight isn't scattered.
22170 LiquidType LiquidType
22173 Viscosity uint8 // 0-7
22179 DrawBox, ColBox, SelBox NodeBox
22181 FootstepSnd, DiggingSnd, DugSnd SoundDef
22191 }))(obj)).DiggingSnd).deserialize(r)
22196 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22198 if err := pcall(func() {
22211 //mt:const uint8(6)
22213 OverlayTiles [6]TileDef
22214 //mt:const uint8(6)
22215 SpecialTiles [6]TileDef
22222 ConnectTo []Content
22223 InsideTint color.NRGBA
22224 Level uint8 // Must be < 128.
22226 Translucent bool // Sunlight is scattered and becomes normal light.
22227 Transparent bool // Sunlight isn't scattered.
22240 LiquidType LiquidType
22243 Viscosity uint8 // 0-7
22249 DrawBox, ColBox, SelBox NodeBox
22251 FootstepSnd, DiggingSnd, DugSnd SoundDef
22261 }))(obj)).DugSnd).deserialize(r)
22266 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22269 p := &(*(*(struct {
22281 //mt:const uint8(6)
22283 OverlayTiles [6]TileDef
22284 //mt:const uint8(6)
22285 SpecialTiles [6]TileDef
22292 ConnectTo []Content
22293 InsideTint color.NRGBA
22294 Level uint8 // Must be < 128.
22296 Translucent bool // Sunlight is scattered and becomes normal light.
22297 Transparent bool // Sunlight isn't scattered.
22310 LiquidType LiquidType
22313 Viscosity uint8 // 0-7
22319 DrawBox, ColBox, SelBox NodeBox
22321 FootstepSnd, DiggingSnd, DugSnd SoundDef
22331 }))(obj)).LegacyFaceDir
22332 switch n := read8(r); n {
22338 chk(fmt.Errorf("invalid bool: %d", n))
22342 p := &(*(*(struct {
22354 //mt:const uint8(6)
22356 OverlayTiles [6]TileDef
22357 //mt:const uint8(6)
22358 SpecialTiles [6]TileDef
22365 ConnectTo []Content
22366 InsideTint color.NRGBA
22367 Level uint8 // Must be < 128.
22369 Translucent bool // Sunlight is scattered and becomes normal light.
22370 Transparent bool // Sunlight isn't scattered.
22383 LiquidType LiquidType
22386 Viscosity uint8 // 0-7
22392 DrawBox, ColBox, SelBox NodeBox
22394 FootstepSnd, DiggingSnd, DugSnd SoundDef
22404 }))(obj)).LegacyMounted
22405 switch n := read8(r); n {
22411 chk(fmt.Errorf("invalid bool: %d", n))
22414 var local267 []uint8
22415 var local268 uint16
22420 (local267) = make([]uint8, local268)
22422 _, err := io.ReadFull(r, (local267)[:])
22437 //mt:const uint8(6)
22439 OverlayTiles [6]TileDef
22440 //mt:const uint8(6)
22441 SpecialTiles [6]TileDef
22448 ConnectTo []Content
22449 InsideTint color.NRGBA
22450 Level uint8 // Must be < 128.
22452 Translucent bool // Sunlight is scattered and becomes normal light.
22453 Transparent bool // Sunlight isn't scattered.
22466 LiquidType LiquidType
22469 Viscosity uint8 // 0-7
22475 DrawBox, ColBox, SelBox NodeBox
22477 FootstepSnd, DiggingSnd, DugSnd SoundDef
22487 }))(obj)).DigPredict) = string(local267)
22489 p := &(*(*(struct {
22501 //mt:const uint8(6)
22503 OverlayTiles [6]TileDef
22504 //mt:const uint8(6)
22505 SpecialTiles [6]TileDef
22512 ConnectTo []Content
22513 InsideTint color.NRGBA
22514 Level uint8 // Must be < 128.
22516 Translucent bool // Sunlight is scattered and becomes normal light.
22517 Transparent bool // Sunlight isn't scattered.
22530 LiquidType LiquidType
22533 Viscosity uint8 // 0-7
22539 DrawBox, ColBox, SelBox NodeBox
22541 FootstepSnd, DiggingSnd, DugSnd SoundDef
22554 if err := pcall(func() {
22567 //mt:const uint8(6)
22569 OverlayTiles [6]TileDef
22570 //mt:const uint8(6)
22571 SpecialTiles [6]TileDef
22578 ConnectTo []Content
22579 InsideTint color.NRGBA
22580 Level uint8 // Must be < 128.
22582 Translucent bool // Sunlight is scattered and becomes normal light.
22583 Transparent bool // Sunlight isn't scattered.
22596 LiquidType LiquidType
22599 Viscosity uint8 // 0-7
22605 DrawBox, ColBox, SelBox NodeBox
22607 FootstepSnd, DiggingSnd, DugSnd SoundDef
22617 }))(obj)).AlphaUse).deserialize(r)
22622 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
22625 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22630 func (obj *PointedNode) serialize(w io.Writer) {
22631 for local269 := range (*(*(struct {
22632 Under, Above [3]int16
22635 x := ((*(*(struct {
22636 Under, Above [3]int16
22637 }))(obj)).Under)[local269]
22638 write16(w, uint16(x))
22641 for local270 := range (*(*(struct {
22642 Under, Above [3]int16
22645 x := ((*(*(struct {
22646 Under, Above [3]int16
22647 }))(obj)).Above)[local270]
22648 write16(w, uint16(x))
22653 func (obj *PointedNode) deserialize(r io.Reader) {
22654 for local271 := range (*(*(struct {
22655 Under, Above [3]int16
22658 p := &((*(*(struct {
22659 Under, Above [3]int16
22660 }))(obj)).Under)[local271]
22661 *p = int16(read16(r))
22664 for local272 := range (*(*(struct {
22665 Under, Above [3]int16
22668 p := &((*(*(struct {
22669 Under, Above [3]int16
22670 }))(obj)).Above)[local272]
22671 *p = int16(read16(r))
22676 func (obj *PointedAO) serialize(w io.Writer) {
22677 if err := pcall(func() {
22680 }))(obj)).ID).serialize(w)
22685 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
22689 func (obj *PointedAO) deserialize(r io.Reader) {
22690 if err := pcall(func() {
22693 }))(obj)).ID).deserialize(r)
22698 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
22702 func (obj *CompressionModes) serialize(w io.Writer) {
22704 x := *(*(uint16))(obj)
22705 write16(w, uint16(x))
22709 func (obj *CompressionModes) deserialize(r io.Reader) {
22711 p := &*(*(uint16))(obj)
22716 func (obj *PlayerPos) serialize(w io.Writer) {
22717 for local273 := range (*(*(struct {
22718 Pos100, Vel100 [3]int32
22719 Pitch100, Yaw100 int32
22722 WantedRange uint8 // in MapBlks.
22725 x := ((*(*(struct {
22726 Pos100, Vel100 [3]int32
22727 Pitch100, Yaw100 int32
22730 WantedRange uint8 // in MapBlks.
22731 }))(obj)).Pos100)[local273]
22732 write32(w, uint32(x))
22735 for local274 := range (*(*(struct {
22736 Pos100, Vel100 [3]int32
22737 Pitch100, Yaw100 int32
22740 WantedRange uint8 // in MapBlks.
22743 x := ((*(*(struct {
22744 Pos100, Vel100 [3]int32
22745 Pitch100, Yaw100 int32
22748 WantedRange uint8 // in MapBlks.
22749 }))(obj)).Vel100)[local274]
22750 write32(w, uint32(x))
22755 Pos100, Vel100 [3]int32
22756 Pitch100, Yaw100 int32
22759 WantedRange uint8 // in MapBlks.
22761 write32(w, uint32(x))
22765 Pos100, Vel100 [3]int32
22766 Pitch100, Yaw100 int32
22769 WantedRange uint8 // in MapBlks.
22771 write32(w, uint32(x))
22773 if err := pcall(func() {
22775 Pos100, Vel100 [3]int32
22776 Pitch100, Yaw100 int32
22779 WantedRange uint8 // in MapBlks.
22780 }))(obj)).Keys).serialize(w)
22785 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
22789 Pos100, Vel100 [3]int32
22790 Pitch100, Yaw100 int32
22793 WantedRange uint8 // in MapBlks.
22795 write8(w, uint8(x))
22799 Pos100, Vel100 [3]int32
22800 Pitch100, Yaw100 int32
22803 WantedRange uint8 // in MapBlks.
22804 }))(obj)).WantedRange
22805 write8(w, uint8(x))
22809 func (obj *PlayerPos) deserialize(r io.Reader) {
22810 for local275 := range (*(*(struct {
22811 Pos100, Vel100 [3]int32
22812 Pitch100, Yaw100 int32
22815 WantedRange uint8 // in MapBlks.
22818 p := &((*(*(struct {
22819 Pos100, Vel100 [3]int32
22820 Pitch100, Yaw100 int32
22823 WantedRange uint8 // in MapBlks.
22824 }))(obj)).Pos100)[local275]
22825 *p = int32(read32(r))
22828 for local276 := range (*(*(struct {
22829 Pos100, Vel100 [3]int32
22830 Pitch100, Yaw100 int32
22833 WantedRange uint8 // in MapBlks.
22836 p := &((*(*(struct {
22837 Pos100, Vel100 [3]int32
22838 Pitch100, Yaw100 int32
22841 WantedRange uint8 // in MapBlks.
22842 }))(obj)).Vel100)[local276]
22843 *p = int32(read32(r))
22847 p := &(*(*(struct {
22848 Pos100, Vel100 [3]int32
22849 Pitch100, Yaw100 int32
22852 WantedRange uint8 // in MapBlks.
22854 *p = int32(read32(r))
22857 p := &(*(*(struct {
22858 Pos100, Vel100 [3]int32
22859 Pitch100, Yaw100 int32
22862 WantedRange uint8 // in MapBlks.
22864 *p = int32(read32(r))
22866 if err := pcall(func() {
22868 Pos100, Vel100 [3]int32
22869 Pitch100, Yaw100 int32
22872 WantedRange uint8 // in MapBlks.
22873 }))(obj)).Keys).deserialize(r)
22878 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
22881 p := &(*(*(struct {
22882 Pos100, Vel100 [3]int32
22883 Pitch100, Yaw100 int32
22886 WantedRange uint8 // in MapBlks.
22891 p := &(*(*(struct {
22892 Pos100, Vel100 [3]int32
22893 Pitch100, Yaw100 int32
22896 WantedRange uint8 // in MapBlks.
22897 }))(obj)).WantedRange
22902 func (obj *Interaction) serialize(w io.Writer) {
22904 x := *(*(uint8))(obj)
22905 write8(w, uint8(x))
22909 func (obj *Interaction) deserialize(r io.Reader) {
22911 p := &*(*(uint8))(obj)
22916 func (obj *SoundID) serialize(w io.Writer) {
22918 x := *(*(int32))(obj)
22919 write32(w, uint32(x))
22923 func (obj *SoundID) deserialize(r io.Reader) {
22925 p := &*(*(int32))(obj)
22926 *p = int32(read32(r))
22930 func (obj *Field) serialize(w io.Writer) {
22931 if len(([]byte((*(*(struct {
22936 }))(obj)).Name))) > math.MaxUint16 {
22940 x := uint16(len(([]byte((*(*(struct {
22946 write16(w, uint16(x))
22949 _, err := w.Write(([]byte((*(*(struct {
22954 }))(obj)).Name))[:])
22957 if len(([]byte((*(*(struct {
22962 }))(obj)).Value))) > math.MaxUint32 {
22966 x := uint32(len(([]byte((*(*(struct {
22971 }))(obj)).Value))))
22972 write32(w, uint32(x))
22975 _, err := w.Write(([]byte((*(*(struct {
22980 }))(obj)).Value))[:])
22985 func (obj *Field) deserialize(r io.Reader) {
22986 var local277 []uint8
22987 var local278 uint16
22992 (local277) = make([]uint8, local278)
22994 _, err := io.ReadFull(r, (local277)[:])
23002 }))(obj)).Name) = string(local277)
23003 var local279 []uint8
23004 var local280 uint32
23009 (local279) = make([]uint8, local280)
23011 _, err := io.ReadFull(r, (local279)[:])
23019 }))(obj)).Value) = string(local279)
23022 func (obj *AuthMethods) serialize(w io.Writer) {
23024 x := *(*(uint32))(obj)
23025 write32(w, uint32(x))
23029 func (obj *AuthMethods) deserialize(r io.Reader) {
23031 p := &*(*(uint32))(obj)
23036 func (obj *Pos) serialize(w io.Writer) {
23037 if err := pcall(func() {
23038 (*(*(Vec))(obj)).serialize(w)
23043 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23047 func (obj *Pos) deserialize(r io.Reader) {
23048 if err := pcall(func() {
23049 (*(*(Vec))(obj)).deserialize(r)
23054 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23058 func (obj *KickReason) serialize(w io.Writer) {
23060 x := *(*(uint8))(obj)
23061 write8(w, uint8(x))
23065 func (obj *KickReason) deserialize(r io.Reader) {
23067 p := &*(*(uint8))(obj)
23072 func (obj *MapBlk) serialize(w io.Writer) {
23073 if err := pcall(func() {
23076 LitFrom LitFromBlks
23079 Param0 [4096]Content
23083 NodeMetas map[uint16]*NodeMeta
23084 }))(obj)).Flags).serialize(w)
23089 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
23091 if err := pcall(func() {
23094 LitFrom LitFromBlks
23097 Param0 [4096]Content
23101 NodeMetas map[uint16]*NodeMeta
23102 }))(obj)).LitFrom).serialize(w)
23107 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
23110 local281 := uint8(2) // Size of param0 in bytes.
23113 write8(w, uint8(x))
23117 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23120 write8(w, uint8(x))
23124 w, err := zstd.NewWriter(w)
23126 for local283 := range (*(*(struct {
23128 LitFrom LitFromBlks
23131 Param0 [4096]Content
23135 NodeMetas map[uint16]*NodeMeta
23137 if err := pcall(func() {
23140 LitFrom LitFromBlks
23143 Param0 [4096]Content
23147 NodeMetas map[uint16]*NodeMeta
23148 }))(obj)).Param0)[local283]).serialize(w)
23153 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23157 _, err := w.Write(((*(*(struct {
23159 LitFrom LitFromBlks
23162 Param0 [4096]Content
23166 NodeMetas map[uint16]*NodeMeta
23167 }))(obj)).Param1)[:])
23171 _, err := w.Write(((*(*(struct {
23173 LitFrom LitFromBlks
23176 Param0 [4096]Content
23180 NodeMetas map[uint16]*NodeMeta
23181 }))(obj)).Param2)[:])
23189 LitFrom LitFromBlks
23192 Param0 [4096]Content
23196 NodeMetas map[uint16]*NodeMeta
23197 }))(obj)).NodeMetas
23199 w := zlib.NewWriter(w)
23204 // len(map[uint16]...) always < math.MaxUint16
23205 write16(w, uint16(len(x)))
23206 keys := make([]uint16, 0, len(x))
23207 for key := range x {
23208 keys = append(keys, key)
23210 sort.Slice(keys, func(i, j int) bool {
23211 i2pos := func(i int) [3]int16 {
23212 return Blkpos2Pos([3]int16{}, keys[i])
23214 p, q := i2pos(i), i2pos(j)
23225 for _, key := range keys {
23227 chk(serialize(w, x[key]))
23234 local284 := uint8(2) // version
23237 write8(w, uint8(x))
23242 func (obj *MapBlk) deserialize(r io.Reader) {
23243 if err := pcall(func() {
23246 LitFrom LitFromBlks
23249 Param0 [4096]Content
23253 NodeMetas map[uint16]*NodeMeta
23254 }))(obj)).Flags).deserialize(r)
23259 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
23261 if err := pcall(func() {
23264 LitFrom LitFromBlks
23267 Param0 [4096]Content
23271 NodeMetas map[uint16]*NodeMeta
23272 }))(obj)).LitFrom).deserialize(r)
23277 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
23281 local286 := uint8(2) // Size of param0 in bytes.
23286 if local285 != local286 {
23287 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local285))
23292 local288 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23297 if local287 != local288 {
23298 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local287))
23302 r, err := zstd.NewReader(byteReader{r})
23304 for local289 := range (*(*(struct {
23306 LitFrom LitFromBlks
23309 Param0 [4096]Content
23313 NodeMetas map[uint16]*NodeMeta
23315 if err := pcall(func() {
23318 LitFrom LitFromBlks
23321 Param0 [4096]Content
23325 NodeMetas map[uint16]*NodeMeta
23326 }))(obj)).Param0)[local289]).deserialize(r)
23331 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23335 _, err := io.ReadFull(r, ((*(*(struct {
23337 LitFrom LitFromBlks
23340 Param0 [4096]Content
23344 NodeMetas map[uint16]*NodeMeta
23345 }))(obj)).Param1)[:])
23349 _, err := io.ReadFull(r, ((*(*(struct {
23351 LitFrom LitFromBlks
23354 Param0 [4096]Content
23358 NodeMetas map[uint16]*NodeMeta
23359 }))(obj)).Param2)[:])
23365 p := &(*(*(struct {
23367 LitFrom LitFromBlks
23370 Param0 [4096]Content
23374 NodeMetas map[uint16]*NodeMeta
23375 }))(obj)).NodeMetas
23377 r, err := zlib.NewReader(byteReader{r})
23379 switch ver := read8(r); ver {
23384 *p = make(map[uint16]*NodeMeta, n)
23387 nm := new(NodeMeta)
23388 chk(deserialize(r, nm))
23392 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23399 local291 := uint8(2) // version
23404 if local290 != local291 {
23405 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local290))
23410 func (obj *Node) serialize(w io.Writer) {
23411 if err := pcall(func() {
23414 Param1, Param2 uint8
23415 }))(obj)).Param0).serialize(w)
23420 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23425 Param1, Param2 uint8
23427 write8(w, uint8(x))
23432 Param1, Param2 uint8
23434 write8(w, uint8(x))
23438 func (obj *Node) deserialize(r io.Reader) {
23439 if err := pcall(func() {
23442 Param1, Param2 uint8
23443 }))(obj)).Param0).deserialize(r)
23448 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23451 p := &(*(*(struct {
23453 Param1, Param2 uint8
23458 p := &(*(*(struct {
23460 Param1, Param2 uint8
23466 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23468 x := *(*(uint64))(obj)
23469 write64(w, uint64(x))
23473 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23475 p := &*(*(uint64))(obj)
23480 func (obj *Vec) serialize(w io.Writer) {
23481 for local292 := range *(*([3]float32))(obj) {
23483 x := (*(*([3]float32))(obj))[local292]
23484 write32(w, math.Float32bits(x))
23489 func (obj *Vec) deserialize(r io.Reader) {
23490 for local293 := range *(*([3]float32))(obj) {
23492 p := &(*(*([3]float32))(obj))[local293]
23493 *p = math.Float32frombits(read32(r))
23498 func (obj *ChatMsgType) serialize(w io.Writer) {
23500 x := *(*(uint8))(obj)
23501 write8(w, uint8(x))
23505 func (obj *ChatMsgType) deserialize(r io.Reader) {
23507 p := &*(*(uint8))(obj)
23512 func (obj *AOID) serialize(w io.Writer) {
23514 x := *(*(uint16))(obj)
23515 write16(w, uint16(x))
23519 func (obj *AOID) deserialize(r io.Reader) {
23521 p := &*(*(uint16))(obj)
23526 func (obj *AOAdd) serialize(w io.Writer) {
23527 if err := pcall(func() {
23530 //mt:const genericCAO
23532 InitData AOInitData
23533 }))(obj)).ID).serialize(w)
23538 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23541 local294 := genericCAO
23542 if err := pcall(func() {
23543 (local294).serialize(w)
23548 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
23553 w := new(bytes.Buffer)
23554 if err := pcall(func() {
23557 //mt:const genericCAO
23559 InitData AOInitData
23560 }))(obj)).InitData).serialize(w)
23565 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
23570 if len((buf.Bytes())) > math.MaxUint32 {
23574 x := uint32(len((buf.Bytes())))
23575 write32(w, uint32(x))
23578 _, err := w.Write((buf.Bytes())[:])
23585 func (obj *AOAdd) deserialize(r io.Reader) {
23586 if err := pcall(func() {
23589 //mt:const genericCAO
23591 InitData AOInitData
23592 }))(obj)).ID).deserialize(r)
23597 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23600 var local295 aoType
23601 local296 := genericCAO
23602 if err := pcall(func() {
23603 (local295).deserialize(r)
23608 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
23610 if local295 != local296 {
23611 chk(fmt.Errorf("const %v: %v", "genericCAO", local295))
23620 r := &io.LimitedReader{R: r, N: int64(n)}
23621 if err := pcall(func() {
23624 //mt:const genericCAO
23626 InitData AOInitData
23627 }))(obj)).InitData).deserialize(r)
23632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
23635 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23640 func (obj *IDAOMsg) serialize(w io.Writer) {
23641 if err := pcall(func() {
23646 }))(obj)).ID).serialize(w)
23651 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23655 w := new(bytes.Buffer)
23667 if len((buf.Bytes())) > math.MaxUint16 {
23671 x := uint16(len((buf.Bytes())))
23672 write16(w, uint16(x))
23675 _, err := w.Write((buf.Bytes())[:])
23682 func (obj *IDAOMsg) deserialize(r io.Reader) {
23683 if err := pcall(func() {
23688 }))(obj)).ID).deserialize(r)
23693 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23701 r := &io.LimitedReader{R: r, N: int64(n)}
23703 p := &(*(*(struct {
23710 *p, err = readAOMsg(r)
23715 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23720 func (obj *ItemDef) serialize(w io.Writer) {
23723 w := new(bytes.Buffer)
23725 local297 := uint8(6)
23728 write8(w, uint8(x))
23731 if err := pcall(func() {
23737 InvImg, WieldImg Texture
23738 WieldScale [3]float32
23743 CanPointLiquids bool
23749 PlacePredict string
23751 PlaceSnd, PlaceFailSnd SoundDef
23755 // Set index in Palette with "palette_index" item meta field,
23756 // this overrides Color.
23760 // Texture overlays.
23761 InvOverlay, WieldOverlay Texture
23766 }))(obj)).Type).serialize(w)
23771 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
23773 if len(([]byte((*(*(struct {
23778 InvImg, WieldImg Texture
23779 WieldScale [3]float32
23784 CanPointLiquids bool
23790 PlacePredict string
23792 PlaceSnd, PlaceFailSnd SoundDef
23796 // Set index in Palette with "palette_index" item meta field,
23797 // this overrides Color.
23801 // Texture overlays.
23802 InvOverlay, WieldOverlay Texture
23807 }))(obj)).Name))) > math.MaxUint16 {
23811 x := uint16(len(([]byte((*(*(struct {
23816 InvImg, WieldImg Texture
23817 WieldScale [3]float32
23822 CanPointLiquids bool
23828 PlacePredict string
23830 PlaceSnd, PlaceFailSnd SoundDef
23834 // Set index in Palette with "palette_index" item meta field,
23835 // this overrides Color.
23839 // Texture overlays.
23840 InvOverlay, WieldOverlay Texture
23846 write16(w, uint16(x))
23849 _, err := w.Write(([]byte((*(*(struct {
23854 InvImg, WieldImg Texture
23855 WieldScale [3]float32
23860 CanPointLiquids bool
23866 PlacePredict string
23868 PlaceSnd, PlaceFailSnd SoundDef
23872 // Set index in Palette with "palette_index" item meta field,
23873 // this overrides Color.
23877 // Texture overlays.
23878 InvOverlay, WieldOverlay Texture
23883 }))(obj)).Name))[:])
23886 if len(([]byte((*(*(struct {
23891 InvImg, WieldImg Texture
23892 WieldScale [3]float32
23897 CanPointLiquids bool
23903 PlacePredict string
23905 PlaceSnd, PlaceFailSnd SoundDef
23909 // Set index in Palette with "palette_index" item meta field,
23910 // this overrides Color.
23914 // Texture overlays.
23915 InvOverlay, WieldOverlay Texture
23920 }))(obj)).Desc))) > math.MaxUint16 {
23924 x := uint16(len(([]byte((*(*(struct {
23929 InvImg, WieldImg Texture
23930 WieldScale [3]float32
23935 CanPointLiquids bool
23941 PlacePredict string
23943 PlaceSnd, PlaceFailSnd SoundDef
23947 // Set index in Palette with "palette_index" item meta field,
23948 // this overrides Color.
23952 // Texture overlays.
23953 InvOverlay, WieldOverlay Texture
23959 write16(w, uint16(x))
23962 _, err := w.Write(([]byte((*(*(struct {
23967 InvImg, WieldImg Texture
23968 WieldScale [3]float32
23973 CanPointLiquids bool
23979 PlacePredict string
23981 PlaceSnd, PlaceFailSnd SoundDef
23985 // Set index in Palette with "palette_index" item meta field,
23986 // this overrides Color.
23990 // Texture overlays.
23991 InvOverlay, WieldOverlay Texture
23996 }))(obj)).Desc))[:])
23999 if err := pcall(func() {
24005 InvImg, WieldImg Texture
24006 WieldScale [3]float32
24011 CanPointLiquids bool
24017 PlacePredict string
24019 PlaceSnd, PlaceFailSnd SoundDef
24023 // Set index in Palette with "palette_index" item meta field,
24024 // this overrides Color.
24028 // Texture overlays.
24029 InvOverlay, WieldOverlay Texture
24034 }))(obj)).InvImg).serialize(w)
24039 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24041 if err := pcall(func() {
24047 InvImg, WieldImg Texture
24048 WieldScale [3]float32
24053 CanPointLiquids bool
24059 PlacePredict string
24061 PlaceSnd, PlaceFailSnd SoundDef
24065 // Set index in Palette with "palette_index" item meta field,
24066 // this overrides Color.
24070 // Texture overlays.
24071 InvOverlay, WieldOverlay Texture
24076 }))(obj)).WieldImg).serialize(w)
24081 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24083 for local298 := range (*(*(struct {
24088 InvImg, WieldImg Texture
24089 WieldScale [3]float32
24094 CanPointLiquids bool
24100 PlacePredict string
24102 PlaceSnd, PlaceFailSnd SoundDef
24106 // Set index in Palette with "palette_index" item meta field,
24107 // this overrides Color.
24111 // Texture overlays.
24112 InvOverlay, WieldOverlay Texture
24117 }))(obj)).WieldScale {
24119 x := ((*(*(struct {
24124 InvImg, WieldImg Texture
24125 WieldScale [3]float32
24130 CanPointLiquids bool
24136 PlacePredict string
24138 PlaceSnd, PlaceFailSnd SoundDef
24142 // Set index in Palette with "palette_index" item meta field,
24143 // this overrides Color.
24147 // Texture overlays.
24148 InvOverlay, WieldOverlay Texture
24153 }))(obj)).WieldScale)[local298]
24154 write32(w, math.Float32bits(x))
24163 InvImg, WieldImg Texture
24164 WieldScale [3]float32
24169 CanPointLiquids bool
24175 PlacePredict string
24177 PlaceSnd, PlaceFailSnd SoundDef
24181 // Set index in Palette with "palette_index" item meta field,
24182 // this overrides Color.
24186 // Texture overlays.
24187 InvOverlay, WieldOverlay Texture
24193 write16(w, uint16(x))
24201 InvImg, WieldImg Texture
24202 WieldScale [3]float32
24207 CanPointLiquids bool
24213 PlacePredict string
24215 PlaceSnd, PlaceFailSnd SoundDef
24219 // Set index in Palette with "palette_index" item meta field,
24220 // this overrides Color.
24224 // Texture overlays.
24225 InvOverlay, WieldOverlay Texture
24243 InvImg, WieldImg Texture
24244 WieldScale [3]float32
24249 CanPointLiquids bool
24255 PlacePredict string
24257 PlaceSnd, PlaceFailSnd SoundDef
24261 // Set index in Palette with "palette_index" item meta field,
24262 // this overrides Color.
24266 // Texture overlays.
24267 InvOverlay, WieldOverlay Texture
24272 }))(obj)).CanPointLiquids
24279 if err := pcall(func() {
24285 InvImg, WieldImg Texture
24286 WieldScale [3]float32
24291 CanPointLiquids bool
24297 PlacePredict string
24299 PlaceSnd, PlaceFailSnd SoundDef
24303 // Set index in Palette with "palette_index" item meta field,
24304 // this overrides Color.
24308 // Texture overlays.
24309 InvOverlay, WieldOverlay Texture
24314 }))(obj)).ToolCaps).serialize(w)
24319 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
24321 if len(((*(*(struct {
24326 InvImg, WieldImg Texture
24327 WieldScale [3]float32
24332 CanPointLiquids bool
24338 PlacePredict string
24340 PlaceSnd, PlaceFailSnd SoundDef
24344 // Set index in Palette with "palette_index" item meta field,
24345 // this overrides Color.
24349 // Texture overlays.
24350 InvOverlay, WieldOverlay Texture
24355 }))(obj)).Groups)) > math.MaxUint16 {
24359 x := uint16(len(((*(*(struct {
24364 InvImg, WieldImg Texture
24365 WieldScale [3]float32
24370 CanPointLiquids bool
24376 PlacePredict string
24378 PlaceSnd, PlaceFailSnd SoundDef
24382 // Set index in Palette with "palette_index" item meta field,
24383 // this overrides Color.
24387 // Texture overlays.
24388 InvOverlay, WieldOverlay Texture
24393 }))(obj)).Groups)))
24394 write16(w, uint16(x))
24396 for local299 := range (*(*(struct {
24401 InvImg, WieldImg Texture
24402 WieldScale [3]float32
24407 CanPointLiquids bool
24413 PlacePredict string
24415 PlaceSnd, PlaceFailSnd SoundDef
24419 // Set index in Palette with "palette_index" item meta field,
24420 // this overrides Color.
24424 // Texture overlays.
24425 InvOverlay, WieldOverlay Texture
24431 if err := pcall(func() {
24437 InvImg, WieldImg Texture
24438 WieldScale [3]float32
24443 CanPointLiquids bool
24449 PlacePredict string
24451 PlaceSnd, PlaceFailSnd SoundDef
24455 // Set index in Palette with "palette_index" item meta field,
24456 // this overrides Color.
24460 // Texture overlays.
24461 InvOverlay, WieldOverlay Texture
24466 }))(obj)).Groups)[local299]).serialize(w)
24471 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
24474 if len(([]byte((*(*(struct {
24479 InvImg, WieldImg Texture
24480 WieldScale [3]float32
24485 CanPointLiquids bool
24491 PlacePredict string
24493 PlaceSnd, PlaceFailSnd SoundDef
24497 // Set index in Palette with "palette_index" item meta field,
24498 // this overrides Color.
24502 // Texture overlays.
24503 InvOverlay, WieldOverlay Texture
24508 }))(obj)).PlacePredict))) > math.MaxUint16 {
24512 x := uint16(len(([]byte((*(*(struct {
24517 InvImg, WieldImg Texture
24518 WieldScale [3]float32
24523 CanPointLiquids bool
24529 PlacePredict string
24531 PlaceSnd, PlaceFailSnd SoundDef
24535 // Set index in Palette with "palette_index" item meta field,
24536 // this overrides Color.
24540 // Texture overlays.
24541 InvOverlay, WieldOverlay Texture
24546 }))(obj)).PlacePredict))))
24547 write16(w, uint16(x))
24550 _, err := w.Write(([]byte((*(*(struct {
24555 InvImg, WieldImg Texture
24556 WieldScale [3]float32
24561 CanPointLiquids bool
24567 PlacePredict string
24569 PlaceSnd, PlaceFailSnd SoundDef
24573 // Set index in Palette with "palette_index" item meta field,
24574 // this overrides Color.
24578 // Texture overlays.
24579 InvOverlay, WieldOverlay Texture
24584 }))(obj)).PlacePredict))[:])
24587 if err := pcall(func() {
24593 InvImg, WieldImg Texture
24594 WieldScale [3]float32
24599 CanPointLiquids bool
24605 PlacePredict string
24607 PlaceSnd, PlaceFailSnd SoundDef
24611 // Set index in Palette with "palette_index" item meta field,
24612 // this overrides Color.
24616 // Texture overlays.
24617 InvOverlay, WieldOverlay Texture
24622 }))(obj)).PlaceSnd).serialize(w)
24627 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
24629 if err := pcall(func() {
24635 InvImg, WieldImg Texture
24636 WieldScale [3]float32
24641 CanPointLiquids bool
24647 PlacePredict string
24649 PlaceSnd, PlaceFailSnd SoundDef
24653 // Set index in Palette with "palette_index" item meta field,
24654 // this overrides Color.
24658 // Texture overlays.
24659 InvOverlay, WieldOverlay Texture
24664 }))(obj)).PlaceFailSnd).serialize(w)
24669 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
24677 InvImg, WieldImg Texture
24678 WieldScale [3]float32
24683 CanPointLiquids bool
24689 PlacePredict string
24691 PlaceSnd, PlaceFailSnd SoundDef
24695 // Set index in Palette with "palette_index" item meta field,
24696 // this overrides Color.
24700 // Texture overlays.
24701 InvOverlay, WieldOverlay Texture
24706 }))(obj)).PointRange
24707 write32(w, math.Float32bits(x))
24709 if err := pcall(func() {
24715 InvImg, WieldImg Texture
24716 WieldScale [3]float32
24721 CanPointLiquids bool
24727 PlacePredict string
24729 PlaceSnd, PlaceFailSnd SoundDef
24733 // Set index in Palette with "palette_index" item meta field,
24734 // this overrides Color.
24738 // Texture overlays.
24739 InvOverlay, WieldOverlay Texture
24744 }))(obj)).Palette).serialize(w)
24749 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24757 InvImg, WieldImg Texture
24758 WieldScale [3]float32
24763 CanPointLiquids bool
24769 PlacePredict string
24771 PlaceSnd, PlaceFailSnd SoundDef
24775 // Set index in Palette with "palette_index" item meta field,
24776 // this overrides Color.
24780 // Texture overlays.
24781 InvOverlay, WieldOverlay Texture
24787 w.Write([]byte{x.A, x.R, x.G, x.B})
24789 if err := pcall(func() {
24795 InvImg, WieldImg Texture
24796 WieldScale [3]float32
24801 CanPointLiquids bool
24807 PlacePredict string
24809 PlaceSnd, PlaceFailSnd SoundDef
24813 // Set index in Palette with "palette_index" item meta field,
24814 // this overrides Color.
24818 // Texture overlays.
24819 InvOverlay, WieldOverlay Texture
24824 }))(obj)).InvOverlay).serialize(w)
24829 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24831 if err := pcall(func() {
24837 InvImg, WieldImg Texture
24838 WieldScale [3]float32
24843 CanPointLiquids bool
24849 PlacePredict string
24851 PlaceSnd, PlaceFailSnd SoundDef
24855 // Set index in Palette with "palette_index" item meta field,
24856 // this overrides Color.
24860 // Texture overlays.
24861 InvOverlay, WieldOverlay Texture
24866 }))(obj)).WieldOverlay).serialize(w)
24871 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24873 if len(([]byte((*(*(struct {
24878 InvImg, WieldImg Texture
24879 WieldScale [3]float32
24884 CanPointLiquids bool
24890 PlacePredict string
24892 PlaceSnd, PlaceFailSnd SoundDef
24896 // Set index in Palette with "palette_index" item meta field,
24897 // this overrides Color.
24901 // Texture overlays.
24902 InvOverlay, WieldOverlay Texture
24907 }))(obj)).ShortDesc))) > math.MaxUint16 {
24911 x := uint16(len(([]byte((*(*(struct {
24916 InvImg, WieldImg Texture
24917 WieldScale [3]float32
24922 CanPointLiquids bool
24928 PlacePredict string
24930 PlaceSnd, PlaceFailSnd SoundDef
24934 // Set index in Palette with "palette_index" item meta field,
24935 // this overrides Color.
24939 // Texture overlays.
24940 InvOverlay, WieldOverlay Texture
24945 }))(obj)).ShortDesc))))
24946 write16(w, uint16(x))
24949 _, err := w.Write(([]byte((*(*(struct {
24954 InvImg, WieldImg Texture
24955 WieldScale [3]float32
24960 CanPointLiquids bool
24966 PlacePredict string
24968 PlaceSnd, PlaceFailSnd SoundDef
24972 // Set index in Palette with "palette_index" item meta field,
24973 // this overrides Color.
24977 // Texture overlays.
24978 InvOverlay, WieldOverlay Texture
24983 }))(obj)).ShortDesc))[:])
24992 InvImg, WieldImg Texture
24993 WieldScale [3]float32
24998 CanPointLiquids bool
25004 PlacePredict string
25006 PlaceSnd, PlaceFailSnd SoundDef
25010 // Set index in Palette with "palette_index" item meta field,
25011 // this overrides Color.
25015 // Texture overlays.
25016 InvOverlay, WieldOverlay Texture
25021 }))(obj)).PlaceParam2
25022 write8(w, uint8(x))
25027 if len((buf.Bytes())) > math.MaxUint16 {
25031 x := uint16(len((buf.Bytes())))
25032 write16(w, uint16(x))
25035 _, err := w.Write((buf.Bytes())[:])
25042 func (obj *ItemDef) deserialize(r io.Reader) {
25049 r := &io.LimitedReader{R: r, N: int64(n)}
25052 local301 := uint8(6)
25057 if local300 != local301 {
25058 chk(fmt.Errorf("const %v: %v", "uint8(6)", local300))
25061 if err := pcall(func() {
25067 InvImg, WieldImg Texture
25068 WieldScale [3]float32
25073 CanPointLiquids bool
25079 PlacePredict string
25081 PlaceSnd, PlaceFailSnd SoundDef
25085 // Set index in Palette with "palette_index" item meta field,
25086 // this overrides Color.
25090 // Texture overlays.
25091 InvOverlay, WieldOverlay Texture
25096 }))(obj)).Type).deserialize(r)
25101 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
25103 var local302 []uint8
25104 var local303 uint16
25109 (local302) = make([]uint8, local303)
25111 _, err := io.ReadFull(r, (local302)[:])
25119 InvImg, WieldImg Texture
25120 WieldScale [3]float32
25125 CanPointLiquids bool
25131 PlacePredict string
25133 PlaceSnd, PlaceFailSnd SoundDef
25137 // Set index in Palette with "palette_index" item meta field,
25138 // this overrides Color.
25142 // Texture overlays.
25143 InvOverlay, WieldOverlay Texture
25148 }))(obj)).Name) = string(local302)
25149 var local304 []uint8
25150 var local305 uint16
25155 (local304) = make([]uint8, local305)
25157 _, err := io.ReadFull(r, (local304)[:])
25165 InvImg, WieldImg Texture
25166 WieldScale [3]float32
25171 CanPointLiquids bool
25177 PlacePredict string
25179 PlaceSnd, PlaceFailSnd SoundDef
25183 // Set index in Palette with "palette_index" item meta field,
25184 // this overrides Color.
25188 // Texture overlays.
25189 InvOverlay, WieldOverlay Texture
25194 }))(obj)).Desc) = string(local304)
25195 if err := pcall(func() {
25201 InvImg, WieldImg Texture
25202 WieldScale [3]float32
25207 CanPointLiquids bool
25213 PlacePredict string
25215 PlaceSnd, PlaceFailSnd SoundDef
25219 // Set index in Palette with "palette_index" item meta field,
25220 // this overrides Color.
25224 // Texture overlays.
25225 InvOverlay, WieldOverlay Texture
25230 }))(obj)).InvImg).deserialize(r)
25235 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25237 if err := pcall(func() {
25243 InvImg, WieldImg Texture
25244 WieldScale [3]float32
25249 CanPointLiquids bool
25255 PlacePredict string
25257 PlaceSnd, PlaceFailSnd SoundDef
25261 // Set index in Palette with "palette_index" item meta field,
25262 // this overrides Color.
25266 // Texture overlays.
25267 InvOverlay, WieldOverlay Texture
25272 }))(obj)).WieldImg).deserialize(r)
25277 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25279 for local306 := range (*(*(struct {
25284 InvImg, WieldImg Texture
25285 WieldScale [3]float32
25290 CanPointLiquids bool
25296 PlacePredict string
25298 PlaceSnd, PlaceFailSnd SoundDef
25302 // Set index in Palette with "palette_index" item meta field,
25303 // this overrides Color.
25307 // Texture overlays.
25308 InvOverlay, WieldOverlay Texture
25313 }))(obj)).WieldScale {
25315 p := &((*(*(struct {
25320 InvImg, WieldImg Texture
25321 WieldScale [3]float32
25326 CanPointLiquids bool
25332 PlacePredict string
25334 PlaceSnd, PlaceFailSnd SoundDef
25338 // Set index in Palette with "palette_index" item meta field,
25339 // this overrides Color.
25343 // Texture overlays.
25344 InvOverlay, WieldOverlay Texture
25349 }))(obj)).WieldScale)[local306]
25350 *p = math.Float32frombits(read32(r))
25354 p := &(*(*(struct {
25359 InvImg, WieldImg Texture
25360 WieldScale [3]float32
25365 CanPointLiquids bool
25371 PlacePredict string
25373 PlaceSnd, PlaceFailSnd SoundDef
25377 // Set index in Palette with "palette_index" item meta field,
25378 // this overrides Color.
25382 // Texture overlays.
25383 InvOverlay, WieldOverlay Texture
25392 p := &(*(*(struct {
25397 InvImg, WieldImg Texture
25398 WieldScale [3]float32
25403 CanPointLiquids bool
25409 PlacePredict string
25411 PlaceSnd, PlaceFailSnd SoundDef
25415 // Set index in Palette with "palette_index" item meta field,
25416 // this overrides Color.
25420 // Texture overlays.
25421 InvOverlay, WieldOverlay Texture
25427 switch n := read8(r); n {
25433 chk(fmt.Errorf("invalid bool: %d", n))
25437 p := &(*(*(struct {
25442 InvImg, WieldImg Texture
25443 WieldScale [3]float32
25448 CanPointLiquids bool
25454 PlacePredict string
25456 PlaceSnd, PlaceFailSnd SoundDef
25460 // Set index in Palette with "palette_index" item meta field,
25461 // this overrides Color.
25465 // Texture overlays.
25466 InvOverlay, WieldOverlay Texture
25471 }))(obj)).CanPointLiquids
25472 switch n := read8(r); n {
25478 chk(fmt.Errorf("invalid bool: %d", n))
25481 if err := pcall(func() {
25487 InvImg, WieldImg Texture
25488 WieldScale [3]float32
25493 CanPointLiquids bool
25499 PlacePredict string
25501 PlaceSnd, PlaceFailSnd SoundDef
25505 // Set index in Palette with "palette_index" item meta field,
25506 // this overrides Color.
25510 // Texture overlays.
25511 InvOverlay, WieldOverlay Texture
25516 }))(obj)).ToolCaps).deserialize(r)
25521 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
25523 var local307 uint16
25533 InvImg, WieldImg Texture
25534 WieldScale [3]float32
25539 CanPointLiquids bool
25545 PlacePredict string
25547 PlaceSnd, PlaceFailSnd SoundDef
25551 // Set index in Palette with "palette_index" item meta field,
25552 // this overrides Color.
25556 // Texture overlays.
25557 InvOverlay, WieldOverlay Texture
25562 }))(obj)).Groups) = make([]Group, local307)
25563 for local308 := range (*(*(struct {
25568 InvImg, WieldImg Texture
25569 WieldScale [3]float32
25574 CanPointLiquids bool
25580 PlacePredict string
25582 PlaceSnd, PlaceFailSnd SoundDef
25586 // Set index in Palette with "palette_index" item meta field,
25587 // this overrides Color.
25591 // Texture overlays.
25592 InvOverlay, WieldOverlay Texture
25598 if err := pcall(func() {
25604 InvImg, WieldImg Texture
25605 WieldScale [3]float32
25610 CanPointLiquids bool
25616 PlacePredict string
25618 PlaceSnd, PlaceFailSnd SoundDef
25622 // Set index in Palette with "palette_index" item meta field,
25623 // this overrides Color.
25627 // Texture overlays.
25628 InvOverlay, WieldOverlay Texture
25633 }))(obj)).Groups)[local308]).deserialize(r)
25638 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
25641 var local309 []uint8
25642 var local310 uint16
25647 (local309) = make([]uint8, local310)
25649 _, err := io.ReadFull(r, (local309)[:])
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)).PlacePredict) = string(local309)
25687 if err := pcall(func() {
25693 InvImg, WieldImg Texture
25694 WieldScale [3]float32
25699 CanPointLiquids bool
25705 PlacePredict string
25707 PlaceSnd, PlaceFailSnd SoundDef
25711 // Set index in Palette with "palette_index" item meta field,
25712 // this overrides Color.
25716 // Texture overlays.
25717 InvOverlay, WieldOverlay Texture
25722 }))(obj)).PlaceSnd).deserialize(r)
25727 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25729 if err := pcall(func() {
25735 InvImg, WieldImg Texture
25736 WieldScale [3]float32
25741 CanPointLiquids bool
25747 PlacePredict string
25749 PlaceSnd, PlaceFailSnd SoundDef
25753 // Set index in Palette with "palette_index" item meta field,
25754 // this overrides Color.
25758 // Texture overlays.
25759 InvOverlay, WieldOverlay Texture
25764 }))(obj)).PlaceFailSnd).deserialize(r)
25769 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25772 p := &(*(*(struct {
25777 InvImg, WieldImg Texture
25778 WieldScale [3]float32
25783 CanPointLiquids bool
25789 PlacePredict string
25791 PlaceSnd, PlaceFailSnd SoundDef
25795 // Set index in Palette with "palette_index" item meta field,
25796 // this overrides Color.
25800 // Texture overlays.
25801 InvOverlay, WieldOverlay Texture
25806 }))(obj)).PointRange
25807 *p = math.Float32frombits(read32(r))
25809 if err := pcall(func() {
25815 InvImg, WieldImg Texture
25816 WieldScale [3]float32
25821 CanPointLiquids bool
25827 PlacePredict string
25829 PlaceSnd, PlaceFailSnd SoundDef
25833 // Set index in Palette with "palette_index" item meta field,
25834 // this overrides Color.
25838 // Texture overlays.
25839 InvOverlay, WieldOverlay Texture
25844 }))(obj)).Palette).deserialize(r)
25849 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25852 p := &(*(*(struct {
25857 InvImg, WieldImg Texture
25858 WieldScale [3]float32
25863 CanPointLiquids bool
25869 PlacePredict string
25871 PlaceSnd, PlaceFailSnd SoundDef
25875 // Set index in Palette with "palette_index" item meta field,
25876 // this overrides Color.
25880 // Texture overlays.
25881 InvOverlay, WieldOverlay Texture
25887 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25889 if err := pcall(func() {
25895 InvImg, WieldImg Texture
25896 WieldScale [3]float32
25901 CanPointLiquids bool
25907 PlacePredict string
25909 PlaceSnd, PlaceFailSnd SoundDef
25913 // Set index in Palette with "palette_index" item meta field,
25914 // this overrides Color.
25918 // Texture overlays.
25919 InvOverlay, WieldOverlay Texture
25924 }))(obj)).InvOverlay).deserialize(r)
25929 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25931 if err := pcall(func() {
25937 InvImg, WieldImg Texture
25938 WieldScale [3]float32
25943 CanPointLiquids bool
25949 PlacePredict string
25951 PlaceSnd, PlaceFailSnd SoundDef
25955 // Set index in Palette with "palette_index" item meta field,
25956 // this overrides Color.
25960 // Texture overlays.
25961 InvOverlay, WieldOverlay Texture
25966 }))(obj)).WieldOverlay).deserialize(r)
25971 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25973 var local311 []uint8
25974 var local312 uint16
25979 (local311) = make([]uint8, local312)
25981 _, err := io.ReadFull(r, (local311)[:])
25989 InvImg, WieldImg Texture
25990 WieldScale [3]float32
25995 CanPointLiquids bool
26001 PlacePredict string
26003 PlaceSnd, PlaceFailSnd SoundDef
26007 // Set index in Palette with "palette_index" item meta field,
26008 // this overrides Color.
26012 // Texture overlays.
26013 InvOverlay, WieldOverlay Texture
26018 }))(obj)).ShortDesc) = string(local311)
26020 p := &(*(*(struct {
26025 InvImg, WieldImg Texture
26026 WieldScale [3]float32
26031 CanPointLiquids bool
26037 PlacePredict string
26039 PlaceSnd, PlaceFailSnd SoundDef
26043 // Set index in Palette with "palette_index" item meta field,
26044 // this overrides Color.
26048 // Texture overlays.
26049 InvOverlay, WieldOverlay Texture
26054 }))(obj)).PlaceParam2
26058 chk(fmt.Errorf("%d bytes of trailing data", r.N))
26063 func (obj *SoundSrcType) serialize(w io.Writer) {
26065 x := *(*(uint8))(obj)
26066 write8(w, uint8(x))
26070 func (obj *SoundSrcType) deserialize(r io.Reader) {
26072 p := &*(*(uint8))(obj)
26077 func (obj *TileAnim) serialize(w io.Writer) {
26078 if err := pcall(func() {
26082 //mt:if %s.Type == SpriteSheetAnim
26083 AspectRatio [2]uint8
26085 //mt:if %s.Type == VerticalFrameAnim
26088 //mt:if %s.Type != NoAnim
26089 Duration float32 // in seconds
26091 }))(obj)).Type).serialize(w)
26096 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26101 //mt:if %s.Type == SpriteSheetAnim
26102 AspectRatio [2]uint8
26104 //mt:if %s.Type == VerticalFrameAnim
26107 //mt:if %s.Type != NoAnim
26108 Duration float32 // in seconds
26110 }))(obj)).Type < maxAnim) {
26111 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26116 //mt:if %s.Type == SpriteSheetAnim
26117 AspectRatio [2]uint8
26119 //mt:if %s.Type == VerticalFrameAnim
26122 //mt:if %s.Type != NoAnim
26123 Duration float32 // in seconds
26125 }))(obj)).Type == SpriteSheetAnim {
26127 _, err := w.Write(((*(*(struct {
26130 //mt:if %s.Type == SpriteSheetAnim
26131 AspectRatio [2]uint8
26133 //mt:if %s.Type == VerticalFrameAnim
26136 //mt:if %s.Type != NoAnim
26137 Duration float32 // in seconds
26139 }))(obj)).AspectRatio)[:])
26146 //mt:if %s.Type == SpriteSheetAnim
26147 AspectRatio [2]uint8
26149 //mt:if %s.Type == VerticalFrameAnim
26152 //mt:if %s.Type != NoAnim
26153 Duration float32 // in seconds
26155 }))(obj)).Type == VerticalFrameAnim {
26156 for local313 := range (*(*(struct {
26159 //mt:if %s.Type == SpriteSheetAnim
26160 AspectRatio [2]uint8
26162 //mt:if %s.Type == VerticalFrameAnim
26165 //mt:if %s.Type != NoAnim
26166 Duration float32 // in seconds
26168 }))(obj)).NFrames {
26170 x := ((*(*(struct {
26173 //mt:if %s.Type == SpriteSheetAnim
26174 AspectRatio [2]uint8
26176 //mt:if %s.Type == VerticalFrameAnim
26179 //mt:if %s.Type != NoAnim
26180 Duration float32 // in seconds
26182 }))(obj)).NFrames)[local313]
26183 write16(w, uint16(x))
26190 //mt:if %s.Type == SpriteSheetAnim
26191 AspectRatio [2]uint8
26193 //mt:if %s.Type == VerticalFrameAnim
26196 //mt:if %s.Type != NoAnim
26197 Duration float32 // in seconds
26199 }))(obj)).Type != NoAnim {
26204 //mt:if %s.Type == SpriteSheetAnim
26205 AspectRatio [2]uint8
26207 //mt:if %s.Type == VerticalFrameAnim
26210 //mt:if %s.Type != NoAnim
26211 Duration float32 // in seconds
26214 write32(w, math.Float32bits(x))
26219 func (obj *TileAnim) deserialize(r io.Reader) {
26220 if err := pcall(func() {
26224 //mt:if %s.Type == SpriteSheetAnim
26225 AspectRatio [2]uint8
26227 //mt:if %s.Type == VerticalFrameAnim
26230 //mt:if %s.Type != NoAnim
26231 Duration float32 // in seconds
26233 }))(obj)).Type).deserialize(r)
26238 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26243 //mt:if %s.Type == SpriteSheetAnim
26244 AspectRatio [2]uint8
26246 //mt:if %s.Type == VerticalFrameAnim
26249 //mt:if %s.Type != NoAnim
26250 Duration float32 // in seconds
26252 }))(obj)).Type < maxAnim) {
26253 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26258 //mt:if %s.Type == SpriteSheetAnim
26259 AspectRatio [2]uint8
26261 //mt:if %s.Type == VerticalFrameAnim
26264 //mt:if %s.Type != NoAnim
26265 Duration float32 // in seconds
26267 }))(obj)).Type == SpriteSheetAnim {
26269 _, err := io.ReadFull(r, ((*(*(struct {
26272 //mt:if %s.Type == SpriteSheetAnim
26273 AspectRatio [2]uint8
26275 //mt:if %s.Type == VerticalFrameAnim
26278 //mt:if %s.Type != NoAnim
26279 Duration float32 // in seconds
26281 }))(obj)).AspectRatio)[:])
26288 //mt:if %s.Type == SpriteSheetAnim
26289 AspectRatio [2]uint8
26291 //mt:if %s.Type == VerticalFrameAnim
26294 //mt:if %s.Type != NoAnim
26295 Duration float32 // in seconds
26297 }))(obj)).Type == VerticalFrameAnim {
26298 for local314 := range (*(*(struct {
26301 //mt:if %s.Type == SpriteSheetAnim
26302 AspectRatio [2]uint8
26304 //mt:if %s.Type == VerticalFrameAnim
26307 //mt:if %s.Type != NoAnim
26308 Duration float32 // in seconds
26310 }))(obj)).NFrames {
26312 p := &((*(*(struct {
26315 //mt:if %s.Type == SpriteSheetAnim
26316 AspectRatio [2]uint8
26318 //mt:if %s.Type == VerticalFrameAnim
26321 //mt:if %s.Type != NoAnim
26322 Duration float32 // in seconds
26324 }))(obj)).NFrames)[local314]
26332 //mt:if %s.Type == SpriteSheetAnim
26333 AspectRatio [2]uint8
26335 //mt:if %s.Type == VerticalFrameAnim
26338 //mt:if %s.Type != NoAnim
26339 Duration float32 // in seconds
26341 }))(obj)).Type != NoAnim {
26343 p := &(*(*(struct {
26346 //mt:if %s.Type == SpriteSheetAnim
26347 AspectRatio [2]uint8
26349 //mt:if %s.Type == VerticalFrameAnim
26352 //mt:if %s.Type != NoAnim
26353 Duration float32 // in seconds
26356 *p = math.Float32frombits(read32(r))
26361 func (obj *Content) serialize(w io.Writer) {
26363 x := *(*(uint16))(obj)
26364 write16(w, uint16(x))
26368 func (obj *Content) deserialize(r io.Reader) {
26370 p := &*(*(uint16))(obj)
26375 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
26377 x := *(*(uint32))(obj)
26378 write32(w, uint32(x))
26382 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
26384 p := &*(*(uint32))(obj)
26389 func (obj *HUDID) serialize(w io.Writer) {
26391 x := *(*(uint32))(obj)
26392 write32(w, uint32(x))
26396 func (obj *HUDID) deserialize(r io.Reader) {
26398 p := &*(*(uint32))(obj)
26403 func (obj *HUD) serialize(w io.Writer) {
26404 if err := pcall(func() {
26422 }))(obj)).Type).serialize(w)
26427 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
26429 for local315 := range (*(*(struct {
26448 x := ((*(*(struct {
26465 }))(obj)).Pos)[local315]
26466 write32(w, math.Float32bits(x))
26469 if len(([]byte((*(*(struct {
26486 }))(obj)).Name))) > math.MaxUint16 {
26490 x := uint16(len(([]byte((*(*(struct {
26508 write16(w, uint16(x))
26511 _, err := w.Write(([]byte((*(*(struct {
26528 }))(obj)).Name))[:])
26531 for local316 := range (*(*(struct {
26550 x := ((*(*(struct {
26567 }))(obj)).Scale)[local316]
26568 write32(w, math.Float32bits(x))
26571 if len(([]byte((*(*(struct {
26588 }))(obj)).Text))) > math.MaxUint16 {
26592 x := uint16(len(([]byte((*(*(struct {
26610 write16(w, uint16(x))
26613 _, err := w.Write(([]byte((*(*(struct {
26630 }))(obj)).Text))[:])
26652 write32(w, uint32(x))
26673 write32(w, uint32(x))
26694 write32(w, uint32(x))
26696 for local317 := range (*(*(struct {
26715 x := ((*(*(struct {
26732 }))(obj)).Align)[local317]
26733 write32(w, math.Float32bits(x))
26736 for local318 := range (*(*(struct {
26755 x := ((*(*(struct {
26772 }))(obj)).Offset)[local318]
26773 write32(w, math.Float32bits(x))
26776 if err := pcall(func() {
26794 }))(obj)).WorldPos).serialize(w)
26799 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
26801 for local319 := range (*(*(struct {
26820 x := ((*(*(struct {
26837 }))(obj)).Size)[local319]
26838 write32(w, uint32(x))
26860 write16(w, uint16(x))
26862 if len(([]byte((*(*(struct {
26879 }))(obj)).Text2))) > math.MaxUint16 {
26883 x := uint16(len(([]byte((*(*(struct {
26900 }))(obj)).Text2))))
26901 write16(w, uint16(x))
26904 _, err := w.Write(([]byte((*(*(struct {
26921 }))(obj)).Text2))[:])
26943 write32(w, uint32(x))
26947 func (obj *HUD) deserialize(r io.Reader) {
26948 if err := pcall(func() {
26966 }))(obj)).Type).deserialize(r)
26971 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
26973 for local320 := range (*(*(struct {
26992 p := &((*(*(struct {
27009 }))(obj)).Pos)[local320]
27010 *p = math.Float32frombits(read32(r))
27013 var local321 []uint8
27014 var local322 uint16
27019 (local321) = make([]uint8, local322)
27021 _, err := io.ReadFull(r, (local321)[:])
27041 }))(obj)).Name) = string(local321)
27042 for local323 := range (*(*(struct {
27061 p := &((*(*(struct {
27078 }))(obj)).Scale)[local323]
27079 *p = math.Float32frombits(read32(r))
27082 var local324 []uint8
27083 var local325 uint16
27088 (local324) = make([]uint8, local325)
27090 _, err := io.ReadFull(r, (local324)[:])
27110 }))(obj)).Text) = string(local324)
27112 p := &(*(*(struct {
27133 p := &(*(*(struct {
27154 p := &(*(*(struct {
27174 for local326 := range (*(*(struct {
27193 p := &((*(*(struct {
27210 }))(obj)).Align)[local326]
27211 *p = math.Float32frombits(read32(r))
27214 for local327 := range (*(*(struct {
27233 p := &((*(*(struct {
27250 }))(obj)).Offset)[local327]
27251 *p = math.Float32frombits(read32(r))
27254 if err := pcall(func() {
27272 }))(obj)).WorldPos).deserialize(r)
27277 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
27279 for local328 := range (*(*(struct {
27298 p := &((*(*(struct {
27315 }))(obj)).Size)[local328]
27316 *p = int32(read32(r))
27320 p := &(*(*(struct {
27338 *p = int16(read16(r))
27340 var local329 []uint8
27341 var local330 uint16
27346 (local329) = make([]uint8, local330)
27348 _, err := io.ReadFull(r, (local329)[:])
27368 }))(obj)).Text2) = string(local329)
27370 p := &(*(*(struct {
27392 func (obj *HUDField) serialize(w io.Writer) {
27394 x := *(*(uint8))(obj)
27395 write8(w, uint8(x))
27399 func (obj *HUDField) deserialize(r io.Reader) {
27401 p := &*(*(uint8))(obj)
27406 func (obj *HUDStyleFlags) serialize(w io.Writer) {
27408 x := *(*(uint32))(obj)
27409 write32(w, uint32(x))
27413 func (obj *HUDStyleFlags) deserialize(r io.Reader) {
27415 p := &*(*(uint32))(obj)
27420 func (obj *HUDFlags) serialize(w io.Writer) {
27422 x := *(*(uint32))(obj)
27423 write32(w, uint32(x))
27427 func (obj *HUDFlags) deserialize(r io.Reader) {
27429 p := &*(*(uint32))(obj)
27434 func (obj *HotbarParam) serialize(w io.Writer) {
27436 x := *(*(uint16))(obj)
27437 write16(w, uint16(x))
27441 func (obj *HotbarParam) deserialize(r io.Reader) {
27443 p := &*(*(uint16))(obj)
27448 func (obj *Texture) serialize(w io.Writer) {
27449 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
27453 x := uint16(len(([]byte(*(*(string))(obj)))))
27454 write16(w, uint16(x))
27457 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
27462 func (obj *Texture) deserialize(r io.Reader) {
27463 var local331 []uint8
27464 var local332 uint16
27469 (local331) = make([]uint8, local332)
27471 _, err := io.ReadFull(r, (local331)[:])
27474 (*(*(string))(obj)) = string(local331)
27477 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
27479 x := *(*(uint8))(obj)
27480 write8(w, uint8(x))
27484 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
27486 p := &*(*(uint8))(obj)
27491 func (obj *ModChanSig) serialize(w io.Writer) {
27493 x := *(*(uint8))(obj)
27494 write8(w, uint8(x))
27498 func (obj *ModChanSig) deserialize(r io.Reader) {
27500 p := &*(*(uint8))(obj)
27505 func (obj *AOProps) serialize(w io.Writer) {
27507 local333 := uint8(4)
27510 write8(w, uint8(x))
27515 MaxHP uint16 // Player only.
27516 CollideWithNodes bool
27517 Weight float32 // deprecated
27521 VisualSize [3]float32
27523 SpriteSheetSize [2]int16 // in sprites.
27524 SpritePos [2]int16 // in sprite sheet.
27526 MakeFootstepSnds bool
27527 RotateSpeed float32 // in radians per second.
27529 Colors []color.NRGBA
27530 CollideWithAOs bool
27533 FaceRotateDirOff float32 // in degrees.
27536 NametagColor color.NRGBA
27537 FaceRotateSpeed float32 // in degrees per second.
27541 MaxBreath uint16 // Player only.
27542 EyeHeight float32 // Player only.
27543 ZoomFOV float32 // in degrees. Player only.
27544 UseTextureAlpha bool
27545 DmgTextureMod Texture // suffix
27548 NametagBG color.NRGBA
27550 write16(w, uint16(x))
27554 MaxHP uint16 // Player only.
27555 CollideWithNodes bool
27556 Weight float32 // deprecated
27560 VisualSize [3]float32
27562 SpriteSheetSize [2]int16 // in sprites.
27563 SpritePos [2]int16 // in sprite sheet.
27565 MakeFootstepSnds bool
27566 RotateSpeed float32 // in radians per second.
27568 Colors []color.NRGBA
27569 CollideWithAOs bool
27572 FaceRotateDirOff float32 // in degrees.
27575 NametagColor color.NRGBA
27576 FaceRotateSpeed float32 // in degrees per second.
27580 MaxBreath uint16 // Player only.
27581 EyeHeight float32 // Player only.
27582 ZoomFOV float32 // in degrees. Player only.
27583 UseTextureAlpha bool
27584 DmgTextureMod Texture // suffix
27587 NametagBG color.NRGBA
27588 }))(obj)).CollideWithNodes
27597 MaxHP uint16 // Player only.
27598 CollideWithNodes bool
27599 Weight float32 // deprecated
27603 VisualSize [3]float32
27605 SpriteSheetSize [2]int16 // in sprites.
27606 SpritePos [2]int16 // in sprite sheet.
27608 MakeFootstepSnds bool
27609 RotateSpeed float32 // in radians per second.
27611 Colors []color.NRGBA
27612 CollideWithAOs bool
27615 FaceRotateDirOff float32 // in degrees.
27618 NametagColor color.NRGBA
27619 FaceRotateSpeed float32 // in degrees per second.
27623 MaxBreath uint16 // Player only.
27624 EyeHeight float32 // Player only.
27625 ZoomFOV float32 // in degrees. Player only.
27626 UseTextureAlpha bool
27627 DmgTextureMod Texture // suffix
27630 NametagBG color.NRGBA
27632 write32(w, math.Float32bits(x))
27634 if err := pcall(func() {
27636 MaxHP uint16 // Player only.
27637 CollideWithNodes bool
27638 Weight float32 // deprecated
27642 VisualSize [3]float32
27644 SpriteSheetSize [2]int16 // in sprites.
27645 SpritePos [2]int16 // in sprite sheet.
27647 MakeFootstepSnds bool
27648 RotateSpeed float32 // in radians per second.
27650 Colors []color.NRGBA
27651 CollideWithAOs bool
27654 FaceRotateDirOff float32 // in degrees.
27657 NametagColor color.NRGBA
27658 FaceRotateSpeed float32 // in degrees per second.
27662 MaxBreath uint16 // Player only.
27663 EyeHeight float32 // Player only.
27664 ZoomFOV float32 // in degrees. Player only.
27665 UseTextureAlpha bool
27666 DmgTextureMod Texture // suffix
27669 NametagBG color.NRGBA
27670 }))(obj)).ColBox).serialize(w)
27675 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
27677 if err := pcall(func() {
27679 MaxHP uint16 // Player only.
27680 CollideWithNodes bool
27681 Weight float32 // deprecated
27685 VisualSize [3]float32
27687 SpriteSheetSize [2]int16 // in sprites.
27688 SpritePos [2]int16 // in sprite sheet.
27690 MakeFootstepSnds bool
27691 RotateSpeed float32 // in radians per second.
27693 Colors []color.NRGBA
27694 CollideWithAOs bool
27697 FaceRotateDirOff float32 // in degrees.
27700 NametagColor color.NRGBA
27701 FaceRotateSpeed float32 // in degrees per second.
27705 MaxBreath uint16 // Player only.
27706 EyeHeight float32 // Player only.
27707 ZoomFOV float32 // in degrees. Player only.
27708 UseTextureAlpha bool
27709 DmgTextureMod Texture // suffix
27712 NametagBG color.NRGBA
27713 }))(obj)).SelBox).serialize(w)
27718 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
27722 MaxHP uint16 // Player only.
27723 CollideWithNodes bool
27724 Weight float32 // deprecated
27728 VisualSize [3]float32
27730 SpriteSheetSize [2]int16 // in sprites.
27731 SpritePos [2]int16 // in sprite sheet.
27733 MakeFootstepSnds bool
27734 RotateSpeed float32 // in radians per second.
27736 Colors []color.NRGBA
27737 CollideWithAOs bool
27740 FaceRotateDirOff float32 // in degrees.
27743 NametagColor color.NRGBA
27744 FaceRotateSpeed float32 // in degrees per second.
27748 MaxBreath uint16 // Player only.
27749 EyeHeight float32 // Player only.
27750 ZoomFOV float32 // in degrees. Player only.
27751 UseTextureAlpha bool
27752 DmgTextureMod Texture // suffix
27755 NametagBG color.NRGBA
27756 }))(obj)).Pointable
27763 if len(([]byte((*(*(struct {
27764 MaxHP uint16 // Player only.
27765 CollideWithNodes bool
27766 Weight float32 // deprecated
27770 VisualSize [3]float32
27772 SpriteSheetSize [2]int16 // in sprites.
27773 SpritePos [2]int16 // in sprite sheet.
27775 MakeFootstepSnds bool
27776 RotateSpeed float32 // in radians per second.
27778 Colors []color.NRGBA
27779 CollideWithAOs bool
27782 FaceRotateDirOff float32 // in degrees.
27785 NametagColor color.NRGBA
27786 FaceRotateSpeed float32 // in degrees per second.
27790 MaxBreath uint16 // Player only.
27791 EyeHeight float32 // Player only.
27792 ZoomFOV float32 // in degrees. Player only.
27793 UseTextureAlpha bool
27794 DmgTextureMod Texture // suffix
27797 NametagBG color.NRGBA
27798 }))(obj)).Visual))) > math.MaxUint16 {
27802 x := uint16(len(([]byte((*(*(struct {
27803 MaxHP uint16 // Player only.
27804 CollideWithNodes bool
27805 Weight float32 // deprecated
27809 VisualSize [3]float32
27811 SpriteSheetSize [2]int16 // in sprites.
27812 SpritePos [2]int16 // in sprite sheet.
27814 MakeFootstepSnds bool
27815 RotateSpeed float32 // in radians per second.
27817 Colors []color.NRGBA
27818 CollideWithAOs bool
27821 FaceRotateDirOff float32 // in degrees.
27824 NametagColor color.NRGBA
27825 FaceRotateSpeed float32 // in degrees per second.
27829 MaxBreath uint16 // Player only.
27830 EyeHeight float32 // Player only.
27831 ZoomFOV float32 // in degrees. Player only.
27832 UseTextureAlpha bool
27833 DmgTextureMod Texture // suffix
27836 NametagBG color.NRGBA
27837 }))(obj)).Visual))))
27838 write16(w, uint16(x))
27841 _, err := w.Write(([]byte((*(*(struct {
27842 MaxHP uint16 // Player only.
27843 CollideWithNodes bool
27844 Weight float32 // deprecated
27848 VisualSize [3]float32
27850 SpriteSheetSize [2]int16 // in sprites.
27851 SpritePos [2]int16 // in sprite sheet.
27853 MakeFootstepSnds bool
27854 RotateSpeed float32 // in radians per second.
27856 Colors []color.NRGBA
27857 CollideWithAOs bool
27860 FaceRotateDirOff float32 // in degrees.
27863 NametagColor color.NRGBA
27864 FaceRotateSpeed float32 // in degrees per second.
27868 MaxBreath uint16 // Player only.
27869 EyeHeight float32 // Player only.
27870 ZoomFOV float32 // in degrees. Player only.
27871 UseTextureAlpha bool
27872 DmgTextureMod Texture // suffix
27875 NametagBG color.NRGBA
27876 }))(obj)).Visual))[:])
27879 for local334 := range (*(*(struct {
27880 MaxHP uint16 // Player only.
27881 CollideWithNodes bool
27882 Weight float32 // deprecated
27886 VisualSize [3]float32
27888 SpriteSheetSize [2]int16 // in sprites.
27889 SpritePos [2]int16 // in sprite sheet.
27891 MakeFootstepSnds bool
27892 RotateSpeed float32 // in radians per second.
27894 Colors []color.NRGBA
27895 CollideWithAOs bool
27898 FaceRotateDirOff float32 // in degrees.
27901 NametagColor color.NRGBA
27902 FaceRotateSpeed float32 // in degrees per second.
27906 MaxBreath uint16 // Player only.
27907 EyeHeight float32 // Player only.
27908 ZoomFOV float32 // in degrees. Player only.
27909 UseTextureAlpha bool
27910 DmgTextureMod Texture // suffix
27913 NametagBG color.NRGBA
27914 }))(obj)).VisualSize {
27916 x := ((*(*(struct {
27917 MaxHP uint16 // Player only.
27918 CollideWithNodes bool
27919 Weight float32 // deprecated
27923 VisualSize [3]float32
27925 SpriteSheetSize [2]int16 // in sprites.
27926 SpritePos [2]int16 // in sprite sheet.
27928 MakeFootstepSnds bool
27929 RotateSpeed float32 // in radians per second.
27931 Colors []color.NRGBA
27932 CollideWithAOs bool
27935 FaceRotateDirOff float32 // in degrees.
27938 NametagColor color.NRGBA
27939 FaceRotateSpeed float32 // in degrees per second.
27943 MaxBreath uint16 // Player only.
27944 EyeHeight float32 // Player only.
27945 ZoomFOV float32 // in degrees. Player only.
27946 UseTextureAlpha bool
27947 DmgTextureMod Texture // suffix
27950 NametagBG color.NRGBA
27951 }))(obj)).VisualSize)[local334]
27952 write32(w, math.Float32bits(x))
27955 if len(((*(*(struct {
27956 MaxHP uint16 // Player only.
27957 CollideWithNodes bool
27958 Weight float32 // deprecated
27962 VisualSize [3]float32
27964 SpriteSheetSize [2]int16 // in sprites.
27965 SpritePos [2]int16 // in sprite sheet.
27967 MakeFootstepSnds bool
27968 RotateSpeed float32 // in radians per second.
27970 Colors []color.NRGBA
27971 CollideWithAOs bool
27974 FaceRotateDirOff float32 // in degrees.
27977 NametagColor color.NRGBA
27978 FaceRotateSpeed float32 // in degrees per second.
27982 MaxBreath uint16 // Player only.
27983 EyeHeight float32 // Player only.
27984 ZoomFOV float32 // in degrees. Player only.
27985 UseTextureAlpha bool
27986 DmgTextureMod Texture // suffix
27989 NametagBG color.NRGBA
27990 }))(obj)).Textures)) > math.MaxUint16 {
27994 x := uint16(len(((*(*(struct {
27995 MaxHP uint16 // Player only.
27996 CollideWithNodes bool
27997 Weight float32 // deprecated
28001 VisualSize [3]float32
28003 SpriteSheetSize [2]int16 // in sprites.
28004 SpritePos [2]int16 // in sprite sheet.
28006 MakeFootstepSnds bool
28007 RotateSpeed float32 // in radians per second.
28009 Colors []color.NRGBA
28010 CollideWithAOs bool
28013 FaceRotateDirOff float32 // in degrees.
28016 NametagColor color.NRGBA
28017 FaceRotateSpeed float32 // in degrees per second.
28021 MaxBreath uint16 // Player only.
28022 EyeHeight float32 // Player only.
28023 ZoomFOV float32 // in degrees. Player only.
28024 UseTextureAlpha bool
28025 DmgTextureMod Texture // suffix
28028 NametagBG color.NRGBA
28029 }))(obj)).Textures)))
28030 write16(w, uint16(x))
28032 for local335 := range (*(*(struct {
28033 MaxHP uint16 // Player only.
28034 CollideWithNodes bool
28035 Weight float32 // deprecated
28039 VisualSize [3]float32
28041 SpriteSheetSize [2]int16 // in sprites.
28042 SpritePos [2]int16 // in sprite sheet.
28044 MakeFootstepSnds bool
28045 RotateSpeed float32 // in radians per second.
28047 Colors []color.NRGBA
28048 CollideWithAOs bool
28051 FaceRotateDirOff float32 // in degrees.
28054 NametagColor color.NRGBA
28055 FaceRotateSpeed float32 // in degrees per second.
28059 MaxBreath uint16 // Player only.
28060 EyeHeight float32 // Player only.
28061 ZoomFOV float32 // in degrees. Player only.
28062 UseTextureAlpha bool
28063 DmgTextureMod Texture // suffix
28066 NametagBG color.NRGBA
28067 }))(obj)).Textures {
28068 if err := pcall(func() {
28070 MaxHP uint16 // Player only.
28071 CollideWithNodes bool
28072 Weight float32 // deprecated
28076 VisualSize [3]float32
28078 SpriteSheetSize [2]int16 // in sprites.
28079 SpritePos [2]int16 // in sprite sheet.
28081 MakeFootstepSnds bool
28082 RotateSpeed float32 // in radians per second.
28084 Colors []color.NRGBA
28085 CollideWithAOs bool
28088 FaceRotateDirOff float32 // in degrees.
28091 NametagColor color.NRGBA
28092 FaceRotateSpeed float32 // in degrees per second.
28096 MaxBreath uint16 // Player only.
28097 EyeHeight float32 // Player only.
28098 ZoomFOV float32 // in degrees. Player only.
28099 UseTextureAlpha bool
28100 DmgTextureMod Texture // suffix
28103 NametagBG color.NRGBA
28104 }))(obj)).Textures)[local335]).serialize(w)
28109 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
28112 for local336 := range (*(*(struct {
28113 MaxHP uint16 // Player only.
28114 CollideWithNodes bool
28115 Weight float32 // deprecated
28119 VisualSize [3]float32
28121 SpriteSheetSize [2]int16 // in sprites.
28122 SpritePos [2]int16 // in sprite sheet.
28124 MakeFootstepSnds bool
28125 RotateSpeed float32 // in radians per second.
28127 Colors []color.NRGBA
28128 CollideWithAOs bool
28131 FaceRotateDirOff float32 // in degrees.
28134 NametagColor color.NRGBA
28135 FaceRotateSpeed float32 // in degrees per second.
28139 MaxBreath uint16 // Player only.
28140 EyeHeight float32 // Player only.
28141 ZoomFOV float32 // in degrees. Player only.
28142 UseTextureAlpha bool
28143 DmgTextureMod Texture // suffix
28146 NametagBG color.NRGBA
28147 }))(obj)).SpriteSheetSize {
28149 x := ((*(*(struct {
28150 MaxHP uint16 // Player only.
28151 CollideWithNodes bool
28152 Weight float32 // deprecated
28156 VisualSize [3]float32
28158 SpriteSheetSize [2]int16 // in sprites.
28159 SpritePos [2]int16 // in sprite sheet.
28161 MakeFootstepSnds bool
28162 RotateSpeed float32 // in radians per second.
28164 Colors []color.NRGBA
28165 CollideWithAOs bool
28168 FaceRotateDirOff float32 // in degrees.
28171 NametagColor color.NRGBA
28172 FaceRotateSpeed float32 // in degrees per second.
28176 MaxBreath uint16 // Player only.
28177 EyeHeight float32 // Player only.
28178 ZoomFOV float32 // in degrees. Player only.
28179 UseTextureAlpha bool
28180 DmgTextureMod Texture // suffix
28183 NametagBG color.NRGBA
28184 }))(obj)).SpriteSheetSize)[local336]
28185 write16(w, uint16(x))
28188 for local337 := range (*(*(struct {
28189 MaxHP uint16 // Player only.
28190 CollideWithNodes bool
28191 Weight float32 // deprecated
28195 VisualSize [3]float32
28197 SpriteSheetSize [2]int16 // in sprites.
28198 SpritePos [2]int16 // in sprite sheet.
28200 MakeFootstepSnds bool
28201 RotateSpeed float32 // in radians per second.
28203 Colors []color.NRGBA
28204 CollideWithAOs bool
28207 FaceRotateDirOff float32 // in degrees.
28210 NametagColor color.NRGBA
28211 FaceRotateSpeed float32 // in degrees per second.
28215 MaxBreath uint16 // Player only.
28216 EyeHeight float32 // Player only.
28217 ZoomFOV float32 // in degrees. Player only.
28218 UseTextureAlpha bool
28219 DmgTextureMod Texture // suffix
28222 NametagBG color.NRGBA
28223 }))(obj)).SpritePos {
28225 x := ((*(*(struct {
28226 MaxHP uint16 // Player only.
28227 CollideWithNodes bool
28228 Weight float32 // deprecated
28232 VisualSize [3]float32
28234 SpriteSheetSize [2]int16 // in sprites.
28235 SpritePos [2]int16 // in sprite sheet.
28237 MakeFootstepSnds bool
28238 RotateSpeed float32 // in radians per second.
28240 Colors []color.NRGBA
28241 CollideWithAOs bool
28244 FaceRotateDirOff float32 // in degrees.
28247 NametagColor color.NRGBA
28248 FaceRotateSpeed float32 // in degrees per second.
28252 MaxBreath uint16 // Player only.
28253 EyeHeight float32 // Player only.
28254 ZoomFOV float32 // in degrees. Player only.
28255 UseTextureAlpha bool
28256 DmgTextureMod Texture // suffix
28259 NametagBG color.NRGBA
28260 }))(obj)).SpritePos)[local337]
28261 write16(w, uint16(x))
28266 MaxHP uint16 // Player only.
28267 CollideWithNodes bool
28268 Weight float32 // deprecated
28272 VisualSize [3]float32
28274 SpriteSheetSize [2]int16 // in sprites.
28275 SpritePos [2]int16 // in sprite sheet.
28277 MakeFootstepSnds bool
28278 RotateSpeed float32 // in radians per second.
28280 Colors []color.NRGBA
28281 CollideWithAOs bool
28284 FaceRotateDirOff float32 // in degrees.
28287 NametagColor color.NRGBA
28288 FaceRotateSpeed float32 // in degrees per second.
28292 MaxBreath uint16 // Player only.
28293 EyeHeight float32 // Player only.
28294 ZoomFOV float32 // in degrees. Player only.
28295 UseTextureAlpha bool
28296 DmgTextureMod Texture // suffix
28299 NametagBG color.NRGBA
28309 MaxHP uint16 // Player only.
28310 CollideWithNodes bool
28311 Weight float32 // deprecated
28315 VisualSize [3]float32
28317 SpriteSheetSize [2]int16 // in sprites.
28318 SpritePos [2]int16 // in sprite sheet.
28320 MakeFootstepSnds bool
28321 RotateSpeed float32 // in radians per second.
28323 Colors []color.NRGBA
28324 CollideWithAOs bool
28327 FaceRotateDirOff float32 // in degrees.
28330 NametagColor color.NRGBA
28331 FaceRotateSpeed float32 // in degrees per second.
28335 MaxBreath uint16 // Player only.
28336 EyeHeight float32 // Player only.
28337 ZoomFOV float32 // in degrees. Player only.
28338 UseTextureAlpha bool
28339 DmgTextureMod Texture // suffix
28342 NametagBG color.NRGBA
28343 }))(obj)).MakeFootstepSnds
28352 MaxHP uint16 // Player only.
28353 CollideWithNodes bool
28354 Weight float32 // deprecated
28358 VisualSize [3]float32
28360 SpriteSheetSize [2]int16 // in sprites.
28361 SpritePos [2]int16 // in sprite sheet.
28363 MakeFootstepSnds bool
28364 RotateSpeed float32 // in radians per second.
28366 Colors []color.NRGBA
28367 CollideWithAOs bool
28370 FaceRotateDirOff float32 // in degrees.
28373 NametagColor color.NRGBA
28374 FaceRotateSpeed float32 // in degrees per second.
28378 MaxBreath uint16 // Player only.
28379 EyeHeight float32 // Player only.
28380 ZoomFOV float32 // in degrees. Player only.
28381 UseTextureAlpha bool
28382 DmgTextureMod Texture // suffix
28385 NametagBG color.NRGBA
28386 }))(obj)).RotateSpeed
28387 write32(w, math.Float32bits(x))
28389 if len(([]byte((*(*(struct {
28390 MaxHP uint16 // Player only.
28391 CollideWithNodes bool
28392 Weight float32 // deprecated
28396 VisualSize [3]float32
28398 SpriteSheetSize [2]int16 // in sprites.
28399 SpritePos [2]int16 // in sprite sheet.
28401 MakeFootstepSnds bool
28402 RotateSpeed float32 // in radians per second.
28404 Colors []color.NRGBA
28405 CollideWithAOs bool
28408 FaceRotateDirOff float32 // in degrees.
28411 NametagColor color.NRGBA
28412 FaceRotateSpeed float32 // in degrees per second.
28416 MaxBreath uint16 // Player only.
28417 EyeHeight float32 // Player only.
28418 ZoomFOV float32 // in degrees. Player only.
28419 UseTextureAlpha bool
28420 DmgTextureMod Texture // suffix
28423 NametagBG color.NRGBA
28424 }))(obj)).Mesh))) > math.MaxUint16 {
28428 x := uint16(len(([]byte((*(*(struct {
28429 MaxHP uint16 // Player only.
28430 CollideWithNodes bool
28431 Weight float32 // deprecated
28435 VisualSize [3]float32
28437 SpriteSheetSize [2]int16 // in sprites.
28438 SpritePos [2]int16 // in sprite sheet.
28440 MakeFootstepSnds bool
28441 RotateSpeed float32 // in radians per second.
28443 Colors []color.NRGBA
28444 CollideWithAOs bool
28447 FaceRotateDirOff float32 // in degrees.
28450 NametagColor color.NRGBA
28451 FaceRotateSpeed float32 // in degrees per second.
28455 MaxBreath uint16 // Player only.
28456 EyeHeight float32 // Player only.
28457 ZoomFOV float32 // in degrees. Player only.
28458 UseTextureAlpha bool
28459 DmgTextureMod Texture // suffix
28462 NametagBG color.NRGBA
28464 write16(w, uint16(x))
28467 _, err := w.Write(([]byte((*(*(struct {
28468 MaxHP uint16 // Player only.
28469 CollideWithNodes bool
28470 Weight float32 // deprecated
28474 VisualSize [3]float32
28476 SpriteSheetSize [2]int16 // in sprites.
28477 SpritePos [2]int16 // in sprite sheet.
28479 MakeFootstepSnds bool
28480 RotateSpeed float32 // in radians per second.
28482 Colors []color.NRGBA
28483 CollideWithAOs bool
28486 FaceRotateDirOff float32 // in degrees.
28489 NametagColor color.NRGBA
28490 FaceRotateSpeed float32 // in degrees per second.
28494 MaxBreath uint16 // Player only.
28495 EyeHeight float32 // Player only.
28496 ZoomFOV float32 // in degrees. Player only.
28497 UseTextureAlpha bool
28498 DmgTextureMod Texture // suffix
28501 NametagBG color.NRGBA
28502 }))(obj)).Mesh))[:])
28505 if len(((*(*(struct {
28506 MaxHP uint16 // Player only.
28507 CollideWithNodes bool
28508 Weight float32 // deprecated
28512 VisualSize [3]float32
28514 SpriteSheetSize [2]int16 // in sprites.
28515 SpritePos [2]int16 // in sprite sheet.
28517 MakeFootstepSnds bool
28518 RotateSpeed float32 // in radians per second.
28520 Colors []color.NRGBA
28521 CollideWithAOs bool
28524 FaceRotateDirOff float32 // in degrees.
28527 NametagColor color.NRGBA
28528 FaceRotateSpeed float32 // in degrees per second.
28532 MaxBreath uint16 // Player only.
28533 EyeHeight float32 // Player only.
28534 ZoomFOV float32 // in degrees. Player only.
28535 UseTextureAlpha bool
28536 DmgTextureMod Texture // suffix
28539 NametagBG color.NRGBA
28540 }))(obj)).Colors)) > math.MaxUint16 {
28544 x := uint16(len(((*(*(struct {
28545 MaxHP uint16 // Player only.
28546 CollideWithNodes bool
28547 Weight float32 // deprecated
28551 VisualSize [3]float32
28553 SpriteSheetSize [2]int16 // in sprites.
28554 SpritePos [2]int16 // in sprite sheet.
28556 MakeFootstepSnds bool
28557 RotateSpeed float32 // in radians per second.
28559 Colors []color.NRGBA
28560 CollideWithAOs bool
28563 FaceRotateDirOff float32 // in degrees.
28566 NametagColor color.NRGBA
28567 FaceRotateSpeed float32 // in degrees per second.
28571 MaxBreath uint16 // Player only.
28572 EyeHeight float32 // Player only.
28573 ZoomFOV float32 // in degrees. Player only.
28574 UseTextureAlpha bool
28575 DmgTextureMod Texture // suffix
28578 NametagBG color.NRGBA
28579 }))(obj)).Colors)))
28580 write16(w, uint16(x))
28582 for local338 := range (*(*(struct {
28583 MaxHP uint16 // Player only.
28584 CollideWithNodes bool
28585 Weight float32 // deprecated
28589 VisualSize [3]float32
28591 SpriteSheetSize [2]int16 // in sprites.
28592 SpritePos [2]int16 // in sprite sheet.
28594 MakeFootstepSnds bool
28595 RotateSpeed float32 // in radians per second.
28597 Colors []color.NRGBA
28598 CollideWithAOs bool
28601 FaceRotateDirOff float32 // in degrees.
28604 NametagColor color.NRGBA
28605 FaceRotateSpeed float32 // in degrees per second.
28609 MaxBreath uint16 // Player only.
28610 EyeHeight float32 // Player only.
28611 ZoomFOV float32 // in degrees. Player only.
28612 UseTextureAlpha bool
28613 DmgTextureMod Texture // suffix
28616 NametagBG color.NRGBA
28619 x := ((*(*(struct {
28620 MaxHP uint16 // Player only.
28621 CollideWithNodes bool
28622 Weight float32 // deprecated
28626 VisualSize [3]float32
28628 SpriteSheetSize [2]int16 // in sprites.
28629 SpritePos [2]int16 // in sprite sheet.
28631 MakeFootstepSnds bool
28632 RotateSpeed float32 // in radians per second.
28634 Colors []color.NRGBA
28635 CollideWithAOs bool
28638 FaceRotateDirOff float32 // in degrees.
28641 NametagColor color.NRGBA
28642 FaceRotateSpeed float32 // in degrees per second.
28646 MaxBreath uint16 // Player only.
28647 EyeHeight float32 // Player only.
28648 ZoomFOV float32 // in degrees. Player only.
28649 UseTextureAlpha bool
28650 DmgTextureMod Texture // suffix
28653 NametagBG color.NRGBA
28654 }))(obj)).Colors)[local338]
28655 w.Write([]byte{x.A, x.R, x.G, x.B})
28660 MaxHP uint16 // Player only.
28661 CollideWithNodes bool
28662 Weight float32 // deprecated
28666 VisualSize [3]float32
28668 SpriteSheetSize [2]int16 // in sprites.
28669 SpritePos [2]int16 // in sprite sheet.
28671 MakeFootstepSnds bool
28672 RotateSpeed float32 // in radians per second.
28674 Colors []color.NRGBA
28675 CollideWithAOs bool
28678 FaceRotateDirOff float32 // in degrees.
28681 NametagColor color.NRGBA
28682 FaceRotateSpeed float32 // in degrees per second.
28686 MaxBreath uint16 // Player only.
28687 EyeHeight float32 // Player only.
28688 ZoomFOV float32 // in degrees. Player only.
28689 UseTextureAlpha bool
28690 DmgTextureMod Texture // suffix
28693 NametagBG color.NRGBA
28694 }))(obj)).CollideWithAOs
28703 MaxHP uint16 // Player only.
28704 CollideWithNodes bool
28705 Weight float32 // deprecated
28709 VisualSize [3]float32
28711 SpriteSheetSize [2]int16 // in sprites.
28712 SpritePos [2]int16 // in sprite sheet.
28714 MakeFootstepSnds bool
28715 RotateSpeed float32 // in radians per second.
28717 Colors []color.NRGBA
28718 CollideWithAOs bool
28721 FaceRotateDirOff float32 // in degrees.
28724 NametagColor color.NRGBA
28725 FaceRotateSpeed float32 // in degrees per second.
28729 MaxBreath uint16 // Player only.
28730 EyeHeight float32 // Player only.
28731 ZoomFOV float32 // in degrees. Player only.
28732 UseTextureAlpha bool
28733 DmgTextureMod Texture // suffix
28736 NametagBG color.NRGBA
28737 }))(obj)).StepHeight
28738 write32(w, math.Float32bits(x))
28742 MaxHP uint16 // Player only.
28743 CollideWithNodes bool
28744 Weight float32 // deprecated
28748 VisualSize [3]float32
28750 SpriteSheetSize [2]int16 // in sprites.
28751 SpritePos [2]int16 // in sprite sheet.
28753 MakeFootstepSnds bool
28754 RotateSpeed float32 // in radians per second.
28756 Colors []color.NRGBA
28757 CollideWithAOs bool
28760 FaceRotateDirOff float32 // in degrees.
28763 NametagColor color.NRGBA
28764 FaceRotateSpeed float32 // in degrees per second.
28768 MaxBreath uint16 // Player only.
28769 EyeHeight float32 // Player only.
28770 ZoomFOV float32 // in degrees. Player only.
28771 UseTextureAlpha bool
28772 DmgTextureMod Texture // suffix
28775 NametagBG color.NRGBA
28776 }))(obj)).FaceRotateDir
28785 MaxHP uint16 // Player only.
28786 CollideWithNodes bool
28787 Weight float32 // deprecated
28791 VisualSize [3]float32
28793 SpriteSheetSize [2]int16 // in sprites.
28794 SpritePos [2]int16 // in sprite sheet.
28796 MakeFootstepSnds bool
28797 RotateSpeed float32 // in radians per second.
28799 Colors []color.NRGBA
28800 CollideWithAOs bool
28803 FaceRotateDirOff float32 // in degrees.
28806 NametagColor color.NRGBA
28807 FaceRotateSpeed float32 // in degrees per second.
28811 MaxBreath uint16 // Player only.
28812 EyeHeight float32 // Player only.
28813 ZoomFOV float32 // in degrees. Player only.
28814 UseTextureAlpha bool
28815 DmgTextureMod Texture // suffix
28818 NametagBG color.NRGBA
28819 }))(obj)).FaceRotateDirOff
28820 write32(w, math.Float32bits(x))
28824 MaxHP uint16 // Player only.
28825 CollideWithNodes bool
28826 Weight float32 // deprecated
28830 VisualSize [3]float32
28832 SpriteSheetSize [2]int16 // in sprites.
28833 SpritePos [2]int16 // in sprite sheet.
28835 MakeFootstepSnds bool
28836 RotateSpeed float32 // in radians per second.
28838 Colors []color.NRGBA
28839 CollideWithAOs bool
28842 FaceRotateDirOff float32 // in degrees.
28845 NametagColor color.NRGBA
28846 FaceRotateSpeed float32 // in degrees per second.
28850 MaxBreath uint16 // Player only.
28851 EyeHeight float32 // Player only.
28852 ZoomFOV float32 // in degrees. Player only.
28853 UseTextureAlpha bool
28854 DmgTextureMod Texture // suffix
28857 NametagBG color.NRGBA
28858 }))(obj)).BackfaceCull
28865 if len(([]byte((*(*(struct {
28866 MaxHP uint16 // Player only.
28867 CollideWithNodes bool
28868 Weight float32 // deprecated
28872 VisualSize [3]float32
28874 SpriteSheetSize [2]int16 // in sprites.
28875 SpritePos [2]int16 // in sprite sheet.
28877 MakeFootstepSnds bool
28878 RotateSpeed float32 // in radians per second.
28880 Colors []color.NRGBA
28881 CollideWithAOs bool
28884 FaceRotateDirOff float32 // in degrees.
28887 NametagColor color.NRGBA
28888 FaceRotateSpeed float32 // in degrees per second.
28892 MaxBreath uint16 // Player only.
28893 EyeHeight float32 // Player only.
28894 ZoomFOV float32 // in degrees. Player only.
28895 UseTextureAlpha bool
28896 DmgTextureMod Texture // suffix
28899 NametagBG color.NRGBA
28900 }))(obj)).Nametag))) > math.MaxUint16 {
28904 x := uint16(len(([]byte((*(*(struct {
28905 MaxHP uint16 // Player only.
28906 CollideWithNodes bool
28907 Weight float32 // deprecated
28911 VisualSize [3]float32
28913 SpriteSheetSize [2]int16 // in sprites.
28914 SpritePos [2]int16 // in sprite sheet.
28916 MakeFootstepSnds bool
28917 RotateSpeed float32 // in radians per second.
28919 Colors []color.NRGBA
28920 CollideWithAOs bool
28923 FaceRotateDirOff float32 // in degrees.
28926 NametagColor color.NRGBA
28927 FaceRotateSpeed float32 // in degrees per second.
28931 MaxBreath uint16 // Player only.
28932 EyeHeight float32 // Player only.
28933 ZoomFOV float32 // in degrees. Player only.
28934 UseTextureAlpha bool
28935 DmgTextureMod Texture // suffix
28938 NametagBG color.NRGBA
28939 }))(obj)).Nametag))))
28940 write16(w, uint16(x))
28943 _, err := w.Write(([]byte((*(*(struct {
28944 MaxHP uint16 // Player only.
28945 CollideWithNodes bool
28946 Weight float32 // deprecated
28950 VisualSize [3]float32
28952 SpriteSheetSize [2]int16 // in sprites.
28953 SpritePos [2]int16 // in sprite sheet.
28955 MakeFootstepSnds bool
28956 RotateSpeed float32 // in radians per second.
28958 Colors []color.NRGBA
28959 CollideWithAOs bool
28962 FaceRotateDirOff float32 // in degrees.
28965 NametagColor color.NRGBA
28966 FaceRotateSpeed float32 // in degrees per second.
28970 MaxBreath uint16 // Player only.
28971 EyeHeight float32 // Player only.
28972 ZoomFOV float32 // in degrees. Player only.
28973 UseTextureAlpha bool
28974 DmgTextureMod Texture // suffix
28977 NametagBG color.NRGBA
28978 }))(obj)).Nametag))[:])
28983 MaxHP uint16 // Player only.
28984 CollideWithNodes bool
28985 Weight float32 // deprecated
28989 VisualSize [3]float32
28991 SpriteSheetSize [2]int16 // in sprites.
28992 SpritePos [2]int16 // in sprite sheet.
28994 MakeFootstepSnds bool
28995 RotateSpeed float32 // in radians per second.
28997 Colors []color.NRGBA
28998 CollideWithAOs bool
29001 FaceRotateDirOff float32 // in degrees.
29004 NametagColor color.NRGBA
29005 FaceRotateSpeed float32 // in degrees per second.
29009 MaxBreath uint16 // Player only.
29010 EyeHeight float32 // Player only.
29011 ZoomFOV float32 // in degrees. Player only.
29012 UseTextureAlpha bool
29013 DmgTextureMod Texture // suffix
29016 NametagBG color.NRGBA
29017 }))(obj)).NametagColor
29018 w.Write([]byte{x.A, x.R, x.G, x.B})
29022 MaxHP uint16 // Player only.
29023 CollideWithNodes bool
29024 Weight float32 // deprecated
29028 VisualSize [3]float32
29030 SpriteSheetSize [2]int16 // in sprites.
29031 SpritePos [2]int16 // in sprite sheet.
29033 MakeFootstepSnds bool
29034 RotateSpeed float32 // in radians per second.
29036 Colors []color.NRGBA
29037 CollideWithAOs bool
29040 FaceRotateDirOff float32 // in degrees.
29043 NametagColor color.NRGBA
29044 FaceRotateSpeed float32 // in degrees per second.
29048 MaxBreath uint16 // Player only.
29049 EyeHeight float32 // Player only.
29050 ZoomFOV float32 // in degrees. Player only.
29051 UseTextureAlpha bool
29052 DmgTextureMod Texture // suffix
29055 NametagBG color.NRGBA
29056 }))(obj)).FaceRotateSpeed
29057 write32(w, math.Float32bits(x))
29059 if len(([]byte((*(*(struct {
29060 MaxHP uint16 // Player only.
29061 CollideWithNodes bool
29062 Weight float32 // deprecated
29066 VisualSize [3]float32
29068 SpriteSheetSize [2]int16 // in sprites.
29069 SpritePos [2]int16 // in sprite sheet.
29071 MakeFootstepSnds bool
29072 RotateSpeed float32 // in radians per second.
29074 Colors []color.NRGBA
29075 CollideWithAOs bool
29078 FaceRotateDirOff float32 // in degrees.
29081 NametagColor color.NRGBA
29082 FaceRotateSpeed float32 // in degrees per second.
29086 MaxBreath uint16 // Player only.
29087 EyeHeight float32 // Player only.
29088 ZoomFOV float32 // in degrees. Player only.
29089 UseTextureAlpha bool
29090 DmgTextureMod Texture // suffix
29093 NametagBG color.NRGBA
29094 }))(obj)).Infotext))) > math.MaxUint16 {
29098 x := uint16(len(([]byte((*(*(struct {
29099 MaxHP uint16 // Player only.
29100 CollideWithNodes bool
29101 Weight float32 // deprecated
29105 VisualSize [3]float32
29107 SpriteSheetSize [2]int16 // in sprites.
29108 SpritePos [2]int16 // in sprite sheet.
29110 MakeFootstepSnds bool
29111 RotateSpeed float32 // in radians per second.
29113 Colors []color.NRGBA
29114 CollideWithAOs bool
29117 FaceRotateDirOff float32 // in degrees.
29120 NametagColor color.NRGBA
29121 FaceRotateSpeed float32 // in degrees per second.
29125 MaxBreath uint16 // Player only.
29126 EyeHeight float32 // Player only.
29127 ZoomFOV float32 // in degrees. Player only.
29128 UseTextureAlpha bool
29129 DmgTextureMod Texture // suffix
29132 NametagBG color.NRGBA
29133 }))(obj)).Infotext))))
29134 write16(w, uint16(x))
29137 _, err := w.Write(([]byte((*(*(struct {
29138 MaxHP uint16 // Player only.
29139 CollideWithNodes bool
29140 Weight float32 // deprecated
29144 VisualSize [3]float32
29146 SpriteSheetSize [2]int16 // in sprites.
29147 SpritePos [2]int16 // in sprite sheet.
29149 MakeFootstepSnds bool
29150 RotateSpeed float32 // in radians per second.
29152 Colors []color.NRGBA
29153 CollideWithAOs bool
29156 FaceRotateDirOff float32 // in degrees.
29159 NametagColor color.NRGBA
29160 FaceRotateSpeed float32 // in degrees per second.
29164 MaxBreath uint16 // Player only.
29165 EyeHeight float32 // Player only.
29166 ZoomFOV float32 // in degrees. Player only.
29167 UseTextureAlpha bool
29168 DmgTextureMod Texture // suffix
29171 NametagBG color.NRGBA
29172 }))(obj)).Infotext))[:])
29175 if len(([]byte((*(*(struct {
29176 MaxHP uint16 // Player only.
29177 CollideWithNodes bool
29178 Weight float32 // deprecated
29182 VisualSize [3]float32
29184 SpriteSheetSize [2]int16 // in sprites.
29185 SpritePos [2]int16 // in sprite sheet.
29187 MakeFootstepSnds bool
29188 RotateSpeed float32 // in radians per second.
29190 Colors []color.NRGBA
29191 CollideWithAOs bool
29194 FaceRotateDirOff float32 // in degrees.
29197 NametagColor color.NRGBA
29198 FaceRotateSpeed float32 // in degrees per second.
29202 MaxBreath uint16 // Player only.
29203 EyeHeight float32 // Player only.
29204 ZoomFOV float32 // in degrees. Player only.
29205 UseTextureAlpha bool
29206 DmgTextureMod Texture // suffix
29209 NametagBG color.NRGBA
29210 }))(obj)).Itemstring))) > math.MaxUint16 {
29214 x := uint16(len(([]byte((*(*(struct {
29215 MaxHP uint16 // Player only.
29216 CollideWithNodes bool
29217 Weight float32 // deprecated
29221 VisualSize [3]float32
29223 SpriteSheetSize [2]int16 // in sprites.
29224 SpritePos [2]int16 // in sprite sheet.
29226 MakeFootstepSnds bool
29227 RotateSpeed float32 // in radians per second.
29229 Colors []color.NRGBA
29230 CollideWithAOs bool
29233 FaceRotateDirOff float32 // in degrees.
29236 NametagColor color.NRGBA
29237 FaceRotateSpeed float32 // in degrees per second.
29241 MaxBreath uint16 // Player only.
29242 EyeHeight float32 // Player only.
29243 ZoomFOV float32 // in degrees. Player only.
29244 UseTextureAlpha bool
29245 DmgTextureMod Texture // suffix
29248 NametagBG color.NRGBA
29249 }))(obj)).Itemstring))))
29250 write16(w, uint16(x))
29253 _, err := w.Write(([]byte((*(*(struct {
29254 MaxHP uint16 // Player only.
29255 CollideWithNodes bool
29256 Weight float32 // deprecated
29260 VisualSize [3]float32
29262 SpriteSheetSize [2]int16 // in sprites.
29263 SpritePos [2]int16 // in sprite sheet.
29265 MakeFootstepSnds bool
29266 RotateSpeed float32 // in radians per second.
29268 Colors []color.NRGBA
29269 CollideWithAOs bool
29272 FaceRotateDirOff float32 // in degrees.
29275 NametagColor color.NRGBA
29276 FaceRotateSpeed float32 // in degrees per second.
29280 MaxBreath uint16 // Player only.
29281 EyeHeight float32 // Player only.
29282 ZoomFOV float32 // in degrees. Player only.
29283 UseTextureAlpha bool
29284 DmgTextureMod Texture // suffix
29287 NametagBG color.NRGBA
29288 }))(obj)).Itemstring))[:])
29293 MaxHP uint16 // Player only.
29294 CollideWithNodes bool
29295 Weight float32 // deprecated
29299 VisualSize [3]float32
29301 SpriteSheetSize [2]int16 // in sprites.
29302 SpritePos [2]int16 // in sprite sheet.
29304 MakeFootstepSnds bool
29305 RotateSpeed float32 // in radians per second.
29307 Colors []color.NRGBA
29308 CollideWithAOs bool
29311 FaceRotateDirOff float32 // in degrees.
29314 NametagColor color.NRGBA
29315 FaceRotateSpeed float32 // in degrees per second.
29319 MaxBreath uint16 // Player only.
29320 EyeHeight float32 // Player only.
29321 ZoomFOV float32 // in degrees. Player only.
29322 UseTextureAlpha bool
29323 DmgTextureMod Texture // suffix
29326 NametagBG color.NRGBA
29328 write8(w, uint8(x))
29332 MaxHP uint16 // Player only.
29333 CollideWithNodes bool
29334 Weight float32 // deprecated
29338 VisualSize [3]float32
29340 SpriteSheetSize [2]int16 // in sprites.
29341 SpritePos [2]int16 // in sprite sheet.
29343 MakeFootstepSnds bool
29344 RotateSpeed float32 // in radians per second.
29346 Colors []color.NRGBA
29347 CollideWithAOs bool
29350 FaceRotateDirOff float32 // in degrees.
29353 NametagColor color.NRGBA
29354 FaceRotateSpeed float32 // in degrees per second.
29358 MaxBreath uint16 // Player only.
29359 EyeHeight float32 // Player only.
29360 ZoomFOV float32 // in degrees. Player only.
29361 UseTextureAlpha bool
29362 DmgTextureMod Texture // suffix
29365 NametagBG color.NRGBA
29366 }))(obj)).MaxBreath
29367 write16(w, uint16(x))
29371 MaxHP uint16 // Player only.
29372 CollideWithNodes bool
29373 Weight float32 // deprecated
29377 VisualSize [3]float32
29379 SpriteSheetSize [2]int16 // in sprites.
29380 SpritePos [2]int16 // in sprite sheet.
29382 MakeFootstepSnds bool
29383 RotateSpeed float32 // in radians per second.
29385 Colors []color.NRGBA
29386 CollideWithAOs bool
29389 FaceRotateDirOff float32 // in degrees.
29392 NametagColor color.NRGBA
29393 FaceRotateSpeed float32 // in degrees per second.
29397 MaxBreath uint16 // Player only.
29398 EyeHeight float32 // Player only.
29399 ZoomFOV float32 // in degrees. Player only.
29400 UseTextureAlpha bool
29401 DmgTextureMod Texture // suffix
29404 NametagBG color.NRGBA
29405 }))(obj)).EyeHeight
29406 write32(w, math.Float32bits(x))
29410 MaxHP uint16 // Player only.
29411 CollideWithNodes bool
29412 Weight float32 // deprecated
29416 VisualSize [3]float32
29418 SpriteSheetSize [2]int16 // in sprites.
29419 SpritePos [2]int16 // in sprite sheet.
29421 MakeFootstepSnds bool
29422 RotateSpeed float32 // in radians per second.
29424 Colors []color.NRGBA
29425 CollideWithAOs bool
29428 FaceRotateDirOff float32 // in degrees.
29431 NametagColor color.NRGBA
29432 FaceRotateSpeed float32 // in degrees per second.
29436 MaxBreath uint16 // Player only.
29437 EyeHeight float32 // Player only.
29438 ZoomFOV float32 // in degrees. Player only.
29439 UseTextureAlpha bool
29440 DmgTextureMod Texture // suffix
29443 NametagBG color.NRGBA
29445 write32(w, math.Float32bits(x))
29449 MaxHP uint16 // Player only.
29450 CollideWithNodes bool
29451 Weight float32 // deprecated
29455 VisualSize [3]float32
29457 SpriteSheetSize [2]int16 // in sprites.
29458 SpritePos [2]int16 // in sprite sheet.
29460 MakeFootstepSnds bool
29461 RotateSpeed float32 // in radians per second.
29463 Colors []color.NRGBA
29464 CollideWithAOs bool
29467 FaceRotateDirOff float32 // in degrees.
29470 NametagColor color.NRGBA
29471 FaceRotateSpeed float32 // in degrees per second.
29475 MaxBreath uint16 // Player only.
29476 EyeHeight float32 // Player only.
29477 ZoomFOV float32 // in degrees. Player only.
29478 UseTextureAlpha bool
29479 DmgTextureMod Texture // suffix
29482 NametagBG color.NRGBA
29483 }))(obj)).UseTextureAlpha
29490 if err := pcall(func() {
29492 MaxHP uint16 // Player only.
29493 CollideWithNodes bool
29494 Weight float32 // deprecated
29498 VisualSize [3]float32
29500 SpriteSheetSize [2]int16 // in sprites.
29501 SpritePos [2]int16 // in sprite sheet.
29503 MakeFootstepSnds bool
29504 RotateSpeed float32 // in radians per second.
29506 Colors []color.NRGBA
29507 CollideWithAOs bool
29510 FaceRotateDirOff float32 // in degrees.
29513 NametagColor color.NRGBA
29514 FaceRotateSpeed float32 // in degrees per second.
29518 MaxBreath uint16 // Player only.
29519 EyeHeight float32 // Player only.
29520 ZoomFOV float32 // in degrees. Player only.
29521 UseTextureAlpha bool
29522 DmgTextureMod Texture // suffix
29525 NametagBG color.NRGBA
29526 }))(obj)).DmgTextureMod).serialize(w)
29531 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
29535 MaxHP uint16 // Player only.
29536 CollideWithNodes bool
29537 Weight float32 // deprecated
29541 VisualSize [3]float32
29543 SpriteSheetSize [2]int16 // in sprites.
29544 SpritePos [2]int16 // in sprite sheet.
29546 MakeFootstepSnds bool
29547 RotateSpeed float32 // in radians per second.
29549 Colors []color.NRGBA
29550 CollideWithAOs bool
29553 FaceRotateDirOff float32 // in degrees.
29556 NametagColor color.NRGBA
29557 FaceRotateSpeed float32 // in degrees per second.
29561 MaxBreath uint16 // Player only.
29562 EyeHeight float32 // Player only.
29563 ZoomFOV float32 // in degrees. Player only.
29564 UseTextureAlpha bool
29565 DmgTextureMod Texture // suffix
29568 NametagBG color.NRGBA
29578 MaxHP uint16 // Player only.
29579 CollideWithNodes bool
29580 Weight float32 // deprecated
29584 VisualSize [3]float32
29586 SpriteSheetSize [2]int16 // in sprites.
29587 SpritePos [2]int16 // in sprite sheet.
29589 MakeFootstepSnds bool
29590 RotateSpeed float32 // in radians per second.
29592 Colors []color.NRGBA
29593 CollideWithAOs bool
29596 FaceRotateDirOff float32 // in degrees.
29599 NametagColor color.NRGBA
29600 FaceRotateSpeed float32 // in degrees per second.
29604 MaxBreath uint16 // Player only.
29605 EyeHeight float32 // Player only.
29606 ZoomFOV float32 // in degrees. Player only.
29607 UseTextureAlpha bool
29608 DmgTextureMod Texture // suffix
29611 NametagBG color.NRGBA
29612 }))(obj)).ShowOnMinimap
29621 MaxHP uint16 // Player only.
29622 CollideWithNodes bool
29623 Weight float32 // deprecated
29627 VisualSize [3]float32
29629 SpriteSheetSize [2]int16 // in sprites.
29630 SpritePos [2]int16 // in sprite sheet.
29632 MakeFootstepSnds bool
29633 RotateSpeed float32 // in radians per second.
29635 Colors []color.NRGBA
29636 CollideWithAOs bool
29639 FaceRotateDirOff float32 // in degrees.
29642 NametagColor color.NRGBA
29643 FaceRotateSpeed float32 // in degrees per second.
29647 MaxBreath uint16 // Player only.
29648 EyeHeight float32 // Player only.
29649 ZoomFOV float32 // in degrees. Player only.
29650 UseTextureAlpha bool
29651 DmgTextureMod Texture // suffix
29654 NametagBG color.NRGBA
29655 }))(obj)).NametagBG
29656 w.Write([]byte{x.A, x.R, x.G, x.B})
29660 func (obj *AOProps) deserialize(r io.Reader) {
29663 local340 := uint8(4)
29668 if local339 != local340 {
29669 chk(fmt.Errorf("const %v: %v", "uint8(4)", local339))
29673 p := &(*(*(struct {
29674 MaxHP uint16 // Player only.
29675 CollideWithNodes bool
29676 Weight float32 // deprecated
29680 VisualSize [3]float32
29682 SpriteSheetSize [2]int16 // in sprites.
29683 SpritePos [2]int16 // in sprite sheet.
29685 MakeFootstepSnds bool
29686 RotateSpeed float32 // in radians per second.
29688 Colors []color.NRGBA
29689 CollideWithAOs bool
29692 FaceRotateDirOff float32 // in degrees.
29695 NametagColor color.NRGBA
29696 FaceRotateSpeed float32 // in degrees per second.
29700 MaxBreath uint16 // Player only.
29701 EyeHeight float32 // Player only.
29702 ZoomFOV float32 // in degrees. Player only.
29703 UseTextureAlpha bool
29704 DmgTextureMod Texture // suffix
29707 NametagBG color.NRGBA
29712 p := &(*(*(struct {
29713 MaxHP uint16 // Player only.
29714 CollideWithNodes bool
29715 Weight float32 // deprecated
29719 VisualSize [3]float32
29721 SpriteSheetSize [2]int16 // in sprites.
29722 SpritePos [2]int16 // in sprite sheet.
29724 MakeFootstepSnds bool
29725 RotateSpeed float32 // in radians per second.
29727 Colors []color.NRGBA
29728 CollideWithAOs bool
29731 FaceRotateDirOff float32 // in degrees.
29734 NametagColor color.NRGBA
29735 FaceRotateSpeed float32 // in degrees per second.
29739 MaxBreath uint16 // Player only.
29740 EyeHeight float32 // Player only.
29741 ZoomFOV float32 // in degrees. Player only.
29742 UseTextureAlpha bool
29743 DmgTextureMod Texture // suffix
29746 NametagBG color.NRGBA
29747 }))(obj)).CollideWithNodes
29748 switch n := read8(r); n {
29754 chk(fmt.Errorf("invalid bool: %d", n))
29758 p := &(*(*(struct {
29759 MaxHP uint16 // Player only.
29760 CollideWithNodes bool
29761 Weight float32 // deprecated
29765 VisualSize [3]float32
29767 SpriteSheetSize [2]int16 // in sprites.
29768 SpritePos [2]int16 // in sprite sheet.
29770 MakeFootstepSnds bool
29771 RotateSpeed float32 // in radians per second.
29773 Colors []color.NRGBA
29774 CollideWithAOs bool
29777 FaceRotateDirOff float32 // in degrees.
29780 NametagColor color.NRGBA
29781 FaceRotateSpeed float32 // in degrees per second.
29785 MaxBreath uint16 // Player only.
29786 EyeHeight float32 // Player only.
29787 ZoomFOV float32 // in degrees. Player only.
29788 UseTextureAlpha bool
29789 DmgTextureMod Texture // suffix
29792 NametagBG color.NRGBA
29794 *p = math.Float32frombits(read32(r))
29796 if err := pcall(func() {
29798 MaxHP uint16 // Player only.
29799 CollideWithNodes bool
29800 Weight float32 // deprecated
29804 VisualSize [3]float32
29806 SpriteSheetSize [2]int16 // in sprites.
29807 SpritePos [2]int16 // in sprite sheet.
29809 MakeFootstepSnds bool
29810 RotateSpeed float32 // in radians per second.
29812 Colors []color.NRGBA
29813 CollideWithAOs bool
29816 FaceRotateDirOff float32 // in degrees.
29819 NametagColor color.NRGBA
29820 FaceRotateSpeed float32 // in degrees per second.
29824 MaxBreath uint16 // Player only.
29825 EyeHeight float32 // Player only.
29826 ZoomFOV float32 // in degrees. Player only.
29827 UseTextureAlpha bool
29828 DmgTextureMod Texture // suffix
29831 NametagBG color.NRGBA
29832 }))(obj)).ColBox).deserialize(r)
29837 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
29839 if err := pcall(func() {
29841 MaxHP uint16 // Player only.
29842 CollideWithNodes bool
29843 Weight float32 // deprecated
29847 VisualSize [3]float32
29849 SpriteSheetSize [2]int16 // in sprites.
29850 SpritePos [2]int16 // in sprite sheet.
29852 MakeFootstepSnds bool
29853 RotateSpeed float32 // in radians per second.
29855 Colors []color.NRGBA
29856 CollideWithAOs bool
29859 FaceRotateDirOff float32 // in degrees.
29862 NametagColor color.NRGBA
29863 FaceRotateSpeed float32 // in degrees per second.
29867 MaxBreath uint16 // Player only.
29868 EyeHeight float32 // Player only.
29869 ZoomFOV float32 // in degrees. Player only.
29870 UseTextureAlpha bool
29871 DmgTextureMod Texture // suffix
29874 NametagBG color.NRGBA
29875 }))(obj)).SelBox).deserialize(r)
29880 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
29883 p := &(*(*(struct {
29884 MaxHP uint16 // Player only.
29885 CollideWithNodes bool
29886 Weight float32 // deprecated
29890 VisualSize [3]float32
29892 SpriteSheetSize [2]int16 // in sprites.
29893 SpritePos [2]int16 // in sprite sheet.
29895 MakeFootstepSnds bool
29896 RotateSpeed float32 // in radians per second.
29898 Colors []color.NRGBA
29899 CollideWithAOs bool
29902 FaceRotateDirOff float32 // in degrees.
29905 NametagColor color.NRGBA
29906 FaceRotateSpeed float32 // in degrees per second.
29910 MaxBreath uint16 // Player only.
29911 EyeHeight float32 // Player only.
29912 ZoomFOV float32 // in degrees. Player only.
29913 UseTextureAlpha bool
29914 DmgTextureMod Texture // suffix
29917 NametagBG color.NRGBA
29918 }))(obj)).Pointable
29919 switch n := read8(r); n {
29925 chk(fmt.Errorf("invalid bool: %d", n))
29928 var local341 []uint8
29929 var local342 uint16
29934 (local341) = make([]uint8, local342)
29936 _, err := io.ReadFull(r, (local341)[:])
29940 MaxHP uint16 // Player only.
29941 CollideWithNodes bool
29942 Weight float32 // deprecated
29946 VisualSize [3]float32
29948 SpriteSheetSize [2]int16 // in sprites.
29949 SpritePos [2]int16 // in sprite sheet.
29951 MakeFootstepSnds bool
29952 RotateSpeed float32 // in radians per second.
29954 Colors []color.NRGBA
29955 CollideWithAOs bool
29958 FaceRotateDirOff float32 // in degrees.
29961 NametagColor color.NRGBA
29962 FaceRotateSpeed float32 // in degrees per second.
29966 MaxBreath uint16 // Player only.
29967 EyeHeight float32 // Player only.
29968 ZoomFOV float32 // in degrees. Player only.
29969 UseTextureAlpha bool
29970 DmgTextureMod Texture // suffix
29973 NametagBG color.NRGBA
29974 }))(obj)).Visual) = string(local341)
29975 for local343 := range (*(*(struct {
29976 MaxHP uint16 // Player only.
29977 CollideWithNodes bool
29978 Weight float32 // deprecated
29982 VisualSize [3]float32
29984 SpriteSheetSize [2]int16 // in sprites.
29985 SpritePos [2]int16 // in sprite sheet.
29987 MakeFootstepSnds bool
29988 RotateSpeed float32 // in radians per second.
29990 Colors []color.NRGBA
29991 CollideWithAOs bool
29994 FaceRotateDirOff float32 // in degrees.
29997 NametagColor color.NRGBA
29998 FaceRotateSpeed float32 // in degrees per second.
30002 MaxBreath uint16 // Player only.
30003 EyeHeight float32 // Player only.
30004 ZoomFOV float32 // in degrees. Player only.
30005 UseTextureAlpha bool
30006 DmgTextureMod Texture // suffix
30009 NametagBG color.NRGBA
30010 }))(obj)).VisualSize {
30012 p := &((*(*(struct {
30013 MaxHP uint16 // Player only.
30014 CollideWithNodes bool
30015 Weight float32 // deprecated
30019 VisualSize [3]float32
30021 SpriteSheetSize [2]int16 // in sprites.
30022 SpritePos [2]int16 // in sprite sheet.
30024 MakeFootstepSnds bool
30025 RotateSpeed float32 // in radians per second.
30027 Colors []color.NRGBA
30028 CollideWithAOs bool
30031 FaceRotateDirOff float32 // in degrees.
30034 NametagColor color.NRGBA
30035 FaceRotateSpeed float32 // in degrees per second.
30039 MaxBreath uint16 // Player only.
30040 EyeHeight float32 // Player only.
30041 ZoomFOV float32 // in degrees. Player only.
30042 UseTextureAlpha bool
30043 DmgTextureMod Texture // suffix
30046 NametagBG color.NRGBA
30047 }))(obj)).VisualSize)[local343]
30048 *p = math.Float32frombits(read32(r))
30051 var local344 uint16
30057 MaxHP uint16 // Player only.
30058 CollideWithNodes bool
30059 Weight float32 // deprecated
30063 VisualSize [3]float32
30065 SpriteSheetSize [2]int16 // in sprites.
30066 SpritePos [2]int16 // in sprite sheet.
30068 MakeFootstepSnds bool
30069 RotateSpeed float32 // in radians per second.
30071 Colors []color.NRGBA
30072 CollideWithAOs bool
30075 FaceRotateDirOff float32 // in degrees.
30078 NametagColor color.NRGBA
30079 FaceRotateSpeed float32 // in degrees per second.
30083 MaxBreath uint16 // Player only.
30084 EyeHeight float32 // Player only.
30085 ZoomFOV float32 // in degrees. Player only.
30086 UseTextureAlpha bool
30087 DmgTextureMod Texture // suffix
30090 NametagBG color.NRGBA
30091 }))(obj)).Textures) = make([]Texture, local344)
30092 for local345 := range (*(*(struct {
30093 MaxHP uint16 // Player only.
30094 CollideWithNodes bool
30095 Weight float32 // deprecated
30099 VisualSize [3]float32
30101 SpriteSheetSize [2]int16 // in sprites.
30102 SpritePos [2]int16 // in sprite sheet.
30104 MakeFootstepSnds bool
30105 RotateSpeed float32 // in radians per second.
30107 Colors []color.NRGBA
30108 CollideWithAOs bool
30111 FaceRotateDirOff float32 // in degrees.
30114 NametagColor color.NRGBA
30115 FaceRotateSpeed float32 // in degrees per second.
30119 MaxBreath uint16 // Player only.
30120 EyeHeight float32 // Player only.
30121 ZoomFOV float32 // in degrees. Player only.
30122 UseTextureAlpha bool
30123 DmgTextureMod Texture // suffix
30126 NametagBG color.NRGBA
30127 }))(obj)).Textures {
30128 if err := pcall(func() {
30130 MaxHP uint16 // Player only.
30131 CollideWithNodes bool
30132 Weight float32 // deprecated
30136 VisualSize [3]float32
30138 SpriteSheetSize [2]int16 // in sprites.
30139 SpritePos [2]int16 // in sprite sheet.
30141 MakeFootstepSnds bool
30142 RotateSpeed float32 // in radians per second.
30144 Colors []color.NRGBA
30145 CollideWithAOs bool
30148 FaceRotateDirOff float32 // in degrees.
30151 NametagColor color.NRGBA
30152 FaceRotateSpeed float32 // in degrees per second.
30156 MaxBreath uint16 // Player only.
30157 EyeHeight float32 // Player only.
30158 ZoomFOV float32 // in degrees. Player only.
30159 UseTextureAlpha bool
30160 DmgTextureMod Texture // suffix
30163 NametagBG color.NRGBA
30164 }))(obj)).Textures)[local345]).deserialize(r)
30169 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30172 for local346 := range (*(*(struct {
30173 MaxHP uint16 // Player only.
30174 CollideWithNodes bool
30175 Weight float32 // deprecated
30179 VisualSize [3]float32
30181 SpriteSheetSize [2]int16 // in sprites.
30182 SpritePos [2]int16 // in sprite sheet.
30184 MakeFootstepSnds bool
30185 RotateSpeed float32 // in radians per second.
30187 Colors []color.NRGBA
30188 CollideWithAOs bool
30191 FaceRotateDirOff float32 // in degrees.
30194 NametagColor color.NRGBA
30195 FaceRotateSpeed float32 // in degrees per second.
30199 MaxBreath uint16 // Player only.
30200 EyeHeight float32 // Player only.
30201 ZoomFOV float32 // in degrees. Player only.
30202 UseTextureAlpha bool
30203 DmgTextureMod Texture // suffix
30206 NametagBG color.NRGBA
30207 }))(obj)).SpriteSheetSize {
30209 p := &((*(*(struct {
30210 MaxHP uint16 // Player only.
30211 CollideWithNodes bool
30212 Weight float32 // deprecated
30216 VisualSize [3]float32
30218 SpriteSheetSize [2]int16 // in sprites.
30219 SpritePos [2]int16 // in sprite sheet.
30221 MakeFootstepSnds bool
30222 RotateSpeed float32 // in radians per second.
30224 Colors []color.NRGBA
30225 CollideWithAOs bool
30228 FaceRotateDirOff float32 // in degrees.
30231 NametagColor color.NRGBA
30232 FaceRotateSpeed float32 // in degrees per second.
30236 MaxBreath uint16 // Player only.
30237 EyeHeight float32 // Player only.
30238 ZoomFOV float32 // in degrees. Player only.
30239 UseTextureAlpha bool
30240 DmgTextureMod Texture // suffix
30243 NametagBG color.NRGBA
30244 }))(obj)).SpriteSheetSize)[local346]
30245 *p = int16(read16(r))
30248 for local347 := range (*(*(struct {
30249 MaxHP uint16 // Player only.
30250 CollideWithNodes bool
30251 Weight float32 // deprecated
30255 VisualSize [3]float32
30257 SpriteSheetSize [2]int16 // in sprites.
30258 SpritePos [2]int16 // in sprite sheet.
30260 MakeFootstepSnds bool
30261 RotateSpeed float32 // in radians per second.
30263 Colors []color.NRGBA
30264 CollideWithAOs bool
30267 FaceRotateDirOff float32 // in degrees.
30270 NametagColor color.NRGBA
30271 FaceRotateSpeed float32 // in degrees per second.
30275 MaxBreath uint16 // Player only.
30276 EyeHeight float32 // Player only.
30277 ZoomFOV float32 // in degrees. Player only.
30278 UseTextureAlpha bool
30279 DmgTextureMod Texture // suffix
30282 NametagBG color.NRGBA
30283 }))(obj)).SpritePos {
30285 p := &((*(*(struct {
30286 MaxHP uint16 // Player only.
30287 CollideWithNodes bool
30288 Weight float32 // deprecated
30292 VisualSize [3]float32
30294 SpriteSheetSize [2]int16 // in sprites.
30295 SpritePos [2]int16 // in sprite sheet.
30297 MakeFootstepSnds bool
30298 RotateSpeed float32 // in radians per second.
30300 Colors []color.NRGBA
30301 CollideWithAOs bool
30304 FaceRotateDirOff float32 // in degrees.
30307 NametagColor color.NRGBA
30308 FaceRotateSpeed float32 // in degrees per second.
30312 MaxBreath uint16 // Player only.
30313 EyeHeight float32 // Player only.
30314 ZoomFOV float32 // in degrees. Player only.
30315 UseTextureAlpha bool
30316 DmgTextureMod Texture // suffix
30319 NametagBG color.NRGBA
30320 }))(obj)).SpritePos)[local347]
30321 *p = int16(read16(r))
30325 p := &(*(*(struct {
30326 MaxHP uint16 // Player only.
30327 CollideWithNodes bool
30328 Weight float32 // deprecated
30332 VisualSize [3]float32
30334 SpriteSheetSize [2]int16 // in sprites.
30335 SpritePos [2]int16 // in sprite sheet.
30337 MakeFootstepSnds bool
30338 RotateSpeed float32 // in radians per second.
30340 Colors []color.NRGBA
30341 CollideWithAOs bool
30344 FaceRotateDirOff float32 // in degrees.
30347 NametagColor color.NRGBA
30348 FaceRotateSpeed float32 // in degrees per second.
30352 MaxBreath uint16 // Player only.
30353 EyeHeight float32 // Player only.
30354 ZoomFOV float32 // in degrees. Player only.
30355 UseTextureAlpha bool
30356 DmgTextureMod Texture // suffix
30359 NametagBG color.NRGBA
30361 switch n := read8(r); n {
30367 chk(fmt.Errorf("invalid bool: %d", n))
30371 p := &(*(*(struct {
30372 MaxHP uint16 // Player only.
30373 CollideWithNodes bool
30374 Weight float32 // deprecated
30378 VisualSize [3]float32
30380 SpriteSheetSize [2]int16 // in sprites.
30381 SpritePos [2]int16 // in sprite sheet.
30383 MakeFootstepSnds bool
30384 RotateSpeed float32 // in radians per second.
30386 Colors []color.NRGBA
30387 CollideWithAOs bool
30390 FaceRotateDirOff float32 // in degrees.
30393 NametagColor color.NRGBA
30394 FaceRotateSpeed float32 // in degrees per second.
30398 MaxBreath uint16 // Player only.
30399 EyeHeight float32 // Player only.
30400 ZoomFOV float32 // in degrees. Player only.
30401 UseTextureAlpha bool
30402 DmgTextureMod Texture // suffix
30405 NametagBG color.NRGBA
30406 }))(obj)).MakeFootstepSnds
30407 switch n := read8(r); n {
30413 chk(fmt.Errorf("invalid bool: %d", n))
30417 p := &(*(*(struct {
30418 MaxHP uint16 // Player only.
30419 CollideWithNodes bool
30420 Weight float32 // deprecated
30424 VisualSize [3]float32
30426 SpriteSheetSize [2]int16 // in sprites.
30427 SpritePos [2]int16 // in sprite sheet.
30429 MakeFootstepSnds bool
30430 RotateSpeed float32 // in radians per second.
30432 Colors []color.NRGBA
30433 CollideWithAOs bool
30436 FaceRotateDirOff float32 // in degrees.
30439 NametagColor color.NRGBA
30440 FaceRotateSpeed float32 // in degrees per second.
30444 MaxBreath uint16 // Player only.
30445 EyeHeight float32 // Player only.
30446 ZoomFOV float32 // in degrees. Player only.
30447 UseTextureAlpha bool
30448 DmgTextureMod Texture // suffix
30451 NametagBG color.NRGBA
30452 }))(obj)).RotateSpeed
30453 *p = math.Float32frombits(read32(r))
30455 var local348 []uint8
30456 var local349 uint16
30461 (local348) = make([]uint8, local349)
30463 _, err := io.ReadFull(r, (local348)[:])
30467 MaxHP uint16 // Player only.
30468 CollideWithNodes bool
30469 Weight float32 // deprecated
30473 VisualSize [3]float32
30475 SpriteSheetSize [2]int16 // in sprites.
30476 SpritePos [2]int16 // in sprite sheet.
30478 MakeFootstepSnds bool
30479 RotateSpeed float32 // in radians per second.
30481 Colors []color.NRGBA
30482 CollideWithAOs bool
30485 FaceRotateDirOff float32 // in degrees.
30488 NametagColor color.NRGBA
30489 FaceRotateSpeed float32 // in degrees per second.
30493 MaxBreath uint16 // Player only.
30494 EyeHeight float32 // Player only.
30495 ZoomFOV float32 // in degrees. Player only.
30496 UseTextureAlpha bool
30497 DmgTextureMod Texture // suffix
30500 NametagBG color.NRGBA
30501 }))(obj)).Mesh) = string(local348)
30502 var local350 uint16
30508 MaxHP uint16 // Player only.
30509 CollideWithNodes bool
30510 Weight float32 // deprecated
30514 VisualSize [3]float32
30516 SpriteSheetSize [2]int16 // in sprites.
30517 SpritePos [2]int16 // in sprite sheet.
30519 MakeFootstepSnds bool
30520 RotateSpeed float32 // in radians per second.
30522 Colors []color.NRGBA
30523 CollideWithAOs bool
30526 FaceRotateDirOff float32 // in degrees.
30529 NametagColor color.NRGBA
30530 FaceRotateSpeed float32 // in degrees per second.
30534 MaxBreath uint16 // Player only.
30535 EyeHeight float32 // Player only.
30536 ZoomFOV float32 // in degrees. Player only.
30537 UseTextureAlpha bool
30538 DmgTextureMod Texture // suffix
30541 NametagBG color.NRGBA
30542 }))(obj)).Colors) = make([]color.NRGBA, local350)
30543 for local351 := range (*(*(struct {
30544 MaxHP uint16 // Player only.
30545 CollideWithNodes bool
30546 Weight float32 // deprecated
30550 VisualSize [3]float32
30552 SpriteSheetSize [2]int16 // in sprites.
30553 SpritePos [2]int16 // in sprite sheet.
30555 MakeFootstepSnds bool
30556 RotateSpeed float32 // in radians per second.
30558 Colors []color.NRGBA
30559 CollideWithAOs bool
30562 FaceRotateDirOff float32 // in degrees.
30565 NametagColor color.NRGBA
30566 FaceRotateSpeed float32 // in degrees per second.
30570 MaxBreath uint16 // Player only.
30571 EyeHeight float32 // Player only.
30572 ZoomFOV float32 // in degrees. Player only.
30573 UseTextureAlpha bool
30574 DmgTextureMod Texture // suffix
30577 NametagBG color.NRGBA
30580 p := &((*(*(struct {
30581 MaxHP uint16 // Player only.
30582 CollideWithNodes bool
30583 Weight float32 // deprecated
30587 VisualSize [3]float32
30589 SpriteSheetSize [2]int16 // in sprites.
30590 SpritePos [2]int16 // in sprite sheet.
30592 MakeFootstepSnds bool
30593 RotateSpeed float32 // in radians per second.
30595 Colors []color.NRGBA
30596 CollideWithAOs bool
30599 FaceRotateDirOff float32 // in degrees.
30602 NametagColor color.NRGBA
30603 FaceRotateSpeed float32 // in degrees per second.
30607 MaxBreath uint16 // Player only.
30608 EyeHeight float32 // Player only.
30609 ZoomFOV float32 // in degrees. Player only.
30610 UseTextureAlpha bool
30611 DmgTextureMod Texture // suffix
30614 NametagBG color.NRGBA
30615 }))(obj)).Colors)[local351]
30616 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30620 p := &(*(*(struct {
30621 MaxHP uint16 // Player only.
30622 CollideWithNodes bool
30623 Weight float32 // deprecated
30627 VisualSize [3]float32
30629 SpriteSheetSize [2]int16 // in sprites.
30630 SpritePos [2]int16 // in sprite sheet.
30632 MakeFootstepSnds bool
30633 RotateSpeed float32 // in radians per second.
30635 Colors []color.NRGBA
30636 CollideWithAOs bool
30639 FaceRotateDirOff float32 // in degrees.
30642 NametagColor color.NRGBA
30643 FaceRotateSpeed float32 // in degrees per second.
30647 MaxBreath uint16 // Player only.
30648 EyeHeight float32 // Player only.
30649 ZoomFOV float32 // in degrees. Player only.
30650 UseTextureAlpha bool
30651 DmgTextureMod Texture // suffix
30654 NametagBG color.NRGBA
30655 }))(obj)).CollideWithAOs
30656 switch n := read8(r); n {
30662 chk(fmt.Errorf("invalid bool: %d", n))
30666 p := &(*(*(struct {
30667 MaxHP uint16 // Player only.
30668 CollideWithNodes bool
30669 Weight float32 // deprecated
30673 VisualSize [3]float32
30675 SpriteSheetSize [2]int16 // in sprites.
30676 SpritePos [2]int16 // in sprite sheet.
30678 MakeFootstepSnds bool
30679 RotateSpeed float32 // in radians per second.
30681 Colors []color.NRGBA
30682 CollideWithAOs bool
30685 FaceRotateDirOff float32 // in degrees.
30688 NametagColor color.NRGBA
30689 FaceRotateSpeed float32 // in degrees per second.
30693 MaxBreath uint16 // Player only.
30694 EyeHeight float32 // Player only.
30695 ZoomFOV float32 // in degrees. Player only.
30696 UseTextureAlpha bool
30697 DmgTextureMod Texture // suffix
30700 NametagBG color.NRGBA
30701 }))(obj)).StepHeight
30702 *p = math.Float32frombits(read32(r))
30705 p := &(*(*(struct {
30706 MaxHP uint16 // Player only.
30707 CollideWithNodes bool
30708 Weight float32 // deprecated
30712 VisualSize [3]float32
30714 SpriteSheetSize [2]int16 // in sprites.
30715 SpritePos [2]int16 // in sprite sheet.
30717 MakeFootstepSnds bool
30718 RotateSpeed float32 // in radians per second.
30720 Colors []color.NRGBA
30721 CollideWithAOs bool
30724 FaceRotateDirOff float32 // in degrees.
30727 NametagColor color.NRGBA
30728 FaceRotateSpeed float32 // in degrees per second.
30732 MaxBreath uint16 // Player only.
30733 EyeHeight float32 // Player only.
30734 ZoomFOV float32 // in degrees. Player only.
30735 UseTextureAlpha bool
30736 DmgTextureMod Texture // suffix
30739 NametagBG color.NRGBA
30740 }))(obj)).FaceRotateDir
30741 switch n := read8(r); n {
30747 chk(fmt.Errorf("invalid bool: %d", n))
30751 p := &(*(*(struct {
30752 MaxHP uint16 // Player only.
30753 CollideWithNodes bool
30754 Weight float32 // deprecated
30758 VisualSize [3]float32
30760 SpriteSheetSize [2]int16 // in sprites.
30761 SpritePos [2]int16 // in sprite sheet.
30763 MakeFootstepSnds bool
30764 RotateSpeed float32 // in radians per second.
30766 Colors []color.NRGBA
30767 CollideWithAOs bool
30770 FaceRotateDirOff float32 // in degrees.
30773 NametagColor color.NRGBA
30774 FaceRotateSpeed float32 // in degrees per second.
30778 MaxBreath uint16 // Player only.
30779 EyeHeight float32 // Player only.
30780 ZoomFOV float32 // in degrees. Player only.
30781 UseTextureAlpha bool
30782 DmgTextureMod Texture // suffix
30785 NametagBG color.NRGBA
30786 }))(obj)).FaceRotateDirOff
30787 *p = math.Float32frombits(read32(r))
30790 p := &(*(*(struct {
30791 MaxHP uint16 // Player only.
30792 CollideWithNodes bool
30793 Weight float32 // deprecated
30797 VisualSize [3]float32
30799 SpriteSheetSize [2]int16 // in sprites.
30800 SpritePos [2]int16 // in sprite sheet.
30802 MakeFootstepSnds bool
30803 RotateSpeed float32 // in radians per second.
30805 Colors []color.NRGBA
30806 CollideWithAOs bool
30809 FaceRotateDirOff float32 // in degrees.
30812 NametagColor color.NRGBA
30813 FaceRotateSpeed float32 // in degrees per second.
30817 MaxBreath uint16 // Player only.
30818 EyeHeight float32 // Player only.
30819 ZoomFOV float32 // in degrees. Player only.
30820 UseTextureAlpha bool
30821 DmgTextureMod Texture // suffix
30824 NametagBG color.NRGBA
30825 }))(obj)).BackfaceCull
30826 switch n := read8(r); n {
30832 chk(fmt.Errorf("invalid bool: %d", n))
30835 var local352 []uint8
30836 var local353 uint16
30841 (local352) = make([]uint8, local353)
30843 _, err := io.ReadFull(r, (local352)[:])
30847 MaxHP uint16 // Player only.
30848 CollideWithNodes bool
30849 Weight float32 // deprecated
30853 VisualSize [3]float32
30855 SpriteSheetSize [2]int16 // in sprites.
30856 SpritePos [2]int16 // in sprite sheet.
30858 MakeFootstepSnds bool
30859 RotateSpeed float32 // in radians per second.
30861 Colors []color.NRGBA
30862 CollideWithAOs bool
30865 FaceRotateDirOff float32 // in degrees.
30868 NametagColor color.NRGBA
30869 FaceRotateSpeed float32 // in degrees per second.
30873 MaxBreath uint16 // Player only.
30874 EyeHeight float32 // Player only.
30875 ZoomFOV float32 // in degrees. Player only.
30876 UseTextureAlpha bool
30877 DmgTextureMod Texture // suffix
30880 NametagBG color.NRGBA
30881 }))(obj)).Nametag) = string(local352)
30883 p := &(*(*(struct {
30884 MaxHP uint16 // Player only.
30885 CollideWithNodes bool
30886 Weight float32 // deprecated
30890 VisualSize [3]float32
30892 SpriteSheetSize [2]int16 // in sprites.
30893 SpritePos [2]int16 // in sprite sheet.
30895 MakeFootstepSnds bool
30896 RotateSpeed float32 // in radians per second.
30898 Colors []color.NRGBA
30899 CollideWithAOs bool
30902 FaceRotateDirOff float32 // in degrees.
30905 NametagColor color.NRGBA
30906 FaceRotateSpeed float32 // in degrees per second.
30910 MaxBreath uint16 // Player only.
30911 EyeHeight float32 // Player only.
30912 ZoomFOV float32 // in degrees. Player only.
30913 UseTextureAlpha bool
30914 DmgTextureMod Texture // suffix
30917 NametagBG color.NRGBA
30918 }))(obj)).NametagColor
30919 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30922 p := &(*(*(struct {
30923 MaxHP uint16 // Player only.
30924 CollideWithNodes bool
30925 Weight float32 // deprecated
30929 VisualSize [3]float32
30931 SpriteSheetSize [2]int16 // in sprites.
30932 SpritePos [2]int16 // in sprite sheet.
30934 MakeFootstepSnds bool
30935 RotateSpeed float32 // in radians per second.
30937 Colors []color.NRGBA
30938 CollideWithAOs bool
30941 FaceRotateDirOff float32 // in degrees.
30944 NametagColor color.NRGBA
30945 FaceRotateSpeed float32 // in degrees per second.
30949 MaxBreath uint16 // Player only.
30950 EyeHeight float32 // Player only.
30951 ZoomFOV float32 // in degrees. Player only.
30952 UseTextureAlpha bool
30953 DmgTextureMod Texture // suffix
30956 NametagBG color.NRGBA
30957 }))(obj)).FaceRotateSpeed
30958 *p = math.Float32frombits(read32(r))
30960 var local354 []uint8
30961 var local355 uint16
30966 (local354) = make([]uint8, local355)
30968 _, err := io.ReadFull(r, (local354)[:])
30972 MaxHP uint16 // Player only.
30973 CollideWithNodes bool
30974 Weight float32 // deprecated
30978 VisualSize [3]float32
30980 SpriteSheetSize [2]int16 // in sprites.
30981 SpritePos [2]int16 // in sprite sheet.
30983 MakeFootstepSnds bool
30984 RotateSpeed float32 // in radians per second.
30986 Colors []color.NRGBA
30987 CollideWithAOs bool
30990 FaceRotateDirOff float32 // in degrees.
30993 NametagColor color.NRGBA
30994 FaceRotateSpeed float32 // in degrees per second.
30998 MaxBreath uint16 // Player only.
30999 EyeHeight float32 // Player only.
31000 ZoomFOV float32 // in degrees. Player only.
31001 UseTextureAlpha bool
31002 DmgTextureMod Texture // suffix
31005 NametagBG color.NRGBA
31006 }))(obj)).Infotext) = string(local354)
31007 var local356 []uint8
31008 var local357 uint16
31013 (local356) = make([]uint8, local357)
31015 _, err := io.ReadFull(r, (local356)[:])
31019 MaxHP uint16 // Player only.
31020 CollideWithNodes bool
31021 Weight float32 // deprecated
31025 VisualSize [3]float32
31027 SpriteSheetSize [2]int16 // in sprites.
31028 SpritePos [2]int16 // in sprite sheet.
31030 MakeFootstepSnds bool
31031 RotateSpeed float32 // in radians per second.
31033 Colors []color.NRGBA
31034 CollideWithAOs bool
31037 FaceRotateDirOff float32 // in degrees.
31040 NametagColor color.NRGBA
31041 FaceRotateSpeed float32 // in degrees per second.
31045 MaxBreath uint16 // Player only.
31046 EyeHeight float32 // Player only.
31047 ZoomFOV float32 // in degrees. Player only.
31048 UseTextureAlpha bool
31049 DmgTextureMod Texture // suffix
31052 NametagBG color.NRGBA
31053 }))(obj)).Itemstring) = string(local356)
31055 p := &(*(*(struct {
31056 MaxHP uint16 // Player only.
31057 CollideWithNodes bool
31058 Weight float32 // deprecated
31062 VisualSize [3]float32
31064 SpriteSheetSize [2]int16 // in sprites.
31065 SpritePos [2]int16 // in sprite sheet.
31067 MakeFootstepSnds bool
31068 RotateSpeed float32 // in radians per second.
31070 Colors []color.NRGBA
31071 CollideWithAOs bool
31074 FaceRotateDirOff float32 // in degrees.
31077 NametagColor color.NRGBA
31078 FaceRotateSpeed float32 // in degrees per second.
31082 MaxBreath uint16 // Player only.
31083 EyeHeight float32 // Player only.
31084 ZoomFOV float32 // in degrees. Player only.
31085 UseTextureAlpha bool
31086 DmgTextureMod Texture // suffix
31089 NametagBG color.NRGBA
31091 *p = int8(read8(r))
31094 p := &(*(*(struct {
31095 MaxHP uint16 // Player only.
31096 CollideWithNodes bool
31097 Weight float32 // deprecated
31101 VisualSize [3]float32
31103 SpriteSheetSize [2]int16 // in sprites.
31104 SpritePos [2]int16 // in sprite sheet.
31106 MakeFootstepSnds bool
31107 RotateSpeed float32 // in radians per second.
31109 Colors []color.NRGBA
31110 CollideWithAOs bool
31113 FaceRotateDirOff float32 // in degrees.
31116 NametagColor color.NRGBA
31117 FaceRotateSpeed float32 // in degrees per second.
31121 MaxBreath uint16 // Player only.
31122 EyeHeight float32 // Player only.
31123 ZoomFOV float32 // in degrees. Player only.
31124 UseTextureAlpha bool
31125 DmgTextureMod Texture // suffix
31128 NametagBG color.NRGBA
31129 }))(obj)).MaxBreath
31133 p := &(*(*(struct {
31134 MaxHP uint16 // Player only.
31135 CollideWithNodes bool
31136 Weight float32 // deprecated
31140 VisualSize [3]float32
31142 SpriteSheetSize [2]int16 // in sprites.
31143 SpritePos [2]int16 // in sprite sheet.
31145 MakeFootstepSnds bool
31146 RotateSpeed float32 // in radians per second.
31148 Colors []color.NRGBA
31149 CollideWithAOs bool
31152 FaceRotateDirOff float32 // in degrees.
31155 NametagColor color.NRGBA
31156 FaceRotateSpeed float32 // in degrees per second.
31160 MaxBreath uint16 // Player only.
31161 EyeHeight float32 // Player only.
31162 ZoomFOV float32 // in degrees. Player only.
31163 UseTextureAlpha bool
31164 DmgTextureMod Texture // suffix
31167 NametagBG color.NRGBA
31168 }))(obj)).EyeHeight
31169 *p = math.Float32frombits(read32(r))
31172 p := &(*(*(struct {
31173 MaxHP uint16 // Player only.
31174 CollideWithNodes bool
31175 Weight float32 // deprecated
31179 VisualSize [3]float32
31181 SpriteSheetSize [2]int16 // in sprites.
31182 SpritePos [2]int16 // in sprite sheet.
31184 MakeFootstepSnds bool
31185 RotateSpeed float32 // in radians per second.
31187 Colors []color.NRGBA
31188 CollideWithAOs bool
31191 FaceRotateDirOff float32 // in degrees.
31194 NametagColor color.NRGBA
31195 FaceRotateSpeed float32 // in degrees per second.
31199 MaxBreath uint16 // Player only.
31200 EyeHeight float32 // Player only.
31201 ZoomFOV float32 // in degrees. Player only.
31202 UseTextureAlpha bool
31203 DmgTextureMod Texture // suffix
31206 NametagBG color.NRGBA
31208 *p = math.Float32frombits(read32(r))
31211 p := &(*(*(struct {
31212 MaxHP uint16 // Player only.
31213 CollideWithNodes bool
31214 Weight float32 // deprecated
31218 VisualSize [3]float32
31220 SpriteSheetSize [2]int16 // in sprites.
31221 SpritePos [2]int16 // in sprite sheet.
31223 MakeFootstepSnds bool
31224 RotateSpeed float32 // in radians per second.
31226 Colors []color.NRGBA
31227 CollideWithAOs bool
31230 FaceRotateDirOff float32 // in degrees.
31233 NametagColor color.NRGBA
31234 FaceRotateSpeed float32 // in degrees per second.
31238 MaxBreath uint16 // Player only.
31239 EyeHeight float32 // Player only.
31240 ZoomFOV float32 // in degrees. Player only.
31241 UseTextureAlpha bool
31242 DmgTextureMod Texture // suffix
31245 NametagBG color.NRGBA
31246 }))(obj)).UseTextureAlpha
31247 switch n := read8(r); n {
31253 chk(fmt.Errorf("invalid bool: %d", n))
31256 if err := pcall(func() {
31258 MaxHP uint16 // Player only.
31259 CollideWithNodes bool
31260 Weight float32 // deprecated
31264 VisualSize [3]float32
31266 SpriteSheetSize [2]int16 // in sprites.
31267 SpritePos [2]int16 // in sprite sheet.
31269 MakeFootstepSnds bool
31270 RotateSpeed float32 // in radians per second.
31272 Colors []color.NRGBA
31273 CollideWithAOs bool
31276 FaceRotateDirOff float32 // in degrees.
31279 NametagColor color.NRGBA
31280 FaceRotateSpeed float32 // in degrees per second.
31284 MaxBreath uint16 // Player only.
31285 EyeHeight float32 // Player only.
31286 ZoomFOV float32 // in degrees. Player only.
31287 UseTextureAlpha bool
31288 DmgTextureMod Texture // suffix
31291 NametagBG color.NRGBA
31292 }))(obj)).DmgTextureMod).deserialize(r)
31297 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
31300 p := &(*(*(struct {
31301 MaxHP uint16 // Player only.
31302 CollideWithNodes bool
31303 Weight float32 // deprecated
31307 VisualSize [3]float32
31309 SpriteSheetSize [2]int16 // in sprites.
31310 SpritePos [2]int16 // in sprite sheet.
31312 MakeFootstepSnds bool
31313 RotateSpeed float32 // in radians per second.
31315 Colors []color.NRGBA
31316 CollideWithAOs bool
31319 FaceRotateDirOff float32 // in degrees.
31322 NametagColor color.NRGBA
31323 FaceRotateSpeed float32 // in degrees per second.
31327 MaxBreath uint16 // Player only.
31328 EyeHeight float32 // Player only.
31329 ZoomFOV float32 // in degrees. Player only.
31330 UseTextureAlpha bool
31331 DmgTextureMod Texture // suffix
31334 NametagBG color.NRGBA
31336 switch n := read8(r); n {
31342 chk(fmt.Errorf("invalid bool: %d", n))
31346 p := &(*(*(struct {
31347 MaxHP uint16 // Player only.
31348 CollideWithNodes bool
31349 Weight float32 // deprecated
31353 VisualSize [3]float32
31355 SpriteSheetSize [2]int16 // in sprites.
31356 SpritePos [2]int16 // in sprite sheet.
31358 MakeFootstepSnds bool
31359 RotateSpeed float32 // in radians per second.
31361 Colors []color.NRGBA
31362 CollideWithAOs bool
31365 FaceRotateDirOff float32 // in degrees.
31368 NametagColor color.NRGBA
31369 FaceRotateSpeed float32 // in degrees per second.
31373 MaxBreath uint16 // Player only.
31374 EyeHeight float32 // Player only.
31375 ZoomFOV float32 // in degrees. Player only.
31376 UseTextureAlpha bool
31377 DmgTextureMod Texture // suffix
31380 NametagBG color.NRGBA
31381 }))(obj)).ShowOnMinimap
31382 switch n := read8(r); n {
31388 chk(fmt.Errorf("invalid bool: %d", n))
31392 p := &(*(*(struct {
31393 MaxHP uint16 // Player only.
31394 CollideWithNodes bool
31395 Weight float32 // deprecated
31399 VisualSize [3]float32
31401 SpriteSheetSize [2]int16 // in sprites.
31402 SpritePos [2]int16 // in sprite sheet.
31404 MakeFootstepSnds bool
31405 RotateSpeed float32 // in radians per second.
31407 Colors []color.NRGBA
31408 CollideWithAOs bool
31411 FaceRotateDirOff float32 // in degrees.
31414 NametagColor color.NRGBA
31415 FaceRotateSpeed float32 // in degrees per second.
31419 MaxBreath uint16 // Player only.
31420 EyeHeight float32 // Player only.
31421 ZoomFOV float32 // in degrees. Player only.
31422 UseTextureAlpha bool
31423 DmgTextureMod Texture // suffix
31426 NametagBG color.NRGBA
31427 }))(obj)).NametagBG
31428 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31432 func (obj *AOPos) serialize(w io.Writer) {
31433 if err := pcall(func() {
31441 UpdateInterval float32
31442 }))(obj)).Pos).serialize(w)
31447 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
31449 if err := pcall(func() {
31457 UpdateInterval float32
31458 }))(obj)).Vel).serialize(w)
31463 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31465 if err := pcall(func() {
31473 UpdateInterval float32
31474 }))(obj)).Acc).serialize(w)
31479 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31481 for local358 := range (*(*(struct {
31488 UpdateInterval float32
31491 x := ((*(*(struct {
31498 UpdateInterval float32
31499 }))(obj)).Rot)[local358]
31500 write32(w, math.Float32bits(x))
31511 UpdateInterval float32
31512 }))(obj)).Interpolate
31527 UpdateInterval float32
31543 UpdateInterval float32
31544 }))(obj)).UpdateInterval
31545 write32(w, math.Float32bits(x))
31549 func (obj *AOPos) deserialize(r io.Reader) {
31550 if err := pcall(func() {
31558 UpdateInterval float32
31559 }))(obj)).Pos).deserialize(r)
31564 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
31566 if err := pcall(func() {
31574 UpdateInterval float32
31575 }))(obj)).Vel).deserialize(r)
31580 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31582 if err := pcall(func() {
31590 UpdateInterval float32
31591 }))(obj)).Acc).deserialize(r)
31596 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31598 for local359 := range (*(*(struct {
31605 UpdateInterval float32
31608 p := &((*(*(struct {
31615 UpdateInterval float32
31616 }))(obj)).Rot)[local359]
31617 *p = math.Float32frombits(read32(r))
31621 p := &(*(*(struct {
31628 UpdateInterval float32
31629 }))(obj)).Interpolate
31630 switch n := read8(r); n {
31636 chk(fmt.Errorf("invalid bool: %d", n))
31640 p := &(*(*(struct {
31647 UpdateInterval float32
31649 switch n := read8(r); n {
31655 chk(fmt.Errorf("invalid bool: %d", n))
31659 p := &(*(*(struct {
31666 UpdateInterval float32
31667 }))(obj)).UpdateInterval
31668 *p = math.Float32frombits(read32(r))
31672 func (obj *AOSprite) serialize(w io.Writer) {
31673 for local360 := range (*(*(struct {
31676 FrameDuration float32
31677 ViewAngleFrames bool
31680 x := ((*(*(struct {
31683 FrameDuration float32
31684 ViewAngleFrames bool
31685 }))(obj)).Frame0)[local360]
31686 write16(w, uint16(x))
31693 FrameDuration float32
31694 ViewAngleFrames bool
31696 write16(w, uint16(x))
31702 FrameDuration float32
31703 ViewAngleFrames bool
31704 }))(obj)).FrameDuration
31705 write32(w, math.Float32bits(x))
31711 FrameDuration float32
31712 ViewAngleFrames bool
31713 }))(obj)).ViewAngleFrames
31722 func (obj *AOSprite) deserialize(r io.Reader) {
31723 for local361 := range (*(*(struct {
31726 FrameDuration float32
31727 ViewAngleFrames bool
31730 p := &((*(*(struct {
31733 FrameDuration float32
31734 ViewAngleFrames bool
31735 }))(obj)).Frame0)[local361]
31736 *p = int16(read16(r))
31740 p := &(*(*(struct {
31743 FrameDuration float32
31744 ViewAngleFrames bool
31749 p := &(*(*(struct {
31752 FrameDuration float32
31753 ViewAngleFrames bool
31754 }))(obj)).FrameDuration
31755 *p = math.Float32frombits(read32(r))
31758 p := &(*(*(struct {
31761 FrameDuration float32
31762 ViewAngleFrames bool
31763 }))(obj)).ViewAngleFrames
31764 switch n := read8(r); n {
31770 chk(fmt.Errorf("invalid bool: %d", n))
31775 func (obj *Group) serialize(w io.Writer) {
31776 if len(([]byte((*(*(struct {
31779 }))(obj)).Name))) > math.MaxUint16 {
31783 x := uint16(len(([]byte((*(*(struct {
31787 write16(w, uint16(x))
31790 _, err := w.Write(([]byte((*(*(struct {
31793 }))(obj)).Name))[:])
31801 write16(w, uint16(x))
31805 func (obj *Group) deserialize(r io.Reader) {
31806 var local362 []uint8
31807 var local363 uint16
31812 (local362) = make([]uint8, local363)
31814 _, err := io.ReadFull(r, (local362)[:])
31820 }))(obj)).Name) = string(local362)
31822 p := &(*(*(struct {
31826 *p = int16(read16(r))
31830 func (obj *AOAnim) serialize(w io.Writer) {
31831 for local364 := range (*(*(struct {
31838 x := ((*(*(struct {
31843 }))(obj)).Frames)[local364]
31844 write32(w, uint32(x))
31854 write32(w, math.Float32bits(x))
31863 write32(w, math.Float32bits(x))
31880 func (obj *AOAnim) deserialize(r io.Reader) {
31881 for local365 := range (*(*(struct {
31888 p := &((*(*(struct {
31893 }))(obj)).Frames)[local365]
31894 *p = int32(read32(r))
31898 p := &(*(*(struct {
31904 *p = math.Float32frombits(read32(r))
31907 p := &(*(*(struct {
31913 *p = math.Float32frombits(read32(r))
31916 p := &(*(*(struct {
31922 switch n := read8(r); n {
31928 chk(fmt.Errorf("invalid bool: %d", n))
31933 func (obj *AOBonePos) serialize(w io.Writer) {
31934 if err := pcall(func() {
31938 }))(obj)).Pos).serialize(w)
31943 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31945 for local366 := range (*(*(struct {
31950 x := ((*(*(struct {
31953 }))(obj)).Rot)[local366]
31954 write32(w, math.Float32bits(x))
31959 func (obj *AOBonePos) deserialize(r io.Reader) {
31960 if err := pcall(func() {
31964 }))(obj)).Pos).deserialize(r)
31969 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
31971 for local367 := range (*(*(struct {
31976 p := &((*(*(struct {
31979 }))(obj)).Rot)[local367]
31980 *p = math.Float32frombits(read32(r))
31985 func (obj *AOAttach) serialize(w io.Writer) {
31986 if err := pcall(func() {
31993 }))(obj)).ParentID).serialize(w)
31998 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32000 if len(([]byte((*(*(struct {
32006 }))(obj)).Bone))) > math.MaxUint16 {
32010 x := uint16(len(([]byte((*(*(struct {
32017 write16(w, uint16(x))
32020 _, err := w.Write(([]byte((*(*(struct {
32026 }))(obj)).Bone))[:])
32029 if err := pcall(func() {
32036 }))(obj)).Pos).serialize(w)
32041 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32043 for local368 := range (*(*(struct {
32051 x := ((*(*(struct {
32057 }))(obj)).Rot)[local368]
32058 write32(w, math.Float32bits(x))
32068 }))(obj)).ForceVisible
32077 func (obj *AOAttach) deserialize(r io.Reader) {
32078 if err := pcall(func() {
32085 }))(obj)).ParentID).deserialize(r)
32090 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32092 var local369 []uint8
32093 var local370 uint16
32098 (local369) = make([]uint8, local370)
32100 _, err := io.ReadFull(r, (local369)[:])
32109 }))(obj)).Bone) = string(local369)
32110 if err := pcall(func() {
32117 }))(obj)).Pos).deserialize(r)
32122 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32124 for local371 := range (*(*(struct {
32132 p := &((*(*(struct {
32138 }))(obj)).Rot)[local371]
32139 *p = math.Float32frombits(read32(r))
32143 p := &(*(*(struct {
32149 }))(obj)).ForceVisible
32150 switch n := read8(r); n {
32156 chk(fmt.Errorf("invalid bool: %d", n))
32161 func (obj *AOPhysOverride) serialize(w io.Writer) {
32164 Walk, Jump, Gravity float32
32167 NoSneak, NoSneakGlitch, OldSneak bool
32169 write32(w, math.Float32bits(x))
32173 Walk, Jump, Gravity float32
32176 NoSneak, NoSneakGlitch, OldSneak bool
32178 write32(w, math.Float32bits(x))
32182 Walk, Jump, Gravity float32
32185 NoSneak, NoSneakGlitch, OldSneak bool
32187 write32(w, math.Float32bits(x))
32191 Walk, Jump, Gravity float32
32194 NoSneak, NoSneakGlitch, OldSneak bool
32204 Walk, Jump, Gravity float32
32207 NoSneak, NoSneakGlitch, OldSneak bool
32208 }))(obj)).NoSneakGlitch
32217 Walk, Jump, Gravity float32
32220 NoSneak, NoSneakGlitch, OldSneak bool
32230 func (obj *AOPhysOverride) deserialize(r io.Reader) {
32232 p := &(*(*(struct {
32233 Walk, Jump, Gravity float32
32236 NoSneak, NoSneakGlitch, OldSneak bool
32238 *p = math.Float32frombits(read32(r))
32241 p := &(*(*(struct {
32242 Walk, Jump, Gravity float32
32245 NoSneak, NoSneakGlitch, OldSneak bool
32247 *p = math.Float32frombits(read32(r))
32250 p := &(*(*(struct {
32251 Walk, Jump, Gravity float32
32254 NoSneak, NoSneakGlitch, OldSneak bool
32256 *p = math.Float32frombits(read32(r))
32259 p := &(*(*(struct {
32260 Walk, Jump, Gravity float32
32263 NoSneak, NoSneakGlitch, OldSneak bool
32265 switch n := read8(r); n {
32271 chk(fmt.Errorf("invalid bool: %d", n))
32275 p := &(*(*(struct {
32276 Walk, Jump, Gravity float32
32279 NoSneak, NoSneakGlitch, OldSneak bool
32280 }))(obj)).NoSneakGlitch
32281 switch n := read8(r); n {
32287 chk(fmt.Errorf("invalid bool: %d", n))
32291 p := &(*(*(struct {
32292 Walk, Jump, Gravity float32
32295 NoSneak, NoSneakGlitch, OldSneak bool
32297 switch n := read8(r); n {
32303 chk(fmt.Errorf("invalid bool: %d", n))
32308 func (obj *aoType) serialize(w io.Writer) {
32310 x := *(*(uint8))(obj)
32311 write8(w, uint8(x))
32315 func (obj *aoType) deserialize(r io.Reader) {
32317 p := &*(*(uint8))(obj)
32322 func (obj *NodeMetaField) serialize(w io.Writer) {
32323 if err := pcall(func() {
32327 }))(obj)).Field).serialize(w)
32332 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
32347 func (obj *NodeMetaField) deserialize(r io.Reader) {
32348 if err := pcall(func() {
32352 }))(obj)).Field).deserialize(r)
32357 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
32360 p := &(*(*(struct {
32364 switch n := read8(r); n {
32370 chk(fmt.Errorf("invalid bool: %d", n))
32375 func (obj *MinimapType) serialize(w io.Writer) {
32377 x := *(*(uint16))(obj)
32378 write16(w, uint16(x))
32382 func (obj *MinimapType) deserialize(r io.Reader) {
32384 p := &*(*(uint16))(obj)
32389 func (obj *Param1Type) serialize(w io.Writer) {
32391 x := *(*(uint8))(obj)
32392 write8(w, uint8(x))
32396 func (obj *Param1Type) deserialize(r io.Reader) {
32398 p := &*(*(uint8))(obj)
32403 func (obj *Param2Type) serialize(w io.Writer) {
32405 x := *(*(uint8))(obj)
32406 write8(w, uint8(x))
32410 func (obj *Param2Type) deserialize(r io.Reader) {
32412 p := &*(*(uint8))(obj)
32417 func (obj *DrawType) serialize(w io.Writer) {
32419 x := *(*(uint8))(obj)
32420 write8(w, uint8(x))
32424 func (obj *DrawType) deserialize(r io.Reader) {
32426 p := &*(*(uint8))(obj)
32431 func (obj *TileDef) serialize(w io.Writer) {
32433 local372 := uint8(6)
32436 write8(w, uint8(x))
32439 if err := pcall(func() {
32445 //mt:if %s.Flags&TileColor != 0
32448 //mt:if %s.Flags&TileScale != 0
32451 //mt:if %s.Flags&TileAlign != 0
32453 }))(obj)).Texture).serialize(w)
32458 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32460 if err := pcall(func() {
32466 //mt:if %s.Flags&TileColor != 0
32469 //mt:if %s.Flags&TileScale != 0
32472 //mt:if %s.Flags&TileAlign != 0
32474 }))(obj)).Anim).serialize(w)
32479 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
32481 if err := pcall(func() {
32487 //mt:if %s.Flags&TileColor != 0
32490 //mt:if %s.Flags&TileScale != 0
32493 //mt:if %s.Flags&TileAlign != 0
32495 }))(obj)).Flags).serialize(w)
32500 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
32507 //mt:if %s.Flags&TileColor != 0
32510 //mt:if %s.Flags&TileScale != 0
32513 //mt:if %s.Flags&TileAlign != 0
32515 }))(obj)).Flags&TileColor != 0 {
32522 //mt:if %s.Flags&TileColor != 0
32525 //mt:if %s.Flags&TileScale != 0
32528 //mt:if %s.Flags&TileAlign != 0
32531 write8(w, uint8(x))
32539 //mt:if %s.Flags&TileColor != 0
32542 //mt:if %s.Flags&TileScale != 0
32545 //mt:if %s.Flags&TileAlign != 0
32548 write8(w, uint8(x))
32556 //mt:if %s.Flags&TileColor != 0
32559 //mt:if %s.Flags&TileScale != 0
32562 //mt:if %s.Flags&TileAlign != 0
32565 write8(w, uint8(x))
32573 //mt:if %s.Flags&TileColor != 0
32576 //mt:if %s.Flags&TileScale != 0
32579 //mt:if %s.Flags&TileAlign != 0
32581 }))(obj)).Flags&TileScale != 0 {
32588 //mt:if %s.Flags&TileColor != 0
32591 //mt:if %s.Flags&TileScale != 0
32594 //mt:if %s.Flags&TileAlign != 0
32597 write8(w, uint8(x))
32605 //mt:if %s.Flags&TileColor != 0
32608 //mt:if %s.Flags&TileScale != 0
32611 //mt:if %s.Flags&TileAlign != 0
32613 }))(obj)).Flags&TileAlign != 0 {
32614 if err := pcall(func() {
32620 //mt:if %s.Flags&TileColor != 0
32623 //mt:if %s.Flags&TileScale != 0
32626 //mt:if %s.Flags&TileAlign != 0
32628 }))(obj)).Align).serialize(w)
32633 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
32638 func (obj *TileDef) deserialize(r io.Reader) {
32641 local374 := uint8(6)
32646 if local373 != local374 {
32647 chk(fmt.Errorf("const %v: %v", "uint8(6)", local373))
32650 if err := pcall(func() {
32656 //mt:if %s.Flags&TileColor != 0
32659 //mt:if %s.Flags&TileScale != 0
32662 //mt:if %s.Flags&TileAlign != 0
32664 }))(obj)).Texture).deserialize(r)
32669 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32671 if err := pcall(func() {
32677 //mt:if %s.Flags&TileColor != 0
32680 //mt:if %s.Flags&TileScale != 0
32683 //mt:if %s.Flags&TileAlign != 0
32685 }))(obj)).Anim).deserialize(r)
32690 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
32692 if err := pcall(func() {
32698 //mt:if %s.Flags&TileColor != 0
32701 //mt:if %s.Flags&TileScale != 0
32704 //mt:if %s.Flags&TileAlign != 0
32706 }))(obj)).Flags).deserialize(r)
32711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
32718 //mt:if %s.Flags&TileColor != 0
32721 //mt:if %s.Flags&TileScale != 0
32724 //mt:if %s.Flags&TileAlign != 0
32726 }))(obj)).Flags&TileColor != 0 {
32728 p := &(*(*(struct {
32733 //mt:if %s.Flags&TileColor != 0
32736 //mt:if %s.Flags&TileScale != 0
32739 //mt:if %s.Flags&TileAlign != 0
32745 p := &(*(*(struct {
32750 //mt:if %s.Flags&TileColor != 0
32753 //mt:if %s.Flags&TileScale != 0
32756 //mt:if %s.Flags&TileAlign != 0
32762 p := &(*(*(struct {
32767 //mt:if %s.Flags&TileColor != 0
32770 //mt:if %s.Flags&TileScale != 0
32773 //mt:if %s.Flags&TileAlign != 0
32784 //mt:if %s.Flags&TileColor != 0
32787 //mt:if %s.Flags&TileScale != 0
32790 //mt:if %s.Flags&TileAlign != 0
32792 }))(obj)).Flags&TileScale != 0 {
32794 p := &(*(*(struct {
32799 //mt:if %s.Flags&TileColor != 0
32802 //mt:if %s.Flags&TileScale != 0
32805 //mt:if %s.Flags&TileAlign != 0
32816 //mt:if %s.Flags&TileColor != 0
32819 //mt:if %s.Flags&TileScale != 0
32822 //mt:if %s.Flags&TileAlign != 0
32824 }))(obj)).Flags&TileAlign != 0 {
32825 if err := pcall(func() {
32831 //mt:if %s.Flags&TileColor != 0
32834 //mt:if %s.Flags&TileScale != 0
32837 //mt:if %s.Flags&TileAlign != 0
32839 }))(obj)).Align).deserialize(r)
32844 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
32849 func (obj *WaveType) serialize(w io.Writer) {
32851 x := *(*(uint8))(obj)
32852 write8(w, uint8(x))
32856 func (obj *WaveType) deserialize(r io.Reader) {
32858 p := &*(*(uint8))(obj)
32863 func (obj *LiquidType) serialize(w io.Writer) {
32865 x := *(*(uint8))(obj)
32866 write8(w, uint8(x))
32870 func (obj *LiquidType) deserialize(r io.Reader) {
32872 p := &*(*(uint8))(obj)
32877 func (obj *NodeBox) serialize(w io.Writer) {
32879 local375 := uint8(6)
32882 write8(w, uint8(x))
32885 if err := pcall(func() {
32889 //mt:if %s.Type == MountedBox
32890 WallTop, WallBot, WallSides Box
32892 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32895 //mt:if %s.Type == ConnectedBox
32896 ConnDirs, DiscoDirs DirBoxes
32897 DiscoAll, DiscoSides []Box
32898 }))(obj)).Type).serialize(w)
32903 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
32908 //mt:if %s.Type == MountedBox
32909 WallTop, WallBot, WallSides Box
32911 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32914 //mt:if %s.Type == ConnectedBox
32915 ConnDirs, DiscoDirs DirBoxes
32916 DiscoAll, DiscoSides []Box
32917 }))(obj)).Type < maxBox) {
32918 chk(errors.New("assertion failed: %s.Type < maxBox"))
32923 //mt:if %s.Type == MountedBox
32924 WallTop, WallBot, WallSides Box
32926 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32929 //mt:if %s.Type == ConnectedBox
32930 ConnDirs, DiscoDirs DirBoxes
32931 DiscoAll, DiscoSides []Box
32932 }))(obj)).Type == MountedBox {
32933 if err := pcall(func() {
32937 //mt:if %s.Type == MountedBox
32938 WallTop, WallBot, WallSides Box
32940 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32943 //mt:if %s.Type == ConnectedBox
32944 ConnDirs, DiscoDirs DirBoxes
32945 DiscoAll, DiscoSides []Box
32946 }))(obj)).WallTop).serialize(w)
32951 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
32953 if err := pcall(func() {
32957 //mt:if %s.Type == MountedBox
32958 WallTop, WallBot, WallSides Box
32960 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32963 //mt:if %s.Type == ConnectedBox
32964 ConnDirs, DiscoDirs DirBoxes
32965 DiscoAll, DiscoSides []Box
32966 }))(obj)).WallBot).serialize(w)
32971 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
32973 if err := pcall(func() {
32977 //mt:if %s.Type == MountedBox
32978 WallTop, WallBot, WallSides Box
32980 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32983 //mt:if %s.Type == ConnectedBox
32984 ConnDirs, DiscoDirs DirBoxes
32985 DiscoAll, DiscoSides []Box
32986 }))(obj)).WallSides).serialize(w)
32991 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
32994 if t := (*(*(struct {
32997 //mt:if %s.Type == MountedBox
32998 WallTop, WallBot, WallSides Box
33000 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33003 //mt:if %s.Type == ConnectedBox
33004 ConnDirs, DiscoDirs DirBoxes
33005 DiscoAll, DiscoSides []Box
33006 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33007 if len(((*(*(struct {
33010 //mt:if %s.Type == MountedBox
33011 WallTop, WallBot, WallSides Box
33013 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33016 //mt:if %s.Type == ConnectedBox
33017 ConnDirs, DiscoDirs DirBoxes
33018 DiscoAll, DiscoSides []Box
33019 }))(obj)).Fixed)) > math.MaxUint16 {
33023 x := uint16(len(((*(*(struct {
33026 //mt:if %s.Type == MountedBox
33027 WallTop, WallBot, WallSides Box
33029 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33032 //mt:if %s.Type == ConnectedBox
33033 ConnDirs, DiscoDirs DirBoxes
33034 DiscoAll, DiscoSides []Box
33036 write16(w, uint16(x))
33038 for local376 := range (*(*(struct {
33041 //mt:if %s.Type == MountedBox
33042 WallTop, WallBot, WallSides Box
33044 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33047 //mt:if %s.Type == ConnectedBox
33048 ConnDirs, DiscoDirs DirBoxes
33049 DiscoAll, DiscoSides []Box
33051 if err := pcall(func() {
33055 //mt:if %s.Type == MountedBox
33056 WallTop, WallBot, WallSides Box
33058 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33061 //mt:if %s.Type == ConnectedBox
33062 ConnDirs, DiscoDirs DirBoxes
33063 DiscoAll, DiscoSides []Box
33064 }))(obj)).Fixed)[local376]).serialize(w)
33069 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33076 //mt:if %s.Type == MountedBox
33077 WallTop, WallBot, WallSides Box
33079 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33082 //mt:if %s.Type == ConnectedBox
33083 ConnDirs, DiscoDirs DirBoxes
33084 DiscoAll, DiscoSides []Box
33085 }))(obj)).Type == ConnectedBox {
33086 if err := pcall(func() {
33090 //mt:if %s.Type == MountedBox
33091 WallTop, WallBot, WallSides Box
33093 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33096 //mt:if %s.Type == ConnectedBox
33097 ConnDirs, DiscoDirs DirBoxes
33098 DiscoAll, DiscoSides []Box
33099 }))(obj)).ConnDirs).serialize(w)
33104 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33106 if err := pcall(func() {
33110 //mt:if %s.Type == MountedBox
33111 WallTop, WallBot, WallSides Box
33113 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33116 //mt:if %s.Type == ConnectedBox
33117 ConnDirs, DiscoDirs DirBoxes
33118 DiscoAll, DiscoSides []Box
33119 }))(obj)).DiscoDirs).serialize(w)
33124 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33126 if len(((*(*(struct {
33129 //mt:if %s.Type == MountedBox
33130 WallTop, WallBot, WallSides Box
33132 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33135 //mt:if %s.Type == ConnectedBox
33136 ConnDirs, DiscoDirs DirBoxes
33137 DiscoAll, DiscoSides []Box
33138 }))(obj)).DiscoAll)) > math.MaxUint16 {
33142 x := uint16(len(((*(*(struct {
33145 //mt:if %s.Type == MountedBox
33146 WallTop, WallBot, WallSides Box
33148 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33151 //mt:if %s.Type == ConnectedBox
33152 ConnDirs, DiscoDirs DirBoxes
33153 DiscoAll, DiscoSides []Box
33154 }))(obj)).DiscoAll)))
33155 write16(w, uint16(x))
33157 for local377 := range (*(*(struct {
33160 //mt:if %s.Type == MountedBox
33161 WallTop, WallBot, WallSides Box
33163 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33166 //mt:if %s.Type == ConnectedBox
33167 ConnDirs, DiscoDirs DirBoxes
33168 DiscoAll, DiscoSides []Box
33169 }))(obj)).DiscoAll {
33170 if err := pcall(func() {
33174 //mt:if %s.Type == MountedBox
33175 WallTop, WallBot, WallSides Box
33177 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33180 //mt:if %s.Type == ConnectedBox
33181 ConnDirs, DiscoDirs DirBoxes
33182 DiscoAll, DiscoSides []Box
33183 }))(obj)).DiscoAll)[local377]).serialize(w)
33188 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33191 if len(((*(*(struct {
33194 //mt:if %s.Type == MountedBox
33195 WallTop, WallBot, WallSides Box
33197 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33200 //mt:if %s.Type == ConnectedBox
33201 ConnDirs, DiscoDirs DirBoxes
33202 DiscoAll, DiscoSides []Box
33203 }))(obj)).DiscoSides)) > math.MaxUint16 {
33207 x := uint16(len(((*(*(struct {
33210 //mt:if %s.Type == MountedBox
33211 WallTop, WallBot, WallSides Box
33213 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33216 //mt:if %s.Type == ConnectedBox
33217 ConnDirs, DiscoDirs DirBoxes
33218 DiscoAll, DiscoSides []Box
33219 }))(obj)).DiscoSides)))
33220 write16(w, uint16(x))
33222 for local378 := range (*(*(struct {
33225 //mt:if %s.Type == MountedBox
33226 WallTop, WallBot, WallSides Box
33228 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33231 //mt:if %s.Type == ConnectedBox
33232 ConnDirs, DiscoDirs DirBoxes
33233 DiscoAll, DiscoSides []Box
33234 }))(obj)).DiscoSides {
33235 if err := pcall(func() {
33239 //mt:if %s.Type == MountedBox
33240 WallTop, WallBot, WallSides Box
33242 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33245 //mt:if %s.Type == ConnectedBox
33246 ConnDirs, DiscoDirs DirBoxes
33247 DiscoAll, DiscoSides []Box
33248 }))(obj)).DiscoSides)[local378]).serialize(w)
33253 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33259 func (obj *NodeBox) deserialize(r io.Reader) {
33262 local380 := uint8(6)
33267 if local379 != local380 {
33268 chk(fmt.Errorf("const %v: %v", "uint8(6)", local379))
33271 if err := pcall(func() {
33275 //mt:if %s.Type == MountedBox
33276 WallTop, WallBot, WallSides Box
33278 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33281 //mt:if %s.Type == ConnectedBox
33282 ConnDirs, DiscoDirs DirBoxes
33283 DiscoAll, DiscoSides []Box
33284 }))(obj)).Type).deserialize(r)
33289 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
33294 //mt:if %s.Type == MountedBox
33295 WallTop, WallBot, WallSides Box
33297 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33300 //mt:if %s.Type == ConnectedBox
33301 ConnDirs, DiscoDirs DirBoxes
33302 DiscoAll, DiscoSides []Box
33303 }))(obj)).Type < maxBox) {
33304 chk(errors.New("assertion failed: %s.Type < maxBox"))
33309 //mt:if %s.Type == MountedBox
33310 WallTop, WallBot, WallSides Box
33312 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33315 //mt:if %s.Type == ConnectedBox
33316 ConnDirs, DiscoDirs DirBoxes
33317 DiscoAll, DiscoSides []Box
33318 }))(obj)).Type == MountedBox {
33319 if err := pcall(func() {
33323 //mt:if %s.Type == MountedBox
33324 WallTop, WallBot, WallSides Box
33326 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33329 //mt:if %s.Type == ConnectedBox
33330 ConnDirs, DiscoDirs DirBoxes
33331 DiscoAll, DiscoSides []Box
33332 }))(obj)).WallTop).deserialize(r)
33337 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33339 if err := pcall(func() {
33343 //mt:if %s.Type == MountedBox
33344 WallTop, WallBot, WallSides Box
33346 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33349 //mt:if %s.Type == ConnectedBox
33350 ConnDirs, DiscoDirs DirBoxes
33351 DiscoAll, DiscoSides []Box
33352 }))(obj)).WallBot).deserialize(r)
33357 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33359 if err := pcall(func() {
33363 //mt:if %s.Type == MountedBox
33364 WallTop, WallBot, WallSides Box
33366 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33369 //mt:if %s.Type == ConnectedBox
33370 ConnDirs, DiscoDirs DirBoxes
33371 DiscoAll, DiscoSides []Box
33372 }))(obj)).WallSides).deserialize(r)
33377 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33380 if t := (*(*(struct {
33383 //mt:if %s.Type == MountedBox
33384 WallTop, WallBot, WallSides Box
33386 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33389 //mt:if %s.Type == ConnectedBox
33390 ConnDirs, DiscoDirs DirBoxes
33391 DiscoAll, DiscoSides []Box
33392 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33393 var local381 uint16
33401 //mt:if %s.Type == MountedBox
33402 WallTop, WallBot, WallSides Box
33404 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33407 //mt:if %s.Type == ConnectedBox
33408 ConnDirs, DiscoDirs DirBoxes
33409 DiscoAll, DiscoSides []Box
33410 }))(obj)).Fixed) = make([]Box, local381)
33411 for local382 := range (*(*(struct {
33414 //mt:if %s.Type == MountedBox
33415 WallTop, WallBot, WallSides Box
33417 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33420 //mt:if %s.Type == ConnectedBox
33421 ConnDirs, DiscoDirs DirBoxes
33422 DiscoAll, DiscoSides []Box
33424 if err := pcall(func() {
33428 //mt:if %s.Type == MountedBox
33429 WallTop, WallBot, WallSides Box
33431 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33434 //mt:if %s.Type == ConnectedBox
33435 ConnDirs, DiscoDirs DirBoxes
33436 DiscoAll, DiscoSides []Box
33437 }))(obj)).Fixed)[local382]).deserialize(r)
33442 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33449 //mt:if %s.Type == MountedBox
33450 WallTop, WallBot, WallSides Box
33452 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33455 //mt:if %s.Type == ConnectedBox
33456 ConnDirs, DiscoDirs DirBoxes
33457 DiscoAll, DiscoSides []Box
33458 }))(obj)).Type == ConnectedBox {
33459 if err := pcall(func() {
33463 //mt:if %s.Type == MountedBox
33464 WallTop, WallBot, WallSides Box
33466 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33469 //mt:if %s.Type == ConnectedBox
33470 ConnDirs, DiscoDirs DirBoxes
33471 DiscoAll, DiscoSides []Box
33472 }))(obj)).ConnDirs).deserialize(r)
33477 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33479 if err := pcall(func() {
33483 //mt:if %s.Type == MountedBox
33484 WallTop, WallBot, WallSides Box
33486 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33489 //mt:if %s.Type == ConnectedBox
33490 ConnDirs, DiscoDirs DirBoxes
33491 DiscoAll, DiscoSides []Box
33492 }))(obj)).DiscoDirs).deserialize(r)
33497 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33499 var local383 uint16
33507 //mt:if %s.Type == MountedBox
33508 WallTop, WallBot, WallSides Box
33510 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33513 //mt:if %s.Type == ConnectedBox
33514 ConnDirs, DiscoDirs DirBoxes
33515 DiscoAll, DiscoSides []Box
33516 }))(obj)).DiscoAll) = make([]Box, local383)
33517 for local384 := range (*(*(struct {
33520 //mt:if %s.Type == MountedBox
33521 WallTop, WallBot, WallSides Box
33523 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33526 //mt:if %s.Type == ConnectedBox
33527 ConnDirs, DiscoDirs DirBoxes
33528 DiscoAll, DiscoSides []Box
33529 }))(obj)).DiscoAll {
33530 if err := pcall(func() {
33534 //mt:if %s.Type == MountedBox
33535 WallTop, WallBot, WallSides Box
33537 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33540 //mt:if %s.Type == ConnectedBox
33541 ConnDirs, DiscoDirs DirBoxes
33542 DiscoAll, DiscoSides []Box
33543 }))(obj)).DiscoAll)[local384]).deserialize(r)
33548 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33551 var local385 uint16
33559 //mt:if %s.Type == MountedBox
33560 WallTop, WallBot, WallSides Box
33562 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33565 //mt:if %s.Type == ConnectedBox
33566 ConnDirs, DiscoDirs DirBoxes
33567 DiscoAll, DiscoSides []Box
33568 }))(obj)).DiscoSides) = make([]Box, local385)
33569 for local386 := range (*(*(struct {
33572 //mt:if %s.Type == MountedBox
33573 WallTop, WallBot, WallSides Box
33575 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33578 //mt:if %s.Type == ConnectedBox
33579 ConnDirs, DiscoDirs DirBoxes
33580 DiscoAll, DiscoSides []Box
33581 }))(obj)).DiscoSides {
33582 if err := pcall(func() {
33586 //mt:if %s.Type == MountedBox
33587 WallTop, WallBot, WallSides Box
33589 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33592 //mt:if %s.Type == ConnectedBox
33593 ConnDirs, DiscoDirs DirBoxes
33594 DiscoAll, DiscoSides []Box
33595 }))(obj)).DiscoSides)[local386]).deserialize(r)
33600 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33606 func (obj *SoundDef) serialize(w io.Writer) {
33607 if len(([]byte((*(*(struct {
33609 Gain, Pitch, Fade float32
33610 }))(obj)).Name))) > math.MaxUint16 {
33614 x := uint16(len(([]byte((*(*(struct {
33616 Gain, Pitch, Fade float32
33618 write16(w, uint16(x))
33621 _, err := w.Write(([]byte((*(*(struct {
33623 Gain, Pitch, Fade float32
33624 }))(obj)).Name))[:])
33630 Gain, Pitch, Fade float32
33632 write32(w, math.Float32bits(x))
33637 Gain, Pitch, Fade float32
33639 write32(w, math.Float32bits(x))
33644 Gain, Pitch, Fade float32
33646 write32(w, math.Float32bits(x))
33650 func (obj *SoundDef) deserialize(r io.Reader) {
33651 var local387 []uint8
33652 var local388 uint16
33657 (local387) = make([]uint8, local388)
33659 _, err := io.ReadFull(r, (local387)[:])
33664 Gain, Pitch, Fade float32
33665 }))(obj)).Name) = string(local387)
33667 p := &(*(*(struct {
33669 Gain, Pitch, Fade float32
33671 *p = math.Float32frombits(read32(r))
33674 p := &(*(*(struct {
33676 Gain, Pitch, Fade float32
33678 *p = math.Float32frombits(read32(r))
33681 p := &(*(*(struct {
33683 Gain, Pitch, Fade float32
33685 *p = math.Float32frombits(read32(r))
33689 func (obj *AlphaUse) serialize(w io.Writer) {
33691 x := *(*(uint8))(obj)
33692 write8(w, uint8(x))
33696 func (obj *AlphaUse) deserialize(r io.Reader) {
33698 p := &*(*(uint8))(obj)
33703 func (obj *Keys) serialize(w io.Writer) {
33705 x := *(*(uint32))(obj)
33706 write32(w, uint32(x))
33710 func (obj *Keys) deserialize(r io.Reader) {
33712 p := &*(*(uint32))(obj)
33717 func (obj *MapBlkFlags) serialize(w io.Writer) {
33719 x := *(*(uint8))(obj)
33720 write8(w, uint8(x))
33724 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33726 p := &*(*(uint8))(obj)
33731 func (obj *LitFromBlks) serialize(w io.Writer) {
33733 x := *(*(uint16))(obj)
33734 write16(w, uint16(x))
33738 func (obj *LitFromBlks) deserialize(r io.Reader) {
33740 p := &*(*(uint16))(obj)
33745 func (obj *AOInitData) serialize(w io.Writer) {
33747 local389 := uint8(1)
33750 write8(w, uint8(x))
33753 if len(([]byte((*(*(struct {
33766 // See (de)serialize.fmt.
33768 }))(obj)).Name))) > math.MaxUint16 {
33772 x := uint16(len(([]byte((*(*(struct {
33785 // See (de)serialize.fmt.
33788 write16(w, uint16(x))
33791 _, err := w.Write(([]byte((*(*(struct {
33804 // See (de)serialize.fmt.
33806 }))(obj)).Name))[:])
33823 // See (de)serialize.fmt.
33832 if err := pcall(func() {
33846 // See (de)serialize.fmt.
33848 }))(obj)).ID).serialize(w)
33853 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
33855 if err := pcall(func() {
33869 // See (de)serialize.fmt.
33871 }))(obj)).Pos).serialize(w)
33876 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
33878 for local390 := range (*(*(struct {
33891 // See (de)serialize.fmt.
33895 x := ((*(*(struct {
33908 // See (de)serialize.fmt.
33910 }))(obj)).Rot)[local390]
33911 write32(w, math.Float32bits(x))
33928 // See (de)serialize.fmt.
33931 write16(w, uint16(x))
33947 // See (de)serialize.fmt.
33950 { // For AOInitData.Msgs.
33951 if len(x) > math.MaxUint8 {
33954 write8(w, uint8(len(x)))
33955 for _, msg := range x {
33957 chk(writeAOMsg(&b, msg))
33958 if b.Len() > math.MaxUint32 {
33961 write32(w, uint32(b.Len()))
33962 _, err := b.WriteTo(w)
33969 func (obj *AOInitData) deserialize(r io.Reader) {
33972 local392 := uint8(1)
33977 if local391 != local392 {
33978 chk(fmt.Errorf("const %v: %v", "uint8(1)", local391))
33981 var local393 []uint8
33982 var local394 uint16
33987 (local393) = make([]uint8, local394)
33989 _, err := io.ReadFull(r, (local393)[:])
34005 // See (de)serialize.fmt.
34007 }))(obj)).Name) = string(local393)
34009 p := &(*(*(struct {
34022 // See (de)serialize.fmt.
34025 switch n := read8(r); n {
34031 chk(fmt.Errorf("invalid bool: %d", n))
34034 if err := pcall(func() {
34048 // See (de)serialize.fmt.
34050 }))(obj)).ID).deserialize(r)
34055 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34057 if err := pcall(func() {
34071 // See (de)serialize.fmt.
34073 }))(obj)).Pos).deserialize(r)
34078 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34080 for local395 := range (*(*(struct {
34093 // See (de)serialize.fmt.
34097 p := &((*(*(struct {
34110 // See (de)serialize.fmt.
34112 }))(obj)).Rot)[local395]
34113 *p = math.Float32frombits(read32(r))
34117 p := &(*(*(struct {
34130 // See (de)serialize.fmt.
34136 p := &(*(*(struct {
34149 // See (de)serialize.fmt.
34152 { // For AOInitData.Msgs.
34153 *p = make([]AOMsg, read8(r))
34154 for i := range *p {
34155 r := &io.LimitedReader{R: r, N: int64(read32(r))}
34156 msg, err := readAOMsg(r)
34160 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34167 func (obj *ItemType) serialize(w io.Writer) {
34169 x := *(*(uint8))(obj)
34170 write8(w, uint8(x))
34174 func (obj *ItemType) deserialize(r io.Reader) {
34176 p := &*(*(uint8))(obj)
34181 func (obj *ToolCaps) serialize(w io.Writer) {
34182 if _ = (*(*(struct {
34183 //mt:if _ = %s; false
34186 AttackCooldown float32
34190 GroupCaps []ToolGroupCap
34200 //mt:if _ = %s; false
34203 AttackCooldown float32
34207 GroupCaps []ToolGroupCap
34224 w := new(bytes.Buffer)
34226 if r.N > 0 { (*(*(struct {
34227 //mt:if _ = %s; false
34230 AttackCooldown float32
34234 GroupCaps []ToolGroupCap
34241 }))(obj)).NonNil = true}; /**/{
34243 //mt:if _ = %s; false
34246 AttackCooldown float32
34250 GroupCaps []ToolGroupCap
34259 local396 := uint8(5)
34262 write8(w, uint8(x))
34267 //mt:if _ = %s; false
34270 AttackCooldown float32
34274 GroupCaps []ToolGroupCap
34281 }))(obj)).AttackCooldown
34282 write32(w, math.Float32bits(x))
34286 //mt:if _ = %s; false
34289 AttackCooldown float32
34293 GroupCaps []ToolGroupCap
34300 }))(obj)).MaxDropLvl
34301 write16(w, uint16(x))
34303 if len(((*(*(struct {
34304 //mt:if _ = %s; false
34307 AttackCooldown float32
34311 GroupCaps []ToolGroupCap
34318 }))(obj)).GroupCaps)) > math.MaxUint32 {
34322 x := uint32(len(((*(*(struct {
34323 //mt:if _ = %s; false
34326 AttackCooldown float32
34330 GroupCaps []ToolGroupCap
34337 }))(obj)).GroupCaps)))
34338 write32(w, uint32(x))
34340 for local397 := range (*(*(struct {
34341 //mt:if _ = %s; false
34344 AttackCooldown float32
34348 GroupCaps []ToolGroupCap
34355 }))(obj)).GroupCaps {
34356 if err := pcall(func() {
34358 //mt:if _ = %s; false
34361 AttackCooldown float32
34365 GroupCaps []ToolGroupCap
34372 }))(obj)).GroupCaps)[local397]).serialize(w)
34377 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
34380 if len(((*(*(struct {
34381 //mt:if _ = %s; false
34384 AttackCooldown float32
34388 GroupCaps []ToolGroupCap
34395 }))(obj)).DmgGroups)) > math.MaxUint32 {
34399 x := uint32(len(((*(*(struct {
34400 //mt:if _ = %s; false
34403 AttackCooldown float32
34407 GroupCaps []ToolGroupCap
34414 }))(obj)).DmgGroups)))
34415 write32(w, uint32(x))
34417 for local398 := range (*(*(struct {
34418 //mt:if _ = %s; false
34421 AttackCooldown float32
34425 GroupCaps []ToolGroupCap
34432 }))(obj)).DmgGroups {
34433 if err := pcall(func() {
34435 //mt:if _ = %s; false
34438 AttackCooldown float32
34442 GroupCaps []ToolGroupCap
34449 }))(obj)).DmgGroups)[local398]).serialize(w)
34454 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
34458 x := uint16((*(*(struct {
34459 //mt:if _ = %s; false
34462 AttackCooldown float32
34466 GroupCaps []ToolGroupCap
34473 }))(obj)).PunchUses)
34474 write16(w, uint16(x))
34481 if len((buf.Bytes())) > math.MaxUint16 {
34485 x := uint16(len((buf.Bytes())))
34486 write16(w, uint16(x))
34489 _, err := w.Write((buf.Bytes())[:])
34496 func (obj *ToolCaps) deserialize(r io.Reader) {
34497 if _ = (*(*(struct {
34498 //mt:if _ = %s; false
34501 AttackCooldown float32
34505 GroupCaps []ToolGroupCap
34514 p := &(*(*(struct {
34515 //mt:if _ = %s; false
34518 AttackCooldown float32
34522 GroupCaps []ToolGroupCap
34530 switch n := read8(r); n {
34536 chk(fmt.Errorf("invalid bool: %d", n))
34546 r := &io.LimitedReader{R: r, N: int64(n)}
34549 //mt:if _ = %s; false
34552 AttackCooldown float32
34556 GroupCaps []ToolGroupCap
34563 }))(obj)).NonNil = true
34567 //mt:if _ = %s; false
34570 AttackCooldown float32
34574 GroupCaps []ToolGroupCap
34584 local400 := uint8(5)
34589 if local399 != local400 {
34590 chk(fmt.Errorf("const %v: %v", "uint8(5)", local399))
34594 p := &(*(*(struct {
34595 //mt:if _ = %s; false
34598 AttackCooldown float32
34602 GroupCaps []ToolGroupCap
34609 }))(obj)).AttackCooldown
34610 *p = math.Float32frombits(read32(r))
34613 p := &(*(*(struct {
34614 //mt:if _ = %s; false
34617 AttackCooldown float32
34621 GroupCaps []ToolGroupCap
34628 }))(obj)).MaxDropLvl
34629 *p = int16(read16(r))
34631 var local401 uint32
34637 //mt:if _ = %s; false
34640 AttackCooldown float32
34644 GroupCaps []ToolGroupCap
34651 }))(obj)).GroupCaps) = make([]ToolGroupCap, local401)
34652 for local402 := range (*(*(struct {
34653 //mt:if _ = %s; false
34656 AttackCooldown float32
34660 GroupCaps []ToolGroupCap
34667 }))(obj)).GroupCaps {
34668 if err := pcall(func() {
34670 //mt:if _ = %s; false
34673 AttackCooldown float32
34677 GroupCaps []ToolGroupCap
34684 }))(obj)).GroupCaps)[local402]).deserialize(r)
34689 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
34692 var local403 uint32
34698 //mt:if _ = %s; false
34701 AttackCooldown float32
34705 GroupCaps []ToolGroupCap
34712 }))(obj)).DmgGroups) = make([]Group, local403)
34713 for local404 := range (*(*(struct {
34714 //mt:if _ = %s; false
34717 AttackCooldown float32
34721 GroupCaps []ToolGroupCap
34728 }))(obj)).DmgGroups {
34729 if err := pcall(func() {
34731 //mt:if _ = %s; false
34734 AttackCooldown float32
34738 GroupCaps []ToolGroupCap
34745 }))(obj)).DmgGroups)[local404]).deserialize(r)
34750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
34753 var local405 uint16
34759 //mt:if _ = %s; false
34762 AttackCooldown float32
34766 GroupCaps []ToolGroupCap
34773 }))(obj)).PunchUses = int32(local405)
34777 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34782 func (obj *AnimType) serialize(w io.Writer) {
34784 x := *(*(uint8))(obj)
34785 write8(w, uint8(x))
34789 func (obj *AnimType) deserialize(r io.Reader) {
34791 p := &*(*(uint8))(obj)
34796 func (obj *HUDType) serialize(w io.Writer) {
34798 x := *(*(uint8))(obj)
34799 write8(w, uint8(x))
34803 func (obj *HUDType) deserialize(r io.Reader) {
34805 p := &*(*(uint8))(obj)
34810 func (obj *Box) serialize(w io.Writer) {
34811 for local406 := range *(*([2]Vec))(obj) {
34812 if err := pcall(func() {
34813 ((*(*([2]Vec))(obj))[local406]).serialize(w)
34818 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
34823 func (obj *Box) deserialize(r io.Reader) {
34824 for local407 := range *(*([2]Vec))(obj) {
34825 if err := pcall(func() {
34826 ((*(*([2]Vec))(obj))[local407]).deserialize(r)
34831 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
34836 func (obj *TileFlags) serialize(w io.Writer) {
34838 x := *(*(uint16))(obj)
34839 write16(w, uint16(x))
34843 func (obj *TileFlags) deserialize(r io.Reader) {
34845 p := &*(*(uint16))(obj)
34850 func (obj *AlignType) serialize(w io.Writer) {
34852 x := *(*(uint8))(obj)
34853 write8(w, uint8(x))
34857 func (obj *AlignType) deserialize(r io.Reader) {
34859 p := &*(*(uint8))(obj)
34864 func (obj *NodeBoxType) serialize(w io.Writer) {
34866 x := *(*(uint8))(obj)
34867 write8(w, uint8(x))
34871 func (obj *NodeBoxType) deserialize(r io.Reader) {
34873 p := &*(*(uint8))(obj)
34878 func (obj *DirBoxes) serialize(w io.Writer) {
34879 if len(((*(*(struct {
34881 Front, Left, Back, Right []Box
34882 }))(obj)).Top)) > math.MaxUint16 {
34886 x := uint16(len(((*(*(struct {
34888 Front, Left, Back, Right []Box
34890 write16(w, uint16(x))
34892 for local408 := range (*(*(struct {
34894 Front, Left, Back, Right []Box
34896 if err := pcall(func() {
34899 Front, Left, Back, Right []Box
34900 }))(obj)).Top)[local408]).serialize(w)
34905 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34908 if len(((*(*(struct {
34910 Front, Left, Back, Right []Box
34911 }))(obj)).Bot)) > math.MaxUint16 {
34915 x := uint16(len(((*(*(struct {
34917 Front, Left, Back, Right []Box
34919 write16(w, uint16(x))
34921 for local409 := range (*(*(struct {
34923 Front, Left, Back, Right []Box
34925 if err := pcall(func() {
34928 Front, Left, Back, Right []Box
34929 }))(obj)).Bot)[local409]).serialize(w)
34934 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34937 if len(((*(*(struct {
34939 Front, Left, Back, Right []Box
34940 }))(obj)).Front)) > math.MaxUint16 {
34944 x := uint16(len(((*(*(struct {
34946 Front, Left, Back, Right []Box
34948 write16(w, uint16(x))
34950 for local410 := range (*(*(struct {
34952 Front, Left, Back, Right []Box
34954 if err := pcall(func() {
34957 Front, Left, Back, Right []Box
34958 }))(obj)).Front)[local410]).serialize(w)
34963 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34966 if len(((*(*(struct {
34968 Front, Left, Back, Right []Box
34969 }))(obj)).Left)) > math.MaxUint16 {
34973 x := uint16(len(((*(*(struct {
34975 Front, Left, Back, Right []Box
34977 write16(w, uint16(x))
34979 for local411 := range (*(*(struct {
34981 Front, Left, Back, Right []Box
34983 if err := pcall(func() {
34986 Front, Left, Back, Right []Box
34987 }))(obj)).Left)[local411]).serialize(w)
34992 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34995 if len(((*(*(struct {
34997 Front, Left, Back, Right []Box
34998 }))(obj)).Back)) > math.MaxUint16 {
35002 x := uint16(len(((*(*(struct {
35004 Front, Left, Back, Right []Box
35006 write16(w, uint16(x))
35008 for local412 := range (*(*(struct {
35010 Front, Left, Back, Right []Box
35012 if err := pcall(func() {
35015 Front, Left, Back, Right []Box
35016 }))(obj)).Back)[local412]).serialize(w)
35021 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35024 if len(((*(*(struct {
35026 Front, Left, Back, Right []Box
35027 }))(obj)).Right)) > math.MaxUint16 {
35031 x := uint16(len(((*(*(struct {
35033 Front, Left, Back, Right []Box
35035 write16(w, uint16(x))
35037 for local413 := range (*(*(struct {
35039 Front, Left, Back, Right []Box
35041 if err := pcall(func() {
35044 Front, Left, Back, Right []Box
35045 }))(obj)).Right)[local413]).serialize(w)
35050 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35055 func (obj *DirBoxes) deserialize(r io.Reader) {
35056 var local414 uint16
35063 Front, Left, Back, Right []Box
35064 }))(obj)).Top) = make([]Box, local414)
35065 for local415 := range (*(*(struct {
35067 Front, Left, Back, Right []Box
35069 if err := pcall(func() {
35072 Front, Left, Back, Right []Box
35073 }))(obj)).Top)[local415]).deserialize(r)
35078 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35081 var local416 uint16
35088 Front, Left, Back, Right []Box
35089 }))(obj)).Bot) = make([]Box, local416)
35090 for local417 := range (*(*(struct {
35092 Front, Left, Back, Right []Box
35094 if err := pcall(func() {
35097 Front, Left, Back, Right []Box
35098 }))(obj)).Bot)[local417]).deserialize(r)
35103 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35106 var local418 uint16
35113 Front, Left, Back, Right []Box
35114 }))(obj)).Front) = make([]Box, local418)
35115 for local419 := range (*(*(struct {
35117 Front, Left, Back, Right []Box
35119 if err := pcall(func() {
35122 Front, Left, Back, Right []Box
35123 }))(obj)).Front)[local419]).deserialize(r)
35128 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35131 var local420 uint16
35138 Front, Left, Back, Right []Box
35139 }))(obj)).Left) = make([]Box, local420)
35140 for local421 := range (*(*(struct {
35142 Front, Left, Back, Right []Box
35144 if err := pcall(func() {
35147 Front, Left, Back, Right []Box
35148 }))(obj)).Left)[local421]).deserialize(r)
35153 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35156 var local422 uint16
35163 Front, Left, Back, Right []Box
35164 }))(obj)).Back) = make([]Box, local422)
35165 for local423 := range (*(*(struct {
35167 Front, Left, Back, Right []Box
35169 if err := pcall(func() {
35172 Front, Left, Back, Right []Box
35173 }))(obj)).Back)[local423]).deserialize(r)
35178 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35181 var local424 uint16
35188 Front, Left, Back, Right []Box
35189 }))(obj)).Right) = make([]Box, local424)
35190 for local425 := range (*(*(struct {
35192 Front, Left, Back, Right []Box
35194 if err := pcall(func() {
35197 Front, Left, Back, Right []Box
35198 }))(obj)).Right)[local425]).deserialize(r)
35203 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35208 func (obj *ToolGroupCap) serialize(w io.Writer) {
35209 if len(([]byte((*(*(struct {
35219 }))(obj)).Name))) > math.MaxUint16 {
35223 x := uint16(len(([]byte((*(*(struct {
35234 write16(w, uint16(x))
35237 _, err := w.Write(([]byte((*(*(struct {
35247 }))(obj)).Name))[:])
35251 x := int16((*(*(struct {
35262 write16(w, uint16(x))
35276 write16(w, uint16(x))
35278 if len(((*(*(struct {
35288 }))(obj)).Times)) > math.MaxUint32 {
35292 x := uint32(len(((*(*(struct {
35303 write32(w, uint32(x))
35305 for local426 := range (*(*(struct {
35316 if err := pcall(func() {
35327 }))(obj)).Times)[local426]).serialize(w)
35332 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
35337 func (obj *ToolGroupCap) deserialize(r io.Reader) {
35338 var local427 []uint8
35339 var local428 uint16
35344 (local427) = make([]uint8, local428)
35346 _, err := io.ReadFull(r, (local427)[:])
35359 }))(obj)).Name) = string(local427)
35363 *p = int16(read16(r))
35375 }))(obj)).Uses = int32(local429)
35377 p := &(*(*(struct {
35388 *p = int16(read16(r))
35390 var local430 uint32
35405 }))(obj)).Times) = make([]DigTime, local430)
35406 for local431 := range (*(*(struct {
35417 if err := pcall(func() {
35428 }))(obj)).Times)[local431]).deserialize(r)
35433 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
35438 func (obj *DigTime) serialize(w io.Writer) {
35444 write16(w, uint16(x))
35451 write32(w, math.Float32bits(x))
35455 func (obj *DigTime) deserialize(r io.Reader) {
35457 p := &(*(*(struct {
35461 *p = int16(read16(r))
35464 p := &(*(*(struct {
35468 *p = math.Float32frombits(read32(r))