1 // Code generated by mkserialize.sh. DO NOT EDIT.
18 func write8(w io.Writer, x uint8) {
19 _, err := w.Write([]byte{x})
23 func write16(w io.Writer, x uint16) {
24 buf := make([]byte, 2)
26 _, err := w.Write(buf)
30 func write32(w io.Writer, x uint32) {
31 buf := make([]byte, 4)
33 _, err := w.Write(buf)
37 func write64(w io.Writer, x uint64) {
38 buf := make([]byte, 8)
40 _, err := w.Write(buf)
43 func readBuf(r io.Reader, n int) []byte {
44 buf := make([]byte, n)
45 _, err := io.ReadFull(r, buf)
50 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
51 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
52 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
53 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
55 func (obj *ToSrvNil) serialize(w io.Writer) {
58 func (obj *ToSrvNil) deserialize(r io.Reader) {
61 func (obj *ToSrvInit) serialize(w io.Writer) {
65 SupportedCompression CompressionModes
66 MinProtoVer, MaxProtoVer uint16
71 }))(obj)).SerializeVer
74 if err := pcall(func() {
77 SupportedCompression CompressionModes
78 MinProtoVer, MaxProtoVer uint16
83 }))(obj)).SupportedCompression).serialize(w)
88 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
93 SupportedCompression CompressionModes
94 MinProtoVer, MaxProtoVer uint16
100 write16(w, uint16(x))
105 SupportedCompression CompressionModes
106 MinProtoVer, MaxProtoVer uint16
110 SendFullItemMeta bool
111 }))(obj)).MaxProtoVer
112 write16(w, uint16(x))
114 if len(([]byte((*(*(struct {
116 SupportedCompression CompressionModes
117 MinProtoVer, MaxProtoVer uint16
121 SendFullItemMeta bool
122 }))(obj)).PlayerName))) > math.MaxUint16 {
126 x := uint16(len(([]byte((*(*(struct {
128 SupportedCompression CompressionModes
129 MinProtoVer, MaxProtoVer uint16
133 SendFullItemMeta bool
134 }))(obj)).PlayerName))))
135 write16(w, uint16(x))
138 _, err := w.Write(([]byte((*(*(struct {
140 SupportedCompression CompressionModes
141 MinProtoVer, MaxProtoVer uint16
145 SendFullItemMeta bool
146 }))(obj)).PlayerName))[:])
149 if err := pcall(func() {
153 SupportedCompression CompressionModes
154 MinProtoVer, MaxProtoVer uint16
158 SendFullItemMeta bool
159 }))(obj)).SendFullItemMeta
166 }); err != nil && err != io.EOF {
171 func (obj *ToSrvInit) deserialize(r io.Reader) {
175 SupportedCompression CompressionModes
176 MinProtoVer, MaxProtoVer uint16
180 SendFullItemMeta bool
181 }))(obj)).SerializeVer
184 if err := pcall(func() {
187 SupportedCompression CompressionModes
188 MinProtoVer, MaxProtoVer uint16
192 SendFullItemMeta bool
193 }))(obj)).SupportedCompression).deserialize(r)
198 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
203 SupportedCompression CompressionModes
204 MinProtoVer, MaxProtoVer uint16
208 SendFullItemMeta bool
209 }))(obj)).MinProtoVer
215 SupportedCompression CompressionModes
216 MinProtoVer, MaxProtoVer uint16
220 SendFullItemMeta bool
221 }))(obj)).MaxProtoVer
230 (local1) = make([]uint8, local2)
232 _, err := io.ReadFull(r, (local1)[:])
237 SupportedCompression CompressionModes
238 MinProtoVer, MaxProtoVer uint16
242 SendFullItemMeta bool
243 }))(obj)).PlayerName) = string(local1)
244 if err := pcall(func() {
248 SupportedCompression CompressionModes
249 MinProtoVer, MaxProtoVer uint16
253 SendFullItemMeta bool
254 }))(obj)).SendFullItemMeta
255 switch n := read8(r); n {
261 chk(fmt.Errorf("invalid bool: %d", n))
264 }); err != nil && err != io.EOF {
269 func (obj *ToSrvInit2) serialize(w io.Writer) {
270 if len(([]byte((*(*(struct {
272 }))(obj)).Lang))) > math.MaxUint16 {
276 x := uint16(len(([]byte((*(*(struct {
279 write16(w, uint16(x))
282 _, err := w.Write(([]byte((*(*(struct {
289 func (obj *ToSrvInit2) deserialize(r io.Reader) {
296 (local3) = make([]uint8, local4)
298 _, err := io.ReadFull(r, (local3)[:])
303 }))(obj)).Lang) = string(local3)
306 func (obj *ToSrvModChanJoin) serialize(w io.Writer) {
307 if len(([]byte((*(*(struct {
309 }))(obj)).Channel))) > math.MaxUint16 {
313 x := uint16(len(([]byte((*(*(struct {
315 }))(obj)).Channel))))
316 write16(w, uint16(x))
319 _, err := w.Write(([]byte((*(*(struct {
321 }))(obj)).Channel))[:])
326 func (obj *ToSrvModChanJoin) deserialize(r io.Reader) {
333 (local5) = make([]uint8, local6)
335 _, err := io.ReadFull(r, (local5)[:])
340 }))(obj)).Channel) = string(local5)
343 func (obj *ToSrvModChanLeave) serialize(w io.Writer) {
344 if len(([]byte((*(*(struct {
346 }))(obj)).Channel))) > math.MaxUint16 {
350 x := uint16(len(([]byte((*(*(struct {
352 }))(obj)).Channel))))
353 write16(w, uint16(x))
356 _, err := w.Write(([]byte((*(*(struct {
358 }))(obj)).Channel))[:])
363 func (obj *ToSrvModChanLeave) deserialize(r io.Reader) {
370 (local7) = make([]uint8, local8)
372 _, err := io.ReadFull(r, (local7)[:])
377 }))(obj)).Channel) = string(local7)
380 func (obj *ToSrvModChanMsg) serialize(w io.Writer) {
381 if len(([]byte((*(*(struct {
384 }))(obj)).Channel))) > math.MaxUint16 {
388 x := uint16(len(([]byte((*(*(struct {
391 }))(obj)).Channel))))
392 write16(w, uint16(x))
395 _, err := w.Write(([]byte((*(*(struct {
398 }))(obj)).Channel))[:])
401 if len(([]byte((*(*(struct {
404 }))(obj)).Msg))) > math.MaxUint16 {
408 x := uint16(len(([]byte((*(*(struct {
412 write16(w, uint16(x))
415 _, err := w.Write(([]byte((*(*(struct {
423 func (obj *ToSrvModChanMsg) deserialize(r io.Reader) {
430 (local9) = make([]uint8, local10)
432 _, err := io.ReadFull(r, (local9)[:])
438 }))(obj)).Channel) = string(local9)
445 (local11) = make([]uint8, local12)
447 _, err := io.ReadFull(r, (local11)[:])
453 }))(obj)).Msg) = string(local11)
456 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
457 if err := pcall(func() {
460 }))(obj)).Pos).serialize(w)
465 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
469 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
470 if err := pcall(func() {
473 }))(obj)).Pos).deserialize(r)
478 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
482 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
483 if len(((*(*(struct {
486 }))(obj)).Blks)) > math.MaxUint8 {
490 x := uint8(len(((*(*(struct {
496 for local13 := range (*(*(struct {
500 for local14 := range ((*(*(struct {
503 }))(obj)).Blks)[local13] {
508 }))(obj)).Blks)[local13])[local14]
509 write16(w, uint16(x))
515 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
524 }))(obj)).Blks) = make([][3]int16, local15)
525 for local16 := range (*(*(struct {
529 for local17 := range ((*(*(struct {
532 }))(obj)).Blks)[local16] {
534 p := &(((*(*(struct {
537 }))(obj)).Blks)[local16])[local17]
538 *p = int16(read16(r))
544 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
545 if len(((*(*(struct {
548 }))(obj)).Blks)) > math.MaxUint8 {
552 x := uint8(len(((*(*(struct {
558 for local18 := range (*(*(struct {
562 for local19 := range ((*(*(struct {
565 }))(obj)).Blks)[local18] {
570 }))(obj)).Blks)[local18])[local19]
571 write16(w, uint16(x))
577 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
586 }))(obj)).Blks) = make([][3]int16, local20)
587 for local21 := range (*(*(struct {
591 for local22 := range ((*(*(struct {
594 }))(obj)).Blks)[local21] {
596 p := &(((*(*(struct {
599 }))(obj)).Blks)[local21])[local22]
600 *p = int16(read16(r))
606 func (obj *ToSrvInvAction) serialize(w io.Writer) {
608 _, err := w.Write(([]byte((*(*(struct {
611 }))(obj)).Action))[:])
616 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
620 err := pcall(func() {
629 (local23) = append((local23), local24)
635 }))(obj)).Action) = string(local23)
638 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
639 if len((utf16.Encode([]rune((*(*(struct {
642 }))(obj)).Msg)))) > math.MaxUint16 {
646 x := uint16(len((utf16.Encode([]rune((*(*(struct {
650 write16(w, uint16(x))
652 for local25 := range utf16.Encode([]rune((*(*(struct {
657 x := (utf16.Encode([]rune((*(*(struct {
660 }))(obj)).Msg)))[local25]
661 write16(w, uint16(x))
666 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
673 (local26) = make([]uint16, local27)
674 for local28 := range local26 {
676 p := &(local26)[local28]
683 }))(obj)).Msg = string(utf16.Decode(local26))
686 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
691 write16(w, uint16(x))
695 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
704 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
709 write16(w, uint16(x))
713 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
722 func (obj *ToSrvRespawn) serialize(w io.Writer) {
725 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
728 func (obj *ToSrvInteract) serialize(w io.Writer) {
729 if err := pcall(func() {
737 }))(obj)).Action).serialize(w)
742 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
753 write16(w, uint16(x))
757 w := new(bytes.Buffer)
767 chk(writePointedThing(w, x))
772 if len((buf.Bytes())) > math.MaxUint32 {
776 x := uint32(len((buf.Bytes())))
777 write32(w, uint32(x))
780 _, err := w.Write((buf.Bytes())[:])
785 if err := pcall(func() {
793 }))(obj)).Pos).serialize(w)
798 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
802 func (obj *ToSrvInteract) deserialize(r io.Reader) {
803 if err := pcall(func() {
811 }))(obj)).Action).deserialize(r)
816 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
835 r := &io.LimitedReader{r, int64(n)}
847 *p, err = readPointedThing(r)
852 chk(fmt.Errorf("%d bytes of trailing data", r.N))
855 if err := pcall(func() {
863 }))(obj)).Pos).deserialize(r)
868 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
872 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
873 if len(((*(*(struct {
875 }))(obj)).IDs)) > math.MaxUint16 {
879 x := uint16(len(((*(*(struct {
882 write16(w, uint16(x))
884 for local29 := range (*(*(struct {
887 if err := pcall(func() {
890 }))(obj)).IDs)[local29]).serialize(w)
895 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
900 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
908 }))(obj)).IDs) = make([]SoundID, local30)
909 for local31 := range (*(*(struct {
912 if err := pcall(func() {
915 }))(obj)).IDs)[local31]).deserialize(r)
920 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
925 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
926 for local32 := range (*(*(struct {
936 }))(obj)).Pos)[local32]
937 write16(w, uint16(x))
940 if len(([]byte((*(*(struct {
944 }))(obj)).Formname))) > math.MaxUint16 {
948 x := uint16(len(([]byte((*(*(struct {
952 }))(obj)).Formname))))
953 write16(w, uint16(x))
956 _, err := w.Write(([]byte((*(*(struct {
960 }))(obj)).Formname))[:])
963 if len(((*(*(struct {
967 }))(obj)).Fields)) > math.MaxUint16 {
971 x := uint16(len(((*(*(struct {
976 write16(w, uint16(x))
978 for local33 := range (*(*(struct {
983 if err := pcall(func() {
988 }))(obj)).Fields)[local33]).serialize(w)
993 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
998 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
999 for local34 := range (*(*(struct {
1005 p := &((*(*(struct {
1009 }))(obj)).Pos)[local34]
1010 *p = int16(read16(r))
1019 (local35) = make([]uint8, local36)
1021 _, err := io.ReadFull(r, (local35)[:])
1028 }))(obj)).Formname) = string(local35)
1038 }))(obj)).Fields) = make([]Field, local37)
1039 for local38 := range (*(*(struct {
1044 if err := pcall(func() {
1049 }))(obj)).Fields)[local38]).deserialize(r)
1054 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1059 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1060 if len(([]byte((*(*(struct {
1063 }))(obj)).Formname))) > math.MaxUint16 {
1067 x := uint16(len(([]byte((*(*(struct {
1070 }))(obj)).Formname))))
1071 write16(w, uint16(x))
1074 _, err := w.Write(([]byte((*(*(struct {
1077 }))(obj)).Formname))[:])
1080 if len(((*(*(struct {
1083 }))(obj)).Fields)) > math.MaxUint16 {
1087 x := uint16(len(((*(*(struct {
1091 write16(w, uint16(x))
1093 for local39 := range (*(*(struct {
1097 if err := pcall(func() {
1101 }))(obj)).Fields)[local39]).serialize(w)
1106 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1111 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1118 (local40) = make([]uint8, local41)
1120 _, err := io.ReadFull(r, (local40)[:])
1126 }))(obj)).Formname) = string(local40)
1135 }))(obj)).Fields) = make([]Field, local42)
1136 for local43 := range (*(*(struct {
1140 if err := pcall(func() {
1144 }))(obj)).Fields)[local43]).deserialize(r)
1149 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1154 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1155 if len(((*(*(struct {
1157 }))(obj)).Filenames)) > math.MaxUint16 {
1161 x := uint16(len(((*(*(struct {
1163 }))(obj)).Filenames)))
1164 write16(w, uint16(x))
1166 for local44 := range (*(*(struct {
1168 }))(obj)).Filenames {
1169 if len(([]byte(((*(*(struct {
1171 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1175 x := uint16(len(([]byte(((*(*(struct {
1177 }))(obj)).Filenames)[local44]))))
1178 write16(w, uint16(x))
1181 _, err := w.Write(([]byte(((*(*(struct {
1183 }))(obj)).Filenames)[local44]))[:])
1189 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1197 }))(obj)).Filenames) = make([]string, local45)
1198 for local46 := range (*(*(struct {
1200 }))(obj)).Filenames {
1207 (local47) = make([]uint8, local48)
1209 _, err := io.ReadFull(r, (local47)[:])
1214 }))(obj)).Filenames)[local46]) = string(local47)
1218 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1221 // Version information.
1222 Major, Minor, Patch uint8
1231 // Version information.
1232 Major, Minor, Patch uint8
1241 // Version information.
1242 Major, Minor, Patch uint8
1251 // Version information.
1252 Major, Minor, Patch uint8
1259 if len(([]byte((*(*(struct {
1260 // Version information.
1261 Major, Minor, Patch uint8
1265 }))(obj)).Version))) > math.MaxUint16 {
1269 x := uint16(len(([]byte((*(*(struct {
1270 // Version information.
1271 Major, Minor, Patch uint8
1275 }))(obj)).Version))))
1276 write16(w, uint16(x))
1279 _, err := w.Write(([]byte((*(*(struct {
1280 // Version information.
1281 Major, Minor, Patch uint8
1285 }))(obj)).Version))[:])
1290 // Version information.
1291 Major, Minor, Patch uint8
1296 write16(w, uint16(x))
1300 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1303 // Version information.
1304 Major, Minor, Patch uint8
1313 // Version information.
1314 Major, Minor, Patch uint8
1323 // Version information.
1324 Major, Minor, Patch uint8
1333 // Version information.
1334 Major, Minor, Patch uint8
1347 (local49) = make([]uint8, local50)
1349 _, err := io.ReadFull(r, (local49)[:])
1353 // Version information.
1354 Major, Minor, Patch uint8
1358 }))(obj)).Version) = string(local49)
1361 // Version information.
1362 Major, Minor, Patch uint8
1371 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1372 if len(((*(*(struct {
1376 }))(obj)).Salt)) > math.MaxUint16 {
1380 x := uint16(len(((*(*(struct {
1385 write16(w, uint16(x))
1388 _, err := w.Write(((*(*(struct {
1395 if len(((*(*(struct {
1399 }))(obj)).Verifier)) > math.MaxUint16 {
1403 x := uint16(len(((*(*(struct {
1407 }))(obj)).Verifier)))
1408 write16(w, uint16(x))
1411 _, err := w.Write(((*(*(struct {
1415 }))(obj)).Verifier)[:])
1423 }))(obj)).EmptyPasswd
1432 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1442 }))(obj)).Salt) = make([]byte, local51)
1444 _, err := io.ReadFull(r, ((*(*(struct {
1460 }))(obj)).Verifier) = make([]byte, local52)
1462 _, err := io.ReadFull(r, ((*(*(struct {
1466 }))(obj)).Verifier)[:])
1474 }))(obj)).EmptyPasswd
1475 switch n := read8(r); n {
1481 chk(fmt.Errorf("invalid bool: %d", n))
1486 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1487 if len(((*(*(struct {
1490 }))(obj)).A)) > math.MaxUint16 {
1494 x := uint16(len(((*(*(struct {
1498 write16(w, uint16(x))
1501 _, err := w.Write(((*(*(struct {
1520 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1529 }))(obj)).A) = make([]byte, local53)
1531 _, err := io.ReadFull(r, ((*(*(struct {
1542 switch n := read8(r); n {
1548 chk(fmt.Errorf("invalid bool: %d", n))
1553 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1554 if len(((*(*(struct {
1556 }))(obj)).M)) > math.MaxUint16 {
1560 x := uint16(len(((*(*(struct {
1563 write16(w, uint16(x))
1566 _, err := w.Write(((*(*(struct {
1573 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1581 }))(obj)).M) = make([]byte, local54)
1583 _, err := io.ReadFull(r, ((*(*(struct {
1590 func (obj *ToCltHello) serialize(w io.Writer) {
1594 Compression CompressionModes
1598 }))(obj)).SerializeVer
1601 if err := pcall(func() {
1604 Compression CompressionModes
1608 }))(obj)).Compression).serialize(w)
1613 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1618 Compression CompressionModes
1623 write16(w, uint16(x))
1625 if err := pcall(func() {
1628 Compression CompressionModes
1632 }))(obj)).AuthMethods).serialize(w)
1637 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1639 if len(([]byte((*(*(struct {
1641 Compression CompressionModes
1645 }))(obj)).Username))) > math.MaxUint16 {
1649 x := uint16(len(([]byte((*(*(struct {
1651 Compression CompressionModes
1655 }))(obj)).Username))))
1656 write16(w, uint16(x))
1659 _, err := w.Write(([]byte((*(*(struct {
1661 Compression CompressionModes
1665 }))(obj)).Username))[:])
1670 func (obj *ToCltHello) deserialize(r io.Reader) {
1674 Compression CompressionModes
1678 }))(obj)).SerializeVer
1681 if err := pcall(func() {
1684 Compression CompressionModes
1688 }))(obj)).Compression).deserialize(r)
1693 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1698 Compression CompressionModes
1705 if err := pcall(func() {
1708 Compression CompressionModes
1712 }))(obj)).AuthMethods).deserialize(r)
1717 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1725 (local55) = make([]uint8, local56)
1727 _, err := io.ReadFull(r, (local55)[:])
1732 Compression CompressionModes
1736 }))(obj)).Username) = string(local55)
1739 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1740 if err := pcall(func() {
1742 // The client does the equivalent of
1743 // PlayerPos[1] -= 5
1744 // before using PlayerPos.
1748 SendInterval float32
1749 SudoAuthMethods AuthMethods
1750 }))(obj)).PlayerPos).serialize(w)
1755 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1759 // The client does the equivalent of
1760 // PlayerPos[1] -= 5
1761 // before using PlayerPos.
1765 SendInterval float32
1766 SudoAuthMethods AuthMethods
1768 write64(w, uint64(x))
1772 // The client does the equivalent of
1773 // PlayerPos[1] -= 5
1774 // before using PlayerPos.
1778 SendInterval float32
1779 SudoAuthMethods AuthMethods
1780 }))(obj)).SendInterval
1781 write32(w, math.Float32bits(x))
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)).SudoAuthMethods).serialize(w)
1798 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1802 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1803 if err := pcall(func() {
1805 // The client does the equivalent of
1806 // PlayerPos[1] -= 5
1807 // before using PlayerPos.
1811 SendInterval float32
1812 SudoAuthMethods AuthMethods
1813 }))(obj)).PlayerPos).deserialize(r)
1818 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1822 // The client does the equivalent of
1823 // PlayerPos[1] -= 5
1824 // before using PlayerPos.
1828 SendInterval float32
1829 SudoAuthMethods AuthMethods
1835 // The client does the equivalent of
1836 // PlayerPos[1] -= 5
1837 // before using PlayerPos.
1841 SendInterval float32
1842 SudoAuthMethods AuthMethods
1843 }))(obj)).SendInterval
1844 *p = math.Float32frombits(read32(r))
1846 if err := pcall(func() {
1848 // The client does the equivalent of
1849 // PlayerPos[1] -= 5
1850 // before using PlayerPos.
1854 SendInterval float32
1855 SudoAuthMethods AuthMethods
1856 }))(obj)).SudoAuthMethods).deserialize(r)
1861 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1865 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1868 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1871 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1874 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1877 func (obj *ToCltDisco) serialize(w io.Writer) {
1878 if err := pcall(func() {
1882 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1885 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1887 }))(obj)).Reason).serialize(w)
1892 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DiscoReason", err))
1897 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1900 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1902 }))(obj)).Reason < maxDiscoReason) {
1903 chk(errors.New("assertion failed: %s.Reason < maxDiscoReason"))
1905 if dr := (*(*(struct {
1908 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1911 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1913 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1914 if len(([]byte((*(*(struct {
1917 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1920 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1922 }))(obj)).Custom))) > math.MaxUint16 {
1926 x := uint16(len(([]byte((*(*(struct {
1929 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1932 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1934 }))(obj)).Custom))))
1935 write16(w, uint16(x))
1938 _, err := w.Write(([]byte((*(*(struct {
1941 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1944 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1946 }))(obj)).Custom))[:])
1950 if dr := (*(*(struct {
1953 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1956 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1958 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1963 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1966 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1978 func (obj *ToCltDisco) deserialize(r io.Reader) {
1979 if err := pcall(func() {
1983 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1986 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1988 }))(obj)).Reason).deserialize(r)
1993 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DiscoReason", err))
1998 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2001 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2003 }))(obj)).Reason < maxDiscoReason) {
2004 chk(errors.New("assertion failed: %s.Reason < maxDiscoReason"))
2006 if dr := (*(*(struct {
2009 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2012 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2014 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2021 (local57) = make([]uint8, local58)
2023 _, err := io.ReadFull(r, (local57)[:])
2029 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2032 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2034 }))(obj)).Custom) = string(local57)
2036 if dr := (*(*(struct {
2039 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2042 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2044 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2049 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2052 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2055 switch n := read8(r); n {
2061 chk(fmt.Errorf("invalid bool: %d", n))
2067 func (obj *ToCltBlkData) serialize(w io.Writer) {
2068 for local59 := range (*(*(struct {
2076 }))(obj)).Blkpos)[local59]
2077 write16(w, uint16(x))
2080 if err := pcall(func() {
2084 }))(obj)).Blk).serialize(w)
2089 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2093 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2094 for local60 := range (*(*(struct {
2099 p := &((*(*(struct {
2102 }))(obj)).Blkpos)[local60]
2103 *p = int16(read16(r))
2106 if err := pcall(func() {
2110 }))(obj)).Blk).deserialize(r)
2115 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2119 func (obj *ToCltAddNode) serialize(w io.Writer) {
2120 for local61 := range (*(*(struct {
2130 }))(obj)).Pos)[local61]
2131 write16(w, uint16(x))
2134 if err := pcall(func() {
2139 }))(obj)).Node).serialize(w)
2144 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2160 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2161 for local62 := range (*(*(struct {
2167 p := &((*(*(struct {
2171 }))(obj)).Pos)[local62]
2172 *p = int16(read16(r))
2175 if err := pcall(func() {
2180 }))(obj)).Node).deserialize(r)
2185 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2193 switch n := read8(r); n {
2199 chk(fmt.Errorf("invalid bool: %d", n))
2204 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2205 for local63 := range (*(*(struct {
2211 }))(obj)).Pos)[local63]
2212 write16(w, uint16(x))
2217 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2218 for local64 := range (*(*(struct {
2222 p := &((*(*(struct {
2224 }))(obj)).Pos)[local64]
2225 *p = int16(read16(r))
2230 func (obj *ToCltInv) serialize(w io.Writer) {
2232 _, err := w.Write(([]byte((*(*(struct {
2240 func (obj *ToCltInv) deserialize(r io.Reader) {
2244 err := pcall(func() {
2253 (local65) = append((local65), local66)
2259 }))(obj)).Inv) = string(local65)
2262 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2265 Time uint16 // %24000
2266 Speed float32 // Speed times faster than real time
2268 write16(w, uint16(x))
2272 Time uint16 // %24000
2273 Speed float32 // Speed times faster than real time
2275 write32(w, math.Float32bits(x))
2279 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2282 Time uint16 // %24000
2283 Speed float32 // Speed times faster than real time
2289 Time uint16 // %24000
2290 Speed float32 // Speed times faster than real time
2292 *p = math.Float32frombits(read32(r))
2296 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2297 if err := pcall(func() {
2299 Flags CSMRestrictionFlags
2301 // MapRange is the maximum distance from the player CSMs can read the map
2302 // if Flags&LimitMapRange != 0.
2304 }))(obj)).Flags).serialize(w)
2309 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2313 Flags CSMRestrictionFlags
2315 // MapRange is the maximum distance from the player CSMs can read the map
2316 // if Flags&LimitMapRange != 0.
2319 write32(w, uint32(x))
2323 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2324 if err := pcall(func() {
2326 Flags CSMRestrictionFlags
2328 // MapRange is the maximum distance from the player CSMs can read the map
2329 // if Flags&LimitMapRange != 0.
2331 }))(obj)).Flags).deserialize(r)
2336 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2340 Flags CSMRestrictionFlags
2342 // MapRange is the maximum distance from the player CSMs can read the map
2343 // if Flags&LimitMapRange != 0.
2350 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2351 if err := pcall(func() {
2354 }))(obj)).Vel).serialize(w)
2359 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2363 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2364 if err := pcall(func() {
2367 }))(obj)).Vel).deserialize(r)
2372 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2376 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2378 local67 := uint16(sha1.Size)
2381 write16(w, uint16(x))
2385 _, err := w.Write(((*(*(struct {
2386 //mt:const uint16(sha1.Size)
2387 SHA1 [sha1.Size]byte
2396 if len(([]byte((*(*(struct {
2397 //mt:const uint16(sha1.Size)
2398 SHA1 [sha1.Size]byte
2404 }))(obj)).Filename))) > math.MaxUint16 {
2408 x := uint16(len(([]byte((*(*(struct {
2409 //mt:const uint16(sha1.Size)
2410 SHA1 [sha1.Size]byte
2416 }))(obj)).Filename))))
2417 write16(w, uint16(x))
2420 _, err := w.Write(([]byte((*(*(struct {
2421 //mt:const uint16(sha1.Size)
2422 SHA1 [sha1.Size]byte
2428 }))(obj)).Filename))[:])
2433 //mt:const uint16(sha1.Size)
2434 SHA1 [sha1.Size]byte
2440 }))(obj)).ShouldCache
2447 if len(((*(*(struct {
2448 //mt:const uint16(sha1.Size)
2449 SHA1 [sha1.Size]byte
2455 }))(obj)).Data)) > math.MaxUint32 {
2459 x := uint32(len(((*(*(struct {
2460 //mt:const uint16(sha1.Size)
2461 SHA1 [sha1.Size]byte
2468 write32(w, uint32(x))
2471 _, err := w.Write(((*(*(struct {
2472 //mt:const uint16(sha1.Size)
2473 SHA1 [sha1.Size]byte
2484 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2491 if local68 != (20) {
2492 chk(fmt.Errorf("const %v: %v", 20, local68))
2496 _, err := io.ReadFull(r, ((*(*(struct {
2497 //mt:const uint16(sha1.Size)
2498 SHA1 [sha1.Size]byte
2513 (local69) = make([]uint8, local70)
2515 _, err := io.ReadFull(r, (local69)[:])
2519 //mt:const uint16(sha1.Size)
2520 SHA1 [sha1.Size]byte
2526 }))(obj)).Filename) = string(local69)
2529 //mt:const uint16(sha1.Size)
2530 SHA1 [sha1.Size]byte
2536 }))(obj)).ShouldCache
2537 switch n := read8(r); n {
2543 chk(fmt.Errorf("invalid bool: %d", n))
2552 //mt:const uint16(sha1.Size)
2553 SHA1 [sha1.Size]byte
2559 }))(obj)).Data) = make([]byte, local71)
2561 _, err := io.ReadFull(r, ((*(*(struct {
2562 //mt:const uint16(sha1.Size)
2563 SHA1 [sha1.Size]byte
2574 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2582 if err := pcall(func() {
2589 Timestamp int64 // Unix time.
2590 }))(obj)).Type).serialize(w)
2595 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2597 if len((utf16.Encode([]rune((*(*(struct {
2603 Timestamp int64 // Unix time.
2604 }))(obj)).Sender)))) > math.MaxUint16 {
2608 x := uint16(len((utf16.Encode([]rune((*(*(struct {
2614 Timestamp int64 // Unix time.
2615 }))(obj)).Sender)))))
2616 write16(w, uint16(x))
2618 for local73 := range utf16.Encode([]rune((*(*(struct {
2624 Timestamp int64 // Unix time.
2625 }))(obj)).Sender)) {
2627 x := (utf16.Encode([]rune((*(*(struct {
2633 Timestamp int64 // Unix time.
2634 }))(obj)).Sender)))[local73]
2635 write16(w, uint16(x))
2638 if len((utf16.Encode([]rune((*(*(struct {
2644 Timestamp int64 // Unix time.
2645 }))(obj)).Text)))) > math.MaxUint16 {
2649 x := uint16(len((utf16.Encode([]rune((*(*(struct {
2655 Timestamp int64 // Unix time.
2657 write16(w, uint16(x))
2659 for local74 := range utf16.Encode([]rune((*(*(struct {
2665 Timestamp int64 // Unix time.
2668 x := (utf16.Encode([]rune((*(*(struct {
2674 Timestamp int64 // Unix time.
2675 }))(obj)).Text)))[local74]
2676 write16(w, uint16(x))
2686 Timestamp int64 // Unix time.
2688 write64(w, uint64(x))
2692 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2700 chk(fmt.Errorf("const %v: %v", 1, local75))
2703 if err := pcall(func() {
2710 Timestamp int64 // Unix time.
2711 }))(obj)).Type).deserialize(r)
2716 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2718 var local76 []uint16
2724 (local76) = make([]uint16, local77)
2725 for local78 := range local76 {
2727 p := &(local76)[local78]
2737 Timestamp int64 // Unix time.
2738 }))(obj)).Sender = string(utf16.Decode(local76))
2739 var local79 []uint16
2745 (local79) = make([]uint16, local80)
2746 for local81 := range local79 {
2748 p := &(local79)[local81]
2758 Timestamp int64 // Unix time.
2759 }))(obj)).Text = string(utf16.Decode(local79))
2767 Timestamp int64 // Unix time.
2769 *p = int64(read64(r))
2773 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2774 if len(((*(*(struct {
2778 //mt:const genericCAO
2782 }))(obj)).Remove)) > math.MaxUint16 {
2786 x := uint16(len(((*(*(struct {
2790 //mt:const genericCAO
2795 write16(w, uint16(x))
2797 for local82 := range (*(*(struct {
2801 //mt:const genericCAO
2806 if err := pcall(func() {
2811 //mt:const genericCAO
2815 }))(obj)).Remove)[local82]).serialize(w)
2820 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2823 if len(((*(*(struct {
2827 //mt:const genericCAO
2831 }))(obj)).Add)) > math.MaxUint16 {
2835 x := uint16(len(((*(*(struct {
2839 //mt:const genericCAO
2844 write16(w, uint16(x))
2846 for local83 := range (*(*(struct {
2850 //mt:const genericCAO
2855 if err := pcall(func() {
2860 //mt:const genericCAO
2864 }))(obj)).Add)[local83]).ID).serialize(w)
2869 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2872 local84 := genericCAO
2873 if err := pcall(func() {
2874 (local84).serialize(w)
2879 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
2884 w := new(bytes.Buffer)
2885 if err := pcall(func() {
2890 //mt:const genericCAO
2894 }))(obj)).Add)[local83]).InitData).serialize(w)
2899 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
2904 if len((buf.Bytes())) > math.MaxUint32 {
2908 x := uint32(len((buf.Bytes())))
2909 write32(w, uint32(x))
2912 _, err := w.Write((buf.Bytes())[:])
2920 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2930 //mt:const genericCAO
2934 }))(obj)).Remove) = make([]AOID, local85)
2935 for local86 := range (*(*(struct {
2939 //mt:const genericCAO
2944 if err := pcall(func() {
2949 //mt:const genericCAO
2953 }))(obj)).Remove)[local86]).deserialize(r)
2958 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2970 //mt:const genericCAO
2974 }))(obj)).Add) = make([]struct {
2978 for local88 := range (*(*(struct {
2982 //mt:const genericCAO
2987 if err := pcall(func() {
2992 //mt:const genericCAO
2996 }))(obj)).Add)[local88]).ID).deserialize(r)
3001 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
3005 if err := pcall(func() {
3006 (local89).deserialize(r)
3011 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
3013 if local89 != (101) {
3014 chk(fmt.Errorf("const %v: %v", 101, local89))
3023 r := &io.LimitedReader{r, int64(n)}
3024 if err := pcall(func() {
3029 //mt:const genericCAO
3033 }))(obj)).Add)[local88]).InitData).deserialize(r)
3038 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
3041 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3047 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
3048 for local90 := range (*(*(struct {
3052 if err := pcall(func() {
3056 }))(obj)).Msgs)[local90]).serialize(w)
3061 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
3066 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
3069 err := pcall(func() {
3070 if err := pcall(func() {
3071 (local91).deserialize(r)
3076 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
3085 }))(obj)).Msgs) = append(((*(*(struct {
3088 }))(obj)).Msgs), local91)
3093 func (obj *ToCltHP) serialize(w io.Writer) {
3098 write16(w, uint16(x))
3102 func (obj *ToCltHP) deserialize(r io.Reader) {
3111 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
3112 if err := pcall(func() {
3116 }))(obj)).Pos).serialize(w)
3121 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3128 write32(w, math.Float32bits(x))
3135 write32(w, math.Float32bits(x))
3139 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
3140 if err := pcall(func() {
3144 }))(obj)).Pos).deserialize(r)
3149 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3156 *p = math.Float32frombits(read32(r))
3163 *p = math.Float32frombits(read32(r))
3167 func (obj *ToCltDiscoLegacy) serialize(w io.Writer) {
3168 if len((utf16.Encode([]rune((*(*(struct {
3171 }))(obj)).Reason)))) > math.MaxUint16 {
3175 x := uint16(len((utf16.Encode([]rune((*(*(struct {
3178 }))(obj)).Reason)))))
3179 write16(w, uint16(x))
3181 for local92 := range utf16.Encode([]rune((*(*(struct {
3184 }))(obj)).Reason)) {
3186 x := (utf16.Encode([]rune((*(*(struct {
3189 }))(obj)).Reason)))[local92]
3190 write16(w, uint16(x))
3195 func (obj *ToCltDiscoLegacy) deserialize(r io.Reader) {
3196 var local93 []uint16
3202 (local93) = make([]uint16, local94)
3203 for local95 := range local93 {
3205 p := &(local93)[local95]
3212 }))(obj)).Reason = string(utf16.Decode(local93))
3215 func (obj *ToCltFOV) serialize(w io.Writer) {
3220 TransitionTime float32
3222 write32(w, math.Float32bits(x))
3228 TransitionTime float32
3229 }))(obj)).Multiplier
3240 TransitionTime float32
3241 }))(obj)).TransitionTime
3242 write32(w, math.Float32bits(x))
3246 func (obj *ToCltFOV) deserialize(r io.Reader) {
3251 TransitionTime float32
3253 *p = math.Float32frombits(read32(r))
3259 TransitionTime float32
3260 }))(obj)).Multiplier
3261 switch n := read8(r); n {
3267 chk(fmt.Errorf("invalid bool: %d", n))
3274 TransitionTime float32
3275 }))(obj)).TransitionTime
3276 *p = math.Float32frombits(read32(r))
3280 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3292 if err := pcall(func() {
3296 }))(obj)).PointAt).serialize(w)
3301 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3305 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3311 switch n := read8(r); n {
3317 chk(fmt.Errorf("invalid bool: %d", n))
3320 if err := pcall(func() {
3324 }))(obj)).PointAt).deserialize(r)
3329 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3333 func (obj *ToCltMedia) serialize(w io.Writer) {
3336 // N is the total number of ToCltMedia packets.
3337 // I is the index of this packet.
3348 write16(w, uint16(x))
3352 // N is the total number of ToCltMedia packets.
3353 // I is the index of this packet.
3364 write16(w, uint16(x))
3366 if len(((*(*(struct {
3367 // N is the total number of ToCltMedia packets.
3368 // I is the index of this packet.
3378 }))(obj)).Files)) > math.MaxUint32 {
3382 x := uint32(len(((*(*(struct {
3383 // N is the total number of ToCltMedia packets.
3384 // I is the index of this packet.
3395 write32(w, uint32(x))
3397 for local96 := range (*(*(struct {
3398 // N is the total number of ToCltMedia packets.
3399 // I is the index of this packet.
3410 if len(([]byte((((*(*(struct {
3411 // N is the total number of ToCltMedia packets.
3412 // I is the index of this packet.
3422 }))(obj)).Files)[local96]).Name))) > math.MaxUint16 {
3426 x := uint16(len(([]byte((((*(*(struct {
3427 // N is the total number of ToCltMedia packets.
3428 // I is the index of this packet.
3438 }))(obj)).Files)[local96]).Name))))
3439 write16(w, uint16(x))
3442 _, err := w.Write(([]byte((((*(*(struct {
3443 // N is the total number of ToCltMedia packets.
3444 // I is the index of this packet.
3454 }))(obj)).Files)[local96]).Name))[:])
3457 if len(((((*(*(struct {
3458 // N is the total number of ToCltMedia packets.
3459 // I is the index of this packet.
3469 }))(obj)).Files)[local96]).Data)) > math.MaxUint32 {
3473 x := uint32(len(((((*(*(struct {
3474 // N is the total number of ToCltMedia packets.
3475 // I is the index of this packet.
3485 }))(obj)).Files)[local96]).Data)))
3486 write32(w, uint32(x))
3489 _, err := w.Write(((((*(*(struct {
3490 // N is the total number of ToCltMedia packets.
3491 // I is the index of this packet.
3501 }))(obj)).Files)[local96]).Data)[:])
3507 func (obj *ToCltMedia) deserialize(r io.Reader) {
3510 // N is the total number of ToCltMedia packets.
3511 // I is the index of this packet.
3526 // N is the total number of ToCltMedia packets.
3527 // I is the index of this packet.
3546 // N is the total number of ToCltMedia packets.
3547 // I is the index of this packet.
3557 }))(obj)).Files) = make([]struct {
3561 for local98 := range (*(*(struct {
3562 // N is the total number of ToCltMedia packets.
3563 // I is the index of this packet.
3580 (local99) = make([]uint8, local100)
3582 _, err := io.ReadFull(r, (local99)[:])
3586 // N is the total number of ToCltMedia packets.
3587 // I is the index of this packet.
3597 }))(obj)).Files)[local98]).Name) = string(local99)
3604 // N is the total number of ToCltMedia packets.
3605 // I is the index of this packet.
3615 }))(obj)).Files)[local98]).Data) = make([]byte, local101)
3617 _, err := io.ReadFull(r, ((((*(*(struct {
3618 // N is the total number of ToCltMedia packets.
3619 // I is the index of this packet.
3629 }))(obj)).Files)[local98]).Data)[:])
3635 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3638 w := new(bytes.Buffer)
3640 w := zlib.NewWriter(w)
3642 local102 := uint8(1)
3651 // See (de)serialize.fmt.
3654 { // For ToCltNodeDefs.Defs
3655 if len(x) > math.MaxUint16 {
3658 write16(w, uint16(len(x)))
3663 if b.Len() > math.MaxUint32 {
3666 write32(w, uint32(b.Len()))
3667 _, err := b.WriteTo(w)
3676 if len((buf.Bytes())) > math.MaxUint32 {
3680 x := uint32(len((buf.Bytes())))
3681 write32(w, uint32(x))
3684 _, err := w.Write((buf.Bytes())[:])
3691 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3698 r := &io.LimitedReader{r, int64(n)}
3700 r, err := zlib.NewReader(byteReader{r})
3708 if local103 != (1) {
3709 chk(fmt.Errorf("const %v: %v", 1, local103))
3715 // See (de)serialize.fmt.
3718 { // For ToCltNodeDefs.Defs.
3719 *p = make([]NodeDef, read16(r))
3720 r := &io.LimitedReader{r, int64(read32(r))}
3722 (*p)[i].deserialize(r)
3725 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3732 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3737 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3738 if len(((*(*(struct {
3744 }))(obj)).Files)) > math.MaxUint16 {
3748 x := uint16(len(((*(*(struct {
3755 write16(w, uint16(x))
3757 for local104 := range (*(*(struct {
3764 if len(([]byte((((*(*(struct {
3770 }))(obj)).Files)[local104]).Name))) > math.MaxUint16 {
3774 x := uint16(len(([]byte((((*(*(struct {
3780 }))(obj)).Files)[local104]).Name))))
3781 write16(w, uint16(x))
3784 _, err := w.Write(([]byte((((*(*(struct {
3790 }))(obj)).Files)[local104]).Name))[:])
3793 if len(([]byte((((*(*(struct {
3799 }))(obj)).Files)[local104]).Base64SHA1))) > math.MaxUint16 {
3803 x := uint16(len(([]byte((((*(*(struct {
3809 }))(obj)).Files)[local104]).Base64SHA1))))
3810 write16(w, uint16(x))
3813 _, err := w.Write(([]byte((((*(*(struct {
3819 }))(obj)).Files)[local104]).Base64SHA1))[:])
3823 if len(([]byte((*(*(struct {
3829 }))(obj)).URL))) > math.MaxUint16 {
3833 x := uint16(len(([]byte((*(*(struct {
3840 write16(w, uint16(x))
3843 _, err := w.Write(([]byte((*(*(struct {
3854 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3866 }))(obj)).Files) = make([]struct {
3870 for local106 := range (*(*(struct {
3877 var local107 []uint8
3883 (local107) = make([]uint8, local108)
3885 _, err := io.ReadFull(r, (local107)[:])
3894 }))(obj)).Files)[local106]).Name) = string(local107)
3895 var local109 []uint8
3901 (local109) = make([]uint8, local110)
3903 _, err := io.ReadFull(r, (local109)[:])
3912 }))(obj)).Files)[local106]).Base64SHA1) = string(local109)
3914 var local111 []uint8
3920 (local111) = make([]uint8, local112)
3922 _, err := io.ReadFull(r, (local111)[:])
3931 }))(obj)).URL) = string(local111)
3934 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3937 w := new(bytes.Buffer)
3939 w := zlib.NewWriter(w)
3941 local113 := uint8(0)
3947 if len(((*(*(struct {
3949 Aliases []struct{ Alias, Orig string }
3950 }))(obj)).Defs)) > math.MaxUint16 {
3954 x := uint16(len(((*(*(struct {
3956 Aliases []struct{ Alias, Orig string }
3958 write16(w, uint16(x))
3960 for local114 := range (*(*(struct {
3962 Aliases []struct{ Alias, Orig string }
3964 if err := pcall(func() {
3967 Aliases []struct{ Alias, Orig string }
3968 }))(obj)).Defs)[local114]).serialize(w)
3973 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3976 if len(((*(*(struct {
3978 Aliases []struct{ Alias, Orig string }
3979 }))(obj)).Aliases)) > math.MaxUint16 {
3983 x := uint16(len(((*(*(struct {
3985 Aliases []struct{ Alias, Orig string }
3986 }))(obj)).Aliases)))
3987 write16(w, uint16(x))
3989 for local115 := range (*(*(struct {
3991 Aliases []struct{ Alias, Orig string }
3993 if len(([]byte((((*(*(struct {
3995 Aliases []struct{ Alias, Orig string }
3996 }))(obj)).Aliases)[local115]).Alias))) > math.MaxUint16 {
4000 x := uint16(len(([]byte((((*(*(struct {
4002 Aliases []struct{ Alias, Orig string }
4003 }))(obj)).Aliases)[local115]).Alias))))
4004 write16(w, uint16(x))
4007 _, err := w.Write(([]byte((((*(*(struct {
4009 Aliases []struct{ Alias, Orig string }
4010 }))(obj)).Aliases)[local115]).Alias))[:])
4013 if len(([]byte((((*(*(struct {
4015 Aliases []struct{ Alias, Orig string }
4016 }))(obj)).Aliases)[local115]).Orig))) > math.MaxUint16 {
4020 x := uint16(len(([]byte((((*(*(struct {
4022 Aliases []struct{ Alias, Orig string }
4023 }))(obj)).Aliases)[local115]).Orig))))
4024 write16(w, uint16(x))
4027 _, err := w.Write(([]byte((((*(*(struct {
4029 Aliases []struct{ Alias, Orig string }
4030 }))(obj)).Aliases)[local115]).Orig))[:])
4039 if len((buf.Bytes())) > math.MaxUint32 {
4043 x := uint32(len((buf.Bytes())))
4044 write32(w, uint32(x))
4047 _, err := w.Write((buf.Bytes())[:])
4054 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
4061 r := &io.LimitedReader{r, int64(n)}
4063 r, err := zlib.NewReader(byteReader{r})
4071 if local116 != (0) {
4072 chk(fmt.Errorf("const %v: %v", 0, local116))
4082 Aliases []struct{ Alias, Orig string }
4083 }))(obj)).Defs) = make([]ItemDef, local117)
4084 for local118 := range (*(*(struct {
4086 Aliases []struct{ Alias, Orig string }
4088 if err := pcall(func() {
4091 Aliases []struct{ Alias, Orig string }
4092 }))(obj)).Defs)[local118]).deserialize(r)
4097 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
4107 Aliases []struct{ Alias, Orig string }
4108 }))(obj)).Aliases) = make([]struct {
4112 for local120 := range (*(*(struct {
4114 Aliases []struct{ Alias, Orig string }
4116 var local121 []uint8
4122 (local121) = make([]uint8, local122)
4124 _, err := io.ReadFull(r, (local121)[:])
4129 Aliases []struct{ Alias, Orig string }
4130 }))(obj)).Aliases)[local120]).Alias) = string(local121)
4131 var local123 []uint8
4137 (local123) = make([]uint8, local124)
4139 _, err := io.ReadFull(r, (local123)[:])
4144 Aliases []struct{ Alias, Orig string }
4145 }))(obj)).Aliases)[local120]).Orig) = string(local123)
4150 chk(fmt.Errorf("%d bytes of trailing data", r.N))
4155 func (obj *ToCltPlaySound) serialize(w io.Writer) {
4156 if err := pcall(func() {
4161 SrcType SoundSrcType
4168 }))(obj)).ID).serialize(w)
4173 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4175 if len(([]byte((*(*(struct {
4179 SrcType SoundSrcType
4186 }))(obj)).Name))) > math.MaxUint16 {
4190 x := uint16(len(([]byte((*(*(struct {
4194 SrcType SoundSrcType
4202 write16(w, uint16(x))
4205 _, err := w.Write(([]byte((*(*(struct {
4209 SrcType SoundSrcType
4216 }))(obj)).Name))[:])
4224 SrcType SoundSrcType
4232 write32(w, math.Float32bits(x))
4234 if err := pcall(func() {
4239 SrcType SoundSrcType
4246 }))(obj)).SrcType).serialize(w)
4251 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4253 if err := pcall(func() {
4258 SrcType SoundSrcType
4265 }))(obj)).Pos).serialize(w)
4270 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4272 if err := pcall(func() {
4277 SrcType SoundSrcType
4284 }))(obj)).SrcAOID).serialize(w)
4289 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4296 SrcType SoundSrcType
4315 SrcType SoundSrcType
4323 write32(w, math.Float32bits(x))
4330 SrcType SoundSrcType
4338 write32(w, math.Float32bits(x))
4345 SrcType SoundSrcType
4361 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4362 if err := pcall(func() {
4367 SrcType SoundSrcType
4374 }))(obj)).ID).deserialize(r)
4379 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4381 var local125 []uint8
4387 (local125) = make([]uint8, local126)
4389 _, err := io.ReadFull(r, (local125)[:])
4396 SrcType SoundSrcType
4403 }))(obj)).Name) = string(local125)
4409 SrcType SoundSrcType
4417 *p = math.Float32frombits(read32(r))
4419 if err := pcall(func() {
4424 SrcType SoundSrcType
4431 }))(obj)).SrcType).deserialize(r)
4436 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4438 if err := pcall(func() {
4443 SrcType SoundSrcType
4450 }))(obj)).Pos).deserialize(r)
4455 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4457 if err := pcall(func() {
4462 SrcType SoundSrcType
4469 }))(obj)).SrcAOID).deserialize(r)
4474 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4481 SrcType SoundSrcType
4489 switch n := read8(r); n {
4495 chk(fmt.Errorf("invalid bool: %d", n))
4503 SrcType SoundSrcType
4511 *p = math.Float32frombits(read32(r))
4518 SrcType SoundSrcType
4526 *p = math.Float32frombits(read32(r))
4533 SrcType SoundSrcType
4541 switch n := read8(r); n {
4547 chk(fmt.Errorf("invalid bool: %d", n))
4552 func (obj *ToCltStopSound) serialize(w io.Writer) {
4553 if err := pcall(func() {
4556 }))(obj)).ID).serialize(w)
4561 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4565 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4566 if err := pcall(func() {
4569 }))(obj)).ID).deserialize(r)
4574 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4578 func (obj *ToCltPrivs) serialize(w io.Writer) {
4579 if len(((*(*(struct {
4581 }))(obj)).Privs)) > math.MaxUint16 {
4585 x := uint16(len(((*(*(struct {
4588 write16(w, uint16(x))
4590 for local127 := range (*(*(struct {
4593 if len(([]byte(((*(*(struct {
4595 }))(obj)).Privs)[local127]))) > math.MaxUint16 {
4599 x := uint16(len(([]byte(((*(*(struct {
4601 }))(obj)).Privs)[local127]))))
4602 write16(w, uint16(x))
4605 _, err := w.Write(([]byte(((*(*(struct {
4607 }))(obj)).Privs)[local127]))[:])
4613 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4621 }))(obj)).Privs) = make([]string, local128)
4622 for local129 := range (*(*(struct {
4625 var local130 []uint8
4631 (local130) = make([]uint8, local131)
4633 _, err := io.ReadFull(r, (local130)[:])
4638 }))(obj)).Privs)[local129]) = string(local130)
4642 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4643 if len(([]byte((*(*(struct {
4646 }))(obj)).Formspec))) > math.MaxUint32 {
4650 x := uint32(len(([]byte((*(*(struct {
4653 }))(obj)).Formspec))))
4654 write32(w, uint32(x))
4657 _, err := w.Write(([]byte((*(*(struct {
4660 }))(obj)).Formspec))[:])
4665 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4666 var local132 []uint8
4672 (local132) = make([]uint8, local133)
4674 _, err := io.ReadFull(r, (local132)[:])
4680 }))(obj)).Formspec) = string(local132)
4683 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4684 if len(([]byte((*(*(struct {
4687 Len uint16 // deprecated
4691 }))(obj)).Name))) > math.MaxUint16 {
4695 x := uint16(len(([]byte((*(*(struct {
4698 Len uint16 // deprecated
4703 write16(w, uint16(x))
4706 _, err := w.Write(([]byte((*(*(struct {
4709 Len uint16 // deprecated
4713 }))(obj)).Name))[:])
4720 Len uint16 // deprecated
4735 Len uint16 // deprecated
4740 write16(w, uint16(x))
4743 _, err := w.Write(([]byte((*(*(struct {
4746 Len uint16 // deprecated
4755 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4756 var local134 []uint8
4762 (local134) = make([]uint8, local135)
4764 _, err := io.ReadFull(r, (local134)[:])
4770 Len uint16 // deprecated
4774 }))(obj)).Name) = string(local134)
4779 Len uint16 // deprecated
4784 switch n := read8(r); n {
4790 chk(fmt.Errorf("invalid bool: %d", n))
4797 Len uint16 // deprecated
4804 var local136 []uint8
4807 err := pcall(func() {
4816 (local136) = append((local136), local137)
4822 Len uint16 // deprecated
4826 }))(obj)).Inv) = string(local136)
4829 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4830 if len(([]byte((*(*(struct {
4835 }))(obj)).Formspec))) > math.MaxUint32 {
4839 x := uint32(len(([]byte((*(*(struct {
4844 }))(obj)).Formspec))))
4845 write32(w, uint32(x))
4848 _, err := w.Write(([]byte((*(*(struct {
4853 }))(obj)).Formspec))[:])
4856 if len(([]byte((*(*(struct {
4861 }))(obj)).Formname))) > math.MaxUint16 {
4865 x := uint16(len(([]byte((*(*(struct {
4870 }))(obj)).Formname))))
4871 write16(w, uint16(x))
4874 _, err := w.Write(([]byte((*(*(struct {
4879 }))(obj)).Formname))[:])
4884 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4885 var local138 []uint8
4891 (local138) = make([]uint8, local139)
4893 _, err := io.ReadFull(r, (local138)[:])
4901 }))(obj)).Formspec) = string(local138)
4902 var local140 []uint8
4908 (local140) = make([]uint8, local141)
4910 _, err := io.ReadFull(r, (local140)[:])
4918 }))(obj)).Formname) = string(local140)
4921 func (obj *ToCltMovement) serialize(w io.Writer) {
4924 DefaultAccel, AirAccel, FastAccel,
4925 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4926 Fluidity, Smoothing, Sink,
4928 }))(obj)).DefaultAccel
4929 write32(w, math.Float32bits(x))
4933 DefaultAccel, AirAccel, FastAccel,
4934 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4935 Fluidity, Smoothing, Sink,
4938 write32(w, math.Float32bits(x))
4942 DefaultAccel, AirAccel, FastAccel,
4943 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4944 Fluidity, Smoothing, Sink,
4947 write32(w, math.Float32bits(x))
4951 DefaultAccel, AirAccel, FastAccel,
4952 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4953 Fluidity, Smoothing, Sink,
4956 write32(w, math.Float32bits(x))
4960 DefaultAccel, AirAccel, FastAccel,
4961 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4962 Fluidity, Smoothing, Sink,
4964 }))(obj)).CrouchSpeed
4965 write32(w, math.Float32bits(x))
4969 DefaultAccel, AirAccel, FastAccel,
4970 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4971 Fluidity, Smoothing, Sink,
4974 write32(w, math.Float32bits(x))
4978 DefaultAccel, AirAccel, FastAccel,
4979 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4980 Fluidity, Smoothing, Sink,
4982 }))(obj)).ClimbSpeed
4983 write32(w, math.Float32bits(x))
4987 DefaultAccel, AirAccel, FastAccel,
4988 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4989 Fluidity, Smoothing, Sink,
4992 write32(w, math.Float32bits(x))
4996 DefaultAccel, AirAccel, FastAccel,
4997 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4998 Fluidity, Smoothing, Sink,
5001 write32(w, math.Float32bits(x))
5005 DefaultAccel, AirAccel, FastAccel,
5006 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5007 Fluidity, Smoothing, Sink,
5010 write32(w, math.Float32bits(x))
5014 DefaultAccel, AirAccel, FastAccel,
5015 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5016 Fluidity, Smoothing, Sink,
5019 write32(w, math.Float32bits(x))
5023 DefaultAccel, AirAccel, FastAccel,
5024 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5025 Fluidity, Smoothing, Sink,
5028 write32(w, math.Float32bits(x))
5032 func (obj *ToCltMovement) deserialize(r io.Reader) {
5035 DefaultAccel, AirAccel, FastAccel,
5036 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5037 Fluidity, Smoothing, Sink,
5039 }))(obj)).DefaultAccel
5040 *p = math.Float32frombits(read32(r))
5044 DefaultAccel, AirAccel, FastAccel,
5045 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5046 Fluidity, Smoothing, Sink,
5049 *p = math.Float32frombits(read32(r))
5053 DefaultAccel, AirAccel, FastAccel,
5054 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5055 Fluidity, Smoothing, Sink,
5058 *p = math.Float32frombits(read32(r))
5062 DefaultAccel, AirAccel, FastAccel,
5063 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5064 Fluidity, Smoothing, Sink,
5067 *p = math.Float32frombits(read32(r))
5071 DefaultAccel, AirAccel, FastAccel,
5072 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5073 Fluidity, Smoothing, Sink,
5075 }))(obj)).CrouchSpeed
5076 *p = math.Float32frombits(read32(r))
5080 DefaultAccel, AirAccel, FastAccel,
5081 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5082 Fluidity, Smoothing, Sink,
5085 *p = math.Float32frombits(read32(r))
5089 DefaultAccel, AirAccel, FastAccel,
5090 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5091 Fluidity, Smoothing, Sink,
5093 }))(obj)).ClimbSpeed
5094 *p = math.Float32frombits(read32(r))
5098 DefaultAccel, AirAccel, FastAccel,
5099 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5100 Fluidity, Smoothing, Sink,
5103 *p = math.Float32frombits(read32(r))
5107 DefaultAccel, AirAccel, FastAccel,
5108 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5109 Fluidity, Smoothing, Sink,
5112 *p = math.Float32frombits(read32(r))
5116 DefaultAccel, AirAccel, FastAccel,
5117 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5118 Fluidity, Smoothing, Sink,
5121 *p = math.Float32frombits(read32(r))
5125 DefaultAccel, AirAccel, FastAccel,
5126 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5127 Fluidity, Smoothing, Sink,
5130 *p = math.Float32frombits(read32(r))
5134 DefaultAccel, AirAccel, FastAccel,
5135 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
5136 Fluidity, Smoothing, Sink,
5139 *p = math.Float32frombits(read32(r))
5143 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
5144 for local142 := range (*(*(struct {
5145 Pos, Vel, Acc [3]float32
5146 ExpirationTime float32 // in seconds.
5164 Pos, Vel, Acc [3]float32
5165 ExpirationTime float32 // in seconds.
5180 }))(obj)).Pos)[local142]
5181 write32(w, math.Float32bits(x))
5184 for local143 := range (*(*(struct {
5185 Pos, Vel, Acc [3]float32
5186 ExpirationTime float32 // in seconds.
5204 Pos, Vel, Acc [3]float32
5205 ExpirationTime float32 // in seconds.
5220 }))(obj)).Vel)[local143]
5221 write32(w, math.Float32bits(x))
5224 for local144 := range (*(*(struct {
5225 Pos, Vel, Acc [3]float32
5226 ExpirationTime float32 // in seconds.
5244 Pos, Vel, Acc [3]float32
5245 ExpirationTime float32 // in seconds.
5260 }))(obj)).Acc)[local144]
5261 write32(w, math.Float32bits(x))
5266 Pos, Vel, Acc [3]float32
5267 ExpirationTime float32 // in seconds.
5282 }))(obj)).ExpirationTime
5283 write32(w, math.Float32bits(x))
5287 Pos, Vel, Acc [3]float32
5288 ExpirationTime float32 // in seconds.
5304 write32(w, math.Float32bits(x))
5308 Pos, Vel, Acc [3]float32
5309 ExpirationTime float32 // in seconds.
5331 if len(([]byte(*(*string)(&((*(*(struct {
5332 Pos, Vel, Acc [3]float32
5333 ExpirationTime float32 // in seconds.
5348 }))(obj)).Texture))))) > math.MaxUint32 {
5352 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5353 Pos, Vel, Acc [3]float32
5354 ExpirationTime float32 // in seconds.
5369 }))(obj)).Texture))))))
5370 write32(w, uint32(x))
5373 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5374 Pos, Vel, Acc [3]float32
5375 ExpirationTime float32 // in seconds.
5390 }))(obj)).Texture))))[:])
5395 Pos, Vel, Acc [3]float32
5396 ExpirationTime float32 // in seconds.
5420 Pos, Vel, Acc [3]float32
5421 ExpirationTime float32 // in seconds.
5436 }))(obj)).CollisionRm
5443 if err := pcall(func() {
5445 Pos, Vel, Acc [3]float32
5446 ExpirationTime float32 // in seconds.
5461 }))(obj)).AnimParams).serialize(w)
5466 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5470 Pos, Vel, Acc [3]float32
5471 ExpirationTime float32 // in seconds.
5491 Pos, Vel, Acc [3]float32
5492 ExpirationTime float32 // in seconds.
5507 }))(obj)).AOCollision
5514 if err := pcall(func() {
5516 Pos, Vel, Acc [3]float32
5517 ExpirationTime float32 // in seconds.
5532 }))(obj)).NodeParam0).serialize(w)
5537 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5541 Pos, Vel, Acc [3]float32
5542 ExpirationTime float32 // in seconds.
5557 }))(obj)).NodeParam2
5562 Pos, Vel, Acc [3]float32
5563 ExpirationTime float32 // in seconds.
5583 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5584 for local145 := range (*(*(struct {
5585 Pos, Vel, Acc [3]float32
5586 ExpirationTime float32 // in seconds.
5603 p := &((*(*(struct {
5604 Pos, Vel, Acc [3]float32
5605 ExpirationTime float32 // in seconds.
5620 }))(obj)).Pos)[local145]
5621 *p = math.Float32frombits(read32(r))
5624 for local146 := range (*(*(struct {
5625 Pos, Vel, Acc [3]float32
5626 ExpirationTime float32 // in seconds.
5643 p := &((*(*(struct {
5644 Pos, Vel, Acc [3]float32
5645 ExpirationTime float32 // in seconds.
5660 }))(obj)).Vel)[local146]
5661 *p = math.Float32frombits(read32(r))
5664 for local147 := range (*(*(struct {
5665 Pos, Vel, Acc [3]float32
5666 ExpirationTime float32 // in seconds.
5683 p := &((*(*(struct {
5684 Pos, Vel, Acc [3]float32
5685 ExpirationTime float32 // in seconds.
5700 }))(obj)).Acc)[local147]
5701 *p = math.Float32frombits(read32(r))
5706 Pos, Vel, Acc [3]float32
5707 ExpirationTime float32 // in seconds.
5722 }))(obj)).ExpirationTime
5723 *p = math.Float32frombits(read32(r))
5727 Pos, Vel, Acc [3]float32
5728 ExpirationTime float32 // in seconds.
5744 *p = math.Float32frombits(read32(r))
5748 Pos, Vel, Acc [3]float32
5749 ExpirationTime float32 // in seconds.
5765 switch n := read8(r); n {
5771 chk(fmt.Errorf("invalid bool: %d", n))
5774 var local148 []uint8
5780 (local148) = make([]uint8, local149)
5782 _, err := io.ReadFull(r, (local148)[:])
5785 (*(*string)(&((*(*(struct {
5786 Pos, Vel, Acc [3]float32
5787 ExpirationTime float32 // in seconds.
5802 }))(obj)).Texture))) = string(local148)
5805 Pos, Vel, Acc [3]float32
5806 ExpirationTime float32 // in seconds.
5822 switch n := read8(r); n {
5828 chk(fmt.Errorf("invalid bool: %d", n))
5833 Pos, Vel, Acc [3]float32
5834 ExpirationTime float32 // in seconds.
5849 }))(obj)).CollisionRm
5850 switch n := read8(r); n {
5856 chk(fmt.Errorf("invalid bool: %d", n))
5859 if err := pcall(func() {
5861 Pos, Vel, Acc [3]float32
5862 ExpirationTime float32 // in seconds.
5877 }))(obj)).AnimParams).deserialize(r)
5882 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5886 Pos, Vel, Acc [3]float32
5887 ExpirationTime float32 // in seconds.
5907 Pos, Vel, Acc [3]float32
5908 ExpirationTime float32 // in seconds.
5923 }))(obj)).AOCollision
5924 switch n := read8(r); n {
5930 chk(fmt.Errorf("invalid bool: %d", n))
5933 if err := pcall(func() {
5935 Pos, Vel, Acc [3]float32
5936 ExpirationTime float32 // in seconds.
5951 }))(obj)).NodeParam0).deserialize(r)
5956 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5960 Pos, Vel, Acc [3]float32
5961 ExpirationTime float32 // in seconds.
5976 }))(obj)).NodeParam2
5981 Pos, Vel, Acc [3]float32
5982 ExpirationTime float32 // in seconds.
6002 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
6007 Pos, Vel, Acc [2][3]float32
6008 ExpirationTime [2]float32 // in seconds.
6015 ID ParticleSpawnerID
6026 write16(w, uint16(x))
6032 Pos, Vel, Acc [2][3]float32
6033 ExpirationTime [2]float32 // in seconds.
6040 ID ParticleSpawnerID
6051 write32(w, math.Float32bits(x))
6053 for local150 := range (*(*(struct {
6056 Pos, Vel, Acc [2][3]float32
6057 ExpirationTime [2]float32 // in seconds.
6064 ID ParticleSpawnerID
6075 for local151 := range ((*(*(struct {
6078 Pos, Vel, Acc [2][3]float32
6079 ExpirationTime [2]float32 // in seconds.
6086 ID ParticleSpawnerID
6096 }))(obj)).Pos)[local150] {
6098 x := (((*(*(struct {
6101 Pos, Vel, Acc [2][3]float32
6102 ExpirationTime [2]float32 // in seconds.
6109 ID ParticleSpawnerID
6119 }))(obj)).Pos)[local150])[local151]
6120 write32(w, math.Float32bits(x))
6124 for local152 := range (*(*(struct {
6127 Pos, Vel, Acc [2][3]float32
6128 ExpirationTime [2]float32 // in seconds.
6135 ID ParticleSpawnerID
6146 for local153 := range ((*(*(struct {
6149 Pos, Vel, Acc [2][3]float32
6150 ExpirationTime [2]float32 // in seconds.
6157 ID ParticleSpawnerID
6167 }))(obj)).Vel)[local152] {
6169 x := (((*(*(struct {
6172 Pos, Vel, Acc [2][3]float32
6173 ExpirationTime [2]float32 // in seconds.
6180 ID ParticleSpawnerID
6190 }))(obj)).Vel)[local152])[local153]
6191 write32(w, math.Float32bits(x))
6195 for local154 := range (*(*(struct {
6198 Pos, Vel, Acc [2][3]float32
6199 ExpirationTime [2]float32 // in seconds.
6206 ID ParticleSpawnerID
6217 for local155 := range ((*(*(struct {
6220 Pos, Vel, Acc [2][3]float32
6221 ExpirationTime [2]float32 // in seconds.
6228 ID ParticleSpawnerID
6238 }))(obj)).Acc)[local154] {
6240 x := (((*(*(struct {
6243 Pos, Vel, Acc [2][3]float32
6244 ExpirationTime [2]float32 // in seconds.
6251 ID ParticleSpawnerID
6261 }))(obj)).Acc)[local154])[local155]
6262 write32(w, math.Float32bits(x))
6266 for local156 := range (*(*(struct {
6269 Pos, Vel, Acc [2][3]float32
6270 ExpirationTime [2]float32 // in seconds.
6277 ID ParticleSpawnerID
6287 }))(obj)).ExpirationTime {
6292 Pos, Vel, Acc [2][3]float32
6293 ExpirationTime [2]float32 // in seconds.
6300 ID ParticleSpawnerID
6310 }))(obj)).ExpirationTime)[local156]
6311 write32(w, math.Float32bits(x))
6314 for local157 := range (*(*(struct {
6317 Pos, Vel, Acc [2][3]float32
6318 ExpirationTime [2]float32 // in seconds.
6325 ID ParticleSpawnerID
6340 Pos, Vel, Acc [2][3]float32
6341 ExpirationTime [2]float32 // in seconds.
6348 ID ParticleSpawnerID
6358 }))(obj)).Size)[local157]
6359 write32(w, math.Float32bits(x))
6366 Pos, Vel, Acc [2][3]float32
6367 ExpirationTime [2]float32 // in seconds.
6374 ID ParticleSpawnerID
6391 if len(([]byte(*(*string)(&((*(*(struct {
6394 Pos, Vel, Acc [2][3]float32
6395 ExpirationTime [2]float32 // in seconds.
6402 ID ParticleSpawnerID
6412 }))(obj)).Texture))))) > math.MaxUint32 {
6416 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6419 Pos, Vel, Acc [2][3]float32
6420 ExpirationTime [2]float32 // in seconds.
6427 ID ParticleSpawnerID
6437 }))(obj)).Texture))))))
6438 write32(w, uint32(x))
6441 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6444 Pos, Vel, Acc [2][3]float32
6445 ExpirationTime [2]float32 // in seconds.
6452 ID ParticleSpawnerID
6462 }))(obj)).Texture))))[:])
6465 if err := pcall(func() {
6469 Pos, Vel, Acc [2][3]float32
6470 ExpirationTime [2]float32 // in seconds.
6477 ID ParticleSpawnerID
6487 }))(obj)).ID).serialize(w)
6492 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
6498 Pos, Vel, Acc [2][3]float32
6499 ExpirationTime [2]float32 // in seconds.
6506 ID ParticleSpawnerID
6527 Pos, Vel, Acc [2][3]float32
6528 ExpirationTime [2]float32 // in seconds.
6535 ID ParticleSpawnerID
6545 }))(obj)).CollisionRm
6552 if err := pcall(func() {
6556 Pos, Vel, Acc [2][3]float32
6557 ExpirationTime [2]float32 // in seconds.
6564 ID ParticleSpawnerID
6574 }))(obj)).AttachedAOID).serialize(w)
6579 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
6581 if err := pcall(func() {
6585 Pos, Vel, Acc [2][3]float32
6586 ExpirationTime [2]float32 // in seconds.
6593 ID ParticleSpawnerID
6603 }))(obj)).AnimParams).serialize(w)
6608 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
6614 Pos, Vel, Acc [2][3]float32
6615 ExpirationTime [2]float32 // in seconds.
6622 ID ParticleSpawnerID
6639 Pos, Vel, Acc [2][3]float32
6640 ExpirationTime [2]float32 // in seconds.
6647 ID ParticleSpawnerID
6657 }))(obj)).AOCollision
6664 if err := pcall(func() {
6668 Pos, Vel, Acc [2][3]float32
6669 ExpirationTime [2]float32 // in seconds.
6676 ID ParticleSpawnerID
6686 }))(obj)).NodeParam0).serialize(w)
6691 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
6697 Pos, Vel, Acc [2][3]float32
6698 ExpirationTime [2]float32 // in seconds.
6705 ID ParticleSpawnerID
6715 }))(obj)).NodeParam2
6722 Pos, Vel, Acc [2][3]float32
6723 ExpirationTime [2]float32 // in seconds.
6730 ID ParticleSpawnerID
6745 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6750 Pos, Vel, Acc [2][3]float32
6751 ExpirationTime [2]float32 // in seconds.
6758 ID ParticleSpawnerID
6775 Pos, Vel, Acc [2][3]float32
6776 ExpirationTime [2]float32 // in seconds.
6783 ID ParticleSpawnerID
6794 *p = math.Float32frombits(read32(r))
6796 for local158 := range (*(*(struct {
6799 Pos, Vel, Acc [2][3]float32
6800 ExpirationTime [2]float32 // in seconds.
6807 ID ParticleSpawnerID
6818 for local159 := range ((*(*(struct {
6821 Pos, Vel, Acc [2][3]float32
6822 ExpirationTime [2]float32 // in seconds.
6829 ID ParticleSpawnerID
6839 }))(obj)).Pos)[local158] {
6841 p := &(((*(*(struct {
6844 Pos, Vel, Acc [2][3]float32
6845 ExpirationTime [2]float32 // in seconds.
6852 ID ParticleSpawnerID
6862 }))(obj)).Pos)[local158])[local159]
6863 *p = math.Float32frombits(read32(r))
6867 for local160 := range (*(*(struct {
6870 Pos, Vel, Acc [2][3]float32
6871 ExpirationTime [2]float32 // in seconds.
6878 ID ParticleSpawnerID
6889 for local161 := range ((*(*(struct {
6892 Pos, Vel, Acc [2][3]float32
6893 ExpirationTime [2]float32 // in seconds.
6900 ID ParticleSpawnerID
6910 }))(obj)).Vel)[local160] {
6912 p := &(((*(*(struct {
6915 Pos, Vel, Acc [2][3]float32
6916 ExpirationTime [2]float32 // in seconds.
6923 ID ParticleSpawnerID
6933 }))(obj)).Vel)[local160])[local161]
6934 *p = math.Float32frombits(read32(r))
6938 for local162 := range (*(*(struct {
6941 Pos, Vel, Acc [2][3]float32
6942 ExpirationTime [2]float32 // in seconds.
6949 ID ParticleSpawnerID
6960 for local163 := range ((*(*(struct {
6963 Pos, Vel, Acc [2][3]float32
6964 ExpirationTime [2]float32 // in seconds.
6971 ID ParticleSpawnerID
6981 }))(obj)).Acc)[local162] {
6983 p := &(((*(*(struct {
6986 Pos, Vel, Acc [2][3]float32
6987 ExpirationTime [2]float32 // in seconds.
6994 ID ParticleSpawnerID
7004 }))(obj)).Acc)[local162])[local163]
7005 *p = math.Float32frombits(read32(r))
7009 for local164 := range (*(*(struct {
7012 Pos, Vel, Acc [2][3]float32
7013 ExpirationTime [2]float32 // in seconds.
7020 ID ParticleSpawnerID
7030 }))(obj)).ExpirationTime {
7032 p := &((*(*(struct {
7035 Pos, Vel, Acc [2][3]float32
7036 ExpirationTime [2]float32 // in seconds.
7043 ID ParticleSpawnerID
7053 }))(obj)).ExpirationTime)[local164]
7054 *p = math.Float32frombits(read32(r))
7057 for local165 := range (*(*(struct {
7060 Pos, Vel, Acc [2][3]float32
7061 ExpirationTime [2]float32 // in seconds.
7068 ID ParticleSpawnerID
7080 p := &((*(*(struct {
7083 Pos, Vel, Acc [2][3]float32
7084 ExpirationTime [2]float32 // in seconds.
7091 ID ParticleSpawnerID
7101 }))(obj)).Size)[local165]
7102 *p = math.Float32frombits(read32(r))
7109 Pos, Vel, Acc [2][3]float32
7110 ExpirationTime [2]float32 // in seconds.
7117 ID ParticleSpawnerID
7128 switch n := read8(r); n {
7134 chk(fmt.Errorf("invalid bool: %d", n))
7137 var local166 []uint8
7143 (local166) = make([]uint8, local167)
7145 _, err := io.ReadFull(r, (local166)[:])
7148 (*(*string)(&((*(*(struct {
7151 Pos, Vel, Acc [2][3]float32
7152 ExpirationTime [2]float32 // in seconds.
7159 ID ParticleSpawnerID
7169 }))(obj)).Texture))) = string(local166)
7170 if err := pcall(func() {
7174 Pos, Vel, Acc [2][3]float32
7175 ExpirationTime [2]float32 // in seconds.
7182 ID ParticleSpawnerID
7192 }))(obj)).ID).deserialize(r)
7197 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
7203 Pos, Vel, Acc [2][3]float32
7204 ExpirationTime [2]float32 // in seconds.
7211 ID ParticleSpawnerID
7222 switch n := read8(r); n {
7228 chk(fmt.Errorf("invalid bool: %d", n))
7235 Pos, Vel, Acc [2][3]float32
7236 ExpirationTime [2]float32 // in seconds.
7243 ID ParticleSpawnerID
7253 }))(obj)).CollisionRm
7254 switch n := read8(r); n {
7260 chk(fmt.Errorf("invalid bool: %d", n))
7263 if err := pcall(func() {
7267 Pos, Vel, Acc [2][3]float32
7268 ExpirationTime [2]float32 // in seconds.
7275 ID ParticleSpawnerID
7285 }))(obj)).AttachedAOID).deserialize(r)
7290 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
7292 if err := pcall(func() {
7296 Pos, Vel, Acc [2][3]float32
7297 ExpirationTime [2]float32 // in seconds.
7304 ID ParticleSpawnerID
7314 }))(obj)).AnimParams).deserialize(r)
7319 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
7325 Pos, Vel, Acc [2][3]float32
7326 ExpirationTime [2]float32 // in seconds.
7333 ID ParticleSpawnerID
7350 Pos, Vel, Acc [2][3]float32
7351 ExpirationTime [2]float32 // in seconds.
7358 ID ParticleSpawnerID
7368 }))(obj)).AOCollision
7369 switch n := read8(r); n {
7375 chk(fmt.Errorf("invalid bool: %d", n))
7378 if err := pcall(func() {
7382 Pos, Vel, Acc [2][3]float32
7383 ExpirationTime [2]float32 // in seconds.
7390 ID ParticleSpawnerID
7400 }))(obj)).NodeParam0).deserialize(r)
7405 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
7411 Pos, Vel, Acc [2][3]float32
7412 ExpirationTime [2]float32 // in seconds.
7419 ID ParticleSpawnerID
7429 }))(obj)).NodeParam2
7436 Pos, Vel, Acc [2][3]float32
7437 ExpirationTime [2]float32 // in seconds.
7444 ID ParticleSpawnerID
7459 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7460 if err := pcall(func() {
7479 }))(obj)).ID).serialize(w)
7484 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7486 if err := pcall(func() {
7505 }))(obj)).Type).serialize(w)
7510 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
7512 for local168 := range (*(*(struct {
7550 }))(obj)).Pos)[local168]
7551 write32(w, math.Float32bits(x))
7554 if len(([]byte((*(*(struct {
7572 }))(obj)).Name))) > math.MaxUint16 {
7576 x := uint16(len(([]byte((*(*(struct {
7595 write16(w, uint16(x))
7598 _, err := w.Write(([]byte((*(*(struct {
7616 }))(obj)).Name))[:])
7619 for local169 := range (*(*(struct {
7657 }))(obj)).Scale)[local169]
7658 write32(w, math.Float32bits(x))
7661 if len(([]byte((*(*(struct {
7679 }))(obj)).Text))) > math.MaxUint16 {
7683 x := uint16(len(([]byte((*(*(struct {
7702 write16(w, uint16(x))
7705 _, err := w.Write(([]byte((*(*(struct {
7723 }))(obj)).Text))[:])
7746 write32(w, uint32(x))
7768 write32(w, uint32(x))
7790 write32(w, uint32(x))
7792 for local170 := range (*(*(struct {
7830 }))(obj)).Align)[local170]
7831 write32(w, math.Float32bits(x))
7834 for local171 := range (*(*(struct {
7872 }))(obj)).Offset)[local171]
7873 write32(w, math.Float32bits(x))
7876 if err := pcall(func() {
7895 }))(obj)).WorldPos).serialize(w)
7900 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
7902 for local172 := range (*(*(struct {
7940 }))(obj)).Size)[local172]
7941 write32(w, uint32(x))
7964 write16(w, uint16(x))
7966 if len(([]byte((*(*(struct {
7984 }))(obj)).Text2))) > math.MaxUint16 {
7988 x := uint16(len(([]byte((*(*(struct {
8007 write16(w, uint16(x))
8010 _, err := w.Write(([]byte((*(*(struct {
8028 }))(obj)).Text2))[:])
8033 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
8034 if err := pcall(func() {
8053 }))(obj)).ID).deserialize(r)
8058 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
8060 if err := pcall(func() {
8079 }))(obj)).Type).deserialize(r)
8084 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
8086 for local173 := range (*(*(struct {
8106 p := &((*(*(struct {
8124 }))(obj)).Pos)[local173]
8125 *p = math.Float32frombits(read32(r))
8128 var local174 []uint8
8134 (local174) = make([]uint8, local175)
8136 _, err := io.ReadFull(r, (local174)[:])
8157 }))(obj)).Name) = string(local174)
8158 for local176 := range (*(*(struct {
8178 p := &((*(*(struct {
8196 }))(obj)).Scale)[local176]
8197 *p = math.Float32frombits(read32(r))
8200 var local177 []uint8
8206 (local177) = make([]uint8, local178)
8208 _, err := io.ReadFull(r, (local177)[:])
8229 }))(obj)).Text) = string(local177)
8296 for local179 := range (*(*(struct {
8316 p := &((*(*(struct {
8334 }))(obj)).Align)[local179]
8335 *p = math.Float32frombits(read32(r))
8338 for local180 := range (*(*(struct {
8358 p := &((*(*(struct {
8376 }))(obj)).Offset)[local180]
8377 *p = math.Float32frombits(read32(r))
8380 if err := pcall(func() {
8399 }))(obj)).WorldPos).deserialize(r)
8404 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
8406 for local181 := range (*(*(struct {
8426 p := &((*(*(struct {
8444 }))(obj)).Size)[local181]
8445 *p = int32(read32(r))
8468 *p = int16(read16(r))
8470 var local182 []uint8
8476 (local182) = make([]uint8, local183)
8478 _, err := io.ReadFull(r, (local182)[:])
8499 }))(obj)).Text2) = string(local182)
8502 func (obj *ToCltRmHUD) serialize(w io.Writer) {
8503 if err := pcall(func() {
8506 }))(obj)).ID).serialize(w)
8511 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
8515 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
8516 if err := pcall(func() {
8519 }))(obj)).ID).deserialize(r)
8524 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
8528 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
8529 if err := pcall(func() {
8535 //mt:if %s.Field == HUDPos
8538 //mt:if %s.Field == HUDName
8541 //mt:if %s.Field == HUDScale
8544 //mt:if %s.Field == HUDText
8547 //mt:if %s.Field == HUDNumber
8550 //mt:if %s.Field == HUDItem
8553 //mt:if %s.Field == HUDDir
8556 //mt:if %s.Field == HUDAlign
8559 //mt:if %s.Field == HUDOffset
8562 //mt:if %s.Field == HUDWorldPos
8565 //mt:if %s.Field == HUDSize
8568 //mt:if %s.Field == HUDZIndex
8571 //mt:if %s.Field == HUDText2
8573 }))(obj)).ID).serialize(w)
8578 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
8580 if err := pcall(func() {
8586 //mt:if %s.Field == HUDPos
8589 //mt:if %s.Field == HUDName
8592 //mt:if %s.Field == HUDScale
8595 //mt:if %s.Field == HUDText
8598 //mt:if %s.Field == HUDNumber
8601 //mt:if %s.Field == HUDItem
8604 //mt:if %s.Field == HUDDir
8607 //mt:if %s.Field == HUDAlign
8610 //mt:if %s.Field == HUDOffset
8613 //mt:if %s.Field == HUDWorldPos
8616 //mt:if %s.Field == HUDSize
8619 //mt:if %s.Field == HUDZIndex
8622 //mt:if %s.Field == HUDText2
8624 }))(obj)).Field).serialize(w)
8629 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
8636 //mt:if %s.Field == HUDPos
8639 //mt:if %s.Field == HUDName
8642 //mt:if %s.Field == HUDScale
8645 //mt:if %s.Field == HUDText
8648 //mt:if %s.Field == HUDNumber
8651 //mt:if %s.Field == HUDItem
8654 //mt:if %s.Field == HUDDir
8657 //mt:if %s.Field == HUDAlign
8660 //mt:if %s.Field == HUDOffset
8663 //mt:if %s.Field == HUDWorldPos
8666 //mt:if %s.Field == HUDSize
8669 //mt:if %s.Field == HUDZIndex
8672 //mt:if %s.Field == HUDText2
8674 }))(obj)).Field < hudMax) {
8675 chk(errors.New("assertion failed: %s.Field < hudMax"))
8682 //mt:if %s.Field == HUDPos
8685 //mt:if %s.Field == HUDName
8688 //mt:if %s.Field == HUDScale
8691 //mt:if %s.Field == HUDText
8694 //mt:if %s.Field == HUDNumber
8697 //mt:if %s.Field == HUDItem
8700 //mt:if %s.Field == HUDDir
8703 //mt:if %s.Field == HUDAlign
8706 //mt:if %s.Field == HUDOffset
8709 //mt:if %s.Field == HUDWorldPos
8712 //mt:if %s.Field == HUDSize
8715 //mt:if %s.Field == HUDZIndex
8718 //mt:if %s.Field == HUDText2
8720 }))(obj)).Field == HUDPos {
8721 for local184 := range (*(*(struct {
8726 //mt:if %s.Field == HUDPos
8729 //mt:if %s.Field == HUDName
8732 //mt:if %s.Field == HUDScale
8735 //mt:if %s.Field == HUDText
8738 //mt:if %s.Field == HUDNumber
8741 //mt:if %s.Field == HUDItem
8744 //mt:if %s.Field == HUDDir
8747 //mt:if %s.Field == HUDAlign
8750 //mt:if %s.Field == HUDOffset
8753 //mt:if %s.Field == HUDWorldPos
8756 //mt:if %s.Field == HUDSize
8759 //mt:if %s.Field == HUDZIndex
8762 //mt:if %s.Field == HUDText2
8771 //mt:if %s.Field == HUDPos
8774 //mt:if %s.Field == HUDName
8777 //mt:if %s.Field == HUDScale
8780 //mt:if %s.Field == HUDText
8783 //mt:if %s.Field == HUDNumber
8786 //mt:if %s.Field == HUDItem
8789 //mt:if %s.Field == HUDDir
8792 //mt:if %s.Field == HUDAlign
8795 //mt:if %s.Field == HUDOffset
8798 //mt:if %s.Field == HUDWorldPos
8801 //mt:if %s.Field == HUDSize
8804 //mt:if %s.Field == HUDZIndex
8807 //mt:if %s.Field == HUDText2
8809 }))(obj)).Pos)[local184]
8810 write32(w, math.Float32bits(x))
8819 //mt:if %s.Field == HUDPos
8822 //mt:if %s.Field == HUDName
8825 //mt:if %s.Field == HUDScale
8828 //mt:if %s.Field == HUDText
8831 //mt:if %s.Field == HUDNumber
8834 //mt:if %s.Field == HUDItem
8837 //mt:if %s.Field == HUDDir
8840 //mt:if %s.Field == HUDAlign
8843 //mt:if %s.Field == HUDOffset
8846 //mt:if %s.Field == HUDWorldPos
8849 //mt:if %s.Field == HUDSize
8852 //mt:if %s.Field == HUDZIndex
8855 //mt:if %s.Field == HUDText2
8857 }))(obj)).Field == HUDName {
8858 if len(([]byte((*(*(struct {
8863 //mt:if %s.Field == HUDPos
8866 //mt:if %s.Field == HUDName
8869 //mt:if %s.Field == HUDScale
8872 //mt:if %s.Field == HUDText
8875 //mt:if %s.Field == HUDNumber
8878 //mt:if %s.Field == HUDItem
8881 //mt:if %s.Field == HUDDir
8884 //mt:if %s.Field == HUDAlign
8887 //mt:if %s.Field == HUDOffset
8890 //mt:if %s.Field == HUDWorldPos
8893 //mt:if %s.Field == HUDSize
8896 //mt:if %s.Field == HUDZIndex
8899 //mt:if %s.Field == HUDText2
8901 }))(obj)).Name))) > math.MaxUint16 {
8905 x := uint16(len(([]byte((*(*(struct {
8910 //mt:if %s.Field == HUDPos
8913 //mt:if %s.Field == HUDName
8916 //mt:if %s.Field == HUDScale
8919 //mt:if %s.Field == HUDText
8922 //mt:if %s.Field == HUDNumber
8925 //mt:if %s.Field == HUDItem
8928 //mt:if %s.Field == HUDDir
8931 //mt:if %s.Field == HUDAlign
8934 //mt:if %s.Field == HUDOffset
8937 //mt:if %s.Field == HUDWorldPos
8940 //mt:if %s.Field == HUDSize
8943 //mt:if %s.Field == HUDZIndex
8946 //mt:if %s.Field == HUDText2
8949 write16(w, uint16(x))
8952 _, err := w.Write(([]byte((*(*(struct {
8957 //mt:if %s.Field == HUDPos
8960 //mt:if %s.Field == HUDName
8963 //mt:if %s.Field == HUDScale
8966 //mt:if %s.Field == HUDText
8969 //mt:if %s.Field == HUDNumber
8972 //mt:if %s.Field == HUDItem
8975 //mt:if %s.Field == HUDDir
8978 //mt:if %s.Field == HUDAlign
8981 //mt:if %s.Field == HUDOffset
8984 //mt:if %s.Field == HUDWorldPos
8987 //mt:if %s.Field == HUDSize
8990 //mt:if %s.Field == HUDZIndex
8993 //mt:if %s.Field == HUDText2
8995 }))(obj)).Name))[:])
9004 //mt:if %s.Field == HUDPos
9007 //mt:if %s.Field == HUDName
9010 //mt:if %s.Field == HUDScale
9013 //mt:if %s.Field == HUDText
9016 //mt:if %s.Field == HUDNumber
9019 //mt:if %s.Field == HUDItem
9022 //mt:if %s.Field == HUDDir
9025 //mt:if %s.Field == HUDAlign
9028 //mt:if %s.Field == HUDOffset
9031 //mt:if %s.Field == HUDWorldPos
9034 //mt:if %s.Field == HUDSize
9037 //mt:if %s.Field == HUDZIndex
9040 //mt:if %s.Field == HUDText2
9042 }))(obj)).Field == HUDScale {
9043 for local185 := range (*(*(struct {
9048 //mt:if %s.Field == HUDPos
9051 //mt:if %s.Field == HUDName
9054 //mt:if %s.Field == HUDScale
9057 //mt:if %s.Field == HUDText
9060 //mt:if %s.Field == HUDNumber
9063 //mt:if %s.Field == HUDItem
9066 //mt:if %s.Field == HUDDir
9069 //mt:if %s.Field == HUDAlign
9072 //mt:if %s.Field == HUDOffset
9075 //mt:if %s.Field == HUDWorldPos
9078 //mt:if %s.Field == HUDSize
9081 //mt:if %s.Field == HUDZIndex
9084 //mt:if %s.Field == HUDText2
9093 //mt:if %s.Field == HUDPos
9096 //mt:if %s.Field == HUDName
9099 //mt:if %s.Field == HUDScale
9102 //mt:if %s.Field == HUDText
9105 //mt:if %s.Field == HUDNumber
9108 //mt:if %s.Field == HUDItem
9111 //mt:if %s.Field == HUDDir
9114 //mt:if %s.Field == HUDAlign
9117 //mt:if %s.Field == HUDOffset
9120 //mt:if %s.Field == HUDWorldPos
9123 //mt:if %s.Field == HUDSize
9126 //mt:if %s.Field == HUDZIndex
9129 //mt:if %s.Field == HUDText2
9131 }))(obj)).Scale)[local185]
9132 write32(w, math.Float32bits(x))
9141 //mt:if %s.Field == HUDPos
9144 //mt:if %s.Field == HUDName
9147 //mt:if %s.Field == HUDScale
9150 //mt:if %s.Field == HUDText
9153 //mt:if %s.Field == HUDNumber
9156 //mt:if %s.Field == HUDItem
9159 //mt:if %s.Field == HUDDir
9162 //mt:if %s.Field == HUDAlign
9165 //mt:if %s.Field == HUDOffset
9168 //mt:if %s.Field == HUDWorldPos
9171 //mt:if %s.Field == HUDSize
9174 //mt:if %s.Field == HUDZIndex
9177 //mt:if %s.Field == HUDText2
9179 }))(obj)).Field == HUDText {
9180 if len(([]byte((*(*(struct {
9185 //mt:if %s.Field == HUDPos
9188 //mt:if %s.Field == HUDName
9191 //mt:if %s.Field == HUDScale
9194 //mt:if %s.Field == HUDText
9197 //mt:if %s.Field == HUDNumber
9200 //mt:if %s.Field == HUDItem
9203 //mt:if %s.Field == HUDDir
9206 //mt:if %s.Field == HUDAlign
9209 //mt:if %s.Field == HUDOffset
9212 //mt:if %s.Field == HUDWorldPos
9215 //mt:if %s.Field == HUDSize
9218 //mt:if %s.Field == HUDZIndex
9221 //mt:if %s.Field == HUDText2
9223 }))(obj)).Text))) > math.MaxUint16 {
9227 x := uint16(len(([]byte((*(*(struct {
9232 //mt:if %s.Field == HUDPos
9235 //mt:if %s.Field == HUDName
9238 //mt:if %s.Field == HUDScale
9241 //mt:if %s.Field == HUDText
9244 //mt:if %s.Field == HUDNumber
9247 //mt:if %s.Field == HUDItem
9250 //mt:if %s.Field == HUDDir
9253 //mt:if %s.Field == HUDAlign
9256 //mt:if %s.Field == HUDOffset
9259 //mt:if %s.Field == HUDWorldPos
9262 //mt:if %s.Field == HUDSize
9265 //mt:if %s.Field == HUDZIndex
9268 //mt:if %s.Field == HUDText2
9271 write16(w, uint16(x))
9274 _, err := w.Write(([]byte((*(*(struct {
9279 //mt:if %s.Field == HUDPos
9282 //mt:if %s.Field == HUDName
9285 //mt:if %s.Field == HUDScale
9288 //mt:if %s.Field == HUDText
9291 //mt:if %s.Field == HUDNumber
9294 //mt:if %s.Field == HUDItem
9297 //mt:if %s.Field == HUDDir
9300 //mt:if %s.Field == HUDAlign
9303 //mt:if %s.Field == HUDOffset
9306 //mt:if %s.Field == HUDWorldPos
9309 //mt:if %s.Field == HUDSize
9312 //mt:if %s.Field == HUDZIndex
9315 //mt:if %s.Field == HUDText2
9317 }))(obj)).Text))[:])
9326 //mt:if %s.Field == HUDPos
9329 //mt:if %s.Field == HUDName
9332 //mt:if %s.Field == HUDScale
9335 //mt:if %s.Field == HUDText
9338 //mt:if %s.Field == HUDNumber
9341 //mt:if %s.Field == HUDItem
9344 //mt:if %s.Field == HUDDir
9347 //mt:if %s.Field == HUDAlign
9350 //mt:if %s.Field == HUDOffset
9353 //mt:if %s.Field == HUDWorldPos
9356 //mt:if %s.Field == HUDSize
9359 //mt:if %s.Field == HUDZIndex
9362 //mt:if %s.Field == HUDText2
9364 }))(obj)).Field == HUDNumber {
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 write32(w, uint32(x))
9418 //mt:if %s.Field == HUDPos
9421 //mt:if %s.Field == HUDName
9424 //mt:if %s.Field == HUDScale
9427 //mt:if %s.Field == HUDText
9430 //mt:if %s.Field == HUDNumber
9433 //mt:if %s.Field == HUDItem
9436 //mt:if %s.Field == HUDDir
9439 //mt:if %s.Field == HUDAlign
9442 //mt:if %s.Field == HUDOffset
9445 //mt:if %s.Field == HUDWorldPos
9448 //mt:if %s.Field == HUDSize
9451 //mt:if %s.Field == HUDZIndex
9454 //mt:if %s.Field == HUDText2
9456 }))(obj)).Field == HUDItem {
9463 //mt:if %s.Field == HUDPos
9466 //mt:if %s.Field == HUDName
9469 //mt:if %s.Field == HUDScale
9472 //mt:if %s.Field == HUDText
9475 //mt:if %s.Field == HUDNumber
9478 //mt:if %s.Field == HUDItem
9481 //mt:if %s.Field == HUDDir
9484 //mt:if %s.Field == HUDAlign
9487 //mt:if %s.Field == HUDOffset
9490 //mt:if %s.Field == HUDWorldPos
9493 //mt:if %s.Field == HUDSize
9496 //mt:if %s.Field == HUDZIndex
9499 //mt:if %s.Field == HUDText2
9502 write32(w, uint32(x))
9510 //mt:if %s.Field == HUDPos
9513 //mt:if %s.Field == HUDName
9516 //mt:if %s.Field == HUDScale
9519 //mt:if %s.Field == HUDText
9522 //mt:if %s.Field == HUDNumber
9525 //mt:if %s.Field == HUDItem
9528 //mt:if %s.Field == HUDDir
9531 //mt:if %s.Field == HUDAlign
9534 //mt:if %s.Field == HUDOffset
9537 //mt:if %s.Field == HUDWorldPos
9540 //mt:if %s.Field == HUDSize
9543 //mt:if %s.Field == HUDZIndex
9546 //mt:if %s.Field == HUDText2
9548 }))(obj)).Field == HUDDir {
9555 //mt:if %s.Field == HUDPos
9558 //mt:if %s.Field == HUDName
9561 //mt:if %s.Field == HUDScale
9564 //mt:if %s.Field == HUDText
9567 //mt:if %s.Field == HUDNumber
9570 //mt:if %s.Field == HUDItem
9573 //mt:if %s.Field == HUDDir
9576 //mt:if %s.Field == HUDAlign
9579 //mt:if %s.Field == HUDOffset
9582 //mt:if %s.Field == HUDWorldPos
9585 //mt:if %s.Field == HUDSize
9588 //mt:if %s.Field == HUDZIndex
9591 //mt:if %s.Field == HUDText2
9594 write32(w, uint32(x))
9602 //mt:if %s.Field == HUDPos
9605 //mt:if %s.Field == HUDName
9608 //mt:if %s.Field == HUDScale
9611 //mt:if %s.Field == HUDText
9614 //mt:if %s.Field == HUDNumber
9617 //mt:if %s.Field == HUDItem
9620 //mt:if %s.Field == HUDDir
9623 //mt:if %s.Field == HUDAlign
9626 //mt:if %s.Field == HUDOffset
9629 //mt:if %s.Field == HUDWorldPos
9632 //mt:if %s.Field == HUDSize
9635 //mt:if %s.Field == HUDZIndex
9638 //mt:if %s.Field == HUDText2
9640 }))(obj)).Field == HUDAlign {
9641 for local186 := range (*(*(struct {
9646 //mt:if %s.Field == HUDPos
9649 //mt:if %s.Field == HUDName
9652 //mt:if %s.Field == HUDScale
9655 //mt:if %s.Field == HUDText
9658 //mt:if %s.Field == HUDNumber
9661 //mt:if %s.Field == HUDItem
9664 //mt:if %s.Field == HUDDir
9667 //mt:if %s.Field == HUDAlign
9670 //mt:if %s.Field == HUDOffset
9673 //mt:if %s.Field == HUDWorldPos
9676 //mt:if %s.Field == HUDSize
9679 //mt:if %s.Field == HUDZIndex
9682 //mt:if %s.Field == HUDText2
9691 //mt:if %s.Field == HUDPos
9694 //mt:if %s.Field == HUDName
9697 //mt:if %s.Field == HUDScale
9700 //mt:if %s.Field == HUDText
9703 //mt:if %s.Field == HUDNumber
9706 //mt:if %s.Field == HUDItem
9709 //mt:if %s.Field == HUDDir
9712 //mt:if %s.Field == HUDAlign
9715 //mt:if %s.Field == HUDOffset
9718 //mt:if %s.Field == HUDWorldPos
9721 //mt:if %s.Field == HUDSize
9724 //mt:if %s.Field == HUDZIndex
9727 //mt:if %s.Field == HUDText2
9729 }))(obj)).Align)[local186]
9730 write32(w, math.Float32bits(x))
9739 //mt:if %s.Field == HUDPos
9742 //mt:if %s.Field == HUDName
9745 //mt:if %s.Field == HUDScale
9748 //mt:if %s.Field == HUDText
9751 //mt:if %s.Field == HUDNumber
9754 //mt:if %s.Field == HUDItem
9757 //mt:if %s.Field == HUDDir
9760 //mt:if %s.Field == HUDAlign
9763 //mt:if %s.Field == HUDOffset
9766 //mt:if %s.Field == HUDWorldPos
9769 //mt:if %s.Field == HUDSize
9772 //mt:if %s.Field == HUDZIndex
9775 //mt:if %s.Field == HUDText2
9777 }))(obj)).Field == HUDOffset {
9778 for local187 := range (*(*(struct {
9783 //mt:if %s.Field == HUDPos
9786 //mt:if %s.Field == HUDName
9789 //mt:if %s.Field == HUDScale
9792 //mt:if %s.Field == HUDText
9795 //mt:if %s.Field == HUDNumber
9798 //mt:if %s.Field == HUDItem
9801 //mt:if %s.Field == HUDDir
9804 //mt:if %s.Field == HUDAlign
9807 //mt:if %s.Field == HUDOffset
9810 //mt:if %s.Field == HUDWorldPos
9813 //mt:if %s.Field == HUDSize
9816 //mt:if %s.Field == HUDZIndex
9819 //mt:if %s.Field == HUDText2
9828 //mt:if %s.Field == HUDPos
9831 //mt:if %s.Field == HUDName
9834 //mt:if %s.Field == HUDScale
9837 //mt:if %s.Field == HUDText
9840 //mt:if %s.Field == HUDNumber
9843 //mt:if %s.Field == HUDItem
9846 //mt:if %s.Field == HUDDir
9849 //mt:if %s.Field == HUDAlign
9852 //mt:if %s.Field == HUDOffset
9855 //mt:if %s.Field == HUDWorldPos
9858 //mt:if %s.Field == HUDSize
9861 //mt:if %s.Field == HUDZIndex
9864 //mt:if %s.Field == HUDText2
9866 }))(obj)).Offset)[local187]
9867 write32(w, math.Float32bits(x))
9876 //mt:if %s.Field == HUDPos
9879 //mt:if %s.Field == HUDName
9882 //mt:if %s.Field == HUDScale
9885 //mt:if %s.Field == HUDText
9888 //mt:if %s.Field == HUDNumber
9891 //mt:if %s.Field == HUDItem
9894 //mt:if %s.Field == HUDDir
9897 //mt:if %s.Field == HUDAlign
9900 //mt:if %s.Field == HUDOffset
9903 //mt:if %s.Field == HUDWorldPos
9906 //mt:if %s.Field == HUDSize
9909 //mt:if %s.Field == HUDZIndex
9912 //mt:if %s.Field == HUDText2
9914 }))(obj)).Field == HUDWorldPos {
9915 if err := pcall(func() {
9921 //mt:if %s.Field == HUDPos
9924 //mt:if %s.Field == HUDName
9927 //mt:if %s.Field == HUDScale
9930 //mt:if %s.Field == HUDText
9933 //mt:if %s.Field == HUDNumber
9936 //mt:if %s.Field == HUDItem
9939 //mt:if %s.Field == HUDDir
9942 //mt:if %s.Field == HUDAlign
9945 //mt:if %s.Field == HUDOffset
9948 //mt:if %s.Field == HUDWorldPos
9951 //mt:if %s.Field == HUDSize
9954 //mt:if %s.Field == HUDZIndex
9957 //mt:if %s.Field == HUDText2
9959 }))(obj)).WorldPos).serialize(w)
9964 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
9972 //mt:if %s.Field == HUDPos
9975 //mt:if %s.Field == HUDName
9978 //mt:if %s.Field == HUDScale
9981 //mt:if %s.Field == HUDText
9984 //mt:if %s.Field == HUDNumber
9987 //mt:if %s.Field == HUDItem
9990 //mt:if %s.Field == HUDDir
9993 //mt:if %s.Field == HUDAlign
9996 //mt:if %s.Field == HUDOffset
9999 //mt:if %s.Field == HUDWorldPos
10002 //mt:if %s.Field == HUDSize
10005 //mt:if %s.Field == HUDZIndex
10008 //mt:if %s.Field == HUDText2
10010 }))(obj)).Field == HUDSize {
10011 for local188 := range (*(*(struct {
10016 //mt:if %s.Field == HUDPos
10019 //mt:if %s.Field == HUDName
10022 //mt:if %s.Field == HUDScale
10025 //mt:if %s.Field == HUDText
10028 //mt:if %s.Field == HUDNumber
10031 //mt:if %s.Field == HUDItem
10034 //mt:if %s.Field == HUDDir
10037 //mt:if %s.Field == HUDAlign
10040 //mt:if %s.Field == HUDOffset
10043 //mt:if %s.Field == HUDWorldPos
10046 //mt:if %s.Field == HUDSize
10049 //mt:if %s.Field == HUDZIndex
10052 //mt:if %s.Field == HUDText2
10056 x := ((*(*(struct {
10061 //mt:if %s.Field == HUDPos
10064 //mt:if %s.Field == HUDName
10067 //mt:if %s.Field == HUDScale
10070 //mt:if %s.Field == HUDText
10073 //mt:if %s.Field == HUDNumber
10076 //mt:if %s.Field == HUDItem
10079 //mt:if %s.Field == HUDDir
10082 //mt:if %s.Field == HUDAlign
10085 //mt:if %s.Field == HUDOffset
10088 //mt:if %s.Field == HUDWorldPos
10091 //mt:if %s.Field == HUDSize
10094 //mt:if %s.Field == HUDZIndex
10097 //mt:if %s.Field == HUDText2
10099 }))(obj)).Size)[local188]
10100 write32(w, uint32(x))
10109 //mt:if %s.Field == HUDPos
10112 //mt:if %s.Field == HUDName
10115 //mt:if %s.Field == HUDScale
10118 //mt:if %s.Field == HUDText
10121 //mt:if %s.Field == HUDNumber
10124 //mt:if %s.Field == HUDItem
10127 //mt:if %s.Field == HUDDir
10130 //mt:if %s.Field == HUDAlign
10133 //mt:if %s.Field == HUDOffset
10136 //mt:if %s.Field == HUDWorldPos
10139 //mt:if %s.Field == HUDSize
10142 //mt:if %s.Field == HUDZIndex
10145 //mt:if %s.Field == HUDText2
10147 }))(obj)).Field == HUDZIndex {
10154 //mt:if %s.Field == HUDPos
10157 //mt:if %s.Field == HUDName
10160 //mt:if %s.Field == HUDScale
10163 //mt:if %s.Field == HUDText
10166 //mt:if %s.Field == HUDNumber
10169 //mt:if %s.Field == HUDItem
10172 //mt:if %s.Field == HUDDir
10175 //mt:if %s.Field == HUDAlign
10178 //mt:if %s.Field == HUDOffset
10181 //mt:if %s.Field == HUDWorldPos
10184 //mt:if %s.Field == HUDSize
10187 //mt:if %s.Field == HUDZIndex
10190 //mt:if %s.Field == HUDText2
10193 write32(w, uint32(x))
10201 //mt:if %s.Field == HUDPos
10204 //mt:if %s.Field == HUDName
10207 //mt:if %s.Field == HUDScale
10210 //mt:if %s.Field == HUDText
10213 //mt:if %s.Field == HUDNumber
10216 //mt:if %s.Field == HUDItem
10219 //mt:if %s.Field == HUDDir
10222 //mt:if %s.Field == HUDAlign
10225 //mt:if %s.Field == HUDOffset
10228 //mt:if %s.Field == HUDWorldPos
10231 //mt:if %s.Field == HUDSize
10234 //mt:if %s.Field == HUDZIndex
10237 //mt:if %s.Field == HUDText2
10239 }))(obj)).Field == HUDText2 {
10240 if len(([]byte((*(*(struct {
10245 //mt:if %s.Field == HUDPos
10248 //mt:if %s.Field == HUDName
10251 //mt:if %s.Field == HUDScale
10254 //mt:if %s.Field == HUDText
10257 //mt:if %s.Field == HUDNumber
10260 //mt:if %s.Field == HUDItem
10263 //mt:if %s.Field == HUDDir
10266 //mt:if %s.Field == HUDAlign
10269 //mt:if %s.Field == HUDOffset
10272 //mt:if %s.Field == HUDWorldPos
10275 //mt:if %s.Field == HUDSize
10278 //mt:if %s.Field == HUDZIndex
10281 //mt:if %s.Field == HUDText2
10283 }))(obj)).Text2))) > math.MaxUint16 {
10287 x := uint16(len(([]byte((*(*(struct {
10292 //mt:if %s.Field == HUDPos
10295 //mt:if %s.Field == HUDName
10298 //mt:if %s.Field == HUDScale
10301 //mt:if %s.Field == HUDText
10304 //mt:if %s.Field == HUDNumber
10307 //mt:if %s.Field == HUDItem
10310 //mt:if %s.Field == HUDDir
10313 //mt:if %s.Field == HUDAlign
10316 //mt:if %s.Field == HUDOffset
10319 //mt:if %s.Field == HUDWorldPos
10322 //mt:if %s.Field == HUDSize
10325 //mt:if %s.Field == HUDZIndex
10328 //mt:if %s.Field == HUDText2
10330 }))(obj)).Text2))))
10331 write16(w, uint16(x))
10334 _, err := w.Write(([]byte((*(*(struct {
10339 //mt:if %s.Field == HUDPos
10342 //mt:if %s.Field == HUDName
10345 //mt:if %s.Field == HUDScale
10348 //mt:if %s.Field == HUDText
10351 //mt:if %s.Field == HUDNumber
10354 //mt:if %s.Field == HUDItem
10357 //mt:if %s.Field == HUDDir
10360 //mt:if %s.Field == HUDAlign
10363 //mt:if %s.Field == HUDOffset
10366 //mt:if %s.Field == HUDWorldPos
10369 //mt:if %s.Field == HUDSize
10372 //mt:if %s.Field == HUDZIndex
10375 //mt:if %s.Field == HUDText2
10377 }))(obj)).Text2))[:])
10383 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
10384 if err := pcall(func() {
10390 //mt:if %s.Field == HUDPos
10393 //mt:if %s.Field == HUDName
10396 //mt:if %s.Field == HUDScale
10399 //mt:if %s.Field == HUDText
10402 //mt:if %s.Field == HUDNumber
10405 //mt:if %s.Field == HUDItem
10408 //mt:if %s.Field == HUDDir
10411 //mt:if %s.Field == HUDAlign
10414 //mt:if %s.Field == HUDOffset
10417 //mt:if %s.Field == HUDWorldPos
10420 //mt:if %s.Field == HUDSize
10423 //mt:if %s.Field == HUDZIndex
10426 //mt:if %s.Field == HUDText2
10428 }))(obj)).ID).deserialize(r)
10433 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
10435 if err := pcall(func() {
10441 //mt:if %s.Field == HUDPos
10444 //mt:if %s.Field == HUDName
10447 //mt:if %s.Field == HUDScale
10450 //mt:if %s.Field == HUDText
10453 //mt:if %s.Field == HUDNumber
10456 //mt:if %s.Field == HUDItem
10459 //mt:if %s.Field == HUDDir
10462 //mt:if %s.Field == HUDAlign
10465 //mt:if %s.Field == HUDOffset
10468 //mt:if %s.Field == HUDWorldPos
10471 //mt:if %s.Field == HUDSize
10474 //mt:if %s.Field == HUDZIndex
10477 //mt:if %s.Field == HUDText2
10479 }))(obj)).Field).deserialize(r)
10484 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
10491 //mt:if %s.Field == HUDPos
10494 //mt:if %s.Field == HUDName
10497 //mt:if %s.Field == HUDScale
10500 //mt:if %s.Field == HUDText
10503 //mt:if %s.Field == HUDNumber
10506 //mt:if %s.Field == HUDItem
10509 //mt:if %s.Field == HUDDir
10512 //mt:if %s.Field == HUDAlign
10515 //mt:if %s.Field == HUDOffset
10518 //mt:if %s.Field == HUDWorldPos
10521 //mt:if %s.Field == HUDSize
10524 //mt:if %s.Field == HUDZIndex
10527 //mt:if %s.Field == HUDText2
10529 }))(obj)).Field < hudMax) {
10530 chk(errors.New("assertion failed: %s.Field < hudMax"))
10537 //mt:if %s.Field == HUDPos
10540 //mt:if %s.Field == HUDName
10543 //mt:if %s.Field == HUDScale
10546 //mt:if %s.Field == HUDText
10549 //mt:if %s.Field == HUDNumber
10552 //mt:if %s.Field == HUDItem
10555 //mt:if %s.Field == HUDDir
10558 //mt:if %s.Field == HUDAlign
10561 //mt:if %s.Field == HUDOffset
10564 //mt:if %s.Field == HUDWorldPos
10567 //mt:if %s.Field == HUDSize
10570 //mt:if %s.Field == HUDZIndex
10573 //mt:if %s.Field == HUDText2
10575 }))(obj)).Field == HUDPos {
10576 for local189 := range (*(*(struct {
10581 //mt:if %s.Field == HUDPos
10584 //mt:if %s.Field == HUDName
10587 //mt:if %s.Field == HUDScale
10590 //mt:if %s.Field == HUDText
10593 //mt:if %s.Field == HUDNumber
10596 //mt:if %s.Field == HUDItem
10599 //mt:if %s.Field == HUDDir
10602 //mt:if %s.Field == HUDAlign
10605 //mt:if %s.Field == HUDOffset
10608 //mt:if %s.Field == HUDWorldPos
10611 //mt:if %s.Field == HUDSize
10614 //mt:if %s.Field == HUDZIndex
10617 //mt:if %s.Field == HUDText2
10621 p := &((*(*(struct {
10626 //mt:if %s.Field == HUDPos
10629 //mt:if %s.Field == HUDName
10632 //mt:if %s.Field == HUDScale
10635 //mt:if %s.Field == HUDText
10638 //mt:if %s.Field == HUDNumber
10641 //mt:if %s.Field == HUDItem
10644 //mt:if %s.Field == HUDDir
10647 //mt:if %s.Field == HUDAlign
10650 //mt:if %s.Field == HUDOffset
10653 //mt:if %s.Field == HUDWorldPos
10656 //mt:if %s.Field == HUDSize
10659 //mt:if %s.Field == HUDZIndex
10662 //mt:if %s.Field == HUDText2
10664 }))(obj)).Pos)[local189]
10665 *p = math.Float32frombits(read32(r))
10674 //mt:if %s.Field == HUDPos
10677 //mt:if %s.Field == HUDName
10680 //mt:if %s.Field == HUDScale
10683 //mt:if %s.Field == HUDText
10686 //mt:if %s.Field == HUDNumber
10689 //mt:if %s.Field == HUDItem
10692 //mt:if %s.Field == HUDDir
10695 //mt:if %s.Field == HUDAlign
10698 //mt:if %s.Field == HUDOffset
10701 //mt:if %s.Field == HUDWorldPos
10704 //mt:if %s.Field == HUDSize
10707 //mt:if %s.Field == HUDZIndex
10710 //mt:if %s.Field == HUDText2
10712 }))(obj)).Field == HUDName {
10713 var local190 []uint8
10714 var local191 uint16
10719 (local190) = make([]uint8, local191)
10721 _, err := io.ReadFull(r, (local190)[:])
10729 //mt:if %s.Field == HUDPos
10732 //mt:if %s.Field == HUDName
10735 //mt:if %s.Field == HUDScale
10738 //mt:if %s.Field == HUDText
10741 //mt:if %s.Field == HUDNumber
10744 //mt:if %s.Field == HUDItem
10747 //mt:if %s.Field == HUDDir
10750 //mt:if %s.Field == HUDAlign
10753 //mt:if %s.Field == HUDOffset
10756 //mt:if %s.Field == HUDWorldPos
10759 //mt:if %s.Field == HUDSize
10762 //mt:if %s.Field == HUDZIndex
10765 //mt:if %s.Field == HUDText2
10767 }))(obj)).Name) = string(local190)
10774 //mt:if %s.Field == HUDPos
10777 //mt:if %s.Field == HUDName
10780 //mt:if %s.Field == HUDScale
10783 //mt:if %s.Field == HUDText
10786 //mt:if %s.Field == HUDNumber
10789 //mt:if %s.Field == HUDItem
10792 //mt:if %s.Field == HUDDir
10795 //mt:if %s.Field == HUDAlign
10798 //mt:if %s.Field == HUDOffset
10801 //mt:if %s.Field == HUDWorldPos
10804 //mt:if %s.Field == HUDSize
10807 //mt:if %s.Field == HUDZIndex
10810 //mt:if %s.Field == HUDText2
10812 }))(obj)).Field == HUDScale {
10813 for local192 := range (*(*(struct {
10818 //mt:if %s.Field == HUDPos
10821 //mt:if %s.Field == HUDName
10824 //mt:if %s.Field == HUDScale
10827 //mt:if %s.Field == HUDText
10830 //mt:if %s.Field == HUDNumber
10833 //mt:if %s.Field == HUDItem
10836 //mt:if %s.Field == HUDDir
10839 //mt:if %s.Field == HUDAlign
10842 //mt:if %s.Field == HUDOffset
10845 //mt:if %s.Field == HUDWorldPos
10848 //mt:if %s.Field == HUDSize
10851 //mt:if %s.Field == HUDZIndex
10854 //mt:if %s.Field == HUDText2
10858 p := &((*(*(struct {
10863 //mt:if %s.Field == HUDPos
10866 //mt:if %s.Field == HUDName
10869 //mt:if %s.Field == HUDScale
10872 //mt:if %s.Field == HUDText
10875 //mt:if %s.Field == HUDNumber
10878 //mt:if %s.Field == HUDItem
10881 //mt:if %s.Field == HUDDir
10884 //mt:if %s.Field == HUDAlign
10887 //mt:if %s.Field == HUDOffset
10890 //mt:if %s.Field == HUDWorldPos
10893 //mt:if %s.Field == HUDSize
10896 //mt:if %s.Field == HUDZIndex
10899 //mt:if %s.Field == HUDText2
10901 }))(obj)).Scale)[local192]
10902 *p = math.Float32frombits(read32(r))
10911 //mt:if %s.Field == HUDPos
10914 //mt:if %s.Field == HUDName
10917 //mt:if %s.Field == HUDScale
10920 //mt:if %s.Field == HUDText
10923 //mt:if %s.Field == HUDNumber
10926 //mt:if %s.Field == HUDItem
10929 //mt:if %s.Field == HUDDir
10932 //mt:if %s.Field == HUDAlign
10935 //mt:if %s.Field == HUDOffset
10938 //mt:if %s.Field == HUDWorldPos
10941 //mt:if %s.Field == HUDSize
10944 //mt:if %s.Field == HUDZIndex
10947 //mt:if %s.Field == HUDText2
10949 }))(obj)).Field == HUDText {
10950 var local193 []uint8
10951 var local194 uint16
10956 (local193) = make([]uint8, local194)
10958 _, err := io.ReadFull(r, (local193)[:])
10966 //mt:if %s.Field == HUDPos
10969 //mt:if %s.Field == HUDName
10972 //mt:if %s.Field == HUDScale
10975 //mt:if %s.Field == HUDText
10978 //mt:if %s.Field == HUDNumber
10981 //mt:if %s.Field == HUDItem
10984 //mt:if %s.Field == HUDDir
10987 //mt:if %s.Field == HUDAlign
10990 //mt:if %s.Field == HUDOffset
10993 //mt:if %s.Field == HUDWorldPos
10996 //mt:if %s.Field == HUDSize
10999 //mt:if %s.Field == HUDZIndex
11002 //mt:if %s.Field == HUDText2
11004 }))(obj)).Text) = string(local193)
11011 //mt:if %s.Field == HUDPos
11014 //mt:if %s.Field == HUDName
11017 //mt:if %s.Field == HUDScale
11020 //mt:if %s.Field == HUDText
11023 //mt:if %s.Field == HUDNumber
11026 //mt:if %s.Field == HUDItem
11029 //mt:if %s.Field == HUDDir
11032 //mt:if %s.Field == HUDAlign
11035 //mt:if %s.Field == HUDOffset
11038 //mt:if %s.Field == HUDWorldPos
11041 //mt:if %s.Field == HUDSize
11044 //mt:if %s.Field == HUDZIndex
11047 //mt:if %s.Field == HUDText2
11049 }))(obj)).Field == HUDNumber {
11051 p := &(*(*(struct {
11056 //mt:if %s.Field == HUDPos
11059 //mt:if %s.Field == HUDName
11062 //mt:if %s.Field == HUDScale
11065 //mt:if %s.Field == HUDText
11068 //mt:if %s.Field == HUDNumber
11071 //mt:if %s.Field == HUDItem
11074 //mt:if %s.Field == HUDDir
11077 //mt:if %s.Field == HUDAlign
11080 //mt:if %s.Field == HUDOffset
11083 //mt:if %s.Field == HUDWorldPos
11086 //mt:if %s.Field == HUDSize
11089 //mt:if %s.Field == HUDZIndex
11092 //mt:if %s.Field == HUDText2
11103 //mt:if %s.Field == HUDPos
11106 //mt:if %s.Field == HUDName
11109 //mt:if %s.Field == HUDScale
11112 //mt:if %s.Field == HUDText
11115 //mt:if %s.Field == HUDNumber
11118 //mt:if %s.Field == HUDItem
11121 //mt:if %s.Field == HUDDir
11124 //mt:if %s.Field == HUDAlign
11127 //mt:if %s.Field == HUDOffset
11130 //mt:if %s.Field == HUDWorldPos
11133 //mt:if %s.Field == HUDSize
11136 //mt:if %s.Field == HUDZIndex
11139 //mt:if %s.Field == HUDText2
11141 }))(obj)).Field == HUDItem {
11143 p := &(*(*(struct {
11148 //mt:if %s.Field == HUDPos
11151 //mt:if %s.Field == HUDName
11154 //mt:if %s.Field == HUDScale
11157 //mt:if %s.Field == HUDText
11160 //mt:if %s.Field == HUDNumber
11163 //mt:if %s.Field == HUDItem
11166 //mt:if %s.Field == HUDDir
11169 //mt:if %s.Field == HUDAlign
11172 //mt:if %s.Field == HUDOffset
11175 //mt:if %s.Field == HUDWorldPos
11178 //mt:if %s.Field == HUDSize
11181 //mt:if %s.Field == HUDZIndex
11184 //mt:if %s.Field == HUDText2
11195 //mt:if %s.Field == HUDPos
11198 //mt:if %s.Field == HUDName
11201 //mt:if %s.Field == HUDScale
11204 //mt:if %s.Field == HUDText
11207 //mt:if %s.Field == HUDNumber
11210 //mt:if %s.Field == HUDItem
11213 //mt:if %s.Field == HUDDir
11216 //mt:if %s.Field == HUDAlign
11219 //mt:if %s.Field == HUDOffset
11222 //mt:if %s.Field == HUDWorldPos
11225 //mt:if %s.Field == HUDSize
11228 //mt:if %s.Field == HUDZIndex
11231 //mt:if %s.Field == HUDText2
11233 }))(obj)).Field == HUDDir {
11235 p := &(*(*(struct {
11240 //mt:if %s.Field == HUDPos
11243 //mt:if %s.Field == HUDName
11246 //mt:if %s.Field == HUDScale
11249 //mt:if %s.Field == HUDText
11252 //mt:if %s.Field == HUDNumber
11255 //mt:if %s.Field == HUDItem
11258 //mt:if %s.Field == HUDDir
11261 //mt:if %s.Field == HUDAlign
11264 //mt:if %s.Field == HUDOffset
11267 //mt:if %s.Field == HUDWorldPos
11270 //mt:if %s.Field == HUDSize
11273 //mt:if %s.Field == HUDZIndex
11276 //mt:if %s.Field == HUDText2
11287 //mt:if %s.Field == HUDPos
11290 //mt:if %s.Field == HUDName
11293 //mt:if %s.Field == HUDScale
11296 //mt:if %s.Field == HUDText
11299 //mt:if %s.Field == HUDNumber
11302 //mt:if %s.Field == HUDItem
11305 //mt:if %s.Field == HUDDir
11308 //mt:if %s.Field == HUDAlign
11311 //mt:if %s.Field == HUDOffset
11314 //mt:if %s.Field == HUDWorldPos
11317 //mt:if %s.Field == HUDSize
11320 //mt:if %s.Field == HUDZIndex
11323 //mt:if %s.Field == HUDText2
11325 }))(obj)).Field == HUDAlign {
11326 for local195 := range (*(*(struct {
11331 //mt:if %s.Field == HUDPos
11334 //mt:if %s.Field == HUDName
11337 //mt:if %s.Field == HUDScale
11340 //mt:if %s.Field == HUDText
11343 //mt:if %s.Field == HUDNumber
11346 //mt:if %s.Field == HUDItem
11349 //mt:if %s.Field == HUDDir
11352 //mt:if %s.Field == HUDAlign
11355 //mt:if %s.Field == HUDOffset
11358 //mt:if %s.Field == HUDWorldPos
11361 //mt:if %s.Field == HUDSize
11364 //mt:if %s.Field == HUDZIndex
11367 //mt:if %s.Field == HUDText2
11371 p := &((*(*(struct {
11376 //mt:if %s.Field == HUDPos
11379 //mt:if %s.Field == HUDName
11382 //mt:if %s.Field == HUDScale
11385 //mt:if %s.Field == HUDText
11388 //mt:if %s.Field == HUDNumber
11391 //mt:if %s.Field == HUDItem
11394 //mt:if %s.Field == HUDDir
11397 //mt:if %s.Field == HUDAlign
11400 //mt:if %s.Field == HUDOffset
11403 //mt:if %s.Field == HUDWorldPos
11406 //mt:if %s.Field == HUDSize
11409 //mt:if %s.Field == HUDZIndex
11412 //mt:if %s.Field == HUDText2
11414 }))(obj)).Align)[local195]
11415 *p = math.Float32frombits(read32(r))
11424 //mt:if %s.Field == HUDPos
11427 //mt:if %s.Field == HUDName
11430 //mt:if %s.Field == HUDScale
11433 //mt:if %s.Field == HUDText
11436 //mt:if %s.Field == HUDNumber
11439 //mt:if %s.Field == HUDItem
11442 //mt:if %s.Field == HUDDir
11445 //mt:if %s.Field == HUDAlign
11448 //mt:if %s.Field == HUDOffset
11451 //mt:if %s.Field == HUDWorldPos
11454 //mt:if %s.Field == HUDSize
11457 //mt:if %s.Field == HUDZIndex
11460 //mt:if %s.Field == HUDText2
11462 }))(obj)).Field == HUDOffset {
11463 for local196 := range (*(*(struct {
11468 //mt:if %s.Field == HUDPos
11471 //mt:if %s.Field == HUDName
11474 //mt:if %s.Field == HUDScale
11477 //mt:if %s.Field == HUDText
11480 //mt:if %s.Field == HUDNumber
11483 //mt:if %s.Field == HUDItem
11486 //mt:if %s.Field == HUDDir
11489 //mt:if %s.Field == HUDAlign
11492 //mt:if %s.Field == HUDOffset
11495 //mt:if %s.Field == HUDWorldPos
11498 //mt:if %s.Field == HUDSize
11501 //mt:if %s.Field == HUDZIndex
11504 //mt:if %s.Field == HUDText2
11508 p := &((*(*(struct {
11513 //mt:if %s.Field == HUDPos
11516 //mt:if %s.Field == HUDName
11519 //mt:if %s.Field == HUDScale
11522 //mt:if %s.Field == HUDText
11525 //mt:if %s.Field == HUDNumber
11528 //mt:if %s.Field == HUDItem
11531 //mt:if %s.Field == HUDDir
11534 //mt:if %s.Field == HUDAlign
11537 //mt:if %s.Field == HUDOffset
11540 //mt:if %s.Field == HUDWorldPos
11543 //mt:if %s.Field == HUDSize
11546 //mt:if %s.Field == HUDZIndex
11549 //mt:if %s.Field == HUDText2
11551 }))(obj)).Offset)[local196]
11552 *p = math.Float32frombits(read32(r))
11561 //mt:if %s.Field == HUDPos
11564 //mt:if %s.Field == HUDName
11567 //mt:if %s.Field == HUDScale
11570 //mt:if %s.Field == HUDText
11573 //mt:if %s.Field == HUDNumber
11576 //mt:if %s.Field == HUDItem
11579 //mt:if %s.Field == HUDDir
11582 //mt:if %s.Field == HUDAlign
11585 //mt:if %s.Field == HUDOffset
11588 //mt:if %s.Field == HUDWorldPos
11591 //mt:if %s.Field == HUDSize
11594 //mt:if %s.Field == HUDZIndex
11597 //mt:if %s.Field == HUDText2
11599 }))(obj)).Field == HUDWorldPos {
11600 if err := pcall(func() {
11606 //mt:if %s.Field == HUDPos
11609 //mt:if %s.Field == HUDName
11612 //mt:if %s.Field == HUDScale
11615 //mt:if %s.Field == HUDText
11618 //mt:if %s.Field == HUDNumber
11621 //mt:if %s.Field == HUDItem
11624 //mt:if %s.Field == HUDDir
11627 //mt:if %s.Field == HUDAlign
11630 //mt:if %s.Field == HUDOffset
11633 //mt:if %s.Field == HUDWorldPos
11636 //mt:if %s.Field == HUDSize
11639 //mt:if %s.Field == HUDZIndex
11642 //mt:if %s.Field == HUDText2
11644 }))(obj)).WorldPos).deserialize(r)
11649 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
11657 //mt:if %s.Field == HUDPos
11660 //mt:if %s.Field == HUDName
11663 //mt:if %s.Field == HUDScale
11666 //mt:if %s.Field == HUDText
11669 //mt:if %s.Field == HUDNumber
11672 //mt:if %s.Field == HUDItem
11675 //mt:if %s.Field == HUDDir
11678 //mt:if %s.Field == HUDAlign
11681 //mt:if %s.Field == HUDOffset
11684 //mt:if %s.Field == HUDWorldPos
11687 //mt:if %s.Field == HUDSize
11690 //mt:if %s.Field == HUDZIndex
11693 //mt:if %s.Field == HUDText2
11695 }))(obj)).Field == HUDSize {
11696 for local197 := range (*(*(struct {
11701 //mt:if %s.Field == HUDPos
11704 //mt:if %s.Field == HUDName
11707 //mt:if %s.Field == HUDScale
11710 //mt:if %s.Field == HUDText
11713 //mt:if %s.Field == HUDNumber
11716 //mt:if %s.Field == HUDItem
11719 //mt:if %s.Field == HUDDir
11722 //mt:if %s.Field == HUDAlign
11725 //mt:if %s.Field == HUDOffset
11728 //mt:if %s.Field == HUDWorldPos
11731 //mt:if %s.Field == HUDSize
11734 //mt:if %s.Field == HUDZIndex
11737 //mt:if %s.Field == HUDText2
11741 p := &((*(*(struct {
11746 //mt:if %s.Field == HUDPos
11749 //mt:if %s.Field == HUDName
11752 //mt:if %s.Field == HUDScale
11755 //mt:if %s.Field == HUDText
11758 //mt:if %s.Field == HUDNumber
11761 //mt:if %s.Field == HUDItem
11764 //mt:if %s.Field == HUDDir
11767 //mt:if %s.Field == HUDAlign
11770 //mt:if %s.Field == HUDOffset
11773 //mt:if %s.Field == HUDWorldPos
11776 //mt:if %s.Field == HUDSize
11779 //mt:if %s.Field == HUDZIndex
11782 //mt:if %s.Field == HUDText2
11784 }))(obj)).Size)[local197]
11785 *p = int32(read32(r))
11794 //mt:if %s.Field == HUDPos
11797 //mt:if %s.Field == HUDName
11800 //mt:if %s.Field == HUDScale
11803 //mt:if %s.Field == HUDText
11806 //mt:if %s.Field == HUDNumber
11809 //mt:if %s.Field == HUDItem
11812 //mt:if %s.Field == HUDDir
11815 //mt:if %s.Field == HUDAlign
11818 //mt:if %s.Field == HUDOffset
11821 //mt:if %s.Field == HUDWorldPos
11824 //mt:if %s.Field == HUDSize
11827 //mt:if %s.Field == HUDZIndex
11830 //mt:if %s.Field == HUDText2
11832 }))(obj)).Field == HUDZIndex {
11834 p := &(*(*(struct {
11839 //mt:if %s.Field == HUDPos
11842 //mt:if %s.Field == HUDName
11845 //mt:if %s.Field == HUDScale
11848 //mt:if %s.Field == HUDText
11851 //mt:if %s.Field == HUDNumber
11854 //mt:if %s.Field == HUDItem
11857 //mt:if %s.Field == HUDDir
11860 //mt:if %s.Field == HUDAlign
11863 //mt:if %s.Field == HUDOffset
11866 //mt:if %s.Field == HUDWorldPos
11869 //mt:if %s.Field == HUDSize
11872 //mt:if %s.Field == HUDZIndex
11875 //mt:if %s.Field == HUDText2
11886 //mt:if %s.Field == HUDPos
11889 //mt:if %s.Field == HUDName
11892 //mt:if %s.Field == HUDScale
11895 //mt:if %s.Field == HUDText
11898 //mt:if %s.Field == HUDNumber
11901 //mt:if %s.Field == HUDItem
11904 //mt:if %s.Field == HUDDir
11907 //mt:if %s.Field == HUDAlign
11910 //mt:if %s.Field == HUDOffset
11913 //mt:if %s.Field == HUDWorldPos
11916 //mt:if %s.Field == HUDSize
11919 //mt:if %s.Field == HUDZIndex
11922 //mt:if %s.Field == HUDText2
11924 }))(obj)).Field == HUDText2 {
11925 var local198 []uint8
11926 var local199 uint16
11931 (local198) = make([]uint8, local199)
11933 _, err := io.ReadFull(r, (local198)[:])
11941 //mt:if %s.Field == HUDPos
11944 //mt:if %s.Field == HUDName
11947 //mt:if %s.Field == HUDScale
11950 //mt:if %s.Field == HUDText
11953 //mt:if %s.Field == HUDNumber
11956 //mt:if %s.Field == HUDItem
11959 //mt:if %s.Field == HUDDir
11962 //mt:if %s.Field == HUDAlign
11965 //mt:if %s.Field == HUDOffset
11968 //mt:if %s.Field == HUDWorldPos
11971 //mt:if %s.Field == HUDSize
11974 //mt:if %s.Field == HUDZIndex
11977 //mt:if %s.Field == HUDText2
11979 }))(obj)).Text2) = string(local198)
11983 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
11984 if err := pcall(func() {
11988 Flags, Mask HUDFlags
11989 }))(obj)).Flags).serialize(w)
11994 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
11996 if err := pcall(func() {
12000 Flags, Mask HUDFlags
12001 }))(obj)).Mask).serialize(w)
12006 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
12010 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
12011 if err := pcall(func() {
12015 Flags, Mask HUDFlags
12016 }))(obj)).Flags).deserialize(r)
12021 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
12023 if err := pcall(func() {
12027 Flags, Mask HUDFlags
12028 }))(obj)).Mask).deserialize(r)
12033 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
12037 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
12038 if err := pcall(func() {
12042 //mt:if %s.Param == HotbarSize
12043 //mt:const uint16(4) // Size of Size field.
12046 //mt:if %s.Param != HotbarSize
12048 }))(obj)).Param).serialize(w)
12053 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
12058 //mt:if %s.Param == HotbarSize
12059 //mt:const uint16(4) // Size of Size field.
12062 //mt:if %s.Param != HotbarSize
12064 }))(obj)).Param == HotbarSize {
12066 local200 := uint16(4) // Size of Size field.
12069 write16(w, uint16(x))
12076 //mt:if %s.Param == HotbarSize
12077 //mt:const uint16(4) // Size of Size field.
12080 //mt:if %s.Param != HotbarSize
12083 write32(w, uint32(x))
12089 //mt:if %s.Param == HotbarSize
12090 //mt:const uint16(4) // Size of Size field.
12093 //mt:if %s.Param != HotbarSize
12095 }))(obj)).Param != HotbarSize {
12096 if err := pcall(func() {
12100 //mt:if %s.Param == HotbarSize
12101 //mt:const uint16(4) // Size of Size field.
12104 //mt:if %s.Param != HotbarSize
12106 }))(obj)).Img).serialize(w)
12111 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12116 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
12117 if err := pcall(func() {
12121 //mt:if %s.Param == HotbarSize
12122 //mt:const uint16(4) // Size of Size field.
12125 //mt:if %s.Param != HotbarSize
12127 }))(obj)).Param).deserialize(r)
12132 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
12137 //mt:if %s.Param == HotbarSize
12138 //mt:const uint16(4) // Size of Size field.
12141 //mt:if %s.Param != HotbarSize
12143 }))(obj)).Param == HotbarSize {
12145 var local201 uint16
12150 if local201 != (4) {
12151 chk(fmt.Errorf("const %v: %v", 4, local201))
12155 p := &(*(*(struct {
12158 //mt:if %s.Param == HotbarSize
12159 //mt:const uint16(4) // Size of Size field.
12162 //mt:if %s.Param != HotbarSize
12165 *p = int32(read32(r))
12171 //mt:if %s.Param == HotbarSize
12172 //mt:const uint16(4) // Size of Size field.
12175 //mt:if %s.Param != HotbarSize
12177 }))(obj)).Param != HotbarSize {
12178 if err := pcall(func() {
12182 //mt:if %s.Param == HotbarSize
12183 //mt:const uint16(4) // Size of Size field.
12186 //mt:if %s.Param != HotbarSize
12188 }))(obj)).Img).deserialize(r)
12193 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12198 func (obj *ToCltBreath) serialize(w io.Writer) {
12203 write16(w, uint16(x))
12207 func (obj *ToCltBreath) deserialize(r io.Reader) {
12209 p := &(*(*(struct {
12216 func (obj *ToCltSkyParams) serialize(w io.Writer) {
12219 BgColor color.NRGBA
12222 SunFogTint color.NRGBA
12223 MoonFogTint color.NRGBA
12226 //mt:if %s.Type == "skybox"
12229 //mt:if %s.Type == "regular"
12230 DaySky, DayHorizon,
12231 DawnSky, DawnHorizon,
12232 NightSky, NightHorizon,
12235 w.Write([]byte{x.A, x.R, x.G, x.B})
12237 if len(([]byte((*(*(struct {
12238 BgColor color.NRGBA
12241 SunFogTint color.NRGBA
12242 MoonFogTint color.NRGBA
12245 //mt:if %s.Type == "skybox"
12248 //mt:if %s.Type == "regular"
12249 DaySky, DayHorizon,
12250 DawnSky, DawnHorizon,
12251 NightSky, NightHorizon,
12253 }))(obj)).Type))) > math.MaxUint16 {
12257 x := uint16(len(([]byte((*(*(struct {
12258 BgColor color.NRGBA
12261 SunFogTint color.NRGBA
12262 MoonFogTint color.NRGBA
12265 //mt:if %s.Type == "skybox"
12268 //mt:if %s.Type == "regular"
12269 DaySky, DayHorizon,
12270 DawnSky, DawnHorizon,
12271 NightSky, NightHorizon,
12274 write16(w, uint16(x))
12277 _, err := w.Write(([]byte((*(*(struct {
12278 BgColor color.NRGBA
12281 SunFogTint color.NRGBA
12282 MoonFogTint color.NRGBA
12285 //mt:if %s.Type == "skybox"
12288 //mt:if %s.Type == "regular"
12289 DaySky, DayHorizon,
12290 DawnSky, DawnHorizon,
12291 NightSky, NightHorizon,
12293 }))(obj)).Type))[:])
12298 BgColor color.NRGBA
12301 SunFogTint color.NRGBA
12302 MoonFogTint color.NRGBA
12305 //mt:if %s.Type == "skybox"
12308 //mt:if %s.Type == "regular"
12309 DaySky, DayHorizon,
12310 DawnSky, DawnHorizon,
12311 NightSky, NightHorizon,
12322 BgColor color.NRGBA
12325 SunFogTint color.NRGBA
12326 MoonFogTint color.NRGBA
12329 //mt:if %s.Type == "skybox"
12332 //mt:if %s.Type == "regular"
12333 DaySky, DayHorizon,
12334 DawnSky, DawnHorizon,
12335 NightSky, NightHorizon,
12337 }))(obj)).SunFogTint
12338 w.Write([]byte{x.A, x.R, x.G, x.B})
12342 BgColor color.NRGBA
12345 SunFogTint color.NRGBA
12346 MoonFogTint color.NRGBA
12349 //mt:if %s.Type == "skybox"
12352 //mt:if %s.Type == "regular"
12353 DaySky, DayHorizon,
12354 DawnSky, DawnHorizon,
12355 NightSky, NightHorizon,
12357 }))(obj)).MoonFogTint
12358 w.Write([]byte{x.A, x.R, x.G, x.B})
12360 if len(([]byte((*(*(struct {
12361 BgColor color.NRGBA
12364 SunFogTint color.NRGBA
12365 MoonFogTint color.NRGBA
12368 //mt:if %s.Type == "skybox"
12371 //mt:if %s.Type == "regular"
12372 DaySky, DayHorizon,
12373 DawnSky, DawnHorizon,
12374 NightSky, NightHorizon,
12376 }))(obj)).FogTintType))) > math.MaxUint16 {
12380 x := uint16(len(([]byte((*(*(struct {
12381 BgColor color.NRGBA
12384 SunFogTint color.NRGBA
12385 MoonFogTint color.NRGBA
12388 //mt:if %s.Type == "skybox"
12391 //mt:if %s.Type == "regular"
12392 DaySky, DayHorizon,
12393 DawnSky, DawnHorizon,
12394 NightSky, NightHorizon,
12396 }))(obj)).FogTintType))))
12397 write16(w, uint16(x))
12400 _, err := w.Write(([]byte((*(*(struct {
12401 BgColor color.NRGBA
12404 SunFogTint color.NRGBA
12405 MoonFogTint color.NRGBA
12408 //mt:if %s.Type == "skybox"
12411 //mt:if %s.Type == "regular"
12412 DaySky, DayHorizon,
12413 DawnSky, DawnHorizon,
12414 NightSky, NightHorizon,
12416 }))(obj)).FogTintType))[:])
12420 BgColor color.NRGBA
12423 SunFogTint color.NRGBA
12424 MoonFogTint color.NRGBA
12427 //mt:if %s.Type == "skybox"
12430 //mt:if %s.Type == "regular"
12431 DaySky, DayHorizon,
12432 DawnSky, DawnHorizon,
12433 NightSky, NightHorizon,
12435 }))(obj)).Type == "skybox" {
12436 if len(((*(*(struct {
12437 BgColor color.NRGBA
12440 SunFogTint color.NRGBA
12441 MoonFogTint color.NRGBA
12444 //mt:if %s.Type == "skybox"
12447 //mt:if %s.Type == "regular"
12448 DaySky, DayHorizon,
12449 DawnSky, DawnHorizon,
12450 NightSky, NightHorizon,
12452 }))(obj)).Textures)) > math.MaxUint16 {
12456 x := uint16(len(((*(*(struct {
12457 BgColor color.NRGBA
12460 SunFogTint color.NRGBA
12461 MoonFogTint color.NRGBA
12464 //mt:if %s.Type == "skybox"
12467 //mt:if %s.Type == "regular"
12468 DaySky, DayHorizon,
12469 DawnSky, DawnHorizon,
12470 NightSky, NightHorizon,
12472 }))(obj)).Textures)))
12473 write16(w, uint16(x))
12475 for local202 := range (*(*(struct {
12476 BgColor color.NRGBA
12479 SunFogTint color.NRGBA
12480 MoonFogTint color.NRGBA
12483 //mt:if %s.Type == "skybox"
12486 //mt:if %s.Type == "regular"
12487 DaySky, DayHorizon,
12488 DawnSky, DawnHorizon,
12489 NightSky, NightHorizon,
12491 }))(obj)).Textures {
12492 if err := pcall(func() {
12494 BgColor color.NRGBA
12497 SunFogTint color.NRGBA
12498 MoonFogTint color.NRGBA
12501 //mt:if %s.Type == "skybox"
12504 //mt:if %s.Type == "regular"
12505 DaySky, DayHorizon,
12506 DawnSky, DawnHorizon,
12507 NightSky, NightHorizon,
12509 }))(obj)).Textures)[local202]).serialize(w)
12514 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12519 BgColor color.NRGBA
12522 SunFogTint color.NRGBA
12523 MoonFogTint color.NRGBA
12526 //mt:if %s.Type == "skybox"
12529 //mt:if %s.Type == "regular"
12530 DaySky, DayHorizon,
12531 DawnSky, DawnHorizon,
12532 NightSky, NightHorizon,
12534 }))(obj)).Type == "regular" {
12537 BgColor color.NRGBA
12540 SunFogTint color.NRGBA
12541 MoonFogTint color.NRGBA
12544 //mt:if %s.Type == "skybox"
12547 //mt:if %s.Type == "regular"
12548 DaySky, DayHorizon,
12549 DawnSky, DawnHorizon,
12550 NightSky, NightHorizon,
12553 w.Write([]byte{x.A, x.R, x.G, x.B})
12557 BgColor color.NRGBA
12560 SunFogTint color.NRGBA
12561 MoonFogTint color.NRGBA
12564 //mt:if %s.Type == "skybox"
12567 //mt:if %s.Type == "regular"
12568 DaySky, DayHorizon,
12569 DawnSky, DawnHorizon,
12570 NightSky, NightHorizon,
12572 }))(obj)).DayHorizon
12573 w.Write([]byte{x.A, x.R, x.G, x.B})
12577 BgColor color.NRGBA
12580 SunFogTint color.NRGBA
12581 MoonFogTint color.NRGBA
12584 //mt:if %s.Type == "skybox"
12587 //mt:if %s.Type == "regular"
12588 DaySky, DayHorizon,
12589 DawnSky, DawnHorizon,
12590 NightSky, NightHorizon,
12593 w.Write([]byte{x.A, x.R, x.G, x.B})
12597 BgColor color.NRGBA
12600 SunFogTint color.NRGBA
12601 MoonFogTint color.NRGBA
12604 //mt:if %s.Type == "skybox"
12607 //mt:if %s.Type == "regular"
12608 DaySky, DayHorizon,
12609 DawnSky, DawnHorizon,
12610 NightSky, NightHorizon,
12612 }))(obj)).DawnHorizon
12613 w.Write([]byte{x.A, x.R, x.G, x.B})
12617 BgColor color.NRGBA
12620 SunFogTint color.NRGBA
12621 MoonFogTint color.NRGBA
12624 //mt:if %s.Type == "skybox"
12627 //mt:if %s.Type == "regular"
12628 DaySky, DayHorizon,
12629 DawnSky, DawnHorizon,
12630 NightSky, NightHorizon,
12633 w.Write([]byte{x.A, x.R, x.G, x.B})
12637 BgColor color.NRGBA
12640 SunFogTint color.NRGBA
12641 MoonFogTint color.NRGBA
12644 //mt:if %s.Type == "skybox"
12647 //mt:if %s.Type == "regular"
12648 DaySky, DayHorizon,
12649 DawnSky, DawnHorizon,
12650 NightSky, NightHorizon,
12652 }))(obj)).NightHorizon
12653 w.Write([]byte{x.A, x.R, x.G, x.B})
12657 BgColor color.NRGBA
12660 SunFogTint color.NRGBA
12661 MoonFogTint color.NRGBA
12664 //mt:if %s.Type == "skybox"
12667 //mt:if %s.Type == "regular"
12668 DaySky, DayHorizon,
12669 DawnSky, DawnHorizon,
12670 NightSky, NightHorizon,
12673 w.Write([]byte{x.A, x.R, x.G, x.B})
12678 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
12680 p := &(*(*(struct {
12681 BgColor color.NRGBA
12684 SunFogTint color.NRGBA
12685 MoonFogTint color.NRGBA
12688 //mt:if %s.Type == "skybox"
12691 //mt:if %s.Type == "regular"
12692 DaySky, DayHorizon,
12693 DawnSky, DawnHorizon,
12694 NightSky, NightHorizon,
12697 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12699 var local203 []uint8
12700 var local204 uint16
12705 (local203) = make([]uint8, local204)
12707 _, err := io.ReadFull(r, (local203)[:])
12711 BgColor color.NRGBA
12714 SunFogTint color.NRGBA
12715 MoonFogTint color.NRGBA
12718 //mt:if %s.Type == "skybox"
12721 //mt:if %s.Type == "regular"
12722 DaySky, DayHorizon,
12723 DawnSky, DawnHorizon,
12724 NightSky, NightHorizon,
12726 }))(obj)).Type) = string(local203)
12728 p := &(*(*(struct {
12729 BgColor color.NRGBA
12732 SunFogTint color.NRGBA
12733 MoonFogTint color.NRGBA
12736 //mt:if %s.Type == "skybox"
12739 //mt:if %s.Type == "regular"
12740 DaySky, DayHorizon,
12741 DawnSky, DawnHorizon,
12742 NightSky, NightHorizon,
12745 switch n := read8(r); n {
12751 chk(fmt.Errorf("invalid bool: %d", n))
12755 p := &(*(*(struct {
12756 BgColor color.NRGBA
12759 SunFogTint color.NRGBA
12760 MoonFogTint color.NRGBA
12763 //mt:if %s.Type == "skybox"
12766 //mt:if %s.Type == "regular"
12767 DaySky, DayHorizon,
12768 DawnSky, DawnHorizon,
12769 NightSky, NightHorizon,
12771 }))(obj)).SunFogTint
12772 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12775 p := &(*(*(struct {
12776 BgColor color.NRGBA
12779 SunFogTint color.NRGBA
12780 MoonFogTint color.NRGBA
12783 //mt:if %s.Type == "skybox"
12786 //mt:if %s.Type == "regular"
12787 DaySky, DayHorizon,
12788 DawnSky, DawnHorizon,
12789 NightSky, NightHorizon,
12791 }))(obj)).MoonFogTint
12792 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12794 var local205 []uint8
12795 var local206 uint16
12800 (local205) = make([]uint8, local206)
12802 _, err := io.ReadFull(r, (local205)[:])
12806 BgColor color.NRGBA
12809 SunFogTint color.NRGBA
12810 MoonFogTint color.NRGBA
12813 //mt:if %s.Type == "skybox"
12816 //mt:if %s.Type == "regular"
12817 DaySky, DayHorizon,
12818 DawnSky, DawnHorizon,
12819 NightSky, NightHorizon,
12821 }))(obj)).FogTintType) = string(local205)
12823 BgColor color.NRGBA
12826 SunFogTint color.NRGBA
12827 MoonFogTint color.NRGBA
12830 //mt:if %s.Type == "skybox"
12833 //mt:if %s.Type == "regular"
12834 DaySky, DayHorizon,
12835 DawnSky, DawnHorizon,
12836 NightSky, NightHorizon,
12838 }))(obj)).Type == "skybox" {
12839 var local207 uint16
12845 BgColor color.NRGBA
12848 SunFogTint color.NRGBA
12849 MoonFogTint color.NRGBA
12852 //mt:if %s.Type == "skybox"
12855 //mt:if %s.Type == "regular"
12856 DaySky, DayHorizon,
12857 DawnSky, DawnHorizon,
12858 NightSky, NightHorizon,
12860 }))(obj)).Textures) = make([]Texture, local207)
12861 for local208 := range (*(*(struct {
12862 BgColor color.NRGBA
12865 SunFogTint color.NRGBA
12866 MoonFogTint color.NRGBA
12869 //mt:if %s.Type == "skybox"
12872 //mt:if %s.Type == "regular"
12873 DaySky, DayHorizon,
12874 DawnSky, DawnHorizon,
12875 NightSky, NightHorizon,
12877 }))(obj)).Textures {
12878 if err := pcall(func() {
12880 BgColor color.NRGBA
12883 SunFogTint color.NRGBA
12884 MoonFogTint color.NRGBA
12887 //mt:if %s.Type == "skybox"
12890 //mt:if %s.Type == "regular"
12891 DaySky, DayHorizon,
12892 DawnSky, DawnHorizon,
12893 NightSky, NightHorizon,
12895 }))(obj)).Textures)[local208]).deserialize(r)
12900 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12905 BgColor color.NRGBA
12908 SunFogTint color.NRGBA
12909 MoonFogTint color.NRGBA
12912 //mt:if %s.Type == "skybox"
12915 //mt:if %s.Type == "regular"
12916 DaySky, DayHorizon,
12917 DawnSky, DawnHorizon,
12918 NightSky, NightHorizon,
12920 }))(obj)).Type == "regular" {
12922 p := &(*(*(struct {
12923 BgColor color.NRGBA
12926 SunFogTint color.NRGBA
12927 MoonFogTint color.NRGBA
12930 //mt:if %s.Type == "skybox"
12933 //mt:if %s.Type == "regular"
12934 DaySky, DayHorizon,
12935 DawnSky, DawnHorizon,
12936 NightSky, NightHorizon,
12939 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12942 p := &(*(*(struct {
12943 BgColor color.NRGBA
12946 SunFogTint color.NRGBA
12947 MoonFogTint color.NRGBA
12950 //mt:if %s.Type == "skybox"
12953 //mt:if %s.Type == "regular"
12954 DaySky, DayHorizon,
12955 DawnSky, DawnHorizon,
12956 NightSky, NightHorizon,
12958 }))(obj)).DayHorizon
12959 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12962 p := &(*(*(struct {
12963 BgColor color.NRGBA
12966 SunFogTint color.NRGBA
12967 MoonFogTint color.NRGBA
12970 //mt:if %s.Type == "skybox"
12973 //mt:if %s.Type == "regular"
12974 DaySky, DayHorizon,
12975 DawnSky, DawnHorizon,
12976 NightSky, NightHorizon,
12979 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12982 p := &(*(*(struct {
12983 BgColor color.NRGBA
12986 SunFogTint color.NRGBA
12987 MoonFogTint color.NRGBA
12990 //mt:if %s.Type == "skybox"
12993 //mt:if %s.Type == "regular"
12994 DaySky, DayHorizon,
12995 DawnSky, DawnHorizon,
12996 NightSky, NightHorizon,
12998 }))(obj)).DawnHorizon
12999 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13002 p := &(*(*(struct {
13003 BgColor color.NRGBA
13006 SunFogTint color.NRGBA
13007 MoonFogTint color.NRGBA
13010 //mt:if %s.Type == "skybox"
13013 //mt:if %s.Type == "regular"
13014 DaySky, DayHorizon,
13015 DawnSky, DawnHorizon,
13016 NightSky, NightHorizon,
13019 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13022 p := &(*(*(struct {
13023 BgColor color.NRGBA
13026 SunFogTint color.NRGBA
13027 MoonFogTint color.NRGBA
13030 //mt:if %s.Type == "skybox"
13033 //mt:if %s.Type == "regular"
13034 DaySky, DayHorizon,
13035 DawnSky, DawnHorizon,
13036 NightSky, NightHorizon,
13038 }))(obj)).NightHorizon
13039 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13042 p := &(*(*(struct {
13043 BgColor color.NRGBA
13046 SunFogTint color.NRGBA
13047 MoonFogTint color.NRGBA
13050 //mt:if %s.Type == "skybox"
13053 //mt:if %s.Type == "regular"
13054 DaySky, DayHorizon,
13055 DawnSky, DawnHorizon,
13056 NightSky, NightHorizon,
13059 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13064 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
13081 write16(w, uint16(x))
13085 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
13087 p := &(*(*(struct {
13091 switch n := read8(r); n {
13097 chk(fmt.Errorf("invalid bool: %d", n))
13101 p := &(*(*(struct {
13109 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
13110 for local209 := range (*(*(struct {
13111 Idle, Walk, Dig, WalkDig [2]int32
13115 x := ((*(*(struct {
13116 Idle, Walk, Dig, WalkDig [2]int32
13118 }))(obj)).Idle)[local209]
13119 write32(w, uint32(x))
13122 for local210 := range (*(*(struct {
13123 Idle, Walk, Dig, WalkDig [2]int32
13127 x := ((*(*(struct {
13128 Idle, Walk, Dig, WalkDig [2]int32
13130 }))(obj)).Walk)[local210]
13131 write32(w, uint32(x))
13134 for local211 := range (*(*(struct {
13135 Idle, Walk, Dig, WalkDig [2]int32
13139 x := ((*(*(struct {
13140 Idle, Walk, Dig, WalkDig [2]int32
13142 }))(obj)).Dig)[local211]
13143 write32(w, uint32(x))
13146 for local212 := range (*(*(struct {
13147 Idle, Walk, Dig, WalkDig [2]int32
13149 }))(obj)).WalkDig {
13151 x := ((*(*(struct {
13152 Idle, Walk, Dig, WalkDig [2]int32
13154 }))(obj)).WalkDig)[local212]
13155 write32(w, uint32(x))
13160 Idle, Walk, Dig, WalkDig [2]int32
13163 write32(w, math.Float32bits(x))
13167 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
13168 for local213 := range (*(*(struct {
13169 Idle, Walk, Dig, WalkDig [2]int32
13173 p := &((*(*(struct {
13174 Idle, Walk, Dig, WalkDig [2]int32
13176 }))(obj)).Idle)[local213]
13177 *p = int32(read32(r))
13180 for local214 := range (*(*(struct {
13181 Idle, Walk, Dig, WalkDig [2]int32
13185 p := &((*(*(struct {
13186 Idle, Walk, Dig, WalkDig [2]int32
13188 }))(obj)).Walk)[local214]
13189 *p = int32(read32(r))
13192 for local215 := range (*(*(struct {
13193 Idle, Walk, Dig, WalkDig [2]int32
13197 p := &((*(*(struct {
13198 Idle, Walk, Dig, WalkDig [2]int32
13200 }))(obj)).Dig)[local215]
13201 *p = int32(read32(r))
13204 for local216 := range (*(*(struct {
13205 Idle, Walk, Dig, WalkDig [2]int32
13207 }))(obj)).WalkDig {
13209 p := &((*(*(struct {
13210 Idle, Walk, Dig, WalkDig [2]int32
13212 }))(obj)).WalkDig)[local216]
13213 *p = int32(read32(r))
13217 p := &(*(*(struct {
13218 Idle, Walk, Dig, WalkDig [2]int32
13221 *p = math.Float32frombits(read32(r))
13225 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
13226 if err := pcall(func() {
13229 }))(obj)).First).serialize(w)
13234 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
13236 if err := pcall(func() {
13239 }))(obj)).Third).serialize(w)
13244 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
13248 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
13249 if err := pcall(func() {
13252 }))(obj)).First).deserialize(r)
13257 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
13259 if err := pcall(func() {
13262 }))(obj)).Third).deserialize(r)
13267 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
13271 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
13272 if err := pcall(func() {
13274 ID ParticleSpawnerID
13275 }))(obj)).ID).serialize(w)
13280 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
13284 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
13285 if err := pcall(func() {
13287 ID ParticleSpawnerID
13288 }))(obj)).ID).deserialize(r)
13293 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
13297 func (obj *ToCltCloudParams) serialize(w io.Writer) {
13301 DiffuseColor color.NRGBA
13302 AmbientColor color.NRGBA
13307 write32(w, math.Float32bits(x))
13312 DiffuseColor color.NRGBA
13313 AmbientColor color.NRGBA
13317 }))(obj)).DiffuseColor
13318 w.Write([]byte{x.A, x.R, x.G, x.B})
13323 DiffuseColor color.NRGBA
13324 AmbientColor color.NRGBA
13328 }))(obj)).AmbientColor
13329 w.Write([]byte{x.A, x.R, x.G, x.B})
13334 DiffuseColor color.NRGBA
13335 AmbientColor color.NRGBA
13340 write32(w, math.Float32bits(x))
13345 DiffuseColor color.NRGBA
13346 AmbientColor color.NRGBA
13350 }))(obj)).Thickness
13351 write32(w, math.Float32bits(x))
13353 for local217 := range (*(*(struct {
13355 DiffuseColor color.NRGBA
13356 AmbientColor color.NRGBA
13362 x := ((*(*(struct {
13364 DiffuseColor color.NRGBA
13365 AmbientColor color.NRGBA
13369 }))(obj)).Speed)[local217]
13370 write32(w, math.Float32bits(x))
13375 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
13377 p := &(*(*(struct {
13379 DiffuseColor color.NRGBA
13380 AmbientColor color.NRGBA
13385 *p = math.Float32frombits(read32(r))
13388 p := &(*(*(struct {
13390 DiffuseColor color.NRGBA
13391 AmbientColor color.NRGBA
13395 }))(obj)).DiffuseColor
13396 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13399 p := &(*(*(struct {
13401 DiffuseColor color.NRGBA
13402 AmbientColor color.NRGBA
13406 }))(obj)).AmbientColor
13407 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13410 p := &(*(*(struct {
13412 DiffuseColor color.NRGBA
13413 AmbientColor color.NRGBA
13418 *p = math.Float32frombits(read32(r))
13421 p := &(*(*(struct {
13423 DiffuseColor color.NRGBA
13424 AmbientColor color.NRGBA
13428 }))(obj)).Thickness
13429 *p = math.Float32frombits(read32(r))
13431 for local218 := range (*(*(struct {
13433 DiffuseColor color.NRGBA
13434 AmbientColor color.NRGBA
13440 p := &((*(*(struct {
13442 DiffuseColor color.NRGBA
13443 AmbientColor color.NRGBA
13447 }))(obj)).Speed)[local218]
13448 *p = math.Float32frombits(read32(r))
13453 func (obj *ToCltFadeSound) serialize(w io.Writer) {
13454 if err := pcall(func() {
13459 }))(obj)).ID).serialize(w)
13464 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
13472 write32(w, math.Float32bits(x))
13480 write32(w, math.Float32bits(x))
13484 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
13485 if err := pcall(func() {
13490 }))(obj)).ID).deserialize(r)
13495 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
13498 p := &(*(*(struct {
13503 *p = math.Float32frombits(read32(r))
13506 p := &(*(*(struct {
13511 *p = math.Float32frombits(read32(r))
13515 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
13516 if err := pcall(func() {
13518 Type PlayerListUpdateType
13520 }))(obj)).Type).serialize(w)
13525 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
13527 if len(((*(*(struct {
13528 Type PlayerListUpdateType
13530 }))(obj)).Players)) > math.MaxUint16 {
13534 x := uint16(len(((*(*(struct {
13535 Type PlayerListUpdateType
13537 }))(obj)).Players)))
13538 write16(w, uint16(x))
13540 for local219 := range (*(*(struct {
13541 Type PlayerListUpdateType
13543 }))(obj)).Players {
13544 if len(([]byte(((*(*(struct {
13545 Type PlayerListUpdateType
13547 }))(obj)).Players)[local219]))) > math.MaxUint16 {
13551 x := uint16(len(([]byte(((*(*(struct {
13552 Type PlayerListUpdateType
13554 }))(obj)).Players)[local219]))))
13555 write16(w, uint16(x))
13558 _, err := w.Write(([]byte(((*(*(struct {
13559 Type PlayerListUpdateType
13561 }))(obj)).Players)[local219]))[:])
13567 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
13568 if err := pcall(func() {
13570 Type PlayerListUpdateType
13572 }))(obj)).Type).deserialize(r)
13577 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
13579 var local220 uint16
13585 Type PlayerListUpdateType
13587 }))(obj)).Players) = make([]string, local220)
13588 for local221 := range (*(*(struct {
13589 Type PlayerListUpdateType
13591 }))(obj)).Players {
13592 var local222 []uint8
13593 var local223 uint16
13598 (local222) = make([]uint8, local223)
13600 _, err := io.ReadFull(r, (local222)[:])
13604 Type PlayerListUpdateType
13606 }))(obj)).Players)[local221]) = string(local222)
13610 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
13611 if len(([]byte((*(*(struct {
13615 }))(obj)).Channel))) > math.MaxUint16 {
13619 x := uint16(len(([]byte((*(*(struct {
13623 }))(obj)).Channel))))
13624 write16(w, uint16(x))
13627 _, err := w.Write(([]byte((*(*(struct {
13631 }))(obj)).Channel))[:])
13634 if len(([]byte((*(*(struct {
13638 }))(obj)).Sender))) > math.MaxUint16 {
13642 x := uint16(len(([]byte((*(*(struct {
13646 }))(obj)).Sender))))
13647 write16(w, uint16(x))
13650 _, err := w.Write(([]byte((*(*(struct {
13654 }))(obj)).Sender))[:])
13657 if len(([]byte((*(*(struct {
13661 }))(obj)).Msg))) > math.MaxUint16 {
13665 x := uint16(len(([]byte((*(*(struct {
13670 write16(w, uint16(x))
13673 _, err := w.Write(([]byte((*(*(struct {
13677 }))(obj)).Msg))[:])
13682 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
13683 var local224 []uint8
13684 var local225 uint16
13689 (local224) = make([]uint8, local225)
13691 _, err := io.ReadFull(r, (local224)[:])
13698 }))(obj)).Channel) = string(local224)
13699 var local226 []uint8
13700 var local227 uint16
13705 (local226) = make([]uint8, local227)
13707 _, err := io.ReadFull(r, (local226)[:])
13714 }))(obj)).Sender) = string(local226)
13715 var local228 []uint8
13716 var local229 uint16
13721 (local228) = make([]uint8, local229)
13723 _, err := io.ReadFull(r, (local228)[:])
13730 }))(obj)).Msg) = string(local228)
13733 func (obj *ToCltModChanSig) serialize(w io.Writer) {
13734 if err := pcall(func() {
13738 }))(obj)).Signal).serialize(w)
13743 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
13745 if len(([]byte((*(*(struct {
13748 }))(obj)).Channel))) > math.MaxUint16 {
13752 x := uint16(len(([]byte((*(*(struct {
13755 }))(obj)).Channel))))
13756 write16(w, uint16(x))
13759 _, err := w.Write(([]byte((*(*(struct {
13762 }))(obj)).Channel))[:])
13767 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
13768 if err := pcall(func() {
13772 }))(obj)).Signal).deserialize(r)
13777 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
13779 var local230 []uint8
13780 var local231 uint16
13785 (local230) = make([]uint8, local231)
13787 _, err := io.ReadFull(r, (local230)[:])
13793 }))(obj)).Channel) = string(local230)
13796 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
13799 w := new(bytes.Buffer)
13803 Changed map[[3]int16]*NodeMeta
13806 w := zlib.NewWriter(w)
13811 if len(x) > math.MaxUint16 {
13814 write16(w, uint16(len(x)))
13815 keys := make([][3]int16, 0, len(x))
13816 for key := range x {
13817 keys = append(keys, key)
13819 sort.Slice(keys, func(i, j int) bool {
13820 p, q := keys[i], keys[j]
13831 for _, key := range keys {
13832 for _, n := range key {
13833 write16(w, uint16(n))
13835 chk(serialize(w, x[key]))
13844 if len((buf.Bytes())) > math.MaxUint32 {
13848 x := uint32(len((buf.Bytes())))
13849 write32(w, uint32(x))
13852 _, err := w.Write((buf.Bytes())[:])
13859 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
13866 r := &io.LimitedReader{r, int64(n)}
13868 p := &(*(*(struct {
13870 Changed map[[3]int16]*NodeMeta
13873 r, err := zlib.NewReader(byteReader{r})
13875 switch ver := read8(r); ver {
13880 *p = make(map[[3]int16]*NodeMeta, n)
13883 for i := range pos {
13884 pos[i] = int16(read16(r))
13886 nm := new(NodeMeta)
13887 chk(deserialize(r, nm))
13891 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
13897 chk(fmt.Errorf("%d bytes of trailing data", r.N))
13902 func (obj *ToCltSunParams) serialize(w io.Writer) {
13918 if err := pcall(func() {
13926 }))(obj)).Texture).serialize(w)
13931 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13933 if err := pcall(func() {
13941 }))(obj)).ToneMap).serialize(w)
13946 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13948 if err := pcall(func() {
13956 }))(obj)).Rise).serialize(w)
13961 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13987 write32(w, math.Float32bits(x))
13991 func (obj *ToCltSunParams) deserialize(r io.Reader) {
13993 p := &(*(*(struct {
14001 switch n := read8(r); n {
14007 chk(fmt.Errorf("invalid bool: %d", n))
14010 if err := pcall(func() {
14018 }))(obj)).Texture).deserialize(r)
14023 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14025 if err := pcall(func() {
14033 }))(obj)).ToneMap).deserialize(r)
14038 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14040 if err := pcall(func() {
14048 }))(obj)).Rise).deserialize(r)
14053 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14056 p := &(*(*(struct {
14064 switch n := read8(r); n {
14070 chk(fmt.Errorf("invalid bool: %d", n))
14074 p := &(*(*(struct {
14082 *p = math.Float32frombits(read32(r))
14086 func (obj *ToCltMoonParams) serialize(w io.Writer) {
14100 if err := pcall(func() {
14106 }))(obj)).Texture).serialize(w)
14111 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14113 if err := pcall(func() {
14119 }))(obj)).ToneMap).serialize(w)
14124 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14133 write32(w, math.Float32bits(x))
14137 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
14139 p := &(*(*(struct {
14145 switch n := read8(r); n {
14151 chk(fmt.Errorf("invalid bool: %d", n))
14154 if err := pcall(func() {
14160 }))(obj)).Texture).deserialize(r)
14165 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14167 if err := pcall(func() {
14173 }))(obj)).ToneMap).deserialize(r)
14178 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14181 p := &(*(*(struct {
14187 *p = math.Float32frombits(read32(r))
14191 func (obj *ToCltStarParams) serialize(w io.Writer) {
14212 write32(w, uint32(x))
14221 w.Write([]byte{x.A, x.R, x.G, x.B})
14230 write32(w, math.Float32bits(x))
14234 func (obj *ToCltStarParams) deserialize(r io.Reader) {
14236 p := &(*(*(struct {
14242 switch n := read8(r); n {
14248 chk(fmt.Errorf("invalid bool: %d", n))
14252 p := &(*(*(struct {
14261 p := &(*(*(struct {
14267 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
14270 p := &(*(*(struct {
14276 *p = math.Float32frombits(read32(r))
14280 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
14281 if len(((*(*(struct {
14283 }))(obj)).Salt)) > math.MaxUint16 {
14287 x := uint16(len(((*(*(struct {
14290 write16(w, uint16(x))
14293 _, err := w.Write(((*(*(struct {
14295 }))(obj)).Salt)[:])
14298 if len(((*(*(struct {
14300 }))(obj)).B)) > math.MaxUint16 {
14304 x := uint16(len(((*(*(struct {
14307 write16(w, uint16(x))
14310 _, err := w.Write(((*(*(struct {
14317 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
14318 var local232 uint16
14325 }))(obj)).Salt) = make([]byte, local232)
14327 _, err := io.ReadFull(r, ((*(*(struct {
14329 }))(obj)).Salt)[:])
14332 var local233 uint16
14339 }))(obj)).B) = make([]byte, local233)
14341 _, err := io.ReadFull(r, ((*(*(struct {
14348 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
14349 if len(([]byte((*(*(struct {
14351 }))(obj)).Prepend))) > math.MaxUint16 {
14355 x := uint16(len(([]byte((*(*(struct {
14357 }))(obj)).Prepend))))
14358 write16(w, uint16(x))
14361 _, err := w.Write(([]byte((*(*(struct {
14363 }))(obj)).Prepend))[:])
14368 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
14369 var local234 []uint8
14370 var local235 uint16
14375 (local234) = make([]uint8, local235)
14377 _, err := io.ReadFull(r, (local234)[:])
14382 }))(obj)).Prepend) = string(local234)
14385 func (obj *AOCmdProps) serialize(w io.Writer) {
14386 if err := pcall(func() {
14389 }))(obj)).Props).serialize(w)
14394 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
14398 func (obj *AOCmdProps) deserialize(r io.Reader) {
14399 if err := pcall(func() {
14402 }))(obj)).Props).deserialize(r)
14407 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
14411 func (obj *AOCmdPos) serialize(w io.Writer) {
14412 if err := pcall(func() {
14415 }))(obj)).Pos).serialize(w)
14420 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
14424 func (obj *AOCmdPos) deserialize(r io.Reader) {
14425 if err := pcall(func() {
14428 }))(obj)).Pos).deserialize(r)
14433 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
14437 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
14438 if err := pcall(func() {
14440 Mod Texture // suffix
14441 }))(obj)).Mod).serialize(w)
14446 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14450 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
14451 if err := pcall(func() {
14453 Mod Texture // suffix
14454 }))(obj)).Mod).deserialize(r)
14459 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14463 func (obj *AOCmdSprite) serialize(w io.Writer) {
14464 if err := pcall(func() {
14467 }))(obj)).Sprite).serialize(w)
14472 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
14476 func (obj *AOCmdSprite) deserialize(r io.Reader) {
14477 if err := pcall(func() {
14480 }))(obj)).Sprite).deserialize(r)
14485 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
14489 func (obj *AOCmdHP) serialize(w io.Writer) {
14494 write16(w, uint16(x))
14498 func (obj *AOCmdHP) deserialize(r io.Reader) {
14500 p := &(*(*(struct {
14507 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
14508 if len(((*(*(struct {
14510 }))(obj)).Armor)) > math.MaxUint16 {
14514 x := uint16(len(((*(*(struct {
14517 write16(w, uint16(x))
14519 for local236 := range (*(*(struct {
14522 if err := pcall(func() {
14525 }))(obj)).Armor)[local236]).serialize(w)
14530 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
14535 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
14536 var local237 uint16
14543 }))(obj)).Armor) = make([]Group, local237)
14544 for local238 := range (*(*(struct {
14547 if err := pcall(func() {
14550 }))(obj)).Armor)[local238]).deserialize(r)
14555 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
14560 func (obj *AOCmdAnim) serialize(w io.Writer) {
14561 if err := pcall(func() {
14564 }))(obj)).Anim).serialize(w)
14569 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
14573 func (obj *AOCmdAnim) deserialize(r io.Reader) {
14574 if err := pcall(func() {
14577 }))(obj)).Anim).deserialize(r)
14582 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
14586 func (obj *AOCmdBonePos) serialize(w io.Writer) {
14587 if len(([]byte((*(*(struct {
14590 }))(obj)).Bone))) > math.MaxUint16 {
14594 x := uint16(len(([]byte((*(*(struct {
14598 write16(w, uint16(x))
14601 _, err := w.Write(([]byte((*(*(struct {
14604 }))(obj)).Bone))[:])
14607 if err := pcall(func() {
14611 }))(obj)).Pos).serialize(w)
14616 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
14620 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
14621 var local239 []uint8
14622 var local240 uint16
14627 (local239) = make([]uint8, local240)
14629 _, err := io.ReadFull(r, (local239)[:])
14635 }))(obj)).Bone) = string(local239)
14636 if err := pcall(func() {
14640 }))(obj)).Pos).deserialize(r)
14645 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
14649 func (obj *AOCmdAttach) serialize(w io.Writer) {
14650 if err := pcall(func() {
14653 }))(obj)).Attach).serialize(w)
14658 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
14662 func (obj *AOCmdAttach) deserialize(r io.Reader) {
14663 if err := pcall(func() {
14666 }))(obj)).Attach).deserialize(r)
14671 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
14675 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
14676 if err := pcall(func() {
14678 Phys AOPhysOverride
14679 }))(obj)).Phys).serialize(w)
14684 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
14688 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
14689 if err := pcall(func() {
14691 Phys AOPhysOverride
14692 }))(obj)).Phys).deserialize(r)
14697 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
14701 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
14702 if err := pcall(func() {
14705 }))(obj)).ID).serialize(w)
14710 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
14713 local241 := genericCAO
14714 if err := pcall(func() {
14715 (local241).serialize(w)
14720 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
14725 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
14726 if err := pcall(func() {
14729 }))(obj)).ID).deserialize(r)
14734 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
14737 var local242 aoType
14738 if err := pcall(func() {
14739 (local242).deserialize(r)
14744 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
14746 if local242 != (101) {
14747 chk(fmt.Errorf("const %v: %v", 101, local242))
14752 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
14757 write32(w, math.Float32bits(x))
14761 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
14763 p := &(*(*(struct {
14766 *p = math.Float32frombits(read32(r))
14770 func (obj *NodeMeta) serialize(w io.Writer) {
14771 if len(((*(*(struct {
14773 Fields []NodeMetaField
14776 }))(obj)).Fields)) > math.MaxUint32 {
14780 x := uint32(len(((*(*(struct {
14782 Fields []NodeMetaField
14785 }))(obj)).Fields)))
14786 write32(w, uint32(x))
14788 for local243 := range (*(*(struct {
14790 Fields []NodeMetaField
14794 if err := pcall(func() {
14797 Fields []NodeMetaField
14800 }))(obj)).Fields)[local243]).serialize(w)
14805 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
14810 Fields []NodeMetaField
14813 }))(obj)).Inv).Serialize(w))
14816 func (obj *NodeMeta) deserialize(r io.Reader) {
14817 var local244 uint32
14824 Fields []NodeMetaField
14827 }))(obj)).Fields) = make([]NodeMetaField, local244)
14828 for local245 := range (*(*(struct {
14830 Fields []NodeMetaField
14834 if err := pcall(func() {
14837 Fields []NodeMetaField
14840 }))(obj)).Fields)[local245]).deserialize(r)
14845 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
14850 Fields []NodeMetaField
14853 }))(obj)).Inv).Deserialize(r))
14856 func (obj *MinimapMode) serialize(w io.Writer) {
14857 if err := pcall(func() {
14864 }))(obj)).Type).serialize(w)
14869 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
14871 if len(([]byte((*(*(struct {
14877 }))(obj)).Label))) > math.MaxUint16 {
14881 x := uint16(len(([]byte((*(*(struct {
14887 }))(obj)).Label))))
14888 write16(w, uint16(x))
14891 _, err := w.Write(([]byte((*(*(struct {
14897 }))(obj)).Label))[:])
14908 write16(w, uint16(x))
14910 if err := pcall(func() {
14917 }))(obj)).Texture).serialize(w)
14922 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14932 write16(w, uint16(x))
14936 func (obj *MinimapMode) deserialize(r io.Reader) {
14937 if err := pcall(func() {
14944 }))(obj)).Type).deserialize(r)
14949 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
14951 var local246 []uint8
14952 var local247 uint16
14957 (local246) = make([]uint8, local247)
14959 _, err := io.ReadFull(r, (local246)[:])
14968 }))(obj)).Label) = string(local246)
14970 p := &(*(*(struct {
14979 if err := pcall(func() {
14986 }))(obj)).Texture).deserialize(r)
14991 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
14994 p := &(*(*(struct {
15005 func (obj *NodeDef) serialize(w io.Writer) {
15006 if err := pcall(func() {
15019 //mt:const uint8(6)
15021 OverlayTiles [6]TileDef
15022 //mt:const uint8(6)
15023 SpecialTiles [6]TileDef
15030 ConnectTo []Content
15031 InsideTint color.NRGBA
15032 Level uint8 // Must be < 128.
15034 Translucent bool // Sunlight is scattered and becomes normal light.
15035 Transparent bool // Sunlight isn't scattered.
15048 LiquidType LiquidType
15051 Viscosity uint8 // 0-7
15057 DrawBox, ColBox, SelBox NodeBox
15059 FootstepSnd, DiggingSnd, DugSnd SoundDef
15069 }))(obj)).Param0).serialize(w)
15074 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
15078 w := new(bytes.Buffer)
15080 local248 := uint8(13)
15083 write8(w, uint8(x))
15086 if len(([]byte((*(*(struct {
15098 //mt:const uint8(6)
15100 OverlayTiles [6]TileDef
15101 //mt:const uint8(6)
15102 SpecialTiles [6]TileDef
15109 ConnectTo []Content
15110 InsideTint color.NRGBA
15111 Level uint8 // Must be < 128.
15113 Translucent bool // Sunlight is scattered and becomes normal light.
15114 Transparent bool // Sunlight isn't scattered.
15127 LiquidType LiquidType
15130 Viscosity uint8 // 0-7
15136 DrawBox, ColBox, SelBox NodeBox
15138 FootstepSnd, DiggingSnd, DugSnd SoundDef
15148 }))(obj)).Name))) > math.MaxUint16 {
15152 x := uint16(len(([]byte((*(*(struct {
15164 //mt:const uint8(6)
15166 OverlayTiles [6]TileDef
15167 //mt:const uint8(6)
15168 SpecialTiles [6]TileDef
15175 ConnectTo []Content
15176 InsideTint color.NRGBA
15177 Level uint8 // Must be < 128.
15179 Translucent bool // Sunlight is scattered and becomes normal light.
15180 Transparent bool // Sunlight isn't scattered.
15193 LiquidType LiquidType
15196 Viscosity uint8 // 0-7
15202 DrawBox, ColBox, SelBox NodeBox
15204 FootstepSnd, DiggingSnd, DugSnd SoundDef
15215 write16(w, uint16(x))
15218 _, err := w.Write(([]byte((*(*(struct {
15230 //mt:const uint8(6)
15232 OverlayTiles [6]TileDef
15233 //mt:const uint8(6)
15234 SpecialTiles [6]TileDef
15241 ConnectTo []Content
15242 InsideTint color.NRGBA
15243 Level uint8 // Must be < 128.
15245 Translucent bool // Sunlight is scattered and becomes normal light.
15246 Transparent bool // Sunlight isn't scattered.
15259 LiquidType LiquidType
15262 Viscosity uint8 // 0-7
15268 DrawBox, ColBox, SelBox NodeBox
15270 FootstepSnd, DiggingSnd, DugSnd SoundDef
15280 }))(obj)).Name))[:])
15283 if len(((*(*(struct {
15295 //mt:const uint8(6)
15297 OverlayTiles [6]TileDef
15298 //mt:const uint8(6)
15299 SpecialTiles [6]TileDef
15306 ConnectTo []Content
15307 InsideTint color.NRGBA
15308 Level uint8 // Must be < 128.
15310 Translucent bool // Sunlight is scattered and becomes normal light.
15311 Transparent bool // Sunlight isn't scattered.
15324 LiquidType LiquidType
15327 Viscosity uint8 // 0-7
15333 DrawBox, ColBox, SelBox NodeBox
15335 FootstepSnd, DiggingSnd, DugSnd SoundDef
15345 }))(obj)).Groups)) > math.MaxUint16 {
15349 x := uint16(len(((*(*(struct {
15361 //mt:const uint8(6)
15363 OverlayTiles [6]TileDef
15364 //mt:const uint8(6)
15365 SpecialTiles [6]TileDef
15372 ConnectTo []Content
15373 InsideTint color.NRGBA
15374 Level uint8 // Must be < 128.
15376 Translucent bool // Sunlight is scattered and becomes normal light.
15377 Transparent bool // Sunlight isn't scattered.
15390 LiquidType LiquidType
15393 Viscosity uint8 // 0-7
15399 DrawBox, ColBox, SelBox NodeBox
15401 FootstepSnd, DiggingSnd, DugSnd SoundDef
15411 }))(obj)).Groups)))
15412 write16(w, uint16(x))
15414 for local249 := range (*(*(struct {
15426 //mt:const uint8(6)
15428 OverlayTiles [6]TileDef
15429 //mt:const uint8(6)
15430 SpecialTiles [6]TileDef
15437 ConnectTo []Content
15438 InsideTint color.NRGBA
15439 Level uint8 // Must be < 128.
15441 Translucent bool // Sunlight is scattered and becomes normal light.
15442 Transparent bool // Sunlight isn't scattered.
15455 LiquidType LiquidType
15458 Viscosity uint8 // 0-7
15464 DrawBox, ColBox, SelBox NodeBox
15466 FootstepSnd, DiggingSnd, DugSnd SoundDef
15477 if err := pcall(func() {
15490 //mt:const uint8(6)
15492 OverlayTiles [6]TileDef
15493 //mt:const uint8(6)
15494 SpecialTiles [6]TileDef
15501 ConnectTo []Content
15502 InsideTint color.NRGBA
15503 Level uint8 // Must be < 128.
15505 Translucent bool // Sunlight is scattered and becomes normal light.
15506 Transparent bool // Sunlight isn't scattered.
15519 LiquidType LiquidType
15522 Viscosity uint8 // 0-7
15528 DrawBox, ColBox, SelBox NodeBox
15530 FootstepSnd, DiggingSnd, DugSnd SoundDef
15540 }))(obj)).Groups)[local249]).serialize(w)
15545 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
15548 if err := pcall(func() {
15561 //mt:const uint8(6)
15563 OverlayTiles [6]TileDef
15564 //mt:const uint8(6)
15565 SpecialTiles [6]TileDef
15572 ConnectTo []Content
15573 InsideTint color.NRGBA
15574 Level uint8 // Must be < 128.
15576 Translucent bool // Sunlight is scattered and becomes normal light.
15577 Transparent bool // Sunlight isn't scattered.
15590 LiquidType LiquidType
15593 Viscosity uint8 // 0-7
15599 DrawBox, ColBox, SelBox NodeBox
15601 FootstepSnd, DiggingSnd, DugSnd SoundDef
15611 }))(obj)).P1Type).serialize(w)
15616 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
15618 if err := pcall(func() {
15631 //mt:const uint8(6)
15633 OverlayTiles [6]TileDef
15634 //mt:const uint8(6)
15635 SpecialTiles [6]TileDef
15642 ConnectTo []Content
15643 InsideTint color.NRGBA
15644 Level uint8 // Must be < 128.
15646 Translucent bool // Sunlight is scattered and becomes normal light.
15647 Transparent bool // Sunlight isn't scattered.
15660 LiquidType LiquidType
15663 Viscosity uint8 // 0-7
15669 DrawBox, ColBox, SelBox NodeBox
15671 FootstepSnd, DiggingSnd, DugSnd SoundDef
15681 }))(obj)).P2Type).serialize(w)
15686 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
15688 if err := pcall(func() {
15701 //mt:const uint8(6)
15703 OverlayTiles [6]TileDef
15704 //mt:const uint8(6)
15705 SpecialTiles [6]TileDef
15712 ConnectTo []Content
15713 InsideTint color.NRGBA
15714 Level uint8 // Must be < 128.
15716 Translucent bool // Sunlight is scattered and becomes normal light.
15717 Transparent bool // Sunlight isn't scattered.
15730 LiquidType LiquidType
15733 Viscosity uint8 // 0-7
15739 DrawBox, ColBox, SelBox NodeBox
15741 FootstepSnd, DiggingSnd, DugSnd SoundDef
15751 }))(obj)).DrawType).serialize(w)
15756 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
15758 if len(([]byte((*(*(struct {
15770 //mt:const uint8(6)
15772 OverlayTiles [6]TileDef
15773 //mt:const uint8(6)
15774 SpecialTiles [6]TileDef
15781 ConnectTo []Content
15782 InsideTint color.NRGBA
15783 Level uint8 // Must be < 128.
15785 Translucent bool // Sunlight is scattered and becomes normal light.
15786 Transparent bool // Sunlight isn't scattered.
15799 LiquidType LiquidType
15802 Viscosity uint8 // 0-7
15808 DrawBox, ColBox, SelBox NodeBox
15810 FootstepSnd, DiggingSnd, DugSnd SoundDef
15820 }))(obj)).Mesh))) > math.MaxUint16 {
15824 x := uint16(len(([]byte((*(*(struct {
15836 //mt:const uint8(6)
15838 OverlayTiles [6]TileDef
15839 //mt:const uint8(6)
15840 SpecialTiles [6]TileDef
15847 ConnectTo []Content
15848 InsideTint color.NRGBA
15849 Level uint8 // Must be < 128.
15851 Translucent bool // Sunlight is scattered and becomes normal light.
15852 Transparent bool // Sunlight isn't scattered.
15865 LiquidType LiquidType
15868 Viscosity uint8 // 0-7
15874 DrawBox, ColBox, SelBox NodeBox
15876 FootstepSnd, DiggingSnd, DugSnd SoundDef
15887 write16(w, uint16(x))
15890 _, err := w.Write(([]byte((*(*(struct {
15902 //mt:const uint8(6)
15904 OverlayTiles [6]TileDef
15905 //mt:const uint8(6)
15906 SpecialTiles [6]TileDef
15913 ConnectTo []Content
15914 InsideTint color.NRGBA
15915 Level uint8 // Must be < 128.
15917 Translucent bool // Sunlight is scattered and becomes normal light.
15918 Transparent bool // Sunlight isn't scattered.
15931 LiquidType LiquidType
15934 Viscosity uint8 // 0-7
15940 DrawBox, ColBox, SelBox NodeBox
15942 FootstepSnd, DiggingSnd, DugSnd SoundDef
15952 }))(obj)).Mesh))[:])
15968 //mt:const uint8(6)
15970 OverlayTiles [6]TileDef
15971 //mt:const uint8(6)
15972 SpecialTiles [6]TileDef
15979 ConnectTo []Content
15980 InsideTint color.NRGBA
15981 Level uint8 // Must be < 128.
15983 Translucent bool // Sunlight is scattered and becomes normal light.
15984 Transparent bool // Sunlight isn't scattered.
15997 LiquidType LiquidType
16000 Viscosity uint8 // 0-7
16006 DrawBox, ColBox, SelBox NodeBox
16008 FootstepSnd, DiggingSnd, DugSnd SoundDef
16019 write32(w, math.Float32bits(x))
16022 local250 := uint8(6)
16025 write8(w, uint8(x))
16028 for local251 := range (*(*(struct {
16040 //mt:const uint8(6)
16042 OverlayTiles [6]TileDef
16043 //mt:const uint8(6)
16044 SpecialTiles [6]TileDef
16051 ConnectTo []Content
16052 InsideTint color.NRGBA
16053 Level uint8 // Must be < 128.
16055 Translucent bool // Sunlight is scattered and becomes normal light.
16056 Transparent bool // Sunlight isn't scattered.
16069 LiquidType LiquidType
16072 Viscosity uint8 // 0-7
16078 DrawBox, ColBox, SelBox NodeBox
16080 FootstepSnd, DiggingSnd, DugSnd SoundDef
16091 if err := pcall(func() {
16104 //mt:const uint8(6)
16106 OverlayTiles [6]TileDef
16107 //mt:const uint8(6)
16108 SpecialTiles [6]TileDef
16115 ConnectTo []Content
16116 InsideTint color.NRGBA
16117 Level uint8 // Must be < 128.
16119 Translucent bool // Sunlight is scattered and becomes normal light.
16120 Transparent bool // Sunlight isn't scattered.
16133 LiquidType LiquidType
16136 Viscosity uint8 // 0-7
16142 DrawBox, ColBox, SelBox NodeBox
16144 FootstepSnd, DiggingSnd, DugSnd SoundDef
16154 }))(obj)).Tiles)[local251]).serialize(w)
16159 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
16162 for local252 := range (*(*(struct {
16174 //mt:const uint8(6)
16176 OverlayTiles [6]TileDef
16177 //mt:const uint8(6)
16178 SpecialTiles [6]TileDef
16185 ConnectTo []Content
16186 InsideTint color.NRGBA
16187 Level uint8 // Must be < 128.
16189 Translucent bool // Sunlight is scattered and becomes normal light.
16190 Transparent bool // Sunlight isn't scattered.
16203 LiquidType LiquidType
16206 Viscosity uint8 // 0-7
16212 DrawBox, ColBox, SelBox NodeBox
16214 FootstepSnd, DiggingSnd, DugSnd SoundDef
16224 }))(obj)).OverlayTiles {
16225 if err := pcall(func() {
16238 //mt:const uint8(6)
16240 OverlayTiles [6]TileDef
16241 //mt:const uint8(6)
16242 SpecialTiles [6]TileDef
16249 ConnectTo []Content
16250 InsideTint color.NRGBA
16251 Level uint8 // Must be < 128.
16253 Translucent bool // Sunlight is scattered and becomes normal light.
16254 Transparent bool // Sunlight isn't scattered.
16267 LiquidType LiquidType
16270 Viscosity uint8 // 0-7
16276 DrawBox, ColBox, SelBox NodeBox
16278 FootstepSnd, DiggingSnd, DugSnd SoundDef
16288 }))(obj)).OverlayTiles)[local252]).serialize(w)
16293 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
16297 local253 := uint8(6)
16300 write8(w, uint8(x))
16303 for local254 := range (*(*(struct {
16315 //mt:const uint8(6)
16317 OverlayTiles [6]TileDef
16318 //mt:const uint8(6)
16319 SpecialTiles [6]TileDef
16326 ConnectTo []Content
16327 InsideTint color.NRGBA
16328 Level uint8 // Must be < 128.
16330 Translucent bool // Sunlight is scattered and becomes normal light.
16331 Transparent bool // Sunlight isn't scattered.
16344 LiquidType LiquidType
16347 Viscosity uint8 // 0-7
16353 DrawBox, ColBox, SelBox NodeBox
16355 FootstepSnd, DiggingSnd, DugSnd SoundDef
16365 }))(obj)).SpecialTiles {
16366 if err := pcall(func() {
16379 //mt:const uint8(6)
16381 OverlayTiles [6]TileDef
16382 //mt:const uint8(6)
16383 SpecialTiles [6]TileDef
16390 ConnectTo []Content
16391 InsideTint color.NRGBA
16392 Level uint8 // Must be < 128.
16394 Translucent bool // Sunlight is scattered and becomes normal light.
16395 Transparent bool // Sunlight isn't scattered.
16408 LiquidType LiquidType
16411 Viscosity uint8 // 0-7
16417 DrawBox, ColBox, SelBox NodeBox
16419 FootstepSnd, DiggingSnd, DugSnd SoundDef
16429 }))(obj)).SpecialTiles)[local254]).serialize(w)
16434 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
16450 //mt:const uint8(6)
16452 OverlayTiles [6]TileDef
16453 //mt:const uint8(6)
16454 SpecialTiles [6]TileDef
16461 ConnectTo []Content
16462 InsideTint color.NRGBA
16463 Level uint8 // Must be < 128.
16465 Translucent bool // Sunlight is scattered and becomes normal light.
16466 Transparent bool // Sunlight isn't scattered.
16479 LiquidType LiquidType
16482 Viscosity uint8 // 0-7
16488 DrawBox, ColBox, SelBox NodeBox
16490 FootstepSnd, DiggingSnd, DugSnd SoundDef
16501 w.Write([]byte{x.A, x.R, x.G, x.B})
16503 if err := pcall(func() {
16516 //mt:const uint8(6)
16518 OverlayTiles [6]TileDef
16519 //mt:const uint8(6)
16520 SpecialTiles [6]TileDef
16527 ConnectTo []Content
16528 InsideTint color.NRGBA
16529 Level uint8 // Must be < 128.
16531 Translucent bool // Sunlight is scattered and becomes normal light.
16532 Transparent bool // Sunlight isn't scattered.
16545 LiquidType LiquidType
16548 Viscosity uint8 // 0-7
16554 DrawBox, ColBox, SelBox NodeBox
16556 FootstepSnd, DiggingSnd, DugSnd SoundDef
16566 }))(obj)).Palette).serialize(w)
16571 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
16573 if err := pcall(func() {
16586 //mt:const uint8(6)
16588 OverlayTiles [6]TileDef
16589 //mt:const uint8(6)
16590 SpecialTiles [6]TileDef
16597 ConnectTo []Content
16598 InsideTint color.NRGBA
16599 Level uint8 // Must be < 128.
16601 Translucent bool // Sunlight is scattered and becomes normal light.
16602 Transparent bool // Sunlight isn't scattered.
16615 LiquidType LiquidType
16618 Viscosity uint8 // 0-7
16624 DrawBox, ColBox, SelBox NodeBox
16626 FootstepSnd, DiggingSnd, DugSnd SoundDef
16636 }))(obj)).Waving).serialize(w)
16641 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
16656 //mt:const uint8(6)
16658 OverlayTiles [6]TileDef
16659 //mt:const uint8(6)
16660 SpecialTiles [6]TileDef
16667 ConnectTo []Content
16668 InsideTint color.NRGBA
16669 Level uint8 // Must be < 128.
16671 Translucent bool // Sunlight is scattered and becomes normal light.
16672 Transparent bool // Sunlight isn't scattered.
16685 LiquidType LiquidType
16688 Viscosity uint8 // 0-7
16694 DrawBox, ColBox, SelBox NodeBox
16696 FootstepSnd, DiggingSnd, DugSnd SoundDef
16706 }))(obj)).ConnectSides
16707 write8(w, uint8(x))
16709 if len(((*(*(struct {
16721 //mt:const uint8(6)
16723 OverlayTiles [6]TileDef
16724 //mt:const uint8(6)
16725 SpecialTiles [6]TileDef
16732 ConnectTo []Content
16733 InsideTint color.NRGBA
16734 Level uint8 // Must be < 128.
16736 Translucent bool // Sunlight is scattered and becomes normal light.
16737 Transparent bool // Sunlight isn't scattered.
16750 LiquidType LiquidType
16753 Viscosity uint8 // 0-7
16759 DrawBox, ColBox, SelBox NodeBox
16761 FootstepSnd, DiggingSnd, DugSnd SoundDef
16771 }))(obj)).ConnectTo)) > math.MaxUint16 {
16775 x := uint16(len(((*(*(struct {
16787 //mt:const uint8(6)
16789 OverlayTiles [6]TileDef
16790 //mt:const uint8(6)
16791 SpecialTiles [6]TileDef
16798 ConnectTo []Content
16799 InsideTint color.NRGBA
16800 Level uint8 // Must be < 128.
16802 Translucent bool // Sunlight is scattered and becomes normal light.
16803 Transparent bool // Sunlight isn't scattered.
16816 LiquidType LiquidType
16819 Viscosity uint8 // 0-7
16825 DrawBox, ColBox, SelBox NodeBox
16827 FootstepSnd, DiggingSnd, DugSnd SoundDef
16837 }))(obj)).ConnectTo)))
16838 write16(w, uint16(x))
16840 for local255 := range (*(*(struct {
16852 //mt:const uint8(6)
16854 OverlayTiles [6]TileDef
16855 //mt:const uint8(6)
16856 SpecialTiles [6]TileDef
16863 ConnectTo []Content
16864 InsideTint color.NRGBA
16865 Level uint8 // Must be < 128.
16867 Translucent bool // Sunlight is scattered and becomes normal light.
16868 Transparent bool // Sunlight isn't scattered.
16881 LiquidType LiquidType
16884 Viscosity uint8 // 0-7
16890 DrawBox, ColBox, SelBox NodeBox
16892 FootstepSnd, DiggingSnd, DugSnd SoundDef
16902 }))(obj)).ConnectTo {
16903 if err := pcall(func() {
16916 //mt:const uint8(6)
16918 OverlayTiles [6]TileDef
16919 //mt:const uint8(6)
16920 SpecialTiles [6]TileDef
16927 ConnectTo []Content
16928 InsideTint color.NRGBA
16929 Level uint8 // Must be < 128.
16931 Translucent bool // Sunlight is scattered and becomes normal light.
16932 Transparent bool // Sunlight isn't scattered.
16945 LiquidType LiquidType
16948 Viscosity uint8 // 0-7
16954 DrawBox, ColBox, SelBox NodeBox
16956 FootstepSnd, DiggingSnd, DugSnd SoundDef
16966 }))(obj)).ConnectTo)[local255]).serialize(w)
16971 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
16987 //mt:const uint8(6)
16989 OverlayTiles [6]TileDef
16990 //mt:const uint8(6)
16991 SpecialTiles [6]TileDef
16998 ConnectTo []Content
16999 InsideTint color.NRGBA
17000 Level uint8 // Must be < 128.
17002 Translucent bool // Sunlight is scattered and becomes normal light.
17003 Transparent bool // Sunlight isn't scattered.
17016 LiquidType LiquidType
17019 Viscosity uint8 // 0-7
17025 DrawBox, ColBox, SelBox NodeBox
17027 FootstepSnd, DiggingSnd, DugSnd SoundDef
17037 }))(obj)).InsideTint
17038 w.Write([]byte{x.A, x.R, x.G, x.B})
17053 //mt:const uint8(6)
17055 OverlayTiles [6]TileDef
17056 //mt:const uint8(6)
17057 SpecialTiles [6]TileDef
17064 ConnectTo []Content
17065 InsideTint color.NRGBA
17066 Level uint8 // Must be < 128.
17068 Translucent bool // Sunlight is scattered and becomes normal light.
17069 Transparent bool // Sunlight isn't scattered.
17082 LiquidType LiquidType
17085 Viscosity uint8 // 0-7
17091 DrawBox, ColBox, SelBox NodeBox
17093 FootstepSnd, DiggingSnd, DugSnd SoundDef
17104 write8(w, uint8(x))
17119 //mt:const uint8(6)
17121 OverlayTiles [6]TileDef
17122 //mt:const uint8(6)
17123 SpecialTiles [6]TileDef
17130 ConnectTo []Content
17131 InsideTint color.NRGBA
17132 Level uint8 // Must be < 128.
17134 Translucent bool // Sunlight is scattered and becomes normal light.
17135 Transparent bool // Sunlight isn't scattered.
17148 LiquidType LiquidType
17151 Viscosity uint8 // 0-7
17157 DrawBox, ColBox, SelBox NodeBox
17159 FootstepSnd, DiggingSnd, DugSnd SoundDef
17169 }))(obj)).Translucent
17189 //mt:const uint8(6)
17191 OverlayTiles [6]TileDef
17192 //mt:const uint8(6)
17193 SpecialTiles [6]TileDef
17200 ConnectTo []Content
17201 InsideTint color.NRGBA
17202 Level uint8 // Must be < 128.
17204 Translucent bool // Sunlight is scattered and becomes normal light.
17205 Transparent bool // Sunlight isn't scattered.
17218 LiquidType LiquidType
17221 Viscosity uint8 // 0-7
17227 DrawBox, ColBox, SelBox NodeBox
17229 FootstepSnd, DiggingSnd, DugSnd SoundDef
17239 }))(obj)).Transparent
17259 //mt:const uint8(6)
17261 OverlayTiles [6]TileDef
17262 //mt:const uint8(6)
17263 SpecialTiles [6]TileDef
17270 ConnectTo []Content
17271 InsideTint color.NRGBA
17272 Level uint8 // Must be < 128.
17274 Translucent bool // Sunlight is scattered and becomes normal light.
17275 Transparent bool // Sunlight isn't scattered.
17288 LiquidType LiquidType
17291 Viscosity uint8 // 0-7
17297 DrawBox, ColBox, SelBox NodeBox
17299 FootstepSnd, DiggingSnd, DugSnd SoundDef
17310 write8(w, uint8(x))
17325 //mt:const uint8(6)
17327 OverlayTiles [6]TileDef
17328 //mt:const uint8(6)
17329 SpecialTiles [6]TileDef
17336 ConnectTo []Content
17337 InsideTint color.NRGBA
17338 Level uint8 // Must be < 128.
17340 Translucent bool // Sunlight is scattered and becomes normal light.
17341 Transparent bool // Sunlight isn't scattered.
17354 LiquidType LiquidType
17357 Viscosity uint8 // 0-7
17363 DrawBox, ColBox, SelBox NodeBox
17365 FootstepSnd, DiggingSnd, DugSnd SoundDef
17375 }))(obj)).GndContent
17395 //mt:const uint8(6)
17397 OverlayTiles [6]TileDef
17398 //mt:const uint8(6)
17399 SpecialTiles [6]TileDef
17406 ConnectTo []Content
17407 InsideTint color.NRGBA
17408 Level uint8 // Must be < 128.
17410 Translucent bool // Sunlight is scattered and becomes normal light.
17411 Transparent bool // Sunlight isn't scattered.
17424 LiquidType LiquidType
17427 Viscosity uint8 // 0-7
17433 DrawBox, ColBox, SelBox NodeBox
17435 FootstepSnd, DiggingSnd, DugSnd SoundDef
17465 //mt:const uint8(6)
17467 OverlayTiles [6]TileDef
17468 //mt:const uint8(6)
17469 SpecialTiles [6]TileDef
17476 ConnectTo []Content
17477 InsideTint color.NRGBA
17478 Level uint8 // Must be < 128.
17480 Translucent bool // Sunlight is scattered and becomes normal light.
17481 Transparent bool // Sunlight isn't scattered.
17494 LiquidType LiquidType
17497 Viscosity uint8 // 0-7
17503 DrawBox, ColBox, SelBox NodeBox
17505 FootstepSnd, DiggingSnd, DugSnd SoundDef
17515 }))(obj)).Pointable
17535 //mt:const uint8(6)
17537 OverlayTiles [6]TileDef
17538 //mt:const uint8(6)
17539 SpecialTiles [6]TileDef
17546 ConnectTo []Content
17547 InsideTint color.NRGBA
17548 Level uint8 // Must be < 128.
17550 Translucent bool // Sunlight is scattered and becomes normal light.
17551 Transparent bool // Sunlight isn't scattered.
17564 LiquidType LiquidType
17567 Viscosity uint8 // 0-7
17573 DrawBox, ColBox, SelBox NodeBox
17575 FootstepSnd, DiggingSnd, DugSnd SoundDef
17605 //mt:const uint8(6)
17607 OverlayTiles [6]TileDef
17608 //mt:const uint8(6)
17609 SpecialTiles [6]TileDef
17616 ConnectTo []Content
17617 InsideTint color.NRGBA
17618 Level uint8 // Must be < 128.
17620 Translucent bool // Sunlight is scattered and becomes normal light.
17621 Transparent bool // Sunlight isn't scattered.
17634 LiquidType LiquidType
17637 Viscosity uint8 // 0-7
17643 DrawBox, ColBox, SelBox NodeBox
17645 FootstepSnd, DiggingSnd, DugSnd SoundDef
17655 }))(obj)).Climbable
17675 //mt:const uint8(6)
17677 OverlayTiles [6]TileDef
17678 //mt:const uint8(6)
17679 SpecialTiles [6]TileDef
17686 ConnectTo []Content
17687 InsideTint color.NRGBA
17688 Level uint8 // Must be < 128.
17690 Translucent bool // Sunlight is scattered and becomes normal light.
17691 Transparent bool // Sunlight isn't scattered.
17704 LiquidType LiquidType
17707 Viscosity uint8 // 0-7
17713 DrawBox, ColBox, SelBox NodeBox
17715 FootstepSnd, DiggingSnd, DugSnd SoundDef
17725 }))(obj)).Replaceable
17745 //mt:const uint8(6)
17747 OverlayTiles [6]TileDef
17748 //mt:const uint8(6)
17749 SpecialTiles [6]TileDef
17756 ConnectTo []Content
17757 InsideTint color.NRGBA
17758 Level uint8 // Must be < 128.
17760 Translucent bool // Sunlight is scattered and becomes normal light.
17761 Transparent bool // Sunlight isn't scattered.
17774 LiquidType LiquidType
17777 Viscosity uint8 // 0-7
17783 DrawBox, ColBox, SelBox NodeBox
17785 FootstepSnd, DiggingSnd, DugSnd SoundDef
17795 }))(obj)).OnRightClick
17815 //mt:const uint8(6)
17817 OverlayTiles [6]TileDef
17818 //mt:const uint8(6)
17819 SpecialTiles [6]TileDef
17826 ConnectTo []Content
17827 InsideTint color.NRGBA
17828 Level uint8 // Must be < 128.
17830 Translucent bool // Sunlight is scattered and becomes normal light.
17831 Transparent bool // Sunlight isn't scattered.
17844 LiquidType LiquidType
17847 Viscosity uint8 // 0-7
17853 DrawBox, ColBox, SelBox NodeBox
17855 FootstepSnd, DiggingSnd, DugSnd SoundDef
17865 }))(obj)).DmgPerSec
17866 write32(w, uint32(x))
17868 if err := pcall(func() {
17881 //mt:const uint8(6)
17883 OverlayTiles [6]TileDef
17884 //mt:const uint8(6)
17885 SpecialTiles [6]TileDef
17892 ConnectTo []Content
17893 InsideTint color.NRGBA
17894 Level uint8 // Must be < 128.
17896 Translucent bool // Sunlight is scattered and becomes normal light.
17897 Transparent bool // Sunlight isn't scattered.
17910 LiquidType LiquidType
17913 Viscosity uint8 // 0-7
17919 DrawBox, ColBox, SelBox NodeBox
17921 FootstepSnd, DiggingSnd, DugSnd SoundDef
17931 }))(obj)).LiquidType).serialize(w)
17936 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
17938 if len(([]byte((*(*(struct {
17950 //mt:const uint8(6)
17952 OverlayTiles [6]TileDef
17953 //mt:const uint8(6)
17954 SpecialTiles [6]TileDef
17961 ConnectTo []Content
17962 InsideTint color.NRGBA
17963 Level uint8 // Must be < 128.
17965 Translucent bool // Sunlight is scattered and becomes normal light.
17966 Transparent bool // Sunlight isn't scattered.
17979 LiquidType LiquidType
17982 Viscosity uint8 // 0-7
17988 DrawBox, ColBox, SelBox NodeBox
17990 FootstepSnd, DiggingSnd, DugSnd SoundDef
18000 }))(obj)).FlowingAlt))) > math.MaxUint16 {
18004 x := uint16(len(([]byte((*(*(struct {
18016 //mt:const uint8(6)
18018 OverlayTiles [6]TileDef
18019 //mt:const uint8(6)
18020 SpecialTiles [6]TileDef
18027 ConnectTo []Content
18028 InsideTint color.NRGBA
18029 Level uint8 // Must be < 128.
18031 Translucent bool // Sunlight is scattered and becomes normal light.
18032 Transparent bool // Sunlight isn't scattered.
18045 LiquidType LiquidType
18048 Viscosity uint8 // 0-7
18054 DrawBox, ColBox, SelBox NodeBox
18056 FootstepSnd, DiggingSnd, DugSnd SoundDef
18066 }))(obj)).FlowingAlt))))
18067 write16(w, uint16(x))
18070 _, err := w.Write(([]byte((*(*(struct {
18082 //mt:const uint8(6)
18084 OverlayTiles [6]TileDef
18085 //mt:const uint8(6)
18086 SpecialTiles [6]TileDef
18093 ConnectTo []Content
18094 InsideTint color.NRGBA
18095 Level uint8 // Must be < 128.
18097 Translucent bool // Sunlight is scattered and becomes normal light.
18098 Transparent bool // Sunlight isn't scattered.
18111 LiquidType LiquidType
18114 Viscosity uint8 // 0-7
18120 DrawBox, ColBox, SelBox NodeBox
18122 FootstepSnd, DiggingSnd, DugSnd SoundDef
18132 }))(obj)).FlowingAlt))[:])
18135 if len(([]byte((*(*(struct {
18147 //mt:const uint8(6)
18149 OverlayTiles [6]TileDef
18150 //mt:const uint8(6)
18151 SpecialTiles [6]TileDef
18158 ConnectTo []Content
18159 InsideTint color.NRGBA
18160 Level uint8 // Must be < 128.
18162 Translucent bool // Sunlight is scattered and becomes normal light.
18163 Transparent bool // Sunlight isn't scattered.
18176 LiquidType LiquidType
18179 Viscosity uint8 // 0-7
18185 DrawBox, ColBox, SelBox NodeBox
18187 FootstepSnd, DiggingSnd, DugSnd SoundDef
18197 }))(obj)).SrcAlt))) > math.MaxUint16 {
18201 x := uint16(len(([]byte((*(*(struct {
18213 //mt:const uint8(6)
18215 OverlayTiles [6]TileDef
18216 //mt:const uint8(6)
18217 SpecialTiles [6]TileDef
18224 ConnectTo []Content
18225 InsideTint color.NRGBA
18226 Level uint8 // Must be < 128.
18228 Translucent bool // Sunlight is scattered and becomes normal light.
18229 Transparent bool // Sunlight isn't scattered.
18242 LiquidType LiquidType
18245 Viscosity uint8 // 0-7
18251 DrawBox, ColBox, SelBox NodeBox
18253 FootstepSnd, DiggingSnd, DugSnd SoundDef
18263 }))(obj)).SrcAlt))))
18264 write16(w, uint16(x))
18267 _, err := w.Write(([]byte((*(*(struct {
18279 //mt:const uint8(6)
18281 OverlayTiles [6]TileDef
18282 //mt:const uint8(6)
18283 SpecialTiles [6]TileDef
18290 ConnectTo []Content
18291 InsideTint color.NRGBA
18292 Level uint8 // Must be < 128.
18294 Translucent bool // Sunlight is scattered and becomes normal light.
18295 Transparent bool // Sunlight isn't scattered.
18308 LiquidType LiquidType
18311 Viscosity uint8 // 0-7
18317 DrawBox, ColBox, SelBox NodeBox
18319 FootstepSnd, DiggingSnd, DugSnd SoundDef
18329 }))(obj)).SrcAlt))[:])
18345 //mt:const uint8(6)
18347 OverlayTiles [6]TileDef
18348 //mt:const uint8(6)
18349 SpecialTiles [6]TileDef
18356 ConnectTo []Content
18357 InsideTint color.NRGBA
18358 Level uint8 // Must be < 128.
18360 Translucent bool // Sunlight is scattered and becomes normal light.
18361 Transparent bool // Sunlight isn't scattered.
18374 LiquidType LiquidType
18377 Viscosity uint8 // 0-7
18383 DrawBox, ColBox, SelBox NodeBox
18385 FootstepSnd, DiggingSnd, DugSnd SoundDef
18395 }))(obj)).Viscosity
18396 write8(w, uint8(x))
18411 //mt:const uint8(6)
18413 OverlayTiles [6]TileDef
18414 //mt:const uint8(6)
18415 SpecialTiles [6]TileDef
18422 ConnectTo []Content
18423 InsideTint color.NRGBA
18424 Level uint8 // Must be < 128.
18426 Translucent bool // Sunlight is scattered and becomes normal light.
18427 Transparent bool // Sunlight isn't scattered.
18440 LiquidType LiquidType
18443 Viscosity uint8 // 0-7
18449 DrawBox, ColBox, SelBox NodeBox
18451 FootstepSnd, DiggingSnd, DugSnd SoundDef
18461 }))(obj)).LiqRenewable
18481 //mt:const uint8(6)
18483 OverlayTiles [6]TileDef
18484 //mt:const uint8(6)
18485 SpecialTiles [6]TileDef
18492 ConnectTo []Content
18493 InsideTint color.NRGBA
18494 Level uint8 // Must be < 128.
18496 Translucent bool // Sunlight is scattered and becomes normal light.
18497 Transparent bool // Sunlight isn't scattered.
18510 LiquidType LiquidType
18513 Viscosity uint8 // 0-7
18519 DrawBox, ColBox, SelBox NodeBox
18521 FootstepSnd, DiggingSnd, DugSnd SoundDef
18531 }))(obj)).FlowRange
18532 write8(w, uint8(x))
18547 //mt:const uint8(6)
18549 OverlayTiles [6]TileDef
18550 //mt:const uint8(6)
18551 SpecialTiles [6]TileDef
18558 ConnectTo []Content
18559 InsideTint color.NRGBA
18560 Level uint8 // Must be < 128.
18562 Translucent bool // Sunlight is scattered and becomes normal light.
18563 Transparent bool // Sunlight isn't scattered.
18576 LiquidType LiquidType
18579 Viscosity uint8 // 0-7
18585 DrawBox, ColBox, SelBox NodeBox
18587 FootstepSnd, DiggingSnd, DugSnd SoundDef
18598 write8(w, uint8(x))
18613 //mt:const uint8(6)
18615 OverlayTiles [6]TileDef
18616 //mt:const uint8(6)
18617 SpecialTiles [6]TileDef
18624 ConnectTo []Content
18625 InsideTint color.NRGBA
18626 Level uint8 // Must be < 128.
18628 Translucent bool // Sunlight is scattered and becomes normal light.
18629 Transparent bool // Sunlight isn't scattered.
18642 LiquidType LiquidType
18645 Viscosity uint8 // 0-7
18651 DrawBox, ColBox, SelBox NodeBox
18653 FootstepSnd, DiggingSnd, DugSnd SoundDef
18663 }))(obj)).Floodable
18670 if err := pcall(func() {
18683 //mt:const uint8(6)
18685 OverlayTiles [6]TileDef
18686 //mt:const uint8(6)
18687 SpecialTiles [6]TileDef
18694 ConnectTo []Content
18695 InsideTint color.NRGBA
18696 Level uint8 // Must be < 128.
18698 Translucent bool // Sunlight is scattered and becomes normal light.
18699 Transparent bool // Sunlight isn't scattered.
18712 LiquidType LiquidType
18715 Viscosity uint8 // 0-7
18721 DrawBox, ColBox, SelBox NodeBox
18723 FootstepSnd, DiggingSnd, DugSnd SoundDef
18733 }))(obj)).DrawBox).serialize(w)
18738 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
18740 if err := pcall(func() {
18753 //mt:const uint8(6)
18755 OverlayTiles [6]TileDef
18756 //mt:const uint8(6)
18757 SpecialTiles [6]TileDef
18764 ConnectTo []Content
18765 InsideTint color.NRGBA
18766 Level uint8 // Must be < 128.
18768 Translucent bool // Sunlight is scattered and becomes normal light.
18769 Transparent bool // Sunlight isn't scattered.
18782 LiquidType LiquidType
18785 Viscosity uint8 // 0-7
18791 DrawBox, ColBox, SelBox NodeBox
18793 FootstepSnd, DiggingSnd, DugSnd SoundDef
18803 }))(obj)).ColBox).serialize(w)
18808 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
18810 if err := pcall(func() {
18823 //mt:const uint8(6)
18825 OverlayTiles [6]TileDef
18826 //mt:const uint8(6)
18827 SpecialTiles [6]TileDef
18834 ConnectTo []Content
18835 InsideTint color.NRGBA
18836 Level uint8 // Must be < 128.
18838 Translucent bool // Sunlight is scattered and becomes normal light.
18839 Transparent bool // Sunlight isn't scattered.
18852 LiquidType LiquidType
18855 Viscosity uint8 // 0-7
18861 DrawBox, ColBox, SelBox NodeBox
18863 FootstepSnd, DiggingSnd, DugSnd SoundDef
18873 }))(obj)).SelBox).serialize(w)
18878 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
18880 if err := pcall(func() {
18893 //mt:const uint8(6)
18895 OverlayTiles [6]TileDef
18896 //mt:const uint8(6)
18897 SpecialTiles [6]TileDef
18904 ConnectTo []Content
18905 InsideTint color.NRGBA
18906 Level uint8 // Must be < 128.
18908 Translucent bool // Sunlight is scattered and becomes normal light.
18909 Transparent bool // Sunlight isn't scattered.
18922 LiquidType LiquidType
18925 Viscosity uint8 // 0-7
18931 DrawBox, ColBox, SelBox NodeBox
18933 FootstepSnd, DiggingSnd, DugSnd SoundDef
18943 }))(obj)).FootstepSnd).serialize(w)
18948 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
18950 if err := pcall(func() {
18963 //mt:const uint8(6)
18965 OverlayTiles [6]TileDef
18966 //mt:const uint8(6)
18967 SpecialTiles [6]TileDef
18974 ConnectTo []Content
18975 InsideTint color.NRGBA
18976 Level uint8 // Must be < 128.
18978 Translucent bool // Sunlight is scattered and becomes normal light.
18979 Transparent bool // Sunlight isn't scattered.
18992 LiquidType LiquidType
18995 Viscosity uint8 // 0-7
19001 DrawBox, ColBox, SelBox NodeBox
19003 FootstepSnd, DiggingSnd, DugSnd SoundDef
19013 }))(obj)).DiggingSnd).serialize(w)
19018 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
19020 if err := pcall(func() {
19033 //mt:const uint8(6)
19035 OverlayTiles [6]TileDef
19036 //mt:const uint8(6)
19037 SpecialTiles [6]TileDef
19044 ConnectTo []Content
19045 InsideTint color.NRGBA
19046 Level uint8 // Must be < 128.
19048 Translucent bool // Sunlight is scattered and becomes normal light.
19049 Transparent bool // Sunlight isn't scattered.
19062 LiquidType LiquidType
19065 Viscosity uint8 // 0-7
19071 DrawBox, ColBox, SelBox NodeBox
19073 FootstepSnd, DiggingSnd, DugSnd SoundDef
19083 }))(obj)).DugSnd).serialize(w)
19088 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
19103 //mt:const uint8(6)
19105 OverlayTiles [6]TileDef
19106 //mt:const uint8(6)
19107 SpecialTiles [6]TileDef
19114 ConnectTo []Content
19115 InsideTint color.NRGBA
19116 Level uint8 // Must be < 128.
19118 Translucent bool // Sunlight is scattered and becomes normal light.
19119 Transparent bool // Sunlight isn't scattered.
19132 LiquidType LiquidType
19135 Viscosity uint8 // 0-7
19141 DrawBox, ColBox, SelBox NodeBox
19143 FootstepSnd, DiggingSnd, DugSnd SoundDef
19153 }))(obj)).LegacyFaceDir
19173 //mt:const uint8(6)
19175 OverlayTiles [6]TileDef
19176 //mt:const uint8(6)
19177 SpecialTiles [6]TileDef
19184 ConnectTo []Content
19185 InsideTint color.NRGBA
19186 Level uint8 // Must be < 128.
19188 Translucent bool // Sunlight is scattered and becomes normal light.
19189 Transparent bool // Sunlight isn't scattered.
19202 LiquidType LiquidType
19205 Viscosity uint8 // 0-7
19211 DrawBox, ColBox, SelBox NodeBox
19213 FootstepSnd, DiggingSnd, DugSnd SoundDef
19223 }))(obj)).LegacyMounted
19230 if len(([]byte((*(*(struct {
19242 //mt:const uint8(6)
19244 OverlayTiles [6]TileDef
19245 //mt:const uint8(6)
19246 SpecialTiles [6]TileDef
19253 ConnectTo []Content
19254 InsideTint color.NRGBA
19255 Level uint8 // Must be < 128.
19257 Translucent bool // Sunlight is scattered and becomes normal light.
19258 Transparent bool // Sunlight isn't scattered.
19271 LiquidType LiquidType
19274 Viscosity uint8 // 0-7
19280 DrawBox, ColBox, SelBox NodeBox
19282 FootstepSnd, DiggingSnd, DugSnd SoundDef
19292 }))(obj)).DigPredict))) > math.MaxUint16 {
19296 x := uint16(len(([]byte((*(*(struct {
19308 //mt:const uint8(6)
19310 OverlayTiles [6]TileDef
19311 //mt:const uint8(6)
19312 SpecialTiles [6]TileDef
19319 ConnectTo []Content
19320 InsideTint color.NRGBA
19321 Level uint8 // Must be < 128.
19323 Translucent bool // Sunlight is scattered and becomes normal light.
19324 Transparent bool // Sunlight isn't scattered.
19337 LiquidType LiquidType
19340 Viscosity uint8 // 0-7
19346 DrawBox, ColBox, SelBox NodeBox
19348 FootstepSnd, DiggingSnd, DugSnd SoundDef
19358 }))(obj)).DigPredict))))
19359 write16(w, uint16(x))
19362 _, err := w.Write(([]byte((*(*(struct {
19374 //mt:const uint8(6)
19376 OverlayTiles [6]TileDef
19377 //mt:const uint8(6)
19378 SpecialTiles [6]TileDef
19385 ConnectTo []Content
19386 InsideTint color.NRGBA
19387 Level uint8 // Must be < 128.
19389 Translucent bool // Sunlight is scattered and becomes normal light.
19390 Transparent bool // Sunlight isn't scattered.
19403 LiquidType LiquidType
19406 Viscosity uint8 // 0-7
19412 DrawBox, ColBox, SelBox NodeBox
19414 FootstepSnd, DiggingSnd, DugSnd SoundDef
19424 }))(obj)).DigPredict))[:])
19440 //mt:const uint8(6)
19442 OverlayTiles [6]TileDef
19443 //mt:const uint8(6)
19444 SpecialTiles [6]TileDef
19451 ConnectTo []Content
19452 InsideTint color.NRGBA
19453 Level uint8 // Must be < 128.
19455 Translucent bool // Sunlight is scattered and becomes normal light.
19456 Transparent bool // Sunlight isn't scattered.
19469 LiquidType LiquidType
19472 Viscosity uint8 // 0-7
19478 DrawBox, ColBox, SelBox NodeBox
19480 FootstepSnd, DiggingSnd, DugSnd SoundDef
19491 write8(w, uint8(x))
19493 if err := pcall(func() {
19506 //mt:const uint8(6)
19508 OverlayTiles [6]TileDef
19509 //mt:const uint8(6)
19510 SpecialTiles [6]TileDef
19517 ConnectTo []Content
19518 InsideTint color.NRGBA
19519 Level uint8 // Must be < 128.
19521 Translucent bool // Sunlight is scattered and becomes normal light.
19522 Transparent bool // Sunlight isn't scattered.
19535 LiquidType LiquidType
19538 Viscosity uint8 // 0-7
19544 DrawBox, ColBox, SelBox NodeBox
19546 FootstepSnd, DiggingSnd, DugSnd SoundDef
19556 }))(obj)).AlphaUse).serialize(w)
19561 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
19566 if len((buf.Bytes())) > math.MaxUint16 {
19570 x := uint16(len((buf.Bytes())))
19571 write16(w, uint16(x))
19574 _, err := w.Write((buf.Bytes())[:])
19581 func (obj *NodeDef) deserialize(r io.Reader) {
19582 if err := pcall(func() {
19595 //mt:const uint8(6)
19597 OverlayTiles [6]TileDef
19598 //mt:const uint8(6)
19599 SpecialTiles [6]TileDef
19606 ConnectTo []Content
19607 InsideTint color.NRGBA
19608 Level uint8 // Must be < 128.
19610 Translucent bool // Sunlight is scattered and becomes normal light.
19611 Transparent bool // Sunlight isn't scattered.
19624 LiquidType LiquidType
19627 Viscosity uint8 // 0-7
19633 DrawBox, ColBox, SelBox NodeBox
19635 FootstepSnd, DiggingSnd, DugSnd SoundDef
19645 }))(obj)).Param0).deserialize(r)
19650 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
19658 r := &io.LimitedReader{r, int64(n)}
19665 if local256 != (13) {
19666 chk(fmt.Errorf("const %v: %v", 13, local256))
19669 var local257 []uint8
19670 var local258 uint16
19675 (local257) = make([]uint8, local258)
19677 _, err := io.ReadFull(r, (local257)[:])
19692 //mt:const uint8(6)
19694 OverlayTiles [6]TileDef
19695 //mt:const uint8(6)
19696 SpecialTiles [6]TileDef
19703 ConnectTo []Content
19704 InsideTint color.NRGBA
19705 Level uint8 // Must be < 128.
19707 Translucent bool // Sunlight is scattered and becomes normal light.
19708 Transparent bool // Sunlight isn't scattered.
19721 LiquidType LiquidType
19724 Viscosity uint8 // 0-7
19730 DrawBox, ColBox, SelBox NodeBox
19732 FootstepSnd, DiggingSnd, DugSnd SoundDef
19742 }))(obj)).Name) = string(local257)
19743 var local259 uint16
19760 //mt:const uint8(6)
19762 OverlayTiles [6]TileDef
19763 //mt:const uint8(6)
19764 SpecialTiles [6]TileDef
19771 ConnectTo []Content
19772 InsideTint color.NRGBA
19773 Level uint8 // Must be < 128.
19775 Translucent bool // Sunlight is scattered and becomes normal light.
19776 Transparent bool // Sunlight isn't scattered.
19789 LiquidType LiquidType
19792 Viscosity uint8 // 0-7
19798 DrawBox, ColBox, SelBox NodeBox
19800 FootstepSnd, DiggingSnd, DugSnd SoundDef
19810 }))(obj)).Groups) = make([]Group, local259)
19811 for local260 := range (*(*(struct {
19823 //mt:const uint8(6)
19825 OverlayTiles [6]TileDef
19826 //mt:const uint8(6)
19827 SpecialTiles [6]TileDef
19834 ConnectTo []Content
19835 InsideTint color.NRGBA
19836 Level uint8 // Must be < 128.
19838 Translucent bool // Sunlight is scattered and becomes normal light.
19839 Transparent bool // Sunlight isn't scattered.
19852 LiquidType LiquidType
19855 Viscosity uint8 // 0-7
19861 DrawBox, ColBox, SelBox NodeBox
19863 FootstepSnd, DiggingSnd, DugSnd SoundDef
19874 if err := pcall(func() {
19887 //mt:const uint8(6)
19889 OverlayTiles [6]TileDef
19890 //mt:const uint8(6)
19891 SpecialTiles [6]TileDef
19898 ConnectTo []Content
19899 InsideTint color.NRGBA
19900 Level uint8 // Must be < 128.
19902 Translucent bool // Sunlight is scattered and becomes normal light.
19903 Transparent bool // Sunlight isn't scattered.
19916 LiquidType LiquidType
19919 Viscosity uint8 // 0-7
19925 DrawBox, ColBox, SelBox NodeBox
19927 FootstepSnd, DiggingSnd, DugSnd SoundDef
19937 }))(obj)).Groups)[local260]).deserialize(r)
19942 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
19945 if err := pcall(func() {
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
20008 }))(obj)).P1Type).deserialize(r)
20013 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
20015 if err := pcall(func() {
20028 //mt:const uint8(6)
20030 OverlayTiles [6]TileDef
20031 //mt:const uint8(6)
20032 SpecialTiles [6]TileDef
20039 ConnectTo []Content
20040 InsideTint color.NRGBA
20041 Level uint8 // Must be < 128.
20043 Translucent bool // Sunlight is scattered and becomes normal light.
20044 Transparent bool // Sunlight isn't scattered.
20057 LiquidType LiquidType
20060 Viscosity uint8 // 0-7
20066 DrawBox, ColBox, SelBox NodeBox
20068 FootstepSnd, DiggingSnd, DugSnd SoundDef
20078 }))(obj)).P2Type).deserialize(r)
20083 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
20085 if err := pcall(func() {
20098 //mt:const uint8(6)
20100 OverlayTiles [6]TileDef
20101 //mt:const uint8(6)
20102 SpecialTiles [6]TileDef
20109 ConnectTo []Content
20110 InsideTint color.NRGBA
20111 Level uint8 // Must be < 128.
20113 Translucent bool // Sunlight is scattered and becomes normal light.
20114 Transparent bool // Sunlight isn't scattered.
20127 LiquidType LiquidType
20130 Viscosity uint8 // 0-7
20136 DrawBox, ColBox, SelBox NodeBox
20138 FootstepSnd, DiggingSnd, DugSnd SoundDef
20148 }))(obj)).DrawType).deserialize(r)
20153 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
20155 var local261 []uint8
20156 var local262 uint16
20161 (local261) = make([]uint8, local262)
20163 _, err := io.ReadFull(r, (local261)[:])
20178 //mt:const uint8(6)
20180 OverlayTiles [6]TileDef
20181 //mt:const uint8(6)
20182 SpecialTiles [6]TileDef
20189 ConnectTo []Content
20190 InsideTint color.NRGBA
20191 Level uint8 // Must be < 128.
20193 Translucent bool // Sunlight is scattered and becomes normal light.
20194 Transparent bool // Sunlight isn't scattered.
20207 LiquidType LiquidType
20210 Viscosity uint8 // 0-7
20216 DrawBox, ColBox, SelBox NodeBox
20218 FootstepSnd, DiggingSnd, DugSnd SoundDef
20228 }))(obj)).Mesh) = string(local261)
20230 p := &(*(*(struct {
20242 //mt:const uint8(6)
20244 OverlayTiles [6]TileDef
20245 //mt:const uint8(6)
20246 SpecialTiles [6]TileDef
20253 ConnectTo []Content
20254 InsideTint color.NRGBA
20255 Level uint8 // Must be < 128.
20257 Translucent bool // Sunlight is scattered and becomes normal light.
20258 Transparent bool // Sunlight isn't scattered.
20271 LiquidType LiquidType
20274 Viscosity uint8 // 0-7
20280 DrawBox, ColBox, SelBox NodeBox
20282 FootstepSnd, DiggingSnd, DugSnd SoundDef
20293 *p = math.Float32frombits(read32(r))
20301 if local263 != (6) {
20302 chk(fmt.Errorf("const %v: %v", 6, local263))
20305 for local264 := range (*(*(struct {
20317 //mt:const uint8(6)
20319 OverlayTiles [6]TileDef
20320 //mt:const uint8(6)
20321 SpecialTiles [6]TileDef
20328 ConnectTo []Content
20329 InsideTint color.NRGBA
20330 Level uint8 // Must be < 128.
20332 Translucent bool // Sunlight is scattered and becomes normal light.
20333 Transparent bool // Sunlight isn't scattered.
20346 LiquidType LiquidType
20349 Viscosity uint8 // 0-7
20355 DrawBox, ColBox, SelBox NodeBox
20357 FootstepSnd, DiggingSnd, DugSnd SoundDef
20368 if err := pcall(func() {
20381 //mt:const uint8(6)
20383 OverlayTiles [6]TileDef
20384 //mt:const uint8(6)
20385 SpecialTiles [6]TileDef
20392 ConnectTo []Content
20393 InsideTint color.NRGBA
20394 Level uint8 // Must be < 128.
20396 Translucent bool // Sunlight is scattered and becomes normal light.
20397 Transparent bool // Sunlight isn't scattered.
20410 LiquidType LiquidType
20413 Viscosity uint8 // 0-7
20419 DrawBox, ColBox, SelBox NodeBox
20421 FootstepSnd, DiggingSnd, DugSnd SoundDef
20431 }))(obj)).Tiles)[local264]).deserialize(r)
20436 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
20439 for local265 := range (*(*(struct {
20451 //mt:const uint8(6)
20453 OverlayTiles [6]TileDef
20454 //mt:const uint8(6)
20455 SpecialTiles [6]TileDef
20462 ConnectTo []Content
20463 InsideTint color.NRGBA
20464 Level uint8 // Must be < 128.
20466 Translucent bool // Sunlight is scattered and becomes normal light.
20467 Transparent bool // Sunlight isn't scattered.
20480 LiquidType LiquidType
20483 Viscosity uint8 // 0-7
20489 DrawBox, ColBox, SelBox NodeBox
20491 FootstepSnd, DiggingSnd, DugSnd SoundDef
20501 }))(obj)).OverlayTiles {
20502 if err := pcall(func() {
20515 //mt:const uint8(6)
20517 OverlayTiles [6]TileDef
20518 //mt:const uint8(6)
20519 SpecialTiles [6]TileDef
20526 ConnectTo []Content
20527 InsideTint color.NRGBA
20528 Level uint8 // Must be < 128.
20530 Translucent bool // Sunlight is scattered and becomes normal light.
20531 Transparent bool // Sunlight isn't scattered.
20544 LiquidType LiquidType
20547 Viscosity uint8 // 0-7
20553 DrawBox, ColBox, SelBox NodeBox
20555 FootstepSnd, DiggingSnd, DugSnd SoundDef
20565 }))(obj)).OverlayTiles)[local265]).deserialize(r)
20570 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
20579 if local266 != (6) {
20580 chk(fmt.Errorf("const %v: %v", 6, local266))
20583 for local267 := range (*(*(struct {
20595 //mt:const uint8(6)
20597 OverlayTiles [6]TileDef
20598 //mt:const uint8(6)
20599 SpecialTiles [6]TileDef
20606 ConnectTo []Content
20607 InsideTint color.NRGBA
20608 Level uint8 // Must be < 128.
20610 Translucent bool // Sunlight is scattered and becomes normal light.
20611 Transparent bool // Sunlight isn't scattered.
20624 LiquidType LiquidType
20627 Viscosity uint8 // 0-7
20633 DrawBox, ColBox, SelBox NodeBox
20635 FootstepSnd, DiggingSnd, DugSnd SoundDef
20645 }))(obj)).SpecialTiles {
20646 if err := pcall(func() {
20659 //mt:const uint8(6)
20661 OverlayTiles [6]TileDef
20662 //mt:const uint8(6)
20663 SpecialTiles [6]TileDef
20670 ConnectTo []Content
20671 InsideTint color.NRGBA
20672 Level uint8 // Must be < 128.
20674 Translucent bool // Sunlight is scattered and becomes normal light.
20675 Transparent bool // Sunlight isn't scattered.
20688 LiquidType LiquidType
20691 Viscosity uint8 // 0-7
20697 DrawBox, ColBox, SelBox NodeBox
20699 FootstepSnd, DiggingSnd, DugSnd SoundDef
20709 }))(obj)).SpecialTiles)[local267]).deserialize(r)
20714 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
20718 p := &(*(*(struct {
20730 //mt:const uint8(6)
20732 OverlayTiles [6]TileDef
20733 //mt:const uint8(6)
20734 SpecialTiles [6]TileDef
20741 ConnectTo []Content
20742 InsideTint color.NRGBA
20743 Level uint8 // Must be < 128.
20745 Translucent bool // Sunlight is scattered and becomes normal light.
20746 Transparent bool // Sunlight isn't scattered.
20759 LiquidType LiquidType
20762 Viscosity uint8 // 0-7
20768 DrawBox, ColBox, SelBox NodeBox
20770 FootstepSnd, DiggingSnd, DugSnd SoundDef
20781 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20783 if err := pcall(func() {
20796 //mt:const uint8(6)
20798 OverlayTiles [6]TileDef
20799 //mt:const uint8(6)
20800 SpecialTiles [6]TileDef
20807 ConnectTo []Content
20808 InsideTint color.NRGBA
20809 Level uint8 // Must be < 128.
20811 Translucent bool // Sunlight is scattered and becomes normal light.
20812 Transparent bool // Sunlight isn't scattered.
20825 LiquidType LiquidType
20828 Viscosity uint8 // 0-7
20834 DrawBox, ColBox, SelBox NodeBox
20836 FootstepSnd, DiggingSnd, DugSnd SoundDef
20846 }))(obj)).Palette).deserialize(r)
20851 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
20853 if err := pcall(func() {
20866 //mt:const uint8(6)
20868 OverlayTiles [6]TileDef
20869 //mt:const uint8(6)
20870 SpecialTiles [6]TileDef
20877 ConnectTo []Content
20878 InsideTint color.NRGBA
20879 Level uint8 // Must be < 128.
20881 Translucent bool // Sunlight is scattered and becomes normal light.
20882 Transparent bool // Sunlight isn't scattered.
20895 LiquidType LiquidType
20898 Viscosity uint8 // 0-7
20904 DrawBox, ColBox, SelBox NodeBox
20906 FootstepSnd, DiggingSnd, DugSnd SoundDef
20916 }))(obj)).Waving).deserialize(r)
20921 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
20924 p := &(*(*(struct {
20936 //mt:const uint8(6)
20938 OverlayTiles [6]TileDef
20939 //mt:const uint8(6)
20940 SpecialTiles [6]TileDef
20947 ConnectTo []Content
20948 InsideTint color.NRGBA
20949 Level uint8 // Must be < 128.
20951 Translucent bool // Sunlight is scattered and becomes normal light.
20952 Transparent bool // Sunlight isn't scattered.
20965 LiquidType LiquidType
20968 Viscosity uint8 // 0-7
20974 DrawBox, ColBox, SelBox NodeBox
20976 FootstepSnd, DiggingSnd, DugSnd SoundDef
20986 }))(obj)).ConnectSides
20989 var local268 uint16
21006 //mt:const uint8(6)
21008 OverlayTiles [6]TileDef
21009 //mt:const uint8(6)
21010 SpecialTiles [6]TileDef
21017 ConnectTo []Content
21018 InsideTint color.NRGBA
21019 Level uint8 // Must be < 128.
21021 Translucent bool // Sunlight is scattered and becomes normal light.
21022 Transparent bool // Sunlight isn't scattered.
21035 LiquidType LiquidType
21038 Viscosity uint8 // 0-7
21044 DrawBox, ColBox, SelBox NodeBox
21046 FootstepSnd, DiggingSnd, DugSnd SoundDef
21056 }))(obj)).ConnectTo) = make([]Content, local268)
21057 for local269 := range (*(*(struct {
21069 //mt:const uint8(6)
21071 OverlayTiles [6]TileDef
21072 //mt:const uint8(6)
21073 SpecialTiles [6]TileDef
21080 ConnectTo []Content
21081 InsideTint color.NRGBA
21082 Level uint8 // Must be < 128.
21084 Translucent bool // Sunlight is scattered and becomes normal light.
21085 Transparent bool // Sunlight isn't scattered.
21098 LiquidType LiquidType
21101 Viscosity uint8 // 0-7
21107 DrawBox, ColBox, SelBox NodeBox
21109 FootstepSnd, DiggingSnd, DugSnd SoundDef
21119 }))(obj)).ConnectTo {
21120 if err := pcall(func() {
21133 //mt:const uint8(6)
21135 OverlayTiles [6]TileDef
21136 //mt:const uint8(6)
21137 SpecialTiles [6]TileDef
21144 ConnectTo []Content
21145 InsideTint color.NRGBA
21146 Level uint8 // Must be < 128.
21148 Translucent bool // Sunlight is scattered and becomes normal light.
21149 Transparent bool // Sunlight isn't scattered.
21162 LiquidType LiquidType
21165 Viscosity uint8 // 0-7
21171 DrawBox, ColBox, SelBox NodeBox
21173 FootstepSnd, DiggingSnd, DugSnd SoundDef
21183 }))(obj)).ConnectTo)[local269]).deserialize(r)
21188 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
21192 p := &(*(*(struct {
21204 //mt:const uint8(6)
21206 OverlayTiles [6]TileDef
21207 //mt:const uint8(6)
21208 SpecialTiles [6]TileDef
21215 ConnectTo []Content
21216 InsideTint color.NRGBA
21217 Level uint8 // Must be < 128.
21219 Translucent bool // Sunlight is scattered and becomes normal light.
21220 Transparent bool // Sunlight isn't scattered.
21233 LiquidType LiquidType
21236 Viscosity uint8 // 0-7
21242 DrawBox, ColBox, SelBox NodeBox
21244 FootstepSnd, DiggingSnd, DugSnd SoundDef
21254 }))(obj)).InsideTint
21255 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
21258 p := &(*(*(struct {
21270 //mt:const uint8(6)
21272 OverlayTiles [6]TileDef
21273 //mt:const uint8(6)
21274 SpecialTiles [6]TileDef
21281 ConnectTo []Content
21282 InsideTint color.NRGBA
21283 Level uint8 // Must be < 128.
21285 Translucent bool // Sunlight is scattered and becomes normal light.
21286 Transparent bool // Sunlight isn't scattered.
21299 LiquidType LiquidType
21302 Viscosity uint8 // 0-7
21308 DrawBox, ColBox, SelBox NodeBox
21310 FootstepSnd, DiggingSnd, DugSnd SoundDef
21324 p := &(*(*(struct {
21336 //mt:const uint8(6)
21338 OverlayTiles [6]TileDef
21339 //mt:const uint8(6)
21340 SpecialTiles [6]TileDef
21347 ConnectTo []Content
21348 InsideTint color.NRGBA
21349 Level uint8 // Must be < 128.
21351 Translucent bool // Sunlight is scattered and becomes normal light.
21352 Transparent bool // Sunlight isn't scattered.
21365 LiquidType LiquidType
21368 Viscosity uint8 // 0-7
21374 DrawBox, ColBox, SelBox NodeBox
21376 FootstepSnd, DiggingSnd, DugSnd SoundDef
21386 }))(obj)).Translucent
21387 switch n := read8(r); n {
21393 chk(fmt.Errorf("invalid bool: %d", n))
21397 p := &(*(*(struct {
21409 //mt:const uint8(6)
21411 OverlayTiles [6]TileDef
21412 //mt:const uint8(6)
21413 SpecialTiles [6]TileDef
21420 ConnectTo []Content
21421 InsideTint color.NRGBA
21422 Level uint8 // Must be < 128.
21424 Translucent bool // Sunlight is scattered and becomes normal light.
21425 Transparent bool // Sunlight isn't scattered.
21438 LiquidType LiquidType
21441 Viscosity uint8 // 0-7
21447 DrawBox, ColBox, SelBox NodeBox
21449 FootstepSnd, DiggingSnd, DugSnd SoundDef
21459 }))(obj)).Transparent
21460 switch n := read8(r); n {
21466 chk(fmt.Errorf("invalid bool: %d", n))
21470 p := &(*(*(struct {
21482 //mt:const uint8(6)
21484 OverlayTiles [6]TileDef
21485 //mt:const uint8(6)
21486 SpecialTiles [6]TileDef
21493 ConnectTo []Content
21494 InsideTint color.NRGBA
21495 Level uint8 // Must be < 128.
21497 Translucent bool // Sunlight is scattered and becomes normal light.
21498 Transparent bool // Sunlight isn't scattered.
21511 LiquidType LiquidType
21514 Viscosity uint8 // 0-7
21520 DrawBox, ColBox, SelBox NodeBox
21522 FootstepSnd, DiggingSnd, DugSnd SoundDef
21536 p := &(*(*(struct {
21548 //mt:const uint8(6)
21550 OverlayTiles [6]TileDef
21551 //mt:const uint8(6)
21552 SpecialTiles [6]TileDef
21559 ConnectTo []Content
21560 InsideTint color.NRGBA
21561 Level uint8 // Must be < 128.
21563 Translucent bool // Sunlight is scattered and becomes normal light.
21564 Transparent bool // Sunlight isn't scattered.
21577 LiquidType LiquidType
21580 Viscosity uint8 // 0-7
21586 DrawBox, ColBox, SelBox NodeBox
21588 FootstepSnd, DiggingSnd, DugSnd SoundDef
21598 }))(obj)).GndContent
21599 switch n := read8(r); n {
21605 chk(fmt.Errorf("invalid bool: %d", n))
21609 p := &(*(*(struct {
21621 //mt:const uint8(6)
21623 OverlayTiles [6]TileDef
21624 //mt:const uint8(6)
21625 SpecialTiles [6]TileDef
21632 ConnectTo []Content
21633 InsideTint color.NRGBA
21634 Level uint8 // Must be < 128.
21636 Translucent bool // Sunlight is scattered and becomes normal light.
21637 Transparent bool // Sunlight isn't scattered.
21650 LiquidType LiquidType
21653 Viscosity uint8 // 0-7
21659 DrawBox, ColBox, SelBox NodeBox
21661 FootstepSnd, DiggingSnd, DugSnd SoundDef
21672 switch n := read8(r); n {
21678 chk(fmt.Errorf("invalid bool: %d", n))
21682 p := &(*(*(struct {
21694 //mt:const uint8(6)
21696 OverlayTiles [6]TileDef
21697 //mt:const uint8(6)
21698 SpecialTiles [6]TileDef
21705 ConnectTo []Content
21706 InsideTint color.NRGBA
21707 Level uint8 // Must be < 128.
21709 Translucent bool // Sunlight is scattered and becomes normal light.
21710 Transparent bool // Sunlight isn't scattered.
21723 LiquidType LiquidType
21726 Viscosity uint8 // 0-7
21732 DrawBox, ColBox, SelBox NodeBox
21734 FootstepSnd, DiggingSnd, DugSnd SoundDef
21744 }))(obj)).Pointable
21745 switch n := read8(r); n {
21751 chk(fmt.Errorf("invalid bool: %d", n))
21755 p := &(*(*(struct {
21767 //mt:const uint8(6)
21769 OverlayTiles [6]TileDef
21770 //mt:const uint8(6)
21771 SpecialTiles [6]TileDef
21778 ConnectTo []Content
21779 InsideTint color.NRGBA
21780 Level uint8 // Must be < 128.
21782 Translucent bool // Sunlight is scattered and becomes normal light.
21783 Transparent bool // Sunlight isn't scattered.
21796 LiquidType LiquidType
21799 Viscosity uint8 // 0-7
21805 DrawBox, ColBox, SelBox NodeBox
21807 FootstepSnd, DiggingSnd, DugSnd SoundDef
21818 switch n := read8(r); n {
21824 chk(fmt.Errorf("invalid bool: %d", n))
21828 p := &(*(*(struct {
21840 //mt:const uint8(6)
21842 OverlayTiles [6]TileDef
21843 //mt:const uint8(6)
21844 SpecialTiles [6]TileDef
21851 ConnectTo []Content
21852 InsideTint color.NRGBA
21853 Level uint8 // Must be < 128.
21855 Translucent bool // Sunlight is scattered and becomes normal light.
21856 Transparent bool // Sunlight isn't scattered.
21869 LiquidType LiquidType
21872 Viscosity uint8 // 0-7
21878 DrawBox, ColBox, SelBox NodeBox
21880 FootstepSnd, DiggingSnd, DugSnd SoundDef
21890 }))(obj)).Climbable
21891 switch n := read8(r); n {
21897 chk(fmt.Errorf("invalid bool: %d", n))
21901 p := &(*(*(struct {
21913 //mt:const uint8(6)
21915 OverlayTiles [6]TileDef
21916 //mt:const uint8(6)
21917 SpecialTiles [6]TileDef
21924 ConnectTo []Content
21925 InsideTint color.NRGBA
21926 Level uint8 // Must be < 128.
21928 Translucent bool // Sunlight is scattered and becomes normal light.
21929 Transparent bool // Sunlight isn't scattered.
21942 LiquidType LiquidType
21945 Viscosity uint8 // 0-7
21951 DrawBox, ColBox, SelBox NodeBox
21953 FootstepSnd, DiggingSnd, DugSnd SoundDef
21963 }))(obj)).Replaceable
21964 switch n := read8(r); n {
21970 chk(fmt.Errorf("invalid bool: %d", n))
21974 p := &(*(*(struct {
21986 //mt:const uint8(6)
21988 OverlayTiles [6]TileDef
21989 //mt:const uint8(6)
21990 SpecialTiles [6]TileDef
21997 ConnectTo []Content
21998 InsideTint color.NRGBA
21999 Level uint8 // Must be < 128.
22001 Translucent bool // Sunlight is scattered and becomes normal light.
22002 Transparent bool // Sunlight isn't scattered.
22015 LiquidType LiquidType
22018 Viscosity uint8 // 0-7
22024 DrawBox, ColBox, SelBox NodeBox
22026 FootstepSnd, DiggingSnd, DugSnd SoundDef
22036 }))(obj)).OnRightClick
22037 switch n := read8(r); n {
22043 chk(fmt.Errorf("invalid bool: %d", n))
22047 p := &(*(*(struct {
22059 //mt:const uint8(6)
22061 OverlayTiles [6]TileDef
22062 //mt:const uint8(6)
22063 SpecialTiles [6]TileDef
22070 ConnectTo []Content
22071 InsideTint color.NRGBA
22072 Level uint8 // Must be < 128.
22074 Translucent bool // Sunlight is scattered and becomes normal light.
22075 Transparent bool // Sunlight isn't scattered.
22088 LiquidType LiquidType
22091 Viscosity uint8 // 0-7
22097 DrawBox, ColBox, SelBox NodeBox
22099 FootstepSnd, DiggingSnd, DugSnd SoundDef
22109 }))(obj)).DmgPerSec
22110 *p = int32(read32(r))
22112 if err := pcall(func() {
22125 //mt:const uint8(6)
22127 OverlayTiles [6]TileDef
22128 //mt:const uint8(6)
22129 SpecialTiles [6]TileDef
22136 ConnectTo []Content
22137 InsideTint color.NRGBA
22138 Level uint8 // Must be < 128.
22140 Translucent bool // Sunlight is scattered and becomes normal light.
22141 Transparent bool // Sunlight isn't scattered.
22154 LiquidType LiquidType
22157 Viscosity uint8 // 0-7
22163 DrawBox, ColBox, SelBox NodeBox
22165 FootstepSnd, DiggingSnd, DugSnd SoundDef
22175 }))(obj)).LiquidType).deserialize(r)
22180 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
22182 var local270 []uint8
22183 var local271 uint16
22188 (local270) = make([]uint8, local271)
22190 _, err := io.ReadFull(r, (local270)[:])
22205 //mt:const uint8(6)
22207 OverlayTiles [6]TileDef
22208 //mt:const uint8(6)
22209 SpecialTiles [6]TileDef
22216 ConnectTo []Content
22217 InsideTint color.NRGBA
22218 Level uint8 // Must be < 128.
22220 Translucent bool // Sunlight is scattered and becomes normal light.
22221 Transparent bool // Sunlight isn't scattered.
22234 LiquidType LiquidType
22237 Viscosity uint8 // 0-7
22243 DrawBox, ColBox, SelBox NodeBox
22245 FootstepSnd, DiggingSnd, DugSnd SoundDef
22255 }))(obj)).FlowingAlt) = string(local270)
22256 var local272 []uint8
22257 var local273 uint16
22262 (local272) = make([]uint8, local273)
22264 _, err := io.ReadFull(r, (local272)[:])
22279 //mt:const uint8(6)
22281 OverlayTiles [6]TileDef
22282 //mt:const uint8(6)
22283 SpecialTiles [6]TileDef
22290 ConnectTo []Content
22291 InsideTint color.NRGBA
22292 Level uint8 // Must be < 128.
22294 Translucent bool // Sunlight is scattered and becomes normal light.
22295 Transparent bool // Sunlight isn't scattered.
22308 LiquidType LiquidType
22311 Viscosity uint8 // 0-7
22317 DrawBox, ColBox, SelBox NodeBox
22319 FootstepSnd, DiggingSnd, DugSnd SoundDef
22329 }))(obj)).SrcAlt) = string(local272)
22331 p := &(*(*(struct {
22343 //mt:const uint8(6)
22345 OverlayTiles [6]TileDef
22346 //mt:const uint8(6)
22347 SpecialTiles [6]TileDef
22354 ConnectTo []Content
22355 InsideTint color.NRGBA
22356 Level uint8 // Must be < 128.
22358 Translucent bool // Sunlight is scattered and becomes normal light.
22359 Transparent bool // Sunlight isn't scattered.
22372 LiquidType LiquidType
22375 Viscosity uint8 // 0-7
22381 DrawBox, ColBox, SelBox NodeBox
22383 FootstepSnd, DiggingSnd, DugSnd SoundDef
22393 }))(obj)).Viscosity
22397 p := &(*(*(struct {
22409 //mt:const uint8(6)
22411 OverlayTiles [6]TileDef
22412 //mt:const uint8(6)
22413 SpecialTiles [6]TileDef
22420 ConnectTo []Content
22421 InsideTint color.NRGBA
22422 Level uint8 // Must be < 128.
22424 Translucent bool // Sunlight is scattered and becomes normal light.
22425 Transparent bool // Sunlight isn't scattered.
22438 LiquidType LiquidType
22441 Viscosity uint8 // 0-7
22447 DrawBox, ColBox, SelBox NodeBox
22449 FootstepSnd, DiggingSnd, DugSnd SoundDef
22459 }))(obj)).LiqRenewable
22460 switch n := read8(r); n {
22466 chk(fmt.Errorf("invalid bool: %d", n))
22470 p := &(*(*(struct {
22482 //mt:const uint8(6)
22484 OverlayTiles [6]TileDef
22485 //mt:const uint8(6)
22486 SpecialTiles [6]TileDef
22493 ConnectTo []Content
22494 InsideTint color.NRGBA
22495 Level uint8 // Must be < 128.
22497 Translucent bool // Sunlight is scattered and becomes normal light.
22498 Transparent bool // Sunlight isn't scattered.
22511 LiquidType LiquidType
22514 Viscosity uint8 // 0-7
22520 DrawBox, ColBox, SelBox NodeBox
22522 FootstepSnd, DiggingSnd, DugSnd SoundDef
22532 }))(obj)).FlowRange
22536 p := &(*(*(struct {
22548 //mt:const uint8(6)
22550 OverlayTiles [6]TileDef
22551 //mt:const uint8(6)
22552 SpecialTiles [6]TileDef
22559 ConnectTo []Content
22560 InsideTint color.NRGBA
22561 Level uint8 // Must be < 128.
22563 Translucent bool // Sunlight is scattered and becomes normal light.
22564 Transparent bool // Sunlight isn't scattered.
22577 LiquidType LiquidType
22580 Viscosity uint8 // 0-7
22586 DrawBox, ColBox, SelBox NodeBox
22588 FootstepSnd, DiggingSnd, DugSnd SoundDef
22602 p := &(*(*(struct {
22614 //mt:const uint8(6)
22616 OverlayTiles [6]TileDef
22617 //mt:const uint8(6)
22618 SpecialTiles [6]TileDef
22625 ConnectTo []Content
22626 InsideTint color.NRGBA
22627 Level uint8 // Must be < 128.
22629 Translucent bool // Sunlight is scattered and becomes normal light.
22630 Transparent bool // Sunlight isn't scattered.
22643 LiquidType LiquidType
22646 Viscosity uint8 // 0-7
22652 DrawBox, ColBox, SelBox NodeBox
22654 FootstepSnd, DiggingSnd, DugSnd SoundDef
22664 }))(obj)).Floodable
22665 switch n := read8(r); n {
22671 chk(fmt.Errorf("invalid bool: %d", n))
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
22737 }))(obj)).DrawBox).deserialize(r)
22742 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
22744 if err := pcall(func() {
22757 //mt:const uint8(6)
22759 OverlayTiles [6]TileDef
22760 //mt:const uint8(6)
22761 SpecialTiles [6]TileDef
22768 ConnectTo []Content
22769 InsideTint color.NRGBA
22770 Level uint8 // Must be < 128.
22772 Translucent bool // Sunlight is scattered and becomes normal light.
22773 Transparent bool // Sunlight isn't scattered.
22786 LiquidType LiquidType
22789 Viscosity uint8 // 0-7
22795 DrawBox, ColBox, SelBox NodeBox
22797 FootstepSnd, DiggingSnd, DugSnd SoundDef
22807 }))(obj)).ColBox).deserialize(r)
22812 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
22814 if err := pcall(func() {
22827 //mt:const uint8(6)
22829 OverlayTiles [6]TileDef
22830 //mt:const uint8(6)
22831 SpecialTiles [6]TileDef
22838 ConnectTo []Content
22839 InsideTint color.NRGBA
22840 Level uint8 // Must be < 128.
22842 Translucent bool // Sunlight is scattered and becomes normal light.
22843 Transparent bool // Sunlight isn't scattered.
22856 LiquidType LiquidType
22859 Viscosity uint8 // 0-7
22865 DrawBox, ColBox, SelBox NodeBox
22867 FootstepSnd, DiggingSnd, DugSnd SoundDef
22877 }))(obj)).SelBox).deserialize(r)
22882 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
22884 if err := pcall(func() {
22897 //mt:const uint8(6)
22899 OverlayTiles [6]TileDef
22900 //mt:const uint8(6)
22901 SpecialTiles [6]TileDef
22908 ConnectTo []Content
22909 InsideTint color.NRGBA
22910 Level uint8 // Must be < 128.
22912 Translucent bool // Sunlight is scattered and becomes normal light.
22913 Transparent bool // Sunlight isn't scattered.
22926 LiquidType LiquidType
22929 Viscosity uint8 // 0-7
22935 DrawBox, ColBox, SelBox NodeBox
22937 FootstepSnd, DiggingSnd, DugSnd SoundDef
22947 }))(obj)).FootstepSnd).deserialize(r)
22952 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
22954 if err := pcall(func() {
22967 //mt:const uint8(6)
22969 OverlayTiles [6]TileDef
22970 //mt:const uint8(6)
22971 SpecialTiles [6]TileDef
22978 ConnectTo []Content
22979 InsideTint color.NRGBA
22980 Level uint8 // Must be < 128.
22982 Translucent bool // Sunlight is scattered and becomes normal light.
22983 Transparent bool // Sunlight isn't scattered.
22996 LiquidType LiquidType
22999 Viscosity uint8 // 0-7
23005 DrawBox, ColBox, SelBox NodeBox
23007 FootstepSnd, DiggingSnd, DugSnd SoundDef
23017 }))(obj)).DiggingSnd).deserialize(r)
23022 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
23024 if err := pcall(func() {
23037 //mt:const uint8(6)
23039 OverlayTiles [6]TileDef
23040 //mt:const uint8(6)
23041 SpecialTiles [6]TileDef
23048 ConnectTo []Content
23049 InsideTint color.NRGBA
23050 Level uint8 // Must be < 128.
23052 Translucent bool // Sunlight is scattered and becomes normal light.
23053 Transparent bool // Sunlight isn't scattered.
23066 LiquidType LiquidType
23069 Viscosity uint8 // 0-7
23075 DrawBox, ColBox, SelBox NodeBox
23077 FootstepSnd, DiggingSnd, DugSnd SoundDef
23087 }))(obj)).DugSnd).deserialize(r)
23092 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
23095 p := &(*(*(struct {
23107 //mt:const uint8(6)
23109 OverlayTiles [6]TileDef
23110 //mt:const uint8(6)
23111 SpecialTiles [6]TileDef
23118 ConnectTo []Content
23119 InsideTint color.NRGBA
23120 Level uint8 // Must be < 128.
23122 Translucent bool // Sunlight is scattered and becomes normal light.
23123 Transparent bool // Sunlight isn't scattered.
23136 LiquidType LiquidType
23139 Viscosity uint8 // 0-7
23145 DrawBox, ColBox, SelBox NodeBox
23147 FootstepSnd, DiggingSnd, DugSnd SoundDef
23157 }))(obj)).LegacyFaceDir
23158 switch n := read8(r); n {
23164 chk(fmt.Errorf("invalid bool: %d", n))
23168 p := &(*(*(struct {
23180 //mt:const uint8(6)
23182 OverlayTiles [6]TileDef
23183 //mt:const uint8(6)
23184 SpecialTiles [6]TileDef
23191 ConnectTo []Content
23192 InsideTint color.NRGBA
23193 Level uint8 // Must be < 128.
23195 Translucent bool // Sunlight is scattered and becomes normal light.
23196 Transparent bool // Sunlight isn't scattered.
23209 LiquidType LiquidType
23212 Viscosity uint8 // 0-7
23218 DrawBox, ColBox, SelBox NodeBox
23220 FootstepSnd, DiggingSnd, DugSnd SoundDef
23230 }))(obj)).LegacyMounted
23231 switch n := read8(r); n {
23237 chk(fmt.Errorf("invalid bool: %d", n))
23240 var local274 []uint8
23241 var local275 uint16
23246 (local274) = make([]uint8, local275)
23248 _, err := io.ReadFull(r, (local274)[:])
23263 //mt:const uint8(6)
23265 OverlayTiles [6]TileDef
23266 //mt:const uint8(6)
23267 SpecialTiles [6]TileDef
23274 ConnectTo []Content
23275 InsideTint color.NRGBA
23276 Level uint8 // Must be < 128.
23278 Translucent bool // Sunlight is scattered and becomes normal light.
23279 Transparent bool // Sunlight isn't scattered.
23292 LiquidType LiquidType
23295 Viscosity uint8 // 0-7
23301 DrawBox, ColBox, SelBox NodeBox
23303 FootstepSnd, DiggingSnd, DugSnd SoundDef
23313 }))(obj)).DigPredict) = string(local274)
23315 p := &(*(*(struct {
23327 //mt:const uint8(6)
23329 OverlayTiles [6]TileDef
23330 //mt:const uint8(6)
23331 SpecialTiles [6]TileDef
23338 ConnectTo []Content
23339 InsideTint color.NRGBA
23340 Level uint8 // Must be < 128.
23342 Translucent bool // Sunlight is scattered and becomes normal light.
23343 Transparent bool // Sunlight isn't scattered.
23356 LiquidType LiquidType
23359 Viscosity uint8 // 0-7
23365 DrawBox, ColBox, SelBox NodeBox
23367 FootstepSnd, DiggingSnd, DugSnd SoundDef
23380 if err := pcall(func() {
23393 //mt:const uint8(6)
23395 OverlayTiles [6]TileDef
23396 //mt:const uint8(6)
23397 SpecialTiles [6]TileDef
23404 ConnectTo []Content
23405 InsideTint color.NRGBA
23406 Level uint8 // Must be < 128.
23408 Translucent bool // Sunlight is scattered and becomes normal light.
23409 Transparent bool // Sunlight isn't scattered.
23422 LiquidType LiquidType
23425 Viscosity uint8 // 0-7
23431 DrawBox, ColBox, SelBox NodeBox
23433 FootstepSnd, DiggingSnd, DugSnd SoundDef
23443 }))(obj)).AlphaUse).deserialize(r)
23448 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
23451 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23456 func (obj *PointedNode) serialize(w io.Writer) {
23457 for local276 := range (*(*(struct {
23458 Under, Above [3]int16
23461 x := ((*(*(struct {
23462 Under, Above [3]int16
23463 }))(obj)).Under)[local276]
23464 write16(w, uint16(x))
23467 for local277 := range (*(*(struct {
23468 Under, Above [3]int16
23471 x := ((*(*(struct {
23472 Under, Above [3]int16
23473 }))(obj)).Above)[local277]
23474 write16(w, uint16(x))
23479 func (obj *PointedNode) deserialize(r io.Reader) {
23480 for local278 := range (*(*(struct {
23481 Under, Above [3]int16
23484 p := &((*(*(struct {
23485 Under, Above [3]int16
23486 }))(obj)).Under)[local278]
23487 *p = int16(read16(r))
23490 for local279 := range (*(*(struct {
23491 Under, Above [3]int16
23494 p := &((*(*(struct {
23495 Under, Above [3]int16
23496 }))(obj)).Above)[local279]
23497 *p = int16(read16(r))
23502 func (obj *PointedAO) serialize(w io.Writer) {
23503 if err := pcall(func() {
23506 }))(obj)).ID).serialize(w)
23511 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23515 func (obj *PointedAO) deserialize(r io.Reader) {
23516 if err := pcall(func() {
23519 }))(obj)).ID).deserialize(r)
23524 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23528 func (obj *CompressionModes) serialize(w io.Writer) {
23530 x := *(*(uint16))(obj)
23531 write16(w, uint16(x))
23535 func (obj *CompressionModes) deserialize(r io.Reader) {
23537 p := &*(*(uint16))(obj)
23542 func (obj *PlayerPos) serialize(w io.Writer) {
23543 for local280 := range (*(*(struct {
23544 Pos100, Vel100 [3]int32
23545 Pitch100, Yaw100 int32
23548 WantedRange uint8 // in MapBlks.
23551 x := ((*(*(struct {
23552 Pos100, Vel100 [3]int32
23553 Pitch100, Yaw100 int32
23556 WantedRange uint8 // in MapBlks.
23557 }))(obj)).Pos100)[local280]
23558 write32(w, uint32(x))
23561 for local281 := range (*(*(struct {
23562 Pos100, Vel100 [3]int32
23563 Pitch100, Yaw100 int32
23566 WantedRange uint8 // in MapBlks.
23569 x := ((*(*(struct {
23570 Pos100, Vel100 [3]int32
23571 Pitch100, Yaw100 int32
23574 WantedRange uint8 // in MapBlks.
23575 }))(obj)).Vel100)[local281]
23576 write32(w, uint32(x))
23581 Pos100, Vel100 [3]int32
23582 Pitch100, Yaw100 int32
23585 WantedRange uint8 // in MapBlks.
23587 write32(w, uint32(x))
23591 Pos100, Vel100 [3]int32
23592 Pitch100, Yaw100 int32
23595 WantedRange uint8 // in MapBlks.
23597 write32(w, uint32(x))
23599 if err := pcall(func() {
23601 Pos100, Vel100 [3]int32
23602 Pitch100, Yaw100 int32
23605 WantedRange uint8 // in MapBlks.
23606 }))(obj)).Keys).serialize(w)
23611 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
23615 Pos100, Vel100 [3]int32
23616 Pitch100, Yaw100 int32
23619 WantedRange uint8 // in MapBlks.
23621 write8(w, uint8(x))
23625 Pos100, Vel100 [3]int32
23626 Pitch100, Yaw100 int32
23629 WantedRange uint8 // in MapBlks.
23630 }))(obj)).WantedRange
23631 write8(w, uint8(x))
23635 func (obj *PlayerPos) deserialize(r io.Reader) {
23636 for local282 := range (*(*(struct {
23637 Pos100, Vel100 [3]int32
23638 Pitch100, Yaw100 int32
23641 WantedRange uint8 // in MapBlks.
23644 p := &((*(*(struct {
23645 Pos100, Vel100 [3]int32
23646 Pitch100, Yaw100 int32
23649 WantedRange uint8 // in MapBlks.
23650 }))(obj)).Pos100)[local282]
23651 *p = int32(read32(r))
23654 for local283 := range (*(*(struct {
23655 Pos100, Vel100 [3]int32
23656 Pitch100, Yaw100 int32
23659 WantedRange uint8 // in MapBlks.
23662 p := &((*(*(struct {
23663 Pos100, Vel100 [3]int32
23664 Pitch100, Yaw100 int32
23667 WantedRange uint8 // in MapBlks.
23668 }))(obj)).Vel100)[local283]
23669 *p = int32(read32(r))
23673 p := &(*(*(struct {
23674 Pos100, Vel100 [3]int32
23675 Pitch100, Yaw100 int32
23678 WantedRange uint8 // in MapBlks.
23680 *p = int32(read32(r))
23683 p := &(*(*(struct {
23684 Pos100, Vel100 [3]int32
23685 Pitch100, Yaw100 int32
23688 WantedRange uint8 // in MapBlks.
23690 *p = int32(read32(r))
23692 if err := pcall(func() {
23694 Pos100, Vel100 [3]int32
23695 Pitch100, Yaw100 int32
23698 WantedRange uint8 // in MapBlks.
23699 }))(obj)).Keys).deserialize(r)
23704 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
23707 p := &(*(*(struct {
23708 Pos100, Vel100 [3]int32
23709 Pitch100, Yaw100 int32
23712 WantedRange uint8 // in MapBlks.
23717 p := &(*(*(struct {
23718 Pos100, Vel100 [3]int32
23719 Pitch100, Yaw100 int32
23722 WantedRange uint8 // in MapBlks.
23723 }))(obj)).WantedRange
23728 func (obj *Interaction) serialize(w io.Writer) {
23730 x := *(*(uint8))(obj)
23731 write8(w, uint8(x))
23735 func (obj *Interaction) deserialize(r io.Reader) {
23737 p := &*(*(uint8))(obj)
23742 func (obj *SoundID) serialize(w io.Writer) {
23744 x := *(*(int32))(obj)
23745 write32(w, uint32(x))
23749 func (obj *SoundID) deserialize(r io.Reader) {
23751 p := &*(*(int32))(obj)
23752 *p = int32(read32(r))
23756 func (obj *Field) serialize(w io.Writer) {
23757 if len(([]byte((*(*(struct {
23762 }))(obj)).Name))) > math.MaxUint16 {
23766 x := uint16(len(([]byte((*(*(struct {
23772 write16(w, uint16(x))
23775 _, err := w.Write(([]byte((*(*(struct {
23780 }))(obj)).Name))[:])
23783 if len(([]byte((*(*(struct {
23788 }))(obj)).Value))) > math.MaxUint32 {
23792 x := uint32(len(([]byte((*(*(struct {
23797 }))(obj)).Value))))
23798 write32(w, uint32(x))
23801 _, err := w.Write(([]byte((*(*(struct {
23806 }))(obj)).Value))[:])
23811 func (obj *Field) deserialize(r io.Reader) {
23812 var local284 []uint8
23813 var local285 uint16
23818 (local284) = make([]uint8, local285)
23820 _, err := io.ReadFull(r, (local284)[:])
23828 }))(obj)).Name) = string(local284)
23829 var local286 []uint8
23830 var local287 uint32
23835 (local286) = make([]uint8, local287)
23837 _, err := io.ReadFull(r, (local286)[:])
23845 }))(obj)).Value) = string(local286)
23848 func (obj *AuthMethods) serialize(w io.Writer) {
23850 x := *(*(uint32))(obj)
23851 write32(w, uint32(x))
23855 func (obj *AuthMethods) deserialize(r io.Reader) {
23857 p := &*(*(uint32))(obj)
23862 func (obj *Pos) serialize(w io.Writer) {
23863 if err := pcall(func() {
23864 (*(*(Vec))(obj)).serialize(w)
23869 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
23873 func (obj *Pos) deserialize(r io.Reader) {
23874 if err := pcall(func() {
23875 (*(*(Vec))(obj)).deserialize(r)
23880 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
23884 func (obj *DiscoReason) serialize(w io.Writer) {
23886 x := *(*(uint8))(obj)
23887 write8(w, uint8(x))
23891 func (obj *DiscoReason) deserialize(r io.Reader) {
23893 p := &*(*(uint8))(obj)
23898 func (obj *MapBlk) serialize(w io.Writer) {
23899 if err := pcall(func() {
23902 LitFrom LitFromBlks
23905 Param0 [4096]Content
23909 NodeMetas map[uint16]*NodeMeta
23910 }))(obj)).Flags).serialize(w)
23915 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
23917 if err := pcall(func() {
23920 LitFrom LitFromBlks
23923 Param0 [4096]Content
23927 NodeMetas map[uint16]*NodeMeta
23928 }))(obj)).LitFrom).serialize(w)
23933 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
23936 local288 := uint8(2) // Size of param0 in bytes.
23939 write8(w, uint8(x))
23943 local289 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23946 write8(w, uint8(x))
23950 w := zlib.NewWriter(w)
23951 for local290 := range (*(*(struct {
23953 LitFrom LitFromBlks
23956 Param0 [4096]Content
23960 NodeMetas map[uint16]*NodeMeta
23962 if err := pcall(func() {
23965 LitFrom LitFromBlks
23968 Param0 [4096]Content
23972 NodeMetas map[uint16]*NodeMeta
23973 }))(obj)).Param0)[local290]).serialize(w)
23978 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23982 _, err := w.Write(((*(*(struct {
23984 LitFrom LitFromBlks
23987 Param0 [4096]Content
23991 NodeMetas map[uint16]*NodeMeta
23992 }))(obj)).Param1)[:])
23996 _, err := w.Write(((*(*(struct {
23998 LitFrom LitFromBlks
24001 Param0 [4096]Content
24005 NodeMetas map[uint16]*NodeMeta
24006 }))(obj)).Param2)[:])
24014 LitFrom LitFromBlks
24017 Param0 [4096]Content
24021 NodeMetas map[uint16]*NodeMeta
24022 }))(obj)).NodeMetas
24024 w := zlib.NewWriter(w)
24029 if len(x) > math.MaxUint16 {
24032 write16(w, uint16(len(x)))
24033 keys := make([]uint16, 0, len(x))
24034 for key := range x {
24035 keys = append(keys, key)
24037 sort.Slice(keys, func(i, j int) bool {
24038 i2pos := func(i int) [3]int16 {
24039 return Blkpos2Pos([3]int16{}, keys[i])
24041 p, q := i2pos(i), i2pos(j)
24052 for _, key := range keys {
24054 chk(serialize(w, x[key]))
24061 local291 := uint8(2) // version
24064 write8(w, uint8(x))
24069 func (obj *MapBlk) deserialize(r io.Reader) {
24070 if err := pcall(func() {
24073 LitFrom LitFromBlks
24076 Param0 [4096]Content
24080 NodeMetas map[uint16]*NodeMeta
24081 }))(obj)).Flags).deserialize(r)
24086 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
24088 if err := pcall(func() {
24091 LitFrom LitFromBlks
24094 Param0 [4096]Content
24098 NodeMetas map[uint16]*NodeMeta
24099 }))(obj)).LitFrom).deserialize(r)
24104 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
24112 if local292 != (2) {
24113 chk(fmt.Errorf("const %v: %v", 2, local292))
24122 if local293 != (2) {
24123 chk(fmt.Errorf("const %v: %v", 2, local293))
24127 r, err := zlib.NewReader(byteReader{r})
24129 for local294 := range (*(*(struct {
24131 LitFrom LitFromBlks
24134 Param0 [4096]Content
24138 NodeMetas map[uint16]*NodeMeta
24140 if err := pcall(func() {
24143 LitFrom LitFromBlks
24146 Param0 [4096]Content
24150 NodeMetas map[uint16]*NodeMeta
24151 }))(obj)).Param0)[local294]).deserialize(r)
24156 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
24160 _, err := io.ReadFull(r, ((*(*(struct {
24162 LitFrom LitFromBlks
24165 Param0 [4096]Content
24169 NodeMetas map[uint16]*NodeMeta
24170 }))(obj)).Param1)[:])
24174 _, err := io.ReadFull(r, ((*(*(struct {
24176 LitFrom LitFromBlks
24179 Param0 [4096]Content
24183 NodeMetas map[uint16]*NodeMeta
24184 }))(obj)).Param2)[:])
24190 p := &(*(*(struct {
24192 LitFrom LitFromBlks
24195 Param0 [4096]Content
24199 NodeMetas map[uint16]*NodeMeta
24200 }))(obj)).NodeMetas
24202 r, err := zlib.NewReader(byteReader{r})
24204 switch ver := read8(r); ver {
24209 *p = make(map[uint16]*NodeMeta, n)
24212 nm := new(NodeMeta)
24213 chk(deserialize(r, nm))
24217 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
24228 if local295 != (2) {
24229 chk(fmt.Errorf("const %v: %v", 2, local295))
24234 func (obj *Node) serialize(w io.Writer) {
24235 if err := pcall(func() {
24238 Param1, Param2 uint8
24239 }))(obj)).Param0).serialize(w)
24244 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
24249 Param1, Param2 uint8
24251 write8(w, uint8(x))
24256 Param1, Param2 uint8
24258 write8(w, uint8(x))
24262 func (obj *Node) deserialize(r io.Reader) {
24263 if err := pcall(func() {
24266 Param1, Param2 uint8
24267 }))(obj)).Param0).deserialize(r)
24272 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
24275 p := &(*(*(struct {
24277 Param1, Param2 uint8
24282 p := &(*(*(struct {
24284 Param1, Param2 uint8
24290 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
24292 x := *(*(uint64))(obj)
24293 write64(w, uint64(x))
24297 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
24299 p := &*(*(uint64))(obj)
24304 func (obj *Vec) serialize(w io.Writer) {
24305 for local296 := range *(*([3]float32))(obj) {
24307 x := (*(*([3]float32))(obj))[local296]
24308 write32(w, math.Float32bits(x))
24313 func (obj *Vec) deserialize(r io.Reader) {
24314 for local297 := range *(*([3]float32))(obj) {
24316 p := &(*(*([3]float32))(obj))[local297]
24317 *p = math.Float32frombits(read32(r))
24322 func (obj *ChatMsgType) serialize(w io.Writer) {
24324 x := *(*(uint8))(obj)
24325 write8(w, uint8(x))
24329 func (obj *ChatMsgType) deserialize(r io.Reader) {
24331 p := &*(*(uint8))(obj)
24336 func (obj *AOID) serialize(w io.Writer) {
24338 x := *(*(uint16))(obj)
24339 write16(w, uint16(x))
24343 func (obj *AOID) deserialize(r io.Reader) {
24345 p := &*(*(uint16))(obj)
24350 func (obj *aoType) serialize(w io.Writer) {
24352 x := *(*(uint8))(obj)
24353 write8(w, uint8(x))
24357 func (obj *aoType) deserialize(r io.Reader) {
24359 p := &*(*(uint8))(obj)
24364 func (obj *AOInitData) serialize(w io.Writer) {
24366 local298 := uint8(1)
24369 write8(w, uint8(x))
24372 if len(([]byte((*(*(struct {
24385 // See (de)serialize.fmt.
24387 }))(obj)).Name))) > math.MaxUint16 {
24391 x := uint16(len(([]byte((*(*(struct {
24404 // See (de)serialize.fmt.
24407 write16(w, uint16(x))
24410 _, err := w.Write(([]byte((*(*(struct {
24423 // See (de)serialize.fmt.
24425 }))(obj)).Name))[:])
24442 // See (de)serialize.fmt.
24451 if err := pcall(func() {
24465 // See (de)serialize.fmt.
24467 }))(obj)).ID).serialize(w)
24472 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
24474 if err := pcall(func() {
24488 // See (de)serialize.fmt.
24490 }))(obj)).Pos).serialize(w)
24495 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
24497 for local299 := range (*(*(struct {
24510 // See (de)serialize.fmt.
24514 x := ((*(*(struct {
24527 // See (de)serialize.fmt.
24529 }))(obj)).Rot)[local299]
24530 write32(w, math.Float32bits(x))
24547 // See (de)serialize.fmt.
24550 write16(w, uint16(x))
24566 // See (de)serialize.fmt.
24569 { // For AOInitData.Msgs
24570 if len(x) > math.MaxUint8 {
24573 write8(w, uint8(len(x)))
24574 for _, msg := range x {
24576 chk(writeAOMsg(&b, msg))
24577 if b.Len() > math.MaxUint32 {
24580 write32(w, uint32(b.Len()))
24581 _, err := b.WriteTo(w)
24588 func (obj *AOInitData) deserialize(r io.Reader) {
24595 if local300 != (1) {
24596 chk(fmt.Errorf("const %v: %v", 1, local300))
24599 var local301 []uint8
24600 var local302 uint16
24605 (local301) = make([]uint8, local302)
24607 _, err := io.ReadFull(r, (local301)[:])
24623 // See (de)serialize.fmt.
24625 }))(obj)).Name) = string(local301)
24627 p := &(*(*(struct {
24640 // See (de)serialize.fmt.
24643 switch n := read8(r); n {
24649 chk(fmt.Errorf("invalid bool: %d", n))
24652 if err := pcall(func() {
24666 // See (de)serialize.fmt.
24668 }))(obj)).ID).deserialize(r)
24673 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
24675 if err := pcall(func() {
24689 // See (de)serialize.fmt.
24691 }))(obj)).Pos).deserialize(r)
24696 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
24698 for local303 := range (*(*(struct {
24711 // See (de)serialize.fmt.
24715 p := &((*(*(struct {
24728 // See (de)serialize.fmt.
24730 }))(obj)).Rot)[local303]
24731 *p = math.Float32frombits(read32(r))
24735 p := &(*(*(struct {
24748 // See (de)serialize.fmt.
24754 p := &(*(*(struct {
24767 // See (de)serialize.fmt.
24770 { // For AOInitData.Msgs.
24771 *p = make([]AOMsg, read8(r))
24772 for i := range *p {
24773 r := &io.LimitedReader{r, int64(read32(r))}
24774 msg, err := readAOMsg(r)
24778 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24785 func (obj *IDAOMsg) serialize(w io.Writer) {
24786 if err := pcall(func() {
24791 }))(obj)).ID).serialize(w)
24796 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
24800 w := new(bytes.Buffer)
24812 if len((buf.Bytes())) > math.MaxUint16 {
24816 x := uint16(len((buf.Bytes())))
24817 write16(w, uint16(x))
24820 _, err := w.Write((buf.Bytes())[:])
24827 func (obj *IDAOMsg) deserialize(r io.Reader) {
24828 if err := pcall(func() {
24833 }))(obj)).ID).deserialize(r)
24838 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
24846 r := &io.LimitedReader{r, int64(n)}
24848 p := &(*(*(struct {
24855 *p, err = readAOMsg(r)
24860 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24865 func (obj *ItemDef) serialize(w io.Writer) {
24868 w := new(bytes.Buffer)
24870 local304 := uint8(6)
24873 write8(w, uint8(x))
24876 if err := pcall(func() {
24882 InvImg, WieldImg Texture
24883 WieldScale [3]float32
24888 CanPointLiquids bool
24894 PlacePredict string
24896 PlaceSnd, PlaceFailSnd SoundDef
24900 // Set index in Palette with "palette_index" item meta field,
24901 // this overrides Color.
24905 // Texture overlays.
24906 InvOverlay, WieldOverlay Texture
24911 }))(obj)).Type).serialize(w)
24916 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
24918 if len(([]byte((*(*(struct {
24923 InvImg, WieldImg Texture
24924 WieldScale [3]float32
24929 CanPointLiquids bool
24935 PlacePredict string
24937 PlaceSnd, PlaceFailSnd SoundDef
24941 // Set index in Palette with "palette_index" item meta field,
24942 // this overrides Color.
24946 // Texture overlays.
24947 InvOverlay, WieldOverlay Texture
24952 }))(obj)).Name))) > math.MaxUint16 {
24956 x := uint16(len(([]byte((*(*(struct {
24961 InvImg, WieldImg Texture
24962 WieldScale [3]float32
24967 CanPointLiquids bool
24973 PlacePredict string
24975 PlaceSnd, PlaceFailSnd SoundDef
24979 // Set index in Palette with "palette_index" item meta field,
24980 // this overrides Color.
24984 // Texture overlays.
24985 InvOverlay, WieldOverlay Texture
24991 write16(w, uint16(x))
24994 _, err := w.Write(([]byte((*(*(struct {
24999 InvImg, WieldImg Texture
25000 WieldScale [3]float32
25005 CanPointLiquids bool
25011 PlacePredict string
25013 PlaceSnd, PlaceFailSnd SoundDef
25017 // Set index in Palette with "palette_index" item meta field,
25018 // this overrides Color.
25022 // Texture overlays.
25023 InvOverlay, WieldOverlay Texture
25028 }))(obj)).Name))[:])
25031 if len(([]byte((*(*(struct {
25036 InvImg, WieldImg Texture
25037 WieldScale [3]float32
25042 CanPointLiquids bool
25048 PlacePredict string
25050 PlaceSnd, PlaceFailSnd SoundDef
25054 // Set index in Palette with "palette_index" item meta field,
25055 // this overrides Color.
25059 // Texture overlays.
25060 InvOverlay, WieldOverlay Texture
25065 }))(obj)).Desc))) > math.MaxUint16 {
25069 x := uint16(len(([]byte((*(*(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
25104 write16(w, uint16(x))
25107 _, err := w.Write(([]byte((*(*(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)).Desc))[:])
25144 if err := pcall(func() {
25150 InvImg, WieldImg Texture
25151 WieldScale [3]float32
25156 CanPointLiquids bool
25162 PlacePredict string
25164 PlaceSnd, PlaceFailSnd SoundDef
25168 // Set index in Palette with "palette_index" item meta field,
25169 // this overrides Color.
25173 // Texture overlays.
25174 InvOverlay, WieldOverlay Texture
25179 }))(obj)).InvImg).serialize(w)
25184 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25186 if err := pcall(func() {
25192 InvImg, WieldImg Texture
25193 WieldScale [3]float32
25198 CanPointLiquids bool
25204 PlacePredict string
25206 PlaceSnd, PlaceFailSnd SoundDef
25210 // Set index in Palette with "palette_index" item meta field,
25211 // this overrides Color.
25215 // Texture overlays.
25216 InvOverlay, WieldOverlay Texture
25221 }))(obj)).WieldImg).serialize(w)
25226 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25228 for local305 := range (*(*(struct {
25233 InvImg, WieldImg Texture
25234 WieldScale [3]float32
25239 CanPointLiquids bool
25245 PlacePredict string
25247 PlaceSnd, PlaceFailSnd SoundDef
25251 // Set index in Palette with "palette_index" item meta field,
25252 // this overrides Color.
25256 // Texture overlays.
25257 InvOverlay, WieldOverlay Texture
25262 }))(obj)).WieldScale {
25264 x := ((*(*(struct {
25269 InvImg, WieldImg Texture
25270 WieldScale [3]float32
25275 CanPointLiquids bool
25281 PlacePredict string
25283 PlaceSnd, PlaceFailSnd SoundDef
25287 // Set index in Palette with "palette_index" item meta field,
25288 // this overrides Color.
25292 // Texture overlays.
25293 InvOverlay, WieldOverlay Texture
25298 }))(obj)).WieldScale)[local305]
25299 write32(w, math.Float32bits(x))
25308 InvImg, WieldImg Texture
25309 WieldScale [3]float32
25314 CanPointLiquids bool
25320 PlacePredict string
25322 PlaceSnd, PlaceFailSnd SoundDef
25326 // Set index in Palette with "palette_index" item meta field,
25327 // this overrides Color.
25331 // Texture overlays.
25332 InvOverlay, WieldOverlay Texture
25338 write16(w, uint16(x))
25346 InvImg, WieldImg Texture
25347 WieldScale [3]float32
25352 CanPointLiquids bool
25358 PlacePredict string
25360 PlaceSnd, PlaceFailSnd SoundDef
25364 // Set index in Palette with "palette_index" item meta field,
25365 // this overrides Color.
25369 // Texture overlays.
25370 InvOverlay, WieldOverlay Texture
25388 InvImg, WieldImg Texture
25389 WieldScale [3]float32
25394 CanPointLiquids bool
25400 PlacePredict string
25402 PlaceSnd, PlaceFailSnd SoundDef
25406 // Set index in Palette with "palette_index" item meta field,
25407 // this overrides Color.
25411 // Texture overlays.
25412 InvOverlay, WieldOverlay Texture
25417 }))(obj)).CanPointLiquids
25424 if err := pcall(func() {
25430 InvImg, WieldImg Texture
25431 WieldScale [3]float32
25436 CanPointLiquids bool
25442 PlacePredict string
25444 PlaceSnd, PlaceFailSnd SoundDef
25448 // Set index in Palette with "palette_index" item meta field,
25449 // this overrides Color.
25453 // Texture overlays.
25454 InvOverlay, WieldOverlay Texture
25459 }))(obj)).ToolCaps).serialize(w)
25464 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
25466 if len(((*(*(struct {
25471 InvImg, WieldImg Texture
25472 WieldScale [3]float32
25477 CanPointLiquids bool
25483 PlacePredict string
25485 PlaceSnd, PlaceFailSnd SoundDef
25489 // Set index in Palette with "palette_index" item meta field,
25490 // this overrides Color.
25494 // Texture overlays.
25495 InvOverlay, WieldOverlay Texture
25500 }))(obj)).Groups)) > math.MaxUint16 {
25504 x := uint16(len(((*(*(struct {
25509 InvImg, WieldImg Texture
25510 WieldScale [3]float32
25515 CanPointLiquids bool
25521 PlacePredict string
25523 PlaceSnd, PlaceFailSnd SoundDef
25527 // Set index in Palette with "palette_index" item meta field,
25528 // this overrides Color.
25532 // Texture overlays.
25533 InvOverlay, WieldOverlay Texture
25538 }))(obj)).Groups)))
25539 write16(w, uint16(x))
25541 for local306 := range (*(*(struct {
25546 InvImg, WieldImg Texture
25547 WieldScale [3]float32
25552 CanPointLiquids bool
25558 PlacePredict string
25560 PlaceSnd, PlaceFailSnd SoundDef
25564 // Set index in Palette with "palette_index" item meta field,
25565 // this overrides Color.
25569 // Texture overlays.
25570 InvOverlay, WieldOverlay Texture
25576 if err := pcall(func() {
25582 InvImg, WieldImg Texture
25583 WieldScale [3]float32
25588 CanPointLiquids bool
25594 PlacePredict string
25596 PlaceSnd, PlaceFailSnd SoundDef
25600 // Set index in Palette with "palette_index" item meta field,
25601 // this overrides Color.
25605 // Texture overlays.
25606 InvOverlay, WieldOverlay Texture
25611 }))(obj)).Groups)[local306]).serialize(w)
25616 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
25619 if len(([]byte((*(*(struct {
25624 InvImg, WieldImg Texture
25625 WieldScale [3]float32
25630 CanPointLiquids bool
25636 PlacePredict string
25638 PlaceSnd, PlaceFailSnd SoundDef
25642 // Set index in Palette with "palette_index" item meta field,
25643 // this overrides Color.
25647 // Texture overlays.
25648 InvOverlay, WieldOverlay Texture
25653 }))(obj)).PlacePredict))) > math.MaxUint16 {
25657 x := uint16(len(([]byte((*(*(struct {
25662 InvImg, WieldImg Texture
25663 WieldScale [3]float32
25668 CanPointLiquids bool
25674 PlacePredict string
25676 PlaceSnd, PlaceFailSnd SoundDef
25680 // Set index in Palette with "palette_index" item meta field,
25681 // this overrides Color.
25685 // Texture overlays.
25686 InvOverlay, WieldOverlay Texture
25691 }))(obj)).PlacePredict))))
25692 write16(w, uint16(x))
25695 _, err := w.Write(([]byte((*(*(struct {
25700 InvImg, WieldImg Texture
25701 WieldScale [3]float32
25706 CanPointLiquids bool
25712 PlacePredict string
25714 PlaceSnd, PlaceFailSnd SoundDef
25718 // Set index in Palette with "palette_index" item meta field,
25719 // this overrides Color.
25723 // Texture overlays.
25724 InvOverlay, WieldOverlay Texture
25729 }))(obj)).PlacePredict))[:])
25732 if err := pcall(func() {
25738 InvImg, WieldImg Texture
25739 WieldScale [3]float32
25744 CanPointLiquids bool
25750 PlacePredict string
25752 PlaceSnd, PlaceFailSnd SoundDef
25756 // Set index in Palette with "palette_index" item meta field,
25757 // this overrides Color.
25761 // Texture overlays.
25762 InvOverlay, WieldOverlay Texture
25767 }))(obj)).PlaceSnd).serialize(w)
25772 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25774 if err := pcall(func() {
25780 InvImg, WieldImg Texture
25781 WieldScale [3]float32
25786 CanPointLiquids bool
25792 PlacePredict string
25794 PlaceSnd, PlaceFailSnd SoundDef
25798 // Set index in Palette with "palette_index" item meta field,
25799 // this overrides Color.
25803 // Texture overlays.
25804 InvOverlay, WieldOverlay Texture
25809 }))(obj)).PlaceFailSnd).serialize(w)
25814 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25822 InvImg, WieldImg Texture
25823 WieldScale [3]float32
25828 CanPointLiquids bool
25834 PlacePredict string
25836 PlaceSnd, PlaceFailSnd SoundDef
25840 // Set index in Palette with "palette_index" item meta field,
25841 // this overrides Color.
25845 // Texture overlays.
25846 InvOverlay, WieldOverlay Texture
25851 }))(obj)).PointRange
25852 write32(w, math.Float32bits(x))
25854 if err := pcall(func() {
25860 InvImg, WieldImg Texture
25861 WieldScale [3]float32
25866 CanPointLiquids bool
25872 PlacePredict string
25874 PlaceSnd, PlaceFailSnd SoundDef
25878 // Set index in Palette with "palette_index" item meta field,
25879 // this overrides Color.
25883 // Texture overlays.
25884 InvOverlay, WieldOverlay Texture
25889 }))(obj)).Palette).serialize(w)
25894 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25902 InvImg, WieldImg Texture
25903 WieldScale [3]float32
25908 CanPointLiquids bool
25914 PlacePredict string
25916 PlaceSnd, PlaceFailSnd SoundDef
25920 // Set index in Palette with "palette_index" item meta field,
25921 // this overrides Color.
25925 // Texture overlays.
25926 InvOverlay, WieldOverlay Texture
25932 w.Write([]byte{x.A, x.R, x.G, x.B})
25934 if err := pcall(func() {
25940 InvImg, WieldImg Texture
25941 WieldScale [3]float32
25946 CanPointLiquids bool
25952 PlacePredict string
25954 PlaceSnd, PlaceFailSnd SoundDef
25958 // Set index in Palette with "palette_index" item meta field,
25959 // this overrides Color.
25963 // Texture overlays.
25964 InvOverlay, WieldOverlay Texture
25969 }))(obj)).InvOverlay).serialize(w)
25974 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25976 if err := pcall(func() {
25982 InvImg, WieldImg Texture
25983 WieldScale [3]float32
25988 CanPointLiquids bool
25994 PlacePredict string
25996 PlaceSnd, PlaceFailSnd SoundDef
26000 // Set index in Palette with "palette_index" item meta field,
26001 // this overrides Color.
26005 // Texture overlays.
26006 InvOverlay, WieldOverlay Texture
26011 }))(obj)).WieldOverlay).serialize(w)
26016 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
26018 if len(([]byte((*(*(struct {
26023 InvImg, WieldImg Texture
26024 WieldScale [3]float32
26029 CanPointLiquids bool
26035 PlacePredict string
26037 PlaceSnd, PlaceFailSnd SoundDef
26041 // Set index in Palette with "palette_index" item meta field,
26042 // this overrides Color.
26046 // Texture overlays.
26047 InvOverlay, WieldOverlay Texture
26052 }))(obj)).ShortDesc))) > math.MaxUint16 {
26056 x := uint16(len(([]byte((*(*(struct {
26061 InvImg, WieldImg Texture
26062 WieldScale [3]float32
26067 CanPointLiquids bool
26073 PlacePredict string
26075 PlaceSnd, PlaceFailSnd SoundDef
26079 // Set index in Palette with "palette_index" item meta field,
26080 // this overrides Color.
26084 // Texture overlays.
26085 InvOverlay, WieldOverlay Texture
26090 }))(obj)).ShortDesc))))
26091 write16(w, uint16(x))
26094 _, err := w.Write(([]byte((*(*(struct {
26099 InvImg, WieldImg Texture
26100 WieldScale [3]float32
26105 CanPointLiquids bool
26111 PlacePredict string
26113 PlaceSnd, PlaceFailSnd SoundDef
26117 // Set index in Palette with "palette_index" item meta field,
26118 // this overrides Color.
26122 // Texture overlays.
26123 InvOverlay, WieldOverlay Texture
26128 }))(obj)).ShortDesc))[:])
26137 InvImg, WieldImg Texture
26138 WieldScale [3]float32
26143 CanPointLiquids bool
26149 PlacePredict string
26151 PlaceSnd, PlaceFailSnd SoundDef
26155 // Set index in Palette with "palette_index" item meta field,
26156 // this overrides Color.
26160 // Texture overlays.
26161 InvOverlay, WieldOverlay Texture
26166 }))(obj)).PlaceParam2
26167 write8(w, uint8(x))
26172 if len((buf.Bytes())) > math.MaxUint16 {
26176 x := uint16(len((buf.Bytes())))
26177 write16(w, uint16(x))
26180 _, err := w.Write((buf.Bytes())[:])
26187 func (obj *ItemDef) deserialize(r io.Reader) {
26194 r := &io.LimitedReader{r, int64(n)}
26201 if local307 != (6) {
26202 chk(fmt.Errorf("const %v: %v", 6, local307))
26205 if err := pcall(func() {
26211 InvImg, WieldImg Texture
26212 WieldScale [3]float32
26217 CanPointLiquids bool
26223 PlacePredict string
26225 PlaceSnd, PlaceFailSnd SoundDef
26229 // Set index in Palette with "palette_index" item meta field,
26230 // this overrides Color.
26234 // Texture overlays.
26235 InvOverlay, WieldOverlay Texture
26240 }))(obj)).Type).deserialize(r)
26245 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
26247 var local308 []uint8
26248 var local309 uint16
26253 (local308) = make([]uint8, local309)
26255 _, err := io.ReadFull(r, (local308)[:])
26263 InvImg, WieldImg Texture
26264 WieldScale [3]float32
26269 CanPointLiquids bool
26275 PlacePredict string
26277 PlaceSnd, PlaceFailSnd SoundDef
26281 // Set index in Palette with "palette_index" item meta field,
26282 // this overrides Color.
26286 // Texture overlays.
26287 InvOverlay, WieldOverlay Texture
26292 }))(obj)).Name) = string(local308)
26293 var local310 []uint8
26294 var local311 uint16
26299 (local310) = make([]uint8, local311)
26301 _, err := io.ReadFull(r, (local310)[:])
26309 InvImg, WieldImg Texture
26310 WieldScale [3]float32
26315 CanPointLiquids bool
26321 PlacePredict string
26323 PlaceSnd, PlaceFailSnd SoundDef
26327 // Set index in Palette with "palette_index" item meta field,
26328 // this overrides Color.
26332 // Texture overlays.
26333 InvOverlay, WieldOverlay Texture
26338 }))(obj)).Desc) = string(local310)
26339 if err := pcall(func() {
26345 InvImg, WieldImg Texture
26346 WieldScale [3]float32
26351 CanPointLiquids bool
26357 PlacePredict string
26359 PlaceSnd, PlaceFailSnd SoundDef
26363 // Set index in Palette with "palette_index" item meta field,
26364 // this overrides Color.
26368 // Texture overlays.
26369 InvOverlay, WieldOverlay Texture
26374 }))(obj)).InvImg).deserialize(r)
26379 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
26381 if err := pcall(func() {
26387 InvImg, WieldImg Texture
26388 WieldScale [3]float32
26393 CanPointLiquids bool
26399 PlacePredict string
26401 PlaceSnd, PlaceFailSnd SoundDef
26405 // Set index in Palette with "palette_index" item meta field,
26406 // this overrides Color.
26410 // Texture overlays.
26411 InvOverlay, WieldOverlay Texture
26416 }))(obj)).WieldImg).deserialize(r)
26421 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
26423 for local312 := range (*(*(struct {
26428 InvImg, WieldImg Texture
26429 WieldScale [3]float32
26434 CanPointLiquids bool
26440 PlacePredict string
26442 PlaceSnd, PlaceFailSnd SoundDef
26446 // Set index in Palette with "palette_index" item meta field,
26447 // this overrides Color.
26451 // Texture overlays.
26452 InvOverlay, WieldOverlay Texture
26457 }))(obj)).WieldScale {
26459 p := &((*(*(struct {
26464 InvImg, WieldImg Texture
26465 WieldScale [3]float32
26470 CanPointLiquids bool
26476 PlacePredict string
26478 PlaceSnd, PlaceFailSnd SoundDef
26482 // Set index in Palette with "palette_index" item meta field,
26483 // this overrides Color.
26487 // Texture overlays.
26488 InvOverlay, WieldOverlay Texture
26493 }))(obj)).WieldScale)[local312]
26494 *p = math.Float32frombits(read32(r))
26498 p := &(*(*(struct {
26503 InvImg, WieldImg Texture
26504 WieldScale [3]float32
26509 CanPointLiquids bool
26515 PlacePredict string
26517 PlaceSnd, PlaceFailSnd SoundDef
26521 // Set index in Palette with "palette_index" item meta field,
26522 // this overrides Color.
26526 // Texture overlays.
26527 InvOverlay, WieldOverlay Texture
26536 p := &(*(*(struct {
26541 InvImg, WieldImg Texture
26542 WieldScale [3]float32
26547 CanPointLiquids bool
26553 PlacePredict string
26555 PlaceSnd, PlaceFailSnd SoundDef
26559 // Set index in Palette with "palette_index" item meta field,
26560 // this overrides Color.
26564 // Texture overlays.
26565 InvOverlay, WieldOverlay Texture
26571 switch n := read8(r); n {
26577 chk(fmt.Errorf("invalid bool: %d", n))
26581 p := &(*(*(struct {
26586 InvImg, WieldImg Texture
26587 WieldScale [3]float32
26592 CanPointLiquids bool
26598 PlacePredict string
26600 PlaceSnd, PlaceFailSnd SoundDef
26604 // Set index in Palette with "palette_index" item meta field,
26605 // this overrides Color.
26609 // Texture overlays.
26610 InvOverlay, WieldOverlay Texture
26615 }))(obj)).CanPointLiquids
26616 switch n := read8(r); n {
26622 chk(fmt.Errorf("invalid bool: %d", n))
26625 if err := pcall(func() {
26631 InvImg, WieldImg Texture
26632 WieldScale [3]float32
26637 CanPointLiquids bool
26643 PlacePredict string
26645 PlaceSnd, PlaceFailSnd SoundDef
26649 // Set index in Palette with "palette_index" item meta field,
26650 // this overrides Color.
26654 // Texture overlays.
26655 InvOverlay, WieldOverlay Texture
26660 }))(obj)).ToolCaps).deserialize(r)
26665 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
26667 var local313 uint16
26677 InvImg, WieldImg Texture
26678 WieldScale [3]float32
26683 CanPointLiquids bool
26689 PlacePredict string
26691 PlaceSnd, PlaceFailSnd SoundDef
26695 // Set index in Palette with "palette_index" item meta field,
26696 // this overrides Color.
26700 // Texture overlays.
26701 InvOverlay, WieldOverlay Texture
26706 }))(obj)).Groups) = make([]Group, local313)
26707 for local314 := range (*(*(struct {
26712 InvImg, WieldImg Texture
26713 WieldScale [3]float32
26718 CanPointLiquids bool
26724 PlacePredict string
26726 PlaceSnd, PlaceFailSnd SoundDef
26730 // Set index in Palette with "palette_index" item meta field,
26731 // this overrides Color.
26735 // Texture overlays.
26736 InvOverlay, WieldOverlay Texture
26742 if err := pcall(func() {
26748 InvImg, WieldImg Texture
26749 WieldScale [3]float32
26754 CanPointLiquids bool
26760 PlacePredict string
26762 PlaceSnd, PlaceFailSnd SoundDef
26766 // Set index in Palette with "palette_index" item meta field,
26767 // this overrides Color.
26771 // Texture overlays.
26772 InvOverlay, WieldOverlay Texture
26777 }))(obj)).Groups)[local314]).deserialize(r)
26782 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
26785 var local315 []uint8
26786 var local316 uint16
26791 (local315) = make([]uint8, local316)
26793 _, err := io.ReadFull(r, (local315)[:])
26801 InvImg, WieldImg Texture
26802 WieldScale [3]float32
26807 CanPointLiquids bool
26813 PlacePredict string
26815 PlaceSnd, PlaceFailSnd SoundDef
26819 // Set index in Palette with "palette_index" item meta field,
26820 // this overrides Color.
26824 // Texture overlays.
26825 InvOverlay, WieldOverlay Texture
26830 }))(obj)).PlacePredict) = string(local315)
26831 if err := pcall(func() {
26837 InvImg, WieldImg Texture
26838 WieldScale [3]float32
26843 CanPointLiquids bool
26849 PlacePredict string
26851 PlaceSnd, PlaceFailSnd SoundDef
26855 // Set index in Palette with "palette_index" item meta field,
26856 // this overrides Color.
26860 // Texture overlays.
26861 InvOverlay, WieldOverlay Texture
26866 }))(obj)).PlaceSnd).deserialize(r)
26871 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
26873 if err := pcall(func() {
26879 InvImg, WieldImg Texture
26880 WieldScale [3]float32
26885 CanPointLiquids bool
26891 PlacePredict string
26893 PlaceSnd, PlaceFailSnd SoundDef
26897 // Set index in Palette with "palette_index" item meta field,
26898 // this overrides Color.
26902 // Texture overlays.
26903 InvOverlay, WieldOverlay Texture
26908 }))(obj)).PlaceFailSnd).deserialize(r)
26913 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
26916 p := &(*(*(struct {
26921 InvImg, WieldImg Texture
26922 WieldScale [3]float32
26927 CanPointLiquids bool
26933 PlacePredict string
26935 PlaceSnd, PlaceFailSnd SoundDef
26939 // Set index in Palette with "palette_index" item meta field,
26940 // this overrides Color.
26944 // Texture overlays.
26945 InvOverlay, WieldOverlay Texture
26950 }))(obj)).PointRange
26951 *p = math.Float32frombits(read32(r))
26953 if err := pcall(func() {
26959 InvImg, WieldImg Texture
26960 WieldScale [3]float32
26965 CanPointLiquids bool
26971 PlacePredict string
26973 PlaceSnd, PlaceFailSnd SoundDef
26977 // Set index in Palette with "palette_index" item meta field,
26978 // this overrides Color.
26982 // Texture overlays.
26983 InvOverlay, WieldOverlay Texture
26988 }))(obj)).Palette).deserialize(r)
26993 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
26996 p := &(*(*(struct {
27001 InvImg, WieldImg Texture
27002 WieldScale [3]float32
27007 CanPointLiquids bool
27013 PlacePredict string
27015 PlaceSnd, PlaceFailSnd SoundDef
27019 // Set index in Palette with "palette_index" item meta field,
27020 // this overrides Color.
27024 // Texture overlays.
27025 InvOverlay, WieldOverlay Texture
27031 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
27033 if err := pcall(func() {
27039 InvImg, WieldImg Texture
27040 WieldScale [3]float32
27045 CanPointLiquids bool
27051 PlacePredict string
27053 PlaceSnd, PlaceFailSnd SoundDef
27057 // Set index in Palette with "palette_index" item meta field,
27058 // this overrides Color.
27062 // Texture overlays.
27063 InvOverlay, WieldOverlay Texture
27068 }))(obj)).InvOverlay).deserialize(r)
27073 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27075 if err := pcall(func() {
27081 InvImg, WieldImg Texture
27082 WieldScale [3]float32
27087 CanPointLiquids bool
27093 PlacePredict string
27095 PlaceSnd, PlaceFailSnd SoundDef
27099 // Set index in Palette with "palette_index" item meta field,
27100 // this overrides Color.
27104 // Texture overlays.
27105 InvOverlay, WieldOverlay Texture
27110 }))(obj)).WieldOverlay).deserialize(r)
27115 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27117 var local317 []uint8
27118 var local318 uint16
27123 (local317) = make([]uint8, local318)
27125 _, err := io.ReadFull(r, (local317)[:])
27133 InvImg, WieldImg Texture
27134 WieldScale [3]float32
27139 CanPointLiquids bool
27145 PlacePredict string
27147 PlaceSnd, PlaceFailSnd SoundDef
27151 // Set index in Palette with "palette_index" item meta field,
27152 // this overrides Color.
27156 // Texture overlays.
27157 InvOverlay, WieldOverlay Texture
27162 }))(obj)).ShortDesc) = string(local317)
27164 p := &(*(*(struct {
27169 InvImg, WieldImg Texture
27170 WieldScale [3]float32
27175 CanPointLiquids bool
27181 PlacePredict string
27183 PlaceSnd, PlaceFailSnd SoundDef
27187 // Set index in Palette with "palette_index" item meta field,
27188 // this overrides Color.
27192 // Texture overlays.
27193 InvOverlay, WieldOverlay Texture
27198 }))(obj)).PlaceParam2
27202 chk(fmt.Errorf("%d bytes of trailing data", r.N))
27207 func (obj *SoundSrcType) serialize(w io.Writer) {
27209 x := *(*(uint8))(obj)
27210 write8(w, uint8(x))
27214 func (obj *SoundSrcType) deserialize(r io.Reader) {
27216 p := &*(*(uint8))(obj)
27221 func (obj *TileAnim) serialize(w io.Writer) {
27222 if err := pcall(func() {
27226 //mt:if %s.Type == SpritesheetAnim
27227 AspectRatio [2]uint8
27229 //mt:if %s.Type == VerticalFrameAnim
27232 //mt:if %s.Type != NoAnim
27233 Duration float32 // in seconds
27235 }))(obj)).Type).serialize(w)
27240 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
27245 //mt:if %s.Type == SpritesheetAnim
27246 AspectRatio [2]uint8
27248 //mt:if %s.Type == VerticalFrameAnim
27251 //mt:if %s.Type != NoAnim
27252 Duration float32 // in seconds
27254 }))(obj)).Type < maxAnim) {
27255 chk(errors.New("assertion failed: %s.Type < maxAnim"))
27260 //mt:if %s.Type == SpritesheetAnim
27261 AspectRatio [2]uint8
27263 //mt:if %s.Type == VerticalFrameAnim
27266 //mt:if %s.Type != NoAnim
27267 Duration float32 // in seconds
27269 }))(obj)).Type == SpritesheetAnim {
27271 _, err := w.Write(((*(*(struct {
27274 //mt:if %s.Type == SpritesheetAnim
27275 AspectRatio [2]uint8
27277 //mt:if %s.Type == VerticalFrameAnim
27280 //mt:if %s.Type != NoAnim
27281 Duration float32 // in seconds
27283 }))(obj)).AspectRatio)[:])
27290 //mt:if %s.Type == SpritesheetAnim
27291 AspectRatio [2]uint8
27293 //mt:if %s.Type == VerticalFrameAnim
27296 //mt:if %s.Type != NoAnim
27297 Duration float32 // in seconds
27299 }))(obj)).Type == VerticalFrameAnim {
27300 for local319 := range (*(*(struct {
27303 //mt:if %s.Type == SpritesheetAnim
27304 AspectRatio [2]uint8
27306 //mt:if %s.Type == VerticalFrameAnim
27309 //mt:if %s.Type != NoAnim
27310 Duration float32 // in seconds
27312 }))(obj)).NFrames {
27314 x := ((*(*(struct {
27317 //mt:if %s.Type == SpritesheetAnim
27318 AspectRatio [2]uint8
27320 //mt:if %s.Type == VerticalFrameAnim
27323 //mt:if %s.Type != NoAnim
27324 Duration float32 // in seconds
27326 }))(obj)).NFrames)[local319]
27327 write16(w, uint16(x))
27334 //mt:if %s.Type == SpritesheetAnim
27335 AspectRatio [2]uint8
27337 //mt:if %s.Type == VerticalFrameAnim
27340 //mt:if %s.Type != NoAnim
27341 Duration float32 // in seconds
27343 }))(obj)).Type != NoAnim {
27348 //mt:if %s.Type == SpritesheetAnim
27349 AspectRatio [2]uint8
27351 //mt:if %s.Type == VerticalFrameAnim
27354 //mt:if %s.Type != NoAnim
27355 Duration float32 // in seconds
27358 write32(w, math.Float32bits(x))
27363 func (obj *TileAnim) deserialize(r io.Reader) {
27364 if err := pcall(func() {
27368 //mt:if %s.Type == SpritesheetAnim
27369 AspectRatio [2]uint8
27371 //mt:if %s.Type == VerticalFrameAnim
27374 //mt:if %s.Type != NoAnim
27375 Duration float32 // in seconds
27377 }))(obj)).Type).deserialize(r)
27382 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
27387 //mt:if %s.Type == SpritesheetAnim
27388 AspectRatio [2]uint8
27390 //mt:if %s.Type == VerticalFrameAnim
27393 //mt:if %s.Type != NoAnim
27394 Duration float32 // in seconds
27396 }))(obj)).Type < maxAnim) {
27397 chk(errors.New("assertion failed: %s.Type < maxAnim"))
27402 //mt:if %s.Type == SpritesheetAnim
27403 AspectRatio [2]uint8
27405 //mt:if %s.Type == VerticalFrameAnim
27408 //mt:if %s.Type != NoAnim
27409 Duration float32 // in seconds
27411 }))(obj)).Type == SpritesheetAnim {
27413 _, err := io.ReadFull(r, ((*(*(struct {
27416 //mt:if %s.Type == SpritesheetAnim
27417 AspectRatio [2]uint8
27419 //mt:if %s.Type == VerticalFrameAnim
27422 //mt:if %s.Type != NoAnim
27423 Duration float32 // in seconds
27425 }))(obj)).AspectRatio)[:])
27432 //mt:if %s.Type == SpritesheetAnim
27433 AspectRatio [2]uint8
27435 //mt:if %s.Type == VerticalFrameAnim
27438 //mt:if %s.Type != NoAnim
27439 Duration float32 // in seconds
27441 }))(obj)).Type == VerticalFrameAnim {
27442 for local320 := range (*(*(struct {
27445 //mt:if %s.Type == SpritesheetAnim
27446 AspectRatio [2]uint8
27448 //mt:if %s.Type == VerticalFrameAnim
27451 //mt:if %s.Type != NoAnim
27452 Duration float32 // in seconds
27454 }))(obj)).NFrames {
27456 p := &((*(*(struct {
27459 //mt:if %s.Type == SpritesheetAnim
27460 AspectRatio [2]uint8
27462 //mt:if %s.Type == VerticalFrameAnim
27465 //mt:if %s.Type != NoAnim
27466 Duration float32 // in seconds
27468 }))(obj)).NFrames)[local320]
27476 //mt:if %s.Type == SpritesheetAnim
27477 AspectRatio [2]uint8
27479 //mt:if %s.Type == VerticalFrameAnim
27482 //mt:if %s.Type != NoAnim
27483 Duration float32 // in seconds
27485 }))(obj)).Type != NoAnim {
27487 p := &(*(*(struct {
27490 //mt:if %s.Type == SpritesheetAnim
27491 AspectRatio [2]uint8
27493 //mt:if %s.Type == VerticalFrameAnim
27496 //mt:if %s.Type != NoAnim
27497 Duration float32 // in seconds
27500 *p = math.Float32frombits(read32(r))
27505 func (obj *Content) serialize(w io.Writer) {
27507 x := *(*(uint16))(obj)
27508 write16(w, uint16(x))
27512 func (obj *Content) deserialize(r io.Reader) {
27514 p := &*(*(uint16))(obj)
27519 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
27521 x := *(*(uint32))(obj)
27522 write32(w, uint32(x))
27526 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
27528 p := &*(*(uint32))(obj)
27533 func (obj *HUDID) serialize(w io.Writer) {
27535 x := *(*(uint32))(obj)
27536 write32(w, uint32(x))
27540 func (obj *HUDID) deserialize(r io.Reader) {
27542 p := &*(*(uint32))(obj)
27547 func (obj *HUDType) serialize(w io.Writer) {
27549 x := *(*(uint8))(obj)
27550 write8(w, uint8(x))
27554 func (obj *HUDType) deserialize(r io.Reader) {
27556 p := &*(*(uint8))(obj)
27561 func (obj *HUDField) serialize(w io.Writer) {
27563 x := *(*(uint8))(obj)
27564 write8(w, uint8(x))
27568 func (obj *HUDField) deserialize(r io.Reader) {
27570 p := &*(*(uint8))(obj)
27575 func (obj *HUDFlags) serialize(w io.Writer) {
27577 x := *(*(uint32))(obj)
27578 write32(w, uint32(x))
27582 func (obj *HUDFlags) deserialize(r io.Reader) {
27584 p := &*(*(uint32))(obj)
27589 func (obj *HotbarParam) serialize(w io.Writer) {
27591 x := *(*(uint16))(obj)
27592 write16(w, uint16(x))
27596 func (obj *HotbarParam) deserialize(r io.Reader) {
27598 p := &*(*(uint16))(obj)
27603 func (obj *Texture) serialize(w io.Writer) {
27604 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
27608 x := uint16(len(([]byte(*(*(string))(obj)))))
27609 write16(w, uint16(x))
27612 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
27617 func (obj *Texture) deserialize(r io.Reader) {
27618 var local321 []uint8
27619 var local322 uint16
27624 (local321) = make([]uint8, local322)
27626 _, err := io.ReadFull(r, (local321)[:])
27629 (*(*(string))(obj)) = string(local321)
27632 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
27634 x := *(*(uint8))(obj)
27635 write8(w, uint8(x))
27639 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
27641 p := &*(*(uint8))(obj)
27646 func (obj *ModChanSig) serialize(w io.Writer) {
27648 x := *(*(uint8))(obj)
27649 write8(w, uint8(x))
27653 func (obj *ModChanSig) deserialize(r io.Reader) {
27655 p := &*(*(uint8))(obj)
27660 func (obj *AOProps) serialize(w io.Writer) {
27662 local323 := uint8(4)
27665 write8(w, uint8(x))
27670 MaxHP uint16 // Player only.
27671 CollideWithNodes bool
27672 Weight float32 // deprecated
27676 VisualSize [3]float32
27678 SpritesheetSize [2]int16 // in sprites.
27679 SpritePos [2]int16 // in sprite sheet.
27681 MakeFootstepSnds bool
27682 RotateSpeed float32 // in radians per second.
27684 Colors []color.NRGBA
27685 CollideWithAOs bool
27688 FaceRotateDirOff float32 // in degrees.
27691 NametagColor color.NRGBA
27692 FaceRotateSpeed float32 // in degrees per second.
27696 MaxBreath uint16 // Player only.
27697 EyeHeight float32 // Player only.
27698 ZoomFOV float32 // in degrees. Player only.
27699 UseTextureAlpha bool
27700 DmgTextureMod Texture // suffix
27703 NametagBG color.NRGBA
27705 write16(w, uint16(x))
27709 MaxHP uint16 // Player only.
27710 CollideWithNodes bool
27711 Weight float32 // deprecated
27715 VisualSize [3]float32
27717 SpritesheetSize [2]int16 // in sprites.
27718 SpritePos [2]int16 // in sprite sheet.
27720 MakeFootstepSnds bool
27721 RotateSpeed float32 // in radians per second.
27723 Colors []color.NRGBA
27724 CollideWithAOs bool
27727 FaceRotateDirOff float32 // in degrees.
27730 NametagColor color.NRGBA
27731 FaceRotateSpeed float32 // in degrees per second.
27735 MaxBreath uint16 // Player only.
27736 EyeHeight float32 // Player only.
27737 ZoomFOV float32 // in degrees. Player only.
27738 UseTextureAlpha bool
27739 DmgTextureMod Texture // suffix
27742 NametagBG color.NRGBA
27743 }))(obj)).CollideWithNodes
27752 MaxHP uint16 // Player only.
27753 CollideWithNodes bool
27754 Weight float32 // deprecated
27758 VisualSize [3]float32
27760 SpritesheetSize [2]int16 // in sprites.
27761 SpritePos [2]int16 // in sprite sheet.
27763 MakeFootstepSnds bool
27764 RotateSpeed float32 // in radians per second.
27766 Colors []color.NRGBA
27767 CollideWithAOs bool
27770 FaceRotateDirOff float32 // in degrees.
27773 NametagColor color.NRGBA
27774 FaceRotateSpeed float32 // in degrees per second.
27778 MaxBreath uint16 // Player only.
27779 EyeHeight float32 // Player only.
27780 ZoomFOV float32 // in degrees. Player only.
27781 UseTextureAlpha bool
27782 DmgTextureMod Texture // suffix
27785 NametagBG color.NRGBA
27787 write32(w, math.Float32bits(x))
27789 if err := pcall(func() {
27791 MaxHP uint16 // Player only.
27792 CollideWithNodes bool
27793 Weight float32 // deprecated
27797 VisualSize [3]float32
27799 SpritesheetSize [2]int16 // in sprites.
27800 SpritePos [2]int16 // in sprite sheet.
27802 MakeFootstepSnds bool
27803 RotateSpeed float32 // in radians per second.
27805 Colors []color.NRGBA
27806 CollideWithAOs bool
27809 FaceRotateDirOff float32 // in degrees.
27812 NametagColor color.NRGBA
27813 FaceRotateSpeed float32 // in degrees per second.
27817 MaxBreath uint16 // Player only.
27818 EyeHeight float32 // Player only.
27819 ZoomFOV float32 // in degrees. Player only.
27820 UseTextureAlpha bool
27821 DmgTextureMod Texture // suffix
27824 NametagBG color.NRGBA
27825 }))(obj)).ColBox).serialize(w)
27830 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27832 if err := pcall(func() {
27834 MaxHP uint16 // Player only.
27835 CollideWithNodes bool
27836 Weight float32 // deprecated
27840 VisualSize [3]float32
27842 SpritesheetSize [2]int16 // in sprites.
27843 SpritePos [2]int16 // in sprite sheet.
27845 MakeFootstepSnds bool
27846 RotateSpeed float32 // in radians per second.
27848 Colors []color.NRGBA
27849 CollideWithAOs bool
27852 FaceRotateDirOff float32 // in degrees.
27855 NametagColor color.NRGBA
27856 FaceRotateSpeed float32 // in degrees per second.
27860 MaxBreath uint16 // Player only.
27861 EyeHeight float32 // Player only.
27862 ZoomFOV float32 // in degrees. Player only.
27863 UseTextureAlpha bool
27864 DmgTextureMod Texture // suffix
27867 NametagBG color.NRGBA
27868 }))(obj)).SelBox).serialize(w)
27873 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27877 MaxHP uint16 // Player only.
27878 CollideWithNodes bool
27879 Weight float32 // deprecated
27883 VisualSize [3]float32
27885 SpritesheetSize [2]int16 // in sprites.
27886 SpritePos [2]int16 // in sprite sheet.
27888 MakeFootstepSnds bool
27889 RotateSpeed float32 // in radians per second.
27891 Colors []color.NRGBA
27892 CollideWithAOs bool
27895 FaceRotateDirOff float32 // in degrees.
27898 NametagColor color.NRGBA
27899 FaceRotateSpeed float32 // in degrees per second.
27903 MaxBreath uint16 // Player only.
27904 EyeHeight float32 // Player only.
27905 ZoomFOV float32 // in degrees. Player only.
27906 UseTextureAlpha bool
27907 DmgTextureMod Texture // suffix
27910 NametagBG color.NRGBA
27911 }))(obj)).Pointable
27918 if len(([]byte((*(*(struct {
27919 MaxHP uint16 // Player only.
27920 CollideWithNodes bool
27921 Weight float32 // deprecated
27925 VisualSize [3]float32
27927 SpritesheetSize [2]int16 // in sprites.
27928 SpritePos [2]int16 // in sprite sheet.
27930 MakeFootstepSnds bool
27931 RotateSpeed float32 // in radians per second.
27933 Colors []color.NRGBA
27934 CollideWithAOs bool
27937 FaceRotateDirOff float32 // in degrees.
27940 NametagColor color.NRGBA
27941 FaceRotateSpeed float32 // in degrees per second.
27945 MaxBreath uint16 // Player only.
27946 EyeHeight float32 // Player only.
27947 ZoomFOV float32 // in degrees. Player only.
27948 UseTextureAlpha bool
27949 DmgTextureMod Texture // suffix
27952 NametagBG color.NRGBA
27953 }))(obj)).Visual))) > math.MaxUint16 {
27957 x := uint16(len(([]byte((*(*(struct {
27958 MaxHP uint16 // Player only.
27959 CollideWithNodes bool
27960 Weight float32 // deprecated
27964 VisualSize [3]float32
27966 SpritesheetSize [2]int16 // in sprites.
27967 SpritePos [2]int16 // in sprite sheet.
27969 MakeFootstepSnds bool
27970 RotateSpeed float32 // in radians per second.
27972 Colors []color.NRGBA
27973 CollideWithAOs bool
27976 FaceRotateDirOff float32 // in degrees.
27979 NametagColor color.NRGBA
27980 FaceRotateSpeed float32 // in degrees per second.
27984 MaxBreath uint16 // Player only.
27985 EyeHeight float32 // Player only.
27986 ZoomFOV float32 // in degrees. Player only.
27987 UseTextureAlpha bool
27988 DmgTextureMod Texture // suffix
27991 NametagBG color.NRGBA
27992 }))(obj)).Visual))))
27993 write16(w, uint16(x))
27996 _, err := w.Write(([]byte((*(*(struct {
27997 MaxHP uint16 // Player only.
27998 CollideWithNodes bool
27999 Weight float32 // deprecated
28003 VisualSize [3]float32
28005 SpritesheetSize [2]int16 // in sprites.
28006 SpritePos [2]int16 // in sprite sheet.
28008 MakeFootstepSnds bool
28009 RotateSpeed float32 // in radians per second.
28011 Colors []color.NRGBA
28012 CollideWithAOs bool
28015 FaceRotateDirOff float32 // in degrees.
28018 NametagColor color.NRGBA
28019 FaceRotateSpeed float32 // in degrees per second.
28023 MaxBreath uint16 // Player only.
28024 EyeHeight float32 // Player only.
28025 ZoomFOV float32 // in degrees. Player only.
28026 UseTextureAlpha bool
28027 DmgTextureMod Texture // suffix
28030 NametagBG color.NRGBA
28031 }))(obj)).Visual))[:])
28034 for local324 := range (*(*(struct {
28035 MaxHP uint16 // Player only.
28036 CollideWithNodes bool
28037 Weight float32 // deprecated
28041 VisualSize [3]float32
28043 SpritesheetSize [2]int16 // in sprites.
28044 SpritePos [2]int16 // in sprite sheet.
28046 MakeFootstepSnds bool
28047 RotateSpeed float32 // in radians per second.
28049 Colors []color.NRGBA
28050 CollideWithAOs bool
28053 FaceRotateDirOff float32 // in degrees.
28056 NametagColor color.NRGBA
28057 FaceRotateSpeed float32 // in degrees per second.
28061 MaxBreath uint16 // Player only.
28062 EyeHeight float32 // Player only.
28063 ZoomFOV float32 // in degrees. Player only.
28064 UseTextureAlpha bool
28065 DmgTextureMod Texture // suffix
28068 NametagBG color.NRGBA
28069 }))(obj)).VisualSize {
28071 x := ((*(*(struct {
28072 MaxHP uint16 // Player only.
28073 CollideWithNodes bool
28074 Weight float32 // deprecated
28078 VisualSize [3]float32
28080 SpritesheetSize [2]int16 // in sprites.
28081 SpritePos [2]int16 // in sprite sheet.
28083 MakeFootstepSnds bool
28084 RotateSpeed float32 // in radians per second.
28086 Colors []color.NRGBA
28087 CollideWithAOs bool
28090 FaceRotateDirOff float32 // in degrees.
28093 NametagColor color.NRGBA
28094 FaceRotateSpeed float32 // in degrees per second.
28098 MaxBreath uint16 // Player only.
28099 EyeHeight float32 // Player only.
28100 ZoomFOV float32 // in degrees. Player only.
28101 UseTextureAlpha bool
28102 DmgTextureMod Texture // suffix
28105 NametagBG color.NRGBA
28106 }))(obj)).VisualSize)[local324]
28107 write32(w, math.Float32bits(x))
28110 if len(((*(*(struct {
28111 MaxHP uint16 // Player only.
28112 CollideWithNodes bool
28113 Weight float32 // deprecated
28117 VisualSize [3]float32
28119 SpritesheetSize [2]int16 // in sprites.
28120 SpritePos [2]int16 // in sprite sheet.
28122 MakeFootstepSnds bool
28123 RotateSpeed float32 // in radians per second.
28125 Colors []color.NRGBA
28126 CollideWithAOs bool
28129 FaceRotateDirOff float32 // in degrees.
28132 NametagColor color.NRGBA
28133 FaceRotateSpeed float32 // in degrees per second.
28137 MaxBreath uint16 // Player only.
28138 EyeHeight float32 // Player only.
28139 ZoomFOV float32 // in degrees. Player only.
28140 UseTextureAlpha bool
28141 DmgTextureMod Texture // suffix
28144 NametagBG color.NRGBA
28145 }))(obj)).Textures)) > math.MaxUint16 {
28149 x := uint16(len(((*(*(struct {
28150 MaxHP uint16 // Player only.
28151 CollideWithNodes bool
28152 Weight float32 // deprecated
28156 VisualSize [3]float32
28158 SpritesheetSize [2]int16 // in sprites.
28159 SpritePos [2]int16 // in sprite sheet.
28161 MakeFootstepSnds bool
28162 RotateSpeed float32 // in radians per second.
28164 Colors []color.NRGBA
28165 CollideWithAOs bool
28168 FaceRotateDirOff float32 // in degrees.
28171 NametagColor color.NRGBA
28172 FaceRotateSpeed float32 // in degrees per second.
28176 MaxBreath uint16 // Player only.
28177 EyeHeight float32 // Player only.
28178 ZoomFOV float32 // in degrees. Player only.
28179 UseTextureAlpha bool
28180 DmgTextureMod Texture // suffix
28183 NametagBG color.NRGBA
28184 }))(obj)).Textures)))
28185 write16(w, uint16(x))
28187 for local325 := range (*(*(struct {
28188 MaxHP uint16 // Player only.
28189 CollideWithNodes bool
28190 Weight float32 // deprecated
28194 VisualSize [3]float32
28196 SpritesheetSize [2]int16 // in sprites.
28197 SpritePos [2]int16 // in sprite sheet.
28199 MakeFootstepSnds bool
28200 RotateSpeed float32 // in radians per second.
28202 Colors []color.NRGBA
28203 CollideWithAOs bool
28206 FaceRotateDirOff float32 // in degrees.
28209 NametagColor color.NRGBA
28210 FaceRotateSpeed float32 // in degrees per second.
28214 MaxBreath uint16 // Player only.
28215 EyeHeight float32 // Player only.
28216 ZoomFOV float32 // in degrees. Player only.
28217 UseTextureAlpha bool
28218 DmgTextureMod Texture // suffix
28221 NametagBG color.NRGBA
28222 }))(obj)).Textures {
28223 if err := pcall(func() {
28225 MaxHP uint16 // Player only.
28226 CollideWithNodes bool
28227 Weight float32 // deprecated
28231 VisualSize [3]float32
28233 SpritesheetSize [2]int16 // in sprites.
28234 SpritePos [2]int16 // in sprite sheet.
28236 MakeFootstepSnds bool
28237 RotateSpeed float32 // in radians per second.
28239 Colors []color.NRGBA
28240 CollideWithAOs bool
28243 FaceRotateDirOff float32 // in degrees.
28246 NametagColor color.NRGBA
28247 FaceRotateSpeed float32 // in degrees per second.
28251 MaxBreath uint16 // Player only.
28252 EyeHeight float32 // Player only.
28253 ZoomFOV float32 // in degrees. Player only.
28254 UseTextureAlpha bool
28255 DmgTextureMod Texture // suffix
28258 NametagBG color.NRGBA
28259 }))(obj)).Textures)[local325]).serialize(w)
28264 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
28267 for local326 := range (*(*(struct {
28268 MaxHP uint16 // Player only.
28269 CollideWithNodes bool
28270 Weight float32 // deprecated
28274 VisualSize [3]float32
28276 SpritesheetSize [2]int16 // in sprites.
28277 SpritePos [2]int16 // in sprite sheet.
28279 MakeFootstepSnds bool
28280 RotateSpeed float32 // in radians per second.
28282 Colors []color.NRGBA
28283 CollideWithAOs bool
28286 FaceRotateDirOff float32 // in degrees.
28289 NametagColor color.NRGBA
28290 FaceRotateSpeed float32 // in degrees per second.
28294 MaxBreath uint16 // Player only.
28295 EyeHeight float32 // Player only.
28296 ZoomFOV float32 // in degrees. Player only.
28297 UseTextureAlpha bool
28298 DmgTextureMod Texture // suffix
28301 NametagBG color.NRGBA
28302 }))(obj)).SpritesheetSize {
28304 x := ((*(*(struct {
28305 MaxHP uint16 // Player only.
28306 CollideWithNodes bool
28307 Weight float32 // deprecated
28311 VisualSize [3]float32
28313 SpritesheetSize [2]int16 // in sprites.
28314 SpritePos [2]int16 // in sprite sheet.
28316 MakeFootstepSnds bool
28317 RotateSpeed float32 // in radians per second.
28319 Colors []color.NRGBA
28320 CollideWithAOs bool
28323 FaceRotateDirOff float32 // in degrees.
28326 NametagColor color.NRGBA
28327 FaceRotateSpeed float32 // in degrees per second.
28331 MaxBreath uint16 // Player only.
28332 EyeHeight float32 // Player only.
28333 ZoomFOV float32 // in degrees. Player only.
28334 UseTextureAlpha bool
28335 DmgTextureMod Texture // suffix
28338 NametagBG color.NRGBA
28339 }))(obj)).SpritesheetSize)[local326]
28340 write16(w, uint16(x))
28343 for local327 := range (*(*(struct {
28344 MaxHP uint16 // Player only.
28345 CollideWithNodes bool
28346 Weight float32 // deprecated
28350 VisualSize [3]float32
28352 SpritesheetSize [2]int16 // in sprites.
28353 SpritePos [2]int16 // in sprite sheet.
28355 MakeFootstepSnds bool
28356 RotateSpeed float32 // in radians per second.
28358 Colors []color.NRGBA
28359 CollideWithAOs bool
28362 FaceRotateDirOff float32 // in degrees.
28365 NametagColor color.NRGBA
28366 FaceRotateSpeed float32 // in degrees per second.
28370 MaxBreath uint16 // Player only.
28371 EyeHeight float32 // Player only.
28372 ZoomFOV float32 // in degrees. Player only.
28373 UseTextureAlpha bool
28374 DmgTextureMod Texture // suffix
28377 NametagBG color.NRGBA
28378 }))(obj)).SpritePos {
28380 x := ((*(*(struct {
28381 MaxHP uint16 // Player only.
28382 CollideWithNodes bool
28383 Weight float32 // deprecated
28387 VisualSize [3]float32
28389 SpritesheetSize [2]int16 // in sprites.
28390 SpritePos [2]int16 // in sprite sheet.
28392 MakeFootstepSnds bool
28393 RotateSpeed float32 // in radians per second.
28395 Colors []color.NRGBA
28396 CollideWithAOs bool
28399 FaceRotateDirOff float32 // in degrees.
28402 NametagColor color.NRGBA
28403 FaceRotateSpeed float32 // in degrees per second.
28407 MaxBreath uint16 // Player only.
28408 EyeHeight float32 // Player only.
28409 ZoomFOV float32 // in degrees. Player only.
28410 UseTextureAlpha bool
28411 DmgTextureMod Texture // suffix
28414 NametagBG color.NRGBA
28415 }))(obj)).SpritePos)[local327]
28416 write16(w, uint16(x))
28421 MaxHP uint16 // Player only.
28422 CollideWithNodes bool
28423 Weight float32 // deprecated
28427 VisualSize [3]float32
28429 SpritesheetSize [2]int16 // in sprites.
28430 SpritePos [2]int16 // in sprite sheet.
28432 MakeFootstepSnds bool
28433 RotateSpeed float32 // in radians per second.
28435 Colors []color.NRGBA
28436 CollideWithAOs bool
28439 FaceRotateDirOff float32 // in degrees.
28442 NametagColor color.NRGBA
28443 FaceRotateSpeed float32 // in degrees per second.
28447 MaxBreath uint16 // Player only.
28448 EyeHeight float32 // Player only.
28449 ZoomFOV float32 // in degrees. Player only.
28450 UseTextureAlpha bool
28451 DmgTextureMod Texture // suffix
28454 NametagBG color.NRGBA
28464 MaxHP uint16 // Player only.
28465 CollideWithNodes bool
28466 Weight float32 // deprecated
28470 VisualSize [3]float32
28472 SpritesheetSize [2]int16 // in sprites.
28473 SpritePos [2]int16 // in sprite sheet.
28475 MakeFootstepSnds bool
28476 RotateSpeed float32 // in radians per second.
28478 Colors []color.NRGBA
28479 CollideWithAOs bool
28482 FaceRotateDirOff float32 // in degrees.
28485 NametagColor color.NRGBA
28486 FaceRotateSpeed float32 // in degrees per second.
28490 MaxBreath uint16 // Player only.
28491 EyeHeight float32 // Player only.
28492 ZoomFOV float32 // in degrees. Player only.
28493 UseTextureAlpha bool
28494 DmgTextureMod Texture // suffix
28497 NametagBG color.NRGBA
28498 }))(obj)).MakeFootstepSnds
28507 MaxHP uint16 // Player only.
28508 CollideWithNodes bool
28509 Weight float32 // deprecated
28513 VisualSize [3]float32
28515 SpritesheetSize [2]int16 // in sprites.
28516 SpritePos [2]int16 // in sprite sheet.
28518 MakeFootstepSnds bool
28519 RotateSpeed float32 // in radians per second.
28521 Colors []color.NRGBA
28522 CollideWithAOs bool
28525 FaceRotateDirOff float32 // in degrees.
28528 NametagColor color.NRGBA
28529 FaceRotateSpeed float32 // in degrees per second.
28533 MaxBreath uint16 // Player only.
28534 EyeHeight float32 // Player only.
28535 ZoomFOV float32 // in degrees. Player only.
28536 UseTextureAlpha bool
28537 DmgTextureMod Texture // suffix
28540 NametagBG color.NRGBA
28541 }))(obj)).RotateSpeed
28542 write32(w, math.Float32bits(x))
28544 if len(([]byte((*(*(struct {
28545 MaxHP uint16 // Player only.
28546 CollideWithNodes bool
28547 Weight float32 // deprecated
28551 VisualSize [3]float32
28553 SpritesheetSize [2]int16 // in sprites.
28554 SpritePos [2]int16 // in sprite sheet.
28556 MakeFootstepSnds bool
28557 RotateSpeed float32 // in radians per second.
28559 Colors []color.NRGBA
28560 CollideWithAOs bool
28563 FaceRotateDirOff float32 // in degrees.
28566 NametagColor color.NRGBA
28567 FaceRotateSpeed float32 // in degrees per second.
28571 MaxBreath uint16 // Player only.
28572 EyeHeight float32 // Player only.
28573 ZoomFOV float32 // in degrees. Player only.
28574 UseTextureAlpha bool
28575 DmgTextureMod Texture // suffix
28578 NametagBG color.NRGBA
28579 }))(obj)).Mesh))) > math.MaxUint16 {
28583 x := uint16(len(([]byte((*(*(struct {
28584 MaxHP uint16 // Player only.
28585 CollideWithNodes bool
28586 Weight float32 // deprecated
28590 VisualSize [3]float32
28592 SpritesheetSize [2]int16 // in sprites.
28593 SpritePos [2]int16 // in sprite sheet.
28595 MakeFootstepSnds bool
28596 RotateSpeed float32 // in radians per second.
28598 Colors []color.NRGBA
28599 CollideWithAOs bool
28602 FaceRotateDirOff float32 // in degrees.
28605 NametagColor color.NRGBA
28606 FaceRotateSpeed float32 // in degrees per second.
28610 MaxBreath uint16 // Player only.
28611 EyeHeight float32 // Player only.
28612 ZoomFOV float32 // in degrees. Player only.
28613 UseTextureAlpha bool
28614 DmgTextureMod Texture // suffix
28617 NametagBG color.NRGBA
28619 write16(w, uint16(x))
28622 _, err := w.Write(([]byte((*(*(struct {
28623 MaxHP uint16 // Player only.
28624 CollideWithNodes bool
28625 Weight float32 // deprecated
28629 VisualSize [3]float32
28631 SpritesheetSize [2]int16 // in sprites.
28632 SpritePos [2]int16 // in sprite sheet.
28634 MakeFootstepSnds bool
28635 RotateSpeed float32 // in radians per second.
28637 Colors []color.NRGBA
28638 CollideWithAOs bool
28641 FaceRotateDirOff float32 // in degrees.
28644 NametagColor color.NRGBA
28645 FaceRotateSpeed float32 // in degrees per second.
28649 MaxBreath uint16 // Player only.
28650 EyeHeight float32 // Player only.
28651 ZoomFOV float32 // in degrees. Player only.
28652 UseTextureAlpha bool
28653 DmgTextureMod Texture // suffix
28656 NametagBG color.NRGBA
28657 }))(obj)).Mesh))[:])
28660 if len(((*(*(struct {
28661 MaxHP uint16 // Player only.
28662 CollideWithNodes bool
28663 Weight float32 // deprecated
28667 VisualSize [3]float32
28669 SpritesheetSize [2]int16 // in sprites.
28670 SpritePos [2]int16 // in sprite sheet.
28672 MakeFootstepSnds bool
28673 RotateSpeed float32 // in radians per second.
28675 Colors []color.NRGBA
28676 CollideWithAOs bool
28679 FaceRotateDirOff float32 // in degrees.
28682 NametagColor color.NRGBA
28683 FaceRotateSpeed float32 // in degrees per second.
28687 MaxBreath uint16 // Player only.
28688 EyeHeight float32 // Player only.
28689 ZoomFOV float32 // in degrees. Player only.
28690 UseTextureAlpha bool
28691 DmgTextureMod Texture // suffix
28694 NametagBG color.NRGBA
28695 }))(obj)).Colors)) > math.MaxUint16 {
28699 x := uint16(len(((*(*(struct {
28700 MaxHP uint16 // Player only.
28701 CollideWithNodes bool
28702 Weight float32 // deprecated
28706 VisualSize [3]float32
28708 SpritesheetSize [2]int16 // in sprites.
28709 SpritePos [2]int16 // in sprite sheet.
28711 MakeFootstepSnds bool
28712 RotateSpeed float32 // in radians per second.
28714 Colors []color.NRGBA
28715 CollideWithAOs bool
28718 FaceRotateDirOff float32 // in degrees.
28721 NametagColor color.NRGBA
28722 FaceRotateSpeed float32 // in degrees per second.
28726 MaxBreath uint16 // Player only.
28727 EyeHeight float32 // Player only.
28728 ZoomFOV float32 // in degrees. Player only.
28729 UseTextureAlpha bool
28730 DmgTextureMod Texture // suffix
28733 NametagBG color.NRGBA
28734 }))(obj)).Colors)))
28735 write16(w, uint16(x))
28737 for local328 := range (*(*(struct {
28738 MaxHP uint16 // Player only.
28739 CollideWithNodes bool
28740 Weight float32 // deprecated
28744 VisualSize [3]float32
28746 SpritesheetSize [2]int16 // in sprites.
28747 SpritePos [2]int16 // in sprite sheet.
28749 MakeFootstepSnds bool
28750 RotateSpeed float32 // in radians per second.
28752 Colors []color.NRGBA
28753 CollideWithAOs bool
28756 FaceRotateDirOff float32 // in degrees.
28759 NametagColor color.NRGBA
28760 FaceRotateSpeed float32 // in degrees per second.
28764 MaxBreath uint16 // Player only.
28765 EyeHeight float32 // Player only.
28766 ZoomFOV float32 // in degrees. Player only.
28767 UseTextureAlpha bool
28768 DmgTextureMod Texture // suffix
28771 NametagBG color.NRGBA
28774 x := ((*(*(struct {
28775 MaxHP uint16 // Player only.
28776 CollideWithNodes bool
28777 Weight float32 // deprecated
28781 VisualSize [3]float32
28783 SpritesheetSize [2]int16 // in sprites.
28784 SpritePos [2]int16 // in sprite sheet.
28786 MakeFootstepSnds bool
28787 RotateSpeed float32 // in radians per second.
28789 Colors []color.NRGBA
28790 CollideWithAOs bool
28793 FaceRotateDirOff float32 // in degrees.
28796 NametagColor color.NRGBA
28797 FaceRotateSpeed float32 // in degrees per second.
28801 MaxBreath uint16 // Player only.
28802 EyeHeight float32 // Player only.
28803 ZoomFOV float32 // in degrees. Player only.
28804 UseTextureAlpha bool
28805 DmgTextureMod Texture // suffix
28808 NametagBG color.NRGBA
28809 }))(obj)).Colors)[local328]
28810 w.Write([]byte{x.A, x.R, x.G, x.B})
28815 MaxHP uint16 // Player only.
28816 CollideWithNodes bool
28817 Weight float32 // deprecated
28821 VisualSize [3]float32
28823 SpritesheetSize [2]int16 // in sprites.
28824 SpritePos [2]int16 // in sprite sheet.
28826 MakeFootstepSnds bool
28827 RotateSpeed float32 // in radians per second.
28829 Colors []color.NRGBA
28830 CollideWithAOs bool
28833 FaceRotateDirOff float32 // in degrees.
28836 NametagColor color.NRGBA
28837 FaceRotateSpeed float32 // in degrees per second.
28841 MaxBreath uint16 // Player only.
28842 EyeHeight float32 // Player only.
28843 ZoomFOV float32 // in degrees. Player only.
28844 UseTextureAlpha bool
28845 DmgTextureMod Texture // suffix
28848 NametagBG color.NRGBA
28849 }))(obj)).CollideWithAOs
28858 MaxHP uint16 // Player only.
28859 CollideWithNodes bool
28860 Weight float32 // deprecated
28864 VisualSize [3]float32
28866 SpritesheetSize [2]int16 // in sprites.
28867 SpritePos [2]int16 // in sprite sheet.
28869 MakeFootstepSnds bool
28870 RotateSpeed float32 // in radians per second.
28872 Colors []color.NRGBA
28873 CollideWithAOs bool
28876 FaceRotateDirOff float32 // in degrees.
28879 NametagColor color.NRGBA
28880 FaceRotateSpeed float32 // in degrees per second.
28884 MaxBreath uint16 // Player only.
28885 EyeHeight float32 // Player only.
28886 ZoomFOV float32 // in degrees. Player only.
28887 UseTextureAlpha bool
28888 DmgTextureMod Texture // suffix
28891 NametagBG color.NRGBA
28892 }))(obj)).StepHeight
28893 write32(w, math.Float32bits(x))
28897 MaxHP uint16 // Player only.
28898 CollideWithNodes bool
28899 Weight float32 // deprecated
28903 VisualSize [3]float32
28905 SpritesheetSize [2]int16 // in sprites.
28906 SpritePos [2]int16 // in sprite sheet.
28908 MakeFootstepSnds bool
28909 RotateSpeed float32 // in radians per second.
28911 Colors []color.NRGBA
28912 CollideWithAOs bool
28915 FaceRotateDirOff float32 // in degrees.
28918 NametagColor color.NRGBA
28919 FaceRotateSpeed float32 // in degrees per second.
28923 MaxBreath uint16 // Player only.
28924 EyeHeight float32 // Player only.
28925 ZoomFOV float32 // in degrees. Player only.
28926 UseTextureAlpha bool
28927 DmgTextureMod Texture // suffix
28930 NametagBG color.NRGBA
28931 }))(obj)).FaceRotateDir
28940 MaxHP uint16 // Player only.
28941 CollideWithNodes bool
28942 Weight float32 // deprecated
28946 VisualSize [3]float32
28948 SpritesheetSize [2]int16 // in sprites.
28949 SpritePos [2]int16 // in sprite sheet.
28951 MakeFootstepSnds bool
28952 RotateSpeed float32 // in radians per second.
28954 Colors []color.NRGBA
28955 CollideWithAOs bool
28958 FaceRotateDirOff float32 // in degrees.
28961 NametagColor color.NRGBA
28962 FaceRotateSpeed float32 // in degrees per second.
28966 MaxBreath uint16 // Player only.
28967 EyeHeight float32 // Player only.
28968 ZoomFOV float32 // in degrees. Player only.
28969 UseTextureAlpha bool
28970 DmgTextureMod Texture // suffix
28973 NametagBG color.NRGBA
28974 }))(obj)).FaceRotateDirOff
28975 write32(w, math.Float32bits(x))
28979 MaxHP uint16 // Player only.
28980 CollideWithNodes bool
28981 Weight float32 // deprecated
28985 VisualSize [3]float32
28987 SpritesheetSize [2]int16 // in sprites.
28988 SpritePos [2]int16 // in sprite sheet.
28990 MakeFootstepSnds bool
28991 RotateSpeed float32 // in radians per second.
28993 Colors []color.NRGBA
28994 CollideWithAOs bool
28997 FaceRotateDirOff float32 // in degrees.
29000 NametagColor color.NRGBA
29001 FaceRotateSpeed float32 // in degrees per second.
29005 MaxBreath uint16 // Player only.
29006 EyeHeight float32 // Player only.
29007 ZoomFOV float32 // in degrees. Player only.
29008 UseTextureAlpha bool
29009 DmgTextureMod Texture // suffix
29012 NametagBG color.NRGBA
29013 }))(obj)).BackfaceCull
29020 if len(([]byte((*(*(struct {
29021 MaxHP uint16 // Player only.
29022 CollideWithNodes bool
29023 Weight float32 // deprecated
29027 VisualSize [3]float32
29029 SpritesheetSize [2]int16 // in sprites.
29030 SpritePos [2]int16 // in sprite sheet.
29032 MakeFootstepSnds bool
29033 RotateSpeed float32 // in radians per second.
29035 Colors []color.NRGBA
29036 CollideWithAOs bool
29039 FaceRotateDirOff float32 // in degrees.
29042 NametagColor color.NRGBA
29043 FaceRotateSpeed float32 // in degrees per second.
29047 MaxBreath uint16 // Player only.
29048 EyeHeight float32 // Player only.
29049 ZoomFOV float32 // in degrees. Player only.
29050 UseTextureAlpha bool
29051 DmgTextureMod Texture // suffix
29054 NametagBG color.NRGBA
29055 }))(obj)).Nametag))) > math.MaxUint16 {
29059 x := uint16(len(([]byte((*(*(struct {
29060 MaxHP uint16 // Player only.
29061 CollideWithNodes bool
29062 Weight float32 // deprecated
29066 VisualSize [3]float32
29068 SpritesheetSize [2]int16 // in sprites.
29069 SpritePos [2]int16 // in sprite sheet.
29071 MakeFootstepSnds bool
29072 RotateSpeed float32 // in radians per second.
29074 Colors []color.NRGBA
29075 CollideWithAOs bool
29078 FaceRotateDirOff float32 // in degrees.
29081 NametagColor color.NRGBA
29082 FaceRotateSpeed float32 // in degrees per second.
29086 MaxBreath uint16 // Player only.
29087 EyeHeight float32 // Player only.
29088 ZoomFOV float32 // in degrees. Player only.
29089 UseTextureAlpha bool
29090 DmgTextureMod Texture // suffix
29093 NametagBG color.NRGBA
29094 }))(obj)).Nametag))))
29095 write16(w, uint16(x))
29098 _, err := w.Write(([]byte((*(*(struct {
29099 MaxHP uint16 // Player only.
29100 CollideWithNodes bool
29101 Weight float32 // deprecated
29105 VisualSize [3]float32
29107 SpritesheetSize [2]int16 // in sprites.
29108 SpritePos [2]int16 // in sprite sheet.
29110 MakeFootstepSnds bool
29111 RotateSpeed float32 // in radians per second.
29113 Colors []color.NRGBA
29114 CollideWithAOs bool
29117 FaceRotateDirOff float32 // in degrees.
29120 NametagColor color.NRGBA
29121 FaceRotateSpeed float32 // in degrees per second.
29125 MaxBreath uint16 // Player only.
29126 EyeHeight float32 // Player only.
29127 ZoomFOV float32 // in degrees. Player only.
29128 UseTextureAlpha bool
29129 DmgTextureMod Texture // suffix
29132 NametagBG color.NRGBA
29133 }))(obj)).Nametag))[:])
29138 MaxHP uint16 // Player only.
29139 CollideWithNodes bool
29140 Weight float32 // deprecated
29144 VisualSize [3]float32
29146 SpritesheetSize [2]int16 // in sprites.
29147 SpritePos [2]int16 // in sprite sheet.
29149 MakeFootstepSnds bool
29150 RotateSpeed float32 // in radians per second.
29152 Colors []color.NRGBA
29153 CollideWithAOs bool
29156 FaceRotateDirOff float32 // in degrees.
29159 NametagColor color.NRGBA
29160 FaceRotateSpeed float32 // in degrees per second.
29164 MaxBreath uint16 // Player only.
29165 EyeHeight float32 // Player only.
29166 ZoomFOV float32 // in degrees. Player only.
29167 UseTextureAlpha bool
29168 DmgTextureMod Texture // suffix
29171 NametagBG color.NRGBA
29172 }))(obj)).NametagColor
29173 w.Write([]byte{x.A, x.R, x.G, x.B})
29177 MaxHP uint16 // Player only.
29178 CollideWithNodes bool
29179 Weight float32 // deprecated
29183 VisualSize [3]float32
29185 SpritesheetSize [2]int16 // in sprites.
29186 SpritePos [2]int16 // in sprite sheet.
29188 MakeFootstepSnds bool
29189 RotateSpeed float32 // in radians per second.
29191 Colors []color.NRGBA
29192 CollideWithAOs bool
29195 FaceRotateDirOff float32 // in degrees.
29198 NametagColor color.NRGBA
29199 FaceRotateSpeed float32 // in degrees per second.
29203 MaxBreath uint16 // Player only.
29204 EyeHeight float32 // Player only.
29205 ZoomFOV float32 // in degrees. Player only.
29206 UseTextureAlpha bool
29207 DmgTextureMod Texture // suffix
29210 NametagBG color.NRGBA
29211 }))(obj)).FaceRotateSpeed
29212 write32(w, math.Float32bits(x))
29214 if len(([]byte((*(*(struct {
29215 MaxHP uint16 // Player only.
29216 CollideWithNodes bool
29217 Weight float32 // deprecated
29221 VisualSize [3]float32
29223 SpritesheetSize [2]int16 // in sprites.
29224 SpritePos [2]int16 // in sprite sheet.
29226 MakeFootstepSnds bool
29227 RotateSpeed float32 // in radians per second.
29229 Colors []color.NRGBA
29230 CollideWithAOs bool
29233 FaceRotateDirOff float32 // in degrees.
29236 NametagColor color.NRGBA
29237 FaceRotateSpeed float32 // in degrees per second.
29241 MaxBreath uint16 // Player only.
29242 EyeHeight float32 // Player only.
29243 ZoomFOV float32 // in degrees. Player only.
29244 UseTextureAlpha bool
29245 DmgTextureMod Texture // suffix
29248 NametagBG color.NRGBA
29249 }))(obj)).Infotext))) > math.MaxUint16 {
29253 x := uint16(len(([]byte((*(*(struct {
29254 MaxHP uint16 // Player only.
29255 CollideWithNodes bool
29256 Weight float32 // deprecated
29260 VisualSize [3]float32
29262 SpritesheetSize [2]int16 // in sprites.
29263 SpritePos [2]int16 // in sprite sheet.
29265 MakeFootstepSnds bool
29266 RotateSpeed float32 // in radians per second.
29268 Colors []color.NRGBA
29269 CollideWithAOs bool
29272 FaceRotateDirOff float32 // in degrees.
29275 NametagColor color.NRGBA
29276 FaceRotateSpeed float32 // in degrees per second.
29280 MaxBreath uint16 // Player only.
29281 EyeHeight float32 // Player only.
29282 ZoomFOV float32 // in degrees. Player only.
29283 UseTextureAlpha bool
29284 DmgTextureMod Texture // suffix
29287 NametagBG color.NRGBA
29288 }))(obj)).Infotext))))
29289 write16(w, uint16(x))
29292 _, err := w.Write(([]byte((*(*(struct {
29293 MaxHP uint16 // Player only.
29294 CollideWithNodes bool
29295 Weight float32 // deprecated
29299 VisualSize [3]float32
29301 SpritesheetSize [2]int16 // in sprites.
29302 SpritePos [2]int16 // in sprite sheet.
29304 MakeFootstepSnds bool
29305 RotateSpeed float32 // in radians per second.
29307 Colors []color.NRGBA
29308 CollideWithAOs bool
29311 FaceRotateDirOff float32 // in degrees.
29314 NametagColor color.NRGBA
29315 FaceRotateSpeed float32 // in degrees per second.
29319 MaxBreath uint16 // Player only.
29320 EyeHeight float32 // Player only.
29321 ZoomFOV float32 // in degrees. Player only.
29322 UseTextureAlpha bool
29323 DmgTextureMod Texture // suffix
29326 NametagBG color.NRGBA
29327 }))(obj)).Infotext))[:])
29330 if len(([]byte((*(*(struct {
29331 MaxHP uint16 // Player only.
29332 CollideWithNodes bool
29333 Weight float32 // deprecated
29337 VisualSize [3]float32
29339 SpritesheetSize [2]int16 // in sprites.
29340 SpritePos [2]int16 // in sprite sheet.
29342 MakeFootstepSnds bool
29343 RotateSpeed float32 // in radians per second.
29345 Colors []color.NRGBA
29346 CollideWithAOs bool
29349 FaceRotateDirOff float32 // in degrees.
29352 NametagColor color.NRGBA
29353 FaceRotateSpeed float32 // in degrees per second.
29357 MaxBreath uint16 // Player only.
29358 EyeHeight float32 // Player only.
29359 ZoomFOV float32 // in degrees. Player only.
29360 UseTextureAlpha bool
29361 DmgTextureMod Texture // suffix
29364 NametagBG color.NRGBA
29365 }))(obj)).Itemstring))) > math.MaxUint16 {
29369 x := uint16(len(([]byte((*(*(struct {
29370 MaxHP uint16 // Player only.
29371 CollideWithNodes bool
29372 Weight float32 // deprecated
29376 VisualSize [3]float32
29378 SpritesheetSize [2]int16 // in sprites.
29379 SpritePos [2]int16 // in sprite sheet.
29381 MakeFootstepSnds bool
29382 RotateSpeed float32 // in radians per second.
29384 Colors []color.NRGBA
29385 CollideWithAOs bool
29388 FaceRotateDirOff float32 // in degrees.
29391 NametagColor color.NRGBA
29392 FaceRotateSpeed float32 // in degrees per second.
29396 MaxBreath uint16 // Player only.
29397 EyeHeight float32 // Player only.
29398 ZoomFOV float32 // in degrees. Player only.
29399 UseTextureAlpha bool
29400 DmgTextureMod Texture // suffix
29403 NametagBG color.NRGBA
29404 }))(obj)).Itemstring))))
29405 write16(w, uint16(x))
29408 _, err := w.Write(([]byte((*(*(struct {
29409 MaxHP uint16 // Player only.
29410 CollideWithNodes bool
29411 Weight float32 // deprecated
29415 VisualSize [3]float32
29417 SpritesheetSize [2]int16 // in sprites.
29418 SpritePos [2]int16 // in sprite sheet.
29420 MakeFootstepSnds bool
29421 RotateSpeed float32 // in radians per second.
29423 Colors []color.NRGBA
29424 CollideWithAOs bool
29427 FaceRotateDirOff float32 // in degrees.
29430 NametagColor color.NRGBA
29431 FaceRotateSpeed float32 // in degrees per second.
29435 MaxBreath uint16 // Player only.
29436 EyeHeight float32 // Player only.
29437 ZoomFOV float32 // in degrees. Player only.
29438 UseTextureAlpha bool
29439 DmgTextureMod Texture // suffix
29442 NametagBG color.NRGBA
29443 }))(obj)).Itemstring))[:])
29448 MaxHP uint16 // Player only.
29449 CollideWithNodes bool
29450 Weight float32 // deprecated
29454 VisualSize [3]float32
29456 SpritesheetSize [2]int16 // in sprites.
29457 SpritePos [2]int16 // in sprite sheet.
29459 MakeFootstepSnds bool
29460 RotateSpeed float32 // in radians per second.
29462 Colors []color.NRGBA
29463 CollideWithAOs bool
29466 FaceRotateDirOff float32 // in degrees.
29469 NametagColor color.NRGBA
29470 FaceRotateSpeed float32 // in degrees per second.
29474 MaxBreath uint16 // Player only.
29475 EyeHeight float32 // Player only.
29476 ZoomFOV float32 // in degrees. Player only.
29477 UseTextureAlpha bool
29478 DmgTextureMod Texture // suffix
29481 NametagBG color.NRGBA
29483 write8(w, uint8(x))
29487 MaxHP uint16 // Player only.
29488 CollideWithNodes bool
29489 Weight float32 // deprecated
29493 VisualSize [3]float32
29495 SpritesheetSize [2]int16 // in sprites.
29496 SpritePos [2]int16 // in sprite sheet.
29498 MakeFootstepSnds bool
29499 RotateSpeed float32 // in radians per second.
29501 Colors []color.NRGBA
29502 CollideWithAOs bool
29505 FaceRotateDirOff float32 // in degrees.
29508 NametagColor color.NRGBA
29509 FaceRotateSpeed float32 // in degrees per second.
29513 MaxBreath uint16 // Player only.
29514 EyeHeight float32 // Player only.
29515 ZoomFOV float32 // in degrees. Player only.
29516 UseTextureAlpha bool
29517 DmgTextureMod Texture // suffix
29520 NametagBG color.NRGBA
29521 }))(obj)).MaxBreath
29522 write16(w, uint16(x))
29526 MaxHP uint16 // Player only.
29527 CollideWithNodes bool
29528 Weight float32 // deprecated
29532 VisualSize [3]float32
29534 SpritesheetSize [2]int16 // in sprites.
29535 SpritePos [2]int16 // in sprite sheet.
29537 MakeFootstepSnds bool
29538 RotateSpeed float32 // in radians per second.
29540 Colors []color.NRGBA
29541 CollideWithAOs bool
29544 FaceRotateDirOff float32 // in degrees.
29547 NametagColor color.NRGBA
29548 FaceRotateSpeed float32 // in degrees per second.
29552 MaxBreath uint16 // Player only.
29553 EyeHeight float32 // Player only.
29554 ZoomFOV float32 // in degrees. Player only.
29555 UseTextureAlpha bool
29556 DmgTextureMod Texture // suffix
29559 NametagBG color.NRGBA
29560 }))(obj)).EyeHeight
29561 write32(w, math.Float32bits(x))
29565 MaxHP uint16 // Player only.
29566 CollideWithNodes bool
29567 Weight float32 // deprecated
29571 VisualSize [3]float32
29573 SpritesheetSize [2]int16 // in sprites.
29574 SpritePos [2]int16 // in sprite sheet.
29576 MakeFootstepSnds bool
29577 RotateSpeed float32 // in radians per second.
29579 Colors []color.NRGBA
29580 CollideWithAOs bool
29583 FaceRotateDirOff float32 // in degrees.
29586 NametagColor color.NRGBA
29587 FaceRotateSpeed float32 // in degrees per second.
29591 MaxBreath uint16 // Player only.
29592 EyeHeight float32 // Player only.
29593 ZoomFOV float32 // in degrees. Player only.
29594 UseTextureAlpha bool
29595 DmgTextureMod Texture // suffix
29598 NametagBG color.NRGBA
29600 write32(w, math.Float32bits(x))
29604 MaxHP uint16 // Player only.
29605 CollideWithNodes bool
29606 Weight float32 // deprecated
29610 VisualSize [3]float32
29612 SpritesheetSize [2]int16 // in sprites.
29613 SpritePos [2]int16 // in sprite sheet.
29615 MakeFootstepSnds bool
29616 RotateSpeed float32 // in radians per second.
29618 Colors []color.NRGBA
29619 CollideWithAOs bool
29622 FaceRotateDirOff float32 // in degrees.
29625 NametagColor color.NRGBA
29626 FaceRotateSpeed float32 // in degrees per second.
29630 MaxBreath uint16 // Player only.
29631 EyeHeight float32 // Player only.
29632 ZoomFOV float32 // in degrees. Player only.
29633 UseTextureAlpha bool
29634 DmgTextureMod Texture // suffix
29637 NametagBG color.NRGBA
29638 }))(obj)).UseTextureAlpha
29645 if err := pcall(func() {
29647 MaxHP uint16 // Player only.
29648 CollideWithNodes bool
29649 Weight float32 // deprecated
29653 VisualSize [3]float32
29655 SpritesheetSize [2]int16 // in sprites.
29656 SpritePos [2]int16 // in sprite sheet.
29658 MakeFootstepSnds bool
29659 RotateSpeed float32 // in radians per second.
29661 Colors []color.NRGBA
29662 CollideWithAOs bool
29665 FaceRotateDirOff float32 // in degrees.
29668 NametagColor color.NRGBA
29669 FaceRotateSpeed float32 // in degrees per second.
29673 MaxBreath uint16 // Player only.
29674 EyeHeight float32 // Player only.
29675 ZoomFOV float32 // in degrees. Player only.
29676 UseTextureAlpha bool
29677 DmgTextureMod Texture // suffix
29680 NametagBG color.NRGBA
29681 }))(obj)).DmgTextureMod).serialize(w)
29686 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29690 MaxHP uint16 // Player only.
29691 CollideWithNodes bool
29692 Weight float32 // deprecated
29696 VisualSize [3]float32
29698 SpritesheetSize [2]int16 // in sprites.
29699 SpritePos [2]int16 // in sprite sheet.
29701 MakeFootstepSnds bool
29702 RotateSpeed float32 // in radians per second.
29704 Colors []color.NRGBA
29705 CollideWithAOs bool
29708 FaceRotateDirOff float32 // in degrees.
29711 NametagColor color.NRGBA
29712 FaceRotateSpeed float32 // in degrees per second.
29716 MaxBreath uint16 // Player only.
29717 EyeHeight float32 // Player only.
29718 ZoomFOV float32 // in degrees. Player only.
29719 UseTextureAlpha bool
29720 DmgTextureMod Texture // suffix
29723 NametagBG color.NRGBA
29733 MaxHP uint16 // Player only.
29734 CollideWithNodes bool
29735 Weight float32 // deprecated
29739 VisualSize [3]float32
29741 SpritesheetSize [2]int16 // in sprites.
29742 SpritePos [2]int16 // in sprite sheet.
29744 MakeFootstepSnds bool
29745 RotateSpeed float32 // in radians per second.
29747 Colors []color.NRGBA
29748 CollideWithAOs bool
29751 FaceRotateDirOff float32 // in degrees.
29754 NametagColor color.NRGBA
29755 FaceRotateSpeed float32 // in degrees per second.
29759 MaxBreath uint16 // Player only.
29760 EyeHeight float32 // Player only.
29761 ZoomFOV float32 // in degrees. Player only.
29762 UseTextureAlpha bool
29763 DmgTextureMod Texture // suffix
29766 NametagBG color.NRGBA
29767 }))(obj)).ShowOnMinimap
29776 MaxHP uint16 // Player only.
29777 CollideWithNodes bool
29778 Weight float32 // deprecated
29782 VisualSize [3]float32
29784 SpritesheetSize [2]int16 // in sprites.
29785 SpritePos [2]int16 // in sprite sheet.
29787 MakeFootstepSnds bool
29788 RotateSpeed float32 // in radians per second.
29790 Colors []color.NRGBA
29791 CollideWithAOs bool
29794 FaceRotateDirOff float32 // in degrees.
29797 NametagColor color.NRGBA
29798 FaceRotateSpeed float32 // in degrees per second.
29802 MaxBreath uint16 // Player only.
29803 EyeHeight float32 // Player only.
29804 ZoomFOV float32 // in degrees. Player only.
29805 UseTextureAlpha bool
29806 DmgTextureMod Texture // suffix
29809 NametagBG color.NRGBA
29810 }))(obj)).NametagBG
29811 w.Write([]byte{x.A, x.R, x.G, x.B})
29815 func (obj *AOProps) deserialize(r io.Reader) {
29822 if local329 != (4) {
29823 chk(fmt.Errorf("const %v: %v", 4, local329))
29827 p := &(*(*(struct {
29828 MaxHP uint16 // Player only.
29829 CollideWithNodes bool
29830 Weight float32 // deprecated
29834 VisualSize [3]float32
29836 SpritesheetSize [2]int16 // in sprites.
29837 SpritePos [2]int16 // in sprite sheet.
29839 MakeFootstepSnds bool
29840 RotateSpeed float32 // in radians per second.
29842 Colors []color.NRGBA
29843 CollideWithAOs bool
29846 FaceRotateDirOff float32 // in degrees.
29849 NametagColor color.NRGBA
29850 FaceRotateSpeed float32 // in degrees per second.
29854 MaxBreath uint16 // Player only.
29855 EyeHeight float32 // Player only.
29856 ZoomFOV float32 // in degrees. Player only.
29857 UseTextureAlpha bool
29858 DmgTextureMod Texture // suffix
29861 NametagBG color.NRGBA
29866 p := &(*(*(struct {
29867 MaxHP uint16 // Player only.
29868 CollideWithNodes bool
29869 Weight float32 // deprecated
29873 VisualSize [3]float32
29875 SpritesheetSize [2]int16 // in sprites.
29876 SpritePos [2]int16 // in sprite sheet.
29878 MakeFootstepSnds bool
29879 RotateSpeed float32 // in radians per second.
29881 Colors []color.NRGBA
29882 CollideWithAOs bool
29885 FaceRotateDirOff float32 // in degrees.
29888 NametagColor color.NRGBA
29889 FaceRotateSpeed float32 // in degrees per second.
29893 MaxBreath uint16 // Player only.
29894 EyeHeight float32 // Player only.
29895 ZoomFOV float32 // in degrees. Player only.
29896 UseTextureAlpha bool
29897 DmgTextureMod Texture // suffix
29900 NametagBG color.NRGBA
29901 }))(obj)).CollideWithNodes
29902 switch n := read8(r); n {
29908 chk(fmt.Errorf("invalid bool: %d", n))
29912 p := &(*(*(struct {
29913 MaxHP uint16 // Player only.
29914 CollideWithNodes bool
29915 Weight float32 // deprecated
29919 VisualSize [3]float32
29921 SpritesheetSize [2]int16 // in sprites.
29922 SpritePos [2]int16 // in sprite sheet.
29924 MakeFootstepSnds bool
29925 RotateSpeed float32 // in radians per second.
29927 Colors []color.NRGBA
29928 CollideWithAOs bool
29931 FaceRotateDirOff float32 // in degrees.
29934 NametagColor color.NRGBA
29935 FaceRotateSpeed float32 // in degrees per second.
29939 MaxBreath uint16 // Player only.
29940 EyeHeight float32 // Player only.
29941 ZoomFOV float32 // in degrees. Player only.
29942 UseTextureAlpha bool
29943 DmgTextureMod Texture // suffix
29946 NametagBG color.NRGBA
29948 *p = math.Float32frombits(read32(r))
29950 if err := pcall(func() {
29952 MaxHP uint16 // Player only.
29953 CollideWithNodes bool
29954 Weight float32 // deprecated
29958 VisualSize [3]float32
29960 SpritesheetSize [2]int16 // in sprites.
29961 SpritePos [2]int16 // in sprite sheet.
29963 MakeFootstepSnds bool
29964 RotateSpeed float32 // in radians per second.
29966 Colors []color.NRGBA
29967 CollideWithAOs bool
29970 FaceRotateDirOff float32 // in degrees.
29973 NametagColor color.NRGBA
29974 FaceRotateSpeed float32 // in degrees per second.
29978 MaxBreath uint16 // Player only.
29979 EyeHeight float32 // Player only.
29980 ZoomFOV float32 // in degrees. Player only.
29981 UseTextureAlpha bool
29982 DmgTextureMod Texture // suffix
29985 NametagBG color.NRGBA
29986 }))(obj)).ColBox).deserialize(r)
29991 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29993 if err := pcall(func() {
29995 MaxHP uint16 // Player only.
29996 CollideWithNodes bool
29997 Weight float32 // deprecated
30001 VisualSize [3]float32
30003 SpritesheetSize [2]int16 // in sprites.
30004 SpritePos [2]int16 // in sprite sheet.
30006 MakeFootstepSnds bool
30007 RotateSpeed float32 // in radians per second.
30009 Colors []color.NRGBA
30010 CollideWithAOs bool
30013 FaceRotateDirOff float32 // in degrees.
30016 NametagColor color.NRGBA
30017 FaceRotateSpeed float32 // in degrees per second.
30021 MaxBreath uint16 // Player only.
30022 EyeHeight float32 // Player only.
30023 ZoomFOV float32 // in degrees. Player only.
30024 UseTextureAlpha bool
30025 DmgTextureMod Texture // suffix
30028 NametagBG color.NRGBA
30029 }))(obj)).SelBox).deserialize(r)
30034 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
30037 p := &(*(*(struct {
30038 MaxHP uint16 // Player only.
30039 CollideWithNodes bool
30040 Weight float32 // deprecated
30044 VisualSize [3]float32
30046 SpritesheetSize [2]int16 // in sprites.
30047 SpritePos [2]int16 // in sprite sheet.
30049 MakeFootstepSnds bool
30050 RotateSpeed float32 // in radians per second.
30052 Colors []color.NRGBA
30053 CollideWithAOs bool
30056 FaceRotateDirOff float32 // in degrees.
30059 NametagColor color.NRGBA
30060 FaceRotateSpeed float32 // in degrees per second.
30064 MaxBreath uint16 // Player only.
30065 EyeHeight float32 // Player only.
30066 ZoomFOV float32 // in degrees. Player only.
30067 UseTextureAlpha bool
30068 DmgTextureMod Texture // suffix
30071 NametagBG color.NRGBA
30072 }))(obj)).Pointable
30073 switch n := read8(r); n {
30079 chk(fmt.Errorf("invalid bool: %d", n))
30082 var local330 []uint8
30083 var local331 uint16
30088 (local330) = make([]uint8, local331)
30090 _, err := io.ReadFull(r, (local330)[:])
30094 MaxHP uint16 // Player only.
30095 CollideWithNodes bool
30096 Weight float32 // deprecated
30100 VisualSize [3]float32
30102 SpritesheetSize [2]int16 // in sprites.
30103 SpritePos [2]int16 // in sprite sheet.
30105 MakeFootstepSnds bool
30106 RotateSpeed float32 // in radians per second.
30108 Colors []color.NRGBA
30109 CollideWithAOs bool
30112 FaceRotateDirOff float32 // in degrees.
30115 NametagColor color.NRGBA
30116 FaceRotateSpeed float32 // in degrees per second.
30120 MaxBreath uint16 // Player only.
30121 EyeHeight float32 // Player only.
30122 ZoomFOV float32 // in degrees. Player only.
30123 UseTextureAlpha bool
30124 DmgTextureMod Texture // suffix
30127 NametagBG color.NRGBA
30128 }))(obj)).Visual) = string(local330)
30129 for local332 := range (*(*(struct {
30130 MaxHP uint16 // Player only.
30131 CollideWithNodes bool
30132 Weight float32 // deprecated
30136 VisualSize [3]float32
30138 SpritesheetSize [2]int16 // in sprites.
30139 SpritePos [2]int16 // in sprite sheet.
30141 MakeFootstepSnds bool
30142 RotateSpeed float32 // in radians per second.
30144 Colors []color.NRGBA
30145 CollideWithAOs bool
30148 FaceRotateDirOff float32 // in degrees.
30151 NametagColor color.NRGBA
30152 FaceRotateSpeed float32 // in degrees per second.
30156 MaxBreath uint16 // Player only.
30157 EyeHeight float32 // Player only.
30158 ZoomFOV float32 // in degrees. Player only.
30159 UseTextureAlpha bool
30160 DmgTextureMod Texture // suffix
30163 NametagBG color.NRGBA
30164 }))(obj)).VisualSize {
30166 p := &((*(*(struct {
30167 MaxHP uint16 // Player only.
30168 CollideWithNodes bool
30169 Weight float32 // deprecated
30173 VisualSize [3]float32
30175 SpritesheetSize [2]int16 // in sprites.
30176 SpritePos [2]int16 // in sprite sheet.
30178 MakeFootstepSnds bool
30179 RotateSpeed float32 // in radians per second.
30181 Colors []color.NRGBA
30182 CollideWithAOs bool
30185 FaceRotateDirOff float32 // in degrees.
30188 NametagColor color.NRGBA
30189 FaceRotateSpeed float32 // in degrees per second.
30193 MaxBreath uint16 // Player only.
30194 EyeHeight float32 // Player only.
30195 ZoomFOV float32 // in degrees. Player only.
30196 UseTextureAlpha bool
30197 DmgTextureMod Texture // suffix
30200 NametagBG color.NRGBA
30201 }))(obj)).VisualSize)[local332]
30202 *p = math.Float32frombits(read32(r))
30205 var local333 uint16
30211 MaxHP uint16 // Player only.
30212 CollideWithNodes bool
30213 Weight float32 // deprecated
30217 VisualSize [3]float32
30219 SpritesheetSize [2]int16 // in sprites.
30220 SpritePos [2]int16 // in sprite sheet.
30222 MakeFootstepSnds bool
30223 RotateSpeed float32 // in radians per second.
30225 Colors []color.NRGBA
30226 CollideWithAOs bool
30229 FaceRotateDirOff float32 // in degrees.
30232 NametagColor color.NRGBA
30233 FaceRotateSpeed float32 // in degrees per second.
30237 MaxBreath uint16 // Player only.
30238 EyeHeight float32 // Player only.
30239 ZoomFOV float32 // in degrees. Player only.
30240 UseTextureAlpha bool
30241 DmgTextureMod Texture // suffix
30244 NametagBG color.NRGBA
30245 }))(obj)).Textures) = make([]Texture, local333)
30246 for local334 := range (*(*(struct {
30247 MaxHP uint16 // Player only.
30248 CollideWithNodes bool
30249 Weight float32 // deprecated
30253 VisualSize [3]float32
30255 SpritesheetSize [2]int16 // in sprites.
30256 SpritePos [2]int16 // in sprite sheet.
30258 MakeFootstepSnds bool
30259 RotateSpeed float32 // in radians per second.
30261 Colors []color.NRGBA
30262 CollideWithAOs bool
30265 FaceRotateDirOff float32 // in degrees.
30268 NametagColor color.NRGBA
30269 FaceRotateSpeed float32 // in degrees per second.
30273 MaxBreath uint16 // Player only.
30274 EyeHeight float32 // Player only.
30275 ZoomFOV float32 // in degrees. Player only.
30276 UseTextureAlpha bool
30277 DmgTextureMod Texture // suffix
30280 NametagBG color.NRGBA
30281 }))(obj)).Textures {
30282 if err := pcall(func() {
30284 MaxHP uint16 // Player only.
30285 CollideWithNodes bool
30286 Weight float32 // deprecated
30290 VisualSize [3]float32
30292 SpritesheetSize [2]int16 // in sprites.
30293 SpritePos [2]int16 // in sprite sheet.
30295 MakeFootstepSnds bool
30296 RotateSpeed float32 // in radians per second.
30298 Colors []color.NRGBA
30299 CollideWithAOs bool
30302 FaceRotateDirOff float32 // in degrees.
30305 NametagColor color.NRGBA
30306 FaceRotateSpeed float32 // in degrees per second.
30310 MaxBreath uint16 // Player only.
30311 EyeHeight float32 // Player only.
30312 ZoomFOV float32 // in degrees. Player only.
30313 UseTextureAlpha bool
30314 DmgTextureMod Texture // suffix
30317 NametagBG color.NRGBA
30318 }))(obj)).Textures)[local334]).deserialize(r)
30323 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
30326 for local335 := range (*(*(struct {
30327 MaxHP uint16 // Player only.
30328 CollideWithNodes bool
30329 Weight float32 // deprecated
30333 VisualSize [3]float32
30335 SpritesheetSize [2]int16 // in sprites.
30336 SpritePos [2]int16 // in sprite sheet.
30338 MakeFootstepSnds bool
30339 RotateSpeed float32 // in radians per second.
30341 Colors []color.NRGBA
30342 CollideWithAOs bool
30345 FaceRotateDirOff float32 // in degrees.
30348 NametagColor color.NRGBA
30349 FaceRotateSpeed float32 // in degrees per second.
30353 MaxBreath uint16 // Player only.
30354 EyeHeight float32 // Player only.
30355 ZoomFOV float32 // in degrees. Player only.
30356 UseTextureAlpha bool
30357 DmgTextureMod Texture // suffix
30360 NametagBG color.NRGBA
30361 }))(obj)).SpritesheetSize {
30363 p := &((*(*(struct {
30364 MaxHP uint16 // Player only.
30365 CollideWithNodes bool
30366 Weight float32 // deprecated
30370 VisualSize [3]float32
30372 SpritesheetSize [2]int16 // in sprites.
30373 SpritePos [2]int16 // in sprite sheet.
30375 MakeFootstepSnds bool
30376 RotateSpeed float32 // in radians per second.
30378 Colors []color.NRGBA
30379 CollideWithAOs bool
30382 FaceRotateDirOff float32 // in degrees.
30385 NametagColor color.NRGBA
30386 FaceRotateSpeed float32 // in degrees per second.
30390 MaxBreath uint16 // Player only.
30391 EyeHeight float32 // Player only.
30392 ZoomFOV float32 // in degrees. Player only.
30393 UseTextureAlpha bool
30394 DmgTextureMod Texture // suffix
30397 NametagBG color.NRGBA
30398 }))(obj)).SpritesheetSize)[local335]
30399 *p = int16(read16(r))
30402 for local336 := range (*(*(struct {
30403 MaxHP uint16 // Player only.
30404 CollideWithNodes bool
30405 Weight float32 // deprecated
30409 VisualSize [3]float32
30411 SpritesheetSize [2]int16 // in sprites.
30412 SpritePos [2]int16 // in sprite sheet.
30414 MakeFootstepSnds bool
30415 RotateSpeed float32 // in radians per second.
30417 Colors []color.NRGBA
30418 CollideWithAOs bool
30421 FaceRotateDirOff float32 // in degrees.
30424 NametagColor color.NRGBA
30425 FaceRotateSpeed float32 // in degrees per second.
30429 MaxBreath uint16 // Player only.
30430 EyeHeight float32 // Player only.
30431 ZoomFOV float32 // in degrees. Player only.
30432 UseTextureAlpha bool
30433 DmgTextureMod Texture // suffix
30436 NametagBG color.NRGBA
30437 }))(obj)).SpritePos {
30439 p := &((*(*(struct {
30440 MaxHP uint16 // Player only.
30441 CollideWithNodes bool
30442 Weight float32 // deprecated
30446 VisualSize [3]float32
30448 SpritesheetSize [2]int16 // in sprites.
30449 SpritePos [2]int16 // in sprite sheet.
30451 MakeFootstepSnds bool
30452 RotateSpeed float32 // in radians per second.
30454 Colors []color.NRGBA
30455 CollideWithAOs bool
30458 FaceRotateDirOff float32 // in degrees.
30461 NametagColor color.NRGBA
30462 FaceRotateSpeed float32 // in degrees per second.
30466 MaxBreath uint16 // Player only.
30467 EyeHeight float32 // Player only.
30468 ZoomFOV float32 // in degrees. Player only.
30469 UseTextureAlpha bool
30470 DmgTextureMod Texture // suffix
30473 NametagBG color.NRGBA
30474 }))(obj)).SpritePos)[local336]
30475 *p = int16(read16(r))
30479 p := &(*(*(struct {
30480 MaxHP uint16 // Player only.
30481 CollideWithNodes bool
30482 Weight float32 // deprecated
30486 VisualSize [3]float32
30488 SpritesheetSize [2]int16 // in sprites.
30489 SpritePos [2]int16 // in sprite sheet.
30491 MakeFootstepSnds bool
30492 RotateSpeed float32 // in radians per second.
30494 Colors []color.NRGBA
30495 CollideWithAOs bool
30498 FaceRotateDirOff float32 // in degrees.
30501 NametagColor color.NRGBA
30502 FaceRotateSpeed float32 // in degrees per second.
30506 MaxBreath uint16 // Player only.
30507 EyeHeight float32 // Player only.
30508 ZoomFOV float32 // in degrees. Player only.
30509 UseTextureAlpha bool
30510 DmgTextureMod Texture // suffix
30513 NametagBG color.NRGBA
30515 switch n := read8(r); n {
30521 chk(fmt.Errorf("invalid bool: %d", n))
30525 p := &(*(*(struct {
30526 MaxHP uint16 // Player only.
30527 CollideWithNodes bool
30528 Weight float32 // deprecated
30532 VisualSize [3]float32
30534 SpritesheetSize [2]int16 // in sprites.
30535 SpritePos [2]int16 // in sprite sheet.
30537 MakeFootstepSnds bool
30538 RotateSpeed float32 // in radians per second.
30540 Colors []color.NRGBA
30541 CollideWithAOs bool
30544 FaceRotateDirOff float32 // in degrees.
30547 NametagColor color.NRGBA
30548 FaceRotateSpeed float32 // in degrees per second.
30552 MaxBreath uint16 // Player only.
30553 EyeHeight float32 // Player only.
30554 ZoomFOV float32 // in degrees. Player only.
30555 UseTextureAlpha bool
30556 DmgTextureMod Texture // suffix
30559 NametagBG color.NRGBA
30560 }))(obj)).MakeFootstepSnds
30561 switch n := read8(r); n {
30567 chk(fmt.Errorf("invalid bool: %d", n))
30571 p := &(*(*(struct {
30572 MaxHP uint16 // Player only.
30573 CollideWithNodes bool
30574 Weight float32 // deprecated
30578 VisualSize [3]float32
30580 SpritesheetSize [2]int16 // in sprites.
30581 SpritePos [2]int16 // in sprite sheet.
30583 MakeFootstepSnds bool
30584 RotateSpeed float32 // in radians per second.
30586 Colors []color.NRGBA
30587 CollideWithAOs bool
30590 FaceRotateDirOff float32 // in degrees.
30593 NametagColor color.NRGBA
30594 FaceRotateSpeed float32 // in degrees per second.
30598 MaxBreath uint16 // Player only.
30599 EyeHeight float32 // Player only.
30600 ZoomFOV float32 // in degrees. Player only.
30601 UseTextureAlpha bool
30602 DmgTextureMod Texture // suffix
30605 NametagBG color.NRGBA
30606 }))(obj)).RotateSpeed
30607 *p = math.Float32frombits(read32(r))
30609 var local337 []uint8
30610 var local338 uint16
30615 (local337) = make([]uint8, local338)
30617 _, err := io.ReadFull(r, (local337)[:])
30621 MaxHP uint16 // Player only.
30622 CollideWithNodes bool
30623 Weight float32 // deprecated
30627 VisualSize [3]float32
30629 SpritesheetSize [2]int16 // in sprites.
30630 SpritePos [2]int16 // in sprite sheet.
30632 MakeFootstepSnds bool
30633 RotateSpeed float32 // in radians per second.
30635 Colors []color.NRGBA
30636 CollideWithAOs bool
30639 FaceRotateDirOff float32 // in degrees.
30642 NametagColor color.NRGBA
30643 FaceRotateSpeed float32 // in degrees per second.
30647 MaxBreath uint16 // Player only.
30648 EyeHeight float32 // Player only.
30649 ZoomFOV float32 // in degrees. Player only.
30650 UseTextureAlpha bool
30651 DmgTextureMod Texture // suffix
30654 NametagBG color.NRGBA
30655 }))(obj)).Mesh) = string(local337)
30656 var local339 uint16
30662 MaxHP uint16 // Player only.
30663 CollideWithNodes bool
30664 Weight float32 // deprecated
30668 VisualSize [3]float32
30670 SpritesheetSize [2]int16 // in sprites.
30671 SpritePos [2]int16 // in sprite sheet.
30673 MakeFootstepSnds bool
30674 RotateSpeed float32 // in radians per second.
30676 Colors []color.NRGBA
30677 CollideWithAOs bool
30680 FaceRotateDirOff float32 // in degrees.
30683 NametagColor color.NRGBA
30684 FaceRotateSpeed float32 // in degrees per second.
30688 MaxBreath uint16 // Player only.
30689 EyeHeight float32 // Player only.
30690 ZoomFOV float32 // in degrees. Player only.
30691 UseTextureAlpha bool
30692 DmgTextureMod Texture // suffix
30695 NametagBG color.NRGBA
30696 }))(obj)).Colors) = make([]color.NRGBA, local339)
30697 for local340 := range (*(*(struct {
30698 MaxHP uint16 // Player only.
30699 CollideWithNodes bool
30700 Weight float32 // deprecated
30704 VisualSize [3]float32
30706 SpritesheetSize [2]int16 // in sprites.
30707 SpritePos [2]int16 // in sprite sheet.
30709 MakeFootstepSnds bool
30710 RotateSpeed float32 // in radians per second.
30712 Colors []color.NRGBA
30713 CollideWithAOs bool
30716 FaceRotateDirOff float32 // in degrees.
30719 NametagColor color.NRGBA
30720 FaceRotateSpeed float32 // in degrees per second.
30724 MaxBreath uint16 // Player only.
30725 EyeHeight float32 // Player only.
30726 ZoomFOV float32 // in degrees. Player only.
30727 UseTextureAlpha bool
30728 DmgTextureMod Texture // suffix
30731 NametagBG color.NRGBA
30734 p := &((*(*(struct {
30735 MaxHP uint16 // Player only.
30736 CollideWithNodes bool
30737 Weight float32 // deprecated
30741 VisualSize [3]float32
30743 SpritesheetSize [2]int16 // in sprites.
30744 SpritePos [2]int16 // in sprite sheet.
30746 MakeFootstepSnds bool
30747 RotateSpeed float32 // in radians per second.
30749 Colors []color.NRGBA
30750 CollideWithAOs bool
30753 FaceRotateDirOff float32 // in degrees.
30756 NametagColor color.NRGBA
30757 FaceRotateSpeed float32 // in degrees per second.
30761 MaxBreath uint16 // Player only.
30762 EyeHeight float32 // Player only.
30763 ZoomFOV float32 // in degrees. Player only.
30764 UseTextureAlpha bool
30765 DmgTextureMod Texture // suffix
30768 NametagBG color.NRGBA
30769 }))(obj)).Colors)[local340]
30770 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30774 p := &(*(*(struct {
30775 MaxHP uint16 // Player only.
30776 CollideWithNodes bool
30777 Weight float32 // deprecated
30781 VisualSize [3]float32
30783 SpritesheetSize [2]int16 // in sprites.
30784 SpritePos [2]int16 // in sprite sheet.
30786 MakeFootstepSnds bool
30787 RotateSpeed float32 // in radians per second.
30789 Colors []color.NRGBA
30790 CollideWithAOs bool
30793 FaceRotateDirOff float32 // in degrees.
30796 NametagColor color.NRGBA
30797 FaceRotateSpeed float32 // in degrees per second.
30801 MaxBreath uint16 // Player only.
30802 EyeHeight float32 // Player only.
30803 ZoomFOV float32 // in degrees. Player only.
30804 UseTextureAlpha bool
30805 DmgTextureMod Texture // suffix
30808 NametagBG color.NRGBA
30809 }))(obj)).CollideWithAOs
30810 switch n := read8(r); n {
30816 chk(fmt.Errorf("invalid bool: %d", n))
30820 p := &(*(*(struct {
30821 MaxHP uint16 // Player only.
30822 CollideWithNodes bool
30823 Weight float32 // deprecated
30827 VisualSize [3]float32
30829 SpritesheetSize [2]int16 // in sprites.
30830 SpritePos [2]int16 // in sprite sheet.
30832 MakeFootstepSnds bool
30833 RotateSpeed float32 // in radians per second.
30835 Colors []color.NRGBA
30836 CollideWithAOs bool
30839 FaceRotateDirOff float32 // in degrees.
30842 NametagColor color.NRGBA
30843 FaceRotateSpeed float32 // in degrees per second.
30847 MaxBreath uint16 // Player only.
30848 EyeHeight float32 // Player only.
30849 ZoomFOV float32 // in degrees. Player only.
30850 UseTextureAlpha bool
30851 DmgTextureMod Texture // suffix
30854 NametagBG color.NRGBA
30855 }))(obj)).StepHeight
30856 *p = math.Float32frombits(read32(r))
30859 p := &(*(*(struct {
30860 MaxHP uint16 // Player only.
30861 CollideWithNodes bool
30862 Weight float32 // deprecated
30866 VisualSize [3]float32
30868 SpritesheetSize [2]int16 // in sprites.
30869 SpritePos [2]int16 // in sprite sheet.
30871 MakeFootstepSnds bool
30872 RotateSpeed float32 // in radians per second.
30874 Colors []color.NRGBA
30875 CollideWithAOs bool
30878 FaceRotateDirOff float32 // in degrees.
30881 NametagColor color.NRGBA
30882 FaceRotateSpeed float32 // in degrees per second.
30886 MaxBreath uint16 // Player only.
30887 EyeHeight float32 // Player only.
30888 ZoomFOV float32 // in degrees. Player only.
30889 UseTextureAlpha bool
30890 DmgTextureMod Texture // suffix
30893 NametagBG color.NRGBA
30894 }))(obj)).FaceRotateDir
30895 switch n := read8(r); n {
30901 chk(fmt.Errorf("invalid bool: %d", n))
30905 p := &(*(*(struct {
30906 MaxHP uint16 // Player only.
30907 CollideWithNodes bool
30908 Weight float32 // deprecated
30912 VisualSize [3]float32
30914 SpritesheetSize [2]int16 // in sprites.
30915 SpritePos [2]int16 // in sprite sheet.
30917 MakeFootstepSnds bool
30918 RotateSpeed float32 // in radians per second.
30920 Colors []color.NRGBA
30921 CollideWithAOs bool
30924 FaceRotateDirOff float32 // in degrees.
30927 NametagColor color.NRGBA
30928 FaceRotateSpeed float32 // in degrees per second.
30932 MaxBreath uint16 // Player only.
30933 EyeHeight float32 // Player only.
30934 ZoomFOV float32 // in degrees. Player only.
30935 UseTextureAlpha bool
30936 DmgTextureMod Texture // suffix
30939 NametagBG color.NRGBA
30940 }))(obj)).FaceRotateDirOff
30941 *p = math.Float32frombits(read32(r))
30944 p := &(*(*(struct {
30945 MaxHP uint16 // Player only.
30946 CollideWithNodes bool
30947 Weight float32 // deprecated
30951 VisualSize [3]float32
30953 SpritesheetSize [2]int16 // in sprites.
30954 SpritePos [2]int16 // in sprite sheet.
30956 MakeFootstepSnds bool
30957 RotateSpeed float32 // in radians per second.
30959 Colors []color.NRGBA
30960 CollideWithAOs bool
30963 FaceRotateDirOff float32 // in degrees.
30966 NametagColor color.NRGBA
30967 FaceRotateSpeed float32 // in degrees per second.
30971 MaxBreath uint16 // Player only.
30972 EyeHeight float32 // Player only.
30973 ZoomFOV float32 // in degrees. Player only.
30974 UseTextureAlpha bool
30975 DmgTextureMod Texture // suffix
30978 NametagBG color.NRGBA
30979 }))(obj)).BackfaceCull
30980 switch n := read8(r); n {
30986 chk(fmt.Errorf("invalid bool: %d", n))
30989 var local341 []uint8
30990 var local342 uint16
30995 (local341) = make([]uint8, local342)
30997 _, err := io.ReadFull(r, (local341)[:])
31001 MaxHP uint16 // Player only.
31002 CollideWithNodes bool
31003 Weight float32 // deprecated
31007 VisualSize [3]float32
31009 SpritesheetSize [2]int16 // in sprites.
31010 SpritePos [2]int16 // in sprite sheet.
31012 MakeFootstepSnds bool
31013 RotateSpeed float32 // in radians per second.
31015 Colors []color.NRGBA
31016 CollideWithAOs bool
31019 FaceRotateDirOff float32 // in degrees.
31022 NametagColor color.NRGBA
31023 FaceRotateSpeed float32 // in degrees per second.
31027 MaxBreath uint16 // Player only.
31028 EyeHeight float32 // Player only.
31029 ZoomFOV float32 // in degrees. Player only.
31030 UseTextureAlpha bool
31031 DmgTextureMod Texture // suffix
31034 NametagBG color.NRGBA
31035 }))(obj)).Nametag) = string(local341)
31037 p := &(*(*(struct {
31038 MaxHP uint16 // Player only.
31039 CollideWithNodes bool
31040 Weight float32 // deprecated
31044 VisualSize [3]float32
31046 SpritesheetSize [2]int16 // in sprites.
31047 SpritePos [2]int16 // in sprite sheet.
31049 MakeFootstepSnds bool
31050 RotateSpeed float32 // in radians per second.
31052 Colors []color.NRGBA
31053 CollideWithAOs bool
31056 FaceRotateDirOff float32 // in degrees.
31059 NametagColor color.NRGBA
31060 FaceRotateSpeed float32 // in degrees per second.
31064 MaxBreath uint16 // Player only.
31065 EyeHeight float32 // Player only.
31066 ZoomFOV float32 // in degrees. Player only.
31067 UseTextureAlpha bool
31068 DmgTextureMod Texture // suffix
31071 NametagBG color.NRGBA
31072 }))(obj)).NametagColor
31073 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31076 p := &(*(*(struct {
31077 MaxHP uint16 // Player only.
31078 CollideWithNodes bool
31079 Weight float32 // deprecated
31083 VisualSize [3]float32
31085 SpritesheetSize [2]int16 // in sprites.
31086 SpritePos [2]int16 // in sprite sheet.
31088 MakeFootstepSnds bool
31089 RotateSpeed float32 // in radians per second.
31091 Colors []color.NRGBA
31092 CollideWithAOs bool
31095 FaceRotateDirOff float32 // in degrees.
31098 NametagColor color.NRGBA
31099 FaceRotateSpeed float32 // in degrees per second.
31103 MaxBreath uint16 // Player only.
31104 EyeHeight float32 // Player only.
31105 ZoomFOV float32 // in degrees. Player only.
31106 UseTextureAlpha bool
31107 DmgTextureMod Texture // suffix
31110 NametagBG color.NRGBA
31111 }))(obj)).FaceRotateSpeed
31112 *p = math.Float32frombits(read32(r))
31114 var local343 []uint8
31115 var local344 uint16
31120 (local343) = make([]uint8, local344)
31122 _, err := io.ReadFull(r, (local343)[:])
31126 MaxHP uint16 // Player only.
31127 CollideWithNodes bool
31128 Weight float32 // deprecated
31132 VisualSize [3]float32
31134 SpritesheetSize [2]int16 // in sprites.
31135 SpritePos [2]int16 // in sprite sheet.
31137 MakeFootstepSnds bool
31138 RotateSpeed float32 // in radians per second.
31140 Colors []color.NRGBA
31141 CollideWithAOs bool
31144 FaceRotateDirOff float32 // in degrees.
31147 NametagColor color.NRGBA
31148 FaceRotateSpeed float32 // in degrees per second.
31152 MaxBreath uint16 // Player only.
31153 EyeHeight float32 // Player only.
31154 ZoomFOV float32 // in degrees. Player only.
31155 UseTextureAlpha bool
31156 DmgTextureMod Texture // suffix
31159 NametagBG color.NRGBA
31160 }))(obj)).Infotext) = string(local343)
31161 var local345 []uint8
31162 var local346 uint16
31167 (local345) = make([]uint8, local346)
31169 _, err := io.ReadFull(r, (local345)[:])
31173 MaxHP uint16 // Player only.
31174 CollideWithNodes bool
31175 Weight float32 // deprecated
31179 VisualSize [3]float32
31181 SpritesheetSize [2]int16 // in sprites.
31182 SpritePos [2]int16 // in sprite sheet.
31184 MakeFootstepSnds bool
31185 RotateSpeed float32 // in radians per second.
31187 Colors []color.NRGBA
31188 CollideWithAOs bool
31191 FaceRotateDirOff float32 // in degrees.
31194 NametagColor color.NRGBA
31195 FaceRotateSpeed float32 // in degrees per second.
31199 MaxBreath uint16 // Player only.
31200 EyeHeight float32 // Player only.
31201 ZoomFOV float32 // in degrees. Player only.
31202 UseTextureAlpha bool
31203 DmgTextureMod Texture // suffix
31206 NametagBG color.NRGBA
31207 }))(obj)).Itemstring) = string(local345)
31209 p := &(*(*(struct {
31210 MaxHP uint16 // Player only.
31211 CollideWithNodes bool
31212 Weight float32 // deprecated
31216 VisualSize [3]float32
31218 SpritesheetSize [2]int16 // in sprites.
31219 SpritePos [2]int16 // in sprite sheet.
31221 MakeFootstepSnds bool
31222 RotateSpeed float32 // in radians per second.
31224 Colors []color.NRGBA
31225 CollideWithAOs bool
31228 FaceRotateDirOff float32 // in degrees.
31231 NametagColor color.NRGBA
31232 FaceRotateSpeed float32 // in degrees per second.
31236 MaxBreath uint16 // Player only.
31237 EyeHeight float32 // Player only.
31238 ZoomFOV float32 // in degrees. Player only.
31239 UseTextureAlpha bool
31240 DmgTextureMod Texture // suffix
31243 NametagBG color.NRGBA
31245 *p = int8(read8(r))
31248 p := &(*(*(struct {
31249 MaxHP uint16 // Player only.
31250 CollideWithNodes bool
31251 Weight float32 // deprecated
31255 VisualSize [3]float32
31257 SpritesheetSize [2]int16 // in sprites.
31258 SpritePos [2]int16 // in sprite sheet.
31260 MakeFootstepSnds bool
31261 RotateSpeed float32 // in radians per second.
31263 Colors []color.NRGBA
31264 CollideWithAOs bool
31267 FaceRotateDirOff float32 // in degrees.
31270 NametagColor color.NRGBA
31271 FaceRotateSpeed float32 // in degrees per second.
31275 MaxBreath uint16 // Player only.
31276 EyeHeight float32 // Player only.
31277 ZoomFOV float32 // in degrees. Player only.
31278 UseTextureAlpha bool
31279 DmgTextureMod Texture // suffix
31282 NametagBG color.NRGBA
31283 }))(obj)).MaxBreath
31287 p := &(*(*(struct {
31288 MaxHP uint16 // Player only.
31289 CollideWithNodes bool
31290 Weight float32 // deprecated
31294 VisualSize [3]float32
31296 SpritesheetSize [2]int16 // in sprites.
31297 SpritePos [2]int16 // in sprite sheet.
31299 MakeFootstepSnds bool
31300 RotateSpeed float32 // in radians per second.
31302 Colors []color.NRGBA
31303 CollideWithAOs bool
31306 FaceRotateDirOff float32 // in degrees.
31309 NametagColor color.NRGBA
31310 FaceRotateSpeed float32 // in degrees per second.
31314 MaxBreath uint16 // Player only.
31315 EyeHeight float32 // Player only.
31316 ZoomFOV float32 // in degrees. Player only.
31317 UseTextureAlpha bool
31318 DmgTextureMod Texture // suffix
31321 NametagBG color.NRGBA
31322 }))(obj)).EyeHeight
31323 *p = math.Float32frombits(read32(r))
31326 p := &(*(*(struct {
31327 MaxHP uint16 // Player only.
31328 CollideWithNodes bool
31329 Weight float32 // deprecated
31333 VisualSize [3]float32
31335 SpritesheetSize [2]int16 // in sprites.
31336 SpritePos [2]int16 // in sprite sheet.
31338 MakeFootstepSnds bool
31339 RotateSpeed float32 // in radians per second.
31341 Colors []color.NRGBA
31342 CollideWithAOs bool
31345 FaceRotateDirOff float32 // in degrees.
31348 NametagColor color.NRGBA
31349 FaceRotateSpeed float32 // in degrees per second.
31353 MaxBreath uint16 // Player only.
31354 EyeHeight float32 // Player only.
31355 ZoomFOV float32 // in degrees. Player only.
31356 UseTextureAlpha bool
31357 DmgTextureMod Texture // suffix
31360 NametagBG color.NRGBA
31362 *p = math.Float32frombits(read32(r))
31365 p := &(*(*(struct {
31366 MaxHP uint16 // Player only.
31367 CollideWithNodes bool
31368 Weight float32 // deprecated
31372 VisualSize [3]float32
31374 SpritesheetSize [2]int16 // in sprites.
31375 SpritePos [2]int16 // in sprite sheet.
31377 MakeFootstepSnds bool
31378 RotateSpeed float32 // in radians per second.
31380 Colors []color.NRGBA
31381 CollideWithAOs bool
31384 FaceRotateDirOff float32 // in degrees.
31387 NametagColor color.NRGBA
31388 FaceRotateSpeed float32 // in degrees per second.
31392 MaxBreath uint16 // Player only.
31393 EyeHeight float32 // Player only.
31394 ZoomFOV float32 // in degrees. Player only.
31395 UseTextureAlpha bool
31396 DmgTextureMod Texture // suffix
31399 NametagBG color.NRGBA
31400 }))(obj)).UseTextureAlpha
31401 switch n := read8(r); n {
31407 chk(fmt.Errorf("invalid bool: %d", n))
31410 if err := pcall(func() {
31412 MaxHP uint16 // Player only.
31413 CollideWithNodes bool
31414 Weight float32 // deprecated
31418 VisualSize [3]float32
31420 SpritesheetSize [2]int16 // in sprites.
31421 SpritePos [2]int16 // in sprite sheet.
31423 MakeFootstepSnds bool
31424 RotateSpeed float32 // in radians per second.
31426 Colors []color.NRGBA
31427 CollideWithAOs bool
31430 FaceRotateDirOff float32 // in degrees.
31433 NametagColor color.NRGBA
31434 FaceRotateSpeed float32 // in degrees per second.
31438 MaxBreath uint16 // Player only.
31439 EyeHeight float32 // Player only.
31440 ZoomFOV float32 // in degrees. Player only.
31441 UseTextureAlpha bool
31442 DmgTextureMod Texture // suffix
31445 NametagBG color.NRGBA
31446 }))(obj)).DmgTextureMod).deserialize(r)
31451 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
31454 p := &(*(*(struct {
31455 MaxHP uint16 // Player only.
31456 CollideWithNodes bool
31457 Weight float32 // deprecated
31461 VisualSize [3]float32
31463 SpritesheetSize [2]int16 // in sprites.
31464 SpritePos [2]int16 // in sprite sheet.
31466 MakeFootstepSnds bool
31467 RotateSpeed float32 // in radians per second.
31469 Colors []color.NRGBA
31470 CollideWithAOs bool
31473 FaceRotateDirOff float32 // in degrees.
31476 NametagColor color.NRGBA
31477 FaceRotateSpeed float32 // in degrees per second.
31481 MaxBreath uint16 // Player only.
31482 EyeHeight float32 // Player only.
31483 ZoomFOV float32 // in degrees. Player only.
31484 UseTextureAlpha bool
31485 DmgTextureMod Texture // suffix
31488 NametagBG color.NRGBA
31490 switch n := read8(r); n {
31496 chk(fmt.Errorf("invalid bool: %d", n))
31500 p := &(*(*(struct {
31501 MaxHP uint16 // Player only.
31502 CollideWithNodes bool
31503 Weight float32 // deprecated
31507 VisualSize [3]float32
31509 SpritesheetSize [2]int16 // in sprites.
31510 SpritePos [2]int16 // in sprite sheet.
31512 MakeFootstepSnds bool
31513 RotateSpeed float32 // in radians per second.
31515 Colors []color.NRGBA
31516 CollideWithAOs bool
31519 FaceRotateDirOff float32 // in degrees.
31522 NametagColor color.NRGBA
31523 FaceRotateSpeed float32 // in degrees per second.
31527 MaxBreath uint16 // Player only.
31528 EyeHeight float32 // Player only.
31529 ZoomFOV float32 // in degrees. Player only.
31530 UseTextureAlpha bool
31531 DmgTextureMod Texture // suffix
31534 NametagBG color.NRGBA
31535 }))(obj)).ShowOnMinimap
31536 switch n := read8(r); n {
31542 chk(fmt.Errorf("invalid bool: %d", n))
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)).NametagBG
31582 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31586 func (obj *AOPos) serialize(w io.Writer) {
31587 if err := pcall(func() {
31595 UpdateInterval float32
31596 }))(obj)).Pos).serialize(w)
31601 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
31603 if err := pcall(func() {
31611 UpdateInterval float32
31612 }))(obj)).Vel).serialize(w)
31617 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31619 if err := pcall(func() {
31627 UpdateInterval float32
31628 }))(obj)).Acc).serialize(w)
31633 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31635 for local347 := range (*(*(struct {
31642 UpdateInterval float32
31645 x := ((*(*(struct {
31652 UpdateInterval float32
31653 }))(obj)).Rot)[local347]
31654 write32(w, math.Float32bits(x))
31665 UpdateInterval float32
31666 }))(obj)).Interpolate
31681 UpdateInterval float32
31697 UpdateInterval float32
31698 }))(obj)).UpdateInterval
31699 write32(w, math.Float32bits(x))
31703 func (obj *AOPos) deserialize(r io.Reader) {
31704 if err := pcall(func() {
31712 UpdateInterval float32
31713 }))(obj)).Pos).deserialize(r)
31718 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
31720 if err := pcall(func() {
31728 UpdateInterval float32
31729 }))(obj)).Vel).deserialize(r)
31734 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31736 if err := pcall(func() {
31744 UpdateInterval float32
31745 }))(obj)).Acc).deserialize(r)
31750 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31752 for local348 := range (*(*(struct {
31759 UpdateInterval float32
31762 p := &((*(*(struct {
31769 UpdateInterval float32
31770 }))(obj)).Rot)[local348]
31771 *p = math.Float32frombits(read32(r))
31775 p := &(*(*(struct {
31782 UpdateInterval float32
31783 }))(obj)).Interpolate
31784 switch n := read8(r); n {
31790 chk(fmt.Errorf("invalid bool: %d", n))
31794 p := &(*(*(struct {
31801 UpdateInterval float32
31803 switch n := read8(r); n {
31809 chk(fmt.Errorf("invalid bool: %d", n))
31813 p := &(*(*(struct {
31820 UpdateInterval float32
31821 }))(obj)).UpdateInterval
31822 *p = math.Float32frombits(read32(r))
31826 func (obj *AOSprite) serialize(w io.Writer) {
31827 for local349 := range (*(*(struct {
31830 FrameDuration float32
31831 ViewAngleFrames bool
31834 x := ((*(*(struct {
31837 FrameDuration float32
31838 ViewAngleFrames bool
31839 }))(obj)).Frame0)[local349]
31840 write16(w, uint16(x))
31847 FrameDuration float32
31848 ViewAngleFrames bool
31850 write16(w, uint16(x))
31856 FrameDuration float32
31857 ViewAngleFrames bool
31858 }))(obj)).FrameDuration
31859 write32(w, math.Float32bits(x))
31865 FrameDuration float32
31866 ViewAngleFrames bool
31867 }))(obj)).ViewAngleFrames
31876 func (obj *AOSprite) deserialize(r io.Reader) {
31877 for local350 := range (*(*(struct {
31880 FrameDuration float32
31881 ViewAngleFrames bool
31884 p := &((*(*(struct {
31887 FrameDuration float32
31888 ViewAngleFrames bool
31889 }))(obj)).Frame0)[local350]
31890 *p = int16(read16(r))
31894 p := &(*(*(struct {
31897 FrameDuration float32
31898 ViewAngleFrames bool
31903 p := &(*(*(struct {
31906 FrameDuration float32
31907 ViewAngleFrames bool
31908 }))(obj)).FrameDuration
31909 *p = math.Float32frombits(read32(r))
31912 p := &(*(*(struct {
31915 FrameDuration float32
31916 ViewAngleFrames bool
31917 }))(obj)).ViewAngleFrames
31918 switch n := read8(r); n {
31924 chk(fmt.Errorf("invalid bool: %d", n))
31929 func (obj *Group) serialize(w io.Writer) {
31930 if len(([]byte((*(*(struct {
31933 }))(obj)).Name))) > math.MaxUint16 {
31937 x := uint16(len(([]byte((*(*(struct {
31941 write16(w, uint16(x))
31944 _, err := w.Write(([]byte((*(*(struct {
31947 }))(obj)).Name))[:])
31955 write16(w, uint16(x))
31959 func (obj *Group) deserialize(r io.Reader) {
31960 var local351 []uint8
31961 var local352 uint16
31966 (local351) = make([]uint8, local352)
31968 _, err := io.ReadFull(r, (local351)[:])
31974 }))(obj)).Name) = string(local351)
31976 p := &(*(*(struct {
31980 *p = int16(read16(r))
31984 func (obj *AOAnim) serialize(w io.Writer) {
31985 for local353 := range (*(*(struct {
31992 x := ((*(*(struct {
31997 }))(obj)).Frames)[local353]
31998 write32(w, uint32(x))
32008 write32(w, math.Float32bits(x))
32017 write32(w, math.Float32bits(x))
32034 func (obj *AOAnim) deserialize(r io.Reader) {
32035 for local354 := range (*(*(struct {
32042 p := &((*(*(struct {
32047 }))(obj)).Frames)[local354]
32048 *p = int32(read32(r))
32052 p := &(*(*(struct {
32058 *p = math.Float32frombits(read32(r))
32061 p := &(*(*(struct {
32067 *p = math.Float32frombits(read32(r))
32070 p := &(*(*(struct {
32076 switch n := read8(r); n {
32082 chk(fmt.Errorf("invalid bool: %d", n))
32087 func (obj *AOBonePos) serialize(w io.Writer) {
32088 if err := pcall(func() {
32092 }))(obj)).Pos).serialize(w)
32097 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
32099 for local355 := range (*(*(struct {
32104 x := ((*(*(struct {
32107 }))(obj)).Rot)[local355]
32108 write32(w, math.Float32bits(x))
32113 func (obj *AOBonePos) deserialize(r io.Reader) {
32114 if err := pcall(func() {
32118 }))(obj)).Pos).deserialize(r)
32123 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
32125 for local356 := range (*(*(struct {
32130 p := &((*(*(struct {
32133 }))(obj)).Rot)[local356]
32134 *p = math.Float32frombits(read32(r))
32139 func (obj *AOAttach) serialize(w io.Writer) {
32140 if err := pcall(func() {
32147 }))(obj)).ParentID).serialize(w)
32152 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
32154 if len(([]byte((*(*(struct {
32160 }))(obj)).Bone))) > math.MaxUint16 {
32164 x := uint16(len(([]byte((*(*(struct {
32171 write16(w, uint16(x))
32174 _, err := w.Write(([]byte((*(*(struct {
32180 }))(obj)).Bone))[:])
32183 if err := pcall(func() {
32190 }))(obj)).Pos).serialize(w)
32195 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
32197 for local357 := range (*(*(struct {
32205 x := ((*(*(struct {
32211 }))(obj)).Rot)[local357]
32212 write32(w, math.Float32bits(x))
32222 }))(obj)).ForceVisible
32231 func (obj *AOAttach) deserialize(r io.Reader) {
32232 if err := pcall(func() {
32239 }))(obj)).ParentID).deserialize(r)
32244 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
32246 var local358 []uint8
32247 var local359 uint16
32252 (local358) = make([]uint8, local359)
32254 _, err := io.ReadFull(r, (local358)[:])
32263 }))(obj)).Bone) = string(local358)
32264 if err := pcall(func() {
32271 }))(obj)).Pos).deserialize(r)
32276 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
32278 for local360 := range (*(*(struct {
32286 p := &((*(*(struct {
32292 }))(obj)).Rot)[local360]
32293 *p = math.Float32frombits(read32(r))
32297 p := &(*(*(struct {
32303 }))(obj)).ForceVisible
32304 switch n := read8(r); n {
32310 chk(fmt.Errorf("invalid bool: %d", n))
32315 func (obj *AOPhysOverride) serialize(w io.Writer) {
32318 Walk, Jump, Gravity float32
32321 NoSneak, NoSneakGlitch, OldSneak bool
32323 write32(w, math.Float32bits(x))
32327 Walk, Jump, Gravity float32
32330 NoSneak, NoSneakGlitch, OldSneak bool
32332 write32(w, math.Float32bits(x))
32336 Walk, Jump, Gravity float32
32339 NoSneak, NoSneakGlitch, OldSneak bool
32341 write32(w, math.Float32bits(x))
32345 Walk, Jump, Gravity float32
32348 NoSneak, NoSneakGlitch, OldSneak bool
32358 Walk, Jump, Gravity float32
32361 NoSneak, NoSneakGlitch, OldSneak bool
32362 }))(obj)).NoSneakGlitch
32371 Walk, Jump, Gravity float32
32374 NoSneak, NoSneakGlitch, OldSneak bool
32384 func (obj *AOPhysOverride) deserialize(r io.Reader) {
32386 p := &(*(*(struct {
32387 Walk, Jump, Gravity float32
32390 NoSneak, NoSneakGlitch, OldSneak bool
32392 *p = math.Float32frombits(read32(r))
32395 p := &(*(*(struct {
32396 Walk, Jump, Gravity float32
32399 NoSneak, NoSneakGlitch, OldSneak bool
32401 *p = math.Float32frombits(read32(r))
32404 p := &(*(*(struct {
32405 Walk, Jump, Gravity float32
32408 NoSneak, NoSneakGlitch, OldSneak bool
32410 *p = math.Float32frombits(read32(r))
32413 p := &(*(*(struct {
32414 Walk, Jump, Gravity float32
32417 NoSneak, NoSneakGlitch, OldSneak bool
32419 switch n := read8(r); n {
32425 chk(fmt.Errorf("invalid bool: %d", n))
32429 p := &(*(*(struct {
32430 Walk, Jump, Gravity float32
32433 NoSneak, NoSneakGlitch, OldSneak bool
32434 }))(obj)).NoSneakGlitch
32435 switch n := read8(r); n {
32441 chk(fmt.Errorf("invalid bool: %d", n))
32445 p := &(*(*(struct {
32446 Walk, Jump, Gravity float32
32449 NoSneak, NoSneakGlitch, OldSneak bool
32451 switch n := read8(r); n {
32457 chk(fmt.Errorf("invalid bool: %d", n))
32462 func (obj *NodeMetaField) serialize(w io.Writer) {
32463 if err := pcall(func() {
32467 }))(obj)).Field).serialize(w)
32472 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
32487 func (obj *NodeMetaField) deserialize(r io.Reader) {
32488 if err := pcall(func() {
32492 }))(obj)).Field).deserialize(r)
32497 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
32500 p := &(*(*(struct {
32504 switch n := read8(r); n {
32510 chk(fmt.Errorf("invalid bool: %d", n))
32515 func (obj *MinimapType) serialize(w io.Writer) {
32517 x := *(*(uint16))(obj)
32518 write16(w, uint16(x))
32522 func (obj *MinimapType) deserialize(r io.Reader) {
32524 p := &*(*(uint16))(obj)
32529 func (obj *Param1Type) serialize(w io.Writer) {
32531 x := *(*(uint8))(obj)
32532 write8(w, uint8(x))
32536 func (obj *Param1Type) deserialize(r io.Reader) {
32538 p := &*(*(uint8))(obj)
32543 func (obj *Param2Type) serialize(w io.Writer) {
32545 x := *(*(uint8))(obj)
32546 write8(w, uint8(x))
32550 func (obj *Param2Type) deserialize(r io.Reader) {
32552 p := &*(*(uint8))(obj)
32557 func (obj *DrawType) serialize(w io.Writer) {
32559 x := *(*(uint8))(obj)
32560 write8(w, uint8(x))
32564 func (obj *DrawType) deserialize(r io.Reader) {
32566 p := &*(*(uint8))(obj)
32571 func (obj *TileDef) serialize(w io.Writer) {
32573 local361 := uint8(6)
32576 write8(w, uint8(x))
32579 if err := pcall(func() {
32585 //mt:if %s.Flags&TileColor != 0
32588 //mt:if %s.Flags&TileScale != 0
32591 //mt:if %s.Flags&TileAlign != 0
32593 }))(obj)).Texture).serialize(w)
32598 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32600 if err := pcall(func() {
32606 //mt:if %s.Flags&TileColor != 0
32609 //mt:if %s.Flags&TileScale != 0
32612 //mt:if %s.Flags&TileAlign != 0
32614 }))(obj)).Anim).serialize(w)
32619 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32621 if err := pcall(func() {
32627 //mt:if %s.Flags&TileColor != 0
32630 //mt:if %s.Flags&TileScale != 0
32633 //mt:if %s.Flags&TileAlign != 0
32635 }))(obj)).Flags).serialize(w)
32640 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32647 //mt:if %s.Flags&TileColor != 0
32650 //mt:if %s.Flags&TileScale != 0
32653 //mt:if %s.Flags&TileAlign != 0
32655 }))(obj)).Flags&TileColor != 0 {
32662 //mt:if %s.Flags&TileColor != 0
32665 //mt:if %s.Flags&TileScale != 0
32668 //mt:if %s.Flags&TileAlign != 0
32671 write8(w, uint8(x))
32679 //mt:if %s.Flags&TileColor != 0
32682 //mt:if %s.Flags&TileScale != 0
32685 //mt:if %s.Flags&TileAlign != 0
32688 write8(w, uint8(x))
32696 //mt:if %s.Flags&TileColor != 0
32699 //mt:if %s.Flags&TileScale != 0
32702 //mt:if %s.Flags&TileAlign != 0
32705 write8(w, uint8(x))
32713 //mt:if %s.Flags&TileColor != 0
32716 //mt:if %s.Flags&TileScale != 0
32719 //mt:if %s.Flags&TileAlign != 0
32721 }))(obj)).Flags&TileScale != 0 {
32728 //mt:if %s.Flags&TileColor != 0
32731 //mt:if %s.Flags&TileScale != 0
32734 //mt:if %s.Flags&TileAlign != 0
32737 write8(w, uint8(x))
32745 //mt:if %s.Flags&TileColor != 0
32748 //mt:if %s.Flags&TileScale != 0
32751 //mt:if %s.Flags&TileAlign != 0
32753 }))(obj)).Flags&TileAlign != 0 {
32754 if err := pcall(func() {
32760 //mt:if %s.Flags&TileColor != 0
32763 //mt:if %s.Flags&TileScale != 0
32766 //mt:if %s.Flags&TileAlign != 0
32768 }))(obj)).Align).serialize(w)
32773 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32778 func (obj *TileDef) deserialize(r io.Reader) {
32785 if local362 != (6) {
32786 chk(fmt.Errorf("const %v: %v", 6, local362))
32789 if err := pcall(func() {
32795 //mt:if %s.Flags&TileColor != 0
32798 //mt:if %s.Flags&TileScale != 0
32801 //mt:if %s.Flags&TileAlign != 0
32803 }))(obj)).Texture).deserialize(r)
32808 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32810 if err := pcall(func() {
32816 //mt:if %s.Flags&TileColor != 0
32819 //mt:if %s.Flags&TileScale != 0
32822 //mt:if %s.Flags&TileAlign != 0
32824 }))(obj)).Anim).deserialize(r)
32829 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32831 if err := pcall(func() {
32837 //mt:if %s.Flags&TileColor != 0
32840 //mt:if %s.Flags&TileScale != 0
32843 //mt:if %s.Flags&TileAlign != 0
32845 }))(obj)).Flags).deserialize(r)
32850 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32857 //mt:if %s.Flags&TileColor != 0
32860 //mt:if %s.Flags&TileScale != 0
32863 //mt:if %s.Flags&TileAlign != 0
32865 }))(obj)).Flags&TileColor != 0 {
32867 p := &(*(*(struct {
32872 //mt:if %s.Flags&TileColor != 0
32875 //mt:if %s.Flags&TileScale != 0
32878 //mt:if %s.Flags&TileAlign != 0
32884 p := &(*(*(struct {
32889 //mt:if %s.Flags&TileColor != 0
32892 //mt:if %s.Flags&TileScale != 0
32895 //mt:if %s.Flags&TileAlign != 0
32901 p := &(*(*(struct {
32906 //mt:if %s.Flags&TileColor != 0
32909 //mt:if %s.Flags&TileScale != 0
32912 //mt:if %s.Flags&TileAlign != 0
32923 //mt:if %s.Flags&TileColor != 0
32926 //mt:if %s.Flags&TileScale != 0
32929 //mt:if %s.Flags&TileAlign != 0
32931 }))(obj)).Flags&TileScale != 0 {
32933 p := &(*(*(struct {
32938 //mt:if %s.Flags&TileColor != 0
32941 //mt:if %s.Flags&TileScale != 0
32944 //mt:if %s.Flags&TileAlign != 0
32955 //mt:if %s.Flags&TileColor != 0
32958 //mt:if %s.Flags&TileScale != 0
32961 //mt:if %s.Flags&TileAlign != 0
32963 }))(obj)).Flags&TileAlign != 0 {
32964 if err := pcall(func() {
32970 //mt:if %s.Flags&TileColor != 0
32973 //mt:if %s.Flags&TileScale != 0
32976 //mt:if %s.Flags&TileAlign != 0
32978 }))(obj)).Align).deserialize(r)
32983 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32988 func (obj *WaveType) serialize(w io.Writer) {
32990 x := *(*(uint8))(obj)
32991 write8(w, uint8(x))
32995 func (obj *WaveType) deserialize(r io.Reader) {
32997 p := &*(*(uint8))(obj)
33002 func (obj *LiquidType) serialize(w io.Writer) {
33004 x := *(*(uint8))(obj)
33005 write8(w, uint8(x))
33009 func (obj *LiquidType) deserialize(r io.Reader) {
33011 p := &*(*(uint8))(obj)
33016 func (obj *NodeBox) serialize(w io.Writer) {
33018 local363 := uint8(6)
33021 write8(w, uint8(x))
33024 if err := pcall(func() {
33028 //mt:if %s.Type == MountedBox
33029 WallTop, WallBot, WallSides Box
33031 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33034 //mt:if %s.Type == ConnectedBox
33035 ConnDirs, DiscoDirs DirBoxes
33036 DiscoAll, DiscoSides []Box
33037 }))(obj)).Type).serialize(w)
33042 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
33047 //mt:if %s.Type == MountedBox
33048 WallTop, WallBot, WallSides Box
33050 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33053 //mt:if %s.Type == ConnectedBox
33054 ConnDirs, DiscoDirs DirBoxes
33055 DiscoAll, DiscoSides []Box
33056 }))(obj)).Type < maxBox) {
33057 chk(errors.New("assertion failed: %s.Type < maxBox"))
33062 //mt:if %s.Type == MountedBox
33063 WallTop, WallBot, WallSides Box
33065 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33068 //mt:if %s.Type == ConnectedBox
33069 ConnDirs, DiscoDirs DirBoxes
33070 DiscoAll, DiscoSides []Box
33071 }))(obj)).Type == MountedBox {
33072 if err := pcall(func() {
33076 //mt:if %s.Type == MountedBox
33077 WallTop, WallBot, WallSides Box
33079 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33082 //mt:if %s.Type == ConnectedBox
33083 ConnDirs, DiscoDirs DirBoxes
33084 DiscoAll, DiscoSides []Box
33085 }))(obj)).WallTop).serialize(w)
33090 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33092 if err := pcall(func() {
33096 //mt:if %s.Type == MountedBox
33097 WallTop, WallBot, WallSides Box
33099 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33102 //mt:if %s.Type == ConnectedBox
33103 ConnDirs, DiscoDirs DirBoxes
33104 DiscoAll, DiscoSides []Box
33105 }))(obj)).WallBot).serialize(w)
33110 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33112 if err := pcall(func() {
33116 //mt:if %s.Type == MountedBox
33117 WallTop, WallBot, WallSides Box
33119 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33122 //mt:if %s.Type == ConnectedBox
33123 ConnDirs, DiscoDirs DirBoxes
33124 DiscoAll, DiscoSides []Box
33125 }))(obj)).WallSides).serialize(w)
33130 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33133 if t := (*(*(struct {
33136 //mt:if %s.Type == MountedBox
33137 WallTop, WallBot, WallSides Box
33139 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33142 //mt:if %s.Type == ConnectedBox
33143 ConnDirs, DiscoDirs DirBoxes
33144 DiscoAll, DiscoSides []Box
33145 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33146 if len(((*(*(struct {
33149 //mt:if %s.Type == MountedBox
33150 WallTop, WallBot, WallSides Box
33152 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33155 //mt:if %s.Type == ConnectedBox
33156 ConnDirs, DiscoDirs DirBoxes
33157 DiscoAll, DiscoSides []Box
33158 }))(obj)).Fixed)) > math.MaxUint16 {
33162 x := uint16(len(((*(*(struct {
33165 //mt:if %s.Type == MountedBox
33166 WallTop, WallBot, WallSides Box
33168 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33171 //mt:if %s.Type == ConnectedBox
33172 ConnDirs, DiscoDirs DirBoxes
33173 DiscoAll, DiscoSides []Box
33175 write16(w, uint16(x))
33177 for local364 := range (*(*(struct {
33180 //mt:if %s.Type == MountedBox
33181 WallTop, WallBot, WallSides Box
33183 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33186 //mt:if %s.Type == ConnectedBox
33187 ConnDirs, DiscoDirs DirBoxes
33188 DiscoAll, DiscoSides []Box
33190 if err := pcall(func() {
33194 //mt:if %s.Type == MountedBox
33195 WallTop, WallBot, WallSides Box
33197 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33200 //mt:if %s.Type == ConnectedBox
33201 ConnDirs, DiscoDirs DirBoxes
33202 DiscoAll, DiscoSides []Box
33203 }))(obj)).Fixed)[local364]).serialize(w)
33208 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33215 //mt:if %s.Type == MountedBox
33216 WallTop, WallBot, WallSides Box
33218 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33221 //mt:if %s.Type == ConnectedBox
33222 ConnDirs, DiscoDirs DirBoxes
33223 DiscoAll, DiscoSides []Box
33224 }))(obj)).Type == ConnectedBox {
33225 if err := pcall(func() {
33229 //mt:if %s.Type == MountedBox
33230 WallTop, WallBot, WallSides Box
33232 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33235 //mt:if %s.Type == ConnectedBox
33236 ConnDirs, DiscoDirs DirBoxes
33237 DiscoAll, DiscoSides []Box
33238 }))(obj)).ConnDirs).serialize(w)
33243 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33245 if err := pcall(func() {
33249 //mt:if %s.Type == MountedBox
33250 WallTop, WallBot, WallSides Box
33252 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33255 //mt:if %s.Type == ConnectedBox
33256 ConnDirs, DiscoDirs DirBoxes
33257 DiscoAll, DiscoSides []Box
33258 }))(obj)).DiscoDirs).serialize(w)
33263 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33265 if len(((*(*(struct {
33268 //mt:if %s.Type == MountedBox
33269 WallTop, WallBot, WallSides Box
33271 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33274 //mt:if %s.Type == ConnectedBox
33275 ConnDirs, DiscoDirs DirBoxes
33276 DiscoAll, DiscoSides []Box
33277 }))(obj)).DiscoAll)) > math.MaxUint16 {
33281 x := uint16(len(((*(*(struct {
33284 //mt:if %s.Type == MountedBox
33285 WallTop, WallBot, WallSides Box
33287 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33290 //mt:if %s.Type == ConnectedBox
33291 ConnDirs, DiscoDirs DirBoxes
33292 DiscoAll, DiscoSides []Box
33293 }))(obj)).DiscoAll)))
33294 write16(w, uint16(x))
33296 for local365 := range (*(*(struct {
33299 //mt:if %s.Type == MountedBox
33300 WallTop, WallBot, WallSides Box
33302 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33305 //mt:if %s.Type == ConnectedBox
33306 ConnDirs, DiscoDirs DirBoxes
33307 DiscoAll, DiscoSides []Box
33308 }))(obj)).DiscoAll {
33309 if err := pcall(func() {
33313 //mt:if %s.Type == MountedBox
33314 WallTop, WallBot, WallSides Box
33316 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33319 //mt:if %s.Type == ConnectedBox
33320 ConnDirs, DiscoDirs DirBoxes
33321 DiscoAll, DiscoSides []Box
33322 }))(obj)).DiscoAll)[local365]).serialize(w)
33327 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33330 if len(((*(*(struct {
33333 //mt:if %s.Type == MountedBox
33334 WallTop, WallBot, WallSides Box
33336 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33339 //mt:if %s.Type == ConnectedBox
33340 ConnDirs, DiscoDirs DirBoxes
33341 DiscoAll, DiscoSides []Box
33342 }))(obj)).DiscoSides)) > math.MaxUint16 {
33346 x := uint16(len(((*(*(struct {
33349 //mt:if %s.Type == MountedBox
33350 WallTop, WallBot, WallSides Box
33352 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33355 //mt:if %s.Type == ConnectedBox
33356 ConnDirs, DiscoDirs DirBoxes
33357 DiscoAll, DiscoSides []Box
33358 }))(obj)).DiscoSides)))
33359 write16(w, uint16(x))
33361 for local366 := range (*(*(struct {
33364 //mt:if %s.Type == MountedBox
33365 WallTop, WallBot, WallSides Box
33367 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33370 //mt:if %s.Type == ConnectedBox
33371 ConnDirs, DiscoDirs DirBoxes
33372 DiscoAll, DiscoSides []Box
33373 }))(obj)).DiscoSides {
33374 if err := pcall(func() {
33378 //mt:if %s.Type == MountedBox
33379 WallTop, WallBot, WallSides Box
33381 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33384 //mt:if %s.Type == ConnectedBox
33385 ConnDirs, DiscoDirs DirBoxes
33386 DiscoAll, DiscoSides []Box
33387 }))(obj)).DiscoSides)[local366]).serialize(w)
33392 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33398 func (obj *NodeBox) deserialize(r io.Reader) {
33405 if local367 != (6) {
33406 chk(fmt.Errorf("const %v: %v", 6, local367))
33409 if err := pcall(func() {
33413 //mt:if %s.Type == MountedBox
33414 WallTop, WallBot, WallSides Box
33416 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33419 //mt:if %s.Type == ConnectedBox
33420 ConnDirs, DiscoDirs DirBoxes
33421 DiscoAll, DiscoSides []Box
33422 }))(obj)).Type).deserialize(r)
33427 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
33432 //mt:if %s.Type == MountedBox
33433 WallTop, WallBot, WallSides Box
33435 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33438 //mt:if %s.Type == ConnectedBox
33439 ConnDirs, DiscoDirs DirBoxes
33440 DiscoAll, DiscoSides []Box
33441 }))(obj)).Type < maxBox) {
33442 chk(errors.New("assertion failed: %s.Type < maxBox"))
33447 //mt:if %s.Type == MountedBox
33448 WallTop, WallBot, WallSides Box
33450 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33453 //mt:if %s.Type == ConnectedBox
33454 ConnDirs, DiscoDirs DirBoxes
33455 DiscoAll, DiscoSides []Box
33456 }))(obj)).Type == MountedBox {
33457 if err := pcall(func() {
33461 //mt:if %s.Type == MountedBox
33462 WallTop, WallBot, WallSides Box
33464 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33467 //mt:if %s.Type == ConnectedBox
33468 ConnDirs, DiscoDirs DirBoxes
33469 DiscoAll, DiscoSides []Box
33470 }))(obj)).WallTop).deserialize(r)
33475 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33477 if err := pcall(func() {
33481 //mt:if %s.Type == MountedBox
33482 WallTop, WallBot, WallSides Box
33484 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33487 //mt:if %s.Type == ConnectedBox
33488 ConnDirs, DiscoDirs DirBoxes
33489 DiscoAll, DiscoSides []Box
33490 }))(obj)).WallBot).deserialize(r)
33495 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33497 if err := pcall(func() {
33501 //mt:if %s.Type == MountedBox
33502 WallTop, WallBot, WallSides Box
33504 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33507 //mt:if %s.Type == ConnectedBox
33508 ConnDirs, DiscoDirs DirBoxes
33509 DiscoAll, DiscoSides []Box
33510 }))(obj)).WallSides).deserialize(r)
33515 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33518 if t := (*(*(struct {
33521 //mt:if %s.Type == MountedBox
33522 WallTop, WallBot, WallSides Box
33524 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33527 //mt:if %s.Type == ConnectedBox
33528 ConnDirs, DiscoDirs DirBoxes
33529 DiscoAll, DiscoSides []Box
33530 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33531 var local368 uint16
33539 //mt:if %s.Type == MountedBox
33540 WallTop, WallBot, WallSides Box
33542 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33545 //mt:if %s.Type == ConnectedBox
33546 ConnDirs, DiscoDirs DirBoxes
33547 DiscoAll, DiscoSides []Box
33548 }))(obj)).Fixed) = make([]Box, local368)
33549 for local369 := range (*(*(struct {
33552 //mt:if %s.Type == MountedBox
33553 WallTop, WallBot, WallSides Box
33555 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33558 //mt:if %s.Type == ConnectedBox
33559 ConnDirs, DiscoDirs DirBoxes
33560 DiscoAll, DiscoSides []Box
33562 if err := pcall(func() {
33566 //mt:if %s.Type == MountedBox
33567 WallTop, WallBot, WallSides Box
33569 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33572 //mt:if %s.Type == ConnectedBox
33573 ConnDirs, DiscoDirs DirBoxes
33574 DiscoAll, DiscoSides []Box
33575 }))(obj)).Fixed)[local369]).deserialize(r)
33580 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33587 //mt:if %s.Type == MountedBox
33588 WallTop, WallBot, WallSides Box
33590 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33593 //mt:if %s.Type == ConnectedBox
33594 ConnDirs, DiscoDirs DirBoxes
33595 DiscoAll, DiscoSides []Box
33596 }))(obj)).Type == ConnectedBox {
33597 if err := pcall(func() {
33601 //mt:if %s.Type == MountedBox
33602 WallTop, WallBot, WallSides Box
33604 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33607 //mt:if %s.Type == ConnectedBox
33608 ConnDirs, DiscoDirs DirBoxes
33609 DiscoAll, DiscoSides []Box
33610 }))(obj)).ConnDirs).deserialize(r)
33615 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33617 if err := pcall(func() {
33621 //mt:if %s.Type == MountedBox
33622 WallTop, WallBot, WallSides Box
33624 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33627 //mt:if %s.Type == ConnectedBox
33628 ConnDirs, DiscoDirs DirBoxes
33629 DiscoAll, DiscoSides []Box
33630 }))(obj)).DiscoDirs).deserialize(r)
33635 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33637 var local370 uint16
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)).DiscoAll) = make([]Box, local370)
33655 for local371 := range (*(*(struct {
33658 //mt:if %s.Type == MountedBox
33659 WallTop, WallBot, WallSides Box
33661 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33664 //mt:if %s.Type == ConnectedBox
33665 ConnDirs, DiscoDirs DirBoxes
33666 DiscoAll, DiscoSides []Box
33667 }))(obj)).DiscoAll {
33668 if err := pcall(func() {
33672 //mt:if %s.Type == MountedBox
33673 WallTop, WallBot, WallSides Box
33675 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33678 //mt:if %s.Type == ConnectedBox
33679 ConnDirs, DiscoDirs DirBoxes
33680 DiscoAll, DiscoSides []Box
33681 }))(obj)).DiscoAll)[local371]).deserialize(r)
33686 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33689 var local372 uint16
33697 //mt:if %s.Type == MountedBox
33698 WallTop, WallBot, WallSides Box
33700 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33703 //mt:if %s.Type == ConnectedBox
33704 ConnDirs, DiscoDirs DirBoxes
33705 DiscoAll, DiscoSides []Box
33706 }))(obj)).DiscoSides) = make([]Box, local372)
33707 for local373 := range (*(*(struct {
33710 //mt:if %s.Type == MountedBox
33711 WallTop, WallBot, WallSides Box
33713 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33716 //mt:if %s.Type == ConnectedBox
33717 ConnDirs, DiscoDirs DirBoxes
33718 DiscoAll, DiscoSides []Box
33719 }))(obj)).DiscoSides {
33720 if err := pcall(func() {
33724 //mt:if %s.Type == MountedBox
33725 WallTop, WallBot, WallSides Box
33727 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33730 //mt:if %s.Type == ConnectedBox
33731 ConnDirs, DiscoDirs DirBoxes
33732 DiscoAll, DiscoSides []Box
33733 }))(obj)).DiscoSides)[local373]).deserialize(r)
33738 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33744 func (obj *SoundDef) serialize(w io.Writer) {
33745 if len(([]byte((*(*(struct {
33747 Gain, Pitch, Fade float32
33748 }))(obj)).Name))) > math.MaxUint16 {
33752 x := uint16(len(([]byte((*(*(struct {
33754 Gain, Pitch, Fade float32
33756 write16(w, uint16(x))
33759 _, err := w.Write(([]byte((*(*(struct {
33761 Gain, Pitch, Fade float32
33762 }))(obj)).Name))[:])
33768 Gain, Pitch, Fade float32
33770 write32(w, math.Float32bits(x))
33775 Gain, Pitch, Fade float32
33777 write32(w, math.Float32bits(x))
33782 Gain, Pitch, Fade float32
33784 write32(w, math.Float32bits(x))
33788 func (obj *SoundDef) deserialize(r io.Reader) {
33789 var local374 []uint8
33790 var local375 uint16
33795 (local374) = make([]uint8, local375)
33797 _, err := io.ReadFull(r, (local374)[:])
33802 Gain, Pitch, Fade float32
33803 }))(obj)).Name) = string(local374)
33805 p := &(*(*(struct {
33807 Gain, Pitch, Fade float32
33809 *p = math.Float32frombits(read32(r))
33812 p := &(*(*(struct {
33814 Gain, Pitch, Fade float32
33816 *p = math.Float32frombits(read32(r))
33819 p := &(*(*(struct {
33821 Gain, Pitch, Fade float32
33823 *p = math.Float32frombits(read32(r))
33827 func (obj *AlphaUse) serialize(w io.Writer) {
33829 x := *(*(uint8))(obj)
33830 write8(w, uint8(x))
33834 func (obj *AlphaUse) deserialize(r io.Reader) {
33836 p := &*(*(uint8))(obj)
33841 func (obj *Keys) serialize(w io.Writer) {
33843 x := *(*(uint32))(obj)
33844 write32(w, uint32(x))
33848 func (obj *Keys) deserialize(r io.Reader) {
33850 p := &*(*(uint32))(obj)
33855 func (obj *MapBlkFlags) serialize(w io.Writer) {
33857 x := *(*(uint8))(obj)
33858 write8(w, uint8(x))
33862 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33864 p := &*(*(uint8))(obj)
33869 func (obj *LitFromBlks) serialize(w io.Writer) {
33871 x := *(*(uint16))(obj)
33872 write16(w, uint16(x))
33876 func (obj *LitFromBlks) deserialize(r io.Reader) {
33878 p := &*(*(uint16))(obj)
33883 func (obj *ItemType) serialize(w io.Writer) {
33885 x := *(*(uint8))(obj)
33886 write8(w, uint8(x))
33890 func (obj *ItemType) deserialize(r io.Reader) {
33892 p := &*(*(uint8))(obj)
33897 func (obj *ToolCaps) serialize(w io.Writer) {
33898 if _ = (*(*(struct {
33899 //mt:if _ = %s; false
33900 NonNil bool `json:"-"`
33902 AttackCooldown float32 `json:"full_punch_interval"`
33903 MaxDropLvl int16 `json:"max_drop_level"`
33906 GroupCaps []ToolGroupCaps `json:"groupcaps"`
33909 DmgGroups []Group `json:"damage_groups"`
33911 AttackUses uint16 `json:"punch_attack_uses"`
33915 //mt:if _ = %s; false
33916 NonNil bool `json:"-"`
33918 AttackCooldown float32 `json:"full_punch_interval"`
33919 MaxDropLvl int16 `json:"max_drop_level"`
33922 GroupCaps []ToolGroupCaps `json:"groupcaps"`
33925 DmgGroups []Group `json:"damage_groups"`
33927 AttackUses uint16 `json:"punch_attack_uses"`
33938 w := new(bytes.Buffer)
33940 if r.N > 0 { (*(*(struct {
33941 //mt:if _ = %s; false
33942 NonNil bool `json:"-"`
33944 AttackCooldown float32 `json:"full_punch_interval"`
33945 MaxDropLvl int16 `json:"max_drop_level"`
33948 GroupCaps []ToolGroupCaps `json:"groupcaps"`
33951 DmgGroups []Group `json:"damage_groups"`
33953 AttackUses uint16 `json:"punch_attack_uses"`
33954 }))(obj)).NonNil = true}; /**/{
33956 //mt:if _ = %s; false
33957 NonNil bool `json:"-"`
33959 AttackCooldown float32 `json:"full_punch_interval"`
33960 MaxDropLvl int16 `json:"max_drop_level"`
33963 GroupCaps []ToolGroupCaps `json:"groupcaps"`
33966 DmgGroups []Group `json:"damage_groups"`
33968 AttackUses uint16 `json:"punch_attack_uses"`
33971 local376 := uint8(5)
33974 write8(w, uint8(x))
33979 //mt:if _ = %s; false
33980 NonNil bool `json:"-"`
33982 AttackCooldown float32 `json:"full_punch_interval"`
33983 MaxDropLvl int16 `json:"max_drop_level"`
33986 GroupCaps []ToolGroupCaps `json:"groupcaps"`
33989 DmgGroups []Group `json:"damage_groups"`
33991 AttackUses uint16 `json:"punch_attack_uses"`
33992 }))(obj)).AttackCooldown
33993 write32(w, math.Float32bits(x))
33997 //mt:if _ = %s; false
33998 NonNil bool `json:"-"`
34000 AttackCooldown float32 `json:"full_punch_interval"`
34001 MaxDropLvl int16 `json:"max_drop_level"`
34004 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34007 DmgGroups []Group `json:"damage_groups"`
34009 AttackUses uint16 `json:"punch_attack_uses"`
34010 }))(obj)).MaxDropLvl
34011 write16(w, uint16(x))
34013 if len(((*(*(struct {
34014 //mt:if _ = %s; false
34015 NonNil bool `json:"-"`
34017 AttackCooldown float32 `json:"full_punch_interval"`
34018 MaxDropLvl int16 `json:"max_drop_level"`
34021 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34024 DmgGroups []Group `json:"damage_groups"`
34026 AttackUses uint16 `json:"punch_attack_uses"`
34027 }))(obj)).GroupCaps)) > math.MaxUint32 {
34031 x := uint32(len(((*(*(struct {
34032 //mt:if _ = %s; false
34033 NonNil bool `json:"-"`
34035 AttackCooldown float32 `json:"full_punch_interval"`
34036 MaxDropLvl int16 `json:"max_drop_level"`
34039 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34042 DmgGroups []Group `json:"damage_groups"`
34044 AttackUses uint16 `json:"punch_attack_uses"`
34045 }))(obj)).GroupCaps)))
34046 write32(w, uint32(x))
34048 for local377 := range (*(*(struct {
34049 //mt:if _ = %s; false
34050 NonNil bool `json:"-"`
34052 AttackCooldown float32 `json:"full_punch_interval"`
34053 MaxDropLvl int16 `json:"max_drop_level"`
34056 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34059 DmgGroups []Group `json:"damage_groups"`
34061 AttackUses uint16 `json:"punch_attack_uses"`
34062 }))(obj)).GroupCaps {
34063 if err := pcall(func() {
34065 //mt:if _ = %s; false
34066 NonNil bool `json:"-"`
34068 AttackCooldown float32 `json:"full_punch_interval"`
34069 MaxDropLvl int16 `json:"max_drop_level"`
34072 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34075 DmgGroups []Group `json:"damage_groups"`
34077 AttackUses uint16 `json:"punch_attack_uses"`
34078 }))(obj)).GroupCaps)[local377]).serialize(w)
34083 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCaps", err))
34086 if len(((*(*(struct {
34087 //mt:if _ = %s; false
34088 NonNil bool `json:"-"`
34090 AttackCooldown float32 `json:"full_punch_interval"`
34091 MaxDropLvl int16 `json:"max_drop_level"`
34094 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34097 DmgGroups []Group `json:"damage_groups"`
34099 AttackUses uint16 `json:"punch_attack_uses"`
34100 }))(obj)).DmgGroups)) > math.MaxUint32 {
34104 x := uint32(len(((*(*(struct {
34105 //mt:if _ = %s; false
34106 NonNil bool `json:"-"`
34108 AttackCooldown float32 `json:"full_punch_interval"`
34109 MaxDropLvl int16 `json:"max_drop_level"`
34112 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34115 DmgGroups []Group `json:"damage_groups"`
34117 AttackUses uint16 `json:"punch_attack_uses"`
34118 }))(obj)).DmgGroups)))
34119 write32(w, uint32(x))
34121 for local378 := range (*(*(struct {
34122 //mt:if _ = %s; false
34123 NonNil bool `json:"-"`
34125 AttackCooldown float32 `json:"full_punch_interval"`
34126 MaxDropLvl int16 `json:"max_drop_level"`
34129 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34132 DmgGroups []Group `json:"damage_groups"`
34134 AttackUses uint16 `json:"punch_attack_uses"`
34135 }))(obj)).DmgGroups {
34136 if err := pcall(func() {
34138 //mt:if _ = %s; false
34139 NonNil bool `json:"-"`
34141 AttackCooldown float32 `json:"full_punch_interval"`
34142 MaxDropLvl int16 `json:"max_drop_level"`
34145 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34148 DmgGroups []Group `json:"damage_groups"`
34150 AttackUses uint16 `json:"punch_attack_uses"`
34151 }))(obj)).DmgGroups)[local378]).serialize(w)
34156 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34161 //mt:if _ = %s; false
34162 NonNil bool `json:"-"`
34164 AttackCooldown float32 `json:"full_punch_interval"`
34165 MaxDropLvl int16 `json:"max_drop_level"`
34168 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34171 DmgGroups []Group `json:"damage_groups"`
34173 AttackUses uint16 `json:"punch_attack_uses"`
34174 }))(obj)).AttackUses
34175 write16(w, uint16(x))
34182 if len((buf.Bytes())) > math.MaxUint16 {
34186 x := uint16(len((buf.Bytes())))
34187 write16(w, uint16(x))
34190 _, err := w.Write((buf.Bytes())[:])
34197 func (obj *ToolCaps) deserialize(r io.Reader) {
34198 if _ = (*(*(struct {
34199 //mt:if _ = %s; false
34200 NonNil bool `json:"-"`
34202 AttackCooldown float32 `json:"full_punch_interval"`
34203 MaxDropLvl int16 `json:"max_drop_level"`
34206 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34209 DmgGroups []Group `json:"damage_groups"`
34211 AttackUses uint16 `json:"punch_attack_uses"`
34214 p := &(*(*(struct {
34215 //mt:if _ = %s; false
34216 NonNil bool `json:"-"`
34218 AttackCooldown float32 `json:"full_punch_interval"`
34219 MaxDropLvl int16 `json:"max_drop_level"`
34222 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34225 DmgGroups []Group `json:"damage_groups"`
34227 AttackUses uint16 `json:"punch_attack_uses"`
34229 switch n := read8(r); n {
34235 chk(fmt.Errorf("invalid bool: %d", n))
34245 r := &io.LimitedReader{r, int64(n)}
34248 //mt:if _ = %s; false
34249 NonNil bool `json:"-"`
34251 AttackCooldown float32 `json:"full_punch_interval"`
34252 MaxDropLvl int16 `json:"max_drop_level"`
34255 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34258 DmgGroups []Group `json:"damage_groups"`
34260 AttackUses uint16 `json:"punch_attack_uses"`
34261 }))(obj)).NonNil = true
34265 //mt:if _ = %s; false
34266 NonNil bool `json:"-"`
34268 AttackCooldown float32 `json:"full_punch_interval"`
34269 MaxDropLvl int16 `json:"max_drop_level"`
34272 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34275 DmgGroups []Group `json:"damage_groups"`
34277 AttackUses uint16 `json:"punch_attack_uses"`
34285 if local379 != (5) {
34286 chk(fmt.Errorf("const %v: %v", 5, local379))
34290 p := &(*(*(struct {
34291 //mt:if _ = %s; false
34292 NonNil bool `json:"-"`
34294 AttackCooldown float32 `json:"full_punch_interval"`
34295 MaxDropLvl int16 `json:"max_drop_level"`
34298 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34301 DmgGroups []Group `json:"damage_groups"`
34303 AttackUses uint16 `json:"punch_attack_uses"`
34304 }))(obj)).AttackCooldown
34305 *p = math.Float32frombits(read32(r))
34308 p := &(*(*(struct {
34309 //mt:if _ = %s; false
34310 NonNil bool `json:"-"`
34312 AttackCooldown float32 `json:"full_punch_interval"`
34313 MaxDropLvl int16 `json:"max_drop_level"`
34316 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34319 DmgGroups []Group `json:"damage_groups"`
34321 AttackUses uint16 `json:"punch_attack_uses"`
34322 }))(obj)).MaxDropLvl
34323 *p = int16(read16(r))
34325 var local380 uint32
34331 //mt:if _ = %s; false
34332 NonNil bool `json:"-"`
34334 AttackCooldown float32 `json:"full_punch_interval"`
34335 MaxDropLvl int16 `json:"max_drop_level"`
34338 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34341 DmgGroups []Group `json:"damage_groups"`
34343 AttackUses uint16 `json:"punch_attack_uses"`
34344 }))(obj)).GroupCaps) = make([]ToolGroupCaps, local380)
34345 for local381 := range (*(*(struct {
34346 //mt:if _ = %s; false
34347 NonNil bool `json:"-"`
34349 AttackCooldown float32 `json:"full_punch_interval"`
34350 MaxDropLvl int16 `json:"max_drop_level"`
34353 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34356 DmgGroups []Group `json:"damage_groups"`
34358 AttackUses uint16 `json:"punch_attack_uses"`
34359 }))(obj)).GroupCaps {
34360 if err := pcall(func() {
34362 //mt:if _ = %s; false
34363 NonNil bool `json:"-"`
34365 AttackCooldown float32 `json:"full_punch_interval"`
34366 MaxDropLvl int16 `json:"max_drop_level"`
34369 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34372 DmgGroups []Group `json:"damage_groups"`
34374 AttackUses uint16 `json:"punch_attack_uses"`
34375 }))(obj)).GroupCaps)[local381]).deserialize(r)
34380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCaps", err))
34383 var local382 uint32
34389 //mt:if _ = %s; false
34390 NonNil bool `json:"-"`
34392 AttackCooldown float32 `json:"full_punch_interval"`
34393 MaxDropLvl int16 `json:"max_drop_level"`
34396 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34399 DmgGroups []Group `json:"damage_groups"`
34401 AttackUses uint16 `json:"punch_attack_uses"`
34402 }))(obj)).DmgGroups) = make([]Group, local382)
34403 for local383 := range (*(*(struct {
34404 //mt:if _ = %s; false
34405 NonNil bool `json:"-"`
34407 AttackCooldown float32 `json:"full_punch_interval"`
34408 MaxDropLvl int16 `json:"max_drop_level"`
34411 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34414 DmgGroups []Group `json:"damage_groups"`
34416 AttackUses uint16 `json:"punch_attack_uses"`
34417 }))(obj)).DmgGroups {
34418 if err := pcall(func() {
34420 //mt:if _ = %s; false
34421 NonNil bool `json:"-"`
34423 AttackCooldown float32 `json:"full_punch_interval"`
34424 MaxDropLvl int16 `json:"max_drop_level"`
34427 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34430 DmgGroups []Group `json:"damage_groups"`
34432 AttackUses uint16 `json:"punch_attack_uses"`
34433 }))(obj)).DmgGroups)[local383]).deserialize(r)
34438 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34442 p := &(*(*(struct {
34443 //mt:if _ = %s; false
34444 NonNil bool `json:"-"`
34446 AttackCooldown float32 `json:"full_punch_interval"`
34447 MaxDropLvl int16 `json:"max_drop_level"`
34450 GroupCaps []ToolGroupCaps `json:"groupcaps"`
34453 DmgGroups []Group `json:"damage_groups"`
34455 AttackUses uint16 `json:"punch_attack_uses"`
34456 }))(obj)).AttackUses
34462 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34467 func (obj *AnimType) serialize(w io.Writer) {
34469 x := *(*(uint8))(obj)
34470 write8(w, uint8(x))
34474 func (obj *AnimType) deserialize(r io.Reader) {
34476 p := &*(*(uint8))(obj)
34481 func (obj *Box) serialize(w io.Writer) {
34482 for local384 := range *(*([2]Vec))(obj) {
34483 if err := pcall(func() {
34484 ((*(*([2]Vec))(obj))[local384]).serialize(w)
34489 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34494 func (obj *Box) deserialize(r io.Reader) {
34495 for local385 := range *(*([2]Vec))(obj) {
34496 if err := pcall(func() {
34497 ((*(*([2]Vec))(obj))[local385]).deserialize(r)
34502 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34507 func (obj *TileFlags) serialize(w io.Writer) {
34509 x := *(*(uint16))(obj)
34510 write16(w, uint16(x))
34514 func (obj *TileFlags) deserialize(r io.Reader) {
34516 p := &*(*(uint16))(obj)
34521 func (obj *AlignType) serialize(w io.Writer) {
34523 x := *(*(uint8))(obj)
34524 write8(w, uint8(x))
34528 func (obj *AlignType) deserialize(r io.Reader) {
34530 p := &*(*(uint8))(obj)
34535 func (obj *NodeBoxType) serialize(w io.Writer) {
34537 x := *(*(uint8))(obj)
34538 write8(w, uint8(x))
34542 func (obj *NodeBoxType) deserialize(r io.Reader) {
34544 p := &*(*(uint8))(obj)
34549 func (obj *DirBoxes) serialize(w io.Writer) {
34550 if len(((*(*(struct {
34552 Front, Left, Back, Right []Box
34553 }))(obj)).Top)) > math.MaxUint16 {
34557 x := uint16(len(((*(*(struct {
34559 Front, Left, Back, Right []Box
34561 write16(w, uint16(x))
34563 for local386 := range (*(*(struct {
34565 Front, Left, Back, Right []Box
34567 if err := pcall(func() {
34570 Front, Left, Back, Right []Box
34571 }))(obj)).Top)[local386]).serialize(w)
34576 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34579 if len(((*(*(struct {
34581 Front, Left, Back, Right []Box
34582 }))(obj)).Bot)) > math.MaxUint16 {
34586 x := uint16(len(((*(*(struct {
34588 Front, Left, Back, Right []Box
34590 write16(w, uint16(x))
34592 for local387 := range (*(*(struct {
34594 Front, Left, Back, Right []Box
34596 if err := pcall(func() {
34599 Front, Left, Back, Right []Box
34600 }))(obj)).Bot)[local387]).serialize(w)
34605 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34608 if len(((*(*(struct {
34610 Front, Left, Back, Right []Box
34611 }))(obj)).Front)) > math.MaxUint16 {
34615 x := uint16(len(((*(*(struct {
34617 Front, Left, Back, Right []Box
34619 write16(w, uint16(x))
34621 for local388 := range (*(*(struct {
34623 Front, Left, Back, Right []Box
34625 if err := pcall(func() {
34628 Front, Left, Back, Right []Box
34629 }))(obj)).Front)[local388]).serialize(w)
34634 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34637 if len(((*(*(struct {
34639 Front, Left, Back, Right []Box
34640 }))(obj)).Left)) > math.MaxUint16 {
34644 x := uint16(len(((*(*(struct {
34646 Front, Left, Back, Right []Box
34648 write16(w, uint16(x))
34650 for local389 := range (*(*(struct {
34652 Front, Left, Back, Right []Box
34654 if err := pcall(func() {
34657 Front, Left, Back, Right []Box
34658 }))(obj)).Left)[local389]).serialize(w)
34663 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34666 if len(((*(*(struct {
34668 Front, Left, Back, Right []Box
34669 }))(obj)).Back)) > math.MaxUint16 {
34673 x := uint16(len(((*(*(struct {
34675 Front, Left, Back, Right []Box
34677 write16(w, uint16(x))
34679 for local390 := range (*(*(struct {
34681 Front, Left, Back, Right []Box
34683 if err := pcall(func() {
34686 Front, Left, Back, Right []Box
34687 }))(obj)).Back)[local390]).serialize(w)
34692 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34695 if len(((*(*(struct {
34697 Front, Left, Back, Right []Box
34698 }))(obj)).Right)) > math.MaxUint16 {
34702 x := uint16(len(((*(*(struct {
34704 Front, Left, Back, Right []Box
34706 write16(w, uint16(x))
34708 for local391 := range (*(*(struct {
34710 Front, Left, Back, Right []Box
34712 if err := pcall(func() {
34715 Front, Left, Back, Right []Box
34716 }))(obj)).Right)[local391]).serialize(w)
34721 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34726 func (obj *DirBoxes) deserialize(r io.Reader) {
34727 var local392 uint16
34734 Front, Left, Back, Right []Box
34735 }))(obj)).Top) = make([]Box, local392)
34736 for local393 := range (*(*(struct {
34738 Front, Left, Back, Right []Box
34740 if err := pcall(func() {
34743 Front, Left, Back, Right []Box
34744 }))(obj)).Top)[local393]).deserialize(r)
34749 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34752 var local394 uint16
34759 Front, Left, Back, Right []Box
34760 }))(obj)).Bot) = make([]Box, local394)
34761 for local395 := range (*(*(struct {
34763 Front, Left, Back, Right []Box
34765 if err := pcall(func() {
34768 Front, Left, Back, Right []Box
34769 }))(obj)).Bot)[local395]).deserialize(r)
34774 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34777 var local396 uint16
34784 Front, Left, Back, Right []Box
34785 }))(obj)).Front) = make([]Box, local396)
34786 for local397 := range (*(*(struct {
34788 Front, Left, Back, Right []Box
34790 if err := pcall(func() {
34793 Front, Left, Back, Right []Box
34794 }))(obj)).Front)[local397]).deserialize(r)
34799 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34802 var local398 uint16
34809 Front, Left, Back, Right []Box
34810 }))(obj)).Left) = make([]Box, local398)
34811 for local399 := range (*(*(struct {
34813 Front, Left, Back, Right []Box
34815 if err := pcall(func() {
34818 Front, Left, Back, Right []Box
34819 }))(obj)).Left)[local399]).deserialize(r)
34824 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34827 var local400 uint16
34834 Front, Left, Back, Right []Box
34835 }))(obj)).Back) = make([]Box, local400)
34836 for local401 := range (*(*(struct {
34838 Front, Left, Back, Right []Box
34840 if err := pcall(func() {
34843 Front, Left, Back, Right []Box
34844 }))(obj)).Back)[local401]).deserialize(r)
34849 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34852 var local402 uint16
34859 Front, Left, Back, Right []Box
34860 }))(obj)).Right) = make([]Box, local402)
34861 for local403 := range (*(*(struct {
34863 Front, Left, Back, Right []Box
34865 if err := pcall(func() {
34868 Front, Left, Back, Right []Box
34869 }))(obj)).Right)[local403]).deserialize(r)
34874 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34879 func (obj *ToolGroupCaps) serialize(w io.Writer) {
34880 if len(([]byte((*(*(struct {
34887 }))(obj)).Name))) > math.MaxUint16 {
34891 x := uint16(len(([]byte((*(*(struct {
34899 write16(w, uint16(x))
34902 _, err := w.Write(([]byte((*(*(struct {
34909 }))(obj)).Name))[:])
34921 write16(w, uint16(x))
34932 write16(w, uint16(x))
34934 if len(((*(*(struct {
34941 }))(obj)).Times)) > math.MaxUint32 {
34945 x := uint32(len(((*(*(struct {
34953 write32(w, uint32(x))
34955 for local404 := range (*(*(struct {
34963 if err := pcall(func() {
34971 }))(obj)).Times)[local404]).serialize(w)
34976 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34981 func (obj *ToolGroupCaps) deserialize(r io.Reader) {
34982 var local405 []uint8
34983 var local406 uint16
34988 (local405) = make([]uint8, local406)
34990 _, err := io.ReadFull(r, (local405)[:])
35000 }))(obj)).Name) = string(local405)
35002 p := &(*(*(struct {
35010 *p = int16(read16(r))
35013 p := &(*(*(struct {
35021 *p = int16(read16(r))
35023 var local407 uint32
35035 }))(obj)).Times) = make([]DigTime, local407)
35036 for local408 := range (*(*(struct {
35044 if err := pcall(func() {
35052 }))(obj)).Times)[local408]).deserialize(r)
35057 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
35062 func (obj *DigTime) serialize(w io.Writer) {
35068 write16(w, uint16(x))
35075 write32(w, math.Float32bits(x))
35079 func (obj *DigTime) deserialize(r io.Reader) {
35081 p := &(*(*(struct {
35085 *p = int16(read16(r))
35088 p := &(*(*(struct {
35092 *p = math.Float32frombits(read32(r))