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 {
2096 }))(obj)).Blkpos)[local62]
2097 write16(w, uint16(x))
2101 w, err := zstd.NewWriter(w)
2103 if err := pcall(func() {
2108 }))(obj)).Blk).serialize(w)
2113 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2119 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2120 for local63 := range (*(*(struct {
2126 p := &((*(*(struct {
2130 }))(obj)).Blkpos)[local63]
2131 *p = int16(read16(r))
2135 r, err := zstd.NewReader(byteReader{r})
2137 if err := pcall(func() {
2142 }))(obj)).Blk).deserialize(r)
2147 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2153 func (obj *ToCltAddNode) serialize(w io.Writer) {
2154 for local64 := range (*(*(struct {
2164 }))(obj)).Pos)[local64]
2165 write16(w, uint16(x))
2168 if err := pcall(func() {
2173 }))(obj)).Node).serialize(w)
2178 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2194 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2195 for local65 := range (*(*(struct {
2201 p := &((*(*(struct {
2205 }))(obj)).Pos)[local65]
2206 *p = int16(read16(r))
2209 if err := pcall(func() {
2214 }))(obj)).Node).deserialize(r)
2219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2227 switch n := read8(r); n {
2233 chk(fmt.Errorf("invalid bool: %d", n))
2238 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2239 for local66 := range (*(*(struct {
2245 }))(obj)).Pos)[local66]
2246 write16(w, uint16(x))
2251 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2252 for local67 := range (*(*(struct {
2256 p := &((*(*(struct {
2258 }))(obj)).Pos)[local67]
2259 *p = int16(read16(r))
2264 func (obj *ToCltInv) serialize(w io.Writer) {
2266 _, err := w.Write(([]byte((*(*(struct {
2274 func (obj *ToCltInv) deserialize(r io.Reader) {
2278 (local68), err = io.ReadAll(r)
2284 }))(obj)).Inv) = string(local68)
2287 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2290 Time uint16 // %24000
2291 Speed float32 // Speed times faster than real time
2293 write16(w, uint16(x))
2297 Time uint16 // %24000
2298 Speed float32 // Speed times faster than real time
2300 write32(w, math.Float32bits(x))
2304 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2307 Time uint16 // %24000
2308 Speed float32 // Speed times faster than real time
2314 Time uint16 // %24000
2315 Speed float32 // Speed times faster than real time
2317 *p = math.Float32frombits(read32(r))
2321 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2322 if err := pcall(func() {
2324 Flags CSMRestrictionFlags
2326 // MapRange is the maximum distance from the player CSMs can read the map
2327 // if Flags&LimitMapRange != 0.
2329 }))(obj)).Flags).serialize(w)
2334 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2338 Flags CSMRestrictionFlags
2340 // MapRange is the maximum distance from the player CSMs can read the map
2341 // if Flags&LimitMapRange != 0.
2344 write32(w, uint32(x))
2348 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2349 if err := pcall(func() {
2351 Flags CSMRestrictionFlags
2353 // MapRange is the maximum distance from the player CSMs can read the map
2354 // if Flags&LimitMapRange != 0.
2356 }))(obj)).Flags).deserialize(r)
2361 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2365 Flags CSMRestrictionFlags
2367 // MapRange is the maximum distance from the player CSMs can read the map
2368 // if Flags&LimitMapRange != 0.
2375 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2376 if err := pcall(func() {
2379 }))(obj)).Vel).serialize(w)
2384 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2388 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2389 if err := pcall(func() {
2392 }))(obj)).Vel).deserialize(r)
2397 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2401 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2402 if len(([]byte((*(*(struct {
2405 CallbackToken uint32
2407 }))(obj)).RawHash))) > math.MaxUint16 {
2411 x := uint16(len(([]byte((*(*(struct {
2414 CallbackToken uint32
2416 }))(obj)).RawHash))))
2417 write16(w, uint16(x))
2420 _, err := w.Write(([]byte((*(*(struct {
2423 CallbackToken uint32
2425 }))(obj)).RawHash))[:])
2428 if len(([]byte((*(*(struct {
2431 CallbackToken uint32
2433 }))(obj)).Filename))) > math.MaxUint16 {
2437 x := uint16(len(([]byte((*(*(struct {
2440 CallbackToken uint32
2442 }))(obj)).Filename))))
2443 write16(w, uint16(x))
2446 _, err := w.Write(([]byte((*(*(struct {
2449 CallbackToken uint32
2451 }))(obj)).Filename))[:])
2458 CallbackToken uint32
2460 }))(obj)).CallbackToken
2461 write32(w, uint32(x))
2467 CallbackToken uint32
2469 }))(obj)).ShouldCache
2478 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2485 (local69) = make([]uint8, local70)
2487 _, err := io.ReadFull(r, (local69)[:])
2493 CallbackToken uint32
2495 }))(obj)).RawHash) = string(local69)
2502 (local71) = make([]uint8, local72)
2504 _, err := io.ReadFull(r, (local71)[:])
2510 CallbackToken uint32
2512 }))(obj)).Filename) = string(local71)
2517 CallbackToken uint32
2519 }))(obj)).CallbackToken
2526 CallbackToken uint32
2528 }))(obj)).ShouldCache
2529 switch n := read8(r); n {
2535 chk(fmt.Errorf("invalid bool: %d", n))
2540 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2548 if err := pcall(func() {
2555 Timestamp int64 // Unix time.
2556 }))(obj)).Type).serialize(w)
2561 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2563 local74 := utf16.Encode([]rune((*(*(struct {
2569 Timestamp int64 // Unix time.
2571 if len((local74)) > math.MaxUint16 {
2575 x := uint16(len((local74)))
2576 write16(w, uint16(x))
2578 for local75 := range local74 {
2580 x := (local74)[local75]
2581 write16(w, uint16(x))
2584 local76 := utf16.Encode([]rune((*(*(struct {
2590 Timestamp int64 // Unix time.
2592 if len((local76)) > math.MaxUint16 {
2596 x := uint16(len((local76)))
2597 write16(w, uint16(x))
2599 for local77 := range local76 {
2601 x := (local76)[local77]
2602 write16(w, uint16(x))
2612 Timestamp int64 // Unix time.
2614 write64(w, uint64(x))
2618 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2626 if local78 != local79 {
2627 chk(fmt.Errorf("const %v: %v", "uint8(1)", local78))
2630 if err := pcall(func() {
2637 Timestamp int64 // Unix time.
2638 }))(obj)).Type).deserialize(r)
2643 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2645 var local80 []uint16
2651 (local80) = make([]uint16, local81)
2652 for local82 := range local80 {
2654 p := &(local80)[local82]
2664 Timestamp int64 // Unix time.
2665 }))(obj)).Sender = string(utf16.Decode(local80))
2666 var local83 []uint16
2672 (local83) = make([]uint16, local84)
2673 for local85 := range local83 {
2675 p := &(local83)[local85]
2685 Timestamp int64 // Unix time.
2686 }))(obj)).Text = string(utf16.Decode(local83))
2694 Timestamp int64 // Unix time.
2696 *p = int64(read64(r))
2700 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2701 if len(((*(*(struct {
2704 }))(obj)).Remove)) > math.MaxUint16 {
2708 x := uint16(len(((*(*(struct {
2712 write16(w, uint16(x))
2714 for local86 := range (*(*(struct {
2718 if err := pcall(func() {
2722 }))(obj)).Remove)[local86]).serialize(w)
2727 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2730 if len(((*(*(struct {
2733 }))(obj)).Add)) > math.MaxUint16 {
2737 x := uint16(len(((*(*(struct {
2741 write16(w, uint16(x))
2743 for local87 := range (*(*(struct {
2747 if err := pcall(func() {
2751 }))(obj)).Add)[local87]).serialize(w)
2756 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2761 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2770 }))(obj)).Remove) = make([]AOID, local88)
2771 for local89 := range (*(*(struct {
2775 if err := pcall(func() {
2779 }))(obj)).Remove)[local89]).deserialize(r)
2784 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2795 }))(obj)).Add) = make([]AOAdd, local90)
2796 for local91 := range (*(*(struct {
2800 if err := pcall(func() {
2804 }))(obj)).Add)[local91]).deserialize(r)
2809 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2814 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2815 for local92 := range (*(*(struct {
2819 if err := pcall(func() {
2823 }))(obj)).Msgs)[local92]).serialize(w)
2828 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2833 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2836 err := pcall(func() {
2837 if err := pcall(func() {
2838 (local93).deserialize(r)
2843 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2852 }))(obj)).Msgs) = append(((*(*(struct {
2855 }))(obj)).Msgs), local93)
2860 func (obj *ToCltHP) serialize(w io.Writer) {
2865 write16(w, uint16(x))
2869 func (obj *ToCltHP) deserialize(r io.Reader) {
2878 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2879 if err := pcall(func() {
2883 }))(obj)).Pos).serialize(w)
2888 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2895 write32(w, math.Float32bits(x))
2902 write32(w, math.Float32bits(x))
2906 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2907 if err := pcall(func() {
2911 }))(obj)).Pos).deserialize(r)
2916 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2923 *p = math.Float32frombits(read32(r))
2930 *p = math.Float32frombits(read32(r))
2934 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
2935 local94 := utf16.Encode([]rune((*(*(struct {
2939 if len((local94)) > math.MaxUint16 {
2943 x := uint16(len((local94)))
2944 write16(w, uint16(x))
2946 for local95 := range local94 {
2948 x := (local94)[local95]
2949 write16(w, uint16(x))
2954 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
2955 var local96 []uint16
2961 (local96) = make([]uint16, local97)
2962 for local98 := range local96 {
2964 p := &(local96)[local98]
2971 }))(obj)).Reason = string(utf16.Decode(local96))
2974 func (obj *ToCltFOV) serialize(w io.Writer) {
2979 TransitionTime float32
2981 write32(w, math.Float32bits(x))
2987 TransitionTime float32
2988 }))(obj)).Multiplier
2999 TransitionTime float32
3000 }))(obj)).TransitionTime
3001 write32(w, math.Float32bits(x))
3005 func (obj *ToCltFOV) deserialize(r io.Reader) {
3010 TransitionTime float32
3012 *p = math.Float32frombits(read32(r))
3018 TransitionTime float32
3019 }))(obj)).Multiplier
3020 switch n := read8(r); n {
3026 chk(fmt.Errorf("invalid bool: %d", n))
3033 TransitionTime float32
3034 }))(obj)).TransitionTime
3035 *p = math.Float32frombits(read32(r))
3039 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3051 if err := pcall(func() {
3055 }))(obj)).PointAt).serialize(w)
3060 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3064 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3070 switch n := read8(r); n {
3076 chk(fmt.Errorf("invalid bool: %d", n))
3079 if err := pcall(func() {
3083 }))(obj)).PointAt).deserialize(r)
3088 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3092 func (obj *ToCltMedia) serialize(w io.Writer) {
3095 // N is the total number of ToCltMedia packets.
3096 // I is the index of this packet.
3107 write16(w, uint16(x))
3111 // N is the total number of ToCltMedia packets.
3112 // I is the index of this packet.
3123 write16(w, uint16(x))
3125 if len(((*(*(struct {
3126 // N is the total number of ToCltMedia packets.
3127 // I is the index of this packet.
3137 }))(obj)).Files)) > math.MaxUint32 {
3141 x := uint32(len(((*(*(struct {
3142 // N is the total number of ToCltMedia packets.
3143 // I is the index of this packet.
3154 write32(w, uint32(x))
3156 for local99 := range (*(*(struct {
3157 // N is the total number of ToCltMedia packets.
3158 // I is the index of this packet.
3169 if 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))) > math.MaxUint16 {
3185 x := uint16(len(([]byte((((*(*(struct {
3186 // N is the total number of ToCltMedia packets.
3187 // I is the index of this packet.
3197 }))(obj)).Files)[local99]).Name))))
3198 write16(w, uint16(x))
3201 _, err := w.Write(([]byte((((*(*(struct {
3202 // N is the total number of ToCltMedia packets.
3203 // I is the index of this packet.
3213 }))(obj)).Files)[local99]).Name))[:])
3216 if len(((((*(*(struct {
3217 // N is the total number of ToCltMedia packets.
3218 // I is the index of this packet.
3228 }))(obj)).Files)[local99]).Data)) > math.MaxUint32 {
3232 x := uint32(len(((((*(*(struct {
3233 // N is the total number of ToCltMedia packets.
3234 // I is the index of this packet.
3244 }))(obj)).Files)[local99]).Data)))
3245 write32(w, uint32(x))
3248 _, err := w.Write(((((*(*(struct {
3249 // N is the total number of ToCltMedia packets.
3250 // I is the index of this packet.
3260 }))(obj)).Files)[local99]).Data)[:])
3266 func (obj *ToCltMedia) deserialize(r io.Reader) {
3269 // N is the total number of ToCltMedia packets.
3270 // I is the index of this packet.
3285 // N is the total number of ToCltMedia packets.
3286 // I is the index of this packet.
3305 // N is the total number of ToCltMedia packets.
3306 // I is the index of this packet.
3316 }))(obj)).Files) = make([]struct {
3320 for local101 := range (*(*(struct {
3321 // N is the total number of ToCltMedia packets.
3322 // I is the index of this packet.
3333 var local102 []uint8
3339 (local102) = make([]uint8, local103)
3341 _, err := io.ReadFull(r, (local102)[:])
3345 // N is the total number of ToCltMedia packets.
3346 // I is the index of this packet.
3356 }))(obj)).Files)[local101]).Name) = string(local102)
3363 // N is the total number of ToCltMedia packets.
3364 // I is the index of this packet.
3374 }))(obj)).Files)[local101]).Data) = make([]byte, local104)
3376 _, err := io.ReadFull(r, ((((*(*(struct {
3377 // N is the total number of ToCltMedia packets.
3378 // I is the index of this packet.
3388 }))(obj)).Files)[local101]).Data)[:])
3394 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3397 w := new(bytes.Buffer)
3399 w := zlib.NewWriter(w)
3401 local105 := uint8(1)
3410 // See (de)serialize.fmt.
3413 { // For ToCltNodeDefs.Defs.
3414 if len(x) > math.MaxUint16 {
3417 write16(w, uint16(len(x)))
3422 if b.Len() > math.MaxUint32 {
3425 write32(w, uint32(b.Len()))
3426 _, err := b.WriteTo(w)
3435 if len((buf.Bytes())) > math.MaxUint32 {
3439 x := uint32(len((buf.Bytes())))
3440 write32(w, uint32(x))
3443 _, err := w.Write((buf.Bytes())[:])
3450 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3457 r := &io.LimitedReader{R: r, N: int64(n)}
3459 r, err := zlib.NewReader(byteReader{r})
3463 local107 := uint8(1)
3468 if local106 != local107 {
3469 chk(fmt.Errorf("const %v: %v", "uint8(1)", local106))
3475 // See (de)serialize.fmt.
3478 { // For ToCltNodeDefs.Defs.
3479 *p = make([]NodeDef, read16(r))
3480 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3482 (*p)[i].deserialize(r)
3485 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3492 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3497 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3498 if len(((*(*(struct {
3504 }))(obj)).Files)) > math.MaxUint16 {
3508 x := uint16(len(((*(*(struct {
3515 write16(w, uint16(x))
3517 for local108 := range (*(*(struct {
3524 if len(([]byte((((*(*(struct {
3530 }))(obj)).Files)[local108]).Name))) > math.MaxUint16 {
3534 x := uint16(len(([]byte((((*(*(struct {
3540 }))(obj)).Files)[local108]).Name))))
3541 write16(w, uint16(x))
3544 _, err := w.Write(([]byte((((*(*(struct {
3550 }))(obj)).Files)[local108]).Name))[:])
3553 if len(([]byte((((*(*(struct {
3559 }))(obj)).Files)[local108]).Base64SHA1))) > math.MaxUint16 {
3563 x := uint16(len(([]byte((((*(*(struct {
3569 }))(obj)).Files)[local108]).Base64SHA1))))
3570 write16(w, uint16(x))
3573 _, err := w.Write(([]byte((((*(*(struct {
3579 }))(obj)).Files)[local108]).Base64SHA1))[:])
3583 if len(([]byte((*(*(struct {
3589 }))(obj)).URL))) > math.MaxUint16 {
3593 x := uint16(len(([]byte((*(*(struct {
3600 write16(w, uint16(x))
3603 _, err := w.Write(([]byte((*(*(struct {
3614 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3626 }))(obj)).Files) = make([]struct {
3630 for local110 := range (*(*(struct {
3637 var local111 []uint8
3643 (local111) = make([]uint8, local112)
3645 _, err := io.ReadFull(r, (local111)[:])
3654 }))(obj)).Files)[local110]).Name) = string(local111)
3655 var local113 []uint8
3661 (local113) = make([]uint8, local114)
3663 _, err := io.ReadFull(r, (local113)[:])
3672 }))(obj)).Files)[local110]).Base64SHA1) = string(local113)
3674 var local115 []uint8
3680 (local115) = make([]uint8, local116)
3682 _, err := io.ReadFull(r, (local115)[:])
3691 }))(obj)).URL) = string(local115)
3694 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3697 w := new(bytes.Buffer)
3699 w := zlib.NewWriter(w)
3701 local117 := uint8(0)
3707 if len(((*(*(struct {
3709 Aliases []struct{ Alias, Orig string }
3710 }))(obj)).Defs)) > math.MaxUint16 {
3714 x := uint16(len(((*(*(struct {
3716 Aliases []struct{ Alias, Orig string }
3718 write16(w, uint16(x))
3720 for local118 := range (*(*(struct {
3722 Aliases []struct{ Alias, Orig string }
3724 if err := pcall(func() {
3727 Aliases []struct{ Alias, Orig string }
3728 }))(obj)).Defs)[local118]).serialize(w)
3733 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3736 if len(((*(*(struct {
3738 Aliases []struct{ Alias, Orig string }
3739 }))(obj)).Aliases)) > math.MaxUint16 {
3743 x := uint16(len(((*(*(struct {
3745 Aliases []struct{ Alias, Orig string }
3746 }))(obj)).Aliases)))
3747 write16(w, uint16(x))
3749 for local119 := range (*(*(struct {
3751 Aliases []struct{ Alias, Orig string }
3753 if len(([]byte((((*(*(struct {
3755 Aliases []struct{ Alias, Orig string }
3756 }))(obj)).Aliases)[local119]).Alias))) > math.MaxUint16 {
3760 x := uint16(len(([]byte((((*(*(struct {
3762 Aliases []struct{ Alias, Orig string }
3763 }))(obj)).Aliases)[local119]).Alias))))
3764 write16(w, uint16(x))
3767 _, err := w.Write(([]byte((((*(*(struct {
3769 Aliases []struct{ Alias, Orig string }
3770 }))(obj)).Aliases)[local119]).Alias))[:])
3773 if len(([]byte((((*(*(struct {
3775 Aliases []struct{ Alias, Orig string }
3776 }))(obj)).Aliases)[local119]).Orig))) > math.MaxUint16 {
3780 x := uint16(len(([]byte((((*(*(struct {
3782 Aliases []struct{ Alias, Orig string }
3783 }))(obj)).Aliases)[local119]).Orig))))
3784 write16(w, uint16(x))
3787 _, err := w.Write(([]byte((((*(*(struct {
3789 Aliases []struct{ Alias, Orig string }
3790 }))(obj)).Aliases)[local119]).Orig))[:])
3799 if len((buf.Bytes())) > math.MaxUint32 {
3803 x := uint32(len((buf.Bytes())))
3804 write32(w, uint32(x))
3807 _, err := w.Write((buf.Bytes())[:])
3814 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3821 r := &io.LimitedReader{R: r, N: int64(n)}
3823 r, err := zlib.NewReader(byteReader{r})
3827 local121 := uint8(0)
3832 if local120 != local121 {
3833 chk(fmt.Errorf("const %v: %v", "uint8(0)", local120))
3843 Aliases []struct{ Alias, Orig string }
3844 }))(obj)).Defs) = make([]ItemDef, local122)
3845 for local123 := range (*(*(struct {
3847 Aliases []struct{ Alias, Orig string }
3849 if err := pcall(func() {
3852 Aliases []struct{ Alias, Orig string }
3853 }))(obj)).Defs)[local123]).deserialize(r)
3858 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3868 Aliases []struct{ Alias, Orig string }
3869 }))(obj)).Aliases) = make([]struct {
3873 for local125 := range (*(*(struct {
3875 Aliases []struct{ Alias, Orig string }
3877 var local126 []uint8
3883 (local126) = make([]uint8, local127)
3885 _, err := io.ReadFull(r, (local126)[:])
3890 Aliases []struct{ Alias, Orig string }
3891 }))(obj)).Aliases)[local125]).Alias) = string(local126)
3892 var local128 []uint8
3898 (local128) = make([]uint8, local129)
3900 _, err := io.ReadFull(r, (local128)[:])
3905 Aliases []struct{ Alias, Orig string }
3906 }))(obj)).Aliases)[local125]).Orig) = string(local128)
3911 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3916 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3917 if err := pcall(func() {
3922 SrcType SoundSrcType
3929 }))(obj)).ID).serialize(w)
3934 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
3936 if len(([]byte((*(*(struct {
3940 SrcType SoundSrcType
3947 }))(obj)).Name))) > math.MaxUint16 {
3951 x := uint16(len(([]byte((*(*(struct {
3955 SrcType SoundSrcType
3963 write16(w, uint16(x))
3966 _, err := w.Write(([]byte((*(*(struct {
3970 SrcType SoundSrcType
3977 }))(obj)).Name))[:])
3985 SrcType SoundSrcType
3993 write32(w, math.Float32bits(x))
3995 if err := pcall(func() {
4000 SrcType SoundSrcType
4007 }))(obj)).SrcType).serialize(w)
4012 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
4014 if err := pcall(func() {
4019 SrcType SoundSrcType
4026 }))(obj)).Pos).serialize(w)
4031 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4033 if err := pcall(func() {
4038 SrcType SoundSrcType
4045 }))(obj)).SrcAOID).serialize(w)
4050 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4057 SrcType SoundSrcType
4076 SrcType SoundSrcType
4084 write32(w, math.Float32bits(x))
4091 SrcType SoundSrcType
4099 write32(w, math.Float32bits(x))
4106 SrcType SoundSrcType
4122 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4123 if err := pcall(func() {
4128 SrcType SoundSrcType
4135 }))(obj)).ID).deserialize(r)
4140 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4142 var local130 []uint8
4148 (local130) = make([]uint8, local131)
4150 _, err := io.ReadFull(r, (local130)[:])
4157 SrcType SoundSrcType
4164 }))(obj)).Name) = string(local130)
4170 SrcType SoundSrcType
4178 *p = math.Float32frombits(read32(r))
4180 if err := pcall(func() {
4185 SrcType SoundSrcType
4192 }))(obj)).SrcType).deserialize(r)
4197 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
4199 if err := pcall(func() {
4204 SrcType SoundSrcType
4211 }))(obj)).Pos).deserialize(r)
4216 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4218 if err := pcall(func() {
4223 SrcType SoundSrcType
4230 }))(obj)).SrcAOID).deserialize(r)
4235 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4242 SrcType SoundSrcType
4250 switch n := read8(r); n {
4256 chk(fmt.Errorf("invalid bool: %d", n))
4264 SrcType SoundSrcType
4272 *p = math.Float32frombits(read32(r))
4279 SrcType SoundSrcType
4287 *p = math.Float32frombits(read32(r))
4294 SrcType SoundSrcType
4302 switch n := read8(r); n {
4308 chk(fmt.Errorf("invalid bool: %d", n))
4313 func (obj *ToCltStopSound) serialize(w io.Writer) {
4314 if err := pcall(func() {
4317 }))(obj)).ID).serialize(w)
4322 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4326 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4327 if err := pcall(func() {
4330 }))(obj)).ID).deserialize(r)
4335 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4339 func (obj *ToCltPrivs) serialize(w io.Writer) {
4340 if len(((*(*(struct {
4342 }))(obj)).Privs)) > math.MaxUint16 {
4346 x := uint16(len(((*(*(struct {
4349 write16(w, uint16(x))
4351 for local132 := range (*(*(struct {
4354 if len(([]byte(((*(*(struct {
4356 }))(obj)).Privs)[local132]))) > math.MaxUint16 {
4360 x := uint16(len(([]byte(((*(*(struct {
4362 }))(obj)).Privs)[local132]))))
4363 write16(w, uint16(x))
4366 _, err := w.Write(([]byte(((*(*(struct {
4368 }))(obj)).Privs)[local132]))[:])
4374 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4382 }))(obj)).Privs) = make([]string, local133)
4383 for local134 := range (*(*(struct {
4386 var local135 []uint8
4392 (local135) = make([]uint8, local136)
4394 _, err := io.ReadFull(r, (local135)[:])
4399 }))(obj)).Privs)[local134]) = string(local135)
4403 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4404 if len(([]byte((*(*(struct {
4407 }))(obj)).Formspec))) > math.MaxUint32 {
4411 x := uint32(len(([]byte((*(*(struct {
4414 }))(obj)).Formspec))))
4415 write32(w, uint32(x))
4418 _, err := w.Write(([]byte((*(*(struct {
4421 }))(obj)).Formspec))[:])
4426 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4427 var local137 []uint8
4433 (local137) = make([]uint8, local138)
4435 _, err := io.ReadFull(r, (local137)[:])
4441 }))(obj)).Formspec) = string(local137)
4444 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4445 if len(([]byte((*(*(struct {
4448 Len uint16 // deprecated
4452 }))(obj)).Name))) > math.MaxUint16 {
4456 x := uint16(len(([]byte((*(*(struct {
4459 Len uint16 // deprecated
4464 write16(w, uint16(x))
4467 _, err := w.Write(([]byte((*(*(struct {
4470 Len uint16 // deprecated
4474 }))(obj)).Name))[:])
4481 Len uint16 // deprecated
4496 Len uint16 // deprecated
4501 write16(w, uint16(x))
4504 _, err := w.Write(([]byte((*(*(struct {
4507 Len uint16 // deprecated
4516 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4517 var local139 []uint8
4523 (local139) = make([]uint8, local140)
4525 _, err := io.ReadFull(r, (local139)[:])
4531 Len uint16 // deprecated
4535 }))(obj)).Name) = string(local139)
4540 Len uint16 // deprecated
4545 switch n := read8(r); n {
4551 chk(fmt.Errorf("invalid bool: %d", n))
4558 Len uint16 // deprecated
4565 var local141 []uint8
4568 (local141), err = io.ReadAll(r)
4574 Len uint16 // deprecated
4578 }))(obj)).Inv) = string(local141)
4581 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4582 if len(([]byte((*(*(struct {
4587 }))(obj)).Formspec))) > math.MaxUint32 {
4591 x := uint32(len(([]byte((*(*(struct {
4596 }))(obj)).Formspec))))
4597 write32(w, uint32(x))
4600 _, err := w.Write(([]byte((*(*(struct {
4605 }))(obj)).Formspec))[:])
4608 if len(([]byte((*(*(struct {
4613 }))(obj)).Formname))) > math.MaxUint16 {
4617 x := uint16(len(([]byte((*(*(struct {
4622 }))(obj)).Formname))))
4623 write16(w, uint16(x))
4626 _, err := w.Write(([]byte((*(*(struct {
4631 }))(obj)).Formname))[:])
4636 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4637 var local142 []uint8
4643 (local142) = make([]uint8, local143)
4645 _, err := io.ReadFull(r, (local142)[:])
4653 }))(obj)).Formspec) = string(local142)
4654 var local144 []uint8
4660 (local144) = make([]uint8, local145)
4662 _, err := io.ReadFull(r, (local144)[:])
4670 }))(obj)).Formname) = string(local144)
4673 func (obj *ToCltMovement) serialize(w io.Writer) {
4676 DefaultAccel, AirAccel, FastAccel,
4677 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4678 Fluidity, Smoothing, Sink,
4680 }))(obj)).DefaultAccel
4681 write32(w, math.Float32bits(x))
4685 DefaultAccel, AirAccel, FastAccel,
4686 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4687 Fluidity, Smoothing, Sink,
4690 write32(w, math.Float32bits(x))
4694 DefaultAccel, AirAccel, FastAccel,
4695 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4696 Fluidity, Smoothing, Sink,
4699 write32(w, math.Float32bits(x))
4703 DefaultAccel, AirAccel, FastAccel,
4704 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4705 Fluidity, Smoothing, Sink,
4708 write32(w, math.Float32bits(x))
4712 DefaultAccel, AirAccel, FastAccel,
4713 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4714 Fluidity, Smoothing, Sink,
4716 }))(obj)).CrouchSpeed
4717 write32(w, math.Float32bits(x))
4721 DefaultAccel, AirAccel, FastAccel,
4722 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4723 Fluidity, Smoothing, Sink,
4726 write32(w, math.Float32bits(x))
4730 DefaultAccel, AirAccel, FastAccel,
4731 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4732 Fluidity, Smoothing, Sink,
4734 }))(obj)).ClimbSpeed
4735 write32(w, math.Float32bits(x))
4739 DefaultAccel, AirAccel, FastAccel,
4740 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4741 Fluidity, Smoothing, Sink,
4744 write32(w, math.Float32bits(x))
4748 DefaultAccel, AirAccel, FastAccel,
4749 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4750 Fluidity, Smoothing, Sink,
4753 write32(w, math.Float32bits(x))
4757 DefaultAccel, AirAccel, FastAccel,
4758 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4759 Fluidity, Smoothing, Sink,
4762 write32(w, math.Float32bits(x))
4766 DefaultAccel, AirAccel, FastAccel,
4767 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4768 Fluidity, Smoothing, Sink,
4771 write32(w, math.Float32bits(x))
4775 DefaultAccel, AirAccel, FastAccel,
4776 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4777 Fluidity, Smoothing, Sink,
4780 write32(w, math.Float32bits(x))
4784 func (obj *ToCltMovement) deserialize(r io.Reader) {
4787 DefaultAccel, AirAccel, FastAccel,
4788 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4789 Fluidity, Smoothing, Sink,
4791 }))(obj)).DefaultAccel
4792 *p = math.Float32frombits(read32(r))
4796 DefaultAccel, AirAccel, FastAccel,
4797 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4798 Fluidity, Smoothing, Sink,
4801 *p = math.Float32frombits(read32(r))
4805 DefaultAccel, AirAccel, FastAccel,
4806 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4807 Fluidity, Smoothing, Sink,
4810 *p = math.Float32frombits(read32(r))
4814 DefaultAccel, AirAccel, FastAccel,
4815 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4816 Fluidity, Smoothing, Sink,
4819 *p = math.Float32frombits(read32(r))
4823 DefaultAccel, AirAccel, FastAccel,
4824 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4825 Fluidity, Smoothing, Sink,
4827 }))(obj)).CrouchSpeed
4828 *p = math.Float32frombits(read32(r))
4832 DefaultAccel, AirAccel, FastAccel,
4833 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4834 Fluidity, Smoothing, Sink,
4837 *p = math.Float32frombits(read32(r))
4841 DefaultAccel, AirAccel, FastAccel,
4842 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4843 Fluidity, Smoothing, Sink,
4845 }))(obj)).ClimbSpeed
4846 *p = math.Float32frombits(read32(r))
4850 DefaultAccel, AirAccel, FastAccel,
4851 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4852 Fluidity, Smoothing, Sink,
4855 *p = math.Float32frombits(read32(r))
4859 DefaultAccel, AirAccel, FastAccel,
4860 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4861 Fluidity, Smoothing, Sink,
4864 *p = math.Float32frombits(read32(r))
4868 DefaultAccel, AirAccel, FastAccel,
4869 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4870 Fluidity, Smoothing, Sink,
4873 *p = math.Float32frombits(read32(r))
4877 DefaultAccel, AirAccel, FastAccel,
4878 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4879 Fluidity, Smoothing, Sink,
4882 *p = math.Float32frombits(read32(r))
4886 DefaultAccel, AirAccel, FastAccel,
4887 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4888 Fluidity, Smoothing, Sink,
4891 *p = math.Float32frombits(read32(r))
4895 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4896 for local146 := range (*(*(struct {
4897 Pos, Vel, Acc [3]float32
4898 ExpirationTime float32 // in seconds.
4916 Pos, Vel, Acc [3]float32
4917 ExpirationTime float32 // in seconds.
4932 }))(obj)).Pos)[local146]
4933 write32(w, math.Float32bits(x))
4936 for local147 := range (*(*(struct {
4937 Pos, Vel, Acc [3]float32
4938 ExpirationTime float32 // in seconds.
4956 Pos, Vel, Acc [3]float32
4957 ExpirationTime float32 // in seconds.
4972 }))(obj)).Vel)[local147]
4973 write32(w, math.Float32bits(x))
4976 for local148 := range (*(*(struct {
4977 Pos, Vel, Acc [3]float32
4978 ExpirationTime float32 // in seconds.
4996 Pos, Vel, Acc [3]float32
4997 ExpirationTime float32 // in seconds.
5012 }))(obj)).Acc)[local148]
5013 write32(w, math.Float32bits(x))
5018 Pos, Vel, Acc [3]float32
5019 ExpirationTime float32 // in seconds.
5034 }))(obj)).ExpirationTime
5035 write32(w, math.Float32bits(x))
5039 Pos, Vel, Acc [3]float32
5040 ExpirationTime float32 // in seconds.
5056 write32(w, math.Float32bits(x))
5060 Pos, Vel, Acc [3]float32
5061 ExpirationTime float32 // in seconds.
5083 if len(([]byte(*(*string)(&((*(*(struct {
5084 Pos, Vel, Acc [3]float32
5085 ExpirationTime float32 // in seconds.
5100 }))(obj)).Texture))))) > math.MaxUint32 {
5104 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5105 Pos, Vel, Acc [3]float32
5106 ExpirationTime float32 // in seconds.
5121 }))(obj)).Texture))))))
5122 write32(w, uint32(x))
5125 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5126 Pos, Vel, Acc [3]float32
5127 ExpirationTime float32 // in seconds.
5142 }))(obj)).Texture))))[:])
5147 Pos, Vel, Acc [3]float32
5148 ExpirationTime float32 // in seconds.
5172 Pos, Vel, Acc [3]float32
5173 ExpirationTime float32 // in seconds.
5188 }))(obj)).CollisionRm
5195 if err := pcall(func() {
5197 Pos, Vel, Acc [3]float32
5198 ExpirationTime float32 // in seconds.
5213 }))(obj)).AnimParams).serialize(w)
5218 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5222 Pos, Vel, Acc [3]float32
5223 ExpirationTime float32 // in seconds.
5243 Pos, Vel, Acc [3]float32
5244 ExpirationTime float32 // in seconds.
5259 }))(obj)).AOCollision
5266 if err := pcall(func() {
5268 Pos, Vel, Acc [3]float32
5269 ExpirationTime float32 // in seconds.
5284 }))(obj)).NodeParam0).serialize(w)
5289 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5293 Pos, Vel, Acc [3]float32
5294 ExpirationTime float32 // in seconds.
5309 }))(obj)).NodeParam2
5314 Pos, Vel, Acc [3]float32
5315 ExpirationTime float32 // in seconds.
5335 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5336 for local149 := range (*(*(struct {
5337 Pos, Vel, Acc [3]float32
5338 ExpirationTime float32 // in seconds.
5355 p := &((*(*(struct {
5356 Pos, Vel, Acc [3]float32
5357 ExpirationTime float32 // in seconds.
5372 }))(obj)).Pos)[local149]
5373 *p = math.Float32frombits(read32(r))
5376 for local150 := range (*(*(struct {
5377 Pos, Vel, Acc [3]float32
5378 ExpirationTime float32 // in seconds.
5395 p := &((*(*(struct {
5396 Pos, Vel, Acc [3]float32
5397 ExpirationTime float32 // in seconds.
5412 }))(obj)).Vel)[local150]
5413 *p = math.Float32frombits(read32(r))
5416 for local151 := range (*(*(struct {
5417 Pos, Vel, Acc [3]float32
5418 ExpirationTime float32 // in seconds.
5435 p := &((*(*(struct {
5436 Pos, Vel, Acc [3]float32
5437 ExpirationTime float32 // in seconds.
5452 }))(obj)).Acc)[local151]
5453 *p = math.Float32frombits(read32(r))
5458 Pos, Vel, Acc [3]float32
5459 ExpirationTime float32 // in seconds.
5474 }))(obj)).ExpirationTime
5475 *p = math.Float32frombits(read32(r))
5479 Pos, Vel, Acc [3]float32
5480 ExpirationTime float32 // in seconds.
5496 *p = math.Float32frombits(read32(r))
5500 Pos, Vel, Acc [3]float32
5501 ExpirationTime float32 // in seconds.
5517 switch n := read8(r); n {
5523 chk(fmt.Errorf("invalid bool: %d", n))
5526 var local152 []uint8
5532 (local152) = make([]uint8, local153)
5534 _, err := io.ReadFull(r, (local152)[:])
5537 (*(*string)(&((*(*(struct {
5538 Pos, Vel, Acc [3]float32
5539 ExpirationTime float32 // in seconds.
5554 }))(obj)).Texture))) = string(local152)
5557 Pos, Vel, Acc [3]float32
5558 ExpirationTime float32 // in seconds.
5574 switch n := read8(r); n {
5580 chk(fmt.Errorf("invalid bool: %d", n))
5585 Pos, Vel, Acc [3]float32
5586 ExpirationTime float32 // in seconds.
5601 }))(obj)).CollisionRm
5602 switch n := read8(r); n {
5608 chk(fmt.Errorf("invalid bool: %d", n))
5611 if err := pcall(func() {
5613 Pos, Vel, Acc [3]float32
5614 ExpirationTime float32 // in seconds.
5629 }))(obj)).AnimParams).deserialize(r)
5634 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5638 Pos, Vel, Acc [3]float32
5639 ExpirationTime float32 // in seconds.
5659 Pos, Vel, Acc [3]float32
5660 ExpirationTime float32 // in seconds.
5675 }))(obj)).AOCollision
5676 switch n := read8(r); n {
5682 chk(fmt.Errorf("invalid bool: %d", n))
5685 if err := pcall(func() {
5687 Pos, Vel, Acc [3]float32
5688 ExpirationTime float32 // in seconds.
5703 }))(obj)).NodeParam0).deserialize(r)
5708 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5712 Pos, Vel, Acc [3]float32
5713 ExpirationTime float32 // in seconds.
5728 }))(obj)).NodeParam2
5733 Pos, Vel, Acc [3]float32
5734 ExpirationTime float32 // in seconds.
5754 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5759 Pos, Vel, Acc [2][3]float32
5760 ExpirationTime [2]float32 // in seconds.
5767 ID ParticleSpawnerID
5778 write16(w, uint16(x))
5784 Pos, Vel, Acc [2][3]float32
5785 ExpirationTime [2]float32 // in seconds.
5792 ID ParticleSpawnerID
5803 write32(w, math.Float32bits(x))
5805 for local154 := range (*(*(struct {
5808 Pos, Vel, Acc [2][3]float32
5809 ExpirationTime [2]float32 // in seconds.
5816 ID ParticleSpawnerID
5827 for local155 := range ((*(*(struct {
5830 Pos, Vel, Acc [2][3]float32
5831 ExpirationTime [2]float32 // in seconds.
5838 ID ParticleSpawnerID
5848 }))(obj)).Pos)[local154] {
5850 x := (((*(*(struct {
5853 Pos, Vel, Acc [2][3]float32
5854 ExpirationTime [2]float32 // in seconds.
5861 ID ParticleSpawnerID
5871 }))(obj)).Pos)[local154])[local155]
5872 write32(w, math.Float32bits(x))
5876 for local156 := range (*(*(struct {
5879 Pos, Vel, Acc [2][3]float32
5880 ExpirationTime [2]float32 // in seconds.
5887 ID ParticleSpawnerID
5898 for local157 := range ((*(*(struct {
5901 Pos, Vel, Acc [2][3]float32
5902 ExpirationTime [2]float32 // in seconds.
5909 ID ParticleSpawnerID
5919 }))(obj)).Vel)[local156] {
5921 x := (((*(*(struct {
5924 Pos, Vel, Acc [2][3]float32
5925 ExpirationTime [2]float32 // in seconds.
5932 ID ParticleSpawnerID
5942 }))(obj)).Vel)[local156])[local157]
5943 write32(w, math.Float32bits(x))
5947 for local158 := range (*(*(struct {
5950 Pos, Vel, Acc [2][3]float32
5951 ExpirationTime [2]float32 // in seconds.
5958 ID ParticleSpawnerID
5969 for local159 := range ((*(*(struct {
5972 Pos, Vel, Acc [2][3]float32
5973 ExpirationTime [2]float32 // in seconds.
5980 ID ParticleSpawnerID
5990 }))(obj)).Acc)[local158] {
5992 x := (((*(*(struct {
5995 Pos, Vel, Acc [2][3]float32
5996 ExpirationTime [2]float32 // in seconds.
6003 ID ParticleSpawnerID
6013 }))(obj)).Acc)[local158])[local159]
6014 write32(w, math.Float32bits(x))
6018 for local160 := range (*(*(struct {
6021 Pos, Vel, Acc [2][3]float32
6022 ExpirationTime [2]float32 // in seconds.
6029 ID ParticleSpawnerID
6039 }))(obj)).ExpirationTime {
6044 Pos, Vel, Acc [2][3]float32
6045 ExpirationTime [2]float32 // in seconds.
6052 ID ParticleSpawnerID
6062 }))(obj)).ExpirationTime)[local160]
6063 write32(w, math.Float32bits(x))
6066 for local161 := range (*(*(struct {
6069 Pos, Vel, Acc [2][3]float32
6070 ExpirationTime [2]float32 // in seconds.
6077 ID ParticleSpawnerID
6092 Pos, Vel, Acc [2][3]float32
6093 ExpirationTime [2]float32 // in seconds.
6100 ID ParticleSpawnerID
6110 }))(obj)).Size)[local161]
6111 write32(w, math.Float32bits(x))
6118 Pos, Vel, Acc [2][3]float32
6119 ExpirationTime [2]float32 // in seconds.
6126 ID ParticleSpawnerID
6143 if len(([]byte(*(*string)(&((*(*(struct {
6146 Pos, Vel, Acc [2][3]float32
6147 ExpirationTime [2]float32 // in seconds.
6154 ID ParticleSpawnerID
6164 }))(obj)).Texture))))) > math.MaxUint32 {
6168 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6171 Pos, Vel, Acc [2][3]float32
6172 ExpirationTime [2]float32 // in seconds.
6179 ID ParticleSpawnerID
6189 }))(obj)).Texture))))))
6190 write32(w, uint32(x))
6193 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6196 Pos, Vel, Acc [2][3]float32
6197 ExpirationTime [2]float32 // in seconds.
6204 ID ParticleSpawnerID
6214 }))(obj)).Texture))))[:])
6217 if err := pcall(func() {
6221 Pos, Vel, Acc [2][3]float32
6222 ExpirationTime [2]float32 // in seconds.
6229 ID ParticleSpawnerID
6239 }))(obj)).ID).serialize(w)
6244 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6250 Pos, Vel, Acc [2][3]float32
6251 ExpirationTime [2]float32 // in seconds.
6258 ID ParticleSpawnerID
6279 Pos, Vel, Acc [2][3]float32
6280 ExpirationTime [2]float32 // in seconds.
6287 ID ParticleSpawnerID
6297 }))(obj)).CollisionRm
6304 if err := pcall(func() {
6308 Pos, Vel, Acc [2][3]float32
6309 ExpirationTime [2]float32 // in seconds.
6316 ID ParticleSpawnerID
6326 }))(obj)).AttachedAOID).serialize(w)
6331 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
6333 if err := pcall(func() {
6337 Pos, Vel, Acc [2][3]float32
6338 ExpirationTime [2]float32 // in seconds.
6345 ID ParticleSpawnerID
6355 }))(obj)).AnimParams).serialize(w)
6360 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
6366 Pos, Vel, Acc [2][3]float32
6367 ExpirationTime [2]float32 // in seconds.
6374 ID ParticleSpawnerID
6391 Pos, Vel, Acc [2][3]float32
6392 ExpirationTime [2]float32 // in seconds.
6399 ID ParticleSpawnerID
6409 }))(obj)).AOCollision
6416 if err := pcall(func() {
6420 Pos, Vel, Acc [2][3]float32
6421 ExpirationTime [2]float32 // in seconds.
6428 ID ParticleSpawnerID
6438 }))(obj)).NodeParam0).serialize(w)
6443 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
6449 Pos, Vel, Acc [2][3]float32
6450 ExpirationTime [2]float32 // in seconds.
6457 ID ParticleSpawnerID
6467 }))(obj)).NodeParam2
6474 Pos, Vel, Acc [2][3]float32
6475 ExpirationTime [2]float32 // in seconds.
6482 ID ParticleSpawnerID
6497 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6502 Pos, Vel, Acc [2][3]float32
6503 ExpirationTime [2]float32 // in seconds.
6510 ID ParticleSpawnerID
6527 Pos, Vel, Acc [2][3]float32
6528 ExpirationTime [2]float32 // in seconds.
6535 ID ParticleSpawnerID
6546 *p = math.Float32frombits(read32(r))
6548 for local162 := range (*(*(struct {
6551 Pos, Vel, Acc [2][3]float32
6552 ExpirationTime [2]float32 // in seconds.
6559 ID ParticleSpawnerID
6570 for local163 := range ((*(*(struct {
6573 Pos, Vel, Acc [2][3]float32
6574 ExpirationTime [2]float32 // in seconds.
6581 ID ParticleSpawnerID
6591 }))(obj)).Pos)[local162] {
6593 p := &(((*(*(struct {
6596 Pos, Vel, Acc [2][3]float32
6597 ExpirationTime [2]float32 // in seconds.
6604 ID ParticleSpawnerID
6614 }))(obj)).Pos)[local162])[local163]
6615 *p = math.Float32frombits(read32(r))
6619 for local164 := range (*(*(struct {
6622 Pos, Vel, Acc [2][3]float32
6623 ExpirationTime [2]float32 // in seconds.
6630 ID ParticleSpawnerID
6641 for local165 := range ((*(*(struct {
6644 Pos, Vel, Acc [2][3]float32
6645 ExpirationTime [2]float32 // in seconds.
6652 ID ParticleSpawnerID
6662 }))(obj)).Vel)[local164] {
6664 p := &(((*(*(struct {
6667 Pos, Vel, Acc [2][3]float32
6668 ExpirationTime [2]float32 // in seconds.
6675 ID ParticleSpawnerID
6685 }))(obj)).Vel)[local164])[local165]
6686 *p = math.Float32frombits(read32(r))
6690 for local166 := range (*(*(struct {
6693 Pos, Vel, Acc [2][3]float32
6694 ExpirationTime [2]float32 // in seconds.
6701 ID ParticleSpawnerID
6712 for local167 := range ((*(*(struct {
6715 Pos, Vel, Acc [2][3]float32
6716 ExpirationTime [2]float32 // in seconds.
6723 ID ParticleSpawnerID
6733 }))(obj)).Acc)[local166] {
6735 p := &(((*(*(struct {
6738 Pos, Vel, Acc [2][3]float32
6739 ExpirationTime [2]float32 // in seconds.
6746 ID ParticleSpawnerID
6756 }))(obj)).Acc)[local166])[local167]
6757 *p = math.Float32frombits(read32(r))
6761 for local168 := range (*(*(struct {
6764 Pos, Vel, Acc [2][3]float32
6765 ExpirationTime [2]float32 // in seconds.
6772 ID ParticleSpawnerID
6782 }))(obj)).ExpirationTime {
6784 p := &((*(*(struct {
6787 Pos, Vel, Acc [2][3]float32
6788 ExpirationTime [2]float32 // in seconds.
6795 ID ParticleSpawnerID
6805 }))(obj)).ExpirationTime)[local168]
6806 *p = math.Float32frombits(read32(r))
6809 for local169 := range (*(*(struct {
6812 Pos, Vel, Acc [2][3]float32
6813 ExpirationTime [2]float32 // in seconds.
6820 ID ParticleSpawnerID
6832 p := &((*(*(struct {
6835 Pos, Vel, Acc [2][3]float32
6836 ExpirationTime [2]float32 // in seconds.
6843 ID ParticleSpawnerID
6853 }))(obj)).Size)[local169]
6854 *p = math.Float32frombits(read32(r))
6861 Pos, Vel, Acc [2][3]float32
6862 ExpirationTime [2]float32 // in seconds.
6869 ID ParticleSpawnerID
6880 switch n := read8(r); n {
6886 chk(fmt.Errorf("invalid bool: %d", n))
6889 var local170 []uint8
6895 (local170) = make([]uint8, local171)
6897 _, err := io.ReadFull(r, (local170)[:])
6900 (*(*string)(&((*(*(struct {
6903 Pos, Vel, Acc [2][3]float32
6904 ExpirationTime [2]float32 // in seconds.
6911 ID ParticleSpawnerID
6921 }))(obj)).Texture))) = string(local170)
6922 if err := pcall(func() {
6926 Pos, Vel, Acc [2][3]float32
6927 ExpirationTime [2]float32 // in seconds.
6934 ID ParticleSpawnerID
6944 }))(obj)).ID).deserialize(r)
6949 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6955 Pos, Vel, Acc [2][3]float32
6956 ExpirationTime [2]float32 // in seconds.
6963 ID ParticleSpawnerID
6974 switch n := read8(r); n {
6980 chk(fmt.Errorf("invalid bool: %d", n))
6987 Pos, Vel, Acc [2][3]float32
6988 ExpirationTime [2]float32 // in seconds.
6995 ID ParticleSpawnerID
7005 }))(obj)).CollisionRm
7006 switch n := read8(r); n {
7012 chk(fmt.Errorf("invalid bool: %d", n))
7015 if err := pcall(func() {
7019 Pos, Vel, Acc [2][3]float32
7020 ExpirationTime [2]float32 // in seconds.
7027 ID ParticleSpawnerID
7037 }))(obj)).AttachedAOID).deserialize(r)
7042 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
7044 if err := pcall(func() {
7048 Pos, Vel, Acc [2][3]float32
7049 ExpirationTime [2]float32 // in seconds.
7056 ID ParticleSpawnerID
7066 }))(obj)).AnimParams).deserialize(r)
7071 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
7077 Pos, Vel, Acc [2][3]float32
7078 ExpirationTime [2]float32 // in seconds.
7085 ID ParticleSpawnerID
7102 Pos, Vel, Acc [2][3]float32
7103 ExpirationTime [2]float32 // in seconds.
7110 ID ParticleSpawnerID
7120 }))(obj)).AOCollision
7121 switch n := read8(r); n {
7127 chk(fmt.Errorf("invalid bool: %d", n))
7130 if err := pcall(func() {
7134 Pos, Vel, Acc [2][3]float32
7135 ExpirationTime [2]float32 // in seconds.
7142 ID ParticleSpawnerID
7152 }))(obj)).NodeParam0).deserialize(r)
7157 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
7163 Pos, Vel, Acc [2][3]float32
7164 ExpirationTime [2]float32 // in seconds.
7171 ID ParticleSpawnerID
7181 }))(obj)).NodeParam2
7188 Pos, Vel, Acc [2][3]float32
7189 ExpirationTime [2]float32 // in seconds.
7196 ID ParticleSpawnerID
7211 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7212 if err := pcall(func() {
7216 }))(obj)).ID).serialize(w)
7221 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7223 if err := pcall(func() {
7227 }))(obj)).HUD).serialize(w)
7232 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7236 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7237 if err := pcall(func() {
7241 }))(obj)).ID).deserialize(r)
7246 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7248 if err := pcall(func() {
7252 }))(obj)).HUD).deserialize(r)
7257 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7261 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7262 if err := pcall(func() {
7265 }))(obj)).ID).serialize(w)
7270 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7274 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7275 if err := pcall(func() {
7278 }))(obj)).ID).deserialize(r)
7283 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7287 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
7288 if err := pcall(func() {
7294 //mt:if %s.Field == HUDPos
7297 //mt:if %s.Field == HUDName
7300 //mt:if %s.Field == HUDScale
7303 //mt:if %s.Field == HUDText
7306 //mt:if %s.Field == HUDNumber
7309 //mt:if %s.Field == HUDItem
7312 //mt:if %s.Field == HUDDir
7315 //mt:if %s.Field == HUDAlign
7318 //mt:if %s.Field == HUDOffset
7321 //mt:if %s.Field == HUDWorldPos
7324 //mt:if %s.Field == HUDSize
7327 //mt:if %s.Field == HUDZIndex
7330 //mt:if %s.Field == HUDText2
7333 //mt:if %s.Field == HUDStyle
7335 }))(obj)).ID).serialize(w)
7340 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7342 if err := pcall(func() {
7348 //mt:if %s.Field == HUDPos
7351 //mt:if %s.Field == HUDName
7354 //mt:if %s.Field == HUDScale
7357 //mt:if %s.Field == HUDText
7360 //mt:if %s.Field == HUDNumber
7363 //mt:if %s.Field == HUDItem
7366 //mt:if %s.Field == HUDDir
7369 //mt:if %s.Field == HUDAlign
7372 //mt:if %s.Field == HUDOffset
7375 //mt:if %s.Field == HUDWorldPos
7378 //mt:if %s.Field == HUDSize
7381 //mt:if %s.Field == HUDZIndex
7384 //mt:if %s.Field == HUDText2
7387 //mt:if %s.Field == HUDStyle
7389 }))(obj)).Field).serialize(w)
7394 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
7401 //mt:if %s.Field == HUDPos
7404 //mt:if %s.Field == HUDName
7407 //mt:if %s.Field == HUDScale
7410 //mt:if %s.Field == HUDText
7413 //mt:if %s.Field == HUDNumber
7416 //mt:if %s.Field == HUDItem
7419 //mt:if %s.Field == HUDDir
7422 //mt:if %s.Field == HUDAlign
7425 //mt:if %s.Field == HUDOffset
7428 //mt:if %s.Field == HUDWorldPos
7431 //mt:if %s.Field == HUDSize
7434 //mt:if %s.Field == HUDZIndex
7437 //mt:if %s.Field == HUDText2
7440 //mt:if %s.Field == HUDStyle
7442 }))(obj)).Field < hudMax) {
7443 chk(errors.New("assertion failed: %s.Field < hudMax"))
7450 //mt:if %s.Field == HUDPos
7453 //mt:if %s.Field == HUDName
7456 //mt:if %s.Field == HUDScale
7459 //mt:if %s.Field == HUDText
7462 //mt:if %s.Field == HUDNumber
7465 //mt:if %s.Field == HUDItem
7468 //mt:if %s.Field == HUDDir
7471 //mt:if %s.Field == HUDAlign
7474 //mt:if %s.Field == HUDOffset
7477 //mt:if %s.Field == HUDWorldPos
7480 //mt:if %s.Field == HUDSize
7483 //mt:if %s.Field == HUDZIndex
7486 //mt:if %s.Field == HUDText2
7489 //mt:if %s.Field == HUDStyle
7491 }))(obj)).Field == HUDPos {
7492 for local172 := range (*(*(struct {
7497 //mt:if %s.Field == HUDPos
7500 //mt:if %s.Field == HUDName
7503 //mt:if %s.Field == HUDScale
7506 //mt:if %s.Field == HUDText
7509 //mt:if %s.Field == HUDNumber
7512 //mt:if %s.Field == HUDItem
7515 //mt:if %s.Field == HUDDir
7518 //mt:if %s.Field == HUDAlign
7521 //mt:if %s.Field == HUDOffset
7524 //mt:if %s.Field == HUDWorldPos
7527 //mt:if %s.Field == HUDSize
7530 //mt:if %s.Field == HUDZIndex
7533 //mt:if %s.Field == HUDText2
7536 //mt:if %s.Field == HUDStyle
7545 //mt:if %s.Field == HUDPos
7548 //mt:if %s.Field == HUDName
7551 //mt:if %s.Field == HUDScale
7554 //mt:if %s.Field == HUDText
7557 //mt:if %s.Field == HUDNumber
7560 //mt:if %s.Field == HUDItem
7563 //mt:if %s.Field == HUDDir
7566 //mt:if %s.Field == HUDAlign
7569 //mt:if %s.Field == HUDOffset
7572 //mt:if %s.Field == HUDWorldPos
7575 //mt:if %s.Field == HUDSize
7578 //mt:if %s.Field == HUDZIndex
7581 //mt:if %s.Field == HUDText2
7584 //mt:if %s.Field == HUDStyle
7586 }))(obj)).Pos)[local172]
7587 write32(w, math.Float32bits(x))
7596 //mt:if %s.Field == HUDPos
7599 //mt:if %s.Field == HUDName
7602 //mt:if %s.Field == HUDScale
7605 //mt:if %s.Field == HUDText
7608 //mt:if %s.Field == HUDNumber
7611 //mt:if %s.Field == HUDItem
7614 //mt:if %s.Field == HUDDir
7617 //mt:if %s.Field == HUDAlign
7620 //mt:if %s.Field == HUDOffset
7623 //mt:if %s.Field == HUDWorldPos
7626 //mt:if %s.Field == HUDSize
7629 //mt:if %s.Field == HUDZIndex
7632 //mt:if %s.Field == HUDText2
7635 //mt:if %s.Field == HUDStyle
7637 }))(obj)).Field == HUDName {
7638 if len(([]byte((*(*(struct {
7643 //mt:if %s.Field == HUDPos
7646 //mt:if %s.Field == HUDName
7649 //mt:if %s.Field == HUDScale
7652 //mt:if %s.Field == HUDText
7655 //mt:if %s.Field == HUDNumber
7658 //mt:if %s.Field == HUDItem
7661 //mt:if %s.Field == HUDDir
7664 //mt:if %s.Field == HUDAlign
7667 //mt:if %s.Field == HUDOffset
7670 //mt:if %s.Field == HUDWorldPos
7673 //mt:if %s.Field == HUDSize
7676 //mt:if %s.Field == HUDZIndex
7679 //mt:if %s.Field == HUDText2
7682 //mt:if %s.Field == HUDStyle
7684 }))(obj)).Name))) > math.MaxUint16 {
7688 x := uint16(len(([]byte((*(*(struct {
7693 //mt:if %s.Field == HUDPos
7696 //mt:if %s.Field == HUDName
7699 //mt:if %s.Field == HUDScale
7702 //mt:if %s.Field == HUDText
7705 //mt:if %s.Field == HUDNumber
7708 //mt:if %s.Field == HUDItem
7711 //mt:if %s.Field == HUDDir
7714 //mt:if %s.Field == HUDAlign
7717 //mt:if %s.Field == HUDOffset
7720 //mt:if %s.Field == HUDWorldPos
7723 //mt:if %s.Field == HUDSize
7726 //mt:if %s.Field == HUDZIndex
7729 //mt:if %s.Field == HUDText2
7732 //mt:if %s.Field == HUDStyle
7735 write16(w, uint16(x))
7738 _, err := w.Write(([]byte((*(*(struct {
7743 //mt:if %s.Field == HUDPos
7746 //mt:if %s.Field == HUDName
7749 //mt:if %s.Field == HUDScale
7752 //mt:if %s.Field == HUDText
7755 //mt:if %s.Field == HUDNumber
7758 //mt:if %s.Field == HUDItem
7761 //mt:if %s.Field == HUDDir
7764 //mt:if %s.Field == HUDAlign
7767 //mt:if %s.Field == HUDOffset
7770 //mt:if %s.Field == HUDWorldPos
7773 //mt:if %s.Field == HUDSize
7776 //mt:if %s.Field == HUDZIndex
7779 //mt:if %s.Field == HUDText2
7782 //mt:if %s.Field == HUDStyle
7784 }))(obj)).Name))[:])
7793 //mt:if %s.Field == HUDPos
7796 //mt:if %s.Field == HUDName
7799 //mt:if %s.Field == HUDScale
7802 //mt:if %s.Field == HUDText
7805 //mt:if %s.Field == HUDNumber
7808 //mt:if %s.Field == HUDItem
7811 //mt:if %s.Field == HUDDir
7814 //mt:if %s.Field == HUDAlign
7817 //mt:if %s.Field == HUDOffset
7820 //mt:if %s.Field == HUDWorldPos
7823 //mt:if %s.Field == HUDSize
7826 //mt:if %s.Field == HUDZIndex
7829 //mt:if %s.Field == HUDText2
7832 //mt:if %s.Field == HUDStyle
7834 }))(obj)).Field == HUDScale {
7835 for local173 := range (*(*(struct {
7840 //mt:if %s.Field == HUDPos
7843 //mt:if %s.Field == HUDName
7846 //mt:if %s.Field == HUDScale
7849 //mt:if %s.Field == HUDText
7852 //mt:if %s.Field == HUDNumber
7855 //mt:if %s.Field == HUDItem
7858 //mt:if %s.Field == HUDDir
7861 //mt:if %s.Field == HUDAlign
7864 //mt:if %s.Field == HUDOffset
7867 //mt:if %s.Field == HUDWorldPos
7870 //mt:if %s.Field == HUDSize
7873 //mt:if %s.Field == HUDZIndex
7876 //mt:if %s.Field == HUDText2
7879 //mt:if %s.Field == HUDStyle
7888 //mt:if %s.Field == HUDPos
7891 //mt:if %s.Field == HUDName
7894 //mt:if %s.Field == HUDScale
7897 //mt:if %s.Field == HUDText
7900 //mt:if %s.Field == HUDNumber
7903 //mt:if %s.Field == HUDItem
7906 //mt:if %s.Field == HUDDir
7909 //mt:if %s.Field == HUDAlign
7912 //mt:if %s.Field == HUDOffset
7915 //mt:if %s.Field == HUDWorldPos
7918 //mt:if %s.Field == HUDSize
7921 //mt:if %s.Field == HUDZIndex
7924 //mt:if %s.Field == HUDText2
7927 //mt:if %s.Field == HUDStyle
7929 }))(obj)).Scale)[local173]
7930 write32(w, math.Float32bits(x))
7939 //mt:if %s.Field == HUDPos
7942 //mt:if %s.Field == HUDName
7945 //mt:if %s.Field == HUDScale
7948 //mt:if %s.Field == HUDText
7951 //mt:if %s.Field == HUDNumber
7954 //mt:if %s.Field == HUDItem
7957 //mt:if %s.Field == HUDDir
7960 //mt:if %s.Field == HUDAlign
7963 //mt:if %s.Field == HUDOffset
7966 //mt:if %s.Field == HUDWorldPos
7969 //mt:if %s.Field == HUDSize
7972 //mt:if %s.Field == HUDZIndex
7975 //mt:if %s.Field == HUDText2
7978 //mt:if %s.Field == HUDStyle
7980 }))(obj)).Field == HUDText {
7981 if len(([]byte((*(*(struct {
7986 //mt:if %s.Field == HUDPos
7989 //mt:if %s.Field == HUDName
7992 //mt:if %s.Field == HUDScale
7995 //mt:if %s.Field == HUDText
7998 //mt:if %s.Field == HUDNumber
8001 //mt:if %s.Field == HUDItem
8004 //mt:if %s.Field == HUDDir
8007 //mt:if %s.Field == HUDAlign
8010 //mt:if %s.Field == HUDOffset
8013 //mt:if %s.Field == HUDWorldPos
8016 //mt:if %s.Field == HUDSize
8019 //mt:if %s.Field == HUDZIndex
8022 //mt:if %s.Field == HUDText2
8025 //mt:if %s.Field == HUDStyle
8027 }))(obj)).Text))) > math.MaxUint16 {
8031 x := uint16(len(([]byte((*(*(struct {
8036 //mt:if %s.Field == HUDPos
8039 //mt:if %s.Field == HUDName
8042 //mt:if %s.Field == HUDScale
8045 //mt:if %s.Field == HUDText
8048 //mt:if %s.Field == HUDNumber
8051 //mt:if %s.Field == HUDItem
8054 //mt:if %s.Field == HUDDir
8057 //mt:if %s.Field == HUDAlign
8060 //mt:if %s.Field == HUDOffset
8063 //mt:if %s.Field == HUDWorldPos
8066 //mt:if %s.Field == HUDSize
8069 //mt:if %s.Field == HUDZIndex
8072 //mt:if %s.Field == HUDText2
8075 //mt:if %s.Field == HUDStyle
8078 write16(w, uint16(x))
8081 _, err := w.Write(([]byte((*(*(struct {
8086 //mt:if %s.Field == HUDPos
8089 //mt:if %s.Field == HUDName
8092 //mt:if %s.Field == HUDScale
8095 //mt:if %s.Field == HUDText
8098 //mt:if %s.Field == HUDNumber
8101 //mt:if %s.Field == HUDItem
8104 //mt:if %s.Field == HUDDir
8107 //mt:if %s.Field == HUDAlign
8110 //mt:if %s.Field == HUDOffset
8113 //mt:if %s.Field == HUDWorldPos
8116 //mt:if %s.Field == HUDSize
8119 //mt:if %s.Field == HUDZIndex
8122 //mt:if %s.Field == HUDText2
8125 //mt:if %s.Field == HUDStyle
8127 }))(obj)).Text))[:])
8136 //mt:if %s.Field == HUDPos
8139 //mt:if %s.Field == HUDName
8142 //mt:if %s.Field == HUDScale
8145 //mt:if %s.Field == HUDText
8148 //mt:if %s.Field == HUDNumber
8151 //mt:if %s.Field == HUDItem
8154 //mt:if %s.Field == HUDDir
8157 //mt:if %s.Field == HUDAlign
8160 //mt:if %s.Field == HUDOffset
8163 //mt:if %s.Field == HUDWorldPos
8166 //mt:if %s.Field == HUDSize
8169 //mt:if %s.Field == HUDZIndex
8172 //mt:if %s.Field == HUDText2
8175 //mt:if %s.Field == HUDStyle
8177 }))(obj)).Field == HUDNumber {
8184 //mt:if %s.Field == HUDPos
8187 //mt:if %s.Field == HUDName
8190 //mt:if %s.Field == HUDScale
8193 //mt:if %s.Field == HUDText
8196 //mt:if %s.Field == HUDNumber
8199 //mt:if %s.Field == HUDItem
8202 //mt:if %s.Field == HUDDir
8205 //mt:if %s.Field == HUDAlign
8208 //mt:if %s.Field == HUDOffset
8211 //mt:if %s.Field == HUDWorldPos
8214 //mt:if %s.Field == HUDSize
8217 //mt:if %s.Field == HUDZIndex
8220 //mt:if %s.Field == HUDText2
8223 //mt:if %s.Field == HUDStyle
8226 write32(w, uint32(x))
8234 //mt:if %s.Field == HUDPos
8237 //mt:if %s.Field == HUDName
8240 //mt:if %s.Field == HUDScale
8243 //mt:if %s.Field == HUDText
8246 //mt:if %s.Field == HUDNumber
8249 //mt:if %s.Field == HUDItem
8252 //mt:if %s.Field == HUDDir
8255 //mt:if %s.Field == HUDAlign
8258 //mt:if %s.Field == HUDOffset
8261 //mt:if %s.Field == HUDWorldPos
8264 //mt:if %s.Field == HUDSize
8267 //mt:if %s.Field == HUDZIndex
8270 //mt:if %s.Field == HUDText2
8273 //mt:if %s.Field == HUDStyle
8275 }))(obj)).Field == HUDItem {
8282 //mt:if %s.Field == HUDPos
8285 //mt:if %s.Field == HUDName
8288 //mt:if %s.Field == HUDScale
8291 //mt:if %s.Field == HUDText
8294 //mt:if %s.Field == HUDNumber
8297 //mt:if %s.Field == HUDItem
8300 //mt:if %s.Field == HUDDir
8303 //mt:if %s.Field == HUDAlign
8306 //mt:if %s.Field == HUDOffset
8309 //mt:if %s.Field == HUDWorldPos
8312 //mt:if %s.Field == HUDSize
8315 //mt:if %s.Field == HUDZIndex
8318 //mt:if %s.Field == HUDText2
8321 //mt:if %s.Field == HUDStyle
8324 write32(w, uint32(x))
8332 //mt:if %s.Field == HUDPos
8335 //mt:if %s.Field == HUDName
8338 //mt:if %s.Field == HUDScale
8341 //mt:if %s.Field == HUDText
8344 //mt:if %s.Field == HUDNumber
8347 //mt:if %s.Field == HUDItem
8350 //mt:if %s.Field == HUDDir
8353 //mt:if %s.Field == HUDAlign
8356 //mt:if %s.Field == HUDOffset
8359 //mt:if %s.Field == HUDWorldPos
8362 //mt:if %s.Field == HUDSize
8365 //mt:if %s.Field == HUDZIndex
8368 //mt:if %s.Field == HUDText2
8371 //mt:if %s.Field == HUDStyle
8373 }))(obj)).Field == HUDDir {
8380 //mt:if %s.Field == HUDPos
8383 //mt:if %s.Field == HUDName
8386 //mt:if %s.Field == HUDScale
8389 //mt:if %s.Field == HUDText
8392 //mt:if %s.Field == HUDNumber
8395 //mt:if %s.Field == HUDItem
8398 //mt:if %s.Field == HUDDir
8401 //mt:if %s.Field == HUDAlign
8404 //mt:if %s.Field == HUDOffset
8407 //mt:if %s.Field == HUDWorldPos
8410 //mt:if %s.Field == HUDSize
8413 //mt:if %s.Field == HUDZIndex
8416 //mt:if %s.Field == HUDText2
8419 //mt:if %s.Field == HUDStyle
8422 write32(w, uint32(x))
8430 //mt:if %s.Field == HUDPos
8433 //mt:if %s.Field == HUDName
8436 //mt:if %s.Field == HUDScale
8439 //mt:if %s.Field == HUDText
8442 //mt:if %s.Field == HUDNumber
8445 //mt:if %s.Field == HUDItem
8448 //mt:if %s.Field == HUDDir
8451 //mt:if %s.Field == HUDAlign
8454 //mt:if %s.Field == HUDOffset
8457 //mt:if %s.Field == HUDWorldPos
8460 //mt:if %s.Field == HUDSize
8463 //mt:if %s.Field == HUDZIndex
8466 //mt:if %s.Field == HUDText2
8469 //mt:if %s.Field == HUDStyle
8471 }))(obj)).Field == HUDAlign {
8472 for local174 := range (*(*(struct {
8477 //mt:if %s.Field == HUDPos
8480 //mt:if %s.Field == HUDName
8483 //mt:if %s.Field == HUDScale
8486 //mt:if %s.Field == HUDText
8489 //mt:if %s.Field == HUDNumber
8492 //mt:if %s.Field == HUDItem
8495 //mt:if %s.Field == HUDDir
8498 //mt:if %s.Field == HUDAlign
8501 //mt:if %s.Field == HUDOffset
8504 //mt:if %s.Field == HUDWorldPos
8507 //mt:if %s.Field == HUDSize
8510 //mt:if %s.Field == HUDZIndex
8513 //mt:if %s.Field == HUDText2
8516 //mt:if %s.Field == HUDStyle
8525 //mt:if %s.Field == HUDPos
8528 //mt:if %s.Field == HUDName
8531 //mt:if %s.Field == HUDScale
8534 //mt:if %s.Field == HUDText
8537 //mt:if %s.Field == HUDNumber
8540 //mt:if %s.Field == HUDItem
8543 //mt:if %s.Field == HUDDir
8546 //mt:if %s.Field == HUDAlign
8549 //mt:if %s.Field == HUDOffset
8552 //mt:if %s.Field == HUDWorldPos
8555 //mt:if %s.Field == HUDSize
8558 //mt:if %s.Field == HUDZIndex
8561 //mt:if %s.Field == HUDText2
8564 //mt:if %s.Field == HUDStyle
8566 }))(obj)).Align)[local174]
8567 write32(w, math.Float32bits(x))
8576 //mt:if %s.Field == HUDPos
8579 //mt:if %s.Field == HUDName
8582 //mt:if %s.Field == HUDScale
8585 //mt:if %s.Field == HUDText
8588 //mt:if %s.Field == HUDNumber
8591 //mt:if %s.Field == HUDItem
8594 //mt:if %s.Field == HUDDir
8597 //mt:if %s.Field == HUDAlign
8600 //mt:if %s.Field == HUDOffset
8603 //mt:if %s.Field == HUDWorldPos
8606 //mt:if %s.Field == HUDSize
8609 //mt:if %s.Field == HUDZIndex
8612 //mt:if %s.Field == HUDText2
8615 //mt:if %s.Field == HUDStyle
8617 }))(obj)).Field == HUDOffset {
8618 for local175 := range (*(*(struct {
8623 //mt:if %s.Field == HUDPos
8626 //mt:if %s.Field == HUDName
8629 //mt:if %s.Field == HUDScale
8632 //mt:if %s.Field == HUDText
8635 //mt:if %s.Field == HUDNumber
8638 //mt:if %s.Field == HUDItem
8641 //mt:if %s.Field == HUDDir
8644 //mt:if %s.Field == HUDAlign
8647 //mt:if %s.Field == HUDOffset
8650 //mt:if %s.Field == HUDWorldPos
8653 //mt:if %s.Field == HUDSize
8656 //mt:if %s.Field == HUDZIndex
8659 //mt:if %s.Field == HUDText2
8662 //mt:if %s.Field == HUDStyle
8671 //mt:if %s.Field == HUDPos
8674 //mt:if %s.Field == HUDName
8677 //mt:if %s.Field == HUDScale
8680 //mt:if %s.Field == HUDText
8683 //mt:if %s.Field == HUDNumber
8686 //mt:if %s.Field == HUDItem
8689 //mt:if %s.Field == HUDDir
8692 //mt:if %s.Field == HUDAlign
8695 //mt:if %s.Field == HUDOffset
8698 //mt:if %s.Field == HUDWorldPos
8701 //mt:if %s.Field == HUDSize
8704 //mt:if %s.Field == HUDZIndex
8707 //mt:if %s.Field == HUDText2
8710 //mt:if %s.Field == HUDStyle
8712 }))(obj)).Offset)[local175]
8713 write32(w, math.Float32bits(x))
8722 //mt:if %s.Field == HUDPos
8725 //mt:if %s.Field == HUDName
8728 //mt:if %s.Field == HUDScale
8731 //mt:if %s.Field == HUDText
8734 //mt:if %s.Field == HUDNumber
8737 //mt:if %s.Field == HUDItem
8740 //mt:if %s.Field == HUDDir
8743 //mt:if %s.Field == HUDAlign
8746 //mt:if %s.Field == HUDOffset
8749 //mt:if %s.Field == HUDWorldPos
8752 //mt:if %s.Field == HUDSize
8755 //mt:if %s.Field == HUDZIndex
8758 //mt:if %s.Field == HUDText2
8761 //mt:if %s.Field == HUDStyle
8763 }))(obj)).Field == HUDWorldPos {
8764 if err := pcall(func() {
8770 //mt:if %s.Field == HUDPos
8773 //mt:if %s.Field == HUDName
8776 //mt:if %s.Field == HUDScale
8779 //mt:if %s.Field == HUDText
8782 //mt:if %s.Field == HUDNumber
8785 //mt:if %s.Field == HUDItem
8788 //mt:if %s.Field == HUDDir
8791 //mt:if %s.Field == HUDAlign
8794 //mt:if %s.Field == HUDOffset
8797 //mt:if %s.Field == HUDWorldPos
8800 //mt:if %s.Field == HUDSize
8803 //mt:if %s.Field == HUDZIndex
8806 //mt:if %s.Field == HUDText2
8809 //mt:if %s.Field == HUDStyle
8811 }))(obj)).WorldPos).serialize(w)
8816 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
8824 //mt:if %s.Field == HUDPos
8827 //mt:if %s.Field == HUDName
8830 //mt:if %s.Field == HUDScale
8833 //mt:if %s.Field == HUDText
8836 //mt:if %s.Field == HUDNumber
8839 //mt:if %s.Field == HUDItem
8842 //mt:if %s.Field == HUDDir
8845 //mt:if %s.Field == HUDAlign
8848 //mt:if %s.Field == HUDOffset
8851 //mt:if %s.Field == HUDWorldPos
8854 //mt:if %s.Field == HUDSize
8857 //mt:if %s.Field == HUDZIndex
8860 //mt:if %s.Field == HUDText2
8863 //mt:if %s.Field == HUDStyle
8865 }))(obj)).Field == HUDSize {
8866 for local176 := range (*(*(struct {
8871 //mt:if %s.Field == HUDPos
8874 //mt:if %s.Field == HUDName
8877 //mt:if %s.Field == HUDScale
8880 //mt:if %s.Field == HUDText
8883 //mt:if %s.Field == HUDNumber
8886 //mt:if %s.Field == HUDItem
8889 //mt:if %s.Field == HUDDir
8892 //mt:if %s.Field == HUDAlign
8895 //mt:if %s.Field == HUDOffset
8898 //mt:if %s.Field == HUDWorldPos
8901 //mt:if %s.Field == HUDSize
8904 //mt:if %s.Field == HUDZIndex
8907 //mt:if %s.Field == HUDText2
8910 //mt:if %s.Field == HUDStyle
8919 //mt:if %s.Field == HUDPos
8922 //mt:if %s.Field == HUDName
8925 //mt:if %s.Field == HUDScale
8928 //mt:if %s.Field == HUDText
8931 //mt:if %s.Field == HUDNumber
8934 //mt:if %s.Field == HUDItem
8937 //mt:if %s.Field == HUDDir
8940 //mt:if %s.Field == HUDAlign
8943 //mt:if %s.Field == HUDOffset
8946 //mt:if %s.Field == HUDWorldPos
8949 //mt:if %s.Field == HUDSize
8952 //mt:if %s.Field == HUDZIndex
8955 //mt:if %s.Field == HUDText2
8958 //mt:if %s.Field == HUDStyle
8960 }))(obj)).Size)[local176]
8961 write32(w, uint32(x))
8970 //mt:if %s.Field == HUDPos
8973 //mt:if %s.Field == HUDName
8976 //mt:if %s.Field == HUDScale
8979 //mt:if %s.Field == HUDText
8982 //mt:if %s.Field == HUDNumber
8985 //mt:if %s.Field == HUDItem
8988 //mt:if %s.Field == HUDDir
8991 //mt:if %s.Field == HUDAlign
8994 //mt:if %s.Field == HUDOffset
8997 //mt:if %s.Field == HUDWorldPos
9000 //mt:if %s.Field == HUDSize
9003 //mt:if %s.Field == HUDZIndex
9006 //mt:if %s.Field == HUDText2
9009 //mt:if %s.Field == HUDStyle
9011 }))(obj)).Field == HUDZIndex {
9018 //mt:if %s.Field == HUDPos
9021 //mt:if %s.Field == HUDName
9024 //mt:if %s.Field == HUDScale
9027 //mt:if %s.Field == HUDText
9030 //mt:if %s.Field == HUDNumber
9033 //mt:if %s.Field == HUDItem
9036 //mt:if %s.Field == HUDDir
9039 //mt:if %s.Field == HUDAlign
9042 //mt:if %s.Field == HUDOffset
9045 //mt:if %s.Field == HUDWorldPos
9048 //mt:if %s.Field == HUDSize
9051 //mt:if %s.Field == HUDZIndex
9054 //mt:if %s.Field == HUDText2
9057 //mt:if %s.Field == HUDStyle
9060 write32(w, uint32(x))
9068 //mt:if %s.Field == HUDPos
9071 //mt:if %s.Field == HUDName
9074 //mt:if %s.Field == HUDScale
9077 //mt:if %s.Field == HUDText
9080 //mt:if %s.Field == HUDNumber
9083 //mt:if %s.Field == HUDItem
9086 //mt:if %s.Field == HUDDir
9089 //mt:if %s.Field == HUDAlign
9092 //mt:if %s.Field == HUDOffset
9095 //mt:if %s.Field == HUDWorldPos
9098 //mt:if %s.Field == HUDSize
9101 //mt:if %s.Field == HUDZIndex
9104 //mt:if %s.Field == HUDText2
9107 //mt:if %s.Field == HUDStyle
9109 }))(obj)).Field == HUDText2 {
9110 if len(([]byte((*(*(struct {
9115 //mt:if %s.Field == HUDPos
9118 //mt:if %s.Field == HUDName
9121 //mt:if %s.Field == HUDScale
9124 //mt:if %s.Field == HUDText
9127 //mt:if %s.Field == HUDNumber
9130 //mt:if %s.Field == HUDItem
9133 //mt:if %s.Field == HUDDir
9136 //mt:if %s.Field == HUDAlign
9139 //mt:if %s.Field == HUDOffset
9142 //mt:if %s.Field == HUDWorldPos
9145 //mt:if %s.Field == HUDSize
9148 //mt:if %s.Field == HUDZIndex
9151 //mt:if %s.Field == HUDText2
9154 //mt:if %s.Field == HUDStyle
9156 }))(obj)).Text2))) > math.MaxUint16 {
9160 x := uint16(len(([]byte((*(*(struct {
9165 //mt:if %s.Field == HUDPos
9168 //mt:if %s.Field == HUDName
9171 //mt:if %s.Field == HUDScale
9174 //mt:if %s.Field == HUDText
9177 //mt:if %s.Field == HUDNumber
9180 //mt:if %s.Field == HUDItem
9183 //mt:if %s.Field == HUDDir
9186 //mt:if %s.Field == HUDAlign
9189 //mt:if %s.Field == HUDOffset
9192 //mt:if %s.Field == HUDWorldPos
9195 //mt:if %s.Field == HUDSize
9198 //mt:if %s.Field == HUDZIndex
9201 //mt:if %s.Field == HUDText2
9204 //mt:if %s.Field == HUDStyle
9207 write16(w, uint16(x))
9210 _, err := w.Write(([]byte((*(*(struct {
9215 //mt:if %s.Field == HUDPos
9218 //mt:if %s.Field == HUDName
9221 //mt:if %s.Field == HUDScale
9224 //mt:if %s.Field == HUDText
9227 //mt:if %s.Field == HUDNumber
9230 //mt:if %s.Field == HUDItem
9233 //mt:if %s.Field == HUDDir
9236 //mt:if %s.Field == HUDAlign
9239 //mt:if %s.Field == HUDOffset
9242 //mt:if %s.Field == HUDWorldPos
9245 //mt:if %s.Field == HUDSize
9248 //mt:if %s.Field == HUDZIndex
9251 //mt:if %s.Field == HUDText2
9254 //mt:if %s.Field == HUDStyle
9256 }))(obj)).Text2))[:])
9265 //mt:if %s.Field == HUDPos
9268 //mt:if %s.Field == HUDName
9271 //mt:if %s.Field == HUDScale
9274 //mt:if %s.Field == HUDText
9277 //mt:if %s.Field == HUDNumber
9280 //mt:if %s.Field == HUDItem
9283 //mt:if %s.Field == HUDDir
9286 //mt:if %s.Field == HUDAlign
9289 //mt:if %s.Field == HUDOffset
9292 //mt:if %s.Field == HUDWorldPos
9295 //mt:if %s.Field == HUDSize
9298 //mt:if %s.Field == HUDZIndex
9301 //mt:if %s.Field == HUDText2
9304 //mt:if %s.Field == HUDStyle
9306 }))(obj)).Field == HUDStyle {
9307 if err := pcall(func() {
9313 //mt:if %s.Field == HUDPos
9316 //mt:if %s.Field == HUDName
9319 //mt:if %s.Field == HUDScale
9322 //mt:if %s.Field == HUDText
9325 //mt:if %s.Field == HUDNumber
9328 //mt:if %s.Field == HUDItem
9331 //mt:if %s.Field == HUDDir
9334 //mt:if %s.Field == HUDAlign
9337 //mt:if %s.Field == HUDOffset
9340 //mt:if %s.Field == HUDWorldPos
9343 //mt:if %s.Field == HUDSize
9346 //mt:if %s.Field == HUDZIndex
9349 //mt:if %s.Field == HUDText2
9352 //mt:if %s.Field == HUDStyle
9354 }))(obj)).Style).serialize(w)
9359 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
9364 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9365 if err := pcall(func() {
9371 //mt:if %s.Field == HUDPos
9374 //mt:if %s.Field == HUDName
9377 //mt:if %s.Field == HUDScale
9380 //mt:if %s.Field == HUDText
9383 //mt:if %s.Field == HUDNumber
9386 //mt:if %s.Field == HUDItem
9389 //mt:if %s.Field == HUDDir
9392 //mt:if %s.Field == HUDAlign
9395 //mt:if %s.Field == HUDOffset
9398 //mt:if %s.Field == HUDWorldPos
9401 //mt:if %s.Field == HUDSize
9404 //mt:if %s.Field == HUDZIndex
9407 //mt:if %s.Field == HUDText2
9410 //mt:if %s.Field == HUDStyle
9412 }))(obj)).ID).deserialize(r)
9417 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
9419 if err := pcall(func() {
9425 //mt:if %s.Field == HUDPos
9428 //mt:if %s.Field == HUDName
9431 //mt:if %s.Field == HUDScale
9434 //mt:if %s.Field == HUDText
9437 //mt:if %s.Field == HUDNumber
9440 //mt:if %s.Field == HUDItem
9443 //mt:if %s.Field == HUDDir
9446 //mt:if %s.Field == HUDAlign
9449 //mt:if %s.Field == HUDOffset
9452 //mt:if %s.Field == HUDWorldPos
9455 //mt:if %s.Field == HUDSize
9458 //mt:if %s.Field == HUDZIndex
9461 //mt:if %s.Field == HUDText2
9464 //mt:if %s.Field == HUDStyle
9466 }))(obj)).Field).deserialize(r)
9471 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
9478 //mt:if %s.Field == HUDPos
9481 //mt:if %s.Field == HUDName
9484 //mt:if %s.Field == HUDScale
9487 //mt:if %s.Field == HUDText
9490 //mt:if %s.Field == HUDNumber
9493 //mt:if %s.Field == HUDItem
9496 //mt:if %s.Field == HUDDir
9499 //mt:if %s.Field == HUDAlign
9502 //mt:if %s.Field == HUDOffset
9505 //mt:if %s.Field == HUDWorldPos
9508 //mt:if %s.Field == HUDSize
9511 //mt:if %s.Field == HUDZIndex
9514 //mt:if %s.Field == HUDText2
9517 //mt:if %s.Field == HUDStyle
9519 }))(obj)).Field < hudMax) {
9520 chk(errors.New("assertion failed: %s.Field < hudMax"))
9527 //mt:if %s.Field == HUDPos
9530 //mt:if %s.Field == HUDName
9533 //mt:if %s.Field == HUDScale
9536 //mt:if %s.Field == HUDText
9539 //mt:if %s.Field == HUDNumber
9542 //mt:if %s.Field == HUDItem
9545 //mt:if %s.Field == HUDDir
9548 //mt:if %s.Field == HUDAlign
9551 //mt:if %s.Field == HUDOffset
9554 //mt:if %s.Field == HUDWorldPos
9557 //mt:if %s.Field == HUDSize
9560 //mt:if %s.Field == HUDZIndex
9563 //mt:if %s.Field == HUDText2
9566 //mt:if %s.Field == HUDStyle
9568 }))(obj)).Field == HUDPos {
9569 for local177 := range (*(*(struct {
9574 //mt:if %s.Field == HUDPos
9577 //mt:if %s.Field == HUDName
9580 //mt:if %s.Field == HUDScale
9583 //mt:if %s.Field == HUDText
9586 //mt:if %s.Field == HUDNumber
9589 //mt:if %s.Field == HUDItem
9592 //mt:if %s.Field == HUDDir
9595 //mt:if %s.Field == HUDAlign
9598 //mt:if %s.Field == HUDOffset
9601 //mt:if %s.Field == HUDWorldPos
9604 //mt:if %s.Field == HUDSize
9607 //mt:if %s.Field == HUDZIndex
9610 //mt:if %s.Field == HUDText2
9613 //mt:if %s.Field == HUDStyle
9617 p := &((*(*(struct {
9622 //mt:if %s.Field == HUDPos
9625 //mt:if %s.Field == HUDName
9628 //mt:if %s.Field == HUDScale
9631 //mt:if %s.Field == HUDText
9634 //mt:if %s.Field == HUDNumber
9637 //mt:if %s.Field == HUDItem
9640 //mt:if %s.Field == HUDDir
9643 //mt:if %s.Field == HUDAlign
9646 //mt:if %s.Field == HUDOffset
9649 //mt:if %s.Field == HUDWorldPos
9652 //mt:if %s.Field == HUDSize
9655 //mt:if %s.Field == HUDZIndex
9658 //mt:if %s.Field == HUDText2
9661 //mt:if %s.Field == HUDStyle
9663 }))(obj)).Pos)[local177]
9664 *p = math.Float32frombits(read32(r))
9673 //mt:if %s.Field == HUDPos
9676 //mt:if %s.Field == HUDName
9679 //mt:if %s.Field == HUDScale
9682 //mt:if %s.Field == HUDText
9685 //mt:if %s.Field == HUDNumber
9688 //mt:if %s.Field == HUDItem
9691 //mt:if %s.Field == HUDDir
9694 //mt:if %s.Field == HUDAlign
9697 //mt:if %s.Field == HUDOffset
9700 //mt:if %s.Field == HUDWorldPos
9703 //mt:if %s.Field == HUDSize
9706 //mt:if %s.Field == HUDZIndex
9709 //mt:if %s.Field == HUDText2
9712 //mt:if %s.Field == HUDStyle
9714 }))(obj)).Field == HUDName {
9715 var local178 []uint8
9721 (local178) = make([]uint8, local179)
9723 _, err := io.ReadFull(r, (local178)[:])
9731 //mt:if %s.Field == HUDPos
9734 //mt:if %s.Field == HUDName
9737 //mt:if %s.Field == HUDScale
9740 //mt:if %s.Field == HUDText
9743 //mt:if %s.Field == HUDNumber
9746 //mt:if %s.Field == HUDItem
9749 //mt:if %s.Field == HUDDir
9752 //mt:if %s.Field == HUDAlign
9755 //mt:if %s.Field == HUDOffset
9758 //mt:if %s.Field == HUDWorldPos
9761 //mt:if %s.Field == HUDSize
9764 //mt:if %s.Field == HUDZIndex
9767 //mt:if %s.Field == HUDText2
9770 //mt:if %s.Field == HUDStyle
9772 }))(obj)).Name) = string(local178)
9779 //mt:if %s.Field == HUDPos
9782 //mt:if %s.Field == HUDName
9785 //mt:if %s.Field == HUDScale
9788 //mt:if %s.Field == HUDText
9791 //mt:if %s.Field == HUDNumber
9794 //mt:if %s.Field == HUDItem
9797 //mt:if %s.Field == HUDDir
9800 //mt:if %s.Field == HUDAlign
9803 //mt:if %s.Field == HUDOffset
9806 //mt:if %s.Field == HUDWorldPos
9809 //mt:if %s.Field == HUDSize
9812 //mt:if %s.Field == HUDZIndex
9815 //mt:if %s.Field == HUDText2
9818 //mt:if %s.Field == HUDStyle
9820 }))(obj)).Field == HUDScale {
9821 for local180 := range (*(*(struct {
9826 //mt:if %s.Field == HUDPos
9829 //mt:if %s.Field == HUDName
9832 //mt:if %s.Field == HUDScale
9835 //mt:if %s.Field == HUDText
9838 //mt:if %s.Field == HUDNumber
9841 //mt:if %s.Field == HUDItem
9844 //mt:if %s.Field == HUDDir
9847 //mt:if %s.Field == HUDAlign
9850 //mt:if %s.Field == HUDOffset
9853 //mt:if %s.Field == HUDWorldPos
9856 //mt:if %s.Field == HUDSize
9859 //mt:if %s.Field == HUDZIndex
9862 //mt:if %s.Field == HUDText2
9865 //mt:if %s.Field == HUDStyle
9869 p := &((*(*(struct {
9874 //mt:if %s.Field == HUDPos
9877 //mt:if %s.Field == HUDName
9880 //mt:if %s.Field == HUDScale
9883 //mt:if %s.Field == HUDText
9886 //mt:if %s.Field == HUDNumber
9889 //mt:if %s.Field == HUDItem
9892 //mt:if %s.Field == HUDDir
9895 //mt:if %s.Field == HUDAlign
9898 //mt:if %s.Field == HUDOffset
9901 //mt:if %s.Field == HUDWorldPos
9904 //mt:if %s.Field == HUDSize
9907 //mt:if %s.Field == HUDZIndex
9910 //mt:if %s.Field == HUDText2
9913 //mt:if %s.Field == HUDStyle
9915 }))(obj)).Scale)[local180]
9916 *p = math.Float32frombits(read32(r))
9925 //mt:if %s.Field == HUDPos
9928 //mt:if %s.Field == HUDName
9931 //mt:if %s.Field == HUDScale
9934 //mt:if %s.Field == HUDText
9937 //mt:if %s.Field == HUDNumber
9940 //mt:if %s.Field == HUDItem
9943 //mt:if %s.Field == HUDDir
9946 //mt:if %s.Field == HUDAlign
9949 //mt:if %s.Field == HUDOffset
9952 //mt:if %s.Field == HUDWorldPos
9955 //mt:if %s.Field == HUDSize
9958 //mt:if %s.Field == HUDZIndex
9961 //mt:if %s.Field == HUDText2
9964 //mt:if %s.Field == HUDStyle
9966 }))(obj)).Field == HUDText {
9967 var local181 []uint8
9973 (local181) = make([]uint8, local182)
9975 _, err := io.ReadFull(r, (local181)[:])
9983 //mt:if %s.Field == HUDPos
9986 //mt:if %s.Field == HUDName
9989 //mt:if %s.Field == HUDScale
9992 //mt:if %s.Field == HUDText
9995 //mt:if %s.Field == HUDNumber
9998 //mt:if %s.Field == HUDItem
10001 //mt:if %s.Field == HUDDir
10004 //mt:if %s.Field == HUDAlign
10007 //mt:if %s.Field == HUDOffset
10010 //mt:if %s.Field == HUDWorldPos
10013 //mt:if %s.Field == HUDSize
10016 //mt:if %s.Field == HUDZIndex
10019 //mt:if %s.Field == HUDText2
10022 //mt:if %s.Field == HUDStyle
10023 Style HUDStyleFlags
10024 }))(obj)).Text) = string(local181)
10031 //mt:if %s.Field == HUDPos
10034 //mt:if %s.Field == HUDName
10037 //mt:if %s.Field == HUDScale
10040 //mt:if %s.Field == HUDText
10043 //mt:if %s.Field == HUDNumber
10046 //mt:if %s.Field == HUDItem
10049 //mt:if %s.Field == HUDDir
10052 //mt:if %s.Field == HUDAlign
10055 //mt:if %s.Field == HUDOffset
10058 //mt:if %s.Field == HUDWorldPos
10061 //mt:if %s.Field == HUDSize
10064 //mt:if %s.Field == HUDZIndex
10067 //mt:if %s.Field == HUDText2
10070 //mt:if %s.Field == HUDStyle
10071 Style HUDStyleFlags
10072 }))(obj)).Field == HUDNumber {
10074 p := &(*(*(struct {
10079 //mt:if %s.Field == HUDPos
10082 //mt:if %s.Field == HUDName
10085 //mt:if %s.Field == HUDScale
10088 //mt:if %s.Field == HUDText
10091 //mt:if %s.Field == HUDNumber
10094 //mt:if %s.Field == HUDItem
10097 //mt:if %s.Field == HUDDir
10100 //mt:if %s.Field == HUDAlign
10103 //mt:if %s.Field == HUDOffset
10106 //mt:if %s.Field == HUDWorldPos
10109 //mt:if %s.Field == HUDSize
10112 //mt:if %s.Field == HUDZIndex
10115 //mt:if %s.Field == HUDText2
10118 //mt:if %s.Field == HUDStyle
10119 Style HUDStyleFlags
10129 //mt:if %s.Field == HUDPos
10132 //mt:if %s.Field == HUDName
10135 //mt:if %s.Field == HUDScale
10138 //mt:if %s.Field == HUDText
10141 //mt:if %s.Field == HUDNumber
10144 //mt:if %s.Field == HUDItem
10147 //mt:if %s.Field == HUDDir
10150 //mt:if %s.Field == HUDAlign
10153 //mt:if %s.Field == HUDOffset
10156 //mt:if %s.Field == HUDWorldPos
10159 //mt:if %s.Field == HUDSize
10162 //mt:if %s.Field == HUDZIndex
10165 //mt:if %s.Field == HUDText2
10168 //mt:if %s.Field == HUDStyle
10169 Style HUDStyleFlags
10170 }))(obj)).Field == HUDItem {
10172 p := &(*(*(struct {
10177 //mt:if %s.Field == HUDPos
10180 //mt:if %s.Field == HUDName
10183 //mt:if %s.Field == HUDScale
10186 //mt:if %s.Field == HUDText
10189 //mt:if %s.Field == HUDNumber
10192 //mt:if %s.Field == HUDItem
10195 //mt:if %s.Field == HUDDir
10198 //mt:if %s.Field == HUDAlign
10201 //mt:if %s.Field == HUDOffset
10204 //mt:if %s.Field == HUDWorldPos
10207 //mt:if %s.Field == HUDSize
10210 //mt:if %s.Field == HUDZIndex
10213 //mt:if %s.Field == HUDText2
10216 //mt:if %s.Field == HUDStyle
10217 Style HUDStyleFlags
10227 //mt:if %s.Field == HUDPos
10230 //mt:if %s.Field == HUDName
10233 //mt:if %s.Field == HUDScale
10236 //mt:if %s.Field == HUDText
10239 //mt:if %s.Field == HUDNumber
10242 //mt:if %s.Field == HUDItem
10245 //mt:if %s.Field == HUDDir
10248 //mt:if %s.Field == HUDAlign
10251 //mt:if %s.Field == HUDOffset
10254 //mt:if %s.Field == HUDWorldPos
10257 //mt:if %s.Field == HUDSize
10260 //mt:if %s.Field == HUDZIndex
10263 //mt:if %s.Field == HUDText2
10266 //mt:if %s.Field == HUDStyle
10267 Style HUDStyleFlags
10268 }))(obj)).Field == HUDDir {
10270 p := &(*(*(struct {
10275 //mt:if %s.Field == HUDPos
10278 //mt:if %s.Field == HUDName
10281 //mt:if %s.Field == HUDScale
10284 //mt:if %s.Field == HUDText
10287 //mt:if %s.Field == HUDNumber
10290 //mt:if %s.Field == HUDItem
10293 //mt:if %s.Field == HUDDir
10296 //mt:if %s.Field == HUDAlign
10299 //mt:if %s.Field == HUDOffset
10302 //mt:if %s.Field == HUDWorldPos
10305 //mt:if %s.Field == HUDSize
10308 //mt:if %s.Field == HUDZIndex
10311 //mt:if %s.Field == HUDText2
10314 //mt:if %s.Field == HUDStyle
10315 Style HUDStyleFlags
10325 //mt:if %s.Field == HUDPos
10328 //mt:if %s.Field == HUDName
10331 //mt:if %s.Field == HUDScale
10334 //mt:if %s.Field == HUDText
10337 //mt:if %s.Field == HUDNumber
10340 //mt:if %s.Field == HUDItem
10343 //mt:if %s.Field == HUDDir
10346 //mt:if %s.Field == HUDAlign
10349 //mt:if %s.Field == HUDOffset
10352 //mt:if %s.Field == HUDWorldPos
10355 //mt:if %s.Field == HUDSize
10358 //mt:if %s.Field == HUDZIndex
10361 //mt:if %s.Field == HUDText2
10364 //mt:if %s.Field == HUDStyle
10365 Style HUDStyleFlags
10366 }))(obj)).Field == HUDAlign {
10367 for local183 := range (*(*(struct {
10372 //mt:if %s.Field == HUDPos
10375 //mt:if %s.Field == HUDName
10378 //mt:if %s.Field == HUDScale
10381 //mt:if %s.Field == HUDText
10384 //mt:if %s.Field == HUDNumber
10387 //mt:if %s.Field == HUDItem
10390 //mt:if %s.Field == HUDDir
10393 //mt:if %s.Field == HUDAlign
10396 //mt:if %s.Field == HUDOffset
10399 //mt:if %s.Field == HUDWorldPos
10402 //mt:if %s.Field == HUDSize
10405 //mt:if %s.Field == HUDZIndex
10408 //mt:if %s.Field == HUDText2
10411 //mt:if %s.Field == HUDStyle
10412 Style HUDStyleFlags
10415 p := &((*(*(struct {
10420 //mt:if %s.Field == HUDPos
10423 //mt:if %s.Field == HUDName
10426 //mt:if %s.Field == HUDScale
10429 //mt:if %s.Field == HUDText
10432 //mt:if %s.Field == HUDNumber
10435 //mt:if %s.Field == HUDItem
10438 //mt:if %s.Field == HUDDir
10441 //mt:if %s.Field == HUDAlign
10444 //mt:if %s.Field == HUDOffset
10447 //mt:if %s.Field == HUDWorldPos
10450 //mt:if %s.Field == HUDSize
10453 //mt:if %s.Field == HUDZIndex
10456 //mt:if %s.Field == HUDText2
10459 //mt:if %s.Field == HUDStyle
10460 Style HUDStyleFlags
10461 }))(obj)).Align)[local183]
10462 *p = math.Float32frombits(read32(r))
10471 //mt:if %s.Field == HUDPos
10474 //mt:if %s.Field == HUDName
10477 //mt:if %s.Field == HUDScale
10480 //mt:if %s.Field == HUDText
10483 //mt:if %s.Field == HUDNumber
10486 //mt:if %s.Field == HUDItem
10489 //mt:if %s.Field == HUDDir
10492 //mt:if %s.Field == HUDAlign
10495 //mt:if %s.Field == HUDOffset
10498 //mt:if %s.Field == HUDWorldPos
10501 //mt:if %s.Field == HUDSize
10504 //mt:if %s.Field == HUDZIndex
10507 //mt:if %s.Field == HUDText2
10510 //mt:if %s.Field == HUDStyle
10511 Style HUDStyleFlags
10512 }))(obj)).Field == HUDOffset {
10513 for local184 := range (*(*(struct {
10518 //mt:if %s.Field == HUDPos
10521 //mt:if %s.Field == HUDName
10524 //mt:if %s.Field == HUDScale
10527 //mt:if %s.Field == HUDText
10530 //mt:if %s.Field == HUDNumber
10533 //mt:if %s.Field == HUDItem
10536 //mt:if %s.Field == HUDDir
10539 //mt:if %s.Field == HUDAlign
10542 //mt:if %s.Field == HUDOffset
10545 //mt:if %s.Field == HUDWorldPos
10548 //mt:if %s.Field == HUDSize
10551 //mt:if %s.Field == HUDZIndex
10554 //mt:if %s.Field == HUDText2
10557 //mt:if %s.Field == HUDStyle
10558 Style HUDStyleFlags
10561 p := &((*(*(struct {
10566 //mt:if %s.Field == HUDPos
10569 //mt:if %s.Field == HUDName
10572 //mt:if %s.Field == HUDScale
10575 //mt:if %s.Field == HUDText
10578 //mt:if %s.Field == HUDNumber
10581 //mt:if %s.Field == HUDItem
10584 //mt:if %s.Field == HUDDir
10587 //mt:if %s.Field == HUDAlign
10590 //mt:if %s.Field == HUDOffset
10593 //mt:if %s.Field == HUDWorldPos
10596 //mt:if %s.Field == HUDSize
10599 //mt:if %s.Field == HUDZIndex
10602 //mt:if %s.Field == HUDText2
10605 //mt:if %s.Field == HUDStyle
10606 Style HUDStyleFlags
10607 }))(obj)).Offset)[local184]
10608 *p = math.Float32frombits(read32(r))
10617 //mt:if %s.Field == HUDPos
10620 //mt:if %s.Field == HUDName
10623 //mt:if %s.Field == HUDScale
10626 //mt:if %s.Field == HUDText
10629 //mt:if %s.Field == HUDNumber
10632 //mt:if %s.Field == HUDItem
10635 //mt:if %s.Field == HUDDir
10638 //mt:if %s.Field == HUDAlign
10641 //mt:if %s.Field == HUDOffset
10644 //mt:if %s.Field == HUDWorldPos
10647 //mt:if %s.Field == HUDSize
10650 //mt:if %s.Field == HUDZIndex
10653 //mt:if %s.Field == HUDText2
10656 //mt:if %s.Field == HUDStyle
10657 Style HUDStyleFlags
10658 }))(obj)).Field == HUDWorldPos {
10659 if err := pcall(func() {
10665 //mt:if %s.Field == HUDPos
10668 //mt:if %s.Field == HUDName
10671 //mt:if %s.Field == HUDScale
10674 //mt:if %s.Field == HUDText
10677 //mt:if %s.Field == HUDNumber
10680 //mt:if %s.Field == HUDItem
10683 //mt:if %s.Field == HUDDir
10686 //mt:if %s.Field == HUDAlign
10689 //mt:if %s.Field == HUDOffset
10692 //mt:if %s.Field == HUDWorldPos
10695 //mt:if %s.Field == HUDSize
10698 //mt:if %s.Field == HUDZIndex
10701 //mt:if %s.Field == HUDText2
10704 //mt:if %s.Field == HUDStyle
10705 Style HUDStyleFlags
10706 }))(obj)).WorldPos).deserialize(r)
10711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
10719 //mt:if %s.Field == HUDPos
10722 //mt:if %s.Field == HUDName
10725 //mt:if %s.Field == HUDScale
10728 //mt:if %s.Field == HUDText
10731 //mt:if %s.Field == HUDNumber
10734 //mt:if %s.Field == HUDItem
10737 //mt:if %s.Field == HUDDir
10740 //mt:if %s.Field == HUDAlign
10743 //mt:if %s.Field == HUDOffset
10746 //mt:if %s.Field == HUDWorldPos
10749 //mt:if %s.Field == HUDSize
10752 //mt:if %s.Field == HUDZIndex
10755 //mt:if %s.Field == HUDText2
10758 //mt:if %s.Field == HUDStyle
10759 Style HUDStyleFlags
10760 }))(obj)).Field == HUDSize {
10761 for local185 := range (*(*(struct {
10766 //mt:if %s.Field == HUDPos
10769 //mt:if %s.Field == HUDName
10772 //mt:if %s.Field == HUDScale
10775 //mt:if %s.Field == HUDText
10778 //mt:if %s.Field == HUDNumber
10781 //mt:if %s.Field == HUDItem
10784 //mt:if %s.Field == HUDDir
10787 //mt:if %s.Field == HUDAlign
10790 //mt:if %s.Field == HUDOffset
10793 //mt:if %s.Field == HUDWorldPos
10796 //mt:if %s.Field == HUDSize
10799 //mt:if %s.Field == HUDZIndex
10802 //mt:if %s.Field == HUDText2
10805 //mt:if %s.Field == HUDStyle
10806 Style HUDStyleFlags
10809 p := &((*(*(struct {
10814 //mt:if %s.Field == HUDPos
10817 //mt:if %s.Field == HUDName
10820 //mt:if %s.Field == HUDScale
10823 //mt:if %s.Field == HUDText
10826 //mt:if %s.Field == HUDNumber
10829 //mt:if %s.Field == HUDItem
10832 //mt:if %s.Field == HUDDir
10835 //mt:if %s.Field == HUDAlign
10838 //mt:if %s.Field == HUDOffset
10841 //mt:if %s.Field == HUDWorldPos
10844 //mt:if %s.Field == HUDSize
10847 //mt:if %s.Field == HUDZIndex
10850 //mt:if %s.Field == HUDText2
10853 //mt:if %s.Field == HUDStyle
10854 Style HUDStyleFlags
10855 }))(obj)).Size)[local185]
10856 *p = int32(read32(r))
10865 //mt:if %s.Field == HUDPos
10868 //mt:if %s.Field == HUDName
10871 //mt:if %s.Field == HUDScale
10874 //mt:if %s.Field == HUDText
10877 //mt:if %s.Field == HUDNumber
10880 //mt:if %s.Field == HUDItem
10883 //mt:if %s.Field == HUDDir
10886 //mt:if %s.Field == HUDAlign
10889 //mt:if %s.Field == HUDOffset
10892 //mt:if %s.Field == HUDWorldPos
10895 //mt:if %s.Field == HUDSize
10898 //mt:if %s.Field == HUDZIndex
10901 //mt:if %s.Field == HUDText2
10904 //mt:if %s.Field == HUDStyle
10905 Style HUDStyleFlags
10906 }))(obj)).Field == HUDZIndex {
10908 p := &(*(*(struct {
10913 //mt:if %s.Field == HUDPos
10916 //mt:if %s.Field == HUDName
10919 //mt:if %s.Field == HUDScale
10922 //mt:if %s.Field == HUDText
10925 //mt:if %s.Field == HUDNumber
10928 //mt:if %s.Field == HUDItem
10931 //mt:if %s.Field == HUDDir
10934 //mt:if %s.Field == HUDAlign
10937 //mt:if %s.Field == HUDOffset
10940 //mt:if %s.Field == HUDWorldPos
10943 //mt:if %s.Field == HUDSize
10946 //mt:if %s.Field == HUDZIndex
10949 //mt:if %s.Field == HUDText2
10952 //mt:if %s.Field == HUDStyle
10953 Style HUDStyleFlags
10955 *p = int32(read32(r))
10963 //mt:if %s.Field == HUDPos
10966 //mt:if %s.Field == HUDName
10969 //mt:if %s.Field == HUDScale
10972 //mt:if %s.Field == HUDText
10975 //mt:if %s.Field == HUDNumber
10978 //mt:if %s.Field == HUDItem
10981 //mt:if %s.Field == HUDDir
10984 //mt:if %s.Field == HUDAlign
10987 //mt:if %s.Field == HUDOffset
10990 //mt:if %s.Field == HUDWorldPos
10993 //mt:if %s.Field == HUDSize
10996 //mt:if %s.Field == HUDZIndex
10999 //mt:if %s.Field == HUDText2
11002 //mt:if %s.Field == HUDStyle
11003 Style HUDStyleFlags
11004 }))(obj)).Field == HUDText2 {
11005 var local186 []uint8
11006 var local187 uint16
11011 (local186) = make([]uint8, local187)
11013 _, err := io.ReadFull(r, (local186)[:])
11021 //mt:if %s.Field == HUDPos
11024 //mt:if %s.Field == HUDName
11027 //mt:if %s.Field == HUDScale
11030 //mt:if %s.Field == HUDText
11033 //mt:if %s.Field == HUDNumber
11036 //mt:if %s.Field == HUDItem
11039 //mt:if %s.Field == HUDDir
11042 //mt:if %s.Field == HUDAlign
11045 //mt:if %s.Field == HUDOffset
11048 //mt:if %s.Field == HUDWorldPos
11051 //mt:if %s.Field == HUDSize
11054 //mt:if %s.Field == HUDZIndex
11057 //mt:if %s.Field == HUDText2
11060 //mt:if %s.Field == HUDStyle
11061 Style HUDStyleFlags
11062 }))(obj)).Text2) = string(local186)
11069 //mt:if %s.Field == HUDPos
11072 //mt:if %s.Field == HUDName
11075 //mt:if %s.Field == HUDScale
11078 //mt:if %s.Field == HUDText
11081 //mt:if %s.Field == HUDNumber
11084 //mt:if %s.Field == HUDItem
11087 //mt:if %s.Field == HUDDir
11090 //mt:if %s.Field == HUDAlign
11093 //mt:if %s.Field == HUDOffset
11096 //mt:if %s.Field == HUDWorldPos
11099 //mt:if %s.Field == HUDSize
11102 //mt:if %s.Field == HUDZIndex
11105 //mt:if %s.Field == HUDText2
11108 //mt:if %s.Field == HUDStyle
11109 Style HUDStyleFlags
11110 }))(obj)).Field == HUDStyle {
11111 if err := pcall(func() {
11117 //mt:if %s.Field == HUDPos
11120 //mt:if %s.Field == HUDName
11123 //mt:if %s.Field == HUDScale
11126 //mt:if %s.Field == HUDText
11129 //mt:if %s.Field == HUDNumber
11132 //mt:if %s.Field == HUDItem
11135 //mt:if %s.Field == HUDDir
11138 //mt:if %s.Field == HUDAlign
11141 //mt:if %s.Field == HUDOffset
11144 //mt:if %s.Field == HUDWorldPos
11147 //mt:if %s.Field == HUDSize
11150 //mt:if %s.Field == HUDZIndex
11153 //mt:if %s.Field == HUDText2
11156 //mt:if %s.Field == HUDStyle
11157 Style HUDStyleFlags
11158 }))(obj)).Style).deserialize(r)
11163 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
11168 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
11169 if err := pcall(func() {
11173 Flags, Mask HUDFlags
11174 }))(obj)).Flags).serialize(w)
11179 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11181 if err := pcall(func() {
11185 Flags, Mask HUDFlags
11186 }))(obj)).Mask).serialize(w)
11191 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11195 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
11196 if err := pcall(func() {
11200 Flags, Mask HUDFlags
11201 }))(obj)).Flags).deserialize(r)
11206 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11208 if err := pcall(func() {
11212 Flags, Mask HUDFlags
11213 }))(obj)).Mask).deserialize(r)
11218 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11222 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
11223 if err := pcall(func() {
11227 //mt:if %s.Param == HotbarSize
11228 //mt:const uint16(4) // Size of Size field.
11231 //mt:if %s.Param != HotbarSize
11233 }))(obj)).Param).serialize(w)
11238 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11243 //mt:if %s.Param == HotbarSize
11244 //mt:const uint16(4) // Size of Size field.
11247 //mt:if %s.Param != HotbarSize
11249 }))(obj)).Param == HotbarSize {
11251 local188 := uint16(4) // Size of Size field.
11254 write16(w, uint16(x))
11261 //mt:if %s.Param == HotbarSize
11262 //mt:const uint16(4) // Size of Size field.
11265 //mt:if %s.Param != HotbarSize
11268 write32(w, uint32(x))
11274 //mt:if %s.Param == HotbarSize
11275 //mt:const uint16(4) // Size of Size field.
11278 //mt:if %s.Param != HotbarSize
11280 }))(obj)).Param != HotbarSize {
11281 if err := pcall(func() {
11285 //mt:if %s.Param == HotbarSize
11286 //mt:const uint16(4) // Size of Size field.
11289 //mt:if %s.Param != HotbarSize
11291 }))(obj)).Img).serialize(w)
11296 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11301 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
11302 if err := pcall(func() {
11306 //mt:if %s.Param == HotbarSize
11307 //mt:const uint16(4) // Size of Size field.
11310 //mt:if %s.Param != HotbarSize
11312 }))(obj)).Param).deserialize(r)
11317 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11322 //mt:if %s.Param == HotbarSize
11323 //mt:const uint16(4) // Size of Size field.
11326 //mt:if %s.Param != HotbarSize
11328 }))(obj)).Param == HotbarSize {
11330 var local189 uint16
11331 local190 := uint16(4) // Size of Size field.
11336 if local189 != local190 {
11337 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
11341 p := &(*(*(struct {
11344 //mt:if %s.Param == HotbarSize
11345 //mt:const uint16(4) // Size of Size field.
11348 //mt:if %s.Param != HotbarSize
11351 *p = int32(read32(r))
11357 //mt:if %s.Param == HotbarSize
11358 //mt:const uint16(4) // Size of Size field.
11361 //mt:if %s.Param != HotbarSize
11363 }))(obj)).Param != HotbarSize {
11364 if err := pcall(func() {
11368 //mt:if %s.Param == HotbarSize
11369 //mt:const uint16(4) // Size of Size field.
11372 //mt:if %s.Param != HotbarSize
11374 }))(obj)).Img).deserialize(r)
11379 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11384 func (obj *ToCltBreath) serialize(w io.Writer) {
11389 write16(w, uint16(x))
11393 func (obj *ToCltBreath) deserialize(r io.Reader) {
11395 p := &(*(*(struct {
11402 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11405 BgColor color.NRGBA
11408 SunFogTint color.NRGBA
11409 MoonFogTint color.NRGBA
11412 //mt:if %s.Type == "skybox"
11415 //mt:if %s.Type == "regular"
11416 DaySky, DayHorizon,
11417 DawnSky, DawnHorizon,
11418 NightSky, NightHorizon,
11421 w.Write([]byte{x.A, x.R, x.G, x.B})
11423 if len(([]byte((*(*(struct {
11424 BgColor color.NRGBA
11427 SunFogTint color.NRGBA
11428 MoonFogTint color.NRGBA
11431 //mt:if %s.Type == "skybox"
11434 //mt:if %s.Type == "regular"
11435 DaySky, DayHorizon,
11436 DawnSky, DawnHorizon,
11437 NightSky, NightHorizon,
11439 }))(obj)).Type))) > math.MaxUint16 {
11443 x := uint16(len(([]byte((*(*(struct {
11444 BgColor color.NRGBA
11447 SunFogTint color.NRGBA
11448 MoonFogTint color.NRGBA
11451 //mt:if %s.Type == "skybox"
11454 //mt:if %s.Type == "regular"
11455 DaySky, DayHorizon,
11456 DawnSky, DawnHorizon,
11457 NightSky, NightHorizon,
11460 write16(w, uint16(x))
11463 _, err := w.Write(([]byte((*(*(struct {
11464 BgColor color.NRGBA
11467 SunFogTint color.NRGBA
11468 MoonFogTint color.NRGBA
11471 //mt:if %s.Type == "skybox"
11474 //mt:if %s.Type == "regular"
11475 DaySky, DayHorizon,
11476 DawnSky, DawnHorizon,
11477 NightSky, NightHorizon,
11479 }))(obj)).Type))[:])
11484 BgColor color.NRGBA
11487 SunFogTint color.NRGBA
11488 MoonFogTint color.NRGBA
11491 //mt:if %s.Type == "skybox"
11494 //mt:if %s.Type == "regular"
11495 DaySky, DayHorizon,
11496 DawnSky, DawnHorizon,
11497 NightSky, NightHorizon,
11508 BgColor color.NRGBA
11511 SunFogTint color.NRGBA
11512 MoonFogTint color.NRGBA
11515 //mt:if %s.Type == "skybox"
11518 //mt:if %s.Type == "regular"
11519 DaySky, DayHorizon,
11520 DawnSky, DawnHorizon,
11521 NightSky, NightHorizon,
11523 }))(obj)).SunFogTint
11524 w.Write([]byte{x.A, x.R, x.G, x.B})
11528 BgColor color.NRGBA
11531 SunFogTint color.NRGBA
11532 MoonFogTint color.NRGBA
11535 //mt:if %s.Type == "skybox"
11538 //mt:if %s.Type == "regular"
11539 DaySky, DayHorizon,
11540 DawnSky, DawnHorizon,
11541 NightSky, NightHorizon,
11543 }))(obj)).MoonFogTint
11544 w.Write([]byte{x.A, x.R, x.G, x.B})
11546 if len(([]byte((*(*(struct {
11547 BgColor color.NRGBA
11550 SunFogTint color.NRGBA
11551 MoonFogTint color.NRGBA
11554 //mt:if %s.Type == "skybox"
11557 //mt:if %s.Type == "regular"
11558 DaySky, DayHorizon,
11559 DawnSky, DawnHorizon,
11560 NightSky, NightHorizon,
11562 }))(obj)).FogTintType))) > math.MaxUint16 {
11566 x := uint16(len(([]byte((*(*(struct {
11567 BgColor color.NRGBA
11570 SunFogTint color.NRGBA
11571 MoonFogTint color.NRGBA
11574 //mt:if %s.Type == "skybox"
11577 //mt:if %s.Type == "regular"
11578 DaySky, DayHorizon,
11579 DawnSky, DawnHorizon,
11580 NightSky, NightHorizon,
11582 }))(obj)).FogTintType))))
11583 write16(w, uint16(x))
11586 _, err := w.Write(([]byte((*(*(struct {
11587 BgColor color.NRGBA
11590 SunFogTint color.NRGBA
11591 MoonFogTint color.NRGBA
11594 //mt:if %s.Type == "skybox"
11597 //mt:if %s.Type == "regular"
11598 DaySky, DayHorizon,
11599 DawnSky, DawnHorizon,
11600 NightSky, NightHorizon,
11602 }))(obj)).FogTintType))[:])
11606 BgColor color.NRGBA
11609 SunFogTint color.NRGBA
11610 MoonFogTint color.NRGBA
11613 //mt:if %s.Type == "skybox"
11616 //mt:if %s.Type == "regular"
11617 DaySky, DayHorizon,
11618 DawnSky, DawnHorizon,
11619 NightSky, NightHorizon,
11621 }))(obj)).Type == "skybox" {
11622 if len(((*(*(struct {
11623 BgColor color.NRGBA
11626 SunFogTint color.NRGBA
11627 MoonFogTint color.NRGBA
11630 //mt:if %s.Type == "skybox"
11633 //mt:if %s.Type == "regular"
11634 DaySky, DayHorizon,
11635 DawnSky, DawnHorizon,
11636 NightSky, NightHorizon,
11638 }))(obj)).Textures)) > math.MaxUint16 {
11642 x := uint16(len(((*(*(struct {
11643 BgColor color.NRGBA
11646 SunFogTint color.NRGBA
11647 MoonFogTint color.NRGBA
11650 //mt:if %s.Type == "skybox"
11653 //mt:if %s.Type == "regular"
11654 DaySky, DayHorizon,
11655 DawnSky, DawnHorizon,
11656 NightSky, NightHorizon,
11658 }))(obj)).Textures)))
11659 write16(w, uint16(x))
11661 for local191 := range (*(*(struct {
11662 BgColor color.NRGBA
11665 SunFogTint color.NRGBA
11666 MoonFogTint color.NRGBA
11669 //mt:if %s.Type == "skybox"
11672 //mt:if %s.Type == "regular"
11673 DaySky, DayHorizon,
11674 DawnSky, DawnHorizon,
11675 NightSky, NightHorizon,
11677 }))(obj)).Textures {
11678 if err := pcall(func() {
11680 BgColor color.NRGBA
11683 SunFogTint color.NRGBA
11684 MoonFogTint color.NRGBA
11687 //mt:if %s.Type == "skybox"
11690 //mt:if %s.Type == "regular"
11691 DaySky, DayHorizon,
11692 DawnSky, DawnHorizon,
11693 NightSky, NightHorizon,
11695 }))(obj)).Textures)[local191]).serialize(w)
11700 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11705 BgColor color.NRGBA
11708 SunFogTint color.NRGBA
11709 MoonFogTint color.NRGBA
11712 //mt:if %s.Type == "skybox"
11715 //mt:if %s.Type == "regular"
11716 DaySky, DayHorizon,
11717 DawnSky, DawnHorizon,
11718 NightSky, NightHorizon,
11720 }))(obj)).Type == "regular" {
11723 BgColor color.NRGBA
11726 SunFogTint color.NRGBA
11727 MoonFogTint color.NRGBA
11730 //mt:if %s.Type == "skybox"
11733 //mt:if %s.Type == "regular"
11734 DaySky, DayHorizon,
11735 DawnSky, DawnHorizon,
11736 NightSky, NightHorizon,
11739 w.Write([]byte{x.A, x.R, x.G, x.B})
11743 BgColor color.NRGBA
11746 SunFogTint color.NRGBA
11747 MoonFogTint color.NRGBA
11750 //mt:if %s.Type == "skybox"
11753 //mt:if %s.Type == "regular"
11754 DaySky, DayHorizon,
11755 DawnSky, DawnHorizon,
11756 NightSky, NightHorizon,
11758 }))(obj)).DayHorizon
11759 w.Write([]byte{x.A, x.R, x.G, x.B})
11763 BgColor color.NRGBA
11766 SunFogTint color.NRGBA
11767 MoonFogTint color.NRGBA
11770 //mt:if %s.Type == "skybox"
11773 //mt:if %s.Type == "regular"
11774 DaySky, DayHorizon,
11775 DawnSky, DawnHorizon,
11776 NightSky, NightHorizon,
11779 w.Write([]byte{x.A, x.R, x.G, x.B})
11783 BgColor color.NRGBA
11786 SunFogTint color.NRGBA
11787 MoonFogTint color.NRGBA
11790 //mt:if %s.Type == "skybox"
11793 //mt:if %s.Type == "regular"
11794 DaySky, DayHorizon,
11795 DawnSky, DawnHorizon,
11796 NightSky, NightHorizon,
11798 }))(obj)).DawnHorizon
11799 w.Write([]byte{x.A, x.R, x.G, x.B})
11803 BgColor color.NRGBA
11806 SunFogTint color.NRGBA
11807 MoonFogTint color.NRGBA
11810 //mt:if %s.Type == "skybox"
11813 //mt:if %s.Type == "regular"
11814 DaySky, DayHorizon,
11815 DawnSky, DawnHorizon,
11816 NightSky, NightHorizon,
11819 w.Write([]byte{x.A, x.R, x.G, x.B})
11823 BgColor color.NRGBA
11826 SunFogTint color.NRGBA
11827 MoonFogTint color.NRGBA
11830 //mt:if %s.Type == "skybox"
11833 //mt:if %s.Type == "regular"
11834 DaySky, DayHorizon,
11835 DawnSky, DawnHorizon,
11836 NightSky, NightHorizon,
11838 }))(obj)).NightHorizon
11839 w.Write([]byte{x.A, x.R, x.G, x.B})
11843 BgColor color.NRGBA
11846 SunFogTint color.NRGBA
11847 MoonFogTint color.NRGBA
11850 //mt:if %s.Type == "skybox"
11853 //mt:if %s.Type == "regular"
11854 DaySky, DayHorizon,
11855 DawnSky, DawnHorizon,
11856 NightSky, NightHorizon,
11859 w.Write([]byte{x.A, x.R, x.G, x.B})
11864 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11866 p := &(*(*(struct {
11867 BgColor color.NRGBA
11870 SunFogTint color.NRGBA
11871 MoonFogTint color.NRGBA
11874 //mt:if %s.Type == "skybox"
11877 //mt:if %s.Type == "regular"
11878 DaySky, DayHorizon,
11879 DawnSky, DawnHorizon,
11880 NightSky, NightHorizon,
11883 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11885 var local192 []uint8
11886 var local193 uint16
11891 (local192) = make([]uint8, local193)
11893 _, err := io.ReadFull(r, (local192)[:])
11897 BgColor color.NRGBA
11900 SunFogTint color.NRGBA
11901 MoonFogTint color.NRGBA
11904 //mt:if %s.Type == "skybox"
11907 //mt:if %s.Type == "regular"
11908 DaySky, DayHorizon,
11909 DawnSky, DawnHorizon,
11910 NightSky, NightHorizon,
11912 }))(obj)).Type) = string(local192)
11914 p := &(*(*(struct {
11915 BgColor color.NRGBA
11918 SunFogTint color.NRGBA
11919 MoonFogTint color.NRGBA
11922 //mt:if %s.Type == "skybox"
11925 //mt:if %s.Type == "regular"
11926 DaySky, DayHorizon,
11927 DawnSky, DawnHorizon,
11928 NightSky, NightHorizon,
11931 switch n := read8(r); n {
11937 chk(fmt.Errorf("invalid bool: %d", n))
11941 p := &(*(*(struct {
11942 BgColor color.NRGBA
11945 SunFogTint color.NRGBA
11946 MoonFogTint color.NRGBA
11949 //mt:if %s.Type == "skybox"
11952 //mt:if %s.Type == "regular"
11953 DaySky, DayHorizon,
11954 DawnSky, DawnHorizon,
11955 NightSky, NightHorizon,
11957 }))(obj)).SunFogTint
11958 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11961 p := &(*(*(struct {
11962 BgColor color.NRGBA
11965 SunFogTint color.NRGBA
11966 MoonFogTint color.NRGBA
11969 //mt:if %s.Type == "skybox"
11972 //mt:if %s.Type == "regular"
11973 DaySky, DayHorizon,
11974 DawnSky, DawnHorizon,
11975 NightSky, NightHorizon,
11977 }))(obj)).MoonFogTint
11978 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11980 var local194 []uint8
11981 var local195 uint16
11986 (local194) = make([]uint8, local195)
11988 _, err := io.ReadFull(r, (local194)[:])
11992 BgColor color.NRGBA
11995 SunFogTint color.NRGBA
11996 MoonFogTint color.NRGBA
11999 //mt:if %s.Type == "skybox"
12002 //mt:if %s.Type == "regular"
12003 DaySky, DayHorizon,
12004 DawnSky, DawnHorizon,
12005 NightSky, NightHorizon,
12007 }))(obj)).FogTintType) = string(local194)
12009 BgColor color.NRGBA
12012 SunFogTint color.NRGBA
12013 MoonFogTint color.NRGBA
12016 //mt:if %s.Type == "skybox"
12019 //mt:if %s.Type == "regular"
12020 DaySky, DayHorizon,
12021 DawnSky, DawnHorizon,
12022 NightSky, NightHorizon,
12024 }))(obj)).Type == "skybox" {
12025 var local196 uint16
12031 BgColor color.NRGBA
12034 SunFogTint color.NRGBA
12035 MoonFogTint color.NRGBA
12038 //mt:if %s.Type == "skybox"
12041 //mt:if %s.Type == "regular"
12042 DaySky, DayHorizon,
12043 DawnSky, DawnHorizon,
12044 NightSky, NightHorizon,
12046 }))(obj)).Textures) = make([]Texture, local196)
12047 for local197 := range (*(*(struct {
12048 BgColor color.NRGBA
12051 SunFogTint color.NRGBA
12052 MoonFogTint color.NRGBA
12055 //mt:if %s.Type == "skybox"
12058 //mt:if %s.Type == "regular"
12059 DaySky, DayHorizon,
12060 DawnSky, DawnHorizon,
12061 NightSky, NightHorizon,
12063 }))(obj)).Textures {
12064 if err := pcall(func() {
12066 BgColor color.NRGBA
12069 SunFogTint color.NRGBA
12070 MoonFogTint color.NRGBA
12073 //mt:if %s.Type == "skybox"
12076 //mt:if %s.Type == "regular"
12077 DaySky, DayHorizon,
12078 DawnSky, DawnHorizon,
12079 NightSky, NightHorizon,
12081 }))(obj)).Textures)[local197]).deserialize(r)
12086 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
12091 BgColor color.NRGBA
12094 SunFogTint color.NRGBA
12095 MoonFogTint color.NRGBA
12098 //mt:if %s.Type == "skybox"
12101 //mt:if %s.Type == "regular"
12102 DaySky, DayHorizon,
12103 DawnSky, DawnHorizon,
12104 NightSky, NightHorizon,
12106 }))(obj)).Type == "regular" {
12108 p := &(*(*(struct {
12109 BgColor color.NRGBA
12112 SunFogTint color.NRGBA
12113 MoonFogTint color.NRGBA
12116 //mt:if %s.Type == "skybox"
12119 //mt:if %s.Type == "regular"
12120 DaySky, DayHorizon,
12121 DawnSky, DawnHorizon,
12122 NightSky, NightHorizon,
12125 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12128 p := &(*(*(struct {
12129 BgColor color.NRGBA
12132 SunFogTint color.NRGBA
12133 MoonFogTint color.NRGBA
12136 //mt:if %s.Type == "skybox"
12139 //mt:if %s.Type == "regular"
12140 DaySky, DayHorizon,
12141 DawnSky, DawnHorizon,
12142 NightSky, NightHorizon,
12144 }))(obj)).DayHorizon
12145 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12148 p := &(*(*(struct {
12149 BgColor color.NRGBA
12152 SunFogTint color.NRGBA
12153 MoonFogTint color.NRGBA
12156 //mt:if %s.Type == "skybox"
12159 //mt:if %s.Type == "regular"
12160 DaySky, DayHorizon,
12161 DawnSky, DawnHorizon,
12162 NightSky, NightHorizon,
12165 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12168 p := &(*(*(struct {
12169 BgColor color.NRGBA
12172 SunFogTint color.NRGBA
12173 MoonFogTint color.NRGBA
12176 //mt:if %s.Type == "skybox"
12179 //mt:if %s.Type == "regular"
12180 DaySky, DayHorizon,
12181 DawnSky, DawnHorizon,
12182 NightSky, NightHorizon,
12184 }))(obj)).DawnHorizon
12185 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12188 p := &(*(*(struct {
12189 BgColor color.NRGBA
12192 SunFogTint color.NRGBA
12193 MoonFogTint color.NRGBA
12196 //mt:if %s.Type == "skybox"
12199 //mt:if %s.Type == "regular"
12200 DaySky, DayHorizon,
12201 DawnSky, DawnHorizon,
12202 NightSky, NightHorizon,
12205 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12208 p := &(*(*(struct {
12209 BgColor color.NRGBA
12212 SunFogTint color.NRGBA
12213 MoonFogTint color.NRGBA
12216 //mt:if %s.Type == "skybox"
12219 //mt:if %s.Type == "regular"
12220 DaySky, DayHorizon,
12221 DawnSky, DawnHorizon,
12222 NightSky, NightHorizon,
12224 }))(obj)).NightHorizon
12225 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12228 p := &(*(*(struct {
12229 BgColor color.NRGBA
12232 SunFogTint color.NRGBA
12233 MoonFogTint color.NRGBA
12236 //mt:if %s.Type == "skybox"
12239 //mt:if %s.Type == "regular"
12240 DaySky, DayHorizon,
12241 DawnSky, DawnHorizon,
12242 NightSky, NightHorizon,
12245 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12250 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
12267 write16(w, uint16(x))
12271 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
12273 p := &(*(*(struct {
12277 switch n := read8(r); n {
12283 chk(fmt.Errorf("invalid bool: %d", n))
12287 p := &(*(*(struct {
12295 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
12296 for local198 := range (*(*(struct {
12297 Idle, Walk, Dig, WalkDig [2]int32
12301 x := ((*(*(struct {
12302 Idle, Walk, Dig, WalkDig [2]int32
12304 }))(obj)).Idle)[local198]
12305 write32(w, uint32(x))
12308 for local199 := range (*(*(struct {
12309 Idle, Walk, Dig, WalkDig [2]int32
12313 x := ((*(*(struct {
12314 Idle, Walk, Dig, WalkDig [2]int32
12316 }))(obj)).Walk)[local199]
12317 write32(w, uint32(x))
12320 for local200 := range (*(*(struct {
12321 Idle, Walk, Dig, WalkDig [2]int32
12325 x := ((*(*(struct {
12326 Idle, Walk, Dig, WalkDig [2]int32
12328 }))(obj)).Dig)[local200]
12329 write32(w, uint32(x))
12332 for local201 := range (*(*(struct {
12333 Idle, Walk, Dig, WalkDig [2]int32
12335 }))(obj)).WalkDig {
12337 x := ((*(*(struct {
12338 Idle, Walk, Dig, WalkDig [2]int32
12340 }))(obj)).WalkDig)[local201]
12341 write32(w, uint32(x))
12346 Idle, Walk, Dig, WalkDig [2]int32
12349 write32(w, math.Float32bits(x))
12353 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
12354 for local202 := range (*(*(struct {
12355 Idle, Walk, Dig, WalkDig [2]int32
12359 p := &((*(*(struct {
12360 Idle, Walk, Dig, WalkDig [2]int32
12362 }))(obj)).Idle)[local202]
12363 *p = int32(read32(r))
12366 for local203 := range (*(*(struct {
12367 Idle, Walk, Dig, WalkDig [2]int32
12371 p := &((*(*(struct {
12372 Idle, Walk, Dig, WalkDig [2]int32
12374 }))(obj)).Walk)[local203]
12375 *p = int32(read32(r))
12378 for local204 := range (*(*(struct {
12379 Idle, Walk, Dig, WalkDig [2]int32
12383 p := &((*(*(struct {
12384 Idle, Walk, Dig, WalkDig [2]int32
12386 }))(obj)).Dig)[local204]
12387 *p = int32(read32(r))
12390 for local205 := range (*(*(struct {
12391 Idle, Walk, Dig, WalkDig [2]int32
12393 }))(obj)).WalkDig {
12395 p := &((*(*(struct {
12396 Idle, Walk, Dig, WalkDig [2]int32
12398 }))(obj)).WalkDig)[local205]
12399 *p = int32(read32(r))
12403 p := &(*(*(struct {
12404 Idle, Walk, Dig, WalkDig [2]int32
12407 *p = math.Float32frombits(read32(r))
12411 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12412 if err := pcall(func() {
12415 }))(obj)).First).serialize(w)
12420 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12422 if err := pcall(func() {
12425 }))(obj)).Third).serialize(w)
12430 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12434 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12435 if err := pcall(func() {
12438 }))(obj)).First).deserialize(r)
12443 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12445 if err := pcall(func() {
12448 }))(obj)).Third).deserialize(r)
12453 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12457 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12458 if err := pcall(func() {
12460 ID ParticleSpawnerID
12461 }))(obj)).ID).serialize(w)
12466 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12470 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12471 if err := pcall(func() {
12473 ID ParticleSpawnerID
12474 }))(obj)).ID).deserialize(r)
12479 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12483 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12487 DiffuseColor color.NRGBA
12488 AmbientColor color.NRGBA
12493 write32(w, math.Float32bits(x))
12498 DiffuseColor color.NRGBA
12499 AmbientColor color.NRGBA
12503 }))(obj)).DiffuseColor
12504 w.Write([]byte{x.A, x.R, x.G, x.B})
12509 DiffuseColor color.NRGBA
12510 AmbientColor color.NRGBA
12514 }))(obj)).AmbientColor
12515 w.Write([]byte{x.A, x.R, x.G, x.B})
12520 DiffuseColor color.NRGBA
12521 AmbientColor color.NRGBA
12526 write32(w, math.Float32bits(x))
12531 DiffuseColor color.NRGBA
12532 AmbientColor color.NRGBA
12536 }))(obj)).Thickness
12537 write32(w, math.Float32bits(x))
12539 for local206 := range (*(*(struct {
12541 DiffuseColor color.NRGBA
12542 AmbientColor color.NRGBA
12548 x := ((*(*(struct {
12550 DiffuseColor color.NRGBA
12551 AmbientColor color.NRGBA
12555 }))(obj)).Speed)[local206]
12556 write32(w, math.Float32bits(x))
12561 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12563 p := &(*(*(struct {
12565 DiffuseColor color.NRGBA
12566 AmbientColor color.NRGBA
12571 *p = math.Float32frombits(read32(r))
12574 p := &(*(*(struct {
12576 DiffuseColor color.NRGBA
12577 AmbientColor color.NRGBA
12581 }))(obj)).DiffuseColor
12582 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12585 p := &(*(*(struct {
12587 DiffuseColor color.NRGBA
12588 AmbientColor color.NRGBA
12592 }))(obj)).AmbientColor
12593 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12596 p := &(*(*(struct {
12598 DiffuseColor color.NRGBA
12599 AmbientColor color.NRGBA
12604 *p = math.Float32frombits(read32(r))
12607 p := &(*(*(struct {
12609 DiffuseColor color.NRGBA
12610 AmbientColor color.NRGBA
12614 }))(obj)).Thickness
12615 *p = math.Float32frombits(read32(r))
12617 for local207 := range (*(*(struct {
12619 DiffuseColor color.NRGBA
12620 AmbientColor color.NRGBA
12626 p := &((*(*(struct {
12628 DiffuseColor color.NRGBA
12629 AmbientColor color.NRGBA
12633 }))(obj)).Speed)[local207]
12634 *p = math.Float32frombits(read32(r))
12639 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12640 if err := pcall(func() {
12645 }))(obj)).ID).serialize(w)
12650 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12658 write32(w, math.Float32bits(x))
12666 write32(w, math.Float32bits(x))
12670 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12671 if err := pcall(func() {
12676 }))(obj)).ID).deserialize(r)
12681 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12684 p := &(*(*(struct {
12689 *p = math.Float32frombits(read32(r))
12692 p := &(*(*(struct {
12697 *p = math.Float32frombits(read32(r))
12701 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12702 if err := pcall(func() {
12704 Type PlayerListUpdateType
12706 }))(obj)).Type).serialize(w)
12711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12713 if len(((*(*(struct {
12714 Type PlayerListUpdateType
12716 }))(obj)).Players)) > math.MaxUint16 {
12720 x := uint16(len(((*(*(struct {
12721 Type PlayerListUpdateType
12723 }))(obj)).Players)))
12724 write16(w, uint16(x))
12726 for local208 := range (*(*(struct {
12727 Type PlayerListUpdateType
12729 }))(obj)).Players {
12730 if len(([]byte(((*(*(struct {
12731 Type PlayerListUpdateType
12733 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12737 x := uint16(len(([]byte(((*(*(struct {
12738 Type PlayerListUpdateType
12740 }))(obj)).Players)[local208]))))
12741 write16(w, uint16(x))
12744 _, err := w.Write(([]byte(((*(*(struct {
12745 Type PlayerListUpdateType
12747 }))(obj)).Players)[local208]))[:])
12753 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12754 if err := pcall(func() {
12756 Type PlayerListUpdateType
12758 }))(obj)).Type).deserialize(r)
12763 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12765 var local209 uint16
12771 Type PlayerListUpdateType
12773 }))(obj)).Players) = make([]string, local209)
12774 for local210 := range (*(*(struct {
12775 Type PlayerListUpdateType
12777 }))(obj)).Players {
12778 var local211 []uint8
12779 var local212 uint16
12784 (local211) = make([]uint8, local212)
12786 _, err := io.ReadFull(r, (local211)[:])
12790 Type PlayerListUpdateType
12792 }))(obj)).Players)[local210]) = string(local211)
12796 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12797 if len(([]byte((*(*(struct {
12801 }))(obj)).Channel))) > math.MaxUint16 {
12805 x := uint16(len(([]byte((*(*(struct {
12809 }))(obj)).Channel))))
12810 write16(w, uint16(x))
12813 _, err := w.Write(([]byte((*(*(struct {
12817 }))(obj)).Channel))[:])
12820 if len(([]byte((*(*(struct {
12824 }))(obj)).Sender))) > math.MaxUint16 {
12828 x := uint16(len(([]byte((*(*(struct {
12832 }))(obj)).Sender))))
12833 write16(w, uint16(x))
12836 _, err := w.Write(([]byte((*(*(struct {
12840 }))(obj)).Sender))[:])
12843 if len(([]byte((*(*(struct {
12847 }))(obj)).Msg))) > math.MaxUint16 {
12851 x := uint16(len(([]byte((*(*(struct {
12856 write16(w, uint16(x))
12859 _, err := w.Write(([]byte((*(*(struct {
12863 }))(obj)).Msg))[:])
12868 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12869 var local213 []uint8
12870 var local214 uint16
12875 (local213) = make([]uint8, local214)
12877 _, err := io.ReadFull(r, (local213)[:])
12884 }))(obj)).Channel) = string(local213)
12885 var local215 []uint8
12886 var local216 uint16
12891 (local215) = make([]uint8, local216)
12893 _, err := io.ReadFull(r, (local215)[:])
12900 }))(obj)).Sender) = string(local215)
12901 var local217 []uint8
12902 var local218 uint16
12907 (local217) = make([]uint8, local218)
12909 _, err := io.ReadFull(r, (local217)[:])
12916 }))(obj)).Msg) = string(local217)
12919 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12920 if err := pcall(func() {
12924 }))(obj)).Signal).serialize(w)
12929 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
12931 if len(([]byte((*(*(struct {
12934 }))(obj)).Channel))) > math.MaxUint16 {
12938 x := uint16(len(([]byte((*(*(struct {
12941 }))(obj)).Channel))))
12942 write16(w, uint16(x))
12945 _, err := w.Write(([]byte((*(*(struct {
12948 }))(obj)).Channel))[:])
12953 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12954 if err := pcall(func() {
12958 }))(obj)).Signal).deserialize(r)
12963 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
12965 var local219 []uint8
12966 var local220 uint16
12971 (local219) = make([]uint8, local220)
12973 _, err := io.ReadFull(r, (local219)[:])
12979 }))(obj)).Channel) = string(local219)
12982 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12985 w := new(bytes.Buffer)
12989 Changed map[[3]int16]*NodeMeta
12992 w := zlib.NewWriter(w)
12997 if len(x) > math.MaxUint16 {
13000 write16(w, uint16(len(x)))
13001 keys := make([][3]int16, 0, len(x))
13002 for key := range x {
13003 keys = append(keys, key)
13005 sort.Slice(keys, func(i, j int) bool {
13006 p, q := keys[i], keys[j]
13017 for _, key := range keys {
13018 for _, n := range key {
13019 write16(w, uint16(n))
13021 chk(serialize(w, x[key]))
13030 if len((buf.Bytes())) > math.MaxUint32 {
13034 x := uint32(len((buf.Bytes())))
13035 write32(w, uint32(x))
13038 _, err := w.Write((buf.Bytes())[:])
13045 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
13052 r := &io.LimitedReader{R: r, N: int64(n)}
13054 p := &(*(*(struct {
13056 Changed map[[3]int16]*NodeMeta
13059 r, err := zlib.NewReader(byteReader{r})
13061 switch ver := read8(r); ver {
13066 *p = make(map[[3]int16]*NodeMeta, n)
13069 for i := range pos {
13070 pos[i] = int16(read16(r))
13072 nm := new(NodeMeta)
13073 chk(deserialize(r, nm))
13077 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
13083 chk(fmt.Errorf("%d bytes of trailing data", r.N))
13088 func (obj *ToCltSunParams) serialize(w io.Writer) {
13104 if err := pcall(func() {
13112 }))(obj)).Texture).serialize(w)
13117 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13119 if err := pcall(func() {
13127 }))(obj)).ToneMap).serialize(w)
13132 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13134 if err := pcall(func() {
13142 }))(obj)).Rise).serialize(w)
13147 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13173 write32(w, math.Float32bits(x))
13177 func (obj *ToCltSunParams) deserialize(r io.Reader) {
13179 p := &(*(*(struct {
13187 switch n := read8(r); n {
13193 chk(fmt.Errorf("invalid bool: %d", n))
13196 if err := pcall(func() {
13204 }))(obj)).Texture).deserialize(r)
13209 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13211 if err := pcall(func() {
13219 }))(obj)).ToneMap).deserialize(r)
13224 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13226 if err := pcall(func() {
13234 }))(obj)).Rise).deserialize(r)
13239 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13242 p := &(*(*(struct {
13250 switch n := read8(r); n {
13256 chk(fmt.Errorf("invalid bool: %d", n))
13260 p := &(*(*(struct {
13268 *p = math.Float32frombits(read32(r))
13272 func (obj *ToCltMoonParams) serialize(w io.Writer) {
13286 if err := pcall(func() {
13292 }))(obj)).Texture).serialize(w)
13297 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13299 if err := pcall(func() {
13305 }))(obj)).ToneMap).serialize(w)
13310 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13319 write32(w, math.Float32bits(x))
13323 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
13325 p := &(*(*(struct {
13331 switch n := read8(r); n {
13337 chk(fmt.Errorf("invalid bool: %d", n))
13340 if err := pcall(func() {
13346 }))(obj)).Texture).deserialize(r)
13351 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13353 if err := pcall(func() {
13359 }))(obj)).ToneMap).deserialize(r)
13364 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13367 p := &(*(*(struct {
13373 *p = math.Float32frombits(read32(r))
13377 func (obj *ToCltStarParams) serialize(w io.Writer) {
13398 write32(w, uint32(x))
13407 w.Write([]byte{x.A, x.R, x.G, x.B})
13416 write32(w, math.Float32bits(x))
13420 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13422 p := &(*(*(struct {
13428 switch n := read8(r); n {
13434 chk(fmt.Errorf("invalid bool: %d", n))
13438 p := &(*(*(struct {
13447 p := &(*(*(struct {
13453 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13456 p := &(*(*(struct {
13462 *p = math.Float32frombits(read32(r))
13466 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13467 if len(((*(*(struct {
13469 }))(obj)).Salt)) > math.MaxUint16 {
13473 x := uint16(len(((*(*(struct {
13476 write16(w, uint16(x))
13479 _, err := w.Write(((*(*(struct {
13481 }))(obj)).Salt)[:])
13484 if len(((*(*(struct {
13486 }))(obj)).B)) > math.MaxUint16 {
13490 x := uint16(len(((*(*(struct {
13493 write16(w, uint16(x))
13496 _, err := w.Write(((*(*(struct {
13503 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13504 var local221 uint16
13511 }))(obj)).Salt) = make([]byte, local221)
13513 _, err := io.ReadFull(r, ((*(*(struct {
13515 }))(obj)).Salt)[:])
13518 var local222 uint16
13525 }))(obj)).B) = make([]byte, local222)
13527 _, err := io.ReadFull(r, ((*(*(struct {
13534 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13535 if len(([]byte((*(*(struct {
13537 }))(obj)).Prepend))) > math.MaxUint16 {
13541 x := uint16(len(([]byte((*(*(struct {
13543 }))(obj)).Prepend))))
13544 write16(w, uint16(x))
13547 _, err := w.Write(([]byte((*(*(struct {
13549 }))(obj)).Prepend))[:])
13554 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13555 var local223 []uint8
13556 var local224 uint16
13561 (local223) = make([]uint8, local224)
13563 _, err := io.ReadFull(r, (local223)[:])
13568 }))(obj)).Prepend) = string(local223)
13571 func (obj *AOCmdProps) serialize(w io.Writer) {
13572 if err := pcall(func() {
13575 }))(obj)).Props).serialize(w)
13580 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13584 func (obj *AOCmdProps) deserialize(r io.Reader) {
13585 if err := pcall(func() {
13588 }))(obj)).Props).deserialize(r)
13593 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13597 func (obj *AOCmdPos) serialize(w io.Writer) {
13598 if err := pcall(func() {
13601 }))(obj)).Pos).serialize(w)
13606 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13610 func (obj *AOCmdPos) deserialize(r io.Reader) {
13611 if err := pcall(func() {
13614 }))(obj)).Pos).deserialize(r)
13619 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13623 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13624 if err := pcall(func() {
13626 Mod Texture // suffix
13627 }))(obj)).Mod).serialize(w)
13632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13636 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13637 if err := pcall(func() {
13639 Mod Texture // suffix
13640 }))(obj)).Mod).deserialize(r)
13645 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13649 func (obj *AOCmdSprite) serialize(w io.Writer) {
13650 if err := pcall(func() {
13653 }))(obj)).Sprite).serialize(w)
13658 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13662 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13663 if err := pcall(func() {
13666 }))(obj)).Sprite).deserialize(r)
13671 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13675 func (obj *AOCmdHP) serialize(w io.Writer) {
13680 write16(w, uint16(x))
13684 func (obj *AOCmdHP) deserialize(r io.Reader) {
13686 p := &(*(*(struct {
13693 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13694 if len(((*(*(struct {
13696 }))(obj)).Armor)) > math.MaxUint16 {
13700 x := uint16(len(((*(*(struct {
13703 write16(w, uint16(x))
13705 for local225 := range (*(*(struct {
13708 if err := pcall(func() {
13711 }))(obj)).Armor)[local225]).serialize(w)
13716 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13721 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13722 var local226 uint16
13729 }))(obj)).Armor) = make([]Group, local226)
13730 for local227 := range (*(*(struct {
13733 if err := pcall(func() {
13736 }))(obj)).Armor)[local227]).deserialize(r)
13741 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13746 func (obj *AOCmdAnim) serialize(w io.Writer) {
13747 if err := pcall(func() {
13750 }))(obj)).Anim).serialize(w)
13755 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13759 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13760 if err := pcall(func() {
13763 }))(obj)).Anim).deserialize(r)
13768 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13772 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13773 if len(([]byte((*(*(struct {
13776 }))(obj)).Bone))) > math.MaxUint16 {
13780 x := uint16(len(([]byte((*(*(struct {
13784 write16(w, uint16(x))
13787 _, err := w.Write(([]byte((*(*(struct {
13790 }))(obj)).Bone))[:])
13793 if err := pcall(func() {
13797 }))(obj)).Pos).serialize(w)
13802 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13806 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13807 var local228 []uint8
13808 var local229 uint16
13813 (local228) = make([]uint8, local229)
13815 _, err := io.ReadFull(r, (local228)[:])
13821 }))(obj)).Bone) = string(local228)
13822 if err := pcall(func() {
13826 }))(obj)).Pos).deserialize(r)
13831 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13835 func (obj *AOCmdAttach) serialize(w io.Writer) {
13836 if err := pcall(func() {
13839 }))(obj)).Attach).serialize(w)
13844 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13848 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13849 if err := pcall(func() {
13852 }))(obj)).Attach).deserialize(r)
13857 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13861 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13862 if err := pcall(func() {
13864 Phys AOPhysOverride
13865 }))(obj)).Phys).serialize(w)
13870 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13874 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13875 if err := pcall(func() {
13877 Phys AOPhysOverride
13878 }))(obj)).Phys).deserialize(r)
13883 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13887 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13888 if err := pcall(func() {
13891 }))(obj)).ID).serialize(w)
13896 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13899 local230 := genericCAO
13900 if err := pcall(func() {
13901 (local230).serialize(w)
13906 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13911 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13912 if err := pcall(func() {
13915 }))(obj)).ID).deserialize(r)
13920 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13923 var local231 aoType
13924 local232 := genericCAO
13925 if err := pcall(func() {
13926 (local231).deserialize(r)
13931 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13933 if local231 != local232 {
13934 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13939 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13944 write32(w, math.Float32bits(x))
13948 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13950 p := &(*(*(struct {
13953 *p = math.Float32frombits(read32(r))
13957 func (obj *NodeMeta) serialize(w io.Writer) {
13958 if len(((*(*(struct {
13960 Fields []NodeMetaField
13963 }))(obj)).Fields)) > math.MaxUint32 {
13967 x := uint32(len(((*(*(struct {
13969 Fields []NodeMetaField
13972 }))(obj)).Fields)))
13973 write32(w, uint32(x))
13975 for local233 := range (*(*(struct {
13977 Fields []NodeMetaField
13981 if err := pcall(func() {
13984 Fields []NodeMetaField
13987 }))(obj)).Fields)[local233]).serialize(w)
13992 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
13997 Fields []NodeMetaField
14000 }))(obj)).Inv).Serialize(w))
14003 func (obj *NodeMeta) deserialize(r io.Reader) {
14004 var local234 uint32
14011 Fields []NodeMetaField
14014 }))(obj)).Fields) = make([]NodeMetaField, local234)
14015 for local235 := range (*(*(struct {
14017 Fields []NodeMetaField
14021 if err := pcall(func() {
14024 Fields []NodeMetaField
14027 }))(obj)).Fields)[local235]).deserialize(r)
14032 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
14037 Fields []NodeMetaField
14040 }))(obj)).Inv).Deserialize(r))
14043 func (obj *MinimapMode) serialize(w io.Writer) {
14044 if err := pcall(func() {
14051 }))(obj)).Type).serialize(w)
14056 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14058 if len(([]byte((*(*(struct {
14064 }))(obj)).Label))) > math.MaxUint16 {
14068 x := uint16(len(([]byte((*(*(struct {
14074 }))(obj)).Label))))
14075 write16(w, uint16(x))
14078 _, err := w.Write(([]byte((*(*(struct {
14084 }))(obj)).Label))[:])
14095 write16(w, uint16(x))
14097 if err := pcall(func() {
14104 }))(obj)).Texture).serialize(w)
14109 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14119 write16(w, uint16(x))
14123 func (obj *MinimapMode) deserialize(r io.Reader) {
14124 if err := pcall(func() {
14131 }))(obj)).Type).deserialize(r)
14136 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14138 var local236 []uint8
14139 var local237 uint16
14144 (local236) = make([]uint8, local237)
14146 _, err := io.ReadFull(r, (local236)[:])
14155 }))(obj)).Label) = string(local236)
14157 p := &(*(*(struct {
14166 if err := pcall(func() {
14173 }))(obj)).Texture).deserialize(r)
14178 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14181 p := &(*(*(struct {
14192 func (obj *NodeDef) serialize(w io.Writer) {
14193 if err := pcall(func() {
14206 //mt:const uint8(6)
14208 OverlayTiles [6]TileDef
14209 //mt:const uint8(6)
14210 SpecialTiles [6]TileDef
14217 ConnectTo []Content
14218 InsideTint color.NRGBA
14219 Level uint8 // Must be < 128.
14221 Translucent bool // Sunlight is scattered and becomes normal light.
14222 Transparent bool // Sunlight isn't scattered.
14235 LiquidType LiquidType
14238 Viscosity uint8 // 0-7
14244 DrawBox, ColBox, SelBox NodeBox
14246 FootstepSnd, DiggingSnd, DugSnd SoundDef
14257 MoveResistance uint8
14259 LiquidMovePhysics bool
14260 }))(obj)).Param0).serialize(w)
14265 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
14269 w := new(bytes.Buffer)
14271 local238 := uint8(13)
14274 write8(w, uint8(x))
14277 if len(([]byte((*(*(struct {
14289 //mt:const uint8(6)
14291 OverlayTiles [6]TileDef
14292 //mt:const uint8(6)
14293 SpecialTiles [6]TileDef
14300 ConnectTo []Content
14301 InsideTint color.NRGBA
14302 Level uint8 // Must be < 128.
14304 Translucent bool // Sunlight is scattered and becomes normal light.
14305 Transparent bool // Sunlight isn't scattered.
14318 LiquidType LiquidType
14321 Viscosity uint8 // 0-7
14327 DrawBox, ColBox, SelBox NodeBox
14329 FootstepSnd, DiggingSnd, DugSnd SoundDef
14340 MoveResistance uint8
14342 LiquidMovePhysics bool
14343 }))(obj)).Name))) > math.MaxUint16 {
14347 x := uint16(len(([]byte((*(*(struct {
14359 //mt:const uint8(6)
14361 OverlayTiles [6]TileDef
14362 //mt:const uint8(6)
14363 SpecialTiles [6]TileDef
14370 ConnectTo []Content
14371 InsideTint color.NRGBA
14372 Level uint8 // Must be < 128.
14374 Translucent bool // Sunlight is scattered and becomes normal light.
14375 Transparent bool // Sunlight isn't scattered.
14388 LiquidType LiquidType
14391 Viscosity uint8 // 0-7
14397 DrawBox, ColBox, SelBox NodeBox
14399 FootstepSnd, DiggingSnd, DugSnd SoundDef
14410 MoveResistance uint8
14412 LiquidMovePhysics bool
14414 write16(w, uint16(x))
14417 _, err := w.Write(([]byte((*(*(struct {
14429 //mt:const uint8(6)
14431 OverlayTiles [6]TileDef
14432 //mt:const uint8(6)
14433 SpecialTiles [6]TileDef
14440 ConnectTo []Content
14441 InsideTint color.NRGBA
14442 Level uint8 // Must be < 128.
14444 Translucent bool // Sunlight is scattered and becomes normal light.
14445 Transparent bool // Sunlight isn't scattered.
14458 LiquidType LiquidType
14461 Viscosity uint8 // 0-7
14467 DrawBox, ColBox, SelBox NodeBox
14469 FootstepSnd, DiggingSnd, DugSnd SoundDef
14480 MoveResistance uint8
14482 LiquidMovePhysics bool
14483 }))(obj)).Name))[:])
14486 if len(((*(*(struct {
14498 //mt:const uint8(6)
14500 OverlayTiles [6]TileDef
14501 //mt:const uint8(6)
14502 SpecialTiles [6]TileDef
14509 ConnectTo []Content
14510 InsideTint color.NRGBA
14511 Level uint8 // Must be < 128.
14513 Translucent bool // Sunlight is scattered and becomes normal light.
14514 Transparent bool // Sunlight isn't scattered.
14527 LiquidType LiquidType
14530 Viscosity uint8 // 0-7
14536 DrawBox, ColBox, SelBox NodeBox
14538 FootstepSnd, DiggingSnd, DugSnd SoundDef
14549 MoveResistance uint8
14551 LiquidMovePhysics bool
14552 }))(obj)).Groups)) > math.MaxUint16 {
14556 x := uint16(len(((*(*(struct {
14568 //mt:const uint8(6)
14570 OverlayTiles [6]TileDef
14571 //mt:const uint8(6)
14572 SpecialTiles [6]TileDef
14579 ConnectTo []Content
14580 InsideTint color.NRGBA
14581 Level uint8 // Must be < 128.
14583 Translucent bool // Sunlight is scattered and becomes normal light.
14584 Transparent bool // Sunlight isn't scattered.
14597 LiquidType LiquidType
14600 Viscosity uint8 // 0-7
14606 DrawBox, ColBox, SelBox NodeBox
14608 FootstepSnd, DiggingSnd, DugSnd SoundDef
14619 MoveResistance uint8
14621 LiquidMovePhysics bool
14622 }))(obj)).Groups)))
14623 write16(w, uint16(x))
14625 for local239 := range (*(*(struct {
14637 //mt:const uint8(6)
14639 OverlayTiles [6]TileDef
14640 //mt:const uint8(6)
14641 SpecialTiles [6]TileDef
14648 ConnectTo []Content
14649 InsideTint color.NRGBA
14650 Level uint8 // Must be < 128.
14652 Translucent bool // Sunlight is scattered and becomes normal light.
14653 Transparent bool // Sunlight isn't scattered.
14666 LiquidType LiquidType
14669 Viscosity uint8 // 0-7
14675 DrawBox, ColBox, SelBox NodeBox
14677 FootstepSnd, DiggingSnd, DugSnd SoundDef
14688 MoveResistance uint8
14690 LiquidMovePhysics bool
14692 if err := pcall(func() {
14705 //mt:const uint8(6)
14707 OverlayTiles [6]TileDef
14708 //mt:const uint8(6)
14709 SpecialTiles [6]TileDef
14716 ConnectTo []Content
14717 InsideTint color.NRGBA
14718 Level uint8 // Must be < 128.
14720 Translucent bool // Sunlight is scattered and becomes normal light.
14721 Transparent bool // Sunlight isn't scattered.
14734 LiquidType LiquidType
14737 Viscosity uint8 // 0-7
14743 DrawBox, ColBox, SelBox NodeBox
14745 FootstepSnd, DiggingSnd, DugSnd SoundDef
14756 MoveResistance uint8
14758 LiquidMovePhysics bool
14759 }))(obj)).Groups)[local239]).serialize(w)
14764 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
14767 if err := pcall(func() {
14780 //mt:const uint8(6)
14782 OverlayTiles [6]TileDef
14783 //mt:const uint8(6)
14784 SpecialTiles [6]TileDef
14791 ConnectTo []Content
14792 InsideTint color.NRGBA
14793 Level uint8 // Must be < 128.
14795 Translucent bool // Sunlight is scattered and becomes normal light.
14796 Transparent bool // Sunlight isn't scattered.
14809 LiquidType LiquidType
14812 Viscosity uint8 // 0-7
14818 DrawBox, ColBox, SelBox NodeBox
14820 FootstepSnd, DiggingSnd, DugSnd SoundDef
14831 MoveResistance uint8
14833 LiquidMovePhysics bool
14834 }))(obj)).P1Type).serialize(w)
14839 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
14841 if err := pcall(func() {
14854 //mt:const uint8(6)
14856 OverlayTiles [6]TileDef
14857 //mt:const uint8(6)
14858 SpecialTiles [6]TileDef
14865 ConnectTo []Content
14866 InsideTint color.NRGBA
14867 Level uint8 // Must be < 128.
14869 Translucent bool // Sunlight is scattered and becomes normal light.
14870 Transparent bool // Sunlight isn't scattered.
14883 LiquidType LiquidType
14886 Viscosity uint8 // 0-7
14892 DrawBox, ColBox, SelBox NodeBox
14894 FootstepSnd, DiggingSnd, DugSnd SoundDef
14905 MoveResistance uint8
14907 LiquidMovePhysics bool
14908 }))(obj)).P2Type).serialize(w)
14913 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
14915 if err := pcall(func() {
14928 //mt:const uint8(6)
14930 OverlayTiles [6]TileDef
14931 //mt:const uint8(6)
14932 SpecialTiles [6]TileDef
14939 ConnectTo []Content
14940 InsideTint color.NRGBA
14941 Level uint8 // Must be < 128.
14943 Translucent bool // Sunlight is scattered and becomes normal light.
14944 Transparent bool // Sunlight isn't scattered.
14957 LiquidType LiquidType
14960 Viscosity uint8 // 0-7
14966 DrawBox, ColBox, SelBox NodeBox
14968 FootstepSnd, DiggingSnd, DugSnd SoundDef
14979 MoveResistance uint8
14981 LiquidMovePhysics bool
14982 }))(obj)).DrawType).serialize(w)
14987 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
14989 if len(([]byte((*(*(struct {
15001 //mt:const uint8(6)
15003 OverlayTiles [6]TileDef
15004 //mt:const uint8(6)
15005 SpecialTiles [6]TileDef
15012 ConnectTo []Content
15013 InsideTint color.NRGBA
15014 Level uint8 // Must be < 128.
15016 Translucent bool // Sunlight is scattered and becomes normal light.
15017 Transparent bool // Sunlight isn't scattered.
15030 LiquidType LiquidType
15033 Viscosity uint8 // 0-7
15039 DrawBox, ColBox, SelBox NodeBox
15041 FootstepSnd, DiggingSnd, DugSnd SoundDef
15052 MoveResistance uint8
15054 LiquidMovePhysics bool
15055 }))(obj)).Mesh))) > math.MaxUint16 {
15059 x := uint16(len(([]byte((*(*(struct {
15071 //mt:const uint8(6)
15073 OverlayTiles [6]TileDef
15074 //mt:const uint8(6)
15075 SpecialTiles [6]TileDef
15082 ConnectTo []Content
15083 InsideTint color.NRGBA
15084 Level uint8 // Must be < 128.
15086 Translucent bool // Sunlight is scattered and becomes normal light.
15087 Transparent bool // Sunlight isn't scattered.
15100 LiquidType LiquidType
15103 Viscosity uint8 // 0-7
15109 DrawBox, ColBox, SelBox NodeBox
15111 FootstepSnd, DiggingSnd, DugSnd SoundDef
15122 MoveResistance uint8
15124 LiquidMovePhysics bool
15126 write16(w, uint16(x))
15129 _, err := w.Write(([]byte((*(*(struct {
15141 //mt:const uint8(6)
15143 OverlayTiles [6]TileDef
15144 //mt:const uint8(6)
15145 SpecialTiles [6]TileDef
15152 ConnectTo []Content
15153 InsideTint color.NRGBA
15154 Level uint8 // Must be < 128.
15156 Translucent bool // Sunlight is scattered and becomes normal light.
15157 Transparent bool // Sunlight isn't scattered.
15170 LiquidType LiquidType
15173 Viscosity uint8 // 0-7
15179 DrawBox, ColBox, SelBox NodeBox
15181 FootstepSnd, DiggingSnd, DugSnd SoundDef
15192 MoveResistance uint8
15194 LiquidMovePhysics bool
15195 }))(obj)).Mesh))[:])
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 MoveResistance uint8
15264 LiquidMovePhysics bool
15266 write32(w, math.Float32bits(x))
15269 local240 := uint8(6)
15272 write8(w, uint8(x))
15275 for local241 := range (*(*(struct {
15287 //mt:const uint8(6)
15289 OverlayTiles [6]TileDef
15290 //mt:const uint8(6)
15291 SpecialTiles [6]TileDef
15298 ConnectTo []Content
15299 InsideTint color.NRGBA
15300 Level uint8 // Must be < 128.
15302 Translucent bool // Sunlight is scattered and becomes normal light.
15303 Transparent bool // Sunlight isn't scattered.
15316 LiquidType LiquidType
15319 Viscosity uint8 // 0-7
15325 DrawBox, ColBox, SelBox NodeBox
15327 FootstepSnd, DiggingSnd, DugSnd SoundDef
15338 MoveResistance uint8
15340 LiquidMovePhysics bool
15342 if err := pcall(func() {
15355 //mt:const uint8(6)
15357 OverlayTiles [6]TileDef
15358 //mt:const uint8(6)
15359 SpecialTiles [6]TileDef
15366 ConnectTo []Content
15367 InsideTint color.NRGBA
15368 Level uint8 // Must be < 128.
15370 Translucent bool // Sunlight is scattered and becomes normal light.
15371 Transparent bool // Sunlight isn't scattered.
15384 LiquidType LiquidType
15387 Viscosity uint8 // 0-7
15393 DrawBox, ColBox, SelBox NodeBox
15395 FootstepSnd, DiggingSnd, DugSnd SoundDef
15406 MoveResistance uint8
15408 LiquidMovePhysics bool
15409 }))(obj)).Tiles)[local241]).serialize(w)
15414 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15417 for local242 := range (*(*(struct {
15429 //mt:const uint8(6)
15431 OverlayTiles [6]TileDef
15432 //mt:const uint8(6)
15433 SpecialTiles [6]TileDef
15440 ConnectTo []Content
15441 InsideTint color.NRGBA
15442 Level uint8 // Must be < 128.
15444 Translucent bool // Sunlight is scattered and becomes normal light.
15445 Transparent bool // Sunlight isn't scattered.
15458 LiquidType LiquidType
15461 Viscosity uint8 // 0-7
15467 DrawBox, ColBox, SelBox NodeBox
15469 FootstepSnd, DiggingSnd, DugSnd SoundDef
15480 MoveResistance uint8
15482 LiquidMovePhysics bool
15483 }))(obj)).OverlayTiles {
15484 if err := pcall(func() {
15497 //mt:const uint8(6)
15499 OverlayTiles [6]TileDef
15500 //mt:const uint8(6)
15501 SpecialTiles [6]TileDef
15508 ConnectTo []Content
15509 InsideTint color.NRGBA
15510 Level uint8 // Must be < 128.
15512 Translucent bool // Sunlight is scattered and becomes normal light.
15513 Transparent bool // Sunlight isn't scattered.
15526 LiquidType LiquidType
15529 Viscosity uint8 // 0-7
15535 DrawBox, ColBox, SelBox NodeBox
15537 FootstepSnd, DiggingSnd, DugSnd SoundDef
15548 MoveResistance uint8
15550 LiquidMovePhysics bool
15551 }))(obj)).OverlayTiles)[local242]).serialize(w)
15556 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15560 local243 := uint8(6)
15563 write8(w, uint8(x))
15566 for local244 := range (*(*(struct {
15578 //mt:const uint8(6)
15580 OverlayTiles [6]TileDef
15581 //mt:const uint8(6)
15582 SpecialTiles [6]TileDef
15589 ConnectTo []Content
15590 InsideTint color.NRGBA
15591 Level uint8 // Must be < 128.
15593 Translucent bool // Sunlight is scattered and becomes normal light.
15594 Transparent bool // Sunlight isn't scattered.
15607 LiquidType LiquidType
15610 Viscosity uint8 // 0-7
15616 DrawBox, ColBox, SelBox NodeBox
15618 FootstepSnd, DiggingSnd, DugSnd SoundDef
15629 MoveResistance uint8
15631 LiquidMovePhysics bool
15632 }))(obj)).SpecialTiles {
15633 if err := pcall(func() {
15646 //mt:const uint8(6)
15648 OverlayTiles [6]TileDef
15649 //mt:const uint8(6)
15650 SpecialTiles [6]TileDef
15657 ConnectTo []Content
15658 InsideTint color.NRGBA
15659 Level uint8 // Must be < 128.
15661 Translucent bool // Sunlight is scattered and becomes normal light.
15662 Transparent bool // Sunlight isn't scattered.
15675 LiquidType LiquidType
15678 Viscosity uint8 // 0-7
15684 DrawBox, ColBox, SelBox NodeBox
15686 FootstepSnd, DiggingSnd, DugSnd SoundDef
15697 MoveResistance uint8
15699 LiquidMovePhysics bool
15700 }))(obj)).SpecialTiles)[local244]).serialize(w)
15705 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15721 //mt:const uint8(6)
15723 OverlayTiles [6]TileDef
15724 //mt:const uint8(6)
15725 SpecialTiles [6]TileDef
15732 ConnectTo []Content
15733 InsideTint color.NRGBA
15734 Level uint8 // Must be < 128.
15736 Translucent bool // Sunlight is scattered and becomes normal light.
15737 Transparent bool // Sunlight isn't scattered.
15750 LiquidType LiquidType
15753 Viscosity uint8 // 0-7
15759 DrawBox, ColBox, SelBox NodeBox
15761 FootstepSnd, DiggingSnd, DugSnd SoundDef
15772 MoveResistance uint8
15774 LiquidMovePhysics bool
15776 w.Write([]byte{x.A, x.R, x.G, x.B})
15778 if err := pcall(func() {
15791 //mt:const uint8(6)
15793 OverlayTiles [6]TileDef
15794 //mt:const uint8(6)
15795 SpecialTiles [6]TileDef
15802 ConnectTo []Content
15803 InsideTint color.NRGBA
15804 Level uint8 // Must be < 128.
15806 Translucent bool // Sunlight is scattered and becomes normal light.
15807 Transparent bool // Sunlight isn't scattered.
15820 LiquidType LiquidType
15823 Viscosity uint8 // 0-7
15829 DrawBox, ColBox, SelBox NodeBox
15831 FootstepSnd, DiggingSnd, DugSnd SoundDef
15842 MoveResistance uint8
15844 LiquidMovePhysics bool
15845 }))(obj)).Palette).serialize(w)
15850 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
15852 if err := pcall(func() {
15865 //mt:const uint8(6)
15867 OverlayTiles [6]TileDef
15868 //mt:const uint8(6)
15869 SpecialTiles [6]TileDef
15876 ConnectTo []Content
15877 InsideTint color.NRGBA
15878 Level uint8 // Must be < 128.
15880 Translucent bool // Sunlight is scattered and becomes normal light.
15881 Transparent bool // Sunlight isn't scattered.
15894 LiquidType LiquidType
15897 Viscosity uint8 // 0-7
15903 DrawBox, ColBox, SelBox NodeBox
15905 FootstepSnd, DiggingSnd, DugSnd SoundDef
15916 MoveResistance uint8
15918 LiquidMovePhysics bool
15919 }))(obj)).Waving).serialize(w)
15924 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
15939 //mt:const uint8(6)
15941 OverlayTiles [6]TileDef
15942 //mt:const uint8(6)
15943 SpecialTiles [6]TileDef
15950 ConnectTo []Content
15951 InsideTint color.NRGBA
15952 Level uint8 // Must be < 128.
15954 Translucent bool // Sunlight is scattered and becomes normal light.
15955 Transparent bool // Sunlight isn't scattered.
15968 LiquidType LiquidType
15971 Viscosity uint8 // 0-7
15977 DrawBox, ColBox, SelBox NodeBox
15979 FootstepSnd, DiggingSnd, DugSnd SoundDef
15990 MoveResistance uint8
15992 LiquidMovePhysics bool
15993 }))(obj)).ConnectSides
15994 write8(w, uint8(x))
15996 if len(((*(*(struct {
16008 //mt:const uint8(6)
16010 OverlayTiles [6]TileDef
16011 //mt:const uint8(6)
16012 SpecialTiles [6]TileDef
16019 ConnectTo []Content
16020 InsideTint color.NRGBA
16021 Level uint8 // Must be < 128.
16023 Translucent bool // Sunlight is scattered and becomes normal light.
16024 Transparent bool // Sunlight isn't scattered.
16037 LiquidType LiquidType
16040 Viscosity uint8 // 0-7
16046 DrawBox, ColBox, SelBox NodeBox
16048 FootstepSnd, DiggingSnd, DugSnd SoundDef
16059 MoveResistance uint8
16061 LiquidMovePhysics bool
16062 }))(obj)).ConnectTo)) > math.MaxUint16 {
16066 x := uint16(len(((*(*(struct {
16078 //mt:const uint8(6)
16080 OverlayTiles [6]TileDef
16081 //mt:const uint8(6)
16082 SpecialTiles [6]TileDef
16089 ConnectTo []Content
16090 InsideTint color.NRGBA
16091 Level uint8 // Must be < 128.
16093 Translucent bool // Sunlight is scattered and becomes normal light.
16094 Transparent bool // Sunlight isn't scattered.
16107 LiquidType LiquidType
16110 Viscosity uint8 // 0-7
16116 DrawBox, ColBox, SelBox NodeBox
16118 FootstepSnd, DiggingSnd, DugSnd SoundDef
16129 MoveResistance uint8
16131 LiquidMovePhysics bool
16132 }))(obj)).ConnectTo)))
16133 write16(w, uint16(x))
16135 for local245 := range (*(*(struct {
16147 //mt:const uint8(6)
16149 OverlayTiles [6]TileDef
16150 //mt:const uint8(6)
16151 SpecialTiles [6]TileDef
16158 ConnectTo []Content
16159 InsideTint color.NRGBA
16160 Level uint8 // Must be < 128.
16162 Translucent bool // Sunlight is scattered and becomes normal light.
16163 Transparent bool // Sunlight isn't scattered.
16176 LiquidType LiquidType
16179 Viscosity uint8 // 0-7
16185 DrawBox, ColBox, SelBox NodeBox
16187 FootstepSnd, DiggingSnd, DugSnd SoundDef
16198 MoveResistance uint8
16200 LiquidMovePhysics bool
16201 }))(obj)).ConnectTo {
16202 if err := pcall(func() {
16215 //mt:const uint8(6)
16217 OverlayTiles [6]TileDef
16218 //mt:const uint8(6)
16219 SpecialTiles [6]TileDef
16226 ConnectTo []Content
16227 InsideTint color.NRGBA
16228 Level uint8 // Must be < 128.
16230 Translucent bool // Sunlight is scattered and becomes normal light.
16231 Transparent bool // Sunlight isn't scattered.
16244 LiquidType LiquidType
16247 Viscosity uint8 // 0-7
16253 DrawBox, ColBox, SelBox NodeBox
16255 FootstepSnd, DiggingSnd, DugSnd SoundDef
16266 MoveResistance uint8
16268 LiquidMovePhysics bool
16269 }))(obj)).ConnectTo)[local245]).serialize(w)
16274 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
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
16341 MoveResistance uint8
16343 LiquidMovePhysics bool
16344 }))(obj)).InsideTint
16345 w.Write([]byte{x.A, x.R, x.G, x.B})
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
16411 MoveResistance uint8
16413 LiquidMovePhysics bool
16415 write8(w, uint8(x))
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 MoveResistance uint8
16483 LiquidMovePhysics bool
16484 }))(obj)).Translucent
16504 //mt:const uint8(6)
16506 OverlayTiles [6]TileDef
16507 //mt:const uint8(6)
16508 SpecialTiles [6]TileDef
16515 ConnectTo []Content
16516 InsideTint color.NRGBA
16517 Level uint8 // Must be < 128.
16519 Translucent bool // Sunlight is scattered and becomes normal light.
16520 Transparent bool // Sunlight isn't scattered.
16533 LiquidType LiquidType
16536 Viscosity uint8 // 0-7
16542 DrawBox, ColBox, SelBox NodeBox
16544 FootstepSnd, DiggingSnd, DugSnd SoundDef
16555 MoveResistance uint8
16557 LiquidMovePhysics bool
16558 }))(obj)).Transparent
16578 //mt:const uint8(6)
16580 OverlayTiles [6]TileDef
16581 //mt:const uint8(6)
16582 SpecialTiles [6]TileDef
16589 ConnectTo []Content
16590 InsideTint color.NRGBA
16591 Level uint8 // Must be < 128.
16593 Translucent bool // Sunlight is scattered and becomes normal light.
16594 Transparent bool // Sunlight isn't scattered.
16607 LiquidType LiquidType
16610 Viscosity uint8 // 0-7
16616 DrawBox, ColBox, SelBox NodeBox
16618 FootstepSnd, DiggingSnd, DugSnd SoundDef
16629 MoveResistance uint8
16631 LiquidMovePhysics bool
16633 write8(w, uint8(x))
16648 //mt:const uint8(6)
16650 OverlayTiles [6]TileDef
16651 //mt:const uint8(6)
16652 SpecialTiles [6]TileDef
16659 ConnectTo []Content
16660 InsideTint color.NRGBA
16661 Level uint8 // Must be < 128.
16663 Translucent bool // Sunlight is scattered and becomes normal light.
16664 Transparent bool // Sunlight isn't scattered.
16677 LiquidType LiquidType
16680 Viscosity uint8 // 0-7
16686 DrawBox, ColBox, SelBox NodeBox
16688 FootstepSnd, DiggingSnd, DugSnd SoundDef
16699 MoveResistance uint8
16701 LiquidMovePhysics bool
16702 }))(obj)).GndContent
16722 //mt:const uint8(6)
16724 OverlayTiles [6]TileDef
16725 //mt:const uint8(6)
16726 SpecialTiles [6]TileDef
16733 ConnectTo []Content
16734 InsideTint color.NRGBA
16735 Level uint8 // Must be < 128.
16737 Translucent bool // Sunlight is scattered and becomes normal light.
16738 Transparent bool // Sunlight isn't scattered.
16751 LiquidType LiquidType
16754 Viscosity uint8 // 0-7
16760 DrawBox, ColBox, SelBox NodeBox
16762 FootstepSnd, DiggingSnd, DugSnd SoundDef
16773 MoveResistance uint8
16775 LiquidMovePhysics bool
16796 //mt:const uint8(6)
16798 OverlayTiles [6]TileDef
16799 //mt:const uint8(6)
16800 SpecialTiles [6]TileDef
16807 ConnectTo []Content
16808 InsideTint color.NRGBA
16809 Level uint8 // Must be < 128.
16811 Translucent bool // Sunlight is scattered and becomes normal light.
16812 Transparent bool // Sunlight isn't scattered.
16825 LiquidType LiquidType
16828 Viscosity uint8 // 0-7
16834 DrawBox, ColBox, SelBox NodeBox
16836 FootstepSnd, DiggingSnd, DugSnd SoundDef
16847 MoveResistance uint8
16849 LiquidMovePhysics bool
16850 }))(obj)).Pointable
16870 //mt:const uint8(6)
16872 OverlayTiles [6]TileDef
16873 //mt:const uint8(6)
16874 SpecialTiles [6]TileDef
16881 ConnectTo []Content
16882 InsideTint color.NRGBA
16883 Level uint8 // Must be < 128.
16885 Translucent bool // Sunlight is scattered and becomes normal light.
16886 Transparent bool // Sunlight isn't scattered.
16899 LiquidType LiquidType
16902 Viscosity uint8 // 0-7
16908 DrawBox, ColBox, SelBox NodeBox
16910 FootstepSnd, DiggingSnd, DugSnd SoundDef
16921 MoveResistance uint8
16923 LiquidMovePhysics bool
16944 //mt:const uint8(6)
16946 OverlayTiles [6]TileDef
16947 //mt:const uint8(6)
16948 SpecialTiles [6]TileDef
16955 ConnectTo []Content
16956 InsideTint color.NRGBA
16957 Level uint8 // Must be < 128.
16959 Translucent bool // Sunlight is scattered and becomes normal light.
16960 Transparent bool // Sunlight isn't scattered.
16973 LiquidType LiquidType
16976 Viscosity uint8 // 0-7
16982 DrawBox, ColBox, SelBox NodeBox
16984 FootstepSnd, DiggingSnd, DugSnd SoundDef
16995 MoveResistance uint8
16997 LiquidMovePhysics bool
16998 }))(obj)).Climbable
17018 //mt:const uint8(6)
17020 OverlayTiles [6]TileDef
17021 //mt:const uint8(6)
17022 SpecialTiles [6]TileDef
17029 ConnectTo []Content
17030 InsideTint color.NRGBA
17031 Level uint8 // Must be < 128.
17033 Translucent bool // Sunlight is scattered and becomes normal light.
17034 Transparent bool // Sunlight isn't scattered.
17047 LiquidType LiquidType
17050 Viscosity uint8 // 0-7
17056 DrawBox, ColBox, SelBox NodeBox
17058 FootstepSnd, DiggingSnd, DugSnd SoundDef
17069 MoveResistance uint8
17071 LiquidMovePhysics bool
17072 }))(obj)).Replaceable
17092 //mt:const uint8(6)
17094 OverlayTiles [6]TileDef
17095 //mt:const uint8(6)
17096 SpecialTiles [6]TileDef
17103 ConnectTo []Content
17104 InsideTint color.NRGBA
17105 Level uint8 // Must be < 128.
17107 Translucent bool // Sunlight is scattered and becomes normal light.
17108 Transparent bool // Sunlight isn't scattered.
17121 LiquidType LiquidType
17124 Viscosity uint8 // 0-7
17130 DrawBox, ColBox, SelBox NodeBox
17132 FootstepSnd, DiggingSnd, DugSnd SoundDef
17143 MoveResistance uint8
17145 LiquidMovePhysics bool
17146 }))(obj)).OnRightClick
17166 //mt:const uint8(6)
17168 OverlayTiles [6]TileDef
17169 //mt:const uint8(6)
17170 SpecialTiles [6]TileDef
17177 ConnectTo []Content
17178 InsideTint color.NRGBA
17179 Level uint8 // Must be < 128.
17181 Translucent bool // Sunlight is scattered and becomes normal light.
17182 Transparent bool // Sunlight isn't scattered.
17195 LiquidType LiquidType
17198 Viscosity uint8 // 0-7
17204 DrawBox, ColBox, SelBox NodeBox
17206 FootstepSnd, DiggingSnd, DugSnd SoundDef
17217 MoveResistance uint8
17219 LiquidMovePhysics bool
17220 }))(obj)).DmgPerSec
17221 write32(w, uint32(x))
17223 if err := pcall(func() {
17236 //mt:const uint8(6)
17238 OverlayTiles [6]TileDef
17239 //mt:const uint8(6)
17240 SpecialTiles [6]TileDef
17247 ConnectTo []Content
17248 InsideTint color.NRGBA
17249 Level uint8 // Must be < 128.
17251 Translucent bool // Sunlight is scattered and becomes normal light.
17252 Transparent bool // Sunlight isn't scattered.
17265 LiquidType LiquidType
17268 Viscosity uint8 // 0-7
17274 DrawBox, ColBox, SelBox NodeBox
17276 FootstepSnd, DiggingSnd, DugSnd SoundDef
17287 MoveResistance uint8
17289 LiquidMovePhysics bool
17290 }))(obj)).LiquidType).serialize(w)
17295 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
17297 if len(([]byte((*(*(struct {
17309 //mt:const uint8(6)
17311 OverlayTiles [6]TileDef
17312 //mt:const uint8(6)
17313 SpecialTiles [6]TileDef
17320 ConnectTo []Content
17321 InsideTint color.NRGBA
17322 Level uint8 // Must be < 128.
17324 Translucent bool // Sunlight is scattered and becomes normal light.
17325 Transparent bool // Sunlight isn't scattered.
17338 LiquidType LiquidType
17341 Viscosity uint8 // 0-7
17347 DrawBox, ColBox, SelBox NodeBox
17349 FootstepSnd, DiggingSnd, DugSnd SoundDef
17360 MoveResistance uint8
17362 LiquidMovePhysics bool
17363 }))(obj)).FlowingAlt))) > math.MaxUint16 {
17367 x := uint16(len(([]byte((*(*(struct {
17379 //mt:const uint8(6)
17381 OverlayTiles [6]TileDef
17382 //mt:const uint8(6)
17383 SpecialTiles [6]TileDef
17390 ConnectTo []Content
17391 InsideTint color.NRGBA
17392 Level uint8 // Must be < 128.
17394 Translucent bool // Sunlight is scattered and becomes normal light.
17395 Transparent bool // Sunlight isn't scattered.
17408 LiquidType LiquidType
17411 Viscosity uint8 // 0-7
17417 DrawBox, ColBox, SelBox NodeBox
17419 FootstepSnd, DiggingSnd, DugSnd SoundDef
17430 MoveResistance uint8
17432 LiquidMovePhysics bool
17433 }))(obj)).FlowingAlt))))
17434 write16(w, uint16(x))
17437 _, err := w.Write(([]byte((*(*(struct {
17449 //mt:const uint8(6)
17451 OverlayTiles [6]TileDef
17452 //mt:const uint8(6)
17453 SpecialTiles [6]TileDef
17460 ConnectTo []Content
17461 InsideTint color.NRGBA
17462 Level uint8 // Must be < 128.
17464 Translucent bool // Sunlight is scattered and becomes normal light.
17465 Transparent bool // Sunlight isn't scattered.
17478 LiquidType LiquidType
17481 Viscosity uint8 // 0-7
17487 DrawBox, ColBox, SelBox NodeBox
17489 FootstepSnd, DiggingSnd, DugSnd SoundDef
17500 MoveResistance uint8
17502 LiquidMovePhysics bool
17503 }))(obj)).FlowingAlt))[:])
17506 if len(([]byte((*(*(struct {
17518 //mt:const uint8(6)
17520 OverlayTiles [6]TileDef
17521 //mt:const uint8(6)
17522 SpecialTiles [6]TileDef
17529 ConnectTo []Content
17530 InsideTint color.NRGBA
17531 Level uint8 // Must be < 128.
17533 Translucent bool // Sunlight is scattered and becomes normal light.
17534 Transparent bool // Sunlight isn't scattered.
17547 LiquidType LiquidType
17550 Viscosity uint8 // 0-7
17556 DrawBox, ColBox, SelBox NodeBox
17558 FootstepSnd, DiggingSnd, DugSnd SoundDef
17569 MoveResistance uint8
17571 LiquidMovePhysics bool
17572 }))(obj)).SrcAlt))) > math.MaxUint16 {
17576 x := uint16(len(([]byte((*(*(struct {
17588 //mt:const uint8(6)
17590 OverlayTiles [6]TileDef
17591 //mt:const uint8(6)
17592 SpecialTiles [6]TileDef
17599 ConnectTo []Content
17600 InsideTint color.NRGBA
17601 Level uint8 // Must be < 128.
17603 Translucent bool // Sunlight is scattered and becomes normal light.
17604 Transparent bool // Sunlight isn't scattered.
17617 LiquidType LiquidType
17620 Viscosity uint8 // 0-7
17626 DrawBox, ColBox, SelBox NodeBox
17628 FootstepSnd, DiggingSnd, DugSnd SoundDef
17639 MoveResistance uint8
17641 LiquidMovePhysics bool
17642 }))(obj)).SrcAlt))))
17643 write16(w, uint16(x))
17646 _, err := w.Write(([]byte((*(*(struct {
17658 //mt:const uint8(6)
17660 OverlayTiles [6]TileDef
17661 //mt:const uint8(6)
17662 SpecialTiles [6]TileDef
17669 ConnectTo []Content
17670 InsideTint color.NRGBA
17671 Level uint8 // Must be < 128.
17673 Translucent bool // Sunlight is scattered and becomes normal light.
17674 Transparent bool // Sunlight isn't scattered.
17687 LiquidType LiquidType
17690 Viscosity uint8 // 0-7
17696 DrawBox, ColBox, SelBox NodeBox
17698 FootstepSnd, DiggingSnd, DugSnd SoundDef
17709 MoveResistance uint8
17711 LiquidMovePhysics bool
17712 }))(obj)).SrcAlt))[:])
17728 //mt:const uint8(6)
17730 OverlayTiles [6]TileDef
17731 //mt:const uint8(6)
17732 SpecialTiles [6]TileDef
17739 ConnectTo []Content
17740 InsideTint color.NRGBA
17741 Level uint8 // Must be < 128.
17743 Translucent bool // Sunlight is scattered and becomes normal light.
17744 Transparent bool // Sunlight isn't scattered.
17757 LiquidType LiquidType
17760 Viscosity uint8 // 0-7
17766 DrawBox, ColBox, SelBox NodeBox
17768 FootstepSnd, DiggingSnd, DugSnd SoundDef
17779 MoveResistance uint8
17781 LiquidMovePhysics bool
17782 }))(obj)).Viscosity
17783 write8(w, uint8(x))
17798 //mt:const uint8(6)
17800 OverlayTiles [6]TileDef
17801 //mt:const uint8(6)
17802 SpecialTiles [6]TileDef
17809 ConnectTo []Content
17810 InsideTint color.NRGBA
17811 Level uint8 // Must be < 128.
17813 Translucent bool // Sunlight is scattered and becomes normal light.
17814 Transparent bool // Sunlight isn't scattered.
17827 LiquidType LiquidType
17830 Viscosity uint8 // 0-7
17836 DrawBox, ColBox, SelBox NodeBox
17838 FootstepSnd, DiggingSnd, DugSnd SoundDef
17849 MoveResistance uint8
17851 LiquidMovePhysics bool
17852 }))(obj)).LiqRenewable
17872 //mt:const uint8(6)
17874 OverlayTiles [6]TileDef
17875 //mt:const uint8(6)
17876 SpecialTiles [6]TileDef
17883 ConnectTo []Content
17884 InsideTint color.NRGBA
17885 Level uint8 // Must be < 128.
17887 Translucent bool // Sunlight is scattered and becomes normal light.
17888 Transparent bool // Sunlight isn't scattered.
17901 LiquidType LiquidType
17904 Viscosity uint8 // 0-7
17910 DrawBox, ColBox, SelBox NodeBox
17912 FootstepSnd, DiggingSnd, DugSnd SoundDef
17923 MoveResistance uint8
17925 LiquidMovePhysics bool
17926 }))(obj)).FlowRange
17927 write8(w, uint8(x))
17942 //mt:const uint8(6)
17944 OverlayTiles [6]TileDef
17945 //mt:const uint8(6)
17946 SpecialTiles [6]TileDef
17953 ConnectTo []Content
17954 InsideTint color.NRGBA
17955 Level uint8 // Must be < 128.
17957 Translucent bool // Sunlight is scattered and becomes normal light.
17958 Transparent bool // Sunlight isn't scattered.
17971 LiquidType LiquidType
17974 Viscosity uint8 // 0-7
17980 DrawBox, ColBox, SelBox NodeBox
17982 FootstepSnd, DiggingSnd, DugSnd SoundDef
17993 MoveResistance uint8
17995 LiquidMovePhysics bool
17997 write8(w, uint8(x))
18012 //mt:const uint8(6)
18014 OverlayTiles [6]TileDef
18015 //mt:const uint8(6)
18016 SpecialTiles [6]TileDef
18023 ConnectTo []Content
18024 InsideTint color.NRGBA
18025 Level uint8 // Must be < 128.
18027 Translucent bool // Sunlight is scattered and becomes normal light.
18028 Transparent bool // Sunlight isn't scattered.
18041 LiquidType LiquidType
18044 Viscosity uint8 // 0-7
18050 DrawBox, ColBox, SelBox NodeBox
18052 FootstepSnd, DiggingSnd, DugSnd SoundDef
18063 MoveResistance uint8
18065 LiquidMovePhysics bool
18066 }))(obj)).Floodable
18073 if err := pcall(func() {
18086 //mt:const uint8(6)
18088 OverlayTiles [6]TileDef
18089 //mt:const uint8(6)
18090 SpecialTiles [6]TileDef
18097 ConnectTo []Content
18098 InsideTint color.NRGBA
18099 Level uint8 // Must be < 128.
18101 Translucent bool // Sunlight is scattered and becomes normal light.
18102 Transparent bool // Sunlight isn't scattered.
18115 LiquidType LiquidType
18118 Viscosity uint8 // 0-7
18124 DrawBox, ColBox, SelBox NodeBox
18126 FootstepSnd, DiggingSnd, DugSnd SoundDef
18137 MoveResistance uint8
18139 LiquidMovePhysics bool
18140 }))(obj)).DrawBox).serialize(w)
18145 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18147 if err := pcall(func() {
18160 //mt:const uint8(6)
18162 OverlayTiles [6]TileDef
18163 //mt:const uint8(6)
18164 SpecialTiles [6]TileDef
18171 ConnectTo []Content
18172 InsideTint color.NRGBA
18173 Level uint8 // Must be < 128.
18175 Translucent bool // Sunlight is scattered and becomes normal light.
18176 Transparent bool // Sunlight isn't scattered.
18189 LiquidType LiquidType
18192 Viscosity uint8 // 0-7
18198 DrawBox, ColBox, SelBox NodeBox
18200 FootstepSnd, DiggingSnd, DugSnd SoundDef
18211 MoveResistance uint8
18213 LiquidMovePhysics bool
18214 }))(obj)).ColBox).serialize(w)
18219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18221 if err := pcall(func() {
18234 //mt:const uint8(6)
18236 OverlayTiles [6]TileDef
18237 //mt:const uint8(6)
18238 SpecialTiles [6]TileDef
18245 ConnectTo []Content
18246 InsideTint color.NRGBA
18247 Level uint8 // Must be < 128.
18249 Translucent bool // Sunlight is scattered and becomes normal light.
18250 Transparent bool // Sunlight isn't scattered.
18263 LiquidType LiquidType
18266 Viscosity uint8 // 0-7
18272 DrawBox, ColBox, SelBox NodeBox
18274 FootstepSnd, DiggingSnd, DugSnd SoundDef
18285 MoveResistance uint8
18287 LiquidMovePhysics bool
18288 }))(obj)).SelBox).serialize(w)
18293 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18295 if err := pcall(func() {
18308 //mt:const uint8(6)
18310 OverlayTiles [6]TileDef
18311 //mt:const uint8(6)
18312 SpecialTiles [6]TileDef
18319 ConnectTo []Content
18320 InsideTint color.NRGBA
18321 Level uint8 // Must be < 128.
18323 Translucent bool // Sunlight is scattered and becomes normal light.
18324 Transparent bool // Sunlight isn't scattered.
18337 LiquidType LiquidType
18340 Viscosity uint8 // 0-7
18346 DrawBox, ColBox, SelBox NodeBox
18348 FootstepSnd, DiggingSnd, DugSnd SoundDef
18359 MoveResistance uint8
18361 LiquidMovePhysics bool
18362 }))(obj)).FootstepSnd).serialize(w)
18367 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18369 if err := pcall(func() {
18382 //mt:const uint8(6)
18384 OverlayTiles [6]TileDef
18385 //mt:const uint8(6)
18386 SpecialTiles [6]TileDef
18393 ConnectTo []Content
18394 InsideTint color.NRGBA
18395 Level uint8 // Must be < 128.
18397 Translucent bool // Sunlight is scattered and becomes normal light.
18398 Transparent bool // Sunlight isn't scattered.
18411 LiquidType LiquidType
18414 Viscosity uint8 // 0-7
18420 DrawBox, ColBox, SelBox NodeBox
18422 FootstepSnd, DiggingSnd, DugSnd SoundDef
18433 MoveResistance uint8
18435 LiquidMovePhysics bool
18436 }))(obj)).DiggingSnd).serialize(w)
18441 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18443 if err := pcall(func() {
18456 //mt:const uint8(6)
18458 OverlayTiles [6]TileDef
18459 //mt:const uint8(6)
18460 SpecialTiles [6]TileDef
18467 ConnectTo []Content
18468 InsideTint color.NRGBA
18469 Level uint8 // Must be < 128.
18471 Translucent bool // Sunlight is scattered and becomes normal light.
18472 Transparent bool // Sunlight isn't scattered.
18485 LiquidType LiquidType
18488 Viscosity uint8 // 0-7
18494 DrawBox, ColBox, SelBox NodeBox
18496 FootstepSnd, DiggingSnd, DugSnd SoundDef
18507 MoveResistance uint8
18509 LiquidMovePhysics bool
18510 }))(obj)).DugSnd).serialize(w)
18515 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18530 //mt:const uint8(6)
18532 OverlayTiles [6]TileDef
18533 //mt:const uint8(6)
18534 SpecialTiles [6]TileDef
18541 ConnectTo []Content
18542 InsideTint color.NRGBA
18543 Level uint8 // Must be < 128.
18545 Translucent bool // Sunlight is scattered and becomes normal light.
18546 Transparent bool // Sunlight isn't scattered.
18559 LiquidType LiquidType
18562 Viscosity uint8 // 0-7
18568 DrawBox, ColBox, SelBox NodeBox
18570 FootstepSnd, DiggingSnd, DugSnd SoundDef
18581 MoveResistance uint8
18583 LiquidMovePhysics bool
18584 }))(obj)).LegacyFaceDir
18604 //mt:const uint8(6)
18606 OverlayTiles [6]TileDef
18607 //mt:const uint8(6)
18608 SpecialTiles [6]TileDef
18615 ConnectTo []Content
18616 InsideTint color.NRGBA
18617 Level uint8 // Must be < 128.
18619 Translucent bool // Sunlight is scattered and becomes normal light.
18620 Transparent bool // Sunlight isn't scattered.
18633 LiquidType LiquidType
18636 Viscosity uint8 // 0-7
18642 DrawBox, ColBox, SelBox NodeBox
18644 FootstepSnd, DiggingSnd, DugSnd SoundDef
18655 MoveResistance uint8
18657 LiquidMovePhysics bool
18658 }))(obj)).LegacyMounted
18665 if len(([]byte((*(*(struct {
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
18728 MoveResistance uint8
18730 LiquidMovePhysics bool
18731 }))(obj)).DigPredict))) > math.MaxUint16 {
18735 x := uint16(len(([]byte((*(*(struct {
18747 //mt:const uint8(6)
18749 OverlayTiles [6]TileDef
18750 //mt:const uint8(6)
18751 SpecialTiles [6]TileDef
18758 ConnectTo []Content
18759 InsideTint color.NRGBA
18760 Level uint8 // Must be < 128.
18762 Translucent bool // Sunlight is scattered and becomes normal light.
18763 Transparent bool // Sunlight isn't scattered.
18776 LiquidType LiquidType
18779 Viscosity uint8 // 0-7
18785 DrawBox, ColBox, SelBox NodeBox
18787 FootstepSnd, DiggingSnd, DugSnd SoundDef
18798 MoveResistance uint8
18800 LiquidMovePhysics bool
18801 }))(obj)).DigPredict))))
18802 write16(w, uint16(x))
18805 _, err := w.Write(([]byte((*(*(struct {
18817 //mt:const uint8(6)
18819 OverlayTiles [6]TileDef
18820 //mt:const uint8(6)
18821 SpecialTiles [6]TileDef
18828 ConnectTo []Content
18829 InsideTint color.NRGBA
18830 Level uint8 // Must be < 128.
18832 Translucent bool // Sunlight is scattered and becomes normal light.
18833 Transparent bool // Sunlight isn't scattered.
18846 LiquidType LiquidType
18849 Viscosity uint8 // 0-7
18855 DrawBox, ColBox, SelBox NodeBox
18857 FootstepSnd, DiggingSnd, DugSnd SoundDef
18868 MoveResistance uint8
18870 LiquidMovePhysics bool
18871 }))(obj)).DigPredict))[:])
18887 //mt:const uint8(6)
18889 OverlayTiles [6]TileDef
18890 //mt:const uint8(6)
18891 SpecialTiles [6]TileDef
18898 ConnectTo []Content
18899 InsideTint color.NRGBA
18900 Level uint8 // Must be < 128.
18902 Translucent bool // Sunlight is scattered and becomes normal light.
18903 Transparent bool // Sunlight isn't scattered.
18916 LiquidType LiquidType
18919 Viscosity uint8 // 0-7
18925 DrawBox, ColBox, SelBox NodeBox
18927 FootstepSnd, DiggingSnd, DugSnd SoundDef
18938 MoveResistance uint8
18940 LiquidMovePhysics bool
18942 write8(w, uint8(x))
18944 if err := pcall(func() {
18957 //mt:const uint8(6)
18959 OverlayTiles [6]TileDef
18960 //mt:const uint8(6)
18961 SpecialTiles [6]TileDef
18968 ConnectTo []Content
18969 InsideTint color.NRGBA
18970 Level uint8 // Must be < 128.
18972 Translucent bool // Sunlight is scattered and becomes normal light.
18973 Transparent bool // Sunlight isn't scattered.
18986 LiquidType LiquidType
18989 Viscosity uint8 // 0-7
18995 DrawBox, ColBox, SelBox NodeBox
18997 FootstepSnd, DiggingSnd, DugSnd SoundDef
19008 MoveResistance uint8
19010 LiquidMovePhysics bool
19011 }))(obj)).AlphaUse).serialize(w)
19016 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
19031 //mt:const uint8(6)
19033 OverlayTiles [6]TileDef
19034 //mt:const uint8(6)
19035 SpecialTiles [6]TileDef
19042 ConnectTo []Content
19043 InsideTint color.NRGBA
19044 Level uint8 // Must be < 128.
19046 Translucent bool // Sunlight is scattered and becomes normal light.
19047 Transparent bool // Sunlight isn't scattered.
19060 LiquidType LiquidType
19063 Viscosity uint8 // 0-7
19069 DrawBox, ColBox, SelBox NodeBox
19071 FootstepSnd, DiggingSnd, DugSnd SoundDef
19082 MoveResistance uint8
19084 LiquidMovePhysics bool
19085 }))(obj)).MoveResistance
19086 write8(w, uint8(x))
19101 //mt:const uint8(6)
19103 OverlayTiles [6]TileDef
19104 //mt:const uint8(6)
19105 SpecialTiles [6]TileDef
19112 ConnectTo []Content
19113 InsideTint color.NRGBA
19114 Level uint8 // Must be < 128.
19116 Translucent bool // Sunlight is scattered and becomes normal light.
19117 Transparent bool // Sunlight isn't scattered.
19130 LiquidType LiquidType
19133 Viscosity uint8 // 0-7
19139 DrawBox, ColBox, SelBox NodeBox
19141 FootstepSnd, DiggingSnd, DugSnd SoundDef
19152 MoveResistance uint8
19154 LiquidMovePhysics bool
19155 }))(obj)).LiquidMovePhysics
19165 if len((buf.Bytes())) > math.MaxUint16 {
19169 x := uint16(len((buf.Bytes())))
19170 write16(w, uint16(x))
19173 _, err := w.Write((buf.Bytes())[:])
19180 func (obj *NodeDef) deserialize(r io.Reader) {
19181 if err := pcall(func() {
19194 //mt:const uint8(6)
19196 OverlayTiles [6]TileDef
19197 //mt:const uint8(6)
19198 SpecialTiles [6]TileDef
19205 ConnectTo []Content
19206 InsideTint color.NRGBA
19207 Level uint8 // Must be < 128.
19209 Translucent bool // Sunlight is scattered and becomes normal light.
19210 Transparent bool // Sunlight isn't scattered.
19223 LiquidType LiquidType
19226 Viscosity uint8 // 0-7
19232 DrawBox, ColBox, SelBox NodeBox
19234 FootstepSnd, DiggingSnd, DugSnd SoundDef
19245 MoveResistance uint8
19247 LiquidMovePhysics bool
19248 }))(obj)).Param0).deserialize(r)
19253 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
19261 r := &io.LimitedReader{R: r, N: int64(n)}
19264 local247 := uint8(13)
19269 if local246 != local247 {
19270 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
19273 var local248 []uint8
19274 var local249 uint16
19279 (local248) = make([]uint8, local249)
19281 _, err := io.ReadFull(r, (local248)[:])
19296 //mt:const uint8(6)
19298 OverlayTiles [6]TileDef
19299 //mt:const uint8(6)
19300 SpecialTiles [6]TileDef
19307 ConnectTo []Content
19308 InsideTint color.NRGBA
19309 Level uint8 // Must be < 128.
19311 Translucent bool // Sunlight is scattered and becomes normal light.
19312 Transparent bool // Sunlight isn't scattered.
19325 LiquidType LiquidType
19328 Viscosity uint8 // 0-7
19334 DrawBox, ColBox, SelBox NodeBox
19336 FootstepSnd, DiggingSnd, DugSnd SoundDef
19347 MoveResistance uint8
19349 LiquidMovePhysics bool
19350 }))(obj)).Name) = string(local248)
19351 var local250 uint16
19368 //mt:const uint8(6)
19370 OverlayTiles [6]TileDef
19371 //mt:const uint8(6)
19372 SpecialTiles [6]TileDef
19379 ConnectTo []Content
19380 InsideTint color.NRGBA
19381 Level uint8 // Must be < 128.
19383 Translucent bool // Sunlight is scattered and becomes normal light.
19384 Transparent bool // Sunlight isn't scattered.
19397 LiquidType LiquidType
19400 Viscosity uint8 // 0-7
19406 DrawBox, ColBox, SelBox NodeBox
19408 FootstepSnd, DiggingSnd, DugSnd SoundDef
19419 MoveResistance uint8
19421 LiquidMovePhysics bool
19422 }))(obj)).Groups) = make([]Group, local250)
19423 for local251 := range (*(*(struct {
19435 //mt:const uint8(6)
19437 OverlayTiles [6]TileDef
19438 //mt:const uint8(6)
19439 SpecialTiles [6]TileDef
19446 ConnectTo []Content
19447 InsideTint color.NRGBA
19448 Level uint8 // Must be < 128.
19450 Translucent bool // Sunlight is scattered and becomes normal light.
19451 Transparent bool // Sunlight isn't scattered.
19464 LiquidType LiquidType
19467 Viscosity uint8 // 0-7
19473 DrawBox, ColBox, SelBox NodeBox
19475 FootstepSnd, DiggingSnd, DugSnd SoundDef
19486 MoveResistance uint8
19488 LiquidMovePhysics bool
19490 if err := pcall(func() {
19503 //mt:const uint8(6)
19505 OverlayTiles [6]TileDef
19506 //mt:const uint8(6)
19507 SpecialTiles [6]TileDef
19514 ConnectTo []Content
19515 InsideTint color.NRGBA
19516 Level uint8 // Must be < 128.
19518 Translucent bool // Sunlight is scattered and becomes normal light.
19519 Transparent bool // Sunlight isn't scattered.
19532 LiquidType LiquidType
19535 Viscosity uint8 // 0-7
19541 DrawBox, ColBox, SelBox NodeBox
19543 FootstepSnd, DiggingSnd, DugSnd SoundDef
19554 MoveResistance uint8
19556 LiquidMovePhysics bool
19557 }))(obj)).Groups)[local251]).deserialize(r)
19562 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
19565 if err := pcall(func() {
19578 //mt:const uint8(6)
19580 OverlayTiles [6]TileDef
19581 //mt:const uint8(6)
19582 SpecialTiles [6]TileDef
19589 ConnectTo []Content
19590 InsideTint color.NRGBA
19591 Level uint8 // Must be < 128.
19593 Translucent bool // Sunlight is scattered and becomes normal light.
19594 Transparent bool // Sunlight isn't scattered.
19607 LiquidType LiquidType
19610 Viscosity uint8 // 0-7
19616 DrawBox, ColBox, SelBox NodeBox
19618 FootstepSnd, DiggingSnd, DugSnd SoundDef
19629 MoveResistance uint8
19631 LiquidMovePhysics bool
19632 }))(obj)).P1Type).deserialize(r)
19637 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
19639 if err := pcall(func() {
19652 //mt:const uint8(6)
19654 OverlayTiles [6]TileDef
19655 //mt:const uint8(6)
19656 SpecialTiles [6]TileDef
19663 ConnectTo []Content
19664 InsideTint color.NRGBA
19665 Level uint8 // Must be < 128.
19667 Translucent bool // Sunlight is scattered and becomes normal light.
19668 Transparent bool // Sunlight isn't scattered.
19681 LiquidType LiquidType
19684 Viscosity uint8 // 0-7
19690 DrawBox, ColBox, SelBox NodeBox
19692 FootstepSnd, DiggingSnd, DugSnd SoundDef
19703 MoveResistance uint8
19705 LiquidMovePhysics bool
19706 }))(obj)).P2Type).deserialize(r)
19711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
19713 if err := pcall(func() {
19726 //mt:const uint8(6)
19728 OverlayTiles [6]TileDef
19729 //mt:const uint8(6)
19730 SpecialTiles [6]TileDef
19737 ConnectTo []Content
19738 InsideTint color.NRGBA
19739 Level uint8 // Must be < 128.
19741 Translucent bool // Sunlight is scattered and becomes normal light.
19742 Transparent bool // Sunlight isn't scattered.
19755 LiquidType LiquidType
19758 Viscosity uint8 // 0-7
19764 DrawBox, ColBox, SelBox NodeBox
19766 FootstepSnd, DiggingSnd, DugSnd SoundDef
19777 MoveResistance uint8
19779 LiquidMovePhysics bool
19780 }))(obj)).DrawType).deserialize(r)
19785 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
19787 var local252 []uint8
19788 var local253 uint16
19793 (local252) = make([]uint8, local253)
19795 _, err := io.ReadFull(r, (local252)[:])
19810 //mt:const uint8(6)
19812 OverlayTiles [6]TileDef
19813 //mt:const uint8(6)
19814 SpecialTiles [6]TileDef
19821 ConnectTo []Content
19822 InsideTint color.NRGBA
19823 Level uint8 // Must be < 128.
19825 Translucent bool // Sunlight is scattered and becomes normal light.
19826 Transparent bool // Sunlight isn't scattered.
19839 LiquidType LiquidType
19842 Viscosity uint8 // 0-7
19848 DrawBox, ColBox, SelBox NodeBox
19850 FootstepSnd, DiggingSnd, DugSnd SoundDef
19861 MoveResistance uint8
19863 LiquidMovePhysics bool
19864 }))(obj)).Mesh) = string(local252)
19866 p := &(*(*(struct {
19878 //mt:const uint8(6)
19880 OverlayTiles [6]TileDef
19881 //mt:const uint8(6)
19882 SpecialTiles [6]TileDef
19889 ConnectTo []Content
19890 InsideTint color.NRGBA
19891 Level uint8 // Must be < 128.
19893 Translucent bool // Sunlight is scattered and becomes normal light.
19894 Transparent bool // Sunlight isn't scattered.
19907 LiquidType LiquidType
19910 Viscosity uint8 // 0-7
19916 DrawBox, ColBox, SelBox NodeBox
19918 FootstepSnd, DiggingSnd, DugSnd SoundDef
19929 MoveResistance uint8
19931 LiquidMovePhysics bool
19933 *p = math.Float32frombits(read32(r))
19937 local255 := uint8(6)
19942 if local254 != local255 {
19943 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19946 for local256 := range (*(*(struct {
19958 //mt:const uint8(6)
19960 OverlayTiles [6]TileDef
19961 //mt:const uint8(6)
19962 SpecialTiles [6]TileDef
19969 ConnectTo []Content
19970 InsideTint color.NRGBA
19971 Level uint8 // Must be < 128.
19973 Translucent bool // Sunlight is scattered and becomes normal light.
19974 Transparent bool // Sunlight isn't scattered.
19987 LiquidType LiquidType
19990 Viscosity uint8 // 0-7
19996 DrawBox, ColBox, SelBox NodeBox
19998 FootstepSnd, DiggingSnd, DugSnd SoundDef
20009 MoveResistance uint8
20011 LiquidMovePhysics bool
20013 if err := pcall(func() {
20026 //mt:const uint8(6)
20028 OverlayTiles [6]TileDef
20029 //mt:const uint8(6)
20030 SpecialTiles [6]TileDef
20037 ConnectTo []Content
20038 InsideTint color.NRGBA
20039 Level uint8 // Must be < 128.
20041 Translucent bool // Sunlight is scattered and becomes normal light.
20042 Transparent bool // Sunlight isn't scattered.
20055 LiquidType LiquidType
20058 Viscosity uint8 // 0-7
20064 DrawBox, ColBox, SelBox NodeBox
20066 FootstepSnd, DiggingSnd, DugSnd SoundDef
20077 MoveResistance uint8
20079 LiquidMovePhysics bool
20080 }))(obj)).Tiles)[local256]).deserialize(r)
20085 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20088 for local257 := range (*(*(struct {
20100 //mt:const uint8(6)
20102 OverlayTiles [6]TileDef
20103 //mt:const uint8(6)
20104 SpecialTiles [6]TileDef
20111 ConnectTo []Content
20112 InsideTint color.NRGBA
20113 Level uint8 // Must be < 128.
20115 Translucent bool // Sunlight is scattered and becomes normal light.
20116 Transparent bool // Sunlight isn't scattered.
20129 LiquidType LiquidType
20132 Viscosity uint8 // 0-7
20138 DrawBox, ColBox, SelBox NodeBox
20140 FootstepSnd, DiggingSnd, DugSnd SoundDef
20151 MoveResistance uint8
20153 LiquidMovePhysics bool
20154 }))(obj)).OverlayTiles {
20155 if err := pcall(func() {
20168 //mt:const uint8(6)
20170 OverlayTiles [6]TileDef
20171 //mt:const uint8(6)
20172 SpecialTiles [6]TileDef
20179 ConnectTo []Content
20180 InsideTint color.NRGBA
20181 Level uint8 // Must be < 128.
20183 Translucent bool // Sunlight is scattered and becomes normal light.
20184 Transparent bool // Sunlight isn't scattered.
20197 LiquidType LiquidType
20200 Viscosity uint8 // 0-7
20206 DrawBox, ColBox, SelBox NodeBox
20208 FootstepSnd, DiggingSnd, DugSnd SoundDef
20219 MoveResistance uint8
20221 LiquidMovePhysics bool
20222 }))(obj)).OverlayTiles)[local257]).deserialize(r)
20227 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20232 local259 := uint8(6)
20237 if local258 != local259 {
20238 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
20241 for local260 := range (*(*(struct {
20253 //mt:const uint8(6)
20255 OverlayTiles [6]TileDef
20256 //mt:const uint8(6)
20257 SpecialTiles [6]TileDef
20264 ConnectTo []Content
20265 InsideTint color.NRGBA
20266 Level uint8 // Must be < 128.
20268 Translucent bool // Sunlight is scattered and becomes normal light.
20269 Transparent bool // Sunlight isn't scattered.
20282 LiquidType LiquidType
20285 Viscosity uint8 // 0-7
20291 DrawBox, ColBox, SelBox NodeBox
20293 FootstepSnd, DiggingSnd, DugSnd SoundDef
20304 MoveResistance uint8
20306 LiquidMovePhysics bool
20307 }))(obj)).SpecialTiles {
20308 if err := pcall(func() {
20321 //mt:const uint8(6)
20323 OverlayTiles [6]TileDef
20324 //mt:const uint8(6)
20325 SpecialTiles [6]TileDef
20332 ConnectTo []Content
20333 InsideTint color.NRGBA
20334 Level uint8 // Must be < 128.
20336 Translucent bool // Sunlight is scattered and becomes normal light.
20337 Transparent bool // Sunlight isn't scattered.
20350 LiquidType LiquidType
20353 Viscosity uint8 // 0-7
20359 DrawBox, ColBox, SelBox NodeBox
20361 FootstepSnd, DiggingSnd, DugSnd SoundDef
20372 MoveResistance uint8
20374 LiquidMovePhysics bool
20375 }))(obj)).SpecialTiles)[local260]).deserialize(r)
20380 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20384 p := &(*(*(struct {
20396 //mt:const uint8(6)
20398 OverlayTiles [6]TileDef
20399 //mt:const uint8(6)
20400 SpecialTiles [6]TileDef
20407 ConnectTo []Content
20408 InsideTint color.NRGBA
20409 Level uint8 // Must be < 128.
20411 Translucent bool // Sunlight is scattered and becomes normal light.
20412 Transparent bool // Sunlight isn't scattered.
20425 LiquidType LiquidType
20428 Viscosity uint8 // 0-7
20434 DrawBox, ColBox, SelBox NodeBox
20436 FootstepSnd, DiggingSnd, DugSnd SoundDef
20447 MoveResistance uint8
20449 LiquidMovePhysics bool
20451 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20453 if err := pcall(func() {
20466 //mt:const uint8(6)
20468 OverlayTiles [6]TileDef
20469 //mt:const uint8(6)
20470 SpecialTiles [6]TileDef
20477 ConnectTo []Content
20478 InsideTint color.NRGBA
20479 Level uint8 // Must be < 128.
20481 Translucent bool // Sunlight is scattered and becomes normal light.
20482 Transparent bool // Sunlight isn't scattered.
20495 LiquidType LiquidType
20498 Viscosity uint8 // 0-7
20504 DrawBox, ColBox, SelBox NodeBox
20506 FootstepSnd, DiggingSnd, DugSnd SoundDef
20517 MoveResistance uint8
20519 LiquidMovePhysics bool
20520 }))(obj)).Palette).deserialize(r)
20525 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
20527 if err := pcall(func() {
20540 //mt:const uint8(6)
20542 OverlayTiles [6]TileDef
20543 //mt:const uint8(6)
20544 SpecialTiles [6]TileDef
20551 ConnectTo []Content
20552 InsideTint color.NRGBA
20553 Level uint8 // Must be < 128.
20555 Translucent bool // Sunlight is scattered and becomes normal light.
20556 Transparent bool // Sunlight isn't scattered.
20569 LiquidType LiquidType
20572 Viscosity uint8 // 0-7
20578 DrawBox, ColBox, SelBox NodeBox
20580 FootstepSnd, DiggingSnd, DugSnd SoundDef
20591 MoveResistance uint8
20593 LiquidMovePhysics bool
20594 }))(obj)).Waving).deserialize(r)
20599 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
20602 p := &(*(*(struct {
20614 //mt:const uint8(6)
20616 OverlayTiles [6]TileDef
20617 //mt:const uint8(6)
20618 SpecialTiles [6]TileDef
20625 ConnectTo []Content
20626 InsideTint color.NRGBA
20627 Level uint8 // Must be < 128.
20629 Translucent bool // Sunlight is scattered and becomes normal light.
20630 Transparent bool // Sunlight isn't scattered.
20643 LiquidType LiquidType
20646 Viscosity uint8 // 0-7
20652 DrawBox, ColBox, SelBox NodeBox
20654 FootstepSnd, DiggingSnd, DugSnd SoundDef
20665 MoveResistance uint8
20667 LiquidMovePhysics bool
20668 }))(obj)).ConnectSides
20671 var local261 uint16
20688 //mt:const uint8(6)
20690 OverlayTiles [6]TileDef
20691 //mt:const uint8(6)
20692 SpecialTiles [6]TileDef
20699 ConnectTo []Content
20700 InsideTint color.NRGBA
20701 Level uint8 // Must be < 128.
20703 Translucent bool // Sunlight is scattered and becomes normal light.
20704 Transparent bool // Sunlight isn't scattered.
20717 LiquidType LiquidType
20720 Viscosity uint8 // 0-7
20726 DrawBox, ColBox, SelBox NodeBox
20728 FootstepSnd, DiggingSnd, DugSnd SoundDef
20739 MoveResistance uint8
20741 LiquidMovePhysics bool
20742 }))(obj)).ConnectTo) = make([]Content, local261)
20743 for local262 := range (*(*(struct {
20755 //mt:const uint8(6)
20757 OverlayTiles [6]TileDef
20758 //mt:const uint8(6)
20759 SpecialTiles [6]TileDef
20766 ConnectTo []Content
20767 InsideTint color.NRGBA
20768 Level uint8 // Must be < 128.
20770 Translucent bool // Sunlight is scattered and becomes normal light.
20771 Transparent bool // Sunlight isn't scattered.
20784 LiquidType LiquidType
20787 Viscosity uint8 // 0-7
20793 DrawBox, ColBox, SelBox NodeBox
20795 FootstepSnd, DiggingSnd, DugSnd SoundDef
20806 MoveResistance uint8
20808 LiquidMovePhysics bool
20809 }))(obj)).ConnectTo {
20810 if err := pcall(func() {
20823 //mt:const uint8(6)
20825 OverlayTiles [6]TileDef
20826 //mt:const uint8(6)
20827 SpecialTiles [6]TileDef
20834 ConnectTo []Content
20835 InsideTint color.NRGBA
20836 Level uint8 // Must be < 128.
20838 Translucent bool // Sunlight is scattered and becomes normal light.
20839 Transparent bool // Sunlight isn't scattered.
20852 LiquidType LiquidType
20855 Viscosity uint8 // 0-7
20861 DrawBox, ColBox, SelBox NodeBox
20863 FootstepSnd, DiggingSnd, DugSnd SoundDef
20874 MoveResistance uint8
20876 LiquidMovePhysics bool
20877 }))(obj)).ConnectTo)[local262]).deserialize(r)
20882 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
20886 p := &(*(*(struct {
20898 //mt:const uint8(6)
20900 OverlayTiles [6]TileDef
20901 //mt:const uint8(6)
20902 SpecialTiles [6]TileDef
20909 ConnectTo []Content
20910 InsideTint color.NRGBA
20911 Level uint8 // Must be < 128.
20913 Translucent bool // Sunlight is scattered and becomes normal light.
20914 Transparent bool // Sunlight isn't scattered.
20927 LiquidType LiquidType
20930 Viscosity uint8 // 0-7
20936 DrawBox, ColBox, SelBox NodeBox
20938 FootstepSnd, DiggingSnd, DugSnd SoundDef
20949 MoveResistance uint8
20951 LiquidMovePhysics bool
20952 }))(obj)).InsideTint
20953 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20956 p := &(*(*(struct {
20968 //mt:const uint8(6)
20970 OverlayTiles [6]TileDef
20971 //mt:const uint8(6)
20972 SpecialTiles [6]TileDef
20979 ConnectTo []Content
20980 InsideTint color.NRGBA
20981 Level uint8 // Must be < 128.
20983 Translucent bool // Sunlight is scattered and becomes normal light.
20984 Transparent bool // Sunlight isn't scattered.
20997 LiquidType LiquidType
21000 Viscosity uint8 // 0-7
21006 DrawBox, ColBox, SelBox NodeBox
21008 FootstepSnd, DiggingSnd, DugSnd SoundDef
21019 MoveResistance uint8
21021 LiquidMovePhysics bool
21026 p := &(*(*(struct {
21038 //mt:const uint8(6)
21040 OverlayTiles [6]TileDef
21041 //mt:const uint8(6)
21042 SpecialTiles [6]TileDef
21049 ConnectTo []Content
21050 InsideTint color.NRGBA
21051 Level uint8 // Must be < 128.
21053 Translucent bool // Sunlight is scattered and becomes normal light.
21054 Transparent bool // Sunlight isn't scattered.
21067 LiquidType LiquidType
21070 Viscosity uint8 // 0-7
21076 DrawBox, ColBox, SelBox NodeBox
21078 FootstepSnd, DiggingSnd, DugSnd SoundDef
21089 MoveResistance uint8
21091 LiquidMovePhysics bool
21092 }))(obj)).Translucent
21093 switch n := read8(r); n {
21099 chk(fmt.Errorf("invalid bool: %d", n))
21103 p := &(*(*(struct {
21115 //mt:const uint8(6)
21117 OverlayTiles [6]TileDef
21118 //mt:const uint8(6)
21119 SpecialTiles [6]TileDef
21126 ConnectTo []Content
21127 InsideTint color.NRGBA
21128 Level uint8 // Must be < 128.
21130 Translucent bool // Sunlight is scattered and becomes normal light.
21131 Transparent bool // Sunlight isn't scattered.
21144 LiquidType LiquidType
21147 Viscosity uint8 // 0-7
21153 DrawBox, ColBox, SelBox NodeBox
21155 FootstepSnd, DiggingSnd, DugSnd SoundDef
21166 MoveResistance uint8
21168 LiquidMovePhysics bool
21169 }))(obj)).Transparent
21170 switch n := read8(r); n {
21176 chk(fmt.Errorf("invalid bool: %d", n))
21180 p := &(*(*(struct {
21192 //mt:const uint8(6)
21194 OverlayTiles [6]TileDef
21195 //mt:const uint8(6)
21196 SpecialTiles [6]TileDef
21203 ConnectTo []Content
21204 InsideTint color.NRGBA
21205 Level uint8 // Must be < 128.
21207 Translucent bool // Sunlight is scattered and becomes normal light.
21208 Transparent bool // Sunlight isn't scattered.
21221 LiquidType LiquidType
21224 Viscosity uint8 // 0-7
21230 DrawBox, ColBox, SelBox NodeBox
21232 FootstepSnd, DiggingSnd, DugSnd SoundDef
21243 MoveResistance uint8
21245 LiquidMovePhysics bool
21250 p := &(*(*(struct {
21262 //mt:const uint8(6)
21264 OverlayTiles [6]TileDef
21265 //mt:const uint8(6)
21266 SpecialTiles [6]TileDef
21273 ConnectTo []Content
21274 InsideTint color.NRGBA
21275 Level uint8 // Must be < 128.
21277 Translucent bool // Sunlight is scattered and becomes normal light.
21278 Transparent bool // Sunlight isn't scattered.
21291 LiquidType LiquidType
21294 Viscosity uint8 // 0-7
21300 DrawBox, ColBox, SelBox NodeBox
21302 FootstepSnd, DiggingSnd, DugSnd SoundDef
21313 MoveResistance uint8
21315 LiquidMovePhysics bool
21316 }))(obj)).GndContent
21317 switch n := read8(r); n {
21323 chk(fmt.Errorf("invalid bool: %d", n))
21327 p := &(*(*(struct {
21339 //mt:const uint8(6)
21341 OverlayTiles [6]TileDef
21342 //mt:const uint8(6)
21343 SpecialTiles [6]TileDef
21350 ConnectTo []Content
21351 InsideTint color.NRGBA
21352 Level uint8 // Must be < 128.
21354 Translucent bool // Sunlight is scattered and becomes normal light.
21355 Transparent bool // Sunlight isn't scattered.
21368 LiquidType LiquidType
21371 Viscosity uint8 // 0-7
21377 DrawBox, ColBox, SelBox NodeBox
21379 FootstepSnd, DiggingSnd, DugSnd SoundDef
21390 MoveResistance uint8
21392 LiquidMovePhysics bool
21394 switch n := read8(r); n {
21400 chk(fmt.Errorf("invalid bool: %d", n))
21404 p := &(*(*(struct {
21416 //mt:const uint8(6)
21418 OverlayTiles [6]TileDef
21419 //mt:const uint8(6)
21420 SpecialTiles [6]TileDef
21427 ConnectTo []Content
21428 InsideTint color.NRGBA
21429 Level uint8 // Must be < 128.
21431 Translucent bool // Sunlight is scattered and becomes normal light.
21432 Transparent bool // Sunlight isn't scattered.
21445 LiquidType LiquidType
21448 Viscosity uint8 // 0-7
21454 DrawBox, ColBox, SelBox NodeBox
21456 FootstepSnd, DiggingSnd, DugSnd SoundDef
21467 MoveResistance uint8
21469 LiquidMovePhysics bool
21470 }))(obj)).Pointable
21471 switch n := read8(r); n {
21477 chk(fmt.Errorf("invalid bool: %d", n))
21481 p := &(*(*(struct {
21493 //mt:const uint8(6)
21495 OverlayTiles [6]TileDef
21496 //mt:const uint8(6)
21497 SpecialTiles [6]TileDef
21504 ConnectTo []Content
21505 InsideTint color.NRGBA
21506 Level uint8 // Must be < 128.
21508 Translucent bool // Sunlight is scattered and becomes normal light.
21509 Transparent bool // Sunlight isn't scattered.
21522 LiquidType LiquidType
21525 Viscosity uint8 // 0-7
21531 DrawBox, ColBox, SelBox NodeBox
21533 FootstepSnd, DiggingSnd, DugSnd SoundDef
21544 MoveResistance uint8
21546 LiquidMovePhysics bool
21548 switch n := read8(r); n {
21554 chk(fmt.Errorf("invalid bool: %d", n))
21558 p := &(*(*(struct {
21570 //mt:const uint8(6)
21572 OverlayTiles [6]TileDef
21573 //mt:const uint8(6)
21574 SpecialTiles [6]TileDef
21581 ConnectTo []Content
21582 InsideTint color.NRGBA
21583 Level uint8 // Must be < 128.
21585 Translucent bool // Sunlight is scattered and becomes normal light.
21586 Transparent bool // Sunlight isn't scattered.
21599 LiquidType LiquidType
21602 Viscosity uint8 // 0-7
21608 DrawBox, ColBox, SelBox NodeBox
21610 FootstepSnd, DiggingSnd, DugSnd SoundDef
21621 MoveResistance uint8
21623 LiquidMovePhysics bool
21624 }))(obj)).Climbable
21625 switch n := read8(r); n {
21631 chk(fmt.Errorf("invalid bool: %d", n))
21635 p := &(*(*(struct {
21647 //mt:const uint8(6)
21649 OverlayTiles [6]TileDef
21650 //mt:const uint8(6)
21651 SpecialTiles [6]TileDef
21658 ConnectTo []Content
21659 InsideTint color.NRGBA
21660 Level uint8 // Must be < 128.
21662 Translucent bool // Sunlight is scattered and becomes normal light.
21663 Transparent bool // Sunlight isn't scattered.
21676 LiquidType LiquidType
21679 Viscosity uint8 // 0-7
21685 DrawBox, ColBox, SelBox NodeBox
21687 FootstepSnd, DiggingSnd, DugSnd SoundDef
21698 MoveResistance uint8
21700 LiquidMovePhysics bool
21701 }))(obj)).Replaceable
21702 switch n := read8(r); n {
21708 chk(fmt.Errorf("invalid bool: %d", n))
21712 p := &(*(*(struct {
21724 //mt:const uint8(6)
21726 OverlayTiles [6]TileDef
21727 //mt:const uint8(6)
21728 SpecialTiles [6]TileDef
21735 ConnectTo []Content
21736 InsideTint color.NRGBA
21737 Level uint8 // Must be < 128.
21739 Translucent bool // Sunlight is scattered and becomes normal light.
21740 Transparent bool // Sunlight isn't scattered.
21753 LiquidType LiquidType
21756 Viscosity uint8 // 0-7
21762 DrawBox, ColBox, SelBox NodeBox
21764 FootstepSnd, DiggingSnd, DugSnd SoundDef
21775 MoveResistance uint8
21777 LiquidMovePhysics bool
21778 }))(obj)).OnRightClick
21779 switch n := read8(r); n {
21785 chk(fmt.Errorf("invalid bool: %d", n))
21789 p := &(*(*(struct {
21801 //mt:const uint8(6)
21803 OverlayTiles [6]TileDef
21804 //mt:const uint8(6)
21805 SpecialTiles [6]TileDef
21812 ConnectTo []Content
21813 InsideTint color.NRGBA
21814 Level uint8 // Must be < 128.
21816 Translucent bool // Sunlight is scattered and becomes normal light.
21817 Transparent bool // Sunlight isn't scattered.
21830 LiquidType LiquidType
21833 Viscosity uint8 // 0-7
21839 DrawBox, ColBox, SelBox NodeBox
21841 FootstepSnd, DiggingSnd, DugSnd SoundDef
21852 MoveResistance uint8
21854 LiquidMovePhysics bool
21855 }))(obj)).DmgPerSec
21856 *p = int32(read32(r))
21858 if err := pcall(func() {
21871 //mt:const uint8(6)
21873 OverlayTiles [6]TileDef
21874 //mt:const uint8(6)
21875 SpecialTiles [6]TileDef
21882 ConnectTo []Content
21883 InsideTint color.NRGBA
21884 Level uint8 // Must be < 128.
21886 Translucent bool // Sunlight is scattered and becomes normal light.
21887 Transparent bool // Sunlight isn't scattered.
21900 LiquidType LiquidType
21903 Viscosity uint8 // 0-7
21909 DrawBox, ColBox, SelBox NodeBox
21911 FootstepSnd, DiggingSnd, DugSnd SoundDef
21922 MoveResistance uint8
21924 LiquidMovePhysics bool
21925 }))(obj)).LiquidType).deserialize(r)
21930 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
21932 var local263 []uint8
21933 var local264 uint16
21938 (local263) = make([]uint8, local264)
21940 _, err := io.ReadFull(r, (local263)[:])
21955 //mt:const uint8(6)
21957 OverlayTiles [6]TileDef
21958 //mt:const uint8(6)
21959 SpecialTiles [6]TileDef
21966 ConnectTo []Content
21967 InsideTint color.NRGBA
21968 Level uint8 // Must be < 128.
21970 Translucent bool // Sunlight is scattered and becomes normal light.
21971 Transparent bool // Sunlight isn't scattered.
21984 LiquidType LiquidType
21987 Viscosity uint8 // 0-7
21993 DrawBox, ColBox, SelBox NodeBox
21995 FootstepSnd, DiggingSnd, DugSnd SoundDef
22006 MoveResistance uint8
22008 LiquidMovePhysics bool
22009 }))(obj)).FlowingAlt) = string(local263)
22010 var local265 []uint8
22011 var local266 uint16
22016 (local265) = make([]uint8, local266)
22018 _, err := io.ReadFull(r, (local265)[:])
22033 //mt:const uint8(6)
22035 OverlayTiles [6]TileDef
22036 //mt:const uint8(6)
22037 SpecialTiles [6]TileDef
22044 ConnectTo []Content
22045 InsideTint color.NRGBA
22046 Level uint8 // Must be < 128.
22048 Translucent bool // Sunlight is scattered and becomes normal light.
22049 Transparent bool // Sunlight isn't scattered.
22062 LiquidType LiquidType
22065 Viscosity uint8 // 0-7
22071 DrawBox, ColBox, SelBox NodeBox
22073 FootstepSnd, DiggingSnd, DugSnd SoundDef
22084 MoveResistance uint8
22086 LiquidMovePhysics bool
22087 }))(obj)).SrcAlt) = string(local265)
22089 p := &(*(*(struct {
22101 //mt:const uint8(6)
22103 OverlayTiles [6]TileDef
22104 //mt:const uint8(6)
22105 SpecialTiles [6]TileDef
22112 ConnectTo []Content
22113 InsideTint color.NRGBA
22114 Level uint8 // Must be < 128.
22116 Translucent bool // Sunlight is scattered and becomes normal light.
22117 Transparent bool // Sunlight isn't scattered.
22130 LiquidType LiquidType
22133 Viscosity uint8 // 0-7
22139 DrawBox, ColBox, SelBox NodeBox
22141 FootstepSnd, DiggingSnd, DugSnd SoundDef
22152 MoveResistance uint8
22154 LiquidMovePhysics bool
22155 }))(obj)).Viscosity
22159 p := &(*(*(struct {
22171 //mt:const uint8(6)
22173 OverlayTiles [6]TileDef
22174 //mt:const uint8(6)
22175 SpecialTiles [6]TileDef
22182 ConnectTo []Content
22183 InsideTint color.NRGBA
22184 Level uint8 // Must be < 128.
22186 Translucent bool // Sunlight is scattered and becomes normal light.
22187 Transparent bool // Sunlight isn't scattered.
22200 LiquidType LiquidType
22203 Viscosity uint8 // 0-7
22209 DrawBox, ColBox, SelBox NodeBox
22211 FootstepSnd, DiggingSnd, DugSnd SoundDef
22222 MoveResistance uint8
22224 LiquidMovePhysics bool
22225 }))(obj)).LiqRenewable
22226 switch n := read8(r); n {
22232 chk(fmt.Errorf("invalid bool: %d", n))
22236 p := &(*(*(struct {
22248 //mt:const uint8(6)
22250 OverlayTiles [6]TileDef
22251 //mt:const uint8(6)
22252 SpecialTiles [6]TileDef
22259 ConnectTo []Content
22260 InsideTint color.NRGBA
22261 Level uint8 // Must be < 128.
22263 Translucent bool // Sunlight is scattered and becomes normal light.
22264 Transparent bool // Sunlight isn't scattered.
22277 LiquidType LiquidType
22280 Viscosity uint8 // 0-7
22286 DrawBox, ColBox, SelBox NodeBox
22288 FootstepSnd, DiggingSnd, DugSnd SoundDef
22299 MoveResistance uint8
22301 LiquidMovePhysics bool
22302 }))(obj)).FlowRange
22306 p := &(*(*(struct {
22318 //mt:const uint8(6)
22320 OverlayTiles [6]TileDef
22321 //mt:const uint8(6)
22322 SpecialTiles [6]TileDef
22329 ConnectTo []Content
22330 InsideTint color.NRGBA
22331 Level uint8 // Must be < 128.
22333 Translucent bool // Sunlight is scattered and becomes normal light.
22334 Transparent bool // Sunlight isn't scattered.
22347 LiquidType LiquidType
22350 Viscosity uint8 // 0-7
22356 DrawBox, ColBox, SelBox NodeBox
22358 FootstepSnd, DiggingSnd, DugSnd SoundDef
22369 MoveResistance uint8
22371 LiquidMovePhysics bool
22376 p := &(*(*(struct {
22388 //mt:const uint8(6)
22390 OverlayTiles [6]TileDef
22391 //mt:const uint8(6)
22392 SpecialTiles [6]TileDef
22399 ConnectTo []Content
22400 InsideTint color.NRGBA
22401 Level uint8 // Must be < 128.
22403 Translucent bool // Sunlight is scattered and becomes normal light.
22404 Transparent bool // Sunlight isn't scattered.
22417 LiquidType LiquidType
22420 Viscosity uint8 // 0-7
22426 DrawBox, ColBox, SelBox NodeBox
22428 FootstepSnd, DiggingSnd, DugSnd SoundDef
22439 MoveResistance uint8
22441 LiquidMovePhysics bool
22442 }))(obj)).Floodable
22443 switch n := read8(r); n {
22449 chk(fmt.Errorf("invalid bool: %d", n))
22452 if err := pcall(func() {
22465 //mt:const uint8(6)
22467 OverlayTiles [6]TileDef
22468 //mt:const uint8(6)
22469 SpecialTiles [6]TileDef
22476 ConnectTo []Content
22477 InsideTint color.NRGBA
22478 Level uint8 // Must be < 128.
22480 Translucent bool // Sunlight is scattered and becomes normal light.
22481 Transparent bool // Sunlight isn't scattered.
22494 LiquidType LiquidType
22497 Viscosity uint8 // 0-7
22503 DrawBox, ColBox, SelBox NodeBox
22505 FootstepSnd, DiggingSnd, DugSnd SoundDef
22516 MoveResistance uint8
22518 LiquidMovePhysics bool
22519 }))(obj)).DrawBox).deserialize(r)
22524 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22526 if err := pcall(func() {
22539 //mt:const uint8(6)
22541 OverlayTiles [6]TileDef
22542 //mt:const uint8(6)
22543 SpecialTiles [6]TileDef
22550 ConnectTo []Content
22551 InsideTint color.NRGBA
22552 Level uint8 // Must be < 128.
22554 Translucent bool // Sunlight is scattered and becomes normal light.
22555 Transparent bool // Sunlight isn't scattered.
22568 LiquidType LiquidType
22571 Viscosity uint8 // 0-7
22577 DrawBox, ColBox, SelBox NodeBox
22579 FootstepSnd, DiggingSnd, DugSnd SoundDef
22590 MoveResistance uint8
22592 LiquidMovePhysics bool
22593 }))(obj)).ColBox).deserialize(r)
22598 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22600 if err := pcall(func() {
22613 //mt:const uint8(6)
22615 OverlayTiles [6]TileDef
22616 //mt:const uint8(6)
22617 SpecialTiles [6]TileDef
22624 ConnectTo []Content
22625 InsideTint color.NRGBA
22626 Level uint8 // Must be < 128.
22628 Translucent bool // Sunlight is scattered and becomes normal light.
22629 Transparent bool // Sunlight isn't scattered.
22642 LiquidType LiquidType
22645 Viscosity uint8 // 0-7
22651 DrawBox, ColBox, SelBox NodeBox
22653 FootstepSnd, DiggingSnd, DugSnd SoundDef
22664 MoveResistance uint8
22666 LiquidMovePhysics bool
22667 }))(obj)).SelBox).deserialize(r)
22672 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22674 if err := pcall(func() {
22687 //mt:const uint8(6)
22689 OverlayTiles [6]TileDef
22690 //mt:const uint8(6)
22691 SpecialTiles [6]TileDef
22698 ConnectTo []Content
22699 InsideTint color.NRGBA
22700 Level uint8 // Must be < 128.
22702 Translucent bool // Sunlight is scattered and becomes normal light.
22703 Transparent bool // Sunlight isn't scattered.
22716 LiquidType LiquidType
22719 Viscosity uint8 // 0-7
22725 DrawBox, ColBox, SelBox NodeBox
22727 FootstepSnd, DiggingSnd, DugSnd SoundDef
22738 MoveResistance uint8
22740 LiquidMovePhysics bool
22741 }))(obj)).FootstepSnd).deserialize(r)
22746 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22748 if err := pcall(func() {
22761 //mt:const uint8(6)
22763 OverlayTiles [6]TileDef
22764 //mt:const uint8(6)
22765 SpecialTiles [6]TileDef
22772 ConnectTo []Content
22773 InsideTint color.NRGBA
22774 Level uint8 // Must be < 128.
22776 Translucent bool // Sunlight is scattered and becomes normal light.
22777 Transparent bool // Sunlight isn't scattered.
22790 LiquidType LiquidType
22793 Viscosity uint8 // 0-7
22799 DrawBox, ColBox, SelBox NodeBox
22801 FootstepSnd, DiggingSnd, DugSnd SoundDef
22812 MoveResistance uint8
22814 LiquidMovePhysics bool
22815 }))(obj)).DiggingSnd).deserialize(r)
22820 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22822 if err := pcall(func() {
22835 //mt:const uint8(6)
22837 OverlayTiles [6]TileDef
22838 //mt:const uint8(6)
22839 SpecialTiles [6]TileDef
22846 ConnectTo []Content
22847 InsideTint color.NRGBA
22848 Level uint8 // Must be < 128.
22850 Translucent bool // Sunlight is scattered and becomes normal light.
22851 Transparent bool // Sunlight isn't scattered.
22864 LiquidType LiquidType
22867 Viscosity uint8 // 0-7
22873 DrawBox, ColBox, SelBox NodeBox
22875 FootstepSnd, DiggingSnd, DugSnd SoundDef
22886 MoveResistance uint8
22888 LiquidMovePhysics bool
22889 }))(obj)).DugSnd).deserialize(r)
22894 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22897 p := &(*(*(struct {
22909 //mt:const uint8(6)
22911 OverlayTiles [6]TileDef
22912 //mt:const uint8(6)
22913 SpecialTiles [6]TileDef
22920 ConnectTo []Content
22921 InsideTint color.NRGBA
22922 Level uint8 // Must be < 128.
22924 Translucent bool // Sunlight is scattered and becomes normal light.
22925 Transparent bool // Sunlight isn't scattered.
22938 LiquidType LiquidType
22941 Viscosity uint8 // 0-7
22947 DrawBox, ColBox, SelBox NodeBox
22949 FootstepSnd, DiggingSnd, DugSnd SoundDef
22960 MoveResistance uint8
22962 LiquidMovePhysics bool
22963 }))(obj)).LegacyFaceDir
22964 switch n := read8(r); n {
22970 chk(fmt.Errorf("invalid bool: %d", n))
22974 p := &(*(*(struct {
22986 //mt:const uint8(6)
22988 OverlayTiles [6]TileDef
22989 //mt:const uint8(6)
22990 SpecialTiles [6]TileDef
22997 ConnectTo []Content
22998 InsideTint color.NRGBA
22999 Level uint8 // Must be < 128.
23001 Translucent bool // Sunlight is scattered and becomes normal light.
23002 Transparent bool // Sunlight isn't scattered.
23015 LiquidType LiquidType
23018 Viscosity uint8 // 0-7
23024 DrawBox, ColBox, SelBox NodeBox
23026 FootstepSnd, DiggingSnd, DugSnd SoundDef
23037 MoveResistance uint8
23039 LiquidMovePhysics bool
23040 }))(obj)).LegacyMounted
23041 switch n := read8(r); n {
23047 chk(fmt.Errorf("invalid bool: %d", n))
23050 var local267 []uint8
23051 var local268 uint16
23056 (local267) = make([]uint8, local268)
23058 _, err := io.ReadFull(r, (local267)[:])
23073 //mt:const uint8(6)
23075 OverlayTiles [6]TileDef
23076 //mt:const uint8(6)
23077 SpecialTiles [6]TileDef
23084 ConnectTo []Content
23085 InsideTint color.NRGBA
23086 Level uint8 // Must be < 128.
23088 Translucent bool // Sunlight is scattered and becomes normal light.
23089 Transparent bool // Sunlight isn't scattered.
23102 LiquidType LiquidType
23105 Viscosity uint8 // 0-7
23111 DrawBox, ColBox, SelBox NodeBox
23113 FootstepSnd, DiggingSnd, DugSnd SoundDef
23124 MoveResistance uint8
23126 LiquidMovePhysics bool
23127 }))(obj)).DigPredict) = string(local267)
23129 p := &(*(*(struct {
23141 //mt:const uint8(6)
23143 OverlayTiles [6]TileDef
23144 //mt:const uint8(6)
23145 SpecialTiles [6]TileDef
23152 ConnectTo []Content
23153 InsideTint color.NRGBA
23154 Level uint8 // Must be < 128.
23156 Translucent bool // Sunlight is scattered and becomes normal light.
23157 Transparent bool // Sunlight isn't scattered.
23170 LiquidType LiquidType
23173 Viscosity uint8 // 0-7
23179 DrawBox, ColBox, SelBox NodeBox
23181 FootstepSnd, DiggingSnd, DugSnd SoundDef
23192 MoveResistance uint8
23194 LiquidMovePhysics bool
23198 if err := pcall(func() {
23211 //mt:const uint8(6)
23213 OverlayTiles [6]TileDef
23214 //mt:const uint8(6)
23215 SpecialTiles [6]TileDef
23222 ConnectTo []Content
23223 InsideTint color.NRGBA
23224 Level uint8 // Must be < 128.
23226 Translucent bool // Sunlight is scattered and becomes normal light.
23227 Transparent bool // Sunlight isn't scattered.
23240 LiquidType LiquidType
23243 Viscosity uint8 // 0-7
23249 DrawBox, ColBox, SelBox NodeBox
23251 FootstepSnd, DiggingSnd, DugSnd SoundDef
23262 MoveResistance uint8
23264 LiquidMovePhysics bool
23265 }))(obj)).AlphaUse).deserialize(r)
23270 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
23273 p := &(*(*(struct {
23285 //mt:const uint8(6)
23287 OverlayTiles [6]TileDef
23288 //mt:const uint8(6)
23289 SpecialTiles [6]TileDef
23296 ConnectTo []Content
23297 InsideTint color.NRGBA
23298 Level uint8 // Must be < 128.
23300 Translucent bool // Sunlight is scattered and becomes normal light.
23301 Transparent bool // Sunlight isn't scattered.
23314 LiquidType LiquidType
23317 Viscosity uint8 // 0-7
23323 DrawBox, ColBox, SelBox NodeBox
23325 FootstepSnd, DiggingSnd, DugSnd SoundDef
23336 MoveResistance uint8
23338 LiquidMovePhysics bool
23339 }))(obj)).MoveResistance
23343 p := &(*(*(struct {
23355 //mt:const uint8(6)
23357 OverlayTiles [6]TileDef
23358 //mt:const uint8(6)
23359 SpecialTiles [6]TileDef
23366 ConnectTo []Content
23367 InsideTint color.NRGBA
23368 Level uint8 // Must be < 128.
23370 Translucent bool // Sunlight is scattered and becomes normal light.
23371 Transparent bool // Sunlight isn't scattered.
23384 LiquidType LiquidType
23387 Viscosity uint8 // 0-7
23393 DrawBox, ColBox, SelBox NodeBox
23395 FootstepSnd, DiggingSnd, DugSnd SoundDef
23406 MoveResistance uint8
23408 LiquidMovePhysics bool
23409 }))(obj)).LiquidMovePhysics
23410 switch n := read8(r); n {
23416 chk(fmt.Errorf("invalid bool: %d", n))
23420 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23425 func (obj *PointedNode) serialize(w io.Writer) {
23426 for local269 := range (*(*(struct {
23427 Under, Above [3]int16
23430 x := ((*(*(struct {
23431 Under, Above [3]int16
23432 }))(obj)).Under)[local269]
23433 write16(w, uint16(x))
23436 for local270 := range (*(*(struct {
23437 Under, Above [3]int16
23440 x := ((*(*(struct {
23441 Under, Above [3]int16
23442 }))(obj)).Above)[local270]
23443 write16(w, uint16(x))
23448 func (obj *PointedNode) deserialize(r io.Reader) {
23449 for local271 := range (*(*(struct {
23450 Under, Above [3]int16
23453 p := &((*(*(struct {
23454 Under, Above [3]int16
23455 }))(obj)).Under)[local271]
23456 *p = int16(read16(r))
23459 for local272 := range (*(*(struct {
23460 Under, Above [3]int16
23463 p := &((*(*(struct {
23464 Under, Above [3]int16
23465 }))(obj)).Above)[local272]
23466 *p = int16(read16(r))
23471 func (obj *PointedAO) serialize(w io.Writer) {
23472 if err := pcall(func() {
23475 }))(obj)).ID).serialize(w)
23480 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23484 func (obj *PointedAO) deserialize(r io.Reader) {
23485 if err := pcall(func() {
23488 }))(obj)).ID).deserialize(r)
23493 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23497 func (obj *CompressionModes) serialize(w io.Writer) {
23499 x := *(*(uint16))(obj)
23500 write16(w, uint16(x))
23504 func (obj *CompressionModes) deserialize(r io.Reader) {
23506 p := &*(*(uint16))(obj)
23511 func (obj *PlayerPos) serialize(w io.Writer) {
23512 for local273 := range (*(*(struct {
23513 Pos100, Vel100 [3]int32
23514 Pitch100, Yaw100 int32
23517 WantedRange uint8 // in MapBlks.
23520 x := ((*(*(struct {
23521 Pos100, Vel100 [3]int32
23522 Pitch100, Yaw100 int32
23525 WantedRange uint8 // in MapBlks.
23526 }))(obj)).Pos100)[local273]
23527 write32(w, uint32(x))
23530 for local274 := range (*(*(struct {
23531 Pos100, Vel100 [3]int32
23532 Pitch100, Yaw100 int32
23535 WantedRange uint8 // in MapBlks.
23538 x := ((*(*(struct {
23539 Pos100, Vel100 [3]int32
23540 Pitch100, Yaw100 int32
23543 WantedRange uint8 // in MapBlks.
23544 }))(obj)).Vel100)[local274]
23545 write32(w, uint32(x))
23550 Pos100, Vel100 [3]int32
23551 Pitch100, Yaw100 int32
23554 WantedRange uint8 // in MapBlks.
23556 write32(w, uint32(x))
23560 Pos100, Vel100 [3]int32
23561 Pitch100, Yaw100 int32
23564 WantedRange uint8 // in MapBlks.
23566 write32(w, uint32(x))
23568 if err := pcall(func() {
23570 Pos100, Vel100 [3]int32
23571 Pitch100, Yaw100 int32
23574 WantedRange uint8 // in MapBlks.
23575 }))(obj)).Keys).serialize(w)
23580 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23584 Pos100, Vel100 [3]int32
23585 Pitch100, Yaw100 int32
23588 WantedRange uint8 // in MapBlks.
23590 write8(w, uint8(x))
23594 Pos100, Vel100 [3]int32
23595 Pitch100, Yaw100 int32
23598 WantedRange uint8 // in MapBlks.
23599 }))(obj)).WantedRange
23600 write8(w, uint8(x))
23604 func (obj *PlayerPos) deserialize(r io.Reader) {
23605 for local275 := range (*(*(struct {
23606 Pos100, Vel100 [3]int32
23607 Pitch100, Yaw100 int32
23610 WantedRange uint8 // in MapBlks.
23613 p := &((*(*(struct {
23614 Pos100, Vel100 [3]int32
23615 Pitch100, Yaw100 int32
23618 WantedRange uint8 // in MapBlks.
23619 }))(obj)).Pos100)[local275]
23620 *p = int32(read32(r))
23623 for local276 := range (*(*(struct {
23624 Pos100, Vel100 [3]int32
23625 Pitch100, Yaw100 int32
23628 WantedRange uint8 // in MapBlks.
23631 p := &((*(*(struct {
23632 Pos100, Vel100 [3]int32
23633 Pitch100, Yaw100 int32
23636 WantedRange uint8 // in MapBlks.
23637 }))(obj)).Vel100)[local276]
23638 *p = int32(read32(r))
23642 p := &(*(*(struct {
23643 Pos100, Vel100 [3]int32
23644 Pitch100, Yaw100 int32
23647 WantedRange uint8 // in MapBlks.
23649 *p = int32(read32(r))
23652 p := &(*(*(struct {
23653 Pos100, Vel100 [3]int32
23654 Pitch100, Yaw100 int32
23657 WantedRange uint8 // in MapBlks.
23659 *p = int32(read32(r))
23661 if err := pcall(func() {
23663 Pos100, Vel100 [3]int32
23664 Pitch100, Yaw100 int32
23667 WantedRange uint8 // in MapBlks.
23668 }))(obj)).Keys).deserialize(r)
23673 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23676 p := &(*(*(struct {
23677 Pos100, Vel100 [3]int32
23678 Pitch100, Yaw100 int32
23681 WantedRange uint8 // in MapBlks.
23686 p := &(*(*(struct {
23687 Pos100, Vel100 [3]int32
23688 Pitch100, Yaw100 int32
23691 WantedRange uint8 // in MapBlks.
23692 }))(obj)).WantedRange
23697 func (obj *Interaction) serialize(w io.Writer) {
23699 x := *(*(uint8))(obj)
23700 write8(w, uint8(x))
23704 func (obj *Interaction) deserialize(r io.Reader) {
23706 p := &*(*(uint8))(obj)
23711 func (obj *SoundID) serialize(w io.Writer) {
23713 x := *(*(int32))(obj)
23714 write32(w, uint32(x))
23718 func (obj *SoundID) deserialize(r io.Reader) {
23720 p := &*(*(int32))(obj)
23721 *p = int32(read32(r))
23725 func (obj *Field) serialize(w io.Writer) {
23726 if len(([]byte((*(*(struct {
23731 }))(obj)).Name))) > math.MaxUint16 {
23735 x := uint16(len(([]byte((*(*(struct {
23741 write16(w, uint16(x))
23744 _, err := w.Write(([]byte((*(*(struct {
23749 }))(obj)).Name))[:])
23752 if len(([]byte((*(*(struct {
23757 }))(obj)).Value))) > math.MaxUint32 {
23761 x := uint32(len(([]byte((*(*(struct {
23766 }))(obj)).Value))))
23767 write32(w, uint32(x))
23770 _, err := w.Write(([]byte((*(*(struct {
23775 }))(obj)).Value))[:])
23780 func (obj *Field) deserialize(r io.Reader) {
23781 var local277 []uint8
23782 var local278 uint16
23787 (local277) = make([]uint8, local278)
23789 _, err := io.ReadFull(r, (local277)[:])
23797 }))(obj)).Name) = string(local277)
23798 var local279 []uint8
23799 var local280 uint32
23804 (local279) = make([]uint8, local280)
23806 _, err := io.ReadFull(r, (local279)[:])
23814 }))(obj)).Value) = string(local279)
23817 func (obj *AuthMethods) serialize(w io.Writer) {
23819 x := *(*(uint32))(obj)
23820 write32(w, uint32(x))
23824 func (obj *AuthMethods) deserialize(r io.Reader) {
23826 p := &*(*(uint32))(obj)
23831 func (obj *Pos) serialize(w io.Writer) {
23832 if err := pcall(func() {
23833 (*(*(Vec))(obj)).serialize(w)
23838 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23842 func (obj *Pos) deserialize(r io.Reader) {
23843 if err := pcall(func() {
23844 (*(*(Vec))(obj)).deserialize(r)
23849 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23853 func (obj *KickReason) serialize(w io.Writer) {
23855 x := *(*(uint8))(obj)
23856 write8(w, uint8(x))
23860 func (obj *KickReason) deserialize(r io.Reader) {
23862 p := &*(*(uint8))(obj)
23867 func (obj *MapBlk) serialize(w io.Writer) {
23868 if err := pcall(func() {
23871 LitFrom LitFromBlks
23873 Param0 [4096]Content
23877 NodeMetas map[uint16]*NodeMeta
23878 }))(obj)).Flags).serialize(w)
23883 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
23885 if err := pcall(func() {
23888 LitFrom LitFromBlks
23890 Param0 [4096]Content
23894 NodeMetas map[uint16]*NodeMeta
23895 }))(obj)).LitFrom).serialize(w)
23900 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
23903 local281 := uint8(2) // Size of param0 in bytes.
23906 write8(w, uint8(x))
23910 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23913 write8(w, uint8(x))
23916 for local283 := range (*(*(struct {
23918 LitFrom LitFromBlks
23920 Param0 [4096]Content
23924 NodeMetas map[uint16]*NodeMeta
23926 if err := pcall(func() {
23929 LitFrom LitFromBlks
23931 Param0 [4096]Content
23935 NodeMetas map[uint16]*NodeMeta
23936 }))(obj)).Param0)[local283]).serialize(w)
23941 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23945 _, err := w.Write(((*(*(struct {
23947 LitFrom LitFromBlks
23949 Param0 [4096]Content
23953 NodeMetas map[uint16]*NodeMeta
23954 }))(obj)).Param1)[:])
23958 _, err := w.Write(((*(*(struct {
23960 LitFrom LitFromBlks
23962 Param0 [4096]Content
23966 NodeMetas map[uint16]*NodeMeta
23967 }))(obj)).Param2)[:])
23973 LitFrom LitFromBlks
23975 Param0 [4096]Content
23979 NodeMetas map[uint16]*NodeMeta
23980 }))(obj)).NodeMetas
23986 // len(map[uint16]...) always < math.MaxUint16
23987 write16(w, uint16(len(x)))
23988 keys := make([]uint16, 0, len(x))
23989 for key := range x {
23990 keys = append(keys, key)
23992 sort.Slice(keys, func(i, j int) bool {
23993 i2pos := func(i int) [3]int16 {
23994 return Blkpos2Pos([3]int16{}, keys[i])
23996 p, q := i2pos(i), i2pos(j)
24007 for _, key := range keys {
24009 chk(serialize(w, x[key]))
24016 func (obj *MapBlk) deserialize(r io.Reader) {
24017 if err := pcall(func() {
24020 LitFrom LitFromBlks
24022 Param0 [4096]Content
24026 NodeMetas map[uint16]*NodeMeta
24027 }))(obj)).Flags).deserialize(r)
24032 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
24034 if err := pcall(func() {
24037 LitFrom LitFromBlks
24039 Param0 [4096]Content
24043 NodeMetas map[uint16]*NodeMeta
24044 }))(obj)).LitFrom).deserialize(r)
24049 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
24053 local285 := uint8(2) // Size of param0 in bytes.
24058 if local284 != local285 {
24059 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local284))
24064 local287 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
24069 if local286 != local287 {
24070 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local286))
24073 for local288 := range (*(*(struct {
24075 LitFrom LitFromBlks
24077 Param0 [4096]Content
24081 NodeMetas map[uint16]*NodeMeta
24083 if err := pcall(func() {
24086 LitFrom LitFromBlks
24088 Param0 [4096]Content
24092 NodeMetas map[uint16]*NodeMeta
24093 }))(obj)).Param0)[local288]).deserialize(r)
24098 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24102 _, err := io.ReadFull(r, ((*(*(struct {
24104 LitFrom LitFromBlks
24106 Param0 [4096]Content
24110 NodeMetas map[uint16]*NodeMeta
24111 }))(obj)).Param1)[:])
24115 _, err := io.ReadFull(r, ((*(*(struct {
24117 LitFrom LitFromBlks
24119 Param0 [4096]Content
24123 NodeMetas map[uint16]*NodeMeta
24124 }))(obj)).Param2)[:])
24128 p := &(*(*(struct {
24130 LitFrom LitFromBlks
24132 Param0 [4096]Content
24136 NodeMetas map[uint16]*NodeMeta
24137 }))(obj)).NodeMetas
24139 switch ver := read8(r); ver {
24144 *p = make(map[uint16]*NodeMeta, n)
24147 nm := new(NodeMeta)
24148 chk(deserialize(r, nm))
24152 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
24158 func (obj *Node) serialize(w io.Writer) {
24159 if err := pcall(func() {
24162 Param1, Param2 uint8
24163 }))(obj)).Param0).serialize(w)
24168 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24173 Param1, Param2 uint8
24175 write8(w, uint8(x))
24180 Param1, Param2 uint8
24182 write8(w, uint8(x))
24186 func (obj *Node) deserialize(r io.Reader) {
24187 if err := pcall(func() {
24190 Param1, Param2 uint8
24191 }))(obj)).Param0).deserialize(r)
24196 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24199 p := &(*(*(struct {
24201 Param1, Param2 uint8
24206 p := &(*(*(struct {
24208 Param1, Param2 uint8
24214 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
24216 x := *(*(uint64))(obj)
24217 write64(w, uint64(x))
24221 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
24223 p := &*(*(uint64))(obj)
24228 func (obj *Vec) serialize(w io.Writer) {
24229 for local289 := range *(*([3]float32))(obj) {
24231 x := (*(*([3]float32))(obj))[local289]
24232 write32(w, math.Float32bits(x))
24237 func (obj *Vec) deserialize(r io.Reader) {
24238 for local290 := range *(*([3]float32))(obj) {
24240 p := &(*(*([3]float32))(obj))[local290]
24241 *p = math.Float32frombits(read32(r))
24246 func (obj *ChatMsgType) serialize(w io.Writer) {
24248 x := *(*(uint8))(obj)
24249 write8(w, uint8(x))
24253 func (obj *ChatMsgType) deserialize(r io.Reader) {
24255 p := &*(*(uint8))(obj)
24260 func (obj *AOID) serialize(w io.Writer) {
24262 x := *(*(uint16))(obj)
24263 write16(w, uint16(x))
24267 func (obj *AOID) deserialize(r io.Reader) {
24269 p := &*(*(uint16))(obj)
24274 func (obj *AOAdd) serialize(w io.Writer) {
24275 if err := pcall(func() {
24278 //mt:const genericCAO
24280 InitData AOInitData
24281 }))(obj)).ID).serialize(w)
24286 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24289 local291 := genericCAO
24290 if err := pcall(func() {
24291 (local291).serialize(w)
24296 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24301 w := new(bytes.Buffer)
24302 if err := pcall(func() {
24305 //mt:const genericCAO
24307 InitData AOInitData
24308 }))(obj)).InitData).serialize(w)
24313 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24318 if len((buf.Bytes())) > math.MaxUint32 {
24322 x := uint32(len((buf.Bytes())))
24323 write32(w, uint32(x))
24326 _, err := w.Write((buf.Bytes())[:])
24333 func (obj *AOAdd) deserialize(r io.Reader) {
24334 if err := pcall(func() {
24337 //mt:const genericCAO
24339 InitData AOInitData
24340 }))(obj)).ID).deserialize(r)
24345 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24348 var local292 aoType
24349 local293 := genericCAO
24350 if err := pcall(func() {
24351 (local292).deserialize(r)
24356 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24358 if local292 != local293 {
24359 chk(fmt.Errorf("const %v: %v", "genericCAO", local292))
24368 r := &io.LimitedReader{R: r, N: int64(n)}
24369 if err := pcall(func() {
24372 //mt:const genericCAO
24374 InitData AOInitData
24375 }))(obj)).InitData).deserialize(r)
24380 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24383 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24388 func (obj *IDAOMsg) serialize(w io.Writer) {
24389 if err := pcall(func() {
24394 }))(obj)).ID).serialize(w)
24399 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24403 w := new(bytes.Buffer)
24415 if len((buf.Bytes())) > math.MaxUint16 {
24419 x := uint16(len((buf.Bytes())))
24420 write16(w, uint16(x))
24423 _, err := w.Write((buf.Bytes())[:])
24430 func (obj *IDAOMsg) deserialize(r io.Reader) {
24431 if err := pcall(func() {
24436 }))(obj)).ID).deserialize(r)
24441 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24449 r := &io.LimitedReader{R: r, N: int64(n)}
24451 p := &(*(*(struct {
24458 *p, err = readAOMsg(r)
24463 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24468 func (obj *ItemDef) serialize(w io.Writer) {
24471 w := new(bytes.Buffer)
24473 local294 := uint8(6)
24476 write8(w, uint8(x))
24479 if err := pcall(func() {
24485 InvImg, WieldImg Texture
24486 WieldScale [3]float32
24491 CanPointLiquids bool
24497 PlacePredict string
24499 PlaceSnd, PlaceFailSnd SoundDef
24503 // Set index in Palette with "palette_index" item meta field,
24504 // this overrides Color.
24508 // Texture overlays.
24509 InvOverlay, WieldOverlay Texture
24514 }))(obj)).Type).serialize(w)
24519 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
24521 if len(([]byte((*(*(struct {
24526 InvImg, WieldImg Texture
24527 WieldScale [3]float32
24532 CanPointLiquids bool
24538 PlacePredict string
24540 PlaceSnd, PlaceFailSnd SoundDef
24544 // Set index in Palette with "palette_index" item meta field,
24545 // this overrides Color.
24549 // Texture overlays.
24550 InvOverlay, WieldOverlay Texture
24555 }))(obj)).Name))) > math.MaxUint16 {
24559 x := uint16(len(([]byte((*(*(struct {
24564 InvImg, WieldImg Texture
24565 WieldScale [3]float32
24570 CanPointLiquids bool
24576 PlacePredict string
24578 PlaceSnd, PlaceFailSnd SoundDef
24582 // Set index in Palette with "palette_index" item meta field,
24583 // this overrides Color.
24587 // Texture overlays.
24588 InvOverlay, WieldOverlay Texture
24594 write16(w, uint16(x))
24597 _, err := w.Write(([]byte((*(*(struct {
24602 InvImg, WieldImg Texture
24603 WieldScale [3]float32
24608 CanPointLiquids bool
24614 PlacePredict string
24616 PlaceSnd, PlaceFailSnd SoundDef
24620 // Set index in Palette with "palette_index" item meta field,
24621 // this overrides Color.
24625 // Texture overlays.
24626 InvOverlay, WieldOverlay Texture
24631 }))(obj)).Name))[:])
24634 if len(([]byte((*(*(struct {
24639 InvImg, WieldImg Texture
24640 WieldScale [3]float32
24645 CanPointLiquids bool
24651 PlacePredict string
24653 PlaceSnd, PlaceFailSnd SoundDef
24657 // Set index in Palette with "palette_index" item meta field,
24658 // this overrides Color.
24662 // Texture overlays.
24663 InvOverlay, WieldOverlay Texture
24668 }))(obj)).Desc))) > math.MaxUint16 {
24672 x := uint16(len(([]byte((*(*(struct {
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
24707 write16(w, uint16(x))
24710 _, err := w.Write(([]byte((*(*(struct {
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)).Desc))[:])
24747 if err := pcall(func() {
24753 InvImg, WieldImg Texture
24754 WieldScale [3]float32
24759 CanPointLiquids bool
24765 PlacePredict string
24767 PlaceSnd, PlaceFailSnd SoundDef
24771 // Set index in Palette with "palette_index" item meta field,
24772 // this overrides Color.
24776 // Texture overlays.
24777 InvOverlay, WieldOverlay Texture
24782 }))(obj)).InvImg).serialize(w)
24787 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
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)).WieldImg).serialize(w)
24829 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24831 for local295 := range (*(*(struct {
24836 InvImg, WieldImg Texture
24837 WieldScale [3]float32
24842 CanPointLiquids bool
24848 PlacePredict string
24850 PlaceSnd, PlaceFailSnd SoundDef
24854 // Set index in Palette with "palette_index" item meta field,
24855 // this overrides Color.
24859 // Texture overlays.
24860 InvOverlay, WieldOverlay Texture
24865 }))(obj)).WieldScale {
24867 x := ((*(*(struct {
24872 InvImg, WieldImg Texture
24873 WieldScale [3]float32
24878 CanPointLiquids bool
24884 PlacePredict string
24886 PlaceSnd, PlaceFailSnd SoundDef
24890 // Set index in Palette with "palette_index" item meta field,
24891 // this overrides Color.
24895 // Texture overlays.
24896 InvOverlay, WieldOverlay Texture
24901 }))(obj)).WieldScale)[local295]
24902 write32(w, math.Float32bits(x))
24911 InvImg, WieldImg Texture
24912 WieldScale [3]float32
24917 CanPointLiquids bool
24923 PlacePredict string
24925 PlaceSnd, PlaceFailSnd SoundDef
24929 // Set index in Palette with "palette_index" item meta field,
24930 // this overrides Color.
24934 // Texture overlays.
24935 InvOverlay, WieldOverlay Texture
24941 write16(w, uint16(x))
24949 InvImg, WieldImg Texture
24950 WieldScale [3]float32
24955 CanPointLiquids bool
24961 PlacePredict string
24963 PlaceSnd, PlaceFailSnd SoundDef
24967 // Set index in Palette with "palette_index" item meta field,
24968 // this overrides Color.
24972 // Texture overlays.
24973 InvOverlay, WieldOverlay Texture
24991 InvImg, WieldImg Texture
24992 WieldScale [3]float32
24997 CanPointLiquids bool
25003 PlacePredict string
25005 PlaceSnd, PlaceFailSnd SoundDef
25009 // Set index in Palette with "palette_index" item meta field,
25010 // this overrides Color.
25014 // Texture overlays.
25015 InvOverlay, WieldOverlay Texture
25020 }))(obj)).CanPointLiquids
25027 if err := pcall(func() {
25033 InvImg, WieldImg Texture
25034 WieldScale [3]float32
25039 CanPointLiquids bool
25045 PlacePredict string
25047 PlaceSnd, PlaceFailSnd SoundDef
25051 // Set index in Palette with "palette_index" item meta field,
25052 // this overrides Color.
25056 // Texture overlays.
25057 InvOverlay, WieldOverlay Texture
25062 }))(obj)).ToolCaps).serialize(w)
25067 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
25069 if len(((*(*(struct {
25074 InvImg, WieldImg Texture
25075 WieldScale [3]float32
25080 CanPointLiquids bool
25086 PlacePredict string
25088 PlaceSnd, PlaceFailSnd SoundDef
25092 // Set index in Palette with "palette_index" item meta field,
25093 // this overrides Color.
25097 // Texture overlays.
25098 InvOverlay, WieldOverlay Texture
25103 }))(obj)).Groups)) > math.MaxUint16 {
25107 x := uint16(len(((*(*(struct {
25112 InvImg, WieldImg Texture
25113 WieldScale [3]float32
25118 CanPointLiquids bool
25124 PlacePredict string
25126 PlaceSnd, PlaceFailSnd SoundDef
25130 // Set index in Palette with "palette_index" item meta field,
25131 // this overrides Color.
25135 // Texture overlays.
25136 InvOverlay, WieldOverlay Texture
25141 }))(obj)).Groups)))
25142 write16(w, uint16(x))
25144 for local296 := range (*(*(struct {
25149 InvImg, WieldImg Texture
25150 WieldScale [3]float32
25155 CanPointLiquids bool
25161 PlacePredict string
25163 PlaceSnd, PlaceFailSnd SoundDef
25167 // Set index in Palette with "palette_index" item meta field,
25168 // this overrides Color.
25172 // Texture overlays.
25173 InvOverlay, WieldOverlay Texture
25179 if err := pcall(func() {
25185 InvImg, WieldImg Texture
25186 WieldScale [3]float32
25191 CanPointLiquids bool
25197 PlacePredict string
25199 PlaceSnd, PlaceFailSnd SoundDef
25203 // Set index in Palette with "palette_index" item meta field,
25204 // this overrides Color.
25208 // Texture overlays.
25209 InvOverlay, WieldOverlay Texture
25214 }))(obj)).Groups)[local296]).serialize(w)
25219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
25222 if len(([]byte((*(*(struct {
25227 InvImg, WieldImg Texture
25228 WieldScale [3]float32
25233 CanPointLiquids bool
25239 PlacePredict string
25241 PlaceSnd, PlaceFailSnd SoundDef
25245 // Set index in Palette with "palette_index" item meta field,
25246 // this overrides Color.
25250 // Texture overlays.
25251 InvOverlay, WieldOverlay Texture
25256 }))(obj)).PlacePredict))) > math.MaxUint16 {
25260 x := uint16(len(([]byte((*(*(struct {
25265 InvImg, WieldImg Texture
25266 WieldScale [3]float32
25271 CanPointLiquids bool
25277 PlacePredict string
25279 PlaceSnd, PlaceFailSnd SoundDef
25283 // Set index in Palette with "palette_index" item meta field,
25284 // this overrides Color.
25288 // Texture overlays.
25289 InvOverlay, WieldOverlay Texture
25294 }))(obj)).PlacePredict))))
25295 write16(w, uint16(x))
25298 _, err := w.Write(([]byte((*(*(struct {
25303 InvImg, WieldImg Texture
25304 WieldScale [3]float32
25309 CanPointLiquids bool
25315 PlacePredict string
25317 PlaceSnd, PlaceFailSnd SoundDef
25321 // Set index in Palette with "palette_index" item meta field,
25322 // this overrides Color.
25326 // Texture overlays.
25327 InvOverlay, WieldOverlay Texture
25332 }))(obj)).PlacePredict))[:])
25335 if err := pcall(func() {
25341 InvImg, WieldImg Texture
25342 WieldScale [3]float32
25347 CanPointLiquids bool
25353 PlacePredict string
25355 PlaceSnd, PlaceFailSnd SoundDef
25359 // Set index in Palette with "palette_index" item meta field,
25360 // this overrides Color.
25364 // Texture overlays.
25365 InvOverlay, WieldOverlay Texture
25370 }))(obj)).PlaceSnd).serialize(w)
25375 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25377 if err := pcall(func() {
25383 InvImg, WieldImg Texture
25384 WieldScale [3]float32
25389 CanPointLiquids bool
25395 PlacePredict string
25397 PlaceSnd, PlaceFailSnd SoundDef
25401 // Set index in Palette with "palette_index" item meta field,
25402 // this overrides Color.
25406 // Texture overlays.
25407 InvOverlay, WieldOverlay Texture
25412 }))(obj)).PlaceFailSnd).serialize(w)
25417 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25425 InvImg, WieldImg Texture
25426 WieldScale [3]float32
25431 CanPointLiquids bool
25437 PlacePredict string
25439 PlaceSnd, PlaceFailSnd SoundDef
25443 // Set index in Palette with "palette_index" item meta field,
25444 // this overrides Color.
25448 // Texture overlays.
25449 InvOverlay, WieldOverlay Texture
25454 }))(obj)).PointRange
25455 write32(w, math.Float32bits(x))
25457 if err := pcall(func() {
25463 InvImg, WieldImg Texture
25464 WieldScale [3]float32
25469 CanPointLiquids bool
25475 PlacePredict string
25477 PlaceSnd, PlaceFailSnd SoundDef
25481 // Set index in Palette with "palette_index" item meta field,
25482 // this overrides Color.
25486 // Texture overlays.
25487 InvOverlay, WieldOverlay Texture
25492 }))(obj)).Palette).serialize(w)
25497 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25505 InvImg, WieldImg Texture
25506 WieldScale [3]float32
25511 CanPointLiquids bool
25517 PlacePredict string
25519 PlaceSnd, PlaceFailSnd SoundDef
25523 // Set index in Palette with "palette_index" item meta field,
25524 // this overrides Color.
25528 // Texture overlays.
25529 InvOverlay, WieldOverlay Texture
25535 w.Write([]byte{x.A, x.R, x.G, x.B})
25537 if err := pcall(func() {
25543 InvImg, WieldImg Texture
25544 WieldScale [3]float32
25549 CanPointLiquids bool
25555 PlacePredict string
25557 PlaceSnd, PlaceFailSnd SoundDef
25561 // Set index in Palette with "palette_index" item meta field,
25562 // this overrides Color.
25566 // Texture overlays.
25567 InvOverlay, WieldOverlay Texture
25572 }))(obj)).InvOverlay).serialize(w)
25577 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25579 if err := pcall(func() {
25585 InvImg, WieldImg Texture
25586 WieldScale [3]float32
25591 CanPointLiquids bool
25597 PlacePredict string
25599 PlaceSnd, PlaceFailSnd SoundDef
25603 // Set index in Palette with "palette_index" item meta field,
25604 // this overrides Color.
25608 // Texture overlays.
25609 InvOverlay, WieldOverlay Texture
25614 }))(obj)).WieldOverlay).serialize(w)
25619 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25621 if len(([]byte((*(*(struct {
25626 InvImg, WieldImg Texture
25627 WieldScale [3]float32
25632 CanPointLiquids bool
25638 PlacePredict string
25640 PlaceSnd, PlaceFailSnd SoundDef
25644 // Set index in Palette with "palette_index" item meta field,
25645 // this overrides Color.
25649 // Texture overlays.
25650 InvOverlay, WieldOverlay Texture
25655 }))(obj)).ShortDesc))) > math.MaxUint16 {
25659 x := uint16(len(([]byte((*(*(struct {
25664 InvImg, WieldImg Texture
25665 WieldScale [3]float32
25670 CanPointLiquids bool
25676 PlacePredict string
25678 PlaceSnd, PlaceFailSnd SoundDef
25682 // Set index in Palette with "palette_index" item meta field,
25683 // this overrides Color.
25687 // Texture overlays.
25688 InvOverlay, WieldOverlay Texture
25693 }))(obj)).ShortDesc))))
25694 write16(w, uint16(x))
25697 _, err := w.Write(([]byte((*(*(struct {
25702 InvImg, WieldImg Texture
25703 WieldScale [3]float32
25708 CanPointLiquids bool
25714 PlacePredict string
25716 PlaceSnd, PlaceFailSnd SoundDef
25720 // Set index in Palette with "palette_index" item meta field,
25721 // this overrides Color.
25725 // Texture overlays.
25726 InvOverlay, WieldOverlay Texture
25731 }))(obj)).ShortDesc))[:])
25740 InvImg, WieldImg Texture
25741 WieldScale [3]float32
25746 CanPointLiquids bool
25752 PlacePredict string
25754 PlaceSnd, PlaceFailSnd SoundDef
25758 // Set index in Palette with "palette_index" item meta field,
25759 // this overrides Color.
25763 // Texture overlays.
25764 InvOverlay, WieldOverlay Texture
25769 }))(obj)).PlaceParam2
25770 write8(w, uint8(x))
25775 if len((buf.Bytes())) > math.MaxUint16 {
25779 x := uint16(len((buf.Bytes())))
25780 write16(w, uint16(x))
25783 _, err := w.Write((buf.Bytes())[:])
25790 func (obj *ItemDef) deserialize(r io.Reader) {
25797 r := &io.LimitedReader{R: r, N: int64(n)}
25800 local298 := uint8(6)
25805 if local297 != local298 {
25806 chk(fmt.Errorf("const %v: %v", "uint8(6)", local297))
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)).Type).deserialize(r)
25849 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
25851 var local299 []uint8
25852 var local300 uint16
25857 (local299) = make([]uint8, local300)
25859 _, err := io.ReadFull(r, (local299)[:])
25867 InvImg, WieldImg Texture
25868 WieldScale [3]float32
25873 CanPointLiquids bool
25879 PlacePredict string
25881 PlaceSnd, PlaceFailSnd SoundDef
25885 // Set index in Palette with "palette_index" item meta field,
25886 // this overrides Color.
25890 // Texture overlays.
25891 InvOverlay, WieldOverlay Texture
25896 }))(obj)).Name) = string(local299)
25897 var local301 []uint8
25898 var local302 uint16
25903 (local301) = make([]uint8, local302)
25905 _, err := io.ReadFull(r, (local301)[:])
25913 InvImg, WieldImg Texture
25914 WieldScale [3]float32
25919 CanPointLiquids bool
25925 PlacePredict string
25927 PlaceSnd, PlaceFailSnd SoundDef
25931 // Set index in Palette with "palette_index" item meta field,
25932 // this overrides Color.
25936 // Texture overlays.
25937 InvOverlay, WieldOverlay Texture
25942 }))(obj)).Desc) = string(local301)
25943 if err := pcall(func() {
25949 InvImg, WieldImg Texture
25950 WieldScale [3]float32
25955 CanPointLiquids bool
25961 PlacePredict string
25963 PlaceSnd, PlaceFailSnd SoundDef
25967 // Set index in Palette with "palette_index" item meta field,
25968 // this overrides Color.
25972 // Texture overlays.
25973 InvOverlay, WieldOverlay Texture
25978 }))(obj)).InvImg).deserialize(r)
25983 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25985 if err := pcall(func() {
25991 InvImg, WieldImg Texture
25992 WieldScale [3]float32
25997 CanPointLiquids bool
26003 PlacePredict string
26005 PlaceSnd, PlaceFailSnd SoundDef
26009 // Set index in Palette with "palette_index" item meta field,
26010 // this overrides Color.
26014 // Texture overlays.
26015 InvOverlay, WieldOverlay Texture
26020 }))(obj)).WieldImg).deserialize(r)
26025 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26027 for local303 := range (*(*(struct {
26032 InvImg, WieldImg Texture
26033 WieldScale [3]float32
26038 CanPointLiquids bool
26044 PlacePredict string
26046 PlaceSnd, PlaceFailSnd SoundDef
26050 // Set index in Palette with "palette_index" item meta field,
26051 // this overrides Color.
26055 // Texture overlays.
26056 InvOverlay, WieldOverlay Texture
26061 }))(obj)).WieldScale {
26063 p := &((*(*(struct {
26068 InvImg, WieldImg Texture
26069 WieldScale [3]float32
26074 CanPointLiquids bool
26080 PlacePredict string
26082 PlaceSnd, PlaceFailSnd SoundDef
26086 // Set index in Palette with "palette_index" item meta field,
26087 // this overrides Color.
26091 // Texture overlays.
26092 InvOverlay, WieldOverlay Texture
26097 }))(obj)).WieldScale)[local303]
26098 *p = math.Float32frombits(read32(r))
26102 p := &(*(*(struct {
26107 InvImg, WieldImg Texture
26108 WieldScale [3]float32
26113 CanPointLiquids bool
26119 PlacePredict string
26121 PlaceSnd, PlaceFailSnd SoundDef
26125 // Set index in Palette with "palette_index" item meta field,
26126 // this overrides Color.
26130 // Texture overlays.
26131 InvOverlay, WieldOverlay Texture
26140 p := &(*(*(struct {
26145 InvImg, WieldImg Texture
26146 WieldScale [3]float32
26151 CanPointLiquids bool
26157 PlacePredict string
26159 PlaceSnd, PlaceFailSnd SoundDef
26163 // Set index in Palette with "palette_index" item meta field,
26164 // this overrides Color.
26168 // Texture overlays.
26169 InvOverlay, WieldOverlay Texture
26175 switch n := read8(r); n {
26181 chk(fmt.Errorf("invalid bool: %d", n))
26185 p := &(*(*(struct {
26190 InvImg, WieldImg Texture
26191 WieldScale [3]float32
26196 CanPointLiquids bool
26202 PlacePredict string
26204 PlaceSnd, PlaceFailSnd SoundDef
26208 // Set index in Palette with "palette_index" item meta field,
26209 // this overrides Color.
26213 // Texture overlays.
26214 InvOverlay, WieldOverlay Texture
26219 }))(obj)).CanPointLiquids
26220 switch n := read8(r); n {
26226 chk(fmt.Errorf("invalid bool: %d", n))
26229 if err := pcall(func() {
26235 InvImg, WieldImg Texture
26236 WieldScale [3]float32
26241 CanPointLiquids bool
26247 PlacePredict string
26249 PlaceSnd, PlaceFailSnd SoundDef
26253 // Set index in Palette with "palette_index" item meta field,
26254 // this overrides Color.
26258 // Texture overlays.
26259 InvOverlay, WieldOverlay Texture
26264 }))(obj)).ToolCaps).deserialize(r)
26269 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
26271 var local304 uint16
26281 InvImg, WieldImg Texture
26282 WieldScale [3]float32
26287 CanPointLiquids bool
26293 PlacePredict string
26295 PlaceSnd, PlaceFailSnd SoundDef
26299 // Set index in Palette with "palette_index" item meta field,
26300 // this overrides Color.
26304 // Texture overlays.
26305 InvOverlay, WieldOverlay Texture
26310 }))(obj)).Groups) = make([]Group, local304)
26311 for local305 := range (*(*(struct {
26316 InvImg, WieldImg Texture
26317 WieldScale [3]float32
26322 CanPointLiquids bool
26328 PlacePredict string
26330 PlaceSnd, PlaceFailSnd SoundDef
26334 // Set index in Palette with "palette_index" item meta field,
26335 // this overrides Color.
26339 // Texture overlays.
26340 InvOverlay, WieldOverlay Texture
26346 if err := pcall(func() {
26352 InvImg, WieldImg Texture
26353 WieldScale [3]float32
26358 CanPointLiquids bool
26364 PlacePredict string
26366 PlaceSnd, PlaceFailSnd SoundDef
26370 // Set index in Palette with "palette_index" item meta field,
26371 // this overrides Color.
26375 // Texture overlays.
26376 InvOverlay, WieldOverlay Texture
26381 }))(obj)).Groups)[local305]).deserialize(r)
26386 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
26389 var local306 []uint8
26390 var local307 uint16
26395 (local306) = make([]uint8, local307)
26397 _, err := io.ReadFull(r, (local306)[:])
26405 InvImg, WieldImg Texture
26406 WieldScale [3]float32
26411 CanPointLiquids bool
26417 PlacePredict string
26419 PlaceSnd, PlaceFailSnd SoundDef
26423 // Set index in Palette with "palette_index" item meta field,
26424 // this overrides Color.
26428 // Texture overlays.
26429 InvOverlay, WieldOverlay Texture
26434 }))(obj)).PlacePredict) = string(local306)
26435 if err := pcall(func() {
26441 InvImg, WieldImg Texture
26442 WieldScale [3]float32
26447 CanPointLiquids bool
26453 PlacePredict string
26455 PlaceSnd, PlaceFailSnd SoundDef
26459 // Set index in Palette with "palette_index" item meta field,
26460 // this overrides Color.
26464 // Texture overlays.
26465 InvOverlay, WieldOverlay Texture
26470 }))(obj)).PlaceSnd).deserialize(r)
26475 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26477 if err := pcall(func() {
26483 InvImg, WieldImg Texture
26484 WieldScale [3]float32
26489 CanPointLiquids bool
26495 PlacePredict string
26497 PlaceSnd, PlaceFailSnd SoundDef
26501 // Set index in Palette with "palette_index" item meta field,
26502 // this overrides Color.
26506 // Texture overlays.
26507 InvOverlay, WieldOverlay Texture
26512 }))(obj)).PlaceFailSnd).deserialize(r)
26517 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26520 p := &(*(*(struct {
26525 InvImg, WieldImg Texture
26526 WieldScale [3]float32
26531 CanPointLiquids bool
26537 PlacePredict string
26539 PlaceSnd, PlaceFailSnd SoundDef
26543 // Set index in Palette with "palette_index" item meta field,
26544 // this overrides Color.
26548 // Texture overlays.
26549 InvOverlay, WieldOverlay Texture
26554 }))(obj)).PointRange
26555 *p = math.Float32frombits(read32(r))
26557 if err := pcall(func() {
26563 InvImg, WieldImg Texture
26564 WieldScale [3]float32
26569 CanPointLiquids bool
26575 PlacePredict string
26577 PlaceSnd, PlaceFailSnd SoundDef
26581 // Set index in Palette with "palette_index" item meta field,
26582 // this overrides Color.
26586 // Texture overlays.
26587 InvOverlay, WieldOverlay Texture
26592 }))(obj)).Palette).deserialize(r)
26597 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26600 p := &(*(*(struct {
26605 InvImg, WieldImg Texture
26606 WieldScale [3]float32
26611 CanPointLiquids bool
26617 PlacePredict string
26619 PlaceSnd, PlaceFailSnd SoundDef
26623 // Set index in Palette with "palette_index" item meta field,
26624 // this overrides Color.
26628 // Texture overlays.
26629 InvOverlay, WieldOverlay Texture
26635 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
26637 if err := pcall(func() {
26643 InvImg, WieldImg Texture
26644 WieldScale [3]float32
26649 CanPointLiquids bool
26655 PlacePredict string
26657 PlaceSnd, PlaceFailSnd SoundDef
26661 // Set index in Palette with "palette_index" item meta field,
26662 // this overrides Color.
26666 // Texture overlays.
26667 InvOverlay, WieldOverlay Texture
26672 }))(obj)).InvOverlay).deserialize(r)
26677 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26679 if err := pcall(func() {
26685 InvImg, WieldImg Texture
26686 WieldScale [3]float32
26691 CanPointLiquids bool
26697 PlacePredict string
26699 PlaceSnd, PlaceFailSnd SoundDef
26703 // Set index in Palette with "palette_index" item meta field,
26704 // this overrides Color.
26708 // Texture overlays.
26709 InvOverlay, WieldOverlay Texture
26714 }))(obj)).WieldOverlay).deserialize(r)
26719 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26721 var local308 []uint8
26722 var local309 uint16
26727 (local308) = make([]uint8, local309)
26729 _, err := io.ReadFull(r, (local308)[:])
26737 InvImg, WieldImg Texture
26738 WieldScale [3]float32
26743 CanPointLiquids bool
26749 PlacePredict string
26751 PlaceSnd, PlaceFailSnd SoundDef
26755 // Set index in Palette with "palette_index" item meta field,
26756 // this overrides Color.
26760 // Texture overlays.
26761 InvOverlay, WieldOverlay Texture
26766 }))(obj)).ShortDesc) = string(local308)
26768 p := &(*(*(struct {
26773 InvImg, WieldImg Texture
26774 WieldScale [3]float32
26779 CanPointLiquids bool
26785 PlacePredict string
26787 PlaceSnd, PlaceFailSnd SoundDef
26791 // Set index in Palette with "palette_index" item meta field,
26792 // this overrides Color.
26796 // Texture overlays.
26797 InvOverlay, WieldOverlay Texture
26802 }))(obj)).PlaceParam2
26806 chk(fmt.Errorf("%d bytes of trailing data", r.N))
26811 func (obj *SoundSrcType) serialize(w io.Writer) {
26813 x := *(*(uint8))(obj)
26814 write8(w, uint8(x))
26818 func (obj *SoundSrcType) deserialize(r io.Reader) {
26820 p := &*(*(uint8))(obj)
26825 func (obj *TileAnim) serialize(w io.Writer) {
26826 if err := pcall(func() {
26830 //mt:if %s.Type == SpriteSheetAnim
26831 AspectRatio [2]uint8
26833 //mt:if %s.Type == VerticalFrameAnim
26836 //mt:if %s.Type != NoAnim
26837 Duration float32 // in seconds
26839 }))(obj)).Type).serialize(w)
26844 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26849 //mt:if %s.Type == SpriteSheetAnim
26850 AspectRatio [2]uint8
26852 //mt:if %s.Type == VerticalFrameAnim
26855 //mt:if %s.Type != NoAnim
26856 Duration float32 // in seconds
26858 }))(obj)).Type < maxAnim) {
26859 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26864 //mt:if %s.Type == SpriteSheetAnim
26865 AspectRatio [2]uint8
26867 //mt:if %s.Type == VerticalFrameAnim
26870 //mt:if %s.Type != NoAnim
26871 Duration float32 // in seconds
26873 }))(obj)).Type == SpriteSheetAnim {
26875 _, err := w.Write(((*(*(struct {
26878 //mt:if %s.Type == SpriteSheetAnim
26879 AspectRatio [2]uint8
26881 //mt:if %s.Type == VerticalFrameAnim
26884 //mt:if %s.Type != NoAnim
26885 Duration float32 // in seconds
26887 }))(obj)).AspectRatio)[:])
26894 //mt:if %s.Type == SpriteSheetAnim
26895 AspectRatio [2]uint8
26897 //mt:if %s.Type == VerticalFrameAnim
26900 //mt:if %s.Type != NoAnim
26901 Duration float32 // in seconds
26903 }))(obj)).Type == VerticalFrameAnim {
26904 for local310 := range (*(*(struct {
26907 //mt:if %s.Type == SpriteSheetAnim
26908 AspectRatio [2]uint8
26910 //mt:if %s.Type == VerticalFrameAnim
26913 //mt:if %s.Type != NoAnim
26914 Duration float32 // in seconds
26916 }))(obj)).NFrames {
26918 x := ((*(*(struct {
26921 //mt:if %s.Type == SpriteSheetAnim
26922 AspectRatio [2]uint8
26924 //mt:if %s.Type == VerticalFrameAnim
26927 //mt:if %s.Type != NoAnim
26928 Duration float32 // in seconds
26930 }))(obj)).NFrames)[local310]
26931 write16(w, uint16(x))
26938 //mt:if %s.Type == SpriteSheetAnim
26939 AspectRatio [2]uint8
26941 //mt:if %s.Type == VerticalFrameAnim
26944 //mt:if %s.Type != NoAnim
26945 Duration float32 // in seconds
26947 }))(obj)).Type != NoAnim {
26952 //mt:if %s.Type == SpriteSheetAnim
26953 AspectRatio [2]uint8
26955 //mt:if %s.Type == VerticalFrameAnim
26958 //mt:if %s.Type != NoAnim
26959 Duration float32 // in seconds
26962 write32(w, math.Float32bits(x))
26967 func (obj *TileAnim) deserialize(r io.Reader) {
26968 if err := pcall(func() {
26972 //mt:if %s.Type == SpriteSheetAnim
26973 AspectRatio [2]uint8
26975 //mt:if %s.Type == VerticalFrameAnim
26978 //mt:if %s.Type != NoAnim
26979 Duration float32 // in seconds
26981 }))(obj)).Type).deserialize(r)
26986 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26991 //mt:if %s.Type == SpriteSheetAnim
26992 AspectRatio [2]uint8
26994 //mt:if %s.Type == VerticalFrameAnim
26997 //mt:if %s.Type != NoAnim
26998 Duration float32 // in seconds
27000 }))(obj)).Type < maxAnim) {
27001 chk(errors.New("assertion failed: %s.Type < maxAnim"))
27006 //mt:if %s.Type == SpriteSheetAnim
27007 AspectRatio [2]uint8
27009 //mt:if %s.Type == VerticalFrameAnim
27012 //mt:if %s.Type != NoAnim
27013 Duration float32 // in seconds
27015 }))(obj)).Type == SpriteSheetAnim {
27017 _, err := io.ReadFull(r, ((*(*(struct {
27020 //mt:if %s.Type == SpriteSheetAnim
27021 AspectRatio [2]uint8
27023 //mt:if %s.Type == VerticalFrameAnim
27026 //mt:if %s.Type != NoAnim
27027 Duration float32 // in seconds
27029 }))(obj)).AspectRatio)[:])
27036 //mt:if %s.Type == SpriteSheetAnim
27037 AspectRatio [2]uint8
27039 //mt:if %s.Type == VerticalFrameAnim
27042 //mt:if %s.Type != NoAnim
27043 Duration float32 // in seconds
27045 }))(obj)).Type == VerticalFrameAnim {
27046 for local311 := range (*(*(struct {
27049 //mt:if %s.Type == SpriteSheetAnim
27050 AspectRatio [2]uint8
27052 //mt:if %s.Type == VerticalFrameAnim
27055 //mt:if %s.Type != NoAnim
27056 Duration float32 // in seconds
27058 }))(obj)).NFrames {
27060 p := &((*(*(struct {
27063 //mt:if %s.Type == SpriteSheetAnim
27064 AspectRatio [2]uint8
27066 //mt:if %s.Type == VerticalFrameAnim
27069 //mt:if %s.Type != NoAnim
27070 Duration float32 // in seconds
27072 }))(obj)).NFrames)[local311]
27080 //mt:if %s.Type == SpriteSheetAnim
27081 AspectRatio [2]uint8
27083 //mt:if %s.Type == VerticalFrameAnim
27086 //mt:if %s.Type != NoAnim
27087 Duration float32 // in seconds
27089 }))(obj)).Type != NoAnim {
27091 p := &(*(*(struct {
27094 //mt:if %s.Type == SpriteSheetAnim
27095 AspectRatio [2]uint8
27097 //mt:if %s.Type == VerticalFrameAnim
27100 //mt:if %s.Type != NoAnim
27101 Duration float32 // in seconds
27104 *p = math.Float32frombits(read32(r))
27109 func (obj *Content) serialize(w io.Writer) {
27111 x := *(*(uint16))(obj)
27112 write16(w, uint16(x))
27116 func (obj *Content) deserialize(r io.Reader) {
27118 p := &*(*(uint16))(obj)
27123 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
27125 x := *(*(uint32))(obj)
27126 write32(w, uint32(x))
27130 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
27132 p := &*(*(uint32))(obj)
27137 func (obj *HUDID) serialize(w io.Writer) {
27139 x := *(*(uint32))(obj)
27140 write32(w, uint32(x))
27144 func (obj *HUDID) deserialize(r io.Reader) {
27146 p := &*(*(uint32))(obj)
27151 func (obj *HUD) serialize(w io.Writer) {
27152 if err := pcall(func() {
27170 }))(obj)).Type).serialize(w)
27175 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27177 for local312 := range (*(*(struct {
27196 x := ((*(*(struct {
27213 }))(obj)).Pos)[local312]
27214 write32(w, math.Float32bits(x))
27217 if len(([]byte((*(*(struct {
27234 }))(obj)).Name))) > math.MaxUint16 {
27238 x := uint16(len(([]byte((*(*(struct {
27256 write16(w, uint16(x))
27259 _, err := w.Write(([]byte((*(*(struct {
27276 }))(obj)).Name))[:])
27279 for local313 := range (*(*(struct {
27298 x := ((*(*(struct {
27315 }))(obj)).Scale)[local313]
27316 write32(w, math.Float32bits(x))
27319 if len(([]byte((*(*(struct {
27336 }))(obj)).Text))) > math.MaxUint16 {
27340 x := uint16(len(([]byte((*(*(struct {
27358 write16(w, uint16(x))
27361 _, err := w.Write(([]byte((*(*(struct {
27378 }))(obj)).Text))[:])
27400 write32(w, uint32(x))
27421 write32(w, uint32(x))
27442 write32(w, uint32(x))
27444 for local314 := range (*(*(struct {
27463 x := ((*(*(struct {
27480 }))(obj)).Align)[local314]
27481 write32(w, math.Float32bits(x))
27484 for local315 := range (*(*(struct {
27503 x := ((*(*(struct {
27520 }))(obj)).Offset)[local315]
27521 write32(w, math.Float32bits(x))
27524 if err := pcall(func() {
27542 }))(obj)).WorldPos).serialize(w)
27547 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
27549 for local316 := range (*(*(struct {
27568 x := ((*(*(struct {
27585 }))(obj)).Size)[local316]
27586 write32(w, uint32(x))
27608 write16(w, uint16(x))
27610 if len(([]byte((*(*(struct {
27627 }))(obj)).Text2))) > math.MaxUint16 {
27631 x := uint16(len(([]byte((*(*(struct {
27648 }))(obj)).Text2))))
27649 write16(w, uint16(x))
27652 _, err := w.Write(([]byte((*(*(struct {
27669 }))(obj)).Text2))[:])
27691 write32(w, uint32(x))
27695 func (obj *HUD) deserialize(r io.Reader) {
27696 if err := pcall(func() {
27714 }))(obj)).Type).deserialize(r)
27719 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27721 for local317 := range (*(*(struct {
27740 p := &((*(*(struct {
27757 }))(obj)).Pos)[local317]
27758 *p = math.Float32frombits(read32(r))
27761 var local318 []uint8
27762 var local319 uint16
27767 (local318) = make([]uint8, local319)
27769 _, err := io.ReadFull(r, (local318)[:])
27789 }))(obj)).Name) = string(local318)
27790 for local320 := range (*(*(struct {
27809 p := &((*(*(struct {
27826 }))(obj)).Scale)[local320]
27827 *p = math.Float32frombits(read32(r))
27830 var local321 []uint8
27831 var local322 uint16
27836 (local321) = make([]uint8, local322)
27838 _, err := io.ReadFull(r, (local321)[:])
27858 }))(obj)).Text) = string(local321)
27860 p := &(*(*(struct {
27881 p := &(*(*(struct {
27902 p := &(*(*(struct {
27922 for local323 := range (*(*(struct {
27941 p := &((*(*(struct {
27958 }))(obj)).Align)[local323]
27959 *p = math.Float32frombits(read32(r))
27962 for local324 := range (*(*(struct {
27981 p := &((*(*(struct {
27998 }))(obj)).Offset)[local324]
27999 *p = math.Float32frombits(read32(r))
28002 if err := pcall(func() {
28020 }))(obj)).WorldPos).deserialize(r)
28025 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
28027 for local325 := range (*(*(struct {
28046 p := &((*(*(struct {
28063 }))(obj)).Size)[local325]
28064 *p = int32(read32(r))
28068 p := &(*(*(struct {
28086 *p = int16(read16(r))
28088 var local326 []uint8
28089 var local327 uint16
28094 (local326) = make([]uint8, local327)
28096 _, err := io.ReadFull(r, (local326)[:])
28116 }))(obj)).Text2) = string(local326)
28118 p := &(*(*(struct {
28140 func (obj *HUDField) serialize(w io.Writer) {
28142 x := *(*(uint8))(obj)
28143 write8(w, uint8(x))
28147 func (obj *HUDField) deserialize(r io.Reader) {
28149 p := &*(*(uint8))(obj)
28154 func (obj *HUDStyleFlags) serialize(w io.Writer) {
28156 x := *(*(uint32))(obj)
28157 write32(w, uint32(x))
28161 func (obj *HUDStyleFlags) deserialize(r io.Reader) {
28163 p := &*(*(uint32))(obj)
28168 func (obj *HUDFlags) serialize(w io.Writer) {
28170 x := *(*(uint32))(obj)
28171 write32(w, uint32(x))
28175 func (obj *HUDFlags) deserialize(r io.Reader) {
28177 p := &*(*(uint32))(obj)
28182 func (obj *HotbarParam) serialize(w io.Writer) {
28184 x := *(*(uint16))(obj)
28185 write16(w, uint16(x))
28189 func (obj *HotbarParam) deserialize(r io.Reader) {
28191 p := &*(*(uint16))(obj)
28196 func (obj *Texture) serialize(w io.Writer) {
28197 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
28201 x := uint16(len(([]byte(*(*(string))(obj)))))
28202 write16(w, uint16(x))
28205 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
28210 func (obj *Texture) deserialize(r io.Reader) {
28211 var local328 []uint8
28212 var local329 uint16
28217 (local328) = make([]uint8, local329)
28219 _, err := io.ReadFull(r, (local328)[:])
28222 (*(*(string))(obj)) = string(local328)
28225 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
28227 x := *(*(uint8))(obj)
28228 write8(w, uint8(x))
28232 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
28234 p := &*(*(uint8))(obj)
28239 func (obj *ModChanSig) serialize(w io.Writer) {
28241 x := *(*(uint8))(obj)
28242 write8(w, uint8(x))
28246 func (obj *ModChanSig) deserialize(r io.Reader) {
28248 p := &*(*(uint8))(obj)
28253 func (obj *AOProps) serialize(w io.Writer) {
28255 local330 := uint8(4)
28258 write8(w, uint8(x))
28263 MaxHP uint16 // Player only.
28264 CollideWithNodes bool
28265 Weight float32 // deprecated
28269 VisualSize [3]float32
28271 SpriteSheetSize [2]int16 // in sprites.
28272 SpritePos [2]int16 // in sprite sheet.
28274 MakeFootstepSnds bool
28275 RotateSpeed float32 // in radians per second.
28277 Colors []color.NRGBA
28278 CollideWithAOs bool
28281 FaceRotateDirOff float32 // in degrees.
28284 NametagColor color.NRGBA
28285 FaceRotateSpeed float32 // in degrees per second.
28289 MaxBreath uint16 // Player only.
28290 EyeHeight float32 // Player only.
28291 ZoomFOV float32 // in degrees. Player only.
28292 UseTextureAlpha bool
28293 DmgTextureMod Texture // suffix
28296 NametagBG color.NRGBA
28298 write16(w, uint16(x))
28302 MaxHP uint16 // Player only.
28303 CollideWithNodes bool
28304 Weight float32 // deprecated
28308 VisualSize [3]float32
28310 SpriteSheetSize [2]int16 // in sprites.
28311 SpritePos [2]int16 // in sprite sheet.
28313 MakeFootstepSnds bool
28314 RotateSpeed float32 // in radians per second.
28316 Colors []color.NRGBA
28317 CollideWithAOs bool
28320 FaceRotateDirOff float32 // in degrees.
28323 NametagColor color.NRGBA
28324 FaceRotateSpeed float32 // in degrees per second.
28328 MaxBreath uint16 // Player only.
28329 EyeHeight float32 // Player only.
28330 ZoomFOV float32 // in degrees. Player only.
28331 UseTextureAlpha bool
28332 DmgTextureMod Texture // suffix
28335 NametagBG color.NRGBA
28336 }))(obj)).CollideWithNodes
28345 MaxHP uint16 // Player only.
28346 CollideWithNodes bool
28347 Weight float32 // deprecated
28351 VisualSize [3]float32
28353 SpriteSheetSize [2]int16 // in sprites.
28354 SpritePos [2]int16 // in sprite sheet.
28356 MakeFootstepSnds bool
28357 RotateSpeed float32 // in radians per second.
28359 Colors []color.NRGBA
28360 CollideWithAOs bool
28363 FaceRotateDirOff float32 // in degrees.
28366 NametagColor color.NRGBA
28367 FaceRotateSpeed float32 // in degrees per second.
28371 MaxBreath uint16 // Player only.
28372 EyeHeight float32 // Player only.
28373 ZoomFOV float32 // in degrees. Player only.
28374 UseTextureAlpha bool
28375 DmgTextureMod Texture // suffix
28378 NametagBG color.NRGBA
28380 write32(w, math.Float32bits(x))
28382 if err := pcall(func() {
28384 MaxHP uint16 // Player only.
28385 CollideWithNodes bool
28386 Weight float32 // deprecated
28390 VisualSize [3]float32
28392 SpriteSheetSize [2]int16 // in sprites.
28393 SpritePos [2]int16 // in sprite sheet.
28395 MakeFootstepSnds bool
28396 RotateSpeed float32 // in radians per second.
28398 Colors []color.NRGBA
28399 CollideWithAOs bool
28402 FaceRotateDirOff float32 // in degrees.
28405 NametagColor color.NRGBA
28406 FaceRotateSpeed float32 // in degrees per second.
28410 MaxBreath uint16 // Player only.
28411 EyeHeight float32 // Player only.
28412 ZoomFOV float32 // in degrees. Player only.
28413 UseTextureAlpha bool
28414 DmgTextureMod Texture // suffix
28417 NametagBG color.NRGBA
28418 }))(obj)).ColBox).serialize(w)
28423 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28425 if err := pcall(func() {
28427 MaxHP uint16 // Player only.
28428 CollideWithNodes bool
28429 Weight float32 // deprecated
28433 VisualSize [3]float32
28435 SpriteSheetSize [2]int16 // in sprites.
28436 SpritePos [2]int16 // in sprite sheet.
28438 MakeFootstepSnds bool
28439 RotateSpeed float32 // in radians per second.
28441 Colors []color.NRGBA
28442 CollideWithAOs bool
28445 FaceRotateDirOff float32 // in degrees.
28448 NametagColor color.NRGBA
28449 FaceRotateSpeed float32 // in degrees per second.
28453 MaxBreath uint16 // Player only.
28454 EyeHeight float32 // Player only.
28455 ZoomFOV float32 // in degrees. Player only.
28456 UseTextureAlpha bool
28457 DmgTextureMod Texture // suffix
28460 NametagBG color.NRGBA
28461 }))(obj)).SelBox).serialize(w)
28466 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28470 MaxHP uint16 // Player only.
28471 CollideWithNodes bool
28472 Weight float32 // deprecated
28476 VisualSize [3]float32
28478 SpriteSheetSize [2]int16 // in sprites.
28479 SpritePos [2]int16 // in sprite sheet.
28481 MakeFootstepSnds bool
28482 RotateSpeed float32 // in radians per second.
28484 Colors []color.NRGBA
28485 CollideWithAOs bool
28488 FaceRotateDirOff float32 // in degrees.
28491 NametagColor color.NRGBA
28492 FaceRotateSpeed float32 // in degrees per second.
28496 MaxBreath uint16 // Player only.
28497 EyeHeight float32 // Player only.
28498 ZoomFOV float32 // in degrees. Player only.
28499 UseTextureAlpha bool
28500 DmgTextureMod Texture // suffix
28503 NametagBG color.NRGBA
28504 }))(obj)).Pointable
28511 if len(([]byte((*(*(struct {
28512 MaxHP uint16 // Player only.
28513 CollideWithNodes bool
28514 Weight float32 // deprecated
28518 VisualSize [3]float32
28520 SpriteSheetSize [2]int16 // in sprites.
28521 SpritePos [2]int16 // in sprite sheet.
28523 MakeFootstepSnds bool
28524 RotateSpeed float32 // in radians per second.
28526 Colors []color.NRGBA
28527 CollideWithAOs bool
28530 FaceRotateDirOff float32 // in degrees.
28533 NametagColor color.NRGBA
28534 FaceRotateSpeed float32 // in degrees per second.
28538 MaxBreath uint16 // Player only.
28539 EyeHeight float32 // Player only.
28540 ZoomFOV float32 // in degrees. Player only.
28541 UseTextureAlpha bool
28542 DmgTextureMod Texture // suffix
28545 NametagBG color.NRGBA
28546 }))(obj)).Visual))) > math.MaxUint16 {
28550 x := uint16(len(([]byte((*(*(struct {
28551 MaxHP uint16 // Player only.
28552 CollideWithNodes bool
28553 Weight float32 // deprecated
28557 VisualSize [3]float32
28559 SpriteSheetSize [2]int16 // in sprites.
28560 SpritePos [2]int16 // in sprite sheet.
28562 MakeFootstepSnds bool
28563 RotateSpeed float32 // in radians per second.
28565 Colors []color.NRGBA
28566 CollideWithAOs bool
28569 FaceRotateDirOff float32 // in degrees.
28572 NametagColor color.NRGBA
28573 FaceRotateSpeed float32 // in degrees per second.
28577 MaxBreath uint16 // Player only.
28578 EyeHeight float32 // Player only.
28579 ZoomFOV float32 // in degrees. Player only.
28580 UseTextureAlpha bool
28581 DmgTextureMod Texture // suffix
28584 NametagBG color.NRGBA
28585 }))(obj)).Visual))))
28586 write16(w, uint16(x))
28589 _, err := w.Write(([]byte((*(*(struct {
28590 MaxHP uint16 // Player only.
28591 CollideWithNodes bool
28592 Weight float32 // deprecated
28596 VisualSize [3]float32
28598 SpriteSheetSize [2]int16 // in sprites.
28599 SpritePos [2]int16 // in sprite sheet.
28601 MakeFootstepSnds bool
28602 RotateSpeed float32 // in radians per second.
28604 Colors []color.NRGBA
28605 CollideWithAOs bool
28608 FaceRotateDirOff float32 // in degrees.
28611 NametagColor color.NRGBA
28612 FaceRotateSpeed float32 // in degrees per second.
28616 MaxBreath uint16 // Player only.
28617 EyeHeight float32 // Player only.
28618 ZoomFOV float32 // in degrees. Player only.
28619 UseTextureAlpha bool
28620 DmgTextureMod Texture // suffix
28623 NametagBG color.NRGBA
28624 }))(obj)).Visual))[:])
28627 for local331 := range (*(*(struct {
28628 MaxHP uint16 // Player only.
28629 CollideWithNodes bool
28630 Weight float32 // deprecated
28634 VisualSize [3]float32
28636 SpriteSheetSize [2]int16 // in sprites.
28637 SpritePos [2]int16 // in sprite sheet.
28639 MakeFootstepSnds bool
28640 RotateSpeed float32 // in radians per second.
28642 Colors []color.NRGBA
28643 CollideWithAOs bool
28646 FaceRotateDirOff float32 // in degrees.
28649 NametagColor color.NRGBA
28650 FaceRotateSpeed float32 // in degrees per second.
28654 MaxBreath uint16 // Player only.
28655 EyeHeight float32 // Player only.
28656 ZoomFOV float32 // in degrees. Player only.
28657 UseTextureAlpha bool
28658 DmgTextureMod Texture // suffix
28661 NametagBG color.NRGBA
28662 }))(obj)).VisualSize {
28664 x := ((*(*(struct {
28665 MaxHP uint16 // Player only.
28666 CollideWithNodes bool
28667 Weight float32 // deprecated
28671 VisualSize [3]float32
28673 SpriteSheetSize [2]int16 // in sprites.
28674 SpritePos [2]int16 // in sprite sheet.
28676 MakeFootstepSnds bool
28677 RotateSpeed float32 // in radians per second.
28679 Colors []color.NRGBA
28680 CollideWithAOs bool
28683 FaceRotateDirOff float32 // in degrees.
28686 NametagColor color.NRGBA
28687 FaceRotateSpeed float32 // in degrees per second.
28691 MaxBreath uint16 // Player only.
28692 EyeHeight float32 // Player only.
28693 ZoomFOV float32 // in degrees. Player only.
28694 UseTextureAlpha bool
28695 DmgTextureMod Texture // suffix
28698 NametagBG color.NRGBA
28699 }))(obj)).VisualSize)[local331]
28700 write32(w, math.Float32bits(x))
28703 if len(((*(*(struct {
28704 MaxHP uint16 // Player only.
28705 CollideWithNodes bool
28706 Weight float32 // deprecated
28710 VisualSize [3]float32
28712 SpriteSheetSize [2]int16 // in sprites.
28713 SpritePos [2]int16 // in sprite sheet.
28715 MakeFootstepSnds bool
28716 RotateSpeed float32 // in radians per second.
28718 Colors []color.NRGBA
28719 CollideWithAOs bool
28722 FaceRotateDirOff float32 // in degrees.
28725 NametagColor color.NRGBA
28726 FaceRotateSpeed float32 // in degrees per second.
28730 MaxBreath uint16 // Player only.
28731 EyeHeight float32 // Player only.
28732 ZoomFOV float32 // in degrees. Player only.
28733 UseTextureAlpha bool
28734 DmgTextureMod Texture // suffix
28737 NametagBG color.NRGBA
28738 }))(obj)).Textures)) > math.MaxUint16 {
28742 x := uint16(len(((*(*(struct {
28743 MaxHP uint16 // Player only.
28744 CollideWithNodes bool
28745 Weight float32 // deprecated
28749 VisualSize [3]float32
28751 SpriteSheetSize [2]int16 // in sprites.
28752 SpritePos [2]int16 // in sprite sheet.
28754 MakeFootstepSnds bool
28755 RotateSpeed float32 // in radians per second.
28757 Colors []color.NRGBA
28758 CollideWithAOs bool
28761 FaceRotateDirOff float32 // in degrees.
28764 NametagColor color.NRGBA
28765 FaceRotateSpeed float32 // in degrees per second.
28769 MaxBreath uint16 // Player only.
28770 EyeHeight float32 // Player only.
28771 ZoomFOV float32 // in degrees. Player only.
28772 UseTextureAlpha bool
28773 DmgTextureMod Texture // suffix
28776 NametagBG color.NRGBA
28777 }))(obj)).Textures)))
28778 write16(w, uint16(x))
28780 for local332 := range (*(*(struct {
28781 MaxHP uint16 // Player only.
28782 CollideWithNodes bool
28783 Weight float32 // deprecated
28787 VisualSize [3]float32
28789 SpriteSheetSize [2]int16 // in sprites.
28790 SpritePos [2]int16 // in sprite sheet.
28792 MakeFootstepSnds bool
28793 RotateSpeed float32 // in radians per second.
28795 Colors []color.NRGBA
28796 CollideWithAOs bool
28799 FaceRotateDirOff float32 // in degrees.
28802 NametagColor color.NRGBA
28803 FaceRotateSpeed float32 // in degrees per second.
28807 MaxBreath uint16 // Player only.
28808 EyeHeight float32 // Player only.
28809 ZoomFOV float32 // in degrees. Player only.
28810 UseTextureAlpha bool
28811 DmgTextureMod Texture // suffix
28814 NametagBG color.NRGBA
28815 }))(obj)).Textures {
28816 if err := pcall(func() {
28818 MaxHP uint16 // Player only.
28819 CollideWithNodes bool
28820 Weight float32 // deprecated
28824 VisualSize [3]float32
28826 SpriteSheetSize [2]int16 // in sprites.
28827 SpritePos [2]int16 // in sprite sheet.
28829 MakeFootstepSnds bool
28830 RotateSpeed float32 // in radians per second.
28832 Colors []color.NRGBA
28833 CollideWithAOs bool
28836 FaceRotateDirOff float32 // in degrees.
28839 NametagColor color.NRGBA
28840 FaceRotateSpeed float32 // in degrees per second.
28844 MaxBreath uint16 // Player only.
28845 EyeHeight float32 // Player only.
28846 ZoomFOV float32 // in degrees. Player only.
28847 UseTextureAlpha bool
28848 DmgTextureMod Texture // suffix
28851 NametagBG color.NRGBA
28852 }))(obj)).Textures)[local332]).serialize(w)
28857 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
28860 for local333 := range (*(*(struct {
28861 MaxHP uint16 // Player only.
28862 CollideWithNodes bool
28863 Weight float32 // deprecated
28867 VisualSize [3]float32
28869 SpriteSheetSize [2]int16 // in sprites.
28870 SpritePos [2]int16 // in sprite sheet.
28872 MakeFootstepSnds bool
28873 RotateSpeed float32 // in radians per second.
28875 Colors []color.NRGBA
28876 CollideWithAOs bool
28879 FaceRotateDirOff float32 // in degrees.
28882 NametagColor color.NRGBA
28883 FaceRotateSpeed float32 // in degrees per second.
28887 MaxBreath uint16 // Player only.
28888 EyeHeight float32 // Player only.
28889 ZoomFOV float32 // in degrees. Player only.
28890 UseTextureAlpha bool
28891 DmgTextureMod Texture // suffix
28894 NametagBG color.NRGBA
28895 }))(obj)).SpriteSheetSize {
28897 x := ((*(*(struct {
28898 MaxHP uint16 // Player only.
28899 CollideWithNodes bool
28900 Weight float32 // deprecated
28904 VisualSize [3]float32
28906 SpriteSheetSize [2]int16 // in sprites.
28907 SpritePos [2]int16 // in sprite sheet.
28909 MakeFootstepSnds bool
28910 RotateSpeed float32 // in radians per second.
28912 Colors []color.NRGBA
28913 CollideWithAOs bool
28916 FaceRotateDirOff float32 // in degrees.
28919 NametagColor color.NRGBA
28920 FaceRotateSpeed float32 // in degrees per second.
28924 MaxBreath uint16 // Player only.
28925 EyeHeight float32 // Player only.
28926 ZoomFOV float32 // in degrees. Player only.
28927 UseTextureAlpha bool
28928 DmgTextureMod Texture // suffix
28931 NametagBG color.NRGBA
28932 }))(obj)).SpriteSheetSize)[local333]
28933 write16(w, uint16(x))
28936 for local334 := range (*(*(struct {
28937 MaxHP uint16 // Player only.
28938 CollideWithNodes bool
28939 Weight float32 // deprecated
28943 VisualSize [3]float32
28945 SpriteSheetSize [2]int16 // in sprites.
28946 SpritePos [2]int16 // in sprite sheet.
28948 MakeFootstepSnds bool
28949 RotateSpeed float32 // in radians per second.
28951 Colors []color.NRGBA
28952 CollideWithAOs bool
28955 FaceRotateDirOff float32 // in degrees.
28958 NametagColor color.NRGBA
28959 FaceRotateSpeed float32 // in degrees per second.
28963 MaxBreath uint16 // Player only.
28964 EyeHeight float32 // Player only.
28965 ZoomFOV float32 // in degrees. Player only.
28966 UseTextureAlpha bool
28967 DmgTextureMod Texture // suffix
28970 NametagBG color.NRGBA
28971 }))(obj)).SpritePos {
28973 x := ((*(*(struct {
28974 MaxHP uint16 // Player only.
28975 CollideWithNodes bool
28976 Weight float32 // deprecated
28980 VisualSize [3]float32
28982 SpriteSheetSize [2]int16 // in sprites.
28983 SpritePos [2]int16 // in sprite sheet.
28985 MakeFootstepSnds bool
28986 RotateSpeed float32 // in radians per second.
28988 Colors []color.NRGBA
28989 CollideWithAOs bool
28992 FaceRotateDirOff float32 // in degrees.
28995 NametagColor color.NRGBA
28996 FaceRotateSpeed float32 // in degrees per second.
29000 MaxBreath uint16 // Player only.
29001 EyeHeight float32 // Player only.
29002 ZoomFOV float32 // in degrees. Player only.
29003 UseTextureAlpha bool
29004 DmgTextureMod Texture // suffix
29007 NametagBG color.NRGBA
29008 }))(obj)).SpritePos)[local334]
29009 write16(w, uint16(x))
29014 MaxHP uint16 // Player only.
29015 CollideWithNodes bool
29016 Weight float32 // deprecated
29020 VisualSize [3]float32
29022 SpriteSheetSize [2]int16 // in sprites.
29023 SpritePos [2]int16 // in sprite sheet.
29025 MakeFootstepSnds bool
29026 RotateSpeed float32 // in radians per second.
29028 Colors []color.NRGBA
29029 CollideWithAOs bool
29032 FaceRotateDirOff float32 // in degrees.
29035 NametagColor color.NRGBA
29036 FaceRotateSpeed float32 // in degrees per second.
29040 MaxBreath uint16 // Player only.
29041 EyeHeight float32 // Player only.
29042 ZoomFOV float32 // in degrees. Player only.
29043 UseTextureAlpha bool
29044 DmgTextureMod Texture // suffix
29047 NametagBG color.NRGBA
29057 MaxHP uint16 // Player only.
29058 CollideWithNodes bool
29059 Weight float32 // deprecated
29063 VisualSize [3]float32
29065 SpriteSheetSize [2]int16 // in sprites.
29066 SpritePos [2]int16 // in sprite sheet.
29068 MakeFootstepSnds bool
29069 RotateSpeed float32 // in radians per second.
29071 Colors []color.NRGBA
29072 CollideWithAOs bool
29075 FaceRotateDirOff float32 // in degrees.
29078 NametagColor color.NRGBA
29079 FaceRotateSpeed float32 // in degrees per second.
29083 MaxBreath uint16 // Player only.
29084 EyeHeight float32 // Player only.
29085 ZoomFOV float32 // in degrees. Player only.
29086 UseTextureAlpha bool
29087 DmgTextureMod Texture // suffix
29090 NametagBG color.NRGBA
29091 }))(obj)).MakeFootstepSnds
29100 MaxHP uint16 // Player only.
29101 CollideWithNodes bool
29102 Weight float32 // deprecated
29106 VisualSize [3]float32
29108 SpriteSheetSize [2]int16 // in sprites.
29109 SpritePos [2]int16 // in sprite sheet.
29111 MakeFootstepSnds bool
29112 RotateSpeed float32 // in radians per second.
29114 Colors []color.NRGBA
29115 CollideWithAOs bool
29118 FaceRotateDirOff float32 // in degrees.
29121 NametagColor color.NRGBA
29122 FaceRotateSpeed float32 // in degrees per second.
29126 MaxBreath uint16 // Player only.
29127 EyeHeight float32 // Player only.
29128 ZoomFOV float32 // in degrees. Player only.
29129 UseTextureAlpha bool
29130 DmgTextureMod Texture // suffix
29133 NametagBG color.NRGBA
29134 }))(obj)).RotateSpeed
29135 write32(w, math.Float32bits(x))
29137 if len(([]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)).Mesh))) > math.MaxUint16 {
29176 x := uint16(len(([]byte((*(*(struct {
29177 MaxHP uint16 // Player only.
29178 CollideWithNodes bool
29179 Weight float32 // deprecated
29183 VisualSize [3]float32
29185 SpriteSheetSize [2]int16 // in sprites.
29186 SpritePos [2]int16 // in sprite sheet.
29188 MakeFootstepSnds bool
29189 RotateSpeed float32 // in radians per second.
29191 Colors []color.NRGBA
29192 CollideWithAOs bool
29195 FaceRotateDirOff float32 // in degrees.
29198 NametagColor color.NRGBA
29199 FaceRotateSpeed float32 // in degrees per second.
29203 MaxBreath uint16 // Player only.
29204 EyeHeight float32 // Player only.
29205 ZoomFOV float32 // in degrees. Player only.
29206 UseTextureAlpha bool
29207 DmgTextureMod Texture // suffix
29210 NametagBG color.NRGBA
29212 write16(w, uint16(x))
29215 _, err := w.Write(([]byte((*(*(struct {
29216 MaxHP uint16 // Player only.
29217 CollideWithNodes bool
29218 Weight float32 // deprecated
29222 VisualSize [3]float32
29224 SpriteSheetSize [2]int16 // in sprites.
29225 SpritePos [2]int16 // in sprite sheet.
29227 MakeFootstepSnds bool
29228 RotateSpeed float32 // in radians per second.
29230 Colors []color.NRGBA
29231 CollideWithAOs bool
29234 FaceRotateDirOff float32 // in degrees.
29237 NametagColor color.NRGBA
29238 FaceRotateSpeed float32 // in degrees per second.
29242 MaxBreath uint16 // Player only.
29243 EyeHeight float32 // Player only.
29244 ZoomFOV float32 // in degrees. Player only.
29245 UseTextureAlpha bool
29246 DmgTextureMod Texture // suffix
29249 NametagBG color.NRGBA
29250 }))(obj)).Mesh))[:])
29253 if len(((*(*(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)).Colors)) > math.MaxUint16 {
29292 x := uint16(len(((*(*(struct {
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
29327 }))(obj)).Colors)))
29328 write16(w, uint16(x))
29330 for local335 := range (*(*(struct {
29331 MaxHP uint16 // Player only.
29332 CollideWithNodes bool
29333 Weight float32 // deprecated
29337 VisualSize [3]float32
29339 SpriteSheetSize [2]int16 // in sprites.
29340 SpritePos [2]int16 // in sprite sheet.
29342 MakeFootstepSnds bool
29343 RotateSpeed float32 // in radians per second.
29345 Colors []color.NRGBA
29346 CollideWithAOs bool
29349 FaceRotateDirOff float32 // in degrees.
29352 NametagColor color.NRGBA
29353 FaceRotateSpeed float32 // in degrees per second.
29357 MaxBreath uint16 // Player only.
29358 EyeHeight float32 // Player only.
29359 ZoomFOV float32 // in degrees. Player only.
29360 UseTextureAlpha bool
29361 DmgTextureMod Texture // suffix
29364 NametagBG color.NRGBA
29367 x := ((*(*(struct {
29368 MaxHP uint16 // Player only.
29369 CollideWithNodes bool
29370 Weight float32 // deprecated
29374 VisualSize [3]float32
29376 SpriteSheetSize [2]int16 // in sprites.
29377 SpritePos [2]int16 // in sprite sheet.
29379 MakeFootstepSnds bool
29380 RotateSpeed float32 // in radians per second.
29382 Colors []color.NRGBA
29383 CollideWithAOs bool
29386 FaceRotateDirOff float32 // in degrees.
29389 NametagColor color.NRGBA
29390 FaceRotateSpeed float32 // in degrees per second.
29394 MaxBreath uint16 // Player only.
29395 EyeHeight float32 // Player only.
29396 ZoomFOV float32 // in degrees. Player only.
29397 UseTextureAlpha bool
29398 DmgTextureMod Texture // suffix
29401 NametagBG color.NRGBA
29402 }))(obj)).Colors)[local335]
29403 w.Write([]byte{x.A, x.R, x.G, x.B})
29408 MaxHP uint16 // Player only.
29409 CollideWithNodes bool
29410 Weight float32 // deprecated
29414 VisualSize [3]float32
29416 SpriteSheetSize [2]int16 // in sprites.
29417 SpritePos [2]int16 // in sprite sheet.
29419 MakeFootstepSnds bool
29420 RotateSpeed float32 // in radians per second.
29422 Colors []color.NRGBA
29423 CollideWithAOs bool
29426 FaceRotateDirOff float32 // in degrees.
29429 NametagColor color.NRGBA
29430 FaceRotateSpeed float32 // in degrees per second.
29434 MaxBreath uint16 // Player only.
29435 EyeHeight float32 // Player only.
29436 ZoomFOV float32 // in degrees. Player only.
29437 UseTextureAlpha bool
29438 DmgTextureMod Texture // suffix
29441 NametagBG color.NRGBA
29442 }))(obj)).CollideWithAOs
29451 MaxHP uint16 // Player only.
29452 CollideWithNodes bool
29453 Weight float32 // deprecated
29457 VisualSize [3]float32
29459 SpriteSheetSize [2]int16 // in sprites.
29460 SpritePos [2]int16 // in sprite sheet.
29462 MakeFootstepSnds bool
29463 RotateSpeed float32 // in radians per second.
29465 Colors []color.NRGBA
29466 CollideWithAOs bool
29469 FaceRotateDirOff float32 // in degrees.
29472 NametagColor color.NRGBA
29473 FaceRotateSpeed float32 // in degrees per second.
29477 MaxBreath uint16 // Player only.
29478 EyeHeight float32 // Player only.
29479 ZoomFOV float32 // in degrees. Player only.
29480 UseTextureAlpha bool
29481 DmgTextureMod Texture // suffix
29484 NametagBG color.NRGBA
29485 }))(obj)).StepHeight
29486 write32(w, math.Float32bits(x))
29490 MaxHP uint16 // Player only.
29491 CollideWithNodes bool
29492 Weight float32 // deprecated
29496 VisualSize [3]float32
29498 SpriteSheetSize [2]int16 // in sprites.
29499 SpritePos [2]int16 // in sprite sheet.
29501 MakeFootstepSnds bool
29502 RotateSpeed float32 // in radians per second.
29504 Colors []color.NRGBA
29505 CollideWithAOs bool
29508 FaceRotateDirOff float32 // in degrees.
29511 NametagColor color.NRGBA
29512 FaceRotateSpeed float32 // in degrees per second.
29516 MaxBreath uint16 // Player only.
29517 EyeHeight float32 // Player only.
29518 ZoomFOV float32 // in degrees. Player only.
29519 UseTextureAlpha bool
29520 DmgTextureMod Texture // suffix
29523 NametagBG color.NRGBA
29524 }))(obj)).FaceRotateDir
29533 MaxHP uint16 // Player only.
29534 CollideWithNodes bool
29535 Weight float32 // deprecated
29539 VisualSize [3]float32
29541 SpriteSheetSize [2]int16 // in sprites.
29542 SpritePos [2]int16 // in sprite sheet.
29544 MakeFootstepSnds bool
29545 RotateSpeed float32 // in radians per second.
29547 Colors []color.NRGBA
29548 CollideWithAOs bool
29551 FaceRotateDirOff float32 // in degrees.
29554 NametagColor color.NRGBA
29555 FaceRotateSpeed float32 // in degrees per second.
29559 MaxBreath uint16 // Player only.
29560 EyeHeight float32 // Player only.
29561 ZoomFOV float32 // in degrees. Player only.
29562 UseTextureAlpha bool
29563 DmgTextureMod Texture // suffix
29566 NametagBG color.NRGBA
29567 }))(obj)).FaceRotateDirOff
29568 write32(w, math.Float32bits(x))
29572 MaxHP uint16 // Player only.
29573 CollideWithNodes bool
29574 Weight float32 // deprecated
29578 VisualSize [3]float32
29580 SpriteSheetSize [2]int16 // in sprites.
29581 SpritePos [2]int16 // in sprite sheet.
29583 MakeFootstepSnds bool
29584 RotateSpeed float32 // in radians per second.
29586 Colors []color.NRGBA
29587 CollideWithAOs bool
29590 FaceRotateDirOff float32 // in degrees.
29593 NametagColor color.NRGBA
29594 FaceRotateSpeed float32 // in degrees per second.
29598 MaxBreath uint16 // Player only.
29599 EyeHeight float32 // Player only.
29600 ZoomFOV float32 // in degrees. Player only.
29601 UseTextureAlpha bool
29602 DmgTextureMod Texture // suffix
29605 NametagBG color.NRGBA
29606 }))(obj)).BackfaceCull
29613 if len(([]byte((*(*(struct {
29614 MaxHP uint16 // Player only.
29615 CollideWithNodes bool
29616 Weight float32 // deprecated
29620 VisualSize [3]float32
29622 SpriteSheetSize [2]int16 // in sprites.
29623 SpritePos [2]int16 // in sprite sheet.
29625 MakeFootstepSnds bool
29626 RotateSpeed float32 // in radians per second.
29628 Colors []color.NRGBA
29629 CollideWithAOs bool
29632 FaceRotateDirOff float32 // in degrees.
29635 NametagColor color.NRGBA
29636 FaceRotateSpeed float32 // in degrees per second.
29640 MaxBreath uint16 // Player only.
29641 EyeHeight float32 // Player only.
29642 ZoomFOV float32 // in degrees. Player only.
29643 UseTextureAlpha bool
29644 DmgTextureMod Texture // suffix
29647 NametagBG color.NRGBA
29648 }))(obj)).Nametag))) > math.MaxUint16 {
29652 x := uint16(len(([]byte((*(*(struct {
29653 MaxHP uint16 // Player only.
29654 CollideWithNodes bool
29655 Weight float32 // deprecated
29659 VisualSize [3]float32
29661 SpriteSheetSize [2]int16 // in sprites.
29662 SpritePos [2]int16 // in sprite sheet.
29664 MakeFootstepSnds bool
29665 RotateSpeed float32 // in radians per second.
29667 Colors []color.NRGBA
29668 CollideWithAOs bool
29671 FaceRotateDirOff float32 // in degrees.
29674 NametagColor color.NRGBA
29675 FaceRotateSpeed float32 // in degrees per second.
29679 MaxBreath uint16 // Player only.
29680 EyeHeight float32 // Player only.
29681 ZoomFOV float32 // in degrees. Player only.
29682 UseTextureAlpha bool
29683 DmgTextureMod Texture // suffix
29686 NametagBG color.NRGBA
29687 }))(obj)).Nametag))))
29688 write16(w, uint16(x))
29691 _, err := w.Write(([]byte((*(*(struct {
29692 MaxHP uint16 // Player only.
29693 CollideWithNodes bool
29694 Weight float32 // deprecated
29698 VisualSize [3]float32
29700 SpriteSheetSize [2]int16 // in sprites.
29701 SpritePos [2]int16 // in sprite sheet.
29703 MakeFootstepSnds bool
29704 RotateSpeed float32 // in radians per second.
29706 Colors []color.NRGBA
29707 CollideWithAOs bool
29710 FaceRotateDirOff float32 // in degrees.
29713 NametagColor color.NRGBA
29714 FaceRotateSpeed float32 // in degrees per second.
29718 MaxBreath uint16 // Player only.
29719 EyeHeight float32 // Player only.
29720 ZoomFOV float32 // in degrees. Player only.
29721 UseTextureAlpha bool
29722 DmgTextureMod Texture // suffix
29725 NametagBG color.NRGBA
29726 }))(obj)).Nametag))[:])
29731 MaxHP uint16 // Player only.
29732 CollideWithNodes bool
29733 Weight float32 // deprecated
29737 VisualSize [3]float32
29739 SpriteSheetSize [2]int16 // in sprites.
29740 SpritePos [2]int16 // in sprite sheet.
29742 MakeFootstepSnds bool
29743 RotateSpeed float32 // in radians per second.
29745 Colors []color.NRGBA
29746 CollideWithAOs bool
29749 FaceRotateDirOff float32 // in degrees.
29752 NametagColor color.NRGBA
29753 FaceRotateSpeed float32 // in degrees per second.
29757 MaxBreath uint16 // Player only.
29758 EyeHeight float32 // Player only.
29759 ZoomFOV float32 // in degrees. Player only.
29760 UseTextureAlpha bool
29761 DmgTextureMod Texture // suffix
29764 NametagBG color.NRGBA
29765 }))(obj)).NametagColor
29766 w.Write([]byte{x.A, x.R, x.G, x.B})
29770 MaxHP uint16 // Player only.
29771 CollideWithNodes bool
29772 Weight float32 // deprecated
29776 VisualSize [3]float32
29778 SpriteSheetSize [2]int16 // in sprites.
29779 SpritePos [2]int16 // in sprite sheet.
29781 MakeFootstepSnds bool
29782 RotateSpeed float32 // in radians per second.
29784 Colors []color.NRGBA
29785 CollideWithAOs bool
29788 FaceRotateDirOff float32 // in degrees.
29791 NametagColor color.NRGBA
29792 FaceRotateSpeed float32 // in degrees per second.
29796 MaxBreath uint16 // Player only.
29797 EyeHeight float32 // Player only.
29798 ZoomFOV float32 // in degrees. Player only.
29799 UseTextureAlpha bool
29800 DmgTextureMod Texture // suffix
29803 NametagBG color.NRGBA
29804 }))(obj)).FaceRotateSpeed
29805 write32(w, math.Float32bits(x))
29807 if len(([]byte((*(*(struct {
29808 MaxHP uint16 // Player only.
29809 CollideWithNodes bool
29810 Weight float32 // deprecated
29814 VisualSize [3]float32
29816 SpriteSheetSize [2]int16 // in sprites.
29817 SpritePos [2]int16 // in sprite sheet.
29819 MakeFootstepSnds bool
29820 RotateSpeed float32 // in radians per second.
29822 Colors []color.NRGBA
29823 CollideWithAOs bool
29826 FaceRotateDirOff float32 // in degrees.
29829 NametagColor color.NRGBA
29830 FaceRotateSpeed float32 // in degrees per second.
29834 MaxBreath uint16 // Player only.
29835 EyeHeight float32 // Player only.
29836 ZoomFOV float32 // in degrees. Player only.
29837 UseTextureAlpha bool
29838 DmgTextureMod Texture // suffix
29841 NametagBG color.NRGBA
29842 }))(obj)).Infotext))) > math.MaxUint16 {
29846 x := uint16(len(([]byte((*(*(struct {
29847 MaxHP uint16 // Player only.
29848 CollideWithNodes bool
29849 Weight float32 // deprecated
29853 VisualSize [3]float32
29855 SpriteSheetSize [2]int16 // in sprites.
29856 SpritePos [2]int16 // in sprite sheet.
29858 MakeFootstepSnds bool
29859 RotateSpeed float32 // in radians per second.
29861 Colors []color.NRGBA
29862 CollideWithAOs bool
29865 FaceRotateDirOff float32 // in degrees.
29868 NametagColor color.NRGBA
29869 FaceRotateSpeed float32 // in degrees per second.
29873 MaxBreath uint16 // Player only.
29874 EyeHeight float32 // Player only.
29875 ZoomFOV float32 // in degrees. Player only.
29876 UseTextureAlpha bool
29877 DmgTextureMod Texture // suffix
29880 NametagBG color.NRGBA
29881 }))(obj)).Infotext))))
29882 write16(w, uint16(x))
29885 _, err := w.Write(([]byte((*(*(struct {
29886 MaxHP uint16 // Player only.
29887 CollideWithNodes bool
29888 Weight float32 // deprecated
29892 VisualSize [3]float32
29894 SpriteSheetSize [2]int16 // in sprites.
29895 SpritePos [2]int16 // in sprite sheet.
29897 MakeFootstepSnds bool
29898 RotateSpeed float32 // in radians per second.
29900 Colors []color.NRGBA
29901 CollideWithAOs bool
29904 FaceRotateDirOff float32 // in degrees.
29907 NametagColor color.NRGBA
29908 FaceRotateSpeed float32 // in degrees per second.
29912 MaxBreath uint16 // Player only.
29913 EyeHeight float32 // Player only.
29914 ZoomFOV float32 // in degrees. Player only.
29915 UseTextureAlpha bool
29916 DmgTextureMod Texture // suffix
29919 NametagBG color.NRGBA
29920 }))(obj)).Infotext))[:])
29923 if len(([]byte((*(*(struct {
29924 MaxHP uint16 // Player only.
29925 CollideWithNodes bool
29926 Weight float32 // deprecated
29930 VisualSize [3]float32
29932 SpriteSheetSize [2]int16 // in sprites.
29933 SpritePos [2]int16 // in sprite sheet.
29935 MakeFootstepSnds bool
29936 RotateSpeed float32 // in radians per second.
29938 Colors []color.NRGBA
29939 CollideWithAOs bool
29942 FaceRotateDirOff float32 // in degrees.
29945 NametagColor color.NRGBA
29946 FaceRotateSpeed float32 // in degrees per second.
29950 MaxBreath uint16 // Player only.
29951 EyeHeight float32 // Player only.
29952 ZoomFOV float32 // in degrees. Player only.
29953 UseTextureAlpha bool
29954 DmgTextureMod Texture // suffix
29957 NametagBG color.NRGBA
29958 }))(obj)).Itemstring))) > math.MaxUint16 {
29962 x := uint16(len(([]byte((*(*(struct {
29963 MaxHP uint16 // Player only.
29964 CollideWithNodes bool
29965 Weight float32 // deprecated
29969 VisualSize [3]float32
29971 SpriteSheetSize [2]int16 // in sprites.
29972 SpritePos [2]int16 // in sprite sheet.
29974 MakeFootstepSnds bool
29975 RotateSpeed float32 // in radians per second.
29977 Colors []color.NRGBA
29978 CollideWithAOs bool
29981 FaceRotateDirOff float32 // in degrees.
29984 NametagColor color.NRGBA
29985 FaceRotateSpeed float32 // in degrees per second.
29989 MaxBreath uint16 // Player only.
29990 EyeHeight float32 // Player only.
29991 ZoomFOV float32 // in degrees. Player only.
29992 UseTextureAlpha bool
29993 DmgTextureMod Texture // suffix
29996 NametagBG color.NRGBA
29997 }))(obj)).Itemstring))))
29998 write16(w, uint16(x))
30001 _, err := w.Write(([]byte((*(*(struct {
30002 MaxHP uint16 // Player only.
30003 CollideWithNodes bool
30004 Weight float32 // deprecated
30008 VisualSize [3]float32
30010 SpriteSheetSize [2]int16 // in sprites.
30011 SpritePos [2]int16 // in sprite sheet.
30013 MakeFootstepSnds bool
30014 RotateSpeed float32 // in radians per second.
30016 Colors []color.NRGBA
30017 CollideWithAOs bool
30020 FaceRotateDirOff float32 // in degrees.
30023 NametagColor color.NRGBA
30024 FaceRotateSpeed float32 // in degrees per second.
30028 MaxBreath uint16 // Player only.
30029 EyeHeight float32 // Player only.
30030 ZoomFOV float32 // in degrees. Player only.
30031 UseTextureAlpha bool
30032 DmgTextureMod Texture // suffix
30035 NametagBG color.NRGBA
30036 }))(obj)).Itemstring))[:])
30041 MaxHP uint16 // Player only.
30042 CollideWithNodes bool
30043 Weight float32 // deprecated
30047 VisualSize [3]float32
30049 SpriteSheetSize [2]int16 // in sprites.
30050 SpritePos [2]int16 // in sprite sheet.
30052 MakeFootstepSnds bool
30053 RotateSpeed float32 // in radians per second.
30055 Colors []color.NRGBA
30056 CollideWithAOs bool
30059 FaceRotateDirOff float32 // in degrees.
30062 NametagColor color.NRGBA
30063 FaceRotateSpeed float32 // in degrees per second.
30067 MaxBreath uint16 // Player only.
30068 EyeHeight float32 // Player only.
30069 ZoomFOV float32 // in degrees. Player only.
30070 UseTextureAlpha bool
30071 DmgTextureMod Texture // suffix
30074 NametagBG color.NRGBA
30076 write8(w, uint8(x))
30080 MaxHP uint16 // Player only.
30081 CollideWithNodes bool
30082 Weight float32 // deprecated
30086 VisualSize [3]float32
30088 SpriteSheetSize [2]int16 // in sprites.
30089 SpritePos [2]int16 // in sprite sheet.
30091 MakeFootstepSnds bool
30092 RotateSpeed float32 // in radians per second.
30094 Colors []color.NRGBA
30095 CollideWithAOs bool
30098 FaceRotateDirOff float32 // in degrees.
30101 NametagColor color.NRGBA
30102 FaceRotateSpeed float32 // in degrees per second.
30106 MaxBreath uint16 // Player only.
30107 EyeHeight float32 // Player only.
30108 ZoomFOV float32 // in degrees. Player only.
30109 UseTextureAlpha bool
30110 DmgTextureMod Texture // suffix
30113 NametagBG color.NRGBA
30114 }))(obj)).MaxBreath
30115 write16(w, uint16(x))
30119 MaxHP uint16 // Player only.
30120 CollideWithNodes bool
30121 Weight float32 // deprecated
30125 VisualSize [3]float32
30127 SpriteSheetSize [2]int16 // in sprites.
30128 SpritePos [2]int16 // in sprite sheet.
30130 MakeFootstepSnds bool
30131 RotateSpeed float32 // in radians per second.
30133 Colors []color.NRGBA
30134 CollideWithAOs bool
30137 FaceRotateDirOff float32 // in degrees.
30140 NametagColor color.NRGBA
30141 FaceRotateSpeed float32 // in degrees per second.
30145 MaxBreath uint16 // Player only.
30146 EyeHeight float32 // Player only.
30147 ZoomFOV float32 // in degrees. Player only.
30148 UseTextureAlpha bool
30149 DmgTextureMod Texture // suffix
30152 NametagBG color.NRGBA
30153 }))(obj)).EyeHeight
30154 write32(w, math.Float32bits(x))
30158 MaxHP uint16 // Player only.
30159 CollideWithNodes bool
30160 Weight float32 // deprecated
30164 VisualSize [3]float32
30166 SpriteSheetSize [2]int16 // in sprites.
30167 SpritePos [2]int16 // in sprite sheet.
30169 MakeFootstepSnds bool
30170 RotateSpeed float32 // in radians per second.
30172 Colors []color.NRGBA
30173 CollideWithAOs bool
30176 FaceRotateDirOff float32 // in degrees.
30179 NametagColor color.NRGBA
30180 FaceRotateSpeed float32 // in degrees per second.
30184 MaxBreath uint16 // Player only.
30185 EyeHeight float32 // Player only.
30186 ZoomFOV float32 // in degrees. Player only.
30187 UseTextureAlpha bool
30188 DmgTextureMod Texture // suffix
30191 NametagBG color.NRGBA
30193 write32(w, math.Float32bits(x))
30197 MaxHP uint16 // Player only.
30198 CollideWithNodes bool
30199 Weight float32 // deprecated
30203 VisualSize [3]float32
30205 SpriteSheetSize [2]int16 // in sprites.
30206 SpritePos [2]int16 // in sprite sheet.
30208 MakeFootstepSnds bool
30209 RotateSpeed float32 // in radians per second.
30211 Colors []color.NRGBA
30212 CollideWithAOs bool
30215 FaceRotateDirOff float32 // in degrees.
30218 NametagColor color.NRGBA
30219 FaceRotateSpeed float32 // in degrees per second.
30223 MaxBreath uint16 // Player only.
30224 EyeHeight float32 // Player only.
30225 ZoomFOV float32 // in degrees. Player only.
30226 UseTextureAlpha bool
30227 DmgTextureMod Texture // suffix
30230 NametagBG color.NRGBA
30231 }))(obj)).UseTextureAlpha
30238 if err := pcall(func() {
30240 MaxHP uint16 // Player only.
30241 CollideWithNodes bool
30242 Weight float32 // deprecated
30246 VisualSize [3]float32
30248 SpriteSheetSize [2]int16 // in sprites.
30249 SpritePos [2]int16 // in sprite sheet.
30251 MakeFootstepSnds bool
30252 RotateSpeed float32 // in radians per second.
30254 Colors []color.NRGBA
30255 CollideWithAOs bool
30258 FaceRotateDirOff float32 // in degrees.
30261 NametagColor color.NRGBA
30262 FaceRotateSpeed float32 // in degrees per second.
30266 MaxBreath uint16 // Player only.
30267 EyeHeight float32 // Player only.
30268 ZoomFOV float32 // in degrees. Player only.
30269 UseTextureAlpha bool
30270 DmgTextureMod Texture // suffix
30273 NametagBG color.NRGBA
30274 }))(obj)).DmgTextureMod).serialize(w)
30279 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30283 MaxHP uint16 // Player only.
30284 CollideWithNodes bool
30285 Weight float32 // deprecated
30289 VisualSize [3]float32
30291 SpriteSheetSize [2]int16 // in sprites.
30292 SpritePos [2]int16 // in sprite sheet.
30294 MakeFootstepSnds bool
30295 RotateSpeed float32 // in radians per second.
30297 Colors []color.NRGBA
30298 CollideWithAOs bool
30301 FaceRotateDirOff float32 // in degrees.
30304 NametagColor color.NRGBA
30305 FaceRotateSpeed float32 // in degrees per second.
30309 MaxBreath uint16 // Player only.
30310 EyeHeight float32 // Player only.
30311 ZoomFOV float32 // in degrees. Player only.
30312 UseTextureAlpha bool
30313 DmgTextureMod Texture // suffix
30316 NametagBG color.NRGBA
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
30360 }))(obj)).ShowOnMinimap
30369 MaxHP uint16 // Player only.
30370 CollideWithNodes bool
30371 Weight float32 // deprecated
30375 VisualSize [3]float32
30377 SpriteSheetSize [2]int16 // in sprites.
30378 SpritePos [2]int16 // in sprite sheet.
30380 MakeFootstepSnds bool
30381 RotateSpeed float32 // in radians per second.
30383 Colors []color.NRGBA
30384 CollideWithAOs bool
30387 FaceRotateDirOff float32 // in degrees.
30390 NametagColor color.NRGBA
30391 FaceRotateSpeed float32 // in degrees per second.
30395 MaxBreath uint16 // Player only.
30396 EyeHeight float32 // Player only.
30397 ZoomFOV float32 // in degrees. Player only.
30398 UseTextureAlpha bool
30399 DmgTextureMod Texture // suffix
30402 NametagBG color.NRGBA
30403 }))(obj)).NametagBG
30404 w.Write([]byte{x.A, x.R, x.G, x.B})
30408 func (obj *AOProps) deserialize(r io.Reader) {
30411 local337 := uint8(4)
30416 if local336 != local337 {
30417 chk(fmt.Errorf("const %v: %v", "uint8(4)", local336))
30421 p := &(*(*(struct {
30422 MaxHP uint16 // Player only.
30423 CollideWithNodes bool
30424 Weight float32 // deprecated
30428 VisualSize [3]float32
30430 SpriteSheetSize [2]int16 // in sprites.
30431 SpritePos [2]int16 // in sprite sheet.
30433 MakeFootstepSnds bool
30434 RotateSpeed float32 // in radians per second.
30436 Colors []color.NRGBA
30437 CollideWithAOs bool
30440 FaceRotateDirOff float32 // in degrees.
30443 NametagColor color.NRGBA
30444 FaceRotateSpeed float32 // in degrees per second.
30448 MaxBreath uint16 // Player only.
30449 EyeHeight float32 // Player only.
30450 ZoomFOV float32 // in degrees. Player only.
30451 UseTextureAlpha bool
30452 DmgTextureMod Texture // suffix
30455 NametagBG color.NRGBA
30460 p := &(*(*(struct {
30461 MaxHP uint16 // Player only.
30462 CollideWithNodes bool
30463 Weight float32 // deprecated
30467 VisualSize [3]float32
30469 SpriteSheetSize [2]int16 // in sprites.
30470 SpritePos [2]int16 // in sprite sheet.
30472 MakeFootstepSnds bool
30473 RotateSpeed float32 // in radians per second.
30475 Colors []color.NRGBA
30476 CollideWithAOs bool
30479 FaceRotateDirOff float32 // in degrees.
30482 NametagColor color.NRGBA
30483 FaceRotateSpeed float32 // in degrees per second.
30487 MaxBreath uint16 // Player only.
30488 EyeHeight float32 // Player only.
30489 ZoomFOV float32 // in degrees. Player only.
30490 UseTextureAlpha bool
30491 DmgTextureMod Texture // suffix
30494 NametagBG color.NRGBA
30495 }))(obj)).CollideWithNodes
30496 switch n := read8(r); n {
30502 chk(fmt.Errorf("invalid bool: %d", n))
30506 p := &(*(*(struct {
30507 MaxHP uint16 // Player only.
30508 CollideWithNodes bool
30509 Weight float32 // deprecated
30513 VisualSize [3]float32
30515 SpriteSheetSize [2]int16 // in sprites.
30516 SpritePos [2]int16 // in sprite sheet.
30518 MakeFootstepSnds bool
30519 RotateSpeed float32 // in radians per second.
30521 Colors []color.NRGBA
30522 CollideWithAOs bool
30525 FaceRotateDirOff float32 // in degrees.
30528 NametagColor color.NRGBA
30529 FaceRotateSpeed float32 // in degrees per second.
30533 MaxBreath uint16 // Player only.
30534 EyeHeight float32 // Player only.
30535 ZoomFOV float32 // in degrees. Player only.
30536 UseTextureAlpha bool
30537 DmgTextureMod Texture // suffix
30540 NametagBG color.NRGBA
30542 *p = math.Float32frombits(read32(r))
30544 if err := pcall(func() {
30546 MaxHP uint16 // Player only.
30547 CollideWithNodes bool
30548 Weight float32 // deprecated
30552 VisualSize [3]float32
30554 SpriteSheetSize [2]int16 // in sprites.
30555 SpritePos [2]int16 // in sprite sheet.
30557 MakeFootstepSnds bool
30558 RotateSpeed float32 // in radians per second.
30560 Colors []color.NRGBA
30561 CollideWithAOs bool
30564 FaceRotateDirOff float32 // in degrees.
30567 NametagColor color.NRGBA
30568 FaceRotateSpeed float32 // in degrees per second.
30572 MaxBreath uint16 // Player only.
30573 EyeHeight float32 // Player only.
30574 ZoomFOV float32 // in degrees. Player only.
30575 UseTextureAlpha bool
30576 DmgTextureMod Texture // suffix
30579 NametagBG color.NRGBA
30580 }))(obj)).ColBox).deserialize(r)
30585 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30587 if err := pcall(func() {
30589 MaxHP uint16 // Player only.
30590 CollideWithNodes bool
30591 Weight float32 // deprecated
30595 VisualSize [3]float32
30597 SpriteSheetSize [2]int16 // in sprites.
30598 SpritePos [2]int16 // in sprite sheet.
30600 MakeFootstepSnds bool
30601 RotateSpeed float32 // in radians per second.
30603 Colors []color.NRGBA
30604 CollideWithAOs bool
30607 FaceRotateDirOff float32 // in degrees.
30610 NametagColor color.NRGBA
30611 FaceRotateSpeed float32 // in degrees per second.
30615 MaxBreath uint16 // Player only.
30616 EyeHeight float32 // Player only.
30617 ZoomFOV float32 // in degrees. Player only.
30618 UseTextureAlpha bool
30619 DmgTextureMod Texture // suffix
30622 NametagBG color.NRGBA
30623 }))(obj)).SelBox).deserialize(r)
30628 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30631 p := &(*(*(struct {
30632 MaxHP uint16 // Player only.
30633 CollideWithNodes bool
30634 Weight float32 // deprecated
30638 VisualSize [3]float32
30640 SpriteSheetSize [2]int16 // in sprites.
30641 SpritePos [2]int16 // in sprite sheet.
30643 MakeFootstepSnds bool
30644 RotateSpeed float32 // in radians per second.
30646 Colors []color.NRGBA
30647 CollideWithAOs bool
30650 FaceRotateDirOff float32 // in degrees.
30653 NametagColor color.NRGBA
30654 FaceRotateSpeed float32 // in degrees per second.
30658 MaxBreath uint16 // Player only.
30659 EyeHeight float32 // Player only.
30660 ZoomFOV float32 // in degrees. Player only.
30661 UseTextureAlpha bool
30662 DmgTextureMod Texture // suffix
30665 NametagBG color.NRGBA
30666 }))(obj)).Pointable
30667 switch n := read8(r); n {
30673 chk(fmt.Errorf("invalid bool: %d", n))
30676 var local338 []uint8
30677 var local339 uint16
30682 (local338) = make([]uint8, local339)
30684 _, err := io.ReadFull(r, (local338)[:])
30688 MaxHP uint16 // Player only.
30689 CollideWithNodes bool
30690 Weight float32 // deprecated
30694 VisualSize [3]float32
30696 SpriteSheetSize [2]int16 // in sprites.
30697 SpritePos [2]int16 // in sprite sheet.
30699 MakeFootstepSnds bool
30700 RotateSpeed float32 // in radians per second.
30702 Colors []color.NRGBA
30703 CollideWithAOs bool
30706 FaceRotateDirOff float32 // in degrees.
30709 NametagColor color.NRGBA
30710 FaceRotateSpeed float32 // in degrees per second.
30714 MaxBreath uint16 // Player only.
30715 EyeHeight float32 // Player only.
30716 ZoomFOV float32 // in degrees. Player only.
30717 UseTextureAlpha bool
30718 DmgTextureMod Texture // suffix
30721 NametagBG color.NRGBA
30722 }))(obj)).Visual) = string(local338)
30723 for local340 := range (*(*(struct {
30724 MaxHP uint16 // Player only.
30725 CollideWithNodes bool
30726 Weight float32 // deprecated
30730 VisualSize [3]float32
30732 SpriteSheetSize [2]int16 // in sprites.
30733 SpritePos [2]int16 // in sprite sheet.
30735 MakeFootstepSnds bool
30736 RotateSpeed float32 // in radians per second.
30738 Colors []color.NRGBA
30739 CollideWithAOs bool
30742 FaceRotateDirOff float32 // in degrees.
30745 NametagColor color.NRGBA
30746 FaceRotateSpeed float32 // in degrees per second.
30750 MaxBreath uint16 // Player only.
30751 EyeHeight float32 // Player only.
30752 ZoomFOV float32 // in degrees. Player only.
30753 UseTextureAlpha bool
30754 DmgTextureMod Texture // suffix
30757 NametagBG color.NRGBA
30758 }))(obj)).VisualSize {
30760 p := &((*(*(struct {
30761 MaxHP uint16 // Player only.
30762 CollideWithNodes bool
30763 Weight float32 // deprecated
30767 VisualSize [3]float32
30769 SpriteSheetSize [2]int16 // in sprites.
30770 SpritePos [2]int16 // in sprite sheet.
30772 MakeFootstepSnds bool
30773 RotateSpeed float32 // in radians per second.
30775 Colors []color.NRGBA
30776 CollideWithAOs bool
30779 FaceRotateDirOff float32 // in degrees.
30782 NametagColor color.NRGBA
30783 FaceRotateSpeed float32 // in degrees per second.
30787 MaxBreath uint16 // Player only.
30788 EyeHeight float32 // Player only.
30789 ZoomFOV float32 // in degrees. Player only.
30790 UseTextureAlpha bool
30791 DmgTextureMod Texture // suffix
30794 NametagBG color.NRGBA
30795 }))(obj)).VisualSize)[local340]
30796 *p = math.Float32frombits(read32(r))
30799 var local341 uint16
30805 MaxHP uint16 // Player only.
30806 CollideWithNodes bool
30807 Weight float32 // deprecated
30811 VisualSize [3]float32
30813 SpriteSheetSize [2]int16 // in sprites.
30814 SpritePos [2]int16 // in sprite sheet.
30816 MakeFootstepSnds bool
30817 RotateSpeed float32 // in radians per second.
30819 Colors []color.NRGBA
30820 CollideWithAOs bool
30823 FaceRotateDirOff float32 // in degrees.
30826 NametagColor color.NRGBA
30827 FaceRotateSpeed float32 // in degrees per second.
30831 MaxBreath uint16 // Player only.
30832 EyeHeight float32 // Player only.
30833 ZoomFOV float32 // in degrees. Player only.
30834 UseTextureAlpha bool
30835 DmgTextureMod Texture // suffix
30838 NametagBG color.NRGBA
30839 }))(obj)).Textures) = make([]Texture, local341)
30840 for local342 := range (*(*(struct {
30841 MaxHP uint16 // Player only.
30842 CollideWithNodes bool
30843 Weight float32 // deprecated
30847 VisualSize [3]float32
30849 SpriteSheetSize [2]int16 // in sprites.
30850 SpritePos [2]int16 // in sprite sheet.
30852 MakeFootstepSnds bool
30853 RotateSpeed float32 // in radians per second.
30855 Colors []color.NRGBA
30856 CollideWithAOs bool
30859 FaceRotateDirOff float32 // in degrees.
30862 NametagColor color.NRGBA
30863 FaceRotateSpeed float32 // in degrees per second.
30867 MaxBreath uint16 // Player only.
30868 EyeHeight float32 // Player only.
30869 ZoomFOV float32 // in degrees. Player only.
30870 UseTextureAlpha bool
30871 DmgTextureMod Texture // suffix
30874 NametagBG color.NRGBA
30875 }))(obj)).Textures {
30876 if err := pcall(func() {
30878 MaxHP uint16 // Player only.
30879 CollideWithNodes bool
30880 Weight float32 // deprecated
30884 VisualSize [3]float32
30886 SpriteSheetSize [2]int16 // in sprites.
30887 SpritePos [2]int16 // in sprite sheet.
30889 MakeFootstepSnds bool
30890 RotateSpeed float32 // in radians per second.
30892 Colors []color.NRGBA
30893 CollideWithAOs bool
30896 FaceRotateDirOff float32 // in degrees.
30899 NametagColor color.NRGBA
30900 FaceRotateSpeed float32 // in degrees per second.
30904 MaxBreath uint16 // Player only.
30905 EyeHeight float32 // Player only.
30906 ZoomFOV float32 // in degrees. Player only.
30907 UseTextureAlpha bool
30908 DmgTextureMod Texture // suffix
30911 NametagBG color.NRGBA
30912 }))(obj)).Textures)[local342]).deserialize(r)
30917 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30920 for local343 := range (*(*(struct {
30921 MaxHP uint16 // Player only.
30922 CollideWithNodes bool
30923 Weight float32 // deprecated
30927 VisualSize [3]float32
30929 SpriteSheetSize [2]int16 // in sprites.
30930 SpritePos [2]int16 // in sprite sheet.
30932 MakeFootstepSnds bool
30933 RotateSpeed float32 // in radians per second.
30935 Colors []color.NRGBA
30936 CollideWithAOs bool
30939 FaceRotateDirOff float32 // in degrees.
30942 NametagColor color.NRGBA
30943 FaceRotateSpeed float32 // in degrees per second.
30947 MaxBreath uint16 // Player only.
30948 EyeHeight float32 // Player only.
30949 ZoomFOV float32 // in degrees. Player only.
30950 UseTextureAlpha bool
30951 DmgTextureMod Texture // suffix
30954 NametagBG color.NRGBA
30955 }))(obj)).SpriteSheetSize {
30957 p := &((*(*(struct {
30958 MaxHP uint16 // Player only.
30959 CollideWithNodes bool
30960 Weight float32 // deprecated
30964 VisualSize [3]float32
30966 SpriteSheetSize [2]int16 // in sprites.
30967 SpritePos [2]int16 // in sprite sheet.
30969 MakeFootstepSnds bool
30970 RotateSpeed float32 // in radians per second.
30972 Colors []color.NRGBA
30973 CollideWithAOs bool
30976 FaceRotateDirOff float32 // in degrees.
30979 NametagColor color.NRGBA
30980 FaceRotateSpeed float32 // in degrees per second.
30984 MaxBreath uint16 // Player only.
30985 EyeHeight float32 // Player only.
30986 ZoomFOV float32 // in degrees. Player only.
30987 UseTextureAlpha bool
30988 DmgTextureMod Texture // suffix
30991 NametagBG color.NRGBA
30992 }))(obj)).SpriteSheetSize)[local343]
30993 *p = int16(read16(r))
30996 for local344 := range (*(*(struct {
30997 MaxHP uint16 // Player only.
30998 CollideWithNodes bool
30999 Weight float32 // deprecated
31003 VisualSize [3]float32
31005 SpriteSheetSize [2]int16 // in sprites.
31006 SpritePos [2]int16 // in sprite sheet.
31008 MakeFootstepSnds bool
31009 RotateSpeed float32 // in radians per second.
31011 Colors []color.NRGBA
31012 CollideWithAOs bool
31015 FaceRotateDirOff float32 // in degrees.
31018 NametagColor color.NRGBA
31019 FaceRotateSpeed float32 // in degrees per second.
31023 MaxBreath uint16 // Player only.
31024 EyeHeight float32 // Player only.
31025 ZoomFOV float32 // in degrees. Player only.
31026 UseTextureAlpha bool
31027 DmgTextureMod Texture // suffix
31030 NametagBG color.NRGBA
31031 }))(obj)).SpritePos {
31033 p := &((*(*(struct {
31034 MaxHP uint16 // Player only.
31035 CollideWithNodes bool
31036 Weight float32 // deprecated
31040 VisualSize [3]float32
31042 SpriteSheetSize [2]int16 // in sprites.
31043 SpritePos [2]int16 // in sprite sheet.
31045 MakeFootstepSnds bool
31046 RotateSpeed float32 // in radians per second.
31048 Colors []color.NRGBA
31049 CollideWithAOs bool
31052 FaceRotateDirOff float32 // in degrees.
31055 NametagColor color.NRGBA
31056 FaceRotateSpeed float32 // in degrees per second.
31060 MaxBreath uint16 // Player only.
31061 EyeHeight float32 // Player only.
31062 ZoomFOV float32 // in degrees. Player only.
31063 UseTextureAlpha bool
31064 DmgTextureMod Texture // suffix
31067 NametagBG color.NRGBA
31068 }))(obj)).SpritePos)[local344]
31069 *p = int16(read16(r))
31073 p := &(*(*(struct {
31074 MaxHP uint16 // Player only.
31075 CollideWithNodes bool
31076 Weight float32 // deprecated
31080 VisualSize [3]float32
31082 SpriteSheetSize [2]int16 // in sprites.
31083 SpritePos [2]int16 // in sprite sheet.
31085 MakeFootstepSnds bool
31086 RotateSpeed float32 // in radians per second.
31088 Colors []color.NRGBA
31089 CollideWithAOs bool
31092 FaceRotateDirOff float32 // in degrees.
31095 NametagColor color.NRGBA
31096 FaceRotateSpeed float32 // in degrees per second.
31100 MaxBreath uint16 // Player only.
31101 EyeHeight float32 // Player only.
31102 ZoomFOV float32 // in degrees. Player only.
31103 UseTextureAlpha bool
31104 DmgTextureMod Texture // suffix
31107 NametagBG color.NRGBA
31109 switch n := read8(r); n {
31115 chk(fmt.Errorf("invalid bool: %d", n))
31119 p := &(*(*(struct {
31120 MaxHP uint16 // Player only.
31121 CollideWithNodes bool
31122 Weight float32 // deprecated
31126 VisualSize [3]float32
31128 SpriteSheetSize [2]int16 // in sprites.
31129 SpritePos [2]int16 // in sprite sheet.
31131 MakeFootstepSnds bool
31132 RotateSpeed float32 // in radians per second.
31134 Colors []color.NRGBA
31135 CollideWithAOs bool
31138 FaceRotateDirOff float32 // in degrees.
31141 NametagColor color.NRGBA
31142 FaceRotateSpeed float32 // in degrees per second.
31146 MaxBreath uint16 // Player only.
31147 EyeHeight float32 // Player only.
31148 ZoomFOV float32 // in degrees. Player only.
31149 UseTextureAlpha bool
31150 DmgTextureMod Texture // suffix
31153 NametagBG color.NRGBA
31154 }))(obj)).MakeFootstepSnds
31155 switch n := read8(r); n {
31161 chk(fmt.Errorf("invalid bool: %d", n))
31165 p := &(*(*(struct {
31166 MaxHP uint16 // Player only.
31167 CollideWithNodes bool
31168 Weight float32 // deprecated
31172 VisualSize [3]float32
31174 SpriteSheetSize [2]int16 // in sprites.
31175 SpritePos [2]int16 // in sprite sheet.
31177 MakeFootstepSnds bool
31178 RotateSpeed float32 // in radians per second.
31180 Colors []color.NRGBA
31181 CollideWithAOs bool
31184 FaceRotateDirOff float32 // in degrees.
31187 NametagColor color.NRGBA
31188 FaceRotateSpeed float32 // in degrees per second.
31192 MaxBreath uint16 // Player only.
31193 EyeHeight float32 // Player only.
31194 ZoomFOV float32 // in degrees. Player only.
31195 UseTextureAlpha bool
31196 DmgTextureMod Texture // suffix
31199 NametagBG color.NRGBA
31200 }))(obj)).RotateSpeed
31201 *p = math.Float32frombits(read32(r))
31203 var local345 []uint8
31204 var local346 uint16
31209 (local345) = make([]uint8, local346)
31211 _, err := io.ReadFull(r, (local345)[:])
31215 MaxHP uint16 // Player only.
31216 CollideWithNodes bool
31217 Weight float32 // deprecated
31221 VisualSize [3]float32
31223 SpriteSheetSize [2]int16 // in sprites.
31224 SpritePos [2]int16 // in sprite sheet.
31226 MakeFootstepSnds bool
31227 RotateSpeed float32 // in radians per second.
31229 Colors []color.NRGBA
31230 CollideWithAOs bool
31233 FaceRotateDirOff float32 // in degrees.
31236 NametagColor color.NRGBA
31237 FaceRotateSpeed float32 // in degrees per second.
31241 MaxBreath uint16 // Player only.
31242 EyeHeight float32 // Player only.
31243 ZoomFOV float32 // in degrees. Player only.
31244 UseTextureAlpha bool
31245 DmgTextureMod Texture // suffix
31248 NametagBG color.NRGBA
31249 }))(obj)).Mesh) = string(local345)
31250 var local347 uint16
31256 MaxHP uint16 // Player only.
31257 CollideWithNodes bool
31258 Weight float32 // deprecated
31262 VisualSize [3]float32
31264 SpriteSheetSize [2]int16 // in sprites.
31265 SpritePos [2]int16 // in sprite sheet.
31267 MakeFootstepSnds bool
31268 RotateSpeed float32 // in radians per second.
31270 Colors []color.NRGBA
31271 CollideWithAOs bool
31274 FaceRotateDirOff float32 // in degrees.
31277 NametagColor color.NRGBA
31278 FaceRotateSpeed float32 // in degrees per second.
31282 MaxBreath uint16 // Player only.
31283 EyeHeight float32 // Player only.
31284 ZoomFOV float32 // in degrees. Player only.
31285 UseTextureAlpha bool
31286 DmgTextureMod Texture // suffix
31289 NametagBG color.NRGBA
31290 }))(obj)).Colors) = make([]color.NRGBA, local347)
31291 for local348 := range (*(*(struct {
31292 MaxHP uint16 // Player only.
31293 CollideWithNodes bool
31294 Weight float32 // deprecated
31298 VisualSize [3]float32
31300 SpriteSheetSize [2]int16 // in sprites.
31301 SpritePos [2]int16 // in sprite sheet.
31303 MakeFootstepSnds bool
31304 RotateSpeed float32 // in radians per second.
31306 Colors []color.NRGBA
31307 CollideWithAOs bool
31310 FaceRotateDirOff float32 // in degrees.
31313 NametagColor color.NRGBA
31314 FaceRotateSpeed float32 // in degrees per second.
31318 MaxBreath uint16 // Player only.
31319 EyeHeight float32 // Player only.
31320 ZoomFOV float32 // in degrees. Player only.
31321 UseTextureAlpha bool
31322 DmgTextureMod Texture // suffix
31325 NametagBG color.NRGBA
31328 p := &((*(*(struct {
31329 MaxHP uint16 // Player only.
31330 CollideWithNodes bool
31331 Weight float32 // deprecated
31335 VisualSize [3]float32
31337 SpriteSheetSize [2]int16 // in sprites.
31338 SpritePos [2]int16 // in sprite sheet.
31340 MakeFootstepSnds bool
31341 RotateSpeed float32 // in radians per second.
31343 Colors []color.NRGBA
31344 CollideWithAOs bool
31347 FaceRotateDirOff float32 // in degrees.
31350 NametagColor color.NRGBA
31351 FaceRotateSpeed float32 // in degrees per second.
31355 MaxBreath uint16 // Player only.
31356 EyeHeight float32 // Player only.
31357 ZoomFOV float32 // in degrees. Player only.
31358 UseTextureAlpha bool
31359 DmgTextureMod Texture // suffix
31362 NametagBG color.NRGBA
31363 }))(obj)).Colors)[local348]
31364 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31368 p := &(*(*(struct {
31369 MaxHP uint16 // Player only.
31370 CollideWithNodes bool
31371 Weight float32 // deprecated
31375 VisualSize [3]float32
31377 SpriteSheetSize [2]int16 // in sprites.
31378 SpritePos [2]int16 // in sprite sheet.
31380 MakeFootstepSnds bool
31381 RotateSpeed float32 // in radians per second.
31383 Colors []color.NRGBA
31384 CollideWithAOs bool
31387 FaceRotateDirOff float32 // in degrees.
31390 NametagColor color.NRGBA
31391 FaceRotateSpeed float32 // in degrees per second.
31395 MaxBreath uint16 // Player only.
31396 EyeHeight float32 // Player only.
31397 ZoomFOV float32 // in degrees. Player only.
31398 UseTextureAlpha bool
31399 DmgTextureMod Texture // suffix
31402 NametagBG color.NRGBA
31403 }))(obj)).CollideWithAOs
31404 switch n := read8(r); n {
31410 chk(fmt.Errorf("invalid bool: %d", n))
31414 p := &(*(*(struct {
31415 MaxHP uint16 // Player only.
31416 CollideWithNodes bool
31417 Weight float32 // deprecated
31421 VisualSize [3]float32
31423 SpriteSheetSize [2]int16 // in sprites.
31424 SpritePos [2]int16 // in sprite sheet.
31426 MakeFootstepSnds bool
31427 RotateSpeed float32 // in radians per second.
31429 Colors []color.NRGBA
31430 CollideWithAOs bool
31433 FaceRotateDirOff float32 // in degrees.
31436 NametagColor color.NRGBA
31437 FaceRotateSpeed float32 // in degrees per second.
31441 MaxBreath uint16 // Player only.
31442 EyeHeight float32 // Player only.
31443 ZoomFOV float32 // in degrees. Player only.
31444 UseTextureAlpha bool
31445 DmgTextureMod Texture // suffix
31448 NametagBG color.NRGBA
31449 }))(obj)).StepHeight
31450 *p = math.Float32frombits(read32(r))
31453 p := &(*(*(struct {
31454 MaxHP uint16 // Player only.
31455 CollideWithNodes bool
31456 Weight float32 // deprecated
31460 VisualSize [3]float32
31462 SpriteSheetSize [2]int16 // in sprites.
31463 SpritePos [2]int16 // in sprite sheet.
31465 MakeFootstepSnds bool
31466 RotateSpeed float32 // in radians per second.
31468 Colors []color.NRGBA
31469 CollideWithAOs bool
31472 FaceRotateDirOff float32 // in degrees.
31475 NametagColor color.NRGBA
31476 FaceRotateSpeed float32 // in degrees per second.
31480 MaxBreath uint16 // Player only.
31481 EyeHeight float32 // Player only.
31482 ZoomFOV float32 // in degrees. Player only.
31483 UseTextureAlpha bool
31484 DmgTextureMod Texture // suffix
31487 NametagBG color.NRGBA
31488 }))(obj)).FaceRotateDir
31489 switch n := read8(r); n {
31495 chk(fmt.Errorf("invalid bool: %d", n))
31499 p := &(*(*(struct {
31500 MaxHP uint16 // Player only.
31501 CollideWithNodes bool
31502 Weight float32 // deprecated
31506 VisualSize [3]float32
31508 SpriteSheetSize [2]int16 // in sprites.
31509 SpritePos [2]int16 // in sprite sheet.
31511 MakeFootstepSnds bool
31512 RotateSpeed float32 // in radians per second.
31514 Colors []color.NRGBA
31515 CollideWithAOs bool
31518 FaceRotateDirOff float32 // in degrees.
31521 NametagColor color.NRGBA
31522 FaceRotateSpeed float32 // in degrees per second.
31526 MaxBreath uint16 // Player only.
31527 EyeHeight float32 // Player only.
31528 ZoomFOV float32 // in degrees. Player only.
31529 UseTextureAlpha bool
31530 DmgTextureMod Texture // suffix
31533 NametagBG color.NRGBA
31534 }))(obj)).FaceRotateDirOff
31535 *p = math.Float32frombits(read32(r))
31538 p := &(*(*(struct {
31539 MaxHP uint16 // Player only.
31540 CollideWithNodes bool
31541 Weight float32 // deprecated
31545 VisualSize [3]float32
31547 SpriteSheetSize [2]int16 // in sprites.
31548 SpritePos [2]int16 // in sprite sheet.
31550 MakeFootstepSnds bool
31551 RotateSpeed float32 // in radians per second.
31553 Colors []color.NRGBA
31554 CollideWithAOs bool
31557 FaceRotateDirOff float32 // in degrees.
31560 NametagColor color.NRGBA
31561 FaceRotateSpeed float32 // in degrees per second.
31565 MaxBreath uint16 // Player only.
31566 EyeHeight float32 // Player only.
31567 ZoomFOV float32 // in degrees. Player only.
31568 UseTextureAlpha bool
31569 DmgTextureMod Texture // suffix
31572 NametagBG color.NRGBA
31573 }))(obj)).BackfaceCull
31574 switch n := read8(r); n {
31580 chk(fmt.Errorf("invalid bool: %d", n))
31583 var local349 []uint8
31584 var local350 uint16
31589 (local349) = make([]uint8, local350)
31591 _, err := io.ReadFull(r, (local349)[:])
31595 MaxHP uint16 // Player only.
31596 CollideWithNodes bool
31597 Weight float32 // deprecated
31601 VisualSize [3]float32
31603 SpriteSheetSize [2]int16 // in sprites.
31604 SpritePos [2]int16 // in sprite sheet.
31606 MakeFootstepSnds bool
31607 RotateSpeed float32 // in radians per second.
31609 Colors []color.NRGBA
31610 CollideWithAOs bool
31613 FaceRotateDirOff float32 // in degrees.
31616 NametagColor color.NRGBA
31617 FaceRotateSpeed float32 // in degrees per second.
31621 MaxBreath uint16 // Player only.
31622 EyeHeight float32 // Player only.
31623 ZoomFOV float32 // in degrees. Player only.
31624 UseTextureAlpha bool
31625 DmgTextureMod Texture // suffix
31628 NametagBG color.NRGBA
31629 }))(obj)).Nametag) = string(local349)
31631 p := &(*(*(struct {
31632 MaxHP uint16 // Player only.
31633 CollideWithNodes bool
31634 Weight float32 // deprecated
31638 VisualSize [3]float32
31640 SpriteSheetSize [2]int16 // in sprites.
31641 SpritePos [2]int16 // in sprite sheet.
31643 MakeFootstepSnds bool
31644 RotateSpeed float32 // in radians per second.
31646 Colors []color.NRGBA
31647 CollideWithAOs bool
31650 FaceRotateDirOff float32 // in degrees.
31653 NametagColor color.NRGBA
31654 FaceRotateSpeed float32 // in degrees per second.
31658 MaxBreath uint16 // Player only.
31659 EyeHeight float32 // Player only.
31660 ZoomFOV float32 // in degrees. Player only.
31661 UseTextureAlpha bool
31662 DmgTextureMod Texture // suffix
31665 NametagBG color.NRGBA
31666 }))(obj)).NametagColor
31667 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31670 p := &(*(*(struct {
31671 MaxHP uint16 // Player only.
31672 CollideWithNodes bool
31673 Weight float32 // deprecated
31677 VisualSize [3]float32
31679 SpriteSheetSize [2]int16 // in sprites.
31680 SpritePos [2]int16 // in sprite sheet.
31682 MakeFootstepSnds bool
31683 RotateSpeed float32 // in radians per second.
31685 Colors []color.NRGBA
31686 CollideWithAOs bool
31689 FaceRotateDirOff float32 // in degrees.
31692 NametagColor color.NRGBA
31693 FaceRotateSpeed float32 // in degrees per second.
31697 MaxBreath uint16 // Player only.
31698 EyeHeight float32 // Player only.
31699 ZoomFOV float32 // in degrees. Player only.
31700 UseTextureAlpha bool
31701 DmgTextureMod Texture // suffix
31704 NametagBG color.NRGBA
31705 }))(obj)).FaceRotateSpeed
31706 *p = math.Float32frombits(read32(r))
31708 var local351 []uint8
31709 var local352 uint16
31714 (local351) = make([]uint8, local352)
31716 _, err := io.ReadFull(r, (local351)[:])
31720 MaxHP uint16 // Player only.
31721 CollideWithNodes bool
31722 Weight float32 // deprecated
31726 VisualSize [3]float32
31728 SpriteSheetSize [2]int16 // in sprites.
31729 SpritePos [2]int16 // in sprite sheet.
31731 MakeFootstepSnds bool
31732 RotateSpeed float32 // in radians per second.
31734 Colors []color.NRGBA
31735 CollideWithAOs bool
31738 FaceRotateDirOff float32 // in degrees.
31741 NametagColor color.NRGBA
31742 FaceRotateSpeed float32 // in degrees per second.
31746 MaxBreath uint16 // Player only.
31747 EyeHeight float32 // Player only.
31748 ZoomFOV float32 // in degrees. Player only.
31749 UseTextureAlpha bool
31750 DmgTextureMod Texture // suffix
31753 NametagBG color.NRGBA
31754 }))(obj)).Infotext) = string(local351)
31755 var local353 []uint8
31756 var local354 uint16
31761 (local353) = make([]uint8, local354)
31763 _, err := io.ReadFull(r, (local353)[:])
31767 MaxHP uint16 // Player only.
31768 CollideWithNodes bool
31769 Weight float32 // deprecated
31773 VisualSize [3]float32
31775 SpriteSheetSize [2]int16 // in sprites.
31776 SpritePos [2]int16 // in sprite sheet.
31778 MakeFootstepSnds bool
31779 RotateSpeed float32 // in radians per second.
31781 Colors []color.NRGBA
31782 CollideWithAOs bool
31785 FaceRotateDirOff float32 // in degrees.
31788 NametagColor color.NRGBA
31789 FaceRotateSpeed float32 // in degrees per second.
31793 MaxBreath uint16 // Player only.
31794 EyeHeight float32 // Player only.
31795 ZoomFOV float32 // in degrees. Player only.
31796 UseTextureAlpha bool
31797 DmgTextureMod Texture // suffix
31800 NametagBG color.NRGBA
31801 }))(obj)).Itemstring) = string(local353)
31803 p := &(*(*(struct {
31804 MaxHP uint16 // Player only.
31805 CollideWithNodes bool
31806 Weight float32 // deprecated
31810 VisualSize [3]float32
31812 SpriteSheetSize [2]int16 // in sprites.
31813 SpritePos [2]int16 // in sprite sheet.
31815 MakeFootstepSnds bool
31816 RotateSpeed float32 // in radians per second.
31818 Colors []color.NRGBA
31819 CollideWithAOs bool
31822 FaceRotateDirOff float32 // in degrees.
31825 NametagColor color.NRGBA
31826 FaceRotateSpeed float32 // in degrees per second.
31830 MaxBreath uint16 // Player only.
31831 EyeHeight float32 // Player only.
31832 ZoomFOV float32 // in degrees. Player only.
31833 UseTextureAlpha bool
31834 DmgTextureMod Texture // suffix
31837 NametagBG color.NRGBA
31839 *p = int8(read8(r))
31842 p := &(*(*(struct {
31843 MaxHP uint16 // Player only.
31844 CollideWithNodes bool
31845 Weight float32 // deprecated
31849 VisualSize [3]float32
31851 SpriteSheetSize [2]int16 // in sprites.
31852 SpritePos [2]int16 // in sprite sheet.
31854 MakeFootstepSnds bool
31855 RotateSpeed float32 // in radians per second.
31857 Colors []color.NRGBA
31858 CollideWithAOs bool
31861 FaceRotateDirOff float32 // in degrees.
31864 NametagColor color.NRGBA
31865 FaceRotateSpeed float32 // in degrees per second.
31869 MaxBreath uint16 // Player only.
31870 EyeHeight float32 // Player only.
31871 ZoomFOV float32 // in degrees. Player only.
31872 UseTextureAlpha bool
31873 DmgTextureMod Texture // suffix
31876 NametagBG color.NRGBA
31877 }))(obj)).MaxBreath
31881 p := &(*(*(struct {
31882 MaxHP uint16 // Player only.
31883 CollideWithNodes bool
31884 Weight float32 // deprecated
31888 VisualSize [3]float32
31890 SpriteSheetSize [2]int16 // in sprites.
31891 SpritePos [2]int16 // in sprite sheet.
31893 MakeFootstepSnds bool
31894 RotateSpeed float32 // in radians per second.
31896 Colors []color.NRGBA
31897 CollideWithAOs bool
31900 FaceRotateDirOff float32 // in degrees.
31903 NametagColor color.NRGBA
31904 FaceRotateSpeed float32 // in degrees per second.
31908 MaxBreath uint16 // Player only.
31909 EyeHeight float32 // Player only.
31910 ZoomFOV float32 // in degrees. Player only.
31911 UseTextureAlpha bool
31912 DmgTextureMod Texture // suffix
31915 NametagBG color.NRGBA
31916 }))(obj)).EyeHeight
31917 *p = math.Float32frombits(read32(r))
31920 p := &(*(*(struct {
31921 MaxHP uint16 // Player only.
31922 CollideWithNodes bool
31923 Weight float32 // deprecated
31927 VisualSize [3]float32
31929 SpriteSheetSize [2]int16 // in sprites.
31930 SpritePos [2]int16 // in sprite sheet.
31932 MakeFootstepSnds bool
31933 RotateSpeed float32 // in radians per second.
31935 Colors []color.NRGBA
31936 CollideWithAOs bool
31939 FaceRotateDirOff float32 // in degrees.
31942 NametagColor color.NRGBA
31943 FaceRotateSpeed float32 // in degrees per second.
31947 MaxBreath uint16 // Player only.
31948 EyeHeight float32 // Player only.
31949 ZoomFOV float32 // in degrees. Player only.
31950 UseTextureAlpha bool
31951 DmgTextureMod Texture // suffix
31954 NametagBG color.NRGBA
31956 *p = math.Float32frombits(read32(r))
31959 p := &(*(*(struct {
31960 MaxHP uint16 // Player only.
31961 CollideWithNodes bool
31962 Weight float32 // deprecated
31966 VisualSize [3]float32
31968 SpriteSheetSize [2]int16 // in sprites.
31969 SpritePos [2]int16 // in sprite sheet.
31971 MakeFootstepSnds bool
31972 RotateSpeed float32 // in radians per second.
31974 Colors []color.NRGBA
31975 CollideWithAOs bool
31978 FaceRotateDirOff float32 // in degrees.
31981 NametagColor color.NRGBA
31982 FaceRotateSpeed float32 // in degrees per second.
31986 MaxBreath uint16 // Player only.
31987 EyeHeight float32 // Player only.
31988 ZoomFOV float32 // in degrees. Player only.
31989 UseTextureAlpha bool
31990 DmgTextureMod Texture // suffix
31993 NametagBG color.NRGBA
31994 }))(obj)).UseTextureAlpha
31995 switch n := read8(r); n {
32001 chk(fmt.Errorf("invalid bool: %d", n))
32004 if err := pcall(func() {
32006 MaxHP uint16 // Player only.
32007 CollideWithNodes bool
32008 Weight float32 // deprecated
32012 VisualSize [3]float32
32014 SpriteSheetSize [2]int16 // in sprites.
32015 SpritePos [2]int16 // in sprite sheet.
32017 MakeFootstepSnds bool
32018 RotateSpeed float32 // in radians per second.
32020 Colors []color.NRGBA
32021 CollideWithAOs bool
32024 FaceRotateDirOff float32 // in degrees.
32027 NametagColor color.NRGBA
32028 FaceRotateSpeed float32 // in degrees per second.
32032 MaxBreath uint16 // Player only.
32033 EyeHeight float32 // Player only.
32034 ZoomFOV float32 // in degrees. Player only.
32035 UseTextureAlpha bool
32036 DmgTextureMod Texture // suffix
32039 NametagBG color.NRGBA
32040 }))(obj)).DmgTextureMod).deserialize(r)
32045 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32048 p := &(*(*(struct {
32049 MaxHP uint16 // Player only.
32050 CollideWithNodes bool
32051 Weight float32 // deprecated
32055 VisualSize [3]float32
32057 SpriteSheetSize [2]int16 // in sprites.
32058 SpritePos [2]int16 // in sprite sheet.
32060 MakeFootstepSnds bool
32061 RotateSpeed float32 // in radians per second.
32063 Colors []color.NRGBA
32064 CollideWithAOs bool
32067 FaceRotateDirOff float32 // in degrees.
32070 NametagColor color.NRGBA
32071 FaceRotateSpeed float32 // in degrees per second.
32075 MaxBreath uint16 // Player only.
32076 EyeHeight float32 // Player only.
32077 ZoomFOV float32 // in degrees. Player only.
32078 UseTextureAlpha bool
32079 DmgTextureMod Texture // suffix
32082 NametagBG color.NRGBA
32084 switch n := read8(r); n {
32090 chk(fmt.Errorf("invalid bool: %d", n))
32094 p := &(*(*(struct {
32095 MaxHP uint16 // Player only.
32096 CollideWithNodes bool
32097 Weight float32 // deprecated
32101 VisualSize [3]float32
32103 SpriteSheetSize [2]int16 // in sprites.
32104 SpritePos [2]int16 // in sprite sheet.
32106 MakeFootstepSnds bool
32107 RotateSpeed float32 // in radians per second.
32109 Colors []color.NRGBA
32110 CollideWithAOs bool
32113 FaceRotateDirOff float32 // in degrees.
32116 NametagColor color.NRGBA
32117 FaceRotateSpeed float32 // in degrees per second.
32121 MaxBreath uint16 // Player only.
32122 EyeHeight float32 // Player only.
32123 ZoomFOV float32 // in degrees. Player only.
32124 UseTextureAlpha bool
32125 DmgTextureMod Texture // suffix
32128 NametagBG color.NRGBA
32129 }))(obj)).ShowOnMinimap
32130 switch n := read8(r); n {
32136 chk(fmt.Errorf("invalid bool: %d", n))
32140 p := &(*(*(struct {
32141 MaxHP uint16 // Player only.
32142 CollideWithNodes bool
32143 Weight float32 // deprecated
32147 VisualSize [3]float32
32149 SpriteSheetSize [2]int16 // in sprites.
32150 SpritePos [2]int16 // in sprite sheet.
32152 MakeFootstepSnds bool
32153 RotateSpeed float32 // in radians per second.
32155 Colors []color.NRGBA
32156 CollideWithAOs bool
32159 FaceRotateDirOff float32 // in degrees.
32162 NametagColor color.NRGBA
32163 FaceRotateSpeed float32 // in degrees per second.
32167 MaxBreath uint16 // Player only.
32168 EyeHeight float32 // Player only.
32169 ZoomFOV float32 // in degrees. Player only.
32170 UseTextureAlpha bool
32171 DmgTextureMod Texture // suffix
32174 NametagBG color.NRGBA
32175 }))(obj)).NametagBG
32176 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
32180 func (obj *AOPos) serialize(w io.Writer) {
32181 if err := pcall(func() {
32189 UpdateInterval float32
32190 }))(obj)).Pos).serialize(w)
32195 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32197 if err := pcall(func() {
32205 UpdateInterval float32
32206 }))(obj)).Vel).serialize(w)
32211 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32213 if err := pcall(func() {
32221 UpdateInterval float32
32222 }))(obj)).Acc).serialize(w)
32227 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32229 for local355 := range (*(*(struct {
32236 UpdateInterval float32
32239 x := ((*(*(struct {
32246 UpdateInterval float32
32247 }))(obj)).Rot)[local355]
32248 write32(w, math.Float32bits(x))
32259 UpdateInterval float32
32260 }))(obj)).Interpolate
32275 UpdateInterval float32
32291 UpdateInterval float32
32292 }))(obj)).UpdateInterval
32293 write32(w, math.Float32bits(x))
32297 func (obj *AOPos) deserialize(r io.Reader) {
32298 if err := pcall(func() {
32306 UpdateInterval float32
32307 }))(obj)).Pos).deserialize(r)
32312 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32314 if err := pcall(func() {
32322 UpdateInterval float32
32323 }))(obj)).Vel).deserialize(r)
32328 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32330 if err := pcall(func() {
32338 UpdateInterval float32
32339 }))(obj)).Acc).deserialize(r)
32344 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32346 for local356 := range (*(*(struct {
32353 UpdateInterval float32
32356 p := &((*(*(struct {
32363 UpdateInterval float32
32364 }))(obj)).Rot)[local356]
32365 *p = math.Float32frombits(read32(r))
32369 p := &(*(*(struct {
32376 UpdateInterval float32
32377 }))(obj)).Interpolate
32378 switch n := read8(r); n {
32384 chk(fmt.Errorf("invalid bool: %d", n))
32388 p := &(*(*(struct {
32395 UpdateInterval float32
32397 switch n := read8(r); n {
32403 chk(fmt.Errorf("invalid bool: %d", n))
32407 p := &(*(*(struct {
32414 UpdateInterval float32
32415 }))(obj)).UpdateInterval
32416 *p = math.Float32frombits(read32(r))
32420 func (obj *AOSprite) serialize(w io.Writer) {
32421 for local357 := range (*(*(struct {
32424 FrameDuration float32
32425 ViewAngleFrames bool
32428 x := ((*(*(struct {
32431 FrameDuration float32
32432 ViewAngleFrames bool
32433 }))(obj)).Frame0)[local357]
32434 write16(w, uint16(x))
32441 FrameDuration float32
32442 ViewAngleFrames bool
32444 write16(w, uint16(x))
32450 FrameDuration float32
32451 ViewAngleFrames bool
32452 }))(obj)).FrameDuration
32453 write32(w, math.Float32bits(x))
32459 FrameDuration float32
32460 ViewAngleFrames bool
32461 }))(obj)).ViewAngleFrames
32470 func (obj *AOSprite) deserialize(r io.Reader) {
32471 for local358 := range (*(*(struct {
32474 FrameDuration float32
32475 ViewAngleFrames bool
32478 p := &((*(*(struct {
32481 FrameDuration float32
32482 ViewAngleFrames bool
32483 }))(obj)).Frame0)[local358]
32484 *p = int16(read16(r))
32488 p := &(*(*(struct {
32491 FrameDuration float32
32492 ViewAngleFrames bool
32497 p := &(*(*(struct {
32500 FrameDuration float32
32501 ViewAngleFrames bool
32502 }))(obj)).FrameDuration
32503 *p = math.Float32frombits(read32(r))
32506 p := &(*(*(struct {
32509 FrameDuration float32
32510 ViewAngleFrames bool
32511 }))(obj)).ViewAngleFrames
32512 switch n := read8(r); n {
32518 chk(fmt.Errorf("invalid bool: %d", n))
32523 func (obj *Group) serialize(w io.Writer) {
32524 if len(([]byte((*(*(struct {
32527 }))(obj)).Name))) > math.MaxUint16 {
32531 x := uint16(len(([]byte((*(*(struct {
32535 write16(w, uint16(x))
32538 _, err := w.Write(([]byte((*(*(struct {
32541 }))(obj)).Name))[:])
32549 write16(w, uint16(x))
32553 func (obj *Group) deserialize(r io.Reader) {
32554 var local359 []uint8
32555 var local360 uint16
32560 (local359) = make([]uint8, local360)
32562 _, err := io.ReadFull(r, (local359)[:])
32568 }))(obj)).Name) = string(local359)
32570 p := &(*(*(struct {
32574 *p = int16(read16(r))
32578 func (obj *AOAnim) serialize(w io.Writer) {
32579 for local361 := range (*(*(struct {
32586 x := ((*(*(struct {
32591 }))(obj)).Frames)[local361]
32592 write32(w, uint32(x))
32602 write32(w, math.Float32bits(x))
32611 write32(w, math.Float32bits(x))
32628 func (obj *AOAnim) deserialize(r io.Reader) {
32629 for local362 := range (*(*(struct {
32636 p := &((*(*(struct {
32641 }))(obj)).Frames)[local362]
32642 *p = int32(read32(r))
32646 p := &(*(*(struct {
32652 *p = math.Float32frombits(read32(r))
32655 p := &(*(*(struct {
32661 *p = math.Float32frombits(read32(r))
32664 p := &(*(*(struct {
32670 switch n := read8(r); n {
32676 chk(fmt.Errorf("invalid bool: %d", n))
32681 func (obj *AOBonePos) serialize(w io.Writer) {
32682 if err := pcall(func() {
32686 }))(obj)).Pos).serialize(w)
32691 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32693 for local363 := range (*(*(struct {
32698 x := ((*(*(struct {
32701 }))(obj)).Rot)[local363]
32702 write32(w, math.Float32bits(x))
32707 func (obj *AOBonePos) deserialize(r io.Reader) {
32708 if err := pcall(func() {
32712 }))(obj)).Pos).deserialize(r)
32717 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32719 for local364 := range (*(*(struct {
32724 p := &((*(*(struct {
32727 }))(obj)).Rot)[local364]
32728 *p = math.Float32frombits(read32(r))
32733 func (obj *AOAttach) serialize(w io.Writer) {
32734 if err := pcall(func() {
32741 }))(obj)).ParentID).serialize(w)
32746 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32748 if len(([]byte((*(*(struct {
32754 }))(obj)).Bone))) > math.MaxUint16 {
32758 x := uint16(len(([]byte((*(*(struct {
32765 write16(w, uint16(x))
32768 _, err := w.Write(([]byte((*(*(struct {
32774 }))(obj)).Bone))[:])
32777 if err := pcall(func() {
32784 }))(obj)).Pos).serialize(w)
32789 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32791 for local365 := range (*(*(struct {
32799 x := ((*(*(struct {
32805 }))(obj)).Rot)[local365]
32806 write32(w, math.Float32bits(x))
32816 }))(obj)).ForceVisible
32825 func (obj *AOAttach) deserialize(r io.Reader) {
32826 if err := pcall(func() {
32833 }))(obj)).ParentID).deserialize(r)
32838 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32840 var local366 []uint8
32841 var local367 uint16
32846 (local366) = make([]uint8, local367)
32848 _, err := io.ReadFull(r, (local366)[:])
32857 }))(obj)).Bone) = string(local366)
32858 if err := pcall(func() {
32865 }))(obj)).Pos).deserialize(r)
32870 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32872 for local368 := range (*(*(struct {
32880 p := &((*(*(struct {
32886 }))(obj)).Rot)[local368]
32887 *p = math.Float32frombits(read32(r))
32891 p := &(*(*(struct {
32897 }))(obj)).ForceVisible
32898 switch n := read8(r); n {
32904 chk(fmt.Errorf("invalid bool: %d", n))
32909 func (obj *AOPhysOverride) serialize(w io.Writer) {
32912 Walk, Jump, Gravity float32
32915 NoSneak, NoSneakGlitch, OldSneak bool
32917 write32(w, math.Float32bits(x))
32921 Walk, Jump, Gravity float32
32924 NoSneak, NoSneakGlitch, OldSneak bool
32926 write32(w, math.Float32bits(x))
32930 Walk, Jump, Gravity float32
32933 NoSneak, NoSneakGlitch, OldSneak bool
32935 write32(w, math.Float32bits(x))
32939 Walk, Jump, Gravity float32
32942 NoSneak, NoSneakGlitch, OldSneak bool
32952 Walk, Jump, Gravity float32
32955 NoSneak, NoSneakGlitch, OldSneak bool
32956 }))(obj)).NoSneakGlitch
32965 Walk, Jump, Gravity float32
32968 NoSneak, NoSneakGlitch, OldSneak bool
32978 func (obj *AOPhysOverride) deserialize(r io.Reader) {
32980 p := &(*(*(struct {
32981 Walk, Jump, Gravity float32
32984 NoSneak, NoSneakGlitch, OldSneak bool
32986 *p = math.Float32frombits(read32(r))
32989 p := &(*(*(struct {
32990 Walk, Jump, Gravity float32
32993 NoSneak, NoSneakGlitch, OldSneak bool
32995 *p = math.Float32frombits(read32(r))
32998 p := &(*(*(struct {
32999 Walk, Jump, Gravity float32
33002 NoSneak, NoSneakGlitch, OldSneak bool
33004 *p = math.Float32frombits(read32(r))
33007 p := &(*(*(struct {
33008 Walk, Jump, Gravity float32
33011 NoSneak, NoSneakGlitch, OldSneak bool
33013 switch n := read8(r); n {
33019 chk(fmt.Errorf("invalid bool: %d", n))
33023 p := &(*(*(struct {
33024 Walk, Jump, Gravity float32
33027 NoSneak, NoSneakGlitch, OldSneak bool
33028 }))(obj)).NoSneakGlitch
33029 switch n := read8(r); n {
33035 chk(fmt.Errorf("invalid bool: %d", n))
33039 p := &(*(*(struct {
33040 Walk, Jump, Gravity float32
33043 NoSneak, NoSneakGlitch, OldSneak bool
33045 switch n := read8(r); n {
33051 chk(fmt.Errorf("invalid bool: %d", n))
33056 func (obj *aoType) serialize(w io.Writer) {
33058 x := *(*(uint8))(obj)
33059 write8(w, uint8(x))
33063 func (obj *aoType) deserialize(r io.Reader) {
33065 p := &*(*(uint8))(obj)
33070 func (obj *NodeMetaField) serialize(w io.Writer) {
33071 if err := pcall(func() {
33075 }))(obj)).Field).serialize(w)
33080 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33095 func (obj *NodeMetaField) deserialize(r io.Reader) {
33096 if err := pcall(func() {
33100 }))(obj)).Field).deserialize(r)
33105 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33108 p := &(*(*(struct {
33112 switch n := read8(r); n {
33118 chk(fmt.Errorf("invalid bool: %d", n))
33123 func (obj *MinimapType) serialize(w io.Writer) {
33125 x := *(*(uint16))(obj)
33126 write16(w, uint16(x))
33130 func (obj *MinimapType) deserialize(r io.Reader) {
33132 p := &*(*(uint16))(obj)
33137 func (obj *Param1Type) serialize(w io.Writer) {
33139 x := *(*(uint8))(obj)
33140 write8(w, uint8(x))
33144 func (obj *Param1Type) deserialize(r io.Reader) {
33146 p := &*(*(uint8))(obj)
33151 func (obj *Param2Type) serialize(w io.Writer) {
33153 x := *(*(uint8))(obj)
33154 write8(w, uint8(x))
33158 func (obj *Param2Type) deserialize(r io.Reader) {
33160 p := &*(*(uint8))(obj)
33165 func (obj *DrawType) serialize(w io.Writer) {
33167 x := *(*(uint8))(obj)
33168 write8(w, uint8(x))
33172 func (obj *DrawType) deserialize(r io.Reader) {
33174 p := &*(*(uint8))(obj)
33179 func (obj *TileDef) serialize(w io.Writer) {
33181 local369 := uint8(6)
33184 write8(w, uint8(x))
33187 if err := pcall(func() {
33193 //mt:if %s.Flags&TileColor != 0
33196 //mt:if %s.Flags&TileScale != 0
33199 //mt:if %s.Flags&TileAlign != 0
33201 }))(obj)).Texture).serialize(w)
33206 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33208 if err := pcall(func() {
33214 //mt:if %s.Flags&TileColor != 0
33217 //mt:if %s.Flags&TileScale != 0
33220 //mt:if %s.Flags&TileAlign != 0
33222 }))(obj)).Anim).serialize(w)
33227 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33229 if err := pcall(func() {
33235 //mt:if %s.Flags&TileColor != 0
33238 //mt:if %s.Flags&TileScale != 0
33241 //mt:if %s.Flags&TileAlign != 0
33243 }))(obj)).Flags).serialize(w)
33248 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33255 //mt:if %s.Flags&TileColor != 0
33258 //mt:if %s.Flags&TileScale != 0
33261 //mt:if %s.Flags&TileAlign != 0
33263 }))(obj)).Flags&TileColor != 0 {
33270 //mt:if %s.Flags&TileColor != 0
33273 //mt:if %s.Flags&TileScale != 0
33276 //mt:if %s.Flags&TileAlign != 0
33279 write8(w, uint8(x))
33287 //mt:if %s.Flags&TileColor != 0
33290 //mt:if %s.Flags&TileScale != 0
33293 //mt:if %s.Flags&TileAlign != 0
33296 write8(w, uint8(x))
33304 //mt:if %s.Flags&TileColor != 0
33307 //mt:if %s.Flags&TileScale != 0
33310 //mt:if %s.Flags&TileAlign != 0
33313 write8(w, uint8(x))
33321 //mt:if %s.Flags&TileColor != 0
33324 //mt:if %s.Flags&TileScale != 0
33327 //mt:if %s.Flags&TileAlign != 0
33329 }))(obj)).Flags&TileScale != 0 {
33336 //mt:if %s.Flags&TileColor != 0
33339 //mt:if %s.Flags&TileScale != 0
33342 //mt:if %s.Flags&TileAlign != 0
33345 write8(w, uint8(x))
33353 //mt:if %s.Flags&TileColor != 0
33356 //mt:if %s.Flags&TileScale != 0
33359 //mt:if %s.Flags&TileAlign != 0
33361 }))(obj)).Flags&TileAlign != 0 {
33362 if err := pcall(func() {
33368 //mt:if %s.Flags&TileColor != 0
33371 //mt:if %s.Flags&TileScale != 0
33374 //mt:if %s.Flags&TileAlign != 0
33376 }))(obj)).Align).serialize(w)
33381 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33386 func (obj *TileDef) deserialize(r io.Reader) {
33389 local371 := uint8(6)
33394 if local370 != local371 {
33395 chk(fmt.Errorf("const %v: %v", "uint8(6)", local370))
33398 if err := pcall(func() {
33404 //mt:if %s.Flags&TileColor != 0
33407 //mt:if %s.Flags&TileScale != 0
33410 //mt:if %s.Flags&TileAlign != 0
33412 }))(obj)).Texture).deserialize(r)
33417 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33419 if err := pcall(func() {
33425 //mt:if %s.Flags&TileColor != 0
33428 //mt:if %s.Flags&TileScale != 0
33431 //mt:if %s.Flags&TileAlign != 0
33433 }))(obj)).Anim).deserialize(r)
33438 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33440 if err := pcall(func() {
33446 //mt:if %s.Flags&TileColor != 0
33449 //mt:if %s.Flags&TileScale != 0
33452 //mt:if %s.Flags&TileAlign != 0
33454 }))(obj)).Flags).deserialize(r)
33459 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33466 //mt:if %s.Flags&TileColor != 0
33469 //mt:if %s.Flags&TileScale != 0
33472 //mt:if %s.Flags&TileAlign != 0
33474 }))(obj)).Flags&TileColor != 0 {
33476 p := &(*(*(struct {
33481 //mt:if %s.Flags&TileColor != 0
33484 //mt:if %s.Flags&TileScale != 0
33487 //mt:if %s.Flags&TileAlign != 0
33493 p := &(*(*(struct {
33498 //mt:if %s.Flags&TileColor != 0
33501 //mt:if %s.Flags&TileScale != 0
33504 //mt:if %s.Flags&TileAlign != 0
33510 p := &(*(*(struct {
33515 //mt:if %s.Flags&TileColor != 0
33518 //mt:if %s.Flags&TileScale != 0
33521 //mt:if %s.Flags&TileAlign != 0
33532 //mt:if %s.Flags&TileColor != 0
33535 //mt:if %s.Flags&TileScale != 0
33538 //mt:if %s.Flags&TileAlign != 0
33540 }))(obj)).Flags&TileScale != 0 {
33542 p := &(*(*(struct {
33547 //mt:if %s.Flags&TileColor != 0
33550 //mt:if %s.Flags&TileScale != 0
33553 //mt:if %s.Flags&TileAlign != 0
33564 //mt:if %s.Flags&TileColor != 0
33567 //mt:if %s.Flags&TileScale != 0
33570 //mt:if %s.Flags&TileAlign != 0
33572 }))(obj)).Flags&TileAlign != 0 {
33573 if err := pcall(func() {
33579 //mt:if %s.Flags&TileColor != 0
33582 //mt:if %s.Flags&TileScale != 0
33585 //mt:if %s.Flags&TileAlign != 0
33587 }))(obj)).Align).deserialize(r)
33592 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33597 func (obj *WaveType) serialize(w io.Writer) {
33599 x := *(*(uint8))(obj)
33600 write8(w, uint8(x))
33604 func (obj *WaveType) deserialize(r io.Reader) {
33606 p := &*(*(uint8))(obj)
33611 func (obj *LiquidType) serialize(w io.Writer) {
33613 x := *(*(uint8))(obj)
33614 write8(w, uint8(x))
33618 func (obj *LiquidType) deserialize(r io.Reader) {
33620 p := &*(*(uint8))(obj)
33625 func (obj *NodeBox) serialize(w io.Writer) {
33627 local372 := uint8(6)
33630 write8(w, uint8(x))
33633 if err := pcall(func() {
33637 //mt:if %s.Type == MountedBox
33638 WallTop, WallBot, WallSides Box
33640 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33643 //mt:if %s.Type == ConnectedBox
33644 ConnDirs, DiscoDirs DirBoxes
33645 DiscoAll, DiscoSides []Box
33646 }))(obj)).Type).serialize(w)
33651 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
33656 //mt:if %s.Type == MountedBox
33657 WallTop, WallBot, WallSides Box
33659 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33662 //mt:if %s.Type == ConnectedBox
33663 ConnDirs, DiscoDirs DirBoxes
33664 DiscoAll, DiscoSides []Box
33665 }))(obj)).Type < maxBox) {
33666 chk(errors.New("assertion failed: %s.Type < maxBox"))
33671 //mt:if %s.Type == MountedBox
33672 WallTop, WallBot, WallSides Box
33674 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33677 //mt:if %s.Type == ConnectedBox
33678 ConnDirs, DiscoDirs DirBoxes
33679 DiscoAll, DiscoSides []Box
33680 }))(obj)).Type == MountedBox {
33681 if err := pcall(func() {
33685 //mt:if %s.Type == MountedBox
33686 WallTop, WallBot, WallSides Box
33688 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33691 //mt:if %s.Type == ConnectedBox
33692 ConnDirs, DiscoDirs DirBoxes
33693 DiscoAll, DiscoSides []Box
33694 }))(obj)).WallTop).serialize(w)
33699 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33701 if err := pcall(func() {
33705 //mt:if %s.Type == MountedBox
33706 WallTop, WallBot, WallSides Box
33708 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33711 //mt:if %s.Type == ConnectedBox
33712 ConnDirs, DiscoDirs DirBoxes
33713 DiscoAll, DiscoSides []Box
33714 }))(obj)).WallBot).serialize(w)
33719 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33721 if err := pcall(func() {
33725 //mt:if %s.Type == MountedBox
33726 WallTop, WallBot, WallSides Box
33728 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33731 //mt:if %s.Type == ConnectedBox
33732 ConnDirs, DiscoDirs DirBoxes
33733 DiscoAll, DiscoSides []Box
33734 }))(obj)).WallSides).serialize(w)
33739 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33742 if t := (*(*(struct {
33745 //mt:if %s.Type == MountedBox
33746 WallTop, WallBot, WallSides Box
33748 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33751 //mt:if %s.Type == ConnectedBox
33752 ConnDirs, DiscoDirs DirBoxes
33753 DiscoAll, DiscoSides []Box
33754 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33755 if len(((*(*(struct {
33758 //mt:if %s.Type == MountedBox
33759 WallTop, WallBot, WallSides Box
33761 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33764 //mt:if %s.Type == ConnectedBox
33765 ConnDirs, DiscoDirs DirBoxes
33766 DiscoAll, DiscoSides []Box
33767 }))(obj)).Fixed)) > math.MaxUint16 {
33771 x := uint16(len(((*(*(struct {
33774 //mt:if %s.Type == MountedBox
33775 WallTop, WallBot, WallSides Box
33777 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33780 //mt:if %s.Type == ConnectedBox
33781 ConnDirs, DiscoDirs DirBoxes
33782 DiscoAll, DiscoSides []Box
33784 write16(w, uint16(x))
33786 for local373 := range (*(*(struct {
33789 //mt:if %s.Type == MountedBox
33790 WallTop, WallBot, WallSides Box
33792 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33795 //mt:if %s.Type == ConnectedBox
33796 ConnDirs, DiscoDirs DirBoxes
33797 DiscoAll, DiscoSides []Box
33799 if err := pcall(func() {
33803 //mt:if %s.Type == MountedBox
33804 WallTop, WallBot, WallSides Box
33806 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33809 //mt:if %s.Type == ConnectedBox
33810 ConnDirs, DiscoDirs DirBoxes
33811 DiscoAll, DiscoSides []Box
33812 }))(obj)).Fixed)[local373]).serialize(w)
33817 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33824 //mt:if %s.Type == MountedBox
33825 WallTop, WallBot, WallSides Box
33827 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33830 //mt:if %s.Type == ConnectedBox
33831 ConnDirs, DiscoDirs DirBoxes
33832 DiscoAll, DiscoSides []Box
33833 }))(obj)).Type == ConnectedBox {
33834 if err := pcall(func() {
33838 //mt:if %s.Type == MountedBox
33839 WallTop, WallBot, WallSides Box
33841 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33844 //mt:if %s.Type == ConnectedBox
33845 ConnDirs, DiscoDirs DirBoxes
33846 DiscoAll, DiscoSides []Box
33847 }))(obj)).ConnDirs).serialize(w)
33852 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33854 if err := pcall(func() {
33858 //mt:if %s.Type == MountedBox
33859 WallTop, WallBot, WallSides Box
33861 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33864 //mt:if %s.Type == ConnectedBox
33865 ConnDirs, DiscoDirs DirBoxes
33866 DiscoAll, DiscoSides []Box
33867 }))(obj)).DiscoDirs).serialize(w)
33872 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33874 if len(((*(*(struct {
33877 //mt:if %s.Type == MountedBox
33878 WallTop, WallBot, WallSides Box
33880 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33883 //mt:if %s.Type == ConnectedBox
33884 ConnDirs, DiscoDirs DirBoxes
33885 DiscoAll, DiscoSides []Box
33886 }))(obj)).DiscoAll)) > math.MaxUint16 {
33890 x := uint16(len(((*(*(struct {
33893 //mt:if %s.Type == MountedBox
33894 WallTop, WallBot, WallSides Box
33896 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33899 //mt:if %s.Type == ConnectedBox
33900 ConnDirs, DiscoDirs DirBoxes
33901 DiscoAll, DiscoSides []Box
33902 }))(obj)).DiscoAll)))
33903 write16(w, uint16(x))
33905 for local374 := range (*(*(struct {
33908 //mt:if %s.Type == MountedBox
33909 WallTop, WallBot, WallSides Box
33911 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33914 //mt:if %s.Type == ConnectedBox
33915 ConnDirs, DiscoDirs DirBoxes
33916 DiscoAll, DiscoSides []Box
33917 }))(obj)).DiscoAll {
33918 if err := pcall(func() {
33922 //mt:if %s.Type == MountedBox
33923 WallTop, WallBot, WallSides Box
33925 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33928 //mt:if %s.Type == ConnectedBox
33929 ConnDirs, DiscoDirs DirBoxes
33930 DiscoAll, DiscoSides []Box
33931 }))(obj)).DiscoAll)[local374]).serialize(w)
33936 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33939 if len(((*(*(struct {
33942 //mt:if %s.Type == MountedBox
33943 WallTop, WallBot, WallSides Box
33945 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33948 //mt:if %s.Type == ConnectedBox
33949 ConnDirs, DiscoDirs DirBoxes
33950 DiscoAll, DiscoSides []Box
33951 }))(obj)).DiscoSides)) > math.MaxUint16 {
33955 x := uint16(len(((*(*(struct {
33958 //mt:if %s.Type == MountedBox
33959 WallTop, WallBot, WallSides Box
33961 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33964 //mt:if %s.Type == ConnectedBox
33965 ConnDirs, DiscoDirs DirBoxes
33966 DiscoAll, DiscoSides []Box
33967 }))(obj)).DiscoSides)))
33968 write16(w, uint16(x))
33970 for local375 := range (*(*(struct {
33973 //mt:if %s.Type == MountedBox
33974 WallTop, WallBot, WallSides Box
33976 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33979 //mt:if %s.Type == ConnectedBox
33980 ConnDirs, DiscoDirs DirBoxes
33981 DiscoAll, DiscoSides []Box
33982 }))(obj)).DiscoSides {
33983 if err := pcall(func() {
33987 //mt:if %s.Type == MountedBox
33988 WallTop, WallBot, WallSides Box
33990 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33993 //mt:if %s.Type == ConnectedBox
33994 ConnDirs, DiscoDirs DirBoxes
33995 DiscoAll, DiscoSides []Box
33996 }))(obj)).DiscoSides)[local375]).serialize(w)
34001 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34007 func (obj *NodeBox) deserialize(r io.Reader) {
34010 local377 := uint8(6)
34015 if local376 != local377 {
34016 chk(fmt.Errorf("const %v: %v", "uint8(6)", local376))
34019 if err := pcall(func() {
34023 //mt:if %s.Type == MountedBox
34024 WallTop, WallBot, WallSides Box
34026 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34029 //mt:if %s.Type == ConnectedBox
34030 ConnDirs, DiscoDirs DirBoxes
34031 DiscoAll, DiscoSides []Box
34032 }))(obj)).Type).deserialize(r)
34037 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
34042 //mt:if %s.Type == MountedBox
34043 WallTop, WallBot, WallSides Box
34045 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34048 //mt:if %s.Type == ConnectedBox
34049 ConnDirs, DiscoDirs DirBoxes
34050 DiscoAll, DiscoSides []Box
34051 }))(obj)).Type < maxBox) {
34052 chk(errors.New("assertion failed: %s.Type < maxBox"))
34057 //mt:if %s.Type == MountedBox
34058 WallTop, WallBot, WallSides Box
34060 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34063 //mt:if %s.Type == ConnectedBox
34064 ConnDirs, DiscoDirs DirBoxes
34065 DiscoAll, DiscoSides []Box
34066 }))(obj)).Type == MountedBox {
34067 if err := pcall(func() {
34071 //mt:if %s.Type == MountedBox
34072 WallTop, WallBot, WallSides Box
34074 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34077 //mt:if %s.Type == ConnectedBox
34078 ConnDirs, DiscoDirs DirBoxes
34079 DiscoAll, DiscoSides []Box
34080 }))(obj)).WallTop).deserialize(r)
34085 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34087 if err := pcall(func() {
34091 //mt:if %s.Type == MountedBox
34092 WallTop, WallBot, WallSides Box
34094 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34097 //mt:if %s.Type == ConnectedBox
34098 ConnDirs, DiscoDirs DirBoxes
34099 DiscoAll, DiscoSides []Box
34100 }))(obj)).WallBot).deserialize(r)
34105 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34107 if err := pcall(func() {
34111 //mt:if %s.Type == MountedBox
34112 WallTop, WallBot, WallSides Box
34114 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34117 //mt:if %s.Type == ConnectedBox
34118 ConnDirs, DiscoDirs DirBoxes
34119 DiscoAll, DiscoSides []Box
34120 }))(obj)).WallSides).deserialize(r)
34125 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34128 if t := (*(*(struct {
34131 //mt:if %s.Type == MountedBox
34132 WallTop, WallBot, WallSides Box
34134 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34137 //mt:if %s.Type == ConnectedBox
34138 ConnDirs, DiscoDirs DirBoxes
34139 DiscoAll, DiscoSides []Box
34140 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
34141 var local378 uint16
34149 //mt:if %s.Type == MountedBox
34150 WallTop, WallBot, WallSides Box
34152 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34155 //mt:if %s.Type == ConnectedBox
34156 ConnDirs, DiscoDirs DirBoxes
34157 DiscoAll, DiscoSides []Box
34158 }))(obj)).Fixed) = make([]Box, local378)
34159 for local379 := range (*(*(struct {
34162 //mt:if %s.Type == MountedBox
34163 WallTop, WallBot, WallSides Box
34165 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34168 //mt:if %s.Type == ConnectedBox
34169 ConnDirs, DiscoDirs DirBoxes
34170 DiscoAll, DiscoSides []Box
34172 if err := pcall(func() {
34176 //mt:if %s.Type == MountedBox
34177 WallTop, WallBot, WallSides Box
34179 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34182 //mt:if %s.Type == ConnectedBox
34183 ConnDirs, DiscoDirs DirBoxes
34184 DiscoAll, DiscoSides []Box
34185 }))(obj)).Fixed)[local379]).deserialize(r)
34190 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34197 //mt:if %s.Type == MountedBox
34198 WallTop, WallBot, WallSides Box
34200 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34203 //mt:if %s.Type == ConnectedBox
34204 ConnDirs, DiscoDirs DirBoxes
34205 DiscoAll, DiscoSides []Box
34206 }))(obj)).Type == ConnectedBox {
34207 if err := pcall(func() {
34211 //mt:if %s.Type == MountedBox
34212 WallTop, WallBot, WallSides Box
34214 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34217 //mt:if %s.Type == ConnectedBox
34218 ConnDirs, DiscoDirs DirBoxes
34219 DiscoAll, DiscoSides []Box
34220 }))(obj)).ConnDirs).deserialize(r)
34225 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34227 if err := pcall(func() {
34231 //mt:if %s.Type == MountedBox
34232 WallTop, WallBot, WallSides Box
34234 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34237 //mt:if %s.Type == ConnectedBox
34238 ConnDirs, DiscoDirs DirBoxes
34239 DiscoAll, DiscoSides []Box
34240 }))(obj)).DiscoDirs).deserialize(r)
34245 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34247 var local380 uint16
34255 //mt:if %s.Type == MountedBox
34256 WallTop, WallBot, WallSides Box
34258 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34261 //mt:if %s.Type == ConnectedBox
34262 ConnDirs, DiscoDirs DirBoxes
34263 DiscoAll, DiscoSides []Box
34264 }))(obj)).DiscoAll) = make([]Box, local380)
34265 for local381 := range (*(*(struct {
34268 //mt:if %s.Type == MountedBox
34269 WallTop, WallBot, WallSides Box
34271 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34274 //mt:if %s.Type == ConnectedBox
34275 ConnDirs, DiscoDirs DirBoxes
34276 DiscoAll, DiscoSides []Box
34277 }))(obj)).DiscoAll {
34278 if err := pcall(func() {
34282 //mt:if %s.Type == MountedBox
34283 WallTop, WallBot, WallSides Box
34285 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34288 //mt:if %s.Type == ConnectedBox
34289 ConnDirs, DiscoDirs DirBoxes
34290 DiscoAll, DiscoSides []Box
34291 }))(obj)).DiscoAll)[local381]).deserialize(r)
34296 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34299 var local382 uint16
34307 //mt:if %s.Type == MountedBox
34308 WallTop, WallBot, WallSides Box
34310 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34313 //mt:if %s.Type == ConnectedBox
34314 ConnDirs, DiscoDirs DirBoxes
34315 DiscoAll, DiscoSides []Box
34316 }))(obj)).DiscoSides) = make([]Box, local382)
34317 for local383 := range (*(*(struct {
34320 //mt:if %s.Type == MountedBox
34321 WallTop, WallBot, WallSides Box
34323 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34326 //mt:if %s.Type == ConnectedBox
34327 ConnDirs, DiscoDirs DirBoxes
34328 DiscoAll, DiscoSides []Box
34329 }))(obj)).DiscoSides {
34330 if err := pcall(func() {
34334 //mt:if %s.Type == MountedBox
34335 WallTop, WallBot, WallSides Box
34337 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34340 //mt:if %s.Type == ConnectedBox
34341 ConnDirs, DiscoDirs DirBoxes
34342 DiscoAll, DiscoSides []Box
34343 }))(obj)).DiscoSides)[local383]).deserialize(r)
34348 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34354 func (obj *SoundDef) serialize(w io.Writer) {
34355 if len(([]byte((*(*(struct {
34357 Gain, Pitch, Fade float32
34358 }))(obj)).Name))) > math.MaxUint16 {
34362 x := uint16(len(([]byte((*(*(struct {
34364 Gain, Pitch, Fade float32
34366 write16(w, uint16(x))
34369 _, err := w.Write(([]byte((*(*(struct {
34371 Gain, Pitch, Fade float32
34372 }))(obj)).Name))[:])
34378 Gain, Pitch, Fade float32
34380 write32(w, math.Float32bits(x))
34385 Gain, Pitch, Fade float32
34387 write32(w, math.Float32bits(x))
34392 Gain, Pitch, Fade float32
34394 write32(w, math.Float32bits(x))
34398 func (obj *SoundDef) deserialize(r io.Reader) {
34399 var local384 []uint8
34400 var local385 uint16
34405 (local384) = make([]uint8, local385)
34407 _, err := io.ReadFull(r, (local384)[:])
34412 Gain, Pitch, Fade float32
34413 }))(obj)).Name) = string(local384)
34415 p := &(*(*(struct {
34417 Gain, Pitch, Fade float32
34419 *p = math.Float32frombits(read32(r))
34422 p := &(*(*(struct {
34424 Gain, Pitch, Fade float32
34426 *p = math.Float32frombits(read32(r))
34429 p := &(*(*(struct {
34431 Gain, Pitch, Fade float32
34433 *p = math.Float32frombits(read32(r))
34437 func (obj *AlphaUse) serialize(w io.Writer) {
34439 x := *(*(uint8))(obj)
34440 write8(w, uint8(x))
34444 func (obj *AlphaUse) deserialize(r io.Reader) {
34446 p := &*(*(uint8))(obj)
34451 func (obj *Keys) serialize(w io.Writer) {
34453 x := *(*(uint32))(obj)
34454 write32(w, uint32(x))
34458 func (obj *Keys) deserialize(r io.Reader) {
34460 p := &*(*(uint32))(obj)
34465 func (obj *MapBlkFlags) serialize(w io.Writer) {
34467 x := *(*(uint8))(obj)
34468 write8(w, uint8(x))
34472 func (obj *MapBlkFlags) deserialize(r io.Reader) {
34474 p := &*(*(uint8))(obj)
34479 func (obj *LitFromBlks) serialize(w io.Writer) {
34481 x := *(*(uint16))(obj)
34482 write16(w, uint16(x))
34486 func (obj *LitFromBlks) deserialize(r io.Reader) {
34488 p := &*(*(uint16))(obj)
34493 func (obj *AOInitData) serialize(w io.Writer) {
34495 local386 := uint8(1)
34498 write8(w, uint8(x))
34501 if len(([]byte((*(*(struct {
34514 // See (de)serialize.fmt.
34516 }))(obj)).Name))) > math.MaxUint16 {
34520 x := uint16(len(([]byte((*(*(struct {
34533 // See (de)serialize.fmt.
34536 write16(w, uint16(x))
34539 _, err := w.Write(([]byte((*(*(struct {
34552 // See (de)serialize.fmt.
34554 }))(obj)).Name))[:])
34571 // See (de)serialize.fmt.
34580 if err := pcall(func() {
34594 // See (de)serialize.fmt.
34596 }))(obj)).ID).serialize(w)
34601 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34603 if err := pcall(func() {
34617 // See (de)serialize.fmt.
34619 }))(obj)).Pos).serialize(w)
34624 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34626 for local387 := range (*(*(struct {
34639 // See (de)serialize.fmt.
34643 x := ((*(*(struct {
34656 // See (de)serialize.fmt.
34658 }))(obj)).Rot)[local387]
34659 write32(w, math.Float32bits(x))
34676 // See (de)serialize.fmt.
34679 write16(w, uint16(x))
34695 // See (de)serialize.fmt.
34698 { // For AOInitData.Msgs.
34699 if len(x) > math.MaxUint8 {
34702 write8(w, uint8(len(x)))
34703 for _, msg := range x {
34705 chk(writeAOMsg(&b, msg))
34706 if b.Len() > math.MaxUint32 {
34709 write32(w, uint32(b.Len()))
34710 _, err := b.WriteTo(w)
34717 func (obj *AOInitData) deserialize(r io.Reader) {
34720 local389 := uint8(1)
34725 if local388 != local389 {
34726 chk(fmt.Errorf("const %v: %v", "uint8(1)", local388))
34729 var local390 []uint8
34730 var local391 uint16
34735 (local390) = make([]uint8, local391)
34737 _, err := io.ReadFull(r, (local390)[:])
34753 // See (de)serialize.fmt.
34755 }))(obj)).Name) = string(local390)
34757 p := &(*(*(struct {
34770 // See (de)serialize.fmt.
34773 switch n := read8(r); n {
34779 chk(fmt.Errorf("invalid bool: %d", n))
34782 if err := pcall(func() {
34796 // See (de)serialize.fmt.
34798 }))(obj)).ID).deserialize(r)
34803 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34805 if err := pcall(func() {
34819 // See (de)serialize.fmt.
34821 }))(obj)).Pos).deserialize(r)
34826 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34828 for local392 := range (*(*(struct {
34841 // See (de)serialize.fmt.
34845 p := &((*(*(struct {
34858 // See (de)serialize.fmt.
34860 }))(obj)).Rot)[local392]
34861 *p = math.Float32frombits(read32(r))
34865 p := &(*(*(struct {
34878 // See (de)serialize.fmt.
34884 p := &(*(*(struct {
34897 // See (de)serialize.fmt.
34900 { // For AOInitData.Msgs.
34901 *p = make([]AOMsg, read8(r))
34902 for i := range *p {
34903 r := &io.LimitedReader{R: r, N: int64(read32(r))}
34904 msg, err := readAOMsg(r)
34908 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34915 func (obj *ItemType) serialize(w io.Writer) {
34917 x := *(*(uint8))(obj)
34918 write8(w, uint8(x))
34922 func (obj *ItemType) deserialize(r io.Reader) {
34924 p := &*(*(uint8))(obj)
34929 func (obj *ToolCaps) serialize(w io.Writer) {
34930 if _ = (*(*(struct {
34931 //mt:if _ = %s; false
34934 AttackCooldown float32
34938 GroupCaps []ToolGroupCap
34948 //mt:if _ = %s; false
34951 AttackCooldown float32
34955 GroupCaps []ToolGroupCap
34972 w := new(bytes.Buffer)
34974 if r.N > 0 { (*(*(struct {
34975 //mt:if _ = %s; false
34978 AttackCooldown float32
34982 GroupCaps []ToolGroupCap
34989 }))(obj)).NonNil = true}; /**/{
34991 //mt:if _ = %s; false
34994 AttackCooldown float32
34998 GroupCaps []ToolGroupCap
35007 local393 := uint8(5)
35010 write8(w, uint8(x))
35015 //mt:if _ = %s; false
35018 AttackCooldown float32
35022 GroupCaps []ToolGroupCap
35029 }))(obj)).AttackCooldown
35030 write32(w, math.Float32bits(x))
35034 //mt:if _ = %s; false
35037 AttackCooldown float32
35041 GroupCaps []ToolGroupCap
35048 }))(obj)).MaxDropLvl
35049 write16(w, uint16(x))
35051 if len(((*(*(struct {
35052 //mt:if _ = %s; false
35055 AttackCooldown float32
35059 GroupCaps []ToolGroupCap
35066 }))(obj)).GroupCaps)) > math.MaxUint32 {
35070 x := uint32(len(((*(*(struct {
35071 //mt:if _ = %s; false
35074 AttackCooldown float32
35078 GroupCaps []ToolGroupCap
35085 }))(obj)).GroupCaps)))
35086 write32(w, uint32(x))
35088 for local394 := range (*(*(struct {
35089 //mt:if _ = %s; false
35092 AttackCooldown float32
35096 GroupCaps []ToolGroupCap
35103 }))(obj)).GroupCaps {
35104 if err := pcall(func() {
35106 //mt:if _ = %s; false
35109 AttackCooldown float32
35113 GroupCaps []ToolGroupCap
35120 }))(obj)).GroupCaps)[local394]).serialize(w)
35125 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35128 if len(((*(*(struct {
35129 //mt:if _ = %s; false
35132 AttackCooldown float32
35136 GroupCaps []ToolGroupCap
35143 }))(obj)).DmgGroups)) > math.MaxUint32 {
35147 x := uint32(len(((*(*(struct {
35148 //mt:if _ = %s; false
35151 AttackCooldown float32
35155 GroupCaps []ToolGroupCap
35162 }))(obj)).DmgGroups)))
35163 write32(w, uint32(x))
35165 for local395 := range (*(*(struct {
35166 //mt:if _ = %s; false
35169 AttackCooldown float32
35173 GroupCaps []ToolGroupCap
35180 }))(obj)).DmgGroups {
35181 if err := pcall(func() {
35183 //mt:if _ = %s; false
35186 AttackCooldown float32
35190 GroupCaps []ToolGroupCap
35197 }))(obj)).DmgGroups)[local395]).serialize(w)
35202 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35206 x := uint16((*(*(struct {
35207 //mt:if _ = %s; false
35210 AttackCooldown float32
35214 GroupCaps []ToolGroupCap
35221 }))(obj)).PunchUses)
35222 write16(w, uint16(x))
35229 if len((buf.Bytes())) > math.MaxUint16 {
35233 x := uint16(len((buf.Bytes())))
35234 write16(w, uint16(x))
35237 _, err := w.Write((buf.Bytes())[:])
35244 func (obj *ToolCaps) deserialize(r io.Reader) {
35245 if _ = (*(*(struct {
35246 //mt:if _ = %s; false
35249 AttackCooldown float32
35253 GroupCaps []ToolGroupCap
35262 p := &(*(*(struct {
35263 //mt:if _ = %s; false
35266 AttackCooldown float32
35270 GroupCaps []ToolGroupCap
35278 switch n := read8(r); n {
35284 chk(fmt.Errorf("invalid bool: %d", n))
35294 r := &io.LimitedReader{R: r, N: int64(n)}
35297 //mt:if _ = %s; false
35300 AttackCooldown float32
35304 GroupCaps []ToolGroupCap
35311 }))(obj)).NonNil = true
35315 //mt:if _ = %s; false
35318 AttackCooldown float32
35322 GroupCaps []ToolGroupCap
35332 local397 := uint8(5)
35337 if local396 != local397 {
35338 chk(fmt.Errorf("const %v: %v", "uint8(5)", local396))
35342 p := &(*(*(struct {
35343 //mt:if _ = %s; false
35346 AttackCooldown float32
35350 GroupCaps []ToolGroupCap
35357 }))(obj)).AttackCooldown
35358 *p = math.Float32frombits(read32(r))
35361 p := &(*(*(struct {
35362 //mt:if _ = %s; false
35365 AttackCooldown float32
35369 GroupCaps []ToolGroupCap
35376 }))(obj)).MaxDropLvl
35377 *p = int16(read16(r))
35379 var local398 uint32
35385 //mt:if _ = %s; false
35388 AttackCooldown float32
35392 GroupCaps []ToolGroupCap
35399 }))(obj)).GroupCaps) = make([]ToolGroupCap, local398)
35400 for local399 := range (*(*(struct {
35401 //mt:if _ = %s; false
35404 AttackCooldown float32
35408 GroupCaps []ToolGroupCap
35415 }))(obj)).GroupCaps {
35416 if err := pcall(func() {
35418 //mt:if _ = %s; false
35421 AttackCooldown float32
35425 GroupCaps []ToolGroupCap
35432 }))(obj)).GroupCaps)[local399]).deserialize(r)
35437 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35440 var local400 uint32
35446 //mt:if _ = %s; false
35449 AttackCooldown float32
35453 GroupCaps []ToolGroupCap
35460 }))(obj)).DmgGroups) = make([]Group, local400)
35461 for local401 := range (*(*(struct {
35462 //mt:if _ = %s; false
35465 AttackCooldown float32
35469 GroupCaps []ToolGroupCap
35476 }))(obj)).DmgGroups {
35477 if err := pcall(func() {
35479 //mt:if _ = %s; false
35482 AttackCooldown float32
35486 GroupCaps []ToolGroupCap
35493 }))(obj)).DmgGroups)[local401]).deserialize(r)
35498 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35501 var local402 uint16
35507 //mt:if _ = %s; false
35510 AttackCooldown float32
35514 GroupCaps []ToolGroupCap
35521 }))(obj)).PunchUses = int32(local402)
35525 chk(fmt.Errorf("%d bytes of trailing data", r.N))
35530 func (obj *AnimType) serialize(w io.Writer) {
35532 x := *(*(uint8))(obj)
35533 write8(w, uint8(x))
35537 func (obj *AnimType) deserialize(r io.Reader) {
35539 p := &*(*(uint8))(obj)
35544 func (obj *HUDType) serialize(w io.Writer) {
35546 x := *(*(uint8))(obj)
35547 write8(w, uint8(x))
35551 func (obj *HUDType) deserialize(r io.Reader) {
35553 p := &*(*(uint8))(obj)
35558 func (obj *Box) serialize(w io.Writer) {
35559 for local403 := range *(*([2]Vec))(obj) {
35560 if err := pcall(func() {
35561 ((*(*([2]Vec))(obj))[local403]).serialize(w)
35566 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35571 func (obj *Box) deserialize(r io.Reader) {
35572 for local404 := range *(*([2]Vec))(obj) {
35573 if err := pcall(func() {
35574 ((*(*([2]Vec))(obj))[local404]).deserialize(r)
35579 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35584 func (obj *TileFlags) serialize(w io.Writer) {
35586 x := *(*(uint16))(obj)
35587 write16(w, uint16(x))
35591 func (obj *TileFlags) deserialize(r io.Reader) {
35593 p := &*(*(uint16))(obj)
35598 func (obj *AlignType) serialize(w io.Writer) {
35600 x := *(*(uint8))(obj)
35601 write8(w, uint8(x))
35605 func (obj *AlignType) deserialize(r io.Reader) {
35607 p := &*(*(uint8))(obj)
35612 func (obj *NodeBoxType) serialize(w io.Writer) {
35614 x := *(*(uint8))(obj)
35615 write8(w, uint8(x))
35619 func (obj *NodeBoxType) deserialize(r io.Reader) {
35621 p := &*(*(uint8))(obj)
35626 func (obj *DirBoxes) serialize(w io.Writer) {
35627 if len(((*(*(struct {
35629 Front, Left, Back, Right []Box
35630 }))(obj)).Top)) > math.MaxUint16 {
35634 x := uint16(len(((*(*(struct {
35636 Front, Left, Back, Right []Box
35638 write16(w, uint16(x))
35640 for local405 := range (*(*(struct {
35642 Front, Left, Back, Right []Box
35644 if err := pcall(func() {
35647 Front, Left, Back, Right []Box
35648 }))(obj)).Top)[local405]).serialize(w)
35653 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35656 if len(((*(*(struct {
35658 Front, Left, Back, Right []Box
35659 }))(obj)).Bot)) > math.MaxUint16 {
35663 x := uint16(len(((*(*(struct {
35665 Front, Left, Back, Right []Box
35667 write16(w, uint16(x))
35669 for local406 := range (*(*(struct {
35671 Front, Left, Back, Right []Box
35673 if err := pcall(func() {
35676 Front, Left, Back, Right []Box
35677 }))(obj)).Bot)[local406]).serialize(w)
35682 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35685 if len(((*(*(struct {
35687 Front, Left, Back, Right []Box
35688 }))(obj)).Front)) > math.MaxUint16 {
35692 x := uint16(len(((*(*(struct {
35694 Front, Left, Back, Right []Box
35696 write16(w, uint16(x))
35698 for local407 := range (*(*(struct {
35700 Front, Left, Back, Right []Box
35702 if err := pcall(func() {
35705 Front, Left, Back, Right []Box
35706 }))(obj)).Front)[local407]).serialize(w)
35711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35714 if len(((*(*(struct {
35716 Front, Left, Back, Right []Box
35717 }))(obj)).Left)) > math.MaxUint16 {
35721 x := uint16(len(((*(*(struct {
35723 Front, Left, Back, Right []Box
35725 write16(w, uint16(x))
35727 for local408 := range (*(*(struct {
35729 Front, Left, Back, Right []Box
35731 if err := pcall(func() {
35734 Front, Left, Back, Right []Box
35735 }))(obj)).Left)[local408]).serialize(w)
35740 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35743 if len(((*(*(struct {
35745 Front, Left, Back, Right []Box
35746 }))(obj)).Back)) > math.MaxUint16 {
35750 x := uint16(len(((*(*(struct {
35752 Front, Left, Back, Right []Box
35754 write16(w, uint16(x))
35756 for local409 := range (*(*(struct {
35758 Front, Left, Back, Right []Box
35760 if err := pcall(func() {
35763 Front, Left, Back, Right []Box
35764 }))(obj)).Back)[local409]).serialize(w)
35769 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35772 if len(((*(*(struct {
35774 Front, Left, Back, Right []Box
35775 }))(obj)).Right)) > math.MaxUint16 {
35779 x := uint16(len(((*(*(struct {
35781 Front, Left, Back, Right []Box
35783 write16(w, uint16(x))
35785 for local410 := range (*(*(struct {
35787 Front, Left, Back, Right []Box
35789 if err := pcall(func() {
35792 Front, Left, Back, Right []Box
35793 }))(obj)).Right)[local410]).serialize(w)
35798 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35803 func (obj *DirBoxes) deserialize(r io.Reader) {
35804 var local411 uint16
35811 Front, Left, Back, Right []Box
35812 }))(obj)).Top) = make([]Box, local411)
35813 for local412 := range (*(*(struct {
35815 Front, Left, Back, Right []Box
35817 if err := pcall(func() {
35820 Front, Left, Back, Right []Box
35821 }))(obj)).Top)[local412]).deserialize(r)
35826 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35829 var local413 uint16
35836 Front, Left, Back, Right []Box
35837 }))(obj)).Bot) = make([]Box, local413)
35838 for local414 := range (*(*(struct {
35840 Front, Left, Back, Right []Box
35842 if err := pcall(func() {
35845 Front, Left, Back, Right []Box
35846 }))(obj)).Bot)[local414]).deserialize(r)
35851 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35854 var local415 uint16
35861 Front, Left, Back, Right []Box
35862 }))(obj)).Front) = make([]Box, local415)
35863 for local416 := range (*(*(struct {
35865 Front, Left, Back, Right []Box
35867 if err := pcall(func() {
35870 Front, Left, Back, Right []Box
35871 }))(obj)).Front)[local416]).deserialize(r)
35876 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35879 var local417 uint16
35886 Front, Left, Back, Right []Box
35887 }))(obj)).Left) = make([]Box, local417)
35888 for local418 := range (*(*(struct {
35890 Front, Left, Back, Right []Box
35892 if err := pcall(func() {
35895 Front, Left, Back, Right []Box
35896 }))(obj)).Left)[local418]).deserialize(r)
35901 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35904 var local419 uint16
35911 Front, Left, Back, Right []Box
35912 }))(obj)).Back) = make([]Box, local419)
35913 for local420 := range (*(*(struct {
35915 Front, Left, Back, Right []Box
35917 if err := pcall(func() {
35920 Front, Left, Back, Right []Box
35921 }))(obj)).Back)[local420]).deserialize(r)
35926 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35929 var local421 uint16
35936 Front, Left, Back, Right []Box
35937 }))(obj)).Right) = make([]Box, local421)
35938 for local422 := range (*(*(struct {
35940 Front, Left, Back, Right []Box
35942 if err := pcall(func() {
35945 Front, Left, Back, Right []Box
35946 }))(obj)).Right)[local422]).deserialize(r)
35951 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35956 func (obj *ToolGroupCap) serialize(w io.Writer) {
35957 if len(([]byte((*(*(struct {
35967 }))(obj)).Name))) > math.MaxUint16 {
35971 x := uint16(len(([]byte((*(*(struct {
35982 write16(w, uint16(x))
35985 _, err := w.Write(([]byte((*(*(struct {
35995 }))(obj)).Name))[:])
35999 x := int16((*(*(struct {
36010 write16(w, uint16(x))
36024 write16(w, uint16(x))
36026 if len(((*(*(struct {
36036 }))(obj)).Times)) > math.MaxUint32 {
36040 x := uint32(len(((*(*(struct {
36051 write32(w, uint32(x))
36053 for local423 := range (*(*(struct {
36064 if err := pcall(func() {
36075 }))(obj)).Times)[local423]).serialize(w)
36080 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36085 func (obj *ToolGroupCap) deserialize(r io.Reader) {
36086 var local424 []uint8
36087 var local425 uint16
36092 (local424) = make([]uint8, local425)
36094 _, err := io.ReadFull(r, (local424)[:])
36107 }))(obj)).Name) = string(local424)
36111 *p = int16(read16(r))
36123 }))(obj)).Uses = int32(local426)
36125 p := &(*(*(struct {
36136 *p = int16(read16(r))
36138 var local427 uint32
36153 }))(obj)).Times) = make([]DigTime, local427)
36154 for local428 := range (*(*(struct {
36165 if err := pcall(func() {
36176 }))(obj)).Times)[local428]).deserialize(r)
36181 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36186 func (obj *DigTime) serialize(w io.Writer) {
36192 write16(w, uint16(x))
36199 write32(w, math.Float32bits(x))
36203 func (obj *DigTime) deserialize(r io.Reader) {
36205 p := &(*(*(struct {
36209 *p = int16(read16(r))
36212 p := &(*(*(struct {
36216 *p = math.Float32frombits(read32(r))