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() {
27169 Style HUDStyleFlags
27170 }))(obj)).Type).serialize(w)
27175 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27177 for local312 := range (*(*(struct {
27193 Style HUDStyleFlags
27196 x := ((*(*(struct {
27212 Style HUDStyleFlags
27213 }))(obj)).Pos)[local312]
27214 write32(w, math.Float32bits(x))
27217 if len(([]byte((*(*(struct {
27233 Style HUDStyleFlags
27234 }))(obj)).Name))) > math.MaxUint16 {
27238 x := uint16(len(([]byte((*(*(struct {
27254 Style HUDStyleFlags
27256 write16(w, uint16(x))
27259 _, err := w.Write(([]byte((*(*(struct {
27275 Style HUDStyleFlags
27276 }))(obj)).Name))[:])
27279 for local313 := range (*(*(struct {
27295 Style HUDStyleFlags
27298 x := ((*(*(struct {
27314 Style HUDStyleFlags
27315 }))(obj)).Scale)[local313]
27316 write32(w, math.Float32bits(x))
27319 if len(([]byte((*(*(struct {
27335 Style HUDStyleFlags
27336 }))(obj)).Text))) > math.MaxUint16 {
27340 x := uint16(len(([]byte((*(*(struct {
27356 Style HUDStyleFlags
27358 write16(w, uint16(x))
27361 _, err := w.Write(([]byte((*(*(struct {
27377 Style HUDStyleFlags
27378 }))(obj)).Text))[:])
27398 Style HUDStyleFlags
27400 write32(w, uint32(x))
27419 Style HUDStyleFlags
27421 write32(w, uint32(x))
27440 Style HUDStyleFlags
27442 write32(w, uint32(x))
27444 for local314 := range (*(*(struct {
27460 Style HUDStyleFlags
27463 x := ((*(*(struct {
27479 Style HUDStyleFlags
27480 }))(obj)).Align)[local314]
27481 write32(w, math.Float32bits(x))
27484 for local315 := range (*(*(struct {
27500 Style HUDStyleFlags
27503 x := ((*(*(struct {
27519 Style HUDStyleFlags
27520 }))(obj)).Offset)[local315]
27521 write32(w, math.Float32bits(x))
27524 if err := pcall(func() {
27541 Style HUDStyleFlags
27542 }))(obj)).WorldPos).serialize(w)
27547 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
27549 for local316 := range (*(*(struct {
27565 Style HUDStyleFlags
27568 x := ((*(*(struct {
27584 Style HUDStyleFlags
27585 }))(obj)).Size)[local316]
27586 write32(w, uint32(x))
27606 Style HUDStyleFlags
27608 write16(w, uint16(x))
27610 if len(([]byte((*(*(struct {
27626 Style HUDStyleFlags
27627 }))(obj)).Text2))) > math.MaxUint16 {
27631 x := uint16(len(([]byte((*(*(struct {
27647 Style HUDStyleFlags
27648 }))(obj)).Text2))))
27649 write16(w, uint16(x))
27652 _, err := w.Write(([]byte((*(*(struct {
27668 Style HUDStyleFlags
27669 }))(obj)).Text2))[:])
27672 if err := pcall(func() {
27689 Style HUDStyleFlags
27690 }))(obj)).Style).serialize(w)
27695 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
27699 func (obj *HUD) deserialize(r io.Reader) {
27700 if err := pcall(func() {
27717 Style HUDStyleFlags
27718 }))(obj)).Type).deserialize(r)
27723 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27725 for local317 := range (*(*(struct {
27741 Style HUDStyleFlags
27744 p := &((*(*(struct {
27760 Style HUDStyleFlags
27761 }))(obj)).Pos)[local317]
27762 *p = math.Float32frombits(read32(r))
27765 var local318 []uint8
27766 var local319 uint16
27771 (local318) = make([]uint8, local319)
27773 _, err := io.ReadFull(r, (local318)[:])
27792 Style HUDStyleFlags
27793 }))(obj)).Name) = string(local318)
27794 for local320 := range (*(*(struct {
27810 Style HUDStyleFlags
27813 p := &((*(*(struct {
27829 Style HUDStyleFlags
27830 }))(obj)).Scale)[local320]
27831 *p = math.Float32frombits(read32(r))
27834 var local321 []uint8
27835 var local322 uint16
27840 (local321) = make([]uint8, local322)
27842 _, err := io.ReadFull(r, (local321)[:])
27861 Style HUDStyleFlags
27862 }))(obj)).Text) = string(local321)
27864 p := &(*(*(struct {
27880 Style HUDStyleFlags
27885 p := &(*(*(struct {
27901 Style HUDStyleFlags
27906 p := &(*(*(struct {
27922 Style HUDStyleFlags
27926 for local323 := range (*(*(struct {
27942 Style HUDStyleFlags
27945 p := &((*(*(struct {
27961 Style HUDStyleFlags
27962 }))(obj)).Align)[local323]
27963 *p = math.Float32frombits(read32(r))
27966 for local324 := range (*(*(struct {
27982 Style HUDStyleFlags
27985 p := &((*(*(struct {
28001 Style HUDStyleFlags
28002 }))(obj)).Offset)[local324]
28003 *p = math.Float32frombits(read32(r))
28006 if err := pcall(func() {
28023 Style HUDStyleFlags
28024 }))(obj)).WorldPos).deserialize(r)
28029 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
28031 for local325 := range (*(*(struct {
28047 Style HUDStyleFlags
28050 p := &((*(*(struct {
28066 Style HUDStyleFlags
28067 }))(obj)).Size)[local325]
28068 *p = int32(read32(r))
28072 p := &(*(*(struct {
28088 Style HUDStyleFlags
28090 *p = int16(read16(r))
28092 var local326 []uint8
28093 var local327 uint16
28098 (local326) = make([]uint8, local327)
28100 _, err := io.ReadFull(r, (local326)[:])
28119 Style HUDStyleFlags
28120 }))(obj)).Text2) = string(local326)
28121 if err := pcall(func() {
28138 Style HUDStyleFlags
28139 }))(obj)).Style).deserialize(r)
28144 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
28148 func (obj *HUDField) serialize(w io.Writer) {
28150 x := *(*(uint8))(obj)
28151 write8(w, uint8(x))
28155 func (obj *HUDField) deserialize(r io.Reader) {
28157 p := &*(*(uint8))(obj)
28162 func (obj *HUDStyleFlags) serialize(w io.Writer) {
28164 x := *(*(uint32))(obj)
28165 write32(w, uint32(x))
28169 func (obj *HUDStyleFlags) deserialize(r io.Reader) {
28171 p := &*(*(uint32))(obj)
28176 func (obj *HUDFlags) serialize(w io.Writer) {
28178 x := *(*(uint32))(obj)
28179 write32(w, uint32(x))
28183 func (obj *HUDFlags) deserialize(r io.Reader) {
28185 p := &*(*(uint32))(obj)
28190 func (obj *HotbarParam) serialize(w io.Writer) {
28192 x := *(*(uint16))(obj)
28193 write16(w, uint16(x))
28197 func (obj *HotbarParam) deserialize(r io.Reader) {
28199 p := &*(*(uint16))(obj)
28204 func (obj *Texture) serialize(w io.Writer) {
28205 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
28209 x := uint16(len(([]byte(*(*(string))(obj)))))
28210 write16(w, uint16(x))
28213 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
28218 func (obj *Texture) deserialize(r io.Reader) {
28219 var local328 []uint8
28220 var local329 uint16
28225 (local328) = make([]uint8, local329)
28227 _, err := io.ReadFull(r, (local328)[:])
28230 (*(*(string))(obj)) = string(local328)
28233 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
28235 x := *(*(uint8))(obj)
28236 write8(w, uint8(x))
28240 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
28242 p := &*(*(uint8))(obj)
28247 func (obj *ModChanSig) serialize(w io.Writer) {
28249 x := *(*(uint8))(obj)
28250 write8(w, uint8(x))
28254 func (obj *ModChanSig) deserialize(r io.Reader) {
28256 p := &*(*(uint8))(obj)
28261 func (obj *AOProps) serialize(w io.Writer) {
28263 local330 := uint8(4)
28266 write8(w, uint8(x))
28271 MaxHP uint16 // Player only.
28272 CollideWithNodes bool
28273 Weight float32 // deprecated
28277 VisualSize [3]float32
28279 SpriteSheetSize [2]int16 // in sprites.
28280 SpritePos [2]int16 // in sprite sheet.
28282 MakeFootstepSnds bool
28283 RotateSpeed float32 // in radians per second.
28285 Colors []color.NRGBA
28286 CollideWithAOs bool
28289 FaceRotateDirOff float32 // in degrees.
28292 NametagColor color.NRGBA
28293 FaceRotateSpeed float32 // in degrees per second.
28297 MaxBreath uint16 // Player only.
28298 EyeHeight float32 // Player only.
28299 ZoomFOV float32 // in degrees. Player only.
28300 UseTextureAlpha bool
28301 DmgTextureMod Texture // suffix
28304 NametagBG color.NRGBA
28306 write16(w, uint16(x))
28310 MaxHP uint16 // Player only.
28311 CollideWithNodes bool
28312 Weight float32 // deprecated
28316 VisualSize [3]float32
28318 SpriteSheetSize [2]int16 // in sprites.
28319 SpritePos [2]int16 // in sprite sheet.
28321 MakeFootstepSnds bool
28322 RotateSpeed float32 // in radians per second.
28324 Colors []color.NRGBA
28325 CollideWithAOs bool
28328 FaceRotateDirOff float32 // in degrees.
28331 NametagColor color.NRGBA
28332 FaceRotateSpeed float32 // in degrees per second.
28336 MaxBreath uint16 // Player only.
28337 EyeHeight float32 // Player only.
28338 ZoomFOV float32 // in degrees. Player only.
28339 UseTextureAlpha bool
28340 DmgTextureMod Texture // suffix
28343 NametagBG color.NRGBA
28344 }))(obj)).CollideWithNodes
28353 MaxHP uint16 // Player only.
28354 CollideWithNodes bool
28355 Weight float32 // deprecated
28359 VisualSize [3]float32
28361 SpriteSheetSize [2]int16 // in sprites.
28362 SpritePos [2]int16 // in sprite sheet.
28364 MakeFootstepSnds bool
28365 RotateSpeed float32 // in radians per second.
28367 Colors []color.NRGBA
28368 CollideWithAOs bool
28371 FaceRotateDirOff float32 // in degrees.
28374 NametagColor color.NRGBA
28375 FaceRotateSpeed float32 // in degrees per second.
28379 MaxBreath uint16 // Player only.
28380 EyeHeight float32 // Player only.
28381 ZoomFOV float32 // in degrees. Player only.
28382 UseTextureAlpha bool
28383 DmgTextureMod Texture // suffix
28386 NametagBG color.NRGBA
28388 write32(w, math.Float32bits(x))
28390 if err := pcall(func() {
28392 MaxHP uint16 // Player only.
28393 CollideWithNodes bool
28394 Weight float32 // deprecated
28398 VisualSize [3]float32
28400 SpriteSheetSize [2]int16 // in sprites.
28401 SpritePos [2]int16 // in sprite sheet.
28403 MakeFootstepSnds bool
28404 RotateSpeed float32 // in radians per second.
28406 Colors []color.NRGBA
28407 CollideWithAOs bool
28410 FaceRotateDirOff float32 // in degrees.
28413 NametagColor color.NRGBA
28414 FaceRotateSpeed float32 // in degrees per second.
28418 MaxBreath uint16 // Player only.
28419 EyeHeight float32 // Player only.
28420 ZoomFOV float32 // in degrees. Player only.
28421 UseTextureAlpha bool
28422 DmgTextureMod Texture // suffix
28425 NametagBG color.NRGBA
28426 }))(obj)).ColBox).serialize(w)
28431 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28433 if err := pcall(func() {
28435 MaxHP uint16 // Player only.
28436 CollideWithNodes bool
28437 Weight float32 // deprecated
28441 VisualSize [3]float32
28443 SpriteSheetSize [2]int16 // in sprites.
28444 SpritePos [2]int16 // in sprite sheet.
28446 MakeFootstepSnds bool
28447 RotateSpeed float32 // in radians per second.
28449 Colors []color.NRGBA
28450 CollideWithAOs bool
28453 FaceRotateDirOff float32 // in degrees.
28456 NametagColor color.NRGBA
28457 FaceRotateSpeed float32 // in degrees per second.
28461 MaxBreath uint16 // Player only.
28462 EyeHeight float32 // Player only.
28463 ZoomFOV float32 // in degrees. Player only.
28464 UseTextureAlpha bool
28465 DmgTextureMod Texture // suffix
28468 NametagBG color.NRGBA
28469 }))(obj)).SelBox).serialize(w)
28474 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28478 MaxHP uint16 // Player only.
28479 CollideWithNodes bool
28480 Weight float32 // deprecated
28484 VisualSize [3]float32
28486 SpriteSheetSize [2]int16 // in sprites.
28487 SpritePos [2]int16 // in sprite sheet.
28489 MakeFootstepSnds bool
28490 RotateSpeed float32 // in radians per second.
28492 Colors []color.NRGBA
28493 CollideWithAOs bool
28496 FaceRotateDirOff float32 // in degrees.
28499 NametagColor color.NRGBA
28500 FaceRotateSpeed float32 // in degrees per second.
28504 MaxBreath uint16 // Player only.
28505 EyeHeight float32 // Player only.
28506 ZoomFOV float32 // in degrees. Player only.
28507 UseTextureAlpha bool
28508 DmgTextureMod Texture // suffix
28511 NametagBG color.NRGBA
28512 }))(obj)).Pointable
28519 if len(([]byte((*(*(struct {
28520 MaxHP uint16 // Player only.
28521 CollideWithNodes bool
28522 Weight float32 // deprecated
28526 VisualSize [3]float32
28528 SpriteSheetSize [2]int16 // in sprites.
28529 SpritePos [2]int16 // in sprite sheet.
28531 MakeFootstepSnds bool
28532 RotateSpeed float32 // in radians per second.
28534 Colors []color.NRGBA
28535 CollideWithAOs bool
28538 FaceRotateDirOff float32 // in degrees.
28541 NametagColor color.NRGBA
28542 FaceRotateSpeed float32 // in degrees per second.
28546 MaxBreath uint16 // Player only.
28547 EyeHeight float32 // Player only.
28548 ZoomFOV float32 // in degrees. Player only.
28549 UseTextureAlpha bool
28550 DmgTextureMod Texture // suffix
28553 NametagBG color.NRGBA
28554 }))(obj)).Visual))) > math.MaxUint16 {
28558 x := uint16(len(([]byte((*(*(struct {
28559 MaxHP uint16 // Player only.
28560 CollideWithNodes bool
28561 Weight float32 // deprecated
28565 VisualSize [3]float32
28567 SpriteSheetSize [2]int16 // in sprites.
28568 SpritePos [2]int16 // in sprite sheet.
28570 MakeFootstepSnds bool
28571 RotateSpeed float32 // in radians per second.
28573 Colors []color.NRGBA
28574 CollideWithAOs bool
28577 FaceRotateDirOff float32 // in degrees.
28580 NametagColor color.NRGBA
28581 FaceRotateSpeed float32 // in degrees per second.
28585 MaxBreath uint16 // Player only.
28586 EyeHeight float32 // Player only.
28587 ZoomFOV float32 // in degrees. Player only.
28588 UseTextureAlpha bool
28589 DmgTextureMod Texture // suffix
28592 NametagBG color.NRGBA
28593 }))(obj)).Visual))))
28594 write16(w, uint16(x))
28597 _, err := w.Write(([]byte((*(*(struct {
28598 MaxHP uint16 // Player only.
28599 CollideWithNodes bool
28600 Weight float32 // deprecated
28604 VisualSize [3]float32
28606 SpriteSheetSize [2]int16 // in sprites.
28607 SpritePos [2]int16 // in sprite sheet.
28609 MakeFootstepSnds bool
28610 RotateSpeed float32 // in radians per second.
28612 Colors []color.NRGBA
28613 CollideWithAOs bool
28616 FaceRotateDirOff float32 // in degrees.
28619 NametagColor color.NRGBA
28620 FaceRotateSpeed float32 // in degrees per second.
28624 MaxBreath uint16 // Player only.
28625 EyeHeight float32 // Player only.
28626 ZoomFOV float32 // in degrees. Player only.
28627 UseTextureAlpha bool
28628 DmgTextureMod Texture // suffix
28631 NametagBG color.NRGBA
28632 }))(obj)).Visual))[:])
28635 for local331 := range (*(*(struct {
28636 MaxHP uint16 // Player only.
28637 CollideWithNodes bool
28638 Weight float32 // deprecated
28642 VisualSize [3]float32
28644 SpriteSheetSize [2]int16 // in sprites.
28645 SpritePos [2]int16 // in sprite sheet.
28647 MakeFootstepSnds bool
28648 RotateSpeed float32 // in radians per second.
28650 Colors []color.NRGBA
28651 CollideWithAOs bool
28654 FaceRotateDirOff float32 // in degrees.
28657 NametagColor color.NRGBA
28658 FaceRotateSpeed float32 // in degrees per second.
28662 MaxBreath uint16 // Player only.
28663 EyeHeight float32 // Player only.
28664 ZoomFOV float32 // in degrees. Player only.
28665 UseTextureAlpha bool
28666 DmgTextureMod Texture // suffix
28669 NametagBG color.NRGBA
28670 }))(obj)).VisualSize {
28672 x := ((*(*(struct {
28673 MaxHP uint16 // Player only.
28674 CollideWithNodes bool
28675 Weight float32 // deprecated
28679 VisualSize [3]float32
28681 SpriteSheetSize [2]int16 // in sprites.
28682 SpritePos [2]int16 // in sprite sheet.
28684 MakeFootstepSnds bool
28685 RotateSpeed float32 // in radians per second.
28687 Colors []color.NRGBA
28688 CollideWithAOs bool
28691 FaceRotateDirOff float32 // in degrees.
28694 NametagColor color.NRGBA
28695 FaceRotateSpeed float32 // in degrees per second.
28699 MaxBreath uint16 // Player only.
28700 EyeHeight float32 // Player only.
28701 ZoomFOV float32 // in degrees. Player only.
28702 UseTextureAlpha bool
28703 DmgTextureMod Texture // suffix
28706 NametagBG color.NRGBA
28707 }))(obj)).VisualSize)[local331]
28708 write32(w, math.Float32bits(x))
28711 if len(((*(*(struct {
28712 MaxHP uint16 // Player only.
28713 CollideWithNodes bool
28714 Weight float32 // deprecated
28718 VisualSize [3]float32
28720 SpriteSheetSize [2]int16 // in sprites.
28721 SpritePos [2]int16 // in sprite sheet.
28723 MakeFootstepSnds bool
28724 RotateSpeed float32 // in radians per second.
28726 Colors []color.NRGBA
28727 CollideWithAOs bool
28730 FaceRotateDirOff float32 // in degrees.
28733 NametagColor color.NRGBA
28734 FaceRotateSpeed float32 // in degrees per second.
28738 MaxBreath uint16 // Player only.
28739 EyeHeight float32 // Player only.
28740 ZoomFOV float32 // in degrees. Player only.
28741 UseTextureAlpha bool
28742 DmgTextureMod Texture // suffix
28745 NametagBG color.NRGBA
28746 }))(obj)).Textures)) > math.MaxUint16 {
28750 x := uint16(len(((*(*(struct {
28751 MaxHP uint16 // Player only.
28752 CollideWithNodes bool
28753 Weight float32 // deprecated
28757 VisualSize [3]float32
28759 SpriteSheetSize [2]int16 // in sprites.
28760 SpritePos [2]int16 // in sprite sheet.
28762 MakeFootstepSnds bool
28763 RotateSpeed float32 // in radians per second.
28765 Colors []color.NRGBA
28766 CollideWithAOs bool
28769 FaceRotateDirOff float32 // in degrees.
28772 NametagColor color.NRGBA
28773 FaceRotateSpeed float32 // in degrees per second.
28777 MaxBreath uint16 // Player only.
28778 EyeHeight float32 // Player only.
28779 ZoomFOV float32 // in degrees. Player only.
28780 UseTextureAlpha bool
28781 DmgTextureMod Texture // suffix
28784 NametagBG color.NRGBA
28785 }))(obj)).Textures)))
28786 write16(w, uint16(x))
28788 for local332 := range (*(*(struct {
28789 MaxHP uint16 // Player only.
28790 CollideWithNodes bool
28791 Weight float32 // deprecated
28795 VisualSize [3]float32
28797 SpriteSheetSize [2]int16 // in sprites.
28798 SpritePos [2]int16 // in sprite sheet.
28800 MakeFootstepSnds bool
28801 RotateSpeed float32 // in radians per second.
28803 Colors []color.NRGBA
28804 CollideWithAOs bool
28807 FaceRotateDirOff float32 // in degrees.
28810 NametagColor color.NRGBA
28811 FaceRotateSpeed float32 // in degrees per second.
28815 MaxBreath uint16 // Player only.
28816 EyeHeight float32 // Player only.
28817 ZoomFOV float32 // in degrees. Player only.
28818 UseTextureAlpha bool
28819 DmgTextureMod Texture // suffix
28822 NametagBG color.NRGBA
28823 }))(obj)).Textures {
28824 if err := pcall(func() {
28826 MaxHP uint16 // Player only.
28827 CollideWithNodes bool
28828 Weight float32 // deprecated
28832 VisualSize [3]float32
28834 SpriteSheetSize [2]int16 // in sprites.
28835 SpritePos [2]int16 // in sprite sheet.
28837 MakeFootstepSnds bool
28838 RotateSpeed float32 // in radians per second.
28840 Colors []color.NRGBA
28841 CollideWithAOs bool
28844 FaceRotateDirOff float32 // in degrees.
28847 NametagColor color.NRGBA
28848 FaceRotateSpeed float32 // in degrees per second.
28852 MaxBreath uint16 // Player only.
28853 EyeHeight float32 // Player only.
28854 ZoomFOV float32 // in degrees. Player only.
28855 UseTextureAlpha bool
28856 DmgTextureMod Texture // suffix
28859 NametagBG color.NRGBA
28860 }))(obj)).Textures)[local332]).serialize(w)
28865 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
28868 for local333 := range (*(*(struct {
28869 MaxHP uint16 // Player only.
28870 CollideWithNodes bool
28871 Weight float32 // deprecated
28875 VisualSize [3]float32
28877 SpriteSheetSize [2]int16 // in sprites.
28878 SpritePos [2]int16 // in sprite sheet.
28880 MakeFootstepSnds bool
28881 RotateSpeed float32 // in radians per second.
28883 Colors []color.NRGBA
28884 CollideWithAOs bool
28887 FaceRotateDirOff float32 // in degrees.
28890 NametagColor color.NRGBA
28891 FaceRotateSpeed float32 // in degrees per second.
28895 MaxBreath uint16 // Player only.
28896 EyeHeight float32 // Player only.
28897 ZoomFOV float32 // in degrees. Player only.
28898 UseTextureAlpha bool
28899 DmgTextureMod Texture // suffix
28902 NametagBG color.NRGBA
28903 }))(obj)).SpriteSheetSize {
28905 x := ((*(*(struct {
28906 MaxHP uint16 // Player only.
28907 CollideWithNodes bool
28908 Weight float32 // deprecated
28912 VisualSize [3]float32
28914 SpriteSheetSize [2]int16 // in sprites.
28915 SpritePos [2]int16 // in sprite sheet.
28917 MakeFootstepSnds bool
28918 RotateSpeed float32 // in radians per second.
28920 Colors []color.NRGBA
28921 CollideWithAOs bool
28924 FaceRotateDirOff float32 // in degrees.
28927 NametagColor color.NRGBA
28928 FaceRotateSpeed float32 // in degrees per second.
28932 MaxBreath uint16 // Player only.
28933 EyeHeight float32 // Player only.
28934 ZoomFOV float32 // in degrees. Player only.
28935 UseTextureAlpha bool
28936 DmgTextureMod Texture // suffix
28939 NametagBG color.NRGBA
28940 }))(obj)).SpriteSheetSize)[local333]
28941 write16(w, uint16(x))
28944 for local334 := range (*(*(struct {
28945 MaxHP uint16 // Player only.
28946 CollideWithNodes bool
28947 Weight float32 // deprecated
28951 VisualSize [3]float32
28953 SpriteSheetSize [2]int16 // in sprites.
28954 SpritePos [2]int16 // in sprite sheet.
28956 MakeFootstepSnds bool
28957 RotateSpeed float32 // in radians per second.
28959 Colors []color.NRGBA
28960 CollideWithAOs bool
28963 FaceRotateDirOff float32 // in degrees.
28966 NametagColor color.NRGBA
28967 FaceRotateSpeed float32 // in degrees per second.
28971 MaxBreath uint16 // Player only.
28972 EyeHeight float32 // Player only.
28973 ZoomFOV float32 // in degrees. Player only.
28974 UseTextureAlpha bool
28975 DmgTextureMod Texture // suffix
28978 NametagBG color.NRGBA
28979 }))(obj)).SpritePos {
28981 x := ((*(*(struct {
28982 MaxHP uint16 // Player only.
28983 CollideWithNodes bool
28984 Weight float32 // deprecated
28988 VisualSize [3]float32
28990 SpriteSheetSize [2]int16 // in sprites.
28991 SpritePos [2]int16 // in sprite sheet.
28993 MakeFootstepSnds bool
28994 RotateSpeed float32 // in radians per second.
28996 Colors []color.NRGBA
28997 CollideWithAOs bool
29000 FaceRotateDirOff float32 // in degrees.
29003 NametagColor color.NRGBA
29004 FaceRotateSpeed float32 // in degrees per second.
29008 MaxBreath uint16 // Player only.
29009 EyeHeight float32 // Player only.
29010 ZoomFOV float32 // in degrees. Player only.
29011 UseTextureAlpha bool
29012 DmgTextureMod Texture // suffix
29015 NametagBG color.NRGBA
29016 }))(obj)).SpritePos)[local334]
29017 write16(w, uint16(x))
29022 MaxHP uint16 // Player only.
29023 CollideWithNodes bool
29024 Weight float32 // deprecated
29028 VisualSize [3]float32
29030 SpriteSheetSize [2]int16 // in sprites.
29031 SpritePos [2]int16 // in sprite sheet.
29033 MakeFootstepSnds bool
29034 RotateSpeed float32 // in radians per second.
29036 Colors []color.NRGBA
29037 CollideWithAOs bool
29040 FaceRotateDirOff float32 // in degrees.
29043 NametagColor color.NRGBA
29044 FaceRotateSpeed float32 // in degrees per second.
29048 MaxBreath uint16 // Player only.
29049 EyeHeight float32 // Player only.
29050 ZoomFOV float32 // in degrees. Player only.
29051 UseTextureAlpha bool
29052 DmgTextureMod Texture // suffix
29055 NametagBG color.NRGBA
29065 MaxHP uint16 // Player only.
29066 CollideWithNodes bool
29067 Weight float32 // deprecated
29071 VisualSize [3]float32
29073 SpriteSheetSize [2]int16 // in sprites.
29074 SpritePos [2]int16 // in sprite sheet.
29076 MakeFootstepSnds bool
29077 RotateSpeed float32 // in radians per second.
29079 Colors []color.NRGBA
29080 CollideWithAOs bool
29083 FaceRotateDirOff float32 // in degrees.
29086 NametagColor color.NRGBA
29087 FaceRotateSpeed float32 // in degrees per second.
29091 MaxBreath uint16 // Player only.
29092 EyeHeight float32 // Player only.
29093 ZoomFOV float32 // in degrees. Player only.
29094 UseTextureAlpha bool
29095 DmgTextureMod Texture // suffix
29098 NametagBG color.NRGBA
29099 }))(obj)).MakeFootstepSnds
29108 MaxHP uint16 // Player only.
29109 CollideWithNodes bool
29110 Weight float32 // deprecated
29114 VisualSize [3]float32
29116 SpriteSheetSize [2]int16 // in sprites.
29117 SpritePos [2]int16 // in sprite sheet.
29119 MakeFootstepSnds bool
29120 RotateSpeed float32 // in radians per second.
29122 Colors []color.NRGBA
29123 CollideWithAOs bool
29126 FaceRotateDirOff float32 // in degrees.
29129 NametagColor color.NRGBA
29130 FaceRotateSpeed float32 // in degrees per second.
29134 MaxBreath uint16 // Player only.
29135 EyeHeight float32 // Player only.
29136 ZoomFOV float32 // in degrees. Player only.
29137 UseTextureAlpha bool
29138 DmgTextureMod Texture // suffix
29141 NametagBG color.NRGBA
29142 }))(obj)).RotateSpeed
29143 write32(w, math.Float32bits(x))
29145 if len(([]byte((*(*(struct {
29146 MaxHP uint16 // Player only.
29147 CollideWithNodes bool
29148 Weight float32 // deprecated
29152 VisualSize [3]float32
29154 SpriteSheetSize [2]int16 // in sprites.
29155 SpritePos [2]int16 // in sprite sheet.
29157 MakeFootstepSnds bool
29158 RotateSpeed float32 // in radians per second.
29160 Colors []color.NRGBA
29161 CollideWithAOs bool
29164 FaceRotateDirOff float32 // in degrees.
29167 NametagColor color.NRGBA
29168 FaceRotateSpeed float32 // in degrees per second.
29172 MaxBreath uint16 // Player only.
29173 EyeHeight float32 // Player only.
29174 ZoomFOV float32 // in degrees. Player only.
29175 UseTextureAlpha bool
29176 DmgTextureMod Texture // suffix
29179 NametagBG color.NRGBA
29180 }))(obj)).Mesh))) > math.MaxUint16 {
29184 x := uint16(len(([]byte((*(*(struct {
29185 MaxHP uint16 // Player only.
29186 CollideWithNodes bool
29187 Weight float32 // deprecated
29191 VisualSize [3]float32
29193 SpriteSheetSize [2]int16 // in sprites.
29194 SpritePos [2]int16 // in sprite sheet.
29196 MakeFootstepSnds bool
29197 RotateSpeed float32 // in radians per second.
29199 Colors []color.NRGBA
29200 CollideWithAOs bool
29203 FaceRotateDirOff float32 // in degrees.
29206 NametagColor color.NRGBA
29207 FaceRotateSpeed float32 // in degrees per second.
29211 MaxBreath uint16 // Player only.
29212 EyeHeight float32 // Player only.
29213 ZoomFOV float32 // in degrees. Player only.
29214 UseTextureAlpha bool
29215 DmgTextureMod Texture // suffix
29218 NametagBG color.NRGBA
29220 write16(w, uint16(x))
29223 _, err := w.Write(([]byte((*(*(struct {
29224 MaxHP uint16 // Player only.
29225 CollideWithNodes bool
29226 Weight float32 // deprecated
29230 VisualSize [3]float32
29232 SpriteSheetSize [2]int16 // in sprites.
29233 SpritePos [2]int16 // in sprite sheet.
29235 MakeFootstepSnds bool
29236 RotateSpeed float32 // in radians per second.
29238 Colors []color.NRGBA
29239 CollideWithAOs bool
29242 FaceRotateDirOff float32 // in degrees.
29245 NametagColor color.NRGBA
29246 FaceRotateSpeed float32 // in degrees per second.
29250 MaxBreath uint16 // Player only.
29251 EyeHeight float32 // Player only.
29252 ZoomFOV float32 // in degrees. Player only.
29253 UseTextureAlpha bool
29254 DmgTextureMod Texture // suffix
29257 NametagBG color.NRGBA
29258 }))(obj)).Mesh))[:])
29261 if len(((*(*(struct {
29262 MaxHP uint16 // Player only.
29263 CollideWithNodes bool
29264 Weight float32 // deprecated
29268 VisualSize [3]float32
29270 SpriteSheetSize [2]int16 // in sprites.
29271 SpritePos [2]int16 // in sprite sheet.
29273 MakeFootstepSnds bool
29274 RotateSpeed float32 // in radians per second.
29276 Colors []color.NRGBA
29277 CollideWithAOs bool
29280 FaceRotateDirOff float32 // in degrees.
29283 NametagColor color.NRGBA
29284 FaceRotateSpeed float32 // in degrees per second.
29288 MaxBreath uint16 // Player only.
29289 EyeHeight float32 // Player only.
29290 ZoomFOV float32 // in degrees. Player only.
29291 UseTextureAlpha bool
29292 DmgTextureMod Texture // suffix
29295 NametagBG color.NRGBA
29296 }))(obj)).Colors)) > math.MaxUint16 {
29300 x := uint16(len(((*(*(struct {
29301 MaxHP uint16 // Player only.
29302 CollideWithNodes bool
29303 Weight float32 // deprecated
29307 VisualSize [3]float32
29309 SpriteSheetSize [2]int16 // in sprites.
29310 SpritePos [2]int16 // in sprite sheet.
29312 MakeFootstepSnds bool
29313 RotateSpeed float32 // in radians per second.
29315 Colors []color.NRGBA
29316 CollideWithAOs bool
29319 FaceRotateDirOff float32 // in degrees.
29322 NametagColor color.NRGBA
29323 FaceRotateSpeed float32 // in degrees per second.
29327 MaxBreath uint16 // Player only.
29328 EyeHeight float32 // Player only.
29329 ZoomFOV float32 // in degrees. Player only.
29330 UseTextureAlpha bool
29331 DmgTextureMod Texture // suffix
29334 NametagBG color.NRGBA
29335 }))(obj)).Colors)))
29336 write16(w, uint16(x))
29338 for local335 := range (*(*(struct {
29339 MaxHP uint16 // Player only.
29340 CollideWithNodes bool
29341 Weight float32 // deprecated
29345 VisualSize [3]float32
29347 SpriteSheetSize [2]int16 // in sprites.
29348 SpritePos [2]int16 // in sprite sheet.
29350 MakeFootstepSnds bool
29351 RotateSpeed float32 // in radians per second.
29353 Colors []color.NRGBA
29354 CollideWithAOs bool
29357 FaceRotateDirOff float32 // in degrees.
29360 NametagColor color.NRGBA
29361 FaceRotateSpeed float32 // in degrees per second.
29365 MaxBreath uint16 // Player only.
29366 EyeHeight float32 // Player only.
29367 ZoomFOV float32 // in degrees. Player only.
29368 UseTextureAlpha bool
29369 DmgTextureMod Texture // suffix
29372 NametagBG color.NRGBA
29375 x := ((*(*(struct {
29376 MaxHP uint16 // Player only.
29377 CollideWithNodes bool
29378 Weight float32 // deprecated
29382 VisualSize [3]float32
29384 SpriteSheetSize [2]int16 // in sprites.
29385 SpritePos [2]int16 // in sprite sheet.
29387 MakeFootstepSnds bool
29388 RotateSpeed float32 // in radians per second.
29390 Colors []color.NRGBA
29391 CollideWithAOs bool
29394 FaceRotateDirOff float32 // in degrees.
29397 NametagColor color.NRGBA
29398 FaceRotateSpeed float32 // in degrees per second.
29402 MaxBreath uint16 // Player only.
29403 EyeHeight float32 // Player only.
29404 ZoomFOV float32 // in degrees. Player only.
29405 UseTextureAlpha bool
29406 DmgTextureMod Texture // suffix
29409 NametagBG color.NRGBA
29410 }))(obj)).Colors)[local335]
29411 w.Write([]byte{x.A, x.R, x.G, x.B})
29416 MaxHP uint16 // Player only.
29417 CollideWithNodes bool
29418 Weight float32 // deprecated
29422 VisualSize [3]float32
29424 SpriteSheetSize [2]int16 // in sprites.
29425 SpritePos [2]int16 // in sprite sheet.
29427 MakeFootstepSnds bool
29428 RotateSpeed float32 // in radians per second.
29430 Colors []color.NRGBA
29431 CollideWithAOs bool
29434 FaceRotateDirOff float32 // in degrees.
29437 NametagColor color.NRGBA
29438 FaceRotateSpeed float32 // in degrees per second.
29442 MaxBreath uint16 // Player only.
29443 EyeHeight float32 // Player only.
29444 ZoomFOV float32 // in degrees. Player only.
29445 UseTextureAlpha bool
29446 DmgTextureMod Texture // suffix
29449 NametagBG color.NRGBA
29450 }))(obj)).CollideWithAOs
29459 MaxHP uint16 // Player only.
29460 CollideWithNodes bool
29461 Weight float32 // deprecated
29465 VisualSize [3]float32
29467 SpriteSheetSize [2]int16 // in sprites.
29468 SpritePos [2]int16 // in sprite sheet.
29470 MakeFootstepSnds bool
29471 RotateSpeed float32 // in radians per second.
29473 Colors []color.NRGBA
29474 CollideWithAOs bool
29477 FaceRotateDirOff float32 // in degrees.
29480 NametagColor color.NRGBA
29481 FaceRotateSpeed float32 // in degrees per second.
29485 MaxBreath uint16 // Player only.
29486 EyeHeight float32 // Player only.
29487 ZoomFOV float32 // in degrees. Player only.
29488 UseTextureAlpha bool
29489 DmgTextureMod Texture // suffix
29492 NametagBG color.NRGBA
29493 }))(obj)).StepHeight
29494 write32(w, math.Float32bits(x))
29498 MaxHP uint16 // Player only.
29499 CollideWithNodes bool
29500 Weight float32 // deprecated
29504 VisualSize [3]float32
29506 SpriteSheetSize [2]int16 // in sprites.
29507 SpritePos [2]int16 // in sprite sheet.
29509 MakeFootstepSnds bool
29510 RotateSpeed float32 // in radians per second.
29512 Colors []color.NRGBA
29513 CollideWithAOs bool
29516 FaceRotateDirOff float32 // in degrees.
29519 NametagColor color.NRGBA
29520 FaceRotateSpeed float32 // in degrees per second.
29524 MaxBreath uint16 // Player only.
29525 EyeHeight float32 // Player only.
29526 ZoomFOV float32 // in degrees. Player only.
29527 UseTextureAlpha bool
29528 DmgTextureMod Texture // suffix
29531 NametagBG color.NRGBA
29532 }))(obj)).FaceRotateDir
29541 MaxHP uint16 // Player only.
29542 CollideWithNodes bool
29543 Weight float32 // deprecated
29547 VisualSize [3]float32
29549 SpriteSheetSize [2]int16 // in sprites.
29550 SpritePos [2]int16 // in sprite sheet.
29552 MakeFootstepSnds bool
29553 RotateSpeed float32 // in radians per second.
29555 Colors []color.NRGBA
29556 CollideWithAOs bool
29559 FaceRotateDirOff float32 // in degrees.
29562 NametagColor color.NRGBA
29563 FaceRotateSpeed float32 // in degrees per second.
29567 MaxBreath uint16 // Player only.
29568 EyeHeight float32 // Player only.
29569 ZoomFOV float32 // in degrees. Player only.
29570 UseTextureAlpha bool
29571 DmgTextureMod Texture // suffix
29574 NametagBG color.NRGBA
29575 }))(obj)).FaceRotateDirOff
29576 write32(w, math.Float32bits(x))
29580 MaxHP uint16 // Player only.
29581 CollideWithNodes bool
29582 Weight float32 // deprecated
29586 VisualSize [3]float32
29588 SpriteSheetSize [2]int16 // in sprites.
29589 SpritePos [2]int16 // in sprite sheet.
29591 MakeFootstepSnds bool
29592 RotateSpeed float32 // in radians per second.
29594 Colors []color.NRGBA
29595 CollideWithAOs bool
29598 FaceRotateDirOff float32 // in degrees.
29601 NametagColor color.NRGBA
29602 FaceRotateSpeed float32 // in degrees per second.
29606 MaxBreath uint16 // Player only.
29607 EyeHeight float32 // Player only.
29608 ZoomFOV float32 // in degrees. Player only.
29609 UseTextureAlpha bool
29610 DmgTextureMod Texture // suffix
29613 NametagBG color.NRGBA
29614 }))(obj)).BackfaceCull
29621 if len(([]byte((*(*(struct {
29622 MaxHP uint16 // Player only.
29623 CollideWithNodes bool
29624 Weight float32 // deprecated
29628 VisualSize [3]float32
29630 SpriteSheetSize [2]int16 // in sprites.
29631 SpritePos [2]int16 // in sprite sheet.
29633 MakeFootstepSnds bool
29634 RotateSpeed float32 // in radians per second.
29636 Colors []color.NRGBA
29637 CollideWithAOs bool
29640 FaceRotateDirOff float32 // in degrees.
29643 NametagColor color.NRGBA
29644 FaceRotateSpeed float32 // in degrees per second.
29648 MaxBreath uint16 // Player only.
29649 EyeHeight float32 // Player only.
29650 ZoomFOV float32 // in degrees. Player only.
29651 UseTextureAlpha bool
29652 DmgTextureMod Texture // suffix
29655 NametagBG color.NRGBA
29656 }))(obj)).Nametag))) > math.MaxUint16 {
29660 x := uint16(len(([]byte((*(*(struct {
29661 MaxHP uint16 // Player only.
29662 CollideWithNodes bool
29663 Weight float32 // deprecated
29667 VisualSize [3]float32
29669 SpriteSheetSize [2]int16 // in sprites.
29670 SpritePos [2]int16 // in sprite sheet.
29672 MakeFootstepSnds bool
29673 RotateSpeed float32 // in radians per second.
29675 Colors []color.NRGBA
29676 CollideWithAOs bool
29679 FaceRotateDirOff float32 // in degrees.
29682 NametagColor color.NRGBA
29683 FaceRotateSpeed float32 // in degrees per second.
29687 MaxBreath uint16 // Player only.
29688 EyeHeight float32 // Player only.
29689 ZoomFOV float32 // in degrees. Player only.
29690 UseTextureAlpha bool
29691 DmgTextureMod Texture // suffix
29694 NametagBG color.NRGBA
29695 }))(obj)).Nametag))))
29696 write16(w, uint16(x))
29699 _, err := w.Write(([]byte((*(*(struct {
29700 MaxHP uint16 // Player only.
29701 CollideWithNodes bool
29702 Weight float32 // deprecated
29706 VisualSize [3]float32
29708 SpriteSheetSize [2]int16 // in sprites.
29709 SpritePos [2]int16 // in sprite sheet.
29711 MakeFootstepSnds bool
29712 RotateSpeed float32 // in radians per second.
29714 Colors []color.NRGBA
29715 CollideWithAOs bool
29718 FaceRotateDirOff float32 // in degrees.
29721 NametagColor color.NRGBA
29722 FaceRotateSpeed float32 // in degrees per second.
29726 MaxBreath uint16 // Player only.
29727 EyeHeight float32 // Player only.
29728 ZoomFOV float32 // in degrees. Player only.
29729 UseTextureAlpha bool
29730 DmgTextureMod Texture // suffix
29733 NametagBG color.NRGBA
29734 }))(obj)).Nametag))[:])
29739 MaxHP uint16 // Player only.
29740 CollideWithNodes bool
29741 Weight float32 // deprecated
29745 VisualSize [3]float32
29747 SpriteSheetSize [2]int16 // in sprites.
29748 SpritePos [2]int16 // in sprite sheet.
29750 MakeFootstepSnds bool
29751 RotateSpeed float32 // in radians per second.
29753 Colors []color.NRGBA
29754 CollideWithAOs bool
29757 FaceRotateDirOff float32 // in degrees.
29760 NametagColor color.NRGBA
29761 FaceRotateSpeed float32 // in degrees per second.
29765 MaxBreath uint16 // Player only.
29766 EyeHeight float32 // Player only.
29767 ZoomFOV float32 // in degrees. Player only.
29768 UseTextureAlpha bool
29769 DmgTextureMod Texture // suffix
29772 NametagBG color.NRGBA
29773 }))(obj)).NametagColor
29774 w.Write([]byte{x.A, x.R, x.G, x.B})
29778 MaxHP uint16 // Player only.
29779 CollideWithNodes bool
29780 Weight float32 // deprecated
29784 VisualSize [3]float32
29786 SpriteSheetSize [2]int16 // in sprites.
29787 SpritePos [2]int16 // in sprite sheet.
29789 MakeFootstepSnds bool
29790 RotateSpeed float32 // in radians per second.
29792 Colors []color.NRGBA
29793 CollideWithAOs bool
29796 FaceRotateDirOff float32 // in degrees.
29799 NametagColor color.NRGBA
29800 FaceRotateSpeed float32 // in degrees per second.
29804 MaxBreath uint16 // Player only.
29805 EyeHeight float32 // Player only.
29806 ZoomFOV float32 // in degrees. Player only.
29807 UseTextureAlpha bool
29808 DmgTextureMod Texture // suffix
29811 NametagBG color.NRGBA
29812 }))(obj)).FaceRotateSpeed
29813 write32(w, math.Float32bits(x))
29815 if len(([]byte((*(*(struct {
29816 MaxHP uint16 // Player only.
29817 CollideWithNodes bool
29818 Weight float32 // deprecated
29822 VisualSize [3]float32
29824 SpriteSheetSize [2]int16 // in sprites.
29825 SpritePos [2]int16 // in sprite sheet.
29827 MakeFootstepSnds bool
29828 RotateSpeed float32 // in radians per second.
29830 Colors []color.NRGBA
29831 CollideWithAOs bool
29834 FaceRotateDirOff float32 // in degrees.
29837 NametagColor color.NRGBA
29838 FaceRotateSpeed float32 // in degrees per second.
29842 MaxBreath uint16 // Player only.
29843 EyeHeight float32 // Player only.
29844 ZoomFOV float32 // in degrees. Player only.
29845 UseTextureAlpha bool
29846 DmgTextureMod Texture // suffix
29849 NametagBG color.NRGBA
29850 }))(obj)).Infotext))) > math.MaxUint16 {
29854 x := uint16(len(([]byte((*(*(struct {
29855 MaxHP uint16 // Player only.
29856 CollideWithNodes bool
29857 Weight float32 // deprecated
29861 VisualSize [3]float32
29863 SpriteSheetSize [2]int16 // in sprites.
29864 SpritePos [2]int16 // in sprite sheet.
29866 MakeFootstepSnds bool
29867 RotateSpeed float32 // in radians per second.
29869 Colors []color.NRGBA
29870 CollideWithAOs bool
29873 FaceRotateDirOff float32 // in degrees.
29876 NametagColor color.NRGBA
29877 FaceRotateSpeed float32 // in degrees per second.
29881 MaxBreath uint16 // Player only.
29882 EyeHeight float32 // Player only.
29883 ZoomFOV float32 // in degrees. Player only.
29884 UseTextureAlpha bool
29885 DmgTextureMod Texture // suffix
29888 NametagBG color.NRGBA
29889 }))(obj)).Infotext))))
29890 write16(w, uint16(x))
29893 _, err := w.Write(([]byte((*(*(struct {
29894 MaxHP uint16 // Player only.
29895 CollideWithNodes bool
29896 Weight float32 // deprecated
29900 VisualSize [3]float32
29902 SpriteSheetSize [2]int16 // in sprites.
29903 SpritePos [2]int16 // in sprite sheet.
29905 MakeFootstepSnds bool
29906 RotateSpeed float32 // in radians per second.
29908 Colors []color.NRGBA
29909 CollideWithAOs bool
29912 FaceRotateDirOff float32 // in degrees.
29915 NametagColor color.NRGBA
29916 FaceRotateSpeed float32 // in degrees per second.
29920 MaxBreath uint16 // Player only.
29921 EyeHeight float32 // Player only.
29922 ZoomFOV float32 // in degrees. Player only.
29923 UseTextureAlpha bool
29924 DmgTextureMod Texture // suffix
29927 NametagBG color.NRGBA
29928 }))(obj)).Infotext))[:])
29931 if len(([]byte((*(*(struct {
29932 MaxHP uint16 // Player only.
29933 CollideWithNodes bool
29934 Weight float32 // deprecated
29938 VisualSize [3]float32
29940 SpriteSheetSize [2]int16 // in sprites.
29941 SpritePos [2]int16 // in sprite sheet.
29943 MakeFootstepSnds bool
29944 RotateSpeed float32 // in radians per second.
29946 Colors []color.NRGBA
29947 CollideWithAOs bool
29950 FaceRotateDirOff float32 // in degrees.
29953 NametagColor color.NRGBA
29954 FaceRotateSpeed float32 // in degrees per second.
29958 MaxBreath uint16 // Player only.
29959 EyeHeight float32 // Player only.
29960 ZoomFOV float32 // in degrees. Player only.
29961 UseTextureAlpha bool
29962 DmgTextureMod Texture // suffix
29965 NametagBG color.NRGBA
29966 }))(obj)).Itemstring))) > math.MaxUint16 {
29970 x := uint16(len(([]byte((*(*(struct {
29971 MaxHP uint16 // Player only.
29972 CollideWithNodes bool
29973 Weight float32 // deprecated
29977 VisualSize [3]float32
29979 SpriteSheetSize [2]int16 // in sprites.
29980 SpritePos [2]int16 // in sprite sheet.
29982 MakeFootstepSnds bool
29983 RotateSpeed float32 // in radians per second.
29985 Colors []color.NRGBA
29986 CollideWithAOs bool
29989 FaceRotateDirOff float32 // in degrees.
29992 NametagColor color.NRGBA
29993 FaceRotateSpeed float32 // in degrees per second.
29997 MaxBreath uint16 // Player only.
29998 EyeHeight float32 // Player only.
29999 ZoomFOV float32 // in degrees. Player only.
30000 UseTextureAlpha bool
30001 DmgTextureMod Texture // suffix
30004 NametagBG color.NRGBA
30005 }))(obj)).Itemstring))))
30006 write16(w, uint16(x))
30009 _, err := w.Write(([]byte((*(*(struct {
30010 MaxHP uint16 // Player only.
30011 CollideWithNodes bool
30012 Weight float32 // deprecated
30016 VisualSize [3]float32
30018 SpriteSheetSize [2]int16 // in sprites.
30019 SpritePos [2]int16 // in sprite sheet.
30021 MakeFootstepSnds bool
30022 RotateSpeed float32 // in radians per second.
30024 Colors []color.NRGBA
30025 CollideWithAOs bool
30028 FaceRotateDirOff float32 // in degrees.
30031 NametagColor color.NRGBA
30032 FaceRotateSpeed float32 // in degrees per second.
30036 MaxBreath uint16 // Player only.
30037 EyeHeight float32 // Player only.
30038 ZoomFOV float32 // in degrees. Player only.
30039 UseTextureAlpha bool
30040 DmgTextureMod Texture // suffix
30043 NametagBG color.NRGBA
30044 }))(obj)).Itemstring))[:])
30049 MaxHP uint16 // Player only.
30050 CollideWithNodes bool
30051 Weight float32 // deprecated
30055 VisualSize [3]float32
30057 SpriteSheetSize [2]int16 // in sprites.
30058 SpritePos [2]int16 // in sprite sheet.
30060 MakeFootstepSnds bool
30061 RotateSpeed float32 // in radians per second.
30063 Colors []color.NRGBA
30064 CollideWithAOs bool
30067 FaceRotateDirOff float32 // in degrees.
30070 NametagColor color.NRGBA
30071 FaceRotateSpeed float32 // in degrees per second.
30075 MaxBreath uint16 // Player only.
30076 EyeHeight float32 // Player only.
30077 ZoomFOV float32 // in degrees. Player only.
30078 UseTextureAlpha bool
30079 DmgTextureMod Texture // suffix
30082 NametagBG color.NRGBA
30084 write8(w, uint8(x))
30088 MaxHP uint16 // Player only.
30089 CollideWithNodes bool
30090 Weight float32 // deprecated
30094 VisualSize [3]float32
30096 SpriteSheetSize [2]int16 // in sprites.
30097 SpritePos [2]int16 // in sprite sheet.
30099 MakeFootstepSnds bool
30100 RotateSpeed float32 // in radians per second.
30102 Colors []color.NRGBA
30103 CollideWithAOs bool
30106 FaceRotateDirOff float32 // in degrees.
30109 NametagColor color.NRGBA
30110 FaceRotateSpeed float32 // in degrees per second.
30114 MaxBreath uint16 // Player only.
30115 EyeHeight float32 // Player only.
30116 ZoomFOV float32 // in degrees. Player only.
30117 UseTextureAlpha bool
30118 DmgTextureMod Texture // suffix
30121 NametagBG color.NRGBA
30122 }))(obj)).MaxBreath
30123 write16(w, uint16(x))
30127 MaxHP uint16 // Player only.
30128 CollideWithNodes bool
30129 Weight float32 // deprecated
30133 VisualSize [3]float32
30135 SpriteSheetSize [2]int16 // in sprites.
30136 SpritePos [2]int16 // in sprite sheet.
30138 MakeFootstepSnds bool
30139 RotateSpeed float32 // in radians per second.
30141 Colors []color.NRGBA
30142 CollideWithAOs bool
30145 FaceRotateDirOff float32 // in degrees.
30148 NametagColor color.NRGBA
30149 FaceRotateSpeed float32 // in degrees per second.
30153 MaxBreath uint16 // Player only.
30154 EyeHeight float32 // Player only.
30155 ZoomFOV float32 // in degrees. Player only.
30156 UseTextureAlpha bool
30157 DmgTextureMod Texture // suffix
30160 NametagBG color.NRGBA
30161 }))(obj)).EyeHeight
30162 write32(w, math.Float32bits(x))
30166 MaxHP uint16 // Player only.
30167 CollideWithNodes bool
30168 Weight float32 // deprecated
30172 VisualSize [3]float32
30174 SpriteSheetSize [2]int16 // in sprites.
30175 SpritePos [2]int16 // in sprite sheet.
30177 MakeFootstepSnds bool
30178 RotateSpeed float32 // in radians per second.
30180 Colors []color.NRGBA
30181 CollideWithAOs bool
30184 FaceRotateDirOff float32 // in degrees.
30187 NametagColor color.NRGBA
30188 FaceRotateSpeed float32 // in degrees per second.
30192 MaxBreath uint16 // Player only.
30193 EyeHeight float32 // Player only.
30194 ZoomFOV float32 // in degrees. Player only.
30195 UseTextureAlpha bool
30196 DmgTextureMod Texture // suffix
30199 NametagBG color.NRGBA
30201 write32(w, math.Float32bits(x))
30205 MaxHP uint16 // Player only.
30206 CollideWithNodes bool
30207 Weight float32 // deprecated
30211 VisualSize [3]float32
30213 SpriteSheetSize [2]int16 // in sprites.
30214 SpritePos [2]int16 // in sprite sheet.
30216 MakeFootstepSnds bool
30217 RotateSpeed float32 // in radians per second.
30219 Colors []color.NRGBA
30220 CollideWithAOs bool
30223 FaceRotateDirOff float32 // in degrees.
30226 NametagColor color.NRGBA
30227 FaceRotateSpeed float32 // in degrees per second.
30231 MaxBreath uint16 // Player only.
30232 EyeHeight float32 // Player only.
30233 ZoomFOV float32 // in degrees. Player only.
30234 UseTextureAlpha bool
30235 DmgTextureMod Texture // suffix
30238 NametagBG color.NRGBA
30239 }))(obj)).UseTextureAlpha
30246 if err := pcall(func() {
30248 MaxHP uint16 // Player only.
30249 CollideWithNodes bool
30250 Weight float32 // deprecated
30254 VisualSize [3]float32
30256 SpriteSheetSize [2]int16 // in sprites.
30257 SpritePos [2]int16 // in sprite sheet.
30259 MakeFootstepSnds bool
30260 RotateSpeed float32 // in radians per second.
30262 Colors []color.NRGBA
30263 CollideWithAOs bool
30266 FaceRotateDirOff float32 // in degrees.
30269 NametagColor color.NRGBA
30270 FaceRotateSpeed float32 // in degrees per second.
30274 MaxBreath uint16 // Player only.
30275 EyeHeight float32 // Player only.
30276 ZoomFOV float32 // in degrees. Player only.
30277 UseTextureAlpha bool
30278 DmgTextureMod Texture // suffix
30281 NametagBG color.NRGBA
30282 }))(obj)).DmgTextureMod).serialize(w)
30287 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30291 MaxHP uint16 // Player only.
30292 CollideWithNodes bool
30293 Weight float32 // deprecated
30297 VisualSize [3]float32
30299 SpriteSheetSize [2]int16 // in sprites.
30300 SpritePos [2]int16 // in sprite sheet.
30302 MakeFootstepSnds bool
30303 RotateSpeed float32 // in radians per second.
30305 Colors []color.NRGBA
30306 CollideWithAOs bool
30309 FaceRotateDirOff float32 // in degrees.
30312 NametagColor color.NRGBA
30313 FaceRotateSpeed float32 // in degrees per second.
30317 MaxBreath uint16 // Player only.
30318 EyeHeight float32 // Player only.
30319 ZoomFOV float32 // in degrees. Player only.
30320 UseTextureAlpha bool
30321 DmgTextureMod Texture // suffix
30324 NametagBG color.NRGBA
30334 MaxHP uint16 // Player only.
30335 CollideWithNodes bool
30336 Weight float32 // deprecated
30340 VisualSize [3]float32
30342 SpriteSheetSize [2]int16 // in sprites.
30343 SpritePos [2]int16 // in sprite sheet.
30345 MakeFootstepSnds bool
30346 RotateSpeed float32 // in radians per second.
30348 Colors []color.NRGBA
30349 CollideWithAOs bool
30352 FaceRotateDirOff float32 // in degrees.
30355 NametagColor color.NRGBA
30356 FaceRotateSpeed float32 // in degrees per second.
30360 MaxBreath uint16 // Player only.
30361 EyeHeight float32 // Player only.
30362 ZoomFOV float32 // in degrees. Player only.
30363 UseTextureAlpha bool
30364 DmgTextureMod Texture // suffix
30367 NametagBG color.NRGBA
30368 }))(obj)).ShowOnMinimap
30377 MaxHP uint16 // Player only.
30378 CollideWithNodes bool
30379 Weight float32 // deprecated
30383 VisualSize [3]float32
30385 SpriteSheetSize [2]int16 // in sprites.
30386 SpritePos [2]int16 // in sprite sheet.
30388 MakeFootstepSnds bool
30389 RotateSpeed float32 // in radians per second.
30391 Colors []color.NRGBA
30392 CollideWithAOs bool
30395 FaceRotateDirOff float32 // in degrees.
30398 NametagColor color.NRGBA
30399 FaceRotateSpeed float32 // in degrees per second.
30403 MaxBreath uint16 // Player only.
30404 EyeHeight float32 // Player only.
30405 ZoomFOV float32 // in degrees. Player only.
30406 UseTextureAlpha bool
30407 DmgTextureMod Texture // suffix
30410 NametagBG color.NRGBA
30411 }))(obj)).NametagBG
30412 w.Write([]byte{x.A, x.R, x.G, x.B})
30416 func (obj *AOProps) deserialize(r io.Reader) {
30419 local337 := uint8(4)
30424 if local336 != local337 {
30425 chk(fmt.Errorf("const %v: %v", "uint8(4)", local336))
30429 p := &(*(*(struct {
30430 MaxHP uint16 // Player only.
30431 CollideWithNodes bool
30432 Weight float32 // deprecated
30436 VisualSize [3]float32
30438 SpriteSheetSize [2]int16 // in sprites.
30439 SpritePos [2]int16 // in sprite sheet.
30441 MakeFootstepSnds bool
30442 RotateSpeed float32 // in radians per second.
30444 Colors []color.NRGBA
30445 CollideWithAOs bool
30448 FaceRotateDirOff float32 // in degrees.
30451 NametagColor color.NRGBA
30452 FaceRotateSpeed float32 // in degrees per second.
30456 MaxBreath uint16 // Player only.
30457 EyeHeight float32 // Player only.
30458 ZoomFOV float32 // in degrees. Player only.
30459 UseTextureAlpha bool
30460 DmgTextureMod Texture // suffix
30463 NametagBG color.NRGBA
30468 p := &(*(*(struct {
30469 MaxHP uint16 // Player only.
30470 CollideWithNodes bool
30471 Weight float32 // deprecated
30475 VisualSize [3]float32
30477 SpriteSheetSize [2]int16 // in sprites.
30478 SpritePos [2]int16 // in sprite sheet.
30480 MakeFootstepSnds bool
30481 RotateSpeed float32 // in radians per second.
30483 Colors []color.NRGBA
30484 CollideWithAOs bool
30487 FaceRotateDirOff float32 // in degrees.
30490 NametagColor color.NRGBA
30491 FaceRotateSpeed float32 // in degrees per second.
30495 MaxBreath uint16 // Player only.
30496 EyeHeight float32 // Player only.
30497 ZoomFOV float32 // in degrees. Player only.
30498 UseTextureAlpha bool
30499 DmgTextureMod Texture // suffix
30502 NametagBG color.NRGBA
30503 }))(obj)).CollideWithNodes
30504 switch n := read8(r); n {
30510 chk(fmt.Errorf("invalid bool: %d", n))
30514 p := &(*(*(struct {
30515 MaxHP uint16 // Player only.
30516 CollideWithNodes bool
30517 Weight float32 // deprecated
30521 VisualSize [3]float32
30523 SpriteSheetSize [2]int16 // in sprites.
30524 SpritePos [2]int16 // in sprite sheet.
30526 MakeFootstepSnds bool
30527 RotateSpeed float32 // in radians per second.
30529 Colors []color.NRGBA
30530 CollideWithAOs bool
30533 FaceRotateDirOff float32 // in degrees.
30536 NametagColor color.NRGBA
30537 FaceRotateSpeed float32 // in degrees per second.
30541 MaxBreath uint16 // Player only.
30542 EyeHeight float32 // Player only.
30543 ZoomFOV float32 // in degrees. Player only.
30544 UseTextureAlpha bool
30545 DmgTextureMod Texture // suffix
30548 NametagBG color.NRGBA
30550 *p = math.Float32frombits(read32(r))
30552 if err := pcall(func() {
30554 MaxHP uint16 // Player only.
30555 CollideWithNodes bool
30556 Weight float32 // deprecated
30560 VisualSize [3]float32
30562 SpriteSheetSize [2]int16 // in sprites.
30563 SpritePos [2]int16 // in sprite sheet.
30565 MakeFootstepSnds bool
30566 RotateSpeed float32 // in radians per second.
30568 Colors []color.NRGBA
30569 CollideWithAOs bool
30572 FaceRotateDirOff float32 // in degrees.
30575 NametagColor color.NRGBA
30576 FaceRotateSpeed float32 // in degrees per second.
30580 MaxBreath uint16 // Player only.
30581 EyeHeight float32 // Player only.
30582 ZoomFOV float32 // in degrees. Player only.
30583 UseTextureAlpha bool
30584 DmgTextureMod Texture // suffix
30587 NametagBG color.NRGBA
30588 }))(obj)).ColBox).deserialize(r)
30593 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30595 if err := pcall(func() {
30597 MaxHP uint16 // Player only.
30598 CollideWithNodes bool
30599 Weight float32 // deprecated
30603 VisualSize [3]float32
30605 SpriteSheetSize [2]int16 // in sprites.
30606 SpritePos [2]int16 // in sprite sheet.
30608 MakeFootstepSnds bool
30609 RotateSpeed float32 // in radians per second.
30611 Colors []color.NRGBA
30612 CollideWithAOs bool
30615 FaceRotateDirOff float32 // in degrees.
30618 NametagColor color.NRGBA
30619 FaceRotateSpeed float32 // in degrees per second.
30623 MaxBreath uint16 // Player only.
30624 EyeHeight float32 // Player only.
30625 ZoomFOV float32 // in degrees. Player only.
30626 UseTextureAlpha bool
30627 DmgTextureMod Texture // suffix
30630 NametagBG color.NRGBA
30631 }))(obj)).SelBox).deserialize(r)
30636 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30639 p := &(*(*(struct {
30640 MaxHP uint16 // Player only.
30641 CollideWithNodes bool
30642 Weight float32 // deprecated
30646 VisualSize [3]float32
30648 SpriteSheetSize [2]int16 // in sprites.
30649 SpritePos [2]int16 // in sprite sheet.
30651 MakeFootstepSnds bool
30652 RotateSpeed float32 // in radians per second.
30654 Colors []color.NRGBA
30655 CollideWithAOs bool
30658 FaceRotateDirOff float32 // in degrees.
30661 NametagColor color.NRGBA
30662 FaceRotateSpeed float32 // in degrees per second.
30666 MaxBreath uint16 // Player only.
30667 EyeHeight float32 // Player only.
30668 ZoomFOV float32 // in degrees. Player only.
30669 UseTextureAlpha bool
30670 DmgTextureMod Texture // suffix
30673 NametagBG color.NRGBA
30674 }))(obj)).Pointable
30675 switch n := read8(r); n {
30681 chk(fmt.Errorf("invalid bool: %d", n))
30684 var local338 []uint8
30685 var local339 uint16
30690 (local338) = make([]uint8, local339)
30692 _, err := io.ReadFull(r, (local338)[:])
30696 MaxHP uint16 // Player only.
30697 CollideWithNodes bool
30698 Weight float32 // deprecated
30702 VisualSize [3]float32
30704 SpriteSheetSize [2]int16 // in sprites.
30705 SpritePos [2]int16 // in sprite sheet.
30707 MakeFootstepSnds bool
30708 RotateSpeed float32 // in radians per second.
30710 Colors []color.NRGBA
30711 CollideWithAOs bool
30714 FaceRotateDirOff float32 // in degrees.
30717 NametagColor color.NRGBA
30718 FaceRotateSpeed float32 // in degrees per second.
30722 MaxBreath uint16 // Player only.
30723 EyeHeight float32 // Player only.
30724 ZoomFOV float32 // in degrees. Player only.
30725 UseTextureAlpha bool
30726 DmgTextureMod Texture // suffix
30729 NametagBG color.NRGBA
30730 }))(obj)).Visual) = string(local338)
30731 for local340 := range (*(*(struct {
30732 MaxHP uint16 // Player only.
30733 CollideWithNodes bool
30734 Weight float32 // deprecated
30738 VisualSize [3]float32
30740 SpriteSheetSize [2]int16 // in sprites.
30741 SpritePos [2]int16 // in sprite sheet.
30743 MakeFootstepSnds bool
30744 RotateSpeed float32 // in radians per second.
30746 Colors []color.NRGBA
30747 CollideWithAOs bool
30750 FaceRotateDirOff float32 // in degrees.
30753 NametagColor color.NRGBA
30754 FaceRotateSpeed float32 // in degrees per second.
30758 MaxBreath uint16 // Player only.
30759 EyeHeight float32 // Player only.
30760 ZoomFOV float32 // in degrees. Player only.
30761 UseTextureAlpha bool
30762 DmgTextureMod Texture // suffix
30765 NametagBG color.NRGBA
30766 }))(obj)).VisualSize {
30768 p := &((*(*(struct {
30769 MaxHP uint16 // Player only.
30770 CollideWithNodes bool
30771 Weight float32 // deprecated
30775 VisualSize [3]float32
30777 SpriteSheetSize [2]int16 // in sprites.
30778 SpritePos [2]int16 // in sprite sheet.
30780 MakeFootstepSnds bool
30781 RotateSpeed float32 // in radians per second.
30783 Colors []color.NRGBA
30784 CollideWithAOs bool
30787 FaceRotateDirOff float32 // in degrees.
30790 NametagColor color.NRGBA
30791 FaceRotateSpeed float32 // in degrees per second.
30795 MaxBreath uint16 // Player only.
30796 EyeHeight float32 // Player only.
30797 ZoomFOV float32 // in degrees. Player only.
30798 UseTextureAlpha bool
30799 DmgTextureMod Texture // suffix
30802 NametagBG color.NRGBA
30803 }))(obj)).VisualSize)[local340]
30804 *p = math.Float32frombits(read32(r))
30807 var local341 uint16
30813 MaxHP uint16 // Player only.
30814 CollideWithNodes bool
30815 Weight float32 // deprecated
30819 VisualSize [3]float32
30821 SpriteSheetSize [2]int16 // in sprites.
30822 SpritePos [2]int16 // in sprite sheet.
30824 MakeFootstepSnds bool
30825 RotateSpeed float32 // in radians per second.
30827 Colors []color.NRGBA
30828 CollideWithAOs bool
30831 FaceRotateDirOff float32 // in degrees.
30834 NametagColor color.NRGBA
30835 FaceRotateSpeed float32 // in degrees per second.
30839 MaxBreath uint16 // Player only.
30840 EyeHeight float32 // Player only.
30841 ZoomFOV float32 // in degrees. Player only.
30842 UseTextureAlpha bool
30843 DmgTextureMod Texture // suffix
30846 NametagBG color.NRGBA
30847 }))(obj)).Textures) = make([]Texture, local341)
30848 for local342 := range (*(*(struct {
30849 MaxHP uint16 // Player only.
30850 CollideWithNodes bool
30851 Weight float32 // deprecated
30855 VisualSize [3]float32
30857 SpriteSheetSize [2]int16 // in sprites.
30858 SpritePos [2]int16 // in sprite sheet.
30860 MakeFootstepSnds bool
30861 RotateSpeed float32 // in radians per second.
30863 Colors []color.NRGBA
30864 CollideWithAOs bool
30867 FaceRotateDirOff float32 // in degrees.
30870 NametagColor color.NRGBA
30871 FaceRotateSpeed float32 // in degrees per second.
30875 MaxBreath uint16 // Player only.
30876 EyeHeight float32 // Player only.
30877 ZoomFOV float32 // in degrees. Player only.
30878 UseTextureAlpha bool
30879 DmgTextureMod Texture // suffix
30882 NametagBG color.NRGBA
30883 }))(obj)).Textures {
30884 if err := pcall(func() {
30886 MaxHP uint16 // Player only.
30887 CollideWithNodes bool
30888 Weight float32 // deprecated
30892 VisualSize [3]float32
30894 SpriteSheetSize [2]int16 // in sprites.
30895 SpritePos [2]int16 // in sprite sheet.
30897 MakeFootstepSnds bool
30898 RotateSpeed float32 // in radians per second.
30900 Colors []color.NRGBA
30901 CollideWithAOs bool
30904 FaceRotateDirOff float32 // in degrees.
30907 NametagColor color.NRGBA
30908 FaceRotateSpeed float32 // in degrees per second.
30912 MaxBreath uint16 // Player only.
30913 EyeHeight float32 // Player only.
30914 ZoomFOV float32 // in degrees. Player only.
30915 UseTextureAlpha bool
30916 DmgTextureMod Texture // suffix
30919 NametagBG color.NRGBA
30920 }))(obj)).Textures)[local342]).deserialize(r)
30925 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30928 for local343 := range (*(*(struct {
30929 MaxHP uint16 // Player only.
30930 CollideWithNodes bool
30931 Weight float32 // deprecated
30935 VisualSize [3]float32
30937 SpriteSheetSize [2]int16 // in sprites.
30938 SpritePos [2]int16 // in sprite sheet.
30940 MakeFootstepSnds bool
30941 RotateSpeed float32 // in radians per second.
30943 Colors []color.NRGBA
30944 CollideWithAOs bool
30947 FaceRotateDirOff float32 // in degrees.
30950 NametagColor color.NRGBA
30951 FaceRotateSpeed float32 // in degrees per second.
30955 MaxBreath uint16 // Player only.
30956 EyeHeight float32 // Player only.
30957 ZoomFOV float32 // in degrees. Player only.
30958 UseTextureAlpha bool
30959 DmgTextureMod Texture // suffix
30962 NametagBG color.NRGBA
30963 }))(obj)).SpriteSheetSize {
30965 p := &((*(*(struct {
30966 MaxHP uint16 // Player only.
30967 CollideWithNodes bool
30968 Weight float32 // deprecated
30972 VisualSize [3]float32
30974 SpriteSheetSize [2]int16 // in sprites.
30975 SpritePos [2]int16 // in sprite sheet.
30977 MakeFootstepSnds bool
30978 RotateSpeed float32 // in radians per second.
30980 Colors []color.NRGBA
30981 CollideWithAOs bool
30984 FaceRotateDirOff float32 // in degrees.
30987 NametagColor color.NRGBA
30988 FaceRotateSpeed float32 // in degrees per second.
30992 MaxBreath uint16 // Player only.
30993 EyeHeight float32 // Player only.
30994 ZoomFOV float32 // in degrees. Player only.
30995 UseTextureAlpha bool
30996 DmgTextureMod Texture // suffix
30999 NametagBG color.NRGBA
31000 }))(obj)).SpriteSheetSize)[local343]
31001 *p = int16(read16(r))
31004 for local344 := range (*(*(struct {
31005 MaxHP uint16 // Player only.
31006 CollideWithNodes bool
31007 Weight float32 // deprecated
31011 VisualSize [3]float32
31013 SpriteSheetSize [2]int16 // in sprites.
31014 SpritePos [2]int16 // in sprite sheet.
31016 MakeFootstepSnds bool
31017 RotateSpeed float32 // in radians per second.
31019 Colors []color.NRGBA
31020 CollideWithAOs bool
31023 FaceRotateDirOff float32 // in degrees.
31026 NametagColor color.NRGBA
31027 FaceRotateSpeed float32 // in degrees per second.
31031 MaxBreath uint16 // Player only.
31032 EyeHeight float32 // Player only.
31033 ZoomFOV float32 // in degrees. Player only.
31034 UseTextureAlpha bool
31035 DmgTextureMod Texture // suffix
31038 NametagBG color.NRGBA
31039 }))(obj)).SpritePos {
31041 p := &((*(*(struct {
31042 MaxHP uint16 // Player only.
31043 CollideWithNodes bool
31044 Weight float32 // deprecated
31048 VisualSize [3]float32
31050 SpriteSheetSize [2]int16 // in sprites.
31051 SpritePos [2]int16 // in sprite sheet.
31053 MakeFootstepSnds bool
31054 RotateSpeed float32 // in radians per second.
31056 Colors []color.NRGBA
31057 CollideWithAOs bool
31060 FaceRotateDirOff float32 // in degrees.
31063 NametagColor color.NRGBA
31064 FaceRotateSpeed float32 // in degrees per second.
31068 MaxBreath uint16 // Player only.
31069 EyeHeight float32 // Player only.
31070 ZoomFOV float32 // in degrees. Player only.
31071 UseTextureAlpha bool
31072 DmgTextureMod Texture // suffix
31075 NametagBG color.NRGBA
31076 }))(obj)).SpritePos)[local344]
31077 *p = int16(read16(r))
31081 p := &(*(*(struct {
31082 MaxHP uint16 // Player only.
31083 CollideWithNodes bool
31084 Weight float32 // deprecated
31088 VisualSize [3]float32
31090 SpriteSheetSize [2]int16 // in sprites.
31091 SpritePos [2]int16 // in sprite sheet.
31093 MakeFootstepSnds bool
31094 RotateSpeed float32 // in radians per second.
31096 Colors []color.NRGBA
31097 CollideWithAOs bool
31100 FaceRotateDirOff float32 // in degrees.
31103 NametagColor color.NRGBA
31104 FaceRotateSpeed float32 // in degrees per second.
31108 MaxBreath uint16 // Player only.
31109 EyeHeight float32 // Player only.
31110 ZoomFOV float32 // in degrees. Player only.
31111 UseTextureAlpha bool
31112 DmgTextureMod Texture // suffix
31115 NametagBG color.NRGBA
31117 switch n := read8(r); n {
31123 chk(fmt.Errorf("invalid bool: %d", n))
31127 p := &(*(*(struct {
31128 MaxHP uint16 // Player only.
31129 CollideWithNodes bool
31130 Weight float32 // deprecated
31134 VisualSize [3]float32
31136 SpriteSheetSize [2]int16 // in sprites.
31137 SpritePos [2]int16 // in sprite sheet.
31139 MakeFootstepSnds bool
31140 RotateSpeed float32 // in radians per second.
31142 Colors []color.NRGBA
31143 CollideWithAOs bool
31146 FaceRotateDirOff float32 // in degrees.
31149 NametagColor color.NRGBA
31150 FaceRotateSpeed float32 // in degrees per second.
31154 MaxBreath uint16 // Player only.
31155 EyeHeight float32 // Player only.
31156 ZoomFOV float32 // in degrees. Player only.
31157 UseTextureAlpha bool
31158 DmgTextureMod Texture // suffix
31161 NametagBG color.NRGBA
31162 }))(obj)).MakeFootstepSnds
31163 switch n := read8(r); n {
31169 chk(fmt.Errorf("invalid bool: %d", n))
31173 p := &(*(*(struct {
31174 MaxHP uint16 // Player only.
31175 CollideWithNodes bool
31176 Weight float32 // deprecated
31180 VisualSize [3]float32
31182 SpriteSheetSize [2]int16 // in sprites.
31183 SpritePos [2]int16 // in sprite sheet.
31185 MakeFootstepSnds bool
31186 RotateSpeed float32 // in radians per second.
31188 Colors []color.NRGBA
31189 CollideWithAOs bool
31192 FaceRotateDirOff float32 // in degrees.
31195 NametagColor color.NRGBA
31196 FaceRotateSpeed float32 // in degrees per second.
31200 MaxBreath uint16 // Player only.
31201 EyeHeight float32 // Player only.
31202 ZoomFOV float32 // in degrees. Player only.
31203 UseTextureAlpha bool
31204 DmgTextureMod Texture // suffix
31207 NametagBG color.NRGBA
31208 }))(obj)).RotateSpeed
31209 *p = math.Float32frombits(read32(r))
31211 var local345 []uint8
31212 var local346 uint16
31217 (local345) = make([]uint8, local346)
31219 _, err := io.ReadFull(r, (local345)[:])
31223 MaxHP uint16 // Player only.
31224 CollideWithNodes bool
31225 Weight float32 // deprecated
31229 VisualSize [3]float32
31231 SpriteSheetSize [2]int16 // in sprites.
31232 SpritePos [2]int16 // in sprite sheet.
31234 MakeFootstepSnds bool
31235 RotateSpeed float32 // in radians per second.
31237 Colors []color.NRGBA
31238 CollideWithAOs bool
31241 FaceRotateDirOff float32 // in degrees.
31244 NametagColor color.NRGBA
31245 FaceRotateSpeed float32 // in degrees per second.
31249 MaxBreath uint16 // Player only.
31250 EyeHeight float32 // Player only.
31251 ZoomFOV float32 // in degrees. Player only.
31252 UseTextureAlpha bool
31253 DmgTextureMod Texture // suffix
31256 NametagBG color.NRGBA
31257 }))(obj)).Mesh) = string(local345)
31258 var local347 uint16
31264 MaxHP uint16 // Player only.
31265 CollideWithNodes bool
31266 Weight float32 // deprecated
31270 VisualSize [3]float32
31272 SpriteSheetSize [2]int16 // in sprites.
31273 SpritePos [2]int16 // in sprite sheet.
31275 MakeFootstepSnds bool
31276 RotateSpeed float32 // in radians per second.
31278 Colors []color.NRGBA
31279 CollideWithAOs bool
31282 FaceRotateDirOff float32 // in degrees.
31285 NametagColor color.NRGBA
31286 FaceRotateSpeed float32 // in degrees per second.
31290 MaxBreath uint16 // Player only.
31291 EyeHeight float32 // Player only.
31292 ZoomFOV float32 // in degrees. Player only.
31293 UseTextureAlpha bool
31294 DmgTextureMod Texture // suffix
31297 NametagBG color.NRGBA
31298 }))(obj)).Colors) = make([]color.NRGBA, local347)
31299 for local348 := range (*(*(struct {
31300 MaxHP uint16 // Player only.
31301 CollideWithNodes bool
31302 Weight float32 // deprecated
31306 VisualSize [3]float32
31308 SpriteSheetSize [2]int16 // in sprites.
31309 SpritePos [2]int16 // in sprite sheet.
31311 MakeFootstepSnds bool
31312 RotateSpeed float32 // in radians per second.
31314 Colors []color.NRGBA
31315 CollideWithAOs bool
31318 FaceRotateDirOff float32 // in degrees.
31321 NametagColor color.NRGBA
31322 FaceRotateSpeed float32 // in degrees per second.
31326 MaxBreath uint16 // Player only.
31327 EyeHeight float32 // Player only.
31328 ZoomFOV float32 // in degrees. Player only.
31329 UseTextureAlpha bool
31330 DmgTextureMod Texture // suffix
31333 NametagBG color.NRGBA
31336 p := &((*(*(struct {
31337 MaxHP uint16 // Player only.
31338 CollideWithNodes bool
31339 Weight float32 // deprecated
31343 VisualSize [3]float32
31345 SpriteSheetSize [2]int16 // in sprites.
31346 SpritePos [2]int16 // in sprite sheet.
31348 MakeFootstepSnds bool
31349 RotateSpeed float32 // in radians per second.
31351 Colors []color.NRGBA
31352 CollideWithAOs bool
31355 FaceRotateDirOff float32 // in degrees.
31358 NametagColor color.NRGBA
31359 FaceRotateSpeed float32 // in degrees per second.
31363 MaxBreath uint16 // Player only.
31364 EyeHeight float32 // Player only.
31365 ZoomFOV float32 // in degrees. Player only.
31366 UseTextureAlpha bool
31367 DmgTextureMod Texture // suffix
31370 NametagBG color.NRGBA
31371 }))(obj)).Colors)[local348]
31372 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31376 p := &(*(*(struct {
31377 MaxHP uint16 // Player only.
31378 CollideWithNodes bool
31379 Weight float32 // deprecated
31383 VisualSize [3]float32
31385 SpriteSheetSize [2]int16 // in sprites.
31386 SpritePos [2]int16 // in sprite sheet.
31388 MakeFootstepSnds bool
31389 RotateSpeed float32 // in radians per second.
31391 Colors []color.NRGBA
31392 CollideWithAOs bool
31395 FaceRotateDirOff float32 // in degrees.
31398 NametagColor color.NRGBA
31399 FaceRotateSpeed float32 // in degrees per second.
31403 MaxBreath uint16 // Player only.
31404 EyeHeight float32 // Player only.
31405 ZoomFOV float32 // in degrees. Player only.
31406 UseTextureAlpha bool
31407 DmgTextureMod Texture // suffix
31410 NametagBG color.NRGBA
31411 }))(obj)).CollideWithAOs
31412 switch n := read8(r); n {
31418 chk(fmt.Errorf("invalid bool: %d", n))
31422 p := &(*(*(struct {
31423 MaxHP uint16 // Player only.
31424 CollideWithNodes bool
31425 Weight float32 // deprecated
31429 VisualSize [3]float32
31431 SpriteSheetSize [2]int16 // in sprites.
31432 SpritePos [2]int16 // in sprite sheet.
31434 MakeFootstepSnds bool
31435 RotateSpeed float32 // in radians per second.
31437 Colors []color.NRGBA
31438 CollideWithAOs bool
31441 FaceRotateDirOff float32 // in degrees.
31444 NametagColor color.NRGBA
31445 FaceRotateSpeed float32 // in degrees per second.
31449 MaxBreath uint16 // Player only.
31450 EyeHeight float32 // Player only.
31451 ZoomFOV float32 // in degrees. Player only.
31452 UseTextureAlpha bool
31453 DmgTextureMod Texture // suffix
31456 NametagBG color.NRGBA
31457 }))(obj)).StepHeight
31458 *p = math.Float32frombits(read32(r))
31461 p := &(*(*(struct {
31462 MaxHP uint16 // Player only.
31463 CollideWithNodes bool
31464 Weight float32 // deprecated
31468 VisualSize [3]float32
31470 SpriteSheetSize [2]int16 // in sprites.
31471 SpritePos [2]int16 // in sprite sheet.
31473 MakeFootstepSnds bool
31474 RotateSpeed float32 // in radians per second.
31476 Colors []color.NRGBA
31477 CollideWithAOs bool
31480 FaceRotateDirOff float32 // in degrees.
31483 NametagColor color.NRGBA
31484 FaceRotateSpeed float32 // in degrees per second.
31488 MaxBreath uint16 // Player only.
31489 EyeHeight float32 // Player only.
31490 ZoomFOV float32 // in degrees. Player only.
31491 UseTextureAlpha bool
31492 DmgTextureMod Texture // suffix
31495 NametagBG color.NRGBA
31496 }))(obj)).FaceRotateDir
31497 switch n := read8(r); n {
31503 chk(fmt.Errorf("invalid bool: %d", n))
31507 p := &(*(*(struct {
31508 MaxHP uint16 // Player only.
31509 CollideWithNodes bool
31510 Weight float32 // deprecated
31514 VisualSize [3]float32
31516 SpriteSheetSize [2]int16 // in sprites.
31517 SpritePos [2]int16 // in sprite sheet.
31519 MakeFootstepSnds bool
31520 RotateSpeed float32 // in radians per second.
31522 Colors []color.NRGBA
31523 CollideWithAOs bool
31526 FaceRotateDirOff float32 // in degrees.
31529 NametagColor color.NRGBA
31530 FaceRotateSpeed float32 // in degrees per second.
31534 MaxBreath uint16 // Player only.
31535 EyeHeight float32 // Player only.
31536 ZoomFOV float32 // in degrees. Player only.
31537 UseTextureAlpha bool
31538 DmgTextureMod Texture // suffix
31541 NametagBG color.NRGBA
31542 }))(obj)).FaceRotateDirOff
31543 *p = math.Float32frombits(read32(r))
31546 p := &(*(*(struct {
31547 MaxHP uint16 // Player only.
31548 CollideWithNodes bool
31549 Weight float32 // deprecated
31553 VisualSize [3]float32
31555 SpriteSheetSize [2]int16 // in sprites.
31556 SpritePos [2]int16 // in sprite sheet.
31558 MakeFootstepSnds bool
31559 RotateSpeed float32 // in radians per second.
31561 Colors []color.NRGBA
31562 CollideWithAOs bool
31565 FaceRotateDirOff float32 // in degrees.
31568 NametagColor color.NRGBA
31569 FaceRotateSpeed float32 // in degrees per second.
31573 MaxBreath uint16 // Player only.
31574 EyeHeight float32 // Player only.
31575 ZoomFOV float32 // in degrees. Player only.
31576 UseTextureAlpha bool
31577 DmgTextureMod Texture // suffix
31580 NametagBG color.NRGBA
31581 }))(obj)).BackfaceCull
31582 switch n := read8(r); n {
31588 chk(fmt.Errorf("invalid bool: %d", n))
31591 var local349 []uint8
31592 var local350 uint16
31597 (local349) = make([]uint8, local350)
31599 _, err := io.ReadFull(r, (local349)[:])
31603 MaxHP uint16 // Player only.
31604 CollideWithNodes bool
31605 Weight float32 // deprecated
31609 VisualSize [3]float32
31611 SpriteSheetSize [2]int16 // in sprites.
31612 SpritePos [2]int16 // in sprite sheet.
31614 MakeFootstepSnds bool
31615 RotateSpeed float32 // in radians per second.
31617 Colors []color.NRGBA
31618 CollideWithAOs bool
31621 FaceRotateDirOff float32 // in degrees.
31624 NametagColor color.NRGBA
31625 FaceRotateSpeed float32 // in degrees per second.
31629 MaxBreath uint16 // Player only.
31630 EyeHeight float32 // Player only.
31631 ZoomFOV float32 // in degrees. Player only.
31632 UseTextureAlpha bool
31633 DmgTextureMod Texture // suffix
31636 NametagBG color.NRGBA
31637 }))(obj)).Nametag) = string(local349)
31639 p := &(*(*(struct {
31640 MaxHP uint16 // Player only.
31641 CollideWithNodes bool
31642 Weight float32 // deprecated
31646 VisualSize [3]float32
31648 SpriteSheetSize [2]int16 // in sprites.
31649 SpritePos [2]int16 // in sprite sheet.
31651 MakeFootstepSnds bool
31652 RotateSpeed float32 // in radians per second.
31654 Colors []color.NRGBA
31655 CollideWithAOs bool
31658 FaceRotateDirOff float32 // in degrees.
31661 NametagColor color.NRGBA
31662 FaceRotateSpeed float32 // in degrees per second.
31666 MaxBreath uint16 // Player only.
31667 EyeHeight float32 // Player only.
31668 ZoomFOV float32 // in degrees. Player only.
31669 UseTextureAlpha bool
31670 DmgTextureMod Texture // suffix
31673 NametagBG color.NRGBA
31674 }))(obj)).NametagColor
31675 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31678 p := &(*(*(struct {
31679 MaxHP uint16 // Player only.
31680 CollideWithNodes bool
31681 Weight float32 // deprecated
31685 VisualSize [3]float32
31687 SpriteSheetSize [2]int16 // in sprites.
31688 SpritePos [2]int16 // in sprite sheet.
31690 MakeFootstepSnds bool
31691 RotateSpeed float32 // in radians per second.
31693 Colors []color.NRGBA
31694 CollideWithAOs bool
31697 FaceRotateDirOff float32 // in degrees.
31700 NametagColor color.NRGBA
31701 FaceRotateSpeed float32 // in degrees per second.
31705 MaxBreath uint16 // Player only.
31706 EyeHeight float32 // Player only.
31707 ZoomFOV float32 // in degrees. Player only.
31708 UseTextureAlpha bool
31709 DmgTextureMod Texture // suffix
31712 NametagBG color.NRGBA
31713 }))(obj)).FaceRotateSpeed
31714 *p = math.Float32frombits(read32(r))
31716 var local351 []uint8
31717 var local352 uint16
31722 (local351) = make([]uint8, local352)
31724 _, err := io.ReadFull(r, (local351)[:])
31728 MaxHP uint16 // Player only.
31729 CollideWithNodes bool
31730 Weight float32 // deprecated
31734 VisualSize [3]float32
31736 SpriteSheetSize [2]int16 // in sprites.
31737 SpritePos [2]int16 // in sprite sheet.
31739 MakeFootstepSnds bool
31740 RotateSpeed float32 // in radians per second.
31742 Colors []color.NRGBA
31743 CollideWithAOs bool
31746 FaceRotateDirOff float32 // in degrees.
31749 NametagColor color.NRGBA
31750 FaceRotateSpeed float32 // in degrees per second.
31754 MaxBreath uint16 // Player only.
31755 EyeHeight float32 // Player only.
31756 ZoomFOV float32 // in degrees. Player only.
31757 UseTextureAlpha bool
31758 DmgTextureMod Texture // suffix
31761 NametagBG color.NRGBA
31762 }))(obj)).Infotext) = string(local351)
31763 var local353 []uint8
31764 var local354 uint16
31769 (local353) = make([]uint8, local354)
31771 _, err := io.ReadFull(r, (local353)[:])
31775 MaxHP uint16 // Player only.
31776 CollideWithNodes bool
31777 Weight float32 // deprecated
31781 VisualSize [3]float32
31783 SpriteSheetSize [2]int16 // in sprites.
31784 SpritePos [2]int16 // in sprite sheet.
31786 MakeFootstepSnds bool
31787 RotateSpeed float32 // in radians per second.
31789 Colors []color.NRGBA
31790 CollideWithAOs bool
31793 FaceRotateDirOff float32 // in degrees.
31796 NametagColor color.NRGBA
31797 FaceRotateSpeed float32 // in degrees per second.
31801 MaxBreath uint16 // Player only.
31802 EyeHeight float32 // Player only.
31803 ZoomFOV float32 // in degrees. Player only.
31804 UseTextureAlpha bool
31805 DmgTextureMod Texture // suffix
31808 NametagBG color.NRGBA
31809 }))(obj)).Itemstring) = string(local353)
31811 p := &(*(*(struct {
31812 MaxHP uint16 // Player only.
31813 CollideWithNodes bool
31814 Weight float32 // deprecated
31818 VisualSize [3]float32
31820 SpriteSheetSize [2]int16 // in sprites.
31821 SpritePos [2]int16 // in sprite sheet.
31823 MakeFootstepSnds bool
31824 RotateSpeed float32 // in radians per second.
31826 Colors []color.NRGBA
31827 CollideWithAOs bool
31830 FaceRotateDirOff float32 // in degrees.
31833 NametagColor color.NRGBA
31834 FaceRotateSpeed float32 // in degrees per second.
31838 MaxBreath uint16 // Player only.
31839 EyeHeight float32 // Player only.
31840 ZoomFOV float32 // in degrees. Player only.
31841 UseTextureAlpha bool
31842 DmgTextureMod Texture // suffix
31845 NametagBG color.NRGBA
31847 *p = int8(read8(r))
31850 p := &(*(*(struct {
31851 MaxHP uint16 // Player only.
31852 CollideWithNodes bool
31853 Weight float32 // deprecated
31857 VisualSize [3]float32
31859 SpriteSheetSize [2]int16 // in sprites.
31860 SpritePos [2]int16 // in sprite sheet.
31862 MakeFootstepSnds bool
31863 RotateSpeed float32 // in radians per second.
31865 Colors []color.NRGBA
31866 CollideWithAOs bool
31869 FaceRotateDirOff float32 // in degrees.
31872 NametagColor color.NRGBA
31873 FaceRotateSpeed float32 // in degrees per second.
31877 MaxBreath uint16 // Player only.
31878 EyeHeight float32 // Player only.
31879 ZoomFOV float32 // in degrees. Player only.
31880 UseTextureAlpha bool
31881 DmgTextureMod Texture // suffix
31884 NametagBG color.NRGBA
31885 }))(obj)).MaxBreath
31889 p := &(*(*(struct {
31890 MaxHP uint16 // Player only.
31891 CollideWithNodes bool
31892 Weight float32 // deprecated
31896 VisualSize [3]float32
31898 SpriteSheetSize [2]int16 // in sprites.
31899 SpritePos [2]int16 // in sprite sheet.
31901 MakeFootstepSnds bool
31902 RotateSpeed float32 // in radians per second.
31904 Colors []color.NRGBA
31905 CollideWithAOs bool
31908 FaceRotateDirOff float32 // in degrees.
31911 NametagColor color.NRGBA
31912 FaceRotateSpeed float32 // in degrees per second.
31916 MaxBreath uint16 // Player only.
31917 EyeHeight float32 // Player only.
31918 ZoomFOV float32 // in degrees. Player only.
31919 UseTextureAlpha bool
31920 DmgTextureMod Texture // suffix
31923 NametagBG color.NRGBA
31924 }))(obj)).EyeHeight
31925 *p = math.Float32frombits(read32(r))
31928 p := &(*(*(struct {
31929 MaxHP uint16 // Player only.
31930 CollideWithNodes bool
31931 Weight float32 // deprecated
31935 VisualSize [3]float32
31937 SpriteSheetSize [2]int16 // in sprites.
31938 SpritePos [2]int16 // in sprite sheet.
31940 MakeFootstepSnds bool
31941 RotateSpeed float32 // in radians per second.
31943 Colors []color.NRGBA
31944 CollideWithAOs bool
31947 FaceRotateDirOff float32 // in degrees.
31950 NametagColor color.NRGBA
31951 FaceRotateSpeed float32 // in degrees per second.
31955 MaxBreath uint16 // Player only.
31956 EyeHeight float32 // Player only.
31957 ZoomFOV float32 // in degrees. Player only.
31958 UseTextureAlpha bool
31959 DmgTextureMod Texture // suffix
31962 NametagBG color.NRGBA
31964 *p = math.Float32frombits(read32(r))
31967 p := &(*(*(struct {
31968 MaxHP uint16 // Player only.
31969 CollideWithNodes bool
31970 Weight float32 // deprecated
31974 VisualSize [3]float32
31976 SpriteSheetSize [2]int16 // in sprites.
31977 SpritePos [2]int16 // in sprite sheet.
31979 MakeFootstepSnds bool
31980 RotateSpeed float32 // in radians per second.
31982 Colors []color.NRGBA
31983 CollideWithAOs bool
31986 FaceRotateDirOff float32 // in degrees.
31989 NametagColor color.NRGBA
31990 FaceRotateSpeed float32 // in degrees per second.
31994 MaxBreath uint16 // Player only.
31995 EyeHeight float32 // Player only.
31996 ZoomFOV float32 // in degrees. Player only.
31997 UseTextureAlpha bool
31998 DmgTextureMod Texture // suffix
32001 NametagBG color.NRGBA
32002 }))(obj)).UseTextureAlpha
32003 switch n := read8(r); n {
32009 chk(fmt.Errorf("invalid bool: %d", n))
32012 if err := pcall(func() {
32014 MaxHP uint16 // Player only.
32015 CollideWithNodes bool
32016 Weight float32 // deprecated
32020 VisualSize [3]float32
32022 SpriteSheetSize [2]int16 // in sprites.
32023 SpritePos [2]int16 // in sprite sheet.
32025 MakeFootstepSnds bool
32026 RotateSpeed float32 // in radians per second.
32028 Colors []color.NRGBA
32029 CollideWithAOs bool
32032 FaceRotateDirOff float32 // in degrees.
32035 NametagColor color.NRGBA
32036 FaceRotateSpeed float32 // in degrees per second.
32040 MaxBreath uint16 // Player only.
32041 EyeHeight float32 // Player only.
32042 ZoomFOV float32 // in degrees. Player only.
32043 UseTextureAlpha bool
32044 DmgTextureMod Texture // suffix
32047 NametagBG color.NRGBA
32048 }))(obj)).DmgTextureMod).deserialize(r)
32053 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32056 p := &(*(*(struct {
32057 MaxHP uint16 // Player only.
32058 CollideWithNodes bool
32059 Weight float32 // deprecated
32063 VisualSize [3]float32
32065 SpriteSheetSize [2]int16 // in sprites.
32066 SpritePos [2]int16 // in sprite sheet.
32068 MakeFootstepSnds bool
32069 RotateSpeed float32 // in radians per second.
32071 Colors []color.NRGBA
32072 CollideWithAOs bool
32075 FaceRotateDirOff float32 // in degrees.
32078 NametagColor color.NRGBA
32079 FaceRotateSpeed float32 // in degrees per second.
32083 MaxBreath uint16 // Player only.
32084 EyeHeight float32 // Player only.
32085 ZoomFOV float32 // in degrees. Player only.
32086 UseTextureAlpha bool
32087 DmgTextureMod Texture // suffix
32090 NametagBG color.NRGBA
32092 switch n := read8(r); n {
32098 chk(fmt.Errorf("invalid bool: %d", n))
32102 p := &(*(*(struct {
32103 MaxHP uint16 // Player only.
32104 CollideWithNodes bool
32105 Weight float32 // deprecated
32109 VisualSize [3]float32
32111 SpriteSheetSize [2]int16 // in sprites.
32112 SpritePos [2]int16 // in sprite sheet.
32114 MakeFootstepSnds bool
32115 RotateSpeed float32 // in radians per second.
32117 Colors []color.NRGBA
32118 CollideWithAOs bool
32121 FaceRotateDirOff float32 // in degrees.
32124 NametagColor color.NRGBA
32125 FaceRotateSpeed float32 // in degrees per second.
32129 MaxBreath uint16 // Player only.
32130 EyeHeight float32 // Player only.
32131 ZoomFOV float32 // in degrees. Player only.
32132 UseTextureAlpha bool
32133 DmgTextureMod Texture // suffix
32136 NametagBG color.NRGBA
32137 }))(obj)).ShowOnMinimap
32138 switch n := read8(r); n {
32144 chk(fmt.Errorf("invalid bool: %d", n))
32148 p := &(*(*(struct {
32149 MaxHP uint16 // Player only.
32150 CollideWithNodes bool
32151 Weight float32 // deprecated
32155 VisualSize [3]float32
32157 SpriteSheetSize [2]int16 // in sprites.
32158 SpritePos [2]int16 // in sprite sheet.
32160 MakeFootstepSnds bool
32161 RotateSpeed float32 // in radians per second.
32163 Colors []color.NRGBA
32164 CollideWithAOs bool
32167 FaceRotateDirOff float32 // in degrees.
32170 NametagColor color.NRGBA
32171 FaceRotateSpeed float32 // in degrees per second.
32175 MaxBreath uint16 // Player only.
32176 EyeHeight float32 // Player only.
32177 ZoomFOV float32 // in degrees. Player only.
32178 UseTextureAlpha bool
32179 DmgTextureMod Texture // suffix
32182 NametagBG color.NRGBA
32183 }))(obj)).NametagBG
32184 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
32188 func (obj *AOPos) serialize(w io.Writer) {
32189 if err := pcall(func() {
32197 UpdateInterval float32
32198 }))(obj)).Pos).serialize(w)
32203 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32205 if err := pcall(func() {
32213 UpdateInterval float32
32214 }))(obj)).Vel).serialize(w)
32219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32221 if err := pcall(func() {
32229 UpdateInterval float32
32230 }))(obj)).Acc).serialize(w)
32235 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32237 for local355 := range (*(*(struct {
32244 UpdateInterval float32
32247 x := ((*(*(struct {
32254 UpdateInterval float32
32255 }))(obj)).Rot)[local355]
32256 write32(w, math.Float32bits(x))
32267 UpdateInterval float32
32268 }))(obj)).Interpolate
32283 UpdateInterval float32
32299 UpdateInterval float32
32300 }))(obj)).UpdateInterval
32301 write32(w, math.Float32bits(x))
32305 func (obj *AOPos) deserialize(r io.Reader) {
32306 if err := pcall(func() {
32314 UpdateInterval float32
32315 }))(obj)).Pos).deserialize(r)
32320 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32322 if err := pcall(func() {
32330 UpdateInterval float32
32331 }))(obj)).Vel).deserialize(r)
32336 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32338 if err := pcall(func() {
32346 UpdateInterval float32
32347 }))(obj)).Acc).deserialize(r)
32352 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32354 for local356 := range (*(*(struct {
32361 UpdateInterval float32
32364 p := &((*(*(struct {
32371 UpdateInterval float32
32372 }))(obj)).Rot)[local356]
32373 *p = math.Float32frombits(read32(r))
32377 p := &(*(*(struct {
32384 UpdateInterval float32
32385 }))(obj)).Interpolate
32386 switch n := read8(r); n {
32392 chk(fmt.Errorf("invalid bool: %d", n))
32396 p := &(*(*(struct {
32403 UpdateInterval float32
32405 switch n := read8(r); n {
32411 chk(fmt.Errorf("invalid bool: %d", n))
32415 p := &(*(*(struct {
32422 UpdateInterval float32
32423 }))(obj)).UpdateInterval
32424 *p = math.Float32frombits(read32(r))
32428 func (obj *AOSprite) serialize(w io.Writer) {
32429 for local357 := range (*(*(struct {
32432 FrameDuration float32
32433 ViewAngleFrames bool
32436 x := ((*(*(struct {
32439 FrameDuration float32
32440 ViewAngleFrames bool
32441 }))(obj)).Frame0)[local357]
32442 write16(w, uint16(x))
32449 FrameDuration float32
32450 ViewAngleFrames bool
32452 write16(w, uint16(x))
32458 FrameDuration float32
32459 ViewAngleFrames bool
32460 }))(obj)).FrameDuration
32461 write32(w, math.Float32bits(x))
32467 FrameDuration float32
32468 ViewAngleFrames bool
32469 }))(obj)).ViewAngleFrames
32478 func (obj *AOSprite) deserialize(r io.Reader) {
32479 for local358 := range (*(*(struct {
32482 FrameDuration float32
32483 ViewAngleFrames bool
32486 p := &((*(*(struct {
32489 FrameDuration float32
32490 ViewAngleFrames bool
32491 }))(obj)).Frame0)[local358]
32492 *p = int16(read16(r))
32496 p := &(*(*(struct {
32499 FrameDuration float32
32500 ViewAngleFrames bool
32505 p := &(*(*(struct {
32508 FrameDuration float32
32509 ViewAngleFrames bool
32510 }))(obj)).FrameDuration
32511 *p = math.Float32frombits(read32(r))
32514 p := &(*(*(struct {
32517 FrameDuration float32
32518 ViewAngleFrames bool
32519 }))(obj)).ViewAngleFrames
32520 switch n := read8(r); n {
32526 chk(fmt.Errorf("invalid bool: %d", n))
32531 func (obj *Group) serialize(w io.Writer) {
32532 if len(([]byte((*(*(struct {
32535 }))(obj)).Name))) > math.MaxUint16 {
32539 x := uint16(len(([]byte((*(*(struct {
32543 write16(w, uint16(x))
32546 _, err := w.Write(([]byte((*(*(struct {
32549 }))(obj)).Name))[:])
32557 write16(w, uint16(x))
32561 func (obj *Group) deserialize(r io.Reader) {
32562 var local359 []uint8
32563 var local360 uint16
32568 (local359) = make([]uint8, local360)
32570 _, err := io.ReadFull(r, (local359)[:])
32576 }))(obj)).Name) = string(local359)
32578 p := &(*(*(struct {
32582 *p = int16(read16(r))
32586 func (obj *AOAnim) serialize(w io.Writer) {
32587 for local361 := range (*(*(struct {
32594 x := ((*(*(struct {
32599 }))(obj)).Frames)[local361]
32600 write32(w, uint32(x))
32610 write32(w, math.Float32bits(x))
32619 write32(w, math.Float32bits(x))
32636 func (obj *AOAnim) deserialize(r io.Reader) {
32637 for local362 := range (*(*(struct {
32644 p := &((*(*(struct {
32649 }))(obj)).Frames)[local362]
32650 *p = int32(read32(r))
32654 p := &(*(*(struct {
32660 *p = math.Float32frombits(read32(r))
32663 p := &(*(*(struct {
32669 *p = math.Float32frombits(read32(r))
32672 p := &(*(*(struct {
32678 switch n := read8(r); n {
32684 chk(fmt.Errorf("invalid bool: %d", n))
32689 func (obj *AOBonePos) serialize(w io.Writer) {
32690 if err := pcall(func() {
32694 }))(obj)).Pos).serialize(w)
32699 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32701 for local363 := range (*(*(struct {
32706 x := ((*(*(struct {
32709 }))(obj)).Rot)[local363]
32710 write32(w, math.Float32bits(x))
32715 func (obj *AOBonePos) deserialize(r io.Reader) {
32716 if err := pcall(func() {
32720 }))(obj)).Pos).deserialize(r)
32725 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32727 for local364 := range (*(*(struct {
32732 p := &((*(*(struct {
32735 }))(obj)).Rot)[local364]
32736 *p = math.Float32frombits(read32(r))
32741 func (obj *AOAttach) serialize(w io.Writer) {
32742 if err := pcall(func() {
32749 }))(obj)).ParentID).serialize(w)
32754 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32756 if len(([]byte((*(*(struct {
32762 }))(obj)).Bone))) > math.MaxUint16 {
32766 x := uint16(len(([]byte((*(*(struct {
32773 write16(w, uint16(x))
32776 _, err := w.Write(([]byte((*(*(struct {
32782 }))(obj)).Bone))[:])
32785 if err := pcall(func() {
32792 }))(obj)).Pos).serialize(w)
32797 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32799 for local365 := range (*(*(struct {
32807 x := ((*(*(struct {
32813 }))(obj)).Rot)[local365]
32814 write32(w, math.Float32bits(x))
32824 }))(obj)).ForceVisible
32833 func (obj *AOAttach) deserialize(r io.Reader) {
32834 if err := pcall(func() {
32841 }))(obj)).ParentID).deserialize(r)
32846 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32848 var local366 []uint8
32849 var local367 uint16
32854 (local366) = make([]uint8, local367)
32856 _, err := io.ReadFull(r, (local366)[:])
32865 }))(obj)).Bone) = string(local366)
32866 if err := pcall(func() {
32873 }))(obj)).Pos).deserialize(r)
32878 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32880 for local368 := range (*(*(struct {
32888 p := &((*(*(struct {
32894 }))(obj)).Rot)[local368]
32895 *p = math.Float32frombits(read32(r))
32899 p := &(*(*(struct {
32905 }))(obj)).ForceVisible
32906 switch n := read8(r); n {
32912 chk(fmt.Errorf("invalid bool: %d", n))
32917 func (obj *AOPhysOverride) serialize(w io.Writer) {
32920 Walk, Jump, Gravity float32
32923 NoSneak, NoSneakGlitch, OldSneak bool
32925 write32(w, math.Float32bits(x))
32929 Walk, Jump, Gravity float32
32932 NoSneak, NoSneakGlitch, OldSneak bool
32934 write32(w, math.Float32bits(x))
32938 Walk, Jump, Gravity float32
32941 NoSneak, NoSneakGlitch, OldSneak bool
32943 write32(w, math.Float32bits(x))
32947 Walk, Jump, Gravity float32
32950 NoSneak, NoSneakGlitch, OldSneak bool
32960 Walk, Jump, Gravity float32
32963 NoSneak, NoSneakGlitch, OldSneak bool
32964 }))(obj)).NoSneakGlitch
32973 Walk, Jump, Gravity float32
32976 NoSneak, NoSneakGlitch, OldSneak bool
32986 func (obj *AOPhysOverride) deserialize(r io.Reader) {
32988 p := &(*(*(struct {
32989 Walk, Jump, Gravity float32
32992 NoSneak, NoSneakGlitch, OldSneak bool
32994 *p = math.Float32frombits(read32(r))
32997 p := &(*(*(struct {
32998 Walk, Jump, Gravity float32
33001 NoSneak, NoSneakGlitch, OldSneak bool
33003 *p = math.Float32frombits(read32(r))
33006 p := &(*(*(struct {
33007 Walk, Jump, Gravity float32
33010 NoSneak, NoSneakGlitch, OldSneak bool
33012 *p = math.Float32frombits(read32(r))
33015 p := &(*(*(struct {
33016 Walk, Jump, Gravity float32
33019 NoSneak, NoSneakGlitch, OldSneak bool
33021 switch n := read8(r); n {
33027 chk(fmt.Errorf("invalid bool: %d", n))
33031 p := &(*(*(struct {
33032 Walk, Jump, Gravity float32
33035 NoSneak, NoSneakGlitch, OldSneak bool
33036 }))(obj)).NoSneakGlitch
33037 switch n := read8(r); n {
33043 chk(fmt.Errorf("invalid bool: %d", n))
33047 p := &(*(*(struct {
33048 Walk, Jump, Gravity float32
33051 NoSneak, NoSneakGlitch, OldSneak bool
33053 switch n := read8(r); n {
33059 chk(fmt.Errorf("invalid bool: %d", n))
33064 func (obj *aoType) serialize(w io.Writer) {
33066 x := *(*(uint8))(obj)
33067 write8(w, uint8(x))
33071 func (obj *aoType) deserialize(r io.Reader) {
33073 p := &*(*(uint8))(obj)
33078 func (obj *NodeMetaField) serialize(w io.Writer) {
33079 if err := pcall(func() {
33083 }))(obj)).Field).serialize(w)
33088 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33103 func (obj *NodeMetaField) deserialize(r io.Reader) {
33104 if err := pcall(func() {
33108 }))(obj)).Field).deserialize(r)
33113 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33116 p := &(*(*(struct {
33120 switch n := read8(r); n {
33126 chk(fmt.Errorf("invalid bool: %d", n))
33131 func (obj *MinimapType) serialize(w io.Writer) {
33133 x := *(*(uint16))(obj)
33134 write16(w, uint16(x))
33138 func (obj *MinimapType) deserialize(r io.Reader) {
33140 p := &*(*(uint16))(obj)
33145 func (obj *Param1Type) serialize(w io.Writer) {
33147 x := *(*(uint8))(obj)
33148 write8(w, uint8(x))
33152 func (obj *Param1Type) deserialize(r io.Reader) {
33154 p := &*(*(uint8))(obj)
33159 func (obj *Param2Type) serialize(w io.Writer) {
33161 x := *(*(uint8))(obj)
33162 write8(w, uint8(x))
33166 func (obj *Param2Type) deserialize(r io.Reader) {
33168 p := &*(*(uint8))(obj)
33173 func (obj *DrawType) serialize(w io.Writer) {
33175 x := *(*(uint8))(obj)
33176 write8(w, uint8(x))
33180 func (obj *DrawType) deserialize(r io.Reader) {
33182 p := &*(*(uint8))(obj)
33187 func (obj *TileDef) serialize(w io.Writer) {
33189 local369 := uint8(6)
33192 write8(w, uint8(x))
33195 if err := pcall(func() {
33201 //mt:if %s.Flags&TileColor != 0
33204 //mt:if %s.Flags&TileScale != 0
33207 //mt:if %s.Flags&TileAlign != 0
33209 }))(obj)).Texture).serialize(w)
33214 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33216 if err := pcall(func() {
33222 //mt:if %s.Flags&TileColor != 0
33225 //mt:if %s.Flags&TileScale != 0
33228 //mt:if %s.Flags&TileAlign != 0
33230 }))(obj)).Anim).serialize(w)
33235 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33237 if err := pcall(func() {
33243 //mt:if %s.Flags&TileColor != 0
33246 //mt:if %s.Flags&TileScale != 0
33249 //mt:if %s.Flags&TileAlign != 0
33251 }))(obj)).Flags).serialize(w)
33256 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33263 //mt:if %s.Flags&TileColor != 0
33266 //mt:if %s.Flags&TileScale != 0
33269 //mt:if %s.Flags&TileAlign != 0
33271 }))(obj)).Flags&TileColor != 0 {
33278 //mt:if %s.Flags&TileColor != 0
33281 //mt:if %s.Flags&TileScale != 0
33284 //mt:if %s.Flags&TileAlign != 0
33287 write8(w, uint8(x))
33295 //mt:if %s.Flags&TileColor != 0
33298 //mt:if %s.Flags&TileScale != 0
33301 //mt:if %s.Flags&TileAlign != 0
33304 write8(w, uint8(x))
33312 //mt:if %s.Flags&TileColor != 0
33315 //mt:if %s.Flags&TileScale != 0
33318 //mt:if %s.Flags&TileAlign != 0
33321 write8(w, uint8(x))
33329 //mt:if %s.Flags&TileColor != 0
33332 //mt:if %s.Flags&TileScale != 0
33335 //mt:if %s.Flags&TileAlign != 0
33337 }))(obj)).Flags&TileScale != 0 {
33344 //mt:if %s.Flags&TileColor != 0
33347 //mt:if %s.Flags&TileScale != 0
33350 //mt:if %s.Flags&TileAlign != 0
33353 write8(w, uint8(x))
33361 //mt:if %s.Flags&TileColor != 0
33364 //mt:if %s.Flags&TileScale != 0
33367 //mt:if %s.Flags&TileAlign != 0
33369 }))(obj)).Flags&TileAlign != 0 {
33370 if err := pcall(func() {
33376 //mt:if %s.Flags&TileColor != 0
33379 //mt:if %s.Flags&TileScale != 0
33382 //mt:if %s.Flags&TileAlign != 0
33384 }))(obj)).Align).serialize(w)
33389 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33394 func (obj *TileDef) deserialize(r io.Reader) {
33397 local371 := uint8(6)
33402 if local370 != local371 {
33403 chk(fmt.Errorf("const %v: %v", "uint8(6)", local370))
33406 if err := pcall(func() {
33412 //mt:if %s.Flags&TileColor != 0
33415 //mt:if %s.Flags&TileScale != 0
33418 //mt:if %s.Flags&TileAlign != 0
33420 }))(obj)).Texture).deserialize(r)
33425 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33427 if err := pcall(func() {
33433 //mt:if %s.Flags&TileColor != 0
33436 //mt:if %s.Flags&TileScale != 0
33439 //mt:if %s.Flags&TileAlign != 0
33441 }))(obj)).Anim).deserialize(r)
33446 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33448 if err := pcall(func() {
33454 //mt:if %s.Flags&TileColor != 0
33457 //mt:if %s.Flags&TileScale != 0
33460 //mt:if %s.Flags&TileAlign != 0
33462 }))(obj)).Flags).deserialize(r)
33467 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33474 //mt:if %s.Flags&TileColor != 0
33477 //mt:if %s.Flags&TileScale != 0
33480 //mt:if %s.Flags&TileAlign != 0
33482 }))(obj)).Flags&TileColor != 0 {
33484 p := &(*(*(struct {
33489 //mt:if %s.Flags&TileColor != 0
33492 //mt:if %s.Flags&TileScale != 0
33495 //mt:if %s.Flags&TileAlign != 0
33501 p := &(*(*(struct {
33506 //mt:if %s.Flags&TileColor != 0
33509 //mt:if %s.Flags&TileScale != 0
33512 //mt:if %s.Flags&TileAlign != 0
33518 p := &(*(*(struct {
33523 //mt:if %s.Flags&TileColor != 0
33526 //mt:if %s.Flags&TileScale != 0
33529 //mt:if %s.Flags&TileAlign != 0
33540 //mt:if %s.Flags&TileColor != 0
33543 //mt:if %s.Flags&TileScale != 0
33546 //mt:if %s.Flags&TileAlign != 0
33548 }))(obj)).Flags&TileScale != 0 {
33550 p := &(*(*(struct {
33555 //mt:if %s.Flags&TileColor != 0
33558 //mt:if %s.Flags&TileScale != 0
33561 //mt:if %s.Flags&TileAlign != 0
33572 //mt:if %s.Flags&TileColor != 0
33575 //mt:if %s.Flags&TileScale != 0
33578 //mt:if %s.Flags&TileAlign != 0
33580 }))(obj)).Flags&TileAlign != 0 {
33581 if err := pcall(func() {
33587 //mt:if %s.Flags&TileColor != 0
33590 //mt:if %s.Flags&TileScale != 0
33593 //mt:if %s.Flags&TileAlign != 0
33595 }))(obj)).Align).deserialize(r)
33600 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33605 func (obj *WaveType) serialize(w io.Writer) {
33607 x := *(*(uint8))(obj)
33608 write8(w, uint8(x))
33612 func (obj *WaveType) deserialize(r io.Reader) {
33614 p := &*(*(uint8))(obj)
33619 func (obj *LiquidType) serialize(w io.Writer) {
33621 x := *(*(uint8))(obj)
33622 write8(w, uint8(x))
33626 func (obj *LiquidType) deserialize(r io.Reader) {
33628 p := &*(*(uint8))(obj)
33633 func (obj *NodeBox) serialize(w io.Writer) {
33635 local372 := uint8(6)
33638 write8(w, uint8(x))
33641 if err := pcall(func() {
33645 //mt:if %s.Type == MountedBox
33646 WallTop, WallBot, WallSides Box
33648 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33651 //mt:if %s.Type == ConnectedBox
33652 ConnDirs, DiscoDirs DirBoxes
33653 DiscoAll, DiscoSides []Box
33654 }))(obj)).Type).serialize(w)
33659 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
33664 //mt:if %s.Type == MountedBox
33665 WallTop, WallBot, WallSides Box
33667 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33670 //mt:if %s.Type == ConnectedBox
33671 ConnDirs, DiscoDirs DirBoxes
33672 DiscoAll, DiscoSides []Box
33673 }))(obj)).Type < maxBox) {
33674 chk(errors.New("assertion failed: %s.Type < maxBox"))
33679 //mt:if %s.Type == MountedBox
33680 WallTop, WallBot, WallSides Box
33682 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33685 //mt:if %s.Type == ConnectedBox
33686 ConnDirs, DiscoDirs DirBoxes
33687 DiscoAll, DiscoSides []Box
33688 }))(obj)).Type == MountedBox {
33689 if err := pcall(func() {
33693 //mt:if %s.Type == MountedBox
33694 WallTop, WallBot, WallSides Box
33696 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33699 //mt:if %s.Type == ConnectedBox
33700 ConnDirs, DiscoDirs DirBoxes
33701 DiscoAll, DiscoSides []Box
33702 }))(obj)).WallTop).serialize(w)
33707 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33709 if err := pcall(func() {
33713 //mt:if %s.Type == MountedBox
33714 WallTop, WallBot, WallSides Box
33716 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33719 //mt:if %s.Type == ConnectedBox
33720 ConnDirs, DiscoDirs DirBoxes
33721 DiscoAll, DiscoSides []Box
33722 }))(obj)).WallBot).serialize(w)
33727 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33729 if err := pcall(func() {
33733 //mt:if %s.Type == MountedBox
33734 WallTop, WallBot, WallSides Box
33736 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33739 //mt:if %s.Type == ConnectedBox
33740 ConnDirs, DiscoDirs DirBoxes
33741 DiscoAll, DiscoSides []Box
33742 }))(obj)).WallSides).serialize(w)
33747 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33750 if t := (*(*(struct {
33753 //mt:if %s.Type == MountedBox
33754 WallTop, WallBot, WallSides Box
33756 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33759 //mt:if %s.Type == ConnectedBox
33760 ConnDirs, DiscoDirs DirBoxes
33761 DiscoAll, DiscoSides []Box
33762 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33763 if len(((*(*(struct {
33766 //mt:if %s.Type == MountedBox
33767 WallTop, WallBot, WallSides Box
33769 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33772 //mt:if %s.Type == ConnectedBox
33773 ConnDirs, DiscoDirs DirBoxes
33774 DiscoAll, DiscoSides []Box
33775 }))(obj)).Fixed)) > math.MaxUint16 {
33779 x := uint16(len(((*(*(struct {
33782 //mt:if %s.Type == MountedBox
33783 WallTop, WallBot, WallSides Box
33785 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33788 //mt:if %s.Type == ConnectedBox
33789 ConnDirs, DiscoDirs DirBoxes
33790 DiscoAll, DiscoSides []Box
33792 write16(w, uint16(x))
33794 for local373 := range (*(*(struct {
33797 //mt:if %s.Type == MountedBox
33798 WallTop, WallBot, WallSides Box
33800 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33803 //mt:if %s.Type == ConnectedBox
33804 ConnDirs, DiscoDirs DirBoxes
33805 DiscoAll, DiscoSides []Box
33807 if err := pcall(func() {
33811 //mt:if %s.Type == MountedBox
33812 WallTop, WallBot, WallSides Box
33814 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33817 //mt:if %s.Type == ConnectedBox
33818 ConnDirs, DiscoDirs DirBoxes
33819 DiscoAll, DiscoSides []Box
33820 }))(obj)).Fixed)[local373]).serialize(w)
33825 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33832 //mt:if %s.Type == MountedBox
33833 WallTop, WallBot, WallSides Box
33835 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33838 //mt:if %s.Type == ConnectedBox
33839 ConnDirs, DiscoDirs DirBoxes
33840 DiscoAll, DiscoSides []Box
33841 }))(obj)).Type == ConnectedBox {
33842 if err := pcall(func() {
33846 //mt:if %s.Type == MountedBox
33847 WallTop, WallBot, WallSides Box
33849 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33852 //mt:if %s.Type == ConnectedBox
33853 ConnDirs, DiscoDirs DirBoxes
33854 DiscoAll, DiscoSides []Box
33855 }))(obj)).ConnDirs).serialize(w)
33860 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33862 if err := pcall(func() {
33866 //mt:if %s.Type == MountedBox
33867 WallTop, WallBot, WallSides Box
33869 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33872 //mt:if %s.Type == ConnectedBox
33873 ConnDirs, DiscoDirs DirBoxes
33874 DiscoAll, DiscoSides []Box
33875 }))(obj)).DiscoDirs).serialize(w)
33880 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33882 if len(((*(*(struct {
33885 //mt:if %s.Type == MountedBox
33886 WallTop, WallBot, WallSides Box
33888 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33891 //mt:if %s.Type == ConnectedBox
33892 ConnDirs, DiscoDirs DirBoxes
33893 DiscoAll, DiscoSides []Box
33894 }))(obj)).DiscoAll)) > math.MaxUint16 {
33898 x := uint16(len(((*(*(struct {
33901 //mt:if %s.Type == MountedBox
33902 WallTop, WallBot, WallSides Box
33904 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33907 //mt:if %s.Type == ConnectedBox
33908 ConnDirs, DiscoDirs DirBoxes
33909 DiscoAll, DiscoSides []Box
33910 }))(obj)).DiscoAll)))
33911 write16(w, uint16(x))
33913 for local374 := range (*(*(struct {
33916 //mt:if %s.Type == MountedBox
33917 WallTop, WallBot, WallSides Box
33919 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33922 //mt:if %s.Type == ConnectedBox
33923 ConnDirs, DiscoDirs DirBoxes
33924 DiscoAll, DiscoSides []Box
33925 }))(obj)).DiscoAll {
33926 if err := pcall(func() {
33930 //mt:if %s.Type == MountedBox
33931 WallTop, WallBot, WallSides Box
33933 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33936 //mt:if %s.Type == ConnectedBox
33937 ConnDirs, DiscoDirs DirBoxes
33938 DiscoAll, DiscoSides []Box
33939 }))(obj)).DiscoAll)[local374]).serialize(w)
33944 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33947 if len(((*(*(struct {
33950 //mt:if %s.Type == MountedBox
33951 WallTop, WallBot, WallSides Box
33953 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33956 //mt:if %s.Type == ConnectedBox
33957 ConnDirs, DiscoDirs DirBoxes
33958 DiscoAll, DiscoSides []Box
33959 }))(obj)).DiscoSides)) > math.MaxUint16 {
33963 x := uint16(len(((*(*(struct {
33966 //mt:if %s.Type == MountedBox
33967 WallTop, WallBot, WallSides Box
33969 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33972 //mt:if %s.Type == ConnectedBox
33973 ConnDirs, DiscoDirs DirBoxes
33974 DiscoAll, DiscoSides []Box
33975 }))(obj)).DiscoSides)))
33976 write16(w, uint16(x))
33978 for local375 := range (*(*(struct {
33981 //mt:if %s.Type == MountedBox
33982 WallTop, WallBot, WallSides Box
33984 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33987 //mt:if %s.Type == ConnectedBox
33988 ConnDirs, DiscoDirs DirBoxes
33989 DiscoAll, DiscoSides []Box
33990 }))(obj)).DiscoSides {
33991 if err := pcall(func() {
33995 //mt:if %s.Type == MountedBox
33996 WallTop, WallBot, WallSides Box
33998 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34001 //mt:if %s.Type == ConnectedBox
34002 ConnDirs, DiscoDirs DirBoxes
34003 DiscoAll, DiscoSides []Box
34004 }))(obj)).DiscoSides)[local375]).serialize(w)
34009 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34015 func (obj *NodeBox) deserialize(r io.Reader) {
34018 local377 := uint8(6)
34023 if local376 != local377 {
34024 chk(fmt.Errorf("const %v: %v", "uint8(6)", local376))
34027 if err := pcall(func() {
34031 //mt:if %s.Type == MountedBox
34032 WallTop, WallBot, WallSides Box
34034 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34037 //mt:if %s.Type == ConnectedBox
34038 ConnDirs, DiscoDirs DirBoxes
34039 DiscoAll, DiscoSides []Box
34040 }))(obj)).Type).deserialize(r)
34045 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
34050 //mt:if %s.Type == MountedBox
34051 WallTop, WallBot, WallSides Box
34053 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34056 //mt:if %s.Type == ConnectedBox
34057 ConnDirs, DiscoDirs DirBoxes
34058 DiscoAll, DiscoSides []Box
34059 }))(obj)).Type < maxBox) {
34060 chk(errors.New("assertion failed: %s.Type < maxBox"))
34065 //mt:if %s.Type == MountedBox
34066 WallTop, WallBot, WallSides Box
34068 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34071 //mt:if %s.Type == ConnectedBox
34072 ConnDirs, DiscoDirs DirBoxes
34073 DiscoAll, DiscoSides []Box
34074 }))(obj)).Type == MountedBox {
34075 if err := pcall(func() {
34079 //mt:if %s.Type == MountedBox
34080 WallTop, WallBot, WallSides Box
34082 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34085 //mt:if %s.Type == ConnectedBox
34086 ConnDirs, DiscoDirs DirBoxes
34087 DiscoAll, DiscoSides []Box
34088 }))(obj)).WallTop).deserialize(r)
34093 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34095 if err := pcall(func() {
34099 //mt:if %s.Type == MountedBox
34100 WallTop, WallBot, WallSides Box
34102 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34105 //mt:if %s.Type == ConnectedBox
34106 ConnDirs, DiscoDirs DirBoxes
34107 DiscoAll, DiscoSides []Box
34108 }))(obj)).WallBot).deserialize(r)
34113 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34115 if err := pcall(func() {
34119 //mt:if %s.Type == MountedBox
34120 WallTop, WallBot, WallSides Box
34122 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34125 //mt:if %s.Type == ConnectedBox
34126 ConnDirs, DiscoDirs DirBoxes
34127 DiscoAll, DiscoSides []Box
34128 }))(obj)).WallSides).deserialize(r)
34133 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34136 if t := (*(*(struct {
34139 //mt:if %s.Type == MountedBox
34140 WallTop, WallBot, WallSides Box
34142 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34145 //mt:if %s.Type == ConnectedBox
34146 ConnDirs, DiscoDirs DirBoxes
34147 DiscoAll, DiscoSides []Box
34148 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
34149 var local378 uint16
34157 //mt:if %s.Type == MountedBox
34158 WallTop, WallBot, WallSides Box
34160 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34163 //mt:if %s.Type == ConnectedBox
34164 ConnDirs, DiscoDirs DirBoxes
34165 DiscoAll, DiscoSides []Box
34166 }))(obj)).Fixed) = make([]Box, local378)
34167 for local379 := range (*(*(struct {
34170 //mt:if %s.Type == MountedBox
34171 WallTop, WallBot, WallSides Box
34173 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34176 //mt:if %s.Type == ConnectedBox
34177 ConnDirs, DiscoDirs DirBoxes
34178 DiscoAll, DiscoSides []Box
34180 if err := pcall(func() {
34184 //mt:if %s.Type == MountedBox
34185 WallTop, WallBot, WallSides Box
34187 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34190 //mt:if %s.Type == ConnectedBox
34191 ConnDirs, DiscoDirs DirBoxes
34192 DiscoAll, DiscoSides []Box
34193 }))(obj)).Fixed)[local379]).deserialize(r)
34198 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34205 //mt:if %s.Type == MountedBox
34206 WallTop, WallBot, WallSides Box
34208 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34211 //mt:if %s.Type == ConnectedBox
34212 ConnDirs, DiscoDirs DirBoxes
34213 DiscoAll, DiscoSides []Box
34214 }))(obj)).Type == ConnectedBox {
34215 if err := pcall(func() {
34219 //mt:if %s.Type == MountedBox
34220 WallTop, WallBot, WallSides Box
34222 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34225 //mt:if %s.Type == ConnectedBox
34226 ConnDirs, DiscoDirs DirBoxes
34227 DiscoAll, DiscoSides []Box
34228 }))(obj)).ConnDirs).deserialize(r)
34233 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34235 if err := pcall(func() {
34239 //mt:if %s.Type == MountedBox
34240 WallTop, WallBot, WallSides Box
34242 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34245 //mt:if %s.Type == ConnectedBox
34246 ConnDirs, DiscoDirs DirBoxes
34247 DiscoAll, DiscoSides []Box
34248 }))(obj)).DiscoDirs).deserialize(r)
34253 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34255 var local380 uint16
34263 //mt:if %s.Type == MountedBox
34264 WallTop, WallBot, WallSides Box
34266 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34269 //mt:if %s.Type == ConnectedBox
34270 ConnDirs, DiscoDirs DirBoxes
34271 DiscoAll, DiscoSides []Box
34272 }))(obj)).DiscoAll) = make([]Box, local380)
34273 for local381 := range (*(*(struct {
34276 //mt:if %s.Type == MountedBox
34277 WallTop, WallBot, WallSides Box
34279 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34282 //mt:if %s.Type == ConnectedBox
34283 ConnDirs, DiscoDirs DirBoxes
34284 DiscoAll, DiscoSides []Box
34285 }))(obj)).DiscoAll {
34286 if err := pcall(func() {
34290 //mt:if %s.Type == MountedBox
34291 WallTop, WallBot, WallSides Box
34293 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34296 //mt:if %s.Type == ConnectedBox
34297 ConnDirs, DiscoDirs DirBoxes
34298 DiscoAll, DiscoSides []Box
34299 }))(obj)).DiscoAll)[local381]).deserialize(r)
34304 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34307 var local382 uint16
34315 //mt:if %s.Type == MountedBox
34316 WallTop, WallBot, WallSides Box
34318 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34321 //mt:if %s.Type == ConnectedBox
34322 ConnDirs, DiscoDirs DirBoxes
34323 DiscoAll, DiscoSides []Box
34324 }))(obj)).DiscoSides) = make([]Box, local382)
34325 for local383 := range (*(*(struct {
34328 //mt:if %s.Type == MountedBox
34329 WallTop, WallBot, WallSides Box
34331 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34334 //mt:if %s.Type == ConnectedBox
34335 ConnDirs, DiscoDirs DirBoxes
34336 DiscoAll, DiscoSides []Box
34337 }))(obj)).DiscoSides {
34338 if err := pcall(func() {
34342 //mt:if %s.Type == MountedBox
34343 WallTop, WallBot, WallSides Box
34345 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34348 //mt:if %s.Type == ConnectedBox
34349 ConnDirs, DiscoDirs DirBoxes
34350 DiscoAll, DiscoSides []Box
34351 }))(obj)).DiscoSides)[local383]).deserialize(r)
34356 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34362 func (obj *SoundDef) serialize(w io.Writer) {
34363 if len(([]byte((*(*(struct {
34365 Gain, Pitch, Fade float32
34366 }))(obj)).Name))) > math.MaxUint16 {
34370 x := uint16(len(([]byte((*(*(struct {
34372 Gain, Pitch, Fade float32
34374 write16(w, uint16(x))
34377 _, err := w.Write(([]byte((*(*(struct {
34379 Gain, Pitch, Fade float32
34380 }))(obj)).Name))[:])
34386 Gain, Pitch, Fade float32
34388 write32(w, math.Float32bits(x))
34393 Gain, Pitch, Fade float32
34395 write32(w, math.Float32bits(x))
34400 Gain, Pitch, Fade float32
34402 write32(w, math.Float32bits(x))
34406 func (obj *SoundDef) deserialize(r io.Reader) {
34407 var local384 []uint8
34408 var local385 uint16
34413 (local384) = make([]uint8, local385)
34415 _, err := io.ReadFull(r, (local384)[:])
34420 Gain, Pitch, Fade float32
34421 }))(obj)).Name) = string(local384)
34423 p := &(*(*(struct {
34425 Gain, Pitch, Fade float32
34427 *p = math.Float32frombits(read32(r))
34430 p := &(*(*(struct {
34432 Gain, Pitch, Fade float32
34434 *p = math.Float32frombits(read32(r))
34437 p := &(*(*(struct {
34439 Gain, Pitch, Fade float32
34441 *p = math.Float32frombits(read32(r))
34445 func (obj *AlphaUse) serialize(w io.Writer) {
34447 x := *(*(uint8))(obj)
34448 write8(w, uint8(x))
34452 func (obj *AlphaUse) deserialize(r io.Reader) {
34454 p := &*(*(uint8))(obj)
34459 func (obj *Keys) serialize(w io.Writer) {
34461 x := *(*(uint32))(obj)
34462 write32(w, uint32(x))
34466 func (obj *Keys) deserialize(r io.Reader) {
34468 p := &*(*(uint32))(obj)
34473 func (obj *MapBlkFlags) serialize(w io.Writer) {
34475 x := *(*(uint8))(obj)
34476 write8(w, uint8(x))
34480 func (obj *MapBlkFlags) deserialize(r io.Reader) {
34482 p := &*(*(uint8))(obj)
34487 func (obj *LitFromBlks) serialize(w io.Writer) {
34489 x := *(*(uint16))(obj)
34490 write16(w, uint16(x))
34494 func (obj *LitFromBlks) deserialize(r io.Reader) {
34496 p := &*(*(uint16))(obj)
34501 func (obj *AOInitData) serialize(w io.Writer) {
34503 local386 := uint8(1)
34506 write8(w, uint8(x))
34509 if len(([]byte((*(*(struct {
34522 // See (de)serialize.fmt.
34524 }))(obj)).Name))) > math.MaxUint16 {
34528 x := uint16(len(([]byte((*(*(struct {
34541 // See (de)serialize.fmt.
34544 write16(w, uint16(x))
34547 _, err := w.Write(([]byte((*(*(struct {
34560 // See (de)serialize.fmt.
34562 }))(obj)).Name))[:])
34579 // See (de)serialize.fmt.
34588 if err := pcall(func() {
34602 // See (de)serialize.fmt.
34604 }))(obj)).ID).serialize(w)
34609 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34611 if err := pcall(func() {
34625 // See (de)serialize.fmt.
34627 }))(obj)).Pos).serialize(w)
34632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34634 for local387 := range (*(*(struct {
34647 // See (de)serialize.fmt.
34651 x := ((*(*(struct {
34664 // See (de)serialize.fmt.
34666 }))(obj)).Rot)[local387]
34667 write32(w, math.Float32bits(x))
34684 // See (de)serialize.fmt.
34687 write16(w, uint16(x))
34703 // See (de)serialize.fmt.
34706 { // For AOInitData.Msgs.
34707 if len(x) > math.MaxUint8 {
34710 write8(w, uint8(len(x)))
34711 for _, msg := range x {
34713 chk(writeAOMsg(&b, msg))
34714 if b.Len() > math.MaxUint32 {
34717 write32(w, uint32(b.Len()))
34718 _, err := b.WriteTo(w)
34725 func (obj *AOInitData) deserialize(r io.Reader) {
34728 local389 := uint8(1)
34733 if local388 != local389 {
34734 chk(fmt.Errorf("const %v: %v", "uint8(1)", local388))
34737 var local390 []uint8
34738 var local391 uint16
34743 (local390) = make([]uint8, local391)
34745 _, err := io.ReadFull(r, (local390)[:])
34761 // See (de)serialize.fmt.
34763 }))(obj)).Name) = string(local390)
34765 p := &(*(*(struct {
34778 // See (de)serialize.fmt.
34781 switch n := read8(r); n {
34787 chk(fmt.Errorf("invalid bool: %d", n))
34790 if err := pcall(func() {
34804 // See (de)serialize.fmt.
34806 }))(obj)).ID).deserialize(r)
34811 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34813 if err := pcall(func() {
34827 // See (de)serialize.fmt.
34829 }))(obj)).Pos).deserialize(r)
34834 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34836 for local392 := range (*(*(struct {
34849 // See (de)serialize.fmt.
34853 p := &((*(*(struct {
34866 // See (de)serialize.fmt.
34868 }))(obj)).Rot)[local392]
34869 *p = math.Float32frombits(read32(r))
34873 p := &(*(*(struct {
34886 // See (de)serialize.fmt.
34892 p := &(*(*(struct {
34905 // See (de)serialize.fmt.
34908 { // For AOInitData.Msgs.
34909 *p = make([]AOMsg, read8(r))
34910 for i := range *p {
34911 r := &io.LimitedReader{R: r, N: int64(read32(r))}
34912 msg, err := readAOMsg(r)
34916 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34923 func (obj *ItemType) serialize(w io.Writer) {
34925 x := *(*(uint8))(obj)
34926 write8(w, uint8(x))
34930 func (obj *ItemType) deserialize(r io.Reader) {
34932 p := &*(*(uint8))(obj)
34937 func (obj *ToolCaps) serialize(w io.Writer) {
34938 if _ = (*(*(struct {
34939 //mt:if _ = %s; false
34942 AttackCooldown float32
34946 GroupCaps []ToolGroupCap
34956 //mt:if _ = %s; false
34959 AttackCooldown float32
34963 GroupCaps []ToolGroupCap
34980 w := new(bytes.Buffer)
34982 if r.N > 0 { (*(*(struct {
34983 //mt:if _ = %s; false
34986 AttackCooldown float32
34990 GroupCaps []ToolGroupCap
34997 }))(obj)).NonNil = true}; /**/{
34999 //mt:if _ = %s; false
35002 AttackCooldown float32
35006 GroupCaps []ToolGroupCap
35015 local393 := uint8(5)
35018 write8(w, uint8(x))
35023 //mt:if _ = %s; false
35026 AttackCooldown float32
35030 GroupCaps []ToolGroupCap
35037 }))(obj)).AttackCooldown
35038 write32(w, math.Float32bits(x))
35042 //mt:if _ = %s; false
35045 AttackCooldown float32
35049 GroupCaps []ToolGroupCap
35056 }))(obj)).MaxDropLvl
35057 write16(w, uint16(x))
35059 if len(((*(*(struct {
35060 //mt:if _ = %s; false
35063 AttackCooldown float32
35067 GroupCaps []ToolGroupCap
35074 }))(obj)).GroupCaps)) > math.MaxUint32 {
35078 x := uint32(len(((*(*(struct {
35079 //mt:if _ = %s; false
35082 AttackCooldown float32
35086 GroupCaps []ToolGroupCap
35093 }))(obj)).GroupCaps)))
35094 write32(w, uint32(x))
35096 for local394 := range (*(*(struct {
35097 //mt:if _ = %s; false
35100 AttackCooldown float32
35104 GroupCaps []ToolGroupCap
35111 }))(obj)).GroupCaps {
35112 if err := pcall(func() {
35114 //mt:if _ = %s; false
35117 AttackCooldown float32
35121 GroupCaps []ToolGroupCap
35128 }))(obj)).GroupCaps)[local394]).serialize(w)
35133 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35136 if len(((*(*(struct {
35137 //mt:if _ = %s; false
35140 AttackCooldown float32
35144 GroupCaps []ToolGroupCap
35151 }))(obj)).DmgGroups)) > math.MaxUint32 {
35155 x := uint32(len(((*(*(struct {
35156 //mt:if _ = %s; false
35159 AttackCooldown float32
35163 GroupCaps []ToolGroupCap
35170 }))(obj)).DmgGroups)))
35171 write32(w, uint32(x))
35173 for local395 := range (*(*(struct {
35174 //mt:if _ = %s; false
35177 AttackCooldown float32
35181 GroupCaps []ToolGroupCap
35188 }))(obj)).DmgGroups {
35189 if err := pcall(func() {
35191 //mt:if _ = %s; false
35194 AttackCooldown float32
35198 GroupCaps []ToolGroupCap
35205 }))(obj)).DmgGroups)[local395]).serialize(w)
35210 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35214 x := uint16((*(*(struct {
35215 //mt:if _ = %s; false
35218 AttackCooldown float32
35222 GroupCaps []ToolGroupCap
35229 }))(obj)).PunchUses)
35230 write16(w, uint16(x))
35237 if len((buf.Bytes())) > math.MaxUint16 {
35241 x := uint16(len((buf.Bytes())))
35242 write16(w, uint16(x))
35245 _, err := w.Write((buf.Bytes())[:])
35252 func (obj *ToolCaps) deserialize(r io.Reader) {
35253 if _ = (*(*(struct {
35254 //mt:if _ = %s; false
35257 AttackCooldown float32
35261 GroupCaps []ToolGroupCap
35270 p := &(*(*(struct {
35271 //mt:if _ = %s; false
35274 AttackCooldown float32
35278 GroupCaps []ToolGroupCap
35286 switch n := read8(r); n {
35292 chk(fmt.Errorf("invalid bool: %d", n))
35302 r := &io.LimitedReader{R: r, N: int64(n)}
35305 //mt:if _ = %s; false
35308 AttackCooldown float32
35312 GroupCaps []ToolGroupCap
35319 }))(obj)).NonNil = true
35323 //mt:if _ = %s; false
35326 AttackCooldown float32
35330 GroupCaps []ToolGroupCap
35340 local397 := uint8(5)
35345 if local396 != local397 {
35346 chk(fmt.Errorf("const %v: %v", "uint8(5)", local396))
35350 p := &(*(*(struct {
35351 //mt:if _ = %s; false
35354 AttackCooldown float32
35358 GroupCaps []ToolGroupCap
35365 }))(obj)).AttackCooldown
35366 *p = math.Float32frombits(read32(r))
35369 p := &(*(*(struct {
35370 //mt:if _ = %s; false
35373 AttackCooldown float32
35377 GroupCaps []ToolGroupCap
35384 }))(obj)).MaxDropLvl
35385 *p = int16(read16(r))
35387 var local398 uint32
35393 //mt:if _ = %s; false
35396 AttackCooldown float32
35400 GroupCaps []ToolGroupCap
35407 }))(obj)).GroupCaps) = make([]ToolGroupCap, local398)
35408 for local399 := range (*(*(struct {
35409 //mt:if _ = %s; false
35412 AttackCooldown float32
35416 GroupCaps []ToolGroupCap
35423 }))(obj)).GroupCaps {
35424 if err := pcall(func() {
35426 //mt:if _ = %s; false
35429 AttackCooldown float32
35433 GroupCaps []ToolGroupCap
35440 }))(obj)).GroupCaps)[local399]).deserialize(r)
35445 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35448 var local400 uint32
35454 //mt:if _ = %s; false
35457 AttackCooldown float32
35461 GroupCaps []ToolGroupCap
35468 }))(obj)).DmgGroups) = make([]Group, local400)
35469 for local401 := range (*(*(struct {
35470 //mt:if _ = %s; false
35473 AttackCooldown float32
35477 GroupCaps []ToolGroupCap
35484 }))(obj)).DmgGroups {
35485 if err := pcall(func() {
35487 //mt:if _ = %s; false
35490 AttackCooldown float32
35494 GroupCaps []ToolGroupCap
35501 }))(obj)).DmgGroups)[local401]).deserialize(r)
35506 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35509 var local402 uint16
35515 //mt:if _ = %s; false
35518 AttackCooldown float32
35522 GroupCaps []ToolGroupCap
35529 }))(obj)).PunchUses = int32(local402)
35533 chk(fmt.Errorf("%d bytes of trailing data", r.N))
35538 func (obj *AnimType) serialize(w io.Writer) {
35540 x := *(*(uint8))(obj)
35541 write8(w, uint8(x))
35545 func (obj *AnimType) deserialize(r io.Reader) {
35547 p := &*(*(uint8))(obj)
35552 func (obj *HUDType) serialize(w io.Writer) {
35554 x := *(*(uint8))(obj)
35555 write8(w, uint8(x))
35559 func (obj *HUDType) deserialize(r io.Reader) {
35561 p := &*(*(uint8))(obj)
35566 func (obj *Box) serialize(w io.Writer) {
35567 for local403 := range *(*([2]Vec))(obj) {
35568 if err := pcall(func() {
35569 ((*(*([2]Vec))(obj))[local403]).serialize(w)
35574 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35579 func (obj *Box) deserialize(r io.Reader) {
35580 for local404 := range *(*([2]Vec))(obj) {
35581 if err := pcall(func() {
35582 ((*(*([2]Vec))(obj))[local404]).deserialize(r)
35587 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35592 func (obj *TileFlags) serialize(w io.Writer) {
35594 x := *(*(uint16))(obj)
35595 write16(w, uint16(x))
35599 func (obj *TileFlags) deserialize(r io.Reader) {
35601 p := &*(*(uint16))(obj)
35606 func (obj *AlignType) serialize(w io.Writer) {
35608 x := *(*(uint8))(obj)
35609 write8(w, uint8(x))
35613 func (obj *AlignType) deserialize(r io.Reader) {
35615 p := &*(*(uint8))(obj)
35620 func (obj *NodeBoxType) serialize(w io.Writer) {
35622 x := *(*(uint8))(obj)
35623 write8(w, uint8(x))
35627 func (obj *NodeBoxType) deserialize(r io.Reader) {
35629 p := &*(*(uint8))(obj)
35634 func (obj *DirBoxes) serialize(w io.Writer) {
35635 if len(((*(*(struct {
35637 Front, Left, Back, Right []Box
35638 }))(obj)).Top)) > math.MaxUint16 {
35642 x := uint16(len(((*(*(struct {
35644 Front, Left, Back, Right []Box
35646 write16(w, uint16(x))
35648 for local405 := range (*(*(struct {
35650 Front, Left, Back, Right []Box
35652 if err := pcall(func() {
35655 Front, Left, Back, Right []Box
35656 }))(obj)).Top)[local405]).serialize(w)
35661 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35664 if len(((*(*(struct {
35666 Front, Left, Back, Right []Box
35667 }))(obj)).Bot)) > math.MaxUint16 {
35671 x := uint16(len(((*(*(struct {
35673 Front, Left, Back, Right []Box
35675 write16(w, uint16(x))
35677 for local406 := range (*(*(struct {
35679 Front, Left, Back, Right []Box
35681 if err := pcall(func() {
35684 Front, Left, Back, Right []Box
35685 }))(obj)).Bot)[local406]).serialize(w)
35690 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35693 if len(((*(*(struct {
35695 Front, Left, Back, Right []Box
35696 }))(obj)).Front)) > math.MaxUint16 {
35700 x := uint16(len(((*(*(struct {
35702 Front, Left, Back, Right []Box
35704 write16(w, uint16(x))
35706 for local407 := range (*(*(struct {
35708 Front, Left, Back, Right []Box
35710 if err := pcall(func() {
35713 Front, Left, Back, Right []Box
35714 }))(obj)).Front)[local407]).serialize(w)
35719 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35722 if len(((*(*(struct {
35724 Front, Left, Back, Right []Box
35725 }))(obj)).Left)) > math.MaxUint16 {
35729 x := uint16(len(((*(*(struct {
35731 Front, Left, Back, Right []Box
35733 write16(w, uint16(x))
35735 for local408 := range (*(*(struct {
35737 Front, Left, Back, Right []Box
35739 if err := pcall(func() {
35742 Front, Left, Back, Right []Box
35743 }))(obj)).Left)[local408]).serialize(w)
35748 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35751 if len(((*(*(struct {
35753 Front, Left, Back, Right []Box
35754 }))(obj)).Back)) > math.MaxUint16 {
35758 x := uint16(len(((*(*(struct {
35760 Front, Left, Back, Right []Box
35762 write16(w, uint16(x))
35764 for local409 := range (*(*(struct {
35766 Front, Left, Back, Right []Box
35768 if err := pcall(func() {
35771 Front, Left, Back, Right []Box
35772 }))(obj)).Back)[local409]).serialize(w)
35777 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35780 if len(((*(*(struct {
35782 Front, Left, Back, Right []Box
35783 }))(obj)).Right)) > math.MaxUint16 {
35787 x := uint16(len(((*(*(struct {
35789 Front, Left, Back, Right []Box
35791 write16(w, uint16(x))
35793 for local410 := range (*(*(struct {
35795 Front, Left, Back, Right []Box
35797 if err := pcall(func() {
35800 Front, Left, Back, Right []Box
35801 }))(obj)).Right)[local410]).serialize(w)
35806 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35811 func (obj *DirBoxes) deserialize(r io.Reader) {
35812 var local411 uint16
35819 Front, Left, Back, Right []Box
35820 }))(obj)).Top) = make([]Box, local411)
35821 for local412 := range (*(*(struct {
35823 Front, Left, Back, Right []Box
35825 if err := pcall(func() {
35828 Front, Left, Back, Right []Box
35829 }))(obj)).Top)[local412]).deserialize(r)
35834 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35837 var local413 uint16
35844 Front, Left, Back, Right []Box
35845 }))(obj)).Bot) = make([]Box, local413)
35846 for local414 := range (*(*(struct {
35848 Front, Left, Back, Right []Box
35850 if err := pcall(func() {
35853 Front, Left, Back, Right []Box
35854 }))(obj)).Bot)[local414]).deserialize(r)
35859 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35862 var local415 uint16
35869 Front, Left, Back, Right []Box
35870 }))(obj)).Front) = make([]Box, local415)
35871 for local416 := range (*(*(struct {
35873 Front, Left, Back, Right []Box
35875 if err := pcall(func() {
35878 Front, Left, Back, Right []Box
35879 }))(obj)).Front)[local416]).deserialize(r)
35884 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35887 var local417 uint16
35894 Front, Left, Back, Right []Box
35895 }))(obj)).Left) = make([]Box, local417)
35896 for local418 := range (*(*(struct {
35898 Front, Left, Back, Right []Box
35900 if err := pcall(func() {
35903 Front, Left, Back, Right []Box
35904 }))(obj)).Left)[local418]).deserialize(r)
35909 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35912 var local419 uint16
35919 Front, Left, Back, Right []Box
35920 }))(obj)).Back) = make([]Box, local419)
35921 for local420 := range (*(*(struct {
35923 Front, Left, Back, Right []Box
35925 if err := pcall(func() {
35928 Front, Left, Back, Right []Box
35929 }))(obj)).Back)[local420]).deserialize(r)
35934 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35937 var local421 uint16
35944 Front, Left, Back, Right []Box
35945 }))(obj)).Right) = make([]Box, local421)
35946 for local422 := range (*(*(struct {
35948 Front, Left, Back, Right []Box
35950 if err := pcall(func() {
35953 Front, Left, Back, Right []Box
35954 }))(obj)).Right)[local422]).deserialize(r)
35959 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35964 func (obj *ToolGroupCap) serialize(w io.Writer) {
35965 if len(([]byte((*(*(struct {
35975 }))(obj)).Name))) > math.MaxUint16 {
35979 x := uint16(len(([]byte((*(*(struct {
35990 write16(w, uint16(x))
35993 _, err := w.Write(([]byte((*(*(struct {
36003 }))(obj)).Name))[:])
36007 x := int16((*(*(struct {
36018 write16(w, uint16(x))
36032 write16(w, uint16(x))
36034 if len(((*(*(struct {
36044 }))(obj)).Times)) > math.MaxUint32 {
36048 x := uint32(len(((*(*(struct {
36059 write32(w, uint32(x))
36061 for local423 := range (*(*(struct {
36072 if err := pcall(func() {
36083 }))(obj)).Times)[local423]).serialize(w)
36088 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36093 func (obj *ToolGroupCap) deserialize(r io.Reader) {
36094 var local424 []uint8
36095 var local425 uint16
36100 (local424) = make([]uint8, local425)
36102 _, err := io.ReadFull(r, (local424)[:])
36115 }))(obj)).Name) = string(local424)
36119 *p = int16(read16(r))
36131 }))(obj)).Uses = int32(local426)
36133 p := &(*(*(struct {
36144 *p = int16(read16(r))
36146 var local427 uint32
36161 }))(obj)).Times) = make([]DigTime, local427)
36162 for local428 := range (*(*(struct {
36173 if err := pcall(func() {
36184 }))(obj)).Times)[local428]).deserialize(r)
36189 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36194 func (obj *DigTime) serialize(w io.Writer) {
36200 write16(w, uint16(x))
36207 write32(w, math.Float32bits(x))
36211 func (obj *DigTime) deserialize(r io.Reader) {
36213 p := &(*(*(struct {
36217 *p = int16(read16(r))
36220 p := &(*(*(struct {
36224 *p = math.Float32frombits(read32(r))