1 // Code generated by mkserialize.sh; DO NOT EDIT.
18 func write8(w io.Writer, x uint8) {
19 _, err := w.Write([]byte{x})
22 func write16(w io.Writer, x uint16) {
23 buf := make([]byte, 2)
25 _, err := w.Write(buf)
28 func write32(w io.Writer, x uint32) {
29 buf := make([]byte, 4)
31 _, err := w.Write(buf)
34 func write64(w io.Writer, x uint64) {
35 buf := make([]byte, 8)
37 _, err := w.Write(buf)
40 func readBuf(r io.Reader, n int) []byte {
41 buf := make([]byte, n)
42 _, err := io.ReadFull(r, buf)
46 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
47 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
48 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
49 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
51 func (obj *ToSrvNil) Serialize(w io.Writer) {
54 func (obj *ToSrvNil) Deserialize(r io.Reader) {
57 func (obj *ToSrvInit) Serialize(w io.Writer) {
61 SupportedCompression CompressionModes
62 MinProtoVer, MaxProtoVer uint16
67 }))(obj)).SerializeVer
70 if err := pcall(func() {
73 SupportedCompression CompressionModes
74 MinProtoVer, MaxProtoVer uint16
79 }))(obj)).SupportedCompression).Serialize(w)
84 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
89 SupportedCompression CompressionModes
90 MinProtoVer, MaxProtoVer uint16
101 SupportedCompression CompressionModes
102 MinProtoVer, MaxProtoVer uint16
106 SendFullItemMeta bool
107 }))(obj)).MaxProtoVer
108 write16(w, uint16(x))
110 if len(([]byte((*(*(struct {
112 SupportedCompression CompressionModes
113 MinProtoVer, MaxProtoVer uint16
117 SendFullItemMeta bool
118 }))(obj)).PlayerName))) > math.MaxUint16 {
122 x := uint16(len(([]byte((*(*(struct {
124 SupportedCompression CompressionModes
125 MinProtoVer, MaxProtoVer uint16
129 SendFullItemMeta bool
130 }))(obj)).PlayerName))))
131 write16(w, uint16(x))
134 _, err := w.Write(([]byte((*(*(struct {
136 SupportedCompression CompressionModes
137 MinProtoVer, MaxProtoVer uint16
141 SendFullItemMeta bool
142 }))(obj)).PlayerName))[:])
145 if err := pcall(func() {
149 SupportedCompression CompressionModes
150 MinProtoVer, MaxProtoVer uint16
154 SendFullItemMeta bool
155 }))(obj)).SendFullItemMeta
162 }); err != nil && err != io.EOF {
167 func (obj *ToSrvInit) Deserialize(r io.Reader) {
171 SupportedCompression CompressionModes
172 MinProtoVer, MaxProtoVer uint16
176 SendFullItemMeta bool
177 }))(obj)).SerializeVer
180 if err := pcall(func() {
183 SupportedCompression CompressionModes
184 MinProtoVer, MaxProtoVer uint16
188 SendFullItemMeta bool
189 }))(obj)).SupportedCompression).Deserialize(r)
194 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
199 SupportedCompression CompressionModes
200 MinProtoVer, MaxProtoVer uint16
204 SendFullItemMeta bool
205 }))(obj)).MinProtoVer
211 SupportedCompression CompressionModes
212 MinProtoVer, MaxProtoVer uint16
216 SendFullItemMeta bool
217 }))(obj)).MaxProtoVer
226 (local1) = make([]uint8, local2)
228 _, err := io.ReadFull(r, (local1)[:])
233 SupportedCompression CompressionModes
234 MinProtoVer, MaxProtoVer uint16
238 SendFullItemMeta bool
239 }))(obj)).PlayerName) = string(local1)
240 if err := pcall(func() {
244 SupportedCompression CompressionModes
245 MinProtoVer, MaxProtoVer uint16
249 SendFullItemMeta bool
250 }))(obj)).SendFullItemMeta
251 switch n := read8(r); n {
257 chk(fmt.Errorf("invalid bool: %d", n))
260 }); err != nil && err != io.EOF {
265 func (obj *ToSrvInit2) Serialize(w io.Writer) {
266 if len(([]byte((*(*(struct {
268 }))(obj)).Lang))) > math.MaxUint16 {
272 x := uint16(len(([]byte((*(*(struct {
275 write16(w, uint16(x))
278 _, err := w.Write(([]byte((*(*(struct {
285 func (obj *ToSrvInit2) Deserialize(r io.Reader) {
292 (local3) = make([]uint8, local4)
294 _, err := io.ReadFull(r, (local3)[:])
299 }))(obj)).Lang) = string(local3)
302 func (obj *ToSrvJoinModChan) Serialize(w io.Writer) {
303 if len(([]byte((*(*(struct {
305 }))(obj)).Channel))) > math.MaxUint16 {
309 x := uint16(len(([]byte((*(*(struct {
311 }))(obj)).Channel))))
312 write16(w, uint16(x))
315 _, err := w.Write(([]byte((*(*(struct {
317 }))(obj)).Channel))[:])
322 func (obj *ToSrvJoinModChan) Deserialize(r io.Reader) {
329 (local5) = make([]uint8, local6)
331 _, err := io.ReadFull(r, (local5)[:])
336 }))(obj)).Channel) = string(local5)
339 func (obj *ToSrvLeaveModChan) Serialize(w io.Writer) {
340 if len(([]byte((*(*(struct {
342 }))(obj)).Channel))) > math.MaxUint16 {
346 x := uint16(len(([]byte((*(*(struct {
348 }))(obj)).Channel))))
349 write16(w, uint16(x))
352 _, err := w.Write(([]byte((*(*(struct {
354 }))(obj)).Channel))[:])
359 func (obj *ToSrvLeaveModChan) Deserialize(r io.Reader) {
366 (local7) = make([]uint8, local8)
368 _, err := io.ReadFull(r, (local7)[:])
373 }))(obj)).Channel) = string(local7)
376 func (obj *ToSrvMsgModChan) Serialize(w io.Writer) {
377 if len(([]byte((*(*(struct {
380 }))(obj)).Channel))) > math.MaxUint16 {
384 x := uint16(len(([]byte((*(*(struct {
387 }))(obj)).Channel))))
388 write16(w, uint16(x))
391 _, err := w.Write(([]byte((*(*(struct {
394 }))(obj)).Channel))[:])
397 if len(([]byte((*(*(struct {
400 }))(obj)).Msg))) > math.MaxUint16 {
404 x := uint16(len(([]byte((*(*(struct {
408 write16(w, uint16(x))
411 _, err := w.Write(([]byte((*(*(struct {
419 func (obj *ToSrvMsgModChan) Deserialize(r io.Reader) {
426 (local9) = make([]uint8, local10)
428 _, err := io.ReadFull(r, (local9)[:])
434 }))(obj)).Channel) = string(local9)
441 (local11) = make([]uint8, local12)
443 _, err := io.ReadFull(r, (local11)[:])
449 }))(obj)).Msg) = string(local11)
452 func (obj *ToSrvPlayerPos) Serialize(w io.Writer) {
453 if err := pcall(func() {
456 }))(obj)).Pos).Serialize(w)
461 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
465 func (obj *ToSrvPlayerPos) Deserialize(r io.Reader) {
466 if err := pcall(func() {
469 }))(obj)).Pos).Deserialize(r)
474 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
478 func (obj *ToSrvGotBlks) Serialize(w io.Writer) {
479 if len(((*(*(struct {
482 }))(obj)).Blks)) > math.MaxUint8 {
486 x := uint8(len(((*(*(struct {
492 for local13 := range (*(*(struct {
496 for local14 := range ((*(*(struct {
499 }))(obj)).Blks)[local13] {
504 }))(obj)).Blks)[local13])[local14]
505 write16(w, uint16(x))
511 func (obj *ToSrvGotBlks) Deserialize(r io.Reader) {
520 }))(obj)).Blks) = make([][3]int16, local15)
521 for local16 := range (*(*(struct {
525 for local17 := range ((*(*(struct {
528 }))(obj)).Blks)[local16] {
530 p := &(((*(*(struct {
533 }))(obj)).Blks)[local16])[local17]
534 *p = int16(read16(r))
540 func (obj *ToSrvDeletedBlks) Serialize(w io.Writer) {
541 if len(((*(*(struct {
544 }))(obj)).Blks)) > math.MaxUint8 {
548 x := uint8(len(((*(*(struct {
554 for local18 := range (*(*(struct {
558 for local19 := range ((*(*(struct {
561 }))(obj)).Blks)[local18] {
566 }))(obj)).Blks)[local18])[local19]
567 write16(w, uint16(x))
573 func (obj *ToSrvDeletedBlks) Deserialize(r io.Reader) {
582 }))(obj)).Blks) = make([][3]int16, local20)
583 for local21 := range (*(*(struct {
587 for local22 := range ((*(*(struct {
590 }))(obj)).Blks)[local21] {
592 p := &(((*(*(struct {
595 }))(obj)).Blks)[local21])[local22]
596 *p = int16(read16(r))
602 func (obj *ToSrvInvAction) Serialize(w io.Writer) {
604 _, err := w.Write(([]byte((*(*(struct {
607 }))(obj)).Action))[:])
612 func (obj *ToSrvInvAction) Deserialize(r io.Reader) {
616 (local23), err = io.ReadAll(r)
622 }))(obj)).Action) = string(local23)
625 func (obj *ToSrvChatMsg) Serialize(w io.Writer) {
626 local24 := utf16.Encode([]rune((*(*(struct {
630 if len((local24)) > math.MaxUint16 {
634 x := uint16(len((local24)))
635 write16(w, uint16(x))
637 for local25 := range local24 {
639 x := (local24)[local25]
640 write16(w, uint16(x))
645 func (obj *ToSrvChatMsg) Deserialize(r io.Reader) {
652 (local26) = make([]uint16, local27)
653 for local28 := range local26 {
655 p := &(local26)[local28]
662 }))(obj)).Msg = string(utf16.Decode(local26))
665 func (obj *ToSrvFallDmg) Serialize(w io.Writer) {
670 write16(w, uint16(x))
674 func (obj *ToSrvFallDmg) Deserialize(r io.Reader) {
683 func (obj *ToSrvSelectItem) Serialize(w io.Writer) {
688 write16(w, uint16(x))
692 func (obj *ToSrvSelectItem) Deserialize(r io.Reader) {
701 func (obj *ToSrvRespawn) Serialize(w io.Writer) {
704 func (obj *ToSrvRespawn) Deserialize(r io.Reader) {
707 func (obj *ToSrvInteract) Serialize(w io.Writer) {
708 if err := pcall(func() {
716 }))(obj)).Action).Serialize(w)
721 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
732 write16(w, uint16(x))
736 w := new(bytes.Buffer)
746 chk(writePointedThing(w, x))
751 if len((buf.Bytes())) > math.MaxUint32 {
755 x := uint32(len((buf.Bytes())))
756 write32(w, uint32(x))
759 _, err := w.Write((buf.Bytes())[:])
764 if err := pcall(func() {
772 }))(obj)).Pos).Serialize(w)
777 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
781 func (obj *ToSrvInteract) Deserialize(r io.Reader) {
782 if err := pcall(func() {
790 }))(obj)).Action).Deserialize(r)
795 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
814 r := &io.LimitedReader{R: r, N: int64(n)}
826 *p, err = readPointedThing(r)
831 chk(fmt.Errorf("%d bytes of trailing data", r.N))
834 if err := pcall(func() {
842 }))(obj)).Pos).Deserialize(r)
847 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
851 func (obj *ToSrvRemovedSounds) Serialize(w io.Writer) {
852 if len(((*(*(struct {
854 }))(obj)).IDs)) > math.MaxUint16 {
858 x := uint16(len(((*(*(struct {
861 write16(w, uint16(x))
863 for local29 := range (*(*(struct {
866 if err := pcall(func() {
869 }))(obj)).IDs)[local29]).Serialize(w)
874 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
879 func (obj *ToSrvRemovedSounds) Deserialize(r io.Reader) {
887 }))(obj)).IDs) = make([]SoundID, local30)
888 for local31 := range (*(*(struct {
891 if err := pcall(func() {
894 }))(obj)).IDs)[local31]).Deserialize(r)
899 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
904 func (obj *ToSrvNodeMetaFields) Serialize(w io.Writer) {
905 for local32 := range (*(*(struct {
915 }))(obj)).Pos)[local32]
916 write16(w, uint16(x))
919 if len(([]byte((*(*(struct {
923 }))(obj)).Formname))) > math.MaxUint16 {
927 x := uint16(len(([]byte((*(*(struct {
931 }))(obj)).Formname))))
932 write16(w, uint16(x))
935 _, err := w.Write(([]byte((*(*(struct {
939 }))(obj)).Formname))[:])
942 if len(((*(*(struct {
946 }))(obj)).Fields)) > math.MaxUint16 {
950 x := uint16(len(((*(*(struct {
955 write16(w, uint16(x))
957 for local33 := range (*(*(struct {
962 if err := pcall(func() {
967 }))(obj)).Fields)[local33]).Serialize(w)
972 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
977 func (obj *ToSrvNodeMetaFields) Deserialize(r io.Reader) {
978 for local34 := range (*(*(struct {
988 }))(obj)).Pos)[local34]
989 *p = int16(read16(r))
998 (local35) = make([]uint8, local36)
1000 _, err := io.ReadFull(r, (local35)[:])
1007 }))(obj)).Formname) = string(local35)
1017 }))(obj)).Fields) = make([]Field, local37)
1018 for local38 := range (*(*(struct {
1023 if err := pcall(func() {
1028 }))(obj)).Fields)[local38]).Deserialize(r)
1033 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1038 func (obj *ToSrvInvFields) Serialize(w io.Writer) {
1039 if len(([]byte((*(*(struct {
1042 }))(obj)).Formname))) > math.MaxUint16 {
1046 x := uint16(len(([]byte((*(*(struct {
1049 }))(obj)).Formname))))
1050 write16(w, uint16(x))
1053 _, err := w.Write(([]byte((*(*(struct {
1056 }))(obj)).Formname))[:])
1059 if len(((*(*(struct {
1062 }))(obj)).Fields)) > math.MaxUint16 {
1066 x := uint16(len(((*(*(struct {
1070 write16(w, uint16(x))
1072 for local39 := range (*(*(struct {
1076 if err := pcall(func() {
1080 }))(obj)).Fields)[local39]).Serialize(w)
1085 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1090 func (obj *ToSrvInvFields) Deserialize(r io.Reader) {
1097 (local40) = make([]uint8, local41)
1099 _, err := io.ReadFull(r, (local40)[:])
1105 }))(obj)).Formname) = string(local40)
1114 }))(obj)).Fields) = make([]Field, local42)
1115 for local43 := range (*(*(struct {
1119 if err := pcall(func() {
1123 }))(obj)).Fields)[local43]).Deserialize(r)
1128 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1133 func (obj *ToSrvReqMedia) Serialize(w io.Writer) {
1134 if len(((*(*(struct {
1136 }))(obj)).Filenames)) > math.MaxUint16 {
1140 x := uint16(len(((*(*(struct {
1142 }))(obj)).Filenames)))
1143 write16(w, uint16(x))
1145 for local44 := range (*(*(struct {
1147 }))(obj)).Filenames {
1148 if len(([]byte(((*(*(struct {
1150 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1154 x := uint16(len(([]byte(((*(*(struct {
1156 }))(obj)).Filenames)[local44]))))
1157 write16(w, uint16(x))
1160 _, err := w.Write(([]byte(((*(*(struct {
1162 }))(obj)).Filenames)[local44]))[:])
1168 func (obj *ToSrvReqMedia) Deserialize(r io.Reader) {
1176 }))(obj)).Filenames) = make([]string, local45)
1177 for local46 := range (*(*(struct {
1179 }))(obj)).Filenames {
1186 (local47) = make([]uint8, local48)
1188 _, err := io.ReadFull(r, (local47)[:])
1193 }))(obj)).Filenames)[local46]) = string(local47)
1197 func (obj *ToSrvCltReady) Serialize(w io.Writer) {
1200 // Version information.
1201 Major, Minor, Patch uint8
1210 // Version information.
1211 Major, Minor, Patch uint8
1220 // Version information.
1221 Major, Minor, Patch uint8
1230 // Version information.
1231 Major, Minor, Patch uint8
1238 if len(([]byte((*(*(struct {
1239 // Version information.
1240 Major, Minor, Patch uint8
1244 }))(obj)).Version))) > math.MaxUint16 {
1248 x := uint16(len(([]byte((*(*(struct {
1249 // Version information.
1250 Major, Minor, Patch uint8
1254 }))(obj)).Version))))
1255 write16(w, uint16(x))
1258 _, err := w.Write(([]byte((*(*(struct {
1259 // Version information.
1260 Major, Minor, Patch uint8
1264 }))(obj)).Version))[:])
1269 // Version information.
1270 Major, Minor, Patch uint8
1275 write16(w, uint16(x))
1279 func (obj *ToSrvCltReady) Deserialize(r io.Reader) {
1282 // Version information.
1283 Major, Minor, Patch uint8
1292 // Version information.
1293 Major, Minor, Patch uint8
1302 // Version information.
1303 Major, Minor, Patch uint8
1312 // Version information.
1313 Major, Minor, Patch uint8
1326 (local49) = make([]uint8, local50)
1328 _, err := io.ReadFull(r, (local49)[:])
1332 // Version information.
1333 Major, Minor, Patch uint8
1337 }))(obj)).Version) = string(local49)
1340 // Version information.
1341 Major, Minor, Patch uint8
1350 func (obj *ToSrvFirstSRP) Serialize(w io.Writer) {
1351 if len(((*(*(struct {
1355 }))(obj)).Salt)) > math.MaxUint16 {
1359 x := uint16(len(((*(*(struct {
1364 write16(w, uint16(x))
1367 _, err := w.Write(((*(*(struct {
1374 if len(((*(*(struct {
1378 }))(obj)).Verifier)) > math.MaxUint16 {
1382 x := uint16(len(((*(*(struct {
1386 }))(obj)).Verifier)))
1387 write16(w, uint16(x))
1390 _, err := w.Write(((*(*(struct {
1394 }))(obj)).Verifier)[:])
1402 }))(obj)).EmptyPasswd
1411 func (obj *ToSrvFirstSRP) Deserialize(r io.Reader) {
1421 }))(obj)).Salt) = make([]byte, local51)
1423 _, err := io.ReadFull(r, ((*(*(struct {
1439 }))(obj)).Verifier) = make([]byte, local52)
1441 _, err := io.ReadFull(r, ((*(*(struct {
1445 }))(obj)).Verifier)[:])
1453 }))(obj)).EmptyPasswd
1454 switch n := read8(r); n {
1460 chk(fmt.Errorf("invalid bool: %d", n))
1465 func (obj *ToSrvSRPBytesA) Serialize(w io.Writer) {
1466 if len(((*(*(struct {
1469 }))(obj)).A)) > math.MaxUint16 {
1473 x := uint16(len(((*(*(struct {
1477 write16(w, uint16(x))
1480 _, err := w.Write(((*(*(struct {
1499 func (obj *ToSrvSRPBytesA) Deserialize(r io.Reader) {
1508 }))(obj)).A) = make([]byte, local53)
1510 _, err := io.ReadFull(r, ((*(*(struct {
1521 switch n := read8(r); n {
1527 chk(fmt.Errorf("invalid bool: %d", n))
1532 func (obj *ToSrvSRPBytesM) Serialize(w io.Writer) {
1533 if len(((*(*(struct {
1535 }))(obj)).M)) > math.MaxUint16 {
1539 x := uint16(len(((*(*(struct {
1542 write16(w, uint16(x))
1545 _, err := w.Write(((*(*(struct {
1552 func (obj *ToSrvSRPBytesM) Deserialize(r io.Reader) {
1560 }))(obj)).M) = make([]byte, local54)
1562 _, err := io.ReadFull(r, ((*(*(struct {
1569 func (obj *ToCltHello) Serialize(w io.Writer) {
1573 Compression CompressionModes
1577 }))(obj)).SerializeVer
1580 if err := pcall(func() {
1583 Compression CompressionModes
1587 }))(obj)).Compression).Serialize(w)
1592 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1597 Compression CompressionModes
1602 write16(w, uint16(x))
1604 if err := pcall(func() {
1607 Compression CompressionModes
1611 }))(obj)).AuthMethods).Serialize(w)
1616 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1618 if len(([]byte((*(*(struct {
1620 Compression CompressionModes
1624 }))(obj)).Username))) > math.MaxUint16 {
1628 x := uint16(len(([]byte((*(*(struct {
1630 Compression CompressionModes
1634 }))(obj)).Username))))
1635 write16(w, uint16(x))
1638 _, err := w.Write(([]byte((*(*(struct {
1640 Compression CompressionModes
1644 }))(obj)).Username))[:])
1649 func (obj *ToCltHello) Deserialize(r io.Reader) {
1653 Compression CompressionModes
1657 }))(obj)).SerializeVer
1660 if err := pcall(func() {
1663 Compression CompressionModes
1667 }))(obj)).Compression).Deserialize(r)
1672 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1677 Compression CompressionModes
1684 if err := pcall(func() {
1687 Compression CompressionModes
1691 }))(obj)).AuthMethods).Deserialize(r)
1696 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1704 (local55) = make([]uint8, local56)
1706 _, err := io.ReadFull(r, (local55)[:])
1711 Compression CompressionModes
1715 }))(obj)).Username) = string(local55)
1718 func (obj *ToCltAcceptAuth) Serialize(w io.Writer) {
1719 if err := pcall(func() {
1721 // The client does the equivalent of
1722 // PlayerPos[1] -= 5
1723 // before using PlayerPos.
1727 SendInterval float32
1728 SudoAuthMethods AuthMethods
1729 }))(obj)).PlayerPos).Serialize(w)
1734 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1738 // The client does the equivalent of
1739 // PlayerPos[1] -= 5
1740 // before using PlayerPos.
1744 SendInterval float32
1745 SudoAuthMethods AuthMethods
1747 write64(w, uint64(x))
1751 // The client does the equivalent of
1752 // PlayerPos[1] -= 5
1753 // before using PlayerPos.
1757 SendInterval float32
1758 SudoAuthMethods AuthMethods
1759 }))(obj)).SendInterval
1760 write32(w, math.Float32bits(x))
1762 if err := pcall(func() {
1764 // The client does the equivalent of
1765 // PlayerPos[1] -= 5
1766 // before using PlayerPos.
1770 SendInterval float32
1771 SudoAuthMethods AuthMethods
1772 }))(obj)).SudoAuthMethods).Serialize(w)
1777 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1781 func (obj *ToCltAcceptAuth) Deserialize(r io.Reader) {
1782 if err := pcall(func() {
1784 // The client does the equivalent of
1785 // PlayerPos[1] -= 5
1786 // before using PlayerPos.
1790 SendInterval float32
1791 SudoAuthMethods AuthMethods
1792 }))(obj)).PlayerPos).Deserialize(r)
1797 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1801 // The client does the equivalent of
1802 // PlayerPos[1] -= 5
1803 // before using PlayerPos.
1807 SendInterval float32
1808 SudoAuthMethods AuthMethods
1814 // The client does the equivalent of
1815 // PlayerPos[1] -= 5
1816 // before using PlayerPos.
1820 SendInterval float32
1821 SudoAuthMethods AuthMethods
1822 }))(obj)).SendInterval
1823 *p = math.Float32frombits(read32(r))
1825 if err := pcall(func() {
1827 // The client does the equivalent of
1828 // PlayerPos[1] -= 5
1829 // before using PlayerPos.
1833 SendInterval float32
1834 SudoAuthMethods AuthMethods
1835 }))(obj)).SudoAuthMethods).Deserialize(r)
1840 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1844 func (obj *ToCltAcceptSudoMode) Serialize(w io.Writer) {
1845 if err := pcall(func() {
1847 SudoAuthMethods AuthMethods
1848 }))(obj)).SudoAuthMethods).Serialize(w)
1853 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1856 local57 := [15]byte{}
1858 _, err := w.Write((local57)[:])
1864 func (obj *ToCltAcceptSudoMode) Deserialize(r io.Reader) {
1865 if err := pcall(func() {
1867 SudoAuthMethods AuthMethods
1868 }))(obj)).SudoAuthMethods).Deserialize(r)
1873 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1876 var local58 [15]byte
1877 local59 := [15]byte{}
1879 _, err := io.ReadFull(r, (local58)[:])
1882 if local58 != local59 {
1883 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1888 func (obj *ToCltDenySudoMode) Serialize(w io.Writer) {
1891 func (obj *ToCltDenySudoMode) Deserialize(r io.Reader) {
1894 func (obj *ToCltKick) Serialize(w io.Writer) {
1895 if err := pcall(func() {
1899 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1902 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1904 }))(obj)).Reason).Serialize(w)
1909 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
1914 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1917 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1919 }))(obj)).Reason < maxKickReason) {
1920 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1922 if dr := (*(*(struct {
1925 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1928 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1930 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1931 if len(([]byte((*(*(struct {
1934 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1937 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1939 }))(obj)).Custom))) > math.MaxUint16 {
1943 x := uint16(len(([]byte((*(*(struct {
1946 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1949 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1951 }))(obj)).Custom))))
1952 write16(w, uint16(x))
1955 _, err := w.Write(([]byte((*(*(struct {
1958 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1961 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1963 }))(obj)).Custom))[:])
1967 if dr := (*(*(struct {
1970 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1973 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1975 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1980 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1983 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1995 func (obj *ToCltKick) Deserialize(r io.Reader) {
1996 if err := pcall(func() {
2000 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2003 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2005 }))(obj)).Reason).Deserialize(r)
2010 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
2015 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2018 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2020 }))(obj)).Reason < maxKickReason) {
2021 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2023 if dr := (*(*(struct {
2026 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2029 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2031 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2038 (local60) = make([]uint8, local61)
2040 _, err := io.ReadFull(r, (local60)[:])
2046 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2049 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2051 }))(obj)).Custom) = string(local60)
2053 if dr := (*(*(struct {
2056 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2059 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2061 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2066 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2069 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2072 switch n := read8(r); n {
2078 chk(fmt.Errorf("invalid bool: %d", n))
2084 func (obj *ToCltBlkData) Serialize(w io.Writer) {
2085 for local62 := range (*(*(struct {
2093 }))(obj)).Blkpos)[local62]
2094 write16(w, uint16(x))
2097 if err := pcall(func() {
2101 }))(obj)).Blk).Serialize(w)
2106 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2110 func (obj *ToCltBlkData) Deserialize(r io.Reader) {
2111 for local63 := range (*(*(struct {
2116 p := &((*(*(struct {
2119 }))(obj)).Blkpos)[local63]
2120 *p = int16(read16(r))
2123 if err := pcall(func() {
2127 }))(obj)).Blk).Deserialize(r)
2132 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2136 func (obj *ToCltAddNode) Serialize(w io.Writer) {
2137 for local64 := range (*(*(struct {
2147 }))(obj)).Pos)[local64]
2148 write16(w, uint16(x))
2151 if err := pcall(func() {
2156 }))(obj)).Node).Serialize(w)
2161 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2177 func (obj *ToCltAddNode) Deserialize(r io.Reader) {
2178 for local65 := range (*(*(struct {
2184 p := &((*(*(struct {
2188 }))(obj)).Pos)[local65]
2189 *p = int16(read16(r))
2192 if err := pcall(func() {
2197 }))(obj)).Node).Deserialize(r)
2202 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2210 switch n := read8(r); n {
2216 chk(fmt.Errorf("invalid bool: %d", n))
2221 func (obj *ToCltRemoveNode) Serialize(w io.Writer) {
2222 for local66 := range (*(*(struct {
2228 }))(obj)).Pos)[local66]
2229 write16(w, uint16(x))
2234 func (obj *ToCltRemoveNode) Deserialize(r io.Reader) {
2235 for local67 := range (*(*(struct {
2239 p := &((*(*(struct {
2241 }))(obj)).Pos)[local67]
2242 *p = int16(read16(r))
2247 func (obj *ToCltInv) Serialize(w io.Writer) {
2249 _, err := w.Write(([]byte((*(*(struct {
2257 func (obj *ToCltInv) Deserialize(r io.Reader) {
2261 (local68), err = io.ReadAll(r)
2267 }))(obj)).Inv) = string(local68)
2270 func (obj *ToCltTimeOfDay) Serialize(w io.Writer) {
2273 Time uint16 // %24000
2274 Speed float32 // Speed times faster than real time
2276 write16(w, uint16(x))
2280 Time uint16 // %24000
2281 Speed float32 // Speed times faster than real time
2283 write32(w, math.Float32bits(x))
2287 func (obj *ToCltTimeOfDay) Deserialize(r io.Reader) {
2290 Time uint16 // %24000
2291 Speed float32 // Speed times faster than real time
2297 Time uint16 // %24000
2298 Speed float32 // Speed times faster than real time
2300 *p = math.Float32frombits(read32(r))
2304 func (obj *ToCltCSMRestrictionFlags) Serialize(w io.Writer) {
2305 if err := pcall(func() {
2307 Flags CSMRestrictionFlags
2309 // MapRange is the maximum distance from the player CSMs can read the map
2310 // if Flags&LimitMapRange != 0.
2312 }))(obj)).Flags).Serialize(w)
2317 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2321 Flags CSMRestrictionFlags
2323 // MapRange is the maximum distance from the player CSMs can read the map
2324 // if Flags&LimitMapRange != 0.
2327 write32(w, uint32(x))
2331 func (obj *ToCltCSMRestrictionFlags) Deserialize(r io.Reader) {
2332 if err := pcall(func() {
2334 Flags CSMRestrictionFlags
2336 // MapRange is the maximum distance from the player CSMs can read the map
2337 // if Flags&LimitMapRange != 0.
2339 }))(obj)).Flags).Deserialize(r)
2344 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2348 Flags CSMRestrictionFlags
2350 // MapRange is the maximum distance from the player CSMs can read the map
2351 // if Flags&LimitMapRange != 0.
2358 func (obj *ToCltAddPlayerVel) Serialize(w io.Writer) {
2359 if err := pcall(func() {
2362 }))(obj)).Vel).Serialize(w)
2367 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2371 func (obj *ToCltAddPlayerVel) Deserialize(r io.Reader) {
2372 if err := pcall(func() {
2375 }))(obj)).Vel).Deserialize(r)
2380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2384 func (obj *ToCltMediaPush) Serialize(w io.Writer) {
2386 local69 := uint16(sha1.Size)
2389 write16(w, uint16(x))
2393 _, err := w.Write(((*(*(struct {
2394 //mt:const uint16(sha1.Size)
2395 SHA1 [sha1.Size]byte
2404 if len(([]byte((*(*(struct {
2405 //mt:const uint16(sha1.Size)
2406 SHA1 [sha1.Size]byte
2412 }))(obj)).Filename))) > math.MaxUint16 {
2416 x := uint16(len(([]byte((*(*(struct {
2417 //mt:const uint16(sha1.Size)
2418 SHA1 [sha1.Size]byte
2424 }))(obj)).Filename))))
2425 write16(w, uint16(x))
2428 _, err := w.Write(([]byte((*(*(struct {
2429 //mt:const uint16(sha1.Size)
2430 SHA1 [sha1.Size]byte
2436 }))(obj)).Filename))[:])
2441 //mt:const uint16(sha1.Size)
2442 SHA1 [sha1.Size]byte
2448 }))(obj)).ShouldCache
2455 if len(((*(*(struct {
2456 //mt:const uint16(sha1.Size)
2457 SHA1 [sha1.Size]byte
2463 }))(obj)).Data)) > math.MaxUint32 {
2467 x := uint32(len(((*(*(struct {
2468 //mt:const uint16(sha1.Size)
2469 SHA1 [sha1.Size]byte
2476 write32(w, uint32(x))
2479 _, err := w.Write(((*(*(struct {
2480 //mt:const uint16(sha1.Size)
2481 SHA1 [sha1.Size]byte
2492 func (obj *ToCltMediaPush) Deserialize(r io.Reader) {
2495 local71 := uint16(sha1.Size)
2500 if local70 != local71 {
2501 chk(fmt.Errorf("const %v: %v", "uint16(sha1.Size)", local70))
2505 _, err := io.ReadFull(r, ((*(*(struct {
2506 //mt:const uint16(sha1.Size)
2507 SHA1 [sha1.Size]byte
2522 (local72) = make([]uint8, local73)
2524 _, err := io.ReadFull(r, (local72)[:])
2528 //mt:const uint16(sha1.Size)
2529 SHA1 [sha1.Size]byte
2535 }))(obj)).Filename) = string(local72)
2538 //mt:const uint16(sha1.Size)
2539 SHA1 [sha1.Size]byte
2545 }))(obj)).ShouldCache
2546 switch n := read8(r); n {
2552 chk(fmt.Errorf("invalid bool: %d", n))
2561 //mt:const uint16(sha1.Size)
2562 SHA1 [sha1.Size]byte
2568 }))(obj)).Data) = make([]byte, local74)
2570 _, err := io.ReadFull(r, ((*(*(struct {
2571 //mt:const uint16(sha1.Size)
2572 SHA1 [sha1.Size]byte
2583 func (obj *ToCltChatMsg) Serialize(w io.Writer) {
2591 if err := pcall(func() {
2598 Timestamp int64 // Unix time.
2599 }))(obj)).Type).Serialize(w)
2604 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2606 local76 := utf16.Encode([]rune((*(*(struct {
2612 Timestamp int64 // Unix time.
2614 if len((local76)) > math.MaxUint16 {
2618 x := uint16(len((local76)))
2619 write16(w, uint16(x))
2621 for local77 := range local76 {
2623 x := (local76)[local77]
2624 write16(w, uint16(x))
2627 local78 := utf16.Encode([]rune((*(*(struct {
2633 Timestamp int64 // Unix time.
2635 if len((local78)) > math.MaxUint16 {
2639 x := uint16(len((local78)))
2640 write16(w, uint16(x))
2642 for local79 := range local78 {
2644 x := (local78)[local79]
2645 write16(w, uint16(x))
2655 Timestamp int64 // Unix time.
2657 write64(w, uint64(x))
2661 func (obj *ToCltChatMsg) Deserialize(r io.Reader) {
2669 if local80 != local81 {
2670 chk(fmt.Errorf("const %v: %v", "uint8(1)", local80))
2673 if err := pcall(func() {
2680 Timestamp int64 // Unix time.
2681 }))(obj)).Type).Deserialize(r)
2686 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2688 var local82 []uint16
2694 (local82) = make([]uint16, local83)
2695 for local84 := range local82 {
2697 p := &(local82)[local84]
2707 Timestamp int64 // Unix time.
2708 }))(obj)).Sender = string(utf16.Decode(local82))
2709 var local85 []uint16
2715 (local85) = make([]uint16, local86)
2716 for local87 := range local85 {
2718 p := &(local85)[local87]
2728 Timestamp int64 // Unix time.
2729 }))(obj)).Text = string(utf16.Decode(local85))
2737 Timestamp int64 // Unix time.
2739 *p = int64(read64(r))
2743 func (obj *ToCltAORmAdd) Serialize(w io.Writer) {
2744 if len(((*(*(struct {
2747 }))(obj)).Remove)) > math.MaxUint16 {
2751 x := uint16(len(((*(*(struct {
2755 write16(w, uint16(x))
2757 for local88 := range (*(*(struct {
2761 if err := pcall(func() {
2765 }))(obj)).Remove)[local88]).Serialize(w)
2770 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2773 if len(((*(*(struct {
2776 }))(obj)).Add)) > math.MaxUint16 {
2780 x := uint16(len(((*(*(struct {
2784 write16(w, uint16(x))
2786 for local89 := range (*(*(struct {
2790 if err := pcall(func() {
2794 }))(obj)).Add)[local89]).Serialize(w)
2799 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2804 func (obj *ToCltAORmAdd) Deserialize(r io.Reader) {
2813 }))(obj)).Remove) = make([]AOID, local90)
2814 for local91 := range (*(*(struct {
2818 if err := pcall(func() {
2822 }))(obj)).Remove)[local91]).Deserialize(r)
2827 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2838 }))(obj)).Add) = make([]AOAdd, local92)
2839 for local93 := range (*(*(struct {
2843 if err := pcall(func() {
2847 }))(obj)).Add)[local93]).Deserialize(r)
2852 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2857 func (obj *ToCltAOMsgs) Serialize(w io.Writer) {
2858 for local94 := range (*(*(struct {
2862 if err := pcall(func() {
2866 }))(obj)).Msgs)[local94]).Serialize(w)
2871 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2876 func (obj *ToCltAOMsgs) Deserialize(r io.Reader) {
2879 err := pcall(func() {
2880 if err := pcall(func() {
2881 (local95).Deserialize(r)
2886 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2895 }))(obj)).Msgs) = append(((*(*(struct {
2898 }))(obj)).Msgs), local95)
2903 func (obj *ToCltHP) Serialize(w io.Writer) {
2908 write16(w, uint16(x))
2912 func (obj *ToCltHP) Deserialize(r io.Reader) {
2921 func (obj *ToCltMovePlayer) Serialize(w io.Writer) {
2922 if err := pcall(func() {
2926 }))(obj)).Pos).Serialize(w)
2931 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2938 write32(w, math.Float32bits(x))
2945 write32(w, math.Float32bits(x))
2949 func (obj *ToCltMovePlayer) Deserialize(r io.Reader) {
2950 if err := pcall(func() {
2954 }))(obj)).Pos).Deserialize(r)
2959 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2966 *p = math.Float32frombits(read32(r))
2973 *p = math.Float32frombits(read32(r))
2977 func (obj *ToCltLegacyKick) Serialize(w io.Writer) {
2978 local96 := utf16.Encode([]rune((*(*(struct {
2982 if len((local96)) > math.MaxUint16 {
2986 x := uint16(len((local96)))
2987 write16(w, uint16(x))
2989 for local97 := range local96 {
2991 x := (local96)[local97]
2992 write16(w, uint16(x))
2997 func (obj *ToCltLegacyKick) Deserialize(r io.Reader) {
2998 var local98 []uint16
3004 (local98) = make([]uint16, local99)
3005 for local100 := range local98 {
3007 p := &(local98)[local100]
3014 }))(obj)).Reason = string(utf16.Decode(local98))
3017 func (obj *ToCltFOV) Serialize(w io.Writer) {
3022 TransitionTime float32
3024 write32(w, math.Float32bits(x))
3030 TransitionTime float32
3031 }))(obj)).Multiplier
3042 TransitionTime float32
3043 }))(obj)).TransitionTime
3044 write32(w, math.Float32bits(x))
3048 func (obj *ToCltFOV) Deserialize(r io.Reader) {
3053 TransitionTime float32
3055 *p = math.Float32frombits(read32(r))
3061 TransitionTime float32
3062 }))(obj)).Multiplier
3063 switch n := read8(r); n {
3069 chk(fmt.Errorf("invalid bool: %d", n))
3076 TransitionTime float32
3077 }))(obj)).TransitionTime
3078 *p = math.Float32frombits(read32(r))
3082 func (obj *ToCltDeathScreen) Serialize(w io.Writer) {
3094 if err := pcall(func() {
3098 }))(obj)).PointAt).Serialize(w)
3103 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3107 func (obj *ToCltDeathScreen) Deserialize(r io.Reader) {
3113 switch n := read8(r); n {
3119 chk(fmt.Errorf("invalid bool: %d", n))
3122 if err := pcall(func() {
3126 }))(obj)).PointAt).Deserialize(r)
3131 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3135 func (obj *ToCltMedia) Serialize(w io.Writer) {
3138 // N is the total number of ToCltMedia packets.
3139 // I is the index of this packet.
3150 write16(w, uint16(x))
3154 // N is the total number of ToCltMedia packets.
3155 // I is the index of this packet.
3166 write16(w, uint16(x))
3168 if len(((*(*(struct {
3169 // N is the total number of ToCltMedia packets.
3170 // I is the index of this packet.
3180 }))(obj)).Files)) > math.MaxUint32 {
3184 x := uint32(len(((*(*(struct {
3185 // N is the total number of ToCltMedia packets.
3186 // I is the index of this packet.
3197 write32(w, uint32(x))
3199 for local101 := range (*(*(struct {
3200 // N is the total number of ToCltMedia packets.
3201 // I is the index of this packet.
3212 if len(([]byte((((*(*(struct {
3213 // N is the total number of ToCltMedia packets.
3214 // I is the index of this packet.
3224 }))(obj)).Files)[local101]).Name))) > math.MaxUint16 {
3228 x := uint16(len(([]byte((((*(*(struct {
3229 // N is the total number of ToCltMedia packets.
3230 // I is the index of this packet.
3240 }))(obj)).Files)[local101]).Name))))
3241 write16(w, uint16(x))
3244 _, err := w.Write(([]byte((((*(*(struct {
3245 // N is the total number of ToCltMedia packets.
3246 // I is the index of this packet.
3256 }))(obj)).Files)[local101]).Name))[:])
3259 if len(((((*(*(struct {
3260 // N is the total number of ToCltMedia packets.
3261 // I is the index of this packet.
3271 }))(obj)).Files)[local101]).Data)) > math.MaxUint32 {
3275 x := uint32(len(((((*(*(struct {
3276 // N is the total number of ToCltMedia packets.
3277 // I is the index of this packet.
3287 }))(obj)).Files)[local101]).Data)))
3288 write32(w, uint32(x))
3291 _, err := w.Write(((((*(*(struct {
3292 // N is the total number of ToCltMedia packets.
3293 // I is the index of this packet.
3303 }))(obj)).Files)[local101]).Data)[:])
3309 func (obj *ToCltMedia) Deserialize(r io.Reader) {
3312 // N is the total number of ToCltMedia packets.
3313 // I is the index of this packet.
3328 // N is the total number of ToCltMedia packets.
3329 // I is the index of this packet.
3348 // N is the total number of ToCltMedia packets.
3349 // I is the index of this packet.
3359 }))(obj)).Files) = make([]struct {
3363 for local103 := range (*(*(struct {
3364 // N is the total number of ToCltMedia packets.
3365 // I is the index of this packet.
3376 var local104 []uint8
3382 (local104) = make([]uint8, local105)
3384 _, err := io.ReadFull(r, (local104)[:])
3388 // N is the total number of ToCltMedia packets.
3389 // I is the index of this packet.
3399 }))(obj)).Files)[local103]).Name) = string(local104)
3406 // N is the total number of ToCltMedia packets.
3407 // I is the index of this packet.
3417 }))(obj)).Files)[local103]).Data) = make([]byte, local106)
3419 _, err := io.ReadFull(r, ((((*(*(struct {
3420 // N is the total number of ToCltMedia packets.
3421 // I is the index of this packet.
3431 }))(obj)).Files)[local103]).Data)[:])
3437 func (obj *ToCltNodeDefs) Serialize(w io.Writer) {
3440 w := new(bytes.Buffer)
3442 w := zlib.NewWriter(w)
3444 local107 := uint8(1)
3453 // See (de)serialize.fmt.
3456 { // For ToCltNodeDefs.Defs.
3457 if len(x) > math.MaxUint16 {
3460 write16(w, uint16(len(x)))
3465 if b.Len() > math.MaxUint32 {
3468 write32(w, uint32(b.Len()))
3469 _, err := b.WriteTo(w)
3478 if len((buf.Bytes())) > math.MaxUint32 {
3482 x := uint32(len((buf.Bytes())))
3483 write32(w, uint32(x))
3486 _, err := w.Write((buf.Bytes())[:])
3493 func (obj *ToCltNodeDefs) Deserialize(r io.Reader) {
3500 r := &io.LimitedReader{R: r, N: int64(n)}
3502 r, err := zlib.NewReader(byteReader{r})
3506 local109 := uint8(1)
3511 if local108 != local109 {
3512 chk(fmt.Errorf("const %v: %v", "uint8(1)", local108))
3518 // See (de)serialize.fmt.
3521 { // For ToCltNodeDefs.Defs.
3522 *p = make([]NodeDef, read16(r))
3523 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3525 (*p)[i].Deserialize(r)
3528 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3535 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3540 func (obj *ToCltAnnounceMedia) Serialize(w io.Writer) {
3541 if len(((*(*(struct {
3547 }))(obj)).Files)) > math.MaxUint16 {
3551 x := uint16(len(((*(*(struct {
3558 write16(w, uint16(x))
3560 for local110 := range (*(*(struct {
3567 if len(([]byte((((*(*(struct {
3573 }))(obj)).Files)[local110]).Name))) > math.MaxUint16 {
3577 x := uint16(len(([]byte((((*(*(struct {
3583 }))(obj)).Files)[local110]).Name))))
3584 write16(w, uint16(x))
3587 _, err := w.Write(([]byte((((*(*(struct {
3593 }))(obj)).Files)[local110]).Name))[:])
3596 if len(([]byte((((*(*(struct {
3602 }))(obj)).Files)[local110]).Base64SHA1))) > math.MaxUint16 {
3606 x := uint16(len(([]byte((((*(*(struct {
3612 }))(obj)).Files)[local110]).Base64SHA1))))
3613 write16(w, uint16(x))
3616 _, err := w.Write(([]byte((((*(*(struct {
3622 }))(obj)).Files)[local110]).Base64SHA1))[:])
3626 if len(([]byte((*(*(struct {
3632 }))(obj)).URL))) > math.MaxUint16 {
3636 x := uint16(len(([]byte((*(*(struct {
3643 write16(w, uint16(x))
3646 _, err := w.Write(([]byte((*(*(struct {
3657 func (obj *ToCltAnnounceMedia) Deserialize(r io.Reader) {
3669 }))(obj)).Files) = make([]struct {
3673 for local112 := range (*(*(struct {
3680 var local113 []uint8
3686 (local113) = make([]uint8, local114)
3688 _, err := io.ReadFull(r, (local113)[:])
3697 }))(obj)).Files)[local112]).Name) = string(local113)
3698 var local115 []uint8
3704 (local115) = make([]uint8, local116)
3706 _, err := io.ReadFull(r, (local115)[:])
3715 }))(obj)).Files)[local112]).Base64SHA1) = string(local115)
3717 var local117 []uint8
3723 (local117) = make([]uint8, local118)
3725 _, err := io.ReadFull(r, (local117)[:])
3734 }))(obj)).URL) = string(local117)
3737 func (obj *ToCltItemDefs) Serialize(w io.Writer) {
3740 w := new(bytes.Buffer)
3742 w := zlib.NewWriter(w)
3744 local119 := uint8(0)
3750 if len(((*(*(struct {
3752 Aliases []struct{ Alias, Orig string }
3753 }))(obj)).Defs)) > math.MaxUint16 {
3757 x := uint16(len(((*(*(struct {
3759 Aliases []struct{ Alias, Orig string }
3761 write16(w, uint16(x))
3763 for local120 := range (*(*(struct {
3765 Aliases []struct{ Alias, Orig string }
3767 if err := pcall(func() {
3770 Aliases []struct{ Alias, Orig string }
3771 }))(obj)).Defs)[local120]).Serialize(w)
3776 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3779 if len(((*(*(struct {
3781 Aliases []struct{ Alias, Orig string }
3782 }))(obj)).Aliases)) > math.MaxUint16 {
3786 x := uint16(len(((*(*(struct {
3788 Aliases []struct{ Alias, Orig string }
3789 }))(obj)).Aliases)))
3790 write16(w, uint16(x))
3792 for local121 := range (*(*(struct {
3794 Aliases []struct{ Alias, Orig string }
3796 if len(([]byte((((*(*(struct {
3798 Aliases []struct{ Alias, Orig string }
3799 }))(obj)).Aliases)[local121]).Alias))) > math.MaxUint16 {
3803 x := uint16(len(([]byte((((*(*(struct {
3805 Aliases []struct{ Alias, Orig string }
3806 }))(obj)).Aliases)[local121]).Alias))))
3807 write16(w, uint16(x))
3810 _, err := w.Write(([]byte((((*(*(struct {
3812 Aliases []struct{ Alias, Orig string }
3813 }))(obj)).Aliases)[local121]).Alias))[:])
3816 if len(([]byte((((*(*(struct {
3818 Aliases []struct{ Alias, Orig string }
3819 }))(obj)).Aliases)[local121]).Orig))) > math.MaxUint16 {
3823 x := uint16(len(([]byte((((*(*(struct {
3825 Aliases []struct{ Alias, Orig string }
3826 }))(obj)).Aliases)[local121]).Orig))))
3827 write16(w, uint16(x))
3830 _, err := w.Write(([]byte((((*(*(struct {
3832 Aliases []struct{ Alias, Orig string }
3833 }))(obj)).Aliases)[local121]).Orig))[:])
3842 if len((buf.Bytes())) > math.MaxUint32 {
3846 x := uint32(len((buf.Bytes())))
3847 write32(w, uint32(x))
3850 _, err := w.Write((buf.Bytes())[:])
3857 func (obj *ToCltItemDefs) Deserialize(r io.Reader) {
3864 r := &io.LimitedReader{R: r, N: int64(n)}
3866 r, err := zlib.NewReader(byteReader{r})
3870 local123 := uint8(0)
3875 if local122 != local123 {
3876 chk(fmt.Errorf("const %v: %v", "uint8(0)", local122))
3886 Aliases []struct{ Alias, Orig string }
3887 }))(obj)).Defs) = make([]ItemDef, local124)
3888 for local125 := range (*(*(struct {
3890 Aliases []struct{ Alias, Orig string }
3892 if err := pcall(func() {
3895 Aliases []struct{ Alias, Orig string }
3896 }))(obj)).Defs)[local125]).Deserialize(r)
3901 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3911 Aliases []struct{ Alias, Orig string }
3912 }))(obj)).Aliases) = make([]struct {
3916 for local127 := range (*(*(struct {
3918 Aliases []struct{ Alias, Orig string }
3920 var local128 []uint8
3926 (local128) = make([]uint8, local129)
3928 _, err := io.ReadFull(r, (local128)[:])
3933 Aliases []struct{ Alias, Orig string }
3934 }))(obj)).Aliases)[local127]).Alias) = string(local128)
3935 var local130 []uint8
3941 (local130) = make([]uint8, local131)
3943 _, err := io.ReadFull(r, (local130)[:])
3948 Aliases []struct{ Alias, Orig string }
3949 }))(obj)).Aliases)[local127]).Orig) = string(local130)
3954 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3959 func (obj *ToCltPlaySound) Serialize(w io.Writer) {
3960 if err := pcall(func() {
3965 SrcType SoundSrcType
3972 }))(obj)).ID).Serialize(w)
3977 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
3979 if len(([]byte((*(*(struct {
3983 SrcType SoundSrcType
3990 }))(obj)).Name))) > math.MaxUint16 {
3994 x := uint16(len(([]byte((*(*(struct {
3998 SrcType SoundSrcType
4006 write16(w, uint16(x))
4009 _, err := w.Write(([]byte((*(*(struct {
4013 SrcType SoundSrcType
4020 }))(obj)).Name))[:])
4028 SrcType SoundSrcType
4036 write32(w, math.Float32bits(x))
4038 if err := pcall(func() {
4043 SrcType SoundSrcType
4050 }))(obj)).SrcType).Serialize(w)
4055 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4057 if err := pcall(func() {
4062 SrcType SoundSrcType
4069 }))(obj)).Pos).Serialize(w)
4074 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4076 if err := pcall(func() {
4081 SrcType SoundSrcType
4088 }))(obj)).SrcAOID).Serialize(w)
4093 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4100 SrcType SoundSrcType
4119 SrcType SoundSrcType
4127 write32(w, math.Float32bits(x))
4134 SrcType SoundSrcType
4142 write32(w, math.Float32bits(x))
4149 SrcType SoundSrcType
4165 func (obj *ToCltPlaySound) Deserialize(r io.Reader) {
4166 if err := pcall(func() {
4171 SrcType SoundSrcType
4178 }))(obj)).ID).Deserialize(r)
4183 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4185 var local132 []uint8
4191 (local132) = make([]uint8, local133)
4193 _, err := io.ReadFull(r, (local132)[:])
4200 SrcType SoundSrcType
4207 }))(obj)).Name) = string(local132)
4213 SrcType SoundSrcType
4221 *p = math.Float32frombits(read32(r))
4223 if err := pcall(func() {
4228 SrcType SoundSrcType
4235 }))(obj)).SrcType).Deserialize(r)
4240 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4242 if err := pcall(func() {
4247 SrcType SoundSrcType
4254 }))(obj)).Pos).Deserialize(r)
4259 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4261 if err := pcall(func() {
4266 SrcType SoundSrcType
4273 }))(obj)).SrcAOID).Deserialize(r)
4278 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4285 SrcType SoundSrcType
4293 switch n := read8(r); n {
4299 chk(fmt.Errorf("invalid bool: %d", n))
4307 SrcType SoundSrcType
4315 *p = math.Float32frombits(read32(r))
4322 SrcType SoundSrcType
4330 *p = math.Float32frombits(read32(r))
4337 SrcType SoundSrcType
4345 switch n := read8(r); n {
4351 chk(fmt.Errorf("invalid bool: %d", n))
4356 func (obj *ToCltStopSound) Serialize(w io.Writer) {
4357 if err := pcall(func() {
4360 }))(obj)).ID).Serialize(w)
4365 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4369 func (obj *ToCltStopSound) Deserialize(r io.Reader) {
4370 if err := pcall(func() {
4373 }))(obj)).ID).Deserialize(r)
4378 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4382 func (obj *ToCltPrivs) Serialize(w io.Writer) {
4383 if len(((*(*(struct {
4385 }))(obj)).Privs)) > math.MaxUint16 {
4389 x := uint16(len(((*(*(struct {
4392 write16(w, uint16(x))
4394 for local134 := range (*(*(struct {
4397 if len(([]byte(((*(*(struct {
4399 }))(obj)).Privs)[local134]))) > math.MaxUint16 {
4403 x := uint16(len(([]byte(((*(*(struct {
4405 }))(obj)).Privs)[local134]))))
4406 write16(w, uint16(x))
4409 _, err := w.Write(([]byte(((*(*(struct {
4411 }))(obj)).Privs)[local134]))[:])
4417 func (obj *ToCltPrivs) Deserialize(r io.Reader) {
4425 }))(obj)).Privs) = make([]string, local135)
4426 for local136 := range (*(*(struct {
4429 var local137 []uint8
4435 (local137) = make([]uint8, local138)
4437 _, err := io.ReadFull(r, (local137)[:])
4442 }))(obj)).Privs)[local136]) = string(local137)
4446 func (obj *ToCltInvFormspec) Serialize(w io.Writer) {
4447 if len(([]byte((*(*(struct {
4450 }))(obj)).Formspec))) > math.MaxUint32 {
4454 x := uint32(len(([]byte((*(*(struct {
4457 }))(obj)).Formspec))))
4458 write32(w, uint32(x))
4461 _, err := w.Write(([]byte((*(*(struct {
4464 }))(obj)).Formspec))[:])
4469 func (obj *ToCltInvFormspec) Deserialize(r io.Reader) {
4470 var local139 []uint8
4476 (local139) = make([]uint8, local140)
4478 _, err := io.ReadFull(r, (local139)[:])
4484 }))(obj)).Formspec) = string(local139)
4487 func (obj *ToCltDetachedInv) Serialize(w io.Writer) {
4488 if len(([]byte((*(*(struct {
4491 Len uint16 // deprecated
4495 }))(obj)).Name))) > math.MaxUint16 {
4499 x := uint16(len(([]byte((*(*(struct {
4502 Len uint16 // deprecated
4507 write16(w, uint16(x))
4510 _, err := w.Write(([]byte((*(*(struct {
4513 Len uint16 // deprecated
4517 }))(obj)).Name))[:])
4524 Len uint16 // deprecated
4539 Len uint16 // deprecated
4544 write16(w, uint16(x))
4547 _, err := w.Write(([]byte((*(*(struct {
4550 Len uint16 // deprecated
4559 func (obj *ToCltDetachedInv) Deserialize(r io.Reader) {
4560 var local141 []uint8
4566 (local141) = make([]uint8, local142)
4568 _, err := io.ReadFull(r, (local141)[:])
4574 Len uint16 // deprecated
4578 }))(obj)).Name) = string(local141)
4583 Len uint16 // deprecated
4588 switch n := read8(r); n {
4594 chk(fmt.Errorf("invalid bool: %d", n))
4601 Len uint16 // deprecated
4608 var local143 []uint8
4611 (local143), err = io.ReadAll(r)
4617 Len uint16 // deprecated
4621 }))(obj)).Inv) = string(local143)
4624 func (obj *ToCltShowFormspec) Serialize(w io.Writer) {
4625 if len(([]byte((*(*(struct {
4630 }))(obj)).Formspec))) > math.MaxUint32 {
4634 x := uint32(len(([]byte((*(*(struct {
4639 }))(obj)).Formspec))))
4640 write32(w, uint32(x))
4643 _, err := w.Write(([]byte((*(*(struct {
4648 }))(obj)).Formspec))[:])
4651 if len(([]byte((*(*(struct {
4656 }))(obj)).Formname))) > math.MaxUint16 {
4660 x := uint16(len(([]byte((*(*(struct {
4665 }))(obj)).Formname))))
4666 write16(w, uint16(x))
4669 _, err := w.Write(([]byte((*(*(struct {
4674 }))(obj)).Formname))[:])
4679 func (obj *ToCltShowFormspec) Deserialize(r io.Reader) {
4680 var local144 []uint8
4686 (local144) = make([]uint8, local145)
4688 _, err := io.ReadFull(r, (local144)[:])
4696 }))(obj)).Formspec) = string(local144)
4697 var local146 []uint8
4703 (local146) = make([]uint8, local147)
4705 _, err := io.ReadFull(r, (local146)[:])
4713 }))(obj)).Formname) = string(local146)
4716 func (obj *ToCltMovement) Serialize(w io.Writer) {
4719 DefaultAccel, AirAccel, FastAccel,
4720 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4721 Fluidity, Smoothing, Sink,
4723 }))(obj)).DefaultAccel
4724 write32(w, math.Float32bits(x))
4728 DefaultAccel, AirAccel, FastAccel,
4729 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4730 Fluidity, Smoothing, Sink,
4733 write32(w, math.Float32bits(x))
4737 DefaultAccel, AirAccel, FastAccel,
4738 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4739 Fluidity, Smoothing, Sink,
4742 write32(w, math.Float32bits(x))
4746 DefaultAccel, AirAccel, FastAccel,
4747 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4748 Fluidity, Smoothing, Sink,
4751 write32(w, math.Float32bits(x))
4755 DefaultAccel, AirAccel, FastAccel,
4756 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4757 Fluidity, Smoothing, Sink,
4759 }))(obj)).CrouchSpeed
4760 write32(w, math.Float32bits(x))
4764 DefaultAccel, AirAccel, FastAccel,
4765 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4766 Fluidity, Smoothing, Sink,
4769 write32(w, math.Float32bits(x))
4773 DefaultAccel, AirAccel, FastAccel,
4774 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4775 Fluidity, Smoothing, Sink,
4777 }))(obj)).ClimbSpeed
4778 write32(w, math.Float32bits(x))
4782 DefaultAccel, AirAccel, FastAccel,
4783 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4784 Fluidity, Smoothing, Sink,
4787 write32(w, math.Float32bits(x))
4791 DefaultAccel, AirAccel, FastAccel,
4792 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4793 Fluidity, Smoothing, Sink,
4796 write32(w, math.Float32bits(x))
4800 DefaultAccel, AirAccel, FastAccel,
4801 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4802 Fluidity, Smoothing, Sink,
4805 write32(w, math.Float32bits(x))
4809 DefaultAccel, AirAccel, FastAccel,
4810 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4811 Fluidity, Smoothing, Sink,
4814 write32(w, math.Float32bits(x))
4818 DefaultAccel, AirAccel, FastAccel,
4819 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4820 Fluidity, Smoothing, Sink,
4823 write32(w, math.Float32bits(x))
4827 func (obj *ToCltMovement) Deserialize(r io.Reader) {
4830 DefaultAccel, AirAccel, FastAccel,
4831 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4832 Fluidity, Smoothing, Sink,
4834 }))(obj)).DefaultAccel
4835 *p = math.Float32frombits(read32(r))
4839 DefaultAccel, AirAccel, FastAccel,
4840 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4841 Fluidity, Smoothing, Sink,
4844 *p = math.Float32frombits(read32(r))
4848 DefaultAccel, AirAccel, FastAccel,
4849 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4850 Fluidity, Smoothing, Sink,
4853 *p = math.Float32frombits(read32(r))
4857 DefaultAccel, AirAccel, FastAccel,
4858 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4859 Fluidity, Smoothing, Sink,
4862 *p = math.Float32frombits(read32(r))
4866 DefaultAccel, AirAccel, FastAccel,
4867 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4868 Fluidity, Smoothing, Sink,
4870 }))(obj)).CrouchSpeed
4871 *p = math.Float32frombits(read32(r))
4875 DefaultAccel, AirAccel, FastAccel,
4876 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4877 Fluidity, Smoothing, Sink,
4880 *p = math.Float32frombits(read32(r))
4884 DefaultAccel, AirAccel, FastAccel,
4885 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4886 Fluidity, Smoothing, Sink,
4888 }))(obj)).ClimbSpeed
4889 *p = math.Float32frombits(read32(r))
4893 DefaultAccel, AirAccel, FastAccel,
4894 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4895 Fluidity, Smoothing, Sink,
4898 *p = math.Float32frombits(read32(r))
4902 DefaultAccel, AirAccel, FastAccel,
4903 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4904 Fluidity, Smoothing, Sink,
4907 *p = math.Float32frombits(read32(r))
4911 DefaultAccel, AirAccel, FastAccel,
4912 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4913 Fluidity, Smoothing, Sink,
4916 *p = math.Float32frombits(read32(r))
4920 DefaultAccel, AirAccel, FastAccel,
4921 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4922 Fluidity, Smoothing, Sink,
4925 *p = math.Float32frombits(read32(r))
4929 DefaultAccel, AirAccel, FastAccel,
4930 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4931 Fluidity, Smoothing, Sink,
4934 *p = math.Float32frombits(read32(r))
4938 func (obj *ToCltSpawnParticle) Serialize(w io.Writer) {
4939 for local148 := range (*(*(struct {
4940 Pos, Vel, Acc [3]float32
4941 ExpirationTime float32 // in seconds.
4959 Pos, Vel, Acc [3]float32
4960 ExpirationTime float32 // in seconds.
4975 }))(obj)).Pos)[local148]
4976 write32(w, math.Float32bits(x))
4979 for local149 := range (*(*(struct {
4980 Pos, Vel, Acc [3]float32
4981 ExpirationTime float32 // in seconds.
4999 Pos, Vel, Acc [3]float32
5000 ExpirationTime float32 // in seconds.
5015 }))(obj)).Vel)[local149]
5016 write32(w, math.Float32bits(x))
5019 for local150 := range (*(*(struct {
5020 Pos, Vel, Acc [3]float32
5021 ExpirationTime float32 // in seconds.
5039 Pos, Vel, Acc [3]float32
5040 ExpirationTime float32 // in seconds.
5055 }))(obj)).Acc)[local150]
5056 write32(w, math.Float32bits(x))
5061 Pos, Vel, Acc [3]float32
5062 ExpirationTime float32 // in seconds.
5077 }))(obj)).ExpirationTime
5078 write32(w, math.Float32bits(x))
5082 Pos, Vel, Acc [3]float32
5083 ExpirationTime float32 // in seconds.
5099 write32(w, math.Float32bits(x))
5103 Pos, Vel, Acc [3]float32
5104 ExpirationTime float32 // in seconds.
5126 if len(([]byte(*(*string)(&((*(*(struct {
5127 Pos, Vel, Acc [3]float32
5128 ExpirationTime float32 // in seconds.
5143 }))(obj)).Texture))))) > math.MaxUint32 {
5147 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5148 Pos, Vel, Acc [3]float32
5149 ExpirationTime float32 // in seconds.
5164 }))(obj)).Texture))))))
5165 write32(w, uint32(x))
5168 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5169 Pos, Vel, Acc [3]float32
5170 ExpirationTime float32 // in seconds.
5185 }))(obj)).Texture))))[:])
5190 Pos, Vel, Acc [3]float32
5191 ExpirationTime float32 // in seconds.
5215 Pos, Vel, Acc [3]float32
5216 ExpirationTime float32 // in seconds.
5231 }))(obj)).CollisionRm
5238 if err := pcall(func() {
5240 Pos, Vel, Acc [3]float32
5241 ExpirationTime float32 // in seconds.
5256 }))(obj)).AnimParams).Serialize(w)
5261 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5265 Pos, Vel, Acc [3]float32
5266 ExpirationTime float32 // in seconds.
5286 Pos, Vel, Acc [3]float32
5287 ExpirationTime float32 // in seconds.
5302 }))(obj)).AOCollision
5309 if err := pcall(func() {
5311 Pos, Vel, Acc [3]float32
5312 ExpirationTime float32 // in seconds.
5327 }))(obj)).NodeParam0).Serialize(w)
5332 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5336 Pos, Vel, Acc [3]float32
5337 ExpirationTime float32 // in seconds.
5352 }))(obj)).NodeParam2
5357 Pos, Vel, Acc [3]float32
5358 ExpirationTime float32 // in seconds.
5378 func (obj *ToCltSpawnParticle) Deserialize(r io.Reader) {
5379 for local151 := range (*(*(struct {
5380 Pos, Vel, Acc [3]float32
5381 ExpirationTime float32 // in seconds.
5398 p := &((*(*(struct {
5399 Pos, Vel, Acc [3]float32
5400 ExpirationTime float32 // in seconds.
5415 }))(obj)).Pos)[local151]
5416 *p = math.Float32frombits(read32(r))
5419 for local152 := range (*(*(struct {
5420 Pos, Vel, Acc [3]float32
5421 ExpirationTime float32 // in seconds.
5438 p := &((*(*(struct {
5439 Pos, Vel, Acc [3]float32
5440 ExpirationTime float32 // in seconds.
5455 }))(obj)).Vel)[local152]
5456 *p = math.Float32frombits(read32(r))
5459 for local153 := range (*(*(struct {
5460 Pos, Vel, Acc [3]float32
5461 ExpirationTime float32 // in seconds.
5478 p := &((*(*(struct {
5479 Pos, Vel, Acc [3]float32
5480 ExpirationTime float32 // in seconds.
5495 }))(obj)).Acc)[local153]
5496 *p = math.Float32frombits(read32(r))
5501 Pos, Vel, Acc [3]float32
5502 ExpirationTime float32 // in seconds.
5517 }))(obj)).ExpirationTime
5518 *p = math.Float32frombits(read32(r))
5522 Pos, Vel, Acc [3]float32
5523 ExpirationTime float32 // in seconds.
5539 *p = math.Float32frombits(read32(r))
5543 Pos, Vel, Acc [3]float32
5544 ExpirationTime float32 // in seconds.
5560 switch n := read8(r); n {
5566 chk(fmt.Errorf("invalid bool: %d", n))
5569 var local154 []uint8
5575 (local154) = make([]uint8, local155)
5577 _, err := io.ReadFull(r, (local154)[:])
5580 (*(*string)(&((*(*(struct {
5581 Pos, Vel, Acc [3]float32
5582 ExpirationTime float32 // in seconds.
5597 }))(obj)).Texture))) = string(local154)
5600 Pos, Vel, Acc [3]float32
5601 ExpirationTime float32 // in seconds.
5617 switch n := read8(r); n {
5623 chk(fmt.Errorf("invalid bool: %d", n))
5628 Pos, Vel, Acc [3]float32
5629 ExpirationTime float32 // in seconds.
5644 }))(obj)).CollisionRm
5645 switch n := read8(r); n {
5651 chk(fmt.Errorf("invalid bool: %d", n))
5654 if err := pcall(func() {
5656 Pos, Vel, Acc [3]float32
5657 ExpirationTime float32 // in seconds.
5672 }))(obj)).AnimParams).Deserialize(r)
5677 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5681 Pos, Vel, Acc [3]float32
5682 ExpirationTime float32 // in seconds.
5702 Pos, Vel, Acc [3]float32
5703 ExpirationTime float32 // in seconds.
5718 }))(obj)).AOCollision
5719 switch n := read8(r); n {
5725 chk(fmt.Errorf("invalid bool: %d", n))
5728 if err := pcall(func() {
5730 Pos, Vel, Acc [3]float32
5731 ExpirationTime float32 // in seconds.
5746 }))(obj)).NodeParam0).Deserialize(r)
5751 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5755 Pos, Vel, Acc [3]float32
5756 ExpirationTime float32 // in seconds.
5771 }))(obj)).NodeParam2
5776 Pos, Vel, Acc [3]float32
5777 ExpirationTime float32 // in seconds.
5797 func (obj *ToCltAddParticleSpawner) Serialize(w io.Writer) {
5802 Pos, Vel, Acc [2][3]float32
5803 ExpirationTime [2]float32 // in seconds.
5810 ID ParticleSpawnerID
5821 write16(w, uint16(x))
5827 Pos, Vel, Acc [2][3]float32
5828 ExpirationTime [2]float32 // in seconds.
5835 ID ParticleSpawnerID
5846 write32(w, math.Float32bits(x))
5848 for local156 := range (*(*(struct {
5851 Pos, Vel, Acc [2][3]float32
5852 ExpirationTime [2]float32 // in seconds.
5859 ID ParticleSpawnerID
5870 for local157 := range ((*(*(struct {
5873 Pos, Vel, Acc [2][3]float32
5874 ExpirationTime [2]float32 // in seconds.
5881 ID ParticleSpawnerID
5891 }))(obj)).Pos)[local156] {
5893 x := (((*(*(struct {
5896 Pos, Vel, Acc [2][3]float32
5897 ExpirationTime [2]float32 // in seconds.
5904 ID ParticleSpawnerID
5914 }))(obj)).Pos)[local156])[local157]
5915 write32(w, math.Float32bits(x))
5919 for local158 := range (*(*(struct {
5922 Pos, Vel, Acc [2][3]float32
5923 ExpirationTime [2]float32 // in seconds.
5930 ID ParticleSpawnerID
5941 for local159 := range ((*(*(struct {
5944 Pos, Vel, Acc [2][3]float32
5945 ExpirationTime [2]float32 // in seconds.
5952 ID ParticleSpawnerID
5962 }))(obj)).Vel)[local158] {
5964 x := (((*(*(struct {
5967 Pos, Vel, Acc [2][3]float32
5968 ExpirationTime [2]float32 // in seconds.
5975 ID ParticleSpawnerID
5985 }))(obj)).Vel)[local158])[local159]
5986 write32(w, math.Float32bits(x))
5990 for local160 := range (*(*(struct {
5993 Pos, Vel, Acc [2][3]float32
5994 ExpirationTime [2]float32 // in seconds.
6001 ID ParticleSpawnerID
6012 for local161 := range ((*(*(struct {
6015 Pos, Vel, Acc [2][3]float32
6016 ExpirationTime [2]float32 // in seconds.
6023 ID ParticleSpawnerID
6033 }))(obj)).Acc)[local160] {
6035 x := (((*(*(struct {
6038 Pos, Vel, Acc [2][3]float32
6039 ExpirationTime [2]float32 // in seconds.
6046 ID ParticleSpawnerID
6056 }))(obj)).Acc)[local160])[local161]
6057 write32(w, math.Float32bits(x))
6061 for local162 := range (*(*(struct {
6064 Pos, Vel, Acc [2][3]float32
6065 ExpirationTime [2]float32 // in seconds.
6072 ID ParticleSpawnerID
6082 }))(obj)).ExpirationTime {
6087 Pos, Vel, Acc [2][3]float32
6088 ExpirationTime [2]float32 // in seconds.
6095 ID ParticleSpawnerID
6105 }))(obj)).ExpirationTime)[local162]
6106 write32(w, math.Float32bits(x))
6109 for local163 := range (*(*(struct {
6112 Pos, Vel, Acc [2][3]float32
6113 ExpirationTime [2]float32 // in seconds.
6120 ID ParticleSpawnerID
6135 Pos, Vel, Acc [2][3]float32
6136 ExpirationTime [2]float32 // in seconds.
6143 ID ParticleSpawnerID
6153 }))(obj)).Size)[local163]
6154 write32(w, math.Float32bits(x))
6161 Pos, Vel, Acc [2][3]float32
6162 ExpirationTime [2]float32 // in seconds.
6169 ID ParticleSpawnerID
6186 if len(([]byte(*(*string)(&((*(*(struct {
6189 Pos, Vel, Acc [2][3]float32
6190 ExpirationTime [2]float32 // in seconds.
6197 ID ParticleSpawnerID
6207 }))(obj)).Texture))))) > math.MaxUint32 {
6211 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6214 Pos, Vel, Acc [2][3]float32
6215 ExpirationTime [2]float32 // in seconds.
6222 ID ParticleSpawnerID
6232 }))(obj)).Texture))))))
6233 write32(w, uint32(x))
6236 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6239 Pos, Vel, Acc [2][3]float32
6240 ExpirationTime [2]float32 // in seconds.
6247 ID ParticleSpawnerID
6257 }))(obj)).Texture))))[:])
6260 if err := pcall(func() {
6264 Pos, Vel, Acc [2][3]float32
6265 ExpirationTime [2]float32 // in seconds.
6272 ID ParticleSpawnerID
6282 }))(obj)).ID).Serialize(w)
6287 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
6293 Pos, Vel, Acc [2][3]float32
6294 ExpirationTime [2]float32 // in seconds.
6301 ID ParticleSpawnerID
6322 Pos, Vel, Acc [2][3]float32
6323 ExpirationTime [2]float32 // in seconds.
6330 ID ParticleSpawnerID
6340 }))(obj)).CollisionRm
6347 if err := pcall(func() {
6351 Pos, Vel, Acc [2][3]float32
6352 ExpirationTime [2]float32 // in seconds.
6359 ID ParticleSpawnerID
6369 }))(obj)).AttachedAOID).Serialize(w)
6374 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
6376 if err := pcall(func() {
6380 Pos, Vel, Acc [2][3]float32
6381 ExpirationTime [2]float32 // in seconds.
6388 ID ParticleSpawnerID
6398 }))(obj)).AnimParams).Serialize(w)
6403 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
6409 Pos, Vel, Acc [2][3]float32
6410 ExpirationTime [2]float32 // in seconds.
6417 ID ParticleSpawnerID
6434 Pos, Vel, Acc [2][3]float32
6435 ExpirationTime [2]float32 // in seconds.
6442 ID ParticleSpawnerID
6452 }))(obj)).AOCollision
6459 if err := pcall(func() {
6463 Pos, Vel, Acc [2][3]float32
6464 ExpirationTime [2]float32 // in seconds.
6471 ID ParticleSpawnerID
6481 }))(obj)).NodeParam0).Serialize(w)
6486 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
6492 Pos, Vel, Acc [2][3]float32
6493 ExpirationTime [2]float32 // in seconds.
6500 ID ParticleSpawnerID
6510 }))(obj)).NodeParam2
6517 Pos, Vel, Acc [2][3]float32
6518 ExpirationTime [2]float32 // in seconds.
6525 ID ParticleSpawnerID
6540 func (obj *ToCltAddParticleSpawner) Deserialize(r io.Reader) {
6545 Pos, Vel, Acc [2][3]float32
6546 ExpirationTime [2]float32 // in seconds.
6553 ID ParticleSpawnerID
6570 Pos, Vel, Acc [2][3]float32
6571 ExpirationTime [2]float32 // in seconds.
6578 ID ParticleSpawnerID
6589 *p = math.Float32frombits(read32(r))
6591 for local164 := range (*(*(struct {
6594 Pos, Vel, Acc [2][3]float32
6595 ExpirationTime [2]float32 // in seconds.
6602 ID ParticleSpawnerID
6613 for local165 := range ((*(*(struct {
6616 Pos, Vel, Acc [2][3]float32
6617 ExpirationTime [2]float32 // in seconds.
6624 ID ParticleSpawnerID
6634 }))(obj)).Pos)[local164] {
6636 p := &(((*(*(struct {
6639 Pos, Vel, Acc [2][3]float32
6640 ExpirationTime [2]float32 // in seconds.
6647 ID ParticleSpawnerID
6657 }))(obj)).Pos)[local164])[local165]
6658 *p = math.Float32frombits(read32(r))
6662 for local166 := range (*(*(struct {
6665 Pos, Vel, Acc [2][3]float32
6666 ExpirationTime [2]float32 // in seconds.
6673 ID ParticleSpawnerID
6684 for local167 := range ((*(*(struct {
6687 Pos, Vel, Acc [2][3]float32
6688 ExpirationTime [2]float32 // in seconds.
6695 ID ParticleSpawnerID
6705 }))(obj)).Vel)[local166] {
6707 p := &(((*(*(struct {
6710 Pos, Vel, Acc [2][3]float32
6711 ExpirationTime [2]float32 // in seconds.
6718 ID ParticleSpawnerID
6728 }))(obj)).Vel)[local166])[local167]
6729 *p = math.Float32frombits(read32(r))
6733 for local168 := range (*(*(struct {
6736 Pos, Vel, Acc [2][3]float32
6737 ExpirationTime [2]float32 // in seconds.
6744 ID ParticleSpawnerID
6755 for local169 := range ((*(*(struct {
6758 Pos, Vel, Acc [2][3]float32
6759 ExpirationTime [2]float32 // in seconds.
6766 ID ParticleSpawnerID
6776 }))(obj)).Acc)[local168] {
6778 p := &(((*(*(struct {
6781 Pos, Vel, Acc [2][3]float32
6782 ExpirationTime [2]float32 // in seconds.
6789 ID ParticleSpawnerID
6799 }))(obj)).Acc)[local168])[local169]
6800 *p = math.Float32frombits(read32(r))
6804 for local170 := range (*(*(struct {
6807 Pos, Vel, Acc [2][3]float32
6808 ExpirationTime [2]float32 // in seconds.
6815 ID ParticleSpawnerID
6825 }))(obj)).ExpirationTime {
6827 p := &((*(*(struct {
6830 Pos, Vel, Acc [2][3]float32
6831 ExpirationTime [2]float32 // in seconds.
6838 ID ParticleSpawnerID
6848 }))(obj)).ExpirationTime)[local170]
6849 *p = math.Float32frombits(read32(r))
6852 for local171 := range (*(*(struct {
6855 Pos, Vel, Acc [2][3]float32
6856 ExpirationTime [2]float32 // in seconds.
6863 ID ParticleSpawnerID
6875 p := &((*(*(struct {
6878 Pos, Vel, Acc [2][3]float32
6879 ExpirationTime [2]float32 // in seconds.
6886 ID ParticleSpawnerID
6896 }))(obj)).Size)[local171]
6897 *p = math.Float32frombits(read32(r))
6904 Pos, Vel, Acc [2][3]float32
6905 ExpirationTime [2]float32 // in seconds.
6912 ID ParticleSpawnerID
6923 switch n := read8(r); n {
6929 chk(fmt.Errorf("invalid bool: %d", n))
6932 var local172 []uint8
6938 (local172) = make([]uint8, local173)
6940 _, err := io.ReadFull(r, (local172)[:])
6943 (*(*string)(&((*(*(struct {
6946 Pos, Vel, Acc [2][3]float32
6947 ExpirationTime [2]float32 // in seconds.
6954 ID ParticleSpawnerID
6964 }))(obj)).Texture))) = string(local172)
6965 if err := pcall(func() {
6969 Pos, Vel, Acc [2][3]float32
6970 ExpirationTime [2]float32 // in seconds.
6977 ID ParticleSpawnerID
6987 }))(obj)).ID).Deserialize(r)
6992 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
6998 Pos, Vel, Acc [2][3]float32
6999 ExpirationTime [2]float32 // in seconds.
7006 ID ParticleSpawnerID
7017 switch n := read8(r); n {
7023 chk(fmt.Errorf("invalid bool: %d", n))
7030 Pos, Vel, Acc [2][3]float32
7031 ExpirationTime [2]float32 // in seconds.
7038 ID ParticleSpawnerID
7048 }))(obj)).CollisionRm
7049 switch n := read8(r); n {
7055 chk(fmt.Errorf("invalid bool: %d", n))
7058 if err := pcall(func() {
7062 Pos, Vel, Acc [2][3]float32
7063 ExpirationTime [2]float32 // in seconds.
7070 ID ParticleSpawnerID
7080 }))(obj)).AttachedAOID).Deserialize(r)
7085 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
7087 if err := pcall(func() {
7091 Pos, Vel, Acc [2][3]float32
7092 ExpirationTime [2]float32 // in seconds.
7099 ID ParticleSpawnerID
7109 }))(obj)).AnimParams).Deserialize(r)
7114 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
7120 Pos, Vel, Acc [2][3]float32
7121 ExpirationTime [2]float32 // in seconds.
7128 ID ParticleSpawnerID
7145 Pos, Vel, Acc [2][3]float32
7146 ExpirationTime [2]float32 // in seconds.
7153 ID ParticleSpawnerID
7163 }))(obj)).AOCollision
7164 switch n := read8(r); n {
7170 chk(fmt.Errorf("invalid bool: %d", n))
7173 if err := pcall(func() {
7177 Pos, Vel, Acc [2][3]float32
7178 ExpirationTime [2]float32 // in seconds.
7185 ID ParticleSpawnerID
7195 }))(obj)).NodeParam0).Deserialize(r)
7200 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
7206 Pos, Vel, Acc [2][3]float32
7207 ExpirationTime [2]float32 // in seconds.
7214 ID ParticleSpawnerID
7224 }))(obj)).NodeParam2
7231 Pos, Vel, Acc [2][3]float32
7232 ExpirationTime [2]float32 // in seconds.
7239 ID ParticleSpawnerID
7254 func (obj *ToCltAddHUD) Serialize(w io.Writer) {
7255 if err := pcall(func() {
7259 }))(obj)).ID).Serialize(w)
7264 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7266 if err := pcall(func() {
7270 }))(obj)).HUD).Serialize(w)
7275 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7279 func (obj *ToCltAddHUD) Deserialize(r io.Reader) {
7280 if err := pcall(func() {
7284 }))(obj)).ID).Deserialize(r)
7289 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7291 if err := pcall(func() {
7295 }))(obj)).HUD).Deserialize(r)
7300 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7304 func (obj *ToCltRmHUD) Serialize(w io.Writer) {
7305 if err := pcall(func() {
7308 }))(obj)).ID).Serialize(w)
7313 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7317 func (obj *ToCltRmHUD) Deserialize(r io.Reader) {
7318 if err := pcall(func() {
7321 }))(obj)).ID).Deserialize(r)
7326 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7330 func (obj *ToCltChangeHUD) Serialize(w io.Writer) {
7331 if err := pcall(func() {
7337 //mt:if %s.Field == HUDPos
7340 //mt:if %s.Field == HUDName
7343 //mt:if %s.Field == HUDScale
7346 //mt:if %s.Field == HUDText
7349 //mt:if %s.Field == HUDNumber
7352 //mt:if %s.Field == HUDItem
7355 //mt:if %s.Field == HUDDir
7358 //mt:if %s.Field == HUDAlign
7361 //mt:if %s.Field == HUDOffset
7364 //mt:if %s.Field == HUDWorldPos
7367 //mt:if %s.Field == HUDSize
7370 //mt:if %s.Field == HUDZIndex
7373 //mt:if %s.Field == HUDText2
7375 }))(obj)).ID).Serialize(w)
7380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7382 if err := pcall(func() {
7388 //mt:if %s.Field == HUDPos
7391 //mt:if %s.Field == HUDName
7394 //mt:if %s.Field == HUDScale
7397 //mt:if %s.Field == HUDText
7400 //mt:if %s.Field == HUDNumber
7403 //mt:if %s.Field == HUDItem
7406 //mt:if %s.Field == HUDDir
7409 //mt:if %s.Field == HUDAlign
7412 //mt:if %s.Field == HUDOffset
7415 //mt:if %s.Field == HUDWorldPos
7418 //mt:if %s.Field == HUDSize
7421 //mt:if %s.Field == HUDZIndex
7424 //mt:if %s.Field == HUDText2
7426 }))(obj)).Field).Serialize(w)
7431 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
7438 //mt:if %s.Field == HUDPos
7441 //mt:if %s.Field == HUDName
7444 //mt:if %s.Field == HUDScale
7447 //mt:if %s.Field == HUDText
7450 //mt:if %s.Field == HUDNumber
7453 //mt:if %s.Field == HUDItem
7456 //mt:if %s.Field == HUDDir
7459 //mt:if %s.Field == HUDAlign
7462 //mt:if %s.Field == HUDOffset
7465 //mt:if %s.Field == HUDWorldPos
7468 //mt:if %s.Field == HUDSize
7471 //mt:if %s.Field == HUDZIndex
7474 //mt:if %s.Field == HUDText2
7476 }))(obj)).Field < hudMax) {
7477 chk(errors.New("assertion failed: %s.Field < hudMax"))
7484 //mt:if %s.Field == HUDPos
7487 //mt:if %s.Field == HUDName
7490 //mt:if %s.Field == HUDScale
7493 //mt:if %s.Field == HUDText
7496 //mt:if %s.Field == HUDNumber
7499 //mt:if %s.Field == HUDItem
7502 //mt:if %s.Field == HUDDir
7505 //mt:if %s.Field == HUDAlign
7508 //mt:if %s.Field == HUDOffset
7511 //mt:if %s.Field == HUDWorldPos
7514 //mt:if %s.Field == HUDSize
7517 //mt:if %s.Field == HUDZIndex
7520 //mt:if %s.Field == HUDText2
7522 }))(obj)).Field == HUDPos {
7523 for local174 := range (*(*(struct {
7528 //mt:if %s.Field == HUDPos
7531 //mt:if %s.Field == HUDName
7534 //mt:if %s.Field == HUDScale
7537 //mt:if %s.Field == HUDText
7540 //mt:if %s.Field == HUDNumber
7543 //mt:if %s.Field == HUDItem
7546 //mt:if %s.Field == HUDDir
7549 //mt:if %s.Field == HUDAlign
7552 //mt:if %s.Field == HUDOffset
7555 //mt:if %s.Field == HUDWorldPos
7558 //mt:if %s.Field == HUDSize
7561 //mt:if %s.Field == HUDZIndex
7564 //mt:if %s.Field == HUDText2
7573 //mt:if %s.Field == HUDPos
7576 //mt:if %s.Field == HUDName
7579 //mt:if %s.Field == HUDScale
7582 //mt:if %s.Field == HUDText
7585 //mt:if %s.Field == HUDNumber
7588 //mt:if %s.Field == HUDItem
7591 //mt:if %s.Field == HUDDir
7594 //mt:if %s.Field == HUDAlign
7597 //mt:if %s.Field == HUDOffset
7600 //mt:if %s.Field == HUDWorldPos
7603 //mt:if %s.Field == HUDSize
7606 //mt:if %s.Field == HUDZIndex
7609 //mt:if %s.Field == HUDText2
7611 }))(obj)).Pos)[local174]
7612 write32(w, math.Float32bits(x))
7621 //mt:if %s.Field == HUDPos
7624 //mt:if %s.Field == HUDName
7627 //mt:if %s.Field == HUDScale
7630 //mt:if %s.Field == HUDText
7633 //mt:if %s.Field == HUDNumber
7636 //mt:if %s.Field == HUDItem
7639 //mt:if %s.Field == HUDDir
7642 //mt:if %s.Field == HUDAlign
7645 //mt:if %s.Field == HUDOffset
7648 //mt:if %s.Field == HUDWorldPos
7651 //mt:if %s.Field == HUDSize
7654 //mt:if %s.Field == HUDZIndex
7657 //mt:if %s.Field == HUDText2
7659 }))(obj)).Field == HUDName {
7660 if len(([]byte((*(*(struct {
7665 //mt:if %s.Field == HUDPos
7668 //mt:if %s.Field == HUDName
7671 //mt:if %s.Field == HUDScale
7674 //mt:if %s.Field == HUDText
7677 //mt:if %s.Field == HUDNumber
7680 //mt:if %s.Field == HUDItem
7683 //mt:if %s.Field == HUDDir
7686 //mt:if %s.Field == HUDAlign
7689 //mt:if %s.Field == HUDOffset
7692 //mt:if %s.Field == HUDWorldPos
7695 //mt:if %s.Field == HUDSize
7698 //mt:if %s.Field == HUDZIndex
7701 //mt:if %s.Field == HUDText2
7703 }))(obj)).Name))) > math.MaxUint16 {
7707 x := uint16(len(([]byte((*(*(struct {
7712 //mt:if %s.Field == HUDPos
7715 //mt:if %s.Field == HUDName
7718 //mt:if %s.Field == HUDScale
7721 //mt:if %s.Field == HUDText
7724 //mt:if %s.Field == HUDNumber
7727 //mt:if %s.Field == HUDItem
7730 //mt:if %s.Field == HUDDir
7733 //mt:if %s.Field == HUDAlign
7736 //mt:if %s.Field == HUDOffset
7739 //mt:if %s.Field == HUDWorldPos
7742 //mt:if %s.Field == HUDSize
7745 //mt:if %s.Field == HUDZIndex
7748 //mt:if %s.Field == HUDText2
7751 write16(w, uint16(x))
7754 _, err := w.Write(([]byte((*(*(struct {
7759 //mt:if %s.Field == HUDPos
7762 //mt:if %s.Field == HUDName
7765 //mt:if %s.Field == HUDScale
7768 //mt:if %s.Field == HUDText
7771 //mt:if %s.Field == HUDNumber
7774 //mt:if %s.Field == HUDItem
7777 //mt:if %s.Field == HUDDir
7780 //mt:if %s.Field == HUDAlign
7783 //mt:if %s.Field == HUDOffset
7786 //mt:if %s.Field == HUDWorldPos
7789 //mt:if %s.Field == HUDSize
7792 //mt:if %s.Field == HUDZIndex
7795 //mt:if %s.Field == HUDText2
7797 }))(obj)).Name))[:])
7806 //mt:if %s.Field == HUDPos
7809 //mt:if %s.Field == HUDName
7812 //mt:if %s.Field == HUDScale
7815 //mt:if %s.Field == HUDText
7818 //mt:if %s.Field == HUDNumber
7821 //mt:if %s.Field == HUDItem
7824 //mt:if %s.Field == HUDDir
7827 //mt:if %s.Field == HUDAlign
7830 //mt:if %s.Field == HUDOffset
7833 //mt:if %s.Field == HUDWorldPos
7836 //mt:if %s.Field == HUDSize
7839 //mt:if %s.Field == HUDZIndex
7842 //mt:if %s.Field == HUDText2
7844 }))(obj)).Field == HUDScale {
7845 for local175 := range (*(*(struct {
7850 //mt:if %s.Field == HUDPos
7853 //mt:if %s.Field == HUDName
7856 //mt:if %s.Field == HUDScale
7859 //mt:if %s.Field == HUDText
7862 //mt:if %s.Field == HUDNumber
7865 //mt:if %s.Field == HUDItem
7868 //mt:if %s.Field == HUDDir
7871 //mt:if %s.Field == HUDAlign
7874 //mt:if %s.Field == HUDOffset
7877 //mt:if %s.Field == HUDWorldPos
7880 //mt:if %s.Field == HUDSize
7883 //mt:if %s.Field == HUDZIndex
7886 //mt:if %s.Field == HUDText2
7895 //mt:if %s.Field == HUDPos
7898 //mt:if %s.Field == HUDName
7901 //mt:if %s.Field == HUDScale
7904 //mt:if %s.Field == HUDText
7907 //mt:if %s.Field == HUDNumber
7910 //mt:if %s.Field == HUDItem
7913 //mt:if %s.Field == HUDDir
7916 //mt:if %s.Field == HUDAlign
7919 //mt:if %s.Field == HUDOffset
7922 //mt:if %s.Field == HUDWorldPos
7925 //mt:if %s.Field == HUDSize
7928 //mt:if %s.Field == HUDZIndex
7931 //mt:if %s.Field == HUDText2
7933 }))(obj)).Scale)[local175]
7934 write32(w, math.Float32bits(x))
7943 //mt:if %s.Field == HUDPos
7946 //mt:if %s.Field == HUDName
7949 //mt:if %s.Field == HUDScale
7952 //mt:if %s.Field == HUDText
7955 //mt:if %s.Field == HUDNumber
7958 //mt:if %s.Field == HUDItem
7961 //mt:if %s.Field == HUDDir
7964 //mt:if %s.Field == HUDAlign
7967 //mt:if %s.Field == HUDOffset
7970 //mt:if %s.Field == HUDWorldPos
7973 //mt:if %s.Field == HUDSize
7976 //mt:if %s.Field == HUDZIndex
7979 //mt:if %s.Field == HUDText2
7981 }))(obj)).Field == HUDText {
7982 if len(([]byte((*(*(struct {
7987 //mt:if %s.Field == HUDPos
7990 //mt:if %s.Field == HUDName
7993 //mt:if %s.Field == HUDScale
7996 //mt:if %s.Field == HUDText
7999 //mt:if %s.Field == HUDNumber
8002 //mt:if %s.Field == HUDItem
8005 //mt:if %s.Field == HUDDir
8008 //mt:if %s.Field == HUDAlign
8011 //mt:if %s.Field == HUDOffset
8014 //mt:if %s.Field == HUDWorldPos
8017 //mt:if %s.Field == HUDSize
8020 //mt:if %s.Field == HUDZIndex
8023 //mt:if %s.Field == HUDText2
8025 }))(obj)).Text))) > math.MaxUint16 {
8029 x := uint16(len(([]byte((*(*(struct {
8034 //mt:if %s.Field == HUDPos
8037 //mt:if %s.Field == HUDName
8040 //mt:if %s.Field == HUDScale
8043 //mt:if %s.Field == HUDText
8046 //mt:if %s.Field == HUDNumber
8049 //mt:if %s.Field == HUDItem
8052 //mt:if %s.Field == HUDDir
8055 //mt:if %s.Field == HUDAlign
8058 //mt:if %s.Field == HUDOffset
8061 //mt:if %s.Field == HUDWorldPos
8064 //mt:if %s.Field == HUDSize
8067 //mt:if %s.Field == HUDZIndex
8070 //mt:if %s.Field == HUDText2
8073 write16(w, uint16(x))
8076 _, err := w.Write(([]byte((*(*(struct {
8081 //mt:if %s.Field == HUDPos
8084 //mt:if %s.Field == HUDName
8087 //mt:if %s.Field == HUDScale
8090 //mt:if %s.Field == HUDText
8093 //mt:if %s.Field == HUDNumber
8096 //mt:if %s.Field == HUDItem
8099 //mt:if %s.Field == HUDDir
8102 //mt:if %s.Field == HUDAlign
8105 //mt:if %s.Field == HUDOffset
8108 //mt:if %s.Field == HUDWorldPos
8111 //mt:if %s.Field == HUDSize
8114 //mt:if %s.Field == HUDZIndex
8117 //mt:if %s.Field == HUDText2
8119 }))(obj)).Text))[:])
8128 //mt:if %s.Field == HUDPos
8131 //mt:if %s.Field == HUDName
8134 //mt:if %s.Field == HUDScale
8137 //mt:if %s.Field == HUDText
8140 //mt:if %s.Field == HUDNumber
8143 //mt:if %s.Field == HUDItem
8146 //mt:if %s.Field == HUDDir
8149 //mt:if %s.Field == HUDAlign
8152 //mt:if %s.Field == HUDOffset
8155 //mt:if %s.Field == HUDWorldPos
8158 //mt:if %s.Field == HUDSize
8161 //mt:if %s.Field == HUDZIndex
8164 //mt:if %s.Field == HUDText2
8166 }))(obj)).Field == HUDNumber {
8173 //mt:if %s.Field == HUDPos
8176 //mt:if %s.Field == HUDName
8179 //mt:if %s.Field == HUDScale
8182 //mt:if %s.Field == HUDText
8185 //mt:if %s.Field == HUDNumber
8188 //mt:if %s.Field == HUDItem
8191 //mt:if %s.Field == HUDDir
8194 //mt:if %s.Field == HUDAlign
8197 //mt:if %s.Field == HUDOffset
8200 //mt:if %s.Field == HUDWorldPos
8203 //mt:if %s.Field == HUDSize
8206 //mt:if %s.Field == HUDZIndex
8209 //mt:if %s.Field == HUDText2
8212 write32(w, uint32(x))
8220 //mt:if %s.Field == HUDPos
8223 //mt:if %s.Field == HUDName
8226 //mt:if %s.Field == HUDScale
8229 //mt:if %s.Field == HUDText
8232 //mt:if %s.Field == HUDNumber
8235 //mt:if %s.Field == HUDItem
8238 //mt:if %s.Field == HUDDir
8241 //mt:if %s.Field == HUDAlign
8244 //mt:if %s.Field == HUDOffset
8247 //mt:if %s.Field == HUDWorldPos
8250 //mt:if %s.Field == HUDSize
8253 //mt:if %s.Field == HUDZIndex
8256 //mt:if %s.Field == HUDText2
8258 }))(obj)).Field == HUDItem {
8265 //mt:if %s.Field == HUDPos
8268 //mt:if %s.Field == HUDName
8271 //mt:if %s.Field == HUDScale
8274 //mt:if %s.Field == HUDText
8277 //mt:if %s.Field == HUDNumber
8280 //mt:if %s.Field == HUDItem
8283 //mt:if %s.Field == HUDDir
8286 //mt:if %s.Field == HUDAlign
8289 //mt:if %s.Field == HUDOffset
8292 //mt:if %s.Field == HUDWorldPos
8295 //mt:if %s.Field == HUDSize
8298 //mt:if %s.Field == HUDZIndex
8301 //mt:if %s.Field == HUDText2
8304 write32(w, uint32(x))
8312 //mt:if %s.Field == HUDPos
8315 //mt:if %s.Field == HUDName
8318 //mt:if %s.Field == HUDScale
8321 //mt:if %s.Field == HUDText
8324 //mt:if %s.Field == HUDNumber
8327 //mt:if %s.Field == HUDItem
8330 //mt:if %s.Field == HUDDir
8333 //mt:if %s.Field == HUDAlign
8336 //mt:if %s.Field == HUDOffset
8339 //mt:if %s.Field == HUDWorldPos
8342 //mt:if %s.Field == HUDSize
8345 //mt:if %s.Field == HUDZIndex
8348 //mt:if %s.Field == HUDText2
8350 }))(obj)).Field == HUDDir {
8357 //mt:if %s.Field == HUDPos
8360 //mt:if %s.Field == HUDName
8363 //mt:if %s.Field == HUDScale
8366 //mt:if %s.Field == HUDText
8369 //mt:if %s.Field == HUDNumber
8372 //mt:if %s.Field == HUDItem
8375 //mt:if %s.Field == HUDDir
8378 //mt:if %s.Field == HUDAlign
8381 //mt:if %s.Field == HUDOffset
8384 //mt:if %s.Field == HUDWorldPos
8387 //mt:if %s.Field == HUDSize
8390 //mt:if %s.Field == HUDZIndex
8393 //mt:if %s.Field == HUDText2
8396 write32(w, uint32(x))
8404 //mt:if %s.Field == HUDPos
8407 //mt:if %s.Field == HUDName
8410 //mt:if %s.Field == HUDScale
8413 //mt:if %s.Field == HUDText
8416 //mt:if %s.Field == HUDNumber
8419 //mt:if %s.Field == HUDItem
8422 //mt:if %s.Field == HUDDir
8425 //mt:if %s.Field == HUDAlign
8428 //mt:if %s.Field == HUDOffset
8431 //mt:if %s.Field == HUDWorldPos
8434 //mt:if %s.Field == HUDSize
8437 //mt:if %s.Field == HUDZIndex
8440 //mt:if %s.Field == HUDText2
8442 }))(obj)).Field == HUDAlign {
8443 for local176 := range (*(*(struct {
8448 //mt:if %s.Field == HUDPos
8451 //mt:if %s.Field == HUDName
8454 //mt:if %s.Field == HUDScale
8457 //mt:if %s.Field == HUDText
8460 //mt:if %s.Field == HUDNumber
8463 //mt:if %s.Field == HUDItem
8466 //mt:if %s.Field == HUDDir
8469 //mt:if %s.Field == HUDAlign
8472 //mt:if %s.Field == HUDOffset
8475 //mt:if %s.Field == HUDWorldPos
8478 //mt:if %s.Field == HUDSize
8481 //mt:if %s.Field == HUDZIndex
8484 //mt:if %s.Field == HUDText2
8493 //mt:if %s.Field == HUDPos
8496 //mt:if %s.Field == HUDName
8499 //mt:if %s.Field == HUDScale
8502 //mt:if %s.Field == HUDText
8505 //mt:if %s.Field == HUDNumber
8508 //mt:if %s.Field == HUDItem
8511 //mt:if %s.Field == HUDDir
8514 //mt:if %s.Field == HUDAlign
8517 //mt:if %s.Field == HUDOffset
8520 //mt:if %s.Field == HUDWorldPos
8523 //mt:if %s.Field == HUDSize
8526 //mt:if %s.Field == HUDZIndex
8529 //mt:if %s.Field == HUDText2
8531 }))(obj)).Align)[local176]
8532 write32(w, math.Float32bits(x))
8541 //mt:if %s.Field == HUDPos
8544 //mt:if %s.Field == HUDName
8547 //mt:if %s.Field == HUDScale
8550 //mt:if %s.Field == HUDText
8553 //mt:if %s.Field == HUDNumber
8556 //mt:if %s.Field == HUDItem
8559 //mt:if %s.Field == HUDDir
8562 //mt:if %s.Field == HUDAlign
8565 //mt:if %s.Field == HUDOffset
8568 //mt:if %s.Field == HUDWorldPos
8571 //mt:if %s.Field == HUDSize
8574 //mt:if %s.Field == HUDZIndex
8577 //mt:if %s.Field == HUDText2
8579 }))(obj)).Field == HUDOffset {
8580 for local177 := range (*(*(struct {
8585 //mt:if %s.Field == HUDPos
8588 //mt:if %s.Field == HUDName
8591 //mt:if %s.Field == HUDScale
8594 //mt:if %s.Field == HUDText
8597 //mt:if %s.Field == HUDNumber
8600 //mt:if %s.Field == HUDItem
8603 //mt:if %s.Field == HUDDir
8606 //mt:if %s.Field == HUDAlign
8609 //mt:if %s.Field == HUDOffset
8612 //mt:if %s.Field == HUDWorldPos
8615 //mt:if %s.Field == HUDSize
8618 //mt:if %s.Field == HUDZIndex
8621 //mt:if %s.Field == HUDText2
8630 //mt:if %s.Field == HUDPos
8633 //mt:if %s.Field == HUDName
8636 //mt:if %s.Field == HUDScale
8639 //mt:if %s.Field == HUDText
8642 //mt:if %s.Field == HUDNumber
8645 //mt:if %s.Field == HUDItem
8648 //mt:if %s.Field == HUDDir
8651 //mt:if %s.Field == HUDAlign
8654 //mt:if %s.Field == HUDOffset
8657 //mt:if %s.Field == HUDWorldPos
8660 //mt:if %s.Field == HUDSize
8663 //mt:if %s.Field == HUDZIndex
8666 //mt:if %s.Field == HUDText2
8668 }))(obj)).Offset)[local177]
8669 write32(w, math.Float32bits(x))
8678 //mt:if %s.Field == HUDPos
8681 //mt:if %s.Field == HUDName
8684 //mt:if %s.Field == HUDScale
8687 //mt:if %s.Field == HUDText
8690 //mt:if %s.Field == HUDNumber
8693 //mt:if %s.Field == HUDItem
8696 //mt:if %s.Field == HUDDir
8699 //mt:if %s.Field == HUDAlign
8702 //mt:if %s.Field == HUDOffset
8705 //mt:if %s.Field == HUDWorldPos
8708 //mt:if %s.Field == HUDSize
8711 //mt:if %s.Field == HUDZIndex
8714 //mt:if %s.Field == HUDText2
8716 }))(obj)).Field == HUDWorldPos {
8717 if err := pcall(func() {
8723 //mt:if %s.Field == HUDPos
8726 //mt:if %s.Field == HUDName
8729 //mt:if %s.Field == HUDScale
8732 //mt:if %s.Field == HUDText
8735 //mt:if %s.Field == HUDNumber
8738 //mt:if %s.Field == HUDItem
8741 //mt:if %s.Field == HUDDir
8744 //mt:if %s.Field == HUDAlign
8747 //mt:if %s.Field == HUDOffset
8750 //mt:if %s.Field == HUDWorldPos
8753 //mt:if %s.Field == HUDSize
8756 //mt:if %s.Field == HUDZIndex
8759 //mt:if %s.Field == HUDText2
8761 }))(obj)).WorldPos).Serialize(w)
8766 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
8774 //mt:if %s.Field == HUDPos
8777 //mt:if %s.Field == HUDName
8780 //mt:if %s.Field == HUDScale
8783 //mt:if %s.Field == HUDText
8786 //mt:if %s.Field == HUDNumber
8789 //mt:if %s.Field == HUDItem
8792 //mt:if %s.Field == HUDDir
8795 //mt:if %s.Field == HUDAlign
8798 //mt:if %s.Field == HUDOffset
8801 //mt:if %s.Field == HUDWorldPos
8804 //mt:if %s.Field == HUDSize
8807 //mt:if %s.Field == HUDZIndex
8810 //mt:if %s.Field == HUDText2
8812 }))(obj)).Field == HUDSize {
8813 for local178 := range (*(*(struct {
8818 //mt:if %s.Field == HUDPos
8821 //mt:if %s.Field == HUDName
8824 //mt:if %s.Field == HUDScale
8827 //mt:if %s.Field == HUDText
8830 //mt:if %s.Field == HUDNumber
8833 //mt:if %s.Field == HUDItem
8836 //mt:if %s.Field == HUDDir
8839 //mt:if %s.Field == HUDAlign
8842 //mt:if %s.Field == HUDOffset
8845 //mt:if %s.Field == HUDWorldPos
8848 //mt:if %s.Field == HUDSize
8851 //mt:if %s.Field == HUDZIndex
8854 //mt:if %s.Field == HUDText2
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)).Size)[local178]
8902 write32(w, uint32(x))
8911 //mt:if %s.Field == HUDPos
8914 //mt:if %s.Field == HUDName
8917 //mt:if %s.Field == HUDScale
8920 //mt:if %s.Field == HUDText
8923 //mt:if %s.Field == HUDNumber
8926 //mt:if %s.Field == HUDItem
8929 //mt:if %s.Field == HUDDir
8932 //mt:if %s.Field == HUDAlign
8935 //mt:if %s.Field == HUDOffset
8938 //mt:if %s.Field == HUDWorldPos
8941 //mt:if %s.Field == HUDSize
8944 //mt:if %s.Field == HUDZIndex
8947 //mt:if %s.Field == HUDText2
8949 }))(obj)).Field == HUDZIndex {
8956 //mt:if %s.Field == HUDPos
8959 //mt:if %s.Field == HUDName
8962 //mt:if %s.Field == HUDScale
8965 //mt:if %s.Field == HUDText
8968 //mt:if %s.Field == HUDNumber
8971 //mt:if %s.Field == HUDItem
8974 //mt:if %s.Field == HUDDir
8977 //mt:if %s.Field == HUDAlign
8980 //mt:if %s.Field == HUDOffset
8983 //mt:if %s.Field == HUDWorldPos
8986 //mt:if %s.Field == HUDSize
8989 //mt:if %s.Field == HUDZIndex
8992 //mt:if %s.Field == HUDText2
8995 write32(w, uint32(x))
9003 //mt:if %s.Field == HUDPos
9006 //mt:if %s.Field == HUDName
9009 //mt:if %s.Field == HUDScale
9012 //mt:if %s.Field == HUDText
9015 //mt:if %s.Field == HUDNumber
9018 //mt:if %s.Field == HUDItem
9021 //mt:if %s.Field == HUDDir
9024 //mt:if %s.Field == HUDAlign
9027 //mt:if %s.Field == HUDOffset
9030 //mt:if %s.Field == HUDWorldPos
9033 //mt:if %s.Field == HUDSize
9036 //mt:if %s.Field == HUDZIndex
9039 //mt:if %s.Field == HUDText2
9041 }))(obj)).Field == HUDText2 {
9042 if len(([]byte((*(*(struct {
9047 //mt:if %s.Field == HUDPos
9050 //mt:if %s.Field == HUDName
9053 //mt:if %s.Field == HUDScale
9056 //mt:if %s.Field == HUDText
9059 //mt:if %s.Field == HUDNumber
9062 //mt:if %s.Field == HUDItem
9065 //mt:if %s.Field == HUDDir
9068 //mt:if %s.Field == HUDAlign
9071 //mt:if %s.Field == HUDOffset
9074 //mt:if %s.Field == HUDWorldPos
9077 //mt:if %s.Field == HUDSize
9080 //mt:if %s.Field == HUDZIndex
9083 //mt:if %s.Field == HUDText2
9085 }))(obj)).Text2))) > math.MaxUint16 {
9089 x := uint16(len(([]byte((*(*(struct {
9094 //mt:if %s.Field == HUDPos
9097 //mt:if %s.Field == HUDName
9100 //mt:if %s.Field == HUDScale
9103 //mt:if %s.Field == HUDText
9106 //mt:if %s.Field == HUDNumber
9109 //mt:if %s.Field == HUDItem
9112 //mt:if %s.Field == HUDDir
9115 //mt:if %s.Field == HUDAlign
9118 //mt:if %s.Field == HUDOffset
9121 //mt:if %s.Field == HUDWorldPos
9124 //mt:if %s.Field == HUDSize
9127 //mt:if %s.Field == HUDZIndex
9130 //mt:if %s.Field == HUDText2
9133 write16(w, uint16(x))
9136 _, err := w.Write(([]byte((*(*(struct {
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)).Text2))[:])
9185 func (obj *ToCltChangeHUD) Deserialize(r io.Reader) {
9186 if err := pcall(func() {
9192 //mt:if %s.Field == HUDPos
9195 //mt:if %s.Field == HUDName
9198 //mt:if %s.Field == HUDScale
9201 //mt:if %s.Field == HUDText
9204 //mt:if %s.Field == HUDNumber
9207 //mt:if %s.Field == HUDItem
9210 //mt:if %s.Field == HUDDir
9213 //mt:if %s.Field == HUDAlign
9216 //mt:if %s.Field == HUDOffset
9219 //mt:if %s.Field == HUDWorldPos
9222 //mt:if %s.Field == HUDSize
9225 //mt:if %s.Field == HUDZIndex
9228 //mt:if %s.Field == HUDText2
9230 }))(obj)).ID).Deserialize(r)
9235 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
9237 if err := pcall(func() {
9243 //mt:if %s.Field == HUDPos
9246 //mt:if %s.Field == HUDName
9249 //mt:if %s.Field == HUDScale
9252 //mt:if %s.Field == HUDText
9255 //mt:if %s.Field == HUDNumber
9258 //mt:if %s.Field == HUDItem
9261 //mt:if %s.Field == HUDDir
9264 //mt:if %s.Field == HUDAlign
9267 //mt:if %s.Field == HUDOffset
9270 //mt:if %s.Field == HUDWorldPos
9273 //mt:if %s.Field == HUDSize
9276 //mt:if %s.Field == HUDZIndex
9279 //mt:if %s.Field == HUDText2
9281 }))(obj)).Field).Deserialize(r)
9286 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
9293 //mt:if %s.Field == HUDPos
9296 //mt:if %s.Field == HUDName
9299 //mt:if %s.Field == HUDScale
9302 //mt:if %s.Field == HUDText
9305 //mt:if %s.Field == HUDNumber
9308 //mt:if %s.Field == HUDItem
9311 //mt:if %s.Field == HUDDir
9314 //mt:if %s.Field == HUDAlign
9317 //mt:if %s.Field == HUDOffset
9320 //mt:if %s.Field == HUDWorldPos
9323 //mt:if %s.Field == HUDSize
9326 //mt:if %s.Field == HUDZIndex
9329 //mt:if %s.Field == HUDText2
9331 }))(obj)).Field < hudMax) {
9332 chk(errors.New("assertion failed: %s.Field < hudMax"))
9339 //mt:if %s.Field == HUDPos
9342 //mt:if %s.Field == HUDName
9345 //mt:if %s.Field == HUDScale
9348 //mt:if %s.Field == HUDText
9351 //mt:if %s.Field == HUDNumber
9354 //mt:if %s.Field == HUDItem
9357 //mt:if %s.Field == HUDDir
9360 //mt:if %s.Field == HUDAlign
9363 //mt:if %s.Field == HUDOffset
9366 //mt:if %s.Field == HUDWorldPos
9369 //mt:if %s.Field == HUDSize
9372 //mt:if %s.Field == HUDZIndex
9375 //mt:if %s.Field == HUDText2
9377 }))(obj)).Field == HUDPos {
9378 for local179 := range (*(*(struct {
9383 //mt:if %s.Field == HUDPos
9386 //mt:if %s.Field == HUDName
9389 //mt:if %s.Field == HUDScale
9392 //mt:if %s.Field == HUDText
9395 //mt:if %s.Field == HUDNumber
9398 //mt:if %s.Field == HUDItem
9401 //mt:if %s.Field == HUDDir
9404 //mt:if %s.Field == HUDAlign
9407 //mt:if %s.Field == HUDOffset
9410 //mt:if %s.Field == HUDWorldPos
9413 //mt:if %s.Field == HUDSize
9416 //mt:if %s.Field == HUDZIndex
9419 //mt:if %s.Field == HUDText2
9423 p := &((*(*(struct {
9428 //mt:if %s.Field == HUDPos
9431 //mt:if %s.Field == HUDName
9434 //mt:if %s.Field == HUDScale
9437 //mt:if %s.Field == HUDText
9440 //mt:if %s.Field == HUDNumber
9443 //mt:if %s.Field == HUDItem
9446 //mt:if %s.Field == HUDDir
9449 //mt:if %s.Field == HUDAlign
9452 //mt:if %s.Field == HUDOffset
9455 //mt:if %s.Field == HUDWorldPos
9458 //mt:if %s.Field == HUDSize
9461 //mt:if %s.Field == HUDZIndex
9464 //mt:if %s.Field == HUDText2
9466 }))(obj)).Pos)[local179]
9467 *p = math.Float32frombits(read32(r))
9476 //mt:if %s.Field == HUDPos
9479 //mt:if %s.Field == HUDName
9482 //mt:if %s.Field == HUDScale
9485 //mt:if %s.Field == HUDText
9488 //mt:if %s.Field == HUDNumber
9491 //mt:if %s.Field == HUDItem
9494 //mt:if %s.Field == HUDDir
9497 //mt:if %s.Field == HUDAlign
9500 //mt:if %s.Field == HUDOffset
9503 //mt:if %s.Field == HUDWorldPos
9506 //mt:if %s.Field == HUDSize
9509 //mt:if %s.Field == HUDZIndex
9512 //mt:if %s.Field == HUDText2
9514 }))(obj)).Field == HUDName {
9515 var local180 []uint8
9521 (local180) = make([]uint8, local181)
9523 _, err := io.ReadFull(r, (local180)[:])
9531 //mt:if %s.Field == HUDPos
9534 //mt:if %s.Field == HUDName
9537 //mt:if %s.Field == HUDScale
9540 //mt:if %s.Field == HUDText
9543 //mt:if %s.Field == HUDNumber
9546 //mt:if %s.Field == HUDItem
9549 //mt:if %s.Field == HUDDir
9552 //mt:if %s.Field == HUDAlign
9555 //mt:if %s.Field == HUDOffset
9558 //mt:if %s.Field == HUDWorldPos
9561 //mt:if %s.Field == HUDSize
9564 //mt:if %s.Field == HUDZIndex
9567 //mt:if %s.Field == HUDText2
9569 }))(obj)).Name) = string(local180)
9576 //mt:if %s.Field == HUDPos
9579 //mt:if %s.Field == HUDName
9582 //mt:if %s.Field == HUDScale
9585 //mt:if %s.Field == HUDText
9588 //mt:if %s.Field == HUDNumber
9591 //mt:if %s.Field == HUDItem
9594 //mt:if %s.Field == HUDDir
9597 //mt:if %s.Field == HUDAlign
9600 //mt:if %s.Field == HUDOffset
9603 //mt:if %s.Field == HUDWorldPos
9606 //mt:if %s.Field == HUDSize
9609 //mt:if %s.Field == HUDZIndex
9612 //mt:if %s.Field == HUDText2
9614 }))(obj)).Field == HUDScale {
9615 for local182 := range (*(*(struct {
9620 //mt:if %s.Field == HUDPos
9623 //mt:if %s.Field == HUDName
9626 //mt:if %s.Field == HUDScale
9629 //mt:if %s.Field == HUDText
9632 //mt:if %s.Field == HUDNumber
9635 //mt:if %s.Field == HUDItem
9638 //mt:if %s.Field == HUDDir
9641 //mt:if %s.Field == HUDAlign
9644 //mt:if %s.Field == HUDOffset
9647 //mt:if %s.Field == HUDWorldPos
9650 //mt:if %s.Field == HUDSize
9653 //mt:if %s.Field == HUDZIndex
9656 //mt:if %s.Field == HUDText2
9660 p := &((*(*(struct {
9665 //mt:if %s.Field == HUDPos
9668 //mt:if %s.Field == HUDName
9671 //mt:if %s.Field == HUDScale
9674 //mt:if %s.Field == HUDText
9677 //mt:if %s.Field == HUDNumber
9680 //mt:if %s.Field == HUDItem
9683 //mt:if %s.Field == HUDDir
9686 //mt:if %s.Field == HUDAlign
9689 //mt:if %s.Field == HUDOffset
9692 //mt:if %s.Field == HUDWorldPos
9695 //mt:if %s.Field == HUDSize
9698 //mt:if %s.Field == HUDZIndex
9701 //mt:if %s.Field == HUDText2
9703 }))(obj)).Scale)[local182]
9704 *p = math.Float32frombits(read32(r))
9713 //mt:if %s.Field == HUDPos
9716 //mt:if %s.Field == HUDName
9719 //mt:if %s.Field == HUDScale
9722 //mt:if %s.Field == HUDText
9725 //mt:if %s.Field == HUDNumber
9728 //mt:if %s.Field == HUDItem
9731 //mt:if %s.Field == HUDDir
9734 //mt:if %s.Field == HUDAlign
9737 //mt:if %s.Field == HUDOffset
9740 //mt:if %s.Field == HUDWorldPos
9743 //mt:if %s.Field == HUDSize
9746 //mt:if %s.Field == HUDZIndex
9749 //mt:if %s.Field == HUDText2
9751 }))(obj)).Field == HUDText {
9752 var local183 []uint8
9758 (local183) = make([]uint8, local184)
9760 _, err := io.ReadFull(r, (local183)[:])
9768 //mt:if %s.Field == HUDPos
9771 //mt:if %s.Field == HUDName
9774 //mt:if %s.Field == HUDScale
9777 //mt:if %s.Field == HUDText
9780 //mt:if %s.Field == HUDNumber
9783 //mt:if %s.Field == HUDItem
9786 //mt:if %s.Field == HUDDir
9789 //mt:if %s.Field == HUDAlign
9792 //mt:if %s.Field == HUDOffset
9795 //mt:if %s.Field == HUDWorldPos
9798 //mt:if %s.Field == HUDSize
9801 //mt:if %s.Field == HUDZIndex
9804 //mt:if %s.Field == HUDText2
9806 }))(obj)).Text) = string(local183)
9813 //mt:if %s.Field == HUDPos
9816 //mt:if %s.Field == HUDName
9819 //mt:if %s.Field == HUDScale
9822 //mt:if %s.Field == HUDText
9825 //mt:if %s.Field == HUDNumber
9828 //mt:if %s.Field == HUDItem
9831 //mt:if %s.Field == HUDDir
9834 //mt:if %s.Field == HUDAlign
9837 //mt:if %s.Field == HUDOffset
9840 //mt:if %s.Field == HUDWorldPos
9843 //mt:if %s.Field == HUDSize
9846 //mt:if %s.Field == HUDZIndex
9849 //mt:if %s.Field == HUDText2
9851 }))(obj)).Field == HUDNumber {
9858 //mt:if %s.Field == HUDPos
9861 //mt:if %s.Field == HUDName
9864 //mt:if %s.Field == HUDScale
9867 //mt:if %s.Field == HUDText
9870 //mt:if %s.Field == HUDNumber
9873 //mt:if %s.Field == HUDItem
9876 //mt:if %s.Field == HUDDir
9879 //mt:if %s.Field == HUDAlign
9882 //mt:if %s.Field == HUDOffset
9885 //mt:if %s.Field == HUDWorldPos
9888 //mt:if %s.Field == HUDSize
9891 //mt:if %s.Field == HUDZIndex
9894 //mt:if %s.Field == HUDText2
9905 //mt:if %s.Field == HUDPos
9908 //mt:if %s.Field == HUDName
9911 //mt:if %s.Field == HUDScale
9914 //mt:if %s.Field == HUDText
9917 //mt:if %s.Field == HUDNumber
9920 //mt:if %s.Field == HUDItem
9923 //mt:if %s.Field == HUDDir
9926 //mt:if %s.Field == HUDAlign
9929 //mt:if %s.Field == HUDOffset
9932 //mt:if %s.Field == HUDWorldPos
9935 //mt:if %s.Field == HUDSize
9938 //mt:if %s.Field == HUDZIndex
9941 //mt:if %s.Field == HUDText2
9943 }))(obj)).Field == HUDItem {
9950 //mt:if %s.Field == HUDPos
9953 //mt:if %s.Field == HUDName
9956 //mt:if %s.Field == HUDScale
9959 //mt:if %s.Field == HUDText
9962 //mt:if %s.Field == HUDNumber
9965 //mt:if %s.Field == HUDItem
9968 //mt:if %s.Field == HUDDir
9971 //mt:if %s.Field == HUDAlign
9974 //mt:if %s.Field == HUDOffset
9977 //mt:if %s.Field == HUDWorldPos
9980 //mt:if %s.Field == HUDSize
9983 //mt:if %s.Field == HUDZIndex
9986 //mt:if %s.Field == HUDText2
9997 //mt:if %s.Field == HUDPos
10000 //mt:if %s.Field == HUDName
10003 //mt:if %s.Field == HUDScale
10006 //mt:if %s.Field == HUDText
10009 //mt:if %s.Field == HUDNumber
10012 //mt:if %s.Field == HUDItem
10015 //mt:if %s.Field == HUDDir
10018 //mt:if %s.Field == HUDAlign
10021 //mt:if %s.Field == HUDOffset
10024 //mt:if %s.Field == HUDWorldPos
10027 //mt:if %s.Field == HUDSize
10030 //mt:if %s.Field == HUDZIndex
10033 //mt:if %s.Field == HUDText2
10035 }))(obj)).Field == HUDDir {
10037 p := &(*(*(struct {
10042 //mt:if %s.Field == HUDPos
10045 //mt:if %s.Field == HUDName
10048 //mt:if %s.Field == HUDScale
10051 //mt:if %s.Field == HUDText
10054 //mt:if %s.Field == HUDNumber
10057 //mt:if %s.Field == HUDItem
10060 //mt:if %s.Field == HUDDir
10063 //mt:if %s.Field == HUDAlign
10066 //mt:if %s.Field == HUDOffset
10069 //mt:if %s.Field == HUDWorldPos
10072 //mt:if %s.Field == HUDSize
10075 //mt:if %s.Field == HUDZIndex
10078 //mt:if %s.Field == HUDText2
10089 //mt:if %s.Field == HUDPos
10092 //mt:if %s.Field == HUDName
10095 //mt:if %s.Field == HUDScale
10098 //mt:if %s.Field == HUDText
10101 //mt:if %s.Field == HUDNumber
10104 //mt:if %s.Field == HUDItem
10107 //mt:if %s.Field == HUDDir
10110 //mt:if %s.Field == HUDAlign
10113 //mt:if %s.Field == HUDOffset
10116 //mt:if %s.Field == HUDWorldPos
10119 //mt:if %s.Field == HUDSize
10122 //mt:if %s.Field == HUDZIndex
10125 //mt:if %s.Field == HUDText2
10127 }))(obj)).Field == HUDAlign {
10128 for local185 := range (*(*(struct {
10133 //mt:if %s.Field == HUDPos
10136 //mt:if %s.Field == HUDName
10139 //mt:if %s.Field == HUDScale
10142 //mt:if %s.Field == HUDText
10145 //mt:if %s.Field == HUDNumber
10148 //mt:if %s.Field == HUDItem
10151 //mt:if %s.Field == HUDDir
10154 //mt:if %s.Field == HUDAlign
10157 //mt:if %s.Field == HUDOffset
10160 //mt:if %s.Field == HUDWorldPos
10163 //mt:if %s.Field == HUDSize
10166 //mt:if %s.Field == HUDZIndex
10169 //mt:if %s.Field == HUDText2
10173 p := &((*(*(struct {
10178 //mt:if %s.Field == HUDPos
10181 //mt:if %s.Field == HUDName
10184 //mt:if %s.Field == HUDScale
10187 //mt:if %s.Field == HUDText
10190 //mt:if %s.Field == HUDNumber
10193 //mt:if %s.Field == HUDItem
10196 //mt:if %s.Field == HUDDir
10199 //mt:if %s.Field == HUDAlign
10202 //mt:if %s.Field == HUDOffset
10205 //mt:if %s.Field == HUDWorldPos
10208 //mt:if %s.Field == HUDSize
10211 //mt:if %s.Field == HUDZIndex
10214 //mt:if %s.Field == HUDText2
10216 }))(obj)).Align)[local185]
10217 *p = math.Float32frombits(read32(r))
10226 //mt:if %s.Field == HUDPos
10229 //mt:if %s.Field == HUDName
10232 //mt:if %s.Field == HUDScale
10235 //mt:if %s.Field == HUDText
10238 //mt:if %s.Field == HUDNumber
10241 //mt:if %s.Field == HUDItem
10244 //mt:if %s.Field == HUDDir
10247 //mt:if %s.Field == HUDAlign
10250 //mt:if %s.Field == HUDOffset
10253 //mt:if %s.Field == HUDWorldPos
10256 //mt:if %s.Field == HUDSize
10259 //mt:if %s.Field == HUDZIndex
10262 //mt:if %s.Field == HUDText2
10264 }))(obj)).Field == HUDOffset {
10265 for local186 := range (*(*(struct {
10270 //mt:if %s.Field == HUDPos
10273 //mt:if %s.Field == HUDName
10276 //mt:if %s.Field == HUDScale
10279 //mt:if %s.Field == HUDText
10282 //mt:if %s.Field == HUDNumber
10285 //mt:if %s.Field == HUDItem
10288 //mt:if %s.Field == HUDDir
10291 //mt:if %s.Field == HUDAlign
10294 //mt:if %s.Field == HUDOffset
10297 //mt:if %s.Field == HUDWorldPos
10300 //mt:if %s.Field == HUDSize
10303 //mt:if %s.Field == HUDZIndex
10306 //mt:if %s.Field == HUDText2
10310 p := &((*(*(struct {
10315 //mt:if %s.Field == HUDPos
10318 //mt:if %s.Field == HUDName
10321 //mt:if %s.Field == HUDScale
10324 //mt:if %s.Field == HUDText
10327 //mt:if %s.Field == HUDNumber
10330 //mt:if %s.Field == HUDItem
10333 //mt:if %s.Field == HUDDir
10336 //mt:if %s.Field == HUDAlign
10339 //mt:if %s.Field == HUDOffset
10342 //mt:if %s.Field == HUDWorldPos
10345 //mt:if %s.Field == HUDSize
10348 //mt:if %s.Field == HUDZIndex
10351 //mt:if %s.Field == HUDText2
10353 }))(obj)).Offset)[local186]
10354 *p = math.Float32frombits(read32(r))
10363 //mt:if %s.Field == HUDPos
10366 //mt:if %s.Field == HUDName
10369 //mt:if %s.Field == HUDScale
10372 //mt:if %s.Field == HUDText
10375 //mt:if %s.Field == HUDNumber
10378 //mt:if %s.Field == HUDItem
10381 //mt:if %s.Field == HUDDir
10384 //mt:if %s.Field == HUDAlign
10387 //mt:if %s.Field == HUDOffset
10390 //mt:if %s.Field == HUDWorldPos
10393 //mt:if %s.Field == HUDSize
10396 //mt:if %s.Field == HUDZIndex
10399 //mt:if %s.Field == HUDText2
10401 }))(obj)).Field == HUDWorldPos {
10402 if err := pcall(func() {
10408 //mt:if %s.Field == HUDPos
10411 //mt:if %s.Field == HUDName
10414 //mt:if %s.Field == HUDScale
10417 //mt:if %s.Field == HUDText
10420 //mt:if %s.Field == HUDNumber
10423 //mt:if %s.Field == HUDItem
10426 //mt:if %s.Field == HUDDir
10429 //mt:if %s.Field == HUDAlign
10432 //mt:if %s.Field == HUDOffset
10435 //mt:if %s.Field == HUDWorldPos
10438 //mt:if %s.Field == HUDSize
10441 //mt:if %s.Field == HUDZIndex
10444 //mt:if %s.Field == HUDText2
10446 }))(obj)).WorldPos).Deserialize(r)
10451 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
10459 //mt:if %s.Field == HUDPos
10462 //mt:if %s.Field == HUDName
10465 //mt:if %s.Field == HUDScale
10468 //mt:if %s.Field == HUDText
10471 //mt:if %s.Field == HUDNumber
10474 //mt:if %s.Field == HUDItem
10477 //mt:if %s.Field == HUDDir
10480 //mt:if %s.Field == HUDAlign
10483 //mt:if %s.Field == HUDOffset
10486 //mt:if %s.Field == HUDWorldPos
10489 //mt:if %s.Field == HUDSize
10492 //mt:if %s.Field == HUDZIndex
10495 //mt:if %s.Field == HUDText2
10497 }))(obj)).Field == HUDSize {
10498 for local187 := range (*(*(struct {
10503 //mt:if %s.Field == HUDPos
10506 //mt:if %s.Field == HUDName
10509 //mt:if %s.Field == HUDScale
10512 //mt:if %s.Field == HUDText
10515 //mt:if %s.Field == HUDNumber
10518 //mt:if %s.Field == HUDItem
10521 //mt:if %s.Field == HUDDir
10524 //mt:if %s.Field == HUDAlign
10527 //mt:if %s.Field == HUDOffset
10530 //mt:if %s.Field == HUDWorldPos
10533 //mt:if %s.Field == HUDSize
10536 //mt:if %s.Field == HUDZIndex
10539 //mt:if %s.Field == HUDText2
10543 p := &((*(*(struct {
10548 //mt:if %s.Field == HUDPos
10551 //mt:if %s.Field == HUDName
10554 //mt:if %s.Field == HUDScale
10557 //mt:if %s.Field == HUDText
10560 //mt:if %s.Field == HUDNumber
10563 //mt:if %s.Field == HUDItem
10566 //mt:if %s.Field == HUDDir
10569 //mt:if %s.Field == HUDAlign
10572 //mt:if %s.Field == HUDOffset
10575 //mt:if %s.Field == HUDWorldPos
10578 //mt:if %s.Field == HUDSize
10581 //mt:if %s.Field == HUDZIndex
10584 //mt:if %s.Field == HUDText2
10586 }))(obj)).Size)[local187]
10587 *p = int32(read32(r))
10596 //mt:if %s.Field == HUDPos
10599 //mt:if %s.Field == HUDName
10602 //mt:if %s.Field == HUDScale
10605 //mt:if %s.Field == HUDText
10608 //mt:if %s.Field == HUDNumber
10611 //mt:if %s.Field == HUDItem
10614 //mt:if %s.Field == HUDDir
10617 //mt:if %s.Field == HUDAlign
10620 //mt:if %s.Field == HUDOffset
10623 //mt:if %s.Field == HUDWorldPos
10626 //mt:if %s.Field == HUDSize
10629 //mt:if %s.Field == HUDZIndex
10632 //mt:if %s.Field == HUDText2
10634 }))(obj)).Field == HUDZIndex {
10636 p := &(*(*(struct {
10641 //mt:if %s.Field == HUDPos
10644 //mt:if %s.Field == HUDName
10647 //mt:if %s.Field == HUDScale
10650 //mt:if %s.Field == HUDText
10653 //mt:if %s.Field == HUDNumber
10656 //mt:if %s.Field == HUDItem
10659 //mt:if %s.Field == HUDDir
10662 //mt:if %s.Field == HUDAlign
10665 //mt:if %s.Field == HUDOffset
10668 //mt:if %s.Field == HUDWorldPos
10671 //mt:if %s.Field == HUDSize
10674 //mt:if %s.Field == HUDZIndex
10677 //mt:if %s.Field == HUDText2
10680 *p = int32(read32(r))
10688 //mt:if %s.Field == HUDPos
10691 //mt:if %s.Field == HUDName
10694 //mt:if %s.Field == HUDScale
10697 //mt:if %s.Field == HUDText
10700 //mt:if %s.Field == HUDNumber
10703 //mt:if %s.Field == HUDItem
10706 //mt:if %s.Field == HUDDir
10709 //mt:if %s.Field == HUDAlign
10712 //mt:if %s.Field == HUDOffset
10715 //mt:if %s.Field == HUDWorldPos
10718 //mt:if %s.Field == HUDSize
10721 //mt:if %s.Field == HUDZIndex
10724 //mt:if %s.Field == HUDText2
10726 }))(obj)).Field == HUDText2 {
10727 var local188 []uint8
10728 var local189 uint16
10733 (local188) = make([]uint8, local189)
10735 _, err := io.ReadFull(r, (local188)[:])
10743 //mt:if %s.Field == HUDPos
10746 //mt:if %s.Field == HUDName
10749 //mt:if %s.Field == HUDScale
10752 //mt:if %s.Field == HUDText
10755 //mt:if %s.Field == HUDNumber
10758 //mt:if %s.Field == HUDItem
10761 //mt:if %s.Field == HUDDir
10764 //mt:if %s.Field == HUDAlign
10767 //mt:if %s.Field == HUDOffset
10770 //mt:if %s.Field == HUDWorldPos
10773 //mt:if %s.Field == HUDSize
10776 //mt:if %s.Field == HUDZIndex
10779 //mt:if %s.Field == HUDText2
10781 }))(obj)).Text2) = string(local188)
10785 func (obj *ToCltHUDFlags) Serialize(w io.Writer) {
10786 if err := pcall(func() {
10790 Flags, Mask HUDFlags
10791 }))(obj)).Flags).Serialize(w)
10796 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10798 if err := pcall(func() {
10802 Flags, Mask HUDFlags
10803 }))(obj)).Mask).Serialize(w)
10808 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10812 func (obj *ToCltHUDFlags) Deserialize(r io.Reader) {
10813 if err := pcall(func() {
10817 Flags, Mask HUDFlags
10818 }))(obj)).Flags).Deserialize(r)
10823 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10825 if err := pcall(func() {
10829 Flags, Mask HUDFlags
10830 }))(obj)).Mask).Deserialize(r)
10835 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10839 func (obj *ToCltSetHotbarParam) Serialize(w io.Writer) {
10840 if err := pcall(func() {
10844 //mt:if %s.Param == HotbarSize
10845 //mt:const uint16(4) // Size of Size field.
10848 //mt:if %s.Param != HotbarSize
10850 }))(obj)).Param).Serialize(w)
10855 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10860 //mt:if %s.Param == HotbarSize
10861 //mt:const uint16(4) // Size of Size field.
10864 //mt:if %s.Param != HotbarSize
10866 }))(obj)).Param == HotbarSize {
10868 local190 := uint16(4) // Size of Size field.
10871 write16(w, uint16(x))
10878 //mt:if %s.Param == HotbarSize
10879 //mt:const uint16(4) // Size of Size field.
10882 //mt:if %s.Param != HotbarSize
10885 write32(w, uint32(x))
10891 //mt:if %s.Param == HotbarSize
10892 //mt:const uint16(4) // Size of Size field.
10895 //mt:if %s.Param != HotbarSize
10897 }))(obj)).Param != HotbarSize {
10898 if err := pcall(func() {
10902 //mt:if %s.Param == HotbarSize
10903 //mt:const uint16(4) // Size of Size field.
10906 //mt:if %s.Param != HotbarSize
10908 }))(obj)).Img).Serialize(w)
10913 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
10918 func (obj *ToCltSetHotbarParam) Deserialize(r io.Reader) {
10919 if err := pcall(func() {
10923 //mt:if %s.Param == HotbarSize
10924 //mt:const uint16(4) // Size of Size field.
10927 //mt:if %s.Param != HotbarSize
10929 }))(obj)).Param).Deserialize(r)
10934 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10939 //mt:if %s.Param == HotbarSize
10940 //mt:const uint16(4) // Size of Size field.
10943 //mt:if %s.Param != HotbarSize
10945 }))(obj)).Param == HotbarSize {
10947 var local191 uint16
10948 local192 := uint16(4) // Size of Size field.
10953 if local191 != local192 {
10954 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local191))
10958 p := &(*(*(struct {
10961 //mt:if %s.Param == HotbarSize
10962 //mt:const uint16(4) // Size of Size field.
10965 //mt:if %s.Param != HotbarSize
10968 *p = int32(read32(r))
10974 //mt:if %s.Param == HotbarSize
10975 //mt:const uint16(4) // Size of Size field.
10978 //mt:if %s.Param != HotbarSize
10980 }))(obj)).Param != HotbarSize {
10981 if err := pcall(func() {
10985 //mt:if %s.Param == HotbarSize
10986 //mt:const uint16(4) // Size of Size field.
10989 //mt:if %s.Param != HotbarSize
10991 }))(obj)).Img).Deserialize(r)
10996 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11001 func (obj *ToCltBreath) Serialize(w io.Writer) {
11006 write16(w, uint16(x))
11010 func (obj *ToCltBreath) Deserialize(r io.Reader) {
11012 p := &(*(*(struct {
11019 func (obj *ToCltSkyParams) Serialize(w io.Writer) {
11022 BgColor color.NRGBA
11025 SunFogTint color.NRGBA
11026 MoonFogTint color.NRGBA
11029 //mt:if %s.Type == "skybox"
11032 //mt:if %s.Type == "regular"
11033 DaySky, DayHorizon,
11034 DawnSky, DawnHorizon,
11035 NightSky, NightHorizon,
11038 w.Write([]byte{x.A, x.R, x.G, x.B})
11040 if len(([]byte((*(*(struct {
11041 BgColor color.NRGBA
11044 SunFogTint color.NRGBA
11045 MoonFogTint color.NRGBA
11048 //mt:if %s.Type == "skybox"
11051 //mt:if %s.Type == "regular"
11052 DaySky, DayHorizon,
11053 DawnSky, DawnHorizon,
11054 NightSky, NightHorizon,
11056 }))(obj)).Type))) > math.MaxUint16 {
11060 x := uint16(len(([]byte((*(*(struct {
11061 BgColor color.NRGBA
11064 SunFogTint color.NRGBA
11065 MoonFogTint color.NRGBA
11068 //mt:if %s.Type == "skybox"
11071 //mt:if %s.Type == "regular"
11072 DaySky, DayHorizon,
11073 DawnSky, DawnHorizon,
11074 NightSky, NightHorizon,
11077 write16(w, uint16(x))
11080 _, err := w.Write(([]byte((*(*(struct {
11081 BgColor color.NRGBA
11084 SunFogTint color.NRGBA
11085 MoonFogTint color.NRGBA
11088 //mt:if %s.Type == "skybox"
11091 //mt:if %s.Type == "regular"
11092 DaySky, DayHorizon,
11093 DawnSky, DawnHorizon,
11094 NightSky, NightHorizon,
11096 }))(obj)).Type))[:])
11101 BgColor color.NRGBA
11104 SunFogTint color.NRGBA
11105 MoonFogTint color.NRGBA
11108 //mt:if %s.Type == "skybox"
11111 //mt:if %s.Type == "regular"
11112 DaySky, DayHorizon,
11113 DawnSky, DawnHorizon,
11114 NightSky, NightHorizon,
11125 BgColor color.NRGBA
11128 SunFogTint color.NRGBA
11129 MoonFogTint color.NRGBA
11132 //mt:if %s.Type == "skybox"
11135 //mt:if %s.Type == "regular"
11136 DaySky, DayHorizon,
11137 DawnSky, DawnHorizon,
11138 NightSky, NightHorizon,
11140 }))(obj)).SunFogTint
11141 w.Write([]byte{x.A, x.R, x.G, x.B})
11145 BgColor color.NRGBA
11148 SunFogTint color.NRGBA
11149 MoonFogTint color.NRGBA
11152 //mt:if %s.Type == "skybox"
11155 //mt:if %s.Type == "regular"
11156 DaySky, DayHorizon,
11157 DawnSky, DawnHorizon,
11158 NightSky, NightHorizon,
11160 }))(obj)).MoonFogTint
11161 w.Write([]byte{x.A, x.R, x.G, x.B})
11163 if len(([]byte((*(*(struct {
11164 BgColor color.NRGBA
11167 SunFogTint color.NRGBA
11168 MoonFogTint color.NRGBA
11171 //mt:if %s.Type == "skybox"
11174 //mt:if %s.Type == "regular"
11175 DaySky, DayHorizon,
11176 DawnSky, DawnHorizon,
11177 NightSky, NightHorizon,
11179 }))(obj)).FogTintType))) > math.MaxUint16 {
11183 x := uint16(len(([]byte((*(*(struct {
11184 BgColor color.NRGBA
11187 SunFogTint color.NRGBA
11188 MoonFogTint color.NRGBA
11191 //mt:if %s.Type == "skybox"
11194 //mt:if %s.Type == "regular"
11195 DaySky, DayHorizon,
11196 DawnSky, DawnHorizon,
11197 NightSky, NightHorizon,
11199 }))(obj)).FogTintType))))
11200 write16(w, uint16(x))
11203 _, err := w.Write(([]byte((*(*(struct {
11204 BgColor color.NRGBA
11207 SunFogTint color.NRGBA
11208 MoonFogTint color.NRGBA
11211 //mt:if %s.Type == "skybox"
11214 //mt:if %s.Type == "regular"
11215 DaySky, DayHorizon,
11216 DawnSky, DawnHorizon,
11217 NightSky, NightHorizon,
11219 }))(obj)).FogTintType))[:])
11223 BgColor color.NRGBA
11226 SunFogTint color.NRGBA
11227 MoonFogTint color.NRGBA
11230 //mt:if %s.Type == "skybox"
11233 //mt:if %s.Type == "regular"
11234 DaySky, DayHorizon,
11235 DawnSky, DawnHorizon,
11236 NightSky, NightHorizon,
11238 }))(obj)).Type == "skybox" {
11239 if len(((*(*(struct {
11240 BgColor color.NRGBA
11243 SunFogTint color.NRGBA
11244 MoonFogTint color.NRGBA
11247 //mt:if %s.Type == "skybox"
11250 //mt:if %s.Type == "regular"
11251 DaySky, DayHorizon,
11252 DawnSky, DawnHorizon,
11253 NightSky, NightHorizon,
11255 }))(obj)).Textures)) > math.MaxUint16 {
11259 x := uint16(len(((*(*(struct {
11260 BgColor color.NRGBA
11263 SunFogTint color.NRGBA
11264 MoonFogTint color.NRGBA
11267 //mt:if %s.Type == "skybox"
11270 //mt:if %s.Type == "regular"
11271 DaySky, DayHorizon,
11272 DawnSky, DawnHorizon,
11273 NightSky, NightHorizon,
11275 }))(obj)).Textures)))
11276 write16(w, uint16(x))
11278 for local193 := range (*(*(struct {
11279 BgColor color.NRGBA
11282 SunFogTint color.NRGBA
11283 MoonFogTint color.NRGBA
11286 //mt:if %s.Type == "skybox"
11289 //mt:if %s.Type == "regular"
11290 DaySky, DayHorizon,
11291 DawnSky, DawnHorizon,
11292 NightSky, NightHorizon,
11294 }))(obj)).Textures {
11295 if err := pcall(func() {
11297 BgColor color.NRGBA
11300 SunFogTint color.NRGBA
11301 MoonFogTint color.NRGBA
11304 //mt:if %s.Type == "skybox"
11307 //mt:if %s.Type == "regular"
11308 DaySky, DayHorizon,
11309 DawnSky, DawnHorizon,
11310 NightSky, NightHorizon,
11312 }))(obj)).Textures)[local193]).Serialize(w)
11317 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11322 BgColor color.NRGBA
11325 SunFogTint color.NRGBA
11326 MoonFogTint color.NRGBA
11329 //mt:if %s.Type == "skybox"
11332 //mt:if %s.Type == "regular"
11333 DaySky, DayHorizon,
11334 DawnSky, DawnHorizon,
11335 NightSky, NightHorizon,
11337 }))(obj)).Type == "regular" {
11340 BgColor color.NRGBA
11343 SunFogTint color.NRGBA
11344 MoonFogTint color.NRGBA
11347 //mt:if %s.Type == "skybox"
11350 //mt:if %s.Type == "regular"
11351 DaySky, DayHorizon,
11352 DawnSky, DawnHorizon,
11353 NightSky, NightHorizon,
11356 w.Write([]byte{x.A, x.R, x.G, x.B})
11360 BgColor color.NRGBA
11363 SunFogTint color.NRGBA
11364 MoonFogTint color.NRGBA
11367 //mt:if %s.Type == "skybox"
11370 //mt:if %s.Type == "regular"
11371 DaySky, DayHorizon,
11372 DawnSky, DawnHorizon,
11373 NightSky, NightHorizon,
11375 }))(obj)).DayHorizon
11376 w.Write([]byte{x.A, x.R, x.G, x.B})
11380 BgColor color.NRGBA
11383 SunFogTint color.NRGBA
11384 MoonFogTint color.NRGBA
11387 //mt:if %s.Type == "skybox"
11390 //mt:if %s.Type == "regular"
11391 DaySky, DayHorizon,
11392 DawnSky, DawnHorizon,
11393 NightSky, NightHorizon,
11396 w.Write([]byte{x.A, x.R, x.G, x.B})
11400 BgColor color.NRGBA
11403 SunFogTint color.NRGBA
11404 MoonFogTint color.NRGBA
11407 //mt:if %s.Type == "skybox"
11410 //mt:if %s.Type == "regular"
11411 DaySky, DayHorizon,
11412 DawnSky, DawnHorizon,
11413 NightSky, NightHorizon,
11415 }))(obj)).DawnHorizon
11416 w.Write([]byte{x.A, x.R, x.G, x.B})
11420 BgColor color.NRGBA
11423 SunFogTint color.NRGBA
11424 MoonFogTint color.NRGBA
11427 //mt:if %s.Type == "skybox"
11430 //mt:if %s.Type == "regular"
11431 DaySky, DayHorizon,
11432 DawnSky, DawnHorizon,
11433 NightSky, NightHorizon,
11436 w.Write([]byte{x.A, x.R, x.G, x.B})
11440 BgColor color.NRGBA
11443 SunFogTint color.NRGBA
11444 MoonFogTint color.NRGBA
11447 //mt:if %s.Type == "skybox"
11450 //mt:if %s.Type == "regular"
11451 DaySky, DayHorizon,
11452 DawnSky, DawnHorizon,
11453 NightSky, NightHorizon,
11455 }))(obj)).NightHorizon
11456 w.Write([]byte{x.A, x.R, x.G, x.B})
11460 BgColor color.NRGBA
11463 SunFogTint color.NRGBA
11464 MoonFogTint color.NRGBA
11467 //mt:if %s.Type == "skybox"
11470 //mt:if %s.Type == "regular"
11471 DaySky, DayHorizon,
11472 DawnSky, DawnHorizon,
11473 NightSky, NightHorizon,
11476 w.Write([]byte{x.A, x.R, x.G, x.B})
11481 func (obj *ToCltSkyParams) Deserialize(r io.Reader) {
11483 p := &(*(*(struct {
11484 BgColor color.NRGBA
11487 SunFogTint color.NRGBA
11488 MoonFogTint color.NRGBA
11491 //mt:if %s.Type == "skybox"
11494 //mt:if %s.Type == "regular"
11495 DaySky, DayHorizon,
11496 DawnSky, DawnHorizon,
11497 NightSky, NightHorizon,
11500 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11502 var local194 []uint8
11503 var local195 uint16
11508 (local194) = make([]uint8, local195)
11510 _, err := io.ReadFull(r, (local194)[:])
11514 BgColor color.NRGBA
11517 SunFogTint color.NRGBA
11518 MoonFogTint color.NRGBA
11521 //mt:if %s.Type == "skybox"
11524 //mt:if %s.Type == "regular"
11525 DaySky, DayHorizon,
11526 DawnSky, DawnHorizon,
11527 NightSky, NightHorizon,
11529 }))(obj)).Type) = string(local194)
11531 p := &(*(*(struct {
11532 BgColor color.NRGBA
11535 SunFogTint color.NRGBA
11536 MoonFogTint color.NRGBA
11539 //mt:if %s.Type == "skybox"
11542 //mt:if %s.Type == "regular"
11543 DaySky, DayHorizon,
11544 DawnSky, DawnHorizon,
11545 NightSky, NightHorizon,
11548 switch n := read8(r); n {
11554 chk(fmt.Errorf("invalid bool: %d", n))
11558 p := &(*(*(struct {
11559 BgColor color.NRGBA
11562 SunFogTint color.NRGBA
11563 MoonFogTint color.NRGBA
11566 //mt:if %s.Type == "skybox"
11569 //mt:if %s.Type == "regular"
11570 DaySky, DayHorizon,
11571 DawnSky, DawnHorizon,
11572 NightSky, NightHorizon,
11574 }))(obj)).SunFogTint
11575 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11578 p := &(*(*(struct {
11579 BgColor color.NRGBA
11582 SunFogTint color.NRGBA
11583 MoonFogTint color.NRGBA
11586 //mt:if %s.Type == "skybox"
11589 //mt:if %s.Type == "regular"
11590 DaySky, DayHorizon,
11591 DawnSky, DawnHorizon,
11592 NightSky, NightHorizon,
11594 }))(obj)).MoonFogTint
11595 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11597 var local196 []uint8
11598 var local197 uint16
11603 (local196) = make([]uint8, local197)
11605 _, err := io.ReadFull(r, (local196)[:])
11609 BgColor color.NRGBA
11612 SunFogTint color.NRGBA
11613 MoonFogTint color.NRGBA
11616 //mt:if %s.Type == "skybox"
11619 //mt:if %s.Type == "regular"
11620 DaySky, DayHorizon,
11621 DawnSky, DawnHorizon,
11622 NightSky, NightHorizon,
11624 }))(obj)).FogTintType) = string(local196)
11626 BgColor color.NRGBA
11629 SunFogTint color.NRGBA
11630 MoonFogTint color.NRGBA
11633 //mt:if %s.Type == "skybox"
11636 //mt:if %s.Type == "regular"
11637 DaySky, DayHorizon,
11638 DawnSky, DawnHorizon,
11639 NightSky, NightHorizon,
11641 }))(obj)).Type == "skybox" {
11642 var local198 uint16
11648 BgColor color.NRGBA
11651 SunFogTint color.NRGBA
11652 MoonFogTint color.NRGBA
11655 //mt:if %s.Type == "skybox"
11658 //mt:if %s.Type == "regular"
11659 DaySky, DayHorizon,
11660 DawnSky, DawnHorizon,
11661 NightSky, NightHorizon,
11663 }))(obj)).Textures) = make([]Texture, local198)
11664 for local199 := range (*(*(struct {
11665 BgColor color.NRGBA
11668 SunFogTint color.NRGBA
11669 MoonFogTint color.NRGBA
11672 //mt:if %s.Type == "skybox"
11675 //mt:if %s.Type == "regular"
11676 DaySky, DayHorizon,
11677 DawnSky, DawnHorizon,
11678 NightSky, NightHorizon,
11680 }))(obj)).Textures {
11681 if err := pcall(func() {
11683 BgColor color.NRGBA
11686 SunFogTint color.NRGBA
11687 MoonFogTint color.NRGBA
11690 //mt:if %s.Type == "skybox"
11693 //mt:if %s.Type == "regular"
11694 DaySky, DayHorizon,
11695 DawnSky, DawnHorizon,
11696 NightSky, NightHorizon,
11698 }))(obj)).Textures)[local199]).Deserialize(r)
11703 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11708 BgColor color.NRGBA
11711 SunFogTint color.NRGBA
11712 MoonFogTint color.NRGBA
11715 //mt:if %s.Type == "skybox"
11718 //mt:if %s.Type == "regular"
11719 DaySky, DayHorizon,
11720 DawnSky, DawnHorizon,
11721 NightSky, NightHorizon,
11723 }))(obj)).Type == "regular" {
11725 p := &(*(*(struct {
11726 BgColor color.NRGBA
11729 SunFogTint color.NRGBA
11730 MoonFogTint color.NRGBA
11733 //mt:if %s.Type == "skybox"
11736 //mt:if %s.Type == "regular"
11737 DaySky, DayHorizon,
11738 DawnSky, DawnHorizon,
11739 NightSky, NightHorizon,
11742 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11745 p := &(*(*(struct {
11746 BgColor color.NRGBA
11749 SunFogTint color.NRGBA
11750 MoonFogTint color.NRGBA
11753 //mt:if %s.Type == "skybox"
11756 //mt:if %s.Type == "regular"
11757 DaySky, DayHorizon,
11758 DawnSky, DawnHorizon,
11759 NightSky, NightHorizon,
11761 }))(obj)).DayHorizon
11762 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11765 p := &(*(*(struct {
11766 BgColor color.NRGBA
11769 SunFogTint color.NRGBA
11770 MoonFogTint color.NRGBA
11773 //mt:if %s.Type == "skybox"
11776 //mt:if %s.Type == "regular"
11777 DaySky, DayHorizon,
11778 DawnSky, DawnHorizon,
11779 NightSky, NightHorizon,
11782 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11785 p := &(*(*(struct {
11786 BgColor color.NRGBA
11789 SunFogTint color.NRGBA
11790 MoonFogTint color.NRGBA
11793 //mt:if %s.Type == "skybox"
11796 //mt:if %s.Type == "regular"
11797 DaySky, DayHorizon,
11798 DawnSky, DawnHorizon,
11799 NightSky, NightHorizon,
11801 }))(obj)).DawnHorizon
11802 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11805 p := &(*(*(struct {
11806 BgColor color.NRGBA
11809 SunFogTint color.NRGBA
11810 MoonFogTint color.NRGBA
11813 //mt:if %s.Type == "skybox"
11816 //mt:if %s.Type == "regular"
11817 DaySky, DayHorizon,
11818 DawnSky, DawnHorizon,
11819 NightSky, NightHorizon,
11822 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11825 p := &(*(*(struct {
11826 BgColor color.NRGBA
11829 SunFogTint color.NRGBA
11830 MoonFogTint color.NRGBA
11833 //mt:if %s.Type == "skybox"
11836 //mt:if %s.Type == "regular"
11837 DaySky, DayHorizon,
11838 DawnSky, DawnHorizon,
11839 NightSky, NightHorizon,
11841 }))(obj)).NightHorizon
11842 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11845 p := &(*(*(struct {
11846 BgColor color.NRGBA
11849 SunFogTint color.NRGBA
11850 MoonFogTint color.NRGBA
11853 //mt:if %s.Type == "skybox"
11856 //mt:if %s.Type == "regular"
11857 DaySky, DayHorizon,
11858 DawnSky, DawnHorizon,
11859 NightSky, NightHorizon,
11862 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11867 func (obj *ToCltOverrideDayNightRatio) Serialize(w io.Writer) {
11884 write16(w, uint16(x))
11888 func (obj *ToCltOverrideDayNightRatio) Deserialize(r io.Reader) {
11890 p := &(*(*(struct {
11894 switch n := read8(r); n {
11900 chk(fmt.Errorf("invalid bool: %d", n))
11904 p := &(*(*(struct {
11912 func (obj *ToCltLocalPlayerAnim) Serialize(w io.Writer) {
11913 for local200 := range (*(*(struct {
11914 Idle, Walk, Dig, WalkDig [2]int32
11918 x := ((*(*(struct {
11919 Idle, Walk, Dig, WalkDig [2]int32
11921 }))(obj)).Idle)[local200]
11922 write32(w, uint32(x))
11925 for local201 := range (*(*(struct {
11926 Idle, Walk, Dig, WalkDig [2]int32
11930 x := ((*(*(struct {
11931 Idle, Walk, Dig, WalkDig [2]int32
11933 }))(obj)).Walk)[local201]
11934 write32(w, uint32(x))
11937 for local202 := range (*(*(struct {
11938 Idle, Walk, Dig, WalkDig [2]int32
11942 x := ((*(*(struct {
11943 Idle, Walk, Dig, WalkDig [2]int32
11945 }))(obj)).Dig)[local202]
11946 write32(w, uint32(x))
11949 for local203 := range (*(*(struct {
11950 Idle, Walk, Dig, WalkDig [2]int32
11952 }))(obj)).WalkDig {
11954 x := ((*(*(struct {
11955 Idle, Walk, Dig, WalkDig [2]int32
11957 }))(obj)).WalkDig)[local203]
11958 write32(w, uint32(x))
11963 Idle, Walk, Dig, WalkDig [2]int32
11966 write32(w, math.Float32bits(x))
11970 func (obj *ToCltLocalPlayerAnim) Deserialize(r io.Reader) {
11971 for local204 := range (*(*(struct {
11972 Idle, Walk, Dig, WalkDig [2]int32
11976 p := &((*(*(struct {
11977 Idle, Walk, Dig, WalkDig [2]int32
11979 }))(obj)).Idle)[local204]
11980 *p = int32(read32(r))
11983 for local205 := range (*(*(struct {
11984 Idle, Walk, Dig, WalkDig [2]int32
11988 p := &((*(*(struct {
11989 Idle, Walk, Dig, WalkDig [2]int32
11991 }))(obj)).Walk)[local205]
11992 *p = int32(read32(r))
11995 for local206 := range (*(*(struct {
11996 Idle, Walk, Dig, WalkDig [2]int32
12000 p := &((*(*(struct {
12001 Idle, Walk, Dig, WalkDig [2]int32
12003 }))(obj)).Dig)[local206]
12004 *p = int32(read32(r))
12007 for local207 := range (*(*(struct {
12008 Idle, Walk, Dig, WalkDig [2]int32
12010 }))(obj)).WalkDig {
12012 p := &((*(*(struct {
12013 Idle, Walk, Dig, WalkDig [2]int32
12015 }))(obj)).WalkDig)[local207]
12016 *p = int32(read32(r))
12020 p := &(*(*(struct {
12021 Idle, Walk, Dig, WalkDig [2]int32
12024 *p = math.Float32frombits(read32(r))
12028 func (obj *ToCltEyeOffset) Serialize(w io.Writer) {
12029 if err := pcall(func() {
12032 }))(obj)).First).Serialize(w)
12037 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12039 if err := pcall(func() {
12042 }))(obj)).Third).Serialize(w)
12047 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12051 func (obj *ToCltEyeOffset) Deserialize(r io.Reader) {
12052 if err := pcall(func() {
12055 }))(obj)).First).Deserialize(r)
12060 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12062 if err := pcall(func() {
12065 }))(obj)).Third).Deserialize(r)
12070 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12074 func (obj *ToCltDelParticleSpawner) Serialize(w io.Writer) {
12075 if err := pcall(func() {
12077 ID ParticleSpawnerID
12078 }))(obj)).ID).Serialize(w)
12083 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12087 func (obj *ToCltDelParticleSpawner) Deserialize(r io.Reader) {
12088 if err := pcall(func() {
12090 ID ParticleSpawnerID
12091 }))(obj)).ID).Deserialize(r)
12096 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12100 func (obj *ToCltCloudParams) Serialize(w io.Writer) {
12104 DiffuseColor color.NRGBA
12105 AmbientColor color.NRGBA
12110 write32(w, math.Float32bits(x))
12115 DiffuseColor color.NRGBA
12116 AmbientColor color.NRGBA
12120 }))(obj)).DiffuseColor
12121 w.Write([]byte{x.A, x.R, x.G, x.B})
12126 DiffuseColor color.NRGBA
12127 AmbientColor color.NRGBA
12131 }))(obj)).AmbientColor
12132 w.Write([]byte{x.A, x.R, x.G, x.B})
12137 DiffuseColor color.NRGBA
12138 AmbientColor color.NRGBA
12143 write32(w, math.Float32bits(x))
12148 DiffuseColor color.NRGBA
12149 AmbientColor color.NRGBA
12153 }))(obj)).Thickness
12154 write32(w, math.Float32bits(x))
12156 for local208 := range (*(*(struct {
12158 DiffuseColor color.NRGBA
12159 AmbientColor color.NRGBA
12165 x := ((*(*(struct {
12167 DiffuseColor color.NRGBA
12168 AmbientColor color.NRGBA
12172 }))(obj)).Speed)[local208]
12173 write32(w, math.Float32bits(x))
12178 func (obj *ToCltCloudParams) Deserialize(r io.Reader) {
12180 p := &(*(*(struct {
12182 DiffuseColor color.NRGBA
12183 AmbientColor color.NRGBA
12188 *p = math.Float32frombits(read32(r))
12191 p := &(*(*(struct {
12193 DiffuseColor color.NRGBA
12194 AmbientColor color.NRGBA
12198 }))(obj)).DiffuseColor
12199 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12202 p := &(*(*(struct {
12204 DiffuseColor color.NRGBA
12205 AmbientColor color.NRGBA
12209 }))(obj)).AmbientColor
12210 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12213 p := &(*(*(struct {
12215 DiffuseColor color.NRGBA
12216 AmbientColor color.NRGBA
12221 *p = math.Float32frombits(read32(r))
12224 p := &(*(*(struct {
12226 DiffuseColor color.NRGBA
12227 AmbientColor color.NRGBA
12231 }))(obj)).Thickness
12232 *p = math.Float32frombits(read32(r))
12234 for local209 := range (*(*(struct {
12236 DiffuseColor color.NRGBA
12237 AmbientColor color.NRGBA
12243 p := &((*(*(struct {
12245 DiffuseColor color.NRGBA
12246 AmbientColor color.NRGBA
12250 }))(obj)).Speed)[local209]
12251 *p = math.Float32frombits(read32(r))
12256 func (obj *ToCltFadeSound) Serialize(w io.Writer) {
12257 if err := pcall(func() {
12262 }))(obj)).ID).Serialize(w)
12267 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12275 write32(w, math.Float32bits(x))
12283 write32(w, math.Float32bits(x))
12287 func (obj *ToCltFadeSound) Deserialize(r io.Reader) {
12288 if err := pcall(func() {
12293 }))(obj)).ID).Deserialize(r)
12298 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12301 p := &(*(*(struct {
12306 *p = math.Float32frombits(read32(r))
12309 p := &(*(*(struct {
12314 *p = math.Float32frombits(read32(r))
12318 func (obj *ToCltUpdatePlayerList) Serialize(w io.Writer) {
12319 if err := pcall(func() {
12321 Type PlayerListUpdateType
12323 }))(obj)).Type).Serialize(w)
12328 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12330 if len(((*(*(struct {
12331 Type PlayerListUpdateType
12333 }))(obj)).Players)) > math.MaxUint16 {
12337 x := uint16(len(((*(*(struct {
12338 Type PlayerListUpdateType
12340 }))(obj)).Players)))
12341 write16(w, uint16(x))
12343 for local210 := range (*(*(struct {
12344 Type PlayerListUpdateType
12346 }))(obj)).Players {
12347 if len(([]byte(((*(*(struct {
12348 Type PlayerListUpdateType
12350 }))(obj)).Players)[local210]))) > math.MaxUint16 {
12354 x := uint16(len(([]byte(((*(*(struct {
12355 Type PlayerListUpdateType
12357 }))(obj)).Players)[local210]))))
12358 write16(w, uint16(x))
12361 _, err := w.Write(([]byte(((*(*(struct {
12362 Type PlayerListUpdateType
12364 }))(obj)).Players)[local210]))[:])
12370 func (obj *ToCltUpdatePlayerList) Deserialize(r io.Reader) {
12371 if err := pcall(func() {
12373 Type PlayerListUpdateType
12375 }))(obj)).Type).Deserialize(r)
12380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12382 var local211 uint16
12388 Type PlayerListUpdateType
12390 }))(obj)).Players) = make([]string, local211)
12391 for local212 := range (*(*(struct {
12392 Type PlayerListUpdateType
12394 }))(obj)).Players {
12395 var local213 []uint8
12396 var local214 uint16
12401 (local213) = make([]uint8, local214)
12403 _, err := io.ReadFull(r, (local213)[:])
12407 Type PlayerListUpdateType
12409 }))(obj)).Players)[local212]) = string(local213)
12413 func (obj *ToCltModChanMsg) Serialize(w io.Writer) {
12414 if len(([]byte((*(*(struct {
12418 }))(obj)).Channel))) > math.MaxUint16 {
12422 x := uint16(len(([]byte((*(*(struct {
12426 }))(obj)).Channel))))
12427 write16(w, uint16(x))
12430 _, err := w.Write(([]byte((*(*(struct {
12434 }))(obj)).Channel))[:])
12437 if len(([]byte((*(*(struct {
12441 }))(obj)).Sender))) > math.MaxUint16 {
12445 x := uint16(len(([]byte((*(*(struct {
12449 }))(obj)).Sender))))
12450 write16(w, uint16(x))
12453 _, err := w.Write(([]byte((*(*(struct {
12457 }))(obj)).Sender))[:])
12460 if len(([]byte((*(*(struct {
12464 }))(obj)).Msg))) > math.MaxUint16 {
12468 x := uint16(len(([]byte((*(*(struct {
12473 write16(w, uint16(x))
12476 _, err := w.Write(([]byte((*(*(struct {
12480 }))(obj)).Msg))[:])
12485 func (obj *ToCltModChanMsg) Deserialize(r io.Reader) {
12486 var local215 []uint8
12487 var local216 uint16
12492 (local215) = make([]uint8, local216)
12494 _, err := io.ReadFull(r, (local215)[:])
12501 }))(obj)).Channel) = string(local215)
12502 var local217 []uint8
12503 var local218 uint16
12508 (local217) = make([]uint8, local218)
12510 _, err := io.ReadFull(r, (local217)[:])
12517 }))(obj)).Sender) = string(local217)
12518 var local219 []uint8
12519 var local220 uint16
12524 (local219) = make([]uint8, local220)
12526 _, err := io.ReadFull(r, (local219)[:])
12533 }))(obj)).Msg) = string(local219)
12536 func (obj *ToCltModChanSig) Serialize(w io.Writer) {
12537 if err := pcall(func() {
12541 }))(obj)).Signal).Serialize(w)
12546 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12548 if len(([]byte((*(*(struct {
12551 }))(obj)).Channel))) > math.MaxUint16 {
12555 x := uint16(len(([]byte((*(*(struct {
12558 }))(obj)).Channel))))
12559 write16(w, uint16(x))
12562 _, err := w.Write(([]byte((*(*(struct {
12565 }))(obj)).Channel))[:])
12570 func (obj *ToCltModChanSig) Deserialize(r io.Reader) {
12571 if err := pcall(func() {
12575 }))(obj)).Signal).Deserialize(r)
12580 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12582 var local221 []uint8
12583 var local222 uint16
12588 (local221) = make([]uint8, local222)
12590 _, err := io.ReadFull(r, (local221)[:])
12596 }))(obj)).Channel) = string(local221)
12599 func (obj *ToCltNodeMetasChanged) Serialize(w io.Writer) {
12602 w := new(bytes.Buffer)
12606 Changed map[[3]int16]*NodeMeta
12609 w := zlib.NewWriter(w)
12614 if len(x) > math.MaxUint16 {
12617 write16(w, uint16(len(x)))
12618 keys := make([][3]int16, 0, len(x))
12619 for key := range x {
12620 keys = append(keys, key)
12622 sort.Slice(keys, func(i, j int) bool {
12623 p, q := keys[i], keys[j]
12634 for _, key := range keys {
12635 for _, n := range key {
12636 write16(w, uint16(n))
12638 chk(serialize(w, x[key]))
12647 if len((buf.Bytes())) > math.MaxUint32 {
12651 x := uint32(len((buf.Bytes())))
12652 write32(w, uint32(x))
12655 _, err := w.Write((buf.Bytes())[:])
12662 func (obj *ToCltNodeMetasChanged) Deserialize(r io.Reader) {
12669 r := &io.LimitedReader{R: r, N: int64(n)}
12671 p := &(*(*(struct {
12673 Changed map[[3]int16]*NodeMeta
12676 r, err := zlib.NewReader(byteReader{r})
12678 switch ver := read8(r); ver {
12683 *p = make(map[[3]int16]*NodeMeta, n)
12686 for i := range pos {
12687 pos[i] = int16(read16(r))
12689 nm := new(NodeMeta)
12690 chk(deserialize(r, nm))
12694 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
12700 chk(fmt.Errorf("%d bytes of trailing data", r.N))
12705 func (obj *ToCltSunParams) Serialize(w io.Writer) {
12721 if err := pcall(func() {
12729 }))(obj)).Texture).Serialize(w)
12734 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12736 if err := pcall(func() {
12744 }))(obj)).ToneMap).Serialize(w)
12749 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12751 if err := pcall(func() {
12759 }))(obj)).Rise).Serialize(w)
12764 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12790 write32(w, math.Float32bits(x))
12794 func (obj *ToCltSunParams) Deserialize(r io.Reader) {
12796 p := &(*(*(struct {
12804 switch n := read8(r); n {
12810 chk(fmt.Errorf("invalid bool: %d", n))
12813 if err := pcall(func() {
12821 }))(obj)).Texture).Deserialize(r)
12826 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12828 if err := pcall(func() {
12836 }))(obj)).ToneMap).Deserialize(r)
12841 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12843 if err := pcall(func() {
12851 }))(obj)).Rise).Deserialize(r)
12856 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12859 p := &(*(*(struct {
12867 switch n := read8(r); n {
12873 chk(fmt.Errorf("invalid bool: %d", n))
12877 p := &(*(*(struct {
12885 *p = math.Float32frombits(read32(r))
12889 func (obj *ToCltMoonParams) Serialize(w io.Writer) {
12903 if err := pcall(func() {
12909 }))(obj)).Texture).Serialize(w)
12914 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12916 if err := pcall(func() {
12922 }))(obj)).ToneMap).Serialize(w)
12927 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12936 write32(w, math.Float32bits(x))
12940 func (obj *ToCltMoonParams) Deserialize(r io.Reader) {
12942 p := &(*(*(struct {
12948 switch n := read8(r); n {
12954 chk(fmt.Errorf("invalid bool: %d", n))
12957 if err := pcall(func() {
12963 }))(obj)).Texture).Deserialize(r)
12968 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12970 if err := pcall(func() {
12976 }))(obj)).ToneMap).Deserialize(r)
12981 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12984 p := &(*(*(struct {
12990 *p = math.Float32frombits(read32(r))
12994 func (obj *ToCltStarParams) Serialize(w io.Writer) {
13015 write32(w, uint32(x))
13024 w.Write([]byte{x.A, x.R, x.G, x.B})
13033 write32(w, math.Float32bits(x))
13037 func (obj *ToCltStarParams) Deserialize(r io.Reader) {
13039 p := &(*(*(struct {
13045 switch n := read8(r); n {
13051 chk(fmt.Errorf("invalid bool: %d", n))
13055 p := &(*(*(struct {
13064 p := &(*(*(struct {
13070 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13073 p := &(*(*(struct {
13079 *p = math.Float32frombits(read32(r))
13083 func (obj *ToCltSRPBytesSaltB) Serialize(w io.Writer) {
13084 if len(((*(*(struct {
13086 }))(obj)).Salt)) > math.MaxUint16 {
13090 x := uint16(len(((*(*(struct {
13093 write16(w, uint16(x))
13096 _, err := w.Write(((*(*(struct {
13098 }))(obj)).Salt)[:])
13101 if len(((*(*(struct {
13103 }))(obj)).B)) > math.MaxUint16 {
13107 x := uint16(len(((*(*(struct {
13110 write16(w, uint16(x))
13113 _, err := w.Write(((*(*(struct {
13120 func (obj *ToCltSRPBytesSaltB) Deserialize(r io.Reader) {
13121 var local223 uint16
13128 }))(obj)).Salt) = make([]byte, local223)
13130 _, err := io.ReadFull(r, ((*(*(struct {
13132 }))(obj)).Salt)[:])
13135 var local224 uint16
13142 }))(obj)).B) = make([]byte, local224)
13144 _, err := io.ReadFull(r, ((*(*(struct {
13151 func (obj *ToCltFormspecPrepend) Serialize(w io.Writer) {
13152 if len(([]byte((*(*(struct {
13154 }))(obj)).Prepend))) > math.MaxUint16 {
13158 x := uint16(len(([]byte((*(*(struct {
13160 }))(obj)).Prepend))))
13161 write16(w, uint16(x))
13164 _, err := w.Write(([]byte((*(*(struct {
13166 }))(obj)).Prepend))[:])
13171 func (obj *ToCltFormspecPrepend) Deserialize(r io.Reader) {
13172 var local225 []uint8
13173 var local226 uint16
13178 (local225) = make([]uint8, local226)
13180 _, err := io.ReadFull(r, (local225)[:])
13185 }))(obj)).Prepend) = string(local225)
13188 func (obj *AOCmdProps) Serialize(w io.Writer) {
13189 if err := pcall(func() {
13192 }))(obj)).Props).Serialize(w)
13197 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13201 func (obj *AOCmdProps) Deserialize(r io.Reader) {
13202 if err := pcall(func() {
13205 }))(obj)).Props).Deserialize(r)
13210 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13214 func (obj *AOCmdPos) Serialize(w io.Writer) {
13215 if err := pcall(func() {
13218 }))(obj)).Pos).Serialize(w)
13223 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13227 func (obj *AOCmdPos) Deserialize(r io.Reader) {
13228 if err := pcall(func() {
13231 }))(obj)).Pos).Deserialize(r)
13236 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13240 func (obj *AOCmdTextureMod) Serialize(w io.Writer) {
13241 if err := pcall(func() {
13243 Mod Texture // suffix
13244 }))(obj)).Mod).Serialize(w)
13249 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13253 func (obj *AOCmdTextureMod) Deserialize(r io.Reader) {
13254 if err := pcall(func() {
13256 Mod Texture // suffix
13257 }))(obj)).Mod).Deserialize(r)
13262 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13266 func (obj *AOCmdSprite) Serialize(w io.Writer) {
13267 if err := pcall(func() {
13270 }))(obj)).Sprite).Serialize(w)
13275 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13279 func (obj *AOCmdSprite) Deserialize(r io.Reader) {
13280 if err := pcall(func() {
13283 }))(obj)).Sprite).Deserialize(r)
13288 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13292 func (obj *AOCmdHP) Serialize(w io.Writer) {
13297 write16(w, uint16(x))
13301 func (obj *AOCmdHP) Deserialize(r io.Reader) {
13303 p := &(*(*(struct {
13310 func (obj *AOCmdArmorGroups) Serialize(w io.Writer) {
13311 if len(((*(*(struct {
13313 }))(obj)).Armor)) > math.MaxUint16 {
13317 x := uint16(len(((*(*(struct {
13320 write16(w, uint16(x))
13322 for local227 := range (*(*(struct {
13325 if err := pcall(func() {
13328 }))(obj)).Armor)[local227]).Serialize(w)
13333 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13338 func (obj *AOCmdArmorGroups) Deserialize(r io.Reader) {
13339 var local228 uint16
13346 }))(obj)).Armor) = make([]Group, local228)
13347 for local229 := range (*(*(struct {
13350 if err := pcall(func() {
13353 }))(obj)).Armor)[local229]).Deserialize(r)
13358 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13363 func (obj *AOCmdAnim) Serialize(w io.Writer) {
13364 if err := pcall(func() {
13367 }))(obj)).Anim).Serialize(w)
13372 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13376 func (obj *AOCmdAnim) Deserialize(r io.Reader) {
13377 if err := pcall(func() {
13380 }))(obj)).Anim).Deserialize(r)
13385 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13389 func (obj *AOCmdBonePos) Serialize(w io.Writer) {
13390 if len(([]byte((*(*(struct {
13393 }))(obj)).Bone))) > math.MaxUint16 {
13397 x := uint16(len(([]byte((*(*(struct {
13401 write16(w, uint16(x))
13404 _, err := w.Write(([]byte((*(*(struct {
13407 }))(obj)).Bone))[:])
13410 if err := pcall(func() {
13414 }))(obj)).Pos).Serialize(w)
13419 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13423 func (obj *AOCmdBonePos) Deserialize(r io.Reader) {
13424 var local230 []uint8
13425 var local231 uint16
13430 (local230) = make([]uint8, local231)
13432 _, err := io.ReadFull(r, (local230)[:])
13438 }))(obj)).Bone) = string(local230)
13439 if err := pcall(func() {
13443 }))(obj)).Pos).Deserialize(r)
13448 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13452 func (obj *AOCmdAttach) Serialize(w io.Writer) {
13453 if err := pcall(func() {
13456 }))(obj)).Attach).Serialize(w)
13461 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13465 func (obj *AOCmdAttach) Deserialize(r io.Reader) {
13466 if err := pcall(func() {
13469 }))(obj)).Attach).Deserialize(r)
13474 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13478 func (obj *AOCmdPhysOverride) Serialize(w io.Writer) {
13479 if err := pcall(func() {
13481 Phys AOPhysOverride
13482 }))(obj)).Phys).Serialize(w)
13487 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13491 func (obj *AOCmdPhysOverride) Deserialize(r io.Reader) {
13492 if err := pcall(func() {
13494 Phys AOPhysOverride
13495 }))(obj)).Phys).Deserialize(r)
13500 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13504 func (obj *AOCmdSpawnInfant) Serialize(w io.Writer) {
13505 if err := pcall(func() {
13508 }))(obj)).ID).Serialize(w)
13513 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13516 local232 := genericCAO
13517 if err := pcall(func() {
13518 (local232).Serialize(w)
13523 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13528 func (obj *AOCmdSpawnInfant) Deserialize(r io.Reader) {
13529 if err := pcall(func() {
13532 }))(obj)).ID).Deserialize(r)
13537 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13540 var local233 aoType
13541 local234 := genericCAO
13542 if err := pcall(func() {
13543 (local233).Deserialize(r)
13548 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13550 if local233 != local234 {
13551 chk(fmt.Errorf("const %v: %v", "genericCAO", local233))
13556 func (obj *AOCmdAnimSpeed) Serialize(w io.Writer) {
13561 write32(w, math.Float32bits(x))
13565 func (obj *AOCmdAnimSpeed) Deserialize(r io.Reader) {
13567 p := &(*(*(struct {
13570 *p = math.Float32frombits(read32(r))
13574 func (obj *NodeMeta) Serialize(w io.Writer) {
13575 if len(((*(*(struct {
13577 Fields []NodeMetaField
13580 }))(obj)).Fields)) > math.MaxUint32 {
13584 x := uint32(len(((*(*(struct {
13586 Fields []NodeMetaField
13589 }))(obj)).Fields)))
13590 write32(w, uint32(x))
13592 for local235 := range (*(*(struct {
13594 Fields []NodeMetaField
13598 if err := pcall(func() {
13601 Fields []NodeMetaField
13604 }))(obj)).Fields)[local235]).Serialize(w)
13609 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13614 Fields []NodeMetaField
13617 }))(obj)).Inv).Serialize(w))
13620 func (obj *NodeMeta) Deserialize(r io.Reader) {
13621 var local236 uint32
13628 Fields []NodeMetaField
13631 }))(obj)).Fields) = make([]NodeMetaField, local236)
13632 for local237 := range (*(*(struct {
13634 Fields []NodeMetaField
13638 if err := pcall(func() {
13641 Fields []NodeMetaField
13644 }))(obj)).Fields)[local237]).Deserialize(r)
13649 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13654 Fields []NodeMetaField
13657 }))(obj)).Inv).Deserialize(r))
13660 func (obj *MinimapMode) Serialize(w io.Writer) {
13661 if err := pcall(func() {
13668 }))(obj)).Type).Serialize(w)
13673 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13675 if len(([]byte((*(*(struct {
13681 }))(obj)).Label))) > math.MaxUint16 {
13685 x := uint16(len(([]byte((*(*(struct {
13691 }))(obj)).Label))))
13692 write16(w, uint16(x))
13695 _, err := w.Write(([]byte((*(*(struct {
13701 }))(obj)).Label))[:])
13712 write16(w, uint16(x))
13714 if err := pcall(func() {
13721 }))(obj)).Texture).Serialize(w)
13726 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13736 write16(w, uint16(x))
13740 func (obj *MinimapMode) Deserialize(r io.Reader) {
13741 if err := pcall(func() {
13748 }))(obj)).Type).Deserialize(r)
13753 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13755 var local238 []uint8
13756 var local239 uint16
13761 (local238) = make([]uint8, local239)
13763 _, err := io.ReadFull(r, (local238)[:])
13772 }))(obj)).Label) = string(local238)
13774 p := &(*(*(struct {
13783 if err := pcall(func() {
13790 }))(obj)).Texture).Deserialize(r)
13795 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13798 p := &(*(*(struct {
13809 func (obj *NodeDef) Serialize(w io.Writer) {
13810 if err := pcall(func() {
13823 //mt:const uint8(6)
13825 OverlayTiles [6]TileDef
13826 //mt:const uint8(6)
13827 SpecialTiles [6]TileDef
13834 ConnectTo []Content
13835 InsideTint color.NRGBA
13836 Level uint8 // Must be < 128.
13838 Translucent bool // Sunlight is scattered and becomes normal light.
13839 Transparent bool // Sunlight isn't scattered.
13852 LiquidType LiquidType
13855 Viscosity uint8 // 0-7
13861 DrawBox, ColBox, SelBox NodeBox
13863 FootstepSnd, DiggingSnd, DugSnd SoundDef
13873 }))(obj)).Param0).Serialize(w)
13878 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
13882 w := new(bytes.Buffer)
13884 local240 := uint8(13)
13887 write8(w, uint8(x))
13890 if len(([]byte((*(*(struct {
13902 //mt:const uint8(6)
13904 OverlayTiles [6]TileDef
13905 //mt:const uint8(6)
13906 SpecialTiles [6]TileDef
13913 ConnectTo []Content
13914 InsideTint color.NRGBA
13915 Level uint8 // Must be < 128.
13917 Translucent bool // Sunlight is scattered and becomes normal light.
13918 Transparent bool // Sunlight isn't scattered.
13931 LiquidType LiquidType
13934 Viscosity uint8 // 0-7
13940 DrawBox, ColBox, SelBox NodeBox
13942 FootstepSnd, DiggingSnd, DugSnd SoundDef
13952 }))(obj)).Name))) > math.MaxUint16 {
13956 x := uint16(len(([]byte((*(*(struct {
13968 //mt:const uint8(6)
13970 OverlayTiles [6]TileDef
13971 //mt:const uint8(6)
13972 SpecialTiles [6]TileDef
13979 ConnectTo []Content
13980 InsideTint color.NRGBA
13981 Level uint8 // Must be < 128.
13983 Translucent bool // Sunlight is scattered and becomes normal light.
13984 Transparent bool // Sunlight isn't scattered.
13997 LiquidType LiquidType
14000 Viscosity uint8 // 0-7
14006 DrawBox, ColBox, SelBox NodeBox
14008 FootstepSnd, DiggingSnd, DugSnd SoundDef
14019 write16(w, uint16(x))
14022 _, err := w.Write(([]byte((*(*(struct {
14034 //mt:const uint8(6)
14036 OverlayTiles [6]TileDef
14037 //mt:const uint8(6)
14038 SpecialTiles [6]TileDef
14045 ConnectTo []Content
14046 InsideTint color.NRGBA
14047 Level uint8 // Must be < 128.
14049 Translucent bool // Sunlight is scattered and becomes normal light.
14050 Transparent bool // Sunlight isn't scattered.
14063 LiquidType LiquidType
14066 Viscosity uint8 // 0-7
14072 DrawBox, ColBox, SelBox NodeBox
14074 FootstepSnd, DiggingSnd, DugSnd SoundDef
14084 }))(obj)).Name))[:])
14087 if len(((*(*(struct {
14099 //mt:const uint8(6)
14101 OverlayTiles [6]TileDef
14102 //mt:const uint8(6)
14103 SpecialTiles [6]TileDef
14110 ConnectTo []Content
14111 InsideTint color.NRGBA
14112 Level uint8 // Must be < 128.
14114 Translucent bool // Sunlight is scattered and becomes normal light.
14115 Transparent bool // Sunlight isn't scattered.
14128 LiquidType LiquidType
14131 Viscosity uint8 // 0-7
14137 DrawBox, ColBox, SelBox NodeBox
14139 FootstepSnd, DiggingSnd, DugSnd SoundDef
14149 }))(obj)).Groups)) > math.MaxUint16 {
14153 x := uint16(len(((*(*(struct {
14165 //mt:const uint8(6)
14167 OverlayTiles [6]TileDef
14168 //mt:const uint8(6)
14169 SpecialTiles [6]TileDef
14176 ConnectTo []Content
14177 InsideTint color.NRGBA
14178 Level uint8 // Must be < 128.
14180 Translucent bool // Sunlight is scattered and becomes normal light.
14181 Transparent bool // Sunlight isn't scattered.
14194 LiquidType LiquidType
14197 Viscosity uint8 // 0-7
14203 DrawBox, ColBox, SelBox NodeBox
14205 FootstepSnd, DiggingSnd, DugSnd SoundDef
14215 }))(obj)).Groups)))
14216 write16(w, uint16(x))
14218 for local241 := range (*(*(struct {
14230 //mt:const uint8(6)
14232 OverlayTiles [6]TileDef
14233 //mt:const uint8(6)
14234 SpecialTiles [6]TileDef
14241 ConnectTo []Content
14242 InsideTint color.NRGBA
14243 Level uint8 // Must be < 128.
14245 Translucent bool // Sunlight is scattered and becomes normal light.
14246 Transparent bool // Sunlight isn't scattered.
14259 LiquidType LiquidType
14262 Viscosity uint8 // 0-7
14268 DrawBox, ColBox, SelBox NodeBox
14270 FootstepSnd, DiggingSnd, DugSnd SoundDef
14281 if err := pcall(func() {
14294 //mt:const uint8(6)
14296 OverlayTiles [6]TileDef
14297 //mt:const uint8(6)
14298 SpecialTiles [6]TileDef
14305 ConnectTo []Content
14306 InsideTint color.NRGBA
14307 Level uint8 // Must be < 128.
14309 Translucent bool // Sunlight is scattered and becomes normal light.
14310 Transparent bool // Sunlight isn't scattered.
14323 LiquidType LiquidType
14326 Viscosity uint8 // 0-7
14332 DrawBox, ColBox, SelBox NodeBox
14334 FootstepSnd, DiggingSnd, DugSnd SoundDef
14344 }))(obj)).Groups)[local241]).Serialize(w)
14349 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
14352 if err := pcall(func() {
14365 //mt:const uint8(6)
14367 OverlayTiles [6]TileDef
14368 //mt:const uint8(6)
14369 SpecialTiles [6]TileDef
14376 ConnectTo []Content
14377 InsideTint color.NRGBA
14378 Level uint8 // Must be < 128.
14380 Translucent bool // Sunlight is scattered and becomes normal light.
14381 Transparent bool // Sunlight isn't scattered.
14394 LiquidType LiquidType
14397 Viscosity uint8 // 0-7
14403 DrawBox, ColBox, SelBox NodeBox
14405 FootstepSnd, DiggingSnd, DugSnd SoundDef
14415 }))(obj)).P1Type).Serialize(w)
14420 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
14422 if err := pcall(func() {
14435 //mt:const uint8(6)
14437 OverlayTiles [6]TileDef
14438 //mt:const uint8(6)
14439 SpecialTiles [6]TileDef
14446 ConnectTo []Content
14447 InsideTint color.NRGBA
14448 Level uint8 // Must be < 128.
14450 Translucent bool // Sunlight is scattered and becomes normal light.
14451 Transparent bool // Sunlight isn't scattered.
14464 LiquidType LiquidType
14467 Viscosity uint8 // 0-7
14473 DrawBox, ColBox, SelBox NodeBox
14475 FootstepSnd, DiggingSnd, DugSnd SoundDef
14485 }))(obj)).P2Type).Serialize(w)
14490 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
14492 if err := pcall(func() {
14505 //mt:const uint8(6)
14507 OverlayTiles [6]TileDef
14508 //mt:const uint8(6)
14509 SpecialTiles [6]TileDef
14516 ConnectTo []Content
14517 InsideTint color.NRGBA
14518 Level uint8 // Must be < 128.
14520 Translucent bool // Sunlight is scattered and becomes normal light.
14521 Transparent bool // Sunlight isn't scattered.
14534 LiquidType LiquidType
14537 Viscosity uint8 // 0-7
14543 DrawBox, ColBox, SelBox NodeBox
14545 FootstepSnd, DiggingSnd, DugSnd SoundDef
14555 }))(obj)).DrawType).Serialize(w)
14560 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
14562 if len(([]byte((*(*(struct {
14574 //mt:const uint8(6)
14576 OverlayTiles [6]TileDef
14577 //mt:const uint8(6)
14578 SpecialTiles [6]TileDef
14585 ConnectTo []Content
14586 InsideTint color.NRGBA
14587 Level uint8 // Must be < 128.
14589 Translucent bool // Sunlight is scattered and becomes normal light.
14590 Transparent bool // Sunlight isn't scattered.
14603 LiquidType LiquidType
14606 Viscosity uint8 // 0-7
14612 DrawBox, ColBox, SelBox NodeBox
14614 FootstepSnd, DiggingSnd, DugSnd SoundDef
14624 }))(obj)).Mesh))) > math.MaxUint16 {
14628 x := uint16(len(([]byte((*(*(struct {
14640 //mt:const uint8(6)
14642 OverlayTiles [6]TileDef
14643 //mt:const uint8(6)
14644 SpecialTiles [6]TileDef
14651 ConnectTo []Content
14652 InsideTint color.NRGBA
14653 Level uint8 // Must be < 128.
14655 Translucent bool // Sunlight is scattered and becomes normal light.
14656 Transparent bool // Sunlight isn't scattered.
14669 LiquidType LiquidType
14672 Viscosity uint8 // 0-7
14678 DrawBox, ColBox, SelBox NodeBox
14680 FootstepSnd, DiggingSnd, DugSnd SoundDef
14691 write16(w, uint16(x))
14694 _, err := w.Write(([]byte((*(*(struct {
14706 //mt:const uint8(6)
14708 OverlayTiles [6]TileDef
14709 //mt:const uint8(6)
14710 SpecialTiles [6]TileDef
14717 ConnectTo []Content
14718 InsideTint color.NRGBA
14719 Level uint8 // Must be < 128.
14721 Translucent bool // Sunlight is scattered and becomes normal light.
14722 Transparent bool // Sunlight isn't scattered.
14735 LiquidType LiquidType
14738 Viscosity uint8 // 0-7
14744 DrawBox, ColBox, SelBox NodeBox
14746 FootstepSnd, DiggingSnd, DugSnd SoundDef
14756 }))(obj)).Mesh))[:])
14772 //mt:const uint8(6)
14774 OverlayTiles [6]TileDef
14775 //mt:const uint8(6)
14776 SpecialTiles [6]TileDef
14783 ConnectTo []Content
14784 InsideTint color.NRGBA
14785 Level uint8 // Must be < 128.
14787 Translucent bool // Sunlight is scattered and becomes normal light.
14788 Transparent bool // Sunlight isn't scattered.
14801 LiquidType LiquidType
14804 Viscosity uint8 // 0-7
14810 DrawBox, ColBox, SelBox NodeBox
14812 FootstepSnd, DiggingSnd, DugSnd SoundDef
14823 write32(w, math.Float32bits(x))
14826 local242 := uint8(6)
14829 write8(w, uint8(x))
14832 for local243 := range (*(*(struct {
14844 //mt:const uint8(6)
14846 OverlayTiles [6]TileDef
14847 //mt:const uint8(6)
14848 SpecialTiles [6]TileDef
14855 ConnectTo []Content
14856 InsideTint color.NRGBA
14857 Level uint8 // Must be < 128.
14859 Translucent bool // Sunlight is scattered and becomes normal light.
14860 Transparent bool // Sunlight isn't scattered.
14873 LiquidType LiquidType
14876 Viscosity uint8 // 0-7
14882 DrawBox, ColBox, SelBox NodeBox
14884 FootstepSnd, DiggingSnd, DugSnd SoundDef
14895 if err := pcall(func() {
14908 //mt:const uint8(6)
14910 OverlayTiles [6]TileDef
14911 //mt:const uint8(6)
14912 SpecialTiles [6]TileDef
14919 ConnectTo []Content
14920 InsideTint color.NRGBA
14921 Level uint8 // Must be < 128.
14923 Translucent bool // Sunlight is scattered and becomes normal light.
14924 Transparent bool // Sunlight isn't scattered.
14937 LiquidType LiquidType
14940 Viscosity uint8 // 0-7
14946 DrawBox, ColBox, SelBox NodeBox
14948 FootstepSnd, DiggingSnd, DugSnd SoundDef
14958 }))(obj)).Tiles)[local243]).Serialize(w)
14963 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
14966 for local244 := range (*(*(struct {
14978 //mt:const uint8(6)
14980 OverlayTiles [6]TileDef
14981 //mt:const uint8(6)
14982 SpecialTiles [6]TileDef
14989 ConnectTo []Content
14990 InsideTint color.NRGBA
14991 Level uint8 // Must be < 128.
14993 Translucent bool // Sunlight is scattered and becomes normal light.
14994 Transparent bool // Sunlight isn't scattered.
15007 LiquidType LiquidType
15010 Viscosity uint8 // 0-7
15016 DrawBox, ColBox, SelBox NodeBox
15018 FootstepSnd, DiggingSnd, DugSnd SoundDef
15028 }))(obj)).OverlayTiles {
15029 if err := pcall(func() {
15042 //mt:const uint8(6)
15044 OverlayTiles [6]TileDef
15045 //mt:const uint8(6)
15046 SpecialTiles [6]TileDef
15053 ConnectTo []Content
15054 InsideTint color.NRGBA
15055 Level uint8 // Must be < 128.
15057 Translucent bool // Sunlight is scattered and becomes normal light.
15058 Transparent bool // Sunlight isn't scattered.
15071 LiquidType LiquidType
15074 Viscosity uint8 // 0-7
15080 DrawBox, ColBox, SelBox NodeBox
15082 FootstepSnd, DiggingSnd, DugSnd SoundDef
15092 }))(obj)).OverlayTiles)[local244]).Serialize(w)
15097 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15101 local245 := uint8(6)
15104 write8(w, uint8(x))
15107 for local246 := range (*(*(struct {
15119 //mt:const uint8(6)
15121 OverlayTiles [6]TileDef
15122 //mt:const uint8(6)
15123 SpecialTiles [6]TileDef
15130 ConnectTo []Content
15131 InsideTint color.NRGBA
15132 Level uint8 // Must be < 128.
15134 Translucent bool // Sunlight is scattered and becomes normal light.
15135 Transparent bool // Sunlight isn't scattered.
15148 LiquidType LiquidType
15151 Viscosity uint8 // 0-7
15157 DrawBox, ColBox, SelBox NodeBox
15159 FootstepSnd, DiggingSnd, DugSnd SoundDef
15169 }))(obj)).SpecialTiles {
15170 if err := pcall(func() {
15183 //mt:const uint8(6)
15185 OverlayTiles [6]TileDef
15186 //mt:const uint8(6)
15187 SpecialTiles [6]TileDef
15194 ConnectTo []Content
15195 InsideTint color.NRGBA
15196 Level uint8 // Must be < 128.
15198 Translucent bool // Sunlight is scattered and becomes normal light.
15199 Transparent bool // Sunlight isn't scattered.
15212 LiquidType LiquidType
15215 Viscosity uint8 // 0-7
15221 DrawBox, ColBox, SelBox NodeBox
15223 FootstepSnd, DiggingSnd, DugSnd SoundDef
15233 }))(obj)).SpecialTiles)[local246]).Serialize(w)
15238 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15254 //mt:const uint8(6)
15256 OverlayTiles [6]TileDef
15257 //mt:const uint8(6)
15258 SpecialTiles [6]TileDef
15265 ConnectTo []Content
15266 InsideTint color.NRGBA
15267 Level uint8 // Must be < 128.
15269 Translucent bool // Sunlight is scattered and becomes normal light.
15270 Transparent bool // Sunlight isn't scattered.
15283 LiquidType LiquidType
15286 Viscosity uint8 // 0-7
15292 DrawBox, ColBox, SelBox NodeBox
15294 FootstepSnd, DiggingSnd, DugSnd SoundDef
15305 w.Write([]byte{x.A, x.R, x.G, x.B})
15307 if err := pcall(func() {
15320 //mt:const uint8(6)
15322 OverlayTiles [6]TileDef
15323 //mt:const uint8(6)
15324 SpecialTiles [6]TileDef
15331 ConnectTo []Content
15332 InsideTint color.NRGBA
15333 Level uint8 // Must be < 128.
15335 Translucent bool // Sunlight is scattered and becomes normal light.
15336 Transparent bool // Sunlight isn't scattered.
15349 LiquidType LiquidType
15352 Viscosity uint8 // 0-7
15358 DrawBox, ColBox, SelBox NodeBox
15360 FootstepSnd, DiggingSnd, DugSnd SoundDef
15370 }))(obj)).Palette).Serialize(w)
15375 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
15377 if err := pcall(func() {
15390 //mt:const uint8(6)
15392 OverlayTiles [6]TileDef
15393 //mt:const uint8(6)
15394 SpecialTiles [6]TileDef
15401 ConnectTo []Content
15402 InsideTint color.NRGBA
15403 Level uint8 // Must be < 128.
15405 Translucent bool // Sunlight is scattered and becomes normal light.
15406 Transparent bool // Sunlight isn't scattered.
15419 LiquidType LiquidType
15422 Viscosity uint8 // 0-7
15428 DrawBox, ColBox, SelBox NodeBox
15430 FootstepSnd, DiggingSnd, DugSnd SoundDef
15440 }))(obj)).Waving).Serialize(w)
15445 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
15460 //mt:const uint8(6)
15462 OverlayTiles [6]TileDef
15463 //mt:const uint8(6)
15464 SpecialTiles [6]TileDef
15471 ConnectTo []Content
15472 InsideTint color.NRGBA
15473 Level uint8 // Must be < 128.
15475 Translucent bool // Sunlight is scattered and becomes normal light.
15476 Transparent bool // Sunlight isn't scattered.
15489 LiquidType LiquidType
15492 Viscosity uint8 // 0-7
15498 DrawBox, ColBox, SelBox NodeBox
15500 FootstepSnd, DiggingSnd, DugSnd SoundDef
15510 }))(obj)).ConnectSides
15511 write8(w, uint8(x))
15513 if len(((*(*(struct {
15525 //mt:const uint8(6)
15527 OverlayTiles [6]TileDef
15528 //mt:const uint8(6)
15529 SpecialTiles [6]TileDef
15536 ConnectTo []Content
15537 InsideTint color.NRGBA
15538 Level uint8 // Must be < 128.
15540 Translucent bool // Sunlight is scattered and becomes normal light.
15541 Transparent bool // Sunlight isn't scattered.
15554 LiquidType LiquidType
15557 Viscosity uint8 // 0-7
15563 DrawBox, ColBox, SelBox NodeBox
15565 FootstepSnd, DiggingSnd, DugSnd SoundDef
15575 }))(obj)).ConnectTo)) > math.MaxUint16 {
15579 x := uint16(len(((*(*(struct {
15591 //mt:const uint8(6)
15593 OverlayTiles [6]TileDef
15594 //mt:const uint8(6)
15595 SpecialTiles [6]TileDef
15602 ConnectTo []Content
15603 InsideTint color.NRGBA
15604 Level uint8 // Must be < 128.
15606 Translucent bool // Sunlight is scattered and becomes normal light.
15607 Transparent bool // Sunlight isn't scattered.
15620 LiquidType LiquidType
15623 Viscosity uint8 // 0-7
15629 DrawBox, ColBox, SelBox NodeBox
15631 FootstepSnd, DiggingSnd, DugSnd SoundDef
15641 }))(obj)).ConnectTo)))
15642 write16(w, uint16(x))
15644 for local247 := range (*(*(struct {
15656 //mt:const uint8(6)
15658 OverlayTiles [6]TileDef
15659 //mt:const uint8(6)
15660 SpecialTiles [6]TileDef
15667 ConnectTo []Content
15668 InsideTint color.NRGBA
15669 Level uint8 // Must be < 128.
15671 Translucent bool // Sunlight is scattered and becomes normal light.
15672 Transparent bool // Sunlight isn't scattered.
15685 LiquidType LiquidType
15688 Viscosity uint8 // 0-7
15694 DrawBox, ColBox, SelBox NodeBox
15696 FootstepSnd, DiggingSnd, DugSnd SoundDef
15706 }))(obj)).ConnectTo {
15707 if err := pcall(func() {
15720 //mt:const uint8(6)
15722 OverlayTiles [6]TileDef
15723 //mt:const uint8(6)
15724 SpecialTiles [6]TileDef
15731 ConnectTo []Content
15732 InsideTint color.NRGBA
15733 Level uint8 // Must be < 128.
15735 Translucent bool // Sunlight is scattered and becomes normal light.
15736 Transparent bool // Sunlight isn't scattered.
15749 LiquidType LiquidType
15752 Viscosity uint8 // 0-7
15758 DrawBox, ColBox, SelBox NodeBox
15760 FootstepSnd, DiggingSnd, DugSnd SoundDef
15770 }))(obj)).ConnectTo)[local247]).Serialize(w)
15775 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
15791 //mt:const uint8(6)
15793 OverlayTiles [6]TileDef
15794 //mt:const uint8(6)
15795 SpecialTiles [6]TileDef
15802 ConnectTo []Content
15803 InsideTint color.NRGBA
15804 Level uint8 // Must be < 128.
15806 Translucent bool // Sunlight is scattered and becomes normal light.
15807 Transparent bool // Sunlight isn't scattered.
15820 LiquidType LiquidType
15823 Viscosity uint8 // 0-7
15829 DrawBox, ColBox, SelBox NodeBox
15831 FootstepSnd, DiggingSnd, DugSnd SoundDef
15841 }))(obj)).InsideTint
15842 w.Write([]byte{x.A, x.R, x.G, x.B})
15857 //mt:const uint8(6)
15859 OverlayTiles [6]TileDef
15860 //mt:const uint8(6)
15861 SpecialTiles [6]TileDef
15868 ConnectTo []Content
15869 InsideTint color.NRGBA
15870 Level uint8 // Must be < 128.
15872 Translucent bool // Sunlight is scattered and becomes normal light.
15873 Transparent bool // Sunlight isn't scattered.
15886 LiquidType LiquidType
15889 Viscosity uint8 // 0-7
15895 DrawBox, ColBox, SelBox NodeBox
15897 FootstepSnd, DiggingSnd, DugSnd SoundDef
15908 write8(w, uint8(x))
15923 //mt:const uint8(6)
15925 OverlayTiles [6]TileDef
15926 //mt:const uint8(6)
15927 SpecialTiles [6]TileDef
15934 ConnectTo []Content
15935 InsideTint color.NRGBA
15936 Level uint8 // Must be < 128.
15938 Translucent bool // Sunlight is scattered and becomes normal light.
15939 Transparent bool // Sunlight isn't scattered.
15952 LiquidType LiquidType
15955 Viscosity uint8 // 0-7
15961 DrawBox, ColBox, SelBox NodeBox
15963 FootstepSnd, DiggingSnd, DugSnd SoundDef
15973 }))(obj)).Translucent
15993 //mt:const uint8(6)
15995 OverlayTiles [6]TileDef
15996 //mt:const uint8(6)
15997 SpecialTiles [6]TileDef
16004 ConnectTo []Content
16005 InsideTint color.NRGBA
16006 Level uint8 // Must be < 128.
16008 Translucent bool // Sunlight is scattered and becomes normal light.
16009 Transparent bool // Sunlight isn't scattered.
16022 LiquidType LiquidType
16025 Viscosity uint8 // 0-7
16031 DrawBox, ColBox, SelBox NodeBox
16033 FootstepSnd, DiggingSnd, DugSnd SoundDef
16043 }))(obj)).Transparent
16063 //mt:const uint8(6)
16065 OverlayTiles [6]TileDef
16066 //mt:const uint8(6)
16067 SpecialTiles [6]TileDef
16074 ConnectTo []Content
16075 InsideTint color.NRGBA
16076 Level uint8 // Must be < 128.
16078 Translucent bool // Sunlight is scattered and becomes normal light.
16079 Transparent bool // Sunlight isn't scattered.
16092 LiquidType LiquidType
16095 Viscosity uint8 // 0-7
16101 DrawBox, ColBox, SelBox NodeBox
16103 FootstepSnd, DiggingSnd, DugSnd SoundDef
16114 write8(w, uint8(x))
16129 //mt:const uint8(6)
16131 OverlayTiles [6]TileDef
16132 //mt:const uint8(6)
16133 SpecialTiles [6]TileDef
16140 ConnectTo []Content
16141 InsideTint color.NRGBA
16142 Level uint8 // Must be < 128.
16144 Translucent bool // Sunlight is scattered and becomes normal light.
16145 Transparent bool // Sunlight isn't scattered.
16158 LiquidType LiquidType
16161 Viscosity uint8 // 0-7
16167 DrawBox, ColBox, SelBox NodeBox
16169 FootstepSnd, DiggingSnd, DugSnd SoundDef
16179 }))(obj)).GndContent
16199 //mt:const uint8(6)
16201 OverlayTiles [6]TileDef
16202 //mt:const uint8(6)
16203 SpecialTiles [6]TileDef
16210 ConnectTo []Content
16211 InsideTint color.NRGBA
16212 Level uint8 // Must be < 128.
16214 Translucent bool // Sunlight is scattered and becomes normal light.
16215 Transparent bool // Sunlight isn't scattered.
16228 LiquidType LiquidType
16231 Viscosity uint8 // 0-7
16237 DrawBox, ColBox, SelBox NodeBox
16239 FootstepSnd, DiggingSnd, DugSnd SoundDef
16269 //mt:const uint8(6)
16271 OverlayTiles [6]TileDef
16272 //mt:const uint8(6)
16273 SpecialTiles [6]TileDef
16280 ConnectTo []Content
16281 InsideTint color.NRGBA
16282 Level uint8 // Must be < 128.
16284 Translucent bool // Sunlight is scattered and becomes normal light.
16285 Transparent bool // Sunlight isn't scattered.
16298 LiquidType LiquidType
16301 Viscosity uint8 // 0-7
16307 DrawBox, ColBox, SelBox NodeBox
16309 FootstepSnd, DiggingSnd, DugSnd SoundDef
16319 }))(obj)).Pointable
16339 //mt:const uint8(6)
16341 OverlayTiles [6]TileDef
16342 //mt:const uint8(6)
16343 SpecialTiles [6]TileDef
16350 ConnectTo []Content
16351 InsideTint color.NRGBA
16352 Level uint8 // Must be < 128.
16354 Translucent bool // Sunlight is scattered and becomes normal light.
16355 Transparent bool // Sunlight isn't scattered.
16368 LiquidType LiquidType
16371 Viscosity uint8 // 0-7
16377 DrawBox, ColBox, SelBox NodeBox
16379 FootstepSnd, DiggingSnd, DugSnd SoundDef
16409 //mt:const uint8(6)
16411 OverlayTiles [6]TileDef
16412 //mt:const uint8(6)
16413 SpecialTiles [6]TileDef
16420 ConnectTo []Content
16421 InsideTint color.NRGBA
16422 Level uint8 // Must be < 128.
16424 Translucent bool // Sunlight is scattered and becomes normal light.
16425 Transparent bool // Sunlight isn't scattered.
16438 LiquidType LiquidType
16441 Viscosity uint8 // 0-7
16447 DrawBox, ColBox, SelBox NodeBox
16449 FootstepSnd, DiggingSnd, DugSnd SoundDef
16459 }))(obj)).Climbable
16479 //mt:const uint8(6)
16481 OverlayTiles [6]TileDef
16482 //mt:const uint8(6)
16483 SpecialTiles [6]TileDef
16490 ConnectTo []Content
16491 InsideTint color.NRGBA
16492 Level uint8 // Must be < 128.
16494 Translucent bool // Sunlight is scattered and becomes normal light.
16495 Transparent bool // Sunlight isn't scattered.
16508 LiquidType LiquidType
16511 Viscosity uint8 // 0-7
16517 DrawBox, ColBox, SelBox NodeBox
16519 FootstepSnd, DiggingSnd, DugSnd SoundDef
16529 }))(obj)).Replaceable
16549 //mt:const uint8(6)
16551 OverlayTiles [6]TileDef
16552 //mt:const uint8(6)
16553 SpecialTiles [6]TileDef
16560 ConnectTo []Content
16561 InsideTint color.NRGBA
16562 Level uint8 // Must be < 128.
16564 Translucent bool // Sunlight is scattered and becomes normal light.
16565 Transparent bool // Sunlight isn't scattered.
16578 LiquidType LiquidType
16581 Viscosity uint8 // 0-7
16587 DrawBox, ColBox, SelBox NodeBox
16589 FootstepSnd, DiggingSnd, DugSnd SoundDef
16599 }))(obj)).OnRightClick
16619 //mt:const uint8(6)
16621 OverlayTiles [6]TileDef
16622 //mt:const uint8(6)
16623 SpecialTiles [6]TileDef
16630 ConnectTo []Content
16631 InsideTint color.NRGBA
16632 Level uint8 // Must be < 128.
16634 Translucent bool // Sunlight is scattered and becomes normal light.
16635 Transparent bool // Sunlight isn't scattered.
16648 LiquidType LiquidType
16651 Viscosity uint8 // 0-7
16657 DrawBox, ColBox, SelBox NodeBox
16659 FootstepSnd, DiggingSnd, DugSnd SoundDef
16669 }))(obj)).DmgPerSec
16670 write32(w, uint32(x))
16672 if err := pcall(func() {
16685 //mt:const uint8(6)
16687 OverlayTiles [6]TileDef
16688 //mt:const uint8(6)
16689 SpecialTiles [6]TileDef
16696 ConnectTo []Content
16697 InsideTint color.NRGBA
16698 Level uint8 // Must be < 128.
16700 Translucent bool // Sunlight is scattered and becomes normal light.
16701 Transparent bool // Sunlight isn't scattered.
16714 LiquidType LiquidType
16717 Viscosity uint8 // 0-7
16723 DrawBox, ColBox, SelBox NodeBox
16725 FootstepSnd, DiggingSnd, DugSnd SoundDef
16735 }))(obj)).LiquidType).Serialize(w)
16740 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
16742 if len(([]byte((*(*(struct {
16754 //mt:const uint8(6)
16756 OverlayTiles [6]TileDef
16757 //mt:const uint8(6)
16758 SpecialTiles [6]TileDef
16765 ConnectTo []Content
16766 InsideTint color.NRGBA
16767 Level uint8 // Must be < 128.
16769 Translucent bool // Sunlight is scattered and becomes normal light.
16770 Transparent bool // Sunlight isn't scattered.
16783 LiquidType LiquidType
16786 Viscosity uint8 // 0-7
16792 DrawBox, ColBox, SelBox NodeBox
16794 FootstepSnd, DiggingSnd, DugSnd SoundDef
16804 }))(obj)).FlowingAlt))) > math.MaxUint16 {
16808 x := uint16(len(([]byte((*(*(struct {
16820 //mt:const uint8(6)
16822 OverlayTiles [6]TileDef
16823 //mt:const uint8(6)
16824 SpecialTiles [6]TileDef
16831 ConnectTo []Content
16832 InsideTint color.NRGBA
16833 Level uint8 // Must be < 128.
16835 Translucent bool // Sunlight is scattered and becomes normal light.
16836 Transparent bool // Sunlight isn't scattered.
16849 LiquidType LiquidType
16852 Viscosity uint8 // 0-7
16858 DrawBox, ColBox, SelBox NodeBox
16860 FootstepSnd, DiggingSnd, DugSnd SoundDef
16870 }))(obj)).FlowingAlt))))
16871 write16(w, uint16(x))
16874 _, err := w.Write(([]byte((*(*(struct {
16886 //mt:const uint8(6)
16888 OverlayTiles [6]TileDef
16889 //mt:const uint8(6)
16890 SpecialTiles [6]TileDef
16897 ConnectTo []Content
16898 InsideTint color.NRGBA
16899 Level uint8 // Must be < 128.
16901 Translucent bool // Sunlight is scattered and becomes normal light.
16902 Transparent bool // Sunlight isn't scattered.
16915 LiquidType LiquidType
16918 Viscosity uint8 // 0-7
16924 DrawBox, ColBox, SelBox NodeBox
16926 FootstepSnd, DiggingSnd, DugSnd SoundDef
16936 }))(obj)).FlowingAlt))[:])
16939 if len(([]byte((*(*(struct {
16951 //mt:const uint8(6)
16953 OverlayTiles [6]TileDef
16954 //mt:const uint8(6)
16955 SpecialTiles [6]TileDef
16962 ConnectTo []Content
16963 InsideTint color.NRGBA
16964 Level uint8 // Must be < 128.
16966 Translucent bool // Sunlight is scattered and becomes normal light.
16967 Transparent bool // Sunlight isn't scattered.
16980 LiquidType LiquidType
16983 Viscosity uint8 // 0-7
16989 DrawBox, ColBox, SelBox NodeBox
16991 FootstepSnd, DiggingSnd, DugSnd SoundDef
17001 }))(obj)).SrcAlt))) > math.MaxUint16 {
17005 x := uint16(len(([]byte((*(*(struct {
17017 //mt:const uint8(6)
17019 OverlayTiles [6]TileDef
17020 //mt:const uint8(6)
17021 SpecialTiles [6]TileDef
17028 ConnectTo []Content
17029 InsideTint color.NRGBA
17030 Level uint8 // Must be < 128.
17032 Translucent bool // Sunlight is scattered and becomes normal light.
17033 Transparent bool // Sunlight isn't scattered.
17046 LiquidType LiquidType
17049 Viscosity uint8 // 0-7
17055 DrawBox, ColBox, SelBox NodeBox
17057 FootstepSnd, DiggingSnd, DugSnd SoundDef
17067 }))(obj)).SrcAlt))))
17068 write16(w, uint16(x))
17071 _, err := w.Write(([]byte((*(*(struct {
17083 //mt:const uint8(6)
17085 OverlayTiles [6]TileDef
17086 //mt:const uint8(6)
17087 SpecialTiles [6]TileDef
17094 ConnectTo []Content
17095 InsideTint color.NRGBA
17096 Level uint8 // Must be < 128.
17098 Translucent bool // Sunlight is scattered and becomes normal light.
17099 Transparent bool // Sunlight isn't scattered.
17112 LiquidType LiquidType
17115 Viscosity uint8 // 0-7
17121 DrawBox, ColBox, SelBox NodeBox
17123 FootstepSnd, DiggingSnd, DugSnd SoundDef
17133 }))(obj)).SrcAlt))[:])
17149 //mt:const uint8(6)
17151 OverlayTiles [6]TileDef
17152 //mt:const uint8(6)
17153 SpecialTiles [6]TileDef
17160 ConnectTo []Content
17161 InsideTint color.NRGBA
17162 Level uint8 // Must be < 128.
17164 Translucent bool // Sunlight is scattered and becomes normal light.
17165 Transparent bool // Sunlight isn't scattered.
17178 LiquidType LiquidType
17181 Viscosity uint8 // 0-7
17187 DrawBox, ColBox, SelBox NodeBox
17189 FootstepSnd, DiggingSnd, DugSnd SoundDef
17199 }))(obj)).Viscosity
17200 write8(w, uint8(x))
17215 //mt:const uint8(6)
17217 OverlayTiles [6]TileDef
17218 //mt:const uint8(6)
17219 SpecialTiles [6]TileDef
17226 ConnectTo []Content
17227 InsideTint color.NRGBA
17228 Level uint8 // Must be < 128.
17230 Translucent bool // Sunlight is scattered and becomes normal light.
17231 Transparent bool // Sunlight isn't scattered.
17244 LiquidType LiquidType
17247 Viscosity uint8 // 0-7
17253 DrawBox, ColBox, SelBox NodeBox
17255 FootstepSnd, DiggingSnd, DugSnd SoundDef
17265 }))(obj)).LiqRenewable
17285 //mt:const uint8(6)
17287 OverlayTiles [6]TileDef
17288 //mt:const uint8(6)
17289 SpecialTiles [6]TileDef
17296 ConnectTo []Content
17297 InsideTint color.NRGBA
17298 Level uint8 // Must be < 128.
17300 Translucent bool // Sunlight is scattered and becomes normal light.
17301 Transparent bool // Sunlight isn't scattered.
17314 LiquidType LiquidType
17317 Viscosity uint8 // 0-7
17323 DrawBox, ColBox, SelBox NodeBox
17325 FootstepSnd, DiggingSnd, DugSnd SoundDef
17335 }))(obj)).FlowRange
17336 write8(w, uint8(x))
17351 //mt:const uint8(6)
17353 OverlayTiles [6]TileDef
17354 //mt:const uint8(6)
17355 SpecialTiles [6]TileDef
17362 ConnectTo []Content
17363 InsideTint color.NRGBA
17364 Level uint8 // Must be < 128.
17366 Translucent bool // Sunlight is scattered and becomes normal light.
17367 Transparent bool // Sunlight isn't scattered.
17380 LiquidType LiquidType
17383 Viscosity uint8 // 0-7
17389 DrawBox, ColBox, SelBox NodeBox
17391 FootstepSnd, DiggingSnd, DugSnd SoundDef
17402 write8(w, uint8(x))
17417 //mt:const uint8(6)
17419 OverlayTiles [6]TileDef
17420 //mt:const uint8(6)
17421 SpecialTiles [6]TileDef
17428 ConnectTo []Content
17429 InsideTint color.NRGBA
17430 Level uint8 // Must be < 128.
17432 Translucent bool // Sunlight is scattered and becomes normal light.
17433 Transparent bool // Sunlight isn't scattered.
17446 LiquidType LiquidType
17449 Viscosity uint8 // 0-7
17455 DrawBox, ColBox, SelBox NodeBox
17457 FootstepSnd, DiggingSnd, DugSnd SoundDef
17467 }))(obj)).Floodable
17474 if err := pcall(func() {
17487 //mt:const uint8(6)
17489 OverlayTiles [6]TileDef
17490 //mt:const uint8(6)
17491 SpecialTiles [6]TileDef
17498 ConnectTo []Content
17499 InsideTint color.NRGBA
17500 Level uint8 // Must be < 128.
17502 Translucent bool // Sunlight is scattered and becomes normal light.
17503 Transparent bool // Sunlight isn't scattered.
17516 LiquidType LiquidType
17519 Viscosity uint8 // 0-7
17525 DrawBox, ColBox, SelBox NodeBox
17527 FootstepSnd, DiggingSnd, DugSnd SoundDef
17537 }))(obj)).DrawBox).Serialize(w)
17542 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17544 if err := pcall(func() {
17557 //mt:const uint8(6)
17559 OverlayTiles [6]TileDef
17560 //mt:const uint8(6)
17561 SpecialTiles [6]TileDef
17568 ConnectTo []Content
17569 InsideTint color.NRGBA
17570 Level uint8 // Must be < 128.
17572 Translucent bool // Sunlight is scattered and becomes normal light.
17573 Transparent bool // Sunlight isn't scattered.
17586 LiquidType LiquidType
17589 Viscosity uint8 // 0-7
17595 DrawBox, ColBox, SelBox NodeBox
17597 FootstepSnd, DiggingSnd, DugSnd SoundDef
17607 }))(obj)).ColBox).Serialize(w)
17612 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17614 if err := pcall(func() {
17627 //mt:const uint8(6)
17629 OverlayTiles [6]TileDef
17630 //mt:const uint8(6)
17631 SpecialTiles [6]TileDef
17638 ConnectTo []Content
17639 InsideTint color.NRGBA
17640 Level uint8 // Must be < 128.
17642 Translucent bool // Sunlight is scattered and becomes normal light.
17643 Transparent bool // Sunlight isn't scattered.
17656 LiquidType LiquidType
17659 Viscosity uint8 // 0-7
17665 DrawBox, ColBox, SelBox NodeBox
17667 FootstepSnd, DiggingSnd, DugSnd SoundDef
17677 }))(obj)).SelBox).Serialize(w)
17682 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17684 if err := pcall(func() {
17697 //mt:const uint8(6)
17699 OverlayTiles [6]TileDef
17700 //mt:const uint8(6)
17701 SpecialTiles [6]TileDef
17708 ConnectTo []Content
17709 InsideTint color.NRGBA
17710 Level uint8 // Must be < 128.
17712 Translucent bool // Sunlight is scattered and becomes normal light.
17713 Transparent bool // Sunlight isn't scattered.
17726 LiquidType LiquidType
17729 Viscosity uint8 // 0-7
17735 DrawBox, ColBox, SelBox NodeBox
17737 FootstepSnd, DiggingSnd, DugSnd SoundDef
17747 }))(obj)).FootstepSnd).Serialize(w)
17752 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17754 if err := pcall(func() {
17767 //mt:const uint8(6)
17769 OverlayTiles [6]TileDef
17770 //mt:const uint8(6)
17771 SpecialTiles [6]TileDef
17778 ConnectTo []Content
17779 InsideTint color.NRGBA
17780 Level uint8 // Must be < 128.
17782 Translucent bool // Sunlight is scattered and becomes normal light.
17783 Transparent bool // Sunlight isn't scattered.
17796 LiquidType LiquidType
17799 Viscosity uint8 // 0-7
17805 DrawBox, ColBox, SelBox NodeBox
17807 FootstepSnd, DiggingSnd, DugSnd SoundDef
17817 }))(obj)).DiggingSnd).Serialize(w)
17822 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17824 if err := pcall(func() {
17837 //mt:const uint8(6)
17839 OverlayTiles [6]TileDef
17840 //mt:const uint8(6)
17841 SpecialTiles [6]TileDef
17848 ConnectTo []Content
17849 InsideTint color.NRGBA
17850 Level uint8 // Must be < 128.
17852 Translucent bool // Sunlight is scattered and becomes normal light.
17853 Transparent bool // Sunlight isn't scattered.
17866 LiquidType LiquidType
17869 Viscosity uint8 // 0-7
17875 DrawBox, ColBox, SelBox NodeBox
17877 FootstepSnd, DiggingSnd, DugSnd SoundDef
17887 }))(obj)).DugSnd).Serialize(w)
17892 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17907 //mt:const uint8(6)
17909 OverlayTiles [6]TileDef
17910 //mt:const uint8(6)
17911 SpecialTiles [6]TileDef
17918 ConnectTo []Content
17919 InsideTint color.NRGBA
17920 Level uint8 // Must be < 128.
17922 Translucent bool // Sunlight is scattered and becomes normal light.
17923 Transparent bool // Sunlight isn't scattered.
17936 LiquidType LiquidType
17939 Viscosity uint8 // 0-7
17945 DrawBox, ColBox, SelBox NodeBox
17947 FootstepSnd, DiggingSnd, DugSnd SoundDef
17957 }))(obj)).LegacyFaceDir
17977 //mt:const uint8(6)
17979 OverlayTiles [6]TileDef
17980 //mt:const uint8(6)
17981 SpecialTiles [6]TileDef
17988 ConnectTo []Content
17989 InsideTint color.NRGBA
17990 Level uint8 // Must be < 128.
17992 Translucent bool // Sunlight is scattered and becomes normal light.
17993 Transparent bool // Sunlight isn't scattered.
18006 LiquidType LiquidType
18009 Viscosity uint8 // 0-7
18015 DrawBox, ColBox, SelBox NodeBox
18017 FootstepSnd, DiggingSnd, DugSnd SoundDef
18027 }))(obj)).LegacyMounted
18034 if len(([]byte((*(*(struct {
18046 //mt:const uint8(6)
18048 OverlayTiles [6]TileDef
18049 //mt:const uint8(6)
18050 SpecialTiles [6]TileDef
18057 ConnectTo []Content
18058 InsideTint color.NRGBA
18059 Level uint8 // Must be < 128.
18061 Translucent bool // Sunlight is scattered and becomes normal light.
18062 Transparent bool // Sunlight isn't scattered.
18075 LiquidType LiquidType
18078 Viscosity uint8 // 0-7
18084 DrawBox, ColBox, SelBox NodeBox
18086 FootstepSnd, DiggingSnd, DugSnd SoundDef
18096 }))(obj)).DigPredict))) > math.MaxUint16 {
18100 x := uint16(len(([]byte((*(*(struct {
18112 //mt:const uint8(6)
18114 OverlayTiles [6]TileDef
18115 //mt:const uint8(6)
18116 SpecialTiles [6]TileDef
18123 ConnectTo []Content
18124 InsideTint color.NRGBA
18125 Level uint8 // Must be < 128.
18127 Translucent bool // Sunlight is scattered and becomes normal light.
18128 Transparent bool // Sunlight isn't scattered.
18141 LiquidType LiquidType
18144 Viscosity uint8 // 0-7
18150 DrawBox, ColBox, SelBox NodeBox
18152 FootstepSnd, DiggingSnd, DugSnd SoundDef
18162 }))(obj)).DigPredict))))
18163 write16(w, uint16(x))
18166 _, err := w.Write(([]byte((*(*(struct {
18178 //mt:const uint8(6)
18180 OverlayTiles [6]TileDef
18181 //mt:const uint8(6)
18182 SpecialTiles [6]TileDef
18189 ConnectTo []Content
18190 InsideTint color.NRGBA
18191 Level uint8 // Must be < 128.
18193 Translucent bool // Sunlight is scattered and becomes normal light.
18194 Transparent bool // Sunlight isn't scattered.
18207 LiquidType LiquidType
18210 Viscosity uint8 // 0-7
18216 DrawBox, ColBox, SelBox NodeBox
18218 FootstepSnd, DiggingSnd, DugSnd SoundDef
18228 }))(obj)).DigPredict))[:])
18244 //mt:const uint8(6)
18246 OverlayTiles [6]TileDef
18247 //mt:const uint8(6)
18248 SpecialTiles [6]TileDef
18255 ConnectTo []Content
18256 InsideTint color.NRGBA
18257 Level uint8 // Must be < 128.
18259 Translucent bool // Sunlight is scattered and becomes normal light.
18260 Transparent bool // Sunlight isn't scattered.
18273 LiquidType LiquidType
18276 Viscosity uint8 // 0-7
18282 DrawBox, ColBox, SelBox NodeBox
18284 FootstepSnd, DiggingSnd, DugSnd SoundDef
18295 write8(w, uint8(x))
18297 if err := pcall(func() {
18310 //mt:const uint8(6)
18312 OverlayTiles [6]TileDef
18313 //mt:const uint8(6)
18314 SpecialTiles [6]TileDef
18321 ConnectTo []Content
18322 InsideTint color.NRGBA
18323 Level uint8 // Must be < 128.
18325 Translucent bool // Sunlight is scattered and becomes normal light.
18326 Transparent bool // Sunlight isn't scattered.
18339 LiquidType LiquidType
18342 Viscosity uint8 // 0-7
18348 DrawBox, ColBox, SelBox NodeBox
18350 FootstepSnd, DiggingSnd, DugSnd SoundDef
18360 }))(obj)).AlphaUse).Serialize(w)
18365 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
18370 if len((buf.Bytes())) > math.MaxUint16 {
18374 x := uint16(len((buf.Bytes())))
18375 write16(w, uint16(x))
18378 _, err := w.Write((buf.Bytes())[:])
18385 func (obj *NodeDef) Deserialize(r io.Reader) {
18386 if err := pcall(func() {
18399 //mt:const uint8(6)
18401 OverlayTiles [6]TileDef
18402 //mt:const uint8(6)
18403 SpecialTiles [6]TileDef
18410 ConnectTo []Content
18411 InsideTint color.NRGBA
18412 Level uint8 // Must be < 128.
18414 Translucent bool // Sunlight is scattered and becomes normal light.
18415 Transparent bool // Sunlight isn't scattered.
18428 LiquidType LiquidType
18431 Viscosity uint8 // 0-7
18437 DrawBox, ColBox, SelBox NodeBox
18439 FootstepSnd, DiggingSnd, DugSnd SoundDef
18449 }))(obj)).Param0).Deserialize(r)
18454 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
18462 r := &io.LimitedReader{R: r, N: int64(n)}
18465 local249 := uint8(13)
18470 if local248 != local249 {
18471 chk(fmt.Errorf("const %v: %v", "uint8(13)", local248))
18474 var local250 []uint8
18475 var local251 uint16
18480 (local250) = make([]uint8, local251)
18482 _, err := io.ReadFull(r, (local250)[:])
18497 //mt:const uint8(6)
18499 OverlayTiles [6]TileDef
18500 //mt:const uint8(6)
18501 SpecialTiles [6]TileDef
18508 ConnectTo []Content
18509 InsideTint color.NRGBA
18510 Level uint8 // Must be < 128.
18512 Translucent bool // Sunlight is scattered and becomes normal light.
18513 Transparent bool // Sunlight isn't scattered.
18526 LiquidType LiquidType
18529 Viscosity uint8 // 0-7
18535 DrawBox, ColBox, SelBox NodeBox
18537 FootstepSnd, DiggingSnd, DugSnd SoundDef
18547 }))(obj)).Name) = string(local250)
18548 var local252 uint16
18565 //mt:const uint8(6)
18567 OverlayTiles [6]TileDef
18568 //mt:const uint8(6)
18569 SpecialTiles [6]TileDef
18576 ConnectTo []Content
18577 InsideTint color.NRGBA
18578 Level uint8 // Must be < 128.
18580 Translucent bool // Sunlight is scattered and becomes normal light.
18581 Transparent bool // Sunlight isn't scattered.
18594 LiquidType LiquidType
18597 Viscosity uint8 // 0-7
18603 DrawBox, ColBox, SelBox NodeBox
18605 FootstepSnd, DiggingSnd, DugSnd SoundDef
18615 }))(obj)).Groups) = make([]Group, local252)
18616 for local253 := range (*(*(struct {
18628 //mt:const uint8(6)
18630 OverlayTiles [6]TileDef
18631 //mt:const uint8(6)
18632 SpecialTiles [6]TileDef
18639 ConnectTo []Content
18640 InsideTint color.NRGBA
18641 Level uint8 // Must be < 128.
18643 Translucent bool // Sunlight is scattered and becomes normal light.
18644 Transparent bool // Sunlight isn't scattered.
18657 LiquidType LiquidType
18660 Viscosity uint8 // 0-7
18666 DrawBox, ColBox, SelBox NodeBox
18668 FootstepSnd, DiggingSnd, DugSnd SoundDef
18679 if err := pcall(func() {
18692 //mt:const uint8(6)
18694 OverlayTiles [6]TileDef
18695 //mt:const uint8(6)
18696 SpecialTiles [6]TileDef
18703 ConnectTo []Content
18704 InsideTint color.NRGBA
18705 Level uint8 // Must be < 128.
18707 Translucent bool // Sunlight is scattered and becomes normal light.
18708 Transparent bool // Sunlight isn't scattered.
18721 LiquidType LiquidType
18724 Viscosity uint8 // 0-7
18730 DrawBox, ColBox, SelBox NodeBox
18732 FootstepSnd, DiggingSnd, DugSnd SoundDef
18742 }))(obj)).Groups)[local253]).Deserialize(r)
18747 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
18750 if err := pcall(func() {
18763 //mt:const uint8(6)
18765 OverlayTiles [6]TileDef
18766 //mt:const uint8(6)
18767 SpecialTiles [6]TileDef
18774 ConnectTo []Content
18775 InsideTint color.NRGBA
18776 Level uint8 // Must be < 128.
18778 Translucent bool // Sunlight is scattered and becomes normal light.
18779 Transparent bool // Sunlight isn't scattered.
18792 LiquidType LiquidType
18795 Viscosity uint8 // 0-7
18801 DrawBox, ColBox, SelBox NodeBox
18803 FootstepSnd, DiggingSnd, DugSnd SoundDef
18813 }))(obj)).P1Type).Deserialize(r)
18818 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
18820 if err := pcall(func() {
18833 //mt:const uint8(6)
18835 OverlayTiles [6]TileDef
18836 //mt:const uint8(6)
18837 SpecialTiles [6]TileDef
18844 ConnectTo []Content
18845 InsideTint color.NRGBA
18846 Level uint8 // Must be < 128.
18848 Translucent bool // Sunlight is scattered and becomes normal light.
18849 Transparent bool // Sunlight isn't scattered.
18862 LiquidType LiquidType
18865 Viscosity uint8 // 0-7
18871 DrawBox, ColBox, SelBox NodeBox
18873 FootstepSnd, DiggingSnd, DugSnd SoundDef
18883 }))(obj)).P2Type).Deserialize(r)
18888 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
18890 if err := pcall(func() {
18903 //mt:const uint8(6)
18905 OverlayTiles [6]TileDef
18906 //mt:const uint8(6)
18907 SpecialTiles [6]TileDef
18914 ConnectTo []Content
18915 InsideTint color.NRGBA
18916 Level uint8 // Must be < 128.
18918 Translucent bool // Sunlight is scattered and becomes normal light.
18919 Transparent bool // Sunlight isn't scattered.
18932 LiquidType LiquidType
18935 Viscosity uint8 // 0-7
18941 DrawBox, ColBox, SelBox NodeBox
18943 FootstepSnd, DiggingSnd, DugSnd SoundDef
18953 }))(obj)).DrawType).Deserialize(r)
18958 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
18960 var local254 []uint8
18961 var local255 uint16
18966 (local254) = make([]uint8, local255)
18968 _, err := io.ReadFull(r, (local254)[:])
18983 //mt:const uint8(6)
18985 OverlayTiles [6]TileDef
18986 //mt:const uint8(6)
18987 SpecialTiles [6]TileDef
18994 ConnectTo []Content
18995 InsideTint color.NRGBA
18996 Level uint8 // Must be < 128.
18998 Translucent bool // Sunlight is scattered and becomes normal light.
18999 Transparent bool // Sunlight isn't scattered.
19012 LiquidType LiquidType
19015 Viscosity uint8 // 0-7
19021 DrawBox, ColBox, SelBox NodeBox
19023 FootstepSnd, DiggingSnd, DugSnd SoundDef
19033 }))(obj)).Mesh) = string(local254)
19035 p := &(*(*(struct {
19047 //mt:const uint8(6)
19049 OverlayTiles [6]TileDef
19050 //mt:const uint8(6)
19051 SpecialTiles [6]TileDef
19058 ConnectTo []Content
19059 InsideTint color.NRGBA
19060 Level uint8 // Must be < 128.
19062 Translucent bool // Sunlight is scattered and becomes normal light.
19063 Transparent bool // Sunlight isn't scattered.
19076 LiquidType LiquidType
19079 Viscosity uint8 // 0-7
19085 DrawBox, ColBox, SelBox NodeBox
19087 FootstepSnd, DiggingSnd, DugSnd SoundDef
19098 *p = math.Float32frombits(read32(r))
19102 local257 := uint8(6)
19107 if local256 != local257 {
19108 chk(fmt.Errorf("const %v: %v", "uint8(6)", local256))
19111 for local258 := range (*(*(struct {
19123 //mt:const uint8(6)
19125 OverlayTiles [6]TileDef
19126 //mt:const uint8(6)
19127 SpecialTiles [6]TileDef
19134 ConnectTo []Content
19135 InsideTint color.NRGBA
19136 Level uint8 // Must be < 128.
19138 Translucent bool // Sunlight is scattered and becomes normal light.
19139 Transparent bool // Sunlight isn't scattered.
19152 LiquidType LiquidType
19155 Viscosity uint8 // 0-7
19161 DrawBox, ColBox, SelBox NodeBox
19163 FootstepSnd, DiggingSnd, DugSnd SoundDef
19174 if err := pcall(func() {
19187 //mt:const uint8(6)
19189 OverlayTiles [6]TileDef
19190 //mt:const uint8(6)
19191 SpecialTiles [6]TileDef
19198 ConnectTo []Content
19199 InsideTint color.NRGBA
19200 Level uint8 // Must be < 128.
19202 Translucent bool // Sunlight is scattered and becomes normal light.
19203 Transparent bool // Sunlight isn't scattered.
19216 LiquidType LiquidType
19219 Viscosity uint8 // 0-7
19225 DrawBox, ColBox, SelBox NodeBox
19227 FootstepSnd, DiggingSnd, DugSnd SoundDef
19237 }))(obj)).Tiles)[local258]).Deserialize(r)
19242 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19245 for local259 := range (*(*(struct {
19257 //mt:const uint8(6)
19259 OverlayTiles [6]TileDef
19260 //mt:const uint8(6)
19261 SpecialTiles [6]TileDef
19268 ConnectTo []Content
19269 InsideTint color.NRGBA
19270 Level uint8 // Must be < 128.
19272 Translucent bool // Sunlight is scattered and becomes normal light.
19273 Transparent bool // Sunlight isn't scattered.
19286 LiquidType LiquidType
19289 Viscosity uint8 // 0-7
19295 DrawBox, ColBox, SelBox NodeBox
19297 FootstepSnd, DiggingSnd, DugSnd SoundDef
19307 }))(obj)).OverlayTiles {
19308 if err := pcall(func() {
19321 //mt:const uint8(6)
19323 OverlayTiles [6]TileDef
19324 //mt:const uint8(6)
19325 SpecialTiles [6]TileDef
19332 ConnectTo []Content
19333 InsideTint color.NRGBA
19334 Level uint8 // Must be < 128.
19336 Translucent bool // Sunlight is scattered and becomes normal light.
19337 Transparent bool // Sunlight isn't scattered.
19350 LiquidType LiquidType
19353 Viscosity uint8 // 0-7
19359 DrawBox, ColBox, SelBox NodeBox
19361 FootstepSnd, DiggingSnd, DugSnd SoundDef
19371 }))(obj)).OverlayTiles)[local259]).Deserialize(r)
19376 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19381 local261 := uint8(6)
19386 if local260 != local261 {
19387 chk(fmt.Errorf("const %v: %v", "uint8(6)", local260))
19390 for local262 := range (*(*(struct {
19402 //mt:const uint8(6)
19404 OverlayTiles [6]TileDef
19405 //mt:const uint8(6)
19406 SpecialTiles [6]TileDef
19413 ConnectTo []Content
19414 InsideTint color.NRGBA
19415 Level uint8 // Must be < 128.
19417 Translucent bool // Sunlight is scattered and becomes normal light.
19418 Transparent bool // Sunlight isn't scattered.
19431 LiquidType LiquidType
19434 Viscosity uint8 // 0-7
19440 DrawBox, ColBox, SelBox NodeBox
19442 FootstepSnd, DiggingSnd, DugSnd SoundDef
19452 }))(obj)).SpecialTiles {
19453 if err := pcall(func() {
19466 //mt:const uint8(6)
19468 OverlayTiles [6]TileDef
19469 //mt:const uint8(6)
19470 SpecialTiles [6]TileDef
19477 ConnectTo []Content
19478 InsideTint color.NRGBA
19479 Level uint8 // Must be < 128.
19481 Translucent bool // Sunlight is scattered and becomes normal light.
19482 Transparent bool // Sunlight isn't scattered.
19495 LiquidType LiquidType
19498 Viscosity uint8 // 0-7
19504 DrawBox, ColBox, SelBox NodeBox
19506 FootstepSnd, DiggingSnd, DugSnd SoundDef
19516 }))(obj)).SpecialTiles)[local262]).Deserialize(r)
19521 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19525 p := &(*(*(struct {
19537 //mt:const uint8(6)
19539 OverlayTiles [6]TileDef
19540 //mt:const uint8(6)
19541 SpecialTiles [6]TileDef
19548 ConnectTo []Content
19549 InsideTint color.NRGBA
19550 Level uint8 // Must be < 128.
19552 Translucent bool // Sunlight is scattered and becomes normal light.
19553 Transparent bool // Sunlight isn't scattered.
19566 LiquidType LiquidType
19569 Viscosity uint8 // 0-7
19575 DrawBox, ColBox, SelBox NodeBox
19577 FootstepSnd, DiggingSnd, DugSnd SoundDef
19588 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19590 if err := pcall(func() {
19603 //mt:const uint8(6)
19605 OverlayTiles [6]TileDef
19606 //mt:const uint8(6)
19607 SpecialTiles [6]TileDef
19614 ConnectTo []Content
19615 InsideTint color.NRGBA
19616 Level uint8 // Must be < 128.
19618 Translucent bool // Sunlight is scattered and becomes normal light.
19619 Transparent bool // Sunlight isn't scattered.
19632 LiquidType LiquidType
19635 Viscosity uint8 // 0-7
19641 DrawBox, ColBox, SelBox NodeBox
19643 FootstepSnd, DiggingSnd, DugSnd SoundDef
19653 }))(obj)).Palette).Deserialize(r)
19658 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
19660 if err := pcall(func() {
19673 //mt:const uint8(6)
19675 OverlayTiles [6]TileDef
19676 //mt:const uint8(6)
19677 SpecialTiles [6]TileDef
19684 ConnectTo []Content
19685 InsideTint color.NRGBA
19686 Level uint8 // Must be < 128.
19688 Translucent bool // Sunlight is scattered and becomes normal light.
19689 Transparent bool // Sunlight isn't scattered.
19702 LiquidType LiquidType
19705 Viscosity uint8 // 0-7
19711 DrawBox, ColBox, SelBox NodeBox
19713 FootstepSnd, DiggingSnd, DugSnd SoundDef
19723 }))(obj)).Waving).Deserialize(r)
19728 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
19731 p := &(*(*(struct {
19743 //mt:const uint8(6)
19745 OverlayTiles [6]TileDef
19746 //mt:const uint8(6)
19747 SpecialTiles [6]TileDef
19754 ConnectTo []Content
19755 InsideTint color.NRGBA
19756 Level uint8 // Must be < 128.
19758 Translucent bool // Sunlight is scattered and becomes normal light.
19759 Transparent bool // Sunlight isn't scattered.
19772 LiquidType LiquidType
19775 Viscosity uint8 // 0-7
19781 DrawBox, ColBox, SelBox NodeBox
19783 FootstepSnd, DiggingSnd, DugSnd SoundDef
19793 }))(obj)).ConnectSides
19796 var local263 uint16
19813 //mt:const uint8(6)
19815 OverlayTiles [6]TileDef
19816 //mt:const uint8(6)
19817 SpecialTiles [6]TileDef
19824 ConnectTo []Content
19825 InsideTint color.NRGBA
19826 Level uint8 // Must be < 128.
19828 Translucent bool // Sunlight is scattered and becomes normal light.
19829 Transparent bool // Sunlight isn't scattered.
19842 LiquidType LiquidType
19845 Viscosity uint8 // 0-7
19851 DrawBox, ColBox, SelBox NodeBox
19853 FootstepSnd, DiggingSnd, DugSnd SoundDef
19863 }))(obj)).ConnectTo) = make([]Content, local263)
19864 for local264 := range (*(*(struct {
19876 //mt:const uint8(6)
19878 OverlayTiles [6]TileDef
19879 //mt:const uint8(6)
19880 SpecialTiles [6]TileDef
19887 ConnectTo []Content
19888 InsideTint color.NRGBA
19889 Level uint8 // Must be < 128.
19891 Translucent bool // Sunlight is scattered and becomes normal light.
19892 Transparent bool // Sunlight isn't scattered.
19905 LiquidType LiquidType
19908 Viscosity uint8 // 0-7
19914 DrawBox, ColBox, SelBox NodeBox
19916 FootstepSnd, DiggingSnd, DugSnd SoundDef
19926 }))(obj)).ConnectTo {
19927 if err := pcall(func() {
19940 //mt:const uint8(6)
19942 OverlayTiles [6]TileDef
19943 //mt:const uint8(6)
19944 SpecialTiles [6]TileDef
19951 ConnectTo []Content
19952 InsideTint color.NRGBA
19953 Level uint8 // Must be < 128.
19955 Translucent bool // Sunlight is scattered and becomes normal light.
19956 Transparent bool // Sunlight isn't scattered.
19969 LiquidType LiquidType
19972 Viscosity uint8 // 0-7
19978 DrawBox, ColBox, SelBox NodeBox
19980 FootstepSnd, DiggingSnd, DugSnd SoundDef
19990 }))(obj)).ConnectTo)[local264]).Deserialize(r)
19995 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
19999 p := &(*(*(struct {
20011 //mt:const uint8(6)
20013 OverlayTiles [6]TileDef
20014 //mt:const uint8(6)
20015 SpecialTiles [6]TileDef
20022 ConnectTo []Content
20023 InsideTint color.NRGBA
20024 Level uint8 // Must be < 128.
20026 Translucent bool // Sunlight is scattered and becomes normal light.
20027 Transparent bool // Sunlight isn't scattered.
20040 LiquidType LiquidType
20043 Viscosity uint8 // 0-7
20049 DrawBox, ColBox, SelBox NodeBox
20051 FootstepSnd, DiggingSnd, DugSnd SoundDef
20061 }))(obj)).InsideTint
20062 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20065 p := &(*(*(struct {
20077 //mt:const uint8(6)
20079 OverlayTiles [6]TileDef
20080 //mt:const uint8(6)
20081 SpecialTiles [6]TileDef
20088 ConnectTo []Content
20089 InsideTint color.NRGBA
20090 Level uint8 // Must be < 128.
20092 Translucent bool // Sunlight is scattered and becomes normal light.
20093 Transparent bool // Sunlight isn't scattered.
20106 LiquidType LiquidType
20109 Viscosity uint8 // 0-7
20115 DrawBox, ColBox, SelBox NodeBox
20117 FootstepSnd, DiggingSnd, DugSnd SoundDef
20131 p := &(*(*(struct {
20143 //mt:const uint8(6)
20145 OverlayTiles [6]TileDef
20146 //mt:const uint8(6)
20147 SpecialTiles [6]TileDef
20154 ConnectTo []Content
20155 InsideTint color.NRGBA
20156 Level uint8 // Must be < 128.
20158 Translucent bool // Sunlight is scattered and becomes normal light.
20159 Transparent bool // Sunlight isn't scattered.
20172 LiquidType LiquidType
20175 Viscosity uint8 // 0-7
20181 DrawBox, ColBox, SelBox NodeBox
20183 FootstepSnd, DiggingSnd, DugSnd SoundDef
20193 }))(obj)).Translucent
20194 switch n := read8(r); n {
20200 chk(fmt.Errorf("invalid bool: %d", n))
20204 p := &(*(*(struct {
20216 //mt:const uint8(6)
20218 OverlayTiles [6]TileDef
20219 //mt:const uint8(6)
20220 SpecialTiles [6]TileDef
20227 ConnectTo []Content
20228 InsideTint color.NRGBA
20229 Level uint8 // Must be < 128.
20231 Translucent bool // Sunlight is scattered and becomes normal light.
20232 Transparent bool // Sunlight isn't scattered.
20245 LiquidType LiquidType
20248 Viscosity uint8 // 0-7
20254 DrawBox, ColBox, SelBox NodeBox
20256 FootstepSnd, DiggingSnd, DugSnd SoundDef
20266 }))(obj)).Transparent
20267 switch n := read8(r); n {
20273 chk(fmt.Errorf("invalid bool: %d", n))
20277 p := &(*(*(struct {
20289 //mt:const uint8(6)
20291 OverlayTiles [6]TileDef
20292 //mt:const uint8(6)
20293 SpecialTiles [6]TileDef
20300 ConnectTo []Content
20301 InsideTint color.NRGBA
20302 Level uint8 // Must be < 128.
20304 Translucent bool // Sunlight is scattered and becomes normal light.
20305 Transparent bool // Sunlight isn't scattered.
20318 LiquidType LiquidType
20321 Viscosity uint8 // 0-7
20327 DrawBox, ColBox, SelBox NodeBox
20329 FootstepSnd, DiggingSnd, DugSnd SoundDef
20343 p := &(*(*(struct {
20355 //mt:const uint8(6)
20357 OverlayTiles [6]TileDef
20358 //mt:const uint8(6)
20359 SpecialTiles [6]TileDef
20366 ConnectTo []Content
20367 InsideTint color.NRGBA
20368 Level uint8 // Must be < 128.
20370 Translucent bool // Sunlight is scattered and becomes normal light.
20371 Transparent bool // Sunlight isn't scattered.
20384 LiquidType LiquidType
20387 Viscosity uint8 // 0-7
20393 DrawBox, ColBox, SelBox NodeBox
20395 FootstepSnd, DiggingSnd, DugSnd SoundDef
20405 }))(obj)).GndContent
20406 switch n := read8(r); n {
20412 chk(fmt.Errorf("invalid bool: %d", n))
20416 p := &(*(*(struct {
20428 //mt:const uint8(6)
20430 OverlayTiles [6]TileDef
20431 //mt:const uint8(6)
20432 SpecialTiles [6]TileDef
20439 ConnectTo []Content
20440 InsideTint color.NRGBA
20441 Level uint8 // Must be < 128.
20443 Translucent bool // Sunlight is scattered and becomes normal light.
20444 Transparent bool // Sunlight isn't scattered.
20457 LiquidType LiquidType
20460 Viscosity uint8 // 0-7
20466 DrawBox, ColBox, SelBox NodeBox
20468 FootstepSnd, DiggingSnd, DugSnd SoundDef
20479 switch n := read8(r); n {
20485 chk(fmt.Errorf("invalid bool: %d", n))
20489 p := &(*(*(struct {
20501 //mt:const uint8(6)
20503 OverlayTiles [6]TileDef
20504 //mt:const uint8(6)
20505 SpecialTiles [6]TileDef
20512 ConnectTo []Content
20513 InsideTint color.NRGBA
20514 Level uint8 // Must be < 128.
20516 Translucent bool // Sunlight is scattered and becomes normal light.
20517 Transparent bool // Sunlight isn't scattered.
20530 LiquidType LiquidType
20533 Viscosity uint8 // 0-7
20539 DrawBox, ColBox, SelBox NodeBox
20541 FootstepSnd, DiggingSnd, DugSnd SoundDef
20551 }))(obj)).Pointable
20552 switch n := read8(r); n {
20558 chk(fmt.Errorf("invalid bool: %d", n))
20562 p := &(*(*(struct {
20574 //mt:const uint8(6)
20576 OverlayTiles [6]TileDef
20577 //mt:const uint8(6)
20578 SpecialTiles [6]TileDef
20585 ConnectTo []Content
20586 InsideTint color.NRGBA
20587 Level uint8 // Must be < 128.
20589 Translucent bool // Sunlight is scattered and becomes normal light.
20590 Transparent bool // Sunlight isn't scattered.
20603 LiquidType LiquidType
20606 Viscosity uint8 // 0-7
20612 DrawBox, ColBox, SelBox NodeBox
20614 FootstepSnd, DiggingSnd, DugSnd SoundDef
20625 switch n := read8(r); n {
20631 chk(fmt.Errorf("invalid bool: %d", n))
20635 p := &(*(*(struct {
20647 //mt:const uint8(6)
20649 OverlayTiles [6]TileDef
20650 //mt:const uint8(6)
20651 SpecialTiles [6]TileDef
20658 ConnectTo []Content
20659 InsideTint color.NRGBA
20660 Level uint8 // Must be < 128.
20662 Translucent bool // Sunlight is scattered and becomes normal light.
20663 Transparent bool // Sunlight isn't scattered.
20676 LiquidType LiquidType
20679 Viscosity uint8 // 0-7
20685 DrawBox, ColBox, SelBox NodeBox
20687 FootstepSnd, DiggingSnd, DugSnd SoundDef
20697 }))(obj)).Climbable
20698 switch n := read8(r); n {
20704 chk(fmt.Errorf("invalid bool: %d", n))
20708 p := &(*(*(struct {
20720 //mt:const uint8(6)
20722 OverlayTiles [6]TileDef
20723 //mt:const uint8(6)
20724 SpecialTiles [6]TileDef
20731 ConnectTo []Content
20732 InsideTint color.NRGBA
20733 Level uint8 // Must be < 128.
20735 Translucent bool // Sunlight is scattered and becomes normal light.
20736 Transparent bool // Sunlight isn't scattered.
20749 LiquidType LiquidType
20752 Viscosity uint8 // 0-7
20758 DrawBox, ColBox, SelBox NodeBox
20760 FootstepSnd, DiggingSnd, DugSnd SoundDef
20770 }))(obj)).Replaceable
20771 switch n := read8(r); n {
20777 chk(fmt.Errorf("invalid bool: %d", n))
20781 p := &(*(*(struct {
20793 //mt:const uint8(6)
20795 OverlayTiles [6]TileDef
20796 //mt:const uint8(6)
20797 SpecialTiles [6]TileDef
20804 ConnectTo []Content
20805 InsideTint color.NRGBA
20806 Level uint8 // Must be < 128.
20808 Translucent bool // Sunlight is scattered and becomes normal light.
20809 Transparent bool // Sunlight isn't scattered.
20822 LiquidType LiquidType
20825 Viscosity uint8 // 0-7
20831 DrawBox, ColBox, SelBox NodeBox
20833 FootstepSnd, DiggingSnd, DugSnd SoundDef
20843 }))(obj)).OnRightClick
20844 switch n := read8(r); n {
20850 chk(fmt.Errorf("invalid bool: %d", n))
20854 p := &(*(*(struct {
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)).DmgPerSec
20917 *p = int32(read32(r))
20919 if err := pcall(func() {
20932 //mt:const uint8(6)
20934 OverlayTiles [6]TileDef
20935 //mt:const uint8(6)
20936 SpecialTiles [6]TileDef
20943 ConnectTo []Content
20944 InsideTint color.NRGBA
20945 Level uint8 // Must be < 128.
20947 Translucent bool // Sunlight is scattered and becomes normal light.
20948 Transparent bool // Sunlight isn't scattered.
20961 LiquidType LiquidType
20964 Viscosity uint8 // 0-7
20970 DrawBox, ColBox, SelBox NodeBox
20972 FootstepSnd, DiggingSnd, DugSnd SoundDef
20982 }))(obj)).LiquidType).Deserialize(r)
20987 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
20989 var local265 []uint8
20990 var local266 uint16
20995 (local265) = make([]uint8, local266)
20997 _, err := io.ReadFull(r, (local265)[:])
21012 //mt:const uint8(6)
21014 OverlayTiles [6]TileDef
21015 //mt:const uint8(6)
21016 SpecialTiles [6]TileDef
21023 ConnectTo []Content
21024 InsideTint color.NRGBA
21025 Level uint8 // Must be < 128.
21027 Translucent bool // Sunlight is scattered and becomes normal light.
21028 Transparent bool // Sunlight isn't scattered.
21041 LiquidType LiquidType
21044 Viscosity uint8 // 0-7
21050 DrawBox, ColBox, SelBox NodeBox
21052 FootstepSnd, DiggingSnd, DugSnd SoundDef
21062 }))(obj)).FlowingAlt) = string(local265)
21063 var local267 []uint8
21064 var local268 uint16
21069 (local267) = make([]uint8, local268)
21071 _, err := io.ReadFull(r, (local267)[:])
21086 //mt:const uint8(6)
21088 OverlayTiles [6]TileDef
21089 //mt:const uint8(6)
21090 SpecialTiles [6]TileDef
21097 ConnectTo []Content
21098 InsideTint color.NRGBA
21099 Level uint8 // Must be < 128.
21101 Translucent bool // Sunlight is scattered and becomes normal light.
21102 Transparent bool // Sunlight isn't scattered.
21115 LiquidType LiquidType
21118 Viscosity uint8 // 0-7
21124 DrawBox, ColBox, SelBox NodeBox
21126 FootstepSnd, DiggingSnd, DugSnd SoundDef
21136 }))(obj)).SrcAlt) = string(local267)
21138 p := &(*(*(struct {
21150 //mt:const uint8(6)
21152 OverlayTiles [6]TileDef
21153 //mt:const uint8(6)
21154 SpecialTiles [6]TileDef
21161 ConnectTo []Content
21162 InsideTint color.NRGBA
21163 Level uint8 // Must be < 128.
21165 Translucent bool // Sunlight is scattered and becomes normal light.
21166 Transparent bool // Sunlight isn't scattered.
21179 LiquidType LiquidType
21182 Viscosity uint8 // 0-7
21188 DrawBox, ColBox, SelBox NodeBox
21190 FootstepSnd, DiggingSnd, DugSnd SoundDef
21200 }))(obj)).Viscosity
21204 p := &(*(*(struct {
21216 //mt:const uint8(6)
21218 OverlayTiles [6]TileDef
21219 //mt:const uint8(6)
21220 SpecialTiles [6]TileDef
21227 ConnectTo []Content
21228 InsideTint color.NRGBA
21229 Level uint8 // Must be < 128.
21231 Translucent bool // Sunlight is scattered and becomes normal light.
21232 Transparent bool // Sunlight isn't scattered.
21245 LiquidType LiquidType
21248 Viscosity uint8 // 0-7
21254 DrawBox, ColBox, SelBox NodeBox
21256 FootstepSnd, DiggingSnd, DugSnd SoundDef
21266 }))(obj)).LiqRenewable
21267 switch n := read8(r); n {
21273 chk(fmt.Errorf("invalid bool: %d", n))
21277 p := &(*(*(struct {
21289 //mt:const uint8(6)
21291 OverlayTiles [6]TileDef
21292 //mt:const uint8(6)
21293 SpecialTiles [6]TileDef
21300 ConnectTo []Content
21301 InsideTint color.NRGBA
21302 Level uint8 // Must be < 128.
21304 Translucent bool // Sunlight is scattered and becomes normal light.
21305 Transparent bool // Sunlight isn't scattered.
21318 LiquidType LiquidType
21321 Viscosity uint8 // 0-7
21327 DrawBox, ColBox, SelBox NodeBox
21329 FootstepSnd, DiggingSnd, DugSnd SoundDef
21339 }))(obj)).FlowRange
21343 p := &(*(*(struct {
21355 //mt:const uint8(6)
21357 OverlayTiles [6]TileDef
21358 //mt:const uint8(6)
21359 SpecialTiles [6]TileDef
21366 ConnectTo []Content
21367 InsideTint color.NRGBA
21368 Level uint8 // Must be < 128.
21370 Translucent bool // Sunlight is scattered and becomes normal light.
21371 Transparent bool // Sunlight isn't scattered.
21384 LiquidType LiquidType
21387 Viscosity uint8 // 0-7
21393 DrawBox, ColBox, SelBox NodeBox
21395 FootstepSnd, DiggingSnd, DugSnd SoundDef
21409 p := &(*(*(struct {
21421 //mt:const uint8(6)
21423 OverlayTiles [6]TileDef
21424 //mt:const uint8(6)
21425 SpecialTiles [6]TileDef
21432 ConnectTo []Content
21433 InsideTint color.NRGBA
21434 Level uint8 // Must be < 128.
21436 Translucent bool // Sunlight is scattered and becomes normal light.
21437 Transparent bool // Sunlight isn't scattered.
21450 LiquidType LiquidType
21453 Viscosity uint8 // 0-7
21459 DrawBox, ColBox, SelBox NodeBox
21461 FootstepSnd, DiggingSnd, DugSnd SoundDef
21471 }))(obj)).Floodable
21472 switch n := read8(r); n {
21478 chk(fmt.Errorf("invalid bool: %d", n))
21481 if err := pcall(func() {
21494 //mt:const uint8(6)
21496 OverlayTiles [6]TileDef
21497 //mt:const uint8(6)
21498 SpecialTiles [6]TileDef
21505 ConnectTo []Content
21506 InsideTint color.NRGBA
21507 Level uint8 // Must be < 128.
21509 Translucent bool // Sunlight is scattered and becomes normal light.
21510 Transparent bool // Sunlight isn't scattered.
21523 LiquidType LiquidType
21526 Viscosity uint8 // 0-7
21532 DrawBox, ColBox, SelBox NodeBox
21534 FootstepSnd, DiggingSnd, DugSnd SoundDef
21544 }))(obj)).DrawBox).Deserialize(r)
21549 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21551 if err := pcall(func() {
21564 //mt:const uint8(6)
21566 OverlayTiles [6]TileDef
21567 //mt:const uint8(6)
21568 SpecialTiles [6]TileDef
21575 ConnectTo []Content
21576 InsideTint color.NRGBA
21577 Level uint8 // Must be < 128.
21579 Translucent bool // Sunlight is scattered and becomes normal light.
21580 Transparent bool // Sunlight isn't scattered.
21593 LiquidType LiquidType
21596 Viscosity uint8 // 0-7
21602 DrawBox, ColBox, SelBox NodeBox
21604 FootstepSnd, DiggingSnd, DugSnd SoundDef
21614 }))(obj)).ColBox).Deserialize(r)
21619 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21621 if err := pcall(func() {
21634 //mt:const uint8(6)
21636 OverlayTiles [6]TileDef
21637 //mt:const uint8(6)
21638 SpecialTiles [6]TileDef
21645 ConnectTo []Content
21646 InsideTint color.NRGBA
21647 Level uint8 // Must be < 128.
21649 Translucent bool // Sunlight is scattered and becomes normal light.
21650 Transparent bool // Sunlight isn't scattered.
21663 LiquidType LiquidType
21666 Viscosity uint8 // 0-7
21672 DrawBox, ColBox, SelBox NodeBox
21674 FootstepSnd, DiggingSnd, DugSnd SoundDef
21684 }))(obj)).SelBox).Deserialize(r)
21689 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21691 if err := pcall(func() {
21704 //mt:const uint8(6)
21706 OverlayTiles [6]TileDef
21707 //mt:const uint8(6)
21708 SpecialTiles [6]TileDef
21715 ConnectTo []Content
21716 InsideTint color.NRGBA
21717 Level uint8 // Must be < 128.
21719 Translucent bool // Sunlight is scattered and becomes normal light.
21720 Transparent bool // Sunlight isn't scattered.
21733 LiquidType LiquidType
21736 Viscosity uint8 // 0-7
21742 DrawBox, ColBox, SelBox NodeBox
21744 FootstepSnd, DiggingSnd, DugSnd SoundDef
21754 }))(obj)).FootstepSnd).Deserialize(r)
21759 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21761 if err := pcall(func() {
21774 //mt:const uint8(6)
21776 OverlayTiles [6]TileDef
21777 //mt:const uint8(6)
21778 SpecialTiles [6]TileDef
21785 ConnectTo []Content
21786 InsideTint color.NRGBA
21787 Level uint8 // Must be < 128.
21789 Translucent bool // Sunlight is scattered and becomes normal light.
21790 Transparent bool // Sunlight isn't scattered.
21803 LiquidType LiquidType
21806 Viscosity uint8 // 0-7
21812 DrawBox, ColBox, SelBox NodeBox
21814 FootstepSnd, DiggingSnd, DugSnd SoundDef
21824 }))(obj)).DiggingSnd).Deserialize(r)
21829 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21831 if err := pcall(func() {
21844 //mt:const uint8(6)
21846 OverlayTiles [6]TileDef
21847 //mt:const uint8(6)
21848 SpecialTiles [6]TileDef
21855 ConnectTo []Content
21856 InsideTint color.NRGBA
21857 Level uint8 // Must be < 128.
21859 Translucent bool // Sunlight is scattered and becomes normal light.
21860 Transparent bool // Sunlight isn't scattered.
21873 LiquidType LiquidType
21876 Viscosity uint8 // 0-7
21882 DrawBox, ColBox, SelBox NodeBox
21884 FootstepSnd, DiggingSnd, DugSnd SoundDef
21894 }))(obj)).DugSnd).Deserialize(r)
21899 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21902 p := &(*(*(struct {
21914 //mt:const uint8(6)
21916 OverlayTiles [6]TileDef
21917 //mt:const uint8(6)
21918 SpecialTiles [6]TileDef
21925 ConnectTo []Content
21926 InsideTint color.NRGBA
21927 Level uint8 // Must be < 128.
21929 Translucent bool // Sunlight is scattered and becomes normal light.
21930 Transparent bool // Sunlight isn't scattered.
21943 LiquidType LiquidType
21946 Viscosity uint8 // 0-7
21952 DrawBox, ColBox, SelBox NodeBox
21954 FootstepSnd, DiggingSnd, DugSnd SoundDef
21964 }))(obj)).LegacyFaceDir
21965 switch n := read8(r); n {
21971 chk(fmt.Errorf("invalid bool: %d", n))
21975 p := &(*(*(struct {
21987 //mt:const uint8(6)
21989 OverlayTiles [6]TileDef
21990 //mt:const uint8(6)
21991 SpecialTiles [6]TileDef
21998 ConnectTo []Content
21999 InsideTint color.NRGBA
22000 Level uint8 // Must be < 128.
22002 Translucent bool // Sunlight is scattered and becomes normal light.
22003 Transparent bool // Sunlight isn't scattered.
22016 LiquidType LiquidType
22019 Viscosity uint8 // 0-7
22025 DrawBox, ColBox, SelBox NodeBox
22027 FootstepSnd, DiggingSnd, DugSnd SoundDef
22037 }))(obj)).LegacyMounted
22038 switch n := read8(r); n {
22044 chk(fmt.Errorf("invalid bool: %d", n))
22047 var local269 []uint8
22048 var local270 uint16
22053 (local269) = make([]uint8, local270)
22055 _, err := io.ReadFull(r, (local269)[:])
22070 //mt:const uint8(6)
22072 OverlayTiles [6]TileDef
22073 //mt:const uint8(6)
22074 SpecialTiles [6]TileDef
22081 ConnectTo []Content
22082 InsideTint color.NRGBA
22083 Level uint8 // Must be < 128.
22085 Translucent bool // Sunlight is scattered and becomes normal light.
22086 Transparent bool // Sunlight isn't scattered.
22099 LiquidType LiquidType
22102 Viscosity uint8 // 0-7
22108 DrawBox, ColBox, SelBox NodeBox
22110 FootstepSnd, DiggingSnd, DugSnd SoundDef
22120 }))(obj)).DigPredict) = string(local269)
22122 p := &(*(*(struct {
22134 //mt:const uint8(6)
22136 OverlayTiles [6]TileDef
22137 //mt:const uint8(6)
22138 SpecialTiles [6]TileDef
22145 ConnectTo []Content
22146 InsideTint color.NRGBA
22147 Level uint8 // Must be < 128.
22149 Translucent bool // Sunlight is scattered and becomes normal light.
22150 Transparent bool // Sunlight isn't scattered.
22163 LiquidType LiquidType
22166 Viscosity uint8 // 0-7
22172 DrawBox, ColBox, SelBox NodeBox
22174 FootstepSnd, DiggingSnd, DugSnd SoundDef
22187 if err := pcall(func() {
22200 //mt:const uint8(6)
22202 OverlayTiles [6]TileDef
22203 //mt:const uint8(6)
22204 SpecialTiles [6]TileDef
22211 ConnectTo []Content
22212 InsideTint color.NRGBA
22213 Level uint8 // Must be < 128.
22215 Translucent bool // Sunlight is scattered and becomes normal light.
22216 Transparent bool // Sunlight isn't scattered.
22229 LiquidType LiquidType
22232 Viscosity uint8 // 0-7
22238 DrawBox, ColBox, SelBox NodeBox
22240 FootstepSnd, DiggingSnd, DugSnd SoundDef
22250 }))(obj)).AlphaUse).Deserialize(r)
22255 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
22258 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22263 func (obj *PointedNode) Serialize(w io.Writer) {
22264 for local271 := range (*(*(struct {
22265 Under, Above [3]int16
22268 x := ((*(*(struct {
22269 Under, Above [3]int16
22270 }))(obj)).Under)[local271]
22271 write16(w, uint16(x))
22274 for local272 := range (*(*(struct {
22275 Under, Above [3]int16
22278 x := ((*(*(struct {
22279 Under, Above [3]int16
22280 }))(obj)).Above)[local272]
22281 write16(w, uint16(x))
22286 func (obj *PointedNode) Deserialize(r io.Reader) {
22287 for local273 := range (*(*(struct {
22288 Under, Above [3]int16
22291 p := &((*(*(struct {
22292 Under, Above [3]int16
22293 }))(obj)).Under)[local273]
22294 *p = int16(read16(r))
22297 for local274 := range (*(*(struct {
22298 Under, Above [3]int16
22301 p := &((*(*(struct {
22302 Under, Above [3]int16
22303 }))(obj)).Above)[local274]
22304 *p = int16(read16(r))
22309 func (obj *PointedAO) Serialize(w io.Writer) {
22310 if err := pcall(func() {
22313 }))(obj)).ID).Serialize(w)
22318 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22322 func (obj *PointedAO) Deserialize(r io.Reader) {
22323 if err := pcall(func() {
22326 }))(obj)).ID).Deserialize(r)
22331 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22335 func (obj *CompressionModes) Serialize(w io.Writer) {
22337 x := *(*(uint16))(obj)
22338 write16(w, uint16(x))
22342 func (obj *CompressionModes) Deserialize(r io.Reader) {
22344 p := &*(*(uint16))(obj)
22349 func (obj *PlayerPos) Serialize(w io.Writer) {
22350 for local275 := range (*(*(struct {
22351 Pos100, Vel100 [3]int32
22352 Pitch100, Yaw100 int32
22355 WantedRange uint8 // in MapBlks.
22358 x := ((*(*(struct {
22359 Pos100, Vel100 [3]int32
22360 Pitch100, Yaw100 int32
22363 WantedRange uint8 // in MapBlks.
22364 }))(obj)).Pos100)[local275]
22365 write32(w, uint32(x))
22368 for local276 := range (*(*(struct {
22369 Pos100, Vel100 [3]int32
22370 Pitch100, Yaw100 int32
22373 WantedRange uint8 // in MapBlks.
22376 x := ((*(*(struct {
22377 Pos100, Vel100 [3]int32
22378 Pitch100, Yaw100 int32
22381 WantedRange uint8 // in MapBlks.
22382 }))(obj)).Vel100)[local276]
22383 write32(w, uint32(x))
22388 Pos100, Vel100 [3]int32
22389 Pitch100, Yaw100 int32
22392 WantedRange uint8 // in MapBlks.
22394 write32(w, uint32(x))
22398 Pos100, Vel100 [3]int32
22399 Pitch100, Yaw100 int32
22402 WantedRange uint8 // in MapBlks.
22404 write32(w, uint32(x))
22406 if err := pcall(func() {
22408 Pos100, Vel100 [3]int32
22409 Pitch100, Yaw100 int32
22412 WantedRange uint8 // in MapBlks.
22413 }))(obj)).Keys).Serialize(w)
22418 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22422 Pos100, Vel100 [3]int32
22423 Pitch100, Yaw100 int32
22426 WantedRange uint8 // in MapBlks.
22428 write8(w, uint8(x))
22432 Pos100, Vel100 [3]int32
22433 Pitch100, Yaw100 int32
22436 WantedRange uint8 // in MapBlks.
22437 }))(obj)).WantedRange
22438 write8(w, uint8(x))
22442 func (obj *PlayerPos) Deserialize(r io.Reader) {
22443 for local277 := range (*(*(struct {
22444 Pos100, Vel100 [3]int32
22445 Pitch100, Yaw100 int32
22448 WantedRange uint8 // in MapBlks.
22451 p := &((*(*(struct {
22452 Pos100, Vel100 [3]int32
22453 Pitch100, Yaw100 int32
22456 WantedRange uint8 // in MapBlks.
22457 }))(obj)).Pos100)[local277]
22458 *p = int32(read32(r))
22461 for local278 := range (*(*(struct {
22462 Pos100, Vel100 [3]int32
22463 Pitch100, Yaw100 int32
22466 WantedRange uint8 // in MapBlks.
22469 p := &((*(*(struct {
22470 Pos100, Vel100 [3]int32
22471 Pitch100, Yaw100 int32
22474 WantedRange uint8 // in MapBlks.
22475 }))(obj)).Vel100)[local278]
22476 *p = int32(read32(r))
22480 p := &(*(*(struct {
22481 Pos100, Vel100 [3]int32
22482 Pitch100, Yaw100 int32
22485 WantedRange uint8 // in MapBlks.
22487 *p = int32(read32(r))
22490 p := &(*(*(struct {
22491 Pos100, Vel100 [3]int32
22492 Pitch100, Yaw100 int32
22495 WantedRange uint8 // in MapBlks.
22497 *p = int32(read32(r))
22499 if err := pcall(func() {
22501 Pos100, Vel100 [3]int32
22502 Pitch100, Yaw100 int32
22505 WantedRange uint8 // in MapBlks.
22506 }))(obj)).Keys).Deserialize(r)
22511 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22514 p := &(*(*(struct {
22515 Pos100, Vel100 [3]int32
22516 Pitch100, Yaw100 int32
22519 WantedRange uint8 // in MapBlks.
22524 p := &(*(*(struct {
22525 Pos100, Vel100 [3]int32
22526 Pitch100, Yaw100 int32
22529 WantedRange uint8 // in MapBlks.
22530 }))(obj)).WantedRange
22535 func (obj *Interaction) Serialize(w io.Writer) {
22537 x := *(*(uint8))(obj)
22538 write8(w, uint8(x))
22542 func (obj *Interaction) Deserialize(r io.Reader) {
22544 p := &*(*(uint8))(obj)
22549 func (obj *SoundID) Serialize(w io.Writer) {
22551 x := *(*(int32))(obj)
22552 write32(w, uint32(x))
22556 func (obj *SoundID) Deserialize(r io.Reader) {
22558 p := &*(*(int32))(obj)
22559 *p = int32(read32(r))
22563 func (obj *Field) Serialize(w io.Writer) {
22564 if len(([]byte((*(*(struct {
22569 }))(obj)).Name))) > math.MaxUint16 {
22573 x := uint16(len(([]byte((*(*(struct {
22579 write16(w, uint16(x))
22582 _, err := w.Write(([]byte((*(*(struct {
22587 }))(obj)).Name))[:])
22590 if len(([]byte((*(*(struct {
22595 }))(obj)).Value))) > math.MaxUint32 {
22599 x := uint32(len(([]byte((*(*(struct {
22604 }))(obj)).Value))))
22605 write32(w, uint32(x))
22608 _, err := w.Write(([]byte((*(*(struct {
22613 }))(obj)).Value))[:])
22618 func (obj *Field) Deserialize(r io.Reader) {
22619 var local279 []uint8
22620 var local280 uint16
22625 (local279) = make([]uint8, local280)
22627 _, err := io.ReadFull(r, (local279)[:])
22635 }))(obj)).Name) = string(local279)
22636 var local281 []uint8
22637 var local282 uint32
22642 (local281) = make([]uint8, local282)
22644 _, err := io.ReadFull(r, (local281)[:])
22652 }))(obj)).Value) = string(local281)
22655 func (obj *AuthMethods) Serialize(w io.Writer) {
22657 x := *(*(uint32))(obj)
22658 write32(w, uint32(x))
22662 func (obj *AuthMethods) Deserialize(r io.Reader) {
22664 p := &*(*(uint32))(obj)
22669 func (obj *Pos) Serialize(w io.Writer) {
22670 if err := pcall(func() {
22671 (*(*(Vec))(obj)).Serialize(w)
22676 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22680 func (obj *Pos) Deserialize(r io.Reader) {
22681 if err := pcall(func() {
22682 (*(*(Vec))(obj)).Deserialize(r)
22687 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22691 func (obj *KickReason) Serialize(w io.Writer) {
22693 x := *(*(uint8))(obj)
22694 write8(w, uint8(x))
22698 func (obj *KickReason) Deserialize(r io.Reader) {
22700 p := &*(*(uint8))(obj)
22705 func (obj *MapBlk) Serialize(w io.Writer) {
22706 if err := pcall(func() {
22709 LitFrom LitFromBlks
22712 Param0 [4096]Content
22716 NodeMetas map[uint16]*NodeMeta
22717 }))(obj)).Flags).Serialize(w)
22722 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
22724 if err := pcall(func() {
22727 LitFrom LitFromBlks
22730 Param0 [4096]Content
22734 NodeMetas map[uint16]*NodeMeta
22735 }))(obj)).LitFrom).Serialize(w)
22740 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
22743 local283 := uint8(2) // Size of param0 in bytes.
22746 write8(w, uint8(x))
22750 local284 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22753 write8(w, uint8(x))
22757 w := zlib.NewWriter(w)
22758 for local285 := range (*(*(struct {
22760 LitFrom LitFromBlks
22763 Param0 [4096]Content
22767 NodeMetas map[uint16]*NodeMeta
22769 if err := pcall(func() {
22772 LitFrom LitFromBlks
22775 Param0 [4096]Content
22779 NodeMetas map[uint16]*NodeMeta
22780 }))(obj)).Param0)[local285]).Serialize(w)
22785 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
22789 _, err := w.Write(((*(*(struct {
22791 LitFrom LitFromBlks
22794 Param0 [4096]Content
22798 NodeMetas map[uint16]*NodeMeta
22799 }))(obj)).Param1)[:])
22803 _, err := w.Write(((*(*(struct {
22805 LitFrom LitFromBlks
22808 Param0 [4096]Content
22812 NodeMetas map[uint16]*NodeMeta
22813 }))(obj)).Param2)[:])
22821 LitFrom LitFromBlks
22824 Param0 [4096]Content
22828 NodeMetas map[uint16]*NodeMeta
22829 }))(obj)).NodeMetas
22831 w := zlib.NewWriter(w)
22836 // len(map[uint16]...) always < math.MaxUint16
22837 write16(w, uint16(len(x)))
22838 keys := make([]uint16, 0, len(x))
22839 for key := range x {
22840 keys = append(keys, key)
22842 sort.Slice(keys, func(i, j int) bool {
22843 i2pos := func(i int) [3]int16 {
22844 return Blkpos2Pos([3]int16{}, keys[i])
22846 p, q := i2pos(i), i2pos(j)
22857 for _, key := range keys {
22859 chk(serialize(w, x[key]))
22866 local286 := uint8(2) // version
22869 write8(w, uint8(x))
22874 func (obj *MapBlk) Deserialize(r io.Reader) {
22875 if err := pcall(func() {
22878 LitFrom LitFromBlks
22881 Param0 [4096]Content
22885 NodeMetas map[uint16]*NodeMeta
22886 }))(obj)).Flags).Deserialize(r)
22891 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
22893 if err := pcall(func() {
22896 LitFrom LitFromBlks
22899 Param0 [4096]Content
22903 NodeMetas map[uint16]*NodeMeta
22904 }))(obj)).LitFrom).Deserialize(r)
22909 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
22913 local288 := uint8(2) // Size of param0 in bytes.
22918 if local287 != local288 {
22919 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local287))
22924 local290 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22929 if local289 != local290 {
22930 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local289))
22934 r, err := zlib.NewReader(byteReader{r})
22936 for local291 := range (*(*(struct {
22938 LitFrom LitFromBlks
22941 Param0 [4096]Content
22945 NodeMetas map[uint16]*NodeMeta
22947 if err := pcall(func() {
22950 LitFrom LitFromBlks
22953 Param0 [4096]Content
22957 NodeMetas map[uint16]*NodeMeta
22958 }))(obj)).Param0)[local291]).Deserialize(r)
22963 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
22967 _, err := io.ReadFull(r, ((*(*(struct {
22969 LitFrom LitFromBlks
22972 Param0 [4096]Content
22976 NodeMetas map[uint16]*NodeMeta
22977 }))(obj)).Param1)[:])
22981 _, err := io.ReadFull(r, ((*(*(struct {
22983 LitFrom LitFromBlks
22986 Param0 [4096]Content
22990 NodeMetas map[uint16]*NodeMeta
22991 }))(obj)).Param2)[:])
22997 p := &(*(*(struct {
22999 LitFrom LitFromBlks
23002 Param0 [4096]Content
23006 NodeMetas map[uint16]*NodeMeta
23007 }))(obj)).NodeMetas
23009 r, err := zlib.NewReader(byteReader{r})
23011 switch ver := read8(r); ver {
23016 *p = make(map[uint16]*NodeMeta, n)
23019 nm := new(NodeMeta)
23020 chk(deserialize(r, nm))
23024 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23031 local293 := uint8(2) // version
23036 if local292 != local293 {
23037 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local292))
23042 func (obj *Node) Serialize(w io.Writer) {
23043 if err := pcall(func() {
23046 Param1, Param2 uint8
23047 }))(obj)).Param0).Serialize(w)
23052 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23057 Param1, Param2 uint8
23059 write8(w, uint8(x))
23064 Param1, Param2 uint8
23066 write8(w, uint8(x))
23070 func (obj *Node) Deserialize(r io.Reader) {
23071 if err := pcall(func() {
23074 Param1, Param2 uint8
23075 }))(obj)).Param0).Deserialize(r)
23080 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23083 p := &(*(*(struct {
23085 Param1, Param2 uint8
23090 p := &(*(*(struct {
23092 Param1, Param2 uint8
23098 func (obj *CSMRestrictionFlags) Serialize(w io.Writer) {
23100 x := *(*(uint64))(obj)
23101 write64(w, uint64(x))
23105 func (obj *CSMRestrictionFlags) Deserialize(r io.Reader) {
23107 p := &*(*(uint64))(obj)
23112 func (obj *Vec) Serialize(w io.Writer) {
23113 for local294 := range *(*([3]float32))(obj) {
23115 x := (*(*([3]float32))(obj))[local294]
23116 write32(w, math.Float32bits(x))
23121 func (obj *Vec) Deserialize(r io.Reader) {
23122 for local295 := range *(*([3]float32))(obj) {
23124 p := &(*(*([3]float32))(obj))[local295]
23125 *p = math.Float32frombits(read32(r))
23130 func (obj *ChatMsgType) Serialize(w io.Writer) {
23132 x := *(*(uint8))(obj)
23133 write8(w, uint8(x))
23137 func (obj *ChatMsgType) Deserialize(r io.Reader) {
23139 p := &*(*(uint8))(obj)
23144 func (obj *AOID) Serialize(w io.Writer) {
23146 x := *(*(uint16))(obj)
23147 write16(w, uint16(x))
23151 func (obj *AOID) Deserialize(r io.Reader) {
23153 p := &*(*(uint16))(obj)
23158 func (obj *AOAdd) Serialize(w io.Writer) {
23159 if err := pcall(func() {
23162 //mt:const genericCAO
23164 InitData AOInitData
23165 }))(obj)).ID).Serialize(w)
23170 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23173 local296 := genericCAO
23174 if err := pcall(func() {
23175 (local296).Serialize(w)
23180 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23185 w := new(bytes.Buffer)
23186 if err := pcall(func() {
23189 //mt:const genericCAO
23191 InitData AOInitData
23192 }))(obj)).InitData).Serialize(w)
23197 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23202 if len((buf.Bytes())) > math.MaxUint32 {
23206 x := uint32(len((buf.Bytes())))
23207 write32(w, uint32(x))
23210 _, err := w.Write((buf.Bytes())[:])
23217 func (obj *AOAdd) Deserialize(r io.Reader) {
23218 if err := pcall(func() {
23221 //mt:const genericCAO
23223 InitData AOInitData
23224 }))(obj)).ID).Deserialize(r)
23229 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23232 var local297 aoType
23233 local298 := genericCAO
23234 if err := pcall(func() {
23235 (local297).Deserialize(r)
23240 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23242 if local297 != local298 {
23243 chk(fmt.Errorf("const %v: %v", "genericCAO", local297))
23252 r := &io.LimitedReader{R: r, N: int64(n)}
23253 if err := pcall(func() {
23256 //mt:const genericCAO
23258 InitData AOInitData
23259 }))(obj)).InitData).Deserialize(r)
23264 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23267 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23272 func (obj *IDAOMsg) Serialize(w io.Writer) {
23273 if err := pcall(func() {
23278 }))(obj)).ID).Serialize(w)
23283 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23287 w := new(bytes.Buffer)
23299 if len((buf.Bytes())) > math.MaxUint16 {
23303 x := uint16(len((buf.Bytes())))
23304 write16(w, uint16(x))
23307 _, err := w.Write((buf.Bytes())[:])
23314 func (obj *IDAOMsg) Deserialize(r io.Reader) {
23315 if err := pcall(func() {
23320 }))(obj)).ID).Deserialize(r)
23325 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23333 r := &io.LimitedReader{R: r, N: int64(n)}
23335 p := &(*(*(struct {
23342 *p, err = readAOMsg(r)
23347 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23352 func (obj *ItemDef) Serialize(w io.Writer) {
23355 w := new(bytes.Buffer)
23357 local299 := uint8(6)
23360 write8(w, uint8(x))
23363 if err := pcall(func() {
23369 InvImg, WieldImg Texture
23370 WieldScale [3]float32
23375 CanPointLiquids bool
23381 PlacePredict string
23383 PlaceSnd, PlaceFailSnd SoundDef
23387 // Set index in Palette with "palette_index" item meta field,
23388 // this overrides Color.
23392 // Texture overlays.
23393 InvOverlay, WieldOverlay Texture
23396 }))(obj)).Type).Serialize(w)
23401 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
23403 if len(([]byte((*(*(struct {
23408 InvImg, WieldImg Texture
23409 WieldScale [3]float32
23414 CanPointLiquids bool
23420 PlacePredict string
23422 PlaceSnd, PlaceFailSnd SoundDef
23426 // Set index in Palette with "palette_index" item meta field,
23427 // this overrides Color.
23431 // Texture overlays.
23432 InvOverlay, WieldOverlay Texture
23435 }))(obj)).Name))) > math.MaxUint16 {
23439 x := uint16(len(([]byte((*(*(struct {
23444 InvImg, WieldImg Texture
23445 WieldScale [3]float32
23450 CanPointLiquids bool
23456 PlacePredict string
23458 PlaceSnd, PlaceFailSnd SoundDef
23462 // Set index in Palette with "palette_index" item meta field,
23463 // this overrides Color.
23467 // Texture overlays.
23468 InvOverlay, WieldOverlay Texture
23472 write16(w, uint16(x))
23475 _, err := w.Write(([]byte((*(*(struct {
23480 InvImg, WieldImg Texture
23481 WieldScale [3]float32
23486 CanPointLiquids bool
23492 PlacePredict string
23494 PlaceSnd, PlaceFailSnd SoundDef
23498 // Set index in Palette with "palette_index" item meta field,
23499 // this overrides Color.
23503 // Texture overlays.
23504 InvOverlay, WieldOverlay Texture
23507 }))(obj)).Name))[:])
23510 if len(([]byte((*(*(struct {
23515 InvImg, WieldImg Texture
23516 WieldScale [3]float32
23521 CanPointLiquids bool
23527 PlacePredict string
23529 PlaceSnd, PlaceFailSnd SoundDef
23533 // Set index in Palette with "palette_index" item meta field,
23534 // this overrides Color.
23538 // Texture overlays.
23539 InvOverlay, WieldOverlay Texture
23542 }))(obj)).Desc))) > math.MaxUint16 {
23546 x := uint16(len(([]byte((*(*(struct {
23551 InvImg, WieldImg Texture
23552 WieldScale [3]float32
23557 CanPointLiquids bool
23563 PlacePredict string
23565 PlaceSnd, PlaceFailSnd SoundDef
23569 // Set index in Palette with "palette_index" item meta field,
23570 // this overrides Color.
23574 // Texture overlays.
23575 InvOverlay, WieldOverlay Texture
23579 write16(w, uint16(x))
23582 _, err := w.Write(([]byte((*(*(struct {
23587 InvImg, WieldImg Texture
23588 WieldScale [3]float32
23593 CanPointLiquids bool
23599 PlacePredict string
23601 PlaceSnd, PlaceFailSnd SoundDef
23605 // Set index in Palette with "palette_index" item meta field,
23606 // this overrides Color.
23610 // Texture overlays.
23611 InvOverlay, WieldOverlay Texture
23614 }))(obj)).Desc))[:])
23617 if err := pcall(func() {
23623 InvImg, WieldImg Texture
23624 WieldScale [3]float32
23629 CanPointLiquids bool
23635 PlacePredict string
23637 PlaceSnd, PlaceFailSnd SoundDef
23641 // Set index in Palette with "palette_index" item meta field,
23642 // this overrides Color.
23646 // Texture overlays.
23647 InvOverlay, WieldOverlay Texture
23650 }))(obj)).InvImg).Serialize(w)
23655 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23657 if err := pcall(func() {
23663 InvImg, WieldImg Texture
23664 WieldScale [3]float32
23669 CanPointLiquids bool
23675 PlacePredict string
23677 PlaceSnd, PlaceFailSnd SoundDef
23681 // Set index in Palette with "palette_index" item meta field,
23682 // this overrides Color.
23686 // Texture overlays.
23687 InvOverlay, WieldOverlay Texture
23690 }))(obj)).WieldImg).Serialize(w)
23695 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23697 for local300 := range (*(*(struct {
23702 InvImg, WieldImg Texture
23703 WieldScale [3]float32
23708 CanPointLiquids bool
23714 PlacePredict string
23716 PlaceSnd, PlaceFailSnd SoundDef
23720 // Set index in Palette with "palette_index" item meta field,
23721 // this overrides Color.
23725 // Texture overlays.
23726 InvOverlay, WieldOverlay Texture
23729 }))(obj)).WieldScale {
23731 x := ((*(*(struct {
23736 InvImg, WieldImg Texture
23737 WieldScale [3]float32
23742 CanPointLiquids bool
23748 PlacePredict string
23750 PlaceSnd, PlaceFailSnd SoundDef
23754 // Set index in Palette with "palette_index" item meta field,
23755 // this overrides Color.
23759 // Texture overlays.
23760 InvOverlay, WieldOverlay Texture
23763 }))(obj)).WieldScale)[local300]
23764 write32(w, math.Float32bits(x))
23773 InvImg, WieldImg Texture
23774 WieldScale [3]float32
23779 CanPointLiquids bool
23785 PlacePredict string
23787 PlaceSnd, PlaceFailSnd SoundDef
23791 // Set index in Palette with "palette_index" item meta field,
23792 // this overrides Color.
23796 // Texture overlays.
23797 InvOverlay, WieldOverlay Texture
23801 write16(w, uint16(x))
23809 InvImg, WieldImg Texture
23810 WieldScale [3]float32
23815 CanPointLiquids bool
23821 PlacePredict string
23823 PlaceSnd, PlaceFailSnd SoundDef
23827 // Set index in Palette with "palette_index" item meta field,
23828 // this overrides Color.
23832 // Texture overlays.
23833 InvOverlay, WieldOverlay Texture
23849 InvImg, WieldImg Texture
23850 WieldScale [3]float32
23855 CanPointLiquids bool
23861 PlacePredict string
23863 PlaceSnd, PlaceFailSnd SoundDef
23867 // Set index in Palette with "palette_index" item meta field,
23868 // this overrides Color.
23872 // Texture overlays.
23873 InvOverlay, WieldOverlay Texture
23876 }))(obj)).CanPointLiquids
23883 if err := pcall(func() {
23889 InvImg, WieldImg Texture
23890 WieldScale [3]float32
23895 CanPointLiquids bool
23901 PlacePredict string
23903 PlaceSnd, PlaceFailSnd SoundDef
23907 // Set index in Palette with "palette_index" item meta field,
23908 // this overrides Color.
23912 // Texture overlays.
23913 InvOverlay, WieldOverlay Texture
23916 }))(obj)).ToolCaps).Serialize(w)
23921 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
23923 if len(((*(*(struct {
23928 InvImg, WieldImg Texture
23929 WieldScale [3]float32
23934 CanPointLiquids bool
23940 PlacePredict string
23942 PlaceSnd, PlaceFailSnd SoundDef
23946 // Set index in Palette with "palette_index" item meta field,
23947 // this overrides Color.
23951 // Texture overlays.
23952 InvOverlay, WieldOverlay Texture
23955 }))(obj)).Groups)) > math.MaxUint16 {
23959 x := uint16(len(((*(*(struct {
23964 InvImg, WieldImg Texture
23965 WieldScale [3]float32
23970 CanPointLiquids bool
23976 PlacePredict string
23978 PlaceSnd, PlaceFailSnd SoundDef
23982 // Set index in Palette with "palette_index" item meta field,
23983 // this overrides Color.
23987 // Texture overlays.
23988 InvOverlay, WieldOverlay Texture
23991 }))(obj)).Groups)))
23992 write16(w, uint16(x))
23994 for local301 := range (*(*(struct {
23999 InvImg, WieldImg Texture
24000 WieldScale [3]float32
24005 CanPointLiquids bool
24011 PlacePredict string
24013 PlaceSnd, PlaceFailSnd SoundDef
24017 // Set index in Palette with "palette_index" item meta field,
24018 // this overrides Color.
24022 // Texture overlays.
24023 InvOverlay, WieldOverlay Texture
24027 if err := pcall(func() {
24033 InvImg, WieldImg Texture
24034 WieldScale [3]float32
24039 CanPointLiquids bool
24045 PlacePredict string
24047 PlaceSnd, PlaceFailSnd SoundDef
24051 // Set index in Palette with "palette_index" item meta field,
24052 // this overrides Color.
24056 // Texture overlays.
24057 InvOverlay, WieldOverlay Texture
24060 }))(obj)).Groups)[local301]).Serialize(w)
24065 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
24068 if len(([]byte((*(*(struct {
24073 InvImg, WieldImg Texture
24074 WieldScale [3]float32
24079 CanPointLiquids bool
24085 PlacePredict string
24087 PlaceSnd, PlaceFailSnd SoundDef
24091 // Set index in Palette with "palette_index" item meta field,
24092 // this overrides Color.
24096 // Texture overlays.
24097 InvOverlay, WieldOverlay Texture
24100 }))(obj)).PlacePredict))) > math.MaxUint16 {
24104 x := uint16(len(([]byte((*(*(struct {
24109 InvImg, WieldImg Texture
24110 WieldScale [3]float32
24115 CanPointLiquids bool
24121 PlacePredict string
24123 PlaceSnd, PlaceFailSnd SoundDef
24127 // Set index in Palette with "palette_index" item meta field,
24128 // this overrides Color.
24132 // Texture overlays.
24133 InvOverlay, WieldOverlay Texture
24136 }))(obj)).PlacePredict))))
24137 write16(w, uint16(x))
24140 _, err := w.Write(([]byte((*(*(struct {
24145 InvImg, WieldImg Texture
24146 WieldScale [3]float32
24151 CanPointLiquids bool
24157 PlacePredict string
24159 PlaceSnd, PlaceFailSnd SoundDef
24163 // Set index in Palette with "palette_index" item meta field,
24164 // this overrides Color.
24168 // Texture overlays.
24169 InvOverlay, WieldOverlay Texture
24172 }))(obj)).PlacePredict))[:])
24175 if err := pcall(func() {
24181 InvImg, WieldImg Texture
24182 WieldScale [3]float32
24187 CanPointLiquids bool
24193 PlacePredict string
24195 PlaceSnd, PlaceFailSnd SoundDef
24199 // Set index in Palette with "palette_index" item meta field,
24200 // this overrides Color.
24204 // Texture overlays.
24205 InvOverlay, WieldOverlay Texture
24208 }))(obj)).PlaceSnd).Serialize(w)
24213 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24215 if err := pcall(func() {
24221 InvImg, WieldImg Texture
24222 WieldScale [3]float32
24227 CanPointLiquids bool
24233 PlacePredict string
24235 PlaceSnd, PlaceFailSnd SoundDef
24239 // Set index in Palette with "palette_index" item meta field,
24240 // this overrides Color.
24244 // Texture overlays.
24245 InvOverlay, WieldOverlay Texture
24248 }))(obj)).PlaceFailSnd).Serialize(w)
24253 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24261 InvImg, WieldImg Texture
24262 WieldScale [3]float32
24267 CanPointLiquids bool
24273 PlacePredict string
24275 PlaceSnd, PlaceFailSnd SoundDef
24279 // Set index in Palette with "palette_index" item meta field,
24280 // this overrides Color.
24284 // Texture overlays.
24285 InvOverlay, WieldOverlay Texture
24288 }))(obj)).PointRange
24289 write32(w, math.Float32bits(x))
24291 if err := pcall(func() {
24297 InvImg, WieldImg Texture
24298 WieldScale [3]float32
24303 CanPointLiquids bool
24309 PlacePredict string
24311 PlaceSnd, PlaceFailSnd SoundDef
24315 // Set index in Palette with "palette_index" item meta field,
24316 // this overrides Color.
24320 // Texture overlays.
24321 InvOverlay, WieldOverlay Texture
24324 }))(obj)).Palette).Serialize(w)
24329 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24337 InvImg, WieldImg Texture
24338 WieldScale [3]float32
24343 CanPointLiquids bool
24349 PlacePredict string
24351 PlaceSnd, PlaceFailSnd SoundDef
24355 // Set index in Palette with "palette_index" item meta field,
24356 // this overrides Color.
24360 // Texture overlays.
24361 InvOverlay, WieldOverlay Texture
24365 w.Write([]byte{x.A, x.R, x.G, x.B})
24367 if err := pcall(func() {
24373 InvImg, WieldImg Texture
24374 WieldScale [3]float32
24379 CanPointLiquids bool
24385 PlacePredict string
24387 PlaceSnd, PlaceFailSnd SoundDef
24391 // Set index in Palette with "palette_index" item meta field,
24392 // this overrides Color.
24396 // Texture overlays.
24397 InvOverlay, WieldOverlay Texture
24400 }))(obj)).InvOverlay).Serialize(w)
24405 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24407 if err := pcall(func() {
24413 InvImg, WieldImg Texture
24414 WieldScale [3]float32
24419 CanPointLiquids bool
24425 PlacePredict string
24427 PlaceSnd, PlaceFailSnd SoundDef
24431 // Set index in Palette with "palette_index" item meta field,
24432 // this overrides Color.
24436 // Texture overlays.
24437 InvOverlay, WieldOverlay Texture
24440 }))(obj)).WieldOverlay).Serialize(w)
24445 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24447 if len(([]byte((*(*(struct {
24452 InvImg, WieldImg Texture
24453 WieldScale [3]float32
24458 CanPointLiquids bool
24464 PlacePredict string
24466 PlaceSnd, PlaceFailSnd SoundDef
24470 // Set index in Palette with "palette_index" item meta field,
24471 // this overrides Color.
24475 // Texture overlays.
24476 InvOverlay, WieldOverlay Texture
24479 }))(obj)).ShortDesc))) > math.MaxUint16 {
24483 x := uint16(len(([]byte((*(*(struct {
24488 InvImg, WieldImg Texture
24489 WieldScale [3]float32
24494 CanPointLiquids bool
24500 PlacePredict string
24502 PlaceSnd, PlaceFailSnd SoundDef
24506 // Set index in Palette with "palette_index" item meta field,
24507 // this overrides Color.
24511 // Texture overlays.
24512 InvOverlay, WieldOverlay Texture
24515 }))(obj)).ShortDesc))))
24516 write16(w, uint16(x))
24519 _, err := w.Write(([]byte((*(*(struct {
24524 InvImg, WieldImg Texture
24525 WieldScale [3]float32
24530 CanPointLiquids bool
24536 PlacePredict string
24538 PlaceSnd, PlaceFailSnd SoundDef
24542 // Set index in Palette with "palette_index" item meta field,
24543 // this overrides Color.
24547 // Texture overlays.
24548 InvOverlay, WieldOverlay Texture
24551 }))(obj)).ShortDesc))[:])
24557 if len((buf.Bytes())) > math.MaxUint16 {
24561 x := uint16(len((buf.Bytes())))
24562 write16(w, uint16(x))
24565 _, err := w.Write((buf.Bytes())[:])
24572 func (obj *ItemDef) Deserialize(r io.Reader) {
24579 r := &io.LimitedReader{R: r, N: int64(n)}
24582 local303 := uint8(6)
24587 if local302 != local303 {
24588 chk(fmt.Errorf("const %v: %v", "uint8(6)", local302))
24591 if err := pcall(func() {
24597 InvImg, WieldImg Texture
24598 WieldScale [3]float32
24603 CanPointLiquids bool
24609 PlacePredict string
24611 PlaceSnd, PlaceFailSnd SoundDef
24615 // Set index in Palette with "palette_index" item meta field,
24616 // this overrides Color.
24620 // Texture overlays.
24621 InvOverlay, WieldOverlay Texture
24624 }))(obj)).Type).Deserialize(r)
24629 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
24631 var local304 []uint8
24632 var local305 uint16
24637 (local304) = make([]uint8, local305)
24639 _, err := io.ReadFull(r, (local304)[:])
24647 InvImg, WieldImg Texture
24648 WieldScale [3]float32
24653 CanPointLiquids bool
24659 PlacePredict string
24661 PlaceSnd, PlaceFailSnd SoundDef
24665 // Set index in Palette with "palette_index" item meta field,
24666 // this overrides Color.
24670 // Texture overlays.
24671 InvOverlay, WieldOverlay Texture
24674 }))(obj)).Name) = string(local304)
24675 var local306 []uint8
24676 var local307 uint16
24681 (local306) = make([]uint8, local307)
24683 _, err := io.ReadFull(r, (local306)[:])
24691 InvImg, WieldImg Texture
24692 WieldScale [3]float32
24697 CanPointLiquids bool
24703 PlacePredict string
24705 PlaceSnd, PlaceFailSnd SoundDef
24709 // Set index in Palette with "palette_index" item meta field,
24710 // this overrides Color.
24714 // Texture overlays.
24715 InvOverlay, WieldOverlay Texture
24718 }))(obj)).Desc) = string(local306)
24719 if err := pcall(func() {
24725 InvImg, WieldImg Texture
24726 WieldScale [3]float32
24731 CanPointLiquids bool
24737 PlacePredict string
24739 PlaceSnd, PlaceFailSnd SoundDef
24743 // Set index in Palette with "palette_index" item meta field,
24744 // this overrides Color.
24748 // Texture overlays.
24749 InvOverlay, WieldOverlay Texture
24752 }))(obj)).InvImg).Deserialize(r)
24757 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24759 if err := pcall(func() {
24765 InvImg, WieldImg Texture
24766 WieldScale [3]float32
24771 CanPointLiquids bool
24777 PlacePredict string
24779 PlaceSnd, PlaceFailSnd SoundDef
24783 // Set index in Palette with "palette_index" item meta field,
24784 // this overrides Color.
24788 // Texture overlays.
24789 InvOverlay, WieldOverlay Texture
24792 }))(obj)).WieldImg).Deserialize(r)
24797 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24799 for local308 := range (*(*(struct {
24804 InvImg, WieldImg Texture
24805 WieldScale [3]float32
24810 CanPointLiquids bool
24816 PlacePredict string
24818 PlaceSnd, PlaceFailSnd SoundDef
24822 // Set index in Palette with "palette_index" item meta field,
24823 // this overrides Color.
24827 // Texture overlays.
24828 InvOverlay, WieldOverlay Texture
24831 }))(obj)).WieldScale {
24833 p := &((*(*(struct {
24838 InvImg, WieldImg Texture
24839 WieldScale [3]float32
24844 CanPointLiquids bool
24850 PlacePredict string
24852 PlaceSnd, PlaceFailSnd SoundDef
24856 // Set index in Palette with "palette_index" item meta field,
24857 // this overrides Color.
24861 // Texture overlays.
24862 InvOverlay, WieldOverlay Texture
24865 }))(obj)).WieldScale)[local308]
24866 *p = math.Float32frombits(read32(r))
24870 p := &(*(*(struct {
24875 InvImg, WieldImg Texture
24876 WieldScale [3]float32
24881 CanPointLiquids bool
24887 PlacePredict string
24889 PlaceSnd, PlaceFailSnd SoundDef
24893 // Set index in Palette with "palette_index" item meta field,
24894 // this overrides Color.
24898 // Texture overlays.
24899 InvOverlay, WieldOverlay Texture
24906 p := &(*(*(struct {
24911 InvImg, WieldImg Texture
24912 WieldScale [3]float32
24917 CanPointLiquids bool
24923 PlacePredict string
24925 PlaceSnd, PlaceFailSnd SoundDef
24929 // Set index in Palette with "palette_index" item meta field,
24930 // this overrides Color.
24934 // Texture overlays.
24935 InvOverlay, WieldOverlay Texture
24939 switch n := read8(r); n {
24945 chk(fmt.Errorf("invalid bool: %d", n))
24949 p := &(*(*(struct {
24954 InvImg, WieldImg Texture
24955 WieldScale [3]float32
24960 CanPointLiquids bool
24966 PlacePredict string
24968 PlaceSnd, PlaceFailSnd SoundDef
24972 // Set index in Palette with "palette_index" item meta field,
24973 // this overrides Color.
24977 // Texture overlays.
24978 InvOverlay, WieldOverlay Texture
24981 }))(obj)).CanPointLiquids
24982 switch n := read8(r); n {
24988 chk(fmt.Errorf("invalid bool: %d", n))
24991 if err := pcall(func() {
24997 InvImg, WieldImg Texture
24998 WieldScale [3]float32
25003 CanPointLiquids bool
25009 PlacePredict string
25011 PlaceSnd, PlaceFailSnd SoundDef
25015 // Set index in Palette with "palette_index" item meta field,
25016 // this overrides Color.
25020 // Texture overlays.
25021 InvOverlay, WieldOverlay Texture
25024 }))(obj)).ToolCaps).Deserialize(r)
25029 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
25031 var local309 uint16
25041 InvImg, WieldImg Texture
25042 WieldScale [3]float32
25047 CanPointLiquids bool
25053 PlacePredict string
25055 PlaceSnd, PlaceFailSnd SoundDef
25059 // Set index in Palette with "palette_index" item meta field,
25060 // this overrides Color.
25064 // Texture overlays.
25065 InvOverlay, WieldOverlay Texture
25068 }))(obj)).Groups) = make([]Group, local309)
25069 for local310 := range (*(*(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
25102 if err := pcall(func() {
25108 InvImg, WieldImg Texture
25109 WieldScale [3]float32
25114 CanPointLiquids bool
25120 PlacePredict string
25122 PlaceSnd, PlaceFailSnd SoundDef
25126 // Set index in Palette with "palette_index" item meta field,
25127 // this overrides Color.
25131 // Texture overlays.
25132 InvOverlay, WieldOverlay Texture
25135 }))(obj)).Groups)[local310]).Deserialize(r)
25140 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
25143 var local311 []uint8
25144 var local312 uint16
25149 (local311) = make([]uint8, local312)
25151 _, err := io.ReadFull(r, (local311)[:])
25159 InvImg, WieldImg Texture
25160 WieldScale [3]float32
25165 CanPointLiquids bool
25171 PlacePredict string
25173 PlaceSnd, PlaceFailSnd SoundDef
25177 // Set index in Palette with "palette_index" item meta field,
25178 // this overrides Color.
25182 // Texture overlays.
25183 InvOverlay, WieldOverlay Texture
25186 }))(obj)).PlacePredict) = string(local311)
25187 if err := pcall(func() {
25193 InvImg, WieldImg Texture
25194 WieldScale [3]float32
25199 CanPointLiquids bool
25205 PlacePredict string
25207 PlaceSnd, PlaceFailSnd SoundDef
25211 // Set index in Palette with "palette_index" item meta field,
25212 // this overrides Color.
25216 // Texture overlays.
25217 InvOverlay, WieldOverlay Texture
25220 }))(obj)).PlaceSnd).Deserialize(r)
25225 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25227 if err := pcall(func() {
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
25260 }))(obj)).PlaceFailSnd).Deserialize(r)
25265 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25268 p := &(*(*(struct {
25273 InvImg, WieldImg Texture
25274 WieldScale [3]float32
25279 CanPointLiquids bool
25285 PlacePredict string
25287 PlaceSnd, PlaceFailSnd SoundDef
25291 // Set index in Palette with "palette_index" item meta field,
25292 // this overrides Color.
25296 // Texture overlays.
25297 InvOverlay, WieldOverlay Texture
25300 }))(obj)).PointRange
25301 *p = math.Float32frombits(read32(r))
25303 if err := pcall(func() {
25309 InvImg, WieldImg Texture
25310 WieldScale [3]float32
25315 CanPointLiquids bool
25321 PlacePredict string
25323 PlaceSnd, PlaceFailSnd SoundDef
25327 // Set index in Palette with "palette_index" item meta field,
25328 // this overrides Color.
25332 // Texture overlays.
25333 InvOverlay, WieldOverlay Texture
25336 }))(obj)).Palette).Deserialize(r)
25341 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25344 p := &(*(*(struct {
25349 InvImg, WieldImg Texture
25350 WieldScale [3]float32
25355 CanPointLiquids bool
25361 PlacePredict string
25363 PlaceSnd, PlaceFailSnd SoundDef
25367 // Set index in Palette with "palette_index" item meta field,
25368 // this overrides Color.
25372 // Texture overlays.
25373 InvOverlay, WieldOverlay Texture
25377 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25379 if err := pcall(func() {
25385 InvImg, WieldImg Texture
25386 WieldScale [3]float32
25391 CanPointLiquids bool
25397 PlacePredict string
25399 PlaceSnd, PlaceFailSnd SoundDef
25403 // Set index in Palette with "palette_index" item meta field,
25404 // this overrides Color.
25408 // Texture overlays.
25409 InvOverlay, WieldOverlay Texture
25412 }))(obj)).InvOverlay).Deserialize(r)
25417 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25419 if err := pcall(func() {
25425 InvImg, WieldImg Texture
25426 WieldScale [3]float32
25431 CanPointLiquids bool
25437 PlacePredict string
25439 PlaceSnd, PlaceFailSnd SoundDef
25443 // Set index in Palette with "palette_index" item meta field,
25444 // this overrides Color.
25448 // Texture overlays.
25449 InvOverlay, WieldOverlay Texture
25452 }))(obj)).WieldOverlay).Deserialize(r)
25457 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25459 var local313 []uint8
25460 var local314 uint16
25465 (local313) = make([]uint8, local314)
25467 _, err := io.ReadFull(r, (local313)[:])
25475 InvImg, WieldImg Texture
25476 WieldScale [3]float32
25481 CanPointLiquids bool
25487 PlacePredict string
25489 PlaceSnd, PlaceFailSnd SoundDef
25493 // Set index in Palette with "palette_index" item meta field,
25494 // this overrides Color.
25498 // Texture overlays.
25499 InvOverlay, WieldOverlay Texture
25502 }))(obj)).ShortDesc) = string(local313)
25504 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25509 func (obj *SoundSrcType) Serialize(w io.Writer) {
25511 x := *(*(uint8))(obj)
25512 write8(w, uint8(x))
25516 func (obj *SoundSrcType) Deserialize(r io.Reader) {
25518 p := &*(*(uint8))(obj)
25523 func (obj *TileAnim) Serialize(w io.Writer) {
25524 if err := pcall(func() {
25528 //mt:if %s.Type == SpriteSheetAnim
25529 AspectRatio [2]uint8
25531 //mt:if %s.Type == VerticalFrameAnim
25534 //mt:if %s.Type != NoAnim
25535 Duration float32 // in seconds
25537 }))(obj)).Type).Serialize(w)
25542 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25547 //mt:if %s.Type == SpriteSheetAnim
25548 AspectRatio [2]uint8
25550 //mt:if %s.Type == VerticalFrameAnim
25553 //mt:if %s.Type != NoAnim
25554 Duration float32 // in seconds
25556 }))(obj)).Type < maxAnim) {
25557 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25562 //mt:if %s.Type == SpriteSheetAnim
25563 AspectRatio [2]uint8
25565 //mt:if %s.Type == VerticalFrameAnim
25568 //mt:if %s.Type != NoAnim
25569 Duration float32 // in seconds
25571 }))(obj)).Type == SpriteSheetAnim {
25573 _, err := w.Write(((*(*(struct {
25576 //mt:if %s.Type == SpriteSheetAnim
25577 AspectRatio [2]uint8
25579 //mt:if %s.Type == VerticalFrameAnim
25582 //mt:if %s.Type != NoAnim
25583 Duration float32 // in seconds
25585 }))(obj)).AspectRatio)[:])
25592 //mt:if %s.Type == SpriteSheetAnim
25593 AspectRatio [2]uint8
25595 //mt:if %s.Type == VerticalFrameAnim
25598 //mt:if %s.Type != NoAnim
25599 Duration float32 // in seconds
25601 }))(obj)).Type == VerticalFrameAnim {
25602 for local315 := range (*(*(struct {
25605 //mt:if %s.Type == SpriteSheetAnim
25606 AspectRatio [2]uint8
25608 //mt:if %s.Type == VerticalFrameAnim
25611 //mt:if %s.Type != NoAnim
25612 Duration float32 // in seconds
25614 }))(obj)).NFrames {
25616 x := ((*(*(struct {
25619 //mt:if %s.Type == SpriteSheetAnim
25620 AspectRatio [2]uint8
25622 //mt:if %s.Type == VerticalFrameAnim
25625 //mt:if %s.Type != NoAnim
25626 Duration float32 // in seconds
25628 }))(obj)).NFrames)[local315]
25629 write16(w, uint16(x))
25636 //mt:if %s.Type == SpriteSheetAnim
25637 AspectRatio [2]uint8
25639 //mt:if %s.Type == VerticalFrameAnim
25642 //mt:if %s.Type != NoAnim
25643 Duration float32 // in seconds
25645 }))(obj)).Type != NoAnim {
25650 //mt:if %s.Type == SpriteSheetAnim
25651 AspectRatio [2]uint8
25653 //mt:if %s.Type == VerticalFrameAnim
25656 //mt:if %s.Type != NoAnim
25657 Duration float32 // in seconds
25660 write32(w, math.Float32bits(x))
25665 func (obj *TileAnim) Deserialize(r io.Reader) {
25666 if err := pcall(func() {
25670 //mt:if %s.Type == SpriteSheetAnim
25671 AspectRatio [2]uint8
25673 //mt:if %s.Type == VerticalFrameAnim
25676 //mt:if %s.Type != NoAnim
25677 Duration float32 // in seconds
25679 }))(obj)).Type).Deserialize(r)
25684 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25689 //mt:if %s.Type == SpriteSheetAnim
25690 AspectRatio [2]uint8
25692 //mt:if %s.Type == VerticalFrameAnim
25695 //mt:if %s.Type != NoAnim
25696 Duration float32 // in seconds
25698 }))(obj)).Type < maxAnim) {
25699 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25704 //mt:if %s.Type == SpriteSheetAnim
25705 AspectRatio [2]uint8
25707 //mt:if %s.Type == VerticalFrameAnim
25710 //mt:if %s.Type != NoAnim
25711 Duration float32 // in seconds
25713 }))(obj)).Type == SpriteSheetAnim {
25715 _, err := io.ReadFull(r, ((*(*(struct {
25718 //mt:if %s.Type == SpriteSheetAnim
25719 AspectRatio [2]uint8
25721 //mt:if %s.Type == VerticalFrameAnim
25724 //mt:if %s.Type != NoAnim
25725 Duration float32 // in seconds
25727 }))(obj)).AspectRatio)[:])
25734 //mt:if %s.Type == SpriteSheetAnim
25735 AspectRatio [2]uint8
25737 //mt:if %s.Type == VerticalFrameAnim
25740 //mt:if %s.Type != NoAnim
25741 Duration float32 // in seconds
25743 }))(obj)).Type == VerticalFrameAnim {
25744 for local316 := range (*(*(struct {
25747 //mt:if %s.Type == SpriteSheetAnim
25748 AspectRatio [2]uint8
25750 //mt:if %s.Type == VerticalFrameAnim
25753 //mt:if %s.Type != NoAnim
25754 Duration float32 // in seconds
25756 }))(obj)).NFrames {
25758 p := &((*(*(struct {
25761 //mt:if %s.Type == SpriteSheetAnim
25762 AspectRatio [2]uint8
25764 //mt:if %s.Type == VerticalFrameAnim
25767 //mt:if %s.Type != NoAnim
25768 Duration float32 // in seconds
25770 }))(obj)).NFrames)[local316]
25778 //mt:if %s.Type == SpriteSheetAnim
25779 AspectRatio [2]uint8
25781 //mt:if %s.Type == VerticalFrameAnim
25784 //mt:if %s.Type != NoAnim
25785 Duration float32 // in seconds
25787 }))(obj)).Type != NoAnim {
25789 p := &(*(*(struct {
25792 //mt:if %s.Type == SpriteSheetAnim
25793 AspectRatio [2]uint8
25795 //mt:if %s.Type == VerticalFrameAnim
25798 //mt:if %s.Type != NoAnim
25799 Duration float32 // in seconds
25802 *p = math.Float32frombits(read32(r))
25807 func (obj *Content) Serialize(w io.Writer) {
25809 x := *(*(uint16))(obj)
25810 write16(w, uint16(x))
25814 func (obj *Content) Deserialize(r io.Reader) {
25816 p := &*(*(uint16))(obj)
25821 func (obj *ParticleSpawnerID) Serialize(w io.Writer) {
25823 x := *(*(uint32))(obj)
25824 write32(w, uint32(x))
25828 func (obj *ParticleSpawnerID) Deserialize(r io.Reader) {
25830 p := &*(*(uint32))(obj)
25835 func (obj *HUDID) Serialize(w io.Writer) {
25837 x := *(*(uint32))(obj)
25838 write32(w, uint32(x))
25842 func (obj *HUDID) Deserialize(r io.Reader) {
25844 p := &*(*(uint32))(obj)
25849 func (obj *HUD) Serialize(w io.Writer) {
25850 if err := pcall(func() {
25867 }))(obj)).Type).Serialize(w)
25872 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
25874 for local317 := range (*(*(struct {
25892 x := ((*(*(struct {
25908 }))(obj)).Pos)[local317]
25909 write32(w, math.Float32bits(x))
25912 if len(([]byte((*(*(struct {
25928 }))(obj)).Name))) > math.MaxUint16 {
25932 x := uint16(len(([]byte((*(*(struct {
25949 write16(w, uint16(x))
25952 _, err := w.Write(([]byte((*(*(struct {
25968 }))(obj)).Name))[:])
25971 for local318 := range (*(*(struct {
25989 x := ((*(*(struct {
26005 }))(obj)).Scale)[local318]
26006 write32(w, math.Float32bits(x))
26009 if len(([]byte((*(*(struct {
26025 }))(obj)).Text))) > math.MaxUint16 {
26029 x := uint16(len(([]byte((*(*(struct {
26046 write16(w, uint16(x))
26049 _, err := w.Write(([]byte((*(*(struct {
26065 }))(obj)).Text))[:])
26086 write32(w, uint32(x))
26106 write32(w, uint32(x))
26126 write32(w, uint32(x))
26128 for local319 := range (*(*(struct {
26146 x := ((*(*(struct {
26162 }))(obj)).Align)[local319]
26163 write32(w, math.Float32bits(x))
26166 for local320 := range (*(*(struct {
26184 x := ((*(*(struct {
26200 }))(obj)).Offset)[local320]
26201 write32(w, math.Float32bits(x))
26204 if err := pcall(func() {
26221 }))(obj)).WorldPos).Serialize(w)
26226 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26228 for local321 := range (*(*(struct {
26246 x := ((*(*(struct {
26262 }))(obj)).Size)[local321]
26263 write32(w, uint32(x))
26284 write16(w, uint16(x))
26286 if len(([]byte((*(*(struct {
26302 }))(obj)).Text2))) > math.MaxUint16 {
26306 x := uint16(len(([]byte((*(*(struct {
26322 }))(obj)).Text2))))
26323 write16(w, uint16(x))
26326 _, err := w.Write(([]byte((*(*(struct {
26342 }))(obj)).Text2))[:])
26347 func (obj *HUD) Deserialize(r io.Reader) {
26348 if err := pcall(func() {
26365 }))(obj)).Type).Deserialize(r)
26370 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26372 for local322 := range (*(*(struct {
26390 p := &((*(*(struct {
26406 }))(obj)).Pos)[local322]
26407 *p = math.Float32frombits(read32(r))
26410 var local323 []uint8
26411 var local324 uint16
26416 (local323) = make([]uint8, local324)
26418 _, err := io.ReadFull(r, (local323)[:])
26437 }))(obj)).Name) = string(local323)
26438 for local325 := range (*(*(struct {
26456 p := &((*(*(struct {
26472 }))(obj)).Scale)[local325]
26473 *p = math.Float32frombits(read32(r))
26476 var local326 []uint8
26477 var local327 uint16
26482 (local326) = make([]uint8, local327)
26484 _, err := io.ReadFull(r, (local326)[:])
26503 }))(obj)).Text) = string(local326)
26505 p := &(*(*(struct {
26525 p := &(*(*(struct {
26545 p := &(*(*(struct {
26564 for local328 := range (*(*(struct {
26582 p := &((*(*(struct {
26598 }))(obj)).Align)[local328]
26599 *p = math.Float32frombits(read32(r))
26602 for local329 := range (*(*(struct {
26620 p := &((*(*(struct {
26636 }))(obj)).Offset)[local329]
26637 *p = math.Float32frombits(read32(r))
26640 if err := pcall(func() {
26657 }))(obj)).WorldPos).Deserialize(r)
26662 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26664 for local330 := range (*(*(struct {
26682 p := &((*(*(struct {
26698 }))(obj)).Size)[local330]
26699 *p = int32(read32(r))
26703 p := &(*(*(struct {
26720 *p = int16(read16(r))
26722 var local331 []uint8
26723 var local332 uint16
26728 (local331) = make([]uint8, local332)
26730 _, err := io.ReadFull(r, (local331)[:])
26749 }))(obj)).Text2) = string(local331)
26752 func (obj *HUDField) Serialize(w io.Writer) {
26754 x := *(*(uint8))(obj)
26755 write8(w, uint8(x))
26759 func (obj *HUDField) Deserialize(r io.Reader) {
26761 p := &*(*(uint8))(obj)
26766 func (obj *HUDFlags) Serialize(w io.Writer) {
26768 x := *(*(uint32))(obj)
26769 write32(w, uint32(x))
26773 func (obj *HUDFlags) Deserialize(r io.Reader) {
26775 p := &*(*(uint32))(obj)
26780 func (obj *HotbarParam) Serialize(w io.Writer) {
26782 x := *(*(uint16))(obj)
26783 write16(w, uint16(x))
26787 func (obj *HotbarParam) Deserialize(r io.Reader) {
26789 p := &*(*(uint16))(obj)
26794 func (obj *Texture) Serialize(w io.Writer) {
26795 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26799 x := uint16(len(([]byte(*(*(string))(obj)))))
26800 write16(w, uint16(x))
26803 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26808 func (obj *Texture) Deserialize(r io.Reader) {
26809 var local333 []uint8
26810 var local334 uint16
26815 (local333) = make([]uint8, local334)
26817 _, err := io.ReadFull(r, (local333)[:])
26820 (*(*(string))(obj)) = string(local333)
26823 func (obj *PlayerListUpdateType) Serialize(w io.Writer) {
26825 x := *(*(uint8))(obj)
26826 write8(w, uint8(x))
26830 func (obj *PlayerListUpdateType) Deserialize(r io.Reader) {
26832 p := &*(*(uint8))(obj)
26837 func (obj *ModChanSig) Serialize(w io.Writer) {
26839 x := *(*(uint8))(obj)
26840 write8(w, uint8(x))
26844 func (obj *ModChanSig) Deserialize(r io.Reader) {
26846 p := &*(*(uint8))(obj)
26851 func (obj *AOProps) Serialize(w io.Writer) {
26853 local335 := uint8(4)
26856 write8(w, uint8(x))
26861 MaxHP uint16 // Player only.
26862 CollideWithNodes bool
26863 Weight float32 // deprecated
26867 VisualSize [3]float32
26869 SpriteSheetSize [2]int16 // in sprites.
26870 SpritePos [2]int16 // in sprite sheet.
26872 MakeFootstepSnds bool
26873 RotateSpeed float32 // in radians per second.
26875 Colors []color.NRGBA
26876 CollideWithAOs bool
26879 FaceRotateDirOff float32 // in degrees.
26882 NametagColor color.NRGBA
26883 FaceRotateSpeed float32 // in degrees per second.
26887 MaxBreath uint16 // Player only.
26888 EyeHeight float32 // Player only.
26889 ZoomFOV float32 // in degrees. Player only.
26890 UseTextureAlpha bool
26891 DmgTextureMod Texture // suffix
26894 NametagBG color.NRGBA
26896 write16(w, uint16(x))
26900 MaxHP uint16 // Player only.
26901 CollideWithNodes bool
26902 Weight float32 // deprecated
26906 VisualSize [3]float32
26908 SpriteSheetSize [2]int16 // in sprites.
26909 SpritePos [2]int16 // in sprite sheet.
26911 MakeFootstepSnds bool
26912 RotateSpeed float32 // in radians per second.
26914 Colors []color.NRGBA
26915 CollideWithAOs bool
26918 FaceRotateDirOff float32 // in degrees.
26921 NametagColor color.NRGBA
26922 FaceRotateSpeed float32 // in degrees per second.
26926 MaxBreath uint16 // Player only.
26927 EyeHeight float32 // Player only.
26928 ZoomFOV float32 // in degrees. Player only.
26929 UseTextureAlpha bool
26930 DmgTextureMod Texture // suffix
26933 NametagBG color.NRGBA
26934 }))(obj)).CollideWithNodes
26943 MaxHP uint16 // Player only.
26944 CollideWithNodes bool
26945 Weight float32 // deprecated
26949 VisualSize [3]float32
26951 SpriteSheetSize [2]int16 // in sprites.
26952 SpritePos [2]int16 // in sprite sheet.
26954 MakeFootstepSnds bool
26955 RotateSpeed float32 // in radians per second.
26957 Colors []color.NRGBA
26958 CollideWithAOs bool
26961 FaceRotateDirOff float32 // in degrees.
26964 NametagColor color.NRGBA
26965 FaceRotateSpeed float32 // in degrees per second.
26969 MaxBreath uint16 // Player only.
26970 EyeHeight float32 // Player only.
26971 ZoomFOV float32 // in degrees. Player only.
26972 UseTextureAlpha bool
26973 DmgTextureMod Texture // suffix
26976 NametagBG color.NRGBA
26978 write32(w, math.Float32bits(x))
26980 if err := pcall(func() {
26982 MaxHP uint16 // Player only.
26983 CollideWithNodes bool
26984 Weight float32 // deprecated
26988 VisualSize [3]float32
26990 SpriteSheetSize [2]int16 // in sprites.
26991 SpritePos [2]int16 // in sprite sheet.
26993 MakeFootstepSnds bool
26994 RotateSpeed float32 // in radians per second.
26996 Colors []color.NRGBA
26997 CollideWithAOs bool
27000 FaceRotateDirOff float32 // in degrees.
27003 NametagColor color.NRGBA
27004 FaceRotateSpeed float32 // in degrees per second.
27008 MaxBreath uint16 // Player only.
27009 EyeHeight float32 // Player only.
27010 ZoomFOV float32 // in degrees. Player only.
27011 UseTextureAlpha bool
27012 DmgTextureMod Texture // suffix
27015 NametagBG color.NRGBA
27016 }))(obj)).ColBox).Serialize(w)
27021 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27023 if err := pcall(func() {
27025 MaxHP uint16 // Player only.
27026 CollideWithNodes bool
27027 Weight float32 // deprecated
27031 VisualSize [3]float32
27033 SpriteSheetSize [2]int16 // in sprites.
27034 SpritePos [2]int16 // in sprite sheet.
27036 MakeFootstepSnds bool
27037 RotateSpeed float32 // in radians per second.
27039 Colors []color.NRGBA
27040 CollideWithAOs bool
27043 FaceRotateDirOff float32 // in degrees.
27046 NametagColor color.NRGBA
27047 FaceRotateSpeed float32 // in degrees per second.
27051 MaxBreath uint16 // Player only.
27052 EyeHeight float32 // Player only.
27053 ZoomFOV float32 // in degrees. Player only.
27054 UseTextureAlpha bool
27055 DmgTextureMod Texture // suffix
27058 NametagBG color.NRGBA
27059 }))(obj)).SelBox).Serialize(w)
27064 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27068 MaxHP uint16 // Player only.
27069 CollideWithNodes bool
27070 Weight float32 // deprecated
27074 VisualSize [3]float32
27076 SpriteSheetSize [2]int16 // in sprites.
27077 SpritePos [2]int16 // in sprite sheet.
27079 MakeFootstepSnds bool
27080 RotateSpeed float32 // in radians per second.
27082 Colors []color.NRGBA
27083 CollideWithAOs bool
27086 FaceRotateDirOff float32 // in degrees.
27089 NametagColor color.NRGBA
27090 FaceRotateSpeed float32 // in degrees per second.
27094 MaxBreath uint16 // Player only.
27095 EyeHeight float32 // Player only.
27096 ZoomFOV float32 // in degrees. Player only.
27097 UseTextureAlpha bool
27098 DmgTextureMod Texture // suffix
27101 NametagBG color.NRGBA
27102 }))(obj)).Pointable
27109 if len(([]byte((*(*(struct {
27110 MaxHP uint16 // Player only.
27111 CollideWithNodes bool
27112 Weight float32 // deprecated
27116 VisualSize [3]float32
27118 SpriteSheetSize [2]int16 // in sprites.
27119 SpritePos [2]int16 // in sprite sheet.
27121 MakeFootstepSnds bool
27122 RotateSpeed float32 // in radians per second.
27124 Colors []color.NRGBA
27125 CollideWithAOs bool
27128 FaceRotateDirOff float32 // in degrees.
27131 NametagColor color.NRGBA
27132 FaceRotateSpeed float32 // in degrees per second.
27136 MaxBreath uint16 // Player only.
27137 EyeHeight float32 // Player only.
27138 ZoomFOV float32 // in degrees. Player only.
27139 UseTextureAlpha bool
27140 DmgTextureMod Texture // suffix
27143 NametagBG color.NRGBA
27144 }))(obj)).Visual))) > math.MaxUint16 {
27148 x := uint16(len(([]byte((*(*(struct {
27149 MaxHP uint16 // Player only.
27150 CollideWithNodes bool
27151 Weight float32 // deprecated
27155 VisualSize [3]float32
27157 SpriteSheetSize [2]int16 // in sprites.
27158 SpritePos [2]int16 // in sprite sheet.
27160 MakeFootstepSnds bool
27161 RotateSpeed float32 // in radians per second.
27163 Colors []color.NRGBA
27164 CollideWithAOs bool
27167 FaceRotateDirOff float32 // in degrees.
27170 NametagColor color.NRGBA
27171 FaceRotateSpeed float32 // in degrees per second.
27175 MaxBreath uint16 // Player only.
27176 EyeHeight float32 // Player only.
27177 ZoomFOV float32 // in degrees. Player only.
27178 UseTextureAlpha bool
27179 DmgTextureMod Texture // suffix
27182 NametagBG color.NRGBA
27183 }))(obj)).Visual))))
27184 write16(w, uint16(x))
27187 _, err := w.Write(([]byte((*(*(struct {
27188 MaxHP uint16 // Player only.
27189 CollideWithNodes bool
27190 Weight float32 // deprecated
27194 VisualSize [3]float32
27196 SpriteSheetSize [2]int16 // in sprites.
27197 SpritePos [2]int16 // in sprite sheet.
27199 MakeFootstepSnds bool
27200 RotateSpeed float32 // in radians per second.
27202 Colors []color.NRGBA
27203 CollideWithAOs bool
27206 FaceRotateDirOff float32 // in degrees.
27209 NametagColor color.NRGBA
27210 FaceRotateSpeed float32 // in degrees per second.
27214 MaxBreath uint16 // Player only.
27215 EyeHeight float32 // Player only.
27216 ZoomFOV float32 // in degrees. Player only.
27217 UseTextureAlpha bool
27218 DmgTextureMod Texture // suffix
27221 NametagBG color.NRGBA
27222 }))(obj)).Visual))[:])
27225 for local336 := range (*(*(struct {
27226 MaxHP uint16 // Player only.
27227 CollideWithNodes bool
27228 Weight float32 // deprecated
27232 VisualSize [3]float32
27234 SpriteSheetSize [2]int16 // in sprites.
27235 SpritePos [2]int16 // in sprite sheet.
27237 MakeFootstepSnds bool
27238 RotateSpeed float32 // in radians per second.
27240 Colors []color.NRGBA
27241 CollideWithAOs bool
27244 FaceRotateDirOff float32 // in degrees.
27247 NametagColor color.NRGBA
27248 FaceRotateSpeed float32 // in degrees per second.
27252 MaxBreath uint16 // Player only.
27253 EyeHeight float32 // Player only.
27254 ZoomFOV float32 // in degrees. Player only.
27255 UseTextureAlpha bool
27256 DmgTextureMod Texture // suffix
27259 NametagBG color.NRGBA
27260 }))(obj)).VisualSize {
27262 x := ((*(*(struct {
27263 MaxHP uint16 // Player only.
27264 CollideWithNodes bool
27265 Weight float32 // deprecated
27269 VisualSize [3]float32
27271 SpriteSheetSize [2]int16 // in sprites.
27272 SpritePos [2]int16 // in sprite sheet.
27274 MakeFootstepSnds bool
27275 RotateSpeed float32 // in radians per second.
27277 Colors []color.NRGBA
27278 CollideWithAOs bool
27281 FaceRotateDirOff float32 // in degrees.
27284 NametagColor color.NRGBA
27285 FaceRotateSpeed float32 // in degrees per second.
27289 MaxBreath uint16 // Player only.
27290 EyeHeight float32 // Player only.
27291 ZoomFOV float32 // in degrees. Player only.
27292 UseTextureAlpha bool
27293 DmgTextureMod Texture // suffix
27296 NametagBG color.NRGBA
27297 }))(obj)).VisualSize)[local336]
27298 write32(w, math.Float32bits(x))
27301 if len(((*(*(struct {
27302 MaxHP uint16 // Player only.
27303 CollideWithNodes bool
27304 Weight float32 // deprecated
27308 VisualSize [3]float32
27310 SpriteSheetSize [2]int16 // in sprites.
27311 SpritePos [2]int16 // in sprite sheet.
27313 MakeFootstepSnds bool
27314 RotateSpeed float32 // in radians per second.
27316 Colors []color.NRGBA
27317 CollideWithAOs bool
27320 FaceRotateDirOff float32 // in degrees.
27323 NametagColor color.NRGBA
27324 FaceRotateSpeed float32 // in degrees per second.
27328 MaxBreath uint16 // Player only.
27329 EyeHeight float32 // Player only.
27330 ZoomFOV float32 // in degrees. Player only.
27331 UseTextureAlpha bool
27332 DmgTextureMod Texture // suffix
27335 NametagBG color.NRGBA
27336 }))(obj)).Textures)) > math.MaxUint16 {
27340 x := uint16(len(((*(*(struct {
27341 MaxHP uint16 // Player only.
27342 CollideWithNodes bool
27343 Weight float32 // deprecated
27347 VisualSize [3]float32
27349 SpriteSheetSize [2]int16 // in sprites.
27350 SpritePos [2]int16 // in sprite sheet.
27352 MakeFootstepSnds bool
27353 RotateSpeed float32 // in radians per second.
27355 Colors []color.NRGBA
27356 CollideWithAOs bool
27359 FaceRotateDirOff float32 // in degrees.
27362 NametagColor color.NRGBA
27363 FaceRotateSpeed float32 // in degrees per second.
27367 MaxBreath uint16 // Player only.
27368 EyeHeight float32 // Player only.
27369 ZoomFOV float32 // in degrees. Player only.
27370 UseTextureAlpha bool
27371 DmgTextureMod Texture // suffix
27374 NametagBG color.NRGBA
27375 }))(obj)).Textures)))
27376 write16(w, uint16(x))
27378 for local337 := range (*(*(struct {
27379 MaxHP uint16 // Player only.
27380 CollideWithNodes bool
27381 Weight float32 // deprecated
27385 VisualSize [3]float32
27387 SpriteSheetSize [2]int16 // in sprites.
27388 SpritePos [2]int16 // in sprite sheet.
27390 MakeFootstepSnds bool
27391 RotateSpeed float32 // in radians per second.
27393 Colors []color.NRGBA
27394 CollideWithAOs bool
27397 FaceRotateDirOff float32 // in degrees.
27400 NametagColor color.NRGBA
27401 FaceRotateSpeed float32 // in degrees per second.
27405 MaxBreath uint16 // Player only.
27406 EyeHeight float32 // Player only.
27407 ZoomFOV float32 // in degrees. Player only.
27408 UseTextureAlpha bool
27409 DmgTextureMod Texture // suffix
27412 NametagBG color.NRGBA
27413 }))(obj)).Textures {
27414 if err := pcall(func() {
27416 MaxHP uint16 // Player only.
27417 CollideWithNodes bool
27418 Weight float32 // deprecated
27422 VisualSize [3]float32
27424 SpriteSheetSize [2]int16 // in sprites.
27425 SpritePos [2]int16 // in sprite sheet.
27427 MakeFootstepSnds bool
27428 RotateSpeed float32 // in radians per second.
27430 Colors []color.NRGBA
27431 CollideWithAOs bool
27434 FaceRotateDirOff float32 // in degrees.
27437 NametagColor color.NRGBA
27438 FaceRotateSpeed float32 // in degrees per second.
27442 MaxBreath uint16 // Player only.
27443 EyeHeight float32 // Player only.
27444 ZoomFOV float32 // in degrees. Player only.
27445 UseTextureAlpha bool
27446 DmgTextureMod Texture // suffix
27449 NametagBG color.NRGBA
27450 }))(obj)).Textures)[local337]).Serialize(w)
27455 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27458 for local338 := range (*(*(struct {
27459 MaxHP uint16 // Player only.
27460 CollideWithNodes bool
27461 Weight float32 // deprecated
27465 VisualSize [3]float32
27467 SpriteSheetSize [2]int16 // in sprites.
27468 SpritePos [2]int16 // in sprite sheet.
27470 MakeFootstepSnds bool
27471 RotateSpeed float32 // in radians per second.
27473 Colors []color.NRGBA
27474 CollideWithAOs bool
27477 FaceRotateDirOff float32 // in degrees.
27480 NametagColor color.NRGBA
27481 FaceRotateSpeed float32 // in degrees per second.
27485 MaxBreath uint16 // Player only.
27486 EyeHeight float32 // Player only.
27487 ZoomFOV float32 // in degrees. Player only.
27488 UseTextureAlpha bool
27489 DmgTextureMod Texture // suffix
27492 NametagBG color.NRGBA
27493 }))(obj)).SpriteSheetSize {
27495 x := ((*(*(struct {
27496 MaxHP uint16 // Player only.
27497 CollideWithNodes bool
27498 Weight float32 // deprecated
27502 VisualSize [3]float32
27504 SpriteSheetSize [2]int16 // in sprites.
27505 SpritePos [2]int16 // in sprite sheet.
27507 MakeFootstepSnds bool
27508 RotateSpeed float32 // in radians per second.
27510 Colors []color.NRGBA
27511 CollideWithAOs bool
27514 FaceRotateDirOff float32 // in degrees.
27517 NametagColor color.NRGBA
27518 FaceRotateSpeed float32 // in degrees per second.
27522 MaxBreath uint16 // Player only.
27523 EyeHeight float32 // Player only.
27524 ZoomFOV float32 // in degrees. Player only.
27525 UseTextureAlpha bool
27526 DmgTextureMod Texture // suffix
27529 NametagBG color.NRGBA
27530 }))(obj)).SpriteSheetSize)[local338]
27531 write16(w, uint16(x))
27534 for local339 := range (*(*(struct {
27535 MaxHP uint16 // Player only.
27536 CollideWithNodes bool
27537 Weight float32 // deprecated
27541 VisualSize [3]float32
27543 SpriteSheetSize [2]int16 // in sprites.
27544 SpritePos [2]int16 // in sprite sheet.
27546 MakeFootstepSnds bool
27547 RotateSpeed float32 // in radians per second.
27549 Colors []color.NRGBA
27550 CollideWithAOs bool
27553 FaceRotateDirOff float32 // in degrees.
27556 NametagColor color.NRGBA
27557 FaceRotateSpeed float32 // in degrees per second.
27561 MaxBreath uint16 // Player only.
27562 EyeHeight float32 // Player only.
27563 ZoomFOV float32 // in degrees. Player only.
27564 UseTextureAlpha bool
27565 DmgTextureMod Texture // suffix
27568 NametagBG color.NRGBA
27569 }))(obj)).SpritePos {
27571 x := ((*(*(struct {
27572 MaxHP uint16 // Player only.
27573 CollideWithNodes bool
27574 Weight float32 // deprecated
27578 VisualSize [3]float32
27580 SpriteSheetSize [2]int16 // in sprites.
27581 SpritePos [2]int16 // in sprite sheet.
27583 MakeFootstepSnds bool
27584 RotateSpeed float32 // in radians per second.
27586 Colors []color.NRGBA
27587 CollideWithAOs bool
27590 FaceRotateDirOff float32 // in degrees.
27593 NametagColor color.NRGBA
27594 FaceRotateSpeed float32 // in degrees per second.
27598 MaxBreath uint16 // Player only.
27599 EyeHeight float32 // Player only.
27600 ZoomFOV float32 // in degrees. Player only.
27601 UseTextureAlpha bool
27602 DmgTextureMod Texture // suffix
27605 NametagBG color.NRGBA
27606 }))(obj)).SpritePos)[local339]
27607 write16(w, uint16(x))
27612 MaxHP uint16 // Player only.
27613 CollideWithNodes bool
27614 Weight float32 // deprecated
27618 VisualSize [3]float32
27620 SpriteSheetSize [2]int16 // in sprites.
27621 SpritePos [2]int16 // in sprite sheet.
27623 MakeFootstepSnds bool
27624 RotateSpeed float32 // in radians per second.
27626 Colors []color.NRGBA
27627 CollideWithAOs bool
27630 FaceRotateDirOff float32 // in degrees.
27633 NametagColor color.NRGBA
27634 FaceRotateSpeed float32 // in degrees per second.
27638 MaxBreath uint16 // Player only.
27639 EyeHeight float32 // Player only.
27640 ZoomFOV float32 // in degrees. Player only.
27641 UseTextureAlpha bool
27642 DmgTextureMod Texture // suffix
27645 NametagBG color.NRGBA
27655 MaxHP uint16 // Player only.
27656 CollideWithNodes bool
27657 Weight float32 // deprecated
27661 VisualSize [3]float32
27663 SpriteSheetSize [2]int16 // in sprites.
27664 SpritePos [2]int16 // in sprite sheet.
27666 MakeFootstepSnds bool
27667 RotateSpeed float32 // in radians per second.
27669 Colors []color.NRGBA
27670 CollideWithAOs bool
27673 FaceRotateDirOff float32 // in degrees.
27676 NametagColor color.NRGBA
27677 FaceRotateSpeed float32 // in degrees per second.
27681 MaxBreath uint16 // Player only.
27682 EyeHeight float32 // Player only.
27683 ZoomFOV float32 // in degrees. Player only.
27684 UseTextureAlpha bool
27685 DmgTextureMod Texture // suffix
27688 NametagBG color.NRGBA
27689 }))(obj)).MakeFootstepSnds
27698 MaxHP uint16 // Player only.
27699 CollideWithNodes bool
27700 Weight float32 // deprecated
27704 VisualSize [3]float32
27706 SpriteSheetSize [2]int16 // in sprites.
27707 SpritePos [2]int16 // in sprite sheet.
27709 MakeFootstepSnds bool
27710 RotateSpeed float32 // in radians per second.
27712 Colors []color.NRGBA
27713 CollideWithAOs bool
27716 FaceRotateDirOff float32 // in degrees.
27719 NametagColor color.NRGBA
27720 FaceRotateSpeed float32 // in degrees per second.
27724 MaxBreath uint16 // Player only.
27725 EyeHeight float32 // Player only.
27726 ZoomFOV float32 // in degrees. Player only.
27727 UseTextureAlpha bool
27728 DmgTextureMod Texture // suffix
27731 NametagBG color.NRGBA
27732 }))(obj)).RotateSpeed
27733 write32(w, math.Float32bits(x))
27735 if len(([]byte((*(*(struct {
27736 MaxHP uint16 // Player only.
27737 CollideWithNodes bool
27738 Weight float32 // deprecated
27742 VisualSize [3]float32
27744 SpriteSheetSize [2]int16 // in sprites.
27745 SpritePos [2]int16 // in sprite sheet.
27747 MakeFootstepSnds bool
27748 RotateSpeed float32 // in radians per second.
27750 Colors []color.NRGBA
27751 CollideWithAOs bool
27754 FaceRotateDirOff float32 // in degrees.
27757 NametagColor color.NRGBA
27758 FaceRotateSpeed float32 // in degrees per second.
27762 MaxBreath uint16 // Player only.
27763 EyeHeight float32 // Player only.
27764 ZoomFOV float32 // in degrees. Player only.
27765 UseTextureAlpha bool
27766 DmgTextureMod Texture // suffix
27769 NametagBG color.NRGBA
27770 }))(obj)).Mesh))) > math.MaxUint16 {
27774 x := uint16(len(([]byte((*(*(struct {
27775 MaxHP uint16 // Player only.
27776 CollideWithNodes bool
27777 Weight float32 // deprecated
27781 VisualSize [3]float32
27783 SpriteSheetSize [2]int16 // in sprites.
27784 SpritePos [2]int16 // in sprite sheet.
27786 MakeFootstepSnds bool
27787 RotateSpeed float32 // in radians per second.
27789 Colors []color.NRGBA
27790 CollideWithAOs bool
27793 FaceRotateDirOff float32 // in degrees.
27796 NametagColor color.NRGBA
27797 FaceRotateSpeed float32 // in degrees per second.
27801 MaxBreath uint16 // Player only.
27802 EyeHeight float32 // Player only.
27803 ZoomFOV float32 // in degrees. Player only.
27804 UseTextureAlpha bool
27805 DmgTextureMod Texture // suffix
27808 NametagBG color.NRGBA
27810 write16(w, uint16(x))
27813 _, err := w.Write(([]byte((*(*(struct {
27814 MaxHP uint16 // Player only.
27815 CollideWithNodes bool
27816 Weight float32 // deprecated
27820 VisualSize [3]float32
27822 SpriteSheetSize [2]int16 // in sprites.
27823 SpritePos [2]int16 // in sprite sheet.
27825 MakeFootstepSnds bool
27826 RotateSpeed float32 // in radians per second.
27828 Colors []color.NRGBA
27829 CollideWithAOs bool
27832 FaceRotateDirOff float32 // in degrees.
27835 NametagColor color.NRGBA
27836 FaceRotateSpeed float32 // in degrees per second.
27840 MaxBreath uint16 // Player only.
27841 EyeHeight float32 // Player only.
27842 ZoomFOV float32 // in degrees. Player only.
27843 UseTextureAlpha bool
27844 DmgTextureMod Texture // suffix
27847 NametagBG color.NRGBA
27848 }))(obj)).Mesh))[:])
27851 if len(((*(*(struct {
27852 MaxHP uint16 // Player only.
27853 CollideWithNodes bool
27854 Weight float32 // deprecated
27858 VisualSize [3]float32
27860 SpriteSheetSize [2]int16 // in sprites.
27861 SpritePos [2]int16 // in sprite sheet.
27863 MakeFootstepSnds bool
27864 RotateSpeed float32 // in radians per second.
27866 Colors []color.NRGBA
27867 CollideWithAOs bool
27870 FaceRotateDirOff float32 // in degrees.
27873 NametagColor color.NRGBA
27874 FaceRotateSpeed float32 // in degrees per second.
27878 MaxBreath uint16 // Player only.
27879 EyeHeight float32 // Player only.
27880 ZoomFOV float32 // in degrees. Player only.
27881 UseTextureAlpha bool
27882 DmgTextureMod Texture // suffix
27885 NametagBG color.NRGBA
27886 }))(obj)).Colors)) > math.MaxUint16 {
27890 x := uint16(len(((*(*(struct {
27891 MaxHP uint16 // Player only.
27892 CollideWithNodes bool
27893 Weight float32 // deprecated
27897 VisualSize [3]float32
27899 SpriteSheetSize [2]int16 // in sprites.
27900 SpritePos [2]int16 // in sprite sheet.
27902 MakeFootstepSnds bool
27903 RotateSpeed float32 // in radians per second.
27905 Colors []color.NRGBA
27906 CollideWithAOs bool
27909 FaceRotateDirOff float32 // in degrees.
27912 NametagColor color.NRGBA
27913 FaceRotateSpeed float32 // in degrees per second.
27917 MaxBreath uint16 // Player only.
27918 EyeHeight float32 // Player only.
27919 ZoomFOV float32 // in degrees. Player only.
27920 UseTextureAlpha bool
27921 DmgTextureMod Texture // suffix
27924 NametagBG color.NRGBA
27925 }))(obj)).Colors)))
27926 write16(w, uint16(x))
27928 for local340 := range (*(*(struct {
27929 MaxHP uint16 // Player only.
27930 CollideWithNodes bool
27931 Weight float32 // deprecated
27935 VisualSize [3]float32
27937 SpriteSheetSize [2]int16 // in sprites.
27938 SpritePos [2]int16 // in sprite sheet.
27940 MakeFootstepSnds bool
27941 RotateSpeed float32 // in radians per second.
27943 Colors []color.NRGBA
27944 CollideWithAOs bool
27947 FaceRotateDirOff float32 // in degrees.
27950 NametagColor color.NRGBA
27951 FaceRotateSpeed float32 // in degrees per second.
27955 MaxBreath uint16 // Player only.
27956 EyeHeight float32 // Player only.
27957 ZoomFOV float32 // in degrees. Player only.
27958 UseTextureAlpha bool
27959 DmgTextureMod Texture // suffix
27962 NametagBG color.NRGBA
27965 x := ((*(*(struct {
27966 MaxHP uint16 // Player only.
27967 CollideWithNodes bool
27968 Weight float32 // deprecated
27972 VisualSize [3]float32
27974 SpriteSheetSize [2]int16 // in sprites.
27975 SpritePos [2]int16 // in sprite sheet.
27977 MakeFootstepSnds bool
27978 RotateSpeed float32 // in radians per second.
27980 Colors []color.NRGBA
27981 CollideWithAOs bool
27984 FaceRotateDirOff float32 // in degrees.
27987 NametagColor color.NRGBA
27988 FaceRotateSpeed float32 // in degrees per second.
27992 MaxBreath uint16 // Player only.
27993 EyeHeight float32 // Player only.
27994 ZoomFOV float32 // in degrees. Player only.
27995 UseTextureAlpha bool
27996 DmgTextureMod Texture // suffix
27999 NametagBG color.NRGBA
28000 }))(obj)).Colors)[local340]
28001 w.Write([]byte{x.A, x.R, x.G, x.B})
28006 MaxHP uint16 // Player only.
28007 CollideWithNodes bool
28008 Weight float32 // deprecated
28012 VisualSize [3]float32
28014 SpriteSheetSize [2]int16 // in sprites.
28015 SpritePos [2]int16 // in sprite sheet.
28017 MakeFootstepSnds bool
28018 RotateSpeed float32 // in radians per second.
28020 Colors []color.NRGBA
28021 CollideWithAOs bool
28024 FaceRotateDirOff float32 // in degrees.
28027 NametagColor color.NRGBA
28028 FaceRotateSpeed float32 // in degrees per second.
28032 MaxBreath uint16 // Player only.
28033 EyeHeight float32 // Player only.
28034 ZoomFOV float32 // in degrees. Player only.
28035 UseTextureAlpha bool
28036 DmgTextureMod Texture // suffix
28039 NametagBG color.NRGBA
28040 }))(obj)).CollideWithAOs
28049 MaxHP uint16 // Player only.
28050 CollideWithNodes bool
28051 Weight float32 // deprecated
28055 VisualSize [3]float32
28057 SpriteSheetSize [2]int16 // in sprites.
28058 SpritePos [2]int16 // in sprite sheet.
28060 MakeFootstepSnds bool
28061 RotateSpeed float32 // in radians per second.
28063 Colors []color.NRGBA
28064 CollideWithAOs bool
28067 FaceRotateDirOff float32 // in degrees.
28070 NametagColor color.NRGBA
28071 FaceRotateSpeed float32 // in degrees per second.
28075 MaxBreath uint16 // Player only.
28076 EyeHeight float32 // Player only.
28077 ZoomFOV float32 // in degrees. Player only.
28078 UseTextureAlpha bool
28079 DmgTextureMod Texture // suffix
28082 NametagBG color.NRGBA
28083 }))(obj)).StepHeight
28084 write32(w, math.Float32bits(x))
28088 MaxHP uint16 // Player only.
28089 CollideWithNodes bool
28090 Weight float32 // deprecated
28094 VisualSize [3]float32
28096 SpriteSheetSize [2]int16 // in sprites.
28097 SpritePos [2]int16 // in sprite sheet.
28099 MakeFootstepSnds bool
28100 RotateSpeed float32 // in radians per second.
28102 Colors []color.NRGBA
28103 CollideWithAOs bool
28106 FaceRotateDirOff float32 // in degrees.
28109 NametagColor color.NRGBA
28110 FaceRotateSpeed float32 // in degrees per second.
28114 MaxBreath uint16 // Player only.
28115 EyeHeight float32 // Player only.
28116 ZoomFOV float32 // in degrees. Player only.
28117 UseTextureAlpha bool
28118 DmgTextureMod Texture // suffix
28121 NametagBG color.NRGBA
28122 }))(obj)).FaceRotateDir
28131 MaxHP uint16 // Player only.
28132 CollideWithNodes bool
28133 Weight float32 // deprecated
28137 VisualSize [3]float32
28139 SpriteSheetSize [2]int16 // in sprites.
28140 SpritePos [2]int16 // in sprite sheet.
28142 MakeFootstepSnds bool
28143 RotateSpeed float32 // in radians per second.
28145 Colors []color.NRGBA
28146 CollideWithAOs bool
28149 FaceRotateDirOff float32 // in degrees.
28152 NametagColor color.NRGBA
28153 FaceRotateSpeed float32 // in degrees per second.
28157 MaxBreath uint16 // Player only.
28158 EyeHeight float32 // Player only.
28159 ZoomFOV float32 // in degrees. Player only.
28160 UseTextureAlpha bool
28161 DmgTextureMod Texture // suffix
28164 NametagBG color.NRGBA
28165 }))(obj)).FaceRotateDirOff
28166 write32(w, math.Float32bits(x))
28170 MaxHP uint16 // Player only.
28171 CollideWithNodes bool
28172 Weight float32 // deprecated
28176 VisualSize [3]float32
28178 SpriteSheetSize [2]int16 // in sprites.
28179 SpritePos [2]int16 // in sprite sheet.
28181 MakeFootstepSnds bool
28182 RotateSpeed float32 // in radians per second.
28184 Colors []color.NRGBA
28185 CollideWithAOs bool
28188 FaceRotateDirOff float32 // in degrees.
28191 NametagColor color.NRGBA
28192 FaceRotateSpeed float32 // in degrees per second.
28196 MaxBreath uint16 // Player only.
28197 EyeHeight float32 // Player only.
28198 ZoomFOV float32 // in degrees. Player only.
28199 UseTextureAlpha bool
28200 DmgTextureMod Texture // suffix
28203 NametagBG color.NRGBA
28204 }))(obj)).BackfaceCull
28211 if len(([]byte((*(*(struct {
28212 MaxHP uint16 // Player only.
28213 CollideWithNodes bool
28214 Weight float32 // deprecated
28218 VisualSize [3]float32
28220 SpriteSheetSize [2]int16 // in sprites.
28221 SpritePos [2]int16 // in sprite sheet.
28223 MakeFootstepSnds bool
28224 RotateSpeed float32 // in radians per second.
28226 Colors []color.NRGBA
28227 CollideWithAOs bool
28230 FaceRotateDirOff float32 // in degrees.
28233 NametagColor color.NRGBA
28234 FaceRotateSpeed float32 // in degrees per second.
28238 MaxBreath uint16 // Player only.
28239 EyeHeight float32 // Player only.
28240 ZoomFOV float32 // in degrees. Player only.
28241 UseTextureAlpha bool
28242 DmgTextureMod Texture // suffix
28245 NametagBG color.NRGBA
28246 }))(obj)).Nametag))) > math.MaxUint16 {
28250 x := uint16(len(([]byte((*(*(struct {
28251 MaxHP uint16 // Player only.
28252 CollideWithNodes bool
28253 Weight float32 // deprecated
28257 VisualSize [3]float32
28259 SpriteSheetSize [2]int16 // in sprites.
28260 SpritePos [2]int16 // in sprite sheet.
28262 MakeFootstepSnds bool
28263 RotateSpeed float32 // in radians per second.
28265 Colors []color.NRGBA
28266 CollideWithAOs bool
28269 FaceRotateDirOff float32 // in degrees.
28272 NametagColor color.NRGBA
28273 FaceRotateSpeed float32 // in degrees per second.
28277 MaxBreath uint16 // Player only.
28278 EyeHeight float32 // Player only.
28279 ZoomFOV float32 // in degrees. Player only.
28280 UseTextureAlpha bool
28281 DmgTextureMod Texture // suffix
28284 NametagBG color.NRGBA
28285 }))(obj)).Nametag))))
28286 write16(w, uint16(x))
28289 _, err := w.Write(([]byte((*(*(struct {
28290 MaxHP uint16 // Player only.
28291 CollideWithNodes bool
28292 Weight float32 // deprecated
28296 VisualSize [3]float32
28298 SpriteSheetSize [2]int16 // in sprites.
28299 SpritePos [2]int16 // in sprite sheet.
28301 MakeFootstepSnds bool
28302 RotateSpeed float32 // in radians per second.
28304 Colors []color.NRGBA
28305 CollideWithAOs bool
28308 FaceRotateDirOff float32 // in degrees.
28311 NametagColor color.NRGBA
28312 FaceRotateSpeed float32 // in degrees per second.
28316 MaxBreath uint16 // Player only.
28317 EyeHeight float32 // Player only.
28318 ZoomFOV float32 // in degrees. Player only.
28319 UseTextureAlpha bool
28320 DmgTextureMod Texture // suffix
28323 NametagBG color.NRGBA
28324 }))(obj)).Nametag))[:])
28329 MaxHP uint16 // Player only.
28330 CollideWithNodes bool
28331 Weight float32 // deprecated
28335 VisualSize [3]float32
28337 SpriteSheetSize [2]int16 // in sprites.
28338 SpritePos [2]int16 // in sprite sheet.
28340 MakeFootstepSnds bool
28341 RotateSpeed float32 // in radians per second.
28343 Colors []color.NRGBA
28344 CollideWithAOs bool
28347 FaceRotateDirOff float32 // in degrees.
28350 NametagColor color.NRGBA
28351 FaceRotateSpeed float32 // in degrees per second.
28355 MaxBreath uint16 // Player only.
28356 EyeHeight float32 // Player only.
28357 ZoomFOV float32 // in degrees. Player only.
28358 UseTextureAlpha bool
28359 DmgTextureMod Texture // suffix
28362 NametagBG color.NRGBA
28363 }))(obj)).NametagColor
28364 w.Write([]byte{x.A, x.R, x.G, x.B})
28368 MaxHP uint16 // Player only.
28369 CollideWithNodes bool
28370 Weight float32 // deprecated
28374 VisualSize [3]float32
28376 SpriteSheetSize [2]int16 // in sprites.
28377 SpritePos [2]int16 // in sprite sheet.
28379 MakeFootstepSnds bool
28380 RotateSpeed float32 // in radians per second.
28382 Colors []color.NRGBA
28383 CollideWithAOs bool
28386 FaceRotateDirOff float32 // in degrees.
28389 NametagColor color.NRGBA
28390 FaceRotateSpeed float32 // in degrees per second.
28394 MaxBreath uint16 // Player only.
28395 EyeHeight float32 // Player only.
28396 ZoomFOV float32 // in degrees. Player only.
28397 UseTextureAlpha bool
28398 DmgTextureMod Texture // suffix
28401 NametagBG color.NRGBA
28402 }))(obj)).FaceRotateSpeed
28403 write32(w, math.Float32bits(x))
28405 if len(([]byte((*(*(struct {
28406 MaxHP uint16 // Player only.
28407 CollideWithNodes bool
28408 Weight float32 // deprecated
28412 VisualSize [3]float32
28414 SpriteSheetSize [2]int16 // in sprites.
28415 SpritePos [2]int16 // in sprite sheet.
28417 MakeFootstepSnds bool
28418 RotateSpeed float32 // in radians per second.
28420 Colors []color.NRGBA
28421 CollideWithAOs bool
28424 FaceRotateDirOff float32 // in degrees.
28427 NametagColor color.NRGBA
28428 FaceRotateSpeed float32 // in degrees per second.
28432 MaxBreath uint16 // Player only.
28433 EyeHeight float32 // Player only.
28434 ZoomFOV float32 // in degrees. Player only.
28435 UseTextureAlpha bool
28436 DmgTextureMod Texture // suffix
28439 NametagBG color.NRGBA
28440 }))(obj)).Infotext))) > math.MaxUint16 {
28444 x := uint16(len(([]byte((*(*(struct {
28445 MaxHP uint16 // Player only.
28446 CollideWithNodes bool
28447 Weight float32 // deprecated
28451 VisualSize [3]float32
28453 SpriteSheetSize [2]int16 // in sprites.
28454 SpritePos [2]int16 // in sprite sheet.
28456 MakeFootstepSnds bool
28457 RotateSpeed float32 // in radians per second.
28459 Colors []color.NRGBA
28460 CollideWithAOs bool
28463 FaceRotateDirOff float32 // in degrees.
28466 NametagColor color.NRGBA
28467 FaceRotateSpeed float32 // in degrees per second.
28471 MaxBreath uint16 // Player only.
28472 EyeHeight float32 // Player only.
28473 ZoomFOV float32 // in degrees. Player only.
28474 UseTextureAlpha bool
28475 DmgTextureMod Texture // suffix
28478 NametagBG color.NRGBA
28479 }))(obj)).Infotext))))
28480 write16(w, uint16(x))
28483 _, err := w.Write(([]byte((*(*(struct {
28484 MaxHP uint16 // Player only.
28485 CollideWithNodes bool
28486 Weight float32 // deprecated
28490 VisualSize [3]float32
28492 SpriteSheetSize [2]int16 // in sprites.
28493 SpritePos [2]int16 // in sprite sheet.
28495 MakeFootstepSnds bool
28496 RotateSpeed float32 // in radians per second.
28498 Colors []color.NRGBA
28499 CollideWithAOs bool
28502 FaceRotateDirOff float32 // in degrees.
28505 NametagColor color.NRGBA
28506 FaceRotateSpeed float32 // in degrees per second.
28510 MaxBreath uint16 // Player only.
28511 EyeHeight float32 // Player only.
28512 ZoomFOV float32 // in degrees. Player only.
28513 UseTextureAlpha bool
28514 DmgTextureMod Texture // suffix
28517 NametagBG color.NRGBA
28518 }))(obj)).Infotext))[:])
28521 if len(([]byte((*(*(struct {
28522 MaxHP uint16 // Player only.
28523 CollideWithNodes bool
28524 Weight float32 // deprecated
28528 VisualSize [3]float32
28530 SpriteSheetSize [2]int16 // in sprites.
28531 SpritePos [2]int16 // in sprite sheet.
28533 MakeFootstepSnds bool
28534 RotateSpeed float32 // in radians per second.
28536 Colors []color.NRGBA
28537 CollideWithAOs bool
28540 FaceRotateDirOff float32 // in degrees.
28543 NametagColor color.NRGBA
28544 FaceRotateSpeed float32 // in degrees per second.
28548 MaxBreath uint16 // Player only.
28549 EyeHeight float32 // Player only.
28550 ZoomFOV float32 // in degrees. Player only.
28551 UseTextureAlpha bool
28552 DmgTextureMod Texture // suffix
28555 NametagBG color.NRGBA
28556 }))(obj)).Itemstring))) > math.MaxUint16 {
28560 x := uint16(len(([]byte((*(*(struct {
28561 MaxHP uint16 // Player only.
28562 CollideWithNodes bool
28563 Weight float32 // deprecated
28567 VisualSize [3]float32
28569 SpriteSheetSize [2]int16 // in sprites.
28570 SpritePos [2]int16 // in sprite sheet.
28572 MakeFootstepSnds bool
28573 RotateSpeed float32 // in radians per second.
28575 Colors []color.NRGBA
28576 CollideWithAOs bool
28579 FaceRotateDirOff float32 // in degrees.
28582 NametagColor color.NRGBA
28583 FaceRotateSpeed float32 // in degrees per second.
28587 MaxBreath uint16 // Player only.
28588 EyeHeight float32 // Player only.
28589 ZoomFOV float32 // in degrees. Player only.
28590 UseTextureAlpha bool
28591 DmgTextureMod Texture // suffix
28594 NametagBG color.NRGBA
28595 }))(obj)).Itemstring))))
28596 write16(w, uint16(x))
28599 _, err := w.Write(([]byte((*(*(struct {
28600 MaxHP uint16 // Player only.
28601 CollideWithNodes bool
28602 Weight float32 // deprecated
28606 VisualSize [3]float32
28608 SpriteSheetSize [2]int16 // in sprites.
28609 SpritePos [2]int16 // in sprite sheet.
28611 MakeFootstepSnds bool
28612 RotateSpeed float32 // in radians per second.
28614 Colors []color.NRGBA
28615 CollideWithAOs bool
28618 FaceRotateDirOff float32 // in degrees.
28621 NametagColor color.NRGBA
28622 FaceRotateSpeed float32 // in degrees per second.
28626 MaxBreath uint16 // Player only.
28627 EyeHeight float32 // Player only.
28628 ZoomFOV float32 // in degrees. Player only.
28629 UseTextureAlpha bool
28630 DmgTextureMod Texture // suffix
28633 NametagBG color.NRGBA
28634 }))(obj)).Itemstring))[:])
28639 MaxHP uint16 // Player only.
28640 CollideWithNodes bool
28641 Weight float32 // deprecated
28645 VisualSize [3]float32
28647 SpriteSheetSize [2]int16 // in sprites.
28648 SpritePos [2]int16 // in sprite sheet.
28650 MakeFootstepSnds bool
28651 RotateSpeed float32 // in radians per second.
28653 Colors []color.NRGBA
28654 CollideWithAOs bool
28657 FaceRotateDirOff float32 // in degrees.
28660 NametagColor color.NRGBA
28661 FaceRotateSpeed float32 // in degrees per second.
28665 MaxBreath uint16 // Player only.
28666 EyeHeight float32 // Player only.
28667 ZoomFOV float32 // in degrees. Player only.
28668 UseTextureAlpha bool
28669 DmgTextureMod Texture // suffix
28672 NametagBG color.NRGBA
28674 write8(w, uint8(x))
28678 MaxHP uint16 // Player only.
28679 CollideWithNodes bool
28680 Weight float32 // deprecated
28684 VisualSize [3]float32
28686 SpriteSheetSize [2]int16 // in sprites.
28687 SpritePos [2]int16 // in sprite sheet.
28689 MakeFootstepSnds bool
28690 RotateSpeed float32 // in radians per second.
28692 Colors []color.NRGBA
28693 CollideWithAOs bool
28696 FaceRotateDirOff float32 // in degrees.
28699 NametagColor color.NRGBA
28700 FaceRotateSpeed float32 // in degrees per second.
28704 MaxBreath uint16 // Player only.
28705 EyeHeight float32 // Player only.
28706 ZoomFOV float32 // in degrees. Player only.
28707 UseTextureAlpha bool
28708 DmgTextureMod Texture // suffix
28711 NametagBG color.NRGBA
28712 }))(obj)).MaxBreath
28713 write16(w, uint16(x))
28717 MaxHP uint16 // Player only.
28718 CollideWithNodes bool
28719 Weight float32 // deprecated
28723 VisualSize [3]float32
28725 SpriteSheetSize [2]int16 // in sprites.
28726 SpritePos [2]int16 // in sprite sheet.
28728 MakeFootstepSnds bool
28729 RotateSpeed float32 // in radians per second.
28731 Colors []color.NRGBA
28732 CollideWithAOs bool
28735 FaceRotateDirOff float32 // in degrees.
28738 NametagColor color.NRGBA
28739 FaceRotateSpeed float32 // in degrees per second.
28743 MaxBreath uint16 // Player only.
28744 EyeHeight float32 // Player only.
28745 ZoomFOV float32 // in degrees. Player only.
28746 UseTextureAlpha bool
28747 DmgTextureMod Texture // suffix
28750 NametagBG color.NRGBA
28751 }))(obj)).EyeHeight
28752 write32(w, math.Float32bits(x))
28756 MaxHP uint16 // Player only.
28757 CollideWithNodes bool
28758 Weight float32 // deprecated
28762 VisualSize [3]float32
28764 SpriteSheetSize [2]int16 // in sprites.
28765 SpritePos [2]int16 // in sprite sheet.
28767 MakeFootstepSnds bool
28768 RotateSpeed float32 // in radians per second.
28770 Colors []color.NRGBA
28771 CollideWithAOs bool
28774 FaceRotateDirOff float32 // in degrees.
28777 NametagColor color.NRGBA
28778 FaceRotateSpeed float32 // in degrees per second.
28782 MaxBreath uint16 // Player only.
28783 EyeHeight float32 // Player only.
28784 ZoomFOV float32 // in degrees. Player only.
28785 UseTextureAlpha bool
28786 DmgTextureMod Texture // suffix
28789 NametagBG color.NRGBA
28791 write32(w, math.Float32bits(x))
28795 MaxHP uint16 // Player only.
28796 CollideWithNodes bool
28797 Weight float32 // deprecated
28801 VisualSize [3]float32
28803 SpriteSheetSize [2]int16 // in sprites.
28804 SpritePos [2]int16 // in sprite sheet.
28806 MakeFootstepSnds bool
28807 RotateSpeed float32 // in radians per second.
28809 Colors []color.NRGBA
28810 CollideWithAOs bool
28813 FaceRotateDirOff float32 // in degrees.
28816 NametagColor color.NRGBA
28817 FaceRotateSpeed float32 // in degrees per second.
28821 MaxBreath uint16 // Player only.
28822 EyeHeight float32 // Player only.
28823 ZoomFOV float32 // in degrees. Player only.
28824 UseTextureAlpha bool
28825 DmgTextureMod Texture // suffix
28828 NametagBG color.NRGBA
28829 }))(obj)).UseTextureAlpha
28836 if err := pcall(func() {
28838 MaxHP uint16 // Player only.
28839 CollideWithNodes bool
28840 Weight float32 // deprecated
28844 VisualSize [3]float32
28846 SpriteSheetSize [2]int16 // in sprites.
28847 SpritePos [2]int16 // in sprite sheet.
28849 MakeFootstepSnds bool
28850 RotateSpeed float32 // in radians per second.
28852 Colors []color.NRGBA
28853 CollideWithAOs bool
28856 FaceRotateDirOff float32 // in degrees.
28859 NametagColor color.NRGBA
28860 FaceRotateSpeed float32 // in degrees per second.
28864 MaxBreath uint16 // Player only.
28865 EyeHeight float32 // Player only.
28866 ZoomFOV float32 // in degrees. Player only.
28867 UseTextureAlpha bool
28868 DmgTextureMod Texture // suffix
28871 NametagBG color.NRGBA
28872 }))(obj)).DmgTextureMod).Serialize(w)
28877 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
28881 MaxHP uint16 // Player only.
28882 CollideWithNodes bool
28883 Weight float32 // deprecated
28887 VisualSize [3]float32
28889 SpriteSheetSize [2]int16 // in sprites.
28890 SpritePos [2]int16 // in sprite sheet.
28892 MakeFootstepSnds bool
28893 RotateSpeed float32 // in radians per second.
28895 Colors []color.NRGBA
28896 CollideWithAOs bool
28899 FaceRotateDirOff float32 // in degrees.
28902 NametagColor color.NRGBA
28903 FaceRotateSpeed float32 // in degrees per second.
28907 MaxBreath uint16 // Player only.
28908 EyeHeight float32 // Player only.
28909 ZoomFOV float32 // in degrees. Player only.
28910 UseTextureAlpha bool
28911 DmgTextureMod Texture // suffix
28914 NametagBG color.NRGBA
28924 MaxHP uint16 // Player only.
28925 CollideWithNodes bool
28926 Weight float32 // deprecated
28930 VisualSize [3]float32
28932 SpriteSheetSize [2]int16 // in sprites.
28933 SpritePos [2]int16 // in sprite sheet.
28935 MakeFootstepSnds bool
28936 RotateSpeed float32 // in radians per second.
28938 Colors []color.NRGBA
28939 CollideWithAOs bool
28942 FaceRotateDirOff float32 // in degrees.
28945 NametagColor color.NRGBA
28946 FaceRotateSpeed float32 // in degrees per second.
28950 MaxBreath uint16 // Player only.
28951 EyeHeight float32 // Player only.
28952 ZoomFOV float32 // in degrees. Player only.
28953 UseTextureAlpha bool
28954 DmgTextureMod Texture // suffix
28957 NametagBG color.NRGBA
28958 }))(obj)).ShowOnMinimap
28967 MaxHP uint16 // Player only.
28968 CollideWithNodes bool
28969 Weight float32 // deprecated
28973 VisualSize [3]float32
28975 SpriteSheetSize [2]int16 // in sprites.
28976 SpritePos [2]int16 // in sprite sheet.
28978 MakeFootstepSnds bool
28979 RotateSpeed float32 // in radians per second.
28981 Colors []color.NRGBA
28982 CollideWithAOs bool
28985 FaceRotateDirOff float32 // in degrees.
28988 NametagColor color.NRGBA
28989 FaceRotateSpeed float32 // in degrees per second.
28993 MaxBreath uint16 // Player only.
28994 EyeHeight float32 // Player only.
28995 ZoomFOV float32 // in degrees. Player only.
28996 UseTextureAlpha bool
28997 DmgTextureMod Texture // suffix
29000 NametagBG color.NRGBA
29001 }))(obj)).NametagBG
29002 w.Write([]byte{x.A, x.R, x.G, x.B})
29006 func (obj *AOProps) Deserialize(r io.Reader) {
29009 local342 := uint8(4)
29014 if local341 != local342 {
29015 chk(fmt.Errorf("const %v: %v", "uint8(4)", local341))
29019 p := &(*(*(struct {
29020 MaxHP uint16 // Player only.
29021 CollideWithNodes bool
29022 Weight float32 // deprecated
29026 VisualSize [3]float32
29028 SpriteSheetSize [2]int16 // in sprites.
29029 SpritePos [2]int16 // in sprite sheet.
29031 MakeFootstepSnds bool
29032 RotateSpeed float32 // in radians per second.
29034 Colors []color.NRGBA
29035 CollideWithAOs bool
29038 FaceRotateDirOff float32 // in degrees.
29041 NametagColor color.NRGBA
29042 FaceRotateSpeed float32 // in degrees per second.
29046 MaxBreath uint16 // Player only.
29047 EyeHeight float32 // Player only.
29048 ZoomFOV float32 // in degrees. Player only.
29049 UseTextureAlpha bool
29050 DmgTextureMod Texture // suffix
29053 NametagBG color.NRGBA
29058 p := &(*(*(struct {
29059 MaxHP uint16 // Player only.
29060 CollideWithNodes bool
29061 Weight float32 // deprecated
29065 VisualSize [3]float32
29067 SpriteSheetSize [2]int16 // in sprites.
29068 SpritePos [2]int16 // in sprite sheet.
29070 MakeFootstepSnds bool
29071 RotateSpeed float32 // in radians per second.
29073 Colors []color.NRGBA
29074 CollideWithAOs bool
29077 FaceRotateDirOff float32 // in degrees.
29080 NametagColor color.NRGBA
29081 FaceRotateSpeed float32 // in degrees per second.
29085 MaxBreath uint16 // Player only.
29086 EyeHeight float32 // Player only.
29087 ZoomFOV float32 // in degrees. Player only.
29088 UseTextureAlpha bool
29089 DmgTextureMod Texture // suffix
29092 NametagBG color.NRGBA
29093 }))(obj)).CollideWithNodes
29094 switch n := read8(r); n {
29100 chk(fmt.Errorf("invalid bool: %d", n))
29104 p := &(*(*(struct {
29105 MaxHP uint16 // Player only.
29106 CollideWithNodes bool
29107 Weight float32 // deprecated
29111 VisualSize [3]float32
29113 SpriteSheetSize [2]int16 // in sprites.
29114 SpritePos [2]int16 // in sprite sheet.
29116 MakeFootstepSnds bool
29117 RotateSpeed float32 // in radians per second.
29119 Colors []color.NRGBA
29120 CollideWithAOs bool
29123 FaceRotateDirOff float32 // in degrees.
29126 NametagColor color.NRGBA
29127 FaceRotateSpeed float32 // in degrees per second.
29131 MaxBreath uint16 // Player only.
29132 EyeHeight float32 // Player only.
29133 ZoomFOV float32 // in degrees. Player only.
29134 UseTextureAlpha bool
29135 DmgTextureMod Texture // suffix
29138 NametagBG color.NRGBA
29140 *p = math.Float32frombits(read32(r))
29142 if err := pcall(func() {
29144 MaxHP uint16 // Player only.
29145 CollideWithNodes bool
29146 Weight float32 // deprecated
29150 VisualSize [3]float32
29152 SpriteSheetSize [2]int16 // in sprites.
29153 SpritePos [2]int16 // in sprite sheet.
29155 MakeFootstepSnds bool
29156 RotateSpeed float32 // in radians per second.
29158 Colors []color.NRGBA
29159 CollideWithAOs bool
29162 FaceRotateDirOff float32 // in degrees.
29165 NametagColor color.NRGBA
29166 FaceRotateSpeed float32 // in degrees per second.
29170 MaxBreath uint16 // Player only.
29171 EyeHeight float32 // Player only.
29172 ZoomFOV float32 // in degrees. Player only.
29173 UseTextureAlpha bool
29174 DmgTextureMod Texture // suffix
29177 NametagBG color.NRGBA
29178 }))(obj)).ColBox).Deserialize(r)
29183 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29185 if err := pcall(func() {
29187 MaxHP uint16 // Player only.
29188 CollideWithNodes bool
29189 Weight float32 // deprecated
29193 VisualSize [3]float32
29195 SpriteSheetSize [2]int16 // in sprites.
29196 SpritePos [2]int16 // in sprite sheet.
29198 MakeFootstepSnds bool
29199 RotateSpeed float32 // in radians per second.
29201 Colors []color.NRGBA
29202 CollideWithAOs bool
29205 FaceRotateDirOff float32 // in degrees.
29208 NametagColor color.NRGBA
29209 FaceRotateSpeed float32 // in degrees per second.
29213 MaxBreath uint16 // Player only.
29214 EyeHeight float32 // Player only.
29215 ZoomFOV float32 // in degrees. Player only.
29216 UseTextureAlpha bool
29217 DmgTextureMod Texture // suffix
29220 NametagBG color.NRGBA
29221 }))(obj)).SelBox).Deserialize(r)
29226 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29229 p := &(*(*(struct {
29230 MaxHP uint16 // Player only.
29231 CollideWithNodes bool
29232 Weight float32 // deprecated
29236 VisualSize [3]float32
29238 SpriteSheetSize [2]int16 // in sprites.
29239 SpritePos [2]int16 // in sprite sheet.
29241 MakeFootstepSnds bool
29242 RotateSpeed float32 // in radians per second.
29244 Colors []color.NRGBA
29245 CollideWithAOs bool
29248 FaceRotateDirOff float32 // in degrees.
29251 NametagColor color.NRGBA
29252 FaceRotateSpeed float32 // in degrees per second.
29256 MaxBreath uint16 // Player only.
29257 EyeHeight float32 // Player only.
29258 ZoomFOV float32 // in degrees. Player only.
29259 UseTextureAlpha bool
29260 DmgTextureMod Texture // suffix
29263 NametagBG color.NRGBA
29264 }))(obj)).Pointable
29265 switch n := read8(r); n {
29271 chk(fmt.Errorf("invalid bool: %d", n))
29274 var local343 []uint8
29275 var local344 uint16
29280 (local343) = make([]uint8, local344)
29282 _, err := io.ReadFull(r, (local343)[:])
29286 MaxHP uint16 // Player only.
29287 CollideWithNodes bool
29288 Weight float32 // deprecated
29292 VisualSize [3]float32
29294 SpriteSheetSize [2]int16 // in sprites.
29295 SpritePos [2]int16 // in sprite sheet.
29297 MakeFootstepSnds bool
29298 RotateSpeed float32 // in radians per second.
29300 Colors []color.NRGBA
29301 CollideWithAOs bool
29304 FaceRotateDirOff float32 // in degrees.
29307 NametagColor color.NRGBA
29308 FaceRotateSpeed float32 // in degrees per second.
29312 MaxBreath uint16 // Player only.
29313 EyeHeight float32 // Player only.
29314 ZoomFOV float32 // in degrees. Player only.
29315 UseTextureAlpha bool
29316 DmgTextureMod Texture // suffix
29319 NametagBG color.NRGBA
29320 }))(obj)).Visual) = string(local343)
29321 for local345 := range (*(*(struct {
29322 MaxHP uint16 // Player only.
29323 CollideWithNodes bool
29324 Weight float32 // deprecated
29328 VisualSize [3]float32
29330 SpriteSheetSize [2]int16 // in sprites.
29331 SpritePos [2]int16 // in sprite sheet.
29333 MakeFootstepSnds bool
29334 RotateSpeed float32 // in radians per second.
29336 Colors []color.NRGBA
29337 CollideWithAOs bool
29340 FaceRotateDirOff float32 // in degrees.
29343 NametagColor color.NRGBA
29344 FaceRotateSpeed float32 // in degrees per second.
29348 MaxBreath uint16 // Player only.
29349 EyeHeight float32 // Player only.
29350 ZoomFOV float32 // in degrees. Player only.
29351 UseTextureAlpha bool
29352 DmgTextureMod Texture // suffix
29355 NametagBG color.NRGBA
29356 }))(obj)).VisualSize {
29358 p := &((*(*(struct {
29359 MaxHP uint16 // Player only.
29360 CollideWithNodes bool
29361 Weight float32 // deprecated
29365 VisualSize [3]float32
29367 SpriteSheetSize [2]int16 // in sprites.
29368 SpritePos [2]int16 // in sprite sheet.
29370 MakeFootstepSnds bool
29371 RotateSpeed float32 // in radians per second.
29373 Colors []color.NRGBA
29374 CollideWithAOs bool
29377 FaceRotateDirOff float32 // in degrees.
29380 NametagColor color.NRGBA
29381 FaceRotateSpeed float32 // in degrees per second.
29385 MaxBreath uint16 // Player only.
29386 EyeHeight float32 // Player only.
29387 ZoomFOV float32 // in degrees. Player only.
29388 UseTextureAlpha bool
29389 DmgTextureMod Texture // suffix
29392 NametagBG color.NRGBA
29393 }))(obj)).VisualSize)[local345]
29394 *p = math.Float32frombits(read32(r))
29397 var local346 uint16
29403 MaxHP uint16 // Player only.
29404 CollideWithNodes bool
29405 Weight float32 // deprecated
29409 VisualSize [3]float32
29411 SpriteSheetSize [2]int16 // in sprites.
29412 SpritePos [2]int16 // in sprite sheet.
29414 MakeFootstepSnds bool
29415 RotateSpeed float32 // in radians per second.
29417 Colors []color.NRGBA
29418 CollideWithAOs bool
29421 FaceRotateDirOff float32 // in degrees.
29424 NametagColor color.NRGBA
29425 FaceRotateSpeed float32 // in degrees per second.
29429 MaxBreath uint16 // Player only.
29430 EyeHeight float32 // Player only.
29431 ZoomFOV float32 // in degrees. Player only.
29432 UseTextureAlpha bool
29433 DmgTextureMod Texture // suffix
29436 NametagBG color.NRGBA
29437 }))(obj)).Textures) = make([]Texture, local346)
29438 for local347 := range (*(*(struct {
29439 MaxHP uint16 // Player only.
29440 CollideWithNodes bool
29441 Weight float32 // deprecated
29445 VisualSize [3]float32
29447 SpriteSheetSize [2]int16 // in sprites.
29448 SpritePos [2]int16 // in sprite sheet.
29450 MakeFootstepSnds bool
29451 RotateSpeed float32 // in radians per second.
29453 Colors []color.NRGBA
29454 CollideWithAOs bool
29457 FaceRotateDirOff float32 // in degrees.
29460 NametagColor color.NRGBA
29461 FaceRotateSpeed float32 // in degrees per second.
29465 MaxBreath uint16 // Player only.
29466 EyeHeight float32 // Player only.
29467 ZoomFOV float32 // in degrees. Player only.
29468 UseTextureAlpha bool
29469 DmgTextureMod Texture // suffix
29472 NametagBG color.NRGBA
29473 }))(obj)).Textures {
29474 if err := pcall(func() {
29476 MaxHP uint16 // Player only.
29477 CollideWithNodes bool
29478 Weight float32 // deprecated
29482 VisualSize [3]float32
29484 SpriteSheetSize [2]int16 // in sprites.
29485 SpritePos [2]int16 // in sprite sheet.
29487 MakeFootstepSnds bool
29488 RotateSpeed float32 // in radians per second.
29490 Colors []color.NRGBA
29491 CollideWithAOs bool
29494 FaceRotateDirOff float32 // in degrees.
29497 NametagColor color.NRGBA
29498 FaceRotateSpeed float32 // in degrees per second.
29502 MaxBreath uint16 // Player only.
29503 EyeHeight float32 // Player only.
29504 ZoomFOV float32 // in degrees. Player only.
29505 UseTextureAlpha bool
29506 DmgTextureMod Texture // suffix
29509 NametagBG color.NRGBA
29510 }))(obj)).Textures)[local347]).Deserialize(r)
29515 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29518 for local348 := range (*(*(struct {
29519 MaxHP uint16 // Player only.
29520 CollideWithNodes bool
29521 Weight float32 // deprecated
29525 VisualSize [3]float32
29527 SpriteSheetSize [2]int16 // in sprites.
29528 SpritePos [2]int16 // in sprite sheet.
29530 MakeFootstepSnds bool
29531 RotateSpeed float32 // in radians per second.
29533 Colors []color.NRGBA
29534 CollideWithAOs bool
29537 FaceRotateDirOff float32 // in degrees.
29540 NametagColor color.NRGBA
29541 FaceRotateSpeed float32 // in degrees per second.
29545 MaxBreath uint16 // Player only.
29546 EyeHeight float32 // Player only.
29547 ZoomFOV float32 // in degrees. Player only.
29548 UseTextureAlpha bool
29549 DmgTextureMod Texture // suffix
29552 NametagBG color.NRGBA
29553 }))(obj)).SpriteSheetSize {
29555 p := &((*(*(struct {
29556 MaxHP uint16 // Player only.
29557 CollideWithNodes bool
29558 Weight float32 // deprecated
29562 VisualSize [3]float32
29564 SpriteSheetSize [2]int16 // in sprites.
29565 SpritePos [2]int16 // in sprite sheet.
29567 MakeFootstepSnds bool
29568 RotateSpeed float32 // in radians per second.
29570 Colors []color.NRGBA
29571 CollideWithAOs bool
29574 FaceRotateDirOff float32 // in degrees.
29577 NametagColor color.NRGBA
29578 FaceRotateSpeed float32 // in degrees per second.
29582 MaxBreath uint16 // Player only.
29583 EyeHeight float32 // Player only.
29584 ZoomFOV float32 // in degrees. Player only.
29585 UseTextureAlpha bool
29586 DmgTextureMod Texture // suffix
29589 NametagBG color.NRGBA
29590 }))(obj)).SpriteSheetSize)[local348]
29591 *p = int16(read16(r))
29594 for local349 := range (*(*(struct {
29595 MaxHP uint16 // Player only.
29596 CollideWithNodes bool
29597 Weight float32 // deprecated
29601 VisualSize [3]float32
29603 SpriteSheetSize [2]int16 // in sprites.
29604 SpritePos [2]int16 // in sprite sheet.
29606 MakeFootstepSnds bool
29607 RotateSpeed float32 // in radians per second.
29609 Colors []color.NRGBA
29610 CollideWithAOs bool
29613 FaceRotateDirOff float32 // in degrees.
29616 NametagColor color.NRGBA
29617 FaceRotateSpeed float32 // in degrees per second.
29621 MaxBreath uint16 // Player only.
29622 EyeHeight float32 // Player only.
29623 ZoomFOV float32 // in degrees. Player only.
29624 UseTextureAlpha bool
29625 DmgTextureMod Texture // suffix
29628 NametagBG color.NRGBA
29629 }))(obj)).SpritePos {
29631 p := &((*(*(struct {
29632 MaxHP uint16 // Player only.
29633 CollideWithNodes bool
29634 Weight float32 // deprecated
29638 VisualSize [3]float32
29640 SpriteSheetSize [2]int16 // in sprites.
29641 SpritePos [2]int16 // in sprite sheet.
29643 MakeFootstepSnds bool
29644 RotateSpeed float32 // in radians per second.
29646 Colors []color.NRGBA
29647 CollideWithAOs bool
29650 FaceRotateDirOff float32 // in degrees.
29653 NametagColor color.NRGBA
29654 FaceRotateSpeed float32 // in degrees per second.
29658 MaxBreath uint16 // Player only.
29659 EyeHeight float32 // Player only.
29660 ZoomFOV float32 // in degrees. Player only.
29661 UseTextureAlpha bool
29662 DmgTextureMod Texture // suffix
29665 NametagBG color.NRGBA
29666 }))(obj)).SpritePos)[local349]
29667 *p = int16(read16(r))
29671 p := &(*(*(struct {
29672 MaxHP uint16 // Player only.
29673 CollideWithNodes bool
29674 Weight float32 // deprecated
29678 VisualSize [3]float32
29680 SpriteSheetSize [2]int16 // in sprites.
29681 SpritePos [2]int16 // in sprite sheet.
29683 MakeFootstepSnds bool
29684 RotateSpeed float32 // in radians per second.
29686 Colors []color.NRGBA
29687 CollideWithAOs bool
29690 FaceRotateDirOff float32 // in degrees.
29693 NametagColor color.NRGBA
29694 FaceRotateSpeed float32 // in degrees per second.
29698 MaxBreath uint16 // Player only.
29699 EyeHeight float32 // Player only.
29700 ZoomFOV float32 // in degrees. Player only.
29701 UseTextureAlpha bool
29702 DmgTextureMod Texture // suffix
29705 NametagBG color.NRGBA
29707 switch n := read8(r); n {
29713 chk(fmt.Errorf("invalid bool: %d", n))
29717 p := &(*(*(struct {
29718 MaxHP uint16 // Player only.
29719 CollideWithNodes bool
29720 Weight float32 // deprecated
29724 VisualSize [3]float32
29726 SpriteSheetSize [2]int16 // in sprites.
29727 SpritePos [2]int16 // in sprite sheet.
29729 MakeFootstepSnds bool
29730 RotateSpeed float32 // in radians per second.
29732 Colors []color.NRGBA
29733 CollideWithAOs bool
29736 FaceRotateDirOff float32 // in degrees.
29739 NametagColor color.NRGBA
29740 FaceRotateSpeed float32 // in degrees per second.
29744 MaxBreath uint16 // Player only.
29745 EyeHeight float32 // Player only.
29746 ZoomFOV float32 // in degrees. Player only.
29747 UseTextureAlpha bool
29748 DmgTextureMod Texture // suffix
29751 NametagBG color.NRGBA
29752 }))(obj)).MakeFootstepSnds
29753 switch n := read8(r); n {
29759 chk(fmt.Errorf("invalid bool: %d", n))
29763 p := &(*(*(struct {
29764 MaxHP uint16 // Player only.
29765 CollideWithNodes bool
29766 Weight float32 // deprecated
29770 VisualSize [3]float32
29772 SpriteSheetSize [2]int16 // in sprites.
29773 SpritePos [2]int16 // in sprite sheet.
29775 MakeFootstepSnds bool
29776 RotateSpeed float32 // in radians per second.
29778 Colors []color.NRGBA
29779 CollideWithAOs bool
29782 FaceRotateDirOff float32 // in degrees.
29785 NametagColor color.NRGBA
29786 FaceRotateSpeed float32 // in degrees per second.
29790 MaxBreath uint16 // Player only.
29791 EyeHeight float32 // Player only.
29792 ZoomFOV float32 // in degrees. Player only.
29793 UseTextureAlpha bool
29794 DmgTextureMod Texture // suffix
29797 NametagBG color.NRGBA
29798 }))(obj)).RotateSpeed
29799 *p = math.Float32frombits(read32(r))
29801 var local350 []uint8
29802 var local351 uint16
29807 (local350) = make([]uint8, local351)
29809 _, err := io.ReadFull(r, (local350)[:])
29813 MaxHP uint16 // Player only.
29814 CollideWithNodes bool
29815 Weight float32 // deprecated
29819 VisualSize [3]float32
29821 SpriteSheetSize [2]int16 // in sprites.
29822 SpritePos [2]int16 // in sprite sheet.
29824 MakeFootstepSnds bool
29825 RotateSpeed float32 // in radians per second.
29827 Colors []color.NRGBA
29828 CollideWithAOs bool
29831 FaceRotateDirOff float32 // in degrees.
29834 NametagColor color.NRGBA
29835 FaceRotateSpeed float32 // in degrees per second.
29839 MaxBreath uint16 // Player only.
29840 EyeHeight float32 // Player only.
29841 ZoomFOV float32 // in degrees. Player only.
29842 UseTextureAlpha bool
29843 DmgTextureMod Texture // suffix
29846 NametagBG color.NRGBA
29847 }))(obj)).Mesh) = string(local350)
29848 var local352 uint16
29854 MaxHP uint16 // Player only.
29855 CollideWithNodes bool
29856 Weight float32 // deprecated
29860 VisualSize [3]float32
29862 SpriteSheetSize [2]int16 // in sprites.
29863 SpritePos [2]int16 // in sprite sheet.
29865 MakeFootstepSnds bool
29866 RotateSpeed float32 // in radians per second.
29868 Colors []color.NRGBA
29869 CollideWithAOs bool
29872 FaceRotateDirOff float32 // in degrees.
29875 NametagColor color.NRGBA
29876 FaceRotateSpeed float32 // in degrees per second.
29880 MaxBreath uint16 // Player only.
29881 EyeHeight float32 // Player only.
29882 ZoomFOV float32 // in degrees. Player only.
29883 UseTextureAlpha bool
29884 DmgTextureMod Texture // suffix
29887 NametagBG color.NRGBA
29888 }))(obj)).Colors) = make([]color.NRGBA, local352)
29889 for local353 := range (*(*(struct {
29890 MaxHP uint16 // Player only.
29891 CollideWithNodes bool
29892 Weight float32 // deprecated
29896 VisualSize [3]float32
29898 SpriteSheetSize [2]int16 // in sprites.
29899 SpritePos [2]int16 // in sprite sheet.
29901 MakeFootstepSnds bool
29902 RotateSpeed float32 // in radians per second.
29904 Colors []color.NRGBA
29905 CollideWithAOs bool
29908 FaceRotateDirOff float32 // in degrees.
29911 NametagColor color.NRGBA
29912 FaceRotateSpeed float32 // in degrees per second.
29916 MaxBreath uint16 // Player only.
29917 EyeHeight float32 // Player only.
29918 ZoomFOV float32 // in degrees. Player only.
29919 UseTextureAlpha bool
29920 DmgTextureMod Texture // suffix
29923 NametagBG color.NRGBA
29926 p := &((*(*(struct {
29927 MaxHP uint16 // Player only.
29928 CollideWithNodes bool
29929 Weight float32 // deprecated
29933 VisualSize [3]float32
29935 SpriteSheetSize [2]int16 // in sprites.
29936 SpritePos [2]int16 // in sprite sheet.
29938 MakeFootstepSnds bool
29939 RotateSpeed float32 // in radians per second.
29941 Colors []color.NRGBA
29942 CollideWithAOs bool
29945 FaceRotateDirOff float32 // in degrees.
29948 NametagColor color.NRGBA
29949 FaceRotateSpeed float32 // in degrees per second.
29953 MaxBreath uint16 // Player only.
29954 EyeHeight float32 // Player only.
29955 ZoomFOV float32 // in degrees. Player only.
29956 UseTextureAlpha bool
29957 DmgTextureMod Texture // suffix
29960 NametagBG color.NRGBA
29961 }))(obj)).Colors)[local353]
29962 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
29966 p := &(*(*(struct {
29967 MaxHP uint16 // Player only.
29968 CollideWithNodes bool
29969 Weight float32 // deprecated
29973 VisualSize [3]float32
29975 SpriteSheetSize [2]int16 // in sprites.
29976 SpritePos [2]int16 // in sprite sheet.
29978 MakeFootstepSnds bool
29979 RotateSpeed float32 // in radians per second.
29981 Colors []color.NRGBA
29982 CollideWithAOs bool
29985 FaceRotateDirOff float32 // in degrees.
29988 NametagColor color.NRGBA
29989 FaceRotateSpeed float32 // in degrees per second.
29993 MaxBreath uint16 // Player only.
29994 EyeHeight float32 // Player only.
29995 ZoomFOV float32 // in degrees. Player only.
29996 UseTextureAlpha bool
29997 DmgTextureMod Texture // suffix
30000 NametagBG color.NRGBA
30001 }))(obj)).CollideWithAOs
30002 switch n := read8(r); n {
30008 chk(fmt.Errorf("invalid bool: %d", n))
30012 p := &(*(*(struct {
30013 MaxHP uint16 // Player only.
30014 CollideWithNodes bool
30015 Weight float32 // deprecated
30019 VisualSize [3]float32
30021 SpriteSheetSize [2]int16 // in sprites.
30022 SpritePos [2]int16 // in sprite sheet.
30024 MakeFootstepSnds bool
30025 RotateSpeed float32 // in radians per second.
30027 Colors []color.NRGBA
30028 CollideWithAOs bool
30031 FaceRotateDirOff float32 // in degrees.
30034 NametagColor color.NRGBA
30035 FaceRotateSpeed float32 // in degrees per second.
30039 MaxBreath uint16 // Player only.
30040 EyeHeight float32 // Player only.
30041 ZoomFOV float32 // in degrees. Player only.
30042 UseTextureAlpha bool
30043 DmgTextureMod Texture // suffix
30046 NametagBG color.NRGBA
30047 }))(obj)).StepHeight
30048 *p = math.Float32frombits(read32(r))
30051 p := &(*(*(struct {
30052 MaxHP uint16 // Player only.
30053 CollideWithNodes bool
30054 Weight float32 // deprecated
30058 VisualSize [3]float32
30060 SpriteSheetSize [2]int16 // in sprites.
30061 SpritePos [2]int16 // in sprite sheet.
30063 MakeFootstepSnds bool
30064 RotateSpeed float32 // in radians per second.
30066 Colors []color.NRGBA
30067 CollideWithAOs bool
30070 FaceRotateDirOff float32 // in degrees.
30073 NametagColor color.NRGBA
30074 FaceRotateSpeed float32 // in degrees per second.
30078 MaxBreath uint16 // Player only.
30079 EyeHeight float32 // Player only.
30080 ZoomFOV float32 // in degrees. Player only.
30081 UseTextureAlpha bool
30082 DmgTextureMod Texture // suffix
30085 NametagBG color.NRGBA
30086 }))(obj)).FaceRotateDir
30087 switch n := read8(r); n {
30093 chk(fmt.Errorf("invalid bool: %d", n))
30097 p := &(*(*(struct {
30098 MaxHP uint16 // Player only.
30099 CollideWithNodes bool
30100 Weight float32 // deprecated
30104 VisualSize [3]float32
30106 SpriteSheetSize [2]int16 // in sprites.
30107 SpritePos [2]int16 // in sprite sheet.
30109 MakeFootstepSnds bool
30110 RotateSpeed float32 // in radians per second.
30112 Colors []color.NRGBA
30113 CollideWithAOs bool
30116 FaceRotateDirOff float32 // in degrees.
30119 NametagColor color.NRGBA
30120 FaceRotateSpeed float32 // in degrees per second.
30124 MaxBreath uint16 // Player only.
30125 EyeHeight float32 // Player only.
30126 ZoomFOV float32 // in degrees. Player only.
30127 UseTextureAlpha bool
30128 DmgTextureMod Texture // suffix
30131 NametagBG color.NRGBA
30132 }))(obj)).FaceRotateDirOff
30133 *p = math.Float32frombits(read32(r))
30136 p := &(*(*(struct {
30137 MaxHP uint16 // Player only.
30138 CollideWithNodes bool
30139 Weight float32 // deprecated
30143 VisualSize [3]float32
30145 SpriteSheetSize [2]int16 // in sprites.
30146 SpritePos [2]int16 // in sprite sheet.
30148 MakeFootstepSnds bool
30149 RotateSpeed float32 // in radians per second.
30151 Colors []color.NRGBA
30152 CollideWithAOs bool
30155 FaceRotateDirOff float32 // in degrees.
30158 NametagColor color.NRGBA
30159 FaceRotateSpeed float32 // in degrees per second.
30163 MaxBreath uint16 // Player only.
30164 EyeHeight float32 // Player only.
30165 ZoomFOV float32 // in degrees. Player only.
30166 UseTextureAlpha bool
30167 DmgTextureMod Texture // suffix
30170 NametagBG color.NRGBA
30171 }))(obj)).BackfaceCull
30172 switch n := read8(r); n {
30178 chk(fmt.Errorf("invalid bool: %d", n))
30181 var local354 []uint8
30182 var local355 uint16
30187 (local354) = make([]uint8, local355)
30189 _, err := io.ReadFull(r, (local354)[:])
30193 MaxHP uint16 // Player only.
30194 CollideWithNodes bool
30195 Weight float32 // deprecated
30199 VisualSize [3]float32
30201 SpriteSheetSize [2]int16 // in sprites.
30202 SpritePos [2]int16 // in sprite sheet.
30204 MakeFootstepSnds bool
30205 RotateSpeed float32 // in radians per second.
30207 Colors []color.NRGBA
30208 CollideWithAOs bool
30211 FaceRotateDirOff float32 // in degrees.
30214 NametagColor color.NRGBA
30215 FaceRotateSpeed float32 // in degrees per second.
30219 MaxBreath uint16 // Player only.
30220 EyeHeight float32 // Player only.
30221 ZoomFOV float32 // in degrees. Player only.
30222 UseTextureAlpha bool
30223 DmgTextureMod Texture // suffix
30226 NametagBG color.NRGBA
30227 }))(obj)).Nametag) = string(local354)
30229 p := &(*(*(struct {
30230 MaxHP uint16 // Player only.
30231 CollideWithNodes bool
30232 Weight float32 // deprecated
30236 VisualSize [3]float32
30238 SpriteSheetSize [2]int16 // in sprites.
30239 SpritePos [2]int16 // in sprite sheet.
30241 MakeFootstepSnds bool
30242 RotateSpeed float32 // in radians per second.
30244 Colors []color.NRGBA
30245 CollideWithAOs bool
30248 FaceRotateDirOff float32 // in degrees.
30251 NametagColor color.NRGBA
30252 FaceRotateSpeed float32 // in degrees per second.
30256 MaxBreath uint16 // Player only.
30257 EyeHeight float32 // Player only.
30258 ZoomFOV float32 // in degrees. Player only.
30259 UseTextureAlpha bool
30260 DmgTextureMod Texture // suffix
30263 NametagBG color.NRGBA
30264 }))(obj)).NametagColor
30265 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30268 p := &(*(*(struct {
30269 MaxHP uint16 // Player only.
30270 CollideWithNodes bool
30271 Weight float32 // deprecated
30275 VisualSize [3]float32
30277 SpriteSheetSize [2]int16 // in sprites.
30278 SpritePos [2]int16 // in sprite sheet.
30280 MakeFootstepSnds bool
30281 RotateSpeed float32 // in radians per second.
30283 Colors []color.NRGBA
30284 CollideWithAOs bool
30287 FaceRotateDirOff float32 // in degrees.
30290 NametagColor color.NRGBA
30291 FaceRotateSpeed float32 // in degrees per second.
30295 MaxBreath uint16 // Player only.
30296 EyeHeight float32 // Player only.
30297 ZoomFOV float32 // in degrees. Player only.
30298 UseTextureAlpha bool
30299 DmgTextureMod Texture // suffix
30302 NametagBG color.NRGBA
30303 }))(obj)).FaceRotateSpeed
30304 *p = math.Float32frombits(read32(r))
30306 var local356 []uint8
30307 var local357 uint16
30312 (local356) = make([]uint8, local357)
30314 _, err := io.ReadFull(r, (local356)[:])
30318 MaxHP uint16 // Player only.
30319 CollideWithNodes bool
30320 Weight float32 // deprecated
30324 VisualSize [3]float32
30326 SpriteSheetSize [2]int16 // in sprites.
30327 SpritePos [2]int16 // in sprite sheet.
30329 MakeFootstepSnds bool
30330 RotateSpeed float32 // in radians per second.
30332 Colors []color.NRGBA
30333 CollideWithAOs bool
30336 FaceRotateDirOff float32 // in degrees.
30339 NametagColor color.NRGBA
30340 FaceRotateSpeed float32 // in degrees per second.
30344 MaxBreath uint16 // Player only.
30345 EyeHeight float32 // Player only.
30346 ZoomFOV float32 // in degrees. Player only.
30347 UseTextureAlpha bool
30348 DmgTextureMod Texture // suffix
30351 NametagBG color.NRGBA
30352 }))(obj)).Infotext) = string(local356)
30353 var local358 []uint8
30354 var local359 uint16
30359 (local358) = make([]uint8, local359)
30361 _, err := io.ReadFull(r, (local358)[:])
30365 MaxHP uint16 // Player only.
30366 CollideWithNodes bool
30367 Weight float32 // deprecated
30371 VisualSize [3]float32
30373 SpriteSheetSize [2]int16 // in sprites.
30374 SpritePos [2]int16 // in sprite sheet.
30376 MakeFootstepSnds bool
30377 RotateSpeed float32 // in radians per second.
30379 Colors []color.NRGBA
30380 CollideWithAOs bool
30383 FaceRotateDirOff float32 // in degrees.
30386 NametagColor color.NRGBA
30387 FaceRotateSpeed float32 // in degrees per second.
30391 MaxBreath uint16 // Player only.
30392 EyeHeight float32 // Player only.
30393 ZoomFOV float32 // in degrees. Player only.
30394 UseTextureAlpha bool
30395 DmgTextureMod Texture // suffix
30398 NametagBG color.NRGBA
30399 }))(obj)).Itemstring) = string(local358)
30401 p := &(*(*(struct {
30402 MaxHP uint16 // Player only.
30403 CollideWithNodes bool
30404 Weight float32 // deprecated
30408 VisualSize [3]float32
30410 SpriteSheetSize [2]int16 // in sprites.
30411 SpritePos [2]int16 // in sprite sheet.
30413 MakeFootstepSnds bool
30414 RotateSpeed float32 // in radians per second.
30416 Colors []color.NRGBA
30417 CollideWithAOs bool
30420 FaceRotateDirOff float32 // in degrees.
30423 NametagColor color.NRGBA
30424 FaceRotateSpeed float32 // in degrees per second.
30428 MaxBreath uint16 // Player only.
30429 EyeHeight float32 // Player only.
30430 ZoomFOV float32 // in degrees. Player only.
30431 UseTextureAlpha bool
30432 DmgTextureMod Texture // suffix
30435 NametagBG color.NRGBA
30437 *p = int8(read8(r))
30440 p := &(*(*(struct {
30441 MaxHP uint16 // Player only.
30442 CollideWithNodes bool
30443 Weight float32 // deprecated
30447 VisualSize [3]float32
30449 SpriteSheetSize [2]int16 // in sprites.
30450 SpritePos [2]int16 // in sprite sheet.
30452 MakeFootstepSnds bool
30453 RotateSpeed float32 // in radians per second.
30455 Colors []color.NRGBA
30456 CollideWithAOs bool
30459 FaceRotateDirOff float32 // in degrees.
30462 NametagColor color.NRGBA
30463 FaceRotateSpeed float32 // in degrees per second.
30467 MaxBreath uint16 // Player only.
30468 EyeHeight float32 // Player only.
30469 ZoomFOV float32 // in degrees. Player only.
30470 UseTextureAlpha bool
30471 DmgTextureMod Texture // suffix
30474 NametagBG color.NRGBA
30475 }))(obj)).MaxBreath
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
30514 }))(obj)).EyeHeight
30515 *p = math.Float32frombits(read32(r))
30518 p := &(*(*(struct {
30519 MaxHP uint16 // Player only.
30520 CollideWithNodes bool
30521 Weight float32 // deprecated
30525 VisualSize [3]float32
30527 SpriteSheetSize [2]int16 // in sprites.
30528 SpritePos [2]int16 // in sprite sheet.
30530 MakeFootstepSnds bool
30531 RotateSpeed float32 // in radians per second.
30533 Colors []color.NRGBA
30534 CollideWithAOs bool
30537 FaceRotateDirOff float32 // in degrees.
30540 NametagColor color.NRGBA
30541 FaceRotateSpeed float32 // in degrees per second.
30545 MaxBreath uint16 // Player only.
30546 EyeHeight float32 // Player only.
30547 ZoomFOV float32 // in degrees. Player only.
30548 UseTextureAlpha bool
30549 DmgTextureMod Texture // suffix
30552 NametagBG color.NRGBA
30554 *p = math.Float32frombits(read32(r))
30557 p := &(*(*(struct {
30558 MaxHP uint16 // Player only.
30559 CollideWithNodes bool
30560 Weight float32 // deprecated
30564 VisualSize [3]float32
30566 SpriteSheetSize [2]int16 // in sprites.
30567 SpritePos [2]int16 // in sprite sheet.
30569 MakeFootstepSnds bool
30570 RotateSpeed float32 // in radians per second.
30572 Colors []color.NRGBA
30573 CollideWithAOs bool
30576 FaceRotateDirOff float32 // in degrees.
30579 NametagColor color.NRGBA
30580 FaceRotateSpeed float32 // in degrees per second.
30584 MaxBreath uint16 // Player only.
30585 EyeHeight float32 // Player only.
30586 ZoomFOV float32 // in degrees. Player only.
30587 UseTextureAlpha bool
30588 DmgTextureMod Texture // suffix
30591 NametagBG color.NRGBA
30592 }))(obj)).UseTextureAlpha
30593 switch n := read8(r); n {
30599 chk(fmt.Errorf("invalid bool: %d", n))
30602 if err := pcall(func() {
30604 MaxHP uint16 // Player only.
30605 CollideWithNodes bool
30606 Weight float32 // deprecated
30610 VisualSize [3]float32
30612 SpriteSheetSize [2]int16 // in sprites.
30613 SpritePos [2]int16 // in sprite sheet.
30615 MakeFootstepSnds bool
30616 RotateSpeed float32 // in radians per second.
30618 Colors []color.NRGBA
30619 CollideWithAOs bool
30622 FaceRotateDirOff float32 // in degrees.
30625 NametagColor color.NRGBA
30626 FaceRotateSpeed float32 // in degrees per second.
30630 MaxBreath uint16 // Player only.
30631 EyeHeight float32 // Player only.
30632 ZoomFOV float32 // in degrees. Player only.
30633 UseTextureAlpha bool
30634 DmgTextureMod Texture // suffix
30637 NametagBG color.NRGBA
30638 }))(obj)).DmgTextureMod).Deserialize(r)
30643 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
30646 p := &(*(*(struct {
30647 MaxHP uint16 // Player only.
30648 CollideWithNodes bool
30649 Weight float32 // deprecated
30653 VisualSize [3]float32
30655 SpriteSheetSize [2]int16 // in sprites.
30656 SpritePos [2]int16 // in sprite sheet.
30658 MakeFootstepSnds bool
30659 RotateSpeed float32 // in radians per second.
30661 Colors []color.NRGBA
30662 CollideWithAOs bool
30665 FaceRotateDirOff float32 // in degrees.
30668 NametagColor color.NRGBA
30669 FaceRotateSpeed float32 // in degrees per second.
30673 MaxBreath uint16 // Player only.
30674 EyeHeight float32 // Player only.
30675 ZoomFOV float32 // in degrees. Player only.
30676 UseTextureAlpha bool
30677 DmgTextureMod Texture // suffix
30680 NametagBG color.NRGBA
30682 switch n := read8(r); n {
30688 chk(fmt.Errorf("invalid bool: %d", n))
30692 p := &(*(*(struct {
30693 MaxHP uint16 // Player only.
30694 CollideWithNodes bool
30695 Weight float32 // deprecated
30699 VisualSize [3]float32
30701 SpriteSheetSize [2]int16 // in sprites.
30702 SpritePos [2]int16 // in sprite sheet.
30704 MakeFootstepSnds bool
30705 RotateSpeed float32 // in radians per second.
30707 Colors []color.NRGBA
30708 CollideWithAOs bool
30711 FaceRotateDirOff float32 // in degrees.
30714 NametagColor color.NRGBA
30715 FaceRotateSpeed float32 // in degrees per second.
30719 MaxBreath uint16 // Player only.
30720 EyeHeight float32 // Player only.
30721 ZoomFOV float32 // in degrees. Player only.
30722 UseTextureAlpha bool
30723 DmgTextureMod Texture // suffix
30726 NametagBG color.NRGBA
30727 }))(obj)).ShowOnMinimap
30728 switch n := read8(r); n {
30734 chk(fmt.Errorf("invalid bool: %d", n))
30738 p := &(*(*(struct {
30739 MaxHP uint16 // Player only.
30740 CollideWithNodes bool
30741 Weight float32 // deprecated
30745 VisualSize [3]float32
30747 SpriteSheetSize [2]int16 // in sprites.
30748 SpritePos [2]int16 // in sprite sheet.
30750 MakeFootstepSnds bool
30751 RotateSpeed float32 // in radians per second.
30753 Colors []color.NRGBA
30754 CollideWithAOs bool
30757 FaceRotateDirOff float32 // in degrees.
30760 NametagColor color.NRGBA
30761 FaceRotateSpeed float32 // in degrees per second.
30765 MaxBreath uint16 // Player only.
30766 EyeHeight float32 // Player only.
30767 ZoomFOV float32 // in degrees. Player only.
30768 UseTextureAlpha bool
30769 DmgTextureMod Texture // suffix
30772 NametagBG color.NRGBA
30773 }))(obj)).NametagBG
30774 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30778 func (obj *AOPos) Serialize(w io.Writer) {
30779 if err := pcall(func() {
30787 UpdateInterval float32
30788 }))(obj)).Pos).Serialize(w)
30793 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
30795 if err := pcall(func() {
30803 UpdateInterval float32
30804 }))(obj)).Vel).Serialize(w)
30809 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30811 if err := pcall(func() {
30819 UpdateInterval float32
30820 }))(obj)).Acc).Serialize(w)
30825 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30827 for local360 := range (*(*(struct {
30834 UpdateInterval float32
30837 x := ((*(*(struct {
30844 UpdateInterval float32
30845 }))(obj)).Rot)[local360]
30846 write32(w, math.Float32bits(x))
30857 UpdateInterval float32
30858 }))(obj)).Interpolate
30873 UpdateInterval float32
30889 UpdateInterval float32
30890 }))(obj)).UpdateInterval
30891 write32(w, math.Float32bits(x))
30895 func (obj *AOPos) Deserialize(r io.Reader) {
30896 if err := pcall(func() {
30904 UpdateInterval float32
30905 }))(obj)).Pos).Deserialize(r)
30910 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
30912 if err := pcall(func() {
30920 UpdateInterval float32
30921 }))(obj)).Vel).Deserialize(r)
30926 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30928 if err := pcall(func() {
30936 UpdateInterval float32
30937 }))(obj)).Acc).Deserialize(r)
30942 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30944 for local361 := range (*(*(struct {
30951 UpdateInterval float32
30954 p := &((*(*(struct {
30961 UpdateInterval float32
30962 }))(obj)).Rot)[local361]
30963 *p = math.Float32frombits(read32(r))
30967 p := &(*(*(struct {
30974 UpdateInterval float32
30975 }))(obj)).Interpolate
30976 switch n := read8(r); n {
30982 chk(fmt.Errorf("invalid bool: %d", n))
30986 p := &(*(*(struct {
30993 UpdateInterval float32
30995 switch n := read8(r); n {
31001 chk(fmt.Errorf("invalid bool: %d", n))
31005 p := &(*(*(struct {
31012 UpdateInterval float32
31013 }))(obj)).UpdateInterval
31014 *p = math.Float32frombits(read32(r))
31018 func (obj *AOSprite) Serialize(w io.Writer) {
31019 for local362 := range (*(*(struct {
31022 FrameDuration float32
31023 ViewAngleFrames bool
31026 x := ((*(*(struct {
31029 FrameDuration float32
31030 ViewAngleFrames bool
31031 }))(obj)).Frame0)[local362]
31032 write16(w, uint16(x))
31039 FrameDuration float32
31040 ViewAngleFrames bool
31042 write16(w, uint16(x))
31048 FrameDuration float32
31049 ViewAngleFrames bool
31050 }))(obj)).FrameDuration
31051 write32(w, math.Float32bits(x))
31057 FrameDuration float32
31058 ViewAngleFrames bool
31059 }))(obj)).ViewAngleFrames
31068 func (obj *AOSprite) Deserialize(r io.Reader) {
31069 for local363 := range (*(*(struct {
31072 FrameDuration float32
31073 ViewAngleFrames bool
31076 p := &((*(*(struct {
31079 FrameDuration float32
31080 ViewAngleFrames bool
31081 }))(obj)).Frame0)[local363]
31082 *p = int16(read16(r))
31086 p := &(*(*(struct {
31089 FrameDuration float32
31090 ViewAngleFrames bool
31095 p := &(*(*(struct {
31098 FrameDuration float32
31099 ViewAngleFrames bool
31100 }))(obj)).FrameDuration
31101 *p = math.Float32frombits(read32(r))
31104 p := &(*(*(struct {
31107 FrameDuration float32
31108 ViewAngleFrames bool
31109 }))(obj)).ViewAngleFrames
31110 switch n := read8(r); n {
31116 chk(fmt.Errorf("invalid bool: %d", n))
31121 func (obj *Group) Serialize(w io.Writer) {
31122 if len(([]byte((*(*(struct {
31125 }))(obj)).Name))) > math.MaxUint16 {
31129 x := uint16(len(([]byte((*(*(struct {
31133 write16(w, uint16(x))
31136 _, err := w.Write(([]byte((*(*(struct {
31139 }))(obj)).Name))[:])
31147 write16(w, uint16(x))
31151 func (obj *Group) Deserialize(r io.Reader) {
31152 var local364 []uint8
31153 var local365 uint16
31158 (local364) = make([]uint8, local365)
31160 _, err := io.ReadFull(r, (local364)[:])
31166 }))(obj)).Name) = string(local364)
31168 p := &(*(*(struct {
31172 *p = int16(read16(r))
31176 func (obj *AOAnim) Serialize(w io.Writer) {
31177 for local366 := range (*(*(struct {
31184 x := ((*(*(struct {
31189 }))(obj)).Frames)[local366]
31190 write32(w, uint32(x))
31200 write32(w, math.Float32bits(x))
31209 write32(w, math.Float32bits(x))
31226 func (obj *AOAnim) Deserialize(r io.Reader) {
31227 for local367 := range (*(*(struct {
31234 p := &((*(*(struct {
31239 }))(obj)).Frames)[local367]
31240 *p = int32(read32(r))
31244 p := &(*(*(struct {
31250 *p = math.Float32frombits(read32(r))
31253 p := &(*(*(struct {
31259 *p = math.Float32frombits(read32(r))
31262 p := &(*(*(struct {
31268 switch n := read8(r); n {
31274 chk(fmt.Errorf("invalid bool: %d", n))
31279 func (obj *AOBonePos) Serialize(w io.Writer) {
31280 if err := pcall(func() {
31284 }))(obj)).Pos).Serialize(w)
31289 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31291 for local368 := range (*(*(struct {
31296 x := ((*(*(struct {
31299 }))(obj)).Rot)[local368]
31300 write32(w, math.Float32bits(x))
31305 func (obj *AOBonePos) Deserialize(r io.Reader) {
31306 if err := pcall(func() {
31310 }))(obj)).Pos).Deserialize(r)
31315 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31317 for local369 := range (*(*(struct {
31322 p := &((*(*(struct {
31325 }))(obj)).Rot)[local369]
31326 *p = math.Float32frombits(read32(r))
31331 func (obj *AOAttach) Serialize(w io.Writer) {
31332 if err := pcall(func() {
31339 }))(obj)).ParentID).Serialize(w)
31344 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31346 if len(([]byte((*(*(struct {
31352 }))(obj)).Bone))) > math.MaxUint16 {
31356 x := uint16(len(([]byte((*(*(struct {
31363 write16(w, uint16(x))
31366 _, err := w.Write(([]byte((*(*(struct {
31372 }))(obj)).Bone))[:])
31375 if err := pcall(func() {
31382 }))(obj)).Pos).Serialize(w)
31387 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31389 for local370 := range (*(*(struct {
31397 x := ((*(*(struct {
31403 }))(obj)).Rot)[local370]
31404 write32(w, math.Float32bits(x))
31414 }))(obj)).ForceVisible
31423 func (obj *AOAttach) Deserialize(r io.Reader) {
31424 if err := pcall(func() {
31431 }))(obj)).ParentID).Deserialize(r)
31436 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31438 var local371 []uint8
31439 var local372 uint16
31444 (local371) = make([]uint8, local372)
31446 _, err := io.ReadFull(r, (local371)[:])
31455 }))(obj)).Bone) = string(local371)
31456 if err := pcall(func() {
31463 }))(obj)).Pos).Deserialize(r)
31468 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31470 for local373 := range (*(*(struct {
31478 p := &((*(*(struct {
31484 }))(obj)).Rot)[local373]
31485 *p = math.Float32frombits(read32(r))
31489 p := &(*(*(struct {
31495 }))(obj)).ForceVisible
31496 switch n := read8(r); n {
31502 chk(fmt.Errorf("invalid bool: %d", n))
31507 func (obj *AOPhysOverride) Serialize(w io.Writer) {
31510 Walk, Jump, Gravity float32
31513 NoSneak, NoSneakGlitch, OldSneak bool
31515 write32(w, math.Float32bits(x))
31519 Walk, Jump, Gravity float32
31522 NoSneak, NoSneakGlitch, OldSneak bool
31524 write32(w, math.Float32bits(x))
31528 Walk, Jump, Gravity float32
31531 NoSneak, NoSneakGlitch, OldSneak bool
31533 write32(w, math.Float32bits(x))
31537 Walk, Jump, Gravity float32
31540 NoSneak, NoSneakGlitch, OldSneak bool
31550 Walk, Jump, Gravity float32
31553 NoSneak, NoSneakGlitch, OldSneak bool
31554 }))(obj)).NoSneakGlitch
31563 Walk, Jump, Gravity float32
31566 NoSneak, NoSneakGlitch, OldSneak bool
31576 func (obj *AOPhysOverride) Deserialize(r io.Reader) {
31578 p := &(*(*(struct {
31579 Walk, Jump, Gravity float32
31582 NoSneak, NoSneakGlitch, OldSneak bool
31584 *p = math.Float32frombits(read32(r))
31587 p := &(*(*(struct {
31588 Walk, Jump, Gravity float32
31591 NoSneak, NoSneakGlitch, OldSneak bool
31593 *p = math.Float32frombits(read32(r))
31596 p := &(*(*(struct {
31597 Walk, Jump, Gravity float32
31600 NoSneak, NoSneakGlitch, OldSneak bool
31602 *p = math.Float32frombits(read32(r))
31605 p := &(*(*(struct {
31606 Walk, Jump, Gravity float32
31609 NoSneak, NoSneakGlitch, OldSneak bool
31611 switch n := read8(r); n {
31617 chk(fmt.Errorf("invalid bool: %d", n))
31621 p := &(*(*(struct {
31622 Walk, Jump, Gravity float32
31625 NoSneak, NoSneakGlitch, OldSneak bool
31626 }))(obj)).NoSneakGlitch
31627 switch n := read8(r); n {
31633 chk(fmt.Errorf("invalid bool: %d", n))
31637 p := &(*(*(struct {
31638 Walk, Jump, Gravity float32
31641 NoSneak, NoSneakGlitch, OldSneak bool
31643 switch n := read8(r); n {
31649 chk(fmt.Errorf("invalid bool: %d", n))
31654 func (obj *aoType) Serialize(w io.Writer) {
31656 x := *(*(uint8))(obj)
31657 write8(w, uint8(x))
31661 func (obj *aoType) Deserialize(r io.Reader) {
31663 p := &*(*(uint8))(obj)
31668 func (obj *NodeMetaField) Serialize(w io.Writer) {
31669 if err := pcall(func() {
31673 }))(obj)).Field).Serialize(w)
31678 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31693 func (obj *NodeMetaField) Deserialize(r io.Reader) {
31694 if err := pcall(func() {
31698 }))(obj)).Field).Deserialize(r)
31703 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31706 p := &(*(*(struct {
31710 switch n := read8(r); n {
31716 chk(fmt.Errorf("invalid bool: %d", n))
31721 func (obj *MinimapType) Serialize(w io.Writer) {
31723 x := *(*(uint16))(obj)
31724 write16(w, uint16(x))
31728 func (obj *MinimapType) Deserialize(r io.Reader) {
31730 p := &*(*(uint16))(obj)
31735 func (obj *Param1Type) Serialize(w io.Writer) {
31737 x := *(*(uint8))(obj)
31738 write8(w, uint8(x))
31742 func (obj *Param1Type) Deserialize(r io.Reader) {
31744 p := &*(*(uint8))(obj)
31749 func (obj *Param2Type) Serialize(w io.Writer) {
31751 x := *(*(uint8))(obj)
31752 write8(w, uint8(x))
31756 func (obj *Param2Type) Deserialize(r io.Reader) {
31758 p := &*(*(uint8))(obj)
31763 func (obj *DrawType) Serialize(w io.Writer) {
31765 x := *(*(uint8))(obj)
31766 write8(w, uint8(x))
31770 func (obj *DrawType) Deserialize(r io.Reader) {
31772 p := &*(*(uint8))(obj)
31777 func (obj *TileDef) Serialize(w io.Writer) {
31779 local374 := uint8(6)
31782 write8(w, uint8(x))
31785 if err := pcall(func() {
31791 //mt:if %s.Flags&TileColor != 0
31794 //mt:if %s.Flags&TileScale != 0
31797 //mt:if %s.Flags&TileAlign != 0
31799 }))(obj)).Texture).Serialize(w)
31804 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
31806 if err := pcall(func() {
31812 //mt:if %s.Flags&TileColor != 0
31815 //mt:if %s.Flags&TileScale != 0
31818 //mt:if %s.Flags&TileAlign != 0
31820 }))(obj)).Anim).Serialize(w)
31825 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
31827 if err := pcall(func() {
31833 //mt:if %s.Flags&TileColor != 0
31836 //mt:if %s.Flags&TileScale != 0
31839 //mt:if %s.Flags&TileAlign != 0
31841 }))(obj)).Flags).Serialize(w)
31846 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
31853 //mt:if %s.Flags&TileColor != 0
31856 //mt:if %s.Flags&TileScale != 0
31859 //mt:if %s.Flags&TileAlign != 0
31861 }))(obj)).Flags&TileColor != 0 {
31868 //mt:if %s.Flags&TileColor != 0
31871 //mt:if %s.Flags&TileScale != 0
31874 //mt:if %s.Flags&TileAlign != 0
31877 write8(w, uint8(x))
31885 //mt:if %s.Flags&TileColor != 0
31888 //mt:if %s.Flags&TileScale != 0
31891 //mt:if %s.Flags&TileAlign != 0
31894 write8(w, uint8(x))
31902 //mt:if %s.Flags&TileColor != 0
31905 //mt:if %s.Flags&TileScale != 0
31908 //mt:if %s.Flags&TileAlign != 0
31911 write8(w, uint8(x))
31919 //mt:if %s.Flags&TileColor != 0
31922 //mt:if %s.Flags&TileScale != 0
31925 //mt:if %s.Flags&TileAlign != 0
31927 }))(obj)).Flags&TileScale != 0 {
31934 //mt:if %s.Flags&TileColor != 0
31937 //mt:if %s.Flags&TileScale != 0
31940 //mt:if %s.Flags&TileAlign != 0
31943 write8(w, uint8(x))
31951 //mt:if %s.Flags&TileColor != 0
31954 //mt:if %s.Flags&TileScale != 0
31957 //mt:if %s.Flags&TileAlign != 0
31959 }))(obj)).Flags&TileAlign != 0 {
31960 if err := pcall(func() {
31966 //mt:if %s.Flags&TileColor != 0
31969 //mt:if %s.Flags&TileScale != 0
31972 //mt:if %s.Flags&TileAlign != 0
31974 }))(obj)).Align).Serialize(w)
31979 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
31984 func (obj *TileDef) Deserialize(r io.Reader) {
31987 local376 := uint8(6)
31992 if local375 != local376 {
31993 chk(fmt.Errorf("const %v: %v", "uint8(6)", local375))
31996 if err := pcall(func() {
32002 //mt:if %s.Flags&TileColor != 0
32005 //mt:if %s.Flags&TileScale != 0
32008 //mt:if %s.Flags&TileAlign != 0
32010 }))(obj)).Texture).Deserialize(r)
32015 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32017 if err := pcall(func() {
32023 //mt:if %s.Flags&TileColor != 0
32026 //mt:if %s.Flags&TileScale != 0
32029 //mt:if %s.Flags&TileAlign != 0
32031 }))(obj)).Anim).Deserialize(r)
32036 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32038 if err := pcall(func() {
32044 //mt:if %s.Flags&TileColor != 0
32047 //mt:if %s.Flags&TileScale != 0
32050 //mt:if %s.Flags&TileAlign != 0
32052 }))(obj)).Flags).Deserialize(r)
32057 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32064 //mt:if %s.Flags&TileColor != 0
32067 //mt:if %s.Flags&TileScale != 0
32070 //mt:if %s.Flags&TileAlign != 0
32072 }))(obj)).Flags&TileColor != 0 {
32074 p := &(*(*(struct {
32079 //mt:if %s.Flags&TileColor != 0
32082 //mt:if %s.Flags&TileScale != 0
32085 //mt:if %s.Flags&TileAlign != 0
32091 p := &(*(*(struct {
32096 //mt:if %s.Flags&TileColor != 0
32099 //mt:if %s.Flags&TileScale != 0
32102 //mt:if %s.Flags&TileAlign != 0
32108 p := &(*(*(struct {
32113 //mt:if %s.Flags&TileColor != 0
32116 //mt:if %s.Flags&TileScale != 0
32119 //mt:if %s.Flags&TileAlign != 0
32130 //mt:if %s.Flags&TileColor != 0
32133 //mt:if %s.Flags&TileScale != 0
32136 //mt:if %s.Flags&TileAlign != 0
32138 }))(obj)).Flags&TileScale != 0 {
32140 p := &(*(*(struct {
32145 //mt:if %s.Flags&TileColor != 0
32148 //mt:if %s.Flags&TileScale != 0
32151 //mt:if %s.Flags&TileAlign != 0
32162 //mt:if %s.Flags&TileColor != 0
32165 //mt:if %s.Flags&TileScale != 0
32168 //mt:if %s.Flags&TileAlign != 0
32170 }))(obj)).Flags&TileAlign != 0 {
32171 if err := pcall(func() {
32177 //mt:if %s.Flags&TileColor != 0
32180 //mt:if %s.Flags&TileScale != 0
32183 //mt:if %s.Flags&TileAlign != 0
32185 }))(obj)).Align).Deserialize(r)
32190 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32195 func (obj *WaveType) Serialize(w io.Writer) {
32197 x := *(*(uint8))(obj)
32198 write8(w, uint8(x))
32202 func (obj *WaveType) Deserialize(r io.Reader) {
32204 p := &*(*(uint8))(obj)
32209 func (obj *LiquidType) Serialize(w io.Writer) {
32211 x := *(*(uint8))(obj)
32212 write8(w, uint8(x))
32216 func (obj *LiquidType) Deserialize(r io.Reader) {
32218 p := &*(*(uint8))(obj)
32223 func (obj *NodeBox) Serialize(w io.Writer) {
32225 local377 := uint8(6)
32228 write8(w, uint8(x))
32231 if err := pcall(func() {
32235 //mt:if %s.Type == MountedBox
32236 WallTop, WallBot, WallSides Box
32238 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32241 //mt:if %s.Type == ConnectedBox
32242 ConnDirs, DiscoDirs DirBoxes
32243 DiscoAll, DiscoSides []Box
32244 }))(obj)).Type).Serialize(w)
32249 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32254 //mt:if %s.Type == MountedBox
32255 WallTop, WallBot, WallSides Box
32257 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32260 //mt:if %s.Type == ConnectedBox
32261 ConnDirs, DiscoDirs DirBoxes
32262 DiscoAll, DiscoSides []Box
32263 }))(obj)).Type < maxBox) {
32264 chk(errors.New("assertion failed: %s.Type < maxBox"))
32269 //mt:if %s.Type == MountedBox
32270 WallTop, WallBot, WallSides Box
32272 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32275 //mt:if %s.Type == ConnectedBox
32276 ConnDirs, DiscoDirs DirBoxes
32277 DiscoAll, DiscoSides []Box
32278 }))(obj)).Type == MountedBox {
32279 if err := pcall(func() {
32283 //mt:if %s.Type == MountedBox
32284 WallTop, WallBot, WallSides Box
32286 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32289 //mt:if %s.Type == ConnectedBox
32290 ConnDirs, DiscoDirs DirBoxes
32291 DiscoAll, DiscoSides []Box
32292 }))(obj)).WallTop).Serialize(w)
32297 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32299 if err := pcall(func() {
32303 //mt:if %s.Type == MountedBox
32304 WallTop, WallBot, WallSides Box
32306 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32309 //mt:if %s.Type == ConnectedBox
32310 ConnDirs, DiscoDirs DirBoxes
32311 DiscoAll, DiscoSides []Box
32312 }))(obj)).WallBot).Serialize(w)
32317 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32319 if err := pcall(func() {
32323 //mt:if %s.Type == MountedBox
32324 WallTop, WallBot, WallSides Box
32326 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32329 //mt:if %s.Type == ConnectedBox
32330 ConnDirs, DiscoDirs DirBoxes
32331 DiscoAll, DiscoSides []Box
32332 }))(obj)).WallSides).Serialize(w)
32337 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32340 if t := (*(*(struct {
32343 //mt:if %s.Type == MountedBox
32344 WallTop, WallBot, WallSides Box
32346 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32349 //mt:if %s.Type == ConnectedBox
32350 ConnDirs, DiscoDirs DirBoxes
32351 DiscoAll, DiscoSides []Box
32352 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32353 if len(((*(*(struct {
32356 //mt:if %s.Type == MountedBox
32357 WallTop, WallBot, WallSides Box
32359 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32362 //mt:if %s.Type == ConnectedBox
32363 ConnDirs, DiscoDirs DirBoxes
32364 DiscoAll, DiscoSides []Box
32365 }))(obj)).Fixed)) > math.MaxUint16 {
32369 x := uint16(len(((*(*(struct {
32372 //mt:if %s.Type == MountedBox
32373 WallTop, WallBot, WallSides Box
32375 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32378 //mt:if %s.Type == ConnectedBox
32379 ConnDirs, DiscoDirs DirBoxes
32380 DiscoAll, DiscoSides []Box
32382 write16(w, uint16(x))
32384 for local378 := range (*(*(struct {
32387 //mt:if %s.Type == MountedBox
32388 WallTop, WallBot, WallSides Box
32390 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32393 //mt:if %s.Type == ConnectedBox
32394 ConnDirs, DiscoDirs DirBoxes
32395 DiscoAll, DiscoSides []Box
32397 if err := pcall(func() {
32401 //mt:if %s.Type == MountedBox
32402 WallTop, WallBot, WallSides Box
32404 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32407 //mt:if %s.Type == ConnectedBox
32408 ConnDirs, DiscoDirs DirBoxes
32409 DiscoAll, DiscoSides []Box
32410 }))(obj)).Fixed)[local378]).Serialize(w)
32415 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32422 //mt:if %s.Type == MountedBox
32423 WallTop, WallBot, WallSides Box
32425 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32428 //mt:if %s.Type == ConnectedBox
32429 ConnDirs, DiscoDirs DirBoxes
32430 DiscoAll, DiscoSides []Box
32431 }))(obj)).Type == ConnectedBox {
32432 if err := pcall(func() {
32436 //mt:if %s.Type == MountedBox
32437 WallTop, WallBot, WallSides Box
32439 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32442 //mt:if %s.Type == ConnectedBox
32443 ConnDirs, DiscoDirs DirBoxes
32444 DiscoAll, DiscoSides []Box
32445 }))(obj)).ConnDirs).Serialize(w)
32450 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32452 if err := pcall(func() {
32456 //mt:if %s.Type == MountedBox
32457 WallTop, WallBot, WallSides Box
32459 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32462 //mt:if %s.Type == ConnectedBox
32463 ConnDirs, DiscoDirs DirBoxes
32464 DiscoAll, DiscoSides []Box
32465 }))(obj)).DiscoDirs).Serialize(w)
32470 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32472 if len(((*(*(struct {
32475 //mt:if %s.Type == MountedBox
32476 WallTop, WallBot, WallSides Box
32478 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32481 //mt:if %s.Type == ConnectedBox
32482 ConnDirs, DiscoDirs DirBoxes
32483 DiscoAll, DiscoSides []Box
32484 }))(obj)).DiscoAll)) > math.MaxUint16 {
32488 x := uint16(len(((*(*(struct {
32491 //mt:if %s.Type == MountedBox
32492 WallTop, WallBot, WallSides Box
32494 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32497 //mt:if %s.Type == ConnectedBox
32498 ConnDirs, DiscoDirs DirBoxes
32499 DiscoAll, DiscoSides []Box
32500 }))(obj)).DiscoAll)))
32501 write16(w, uint16(x))
32503 for local379 := range (*(*(struct {
32506 //mt:if %s.Type == MountedBox
32507 WallTop, WallBot, WallSides Box
32509 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32512 //mt:if %s.Type == ConnectedBox
32513 ConnDirs, DiscoDirs DirBoxes
32514 DiscoAll, DiscoSides []Box
32515 }))(obj)).DiscoAll {
32516 if err := pcall(func() {
32520 //mt:if %s.Type == MountedBox
32521 WallTop, WallBot, WallSides Box
32523 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32526 //mt:if %s.Type == ConnectedBox
32527 ConnDirs, DiscoDirs DirBoxes
32528 DiscoAll, DiscoSides []Box
32529 }))(obj)).DiscoAll)[local379]).Serialize(w)
32534 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32537 if len(((*(*(struct {
32540 //mt:if %s.Type == MountedBox
32541 WallTop, WallBot, WallSides Box
32543 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32546 //mt:if %s.Type == ConnectedBox
32547 ConnDirs, DiscoDirs DirBoxes
32548 DiscoAll, DiscoSides []Box
32549 }))(obj)).DiscoSides)) > math.MaxUint16 {
32553 x := uint16(len(((*(*(struct {
32556 //mt:if %s.Type == MountedBox
32557 WallTop, WallBot, WallSides Box
32559 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32562 //mt:if %s.Type == ConnectedBox
32563 ConnDirs, DiscoDirs DirBoxes
32564 DiscoAll, DiscoSides []Box
32565 }))(obj)).DiscoSides)))
32566 write16(w, uint16(x))
32568 for local380 := range (*(*(struct {
32571 //mt:if %s.Type == MountedBox
32572 WallTop, WallBot, WallSides Box
32574 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32577 //mt:if %s.Type == ConnectedBox
32578 ConnDirs, DiscoDirs DirBoxes
32579 DiscoAll, DiscoSides []Box
32580 }))(obj)).DiscoSides {
32581 if err := pcall(func() {
32585 //mt:if %s.Type == MountedBox
32586 WallTop, WallBot, WallSides Box
32588 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32591 //mt:if %s.Type == ConnectedBox
32592 ConnDirs, DiscoDirs DirBoxes
32593 DiscoAll, DiscoSides []Box
32594 }))(obj)).DiscoSides)[local380]).Serialize(w)
32599 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32605 func (obj *NodeBox) Deserialize(r io.Reader) {
32608 local382 := uint8(6)
32613 if local381 != local382 {
32614 chk(fmt.Errorf("const %v: %v", "uint8(6)", local381))
32617 if err := pcall(func() {
32621 //mt:if %s.Type == MountedBox
32622 WallTop, WallBot, WallSides Box
32624 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32627 //mt:if %s.Type == ConnectedBox
32628 ConnDirs, DiscoDirs DirBoxes
32629 DiscoAll, DiscoSides []Box
32630 }))(obj)).Type).Deserialize(r)
32635 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32640 //mt:if %s.Type == MountedBox
32641 WallTop, WallBot, WallSides Box
32643 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32646 //mt:if %s.Type == ConnectedBox
32647 ConnDirs, DiscoDirs DirBoxes
32648 DiscoAll, DiscoSides []Box
32649 }))(obj)).Type < maxBox) {
32650 chk(errors.New("assertion failed: %s.Type < maxBox"))
32655 //mt:if %s.Type == MountedBox
32656 WallTop, WallBot, WallSides Box
32658 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32661 //mt:if %s.Type == ConnectedBox
32662 ConnDirs, DiscoDirs DirBoxes
32663 DiscoAll, DiscoSides []Box
32664 }))(obj)).Type == MountedBox {
32665 if err := pcall(func() {
32669 //mt:if %s.Type == MountedBox
32670 WallTop, WallBot, WallSides Box
32672 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32675 //mt:if %s.Type == ConnectedBox
32676 ConnDirs, DiscoDirs DirBoxes
32677 DiscoAll, DiscoSides []Box
32678 }))(obj)).WallTop).Deserialize(r)
32683 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32685 if err := pcall(func() {
32689 //mt:if %s.Type == MountedBox
32690 WallTop, WallBot, WallSides Box
32692 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32695 //mt:if %s.Type == ConnectedBox
32696 ConnDirs, DiscoDirs DirBoxes
32697 DiscoAll, DiscoSides []Box
32698 }))(obj)).WallBot).Deserialize(r)
32703 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32705 if err := pcall(func() {
32709 //mt:if %s.Type == MountedBox
32710 WallTop, WallBot, WallSides Box
32712 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32715 //mt:if %s.Type == ConnectedBox
32716 ConnDirs, DiscoDirs DirBoxes
32717 DiscoAll, DiscoSides []Box
32718 }))(obj)).WallSides).Deserialize(r)
32723 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32726 if t := (*(*(struct {
32729 //mt:if %s.Type == MountedBox
32730 WallTop, WallBot, WallSides Box
32732 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32735 //mt:if %s.Type == ConnectedBox
32736 ConnDirs, DiscoDirs DirBoxes
32737 DiscoAll, DiscoSides []Box
32738 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32739 var local383 uint16
32747 //mt:if %s.Type == MountedBox
32748 WallTop, WallBot, WallSides Box
32750 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32753 //mt:if %s.Type == ConnectedBox
32754 ConnDirs, DiscoDirs DirBoxes
32755 DiscoAll, DiscoSides []Box
32756 }))(obj)).Fixed) = make([]Box, local383)
32757 for local384 := range (*(*(struct {
32760 //mt:if %s.Type == MountedBox
32761 WallTop, WallBot, WallSides Box
32763 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32766 //mt:if %s.Type == ConnectedBox
32767 ConnDirs, DiscoDirs DirBoxes
32768 DiscoAll, DiscoSides []Box
32770 if err := pcall(func() {
32774 //mt:if %s.Type == MountedBox
32775 WallTop, WallBot, WallSides Box
32777 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32780 //mt:if %s.Type == ConnectedBox
32781 ConnDirs, DiscoDirs DirBoxes
32782 DiscoAll, DiscoSides []Box
32783 }))(obj)).Fixed)[local384]).Deserialize(r)
32788 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32795 //mt:if %s.Type == MountedBox
32796 WallTop, WallBot, WallSides Box
32798 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32801 //mt:if %s.Type == ConnectedBox
32802 ConnDirs, DiscoDirs DirBoxes
32803 DiscoAll, DiscoSides []Box
32804 }))(obj)).Type == ConnectedBox {
32805 if err := pcall(func() {
32809 //mt:if %s.Type == MountedBox
32810 WallTop, WallBot, WallSides Box
32812 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32815 //mt:if %s.Type == ConnectedBox
32816 ConnDirs, DiscoDirs DirBoxes
32817 DiscoAll, DiscoSides []Box
32818 }))(obj)).ConnDirs).Deserialize(r)
32823 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32825 if err := pcall(func() {
32829 //mt:if %s.Type == MountedBox
32830 WallTop, WallBot, WallSides Box
32832 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32835 //mt:if %s.Type == ConnectedBox
32836 ConnDirs, DiscoDirs DirBoxes
32837 DiscoAll, DiscoSides []Box
32838 }))(obj)).DiscoDirs).Deserialize(r)
32843 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32845 var local385 uint16
32853 //mt:if %s.Type == MountedBox
32854 WallTop, WallBot, WallSides Box
32856 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32859 //mt:if %s.Type == ConnectedBox
32860 ConnDirs, DiscoDirs DirBoxes
32861 DiscoAll, DiscoSides []Box
32862 }))(obj)).DiscoAll) = make([]Box, local385)
32863 for local386 := range (*(*(struct {
32866 //mt:if %s.Type == MountedBox
32867 WallTop, WallBot, WallSides Box
32869 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32872 //mt:if %s.Type == ConnectedBox
32873 ConnDirs, DiscoDirs DirBoxes
32874 DiscoAll, DiscoSides []Box
32875 }))(obj)).DiscoAll {
32876 if err := pcall(func() {
32880 //mt:if %s.Type == MountedBox
32881 WallTop, WallBot, WallSides Box
32883 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32886 //mt:if %s.Type == ConnectedBox
32887 ConnDirs, DiscoDirs DirBoxes
32888 DiscoAll, DiscoSides []Box
32889 }))(obj)).DiscoAll)[local386]).Deserialize(r)
32894 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32897 var local387 uint16
32905 //mt:if %s.Type == MountedBox
32906 WallTop, WallBot, WallSides Box
32908 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32911 //mt:if %s.Type == ConnectedBox
32912 ConnDirs, DiscoDirs DirBoxes
32913 DiscoAll, DiscoSides []Box
32914 }))(obj)).DiscoSides) = make([]Box, local387)
32915 for local388 := range (*(*(struct {
32918 //mt:if %s.Type == MountedBox
32919 WallTop, WallBot, WallSides Box
32921 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32924 //mt:if %s.Type == ConnectedBox
32925 ConnDirs, DiscoDirs DirBoxes
32926 DiscoAll, DiscoSides []Box
32927 }))(obj)).DiscoSides {
32928 if err := pcall(func() {
32932 //mt:if %s.Type == MountedBox
32933 WallTop, WallBot, WallSides Box
32935 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32938 //mt:if %s.Type == ConnectedBox
32939 ConnDirs, DiscoDirs DirBoxes
32940 DiscoAll, DiscoSides []Box
32941 }))(obj)).DiscoSides)[local388]).Deserialize(r)
32946 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32952 func (obj *SoundDef) Serialize(w io.Writer) {
32953 if len(([]byte((*(*(struct {
32955 Gain, Pitch, Fade float32
32956 }))(obj)).Name))) > math.MaxUint16 {
32960 x := uint16(len(([]byte((*(*(struct {
32962 Gain, Pitch, Fade float32
32964 write16(w, uint16(x))
32967 _, err := w.Write(([]byte((*(*(struct {
32969 Gain, Pitch, Fade float32
32970 }))(obj)).Name))[:])
32976 Gain, Pitch, Fade float32
32978 write32(w, math.Float32bits(x))
32983 Gain, Pitch, Fade float32
32985 write32(w, math.Float32bits(x))
32990 Gain, Pitch, Fade float32
32992 write32(w, math.Float32bits(x))
32996 func (obj *SoundDef) Deserialize(r io.Reader) {
32997 var local389 []uint8
32998 var local390 uint16
33003 (local389) = make([]uint8, local390)
33005 _, err := io.ReadFull(r, (local389)[:])
33010 Gain, Pitch, Fade float32
33011 }))(obj)).Name) = string(local389)
33013 p := &(*(*(struct {
33015 Gain, Pitch, Fade float32
33017 *p = math.Float32frombits(read32(r))
33020 p := &(*(*(struct {
33022 Gain, Pitch, Fade float32
33024 *p = math.Float32frombits(read32(r))
33027 p := &(*(*(struct {
33029 Gain, Pitch, Fade float32
33031 *p = math.Float32frombits(read32(r))
33035 func (obj *AlphaUse) Serialize(w io.Writer) {
33037 x := *(*(uint8))(obj)
33038 write8(w, uint8(x))
33042 func (obj *AlphaUse) Deserialize(r io.Reader) {
33044 p := &*(*(uint8))(obj)
33049 func (obj *Keys) Serialize(w io.Writer) {
33051 x := *(*(uint32))(obj)
33052 write32(w, uint32(x))
33056 func (obj *Keys) Deserialize(r io.Reader) {
33058 p := &*(*(uint32))(obj)
33063 func (obj *MapBlkFlags) Serialize(w io.Writer) {
33065 x := *(*(uint8))(obj)
33066 write8(w, uint8(x))
33070 func (obj *MapBlkFlags) Deserialize(r io.Reader) {
33072 p := &*(*(uint8))(obj)
33077 func (obj *LitFromBlks) Serialize(w io.Writer) {
33079 x := *(*(uint16))(obj)
33080 write16(w, uint16(x))
33084 func (obj *LitFromBlks) Deserialize(r io.Reader) {
33086 p := &*(*(uint16))(obj)
33091 func (obj *AOInitData) Serialize(w io.Writer) {
33093 local391 := uint8(1)
33096 write8(w, uint8(x))
33099 if len(([]byte((*(*(struct {
33112 // See (de)serialize.fmt.
33114 }))(obj)).Name))) > math.MaxUint16 {
33118 x := uint16(len(([]byte((*(*(struct {
33131 // See (de)serialize.fmt.
33134 write16(w, uint16(x))
33137 _, err := w.Write(([]byte((*(*(struct {
33150 // See (de)serialize.fmt.
33152 }))(obj)).Name))[:])
33169 // See (de)serialize.fmt.
33178 if err := pcall(func() {
33192 // See (de)serialize.fmt.
33194 }))(obj)).ID).Serialize(w)
33199 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33201 if err := pcall(func() {
33215 // See (de)serialize.fmt.
33217 }))(obj)).Pos).Serialize(w)
33222 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33224 for local392 := range (*(*(struct {
33237 // See (de)serialize.fmt.
33241 x := ((*(*(struct {
33254 // See (de)serialize.fmt.
33256 }))(obj)).Rot)[local392]
33257 write32(w, math.Float32bits(x))
33274 // See (de)serialize.fmt.
33277 write16(w, uint16(x))
33293 // See (de)serialize.fmt.
33296 { // For AOInitData.Msgs.
33297 if len(x) > math.MaxUint8 {
33300 write8(w, uint8(len(x)))
33301 for _, msg := range x {
33303 chk(writeAOMsg(&b, msg))
33304 if b.Len() > math.MaxUint32 {
33307 write32(w, uint32(b.Len()))
33308 _, err := b.WriteTo(w)
33315 func (obj *AOInitData) Deserialize(r io.Reader) {
33318 local394 := uint8(1)
33323 if local393 != local394 {
33324 chk(fmt.Errorf("const %v: %v", "uint8(1)", local393))
33327 var local395 []uint8
33328 var local396 uint16
33333 (local395) = make([]uint8, local396)
33335 _, err := io.ReadFull(r, (local395)[:])
33351 // See (de)serialize.fmt.
33353 }))(obj)).Name) = string(local395)
33355 p := &(*(*(struct {
33368 // See (de)serialize.fmt.
33371 switch n := read8(r); n {
33377 chk(fmt.Errorf("invalid bool: %d", n))
33380 if err := pcall(func() {
33394 // See (de)serialize.fmt.
33396 }))(obj)).ID).Deserialize(r)
33401 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33403 if err := pcall(func() {
33417 // See (de)serialize.fmt.
33419 }))(obj)).Pos).Deserialize(r)
33424 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33426 for local397 := range (*(*(struct {
33439 // See (de)serialize.fmt.
33443 p := &((*(*(struct {
33456 // See (de)serialize.fmt.
33458 }))(obj)).Rot)[local397]
33459 *p = math.Float32frombits(read32(r))
33463 p := &(*(*(struct {
33476 // See (de)serialize.fmt.
33482 p := &(*(*(struct {
33495 // See (de)serialize.fmt.
33498 { // For AOInitData.Msgs.
33499 *p = make([]AOMsg, read8(r))
33500 for i := range *p {
33501 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33502 msg, err := readAOMsg(r)
33506 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33513 func (obj *ItemType) Serialize(w io.Writer) {
33515 x := *(*(uint8))(obj)
33516 write8(w, uint8(x))
33520 func (obj *ItemType) Deserialize(r io.Reader) {
33522 p := &*(*(uint8))(obj)
33527 func (obj *ToolCaps) Serialize(w io.Writer) {
33528 if _ = (*(*(struct {
33529 //mt:if _ = %s; false
33532 AttackCooldown float32
33536 GroupCaps []ToolGroupCap
33546 //mt:if _ = %s; false
33549 AttackCooldown float32
33553 GroupCaps []ToolGroupCap
33570 w := new(bytes.Buffer)
33572 if r.N > 0 { (*(*(struct {
33573 //mt:if _ = %s; false
33576 AttackCooldown float32
33580 GroupCaps []ToolGroupCap
33587 }))(obj)).NonNil = true}; /**/{
33589 //mt:if _ = %s; false
33592 AttackCooldown float32
33596 GroupCaps []ToolGroupCap
33605 local398 := uint8(5)
33608 write8(w, uint8(x))
33613 //mt:if _ = %s; false
33616 AttackCooldown float32
33620 GroupCaps []ToolGroupCap
33627 }))(obj)).AttackCooldown
33628 write32(w, math.Float32bits(x))
33632 //mt:if _ = %s; false
33635 AttackCooldown float32
33639 GroupCaps []ToolGroupCap
33646 }))(obj)).MaxDropLvl
33647 write16(w, uint16(x))
33649 if len(((*(*(struct {
33650 //mt:if _ = %s; false
33653 AttackCooldown float32
33657 GroupCaps []ToolGroupCap
33664 }))(obj)).GroupCaps)) > math.MaxUint32 {
33668 x := uint32(len(((*(*(struct {
33669 //mt:if _ = %s; false
33672 AttackCooldown float32
33676 GroupCaps []ToolGroupCap
33683 }))(obj)).GroupCaps)))
33684 write32(w, uint32(x))
33686 for local399 := range (*(*(struct {
33687 //mt:if _ = %s; false
33690 AttackCooldown float32
33694 GroupCaps []ToolGroupCap
33701 }))(obj)).GroupCaps {
33702 if err := pcall(func() {
33704 //mt:if _ = %s; false
33707 AttackCooldown float32
33711 GroupCaps []ToolGroupCap
33718 }))(obj)).GroupCaps)[local399]).Serialize(w)
33723 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
33726 if len(((*(*(struct {
33727 //mt:if _ = %s; false
33730 AttackCooldown float32
33734 GroupCaps []ToolGroupCap
33741 }))(obj)).DmgGroups)) > math.MaxUint32 {
33745 x := uint32(len(((*(*(struct {
33746 //mt:if _ = %s; false
33749 AttackCooldown float32
33753 GroupCaps []ToolGroupCap
33760 }))(obj)).DmgGroups)))
33761 write32(w, uint32(x))
33763 for local400 := range (*(*(struct {
33764 //mt:if _ = %s; false
33767 AttackCooldown float32
33771 GroupCaps []ToolGroupCap
33778 }))(obj)).DmgGroups {
33779 if err := pcall(func() {
33781 //mt:if _ = %s; false
33784 AttackCooldown float32
33788 GroupCaps []ToolGroupCap
33795 }))(obj)).DmgGroups)[local400]).Serialize(w)
33800 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
33804 x := uint16((*(*(struct {
33805 //mt:if _ = %s; false
33808 AttackCooldown float32
33812 GroupCaps []ToolGroupCap
33819 }))(obj)).PunchUses)
33820 write16(w, uint16(x))
33827 if len((buf.Bytes())) > math.MaxUint16 {
33831 x := uint16(len((buf.Bytes())))
33832 write16(w, uint16(x))
33835 _, err := w.Write((buf.Bytes())[:])
33842 func (obj *ToolCaps) Deserialize(r io.Reader) {
33843 if _ = (*(*(struct {
33844 //mt:if _ = %s; false
33847 AttackCooldown float32
33851 GroupCaps []ToolGroupCap
33860 p := &(*(*(struct {
33861 //mt:if _ = %s; false
33864 AttackCooldown float32
33868 GroupCaps []ToolGroupCap
33876 switch n := read8(r); n {
33882 chk(fmt.Errorf("invalid bool: %d", n))
33892 r := &io.LimitedReader{R: r, N: int64(n)}
33895 //mt:if _ = %s; false
33898 AttackCooldown float32
33902 GroupCaps []ToolGroupCap
33909 }))(obj)).NonNil = true
33913 //mt:if _ = %s; false
33916 AttackCooldown float32
33920 GroupCaps []ToolGroupCap
33930 local402 := uint8(5)
33935 if local401 != local402 {
33936 chk(fmt.Errorf("const %v: %v", "uint8(5)", local401))
33940 p := &(*(*(struct {
33941 //mt:if _ = %s; false
33944 AttackCooldown float32
33948 GroupCaps []ToolGroupCap
33955 }))(obj)).AttackCooldown
33956 *p = math.Float32frombits(read32(r))
33959 p := &(*(*(struct {
33960 //mt:if _ = %s; false
33963 AttackCooldown float32
33967 GroupCaps []ToolGroupCap
33974 }))(obj)).MaxDropLvl
33975 *p = int16(read16(r))
33977 var local403 uint32
33983 //mt:if _ = %s; false
33986 AttackCooldown float32
33990 GroupCaps []ToolGroupCap
33997 }))(obj)).GroupCaps) = make([]ToolGroupCap, local403)
33998 for local404 := range (*(*(struct {
33999 //mt:if _ = %s; false
34002 AttackCooldown float32
34006 GroupCaps []ToolGroupCap
34013 }))(obj)).GroupCaps {
34014 if err := pcall(func() {
34016 //mt:if _ = %s; false
34019 AttackCooldown float32
34023 GroupCaps []ToolGroupCap
34030 }))(obj)).GroupCaps)[local404]).Deserialize(r)
34035 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
34038 var local405 uint32
34044 //mt:if _ = %s; false
34047 AttackCooldown float32
34051 GroupCaps []ToolGroupCap
34058 }))(obj)).DmgGroups) = make([]Group, local405)
34059 for local406 := range (*(*(struct {
34060 //mt:if _ = %s; false
34063 AttackCooldown float32
34067 GroupCaps []ToolGroupCap
34074 }))(obj)).DmgGroups {
34075 if err := pcall(func() {
34077 //mt:if _ = %s; false
34080 AttackCooldown float32
34084 GroupCaps []ToolGroupCap
34091 }))(obj)).DmgGroups)[local406]).Deserialize(r)
34096 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34099 var local407 uint16
34105 //mt:if _ = %s; false
34108 AttackCooldown float32
34112 GroupCaps []ToolGroupCap
34119 }))(obj)).PunchUses = int32(local407)
34123 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34128 func (obj *AnimType) Serialize(w io.Writer) {
34130 x := *(*(uint8))(obj)
34131 write8(w, uint8(x))
34135 func (obj *AnimType) Deserialize(r io.Reader) {
34137 p := &*(*(uint8))(obj)
34142 func (obj *HUDType) Serialize(w io.Writer) {
34144 x := *(*(uint8))(obj)
34145 write8(w, uint8(x))
34149 func (obj *HUDType) Deserialize(r io.Reader) {
34151 p := &*(*(uint8))(obj)
34156 func (obj *Box) Serialize(w io.Writer) {
34157 for local408 := range *(*([2]Vec))(obj) {
34158 if err := pcall(func() {
34159 ((*(*([2]Vec))(obj))[local408]).Serialize(w)
34164 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34169 func (obj *Box) Deserialize(r io.Reader) {
34170 for local409 := range *(*([2]Vec))(obj) {
34171 if err := pcall(func() {
34172 ((*(*([2]Vec))(obj))[local409]).Deserialize(r)
34177 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34182 func (obj *TileFlags) Serialize(w io.Writer) {
34184 x := *(*(uint16))(obj)
34185 write16(w, uint16(x))
34189 func (obj *TileFlags) Deserialize(r io.Reader) {
34191 p := &*(*(uint16))(obj)
34196 func (obj *AlignType) Serialize(w io.Writer) {
34198 x := *(*(uint8))(obj)
34199 write8(w, uint8(x))
34203 func (obj *AlignType) Deserialize(r io.Reader) {
34205 p := &*(*(uint8))(obj)
34210 func (obj *NodeBoxType) Serialize(w io.Writer) {
34212 x := *(*(uint8))(obj)
34213 write8(w, uint8(x))
34217 func (obj *NodeBoxType) Deserialize(r io.Reader) {
34219 p := &*(*(uint8))(obj)
34224 func (obj *DirBoxes) Serialize(w io.Writer) {
34225 if len(((*(*(struct {
34227 Front, Left, Back, Right []Box
34228 }))(obj)).Top)) > math.MaxUint16 {
34232 x := uint16(len(((*(*(struct {
34234 Front, Left, Back, Right []Box
34236 write16(w, uint16(x))
34238 for local410 := range (*(*(struct {
34240 Front, Left, Back, Right []Box
34242 if err := pcall(func() {
34245 Front, Left, Back, Right []Box
34246 }))(obj)).Top)[local410]).Serialize(w)
34251 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34254 if len(((*(*(struct {
34256 Front, Left, Back, Right []Box
34257 }))(obj)).Bot)) > math.MaxUint16 {
34261 x := uint16(len(((*(*(struct {
34263 Front, Left, Back, Right []Box
34265 write16(w, uint16(x))
34267 for local411 := range (*(*(struct {
34269 Front, Left, Back, Right []Box
34271 if err := pcall(func() {
34274 Front, Left, Back, Right []Box
34275 }))(obj)).Bot)[local411]).Serialize(w)
34280 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34283 if len(((*(*(struct {
34285 Front, Left, Back, Right []Box
34286 }))(obj)).Front)) > math.MaxUint16 {
34290 x := uint16(len(((*(*(struct {
34292 Front, Left, Back, Right []Box
34294 write16(w, uint16(x))
34296 for local412 := range (*(*(struct {
34298 Front, Left, Back, Right []Box
34300 if err := pcall(func() {
34303 Front, Left, Back, Right []Box
34304 }))(obj)).Front)[local412]).Serialize(w)
34309 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34312 if len(((*(*(struct {
34314 Front, Left, Back, Right []Box
34315 }))(obj)).Left)) > math.MaxUint16 {
34319 x := uint16(len(((*(*(struct {
34321 Front, Left, Back, Right []Box
34323 write16(w, uint16(x))
34325 for local413 := range (*(*(struct {
34327 Front, Left, Back, Right []Box
34329 if err := pcall(func() {
34332 Front, Left, Back, Right []Box
34333 }))(obj)).Left)[local413]).Serialize(w)
34338 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34341 if len(((*(*(struct {
34343 Front, Left, Back, Right []Box
34344 }))(obj)).Back)) > math.MaxUint16 {
34348 x := uint16(len(((*(*(struct {
34350 Front, Left, Back, Right []Box
34352 write16(w, uint16(x))
34354 for local414 := range (*(*(struct {
34356 Front, Left, Back, Right []Box
34358 if err := pcall(func() {
34361 Front, Left, Back, Right []Box
34362 }))(obj)).Back)[local414]).Serialize(w)
34367 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34370 if len(((*(*(struct {
34372 Front, Left, Back, Right []Box
34373 }))(obj)).Right)) > math.MaxUint16 {
34377 x := uint16(len(((*(*(struct {
34379 Front, Left, Back, Right []Box
34381 write16(w, uint16(x))
34383 for local415 := range (*(*(struct {
34385 Front, Left, Back, Right []Box
34387 if err := pcall(func() {
34390 Front, Left, Back, Right []Box
34391 }))(obj)).Right)[local415]).Serialize(w)
34396 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34401 func (obj *DirBoxes) Deserialize(r io.Reader) {
34402 var local416 uint16
34409 Front, Left, Back, Right []Box
34410 }))(obj)).Top) = make([]Box, local416)
34411 for local417 := range (*(*(struct {
34413 Front, Left, Back, Right []Box
34415 if err := pcall(func() {
34418 Front, Left, Back, Right []Box
34419 }))(obj)).Top)[local417]).Deserialize(r)
34424 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34427 var local418 uint16
34434 Front, Left, Back, Right []Box
34435 }))(obj)).Bot) = make([]Box, local418)
34436 for local419 := range (*(*(struct {
34438 Front, Left, Back, Right []Box
34440 if err := pcall(func() {
34443 Front, Left, Back, Right []Box
34444 }))(obj)).Bot)[local419]).Deserialize(r)
34449 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34452 var local420 uint16
34459 Front, Left, Back, Right []Box
34460 }))(obj)).Front) = make([]Box, local420)
34461 for local421 := range (*(*(struct {
34463 Front, Left, Back, Right []Box
34465 if err := pcall(func() {
34468 Front, Left, Back, Right []Box
34469 }))(obj)).Front)[local421]).Deserialize(r)
34474 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34477 var local422 uint16
34484 Front, Left, Back, Right []Box
34485 }))(obj)).Left) = make([]Box, local422)
34486 for local423 := range (*(*(struct {
34488 Front, Left, Back, Right []Box
34490 if err := pcall(func() {
34493 Front, Left, Back, Right []Box
34494 }))(obj)).Left)[local423]).Deserialize(r)
34499 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34502 var local424 uint16
34509 Front, Left, Back, Right []Box
34510 }))(obj)).Back) = make([]Box, local424)
34511 for local425 := range (*(*(struct {
34513 Front, Left, Back, Right []Box
34515 if err := pcall(func() {
34518 Front, Left, Back, Right []Box
34519 }))(obj)).Back)[local425]).Deserialize(r)
34524 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34527 var local426 uint16
34534 Front, Left, Back, Right []Box
34535 }))(obj)).Right) = make([]Box, local426)
34536 for local427 := range (*(*(struct {
34538 Front, Left, Back, Right []Box
34540 if err := pcall(func() {
34543 Front, Left, Back, Right []Box
34544 }))(obj)).Right)[local427]).Deserialize(r)
34549 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34554 func (obj *ToolGroupCap) Serialize(w io.Writer) {
34555 if len(([]byte((*(*(struct {
34565 }))(obj)).Name))) > math.MaxUint16 {
34569 x := uint16(len(([]byte((*(*(struct {
34580 write16(w, uint16(x))
34583 _, err := w.Write(([]byte((*(*(struct {
34593 }))(obj)).Name))[:])
34597 x := int16((*(*(struct {
34608 write16(w, uint16(x))
34622 write16(w, uint16(x))
34624 if len(((*(*(struct {
34634 }))(obj)).Times)) > math.MaxUint32 {
34638 x := uint32(len(((*(*(struct {
34649 write32(w, uint32(x))
34651 for local428 := range (*(*(struct {
34662 if err := pcall(func() {
34673 }))(obj)).Times)[local428]).Serialize(w)
34678 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34683 func (obj *ToolGroupCap) Deserialize(r io.Reader) {
34684 var local429 []uint8
34685 var local430 uint16
34690 (local429) = make([]uint8, local430)
34692 _, err := io.ReadFull(r, (local429)[:])
34705 }))(obj)).Name) = string(local429)
34709 *p = int16(read16(r))
34721 }))(obj)).Uses = int32(local431)
34723 p := &(*(*(struct {
34734 *p = int16(read16(r))
34736 var local432 uint32
34751 }))(obj)).Times) = make([]DigTime, local432)
34752 for local433 := range (*(*(struct {
34763 if err := pcall(func() {
34774 }))(obj)).Times)[local433]).Deserialize(r)
34779 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34784 func (obj *DigTime) Serialize(w io.Writer) {
34790 write16(w, uint16(x))
34797 write32(w, math.Float32bits(x))
34801 func (obj *DigTime) Deserialize(r io.Reader) {
34803 p := &(*(*(struct {
34807 *p = int16(read16(r))
34810 p := &(*(*(struct {
34814 *p = math.Float32frombits(read32(r))