1 // Code generated by mkserialize.sh; DO NOT EDIT.
17 "github.com/klauspost/compress/zstd"
20 func write8(w io.Writer, x uint8) {
21 _, err := w.Write([]byte{x})
25 func write16(w io.Writer, x uint16) {
26 buf := make([]byte, 2)
28 _, err := w.Write(buf)
32 func write32(w io.Writer, x uint32) {
33 buf := make([]byte, 4)
35 _, err := w.Write(buf)
39 func write64(w io.Writer, x uint64) {
40 buf := make([]byte, 8)
42 _, err := w.Write(buf)
46 func readBuf(r io.Reader, n int) []byte {
47 buf := make([]byte, n)
48 _, err := io.ReadFull(r, buf)
53 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
54 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
55 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
56 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
58 func (obj *ToSrvNil) serialize(w io.Writer) {
61 func (obj *ToSrvNil) deserialize(r io.Reader) {
64 func (obj *ToSrvInit) serialize(w io.Writer) {
68 SupportedCompression CompressionModes
69 MinProtoVer, MaxProtoVer uint16
74 }))(obj)).SerializeVer
77 if err := pcall(func() {
80 SupportedCompression CompressionModes
81 MinProtoVer, MaxProtoVer uint16
86 }))(obj)).SupportedCompression).serialize(w)
91 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
96 SupportedCompression CompressionModes
97 MinProtoVer, MaxProtoVer uint16
101 SendFullItemMeta bool
102 }))(obj)).MinProtoVer
103 write16(w, uint16(x))
108 SupportedCompression CompressionModes
109 MinProtoVer, MaxProtoVer uint16
113 SendFullItemMeta bool
114 }))(obj)).MaxProtoVer
115 write16(w, uint16(x))
117 if len(([]byte((*(*(struct {
119 SupportedCompression CompressionModes
120 MinProtoVer, MaxProtoVer uint16
124 SendFullItemMeta bool
125 }))(obj)).PlayerName))) > math.MaxUint16 {
129 x := uint16(len(([]byte((*(*(struct {
131 SupportedCompression CompressionModes
132 MinProtoVer, MaxProtoVer uint16
136 SendFullItemMeta bool
137 }))(obj)).PlayerName))))
138 write16(w, uint16(x))
141 _, err := w.Write(([]byte((*(*(struct {
143 SupportedCompression CompressionModes
144 MinProtoVer, MaxProtoVer uint16
148 SendFullItemMeta bool
149 }))(obj)).PlayerName))[:])
152 if err := pcall(func() {
156 SupportedCompression CompressionModes
157 MinProtoVer, MaxProtoVer uint16
161 SendFullItemMeta bool
162 }))(obj)).SendFullItemMeta
170 }); err != nil && err != io.EOF {
175 func (obj *ToSrvInit) deserialize(r io.Reader) {
179 SupportedCompression CompressionModes
180 MinProtoVer, MaxProtoVer uint16
184 SendFullItemMeta bool
185 }))(obj)).SerializeVer
188 if err := pcall(func() {
191 SupportedCompression CompressionModes
192 MinProtoVer, MaxProtoVer uint16
196 SendFullItemMeta bool
197 }))(obj)).SupportedCompression).deserialize(r)
202 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
207 SupportedCompression CompressionModes
208 MinProtoVer, MaxProtoVer uint16
212 SendFullItemMeta bool
213 }))(obj)).MinProtoVer
219 SupportedCompression CompressionModes
220 MinProtoVer, MaxProtoVer uint16
224 SendFullItemMeta bool
225 }))(obj)).MaxProtoVer
234 (local1) = make([]uint8, local2)
236 _, err := io.ReadFull(r, (local1)[:])
241 SupportedCompression CompressionModes
242 MinProtoVer, MaxProtoVer uint16
246 SendFullItemMeta bool
247 }))(obj)).PlayerName) = string(local1)
248 if err := pcall(func() {
252 SupportedCompression CompressionModes
253 MinProtoVer, MaxProtoVer uint16
257 SendFullItemMeta bool
258 }))(obj)).SendFullItemMeta
259 switch n := read8(r); n {
265 chk(fmt.Errorf("invalid bool: %d", n))
269 }); err != nil && err != io.EOF {
274 func (obj *ToSrvInit2) serialize(w io.Writer) {
275 if len(([]byte((*(*(struct {
277 }))(obj)).Lang))) > math.MaxUint16 {
281 x := uint16(len(([]byte((*(*(struct {
284 write16(w, uint16(x))
287 _, err := w.Write(([]byte((*(*(struct {
294 func (obj *ToSrvInit2) deserialize(r io.Reader) {
301 (local3) = make([]uint8, local4)
303 _, err := io.ReadFull(r, (local3)[:])
308 }))(obj)).Lang) = string(local3)
311 func (obj *ToSrvJoinModChan) serialize(w io.Writer) {
312 if len(([]byte((*(*(struct {
314 }))(obj)).Channel))) > math.MaxUint16 {
318 x := uint16(len(([]byte((*(*(struct {
320 }))(obj)).Channel))))
321 write16(w, uint16(x))
324 _, err := w.Write(([]byte((*(*(struct {
326 }))(obj)).Channel))[:])
331 func (obj *ToSrvJoinModChan) deserialize(r io.Reader) {
338 (local5) = make([]uint8, local6)
340 _, err := io.ReadFull(r, (local5)[:])
345 }))(obj)).Channel) = string(local5)
348 func (obj *ToSrvLeaveModChan) serialize(w io.Writer) {
349 if len(([]byte((*(*(struct {
351 }))(obj)).Channel))) > math.MaxUint16 {
355 x := uint16(len(([]byte((*(*(struct {
357 }))(obj)).Channel))))
358 write16(w, uint16(x))
361 _, err := w.Write(([]byte((*(*(struct {
363 }))(obj)).Channel))[:])
368 func (obj *ToSrvLeaveModChan) deserialize(r io.Reader) {
375 (local7) = make([]uint8, local8)
377 _, err := io.ReadFull(r, (local7)[:])
382 }))(obj)).Channel) = string(local7)
385 func (obj *ToSrvMsgModChan) serialize(w io.Writer) {
386 if len(([]byte((*(*(struct {
389 }))(obj)).Channel))) > math.MaxUint16 {
393 x := uint16(len(([]byte((*(*(struct {
396 }))(obj)).Channel))))
397 write16(w, uint16(x))
400 _, err := w.Write(([]byte((*(*(struct {
403 }))(obj)).Channel))[:])
406 if len(([]byte((*(*(struct {
409 }))(obj)).Msg))) > math.MaxUint16 {
413 x := uint16(len(([]byte((*(*(struct {
417 write16(w, uint16(x))
420 _, err := w.Write(([]byte((*(*(struct {
428 func (obj *ToSrvMsgModChan) deserialize(r io.Reader) {
435 (local9) = make([]uint8, local10)
437 _, err := io.ReadFull(r, (local9)[:])
443 }))(obj)).Channel) = string(local9)
450 (local11) = make([]uint8, local12)
452 _, err := io.ReadFull(r, (local11)[:])
458 }))(obj)).Msg) = string(local11)
461 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
462 if err := pcall(func() {
465 }))(obj)).Pos).serialize(w)
470 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
474 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
475 if err := pcall(func() {
478 }))(obj)).Pos).deserialize(r)
483 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
487 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
488 if len(((*(*(struct {
491 }))(obj)).Blks)) > math.MaxUint8 {
495 x := uint8(len(((*(*(struct {
501 for local13 := range (*(*(struct {
505 for local14 := range ((*(*(struct {
508 }))(obj)).Blks)[local13] {
513 }))(obj)).Blks)[local13])[local14]
514 write16(w, uint16(x))
520 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
529 }))(obj)).Blks) = make([][3]int16, local15)
530 for local16 := range (*(*(struct {
534 for local17 := range ((*(*(struct {
537 }))(obj)).Blks)[local16] {
539 p := &(((*(*(struct {
542 }))(obj)).Blks)[local16])[local17]
543 *p = int16(read16(r))
549 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
550 if len(((*(*(struct {
553 }))(obj)).Blks)) > math.MaxUint8 {
557 x := uint8(len(((*(*(struct {
563 for local18 := range (*(*(struct {
567 for local19 := range ((*(*(struct {
570 }))(obj)).Blks)[local18] {
575 }))(obj)).Blks)[local18])[local19]
576 write16(w, uint16(x))
582 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
591 }))(obj)).Blks) = make([][3]int16, local20)
592 for local21 := range (*(*(struct {
596 for local22 := range ((*(*(struct {
599 }))(obj)).Blks)[local21] {
601 p := &(((*(*(struct {
604 }))(obj)).Blks)[local21])[local22]
605 *p = int16(read16(r))
611 func (obj *ToSrvInvAction) serialize(w io.Writer) {
613 _, err := w.Write(([]byte((*(*(struct {
616 }))(obj)).Action))[:])
621 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
625 (local23), err = io.ReadAll(r)
631 }))(obj)).Action) = string(local23)
634 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
635 local24 := utf16.Encode([]rune((*(*(struct {
639 if len((local24)) > math.MaxUint16 {
643 x := uint16(len((local24)))
644 write16(w, uint16(x))
646 for local25 := range local24 {
648 x := (local24)[local25]
649 write16(w, uint16(x))
654 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
661 (local26) = make([]uint16, local27)
662 for local28 := range local26 {
664 p := &(local26)[local28]
671 }))(obj)).Msg = string(utf16.Decode(local26))
674 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
679 write16(w, uint16(x))
683 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
692 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
697 write16(w, uint16(x))
701 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
710 func (obj *ToSrvRespawn) serialize(w io.Writer) {
713 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
716 func (obj *ToSrvInteract) serialize(w io.Writer) {
717 if err := pcall(func() {
725 }))(obj)).Action).serialize(w)
730 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
741 write16(w, uint16(x))
745 w := new(bytes.Buffer)
755 chk(writePointedThing(w, x))
761 if len((buf.Bytes())) > math.MaxUint32 {
765 x := uint32(len((buf.Bytes())))
766 write32(w, uint32(x))
769 _, err := w.Write((buf.Bytes())[:])
774 if err := pcall(func() {
782 }))(obj)).Pos).serialize(w)
787 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
791 func (obj *ToSrvInteract) deserialize(r io.Reader) {
792 if err := pcall(func() {
800 }))(obj)).Action).deserialize(r)
805 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
824 r := &io.LimitedReader{R: r, N: int64(n)}
836 *p, err = readPointedThing(r)
842 chk(fmt.Errorf("%d bytes of trailing data", r.N))
845 if err := pcall(func() {
853 }))(obj)).Pos).deserialize(r)
858 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
862 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
863 if len(((*(*(struct {
865 }))(obj)).IDs)) > math.MaxUint16 {
869 x := uint16(len(((*(*(struct {
872 write16(w, uint16(x))
874 for local29 := range (*(*(struct {
877 if err := pcall(func() {
880 }))(obj)).IDs)[local29]).serialize(w)
885 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
890 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
898 }))(obj)).IDs) = make([]SoundID, local30)
899 for local31 := range (*(*(struct {
902 if err := pcall(func() {
905 }))(obj)).IDs)[local31]).deserialize(r)
910 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
915 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
916 for local32 := range (*(*(struct {
926 }))(obj)).Pos)[local32]
927 write16(w, uint16(x))
930 if len(([]byte((*(*(struct {
934 }))(obj)).Formname))) > math.MaxUint16 {
938 x := uint16(len(([]byte((*(*(struct {
942 }))(obj)).Formname))))
943 write16(w, uint16(x))
946 _, err := w.Write(([]byte((*(*(struct {
950 }))(obj)).Formname))[:])
953 if len(((*(*(struct {
957 }))(obj)).Fields)) > math.MaxUint16 {
961 x := uint16(len(((*(*(struct {
966 write16(w, uint16(x))
968 for local33 := range (*(*(struct {
973 if err := pcall(func() {
978 }))(obj)).Fields)[local33]).serialize(w)
983 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
988 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
989 for local34 := range (*(*(struct {
999 }))(obj)).Pos)[local34]
1000 *p = int16(read16(r))
1009 (local35) = make([]uint8, local36)
1011 _, err := io.ReadFull(r, (local35)[:])
1018 }))(obj)).Formname) = string(local35)
1028 }))(obj)).Fields) = make([]Field, local37)
1029 for local38 := range (*(*(struct {
1034 if err := pcall(func() {
1039 }))(obj)).Fields)[local38]).deserialize(r)
1044 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1049 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1050 if len(([]byte((*(*(struct {
1053 }))(obj)).Formname))) > math.MaxUint16 {
1057 x := uint16(len(([]byte((*(*(struct {
1060 }))(obj)).Formname))))
1061 write16(w, uint16(x))
1064 _, err := w.Write(([]byte((*(*(struct {
1067 }))(obj)).Formname))[:])
1070 if len(((*(*(struct {
1073 }))(obj)).Fields)) > math.MaxUint16 {
1077 x := uint16(len(((*(*(struct {
1081 write16(w, uint16(x))
1083 for local39 := range (*(*(struct {
1087 if err := pcall(func() {
1091 }))(obj)).Fields)[local39]).serialize(w)
1096 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1101 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1108 (local40) = make([]uint8, local41)
1110 _, err := io.ReadFull(r, (local40)[:])
1116 }))(obj)).Formname) = string(local40)
1125 }))(obj)).Fields) = make([]Field, local42)
1126 for local43 := range (*(*(struct {
1130 if err := pcall(func() {
1134 }))(obj)).Fields)[local43]).deserialize(r)
1139 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1144 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1145 if len(((*(*(struct {
1147 }))(obj)).Filenames)) > math.MaxUint16 {
1151 x := uint16(len(((*(*(struct {
1153 }))(obj)).Filenames)))
1154 write16(w, uint16(x))
1156 for local44 := range (*(*(struct {
1158 }))(obj)).Filenames {
1159 if len(([]byte(((*(*(struct {
1161 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1165 x := uint16(len(([]byte(((*(*(struct {
1167 }))(obj)).Filenames)[local44]))))
1168 write16(w, uint16(x))
1171 _, err := w.Write(([]byte(((*(*(struct {
1173 }))(obj)).Filenames)[local44]))[:])
1179 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1187 }))(obj)).Filenames) = make([]string, local45)
1188 for local46 := range (*(*(struct {
1190 }))(obj)).Filenames {
1197 (local47) = make([]uint8, local48)
1199 _, err := io.ReadFull(r, (local47)[:])
1204 }))(obj)).Filenames)[local46]) = string(local47)
1208 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1211 // Version information.
1212 Major, Minor, Patch uint8
1221 // Version information.
1222 Major, Minor, Patch uint8
1231 // Version information.
1232 Major, Minor, Patch uint8
1241 // Version information.
1242 Major, Minor, Patch uint8
1249 if len(([]byte((*(*(struct {
1250 // Version information.
1251 Major, Minor, Patch uint8
1255 }))(obj)).Version))) > math.MaxUint16 {
1259 x := uint16(len(([]byte((*(*(struct {
1260 // Version information.
1261 Major, Minor, Patch uint8
1265 }))(obj)).Version))))
1266 write16(w, uint16(x))
1269 _, err := w.Write(([]byte((*(*(struct {
1270 // Version information.
1271 Major, Minor, Patch uint8
1275 }))(obj)).Version))[:])
1280 // Version information.
1281 Major, Minor, Patch uint8
1286 write16(w, uint16(x))
1290 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1293 // Version information.
1294 Major, Minor, Patch uint8
1303 // Version information.
1304 Major, Minor, Patch uint8
1313 // Version information.
1314 Major, Minor, Patch uint8
1323 // Version information.
1324 Major, Minor, Patch uint8
1337 (local49) = make([]uint8, local50)
1339 _, err := io.ReadFull(r, (local49)[:])
1343 // Version information.
1344 Major, Minor, Patch uint8
1348 }))(obj)).Version) = string(local49)
1351 // Version information.
1352 Major, Minor, Patch uint8
1361 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1362 if len(((*(*(struct {
1366 }))(obj)).Salt)) > math.MaxUint16 {
1370 x := uint16(len(((*(*(struct {
1375 write16(w, uint16(x))
1378 _, err := w.Write(((*(*(struct {
1385 if len(((*(*(struct {
1389 }))(obj)).Verifier)) > math.MaxUint16 {
1393 x := uint16(len(((*(*(struct {
1397 }))(obj)).Verifier)))
1398 write16(w, uint16(x))
1401 _, err := w.Write(((*(*(struct {
1405 }))(obj)).Verifier)[:])
1413 }))(obj)).EmptyPasswd
1423 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1433 }))(obj)).Salt) = make([]byte, local51)
1435 _, err := io.ReadFull(r, ((*(*(struct {
1451 }))(obj)).Verifier) = make([]byte, local52)
1453 _, err := io.ReadFull(r, ((*(*(struct {
1457 }))(obj)).Verifier)[:])
1465 }))(obj)).EmptyPasswd
1466 switch n := read8(r); n {
1472 chk(fmt.Errorf("invalid bool: %d", n))
1478 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1479 if len(((*(*(struct {
1482 }))(obj)).A)) > math.MaxUint16 {
1486 x := uint16(len(((*(*(struct {
1490 write16(w, uint16(x))
1493 _, err := w.Write(((*(*(struct {
1513 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1522 }))(obj)).A) = make([]byte, local53)
1524 _, err := io.ReadFull(r, ((*(*(struct {
1535 switch n := read8(r); n {
1541 chk(fmt.Errorf("invalid bool: %d", n))
1547 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1548 if len(((*(*(struct {
1550 }))(obj)).M)) > math.MaxUint16 {
1554 x := uint16(len(((*(*(struct {
1557 write16(w, uint16(x))
1560 _, err := w.Write(((*(*(struct {
1567 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1575 }))(obj)).M) = make([]byte, local54)
1577 _, err := io.ReadFull(r, ((*(*(struct {
1584 func (obj *ToCltHello) serialize(w io.Writer) {
1588 Compression CompressionModes
1592 }))(obj)).SerializeVer
1595 if err := pcall(func() {
1598 Compression CompressionModes
1602 }))(obj)).Compression).serialize(w)
1607 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1612 Compression CompressionModes
1617 write16(w, uint16(x))
1619 if err := pcall(func() {
1622 Compression CompressionModes
1626 }))(obj)).AuthMethods).serialize(w)
1631 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1633 if len(([]byte((*(*(struct {
1635 Compression CompressionModes
1639 }))(obj)).Username))) > math.MaxUint16 {
1643 x := uint16(len(([]byte((*(*(struct {
1645 Compression CompressionModes
1649 }))(obj)).Username))))
1650 write16(w, uint16(x))
1653 _, err := w.Write(([]byte((*(*(struct {
1655 Compression CompressionModes
1659 }))(obj)).Username))[:])
1664 func (obj *ToCltHello) deserialize(r io.Reader) {
1668 Compression CompressionModes
1672 }))(obj)).SerializeVer
1675 if err := pcall(func() {
1678 Compression CompressionModes
1682 }))(obj)).Compression).deserialize(r)
1687 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1692 Compression CompressionModes
1699 if err := pcall(func() {
1702 Compression CompressionModes
1706 }))(obj)).AuthMethods).deserialize(r)
1711 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1719 (local55) = make([]uint8, local56)
1721 _, err := io.ReadFull(r, (local55)[:])
1726 Compression CompressionModes
1730 }))(obj)).Username) = string(local55)
1733 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1734 if err := pcall(func() {
1736 // The client does the equivalent of
1737 // PlayerPos[1] -= 5
1738 // before using PlayerPos.
1742 SendInterval float32
1743 SudoAuthMethods AuthMethods
1744 }))(obj)).PlayerPos).serialize(w)
1749 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1753 // The client does the equivalent of
1754 // PlayerPos[1] -= 5
1755 // before using PlayerPos.
1759 SendInterval float32
1760 SudoAuthMethods AuthMethods
1762 write64(w, uint64(x))
1767 // The client does the equivalent of
1768 // PlayerPos[1] -= 5
1769 // before using PlayerPos.
1773 SendInterval float32
1774 SudoAuthMethods AuthMethods
1775 }))(obj)).SendInterval
1776 write32(w, math.Float32bits(x))
1778 if err := pcall(func() {
1780 // The client does the equivalent of
1781 // PlayerPos[1] -= 5
1782 // before using PlayerPos.
1786 SendInterval float32
1787 SudoAuthMethods AuthMethods
1788 }))(obj)).SudoAuthMethods).serialize(w)
1793 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1797 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1798 if err := pcall(func() {
1800 // The client does the equivalent of
1801 // PlayerPos[1] -= 5
1802 // before using PlayerPos.
1806 SendInterval float32
1807 SudoAuthMethods AuthMethods
1808 }))(obj)).PlayerPos).deserialize(r)
1813 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1817 // The client does the equivalent of
1818 // PlayerPos[1] -= 5
1819 // before using PlayerPos.
1823 SendInterval float32
1824 SudoAuthMethods AuthMethods
1831 // The client does the equivalent of
1832 // PlayerPos[1] -= 5
1833 // before using PlayerPos.
1837 SendInterval float32
1838 SudoAuthMethods AuthMethods
1839 }))(obj)).SendInterval
1840 *p = math.Float32frombits(read32(r))
1842 if err := pcall(func() {
1844 // The client does the equivalent of
1845 // PlayerPos[1] -= 5
1846 // before using PlayerPos.
1850 SendInterval float32
1851 SudoAuthMethods AuthMethods
1852 }))(obj)).SudoAuthMethods).deserialize(r)
1857 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1861 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1862 if err := pcall(func() {
1864 SudoAuthMethods AuthMethods
1865 }))(obj)).SudoAuthMethods).serialize(w)
1870 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1873 local57 := [15]byte{}
1875 _, err := w.Write((local57)[:])
1881 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1882 if err := pcall(func() {
1884 SudoAuthMethods AuthMethods
1885 }))(obj)).SudoAuthMethods).deserialize(r)
1890 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1893 var local58 [15]byte
1894 local59 := [15]byte{}
1896 _, err := io.ReadFull(r, (local58)[:])
1899 if local58 != local59 {
1900 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1905 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1908 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1911 func (obj *ToCltKick) serialize(w io.Writer) {
1912 if err := pcall(func() {
1916 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1919 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1921 }))(obj)).Reason).serialize(w)
1926 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
1931 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1934 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1936 }))(obj)).Reason < maxKickReason) {
1937 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1939 if dr := (*(*(struct {
1942 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1945 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1947 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1948 if len(([]byte((*(*(struct {
1951 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1954 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1956 }))(obj)).Custom))) > math.MaxUint16 {
1960 x := uint16(len(([]byte((*(*(struct {
1963 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1966 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1968 }))(obj)).Custom))))
1969 write16(w, uint16(x))
1972 _, err := w.Write(([]byte((*(*(struct {
1975 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1978 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1980 }))(obj)).Custom))[:])
1984 if dr := (*(*(struct {
1987 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1990 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1992 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1997 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2000 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2013 func (obj *ToCltKick) deserialize(r io.Reader) {
2014 if err := pcall(func() {
2018 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2021 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2023 }))(obj)).Reason).deserialize(r)
2028 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
2033 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2036 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2038 }))(obj)).Reason < maxKickReason) {
2039 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2041 if dr := (*(*(struct {
2044 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2047 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2049 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2056 (local60) = make([]uint8, local61)
2058 _, err := io.ReadFull(r, (local60)[:])
2064 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2067 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2069 }))(obj)).Custom) = string(local60)
2071 if dr := (*(*(struct {
2074 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2077 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2079 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2084 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2087 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2090 switch n := read8(r); n {
2096 chk(fmt.Errorf("invalid bool: %d", n))
2103 func (obj *ToCltBlkData) serialize(w io.Writer) {
2104 for local62 := range (*(*(struct {
2112 }))(obj)).Blkpos)[local62]
2113 write16(w, uint16(x))
2116 if err := pcall(func() {
2120 }))(obj)).Blk).serialize(w)
2125 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2129 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2130 for local63 := range (*(*(struct {
2135 p := &((*(*(struct {
2138 }))(obj)).Blkpos)[local63]
2139 *p = int16(read16(r))
2142 if err := pcall(func() {
2146 }))(obj)).Blk).deserialize(r)
2151 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2155 func (obj *ToCltAddNode) serialize(w io.Writer) {
2156 for local64 := range (*(*(struct {
2166 }))(obj)).Pos)[local64]
2167 write16(w, uint16(x))
2170 if err := pcall(func() {
2175 }))(obj)).Node).serialize(w)
2180 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2197 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2198 for local65 := range (*(*(struct {
2204 p := &((*(*(struct {
2208 }))(obj)).Pos)[local65]
2209 *p = int16(read16(r))
2212 if err := pcall(func() {
2217 }))(obj)).Node).deserialize(r)
2222 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2230 switch n := read8(r); n {
2236 chk(fmt.Errorf("invalid bool: %d", n))
2242 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2243 for local66 := range (*(*(struct {
2249 }))(obj)).Pos)[local66]
2250 write16(w, uint16(x))
2255 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2256 for local67 := range (*(*(struct {
2260 p := &((*(*(struct {
2262 }))(obj)).Pos)[local67]
2263 *p = int16(read16(r))
2268 func (obj *ToCltInv) serialize(w io.Writer) {
2270 _, err := w.Write(([]byte((*(*(struct {
2278 func (obj *ToCltInv) deserialize(r io.Reader) {
2282 (local68), err = io.ReadAll(r)
2288 }))(obj)).Inv) = string(local68)
2291 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2294 Time uint16 // %24000
2295 Speed float32 // Speed times faster than real time
2297 write16(w, uint16(x))
2301 Time uint16 // %24000
2302 Speed float32 // Speed times faster than real time
2304 write32(w, math.Float32bits(x))
2308 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2311 Time uint16 // %24000
2312 Speed float32 // Speed times faster than real time
2318 Time uint16 // %24000
2319 Speed float32 // Speed times faster than real time
2321 *p = math.Float32frombits(read32(r))
2325 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2326 if err := pcall(func() {
2328 Flags CSMRestrictionFlags
2330 // MapRange is the maximum distance from the player CSMs can read the map
2331 // if Flags&LimitMapRange != 0.
2333 }))(obj)).Flags).serialize(w)
2338 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2342 Flags CSMRestrictionFlags
2344 // MapRange is the maximum distance from the player CSMs can read the map
2345 // if Flags&LimitMapRange != 0.
2348 write32(w, uint32(x))
2352 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2353 if err := pcall(func() {
2355 Flags CSMRestrictionFlags
2357 // MapRange is the maximum distance from the player CSMs can read the map
2358 // if Flags&LimitMapRange != 0.
2360 }))(obj)).Flags).deserialize(r)
2365 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2369 Flags CSMRestrictionFlags
2371 // MapRange is the maximum distance from the player CSMs can read the map
2372 // if Flags&LimitMapRange != 0.
2379 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2380 if err := pcall(func() {
2383 }))(obj)).Vel).serialize(w)
2388 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2392 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2393 if err := pcall(func() {
2396 }))(obj)).Vel).deserialize(r)
2401 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2405 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2407 local69 := uint16(sha1.Size)
2410 write16(w, uint16(x))
2414 _, err := w.Write(((*(*(struct {
2415 //mt:const uint16(sha1.Size)
2416 SHA1 [sha1.Size]byte
2425 if len(([]byte((*(*(struct {
2426 //mt:const uint16(sha1.Size)
2427 SHA1 [sha1.Size]byte
2433 }))(obj)).Filename))) > math.MaxUint16 {
2437 x := uint16(len(([]byte((*(*(struct {
2438 //mt:const uint16(sha1.Size)
2439 SHA1 [sha1.Size]byte
2445 }))(obj)).Filename))))
2446 write16(w, uint16(x))
2449 _, err := w.Write(([]byte((*(*(struct {
2450 //mt:const uint16(sha1.Size)
2451 SHA1 [sha1.Size]byte
2457 }))(obj)).Filename))[:])
2462 //mt:const uint16(sha1.Size)
2463 SHA1 [sha1.Size]byte
2469 }))(obj)).ShouldCache
2477 if len(((*(*(struct {
2478 //mt:const uint16(sha1.Size)
2479 SHA1 [sha1.Size]byte
2485 }))(obj)).Data)) > math.MaxUint32 {
2489 x := uint32(len(((*(*(struct {
2490 //mt:const uint16(sha1.Size)
2491 SHA1 [sha1.Size]byte
2498 write32(w, uint32(x))
2501 _, err := w.Write(((*(*(struct {
2502 //mt:const uint16(sha1.Size)
2503 SHA1 [sha1.Size]byte
2514 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2517 local71 := uint16(sha1.Size)
2522 if local70 != local71 {
2523 chk(fmt.Errorf("const %v: %v", "uint16(sha1.Size)", local70))
2527 _, err := io.ReadFull(r, ((*(*(struct {
2528 //mt:const uint16(sha1.Size)
2529 SHA1 [sha1.Size]byte
2544 (local72) = make([]uint8, local73)
2546 _, err := io.ReadFull(r, (local72)[:])
2550 //mt:const uint16(sha1.Size)
2551 SHA1 [sha1.Size]byte
2557 }))(obj)).Filename) = string(local72)
2560 //mt:const uint16(sha1.Size)
2561 SHA1 [sha1.Size]byte
2567 }))(obj)).ShouldCache
2568 switch n := read8(r); n {
2574 chk(fmt.Errorf("invalid bool: %d", n))
2584 //mt:const uint16(sha1.Size)
2585 SHA1 [sha1.Size]byte
2591 }))(obj)).Data) = make([]byte, local74)
2593 _, err := io.ReadFull(r, ((*(*(struct {
2594 //mt:const uint16(sha1.Size)
2595 SHA1 [sha1.Size]byte
2606 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2614 if err := pcall(func() {
2621 Timestamp int64 // Unix time.
2622 }))(obj)).Type).serialize(w)
2627 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2629 local76 := utf16.Encode([]rune((*(*(struct {
2635 Timestamp int64 // Unix time.
2637 if len((local76)) > math.MaxUint16 {
2641 x := uint16(len((local76)))
2642 write16(w, uint16(x))
2644 for local77 := range local76 {
2646 x := (local76)[local77]
2647 write16(w, uint16(x))
2650 local78 := utf16.Encode([]rune((*(*(struct {
2656 Timestamp int64 // Unix time.
2658 if len((local78)) > math.MaxUint16 {
2662 x := uint16(len((local78)))
2663 write16(w, uint16(x))
2665 for local79 := range local78 {
2667 x := (local78)[local79]
2668 write16(w, uint16(x))
2678 Timestamp int64 // Unix time.
2680 write64(w, uint64(x))
2685 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2693 if local80 != local81 {
2694 chk(fmt.Errorf("const %v: %v", "uint8(1)", local80))
2697 if err := pcall(func() {
2704 Timestamp int64 // Unix time.
2705 }))(obj)).Type).deserialize(r)
2710 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2712 var local82 []uint16
2718 (local82) = make([]uint16, local83)
2719 for local84 := range local82 {
2721 p := &(local82)[local84]
2731 Timestamp int64 // Unix time.
2732 }))(obj)).Sender = string(utf16.Decode(local82))
2733 var local85 []uint16
2739 (local85) = make([]uint16, local86)
2740 for local87 := range local85 {
2742 p := &(local85)[local87]
2752 Timestamp int64 // Unix time.
2753 }))(obj)).Text = string(utf16.Decode(local85))
2761 Timestamp int64 // Unix time.
2763 *p = int64(read64(r))
2768 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2769 if len(((*(*(struct {
2772 }))(obj)).Remove)) > math.MaxUint16 {
2776 x := uint16(len(((*(*(struct {
2780 write16(w, uint16(x))
2782 for local88 := range (*(*(struct {
2786 if err := pcall(func() {
2790 }))(obj)).Remove)[local88]).serialize(w)
2795 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2798 if len(((*(*(struct {
2801 }))(obj)).Add)) > math.MaxUint16 {
2805 x := uint16(len(((*(*(struct {
2809 write16(w, uint16(x))
2811 for local89 := range (*(*(struct {
2815 if err := pcall(func() {
2819 }))(obj)).Add)[local89]).serialize(w)
2824 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2829 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2838 }))(obj)).Remove) = make([]AOID, local90)
2839 for local91 := range (*(*(struct {
2843 if err := pcall(func() {
2847 }))(obj)).Remove)[local91]).deserialize(r)
2852 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2863 }))(obj)).Add) = make([]AOAdd, local92)
2864 for local93 := range (*(*(struct {
2868 if err := pcall(func() {
2872 }))(obj)).Add)[local93]).deserialize(r)
2877 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2882 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2883 for local94 := range (*(*(struct {
2887 if err := pcall(func() {
2891 }))(obj)).Msgs)[local94]).serialize(w)
2896 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2901 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2904 err := pcall(func() {
2905 if err := pcall(func() {
2906 (local95).deserialize(r)
2911 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2920 }))(obj)).Msgs) = append(((*(*(struct {
2923 }))(obj)).Msgs), local95)
2928 func (obj *ToCltHP) serialize(w io.Writer) {
2933 write16(w, uint16(x))
2937 func (obj *ToCltHP) deserialize(r io.Reader) {
2946 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2947 if err := pcall(func() {
2951 }))(obj)).Pos).serialize(w)
2956 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2963 write32(w, math.Float32bits(x))
2970 write32(w, math.Float32bits(x))
2974 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2975 if err := pcall(func() {
2979 }))(obj)).Pos).deserialize(r)
2984 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2991 *p = math.Float32frombits(read32(r))
2998 *p = math.Float32frombits(read32(r))
3002 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
3003 local96 := utf16.Encode([]rune((*(*(struct {
3007 if len((local96)) > math.MaxUint16 {
3011 x := uint16(len((local96)))
3012 write16(w, uint16(x))
3014 for local97 := range local96 {
3016 x := (local96)[local97]
3017 write16(w, uint16(x))
3022 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
3023 var local98 []uint16
3029 (local98) = make([]uint16, local99)
3030 for local100 := range local98 {
3032 p := &(local98)[local100]
3039 }))(obj)).Reason = string(utf16.Decode(local98))
3042 func (obj *ToCltFOV) serialize(w io.Writer) {
3047 TransitionTime float32
3049 write32(w, math.Float32bits(x))
3055 TransitionTime float32
3056 }))(obj)).Multiplier
3068 TransitionTime float32
3069 }))(obj)).TransitionTime
3070 write32(w, math.Float32bits(x))
3074 func (obj *ToCltFOV) deserialize(r io.Reader) {
3079 TransitionTime float32
3081 *p = math.Float32frombits(read32(r))
3087 TransitionTime float32
3088 }))(obj)).Multiplier
3089 switch n := read8(r); n {
3095 chk(fmt.Errorf("invalid bool: %d", n))
3103 TransitionTime float32
3104 }))(obj)).TransitionTime
3105 *p = math.Float32frombits(read32(r))
3109 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3122 if err := pcall(func() {
3126 }))(obj)).PointAt).serialize(w)
3131 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3135 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3141 switch n := read8(r); n {
3147 chk(fmt.Errorf("invalid bool: %d", n))
3151 if err := pcall(func() {
3155 }))(obj)).PointAt).deserialize(r)
3160 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3164 func (obj *ToCltMedia) serialize(w io.Writer) {
3167 // N is the total number of ToCltMedia packets.
3168 // I is the index of this packet.
3179 write16(w, uint16(x))
3183 // N is the total number of ToCltMedia packets.
3184 // I is the index of this packet.
3195 write16(w, uint16(x))
3197 if len(((*(*(struct {
3198 // N is the total number of ToCltMedia packets.
3199 // I is the index of this packet.
3209 }))(obj)).Files)) > math.MaxUint32 {
3213 x := uint32(len(((*(*(struct {
3214 // N is the total number of ToCltMedia packets.
3215 // I is the index of this packet.
3226 write32(w, uint32(x))
3228 for local101 := range (*(*(struct {
3229 // N is the total number of ToCltMedia packets.
3230 // I is the index of this packet.
3241 if len(([]byte((((*(*(struct {
3242 // N is the total number of ToCltMedia packets.
3243 // I is the index of this packet.
3253 }))(obj)).Files)[local101]).Name))) > math.MaxUint16 {
3257 x := uint16(len(([]byte((((*(*(struct {
3258 // N is the total number of ToCltMedia packets.
3259 // I is the index of this packet.
3269 }))(obj)).Files)[local101]).Name))))
3270 write16(w, uint16(x))
3273 _, err := w.Write(([]byte((((*(*(struct {
3274 // N is the total number of ToCltMedia packets.
3275 // I is the index of this packet.
3285 }))(obj)).Files)[local101]).Name))[:])
3288 if len(((((*(*(struct {
3289 // N is the total number of ToCltMedia packets.
3290 // I is the index of this packet.
3300 }))(obj)).Files)[local101]).Data)) > math.MaxUint32 {
3304 x := uint32(len(((((*(*(struct {
3305 // N is the total number of ToCltMedia packets.
3306 // I is the index of this packet.
3316 }))(obj)).Files)[local101]).Data)))
3317 write32(w, uint32(x))
3320 _, err := w.Write(((((*(*(struct {
3321 // N is the total number of ToCltMedia packets.
3322 // I is the index of this packet.
3332 }))(obj)).Files)[local101]).Data)[:])
3338 func (obj *ToCltMedia) deserialize(r io.Reader) {
3341 // N is the total number of ToCltMedia packets.
3342 // I is the index of this packet.
3357 // N is the total number of ToCltMedia packets.
3358 // I is the index of this packet.
3377 // N is the total number of ToCltMedia packets.
3378 // I is the index of this packet.
3388 }))(obj)).Files) = make([]struct {
3392 for local103 := range (*(*(struct {
3393 // N is the total number of ToCltMedia packets.
3394 // I is the index of this packet.
3405 var local104 []uint8
3411 (local104) = make([]uint8, local105)
3413 _, err := io.ReadFull(r, (local104)[:])
3417 // N is the total number of ToCltMedia packets.
3418 // I is the index of this packet.
3428 }))(obj)).Files)[local103]).Name) = string(local104)
3435 // N is the total number of ToCltMedia packets.
3436 // I is the index of this packet.
3446 }))(obj)).Files)[local103]).Data) = make([]byte, local106)
3448 _, err := io.ReadFull(r, ((((*(*(struct {
3449 // N is the total number of ToCltMedia packets.
3450 // I is the index of this packet.
3460 }))(obj)).Files)[local103]).Data)[:])
3466 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3469 w := new(bytes.Buffer)
3471 w := zlib.NewWriter(w)
3473 local107 := uint8(1)
3482 // See (de)serialize.fmt.
3485 { // For ToCltNodeDefs.Defs.
3486 if len(x) > math.MaxUint16 {
3489 write16(w, uint16(len(x)))
3494 if b.Len() > math.MaxUint32 {
3497 write32(w, uint32(b.Len()))
3498 _, err := b.WriteTo(w)
3507 if len((buf.Bytes())) > math.MaxUint32 {
3511 x := uint32(len((buf.Bytes())))
3512 write32(w, uint32(x))
3515 _, err := w.Write((buf.Bytes())[:])
3522 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3529 r := &io.LimitedReader{R: r, N: int64(n)}
3531 r, err := zlib.NewReader(byteReader{r})
3535 local109 := uint8(1)
3540 if local108 != local109 {
3541 chk(fmt.Errorf("const %v: %v", "uint8(1)", local108))
3547 // See (de)serialize.fmt.
3550 { // For ToCltNodeDefs.Defs.
3551 *p = make([]NodeDef, read16(r))
3552 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3554 (*p)[i].deserialize(r)
3557 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3564 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3569 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3570 if len(((*(*(struct {
3576 }))(obj)).Files)) > math.MaxUint16 {
3580 x := uint16(len(((*(*(struct {
3587 write16(w, uint16(x))
3589 for local110 := range (*(*(struct {
3596 if len(([]byte((((*(*(struct {
3602 }))(obj)).Files)[local110]).Name))) > math.MaxUint16 {
3606 x := uint16(len(([]byte((((*(*(struct {
3612 }))(obj)).Files)[local110]).Name))))
3613 write16(w, uint16(x))
3616 _, err := w.Write(([]byte((((*(*(struct {
3622 }))(obj)).Files)[local110]).Name))[:])
3625 if len(([]byte((((*(*(struct {
3631 }))(obj)).Files)[local110]).Base64SHA1))) > math.MaxUint16 {
3635 x := uint16(len(([]byte((((*(*(struct {
3641 }))(obj)).Files)[local110]).Base64SHA1))))
3642 write16(w, uint16(x))
3645 _, err := w.Write(([]byte((((*(*(struct {
3651 }))(obj)).Files)[local110]).Base64SHA1))[:])
3655 if len(([]byte((*(*(struct {
3661 }))(obj)).URL))) > math.MaxUint16 {
3665 x := uint16(len(([]byte((*(*(struct {
3672 write16(w, uint16(x))
3675 _, err := w.Write(([]byte((*(*(struct {
3686 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3698 }))(obj)).Files) = make([]struct {
3702 for local112 := range (*(*(struct {
3709 var local113 []uint8
3715 (local113) = make([]uint8, local114)
3717 _, err := io.ReadFull(r, (local113)[:])
3726 }))(obj)).Files)[local112]).Name) = string(local113)
3727 var local115 []uint8
3733 (local115) = make([]uint8, local116)
3735 _, err := io.ReadFull(r, (local115)[:])
3744 }))(obj)).Files)[local112]).Base64SHA1) = string(local115)
3746 var local117 []uint8
3752 (local117) = make([]uint8, local118)
3754 _, err := io.ReadFull(r, (local117)[:])
3763 }))(obj)).URL) = string(local117)
3766 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3769 w := new(bytes.Buffer)
3771 w := zlib.NewWriter(w)
3773 local119 := uint8(0)
3779 if len(((*(*(struct {
3781 Aliases []struct{ Alias, Orig string }
3782 }))(obj)).Defs)) > math.MaxUint16 {
3786 x := uint16(len(((*(*(struct {
3788 Aliases []struct{ Alias, Orig string }
3790 write16(w, uint16(x))
3792 for local120 := range (*(*(struct {
3794 Aliases []struct{ Alias, Orig string }
3796 if err := pcall(func() {
3799 Aliases []struct{ Alias, Orig string }
3800 }))(obj)).Defs)[local120]).serialize(w)
3805 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3808 if len(((*(*(struct {
3810 Aliases []struct{ Alias, Orig string }
3811 }))(obj)).Aliases)) > math.MaxUint16 {
3815 x := uint16(len(((*(*(struct {
3817 Aliases []struct{ Alias, Orig string }
3818 }))(obj)).Aliases)))
3819 write16(w, uint16(x))
3821 for local121 := range (*(*(struct {
3823 Aliases []struct{ Alias, Orig string }
3825 if len(([]byte((((*(*(struct {
3827 Aliases []struct{ Alias, Orig string }
3828 }))(obj)).Aliases)[local121]).Alias))) > math.MaxUint16 {
3832 x := uint16(len(([]byte((((*(*(struct {
3834 Aliases []struct{ Alias, Orig string }
3835 }))(obj)).Aliases)[local121]).Alias))))
3836 write16(w, uint16(x))
3839 _, err := w.Write(([]byte((((*(*(struct {
3841 Aliases []struct{ Alias, Orig string }
3842 }))(obj)).Aliases)[local121]).Alias))[:])
3845 if len(([]byte((((*(*(struct {
3847 Aliases []struct{ Alias, Orig string }
3848 }))(obj)).Aliases)[local121]).Orig))) > math.MaxUint16 {
3852 x := uint16(len(([]byte((((*(*(struct {
3854 Aliases []struct{ Alias, Orig string }
3855 }))(obj)).Aliases)[local121]).Orig))))
3856 write16(w, uint16(x))
3859 _, err := w.Write(([]byte((((*(*(struct {
3861 Aliases []struct{ Alias, Orig string }
3862 }))(obj)).Aliases)[local121]).Orig))[:])
3871 if len((buf.Bytes())) > math.MaxUint32 {
3875 x := uint32(len((buf.Bytes())))
3876 write32(w, uint32(x))
3879 _, err := w.Write((buf.Bytes())[:])
3886 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3893 r := &io.LimitedReader{R: r, N: int64(n)}
3895 r, err := zlib.NewReader(byteReader{r})
3899 local123 := uint8(0)
3904 if local122 != local123 {
3905 chk(fmt.Errorf("const %v: %v", "uint8(0)", local122))
3915 Aliases []struct{ Alias, Orig string }
3916 }))(obj)).Defs) = make([]ItemDef, local124)
3917 for local125 := range (*(*(struct {
3919 Aliases []struct{ Alias, Orig string }
3921 if err := pcall(func() {
3924 Aliases []struct{ Alias, Orig string }
3925 }))(obj)).Defs)[local125]).deserialize(r)
3930 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3940 Aliases []struct{ Alias, Orig string }
3941 }))(obj)).Aliases) = make([]struct {
3945 for local127 := range (*(*(struct {
3947 Aliases []struct{ Alias, Orig string }
3949 var local128 []uint8
3955 (local128) = make([]uint8, local129)
3957 _, err := io.ReadFull(r, (local128)[:])
3962 Aliases []struct{ Alias, Orig string }
3963 }))(obj)).Aliases)[local127]).Alias) = string(local128)
3964 var local130 []uint8
3970 (local130) = make([]uint8, local131)
3972 _, err := io.ReadFull(r, (local130)[:])
3977 Aliases []struct{ Alias, Orig string }
3978 }))(obj)).Aliases)[local127]).Orig) = string(local130)
3983 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3988 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3989 if err := pcall(func() {
3994 SrcType SoundSrcType
4001 }))(obj)).ID).serialize(w)
4006 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4008 if len(([]byte((*(*(struct {
4012 SrcType SoundSrcType
4019 }))(obj)).Name))) > math.MaxUint16 {
4023 x := uint16(len(([]byte((*(*(struct {
4027 SrcType SoundSrcType
4035 write16(w, uint16(x))
4038 _, err := w.Write(([]byte((*(*(struct {
4042 SrcType SoundSrcType
4049 }))(obj)).Name))[:])
4057 SrcType SoundSrcType
4065 write32(w, math.Float32bits(x))
4067 if err := pcall(func() {
4072 SrcType SoundSrcType
4079 }))(obj)).SrcType).serialize(w)
4084 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4086 if err := pcall(func() {
4091 SrcType SoundSrcType
4098 }))(obj)).Pos).serialize(w)
4103 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4105 if err := pcall(func() {
4110 SrcType SoundSrcType
4117 }))(obj)).SrcAOID).serialize(w)
4122 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4129 SrcType SoundSrcType
4149 SrcType SoundSrcType
4157 write32(w, math.Float32bits(x))
4164 SrcType SoundSrcType
4172 write32(w, math.Float32bits(x))
4179 SrcType SoundSrcType
4196 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4197 if err := pcall(func() {
4202 SrcType SoundSrcType
4209 }))(obj)).ID).deserialize(r)
4214 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4216 var local132 []uint8
4222 (local132) = make([]uint8, local133)
4224 _, err := io.ReadFull(r, (local132)[:])
4231 SrcType SoundSrcType
4238 }))(obj)).Name) = string(local132)
4244 SrcType SoundSrcType
4252 *p = math.Float32frombits(read32(r))
4254 if err := pcall(func() {
4259 SrcType SoundSrcType
4266 }))(obj)).SrcType).deserialize(r)
4271 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4273 if err := pcall(func() {
4278 SrcType SoundSrcType
4285 }))(obj)).Pos).deserialize(r)
4290 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4292 if err := pcall(func() {
4297 SrcType SoundSrcType
4304 }))(obj)).SrcAOID).deserialize(r)
4309 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4316 SrcType SoundSrcType
4324 switch n := read8(r); n {
4330 chk(fmt.Errorf("invalid bool: %d", n))
4339 SrcType SoundSrcType
4347 *p = math.Float32frombits(read32(r))
4354 SrcType SoundSrcType
4362 *p = math.Float32frombits(read32(r))
4369 SrcType SoundSrcType
4377 switch n := read8(r); n {
4383 chk(fmt.Errorf("invalid bool: %d", n))
4389 func (obj *ToCltStopSound) serialize(w io.Writer) {
4390 if err := pcall(func() {
4393 }))(obj)).ID).serialize(w)
4398 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4402 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4403 if err := pcall(func() {
4406 }))(obj)).ID).deserialize(r)
4411 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4415 func (obj *ToCltPrivs) serialize(w io.Writer) {
4416 if len(((*(*(struct {
4418 }))(obj)).Privs)) > math.MaxUint16 {
4422 x := uint16(len(((*(*(struct {
4425 write16(w, uint16(x))
4427 for local134 := range (*(*(struct {
4430 if len(([]byte(((*(*(struct {
4432 }))(obj)).Privs)[local134]))) > math.MaxUint16 {
4436 x := uint16(len(([]byte(((*(*(struct {
4438 }))(obj)).Privs)[local134]))))
4439 write16(w, uint16(x))
4442 _, err := w.Write(([]byte(((*(*(struct {
4444 }))(obj)).Privs)[local134]))[:])
4450 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4458 }))(obj)).Privs) = make([]string, local135)
4459 for local136 := range (*(*(struct {
4462 var local137 []uint8
4468 (local137) = make([]uint8, local138)
4470 _, err := io.ReadFull(r, (local137)[:])
4475 }))(obj)).Privs)[local136]) = string(local137)
4479 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4480 if len(([]byte((*(*(struct {
4483 }))(obj)).Formspec))) > math.MaxUint32 {
4487 x := uint32(len(([]byte((*(*(struct {
4490 }))(obj)).Formspec))))
4491 write32(w, uint32(x))
4494 _, err := w.Write(([]byte((*(*(struct {
4497 }))(obj)).Formspec))[:])
4502 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4503 var local139 []uint8
4509 (local139) = make([]uint8, local140)
4511 _, err := io.ReadFull(r, (local139)[:])
4517 }))(obj)).Formspec) = string(local139)
4520 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4521 if len(([]byte((*(*(struct {
4524 Len uint16 // deprecated
4528 }))(obj)).Name))) > math.MaxUint16 {
4532 x := uint16(len(([]byte((*(*(struct {
4535 Len uint16 // deprecated
4540 write16(w, uint16(x))
4543 _, err := w.Write(([]byte((*(*(struct {
4546 Len uint16 // deprecated
4550 }))(obj)).Name))[:])
4557 Len uint16 // deprecated
4573 Len uint16 // deprecated
4578 write16(w, uint16(x))
4581 _, err := w.Write(([]byte((*(*(struct {
4584 Len uint16 // deprecated
4593 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4594 var local141 []uint8
4600 (local141) = make([]uint8, local142)
4602 _, err := io.ReadFull(r, (local141)[:])
4608 Len uint16 // deprecated
4612 }))(obj)).Name) = string(local141)
4617 Len uint16 // deprecated
4622 switch n := read8(r); n {
4628 chk(fmt.Errorf("invalid bool: %d", n))
4636 Len uint16 // deprecated
4643 var local143 []uint8
4646 (local143), err = io.ReadAll(r)
4652 Len uint16 // deprecated
4656 }))(obj)).Inv) = string(local143)
4659 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4660 if len(([]byte((*(*(struct {
4665 }))(obj)).Formspec))) > math.MaxUint32 {
4669 x := uint32(len(([]byte((*(*(struct {
4674 }))(obj)).Formspec))))
4675 write32(w, uint32(x))
4678 _, err := w.Write(([]byte((*(*(struct {
4683 }))(obj)).Formspec))[:])
4686 if len(([]byte((*(*(struct {
4691 }))(obj)).Formname))) > math.MaxUint16 {
4695 x := uint16(len(([]byte((*(*(struct {
4700 }))(obj)).Formname))))
4701 write16(w, uint16(x))
4704 _, err := w.Write(([]byte((*(*(struct {
4709 }))(obj)).Formname))[:])
4714 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4715 var local144 []uint8
4721 (local144) = make([]uint8, local145)
4723 _, err := io.ReadFull(r, (local144)[:])
4731 }))(obj)).Formspec) = string(local144)
4732 var local146 []uint8
4738 (local146) = make([]uint8, local147)
4740 _, err := io.ReadFull(r, (local146)[:])
4748 }))(obj)).Formname) = string(local146)
4751 func (obj *ToCltMovement) serialize(w io.Writer) {
4754 DefaultAccel, AirAccel, FastAccel,
4755 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4756 Fluidity, Smoothing, Sink,
4758 }))(obj)).DefaultAccel
4759 write32(w, math.Float32bits(x))
4763 DefaultAccel, AirAccel, FastAccel,
4764 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4765 Fluidity, Smoothing, Sink,
4768 write32(w, math.Float32bits(x))
4772 DefaultAccel, AirAccel, FastAccel,
4773 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4774 Fluidity, Smoothing, Sink,
4777 write32(w, math.Float32bits(x))
4781 DefaultAccel, AirAccel, FastAccel,
4782 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4783 Fluidity, Smoothing, Sink,
4786 write32(w, math.Float32bits(x))
4790 DefaultAccel, AirAccel, FastAccel,
4791 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4792 Fluidity, Smoothing, Sink,
4794 }))(obj)).CrouchSpeed
4795 write32(w, math.Float32bits(x))
4799 DefaultAccel, AirAccel, FastAccel,
4800 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4801 Fluidity, Smoothing, Sink,
4804 write32(w, math.Float32bits(x))
4808 DefaultAccel, AirAccel, FastAccel,
4809 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4810 Fluidity, Smoothing, Sink,
4812 }))(obj)).ClimbSpeed
4813 write32(w, math.Float32bits(x))
4817 DefaultAccel, AirAccel, FastAccel,
4818 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4819 Fluidity, Smoothing, Sink,
4822 write32(w, math.Float32bits(x))
4826 DefaultAccel, AirAccel, FastAccel,
4827 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4828 Fluidity, Smoothing, Sink,
4831 write32(w, math.Float32bits(x))
4835 DefaultAccel, AirAccel, FastAccel,
4836 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4837 Fluidity, Smoothing, Sink,
4840 write32(w, math.Float32bits(x))
4844 DefaultAccel, AirAccel, FastAccel,
4845 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4846 Fluidity, Smoothing, Sink,
4849 write32(w, math.Float32bits(x))
4853 DefaultAccel, AirAccel, FastAccel,
4854 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4855 Fluidity, Smoothing, Sink,
4858 write32(w, math.Float32bits(x))
4862 func (obj *ToCltMovement) deserialize(r io.Reader) {
4865 DefaultAccel, AirAccel, FastAccel,
4866 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4867 Fluidity, Smoothing, Sink,
4869 }))(obj)).DefaultAccel
4870 *p = math.Float32frombits(read32(r))
4874 DefaultAccel, AirAccel, FastAccel,
4875 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4876 Fluidity, Smoothing, Sink,
4879 *p = math.Float32frombits(read32(r))
4883 DefaultAccel, AirAccel, FastAccel,
4884 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4885 Fluidity, Smoothing, Sink,
4888 *p = math.Float32frombits(read32(r))
4892 DefaultAccel, AirAccel, FastAccel,
4893 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4894 Fluidity, Smoothing, Sink,
4897 *p = math.Float32frombits(read32(r))
4901 DefaultAccel, AirAccel, FastAccel,
4902 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4903 Fluidity, Smoothing, Sink,
4905 }))(obj)).CrouchSpeed
4906 *p = math.Float32frombits(read32(r))
4910 DefaultAccel, AirAccel, FastAccel,
4911 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4912 Fluidity, Smoothing, Sink,
4915 *p = math.Float32frombits(read32(r))
4919 DefaultAccel, AirAccel, FastAccel,
4920 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4921 Fluidity, Smoothing, Sink,
4923 }))(obj)).ClimbSpeed
4924 *p = math.Float32frombits(read32(r))
4928 DefaultAccel, AirAccel, FastAccel,
4929 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4930 Fluidity, Smoothing, Sink,
4933 *p = math.Float32frombits(read32(r))
4937 DefaultAccel, AirAccel, FastAccel,
4938 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4939 Fluidity, Smoothing, Sink,
4942 *p = math.Float32frombits(read32(r))
4946 DefaultAccel, AirAccel, FastAccel,
4947 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4948 Fluidity, Smoothing, Sink,
4951 *p = math.Float32frombits(read32(r))
4955 DefaultAccel, AirAccel, FastAccel,
4956 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4957 Fluidity, Smoothing, Sink,
4960 *p = math.Float32frombits(read32(r))
4964 DefaultAccel, AirAccel, FastAccel,
4965 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4966 Fluidity, Smoothing, Sink,
4969 *p = math.Float32frombits(read32(r))
4973 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4974 for local148 := range (*(*(struct {
4975 Pos, Vel, Acc [3]float32
4976 ExpirationTime float32 // in seconds.
4994 Pos, Vel, Acc [3]float32
4995 ExpirationTime float32 // in seconds.
5010 }))(obj)).Pos)[local148]
5011 write32(w, math.Float32bits(x))
5014 for local149 := range (*(*(struct {
5015 Pos, Vel, Acc [3]float32
5016 ExpirationTime float32 // in seconds.
5034 Pos, Vel, Acc [3]float32
5035 ExpirationTime float32 // in seconds.
5050 }))(obj)).Vel)[local149]
5051 write32(w, math.Float32bits(x))
5054 for local150 := range (*(*(struct {
5055 Pos, Vel, Acc [3]float32
5056 ExpirationTime float32 // in seconds.
5074 Pos, Vel, Acc [3]float32
5075 ExpirationTime float32 // in seconds.
5090 }))(obj)).Acc)[local150]
5091 write32(w, math.Float32bits(x))
5096 Pos, Vel, Acc [3]float32
5097 ExpirationTime float32 // in seconds.
5112 }))(obj)).ExpirationTime
5113 write32(w, math.Float32bits(x))
5117 Pos, Vel, Acc [3]float32
5118 ExpirationTime float32 // in seconds.
5134 write32(w, math.Float32bits(x))
5138 Pos, Vel, Acc [3]float32
5139 ExpirationTime float32 // in seconds.
5162 if len(([]byte(*(*string)(&((*(*(struct {
5163 Pos, Vel, Acc [3]float32
5164 ExpirationTime float32 // in seconds.
5179 }))(obj)).Texture))))) > math.MaxUint32 {
5183 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5184 Pos, Vel, Acc [3]float32
5185 ExpirationTime float32 // in seconds.
5200 }))(obj)).Texture))))))
5201 write32(w, uint32(x))
5204 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5205 Pos, Vel, Acc [3]float32
5206 ExpirationTime float32 // in seconds.
5221 }))(obj)).Texture))))[:])
5226 Pos, Vel, Acc [3]float32
5227 ExpirationTime float32 // in seconds.
5252 Pos, Vel, Acc [3]float32
5253 ExpirationTime float32 // in seconds.
5268 }))(obj)).CollisionRm
5276 if err := pcall(func() {
5278 Pos, Vel, Acc [3]float32
5279 ExpirationTime float32 // in seconds.
5294 }))(obj)).AnimParams).serialize(w)
5299 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5303 Pos, Vel, Acc [3]float32
5304 ExpirationTime float32 // in seconds.
5324 Pos, Vel, Acc [3]float32
5325 ExpirationTime float32 // in seconds.
5340 }))(obj)).AOCollision
5348 if err := pcall(func() {
5350 Pos, Vel, Acc [3]float32
5351 ExpirationTime float32 // in seconds.
5366 }))(obj)).NodeParam0).serialize(w)
5371 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5375 Pos, Vel, Acc [3]float32
5376 ExpirationTime float32 // in seconds.
5391 }))(obj)).NodeParam2
5396 Pos, Vel, Acc [3]float32
5397 ExpirationTime float32 // in seconds.
5417 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5418 for local151 := range (*(*(struct {
5419 Pos, Vel, Acc [3]float32
5420 ExpirationTime float32 // in seconds.
5437 p := &((*(*(struct {
5438 Pos, Vel, Acc [3]float32
5439 ExpirationTime float32 // in seconds.
5454 }))(obj)).Pos)[local151]
5455 *p = math.Float32frombits(read32(r))
5458 for local152 := range (*(*(struct {
5459 Pos, Vel, Acc [3]float32
5460 ExpirationTime float32 // in seconds.
5477 p := &((*(*(struct {
5478 Pos, Vel, Acc [3]float32
5479 ExpirationTime float32 // in seconds.
5494 }))(obj)).Vel)[local152]
5495 *p = math.Float32frombits(read32(r))
5498 for local153 := range (*(*(struct {
5499 Pos, Vel, Acc [3]float32
5500 ExpirationTime float32 // in seconds.
5517 p := &((*(*(struct {
5518 Pos, Vel, Acc [3]float32
5519 ExpirationTime float32 // in seconds.
5534 }))(obj)).Acc)[local153]
5535 *p = math.Float32frombits(read32(r))
5540 Pos, Vel, Acc [3]float32
5541 ExpirationTime float32 // in seconds.
5556 }))(obj)).ExpirationTime
5557 *p = math.Float32frombits(read32(r))
5561 Pos, Vel, Acc [3]float32
5562 ExpirationTime float32 // in seconds.
5578 *p = math.Float32frombits(read32(r))
5582 Pos, Vel, Acc [3]float32
5583 ExpirationTime float32 // in seconds.
5599 switch n := read8(r); n {
5605 chk(fmt.Errorf("invalid bool: %d", n))
5609 var local154 []uint8
5615 (local154) = make([]uint8, local155)
5617 _, err := io.ReadFull(r, (local154)[:])
5620 (*(*string)(&((*(*(struct {
5621 Pos, Vel, Acc [3]float32
5622 ExpirationTime float32 // in seconds.
5637 }))(obj)).Texture))) = string(local154)
5640 Pos, Vel, Acc [3]float32
5641 ExpirationTime float32 // in seconds.
5657 switch n := read8(r); n {
5663 chk(fmt.Errorf("invalid bool: %d", n))
5669 Pos, Vel, Acc [3]float32
5670 ExpirationTime float32 // in seconds.
5685 }))(obj)).CollisionRm
5686 switch n := read8(r); n {
5692 chk(fmt.Errorf("invalid bool: %d", n))
5696 if err := pcall(func() {
5698 Pos, Vel, Acc [3]float32
5699 ExpirationTime float32 // in seconds.
5714 }))(obj)).AnimParams).deserialize(r)
5719 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5723 Pos, Vel, Acc [3]float32
5724 ExpirationTime float32 // in seconds.
5744 Pos, Vel, Acc [3]float32
5745 ExpirationTime float32 // in seconds.
5760 }))(obj)).AOCollision
5761 switch n := read8(r); n {
5767 chk(fmt.Errorf("invalid bool: %d", n))
5771 if err := pcall(func() {
5773 Pos, Vel, Acc [3]float32
5774 ExpirationTime float32 // in seconds.
5789 }))(obj)).NodeParam0).deserialize(r)
5794 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5798 Pos, Vel, Acc [3]float32
5799 ExpirationTime float32 // in seconds.
5814 }))(obj)).NodeParam2
5819 Pos, Vel, Acc [3]float32
5820 ExpirationTime float32 // in seconds.
5840 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5845 Pos, Vel, Acc [2][3]float32
5846 ExpirationTime [2]float32 // in seconds.
5853 ID ParticleSpawnerID
5864 write16(w, uint16(x))
5870 Pos, Vel, Acc [2][3]float32
5871 ExpirationTime [2]float32 // in seconds.
5878 ID ParticleSpawnerID
5889 write32(w, math.Float32bits(x))
5891 for local156 := range (*(*(struct {
5894 Pos, Vel, Acc [2][3]float32
5895 ExpirationTime [2]float32 // in seconds.
5902 ID ParticleSpawnerID
5913 for local157 := range ((*(*(struct {
5916 Pos, Vel, Acc [2][3]float32
5917 ExpirationTime [2]float32 // in seconds.
5924 ID ParticleSpawnerID
5934 }))(obj)).Pos)[local156] {
5936 x := (((*(*(struct {
5939 Pos, Vel, Acc [2][3]float32
5940 ExpirationTime [2]float32 // in seconds.
5947 ID ParticleSpawnerID
5957 }))(obj)).Pos)[local156])[local157]
5958 write32(w, math.Float32bits(x))
5962 for local158 := range (*(*(struct {
5965 Pos, Vel, Acc [2][3]float32
5966 ExpirationTime [2]float32 // in seconds.
5973 ID ParticleSpawnerID
5984 for local159 := range ((*(*(struct {
5987 Pos, Vel, Acc [2][3]float32
5988 ExpirationTime [2]float32 // in seconds.
5995 ID ParticleSpawnerID
6005 }))(obj)).Vel)[local158] {
6007 x := (((*(*(struct {
6010 Pos, Vel, Acc [2][3]float32
6011 ExpirationTime [2]float32 // in seconds.
6018 ID ParticleSpawnerID
6028 }))(obj)).Vel)[local158])[local159]
6029 write32(w, math.Float32bits(x))
6033 for local160 := range (*(*(struct {
6036 Pos, Vel, Acc [2][3]float32
6037 ExpirationTime [2]float32 // in seconds.
6044 ID ParticleSpawnerID
6055 for local161 := range ((*(*(struct {
6058 Pos, Vel, Acc [2][3]float32
6059 ExpirationTime [2]float32 // in seconds.
6066 ID ParticleSpawnerID
6076 }))(obj)).Acc)[local160] {
6078 x := (((*(*(struct {
6081 Pos, Vel, Acc [2][3]float32
6082 ExpirationTime [2]float32 // in seconds.
6089 ID ParticleSpawnerID
6099 }))(obj)).Acc)[local160])[local161]
6100 write32(w, math.Float32bits(x))
6104 for local162 := range (*(*(struct {
6107 Pos, Vel, Acc [2][3]float32
6108 ExpirationTime [2]float32 // in seconds.
6115 ID ParticleSpawnerID
6125 }))(obj)).ExpirationTime {
6130 Pos, Vel, Acc [2][3]float32
6131 ExpirationTime [2]float32 // in seconds.
6138 ID ParticleSpawnerID
6148 }))(obj)).ExpirationTime)[local162]
6149 write32(w, math.Float32bits(x))
6152 for local163 := range (*(*(struct {
6155 Pos, Vel, Acc [2][3]float32
6156 ExpirationTime [2]float32 // in seconds.
6163 ID ParticleSpawnerID
6178 Pos, Vel, Acc [2][3]float32
6179 ExpirationTime [2]float32 // in seconds.
6186 ID ParticleSpawnerID
6196 }))(obj)).Size)[local163]
6197 write32(w, math.Float32bits(x))
6204 Pos, Vel, Acc [2][3]float32
6205 ExpirationTime [2]float32 // in seconds.
6212 ID ParticleSpawnerID
6230 if len(([]byte(*(*string)(&((*(*(struct {
6233 Pos, Vel, Acc [2][3]float32
6234 ExpirationTime [2]float32 // in seconds.
6241 ID ParticleSpawnerID
6251 }))(obj)).Texture))))) > math.MaxUint32 {
6255 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6258 Pos, Vel, Acc [2][3]float32
6259 ExpirationTime [2]float32 // in seconds.
6266 ID ParticleSpawnerID
6276 }))(obj)).Texture))))))
6277 write32(w, uint32(x))
6280 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6283 Pos, Vel, Acc [2][3]float32
6284 ExpirationTime [2]float32 // in seconds.
6291 ID ParticleSpawnerID
6301 }))(obj)).Texture))))[:])
6304 if err := pcall(func() {
6308 Pos, Vel, Acc [2][3]float32
6309 ExpirationTime [2]float32 // in seconds.
6316 ID ParticleSpawnerID
6326 }))(obj)).ID).serialize(w)
6331 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
6337 Pos, Vel, Acc [2][3]float32
6338 ExpirationTime [2]float32 // in seconds.
6345 ID ParticleSpawnerID
6367 Pos, Vel, Acc [2][3]float32
6368 ExpirationTime [2]float32 // in seconds.
6375 ID ParticleSpawnerID
6385 }))(obj)).CollisionRm
6393 if err := pcall(func() {
6397 Pos, Vel, Acc [2][3]float32
6398 ExpirationTime [2]float32 // in seconds.
6405 ID ParticleSpawnerID
6415 }))(obj)).AttachedAOID).serialize(w)
6420 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
6422 if err := pcall(func() {
6426 Pos, Vel, Acc [2][3]float32
6427 ExpirationTime [2]float32 // in seconds.
6434 ID ParticleSpawnerID
6444 }))(obj)).AnimParams).serialize(w)
6449 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
6455 Pos, Vel, Acc [2][3]float32
6456 ExpirationTime [2]float32 // in seconds.
6463 ID ParticleSpawnerID
6480 Pos, Vel, Acc [2][3]float32
6481 ExpirationTime [2]float32 // in seconds.
6488 ID ParticleSpawnerID
6498 }))(obj)).AOCollision
6506 if err := pcall(func() {
6510 Pos, Vel, Acc [2][3]float32
6511 ExpirationTime [2]float32 // in seconds.
6518 ID ParticleSpawnerID
6528 }))(obj)).NodeParam0).serialize(w)
6533 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
6539 Pos, Vel, Acc [2][3]float32
6540 ExpirationTime [2]float32 // in seconds.
6547 ID ParticleSpawnerID
6557 }))(obj)).NodeParam2
6564 Pos, Vel, Acc [2][3]float32
6565 ExpirationTime [2]float32 // in seconds.
6572 ID ParticleSpawnerID
6587 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6592 Pos, Vel, Acc [2][3]float32
6593 ExpirationTime [2]float32 // in seconds.
6600 ID ParticleSpawnerID
6617 Pos, Vel, Acc [2][3]float32
6618 ExpirationTime [2]float32 // in seconds.
6625 ID ParticleSpawnerID
6636 *p = math.Float32frombits(read32(r))
6638 for local164 := range (*(*(struct {
6641 Pos, Vel, Acc [2][3]float32
6642 ExpirationTime [2]float32 // in seconds.
6649 ID ParticleSpawnerID
6660 for local165 := range ((*(*(struct {
6663 Pos, Vel, Acc [2][3]float32
6664 ExpirationTime [2]float32 // in seconds.
6671 ID ParticleSpawnerID
6681 }))(obj)).Pos)[local164] {
6683 p := &(((*(*(struct {
6686 Pos, Vel, Acc [2][3]float32
6687 ExpirationTime [2]float32 // in seconds.
6694 ID ParticleSpawnerID
6704 }))(obj)).Pos)[local164])[local165]
6705 *p = math.Float32frombits(read32(r))
6709 for local166 := range (*(*(struct {
6712 Pos, Vel, Acc [2][3]float32
6713 ExpirationTime [2]float32 // in seconds.
6720 ID ParticleSpawnerID
6731 for local167 := range ((*(*(struct {
6734 Pos, Vel, Acc [2][3]float32
6735 ExpirationTime [2]float32 // in seconds.
6742 ID ParticleSpawnerID
6752 }))(obj)).Vel)[local166] {
6754 p := &(((*(*(struct {
6757 Pos, Vel, Acc [2][3]float32
6758 ExpirationTime [2]float32 // in seconds.
6765 ID ParticleSpawnerID
6775 }))(obj)).Vel)[local166])[local167]
6776 *p = math.Float32frombits(read32(r))
6780 for local168 := range (*(*(struct {
6783 Pos, Vel, Acc [2][3]float32
6784 ExpirationTime [2]float32 // in seconds.
6791 ID ParticleSpawnerID
6802 for local169 := range ((*(*(struct {
6805 Pos, Vel, Acc [2][3]float32
6806 ExpirationTime [2]float32 // in seconds.
6813 ID ParticleSpawnerID
6823 }))(obj)).Acc)[local168] {
6825 p := &(((*(*(struct {
6828 Pos, Vel, Acc [2][3]float32
6829 ExpirationTime [2]float32 // in seconds.
6836 ID ParticleSpawnerID
6846 }))(obj)).Acc)[local168])[local169]
6847 *p = math.Float32frombits(read32(r))
6851 for local170 := range (*(*(struct {
6854 Pos, Vel, Acc [2][3]float32
6855 ExpirationTime [2]float32 // in seconds.
6862 ID ParticleSpawnerID
6872 }))(obj)).ExpirationTime {
6874 p := &((*(*(struct {
6877 Pos, Vel, Acc [2][3]float32
6878 ExpirationTime [2]float32 // in seconds.
6885 ID ParticleSpawnerID
6895 }))(obj)).ExpirationTime)[local170]
6896 *p = math.Float32frombits(read32(r))
6899 for local171 := range (*(*(struct {
6902 Pos, Vel, Acc [2][3]float32
6903 ExpirationTime [2]float32 // in seconds.
6910 ID ParticleSpawnerID
6922 p := &((*(*(struct {
6925 Pos, Vel, Acc [2][3]float32
6926 ExpirationTime [2]float32 // in seconds.
6933 ID ParticleSpawnerID
6943 }))(obj)).Size)[local171]
6944 *p = math.Float32frombits(read32(r))
6951 Pos, Vel, Acc [2][3]float32
6952 ExpirationTime [2]float32 // in seconds.
6959 ID ParticleSpawnerID
6970 switch n := read8(r); n {
6976 chk(fmt.Errorf("invalid bool: %d", n))
6980 var local172 []uint8
6986 (local172) = make([]uint8, local173)
6988 _, err := io.ReadFull(r, (local172)[:])
6991 (*(*string)(&((*(*(struct {
6994 Pos, Vel, Acc [2][3]float32
6995 ExpirationTime [2]float32 // in seconds.
7002 ID ParticleSpawnerID
7012 }))(obj)).Texture))) = string(local172)
7013 if err := pcall(func() {
7017 Pos, Vel, Acc [2][3]float32
7018 ExpirationTime [2]float32 // in seconds.
7025 ID ParticleSpawnerID
7035 }))(obj)).ID).deserialize(r)
7040 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
7046 Pos, Vel, Acc [2][3]float32
7047 ExpirationTime [2]float32 // in seconds.
7054 ID ParticleSpawnerID
7065 switch n := read8(r); n {
7071 chk(fmt.Errorf("invalid bool: %d", n))
7079 Pos, Vel, Acc [2][3]float32
7080 ExpirationTime [2]float32 // in seconds.
7087 ID ParticleSpawnerID
7097 }))(obj)).CollisionRm
7098 switch n := read8(r); n {
7104 chk(fmt.Errorf("invalid bool: %d", n))
7108 if err := pcall(func() {
7112 Pos, Vel, Acc [2][3]float32
7113 ExpirationTime [2]float32 // in seconds.
7120 ID ParticleSpawnerID
7130 }))(obj)).AttachedAOID).deserialize(r)
7135 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
7137 if err := pcall(func() {
7141 Pos, Vel, Acc [2][3]float32
7142 ExpirationTime [2]float32 // in seconds.
7149 ID ParticleSpawnerID
7159 }))(obj)).AnimParams).deserialize(r)
7164 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
7170 Pos, Vel, Acc [2][3]float32
7171 ExpirationTime [2]float32 // in seconds.
7178 ID ParticleSpawnerID
7195 Pos, Vel, Acc [2][3]float32
7196 ExpirationTime [2]float32 // in seconds.
7203 ID ParticleSpawnerID
7213 }))(obj)).AOCollision
7214 switch n := read8(r); n {
7220 chk(fmt.Errorf("invalid bool: %d", n))
7224 if err := pcall(func() {
7228 Pos, Vel, Acc [2][3]float32
7229 ExpirationTime [2]float32 // in seconds.
7236 ID ParticleSpawnerID
7246 }))(obj)).NodeParam0).deserialize(r)
7251 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
7257 Pos, Vel, Acc [2][3]float32
7258 ExpirationTime [2]float32 // in seconds.
7265 ID ParticleSpawnerID
7275 }))(obj)).NodeParam2
7282 Pos, Vel, Acc [2][3]float32
7283 ExpirationTime [2]float32 // in seconds.
7290 ID ParticleSpawnerID
7305 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7306 if err := pcall(func() {
7310 }))(obj)).ID).serialize(w)
7315 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7317 if err := pcall(func() {
7321 }))(obj)).HUD).serialize(w)
7326 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7330 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7331 if err := pcall(func() {
7335 }))(obj)).ID).deserialize(r)
7340 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7342 if err := pcall(func() {
7346 }))(obj)).HUD).deserialize(r)
7351 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7355 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7356 if err := pcall(func() {
7359 }))(obj)).ID).serialize(w)
7364 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7368 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7369 if err := pcall(func() {
7372 }))(obj)).ID).deserialize(r)
7377 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7381 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
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)).ID).serialize(w)
7431 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7433 if err := pcall(func() {
7439 //mt:if %s.Field == HUDPos
7442 //mt:if %s.Field == HUDName
7445 //mt:if %s.Field == HUDScale
7448 //mt:if %s.Field == HUDText
7451 //mt:if %s.Field == HUDNumber
7454 //mt:if %s.Field == HUDItem
7457 //mt:if %s.Field == HUDDir
7460 //mt:if %s.Field == HUDAlign
7463 //mt:if %s.Field == HUDOffset
7466 //mt:if %s.Field == HUDWorldPos
7469 //mt:if %s.Field == HUDSize
7472 //mt:if %s.Field == HUDZIndex
7475 //mt:if %s.Field == HUDText2
7477 }))(obj)).Field).serialize(w)
7482 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
7489 //mt:if %s.Field == HUDPos
7492 //mt:if %s.Field == HUDName
7495 //mt:if %s.Field == HUDScale
7498 //mt:if %s.Field == HUDText
7501 //mt:if %s.Field == HUDNumber
7504 //mt:if %s.Field == HUDItem
7507 //mt:if %s.Field == HUDDir
7510 //mt:if %s.Field == HUDAlign
7513 //mt:if %s.Field == HUDOffset
7516 //mt:if %s.Field == HUDWorldPos
7519 //mt:if %s.Field == HUDSize
7522 //mt:if %s.Field == HUDZIndex
7525 //mt:if %s.Field == HUDText2
7527 }))(obj)).Field < hudMax) {
7528 chk(errors.New("assertion failed: %s.Field < hudMax"))
7535 //mt:if %s.Field == HUDPos
7538 //mt:if %s.Field == HUDName
7541 //mt:if %s.Field == HUDScale
7544 //mt:if %s.Field == HUDText
7547 //mt:if %s.Field == HUDNumber
7550 //mt:if %s.Field == HUDItem
7553 //mt:if %s.Field == HUDDir
7556 //mt:if %s.Field == HUDAlign
7559 //mt:if %s.Field == HUDOffset
7562 //mt:if %s.Field == HUDWorldPos
7565 //mt:if %s.Field == HUDSize
7568 //mt:if %s.Field == HUDZIndex
7571 //mt:if %s.Field == HUDText2
7573 }))(obj)).Field == HUDPos {
7574 for local174 := range (*(*(struct {
7579 //mt:if %s.Field == HUDPos
7582 //mt:if %s.Field == HUDName
7585 //mt:if %s.Field == HUDScale
7588 //mt:if %s.Field == HUDText
7591 //mt:if %s.Field == HUDNumber
7594 //mt:if %s.Field == HUDItem
7597 //mt:if %s.Field == HUDDir
7600 //mt:if %s.Field == HUDAlign
7603 //mt:if %s.Field == HUDOffset
7606 //mt:if %s.Field == HUDWorldPos
7609 //mt:if %s.Field == HUDSize
7612 //mt:if %s.Field == HUDZIndex
7615 //mt:if %s.Field == HUDText2
7624 //mt:if %s.Field == HUDPos
7627 //mt:if %s.Field == HUDName
7630 //mt:if %s.Field == HUDScale
7633 //mt:if %s.Field == HUDText
7636 //mt:if %s.Field == HUDNumber
7639 //mt:if %s.Field == HUDItem
7642 //mt:if %s.Field == HUDDir
7645 //mt:if %s.Field == HUDAlign
7648 //mt:if %s.Field == HUDOffset
7651 //mt:if %s.Field == HUDWorldPos
7654 //mt:if %s.Field == HUDSize
7657 //mt:if %s.Field == HUDZIndex
7660 //mt:if %s.Field == HUDText2
7662 }))(obj)).Pos)[local174]
7663 write32(w, math.Float32bits(x))
7672 //mt:if %s.Field == HUDPos
7675 //mt:if %s.Field == HUDName
7678 //mt:if %s.Field == HUDScale
7681 //mt:if %s.Field == HUDText
7684 //mt:if %s.Field == HUDNumber
7687 //mt:if %s.Field == HUDItem
7690 //mt:if %s.Field == HUDDir
7693 //mt:if %s.Field == HUDAlign
7696 //mt:if %s.Field == HUDOffset
7699 //mt:if %s.Field == HUDWorldPos
7702 //mt:if %s.Field == HUDSize
7705 //mt:if %s.Field == HUDZIndex
7708 //mt:if %s.Field == HUDText2
7710 }))(obj)).Field == HUDName {
7711 if len(([]byte((*(*(struct {
7716 //mt:if %s.Field == HUDPos
7719 //mt:if %s.Field == HUDName
7722 //mt:if %s.Field == HUDScale
7725 //mt:if %s.Field == HUDText
7728 //mt:if %s.Field == HUDNumber
7731 //mt:if %s.Field == HUDItem
7734 //mt:if %s.Field == HUDDir
7737 //mt:if %s.Field == HUDAlign
7740 //mt:if %s.Field == HUDOffset
7743 //mt:if %s.Field == HUDWorldPos
7746 //mt:if %s.Field == HUDSize
7749 //mt:if %s.Field == HUDZIndex
7752 //mt:if %s.Field == HUDText2
7754 }))(obj)).Name))) > math.MaxUint16 {
7758 x := uint16(len(([]byte((*(*(struct {
7763 //mt:if %s.Field == HUDPos
7766 //mt:if %s.Field == HUDName
7769 //mt:if %s.Field == HUDScale
7772 //mt:if %s.Field == HUDText
7775 //mt:if %s.Field == HUDNumber
7778 //mt:if %s.Field == HUDItem
7781 //mt:if %s.Field == HUDDir
7784 //mt:if %s.Field == HUDAlign
7787 //mt:if %s.Field == HUDOffset
7790 //mt:if %s.Field == HUDWorldPos
7793 //mt:if %s.Field == HUDSize
7796 //mt:if %s.Field == HUDZIndex
7799 //mt:if %s.Field == HUDText2
7802 write16(w, uint16(x))
7805 _, err := w.Write(([]byte((*(*(struct {
7810 //mt:if %s.Field == HUDPos
7813 //mt:if %s.Field == HUDName
7816 //mt:if %s.Field == HUDScale
7819 //mt:if %s.Field == HUDText
7822 //mt:if %s.Field == HUDNumber
7825 //mt:if %s.Field == HUDItem
7828 //mt:if %s.Field == HUDDir
7831 //mt:if %s.Field == HUDAlign
7834 //mt:if %s.Field == HUDOffset
7837 //mt:if %s.Field == HUDWorldPos
7840 //mt:if %s.Field == HUDSize
7843 //mt:if %s.Field == HUDZIndex
7846 //mt:if %s.Field == HUDText2
7848 }))(obj)).Name))[:])
7857 //mt:if %s.Field == HUDPos
7860 //mt:if %s.Field == HUDName
7863 //mt:if %s.Field == HUDScale
7866 //mt:if %s.Field == HUDText
7869 //mt:if %s.Field == HUDNumber
7872 //mt:if %s.Field == HUDItem
7875 //mt:if %s.Field == HUDDir
7878 //mt:if %s.Field == HUDAlign
7881 //mt:if %s.Field == HUDOffset
7884 //mt:if %s.Field == HUDWorldPos
7887 //mt:if %s.Field == HUDSize
7890 //mt:if %s.Field == HUDZIndex
7893 //mt:if %s.Field == HUDText2
7895 }))(obj)).Field == HUDScale {
7896 for local175 := range (*(*(struct {
7901 //mt:if %s.Field == HUDPos
7904 //mt:if %s.Field == HUDName
7907 //mt:if %s.Field == HUDScale
7910 //mt:if %s.Field == HUDText
7913 //mt:if %s.Field == HUDNumber
7916 //mt:if %s.Field == HUDItem
7919 //mt:if %s.Field == HUDDir
7922 //mt:if %s.Field == HUDAlign
7925 //mt:if %s.Field == HUDOffset
7928 //mt:if %s.Field == HUDWorldPos
7931 //mt:if %s.Field == HUDSize
7934 //mt:if %s.Field == HUDZIndex
7937 //mt:if %s.Field == HUDText2
7946 //mt:if %s.Field == HUDPos
7949 //mt:if %s.Field == HUDName
7952 //mt:if %s.Field == HUDScale
7955 //mt:if %s.Field == HUDText
7958 //mt:if %s.Field == HUDNumber
7961 //mt:if %s.Field == HUDItem
7964 //mt:if %s.Field == HUDDir
7967 //mt:if %s.Field == HUDAlign
7970 //mt:if %s.Field == HUDOffset
7973 //mt:if %s.Field == HUDWorldPos
7976 //mt:if %s.Field == HUDSize
7979 //mt:if %s.Field == HUDZIndex
7982 //mt:if %s.Field == HUDText2
7984 }))(obj)).Scale)[local175]
7985 write32(w, math.Float32bits(x))
7994 //mt:if %s.Field == HUDPos
7997 //mt:if %s.Field == HUDName
8000 //mt:if %s.Field == HUDScale
8003 //mt:if %s.Field == HUDText
8006 //mt:if %s.Field == HUDNumber
8009 //mt:if %s.Field == HUDItem
8012 //mt:if %s.Field == HUDDir
8015 //mt:if %s.Field == HUDAlign
8018 //mt:if %s.Field == HUDOffset
8021 //mt:if %s.Field == HUDWorldPos
8024 //mt:if %s.Field == HUDSize
8027 //mt:if %s.Field == HUDZIndex
8030 //mt:if %s.Field == HUDText2
8032 }))(obj)).Field == HUDText {
8033 if len(([]byte((*(*(struct {
8038 //mt:if %s.Field == HUDPos
8041 //mt:if %s.Field == HUDName
8044 //mt:if %s.Field == HUDScale
8047 //mt:if %s.Field == HUDText
8050 //mt:if %s.Field == HUDNumber
8053 //mt:if %s.Field == HUDItem
8056 //mt:if %s.Field == HUDDir
8059 //mt:if %s.Field == HUDAlign
8062 //mt:if %s.Field == HUDOffset
8065 //mt:if %s.Field == HUDWorldPos
8068 //mt:if %s.Field == HUDSize
8071 //mt:if %s.Field == HUDZIndex
8074 //mt:if %s.Field == HUDText2
8076 }))(obj)).Text))) > math.MaxUint16 {
8080 x := uint16(len(([]byte((*(*(struct {
8085 //mt:if %s.Field == HUDPos
8088 //mt:if %s.Field == HUDName
8091 //mt:if %s.Field == HUDScale
8094 //mt:if %s.Field == HUDText
8097 //mt:if %s.Field == HUDNumber
8100 //mt:if %s.Field == HUDItem
8103 //mt:if %s.Field == HUDDir
8106 //mt:if %s.Field == HUDAlign
8109 //mt:if %s.Field == HUDOffset
8112 //mt:if %s.Field == HUDWorldPos
8115 //mt:if %s.Field == HUDSize
8118 //mt:if %s.Field == HUDZIndex
8121 //mt:if %s.Field == HUDText2
8124 write16(w, uint16(x))
8127 _, err := w.Write(([]byte((*(*(struct {
8132 //mt:if %s.Field == HUDPos
8135 //mt:if %s.Field == HUDName
8138 //mt:if %s.Field == HUDScale
8141 //mt:if %s.Field == HUDText
8144 //mt:if %s.Field == HUDNumber
8147 //mt:if %s.Field == HUDItem
8150 //mt:if %s.Field == HUDDir
8153 //mt:if %s.Field == HUDAlign
8156 //mt:if %s.Field == HUDOffset
8159 //mt:if %s.Field == HUDWorldPos
8162 //mt:if %s.Field == HUDSize
8165 //mt:if %s.Field == HUDZIndex
8168 //mt:if %s.Field == HUDText2
8170 }))(obj)).Text))[:])
8179 //mt:if %s.Field == HUDPos
8182 //mt:if %s.Field == HUDName
8185 //mt:if %s.Field == HUDScale
8188 //mt:if %s.Field == HUDText
8191 //mt:if %s.Field == HUDNumber
8194 //mt:if %s.Field == HUDItem
8197 //mt:if %s.Field == HUDDir
8200 //mt:if %s.Field == HUDAlign
8203 //mt:if %s.Field == HUDOffset
8206 //mt:if %s.Field == HUDWorldPos
8209 //mt:if %s.Field == HUDSize
8212 //mt:if %s.Field == HUDZIndex
8215 //mt:if %s.Field == HUDText2
8217 }))(obj)).Field == HUDNumber {
8224 //mt:if %s.Field == HUDPos
8227 //mt:if %s.Field == HUDName
8230 //mt:if %s.Field == HUDScale
8233 //mt:if %s.Field == HUDText
8236 //mt:if %s.Field == HUDNumber
8239 //mt:if %s.Field == HUDItem
8242 //mt:if %s.Field == HUDDir
8245 //mt:if %s.Field == HUDAlign
8248 //mt:if %s.Field == HUDOffset
8251 //mt:if %s.Field == HUDWorldPos
8254 //mt:if %s.Field == HUDSize
8257 //mt:if %s.Field == HUDZIndex
8260 //mt:if %s.Field == HUDText2
8263 write32(w, uint32(x))
8271 //mt:if %s.Field == HUDPos
8274 //mt:if %s.Field == HUDName
8277 //mt:if %s.Field == HUDScale
8280 //mt:if %s.Field == HUDText
8283 //mt:if %s.Field == HUDNumber
8286 //mt:if %s.Field == HUDItem
8289 //mt:if %s.Field == HUDDir
8292 //mt:if %s.Field == HUDAlign
8295 //mt:if %s.Field == HUDOffset
8298 //mt:if %s.Field == HUDWorldPos
8301 //mt:if %s.Field == HUDSize
8304 //mt:if %s.Field == HUDZIndex
8307 //mt:if %s.Field == HUDText2
8309 }))(obj)).Field == HUDItem {
8316 //mt:if %s.Field == HUDPos
8319 //mt:if %s.Field == HUDName
8322 //mt:if %s.Field == HUDScale
8325 //mt:if %s.Field == HUDText
8328 //mt:if %s.Field == HUDNumber
8331 //mt:if %s.Field == HUDItem
8334 //mt:if %s.Field == HUDDir
8337 //mt:if %s.Field == HUDAlign
8340 //mt:if %s.Field == HUDOffset
8343 //mt:if %s.Field == HUDWorldPos
8346 //mt:if %s.Field == HUDSize
8349 //mt:if %s.Field == HUDZIndex
8352 //mt:if %s.Field == HUDText2
8355 write32(w, uint32(x))
8363 //mt:if %s.Field == HUDPos
8366 //mt:if %s.Field == HUDName
8369 //mt:if %s.Field == HUDScale
8372 //mt:if %s.Field == HUDText
8375 //mt:if %s.Field == HUDNumber
8378 //mt:if %s.Field == HUDItem
8381 //mt:if %s.Field == HUDDir
8384 //mt:if %s.Field == HUDAlign
8387 //mt:if %s.Field == HUDOffset
8390 //mt:if %s.Field == HUDWorldPos
8393 //mt:if %s.Field == HUDSize
8396 //mt:if %s.Field == HUDZIndex
8399 //mt:if %s.Field == HUDText2
8401 }))(obj)).Field == HUDDir {
8408 //mt:if %s.Field == HUDPos
8411 //mt:if %s.Field == HUDName
8414 //mt:if %s.Field == HUDScale
8417 //mt:if %s.Field == HUDText
8420 //mt:if %s.Field == HUDNumber
8423 //mt:if %s.Field == HUDItem
8426 //mt:if %s.Field == HUDDir
8429 //mt:if %s.Field == HUDAlign
8432 //mt:if %s.Field == HUDOffset
8435 //mt:if %s.Field == HUDWorldPos
8438 //mt:if %s.Field == HUDSize
8441 //mt:if %s.Field == HUDZIndex
8444 //mt:if %s.Field == HUDText2
8447 write32(w, uint32(x))
8455 //mt:if %s.Field == HUDPos
8458 //mt:if %s.Field == HUDName
8461 //mt:if %s.Field == HUDScale
8464 //mt:if %s.Field == HUDText
8467 //mt:if %s.Field == HUDNumber
8470 //mt:if %s.Field == HUDItem
8473 //mt:if %s.Field == HUDDir
8476 //mt:if %s.Field == HUDAlign
8479 //mt:if %s.Field == HUDOffset
8482 //mt:if %s.Field == HUDWorldPos
8485 //mt:if %s.Field == HUDSize
8488 //mt:if %s.Field == HUDZIndex
8491 //mt:if %s.Field == HUDText2
8493 }))(obj)).Field == HUDAlign {
8494 for local176 := range (*(*(struct {
8499 //mt:if %s.Field == HUDPos
8502 //mt:if %s.Field == HUDName
8505 //mt:if %s.Field == HUDScale
8508 //mt:if %s.Field == HUDText
8511 //mt:if %s.Field == HUDNumber
8514 //mt:if %s.Field == HUDItem
8517 //mt:if %s.Field == HUDDir
8520 //mt:if %s.Field == HUDAlign
8523 //mt:if %s.Field == HUDOffset
8526 //mt:if %s.Field == HUDWorldPos
8529 //mt:if %s.Field == HUDSize
8532 //mt:if %s.Field == HUDZIndex
8535 //mt:if %s.Field == HUDText2
8544 //mt:if %s.Field == HUDPos
8547 //mt:if %s.Field == HUDName
8550 //mt:if %s.Field == HUDScale
8553 //mt:if %s.Field == HUDText
8556 //mt:if %s.Field == HUDNumber
8559 //mt:if %s.Field == HUDItem
8562 //mt:if %s.Field == HUDDir
8565 //mt:if %s.Field == HUDAlign
8568 //mt:if %s.Field == HUDOffset
8571 //mt:if %s.Field == HUDWorldPos
8574 //mt:if %s.Field == HUDSize
8577 //mt:if %s.Field == HUDZIndex
8580 //mt:if %s.Field == HUDText2
8582 }))(obj)).Align)[local176]
8583 write32(w, math.Float32bits(x))
8592 //mt:if %s.Field == HUDPos
8595 //mt:if %s.Field == HUDName
8598 //mt:if %s.Field == HUDScale
8601 //mt:if %s.Field == HUDText
8604 //mt:if %s.Field == HUDNumber
8607 //mt:if %s.Field == HUDItem
8610 //mt:if %s.Field == HUDDir
8613 //mt:if %s.Field == HUDAlign
8616 //mt:if %s.Field == HUDOffset
8619 //mt:if %s.Field == HUDWorldPos
8622 //mt:if %s.Field == HUDSize
8625 //mt:if %s.Field == HUDZIndex
8628 //mt:if %s.Field == HUDText2
8630 }))(obj)).Field == HUDOffset {
8631 for local177 := range (*(*(struct {
8636 //mt:if %s.Field == HUDPos
8639 //mt:if %s.Field == HUDName
8642 //mt:if %s.Field == HUDScale
8645 //mt:if %s.Field == HUDText
8648 //mt:if %s.Field == HUDNumber
8651 //mt:if %s.Field == HUDItem
8654 //mt:if %s.Field == HUDDir
8657 //mt:if %s.Field == HUDAlign
8660 //mt:if %s.Field == HUDOffset
8663 //mt:if %s.Field == HUDWorldPos
8666 //mt:if %s.Field == HUDSize
8669 //mt:if %s.Field == HUDZIndex
8672 //mt:if %s.Field == HUDText2
8681 //mt:if %s.Field == HUDPos
8684 //mt:if %s.Field == HUDName
8687 //mt:if %s.Field == HUDScale
8690 //mt:if %s.Field == HUDText
8693 //mt:if %s.Field == HUDNumber
8696 //mt:if %s.Field == HUDItem
8699 //mt:if %s.Field == HUDDir
8702 //mt:if %s.Field == HUDAlign
8705 //mt:if %s.Field == HUDOffset
8708 //mt:if %s.Field == HUDWorldPos
8711 //mt:if %s.Field == HUDSize
8714 //mt:if %s.Field == HUDZIndex
8717 //mt:if %s.Field == HUDText2
8719 }))(obj)).Offset)[local177]
8720 write32(w, math.Float32bits(x))
8729 //mt:if %s.Field == HUDPos
8732 //mt:if %s.Field == HUDName
8735 //mt:if %s.Field == HUDScale
8738 //mt:if %s.Field == HUDText
8741 //mt:if %s.Field == HUDNumber
8744 //mt:if %s.Field == HUDItem
8747 //mt:if %s.Field == HUDDir
8750 //mt:if %s.Field == HUDAlign
8753 //mt:if %s.Field == HUDOffset
8756 //mt:if %s.Field == HUDWorldPos
8759 //mt:if %s.Field == HUDSize
8762 //mt:if %s.Field == HUDZIndex
8765 //mt:if %s.Field == HUDText2
8767 }))(obj)).Field == HUDWorldPos {
8768 if err := pcall(func() {
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)).WorldPos).serialize(w)
8817 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
8825 //mt:if %s.Field == HUDPos
8828 //mt:if %s.Field == HUDName
8831 //mt:if %s.Field == HUDScale
8834 //mt:if %s.Field == HUDText
8837 //mt:if %s.Field == HUDNumber
8840 //mt:if %s.Field == HUDItem
8843 //mt:if %s.Field == HUDDir
8846 //mt:if %s.Field == HUDAlign
8849 //mt:if %s.Field == HUDOffset
8852 //mt:if %s.Field == HUDWorldPos
8855 //mt:if %s.Field == HUDSize
8858 //mt:if %s.Field == HUDZIndex
8861 //mt:if %s.Field == HUDText2
8863 }))(obj)).Field == HUDSize {
8864 for local178 := range (*(*(struct {
8869 //mt:if %s.Field == HUDPos
8872 //mt:if %s.Field == HUDName
8875 //mt:if %s.Field == HUDScale
8878 //mt:if %s.Field == HUDText
8881 //mt:if %s.Field == HUDNumber
8884 //mt:if %s.Field == HUDItem
8887 //mt:if %s.Field == HUDDir
8890 //mt:if %s.Field == HUDAlign
8893 //mt:if %s.Field == HUDOffset
8896 //mt:if %s.Field == HUDWorldPos
8899 //mt:if %s.Field == HUDSize
8902 //mt:if %s.Field == HUDZIndex
8905 //mt:if %s.Field == HUDText2
8914 //mt:if %s.Field == HUDPos
8917 //mt:if %s.Field == HUDName
8920 //mt:if %s.Field == HUDScale
8923 //mt:if %s.Field == HUDText
8926 //mt:if %s.Field == HUDNumber
8929 //mt:if %s.Field == HUDItem
8932 //mt:if %s.Field == HUDDir
8935 //mt:if %s.Field == HUDAlign
8938 //mt:if %s.Field == HUDOffset
8941 //mt:if %s.Field == HUDWorldPos
8944 //mt:if %s.Field == HUDSize
8947 //mt:if %s.Field == HUDZIndex
8950 //mt:if %s.Field == HUDText2
8952 }))(obj)).Size)[local178]
8953 write32(w, uint32(x))
8962 //mt:if %s.Field == HUDPos
8965 //mt:if %s.Field == HUDName
8968 //mt:if %s.Field == HUDScale
8971 //mt:if %s.Field == HUDText
8974 //mt:if %s.Field == HUDNumber
8977 //mt:if %s.Field == HUDItem
8980 //mt:if %s.Field == HUDDir
8983 //mt:if %s.Field == HUDAlign
8986 //mt:if %s.Field == HUDOffset
8989 //mt:if %s.Field == HUDWorldPos
8992 //mt:if %s.Field == HUDSize
8995 //mt:if %s.Field == HUDZIndex
8998 //mt:if %s.Field == HUDText2
9000 }))(obj)).Field == HUDZIndex {
9007 //mt:if %s.Field == HUDPos
9010 //mt:if %s.Field == HUDName
9013 //mt:if %s.Field == HUDScale
9016 //mt:if %s.Field == HUDText
9019 //mt:if %s.Field == HUDNumber
9022 //mt:if %s.Field == HUDItem
9025 //mt:if %s.Field == HUDDir
9028 //mt:if %s.Field == HUDAlign
9031 //mt:if %s.Field == HUDOffset
9034 //mt:if %s.Field == HUDWorldPos
9037 //mt:if %s.Field == HUDSize
9040 //mt:if %s.Field == HUDZIndex
9043 //mt:if %s.Field == HUDText2
9046 write32(w, uint32(x))
9054 //mt:if %s.Field == HUDPos
9057 //mt:if %s.Field == HUDName
9060 //mt:if %s.Field == HUDScale
9063 //mt:if %s.Field == HUDText
9066 //mt:if %s.Field == HUDNumber
9069 //mt:if %s.Field == HUDItem
9072 //mt:if %s.Field == HUDDir
9075 //mt:if %s.Field == HUDAlign
9078 //mt:if %s.Field == HUDOffset
9081 //mt:if %s.Field == HUDWorldPos
9084 //mt:if %s.Field == HUDSize
9087 //mt:if %s.Field == HUDZIndex
9090 //mt:if %s.Field == HUDText2
9092 }))(obj)).Field == HUDText2 {
9093 if len(([]byte((*(*(struct {
9098 //mt:if %s.Field == HUDPos
9101 //mt:if %s.Field == HUDName
9104 //mt:if %s.Field == HUDScale
9107 //mt:if %s.Field == HUDText
9110 //mt:if %s.Field == HUDNumber
9113 //mt:if %s.Field == HUDItem
9116 //mt:if %s.Field == HUDDir
9119 //mt:if %s.Field == HUDAlign
9122 //mt:if %s.Field == HUDOffset
9125 //mt:if %s.Field == HUDWorldPos
9128 //mt:if %s.Field == HUDSize
9131 //mt:if %s.Field == HUDZIndex
9134 //mt:if %s.Field == HUDText2
9136 }))(obj)).Text2))) > math.MaxUint16 {
9140 x := uint16(len(([]byte((*(*(struct {
9145 //mt:if %s.Field == HUDPos
9148 //mt:if %s.Field == HUDName
9151 //mt:if %s.Field == HUDScale
9154 //mt:if %s.Field == HUDText
9157 //mt:if %s.Field == HUDNumber
9160 //mt:if %s.Field == HUDItem
9163 //mt:if %s.Field == HUDDir
9166 //mt:if %s.Field == HUDAlign
9169 //mt:if %s.Field == HUDOffset
9172 //mt:if %s.Field == HUDWorldPos
9175 //mt:if %s.Field == HUDSize
9178 //mt:if %s.Field == HUDZIndex
9181 //mt:if %s.Field == HUDText2
9184 write16(w, uint16(x))
9187 _, err := w.Write(([]byte((*(*(struct {
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)).Text2))[:])
9236 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
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)).ID).deserialize(r)
9286 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
9288 if err := pcall(func() {
9294 //mt:if %s.Field == HUDPos
9297 //mt:if %s.Field == HUDName
9300 //mt:if %s.Field == HUDScale
9303 //mt:if %s.Field == HUDText
9306 //mt:if %s.Field == HUDNumber
9309 //mt:if %s.Field == HUDItem
9312 //mt:if %s.Field == HUDDir
9315 //mt:if %s.Field == HUDAlign
9318 //mt:if %s.Field == HUDOffset
9321 //mt:if %s.Field == HUDWorldPos
9324 //mt:if %s.Field == HUDSize
9327 //mt:if %s.Field == HUDZIndex
9330 //mt:if %s.Field == HUDText2
9332 }))(obj)).Field).deserialize(r)
9337 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
9344 //mt:if %s.Field == HUDPos
9347 //mt:if %s.Field == HUDName
9350 //mt:if %s.Field == HUDScale
9353 //mt:if %s.Field == HUDText
9356 //mt:if %s.Field == HUDNumber
9359 //mt:if %s.Field == HUDItem
9362 //mt:if %s.Field == HUDDir
9365 //mt:if %s.Field == HUDAlign
9368 //mt:if %s.Field == HUDOffset
9371 //mt:if %s.Field == HUDWorldPos
9374 //mt:if %s.Field == HUDSize
9377 //mt:if %s.Field == HUDZIndex
9380 //mt:if %s.Field == HUDText2
9382 }))(obj)).Field < hudMax) {
9383 chk(errors.New("assertion failed: %s.Field < hudMax"))
9390 //mt:if %s.Field == HUDPos
9393 //mt:if %s.Field == HUDName
9396 //mt:if %s.Field == HUDScale
9399 //mt:if %s.Field == HUDText
9402 //mt:if %s.Field == HUDNumber
9405 //mt:if %s.Field == HUDItem
9408 //mt:if %s.Field == HUDDir
9411 //mt:if %s.Field == HUDAlign
9414 //mt:if %s.Field == HUDOffset
9417 //mt:if %s.Field == HUDWorldPos
9420 //mt:if %s.Field == HUDSize
9423 //mt:if %s.Field == HUDZIndex
9426 //mt:if %s.Field == HUDText2
9428 }))(obj)).Field == HUDPos {
9429 for local179 := range (*(*(struct {
9434 //mt:if %s.Field == HUDPos
9437 //mt:if %s.Field == HUDName
9440 //mt:if %s.Field == HUDScale
9443 //mt:if %s.Field == HUDText
9446 //mt:if %s.Field == HUDNumber
9449 //mt:if %s.Field == HUDItem
9452 //mt:if %s.Field == HUDDir
9455 //mt:if %s.Field == HUDAlign
9458 //mt:if %s.Field == HUDOffset
9461 //mt:if %s.Field == HUDWorldPos
9464 //mt:if %s.Field == HUDSize
9467 //mt:if %s.Field == HUDZIndex
9470 //mt:if %s.Field == HUDText2
9474 p := &((*(*(struct {
9479 //mt:if %s.Field == HUDPos
9482 //mt:if %s.Field == HUDName
9485 //mt:if %s.Field == HUDScale
9488 //mt:if %s.Field == HUDText
9491 //mt:if %s.Field == HUDNumber
9494 //mt:if %s.Field == HUDItem
9497 //mt:if %s.Field == HUDDir
9500 //mt:if %s.Field == HUDAlign
9503 //mt:if %s.Field == HUDOffset
9506 //mt:if %s.Field == HUDWorldPos
9509 //mt:if %s.Field == HUDSize
9512 //mt:if %s.Field == HUDZIndex
9515 //mt:if %s.Field == HUDText2
9517 }))(obj)).Pos)[local179]
9518 *p = math.Float32frombits(read32(r))
9527 //mt:if %s.Field == HUDPos
9530 //mt:if %s.Field == HUDName
9533 //mt:if %s.Field == HUDScale
9536 //mt:if %s.Field == HUDText
9539 //mt:if %s.Field == HUDNumber
9542 //mt:if %s.Field == HUDItem
9545 //mt:if %s.Field == HUDDir
9548 //mt:if %s.Field == HUDAlign
9551 //mt:if %s.Field == HUDOffset
9554 //mt:if %s.Field == HUDWorldPos
9557 //mt:if %s.Field == HUDSize
9560 //mt:if %s.Field == HUDZIndex
9563 //mt:if %s.Field == HUDText2
9565 }))(obj)).Field == HUDName {
9566 var local180 []uint8
9572 (local180) = make([]uint8, local181)
9574 _, err := io.ReadFull(r, (local180)[:])
9582 //mt:if %s.Field == HUDPos
9585 //mt:if %s.Field == HUDName
9588 //mt:if %s.Field == HUDScale
9591 //mt:if %s.Field == HUDText
9594 //mt:if %s.Field == HUDNumber
9597 //mt:if %s.Field == HUDItem
9600 //mt:if %s.Field == HUDDir
9603 //mt:if %s.Field == HUDAlign
9606 //mt:if %s.Field == HUDOffset
9609 //mt:if %s.Field == HUDWorldPos
9612 //mt:if %s.Field == HUDSize
9615 //mt:if %s.Field == HUDZIndex
9618 //mt:if %s.Field == HUDText2
9620 }))(obj)).Name) = string(local180)
9627 //mt:if %s.Field == HUDPos
9630 //mt:if %s.Field == HUDName
9633 //mt:if %s.Field == HUDScale
9636 //mt:if %s.Field == HUDText
9639 //mt:if %s.Field == HUDNumber
9642 //mt:if %s.Field == HUDItem
9645 //mt:if %s.Field == HUDDir
9648 //mt:if %s.Field == HUDAlign
9651 //mt:if %s.Field == HUDOffset
9654 //mt:if %s.Field == HUDWorldPos
9657 //mt:if %s.Field == HUDSize
9660 //mt:if %s.Field == HUDZIndex
9663 //mt:if %s.Field == HUDText2
9665 }))(obj)).Field == HUDScale {
9666 for local182 := range (*(*(struct {
9671 //mt:if %s.Field == HUDPos
9674 //mt:if %s.Field == HUDName
9677 //mt:if %s.Field == HUDScale
9680 //mt:if %s.Field == HUDText
9683 //mt:if %s.Field == HUDNumber
9686 //mt:if %s.Field == HUDItem
9689 //mt:if %s.Field == HUDDir
9692 //mt:if %s.Field == HUDAlign
9695 //mt:if %s.Field == HUDOffset
9698 //mt:if %s.Field == HUDWorldPos
9701 //mt:if %s.Field == HUDSize
9704 //mt:if %s.Field == HUDZIndex
9707 //mt:if %s.Field == HUDText2
9711 p := &((*(*(struct {
9716 //mt:if %s.Field == HUDPos
9719 //mt:if %s.Field == HUDName
9722 //mt:if %s.Field == HUDScale
9725 //mt:if %s.Field == HUDText
9728 //mt:if %s.Field == HUDNumber
9731 //mt:if %s.Field == HUDItem
9734 //mt:if %s.Field == HUDDir
9737 //mt:if %s.Field == HUDAlign
9740 //mt:if %s.Field == HUDOffset
9743 //mt:if %s.Field == HUDWorldPos
9746 //mt:if %s.Field == HUDSize
9749 //mt:if %s.Field == HUDZIndex
9752 //mt:if %s.Field == HUDText2
9754 }))(obj)).Scale)[local182]
9755 *p = math.Float32frombits(read32(r))
9764 //mt:if %s.Field == HUDPos
9767 //mt:if %s.Field == HUDName
9770 //mt:if %s.Field == HUDScale
9773 //mt:if %s.Field == HUDText
9776 //mt:if %s.Field == HUDNumber
9779 //mt:if %s.Field == HUDItem
9782 //mt:if %s.Field == HUDDir
9785 //mt:if %s.Field == HUDAlign
9788 //mt:if %s.Field == HUDOffset
9791 //mt:if %s.Field == HUDWorldPos
9794 //mt:if %s.Field == HUDSize
9797 //mt:if %s.Field == HUDZIndex
9800 //mt:if %s.Field == HUDText2
9802 }))(obj)).Field == HUDText {
9803 var local183 []uint8
9809 (local183) = make([]uint8, local184)
9811 _, err := io.ReadFull(r, (local183)[:])
9819 //mt:if %s.Field == HUDPos
9822 //mt:if %s.Field == HUDName
9825 //mt:if %s.Field == HUDScale
9828 //mt:if %s.Field == HUDText
9831 //mt:if %s.Field == HUDNumber
9834 //mt:if %s.Field == HUDItem
9837 //mt:if %s.Field == HUDDir
9840 //mt:if %s.Field == HUDAlign
9843 //mt:if %s.Field == HUDOffset
9846 //mt:if %s.Field == HUDWorldPos
9849 //mt:if %s.Field == HUDSize
9852 //mt:if %s.Field == HUDZIndex
9855 //mt:if %s.Field == HUDText2
9857 }))(obj)).Text) = string(local183)
9864 //mt:if %s.Field == HUDPos
9867 //mt:if %s.Field == HUDName
9870 //mt:if %s.Field == HUDScale
9873 //mt:if %s.Field == HUDText
9876 //mt:if %s.Field == HUDNumber
9879 //mt:if %s.Field == HUDItem
9882 //mt:if %s.Field == HUDDir
9885 //mt:if %s.Field == HUDAlign
9888 //mt:if %s.Field == HUDOffset
9891 //mt:if %s.Field == HUDWorldPos
9894 //mt:if %s.Field == HUDSize
9897 //mt:if %s.Field == HUDZIndex
9900 //mt:if %s.Field == HUDText2
9902 }))(obj)).Field == HUDNumber {
9909 //mt:if %s.Field == HUDPos
9912 //mt:if %s.Field == HUDName
9915 //mt:if %s.Field == HUDScale
9918 //mt:if %s.Field == HUDText
9921 //mt:if %s.Field == HUDNumber
9924 //mt:if %s.Field == HUDItem
9927 //mt:if %s.Field == HUDDir
9930 //mt:if %s.Field == HUDAlign
9933 //mt:if %s.Field == HUDOffset
9936 //mt:if %s.Field == HUDWorldPos
9939 //mt:if %s.Field == HUDSize
9942 //mt:if %s.Field == HUDZIndex
9945 //mt:if %s.Field == HUDText2
9956 //mt:if %s.Field == HUDPos
9959 //mt:if %s.Field == HUDName
9962 //mt:if %s.Field == HUDScale
9965 //mt:if %s.Field == HUDText
9968 //mt:if %s.Field == HUDNumber
9971 //mt:if %s.Field == HUDItem
9974 //mt:if %s.Field == HUDDir
9977 //mt:if %s.Field == HUDAlign
9980 //mt:if %s.Field == HUDOffset
9983 //mt:if %s.Field == HUDWorldPos
9986 //mt:if %s.Field == HUDSize
9989 //mt:if %s.Field == HUDZIndex
9992 //mt:if %s.Field == HUDText2
9994 }))(obj)).Field == HUDItem {
10001 //mt:if %s.Field == HUDPos
10004 //mt:if %s.Field == HUDName
10007 //mt:if %s.Field == HUDScale
10010 //mt:if %s.Field == HUDText
10013 //mt:if %s.Field == HUDNumber
10016 //mt:if %s.Field == HUDItem
10019 //mt:if %s.Field == HUDDir
10022 //mt:if %s.Field == HUDAlign
10025 //mt:if %s.Field == HUDOffset
10028 //mt:if %s.Field == HUDWorldPos
10031 //mt:if %s.Field == HUDSize
10034 //mt:if %s.Field == HUDZIndex
10037 //mt:if %s.Field == HUDText2
10048 //mt:if %s.Field == HUDPos
10051 //mt:if %s.Field == HUDName
10054 //mt:if %s.Field == HUDScale
10057 //mt:if %s.Field == HUDText
10060 //mt:if %s.Field == HUDNumber
10063 //mt:if %s.Field == HUDItem
10066 //mt:if %s.Field == HUDDir
10069 //mt:if %s.Field == HUDAlign
10072 //mt:if %s.Field == HUDOffset
10075 //mt:if %s.Field == HUDWorldPos
10078 //mt:if %s.Field == HUDSize
10081 //mt:if %s.Field == HUDZIndex
10084 //mt:if %s.Field == HUDText2
10086 }))(obj)).Field == HUDDir {
10088 p := &(*(*(struct {
10093 //mt:if %s.Field == HUDPos
10096 //mt:if %s.Field == HUDName
10099 //mt:if %s.Field == HUDScale
10102 //mt:if %s.Field == HUDText
10105 //mt:if %s.Field == HUDNumber
10108 //mt:if %s.Field == HUDItem
10111 //mt:if %s.Field == HUDDir
10114 //mt:if %s.Field == HUDAlign
10117 //mt:if %s.Field == HUDOffset
10120 //mt:if %s.Field == HUDWorldPos
10123 //mt:if %s.Field == HUDSize
10126 //mt:if %s.Field == HUDZIndex
10129 //mt:if %s.Field == HUDText2
10140 //mt:if %s.Field == HUDPos
10143 //mt:if %s.Field == HUDName
10146 //mt:if %s.Field == HUDScale
10149 //mt:if %s.Field == HUDText
10152 //mt:if %s.Field == HUDNumber
10155 //mt:if %s.Field == HUDItem
10158 //mt:if %s.Field == HUDDir
10161 //mt:if %s.Field == HUDAlign
10164 //mt:if %s.Field == HUDOffset
10167 //mt:if %s.Field == HUDWorldPos
10170 //mt:if %s.Field == HUDSize
10173 //mt:if %s.Field == HUDZIndex
10176 //mt:if %s.Field == HUDText2
10178 }))(obj)).Field == HUDAlign {
10179 for local185 := range (*(*(struct {
10184 //mt:if %s.Field == HUDPos
10187 //mt:if %s.Field == HUDName
10190 //mt:if %s.Field == HUDScale
10193 //mt:if %s.Field == HUDText
10196 //mt:if %s.Field == HUDNumber
10199 //mt:if %s.Field == HUDItem
10202 //mt:if %s.Field == HUDDir
10205 //mt:if %s.Field == HUDAlign
10208 //mt:if %s.Field == HUDOffset
10211 //mt:if %s.Field == HUDWorldPos
10214 //mt:if %s.Field == HUDSize
10217 //mt:if %s.Field == HUDZIndex
10220 //mt:if %s.Field == HUDText2
10224 p := &((*(*(struct {
10229 //mt:if %s.Field == HUDPos
10232 //mt:if %s.Field == HUDName
10235 //mt:if %s.Field == HUDScale
10238 //mt:if %s.Field == HUDText
10241 //mt:if %s.Field == HUDNumber
10244 //mt:if %s.Field == HUDItem
10247 //mt:if %s.Field == HUDDir
10250 //mt:if %s.Field == HUDAlign
10253 //mt:if %s.Field == HUDOffset
10256 //mt:if %s.Field == HUDWorldPos
10259 //mt:if %s.Field == HUDSize
10262 //mt:if %s.Field == HUDZIndex
10265 //mt:if %s.Field == HUDText2
10267 }))(obj)).Align)[local185]
10268 *p = math.Float32frombits(read32(r))
10277 //mt:if %s.Field == HUDPos
10280 //mt:if %s.Field == HUDName
10283 //mt:if %s.Field == HUDScale
10286 //mt:if %s.Field == HUDText
10289 //mt:if %s.Field == HUDNumber
10292 //mt:if %s.Field == HUDItem
10295 //mt:if %s.Field == HUDDir
10298 //mt:if %s.Field == HUDAlign
10301 //mt:if %s.Field == HUDOffset
10304 //mt:if %s.Field == HUDWorldPos
10307 //mt:if %s.Field == HUDSize
10310 //mt:if %s.Field == HUDZIndex
10313 //mt:if %s.Field == HUDText2
10315 }))(obj)).Field == HUDOffset {
10316 for local186 := range (*(*(struct {
10321 //mt:if %s.Field == HUDPos
10324 //mt:if %s.Field == HUDName
10327 //mt:if %s.Field == HUDScale
10330 //mt:if %s.Field == HUDText
10333 //mt:if %s.Field == HUDNumber
10336 //mt:if %s.Field == HUDItem
10339 //mt:if %s.Field == HUDDir
10342 //mt:if %s.Field == HUDAlign
10345 //mt:if %s.Field == HUDOffset
10348 //mt:if %s.Field == HUDWorldPos
10351 //mt:if %s.Field == HUDSize
10354 //mt:if %s.Field == HUDZIndex
10357 //mt:if %s.Field == HUDText2
10361 p := &((*(*(struct {
10366 //mt:if %s.Field == HUDPos
10369 //mt:if %s.Field == HUDName
10372 //mt:if %s.Field == HUDScale
10375 //mt:if %s.Field == HUDText
10378 //mt:if %s.Field == HUDNumber
10381 //mt:if %s.Field == HUDItem
10384 //mt:if %s.Field == HUDDir
10387 //mt:if %s.Field == HUDAlign
10390 //mt:if %s.Field == HUDOffset
10393 //mt:if %s.Field == HUDWorldPos
10396 //mt:if %s.Field == HUDSize
10399 //mt:if %s.Field == HUDZIndex
10402 //mt:if %s.Field == HUDText2
10404 }))(obj)).Offset)[local186]
10405 *p = math.Float32frombits(read32(r))
10414 //mt:if %s.Field == HUDPos
10417 //mt:if %s.Field == HUDName
10420 //mt:if %s.Field == HUDScale
10423 //mt:if %s.Field == HUDText
10426 //mt:if %s.Field == HUDNumber
10429 //mt:if %s.Field == HUDItem
10432 //mt:if %s.Field == HUDDir
10435 //mt:if %s.Field == HUDAlign
10438 //mt:if %s.Field == HUDOffset
10441 //mt:if %s.Field == HUDWorldPos
10444 //mt:if %s.Field == HUDSize
10447 //mt:if %s.Field == HUDZIndex
10450 //mt:if %s.Field == HUDText2
10452 }))(obj)).Field == HUDWorldPos {
10453 if err := pcall(func() {
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)).WorldPos).deserialize(r)
10502 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
10510 //mt:if %s.Field == HUDPos
10513 //mt:if %s.Field == HUDName
10516 //mt:if %s.Field == HUDScale
10519 //mt:if %s.Field == HUDText
10522 //mt:if %s.Field == HUDNumber
10525 //mt:if %s.Field == HUDItem
10528 //mt:if %s.Field == HUDDir
10531 //mt:if %s.Field == HUDAlign
10534 //mt:if %s.Field == HUDOffset
10537 //mt:if %s.Field == HUDWorldPos
10540 //mt:if %s.Field == HUDSize
10543 //mt:if %s.Field == HUDZIndex
10546 //mt:if %s.Field == HUDText2
10548 }))(obj)).Field == HUDSize {
10549 for local187 := range (*(*(struct {
10554 //mt:if %s.Field == HUDPos
10557 //mt:if %s.Field == HUDName
10560 //mt:if %s.Field == HUDScale
10563 //mt:if %s.Field == HUDText
10566 //mt:if %s.Field == HUDNumber
10569 //mt:if %s.Field == HUDItem
10572 //mt:if %s.Field == HUDDir
10575 //mt:if %s.Field == HUDAlign
10578 //mt:if %s.Field == HUDOffset
10581 //mt:if %s.Field == HUDWorldPos
10584 //mt:if %s.Field == HUDSize
10587 //mt:if %s.Field == HUDZIndex
10590 //mt:if %s.Field == HUDText2
10594 p := &((*(*(struct {
10599 //mt:if %s.Field == HUDPos
10602 //mt:if %s.Field == HUDName
10605 //mt:if %s.Field == HUDScale
10608 //mt:if %s.Field == HUDText
10611 //mt:if %s.Field == HUDNumber
10614 //mt:if %s.Field == HUDItem
10617 //mt:if %s.Field == HUDDir
10620 //mt:if %s.Field == HUDAlign
10623 //mt:if %s.Field == HUDOffset
10626 //mt:if %s.Field == HUDWorldPos
10629 //mt:if %s.Field == HUDSize
10632 //mt:if %s.Field == HUDZIndex
10635 //mt:if %s.Field == HUDText2
10637 }))(obj)).Size)[local187]
10638 *p = int32(read32(r))
10647 //mt:if %s.Field == HUDPos
10650 //mt:if %s.Field == HUDName
10653 //mt:if %s.Field == HUDScale
10656 //mt:if %s.Field == HUDText
10659 //mt:if %s.Field == HUDNumber
10662 //mt:if %s.Field == HUDItem
10665 //mt:if %s.Field == HUDDir
10668 //mt:if %s.Field == HUDAlign
10671 //mt:if %s.Field == HUDOffset
10674 //mt:if %s.Field == HUDWorldPos
10677 //mt:if %s.Field == HUDSize
10680 //mt:if %s.Field == HUDZIndex
10683 //mt:if %s.Field == HUDText2
10685 }))(obj)).Field == HUDZIndex {
10687 p := &(*(*(struct {
10692 //mt:if %s.Field == HUDPos
10695 //mt:if %s.Field == HUDName
10698 //mt:if %s.Field == HUDScale
10701 //mt:if %s.Field == HUDText
10704 //mt:if %s.Field == HUDNumber
10707 //mt:if %s.Field == HUDItem
10710 //mt:if %s.Field == HUDDir
10713 //mt:if %s.Field == HUDAlign
10716 //mt:if %s.Field == HUDOffset
10719 //mt:if %s.Field == HUDWorldPos
10722 //mt:if %s.Field == HUDSize
10725 //mt:if %s.Field == HUDZIndex
10728 //mt:if %s.Field == HUDText2
10731 *p = int32(read32(r))
10739 //mt:if %s.Field == HUDPos
10742 //mt:if %s.Field == HUDName
10745 //mt:if %s.Field == HUDScale
10748 //mt:if %s.Field == HUDText
10751 //mt:if %s.Field == HUDNumber
10754 //mt:if %s.Field == HUDItem
10757 //mt:if %s.Field == HUDDir
10760 //mt:if %s.Field == HUDAlign
10763 //mt:if %s.Field == HUDOffset
10766 //mt:if %s.Field == HUDWorldPos
10769 //mt:if %s.Field == HUDSize
10772 //mt:if %s.Field == HUDZIndex
10775 //mt:if %s.Field == HUDText2
10777 }))(obj)).Field == HUDText2 {
10778 var local188 []uint8
10779 var local189 uint16
10784 (local188) = make([]uint8, local189)
10786 _, err := io.ReadFull(r, (local188)[:])
10794 //mt:if %s.Field == HUDPos
10797 //mt:if %s.Field == HUDName
10800 //mt:if %s.Field == HUDScale
10803 //mt:if %s.Field == HUDText
10806 //mt:if %s.Field == HUDNumber
10809 //mt:if %s.Field == HUDItem
10812 //mt:if %s.Field == HUDDir
10815 //mt:if %s.Field == HUDAlign
10818 //mt:if %s.Field == HUDOffset
10821 //mt:if %s.Field == HUDWorldPos
10824 //mt:if %s.Field == HUDSize
10827 //mt:if %s.Field == HUDZIndex
10830 //mt:if %s.Field == HUDText2
10832 }))(obj)).Text2) = string(local188)
10836 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
10837 if err := pcall(func() {
10841 Flags, Mask HUDFlags
10842 }))(obj)).Flags).serialize(w)
10847 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10849 if err := pcall(func() {
10853 Flags, Mask HUDFlags
10854 }))(obj)).Mask).serialize(w)
10859 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10863 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
10864 if err := pcall(func() {
10868 Flags, Mask HUDFlags
10869 }))(obj)).Flags).deserialize(r)
10874 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10876 if err := pcall(func() {
10880 Flags, Mask HUDFlags
10881 }))(obj)).Mask).deserialize(r)
10886 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10890 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
10891 if err := pcall(func() {
10895 //mt:if %s.Param == HotbarSize
10896 //mt:const uint16(4) // Size of Size field.
10899 //mt:if %s.Param != HotbarSize
10901 }))(obj)).Param).serialize(w)
10906 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10911 //mt:if %s.Param == HotbarSize
10912 //mt:const uint16(4) // Size of Size field.
10915 //mt:if %s.Param != HotbarSize
10917 }))(obj)).Param == HotbarSize {
10919 local190 := uint16(4) // Size of Size field.
10922 write16(w, uint16(x))
10929 //mt:if %s.Param == HotbarSize
10930 //mt:const uint16(4) // Size of Size field.
10933 //mt:if %s.Param != HotbarSize
10936 write32(w, uint32(x))
10942 //mt:if %s.Param == HotbarSize
10943 //mt:const uint16(4) // Size of Size field.
10946 //mt:if %s.Param != HotbarSize
10948 }))(obj)).Param != HotbarSize {
10949 if err := pcall(func() {
10953 //mt:if %s.Param == HotbarSize
10954 //mt:const uint16(4) // Size of Size field.
10957 //mt:if %s.Param != HotbarSize
10959 }))(obj)).Img).serialize(w)
10964 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
10969 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
10970 if err := pcall(func() {
10974 //mt:if %s.Param == HotbarSize
10975 //mt:const uint16(4) // Size of Size field.
10978 //mt:if %s.Param != HotbarSize
10980 }))(obj)).Param).deserialize(r)
10985 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10990 //mt:if %s.Param == HotbarSize
10991 //mt:const uint16(4) // Size of Size field.
10994 //mt:if %s.Param != HotbarSize
10996 }))(obj)).Param == HotbarSize {
10998 var local191 uint16
10999 local192 := uint16(4) // Size of Size field.
11004 if local191 != local192 {
11005 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local191))
11009 p := &(*(*(struct {
11012 //mt:if %s.Param == HotbarSize
11013 //mt:const uint16(4) // Size of Size field.
11016 //mt:if %s.Param != HotbarSize
11019 *p = int32(read32(r))
11025 //mt:if %s.Param == HotbarSize
11026 //mt:const uint16(4) // Size of Size field.
11029 //mt:if %s.Param != HotbarSize
11031 }))(obj)).Param != HotbarSize {
11032 if err := pcall(func() {
11036 //mt:if %s.Param == HotbarSize
11037 //mt:const uint16(4) // Size of Size field.
11040 //mt:if %s.Param != HotbarSize
11042 }))(obj)).Img).deserialize(r)
11047 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11052 func (obj *ToCltBreath) serialize(w io.Writer) {
11057 write16(w, uint16(x))
11061 func (obj *ToCltBreath) deserialize(r io.Reader) {
11063 p := &(*(*(struct {
11070 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11073 BgColor color.NRGBA
11076 SunFogTint color.NRGBA
11077 MoonFogTint color.NRGBA
11080 //mt:if %s.Type == "skybox"
11083 //mt:if %s.Type == "regular"
11084 DaySky, DayHorizon,
11085 DawnSky, DawnHorizon,
11086 NightSky, NightHorizon,
11089 w.Write([]byte{x.A, x.R, x.G, x.B})
11092 if len(([]byte((*(*(struct {
11093 BgColor color.NRGBA
11096 SunFogTint color.NRGBA
11097 MoonFogTint color.NRGBA
11100 //mt:if %s.Type == "skybox"
11103 //mt:if %s.Type == "regular"
11104 DaySky, DayHorizon,
11105 DawnSky, DawnHorizon,
11106 NightSky, NightHorizon,
11108 }))(obj)).Type))) > math.MaxUint16 {
11112 x := uint16(len(([]byte((*(*(struct {
11113 BgColor color.NRGBA
11116 SunFogTint color.NRGBA
11117 MoonFogTint color.NRGBA
11120 //mt:if %s.Type == "skybox"
11123 //mt:if %s.Type == "regular"
11124 DaySky, DayHorizon,
11125 DawnSky, DawnHorizon,
11126 NightSky, NightHorizon,
11129 write16(w, uint16(x))
11132 _, err := w.Write(([]byte((*(*(struct {
11133 BgColor color.NRGBA
11136 SunFogTint color.NRGBA
11137 MoonFogTint color.NRGBA
11140 //mt:if %s.Type == "skybox"
11143 //mt:if %s.Type == "regular"
11144 DaySky, DayHorizon,
11145 DawnSky, DawnHorizon,
11146 NightSky, NightHorizon,
11148 }))(obj)).Type))[:])
11153 BgColor color.NRGBA
11156 SunFogTint color.NRGBA
11157 MoonFogTint color.NRGBA
11160 //mt:if %s.Type == "skybox"
11163 //mt:if %s.Type == "regular"
11164 DaySky, DayHorizon,
11165 DawnSky, DawnHorizon,
11166 NightSky, NightHorizon,
11178 BgColor color.NRGBA
11181 SunFogTint color.NRGBA
11182 MoonFogTint color.NRGBA
11185 //mt:if %s.Type == "skybox"
11188 //mt:if %s.Type == "regular"
11189 DaySky, DayHorizon,
11190 DawnSky, DawnHorizon,
11191 NightSky, NightHorizon,
11193 }))(obj)).SunFogTint
11194 w.Write([]byte{x.A, x.R, x.G, x.B})
11199 BgColor color.NRGBA
11202 SunFogTint color.NRGBA
11203 MoonFogTint color.NRGBA
11206 //mt:if %s.Type == "skybox"
11209 //mt:if %s.Type == "regular"
11210 DaySky, DayHorizon,
11211 DawnSky, DawnHorizon,
11212 NightSky, NightHorizon,
11214 }))(obj)).MoonFogTint
11215 w.Write([]byte{x.A, x.R, x.G, x.B})
11218 if len(([]byte((*(*(struct {
11219 BgColor color.NRGBA
11222 SunFogTint color.NRGBA
11223 MoonFogTint color.NRGBA
11226 //mt:if %s.Type == "skybox"
11229 //mt:if %s.Type == "regular"
11230 DaySky, DayHorizon,
11231 DawnSky, DawnHorizon,
11232 NightSky, NightHorizon,
11234 }))(obj)).FogTintType))) > math.MaxUint16 {
11238 x := uint16(len(([]byte((*(*(struct {
11239 BgColor color.NRGBA
11242 SunFogTint color.NRGBA
11243 MoonFogTint color.NRGBA
11246 //mt:if %s.Type == "skybox"
11249 //mt:if %s.Type == "regular"
11250 DaySky, DayHorizon,
11251 DawnSky, DawnHorizon,
11252 NightSky, NightHorizon,
11254 }))(obj)).FogTintType))))
11255 write16(w, uint16(x))
11258 _, err := w.Write(([]byte((*(*(struct {
11259 BgColor color.NRGBA
11262 SunFogTint color.NRGBA
11263 MoonFogTint color.NRGBA
11266 //mt:if %s.Type == "skybox"
11269 //mt:if %s.Type == "regular"
11270 DaySky, DayHorizon,
11271 DawnSky, DawnHorizon,
11272 NightSky, NightHorizon,
11274 }))(obj)).FogTintType))[:])
11278 BgColor color.NRGBA
11281 SunFogTint color.NRGBA
11282 MoonFogTint color.NRGBA
11285 //mt:if %s.Type == "skybox"
11288 //mt:if %s.Type == "regular"
11289 DaySky, DayHorizon,
11290 DawnSky, DawnHorizon,
11291 NightSky, NightHorizon,
11293 }))(obj)).Type == "skybox" {
11294 if len(((*(*(struct {
11295 BgColor color.NRGBA
11298 SunFogTint color.NRGBA
11299 MoonFogTint color.NRGBA
11302 //mt:if %s.Type == "skybox"
11305 //mt:if %s.Type == "regular"
11306 DaySky, DayHorizon,
11307 DawnSky, DawnHorizon,
11308 NightSky, NightHorizon,
11310 }))(obj)).Textures)) > math.MaxUint16 {
11314 x := uint16(len(((*(*(struct {
11315 BgColor color.NRGBA
11318 SunFogTint color.NRGBA
11319 MoonFogTint color.NRGBA
11322 //mt:if %s.Type == "skybox"
11325 //mt:if %s.Type == "regular"
11326 DaySky, DayHorizon,
11327 DawnSky, DawnHorizon,
11328 NightSky, NightHorizon,
11330 }))(obj)).Textures)))
11331 write16(w, uint16(x))
11333 for local193 := range (*(*(struct {
11334 BgColor color.NRGBA
11337 SunFogTint color.NRGBA
11338 MoonFogTint color.NRGBA
11341 //mt:if %s.Type == "skybox"
11344 //mt:if %s.Type == "regular"
11345 DaySky, DayHorizon,
11346 DawnSky, DawnHorizon,
11347 NightSky, NightHorizon,
11349 }))(obj)).Textures {
11350 if err := pcall(func() {
11352 BgColor color.NRGBA
11355 SunFogTint color.NRGBA
11356 MoonFogTint color.NRGBA
11359 //mt:if %s.Type == "skybox"
11362 //mt:if %s.Type == "regular"
11363 DaySky, DayHorizon,
11364 DawnSky, DawnHorizon,
11365 NightSky, NightHorizon,
11367 }))(obj)).Textures)[local193]).serialize(w)
11372 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11377 BgColor color.NRGBA
11380 SunFogTint color.NRGBA
11381 MoonFogTint color.NRGBA
11384 //mt:if %s.Type == "skybox"
11387 //mt:if %s.Type == "regular"
11388 DaySky, DayHorizon,
11389 DawnSky, DawnHorizon,
11390 NightSky, NightHorizon,
11392 }))(obj)).Type == "regular" {
11395 BgColor color.NRGBA
11398 SunFogTint color.NRGBA
11399 MoonFogTint color.NRGBA
11402 //mt:if %s.Type == "skybox"
11405 //mt:if %s.Type == "regular"
11406 DaySky, DayHorizon,
11407 DawnSky, DawnHorizon,
11408 NightSky, NightHorizon,
11411 w.Write([]byte{x.A, x.R, x.G, x.B})
11416 BgColor color.NRGBA
11419 SunFogTint color.NRGBA
11420 MoonFogTint color.NRGBA
11423 //mt:if %s.Type == "skybox"
11426 //mt:if %s.Type == "regular"
11427 DaySky, DayHorizon,
11428 DawnSky, DawnHorizon,
11429 NightSky, NightHorizon,
11431 }))(obj)).DayHorizon
11432 w.Write([]byte{x.A, x.R, x.G, x.B})
11437 BgColor color.NRGBA
11440 SunFogTint color.NRGBA
11441 MoonFogTint color.NRGBA
11444 //mt:if %s.Type == "skybox"
11447 //mt:if %s.Type == "regular"
11448 DaySky, DayHorizon,
11449 DawnSky, DawnHorizon,
11450 NightSky, NightHorizon,
11453 w.Write([]byte{x.A, x.R, x.G, x.B})
11458 BgColor color.NRGBA
11461 SunFogTint color.NRGBA
11462 MoonFogTint color.NRGBA
11465 //mt:if %s.Type == "skybox"
11468 //mt:if %s.Type == "regular"
11469 DaySky, DayHorizon,
11470 DawnSky, DawnHorizon,
11471 NightSky, NightHorizon,
11473 }))(obj)).DawnHorizon
11474 w.Write([]byte{x.A, x.R, x.G, x.B})
11479 BgColor color.NRGBA
11482 SunFogTint color.NRGBA
11483 MoonFogTint color.NRGBA
11486 //mt:if %s.Type == "skybox"
11489 //mt:if %s.Type == "regular"
11490 DaySky, DayHorizon,
11491 DawnSky, DawnHorizon,
11492 NightSky, NightHorizon,
11495 w.Write([]byte{x.A, x.R, x.G, x.B})
11500 BgColor color.NRGBA
11503 SunFogTint color.NRGBA
11504 MoonFogTint color.NRGBA
11507 //mt:if %s.Type == "skybox"
11510 //mt:if %s.Type == "regular"
11511 DaySky, DayHorizon,
11512 DawnSky, DawnHorizon,
11513 NightSky, NightHorizon,
11515 }))(obj)).NightHorizon
11516 w.Write([]byte{x.A, x.R, x.G, x.B})
11521 BgColor color.NRGBA
11524 SunFogTint color.NRGBA
11525 MoonFogTint color.NRGBA
11528 //mt:if %s.Type == "skybox"
11531 //mt:if %s.Type == "regular"
11532 DaySky, DayHorizon,
11533 DawnSky, DawnHorizon,
11534 NightSky, NightHorizon,
11537 w.Write([]byte{x.A, x.R, x.G, x.B})
11543 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11545 p := &(*(*(struct {
11546 BgColor color.NRGBA
11549 SunFogTint color.NRGBA
11550 MoonFogTint color.NRGBA
11553 //mt:if %s.Type == "skybox"
11556 //mt:if %s.Type == "regular"
11557 DaySky, DayHorizon,
11558 DawnSky, DawnHorizon,
11559 NightSky, NightHorizon,
11562 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11565 var local194 []uint8
11566 var local195 uint16
11571 (local194) = make([]uint8, local195)
11573 _, err := io.ReadFull(r, (local194)[:])
11577 BgColor color.NRGBA
11580 SunFogTint color.NRGBA
11581 MoonFogTint color.NRGBA
11584 //mt:if %s.Type == "skybox"
11587 //mt:if %s.Type == "regular"
11588 DaySky, DayHorizon,
11589 DawnSky, DawnHorizon,
11590 NightSky, NightHorizon,
11592 }))(obj)).Type) = string(local194)
11594 p := &(*(*(struct {
11595 BgColor color.NRGBA
11598 SunFogTint color.NRGBA
11599 MoonFogTint color.NRGBA
11602 //mt:if %s.Type == "skybox"
11605 //mt:if %s.Type == "regular"
11606 DaySky, DayHorizon,
11607 DawnSky, DawnHorizon,
11608 NightSky, NightHorizon,
11611 switch n := read8(r); n {
11617 chk(fmt.Errorf("invalid bool: %d", n))
11622 p := &(*(*(struct {
11623 BgColor color.NRGBA
11626 SunFogTint color.NRGBA
11627 MoonFogTint color.NRGBA
11630 //mt:if %s.Type == "skybox"
11633 //mt:if %s.Type == "regular"
11634 DaySky, DayHorizon,
11635 DawnSky, DawnHorizon,
11636 NightSky, NightHorizon,
11638 }))(obj)).SunFogTint
11639 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11643 p := &(*(*(struct {
11644 BgColor color.NRGBA
11647 SunFogTint color.NRGBA
11648 MoonFogTint color.NRGBA
11651 //mt:if %s.Type == "skybox"
11654 //mt:if %s.Type == "regular"
11655 DaySky, DayHorizon,
11656 DawnSky, DawnHorizon,
11657 NightSky, NightHorizon,
11659 }))(obj)).MoonFogTint
11660 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11663 var local196 []uint8
11664 var local197 uint16
11669 (local196) = make([]uint8, local197)
11671 _, err := io.ReadFull(r, (local196)[:])
11675 BgColor color.NRGBA
11678 SunFogTint color.NRGBA
11679 MoonFogTint color.NRGBA
11682 //mt:if %s.Type == "skybox"
11685 //mt:if %s.Type == "regular"
11686 DaySky, DayHorizon,
11687 DawnSky, DawnHorizon,
11688 NightSky, NightHorizon,
11690 }))(obj)).FogTintType) = string(local196)
11692 BgColor color.NRGBA
11695 SunFogTint color.NRGBA
11696 MoonFogTint color.NRGBA
11699 //mt:if %s.Type == "skybox"
11702 //mt:if %s.Type == "regular"
11703 DaySky, DayHorizon,
11704 DawnSky, DawnHorizon,
11705 NightSky, NightHorizon,
11707 }))(obj)).Type == "skybox" {
11708 var local198 uint16
11714 BgColor color.NRGBA
11717 SunFogTint color.NRGBA
11718 MoonFogTint color.NRGBA
11721 //mt:if %s.Type == "skybox"
11724 //mt:if %s.Type == "regular"
11725 DaySky, DayHorizon,
11726 DawnSky, DawnHorizon,
11727 NightSky, NightHorizon,
11729 }))(obj)).Textures) = make([]Texture, local198)
11730 for local199 := range (*(*(struct {
11731 BgColor color.NRGBA
11734 SunFogTint color.NRGBA
11735 MoonFogTint color.NRGBA
11738 //mt:if %s.Type == "skybox"
11741 //mt:if %s.Type == "regular"
11742 DaySky, DayHorizon,
11743 DawnSky, DawnHorizon,
11744 NightSky, NightHorizon,
11746 }))(obj)).Textures {
11747 if err := pcall(func() {
11749 BgColor color.NRGBA
11752 SunFogTint color.NRGBA
11753 MoonFogTint color.NRGBA
11756 //mt:if %s.Type == "skybox"
11759 //mt:if %s.Type == "regular"
11760 DaySky, DayHorizon,
11761 DawnSky, DawnHorizon,
11762 NightSky, NightHorizon,
11764 }))(obj)).Textures)[local199]).deserialize(r)
11769 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11774 BgColor color.NRGBA
11777 SunFogTint color.NRGBA
11778 MoonFogTint color.NRGBA
11781 //mt:if %s.Type == "skybox"
11784 //mt:if %s.Type == "regular"
11785 DaySky, DayHorizon,
11786 DawnSky, DawnHorizon,
11787 NightSky, NightHorizon,
11789 }))(obj)).Type == "regular" {
11791 p := &(*(*(struct {
11792 BgColor color.NRGBA
11795 SunFogTint color.NRGBA
11796 MoonFogTint color.NRGBA
11799 //mt:if %s.Type == "skybox"
11802 //mt:if %s.Type == "regular"
11803 DaySky, DayHorizon,
11804 DawnSky, DawnHorizon,
11805 NightSky, NightHorizon,
11808 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11812 p := &(*(*(struct {
11813 BgColor color.NRGBA
11816 SunFogTint color.NRGBA
11817 MoonFogTint color.NRGBA
11820 //mt:if %s.Type == "skybox"
11823 //mt:if %s.Type == "regular"
11824 DaySky, DayHorizon,
11825 DawnSky, DawnHorizon,
11826 NightSky, NightHorizon,
11828 }))(obj)).DayHorizon
11829 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11833 p := &(*(*(struct {
11834 BgColor color.NRGBA
11837 SunFogTint color.NRGBA
11838 MoonFogTint color.NRGBA
11841 //mt:if %s.Type == "skybox"
11844 //mt:if %s.Type == "regular"
11845 DaySky, DayHorizon,
11846 DawnSky, DawnHorizon,
11847 NightSky, NightHorizon,
11850 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11854 p := &(*(*(struct {
11855 BgColor color.NRGBA
11858 SunFogTint color.NRGBA
11859 MoonFogTint color.NRGBA
11862 //mt:if %s.Type == "skybox"
11865 //mt:if %s.Type == "regular"
11866 DaySky, DayHorizon,
11867 DawnSky, DawnHorizon,
11868 NightSky, NightHorizon,
11870 }))(obj)).DawnHorizon
11871 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11875 p := &(*(*(struct {
11876 BgColor color.NRGBA
11879 SunFogTint color.NRGBA
11880 MoonFogTint color.NRGBA
11883 //mt:if %s.Type == "skybox"
11886 //mt:if %s.Type == "regular"
11887 DaySky, DayHorizon,
11888 DawnSky, DawnHorizon,
11889 NightSky, NightHorizon,
11892 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11896 p := &(*(*(struct {
11897 BgColor color.NRGBA
11900 SunFogTint color.NRGBA
11901 MoonFogTint color.NRGBA
11904 //mt:if %s.Type == "skybox"
11907 //mt:if %s.Type == "regular"
11908 DaySky, DayHorizon,
11909 DawnSky, DawnHorizon,
11910 NightSky, NightHorizon,
11912 }))(obj)).NightHorizon
11913 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11917 p := &(*(*(struct {
11918 BgColor color.NRGBA
11921 SunFogTint color.NRGBA
11922 MoonFogTint color.NRGBA
11925 //mt:if %s.Type == "skybox"
11928 //mt:if %s.Type == "regular"
11929 DaySky, DayHorizon,
11930 DawnSky, DawnHorizon,
11931 NightSky, NightHorizon,
11934 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11940 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
11958 write16(w, uint16(x))
11962 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
11964 p := &(*(*(struct {
11968 switch n := read8(r); n {
11974 chk(fmt.Errorf("invalid bool: %d", n))
11979 p := &(*(*(struct {
11987 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
11988 for local200 := range (*(*(struct {
11989 Idle, Walk, Dig, WalkDig [2]int32
11993 x := ((*(*(struct {
11994 Idle, Walk, Dig, WalkDig [2]int32
11996 }))(obj)).Idle)[local200]
11997 write32(w, uint32(x))
12000 for local201 := range (*(*(struct {
12001 Idle, Walk, Dig, WalkDig [2]int32
12005 x := ((*(*(struct {
12006 Idle, Walk, Dig, WalkDig [2]int32
12008 }))(obj)).Walk)[local201]
12009 write32(w, uint32(x))
12012 for local202 := range (*(*(struct {
12013 Idle, Walk, Dig, WalkDig [2]int32
12017 x := ((*(*(struct {
12018 Idle, Walk, Dig, WalkDig [2]int32
12020 }))(obj)).Dig)[local202]
12021 write32(w, uint32(x))
12024 for local203 := range (*(*(struct {
12025 Idle, Walk, Dig, WalkDig [2]int32
12027 }))(obj)).WalkDig {
12029 x := ((*(*(struct {
12030 Idle, Walk, Dig, WalkDig [2]int32
12032 }))(obj)).WalkDig)[local203]
12033 write32(w, uint32(x))
12038 Idle, Walk, Dig, WalkDig [2]int32
12041 write32(w, math.Float32bits(x))
12045 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
12046 for local204 := range (*(*(struct {
12047 Idle, Walk, Dig, WalkDig [2]int32
12051 p := &((*(*(struct {
12052 Idle, Walk, Dig, WalkDig [2]int32
12054 }))(obj)).Idle)[local204]
12055 *p = int32(read32(r))
12058 for local205 := range (*(*(struct {
12059 Idle, Walk, Dig, WalkDig [2]int32
12063 p := &((*(*(struct {
12064 Idle, Walk, Dig, WalkDig [2]int32
12066 }))(obj)).Walk)[local205]
12067 *p = int32(read32(r))
12070 for local206 := range (*(*(struct {
12071 Idle, Walk, Dig, WalkDig [2]int32
12075 p := &((*(*(struct {
12076 Idle, Walk, Dig, WalkDig [2]int32
12078 }))(obj)).Dig)[local206]
12079 *p = int32(read32(r))
12082 for local207 := range (*(*(struct {
12083 Idle, Walk, Dig, WalkDig [2]int32
12085 }))(obj)).WalkDig {
12087 p := &((*(*(struct {
12088 Idle, Walk, Dig, WalkDig [2]int32
12090 }))(obj)).WalkDig)[local207]
12091 *p = int32(read32(r))
12095 p := &(*(*(struct {
12096 Idle, Walk, Dig, WalkDig [2]int32
12099 *p = math.Float32frombits(read32(r))
12103 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12104 if err := pcall(func() {
12107 }))(obj)).First).serialize(w)
12112 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12114 if err := pcall(func() {
12117 }))(obj)).Third).serialize(w)
12122 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12126 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12127 if err := pcall(func() {
12130 }))(obj)).First).deserialize(r)
12135 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12137 if err := pcall(func() {
12140 }))(obj)).Third).deserialize(r)
12145 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12149 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12150 if err := pcall(func() {
12152 ID ParticleSpawnerID
12153 }))(obj)).ID).serialize(w)
12158 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12162 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12163 if err := pcall(func() {
12165 ID ParticleSpawnerID
12166 }))(obj)).ID).deserialize(r)
12171 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12175 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12179 DiffuseColor color.NRGBA
12180 AmbientColor color.NRGBA
12185 write32(w, math.Float32bits(x))
12190 DiffuseColor color.NRGBA
12191 AmbientColor color.NRGBA
12195 }))(obj)).DiffuseColor
12196 w.Write([]byte{x.A, x.R, x.G, x.B})
12202 DiffuseColor color.NRGBA
12203 AmbientColor color.NRGBA
12207 }))(obj)).AmbientColor
12208 w.Write([]byte{x.A, x.R, x.G, x.B})
12214 DiffuseColor color.NRGBA
12215 AmbientColor color.NRGBA
12220 write32(w, math.Float32bits(x))
12225 DiffuseColor color.NRGBA
12226 AmbientColor color.NRGBA
12230 }))(obj)).Thickness
12231 write32(w, math.Float32bits(x))
12233 for local208 := range (*(*(struct {
12235 DiffuseColor color.NRGBA
12236 AmbientColor color.NRGBA
12242 x := ((*(*(struct {
12244 DiffuseColor color.NRGBA
12245 AmbientColor color.NRGBA
12249 }))(obj)).Speed)[local208]
12250 write32(w, math.Float32bits(x))
12255 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12257 p := &(*(*(struct {
12259 DiffuseColor color.NRGBA
12260 AmbientColor color.NRGBA
12265 *p = math.Float32frombits(read32(r))
12268 p := &(*(*(struct {
12270 DiffuseColor color.NRGBA
12271 AmbientColor color.NRGBA
12275 }))(obj)).DiffuseColor
12276 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12280 p := &(*(*(struct {
12282 DiffuseColor color.NRGBA
12283 AmbientColor color.NRGBA
12287 }))(obj)).AmbientColor
12288 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12292 p := &(*(*(struct {
12294 DiffuseColor color.NRGBA
12295 AmbientColor color.NRGBA
12300 *p = math.Float32frombits(read32(r))
12303 p := &(*(*(struct {
12305 DiffuseColor color.NRGBA
12306 AmbientColor color.NRGBA
12310 }))(obj)).Thickness
12311 *p = math.Float32frombits(read32(r))
12313 for local209 := range (*(*(struct {
12315 DiffuseColor color.NRGBA
12316 AmbientColor color.NRGBA
12322 p := &((*(*(struct {
12324 DiffuseColor color.NRGBA
12325 AmbientColor color.NRGBA
12329 }))(obj)).Speed)[local209]
12330 *p = math.Float32frombits(read32(r))
12335 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12336 if err := pcall(func() {
12341 }))(obj)).ID).serialize(w)
12346 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12354 write32(w, math.Float32bits(x))
12362 write32(w, math.Float32bits(x))
12366 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12367 if err := pcall(func() {
12372 }))(obj)).ID).deserialize(r)
12377 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12380 p := &(*(*(struct {
12385 *p = math.Float32frombits(read32(r))
12388 p := &(*(*(struct {
12393 *p = math.Float32frombits(read32(r))
12397 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12398 if err := pcall(func() {
12400 Type PlayerListUpdateType
12402 }))(obj)).Type).serialize(w)
12407 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12409 if len(((*(*(struct {
12410 Type PlayerListUpdateType
12412 }))(obj)).Players)) > math.MaxUint16 {
12416 x := uint16(len(((*(*(struct {
12417 Type PlayerListUpdateType
12419 }))(obj)).Players)))
12420 write16(w, uint16(x))
12422 for local210 := range (*(*(struct {
12423 Type PlayerListUpdateType
12425 }))(obj)).Players {
12426 if len(([]byte(((*(*(struct {
12427 Type PlayerListUpdateType
12429 }))(obj)).Players)[local210]))) > math.MaxUint16 {
12433 x := uint16(len(([]byte(((*(*(struct {
12434 Type PlayerListUpdateType
12436 }))(obj)).Players)[local210]))))
12437 write16(w, uint16(x))
12440 _, err := w.Write(([]byte(((*(*(struct {
12441 Type PlayerListUpdateType
12443 }))(obj)).Players)[local210]))[:])
12449 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12450 if err := pcall(func() {
12452 Type PlayerListUpdateType
12454 }))(obj)).Type).deserialize(r)
12459 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12461 var local211 uint16
12467 Type PlayerListUpdateType
12469 }))(obj)).Players) = make([]string, local211)
12470 for local212 := range (*(*(struct {
12471 Type PlayerListUpdateType
12473 }))(obj)).Players {
12474 var local213 []uint8
12475 var local214 uint16
12480 (local213) = make([]uint8, local214)
12482 _, err := io.ReadFull(r, (local213)[:])
12486 Type PlayerListUpdateType
12488 }))(obj)).Players)[local212]) = string(local213)
12492 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12493 if len(([]byte((*(*(struct {
12497 }))(obj)).Channel))) > math.MaxUint16 {
12501 x := uint16(len(([]byte((*(*(struct {
12505 }))(obj)).Channel))))
12506 write16(w, uint16(x))
12509 _, err := w.Write(([]byte((*(*(struct {
12513 }))(obj)).Channel))[:])
12516 if len(([]byte((*(*(struct {
12520 }))(obj)).Sender))) > math.MaxUint16 {
12524 x := uint16(len(([]byte((*(*(struct {
12528 }))(obj)).Sender))))
12529 write16(w, uint16(x))
12532 _, err := w.Write(([]byte((*(*(struct {
12536 }))(obj)).Sender))[:])
12539 if len(([]byte((*(*(struct {
12543 }))(obj)).Msg))) > math.MaxUint16 {
12547 x := uint16(len(([]byte((*(*(struct {
12552 write16(w, uint16(x))
12555 _, err := w.Write(([]byte((*(*(struct {
12559 }))(obj)).Msg))[:])
12564 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12565 var local215 []uint8
12566 var local216 uint16
12571 (local215) = make([]uint8, local216)
12573 _, err := io.ReadFull(r, (local215)[:])
12580 }))(obj)).Channel) = string(local215)
12581 var local217 []uint8
12582 var local218 uint16
12587 (local217) = make([]uint8, local218)
12589 _, err := io.ReadFull(r, (local217)[:])
12596 }))(obj)).Sender) = string(local217)
12597 var local219 []uint8
12598 var local220 uint16
12603 (local219) = make([]uint8, local220)
12605 _, err := io.ReadFull(r, (local219)[:])
12612 }))(obj)).Msg) = string(local219)
12615 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12616 if err := pcall(func() {
12620 }))(obj)).Signal).serialize(w)
12625 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12627 if len(([]byte((*(*(struct {
12630 }))(obj)).Channel))) > math.MaxUint16 {
12634 x := uint16(len(([]byte((*(*(struct {
12637 }))(obj)).Channel))))
12638 write16(w, uint16(x))
12641 _, err := w.Write(([]byte((*(*(struct {
12644 }))(obj)).Channel))[:])
12649 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12650 if err := pcall(func() {
12654 }))(obj)).Signal).deserialize(r)
12659 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12661 var local221 []uint8
12662 var local222 uint16
12667 (local221) = make([]uint8, local222)
12669 _, err := io.ReadFull(r, (local221)[:])
12675 }))(obj)).Channel) = string(local221)
12678 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12681 w := new(bytes.Buffer)
12685 Changed map[[3]int16]*NodeMeta
12688 w := zlib.NewWriter(w)
12694 if len(x) > math.MaxUint16 {
12697 write16(w, uint16(len(x)))
12698 keys := make([][3]int16, 0, len(x))
12699 for key := range x {
12700 keys = append(keys, key)
12702 sort.Slice(keys, func(i, j int) bool {
12703 p, q := keys[i], keys[j]
12716 for _, key := range keys {
12717 for _, n := range key {
12718 write16(w, uint16(n))
12720 chk(serialize(w, x[key]))
12731 if len((buf.Bytes())) > math.MaxUint32 {
12735 x := uint32(len((buf.Bytes())))
12736 write32(w, uint32(x))
12739 _, err := w.Write((buf.Bytes())[:])
12746 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
12753 r := &io.LimitedReader{R: r, N: int64(n)}
12755 p := &(*(*(struct {
12757 Changed map[[3]int16]*NodeMeta
12760 r, err := zlib.NewReader(byteReader{r})
12763 switch ver := read8(r); ver {
12768 *p = make(map[[3]int16]*NodeMeta, n)
12771 for i := range pos {
12772 pos[i] = int16(read16(r))
12774 nm := new(NodeMeta)
12775 chk(deserialize(r, nm))
12779 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
12787 chk(fmt.Errorf("%d bytes of trailing data", r.N))
12792 func (obj *ToCltSunParams) serialize(w io.Writer) {
12809 if err := pcall(func() {
12817 }))(obj)).Texture).serialize(w)
12822 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12824 if err := pcall(func() {
12832 }))(obj)).ToneMap).serialize(w)
12837 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12839 if err := pcall(func() {
12847 }))(obj)).Rise).serialize(w)
12852 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12879 write32(w, math.Float32bits(x))
12883 func (obj *ToCltSunParams) deserialize(r io.Reader) {
12885 p := &(*(*(struct {
12893 switch n := read8(r); n {
12899 chk(fmt.Errorf("invalid bool: %d", n))
12903 if err := pcall(func() {
12911 }))(obj)).Texture).deserialize(r)
12916 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12918 if err := pcall(func() {
12926 }))(obj)).ToneMap).deserialize(r)
12931 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12933 if err := pcall(func() {
12941 }))(obj)).Rise).deserialize(r)
12946 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12949 p := &(*(*(struct {
12957 switch n := read8(r); n {
12963 chk(fmt.Errorf("invalid bool: %d", n))
12968 p := &(*(*(struct {
12976 *p = math.Float32frombits(read32(r))
12980 func (obj *ToCltMoonParams) serialize(w io.Writer) {
12995 if err := pcall(func() {
13001 }))(obj)).Texture).serialize(w)
13006 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13008 if err := pcall(func() {
13014 }))(obj)).ToneMap).serialize(w)
13019 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13028 write32(w, math.Float32bits(x))
13032 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
13034 p := &(*(*(struct {
13040 switch n := read8(r); n {
13046 chk(fmt.Errorf("invalid bool: %d", n))
13050 if err := pcall(func() {
13056 }))(obj)).Texture).deserialize(r)
13061 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13063 if err := pcall(func() {
13069 }))(obj)).ToneMap).deserialize(r)
13074 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13077 p := &(*(*(struct {
13083 *p = math.Float32frombits(read32(r))
13087 func (obj *ToCltStarParams) serialize(w io.Writer) {
13109 write32(w, uint32(x))
13118 w.Write([]byte{x.A, x.R, x.G, x.B})
13128 write32(w, math.Float32bits(x))
13132 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13134 p := &(*(*(struct {
13140 switch n := read8(r); n {
13146 chk(fmt.Errorf("invalid bool: %d", n))
13151 p := &(*(*(struct {
13160 p := &(*(*(struct {
13166 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13170 p := &(*(*(struct {
13176 *p = math.Float32frombits(read32(r))
13180 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13181 if len(((*(*(struct {
13183 }))(obj)).Salt)) > math.MaxUint16 {
13187 x := uint16(len(((*(*(struct {
13190 write16(w, uint16(x))
13193 _, err := w.Write(((*(*(struct {
13195 }))(obj)).Salt)[:])
13198 if len(((*(*(struct {
13200 }))(obj)).B)) > math.MaxUint16 {
13204 x := uint16(len(((*(*(struct {
13207 write16(w, uint16(x))
13210 _, err := w.Write(((*(*(struct {
13217 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13218 var local223 uint16
13225 }))(obj)).Salt) = make([]byte, local223)
13227 _, err := io.ReadFull(r, ((*(*(struct {
13229 }))(obj)).Salt)[:])
13232 var local224 uint16
13239 }))(obj)).B) = make([]byte, local224)
13241 _, err := io.ReadFull(r, ((*(*(struct {
13248 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13249 if len(([]byte((*(*(struct {
13251 }))(obj)).Prepend))) > math.MaxUint16 {
13255 x := uint16(len(([]byte((*(*(struct {
13257 }))(obj)).Prepend))))
13258 write16(w, uint16(x))
13261 _, err := w.Write(([]byte((*(*(struct {
13263 }))(obj)).Prepend))[:])
13268 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13269 var local225 []uint8
13270 var local226 uint16
13275 (local225) = make([]uint8, local226)
13277 _, err := io.ReadFull(r, (local225)[:])
13282 }))(obj)).Prepend) = string(local225)
13285 func (obj *AOCmdProps) serialize(w io.Writer) {
13286 if err := pcall(func() {
13289 }))(obj)).Props).serialize(w)
13294 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13298 func (obj *AOCmdProps) deserialize(r io.Reader) {
13299 if err := pcall(func() {
13302 }))(obj)).Props).deserialize(r)
13307 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13311 func (obj *AOCmdPos) serialize(w io.Writer) {
13312 if err := pcall(func() {
13315 }))(obj)).Pos).serialize(w)
13320 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13324 func (obj *AOCmdPos) deserialize(r io.Reader) {
13325 if err := pcall(func() {
13328 }))(obj)).Pos).deserialize(r)
13333 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13337 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13338 if err := pcall(func() {
13340 Mod Texture // suffix
13341 }))(obj)).Mod).serialize(w)
13346 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13350 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13351 if err := pcall(func() {
13353 Mod Texture // suffix
13354 }))(obj)).Mod).deserialize(r)
13359 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13363 func (obj *AOCmdSprite) serialize(w io.Writer) {
13364 if err := pcall(func() {
13367 }))(obj)).Sprite).serialize(w)
13372 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13376 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13377 if err := pcall(func() {
13380 }))(obj)).Sprite).deserialize(r)
13385 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13389 func (obj *AOCmdHP) serialize(w io.Writer) {
13394 write16(w, uint16(x))
13398 func (obj *AOCmdHP) deserialize(r io.Reader) {
13400 p := &(*(*(struct {
13407 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13408 if len(((*(*(struct {
13410 }))(obj)).Armor)) > math.MaxUint16 {
13414 x := uint16(len(((*(*(struct {
13417 write16(w, uint16(x))
13419 for local227 := range (*(*(struct {
13422 if err := pcall(func() {
13425 }))(obj)).Armor)[local227]).serialize(w)
13430 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13435 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13436 var local228 uint16
13443 }))(obj)).Armor) = make([]Group, local228)
13444 for local229 := range (*(*(struct {
13447 if err := pcall(func() {
13450 }))(obj)).Armor)[local229]).deserialize(r)
13455 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13460 func (obj *AOCmdAnim) serialize(w io.Writer) {
13461 if err := pcall(func() {
13464 }))(obj)).Anim).serialize(w)
13469 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13473 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13474 if err := pcall(func() {
13477 }))(obj)).Anim).deserialize(r)
13482 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13486 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13487 if len(([]byte((*(*(struct {
13490 }))(obj)).Bone))) > math.MaxUint16 {
13494 x := uint16(len(([]byte((*(*(struct {
13498 write16(w, uint16(x))
13501 _, err := w.Write(([]byte((*(*(struct {
13504 }))(obj)).Bone))[:])
13507 if err := pcall(func() {
13511 }))(obj)).Pos).serialize(w)
13516 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13520 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13521 var local230 []uint8
13522 var local231 uint16
13527 (local230) = make([]uint8, local231)
13529 _, err := io.ReadFull(r, (local230)[:])
13535 }))(obj)).Bone) = string(local230)
13536 if err := pcall(func() {
13540 }))(obj)).Pos).deserialize(r)
13545 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13549 func (obj *AOCmdAttach) serialize(w io.Writer) {
13550 if err := pcall(func() {
13553 }))(obj)).Attach).serialize(w)
13558 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13562 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13563 if err := pcall(func() {
13566 }))(obj)).Attach).deserialize(r)
13571 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13575 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13576 if err := pcall(func() {
13578 Phys AOPhysOverride
13579 }))(obj)).Phys).serialize(w)
13584 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13588 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13589 if err := pcall(func() {
13591 Phys AOPhysOverride
13592 }))(obj)).Phys).deserialize(r)
13597 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13601 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13602 if err := pcall(func() {
13605 }))(obj)).ID).serialize(w)
13610 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13613 local232 := genericCAO
13614 if err := pcall(func() {
13615 (local232).serialize(w)
13620 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13625 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13626 if err := pcall(func() {
13629 }))(obj)).ID).deserialize(r)
13634 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13637 var local233 aoType
13638 local234 := genericCAO
13639 if err := pcall(func() {
13640 (local233).deserialize(r)
13645 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13647 if local233 != local234 {
13648 chk(fmt.Errorf("const %v: %v", "genericCAO", local233))
13653 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13658 write32(w, math.Float32bits(x))
13662 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13664 p := &(*(*(struct {
13667 *p = math.Float32frombits(read32(r))
13671 func (obj *NodeMeta) serialize(w io.Writer) {
13672 if len(((*(*(struct {
13674 Fields []NodeMetaField
13677 }))(obj)).Fields)) > math.MaxUint32 {
13681 x := uint32(len(((*(*(struct {
13683 Fields []NodeMetaField
13686 }))(obj)).Fields)))
13687 write32(w, uint32(x))
13689 for local235 := range (*(*(struct {
13691 Fields []NodeMetaField
13695 if err := pcall(func() {
13698 Fields []NodeMetaField
13701 }))(obj)).Fields)[local235]).serialize(w)
13706 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13711 Fields []NodeMetaField
13714 }))(obj)).Inv).Serialize(w))
13717 func (obj *NodeMeta) deserialize(r io.Reader) {
13718 var local236 uint32
13725 Fields []NodeMetaField
13728 }))(obj)).Fields) = make([]NodeMetaField, local236)
13729 for local237 := range (*(*(struct {
13731 Fields []NodeMetaField
13735 if err := pcall(func() {
13738 Fields []NodeMetaField
13741 }))(obj)).Fields)[local237]).deserialize(r)
13746 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13751 Fields []NodeMetaField
13754 }))(obj)).Inv).Deserialize(r))
13757 func (obj *MinimapMode) serialize(w io.Writer) {
13758 if err := pcall(func() {
13765 }))(obj)).Type).serialize(w)
13770 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13772 if len(([]byte((*(*(struct {
13778 }))(obj)).Label))) > math.MaxUint16 {
13782 x := uint16(len(([]byte((*(*(struct {
13788 }))(obj)).Label))))
13789 write16(w, uint16(x))
13792 _, err := w.Write(([]byte((*(*(struct {
13798 }))(obj)).Label))[:])
13809 write16(w, uint16(x))
13811 if err := pcall(func() {
13818 }))(obj)).Texture).serialize(w)
13823 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13833 write16(w, uint16(x))
13837 func (obj *MinimapMode) deserialize(r io.Reader) {
13838 if err := pcall(func() {
13845 }))(obj)).Type).deserialize(r)
13850 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13852 var local238 []uint8
13853 var local239 uint16
13858 (local238) = make([]uint8, local239)
13860 _, err := io.ReadFull(r, (local238)[:])
13869 }))(obj)).Label) = string(local238)
13871 p := &(*(*(struct {
13880 if err := pcall(func() {
13887 }))(obj)).Texture).deserialize(r)
13892 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13895 p := &(*(*(struct {
13906 func (obj *NodeDef) serialize(w io.Writer) {
13907 if err := pcall(func() {
13920 //mt:const uint8(6)
13922 OverlayTiles [6]TileDef
13923 //mt:const uint8(6)
13924 SpecialTiles [6]TileDef
13931 ConnectTo []Content
13932 InsideTint color.NRGBA
13933 Level uint8 // Must be < 128.
13935 Translucent bool // Sunlight is scattered and becomes normal light.
13936 Transparent bool // Sunlight isn't scattered.
13949 LiquidType LiquidType
13952 Viscosity uint8 // 0-7
13958 DrawBox, ColBox, SelBox NodeBox
13960 FootstepSnd, DiggingSnd, DugSnd SoundDef
13970 }))(obj)).Param0).serialize(w)
13975 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
13979 w := new(bytes.Buffer)
13981 local240 := uint8(13)
13984 write8(w, uint8(x))
13987 if len(([]byte((*(*(struct {
13999 //mt:const uint8(6)
14001 OverlayTiles [6]TileDef
14002 //mt:const uint8(6)
14003 SpecialTiles [6]TileDef
14010 ConnectTo []Content
14011 InsideTint color.NRGBA
14012 Level uint8 // Must be < 128.
14014 Translucent bool // Sunlight is scattered and becomes normal light.
14015 Transparent bool // Sunlight isn't scattered.
14028 LiquidType LiquidType
14031 Viscosity uint8 // 0-7
14037 DrawBox, ColBox, SelBox NodeBox
14039 FootstepSnd, DiggingSnd, DugSnd SoundDef
14049 }))(obj)).Name))) > math.MaxUint16 {
14053 x := uint16(len(([]byte((*(*(struct {
14065 //mt:const uint8(6)
14067 OverlayTiles [6]TileDef
14068 //mt:const uint8(6)
14069 SpecialTiles [6]TileDef
14076 ConnectTo []Content
14077 InsideTint color.NRGBA
14078 Level uint8 // Must be < 128.
14080 Translucent bool // Sunlight is scattered and becomes normal light.
14081 Transparent bool // Sunlight isn't scattered.
14094 LiquidType LiquidType
14097 Viscosity uint8 // 0-7
14103 DrawBox, ColBox, SelBox NodeBox
14105 FootstepSnd, DiggingSnd, DugSnd SoundDef
14116 write16(w, uint16(x))
14119 _, err := w.Write(([]byte((*(*(struct {
14131 //mt:const uint8(6)
14133 OverlayTiles [6]TileDef
14134 //mt:const uint8(6)
14135 SpecialTiles [6]TileDef
14142 ConnectTo []Content
14143 InsideTint color.NRGBA
14144 Level uint8 // Must be < 128.
14146 Translucent bool // Sunlight is scattered and becomes normal light.
14147 Transparent bool // Sunlight isn't scattered.
14160 LiquidType LiquidType
14163 Viscosity uint8 // 0-7
14169 DrawBox, ColBox, SelBox NodeBox
14171 FootstepSnd, DiggingSnd, DugSnd SoundDef
14181 }))(obj)).Name))[:])
14184 if len(((*(*(struct {
14196 //mt:const uint8(6)
14198 OverlayTiles [6]TileDef
14199 //mt:const uint8(6)
14200 SpecialTiles [6]TileDef
14207 ConnectTo []Content
14208 InsideTint color.NRGBA
14209 Level uint8 // Must be < 128.
14211 Translucent bool // Sunlight is scattered and becomes normal light.
14212 Transparent bool // Sunlight isn't scattered.
14225 LiquidType LiquidType
14228 Viscosity uint8 // 0-7
14234 DrawBox, ColBox, SelBox NodeBox
14236 FootstepSnd, DiggingSnd, DugSnd SoundDef
14246 }))(obj)).Groups)) > math.MaxUint16 {
14250 x := uint16(len(((*(*(struct {
14262 //mt:const uint8(6)
14264 OverlayTiles [6]TileDef
14265 //mt:const uint8(6)
14266 SpecialTiles [6]TileDef
14273 ConnectTo []Content
14274 InsideTint color.NRGBA
14275 Level uint8 // Must be < 128.
14277 Translucent bool // Sunlight is scattered and becomes normal light.
14278 Transparent bool // Sunlight isn't scattered.
14291 LiquidType LiquidType
14294 Viscosity uint8 // 0-7
14300 DrawBox, ColBox, SelBox NodeBox
14302 FootstepSnd, DiggingSnd, DugSnd SoundDef
14312 }))(obj)).Groups)))
14313 write16(w, uint16(x))
14315 for local241 := range (*(*(struct {
14327 //mt:const uint8(6)
14329 OverlayTiles [6]TileDef
14330 //mt:const uint8(6)
14331 SpecialTiles [6]TileDef
14338 ConnectTo []Content
14339 InsideTint color.NRGBA
14340 Level uint8 // Must be < 128.
14342 Translucent bool // Sunlight is scattered and becomes normal light.
14343 Transparent bool // Sunlight isn't scattered.
14356 LiquidType LiquidType
14359 Viscosity uint8 // 0-7
14365 DrawBox, ColBox, SelBox NodeBox
14367 FootstepSnd, DiggingSnd, DugSnd SoundDef
14378 if err := pcall(func() {
14391 //mt:const uint8(6)
14393 OverlayTiles [6]TileDef
14394 //mt:const uint8(6)
14395 SpecialTiles [6]TileDef
14402 ConnectTo []Content
14403 InsideTint color.NRGBA
14404 Level uint8 // Must be < 128.
14406 Translucent bool // Sunlight is scattered and becomes normal light.
14407 Transparent bool // Sunlight isn't scattered.
14420 LiquidType LiquidType
14423 Viscosity uint8 // 0-7
14429 DrawBox, ColBox, SelBox NodeBox
14431 FootstepSnd, DiggingSnd, DugSnd SoundDef
14441 }))(obj)).Groups)[local241]).serialize(w)
14446 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
14449 if err := pcall(func() {
14462 //mt:const uint8(6)
14464 OverlayTiles [6]TileDef
14465 //mt:const uint8(6)
14466 SpecialTiles [6]TileDef
14473 ConnectTo []Content
14474 InsideTint color.NRGBA
14475 Level uint8 // Must be < 128.
14477 Translucent bool // Sunlight is scattered and becomes normal light.
14478 Transparent bool // Sunlight isn't scattered.
14491 LiquidType LiquidType
14494 Viscosity uint8 // 0-7
14500 DrawBox, ColBox, SelBox NodeBox
14502 FootstepSnd, DiggingSnd, DugSnd SoundDef
14512 }))(obj)).P1Type).serialize(w)
14517 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
14519 if err := pcall(func() {
14532 //mt:const uint8(6)
14534 OverlayTiles [6]TileDef
14535 //mt:const uint8(6)
14536 SpecialTiles [6]TileDef
14543 ConnectTo []Content
14544 InsideTint color.NRGBA
14545 Level uint8 // Must be < 128.
14547 Translucent bool // Sunlight is scattered and becomes normal light.
14548 Transparent bool // Sunlight isn't scattered.
14561 LiquidType LiquidType
14564 Viscosity uint8 // 0-7
14570 DrawBox, ColBox, SelBox NodeBox
14572 FootstepSnd, DiggingSnd, DugSnd SoundDef
14582 }))(obj)).P2Type).serialize(w)
14587 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
14589 if err := pcall(func() {
14602 //mt:const uint8(6)
14604 OverlayTiles [6]TileDef
14605 //mt:const uint8(6)
14606 SpecialTiles [6]TileDef
14613 ConnectTo []Content
14614 InsideTint color.NRGBA
14615 Level uint8 // Must be < 128.
14617 Translucent bool // Sunlight is scattered and becomes normal light.
14618 Transparent bool // Sunlight isn't scattered.
14631 LiquidType LiquidType
14634 Viscosity uint8 // 0-7
14640 DrawBox, ColBox, SelBox NodeBox
14642 FootstepSnd, DiggingSnd, DugSnd SoundDef
14652 }))(obj)).DrawType).serialize(w)
14657 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
14659 if len(([]byte((*(*(struct {
14671 //mt:const uint8(6)
14673 OverlayTiles [6]TileDef
14674 //mt:const uint8(6)
14675 SpecialTiles [6]TileDef
14682 ConnectTo []Content
14683 InsideTint color.NRGBA
14684 Level uint8 // Must be < 128.
14686 Translucent bool // Sunlight is scattered and becomes normal light.
14687 Transparent bool // Sunlight isn't scattered.
14700 LiquidType LiquidType
14703 Viscosity uint8 // 0-7
14709 DrawBox, ColBox, SelBox NodeBox
14711 FootstepSnd, DiggingSnd, DugSnd SoundDef
14721 }))(obj)).Mesh))) > math.MaxUint16 {
14725 x := uint16(len(([]byte((*(*(struct {
14737 //mt:const uint8(6)
14739 OverlayTiles [6]TileDef
14740 //mt:const uint8(6)
14741 SpecialTiles [6]TileDef
14748 ConnectTo []Content
14749 InsideTint color.NRGBA
14750 Level uint8 // Must be < 128.
14752 Translucent bool // Sunlight is scattered and becomes normal light.
14753 Transparent bool // Sunlight isn't scattered.
14766 LiquidType LiquidType
14769 Viscosity uint8 // 0-7
14775 DrawBox, ColBox, SelBox NodeBox
14777 FootstepSnd, DiggingSnd, DugSnd SoundDef
14788 write16(w, uint16(x))
14791 _, err := w.Write(([]byte((*(*(struct {
14803 //mt:const uint8(6)
14805 OverlayTiles [6]TileDef
14806 //mt:const uint8(6)
14807 SpecialTiles [6]TileDef
14814 ConnectTo []Content
14815 InsideTint color.NRGBA
14816 Level uint8 // Must be < 128.
14818 Translucent bool // Sunlight is scattered and becomes normal light.
14819 Transparent bool // Sunlight isn't scattered.
14832 LiquidType LiquidType
14835 Viscosity uint8 // 0-7
14841 DrawBox, ColBox, SelBox NodeBox
14843 FootstepSnd, DiggingSnd, DugSnd SoundDef
14853 }))(obj)).Mesh))[:])
14869 //mt:const uint8(6)
14871 OverlayTiles [6]TileDef
14872 //mt:const uint8(6)
14873 SpecialTiles [6]TileDef
14880 ConnectTo []Content
14881 InsideTint color.NRGBA
14882 Level uint8 // Must be < 128.
14884 Translucent bool // Sunlight is scattered and becomes normal light.
14885 Transparent bool // Sunlight isn't scattered.
14898 LiquidType LiquidType
14901 Viscosity uint8 // 0-7
14907 DrawBox, ColBox, SelBox NodeBox
14909 FootstepSnd, DiggingSnd, DugSnd SoundDef
14920 write32(w, math.Float32bits(x))
14923 local242 := uint8(6)
14926 write8(w, uint8(x))
14929 for local243 := range (*(*(struct {
14941 //mt:const uint8(6)
14943 OverlayTiles [6]TileDef
14944 //mt:const uint8(6)
14945 SpecialTiles [6]TileDef
14952 ConnectTo []Content
14953 InsideTint color.NRGBA
14954 Level uint8 // Must be < 128.
14956 Translucent bool // Sunlight is scattered and becomes normal light.
14957 Transparent bool // Sunlight isn't scattered.
14970 LiquidType LiquidType
14973 Viscosity uint8 // 0-7
14979 DrawBox, ColBox, SelBox NodeBox
14981 FootstepSnd, DiggingSnd, DugSnd SoundDef
14992 if err := pcall(func() {
15005 //mt:const uint8(6)
15007 OverlayTiles [6]TileDef
15008 //mt:const uint8(6)
15009 SpecialTiles [6]TileDef
15016 ConnectTo []Content
15017 InsideTint color.NRGBA
15018 Level uint8 // Must be < 128.
15020 Translucent bool // Sunlight is scattered and becomes normal light.
15021 Transparent bool // Sunlight isn't scattered.
15034 LiquidType LiquidType
15037 Viscosity uint8 // 0-7
15043 DrawBox, ColBox, SelBox NodeBox
15045 FootstepSnd, DiggingSnd, DugSnd SoundDef
15055 }))(obj)).Tiles)[local243]).serialize(w)
15060 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15063 for local244 := range (*(*(struct {
15075 //mt:const uint8(6)
15077 OverlayTiles [6]TileDef
15078 //mt:const uint8(6)
15079 SpecialTiles [6]TileDef
15086 ConnectTo []Content
15087 InsideTint color.NRGBA
15088 Level uint8 // Must be < 128.
15090 Translucent bool // Sunlight is scattered and becomes normal light.
15091 Transparent bool // Sunlight isn't scattered.
15104 LiquidType LiquidType
15107 Viscosity uint8 // 0-7
15113 DrawBox, ColBox, SelBox NodeBox
15115 FootstepSnd, DiggingSnd, DugSnd SoundDef
15125 }))(obj)).OverlayTiles {
15126 if err := pcall(func() {
15139 //mt:const uint8(6)
15141 OverlayTiles [6]TileDef
15142 //mt:const uint8(6)
15143 SpecialTiles [6]TileDef
15150 ConnectTo []Content
15151 InsideTint color.NRGBA
15152 Level uint8 // Must be < 128.
15154 Translucent bool // Sunlight is scattered and becomes normal light.
15155 Transparent bool // Sunlight isn't scattered.
15168 LiquidType LiquidType
15171 Viscosity uint8 // 0-7
15177 DrawBox, ColBox, SelBox NodeBox
15179 FootstepSnd, DiggingSnd, DugSnd SoundDef
15189 }))(obj)).OverlayTiles)[local244]).serialize(w)
15194 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15198 local245 := uint8(6)
15201 write8(w, uint8(x))
15204 for local246 := range (*(*(struct {
15216 //mt:const uint8(6)
15218 OverlayTiles [6]TileDef
15219 //mt:const uint8(6)
15220 SpecialTiles [6]TileDef
15227 ConnectTo []Content
15228 InsideTint color.NRGBA
15229 Level uint8 // Must be < 128.
15231 Translucent bool // Sunlight is scattered and becomes normal light.
15232 Transparent bool // Sunlight isn't scattered.
15245 LiquidType LiquidType
15248 Viscosity uint8 // 0-7
15254 DrawBox, ColBox, SelBox NodeBox
15256 FootstepSnd, DiggingSnd, DugSnd SoundDef
15266 }))(obj)).SpecialTiles {
15267 if err := pcall(func() {
15280 //mt:const uint8(6)
15282 OverlayTiles [6]TileDef
15283 //mt:const uint8(6)
15284 SpecialTiles [6]TileDef
15291 ConnectTo []Content
15292 InsideTint color.NRGBA
15293 Level uint8 // Must be < 128.
15295 Translucent bool // Sunlight is scattered and becomes normal light.
15296 Transparent bool // Sunlight isn't scattered.
15309 LiquidType LiquidType
15312 Viscosity uint8 // 0-7
15318 DrawBox, ColBox, SelBox NodeBox
15320 FootstepSnd, DiggingSnd, DugSnd SoundDef
15330 }))(obj)).SpecialTiles)[local246]).serialize(w)
15335 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15351 //mt:const uint8(6)
15353 OverlayTiles [6]TileDef
15354 //mt:const uint8(6)
15355 SpecialTiles [6]TileDef
15362 ConnectTo []Content
15363 InsideTint color.NRGBA
15364 Level uint8 // Must be < 128.
15366 Translucent bool // Sunlight is scattered and becomes normal light.
15367 Transparent bool // Sunlight isn't scattered.
15380 LiquidType LiquidType
15383 Viscosity uint8 // 0-7
15389 DrawBox, ColBox, SelBox NodeBox
15391 FootstepSnd, DiggingSnd, DugSnd SoundDef
15402 w.Write([]byte{x.A, x.R, x.G, x.B})
15405 if err := pcall(func() {
15418 //mt:const uint8(6)
15420 OverlayTiles [6]TileDef
15421 //mt:const uint8(6)
15422 SpecialTiles [6]TileDef
15429 ConnectTo []Content
15430 InsideTint color.NRGBA
15431 Level uint8 // Must be < 128.
15433 Translucent bool // Sunlight is scattered and becomes normal light.
15434 Transparent bool // Sunlight isn't scattered.
15447 LiquidType LiquidType
15450 Viscosity uint8 // 0-7
15456 DrawBox, ColBox, SelBox NodeBox
15458 FootstepSnd, DiggingSnd, DugSnd SoundDef
15468 }))(obj)).Palette).serialize(w)
15473 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
15475 if err := pcall(func() {
15488 //mt:const uint8(6)
15490 OverlayTiles [6]TileDef
15491 //mt:const uint8(6)
15492 SpecialTiles [6]TileDef
15499 ConnectTo []Content
15500 InsideTint color.NRGBA
15501 Level uint8 // Must be < 128.
15503 Translucent bool // Sunlight is scattered and becomes normal light.
15504 Transparent bool // Sunlight isn't scattered.
15517 LiquidType LiquidType
15520 Viscosity uint8 // 0-7
15526 DrawBox, ColBox, SelBox NodeBox
15528 FootstepSnd, DiggingSnd, DugSnd SoundDef
15538 }))(obj)).Waving).serialize(w)
15543 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
15558 //mt:const uint8(6)
15560 OverlayTiles [6]TileDef
15561 //mt:const uint8(6)
15562 SpecialTiles [6]TileDef
15569 ConnectTo []Content
15570 InsideTint color.NRGBA
15571 Level uint8 // Must be < 128.
15573 Translucent bool // Sunlight is scattered and becomes normal light.
15574 Transparent bool // Sunlight isn't scattered.
15587 LiquidType LiquidType
15590 Viscosity uint8 // 0-7
15596 DrawBox, ColBox, SelBox NodeBox
15598 FootstepSnd, DiggingSnd, DugSnd SoundDef
15608 }))(obj)).ConnectSides
15609 write8(w, uint8(x))
15611 if len(((*(*(struct {
15623 //mt:const uint8(6)
15625 OverlayTiles [6]TileDef
15626 //mt:const uint8(6)
15627 SpecialTiles [6]TileDef
15634 ConnectTo []Content
15635 InsideTint color.NRGBA
15636 Level uint8 // Must be < 128.
15638 Translucent bool // Sunlight is scattered and becomes normal light.
15639 Transparent bool // Sunlight isn't scattered.
15652 LiquidType LiquidType
15655 Viscosity uint8 // 0-7
15661 DrawBox, ColBox, SelBox NodeBox
15663 FootstepSnd, DiggingSnd, DugSnd SoundDef
15673 }))(obj)).ConnectTo)) > math.MaxUint16 {
15677 x := uint16(len(((*(*(struct {
15689 //mt:const uint8(6)
15691 OverlayTiles [6]TileDef
15692 //mt:const uint8(6)
15693 SpecialTiles [6]TileDef
15700 ConnectTo []Content
15701 InsideTint color.NRGBA
15702 Level uint8 // Must be < 128.
15704 Translucent bool // Sunlight is scattered and becomes normal light.
15705 Transparent bool // Sunlight isn't scattered.
15718 LiquidType LiquidType
15721 Viscosity uint8 // 0-7
15727 DrawBox, ColBox, SelBox NodeBox
15729 FootstepSnd, DiggingSnd, DugSnd SoundDef
15739 }))(obj)).ConnectTo)))
15740 write16(w, uint16(x))
15742 for local247 := range (*(*(struct {
15754 //mt:const uint8(6)
15756 OverlayTiles [6]TileDef
15757 //mt:const uint8(6)
15758 SpecialTiles [6]TileDef
15765 ConnectTo []Content
15766 InsideTint color.NRGBA
15767 Level uint8 // Must be < 128.
15769 Translucent bool // Sunlight is scattered and becomes normal light.
15770 Transparent bool // Sunlight isn't scattered.
15783 LiquidType LiquidType
15786 Viscosity uint8 // 0-7
15792 DrawBox, ColBox, SelBox NodeBox
15794 FootstepSnd, DiggingSnd, DugSnd SoundDef
15804 }))(obj)).ConnectTo {
15805 if err := pcall(func() {
15818 //mt:const uint8(6)
15820 OverlayTiles [6]TileDef
15821 //mt:const uint8(6)
15822 SpecialTiles [6]TileDef
15829 ConnectTo []Content
15830 InsideTint color.NRGBA
15831 Level uint8 // Must be < 128.
15833 Translucent bool // Sunlight is scattered and becomes normal light.
15834 Transparent bool // Sunlight isn't scattered.
15847 LiquidType LiquidType
15850 Viscosity uint8 // 0-7
15856 DrawBox, ColBox, SelBox NodeBox
15858 FootstepSnd, DiggingSnd, DugSnd SoundDef
15868 }))(obj)).ConnectTo)[local247]).serialize(w)
15873 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
15889 //mt:const uint8(6)
15891 OverlayTiles [6]TileDef
15892 //mt:const uint8(6)
15893 SpecialTiles [6]TileDef
15900 ConnectTo []Content
15901 InsideTint color.NRGBA
15902 Level uint8 // Must be < 128.
15904 Translucent bool // Sunlight is scattered and becomes normal light.
15905 Transparent bool // Sunlight isn't scattered.
15918 LiquidType LiquidType
15921 Viscosity uint8 // 0-7
15927 DrawBox, ColBox, SelBox NodeBox
15929 FootstepSnd, DiggingSnd, DugSnd SoundDef
15939 }))(obj)).InsideTint
15940 w.Write([]byte{x.A, x.R, x.G, x.B})
15956 //mt:const uint8(6)
15958 OverlayTiles [6]TileDef
15959 //mt:const uint8(6)
15960 SpecialTiles [6]TileDef
15967 ConnectTo []Content
15968 InsideTint color.NRGBA
15969 Level uint8 // Must be < 128.
15971 Translucent bool // Sunlight is scattered and becomes normal light.
15972 Transparent bool // Sunlight isn't scattered.
15985 LiquidType LiquidType
15988 Viscosity uint8 // 0-7
15994 DrawBox, ColBox, SelBox NodeBox
15996 FootstepSnd, DiggingSnd, DugSnd SoundDef
16007 write8(w, uint8(x))
16022 //mt:const uint8(6)
16024 OverlayTiles [6]TileDef
16025 //mt:const uint8(6)
16026 SpecialTiles [6]TileDef
16033 ConnectTo []Content
16034 InsideTint color.NRGBA
16035 Level uint8 // Must be < 128.
16037 Translucent bool // Sunlight is scattered and becomes normal light.
16038 Transparent bool // Sunlight isn't scattered.
16051 LiquidType LiquidType
16054 Viscosity uint8 // 0-7
16060 DrawBox, ColBox, SelBox NodeBox
16062 FootstepSnd, DiggingSnd, DugSnd SoundDef
16072 }))(obj)).Translucent
16093 //mt:const uint8(6)
16095 OverlayTiles [6]TileDef
16096 //mt:const uint8(6)
16097 SpecialTiles [6]TileDef
16104 ConnectTo []Content
16105 InsideTint color.NRGBA
16106 Level uint8 // Must be < 128.
16108 Translucent bool // Sunlight is scattered and becomes normal light.
16109 Transparent bool // Sunlight isn't scattered.
16122 LiquidType LiquidType
16125 Viscosity uint8 // 0-7
16131 DrawBox, ColBox, SelBox NodeBox
16133 FootstepSnd, DiggingSnd, DugSnd SoundDef
16143 }))(obj)).Transparent
16164 //mt:const uint8(6)
16166 OverlayTiles [6]TileDef
16167 //mt:const uint8(6)
16168 SpecialTiles [6]TileDef
16175 ConnectTo []Content
16176 InsideTint color.NRGBA
16177 Level uint8 // Must be < 128.
16179 Translucent bool // Sunlight is scattered and becomes normal light.
16180 Transparent bool // Sunlight isn't scattered.
16193 LiquidType LiquidType
16196 Viscosity uint8 // 0-7
16202 DrawBox, ColBox, SelBox NodeBox
16204 FootstepSnd, DiggingSnd, DugSnd SoundDef
16215 write8(w, uint8(x))
16230 //mt:const uint8(6)
16232 OverlayTiles [6]TileDef
16233 //mt:const uint8(6)
16234 SpecialTiles [6]TileDef
16241 ConnectTo []Content
16242 InsideTint color.NRGBA
16243 Level uint8 // Must be < 128.
16245 Translucent bool // Sunlight is scattered and becomes normal light.
16246 Transparent bool // Sunlight isn't scattered.
16259 LiquidType LiquidType
16262 Viscosity uint8 // 0-7
16268 DrawBox, ColBox, SelBox NodeBox
16270 FootstepSnd, DiggingSnd, DugSnd SoundDef
16280 }))(obj)).GndContent
16301 //mt:const uint8(6)
16303 OverlayTiles [6]TileDef
16304 //mt:const uint8(6)
16305 SpecialTiles [6]TileDef
16312 ConnectTo []Content
16313 InsideTint color.NRGBA
16314 Level uint8 // Must be < 128.
16316 Translucent bool // Sunlight is scattered and becomes normal light.
16317 Transparent bool // Sunlight isn't scattered.
16330 LiquidType LiquidType
16333 Viscosity uint8 // 0-7
16339 DrawBox, ColBox, SelBox NodeBox
16341 FootstepSnd, DiggingSnd, DugSnd SoundDef
16372 //mt:const uint8(6)
16374 OverlayTiles [6]TileDef
16375 //mt:const uint8(6)
16376 SpecialTiles [6]TileDef
16383 ConnectTo []Content
16384 InsideTint color.NRGBA
16385 Level uint8 // Must be < 128.
16387 Translucent bool // Sunlight is scattered and becomes normal light.
16388 Transparent bool // Sunlight isn't scattered.
16401 LiquidType LiquidType
16404 Viscosity uint8 // 0-7
16410 DrawBox, ColBox, SelBox NodeBox
16412 FootstepSnd, DiggingSnd, DugSnd SoundDef
16422 }))(obj)).Pointable
16443 //mt:const uint8(6)
16445 OverlayTiles [6]TileDef
16446 //mt:const uint8(6)
16447 SpecialTiles [6]TileDef
16454 ConnectTo []Content
16455 InsideTint color.NRGBA
16456 Level uint8 // Must be < 128.
16458 Translucent bool // Sunlight is scattered and becomes normal light.
16459 Transparent bool // Sunlight isn't scattered.
16472 LiquidType LiquidType
16475 Viscosity uint8 // 0-7
16481 DrawBox, ColBox, SelBox NodeBox
16483 FootstepSnd, DiggingSnd, DugSnd SoundDef
16514 //mt:const uint8(6)
16516 OverlayTiles [6]TileDef
16517 //mt:const uint8(6)
16518 SpecialTiles [6]TileDef
16525 ConnectTo []Content
16526 InsideTint color.NRGBA
16527 Level uint8 // Must be < 128.
16529 Translucent bool // Sunlight is scattered and becomes normal light.
16530 Transparent bool // Sunlight isn't scattered.
16543 LiquidType LiquidType
16546 Viscosity uint8 // 0-7
16552 DrawBox, ColBox, SelBox NodeBox
16554 FootstepSnd, DiggingSnd, DugSnd SoundDef
16564 }))(obj)).Climbable
16585 //mt:const uint8(6)
16587 OverlayTiles [6]TileDef
16588 //mt:const uint8(6)
16589 SpecialTiles [6]TileDef
16596 ConnectTo []Content
16597 InsideTint color.NRGBA
16598 Level uint8 // Must be < 128.
16600 Translucent bool // Sunlight is scattered and becomes normal light.
16601 Transparent bool // Sunlight isn't scattered.
16614 LiquidType LiquidType
16617 Viscosity uint8 // 0-7
16623 DrawBox, ColBox, SelBox NodeBox
16625 FootstepSnd, DiggingSnd, DugSnd SoundDef
16635 }))(obj)).Replaceable
16656 //mt:const uint8(6)
16658 OverlayTiles [6]TileDef
16659 //mt:const uint8(6)
16660 SpecialTiles [6]TileDef
16667 ConnectTo []Content
16668 InsideTint color.NRGBA
16669 Level uint8 // Must be < 128.
16671 Translucent bool // Sunlight is scattered and becomes normal light.
16672 Transparent bool // Sunlight isn't scattered.
16685 LiquidType LiquidType
16688 Viscosity uint8 // 0-7
16694 DrawBox, ColBox, SelBox NodeBox
16696 FootstepSnd, DiggingSnd, DugSnd SoundDef
16706 }))(obj)).OnRightClick
16727 //mt:const uint8(6)
16729 OverlayTiles [6]TileDef
16730 //mt:const uint8(6)
16731 SpecialTiles [6]TileDef
16738 ConnectTo []Content
16739 InsideTint color.NRGBA
16740 Level uint8 // Must be < 128.
16742 Translucent bool // Sunlight is scattered and becomes normal light.
16743 Transparent bool // Sunlight isn't scattered.
16756 LiquidType LiquidType
16759 Viscosity uint8 // 0-7
16765 DrawBox, ColBox, SelBox NodeBox
16767 FootstepSnd, DiggingSnd, DugSnd SoundDef
16777 }))(obj)).DmgPerSec
16778 write32(w, uint32(x))
16780 if err := pcall(func() {
16793 //mt:const uint8(6)
16795 OverlayTiles [6]TileDef
16796 //mt:const uint8(6)
16797 SpecialTiles [6]TileDef
16804 ConnectTo []Content
16805 InsideTint color.NRGBA
16806 Level uint8 // Must be < 128.
16808 Translucent bool // Sunlight is scattered and becomes normal light.
16809 Transparent bool // Sunlight isn't scattered.
16822 LiquidType LiquidType
16825 Viscosity uint8 // 0-7
16831 DrawBox, ColBox, SelBox NodeBox
16833 FootstepSnd, DiggingSnd, DugSnd SoundDef
16843 }))(obj)).LiquidType).serialize(w)
16848 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
16850 if len(([]byte((*(*(struct {
16862 //mt:const uint8(6)
16864 OverlayTiles [6]TileDef
16865 //mt:const uint8(6)
16866 SpecialTiles [6]TileDef
16873 ConnectTo []Content
16874 InsideTint color.NRGBA
16875 Level uint8 // Must be < 128.
16877 Translucent bool // Sunlight is scattered and becomes normal light.
16878 Transparent bool // Sunlight isn't scattered.
16891 LiquidType LiquidType
16894 Viscosity uint8 // 0-7
16900 DrawBox, ColBox, SelBox NodeBox
16902 FootstepSnd, DiggingSnd, DugSnd SoundDef
16912 }))(obj)).FlowingAlt))) > math.MaxUint16 {
16916 x := uint16(len(([]byte((*(*(struct {
16928 //mt:const uint8(6)
16930 OverlayTiles [6]TileDef
16931 //mt:const uint8(6)
16932 SpecialTiles [6]TileDef
16939 ConnectTo []Content
16940 InsideTint color.NRGBA
16941 Level uint8 // Must be < 128.
16943 Translucent bool // Sunlight is scattered and becomes normal light.
16944 Transparent bool // Sunlight isn't scattered.
16957 LiquidType LiquidType
16960 Viscosity uint8 // 0-7
16966 DrawBox, ColBox, SelBox NodeBox
16968 FootstepSnd, DiggingSnd, DugSnd SoundDef
16978 }))(obj)).FlowingAlt))))
16979 write16(w, uint16(x))
16982 _, err := w.Write(([]byte((*(*(struct {
16994 //mt:const uint8(6)
16996 OverlayTiles [6]TileDef
16997 //mt:const uint8(6)
16998 SpecialTiles [6]TileDef
17005 ConnectTo []Content
17006 InsideTint color.NRGBA
17007 Level uint8 // Must be < 128.
17009 Translucent bool // Sunlight is scattered and becomes normal light.
17010 Transparent bool // Sunlight isn't scattered.
17023 LiquidType LiquidType
17026 Viscosity uint8 // 0-7
17032 DrawBox, ColBox, SelBox NodeBox
17034 FootstepSnd, DiggingSnd, DugSnd SoundDef
17044 }))(obj)).FlowingAlt))[:])
17047 if len(([]byte((*(*(struct {
17059 //mt:const uint8(6)
17061 OverlayTiles [6]TileDef
17062 //mt:const uint8(6)
17063 SpecialTiles [6]TileDef
17070 ConnectTo []Content
17071 InsideTint color.NRGBA
17072 Level uint8 // Must be < 128.
17074 Translucent bool // Sunlight is scattered and becomes normal light.
17075 Transparent bool // Sunlight isn't scattered.
17088 LiquidType LiquidType
17091 Viscosity uint8 // 0-7
17097 DrawBox, ColBox, SelBox NodeBox
17099 FootstepSnd, DiggingSnd, DugSnd SoundDef
17109 }))(obj)).SrcAlt))) > math.MaxUint16 {
17113 x := uint16(len(([]byte((*(*(struct {
17125 //mt:const uint8(6)
17127 OverlayTiles [6]TileDef
17128 //mt:const uint8(6)
17129 SpecialTiles [6]TileDef
17136 ConnectTo []Content
17137 InsideTint color.NRGBA
17138 Level uint8 // Must be < 128.
17140 Translucent bool // Sunlight is scattered and becomes normal light.
17141 Transparent bool // Sunlight isn't scattered.
17154 LiquidType LiquidType
17157 Viscosity uint8 // 0-7
17163 DrawBox, ColBox, SelBox NodeBox
17165 FootstepSnd, DiggingSnd, DugSnd SoundDef
17175 }))(obj)).SrcAlt))))
17176 write16(w, uint16(x))
17179 _, err := w.Write(([]byte((*(*(struct {
17191 //mt:const uint8(6)
17193 OverlayTiles [6]TileDef
17194 //mt:const uint8(6)
17195 SpecialTiles [6]TileDef
17202 ConnectTo []Content
17203 InsideTint color.NRGBA
17204 Level uint8 // Must be < 128.
17206 Translucent bool // Sunlight is scattered and becomes normal light.
17207 Transparent bool // Sunlight isn't scattered.
17220 LiquidType LiquidType
17223 Viscosity uint8 // 0-7
17229 DrawBox, ColBox, SelBox NodeBox
17231 FootstepSnd, DiggingSnd, DugSnd SoundDef
17241 }))(obj)).SrcAlt))[:])
17257 //mt:const uint8(6)
17259 OverlayTiles [6]TileDef
17260 //mt:const uint8(6)
17261 SpecialTiles [6]TileDef
17268 ConnectTo []Content
17269 InsideTint color.NRGBA
17270 Level uint8 // Must be < 128.
17272 Translucent bool // Sunlight is scattered and becomes normal light.
17273 Transparent bool // Sunlight isn't scattered.
17286 LiquidType LiquidType
17289 Viscosity uint8 // 0-7
17295 DrawBox, ColBox, SelBox NodeBox
17297 FootstepSnd, DiggingSnd, DugSnd SoundDef
17307 }))(obj)).Viscosity
17308 write8(w, uint8(x))
17323 //mt:const uint8(6)
17325 OverlayTiles [6]TileDef
17326 //mt:const uint8(6)
17327 SpecialTiles [6]TileDef
17334 ConnectTo []Content
17335 InsideTint color.NRGBA
17336 Level uint8 // Must be < 128.
17338 Translucent bool // Sunlight is scattered and becomes normal light.
17339 Transparent bool // Sunlight isn't scattered.
17352 LiquidType LiquidType
17355 Viscosity uint8 // 0-7
17361 DrawBox, ColBox, SelBox NodeBox
17363 FootstepSnd, DiggingSnd, DugSnd SoundDef
17373 }))(obj)).LiqRenewable
17394 //mt:const uint8(6)
17396 OverlayTiles [6]TileDef
17397 //mt:const uint8(6)
17398 SpecialTiles [6]TileDef
17405 ConnectTo []Content
17406 InsideTint color.NRGBA
17407 Level uint8 // Must be < 128.
17409 Translucent bool // Sunlight is scattered and becomes normal light.
17410 Transparent bool // Sunlight isn't scattered.
17423 LiquidType LiquidType
17426 Viscosity uint8 // 0-7
17432 DrawBox, ColBox, SelBox NodeBox
17434 FootstepSnd, DiggingSnd, DugSnd SoundDef
17444 }))(obj)).FlowRange
17445 write8(w, uint8(x))
17460 //mt:const uint8(6)
17462 OverlayTiles [6]TileDef
17463 //mt:const uint8(6)
17464 SpecialTiles [6]TileDef
17471 ConnectTo []Content
17472 InsideTint color.NRGBA
17473 Level uint8 // Must be < 128.
17475 Translucent bool // Sunlight is scattered and becomes normal light.
17476 Transparent bool // Sunlight isn't scattered.
17489 LiquidType LiquidType
17492 Viscosity uint8 // 0-7
17498 DrawBox, ColBox, SelBox NodeBox
17500 FootstepSnd, DiggingSnd, DugSnd SoundDef
17511 write8(w, uint8(x))
17526 //mt:const uint8(6)
17528 OverlayTiles [6]TileDef
17529 //mt:const uint8(6)
17530 SpecialTiles [6]TileDef
17537 ConnectTo []Content
17538 InsideTint color.NRGBA
17539 Level uint8 // Must be < 128.
17541 Translucent bool // Sunlight is scattered and becomes normal light.
17542 Transparent bool // Sunlight isn't scattered.
17555 LiquidType LiquidType
17558 Viscosity uint8 // 0-7
17564 DrawBox, ColBox, SelBox NodeBox
17566 FootstepSnd, DiggingSnd, DugSnd SoundDef
17576 }))(obj)).Floodable
17584 if err := pcall(func() {
17597 //mt:const uint8(6)
17599 OverlayTiles [6]TileDef
17600 //mt:const uint8(6)
17601 SpecialTiles [6]TileDef
17608 ConnectTo []Content
17609 InsideTint color.NRGBA
17610 Level uint8 // Must be < 128.
17612 Translucent bool // Sunlight is scattered and becomes normal light.
17613 Transparent bool // Sunlight isn't scattered.
17626 LiquidType LiquidType
17629 Viscosity uint8 // 0-7
17635 DrawBox, ColBox, SelBox NodeBox
17637 FootstepSnd, DiggingSnd, DugSnd SoundDef
17647 }))(obj)).DrawBox).serialize(w)
17652 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17654 if err := pcall(func() {
17667 //mt:const uint8(6)
17669 OverlayTiles [6]TileDef
17670 //mt:const uint8(6)
17671 SpecialTiles [6]TileDef
17678 ConnectTo []Content
17679 InsideTint color.NRGBA
17680 Level uint8 // Must be < 128.
17682 Translucent bool // Sunlight is scattered and becomes normal light.
17683 Transparent bool // Sunlight isn't scattered.
17696 LiquidType LiquidType
17699 Viscosity uint8 // 0-7
17705 DrawBox, ColBox, SelBox NodeBox
17707 FootstepSnd, DiggingSnd, DugSnd SoundDef
17717 }))(obj)).ColBox).serialize(w)
17722 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17724 if err := pcall(func() {
17737 //mt:const uint8(6)
17739 OverlayTiles [6]TileDef
17740 //mt:const uint8(6)
17741 SpecialTiles [6]TileDef
17748 ConnectTo []Content
17749 InsideTint color.NRGBA
17750 Level uint8 // Must be < 128.
17752 Translucent bool // Sunlight is scattered and becomes normal light.
17753 Transparent bool // Sunlight isn't scattered.
17766 LiquidType LiquidType
17769 Viscosity uint8 // 0-7
17775 DrawBox, ColBox, SelBox NodeBox
17777 FootstepSnd, DiggingSnd, DugSnd SoundDef
17787 }))(obj)).SelBox).serialize(w)
17792 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17794 if err := pcall(func() {
17807 //mt:const uint8(6)
17809 OverlayTiles [6]TileDef
17810 //mt:const uint8(6)
17811 SpecialTiles [6]TileDef
17818 ConnectTo []Content
17819 InsideTint color.NRGBA
17820 Level uint8 // Must be < 128.
17822 Translucent bool // Sunlight is scattered and becomes normal light.
17823 Transparent bool // Sunlight isn't scattered.
17836 LiquidType LiquidType
17839 Viscosity uint8 // 0-7
17845 DrawBox, ColBox, SelBox NodeBox
17847 FootstepSnd, DiggingSnd, DugSnd SoundDef
17857 }))(obj)).FootstepSnd).serialize(w)
17862 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17864 if err := pcall(func() {
17877 //mt:const uint8(6)
17879 OverlayTiles [6]TileDef
17880 //mt:const uint8(6)
17881 SpecialTiles [6]TileDef
17888 ConnectTo []Content
17889 InsideTint color.NRGBA
17890 Level uint8 // Must be < 128.
17892 Translucent bool // Sunlight is scattered and becomes normal light.
17893 Transparent bool // Sunlight isn't scattered.
17906 LiquidType LiquidType
17909 Viscosity uint8 // 0-7
17915 DrawBox, ColBox, SelBox NodeBox
17917 FootstepSnd, DiggingSnd, DugSnd SoundDef
17927 }))(obj)).DiggingSnd).serialize(w)
17932 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17934 if err := pcall(func() {
17947 //mt:const uint8(6)
17949 OverlayTiles [6]TileDef
17950 //mt:const uint8(6)
17951 SpecialTiles [6]TileDef
17958 ConnectTo []Content
17959 InsideTint color.NRGBA
17960 Level uint8 // Must be < 128.
17962 Translucent bool // Sunlight is scattered and becomes normal light.
17963 Transparent bool // Sunlight isn't scattered.
17976 LiquidType LiquidType
17979 Viscosity uint8 // 0-7
17985 DrawBox, ColBox, SelBox NodeBox
17987 FootstepSnd, DiggingSnd, DugSnd SoundDef
17997 }))(obj)).DugSnd).serialize(w)
18002 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
18017 //mt:const uint8(6)
18019 OverlayTiles [6]TileDef
18020 //mt:const uint8(6)
18021 SpecialTiles [6]TileDef
18028 ConnectTo []Content
18029 InsideTint color.NRGBA
18030 Level uint8 // Must be < 128.
18032 Translucent bool // Sunlight is scattered and becomes normal light.
18033 Transparent bool // Sunlight isn't scattered.
18046 LiquidType LiquidType
18049 Viscosity uint8 // 0-7
18055 DrawBox, ColBox, SelBox NodeBox
18057 FootstepSnd, DiggingSnd, DugSnd SoundDef
18067 }))(obj)).LegacyFaceDir
18088 //mt:const uint8(6)
18090 OverlayTiles [6]TileDef
18091 //mt:const uint8(6)
18092 SpecialTiles [6]TileDef
18099 ConnectTo []Content
18100 InsideTint color.NRGBA
18101 Level uint8 // Must be < 128.
18103 Translucent bool // Sunlight is scattered and becomes normal light.
18104 Transparent bool // Sunlight isn't scattered.
18117 LiquidType LiquidType
18120 Viscosity uint8 // 0-7
18126 DrawBox, ColBox, SelBox NodeBox
18128 FootstepSnd, DiggingSnd, DugSnd SoundDef
18138 }))(obj)).LegacyMounted
18146 if len(([]byte((*(*(struct {
18158 //mt:const uint8(6)
18160 OverlayTiles [6]TileDef
18161 //mt:const uint8(6)
18162 SpecialTiles [6]TileDef
18169 ConnectTo []Content
18170 InsideTint color.NRGBA
18171 Level uint8 // Must be < 128.
18173 Translucent bool // Sunlight is scattered and becomes normal light.
18174 Transparent bool // Sunlight isn't scattered.
18187 LiquidType LiquidType
18190 Viscosity uint8 // 0-7
18196 DrawBox, ColBox, SelBox NodeBox
18198 FootstepSnd, DiggingSnd, DugSnd SoundDef
18208 }))(obj)).DigPredict))) > math.MaxUint16 {
18212 x := uint16(len(([]byte((*(*(struct {
18224 //mt:const uint8(6)
18226 OverlayTiles [6]TileDef
18227 //mt:const uint8(6)
18228 SpecialTiles [6]TileDef
18235 ConnectTo []Content
18236 InsideTint color.NRGBA
18237 Level uint8 // Must be < 128.
18239 Translucent bool // Sunlight is scattered and becomes normal light.
18240 Transparent bool // Sunlight isn't scattered.
18253 LiquidType LiquidType
18256 Viscosity uint8 // 0-7
18262 DrawBox, ColBox, SelBox NodeBox
18264 FootstepSnd, DiggingSnd, DugSnd SoundDef
18274 }))(obj)).DigPredict))))
18275 write16(w, uint16(x))
18278 _, err := w.Write(([]byte((*(*(struct {
18290 //mt:const uint8(6)
18292 OverlayTiles [6]TileDef
18293 //mt:const uint8(6)
18294 SpecialTiles [6]TileDef
18301 ConnectTo []Content
18302 InsideTint color.NRGBA
18303 Level uint8 // Must be < 128.
18305 Translucent bool // Sunlight is scattered and becomes normal light.
18306 Transparent bool // Sunlight isn't scattered.
18319 LiquidType LiquidType
18322 Viscosity uint8 // 0-7
18328 DrawBox, ColBox, SelBox NodeBox
18330 FootstepSnd, DiggingSnd, DugSnd SoundDef
18340 }))(obj)).DigPredict))[:])
18356 //mt:const uint8(6)
18358 OverlayTiles [6]TileDef
18359 //mt:const uint8(6)
18360 SpecialTiles [6]TileDef
18367 ConnectTo []Content
18368 InsideTint color.NRGBA
18369 Level uint8 // Must be < 128.
18371 Translucent bool // Sunlight is scattered and becomes normal light.
18372 Transparent bool // Sunlight isn't scattered.
18385 LiquidType LiquidType
18388 Viscosity uint8 // 0-7
18394 DrawBox, ColBox, SelBox NodeBox
18396 FootstepSnd, DiggingSnd, DugSnd SoundDef
18407 write8(w, uint8(x))
18409 if err := pcall(func() {
18422 //mt:const uint8(6)
18424 OverlayTiles [6]TileDef
18425 //mt:const uint8(6)
18426 SpecialTiles [6]TileDef
18433 ConnectTo []Content
18434 InsideTint color.NRGBA
18435 Level uint8 // Must be < 128.
18437 Translucent bool // Sunlight is scattered and becomes normal light.
18438 Transparent bool // Sunlight isn't scattered.
18451 LiquidType LiquidType
18454 Viscosity uint8 // 0-7
18460 DrawBox, ColBox, SelBox NodeBox
18462 FootstepSnd, DiggingSnd, DugSnd SoundDef
18472 }))(obj)).AlphaUse).serialize(w)
18477 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
18482 if len((buf.Bytes())) > math.MaxUint16 {
18486 x := uint16(len((buf.Bytes())))
18487 write16(w, uint16(x))
18490 _, err := w.Write((buf.Bytes())[:])
18497 func (obj *NodeDef) deserialize(r io.Reader) {
18498 if err := pcall(func() {
18511 //mt:const uint8(6)
18513 OverlayTiles [6]TileDef
18514 //mt:const uint8(6)
18515 SpecialTiles [6]TileDef
18522 ConnectTo []Content
18523 InsideTint color.NRGBA
18524 Level uint8 // Must be < 128.
18526 Translucent bool // Sunlight is scattered and becomes normal light.
18527 Transparent bool // Sunlight isn't scattered.
18540 LiquidType LiquidType
18543 Viscosity uint8 // 0-7
18549 DrawBox, ColBox, SelBox NodeBox
18551 FootstepSnd, DiggingSnd, DugSnd SoundDef
18561 }))(obj)).Param0).deserialize(r)
18566 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
18574 r := &io.LimitedReader{R: r, N: int64(n)}
18577 local249 := uint8(13)
18582 if local248 != local249 {
18583 chk(fmt.Errorf("const %v: %v", "uint8(13)", local248))
18586 var local250 []uint8
18587 var local251 uint16
18592 (local250) = make([]uint8, local251)
18594 _, err := io.ReadFull(r, (local250)[:])
18609 //mt:const uint8(6)
18611 OverlayTiles [6]TileDef
18612 //mt:const uint8(6)
18613 SpecialTiles [6]TileDef
18620 ConnectTo []Content
18621 InsideTint color.NRGBA
18622 Level uint8 // Must be < 128.
18624 Translucent bool // Sunlight is scattered and becomes normal light.
18625 Transparent bool // Sunlight isn't scattered.
18638 LiquidType LiquidType
18641 Viscosity uint8 // 0-7
18647 DrawBox, ColBox, SelBox NodeBox
18649 FootstepSnd, DiggingSnd, DugSnd SoundDef
18659 }))(obj)).Name) = string(local250)
18660 var local252 uint16
18677 //mt:const uint8(6)
18679 OverlayTiles [6]TileDef
18680 //mt:const uint8(6)
18681 SpecialTiles [6]TileDef
18688 ConnectTo []Content
18689 InsideTint color.NRGBA
18690 Level uint8 // Must be < 128.
18692 Translucent bool // Sunlight is scattered and becomes normal light.
18693 Transparent bool // Sunlight isn't scattered.
18706 LiquidType LiquidType
18709 Viscosity uint8 // 0-7
18715 DrawBox, ColBox, SelBox NodeBox
18717 FootstepSnd, DiggingSnd, DugSnd SoundDef
18727 }))(obj)).Groups) = make([]Group, local252)
18728 for local253 := range (*(*(struct {
18740 //mt:const uint8(6)
18742 OverlayTiles [6]TileDef
18743 //mt:const uint8(6)
18744 SpecialTiles [6]TileDef
18751 ConnectTo []Content
18752 InsideTint color.NRGBA
18753 Level uint8 // Must be < 128.
18755 Translucent bool // Sunlight is scattered and becomes normal light.
18756 Transparent bool // Sunlight isn't scattered.
18769 LiquidType LiquidType
18772 Viscosity uint8 // 0-7
18778 DrawBox, ColBox, SelBox NodeBox
18780 FootstepSnd, DiggingSnd, DugSnd SoundDef
18791 if err := pcall(func() {
18804 //mt:const uint8(6)
18806 OverlayTiles [6]TileDef
18807 //mt:const uint8(6)
18808 SpecialTiles [6]TileDef
18815 ConnectTo []Content
18816 InsideTint color.NRGBA
18817 Level uint8 // Must be < 128.
18819 Translucent bool // Sunlight is scattered and becomes normal light.
18820 Transparent bool // Sunlight isn't scattered.
18833 LiquidType LiquidType
18836 Viscosity uint8 // 0-7
18842 DrawBox, ColBox, SelBox NodeBox
18844 FootstepSnd, DiggingSnd, DugSnd SoundDef
18854 }))(obj)).Groups)[local253]).deserialize(r)
18859 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
18862 if err := pcall(func() {
18875 //mt:const uint8(6)
18877 OverlayTiles [6]TileDef
18878 //mt:const uint8(6)
18879 SpecialTiles [6]TileDef
18886 ConnectTo []Content
18887 InsideTint color.NRGBA
18888 Level uint8 // Must be < 128.
18890 Translucent bool // Sunlight is scattered and becomes normal light.
18891 Transparent bool // Sunlight isn't scattered.
18904 LiquidType LiquidType
18907 Viscosity uint8 // 0-7
18913 DrawBox, ColBox, SelBox NodeBox
18915 FootstepSnd, DiggingSnd, DugSnd SoundDef
18925 }))(obj)).P1Type).deserialize(r)
18930 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
18932 if err := pcall(func() {
18945 //mt:const uint8(6)
18947 OverlayTiles [6]TileDef
18948 //mt:const uint8(6)
18949 SpecialTiles [6]TileDef
18956 ConnectTo []Content
18957 InsideTint color.NRGBA
18958 Level uint8 // Must be < 128.
18960 Translucent bool // Sunlight is scattered and becomes normal light.
18961 Transparent bool // Sunlight isn't scattered.
18974 LiquidType LiquidType
18977 Viscosity uint8 // 0-7
18983 DrawBox, ColBox, SelBox NodeBox
18985 FootstepSnd, DiggingSnd, DugSnd SoundDef
18995 }))(obj)).P2Type).deserialize(r)
19000 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
19002 if err := pcall(func() {
19015 //mt:const uint8(6)
19017 OverlayTiles [6]TileDef
19018 //mt:const uint8(6)
19019 SpecialTiles [6]TileDef
19026 ConnectTo []Content
19027 InsideTint color.NRGBA
19028 Level uint8 // Must be < 128.
19030 Translucent bool // Sunlight is scattered and becomes normal light.
19031 Transparent bool // Sunlight isn't scattered.
19044 LiquidType LiquidType
19047 Viscosity uint8 // 0-7
19053 DrawBox, ColBox, SelBox NodeBox
19055 FootstepSnd, DiggingSnd, DugSnd SoundDef
19065 }))(obj)).DrawType).deserialize(r)
19070 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
19072 var local254 []uint8
19073 var local255 uint16
19078 (local254) = make([]uint8, local255)
19080 _, err := io.ReadFull(r, (local254)[:])
19095 //mt:const uint8(6)
19097 OverlayTiles [6]TileDef
19098 //mt:const uint8(6)
19099 SpecialTiles [6]TileDef
19106 ConnectTo []Content
19107 InsideTint color.NRGBA
19108 Level uint8 // Must be < 128.
19110 Translucent bool // Sunlight is scattered and becomes normal light.
19111 Transparent bool // Sunlight isn't scattered.
19124 LiquidType LiquidType
19127 Viscosity uint8 // 0-7
19133 DrawBox, ColBox, SelBox NodeBox
19135 FootstepSnd, DiggingSnd, DugSnd SoundDef
19145 }))(obj)).Mesh) = string(local254)
19147 p := &(*(*(struct {
19159 //mt:const uint8(6)
19161 OverlayTiles [6]TileDef
19162 //mt:const uint8(6)
19163 SpecialTiles [6]TileDef
19170 ConnectTo []Content
19171 InsideTint color.NRGBA
19172 Level uint8 // Must be < 128.
19174 Translucent bool // Sunlight is scattered and becomes normal light.
19175 Transparent bool // Sunlight isn't scattered.
19188 LiquidType LiquidType
19191 Viscosity uint8 // 0-7
19197 DrawBox, ColBox, SelBox NodeBox
19199 FootstepSnd, DiggingSnd, DugSnd SoundDef
19210 *p = math.Float32frombits(read32(r))
19214 local257 := uint8(6)
19219 if local256 != local257 {
19220 chk(fmt.Errorf("const %v: %v", "uint8(6)", local256))
19223 for local258 := range (*(*(struct {
19235 //mt:const uint8(6)
19237 OverlayTiles [6]TileDef
19238 //mt:const uint8(6)
19239 SpecialTiles [6]TileDef
19246 ConnectTo []Content
19247 InsideTint color.NRGBA
19248 Level uint8 // Must be < 128.
19250 Translucent bool // Sunlight is scattered and becomes normal light.
19251 Transparent bool // Sunlight isn't scattered.
19264 LiquidType LiquidType
19267 Viscosity uint8 // 0-7
19273 DrawBox, ColBox, SelBox NodeBox
19275 FootstepSnd, DiggingSnd, DugSnd SoundDef
19286 if err := pcall(func() {
19299 //mt:const uint8(6)
19301 OverlayTiles [6]TileDef
19302 //mt:const uint8(6)
19303 SpecialTiles [6]TileDef
19310 ConnectTo []Content
19311 InsideTint color.NRGBA
19312 Level uint8 // Must be < 128.
19314 Translucent bool // Sunlight is scattered and becomes normal light.
19315 Transparent bool // Sunlight isn't scattered.
19328 LiquidType LiquidType
19331 Viscosity uint8 // 0-7
19337 DrawBox, ColBox, SelBox NodeBox
19339 FootstepSnd, DiggingSnd, DugSnd SoundDef
19349 }))(obj)).Tiles)[local258]).deserialize(r)
19354 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19357 for local259 := range (*(*(struct {
19369 //mt:const uint8(6)
19371 OverlayTiles [6]TileDef
19372 //mt:const uint8(6)
19373 SpecialTiles [6]TileDef
19380 ConnectTo []Content
19381 InsideTint color.NRGBA
19382 Level uint8 // Must be < 128.
19384 Translucent bool // Sunlight is scattered and becomes normal light.
19385 Transparent bool // Sunlight isn't scattered.
19398 LiquidType LiquidType
19401 Viscosity uint8 // 0-7
19407 DrawBox, ColBox, SelBox NodeBox
19409 FootstepSnd, DiggingSnd, DugSnd SoundDef
19419 }))(obj)).OverlayTiles {
19420 if err := pcall(func() {
19433 //mt:const uint8(6)
19435 OverlayTiles [6]TileDef
19436 //mt:const uint8(6)
19437 SpecialTiles [6]TileDef
19444 ConnectTo []Content
19445 InsideTint color.NRGBA
19446 Level uint8 // Must be < 128.
19448 Translucent bool // Sunlight is scattered and becomes normal light.
19449 Transparent bool // Sunlight isn't scattered.
19462 LiquidType LiquidType
19465 Viscosity uint8 // 0-7
19471 DrawBox, ColBox, SelBox NodeBox
19473 FootstepSnd, DiggingSnd, DugSnd SoundDef
19483 }))(obj)).OverlayTiles)[local259]).deserialize(r)
19488 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19493 local261 := uint8(6)
19498 if local260 != local261 {
19499 chk(fmt.Errorf("const %v: %v", "uint8(6)", local260))
19502 for local262 := range (*(*(struct {
19514 //mt:const uint8(6)
19516 OverlayTiles [6]TileDef
19517 //mt:const uint8(6)
19518 SpecialTiles [6]TileDef
19525 ConnectTo []Content
19526 InsideTint color.NRGBA
19527 Level uint8 // Must be < 128.
19529 Translucent bool // Sunlight is scattered and becomes normal light.
19530 Transparent bool // Sunlight isn't scattered.
19543 LiquidType LiquidType
19546 Viscosity uint8 // 0-7
19552 DrawBox, ColBox, SelBox NodeBox
19554 FootstepSnd, DiggingSnd, DugSnd SoundDef
19564 }))(obj)).SpecialTiles {
19565 if err := pcall(func() {
19578 //mt:const uint8(6)
19580 OverlayTiles [6]TileDef
19581 //mt:const uint8(6)
19582 SpecialTiles [6]TileDef
19589 ConnectTo []Content
19590 InsideTint color.NRGBA
19591 Level uint8 // Must be < 128.
19593 Translucent bool // Sunlight is scattered and becomes normal light.
19594 Transparent bool // Sunlight isn't scattered.
19607 LiquidType LiquidType
19610 Viscosity uint8 // 0-7
19616 DrawBox, ColBox, SelBox NodeBox
19618 FootstepSnd, DiggingSnd, DugSnd SoundDef
19628 }))(obj)).SpecialTiles)[local262]).deserialize(r)
19633 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19637 p := &(*(*(struct {
19649 //mt:const uint8(6)
19651 OverlayTiles [6]TileDef
19652 //mt:const uint8(6)
19653 SpecialTiles [6]TileDef
19660 ConnectTo []Content
19661 InsideTint color.NRGBA
19662 Level uint8 // Must be < 128.
19664 Translucent bool // Sunlight is scattered and becomes normal light.
19665 Transparent bool // Sunlight isn't scattered.
19678 LiquidType LiquidType
19681 Viscosity uint8 // 0-7
19687 DrawBox, ColBox, SelBox NodeBox
19689 FootstepSnd, DiggingSnd, DugSnd SoundDef
19700 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19703 if err := pcall(func() {
19716 //mt:const uint8(6)
19718 OverlayTiles [6]TileDef
19719 //mt:const uint8(6)
19720 SpecialTiles [6]TileDef
19727 ConnectTo []Content
19728 InsideTint color.NRGBA
19729 Level uint8 // Must be < 128.
19731 Translucent bool // Sunlight is scattered and becomes normal light.
19732 Transparent bool // Sunlight isn't scattered.
19745 LiquidType LiquidType
19748 Viscosity uint8 // 0-7
19754 DrawBox, ColBox, SelBox NodeBox
19756 FootstepSnd, DiggingSnd, DugSnd SoundDef
19766 }))(obj)).Palette).deserialize(r)
19771 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
19773 if err := pcall(func() {
19786 //mt:const uint8(6)
19788 OverlayTiles [6]TileDef
19789 //mt:const uint8(6)
19790 SpecialTiles [6]TileDef
19797 ConnectTo []Content
19798 InsideTint color.NRGBA
19799 Level uint8 // Must be < 128.
19801 Translucent bool // Sunlight is scattered and becomes normal light.
19802 Transparent bool // Sunlight isn't scattered.
19815 LiquidType LiquidType
19818 Viscosity uint8 // 0-7
19824 DrawBox, ColBox, SelBox NodeBox
19826 FootstepSnd, DiggingSnd, DugSnd SoundDef
19836 }))(obj)).Waving).deserialize(r)
19841 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
19844 p := &(*(*(struct {
19856 //mt:const uint8(6)
19858 OverlayTiles [6]TileDef
19859 //mt:const uint8(6)
19860 SpecialTiles [6]TileDef
19867 ConnectTo []Content
19868 InsideTint color.NRGBA
19869 Level uint8 // Must be < 128.
19871 Translucent bool // Sunlight is scattered and becomes normal light.
19872 Transparent bool // Sunlight isn't scattered.
19885 LiquidType LiquidType
19888 Viscosity uint8 // 0-7
19894 DrawBox, ColBox, SelBox NodeBox
19896 FootstepSnd, DiggingSnd, DugSnd SoundDef
19906 }))(obj)).ConnectSides
19909 var local263 uint16
19926 //mt:const uint8(6)
19928 OverlayTiles [6]TileDef
19929 //mt:const uint8(6)
19930 SpecialTiles [6]TileDef
19937 ConnectTo []Content
19938 InsideTint color.NRGBA
19939 Level uint8 // Must be < 128.
19941 Translucent bool // Sunlight is scattered and becomes normal light.
19942 Transparent bool // Sunlight isn't scattered.
19955 LiquidType LiquidType
19958 Viscosity uint8 // 0-7
19964 DrawBox, ColBox, SelBox NodeBox
19966 FootstepSnd, DiggingSnd, DugSnd SoundDef
19976 }))(obj)).ConnectTo) = make([]Content, local263)
19977 for local264 := range (*(*(struct {
19989 //mt:const uint8(6)
19991 OverlayTiles [6]TileDef
19992 //mt:const uint8(6)
19993 SpecialTiles [6]TileDef
20000 ConnectTo []Content
20001 InsideTint color.NRGBA
20002 Level uint8 // Must be < 128.
20004 Translucent bool // Sunlight is scattered and becomes normal light.
20005 Transparent bool // Sunlight isn't scattered.
20018 LiquidType LiquidType
20021 Viscosity uint8 // 0-7
20027 DrawBox, ColBox, SelBox NodeBox
20029 FootstepSnd, DiggingSnd, DugSnd SoundDef
20039 }))(obj)).ConnectTo {
20040 if err := pcall(func() {
20053 //mt:const uint8(6)
20055 OverlayTiles [6]TileDef
20056 //mt:const uint8(6)
20057 SpecialTiles [6]TileDef
20064 ConnectTo []Content
20065 InsideTint color.NRGBA
20066 Level uint8 // Must be < 128.
20068 Translucent bool // Sunlight is scattered and becomes normal light.
20069 Transparent bool // Sunlight isn't scattered.
20082 LiquidType LiquidType
20085 Viscosity uint8 // 0-7
20091 DrawBox, ColBox, SelBox NodeBox
20093 FootstepSnd, DiggingSnd, DugSnd SoundDef
20103 }))(obj)).ConnectTo)[local264]).deserialize(r)
20108 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
20112 p := &(*(*(struct {
20124 //mt:const uint8(6)
20126 OverlayTiles [6]TileDef
20127 //mt:const uint8(6)
20128 SpecialTiles [6]TileDef
20135 ConnectTo []Content
20136 InsideTint color.NRGBA
20137 Level uint8 // Must be < 128.
20139 Translucent bool // Sunlight is scattered and becomes normal light.
20140 Transparent bool // Sunlight isn't scattered.
20153 LiquidType LiquidType
20156 Viscosity uint8 // 0-7
20162 DrawBox, ColBox, SelBox NodeBox
20164 FootstepSnd, DiggingSnd, DugSnd SoundDef
20174 }))(obj)).InsideTint
20175 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20179 p := &(*(*(struct {
20191 //mt:const uint8(6)
20193 OverlayTiles [6]TileDef
20194 //mt:const uint8(6)
20195 SpecialTiles [6]TileDef
20202 ConnectTo []Content
20203 InsideTint color.NRGBA
20204 Level uint8 // Must be < 128.
20206 Translucent bool // Sunlight is scattered and becomes normal light.
20207 Transparent bool // Sunlight isn't scattered.
20220 LiquidType LiquidType
20223 Viscosity uint8 // 0-7
20229 DrawBox, ColBox, SelBox NodeBox
20231 FootstepSnd, DiggingSnd, DugSnd SoundDef
20245 p := &(*(*(struct {
20257 //mt:const uint8(6)
20259 OverlayTiles [6]TileDef
20260 //mt:const uint8(6)
20261 SpecialTiles [6]TileDef
20268 ConnectTo []Content
20269 InsideTint color.NRGBA
20270 Level uint8 // Must be < 128.
20272 Translucent bool // Sunlight is scattered and becomes normal light.
20273 Transparent bool // Sunlight isn't scattered.
20286 LiquidType LiquidType
20289 Viscosity uint8 // 0-7
20295 DrawBox, ColBox, SelBox NodeBox
20297 FootstepSnd, DiggingSnd, DugSnd SoundDef
20307 }))(obj)).Translucent
20308 switch n := read8(r); n {
20314 chk(fmt.Errorf("invalid bool: %d", n))
20319 p := &(*(*(struct {
20331 //mt:const uint8(6)
20333 OverlayTiles [6]TileDef
20334 //mt:const uint8(6)
20335 SpecialTiles [6]TileDef
20342 ConnectTo []Content
20343 InsideTint color.NRGBA
20344 Level uint8 // Must be < 128.
20346 Translucent bool // Sunlight is scattered and becomes normal light.
20347 Transparent bool // Sunlight isn't scattered.
20360 LiquidType LiquidType
20363 Viscosity uint8 // 0-7
20369 DrawBox, ColBox, SelBox NodeBox
20371 FootstepSnd, DiggingSnd, DugSnd SoundDef
20381 }))(obj)).Transparent
20382 switch n := read8(r); n {
20388 chk(fmt.Errorf("invalid bool: %d", n))
20393 p := &(*(*(struct {
20405 //mt:const uint8(6)
20407 OverlayTiles [6]TileDef
20408 //mt:const uint8(6)
20409 SpecialTiles [6]TileDef
20416 ConnectTo []Content
20417 InsideTint color.NRGBA
20418 Level uint8 // Must be < 128.
20420 Translucent bool // Sunlight is scattered and becomes normal light.
20421 Transparent bool // Sunlight isn't scattered.
20434 LiquidType LiquidType
20437 Viscosity uint8 // 0-7
20443 DrawBox, ColBox, SelBox NodeBox
20445 FootstepSnd, DiggingSnd, DugSnd SoundDef
20459 p := &(*(*(struct {
20471 //mt:const uint8(6)
20473 OverlayTiles [6]TileDef
20474 //mt:const uint8(6)
20475 SpecialTiles [6]TileDef
20482 ConnectTo []Content
20483 InsideTint color.NRGBA
20484 Level uint8 // Must be < 128.
20486 Translucent bool // Sunlight is scattered and becomes normal light.
20487 Transparent bool // Sunlight isn't scattered.
20500 LiquidType LiquidType
20503 Viscosity uint8 // 0-7
20509 DrawBox, ColBox, SelBox NodeBox
20511 FootstepSnd, DiggingSnd, DugSnd SoundDef
20521 }))(obj)).GndContent
20522 switch n := read8(r); n {
20528 chk(fmt.Errorf("invalid bool: %d", n))
20533 p := &(*(*(struct {
20545 //mt:const uint8(6)
20547 OverlayTiles [6]TileDef
20548 //mt:const uint8(6)
20549 SpecialTiles [6]TileDef
20556 ConnectTo []Content
20557 InsideTint color.NRGBA
20558 Level uint8 // Must be < 128.
20560 Translucent bool // Sunlight is scattered and becomes normal light.
20561 Transparent bool // Sunlight isn't scattered.
20574 LiquidType LiquidType
20577 Viscosity uint8 // 0-7
20583 DrawBox, ColBox, SelBox NodeBox
20585 FootstepSnd, DiggingSnd, DugSnd SoundDef
20596 switch n := read8(r); n {
20602 chk(fmt.Errorf("invalid bool: %d", n))
20607 p := &(*(*(struct {
20619 //mt:const uint8(6)
20621 OverlayTiles [6]TileDef
20622 //mt:const uint8(6)
20623 SpecialTiles [6]TileDef
20630 ConnectTo []Content
20631 InsideTint color.NRGBA
20632 Level uint8 // Must be < 128.
20634 Translucent bool // Sunlight is scattered and becomes normal light.
20635 Transparent bool // Sunlight isn't scattered.
20648 LiquidType LiquidType
20651 Viscosity uint8 // 0-7
20657 DrawBox, ColBox, SelBox NodeBox
20659 FootstepSnd, DiggingSnd, DugSnd SoundDef
20669 }))(obj)).Pointable
20670 switch n := read8(r); n {
20676 chk(fmt.Errorf("invalid bool: %d", n))
20681 p := &(*(*(struct {
20693 //mt:const uint8(6)
20695 OverlayTiles [6]TileDef
20696 //mt:const uint8(6)
20697 SpecialTiles [6]TileDef
20704 ConnectTo []Content
20705 InsideTint color.NRGBA
20706 Level uint8 // Must be < 128.
20708 Translucent bool // Sunlight is scattered and becomes normal light.
20709 Transparent bool // Sunlight isn't scattered.
20722 LiquidType LiquidType
20725 Viscosity uint8 // 0-7
20731 DrawBox, ColBox, SelBox NodeBox
20733 FootstepSnd, DiggingSnd, DugSnd SoundDef
20744 switch n := read8(r); n {
20750 chk(fmt.Errorf("invalid bool: %d", n))
20755 p := &(*(*(struct {
20767 //mt:const uint8(6)
20769 OverlayTiles [6]TileDef
20770 //mt:const uint8(6)
20771 SpecialTiles [6]TileDef
20778 ConnectTo []Content
20779 InsideTint color.NRGBA
20780 Level uint8 // Must be < 128.
20782 Translucent bool // Sunlight is scattered and becomes normal light.
20783 Transparent bool // Sunlight isn't scattered.
20796 LiquidType LiquidType
20799 Viscosity uint8 // 0-7
20805 DrawBox, ColBox, SelBox NodeBox
20807 FootstepSnd, DiggingSnd, DugSnd SoundDef
20817 }))(obj)).Climbable
20818 switch n := read8(r); n {
20824 chk(fmt.Errorf("invalid bool: %d", n))
20829 p := &(*(*(struct {
20841 //mt:const uint8(6)
20843 OverlayTiles [6]TileDef
20844 //mt:const uint8(6)
20845 SpecialTiles [6]TileDef
20852 ConnectTo []Content
20853 InsideTint color.NRGBA
20854 Level uint8 // Must be < 128.
20856 Translucent bool // Sunlight is scattered and becomes normal light.
20857 Transparent bool // Sunlight isn't scattered.
20870 LiquidType LiquidType
20873 Viscosity uint8 // 0-7
20879 DrawBox, ColBox, SelBox NodeBox
20881 FootstepSnd, DiggingSnd, DugSnd SoundDef
20891 }))(obj)).Replaceable
20892 switch n := read8(r); n {
20898 chk(fmt.Errorf("invalid bool: %d", n))
20903 p := &(*(*(struct {
20915 //mt:const uint8(6)
20917 OverlayTiles [6]TileDef
20918 //mt:const uint8(6)
20919 SpecialTiles [6]TileDef
20926 ConnectTo []Content
20927 InsideTint color.NRGBA
20928 Level uint8 // Must be < 128.
20930 Translucent bool // Sunlight is scattered and becomes normal light.
20931 Transparent bool // Sunlight isn't scattered.
20944 LiquidType LiquidType
20947 Viscosity uint8 // 0-7
20953 DrawBox, ColBox, SelBox NodeBox
20955 FootstepSnd, DiggingSnd, DugSnd SoundDef
20965 }))(obj)).OnRightClick
20966 switch n := read8(r); n {
20972 chk(fmt.Errorf("invalid bool: %d", n))
20977 p := &(*(*(struct {
20989 //mt:const uint8(6)
20991 OverlayTiles [6]TileDef
20992 //mt:const uint8(6)
20993 SpecialTiles [6]TileDef
21000 ConnectTo []Content
21001 InsideTint color.NRGBA
21002 Level uint8 // Must be < 128.
21004 Translucent bool // Sunlight is scattered and becomes normal light.
21005 Transparent bool // Sunlight isn't scattered.
21018 LiquidType LiquidType
21021 Viscosity uint8 // 0-7
21027 DrawBox, ColBox, SelBox NodeBox
21029 FootstepSnd, DiggingSnd, DugSnd SoundDef
21039 }))(obj)).DmgPerSec
21040 *p = int32(read32(r))
21042 if err := pcall(func() {
21055 //mt:const uint8(6)
21057 OverlayTiles [6]TileDef
21058 //mt:const uint8(6)
21059 SpecialTiles [6]TileDef
21066 ConnectTo []Content
21067 InsideTint color.NRGBA
21068 Level uint8 // Must be < 128.
21070 Translucent bool // Sunlight is scattered and becomes normal light.
21071 Transparent bool // Sunlight isn't scattered.
21084 LiquidType LiquidType
21087 Viscosity uint8 // 0-7
21093 DrawBox, ColBox, SelBox NodeBox
21095 FootstepSnd, DiggingSnd, DugSnd SoundDef
21105 }))(obj)).LiquidType).deserialize(r)
21110 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
21112 var local265 []uint8
21113 var local266 uint16
21118 (local265) = make([]uint8, local266)
21120 _, err := io.ReadFull(r, (local265)[:])
21135 //mt:const uint8(6)
21137 OverlayTiles [6]TileDef
21138 //mt:const uint8(6)
21139 SpecialTiles [6]TileDef
21146 ConnectTo []Content
21147 InsideTint color.NRGBA
21148 Level uint8 // Must be < 128.
21150 Translucent bool // Sunlight is scattered and becomes normal light.
21151 Transparent bool // Sunlight isn't scattered.
21164 LiquidType LiquidType
21167 Viscosity uint8 // 0-7
21173 DrawBox, ColBox, SelBox NodeBox
21175 FootstepSnd, DiggingSnd, DugSnd SoundDef
21185 }))(obj)).FlowingAlt) = string(local265)
21186 var local267 []uint8
21187 var local268 uint16
21192 (local267) = make([]uint8, local268)
21194 _, err := io.ReadFull(r, (local267)[:])
21209 //mt:const uint8(6)
21211 OverlayTiles [6]TileDef
21212 //mt:const uint8(6)
21213 SpecialTiles [6]TileDef
21220 ConnectTo []Content
21221 InsideTint color.NRGBA
21222 Level uint8 // Must be < 128.
21224 Translucent bool // Sunlight is scattered and becomes normal light.
21225 Transparent bool // Sunlight isn't scattered.
21238 LiquidType LiquidType
21241 Viscosity uint8 // 0-7
21247 DrawBox, ColBox, SelBox NodeBox
21249 FootstepSnd, DiggingSnd, DugSnd SoundDef
21259 }))(obj)).SrcAlt) = string(local267)
21261 p := &(*(*(struct {
21273 //mt:const uint8(6)
21275 OverlayTiles [6]TileDef
21276 //mt:const uint8(6)
21277 SpecialTiles [6]TileDef
21284 ConnectTo []Content
21285 InsideTint color.NRGBA
21286 Level uint8 // Must be < 128.
21288 Translucent bool // Sunlight is scattered and becomes normal light.
21289 Transparent bool // Sunlight isn't scattered.
21302 LiquidType LiquidType
21305 Viscosity uint8 // 0-7
21311 DrawBox, ColBox, SelBox NodeBox
21313 FootstepSnd, DiggingSnd, DugSnd SoundDef
21323 }))(obj)).Viscosity
21327 p := &(*(*(struct {
21339 //mt:const uint8(6)
21341 OverlayTiles [6]TileDef
21342 //mt:const uint8(6)
21343 SpecialTiles [6]TileDef
21350 ConnectTo []Content
21351 InsideTint color.NRGBA
21352 Level uint8 // Must be < 128.
21354 Translucent bool // Sunlight is scattered and becomes normal light.
21355 Transparent bool // Sunlight isn't scattered.
21368 LiquidType LiquidType
21371 Viscosity uint8 // 0-7
21377 DrawBox, ColBox, SelBox NodeBox
21379 FootstepSnd, DiggingSnd, DugSnd SoundDef
21389 }))(obj)).LiqRenewable
21390 switch n := read8(r); n {
21396 chk(fmt.Errorf("invalid bool: %d", n))
21401 p := &(*(*(struct {
21413 //mt:const uint8(6)
21415 OverlayTiles [6]TileDef
21416 //mt:const uint8(6)
21417 SpecialTiles [6]TileDef
21424 ConnectTo []Content
21425 InsideTint color.NRGBA
21426 Level uint8 // Must be < 128.
21428 Translucent bool // Sunlight is scattered and becomes normal light.
21429 Transparent bool // Sunlight isn't scattered.
21442 LiquidType LiquidType
21445 Viscosity uint8 // 0-7
21451 DrawBox, ColBox, SelBox NodeBox
21453 FootstepSnd, DiggingSnd, DugSnd SoundDef
21463 }))(obj)).FlowRange
21467 p := &(*(*(struct {
21479 //mt:const uint8(6)
21481 OverlayTiles [6]TileDef
21482 //mt:const uint8(6)
21483 SpecialTiles [6]TileDef
21490 ConnectTo []Content
21491 InsideTint color.NRGBA
21492 Level uint8 // Must be < 128.
21494 Translucent bool // Sunlight is scattered and becomes normal light.
21495 Transparent bool // Sunlight isn't scattered.
21508 LiquidType LiquidType
21511 Viscosity uint8 // 0-7
21517 DrawBox, ColBox, SelBox NodeBox
21519 FootstepSnd, DiggingSnd, DugSnd SoundDef
21533 p := &(*(*(struct {
21545 //mt:const uint8(6)
21547 OverlayTiles [6]TileDef
21548 //mt:const uint8(6)
21549 SpecialTiles [6]TileDef
21556 ConnectTo []Content
21557 InsideTint color.NRGBA
21558 Level uint8 // Must be < 128.
21560 Translucent bool // Sunlight is scattered and becomes normal light.
21561 Transparent bool // Sunlight isn't scattered.
21574 LiquidType LiquidType
21577 Viscosity uint8 // 0-7
21583 DrawBox, ColBox, SelBox NodeBox
21585 FootstepSnd, DiggingSnd, DugSnd SoundDef
21595 }))(obj)).Floodable
21596 switch n := read8(r); n {
21602 chk(fmt.Errorf("invalid bool: %d", n))
21606 if err := pcall(func() {
21619 //mt:const uint8(6)
21621 OverlayTiles [6]TileDef
21622 //mt:const uint8(6)
21623 SpecialTiles [6]TileDef
21630 ConnectTo []Content
21631 InsideTint color.NRGBA
21632 Level uint8 // Must be < 128.
21634 Translucent bool // Sunlight is scattered and becomes normal light.
21635 Transparent bool // Sunlight isn't scattered.
21648 LiquidType LiquidType
21651 Viscosity uint8 // 0-7
21657 DrawBox, ColBox, SelBox NodeBox
21659 FootstepSnd, DiggingSnd, DugSnd SoundDef
21669 }))(obj)).DrawBox).deserialize(r)
21674 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21676 if err := pcall(func() {
21689 //mt:const uint8(6)
21691 OverlayTiles [6]TileDef
21692 //mt:const uint8(6)
21693 SpecialTiles [6]TileDef
21700 ConnectTo []Content
21701 InsideTint color.NRGBA
21702 Level uint8 // Must be < 128.
21704 Translucent bool // Sunlight is scattered and becomes normal light.
21705 Transparent bool // Sunlight isn't scattered.
21718 LiquidType LiquidType
21721 Viscosity uint8 // 0-7
21727 DrawBox, ColBox, SelBox NodeBox
21729 FootstepSnd, DiggingSnd, DugSnd SoundDef
21739 }))(obj)).ColBox).deserialize(r)
21744 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21746 if err := pcall(func() {
21759 //mt:const uint8(6)
21761 OverlayTiles [6]TileDef
21762 //mt:const uint8(6)
21763 SpecialTiles [6]TileDef
21770 ConnectTo []Content
21771 InsideTint color.NRGBA
21772 Level uint8 // Must be < 128.
21774 Translucent bool // Sunlight is scattered and becomes normal light.
21775 Transparent bool // Sunlight isn't scattered.
21788 LiquidType LiquidType
21791 Viscosity uint8 // 0-7
21797 DrawBox, ColBox, SelBox NodeBox
21799 FootstepSnd, DiggingSnd, DugSnd SoundDef
21809 }))(obj)).SelBox).deserialize(r)
21814 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21816 if err := pcall(func() {
21829 //mt:const uint8(6)
21831 OverlayTiles [6]TileDef
21832 //mt:const uint8(6)
21833 SpecialTiles [6]TileDef
21840 ConnectTo []Content
21841 InsideTint color.NRGBA
21842 Level uint8 // Must be < 128.
21844 Translucent bool // Sunlight is scattered and becomes normal light.
21845 Transparent bool // Sunlight isn't scattered.
21858 LiquidType LiquidType
21861 Viscosity uint8 // 0-7
21867 DrawBox, ColBox, SelBox NodeBox
21869 FootstepSnd, DiggingSnd, DugSnd SoundDef
21879 }))(obj)).FootstepSnd).deserialize(r)
21884 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21886 if err := pcall(func() {
21899 //mt:const uint8(6)
21901 OverlayTiles [6]TileDef
21902 //mt:const uint8(6)
21903 SpecialTiles [6]TileDef
21910 ConnectTo []Content
21911 InsideTint color.NRGBA
21912 Level uint8 // Must be < 128.
21914 Translucent bool // Sunlight is scattered and becomes normal light.
21915 Transparent bool // Sunlight isn't scattered.
21928 LiquidType LiquidType
21931 Viscosity uint8 // 0-7
21937 DrawBox, ColBox, SelBox NodeBox
21939 FootstepSnd, DiggingSnd, DugSnd SoundDef
21949 }))(obj)).DiggingSnd).deserialize(r)
21954 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21956 if err := pcall(func() {
21969 //mt:const uint8(6)
21971 OverlayTiles [6]TileDef
21972 //mt:const uint8(6)
21973 SpecialTiles [6]TileDef
21980 ConnectTo []Content
21981 InsideTint color.NRGBA
21982 Level uint8 // Must be < 128.
21984 Translucent bool // Sunlight is scattered and becomes normal light.
21985 Transparent bool // Sunlight isn't scattered.
21998 LiquidType LiquidType
22001 Viscosity uint8 // 0-7
22007 DrawBox, ColBox, SelBox NodeBox
22009 FootstepSnd, DiggingSnd, DugSnd SoundDef
22019 }))(obj)).DugSnd).deserialize(r)
22024 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
22027 p := &(*(*(struct {
22039 //mt:const uint8(6)
22041 OverlayTiles [6]TileDef
22042 //mt:const uint8(6)
22043 SpecialTiles [6]TileDef
22050 ConnectTo []Content
22051 InsideTint color.NRGBA
22052 Level uint8 // Must be < 128.
22054 Translucent bool // Sunlight is scattered and becomes normal light.
22055 Transparent bool // Sunlight isn't scattered.
22068 LiquidType LiquidType
22071 Viscosity uint8 // 0-7
22077 DrawBox, ColBox, SelBox NodeBox
22079 FootstepSnd, DiggingSnd, DugSnd SoundDef
22089 }))(obj)).LegacyFaceDir
22090 switch n := read8(r); n {
22096 chk(fmt.Errorf("invalid bool: %d", n))
22101 p := &(*(*(struct {
22113 //mt:const uint8(6)
22115 OverlayTiles [6]TileDef
22116 //mt:const uint8(6)
22117 SpecialTiles [6]TileDef
22124 ConnectTo []Content
22125 InsideTint color.NRGBA
22126 Level uint8 // Must be < 128.
22128 Translucent bool // Sunlight is scattered and becomes normal light.
22129 Transparent bool // Sunlight isn't scattered.
22142 LiquidType LiquidType
22145 Viscosity uint8 // 0-7
22151 DrawBox, ColBox, SelBox NodeBox
22153 FootstepSnd, DiggingSnd, DugSnd SoundDef
22163 }))(obj)).LegacyMounted
22164 switch n := read8(r); n {
22170 chk(fmt.Errorf("invalid bool: %d", n))
22174 var local269 []uint8
22175 var local270 uint16
22180 (local269) = make([]uint8, local270)
22182 _, err := io.ReadFull(r, (local269)[:])
22197 //mt:const uint8(6)
22199 OverlayTiles [6]TileDef
22200 //mt:const uint8(6)
22201 SpecialTiles [6]TileDef
22208 ConnectTo []Content
22209 InsideTint color.NRGBA
22210 Level uint8 // Must be < 128.
22212 Translucent bool // Sunlight is scattered and becomes normal light.
22213 Transparent bool // Sunlight isn't scattered.
22226 LiquidType LiquidType
22229 Viscosity uint8 // 0-7
22235 DrawBox, ColBox, SelBox NodeBox
22237 FootstepSnd, DiggingSnd, DugSnd SoundDef
22247 }))(obj)).DigPredict) = string(local269)
22249 p := &(*(*(struct {
22261 //mt:const uint8(6)
22263 OverlayTiles [6]TileDef
22264 //mt:const uint8(6)
22265 SpecialTiles [6]TileDef
22272 ConnectTo []Content
22273 InsideTint color.NRGBA
22274 Level uint8 // Must be < 128.
22276 Translucent bool // Sunlight is scattered and becomes normal light.
22277 Transparent bool // Sunlight isn't scattered.
22290 LiquidType LiquidType
22293 Viscosity uint8 // 0-7
22299 DrawBox, ColBox, SelBox NodeBox
22301 FootstepSnd, DiggingSnd, DugSnd SoundDef
22314 if err := pcall(func() {
22327 //mt:const uint8(6)
22329 OverlayTiles [6]TileDef
22330 //mt:const uint8(6)
22331 SpecialTiles [6]TileDef
22338 ConnectTo []Content
22339 InsideTint color.NRGBA
22340 Level uint8 // Must be < 128.
22342 Translucent bool // Sunlight is scattered and becomes normal light.
22343 Transparent bool // Sunlight isn't scattered.
22356 LiquidType LiquidType
22359 Viscosity uint8 // 0-7
22365 DrawBox, ColBox, SelBox NodeBox
22367 FootstepSnd, DiggingSnd, DugSnd SoundDef
22377 }))(obj)).AlphaUse).deserialize(r)
22382 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
22385 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22390 func (obj *PointedNode) serialize(w io.Writer) {
22391 for local271 := range (*(*(struct {
22392 Under, Above [3]int16
22395 x := ((*(*(struct {
22396 Under, Above [3]int16
22397 }))(obj)).Under)[local271]
22398 write16(w, uint16(x))
22401 for local272 := range (*(*(struct {
22402 Under, Above [3]int16
22405 x := ((*(*(struct {
22406 Under, Above [3]int16
22407 }))(obj)).Above)[local272]
22408 write16(w, uint16(x))
22413 func (obj *PointedNode) deserialize(r io.Reader) {
22414 for local273 := range (*(*(struct {
22415 Under, Above [3]int16
22418 p := &((*(*(struct {
22419 Under, Above [3]int16
22420 }))(obj)).Under)[local273]
22421 *p = int16(read16(r))
22424 for local274 := range (*(*(struct {
22425 Under, Above [3]int16
22428 p := &((*(*(struct {
22429 Under, Above [3]int16
22430 }))(obj)).Above)[local274]
22431 *p = int16(read16(r))
22436 func (obj *PointedAO) serialize(w io.Writer) {
22437 if err := pcall(func() {
22440 }))(obj)).ID).serialize(w)
22445 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22449 func (obj *PointedAO) deserialize(r io.Reader) {
22450 if err := pcall(func() {
22453 }))(obj)).ID).deserialize(r)
22458 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22462 func (obj *CompressionModes) serialize(w io.Writer) {
22464 x := *(*(uint16))(obj)
22465 write16(w, uint16(x))
22469 func (obj *CompressionModes) deserialize(r io.Reader) {
22471 p := &*(*(uint16))(obj)
22476 func (obj *PlayerPos) serialize(w io.Writer) {
22477 for local275 := range (*(*(struct {
22478 Pos100, Vel100 [3]int32
22479 Pitch100, Yaw100 int32
22482 WantedRange uint8 // in MapBlks.
22485 x := ((*(*(struct {
22486 Pos100, Vel100 [3]int32
22487 Pitch100, Yaw100 int32
22490 WantedRange uint8 // in MapBlks.
22491 }))(obj)).Pos100)[local275]
22492 write32(w, uint32(x))
22495 for local276 := range (*(*(struct {
22496 Pos100, Vel100 [3]int32
22497 Pitch100, Yaw100 int32
22500 WantedRange uint8 // in MapBlks.
22503 x := ((*(*(struct {
22504 Pos100, Vel100 [3]int32
22505 Pitch100, Yaw100 int32
22508 WantedRange uint8 // in MapBlks.
22509 }))(obj)).Vel100)[local276]
22510 write32(w, uint32(x))
22515 Pos100, Vel100 [3]int32
22516 Pitch100, Yaw100 int32
22519 WantedRange uint8 // in MapBlks.
22521 write32(w, uint32(x))
22525 Pos100, Vel100 [3]int32
22526 Pitch100, Yaw100 int32
22529 WantedRange uint8 // in MapBlks.
22531 write32(w, uint32(x))
22533 if err := pcall(func() {
22535 Pos100, Vel100 [3]int32
22536 Pitch100, Yaw100 int32
22539 WantedRange uint8 // in MapBlks.
22540 }))(obj)).Keys).serialize(w)
22545 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22549 Pos100, Vel100 [3]int32
22550 Pitch100, Yaw100 int32
22553 WantedRange uint8 // in MapBlks.
22555 write8(w, uint8(x))
22559 Pos100, Vel100 [3]int32
22560 Pitch100, Yaw100 int32
22563 WantedRange uint8 // in MapBlks.
22564 }))(obj)).WantedRange
22565 write8(w, uint8(x))
22569 func (obj *PlayerPos) deserialize(r io.Reader) {
22570 for local277 := range (*(*(struct {
22571 Pos100, Vel100 [3]int32
22572 Pitch100, Yaw100 int32
22575 WantedRange uint8 // in MapBlks.
22578 p := &((*(*(struct {
22579 Pos100, Vel100 [3]int32
22580 Pitch100, Yaw100 int32
22583 WantedRange uint8 // in MapBlks.
22584 }))(obj)).Pos100)[local277]
22585 *p = int32(read32(r))
22588 for local278 := range (*(*(struct {
22589 Pos100, Vel100 [3]int32
22590 Pitch100, Yaw100 int32
22593 WantedRange uint8 // in MapBlks.
22596 p := &((*(*(struct {
22597 Pos100, Vel100 [3]int32
22598 Pitch100, Yaw100 int32
22601 WantedRange uint8 // in MapBlks.
22602 }))(obj)).Vel100)[local278]
22603 *p = int32(read32(r))
22607 p := &(*(*(struct {
22608 Pos100, Vel100 [3]int32
22609 Pitch100, Yaw100 int32
22612 WantedRange uint8 // in MapBlks.
22614 *p = int32(read32(r))
22617 p := &(*(*(struct {
22618 Pos100, Vel100 [3]int32
22619 Pitch100, Yaw100 int32
22622 WantedRange uint8 // in MapBlks.
22624 *p = int32(read32(r))
22626 if err := pcall(func() {
22628 Pos100, Vel100 [3]int32
22629 Pitch100, Yaw100 int32
22632 WantedRange uint8 // in MapBlks.
22633 }))(obj)).Keys).deserialize(r)
22638 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22641 p := &(*(*(struct {
22642 Pos100, Vel100 [3]int32
22643 Pitch100, Yaw100 int32
22646 WantedRange uint8 // in MapBlks.
22651 p := &(*(*(struct {
22652 Pos100, Vel100 [3]int32
22653 Pitch100, Yaw100 int32
22656 WantedRange uint8 // in MapBlks.
22657 }))(obj)).WantedRange
22662 func (obj *Interaction) serialize(w io.Writer) {
22664 x := *(*(uint8))(obj)
22665 write8(w, uint8(x))
22669 func (obj *Interaction) deserialize(r io.Reader) {
22671 p := &*(*(uint8))(obj)
22676 func (obj *SoundID) serialize(w io.Writer) {
22678 x := *(*(int32))(obj)
22679 write32(w, uint32(x))
22683 func (obj *SoundID) deserialize(r io.Reader) {
22685 p := &*(*(int32))(obj)
22686 *p = int32(read32(r))
22690 func (obj *Field) serialize(w io.Writer) {
22691 if len(([]byte((*(*(struct {
22696 }))(obj)).Name))) > math.MaxUint16 {
22700 x := uint16(len(([]byte((*(*(struct {
22706 write16(w, uint16(x))
22709 _, err := w.Write(([]byte((*(*(struct {
22714 }))(obj)).Name))[:])
22717 if len(([]byte((*(*(struct {
22722 }))(obj)).Value))) > math.MaxUint32 {
22726 x := uint32(len(([]byte((*(*(struct {
22731 }))(obj)).Value))))
22732 write32(w, uint32(x))
22735 _, err := w.Write(([]byte((*(*(struct {
22740 }))(obj)).Value))[:])
22745 func (obj *Field) deserialize(r io.Reader) {
22746 var local279 []uint8
22747 var local280 uint16
22752 (local279) = make([]uint8, local280)
22754 _, err := io.ReadFull(r, (local279)[:])
22762 }))(obj)).Name) = string(local279)
22763 var local281 []uint8
22764 var local282 uint32
22769 (local281) = make([]uint8, local282)
22771 _, err := io.ReadFull(r, (local281)[:])
22779 }))(obj)).Value) = string(local281)
22782 func (obj *AuthMethods) serialize(w io.Writer) {
22784 x := *(*(uint32))(obj)
22785 write32(w, uint32(x))
22789 func (obj *AuthMethods) deserialize(r io.Reader) {
22791 p := &*(*(uint32))(obj)
22796 func (obj *Pos) serialize(w io.Writer) {
22797 if err := pcall(func() {
22798 (*(*(Vec))(obj)).serialize(w)
22803 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22807 func (obj *Pos) deserialize(r io.Reader) {
22808 if err := pcall(func() {
22809 (*(*(Vec))(obj)).deserialize(r)
22814 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22818 func (obj *KickReason) serialize(w io.Writer) {
22820 x := *(*(uint8))(obj)
22821 write8(w, uint8(x))
22825 func (obj *KickReason) deserialize(r io.Reader) {
22827 p := &*(*(uint8))(obj)
22832 func (obj *MapBlk) serialize(w io.Writer) {
22833 if err := pcall(func() {
22836 LitFrom LitFromBlks
22839 Param0 [4096]Content
22843 NodeMetas map[uint16]*NodeMeta
22844 }))(obj)).Flags).serialize(w)
22849 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
22851 if err := pcall(func() {
22854 LitFrom LitFromBlks
22857 Param0 [4096]Content
22861 NodeMetas map[uint16]*NodeMeta
22862 }))(obj)).LitFrom).serialize(w)
22867 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
22870 local283 := uint8(2) // Size of param0 in bytes.
22873 write8(w, uint8(x))
22877 local284 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22880 write8(w, uint8(x))
22884 w := zstd.NewWriter(w)
22885 for local285 := range (*(*(struct {
22887 LitFrom LitFromBlks
22890 Param0 [4096]Content
22894 NodeMetas map[uint16]*NodeMeta
22896 if err := pcall(func() {
22899 LitFrom LitFromBlks
22902 Param0 [4096]Content
22906 NodeMetas map[uint16]*NodeMeta
22907 }))(obj)).Param0)[local285]).serialize(w)
22912 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
22916 _, err := w.Write(((*(*(struct {
22918 LitFrom LitFromBlks
22921 Param0 [4096]Content
22925 NodeMetas map[uint16]*NodeMeta
22926 }))(obj)).Param1)[:])
22930 _, err := w.Write(((*(*(struct {
22932 LitFrom LitFromBlks
22935 Param0 [4096]Content
22939 NodeMetas map[uint16]*NodeMeta
22940 }))(obj)).Param2)[:])
22948 LitFrom LitFromBlks
22951 Param0 [4096]Content
22955 NodeMetas map[uint16]*NodeMeta
22956 }))(obj)).NodeMetas
22958 w := zlib.NewWriter(w)
22964 // len(map[uint16]...) always < math.MaxUint16
22965 write16(w, uint16(len(x)))
22966 keys := make([]uint16, 0, len(x))
22967 for key := range x {
22968 keys = append(keys, key)
22970 sort.Slice(keys, func(i, j int) bool {
22971 i2pos := func(i int) [3]int16 {
22972 return Blkpos2Pos([3]int16{}, keys[i])
22975 p, q := i2pos(i), i2pos(j)
22988 for _, key := range keys {
22990 chk(serialize(w, x[key]))
22999 local286 := uint8(2) // version
23002 write8(w, uint8(x))
23007 func (obj *MapBlk) deserialize(r io.Reader) {
23008 if err := pcall(func() {
23011 LitFrom LitFromBlks
23014 Param0 [4096]Content
23018 NodeMetas map[uint16]*NodeMeta
23019 }))(obj)).Flags).deserialize(r)
23024 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
23026 if err := pcall(func() {
23029 LitFrom LitFromBlks
23032 Param0 [4096]Content
23036 NodeMetas map[uint16]*NodeMeta
23037 }))(obj)).LitFrom).deserialize(r)
23042 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
23046 local288 := uint8(2) // Size of param0 in bytes.
23051 if local287 != local288 {
23052 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local287))
23057 local290 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23062 if local289 != local290 {
23063 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local289))
23067 r, err := zstd.NewReader(byteReader{r})
23069 for local291 := range (*(*(struct {
23071 LitFrom LitFromBlks
23074 Param0 [4096]Content
23078 NodeMetas map[uint16]*NodeMeta
23080 if err := pcall(func() {
23083 LitFrom LitFromBlks
23086 Param0 [4096]Content
23090 NodeMetas map[uint16]*NodeMeta
23091 }))(obj)).Param0)[local291]).deserialize(r)
23096 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23100 _, err := io.ReadFull(r, ((*(*(struct {
23102 LitFrom LitFromBlks
23105 Param0 [4096]Content
23109 NodeMetas map[uint16]*NodeMeta
23110 }))(obj)).Param1)[:])
23114 _, err := io.ReadFull(r, ((*(*(struct {
23116 LitFrom LitFromBlks
23119 Param0 [4096]Content
23123 NodeMetas map[uint16]*NodeMeta
23124 }))(obj)).Param2)[:])
23130 p := &(*(*(struct {
23132 LitFrom LitFromBlks
23135 Param0 [4096]Content
23139 NodeMetas map[uint16]*NodeMeta
23140 }))(obj)).NodeMetas
23142 r, err := zlib.NewReader(byteReader{r})
23145 switch ver := read8(r); ver {
23150 *p = make(map[uint16]*NodeMeta, n)
23153 nm := new(NodeMeta)
23154 chk(deserialize(r, nm))
23158 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23167 local293 := uint8(2) // version
23172 if local292 != local293 {
23173 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local292))
23178 func (obj *Node) serialize(w io.Writer) {
23179 if err := pcall(func() {
23182 Param1, Param2 uint8
23183 }))(obj)).Param0).serialize(w)
23188 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23193 Param1, Param2 uint8
23195 write8(w, uint8(x))
23200 Param1, Param2 uint8
23202 write8(w, uint8(x))
23206 func (obj *Node) deserialize(r io.Reader) {
23207 if err := pcall(func() {
23210 Param1, Param2 uint8
23211 }))(obj)).Param0).deserialize(r)
23216 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23219 p := &(*(*(struct {
23221 Param1, Param2 uint8
23226 p := &(*(*(struct {
23228 Param1, Param2 uint8
23234 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23236 x := *(*(uint64))(obj)
23237 write64(w, uint64(x))
23242 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23244 p := &*(*(uint64))(obj)
23250 func (obj *Vec) serialize(w io.Writer) {
23251 for local294 := range *(*([3]float32))(obj) {
23253 x := (*(*([3]float32))(obj))[local294]
23254 write32(w, math.Float32bits(x))
23259 func (obj *Vec) deserialize(r io.Reader) {
23260 for local295 := range *(*([3]float32))(obj) {
23262 p := &(*(*([3]float32))(obj))[local295]
23263 *p = math.Float32frombits(read32(r))
23268 func (obj *ChatMsgType) serialize(w io.Writer) {
23270 x := *(*(uint8))(obj)
23271 write8(w, uint8(x))
23275 func (obj *ChatMsgType) deserialize(r io.Reader) {
23277 p := &*(*(uint8))(obj)
23282 func (obj *AOID) serialize(w io.Writer) {
23284 x := *(*(uint16))(obj)
23285 write16(w, uint16(x))
23289 func (obj *AOID) deserialize(r io.Reader) {
23291 p := &*(*(uint16))(obj)
23296 func (obj *AOAdd) serialize(w io.Writer) {
23297 if err := pcall(func() {
23300 //mt:const genericCAO
23302 InitData AOInitData
23303 }))(obj)).ID).serialize(w)
23308 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23311 local296 := genericCAO
23312 if err := pcall(func() {
23313 (local296).serialize(w)
23318 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23323 w := new(bytes.Buffer)
23324 if err := pcall(func() {
23327 //mt:const genericCAO
23329 InitData AOInitData
23330 }))(obj)).InitData).serialize(w)
23335 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23340 if len((buf.Bytes())) > math.MaxUint32 {
23344 x := uint32(len((buf.Bytes())))
23345 write32(w, uint32(x))
23348 _, err := w.Write((buf.Bytes())[:])
23355 func (obj *AOAdd) deserialize(r io.Reader) {
23356 if err := pcall(func() {
23359 //mt:const genericCAO
23361 InitData AOInitData
23362 }))(obj)).ID).deserialize(r)
23367 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23370 var local297 aoType
23371 local298 := genericCAO
23372 if err := pcall(func() {
23373 (local297).deserialize(r)
23378 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23380 if local297 != local298 {
23381 chk(fmt.Errorf("const %v: %v", "genericCAO", local297))
23390 r := &io.LimitedReader{R: r, N: int64(n)}
23391 if err := pcall(func() {
23394 //mt:const genericCAO
23396 InitData AOInitData
23397 }))(obj)).InitData).deserialize(r)
23402 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23405 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23410 func (obj *IDAOMsg) serialize(w io.Writer) {
23411 if err := pcall(func() {
23416 }))(obj)).ID).serialize(w)
23421 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23425 w := new(bytes.Buffer)
23438 if len((buf.Bytes())) > math.MaxUint16 {
23442 x := uint16(len((buf.Bytes())))
23443 write16(w, uint16(x))
23446 _, err := w.Write((buf.Bytes())[:])
23453 func (obj *IDAOMsg) deserialize(r io.Reader) {
23454 if err := pcall(func() {
23459 }))(obj)).ID).deserialize(r)
23464 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23472 r := &io.LimitedReader{R: r, N: int64(n)}
23474 p := &(*(*(struct {
23481 *p, err = readAOMsg(r)
23487 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23492 func (obj *ItemDef) serialize(w io.Writer) {
23495 w := new(bytes.Buffer)
23497 local299 := uint8(6)
23500 write8(w, uint8(x))
23503 if err := pcall(func() {
23509 InvImg, WieldImg Texture
23510 WieldScale [3]float32
23515 CanPointLiquids bool
23521 PlacePredict string
23523 PlaceSnd, PlaceFailSnd SoundDef
23527 // Set index in Palette with "palette_index" item meta field,
23528 // this overrides Color.
23532 // Texture overlays.
23533 InvOverlay, WieldOverlay Texture
23536 }))(obj)).Type).serialize(w)
23541 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
23543 if len(([]byte((*(*(struct {
23548 InvImg, WieldImg Texture
23549 WieldScale [3]float32
23554 CanPointLiquids bool
23560 PlacePredict string
23562 PlaceSnd, PlaceFailSnd SoundDef
23566 // Set index in Palette with "palette_index" item meta field,
23567 // this overrides Color.
23571 // Texture overlays.
23572 InvOverlay, WieldOverlay Texture
23575 }))(obj)).Name))) > math.MaxUint16 {
23579 x := uint16(len(([]byte((*(*(struct {
23584 InvImg, WieldImg Texture
23585 WieldScale [3]float32
23590 CanPointLiquids bool
23596 PlacePredict string
23598 PlaceSnd, PlaceFailSnd SoundDef
23602 // Set index in Palette with "palette_index" item meta field,
23603 // this overrides Color.
23607 // Texture overlays.
23608 InvOverlay, WieldOverlay Texture
23612 write16(w, uint16(x))
23615 _, err := w.Write(([]byte((*(*(struct {
23620 InvImg, WieldImg Texture
23621 WieldScale [3]float32
23626 CanPointLiquids bool
23632 PlacePredict string
23634 PlaceSnd, PlaceFailSnd SoundDef
23638 // Set index in Palette with "palette_index" item meta field,
23639 // this overrides Color.
23643 // Texture overlays.
23644 InvOverlay, WieldOverlay Texture
23647 }))(obj)).Name))[:])
23650 if len(([]byte((*(*(struct {
23655 InvImg, WieldImg Texture
23656 WieldScale [3]float32
23661 CanPointLiquids bool
23667 PlacePredict string
23669 PlaceSnd, PlaceFailSnd SoundDef
23673 // Set index in Palette with "palette_index" item meta field,
23674 // this overrides Color.
23678 // Texture overlays.
23679 InvOverlay, WieldOverlay Texture
23682 }))(obj)).Desc))) > math.MaxUint16 {
23686 x := uint16(len(([]byte((*(*(struct {
23691 InvImg, WieldImg Texture
23692 WieldScale [3]float32
23697 CanPointLiquids bool
23703 PlacePredict string
23705 PlaceSnd, PlaceFailSnd SoundDef
23709 // Set index in Palette with "palette_index" item meta field,
23710 // this overrides Color.
23714 // Texture overlays.
23715 InvOverlay, WieldOverlay Texture
23719 write16(w, uint16(x))
23722 _, err := w.Write(([]byte((*(*(struct {
23727 InvImg, WieldImg Texture
23728 WieldScale [3]float32
23733 CanPointLiquids bool
23739 PlacePredict string
23741 PlaceSnd, PlaceFailSnd SoundDef
23745 // Set index in Palette with "palette_index" item meta field,
23746 // this overrides Color.
23750 // Texture overlays.
23751 InvOverlay, WieldOverlay Texture
23754 }))(obj)).Desc))[:])
23757 if err := pcall(func() {
23763 InvImg, WieldImg Texture
23764 WieldScale [3]float32
23769 CanPointLiquids bool
23775 PlacePredict string
23777 PlaceSnd, PlaceFailSnd SoundDef
23781 // Set index in Palette with "palette_index" item meta field,
23782 // this overrides Color.
23786 // Texture overlays.
23787 InvOverlay, WieldOverlay Texture
23790 }))(obj)).InvImg).serialize(w)
23795 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23797 if err := pcall(func() {
23803 InvImg, WieldImg Texture
23804 WieldScale [3]float32
23809 CanPointLiquids bool
23815 PlacePredict string
23817 PlaceSnd, PlaceFailSnd SoundDef
23821 // Set index in Palette with "palette_index" item meta field,
23822 // this overrides Color.
23826 // Texture overlays.
23827 InvOverlay, WieldOverlay Texture
23830 }))(obj)).WieldImg).serialize(w)
23835 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23837 for local300 := range (*(*(struct {
23842 InvImg, WieldImg Texture
23843 WieldScale [3]float32
23848 CanPointLiquids bool
23854 PlacePredict string
23856 PlaceSnd, PlaceFailSnd SoundDef
23860 // Set index in Palette with "palette_index" item meta field,
23861 // this overrides Color.
23865 // Texture overlays.
23866 InvOverlay, WieldOverlay Texture
23869 }))(obj)).WieldScale {
23871 x := ((*(*(struct {
23876 InvImg, WieldImg Texture
23877 WieldScale [3]float32
23882 CanPointLiquids bool
23888 PlacePredict string
23890 PlaceSnd, PlaceFailSnd SoundDef
23894 // Set index in Palette with "palette_index" item meta field,
23895 // this overrides Color.
23899 // Texture overlays.
23900 InvOverlay, WieldOverlay Texture
23903 }))(obj)).WieldScale)[local300]
23904 write32(w, math.Float32bits(x))
23913 InvImg, WieldImg Texture
23914 WieldScale [3]float32
23919 CanPointLiquids bool
23925 PlacePredict string
23927 PlaceSnd, PlaceFailSnd SoundDef
23931 // Set index in Palette with "palette_index" item meta field,
23932 // this overrides Color.
23936 // Texture overlays.
23937 InvOverlay, WieldOverlay Texture
23941 write16(w, uint16(x))
23949 InvImg, WieldImg Texture
23950 WieldScale [3]float32
23955 CanPointLiquids bool
23961 PlacePredict string
23963 PlaceSnd, PlaceFailSnd SoundDef
23967 // Set index in Palette with "palette_index" item meta field,
23968 // this overrides Color.
23972 // Texture overlays.
23973 InvOverlay, WieldOverlay Texture
23990 InvImg, WieldImg Texture
23991 WieldScale [3]float32
23996 CanPointLiquids bool
24002 PlacePredict string
24004 PlaceSnd, PlaceFailSnd SoundDef
24008 // Set index in Palette with "palette_index" item meta field,
24009 // this overrides Color.
24013 // Texture overlays.
24014 InvOverlay, WieldOverlay Texture
24017 }))(obj)).CanPointLiquids
24025 if err := pcall(func() {
24031 InvImg, WieldImg Texture
24032 WieldScale [3]float32
24037 CanPointLiquids bool
24043 PlacePredict string
24045 PlaceSnd, PlaceFailSnd SoundDef
24049 // Set index in Palette with "palette_index" item meta field,
24050 // this overrides Color.
24054 // Texture overlays.
24055 InvOverlay, WieldOverlay Texture
24058 }))(obj)).ToolCaps).serialize(w)
24063 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
24065 if len(((*(*(struct {
24070 InvImg, WieldImg Texture
24071 WieldScale [3]float32
24076 CanPointLiquids bool
24082 PlacePredict string
24084 PlaceSnd, PlaceFailSnd SoundDef
24088 // Set index in Palette with "palette_index" item meta field,
24089 // this overrides Color.
24093 // Texture overlays.
24094 InvOverlay, WieldOverlay Texture
24097 }))(obj)).Groups)) > math.MaxUint16 {
24101 x := uint16(len(((*(*(struct {
24106 InvImg, WieldImg Texture
24107 WieldScale [3]float32
24112 CanPointLiquids bool
24118 PlacePredict string
24120 PlaceSnd, PlaceFailSnd SoundDef
24124 // Set index in Palette with "palette_index" item meta field,
24125 // this overrides Color.
24129 // Texture overlays.
24130 InvOverlay, WieldOverlay Texture
24133 }))(obj)).Groups)))
24134 write16(w, uint16(x))
24136 for local301 := range (*(*(struct {
24141 InvImg, WieldImg Texture
24142 WieldScale [3]float32
24147 CanPointLiquids bool
24153 PlacePredict string
24155 PlaceSnd, PlaceFailSnd SoundDef
24159 // Set index in Palette with "palette_index" item meta field,
24160 // this overrides Color.
24164 // Texture overlays.
24165 InvOverlay, WieldOverlay Texture
24169 if err := pcall(func() {
24175 InvImg, WieldImg Texture
24176 WieldScale [3]float32
24181 CanPointLiquids bool
24187 PlacePredict string
24189 PlaceSnd, PlaceFailSnd SoundDef
24193 // Set index in Palette with "palette_index" item meta field,
24194 // this overrides Color.
24198 // Texture overlays.
24199 InvOverlay, WieldOverlay Texture
24202 }))(obj)).Groups)[local301]).serialize(w)
24207 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
24210 if len(([]byte((*(*(struct {
24215 InvImg, WieldImg Texture
24216 WieldScale [3]float32
24221 CanPointLiquids bool
24227 PlacePredict string
24229 PlaceSnd, PlaceFailSnd SoundDef
24233 // Set index in Palette with "palette_index" item meta field,
24234 // this overrides Color.
24238 // Texture overlays.
24239 InvOverlay, WieldOverlay Texture
24242 }))(obj)).PlacePredict))) > math.MaxUint16 {
24246 x := uint16(len(([]byte((*(*(struct {
24251 InvImg, WieldImg Texture
24252 WieldScale [3]float32
24257 CanPointLiquids bool
24263 PlacePredict string
24265 PlaceSnd, PlaceFailSnd SoundDef
24269 // Set index in Palette with "palette_index" item meta field,
24270 // this overrides Color.
24274 // Texture overlays.
24275 InvOverlay, WieldOverlay Texture
24278 }))(obj)).PlacePredict))))
24279 write16(w, uint16(x))
24282 _, err := w.Write(([]byte((*(*(struct {
24287 InvImg, WieldImg Texture
24288 WieldScale [3]float32
24293 CanPointLiquids bool
24299 PlacePredict string
24301 PlaceSnd, PlaceFailSnd SoundDef
24305 // Set index in Palette with "palette_index" item meta field,
24306 // this overrides Color.
24310 // Texture overlays.
24311 InvOverlay, WieldOverlay Texture
24314 }))(obj)).PlacePredict))[:])
24317 if err := pcall(func() {
24323 InvImg, WieldImg Texture
24324 WieldScale [3]float32
24329 CanPointLiquids bool
24335 PlacePredict string
24337 PlaceSnd, PlaceFailSnd SoundDef
24341 // Set index in Palette with "palette_index" item meta field,
24342 // this overrides Color.
24346 // Texture overlays.
24347 InvOverlay, WieldOverlay Texture
24350 }))(obj)).PlaceSnd).serialize(w)
24355 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24357 if err := pcall(func() {
24363 InvImg, WieldImg Texture
24364 WieldScale [3]float32
24369 CanPointLiquids bool
24375 PlacePredict string
24377 PlaceSnd, PlaceFailSnd SoundDef
24381 // Set index in Palette with "palette_index" item meta field,
24382 // this overrides Color.
24386 // Texture overlays.
24387 InvOverlay, WieldOverlay Texture
24390 }))(obj)).PlaceFailSnd).serialize(w)
24395 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24403 InvImg, WieldImg Texture
24404 WieldScale [3]float32
24409 CanPointLiquids bool
24415 PlacePredict string
24417 PlaceSnd, PlaceFailSnd SoundDef
24421 // Set index in Palette with "palette_index" item meta field,
24422 // this overrides Color.
24426 // Texture overlays.
24427 InvOverlay, WieldOverlay Texture
24430 }))(obj)).PointRange
24431 write32(w, math.Float32bits(x))
24433 if err := pcall(func() {
24439 InvImg, WieldImg Texture
24440 WieldScale [3]float32
24445 CanPointLiquids bool
24451 PlacePredict string
24453 PlaceSnd, PlaceFailSnd SoundDef
24457 // Set index in Palette with "palette_index" item meta field,
24458 // this overrides Color.
24462 // Texture overlays.
24463 InvOverlay, WieldOverlay Texture
24466 }))(obj)).Palette).serialize(w)
24471 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24479 InvImg, WieldImg Texture
24480 WieldScale [3]float32
24485 CanPointLiquids bool
24491 PlacePredict string
24493 PlaceSnd, PlaceFailSnd SoundDef
24497 // Set index in Palette with "palette_index" item meta field,
24498 // this overrides Color.
24502 // Texture overlays.
24503 InvOverlay, WieldOverlay Texture
24507 w.Write([]byte{x.A, x.R, x.G, x.B})
24510 if err := pcall(func() {
24516 InvImg, WieldImg Texture
24517 WieldScale [3]float32
24522 CanPointLiquids bool
24528 PlacePredict string
24530 PlaceSnd, PlaceFailSnd SoundDef
24534 // Set index in Palette with "palette_index" item meta field,
24535 // this overrides Color.
24539 // Texture overlays.
24540 InvOverlay, WieldOverlay Texture
24543 }))(obj)).InvOverlay).serialize(w)
24548 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24550 if err := pcall(func() {
24556 InvImg, WieldImg Texture
24557 WieldScale [3]float32
24562 CanPointLiquids bool
24568 PlacePredict string
24570 PlaceSnd, PlaceFailSnd SoundDef
24574 // Set index in Palette with "palette_index" item meta field,
24575 // this overrides Color.
24579 // Texture overlays.
24580 InvOverlay, WieldOverlay Texture
24583 }))(obj)).WieldOverlay).serialize(w)
24588 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24590 if len(([]byte((*(*(struct {
24595 InvImg, WieldImg Texture
24596 WieldScale [3]float32
24601 CanPointLiquids bool
24607 PlacePredict string
24609 PlaceSnd, PlaceFailSnd SoundDef
24613 // Set index in Palette with "palette_index" item meta field,
24614 // this overrides Color.
24618 // Texture overlays.
24619 InvOverlay, WieldOverlay Texture
24622 }))(obj)).ShortDesc))) > math.MaxUint16 {
24626 x := uint16(len(([]byte((*(*(struct {
24631 InvImg, WieldImg Texture
24632 WieldScale [3]float32
24637 CanPointLiquids bool
24643 PlacePredict string
24645 PlaceSnd, PlaceFailSnd SoundDef
24649 // Set index in Palette with "palette_index" item meta field,
24650 // this overrides Color.
24654 // Texture overlays.
24655 InvOverlay, WieldOverlay Texture
24658 }))(obj)).ShortDesc))))
24659 write16(w, uint16(x))
24662 _, err := w.Write(([]byte((*(*(struct {
24667 InvImg, WieldImg Texture
24668 WieldScale [3]float32
24673 CanPointLiquids bool
24679 PlacePredict string
24681 PlaceSnd, PlaceFailSnd SoundDef
24685 // Set index in Palette with "palette_index" item meta field,
24686 // this overrides Color.
24690 // Texture overlays.
24691 InvOverlay, WieldOverlay Texture
24694 }))(obj)).ShortDesc))[:])
24700 if len((buf.Bytes())) > math.MaxUint16 {
24704 x := uint16(len((buf.Bytes())))
24705 write16(w, uint16(x))
24708 _, err := w.Write((buf.Bytes())[:])
24715 func (obj *ItemDef) deserialize(r io.Reader) {
24722 r := &io.LimitedReader{R: r, N: int64(n)}
24725 local303 := uint8(6)
24730 if local302 != local303 {
24731 chk(fmt.Errorf("const %v: %v", "uint8(6)", local302))
24734 if err := pcall(func() {
24740 InvImg, WieldImg Texture
24741 WieldScale [3]float32
24746 CanPointLiquids bool
24752 PlacePredict string
24754 PlaceSnd, PlaceFailSnd SoundDef
24758 // Set index in Palette with "palette_index" item meta field,
24759 // this overrides Color.
24763 // Texture overlays.
24764 InvOverlay, WieldOverlay Texture
24767 }))(obj)).Type).deserialize(r)
24772 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
24774 var local304 []uint8
24775 var local305 uint16
24780 (local304) = make([]uint8, local305)
24782 _, err := io.ReadFull(r, (local304)[:])
24790 InvImg, WieldImg Texture
24791 WieldScale [3]float32
24796 CanPointLiquids bool
24802 PlacePredict string
24804 PlaceSnd, PlaceFailSnd SoundDef
24808 // Set index in Palette with "palette_index" item meta field,
24809 // this overrides Color.
24813 // Texture overlays.
24814 InvOverlay, WieldOverlay Texture
24817 }))(obj)).Name) = string(local304)
24818 var local306 []uint8
24819 var local307 uint16
24824 (local306) = make([]uint8, local307)
24826 _, err := io.ReadFull(r, (local306)[:])
24834 InvImg, WieldImg Texture
24835 WieldScale [3]float32
24840 CanPointLiquids bool
24846 PlacePredict string
24848 PlaceSnd, PlaceFailSnd SoundDef
24852 // Set index in Palette with "palette_index" item meta field,
24853 // this overrides Color.
24857 // Texture overlays.
24858 InvOverlay, WieldOverlay Texture
24861 }))(obj)).Desc) = string(local306)
24862 if err := pcall(func() {
24868 InvImg, WieldImg Texture
24869 WieldScale [3]float32
24874 CanPointLiquids bool
24880 PlacePredict string
24882 PlaceSnd, PlaceFailSnd SoundDef
24886 // Set index in Palette with "palette_index" item meta field,
24887 // this overrides Color.
24891 // Texture overlays.
24892 InvOverlay, WieldOverlay Texture
24895 }))(obj)).InvImg).deserialize(r)
24900 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24902 if err := pcall(func() {
24908 InvImg, WieldImg Texture
24909 WieldScale [3]float32
24914 CanPointLiquids bool
24920 PlacePredict string
24922 PlaceSnd, PlaceFailSnd SoundDef
24926 // Set index in Palette with "palette_index" item meta field,
24927 // this overrides Color.
24931 // Texture overlays.
24932 InvOverlay, WieldOverlay Texture
24935 }))(obj)).WieldImg).deserialize(r)
24940 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24942 for local308 := range (*(*(struct {
24947 InvImg, WieldImg Texture
24948 WieldScale [3]float32
24953 CanPointLiquids bool
24959 PlacePredict string
24961 PlaceSnd, PlaceFailSnd SoundDef
24965 // Set index in Palette with "palette_index" item meta field,
24966 // this overrides Color.
24970 // Texture overlays.
24971 InvOverlay, WieldOverlay Texture
24974 }))(obj)).WieldScale {
24976 p := &((*(*(struct {
24981 InvImg, WieldImg Texture
24982 WieldScale [3]float32
24987 CanPointLiquids bool
24993 PlacePredict string
24995 PlaceSnd, PlaceFailSnd SoundDef
24999 // Set index in Palette with "palette_index" item meta field,
25000 // this overrides Color.
25004 // Texture overlays.
25005 InvOverlay, WieldOverlay Texture
25008 }))(obj)).WieldScale)[local308]
25009 *p = math.Float32frombits(read32(r))
25013 p := &(*(*(struct {
25018 InvImg, WieldImg Texture
25019 WieldScale [3]float32
25024 CanPointLiquids bool
25030 PlacePredict string
25032 PlaceSnd, PlaceFailSnd SoundDef
25036 // Set index in Palette with "palette_index" item meta field,
25037 // this overrides Color.
25041 // Texture overlays.
25042 InvOverlay, WieldOverlay Texture
25049 p := &(*(*(struct {
25054 InvImg, WieldImg Texture
25055 WieldScale [3]float32
25060 CanPointLiquids bool
25066 PlacePredict string
25068 PlaceSnd, PlaceFailSnd SoundDef
25072 // Set index in Palette with "palette_index" item meta field,
25073 // this overrides Color.
25077 // Texture overlays.
25078 InvOverlay, WieldOverlay Texture
25082 switch n := read8(r); n {
25088 chk(fmt.Errorf("invalid bool: %d", n))
25093 p := &(*(*(struct {
25098 InvImg, WieldImg Texture
25099 WieldScale [3]float32
25104 CanPointLiquids bool
25110 PlacePredict string
25112 PlaceSnd, PlaceFailSnd SoundDef
25116 // Set index in Palette with "palette_index" item meta field,
25117 // this overrides Color.
25121 // Texture overlays.
25122 InvOverlay, WieldOverlay Texture
25125 }))(obj)).CanPointLiquids
25126 switch n := read8(r); n {
25132 chk(fmt.Errorf("invalid bool: %d", n))
25136 if err := pcall(func() {
25142 InvImg, WieldImg Texture
25143 WieldScale [3]float32
25148 CanPointLiquids bool
25154 PlacePredict string
25156 PlaceSnd, PlaceFailSnd SoundDef
25160 // Set index in Palette with "palette_index" item meta field,
25161 // this overrides Color.
25165 // Texture overlays.
25166 InvOverlay, WieldOverlay Texture
25169 }))(obj)).ToolCaps).deserialize(r)
25174 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
25176 var local309 uint16
25186 InvImg, WieldImg Texture
25187 WieldScale [3]float32
25192 CanPointLiquids bool
25198 PlacePredict string
25200 PlaceSnd, PlaceFailSnd SoundDef
25204 // Set index in Palette with "palette_index" item meta field,
25205 // this overrides Color.
25209 // Texture overlays.
25210 InvOverlay, WieldOverlay Texture
25213 }))(obj)).Groups) = make([]Group, local309)
25214 for local310 := range (*(*(struct {
25219 InvImg, WieldImg Texture
25220 WieldScale [3]float32
25225 CanPointLiquids bool
25231 PlacePredict string
25233 PlaceSnd, PlaceFailSnd SoundDef
25237 // Set index in Palette with "palette_index" item meta field,
25238 // this overrides Color.
25242 // Texture overlays.
25243 InvOverlay, WieldOverlay Texture
25247 if err := pcall(func() {
25253 InvImg, WieldImg Texture
25254 WieldScale [3]float32
25259 CanPointLiquids bool
25265 PlacePredict string
25267 PlaceSnd, PlaceFailSnd SoundDef
25271 // Set index in Palette with "palette_index" item meta field,
25272 // this overrides Color.
25276 // Texture overlays.
25277 InvOverlay, WieldOverlay Texture
25280 }))(obj)).Groups)[local310]).deserialize(r)
25285 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
25288 var local311 []uint8
25289 var local312 uint16
25294 (local311) = make([]uint8, local312)
25296 _, err := io.ReadFull(r, (local311)[:])
25304 InvImg, WieldImg Texture
25305 WieldScale [3]float32
25310 CanPointLiquids bool
25316 PlacePredict string
25318 PlaceSnd, PlaceFailSnd SoundDef
25322 // Set index in Palette with "palette_index" item meta field,
25323 // this overrides Color.
25327 // Texture overlays.
25328 InvOverlay, WieldOverlay Texture
25331 }))(obj)).PlacePredict) = string(local311)
25332 if err := pcall(func() {
25338 InvImg, WieldImg Texture
25339 WieldScale [3]float32
25344 CanPointLiquids bool
25350 PlacePredict string
25352 PlaceSnd, PlaceFailSnd SoundDef
25356 // Set index in Palette with "palette_index" item meta field,
25357 // this overrides Color.
25361 // Texture overlays.
25362 InvOverlay, WieldOverlay Texture
25365 }))(obj)).PlaceSnd).deserialize(r)
25370 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25372 if err := pcall(func() {
25378 InvImg, WieldImg Texture
25379 WieldScale [3]float32
25384 CanPointLiquids bool
25390 PlacePredict string
25392 PlaceSnd, PlaceFailSnd SoundDef
25396 // Set index in Palette with "palette_index" item meta field,
25397 // this overrides Color.
25401 // Texture overlays.
25402 InvOverlay, WieldOverlay Texture
25405 }))(obj)).PlaceFailSnd).deserialize(r)
25410 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25413 p := &(*(*(struct {
25418 InvImg, WieldImg Texture
25419 WieldScale [3]float32
25424 CanPointLiquids bool
25430 PlacePredict string
25432 PlaceSnd, PlaceFailSnd SoundDef
25436 // Set index in Palette with "palette_index" item meta field,
25437 // this overrides Color.
25441 // Texture overlays.
25442 InvOverlay, WieldOverlay Texture
25445 }))(obj)).PointRange
25446 *p = math.Float32frombits(read32(r))
25448 if err := pcall(func() {
25454 InvImg, WieldImg Texture
25455 WieldScale [3]float32
25460 CanPointLiquids bool
25466 PlacePredict string
25468 PlaceSnd, PlaceFailSnd SoundDef
25472 // Set index in Palette with "palette_index" item meta field,
25473 // this overrides Color.
25477 // Texture overlays.
25478 InvOverlay, WieldOverlay Texture
25481 }))(obj)).Palette).deserialize(r)
25486 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25489 p := &(*(*(struct {
25494 InvImg, WieldImg Texture
25495 WieldScale [3]float32
25500 CanPointLiquids bool
25506 PlacePredict string
25508 PlaceSnd, PlaceFailSnd SoundDef
25512 // Set index in Palette with "palette_index" item meta field,
25513 // this overrides Color.
25517 // Texture overlays.
25518 InvOverlay, WieldOverlay Texture
25522 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25525 if err := pcall(func() {
25531 InvImg, WieldImg Texture
25532 WieldScale [3]float32
25537 CanPointLiquids bool
25543 PlacePredict string
25545 PlaceSnd, PlaceFailSnd SoundDef
25549 // Set index in Palette with "palette_index" item meta field,
25550 // this overrides Color.
25554 // Texture overlays.
25555 InvOverlay, WieldOverlay Texture
25558 }))(obj)).InvOverlay).deserialize(r)
25563 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25565 if err := pcall(func() {
25571 InvImg, WieldImg Texture
25572 WieldScale [3]float32
25577 CanPointLiquids bool
25583 PlacePredict string
25585 PlaceSnd, PlaceFailSnd SoundDef
25589 // Set index in Palette with "palette_index" item meta field,
25590 // this overrides Color.
25594 // Texture overlays.
25595 InvOverlay, WieldOverlay Texture
25598 }))(obj)).WieldOverlay).deserialize(r)
25603 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25605 var local313 []uint8
25606 var local314 uint16
25611 (local313) = make([]uint8, local314)
25613 _, err := io.ReadFull(r, (local313)[:])
25621 InvImg, WieldImg Texture
25622 WieldScale [3]float32
25627 CanPointLiquids bool
25633 PlacePredict string
25635 PlaceSnd, PlaceFailSnd SoundDef
25639 // Set index in Palette with "palette_index" item meta field,
25640 // this overrides Color.
25644 // Texture overlays.
25645 InvOverlay, WieldOverlay Texture
25648 }))(obj)).ShortDesc) = string(local313)
25650 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25655 func (obj *SoundSrcType) serialize(w io.Writer) {
25657 x := *(*(uint8))(obj)
25658 write8(w, uint8(x))
25662 func (obj *SoundSrcType) deserialize(r io.Reader) {
25664 p := &*(*(uint8))(obj)
25669 func (obj *TileAnim) serialize(w io.Writer) {
25670 if err := pcall(func() {
25674 //mt:if %s.Type == SpriteSheetAnim
25675 AspectRatio [2]uint8
25677 //mt:if %s.Type == VerticalFrameAnim
25680 //mt:if %s.Type != NoAnim
25681 Duration float32 // in seconds
25683 }))(obj)).Type).serialize(w)
25688 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25693 //mt:if %s.Type == SpriteSheetAnim
25694 AspectRatio [2]uint8
25696 //mt:if %s.Type == VerticalFrameAnim
25699 //mt:if %s.Type != NoAnim
25700 Duration float32 // in seconds
25702 }))(obj)).Type < maxAnim) {
25703 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25708 //mt:if %s.Type == SpriteSheetAnim
25709 AspectRatio [2]uint8
25711 //mt:if %s.Type == VerticalFrameAnim
25714 //mt:if %s.Type != NoAnim
25715 Duration float32 // in seconds
25717 }))(obj)).Type == SpriteSheetAnim {
25719 _, err := w.Write(((*(*(struct {
25722 //mt:if %s.Type == SpriteSheetAnim
25723 AspectRatio [2]uint8
25725 //mt:if %s.Type == VerticalFrameAnim
25728 //mt:if %s.Type != NoAnim
25729 Duration float32 // in seconds
25731 }))(obj)).AspectRatio)[:])
25738 //mt:if %s.Type == SpriteSheetAnim
25739 AspectRatio [2]uint8
25741 //mt:if %s.Type == VerticalFrameAnim
25744 //mt:if %s.Type != NoAnim
25745 Duration float32 // in seconds
25747 }))(obj)).Type == VerticalFrameAnim {
25748 for local315 := range (*(*(struct {
25751 //mt:if %s.Type == SpriteSheetAnim
25752 AspectRatio [2]uint8
25754 //mt:if %s.Type == VerticalFrameAnim
25757 //mt:if %s.Type != NoAnim
25758 Duration float32 // in seconds
25760 }))(obj)).NFrames {
25762 x := ((*(*(struct {
25765 //mt:if %s.Type == SpriteSheetAnim
25766 AspectRatio [2]uint8
25768 //mt:if %s.Type == VerticalFrameAnim
25771 //mt:if %s.Type != NoAnim
25772 Duration float32 // in seconds
25774 }))(obj)).NFrames)[local315]
25775 write16(w, uint16(x))
25782 //mt:if %s.Type == SpriteSheetAnim
25783 AspectRatio [2]uint8
25785 //mt:if %s.Type == VerticalFrameAnim
25788 //mt:if %s.Type != NoAnim
25789 Duration float32 // in seconds
25791 }))(obj)).Type != NoAnim {
25796 //mt:if %s.Type == SpriteSheetAnim
25797 AspectRatio [2]uint8
25799 //mt:if %s.Type == VerticalFrameAnim
25802 //mt:if %s.Type != NoAnim
25803 Duration float32 // in seconds
25806 write32(w, math.Float32bits(x))
25811 func (obj *TileAnim) deserialize(r io.Reader) {
25812 if err := pcall(func() {
25816 //mt:if %s.Type == SpriteSheetAnim
25817 AspectRatio [2]uint8
25819 //mt:if %s.Type == VerticalFrameAnim
25822 //mt:if %s.Type != NoAnim
25823 Duration float32 // in seconds
25825 }))(obj)).Type).deserialize(r)
25830 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25835 //mt:if %s.Type == SpriteSheetAnim
25836 AspectRatio [2]uint8
25838 //mt:if %s.Type == VerticalFrameAnim
25841 //mt:if %s.Type != NoAnim
25842 Duration float32 // in seconds
25844 }))(obj)).Type < maxAnim) {
25845 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25850 //mt:if %s.Type == SpriteSheetAnim
25851 AspectRatio [2]uint8
25853 //mt:if %s.Type == VerticalFrameAnim
25856 //mt:if %s.Type != NoAnim
25857 Duration float32 // in seconds
25859 }))(obj)).Type == SpriteSheetAnim {
25861 _, err := io.ReadFull(r, ((*(*(struct {
25864 //mt:if %s.Type == SpriteSheetAnim
25865 AspectRatio [2]uint8
25867 //mt:if %s.Type == VerticalFrameAnim
25870 //mt:if %s.Type != NoAnim
25871 Duration float32 // in seconds
25873 }))(obj)).AspectRatio)[:])
25880 //mt:if %s.Type == SpriteSheetAnim
25881 AspectRatio [2]uint8
25883 //mt:if %s.Type == VerticalFrameAnim
25886 //mt:if %s.Type != NoAnim
25887 Duration float32 // in seconds
25889 }))(obj)).Type == VerticalFrameAnim {
25890 for local316 := range (*(*(struct {
25893 //mt:if %s.Type == SpriteSheetAnim
25894 AspectRatio [2]uint8
25896 //mt:if %s.Type == VerticalFrameAnim
25899 //mt:if %s.Type != NoAnim
25900 Duration float32 // in seconds
25902 }))(obj)).NFrames {
25904 p := &((*(*(struct {
25907 //mt:if %s.Type == SpriteSheetAnim
25908 AspectRatio [2]uint8
25910 //mt:if %s.Type == VerticalFrameAnim
25913 //mt:if %s.Type != NoAnim
25914 Duration float32 // in seconds
25916 }))(obj)).NFrames)[local316]
25924 //mt:if %s.Type == SpriteSheetAnim
25925 AspectRatio [2]uint8
25927 //mt:if %s.Type == VerticalFrameAnim
25930 //mt:if %s.Type != NoAnim
25931 Duration float32 // in seconds
25933 }))(obj)).Type != NoAnim {
25935 p := &(*(*(struct {
25938 //mt:if %s.Type == SpriteSheetAnim
25939 AspectRatio [2]uint8
25941 //mt:if %s.Type == VerticalFrameAnim
25944 //mt:if %s.Type != NoAnim
25945 Duration float32 // in seconds
25948 *p = math.Float32frombits(read32(r))
25953 func (obj *Content) serialize(w io.Writer) {
25955 x := *(*(uint16))(obj)
25956 write16(w, uint16(x))
25960 func (obj *Content) deserialize(r io.Reader) {
25962 p := &*(*(uint16))(obj)
25967 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
25969 x := *(*(uint32))(obj)
25970 write32(w, uint32(x))
25974 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
25976 p := &*(*(uint32))(obj)
25981 func (obj *HUDID) serialize(w io.Writer) {
25983 x := *(*(uint32))(obj)
25984 write32(w, uint32(x))
25988 func (obj *HUDID) deserialize(r io.Reader) {
25990 p := &*(*(uint32))(obj)
25995 func (obj *HUD) serialize(w io.Writer) {
25996 if err := pcall(func() {
26013 }))(obj)).Type).serialize(w)
26018 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26020 for local317 := range (*(*(struct {
26038 x := ((*(*(struct {
26054 }))(obj)).Pos)[local317]
26055 write32(w, math.Float32bits(x))
26058 if len(([]byte((*(*(struct {
26074 }))(obj)).Name))) > math.MaxUint16 {
26078 x := uint16(len(([]byte((*(*(struct {
26095 write16(w, uint16(x))
26098 _, err := w.Write(([]byte((*(*(struct {
26114 }))(obj)).Name))[:])
26117 for local318 := range (*(*(struct {
26135 x := ((*(*(struct {
26151 }))(obj)).Scale)[local318]
26152 write32(w, math.Float32bits(x))
26155 if len(([]byte((*(*(struct {
26171 }))(obj)).Text))) > math.MaxUint16 {
26175 x := uint16(len(([]byte((*(*(struct {
26192 write16(w, uint16(x))
26195 _, err := w.Write(([]byte((*(*(struct {
26211 }))(obj)).Text))[:])
26232 write32(w, uint32(x))
26252 write32(w, uint32(x))
26272 write32(w, uint32(x))
26274 for local319 := range (*(*(struct {
26292 x := ((*(*(struct {
26308 }))(obj)).Align)[local319]
26309 write32(w, math.Float32bits(x))
26312 for local320 := range (*(*(struct {
26330 x := ((*(*(struct {
26346 }))(obj)).Offset)[local320]
26347 write32(w, math.Float32bits(x))
26350 if err := pcall(func() {
26367 }))(obj)).WorldPos).serialize(w)
26372 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26374 for local321 := range (*(*(struct {
26392 x := ((*(*(struct {
26408 }))(obj)).Size)[local321]
26409 write32(w, uint32(x))
26430 write16(w, uint16(x))
26432 if len(([]byte((*(*(struct {
26448 }))(obj)).Text2))) > math.MaxUint16 {
26452 x := uint16(len(([]byte((*(*(struct {
26468 }))(obj)).Text2))))
26469 write16(w, uint16(x))
26472 _, err := w.Write(([]byte((*(*(struct {
26488 }))(obj)).Text2))[:])
26493 func (obj *HUD) deserialize(r io.Reader) {
26494 if err := pcall(func() {
26511 }))(obj)).Type).deserialize(r)
26516 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26518 for local322 := range (*(*(struct {
26536 p := &((*(*(struct {
26552 }))(obj)).Pos)[local322]
26553 *p = math.Float32frombits(read32(r))
26556 var local323 []uint8
26557 var local324 uint16
26562 (local323) = make([]uint8, local324)
26564 _, err := io.ReadFull(r, (local323)[:])
26583 }))(obj)).Name) = string(local323)
26584 for local325 := range (*(*(struct {
26602 p := &((*(*(struct {
26618 }))(obj)).Scale)[local325]
26619 *p = math.Float32frombits(read32(r))
26622 var local326 []uint8
26623 var local327 uint16
26628 (local326) = make([]uint8, local327)
26630 _, err := io.ReadFull(r, (local326)[:])
26649 }))(obj)).Text) = string(local326)
26651 p := &(*(*(struct {
26671 p := &(*(*(struct {
26691 p := &(*(*(struct {
26710 for local328 := range (*(*(struct {
26728 p := &((*(*(struct {
26744 }))(obj)).Align)[local328]
26745 *p = math.Float32frombits(read32(r))
26748 for local329 := range (*(*(struct {
26766 p := &((*(*(struct {
26782 }))(obj)).Offset)[local329]
26783 *p = math.Float32frombits(read32(r))
26786 if err := pcall(func() {
26803 }))(obj)).WorldPos).deserialize(r)
26808 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26810 for local330 := range (*(*(struct {
26828 p := &((*(*(struct {
26844 }))(obj)).Size)[local330]
26845 *p = int32(read32(r))
26849 p := &(*(*(struct {
26866 *p = int16(read16(r))
26868 var local331 []uint8
26869 var local332 uint16
26874 (local331) = make([]uint8, local332)
26876 _, err := io.ReadFull(r, (local331)[:])
26895 }))(obj)).Text2) = string(local331)
26898 func (obj *HUDField) serialize(w io.Writer) {
26900 x := *(*(uint8))(obj)
26901 write8(w, uint8(x))
26905 func (obj *HUDField) deserialize(r io.Reader) {
26907 p := &*(*(uint8))(obj)
26912 func (obj *HUDFlags) serialize(w io.Writer) {
26914 x := *(*(uint32))(obj)
26915 write32(w, uint32(x))
26919 func (obj *HUDFlags) deserialize(r io.Reader) {
26921 p := &*(*(uint32))(obj)
26926 func (obj *HotbarParam) serialize(w io.Writer) {
26928 x := *(*(uint16))(obj)
26929 write16(w, uint16(x))
26933 func (obj *HotbarParam) deserialize(r io.Reader) {
26935 p := &*(*(uint16))(obj)
26940 func (obj *Texture) serialize(w io.Writer) {
26941 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26945 x := uint16(len(([]byte(*(*(string))(obj)))))
26946 write16(w, uint16(x))
26949 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26954 func (obj *Texture) deserialize(r io.Reader) {
26955 var local333 []uint8
26956 var local334 uint16
26961 (local333) = make([]uint8, local334)
26963 _, err := io.ReadFull(r, (local333)[:])
26966 (*(*(string))(obj)) = string(local333)
26969 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
26971 x := *(*(uint8))(obj)
26972 write8(w, uint8(x))
26976 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
26978 p := &*(*(uint8))(obj)
26983 func (obj *ModChanSig) serialize(w io.Writer) {
26985 x := *(*(uint8))(obj)
26986 write8(w, uint8(x))
26990 func (obj *ModChanSig) deserialize(r io.Reader) {
26992 p := &*(*(uint8))(obj)
26997 func (obj *AOProps) serialize(w io.Writer) {
26999 local335 := uint8(4)
27002 write8(w, uint8(x))
27007 MaxHP uint16 // Player only.
27008 CollideWithNodes bool
27009 Weight float32 // deprecated
27013 VisualSize [3]float32
27015 SpriteSheetSize [2]int16 // in sprites.
27016 SpritePos [2]int16 // in sprite sheet.
27018 MakeFootstepSnds bool
27019 RotateSpeed float32 // in radians per second.
27021 Colors []color.NRGBA
27022 CollideWithAOs bool
27025 FaceRotateDirOff float32 // in degrees.
27028 NametagColor color.NRGBA
27029 FaceRotateSpeed float32 // in degrees per second.
27033 MaxBreath uint16 // Player only.
27034 EyeHeight float32 // Player only.
27035 ZoomFOV float32 // in degrees. Player only.
27036 UseTextureAlpha bool
27037 DmgTextureMod Texture // suffix
27040 NametagBG color.NRGBA
27042 write16(w, uint16(x))
27046 MaxHP uint16 // Player only.
27047 CollideWithNodes bool
27048 Weight float32 // deprecated
27052 VisualSize [3]float32
27054 SpriteSheetSize [2]int16 // in sprites.
27055 SpritePos [2]int16 // in sprite sheet.
27057 MakeFootstepSnds bool
27058 RotateSpeed float32 // in radians per second.
27060 Colors []color.NRGBA
27061 CollideWithAOs bool
27064 FaceRotateDirOff float32 // in degrees.
27067 NametagColor color.NRGBA
27068 FaceRotateSpeed float32 // in degrees per second.
27072 MaxBreath uint16 // Player only.
27073 EyeHeight float32 // Player only.
27074 ZoomFOV float32 // in degrees. Player only.
27075 UseTextureAlpha bool
27076 DmgTextureMod Texture // suffix
27079 NametagBG color.NRGBA
27080 }))(obj)).CollideWithNodes
27090 MaxHP uint16 // Player only.
27091 CollideWithNodes bool
27092 Weight float32 // deprecated
27096 VisualSize [3]float32
27098 SpriteSheetSize [2]int16 // in sprites.
27099 SpritePos [2]int16 // in sprite sheet.
27101 MakeFootstepSnds bool
27102 RotateSpeed float32 // in radians per second.
27104 Colors []color.NRGBA
27105 CollideWithAOs bool
27108 FaceRotateDirOff float32 // in degrees.
27111 NametagColor color.NRGBA
27112 FaceRotateSpeed float32 // in degrees per second.
27116 MaxBreath uint16 // Player only.
27117 EyeHeight float32 // Player only.
27118 ZoomFOV float32 // in degrees. Player only.
27119 UseTextureAlpha bool
27120 DmgTextureMod Texture // suffix
27123 NametagBG color.NRGBA
27125 write32(w, math.Float32bits(x))
27127 if err := pcall(func() {
27129 MaxHP uint16 // Player only.
27130 CollideWithNodes bool
27131 Weight float32 // deprecated
27135 VisualSize [3]float32
27137 SpriteSheetSize [2]int16 // in sprites.
27138 SpritePos [2]int16 // in sprite sheet.
27140 MakeFootstepSnds bool
27141 RotateSpeed float32 // in radians per second.
27143 Colors []color.NRGBA
27144 CollideWithAOs bool
27147 FaceRotateDirOff float32 // in degrees.
27150 NametagColor color.NRGBA
27151 FaceRotateSpeed float32 // in degrees per second.
27155 MaxBreath uint16 // Player only.
27156 EyeHeight float32 // Player only.
27157 ZoomFOV float32 // in degrees. Player only.
27158 UseTextureAlpha bool
27159 DmgTextureMod Texture // suffix
27162 NametagBG color.NRGBA
27163 }))(obj)).ColBox).serialize(w)
27168 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27170 if err := pcall(func() {
27172 MaxHP uint16 // Player only.
27173 CollideWithNodes bool
27174 Weight float32 // deprecated
27178 VisualSize [3]float32
27180 SpriteSheetSize [2]int16 // in sprites.
27181 SpritePos [2]int16 // in sprite sheet.
27183 MakeFootstepSnds bool
27184 RotateSpeed float32 // in radians per second.
27186 Colors []color.NRGBA
27187 CollideWithAOs bool
27190 FaceRotateDirOff float32 // in degrees.
27193 NametagColor color.NRGBA
27194 FaceRotateSpeed float32 // in degrees per second.
27198 MaxBreath uint16 // Player only.
27199 EyeHeight float32 // Player only.
27200 ZoomFOV float32 // in degrees. Player only.
27201 UseTextureAlpha bool
27202 DmgTextureMod Texture // suffix
27205 NametagBG color.NRGBA
27206 }))(obj)).SelBox).serialize(w)
27211 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27215 MaxHP uint16 // Player only.
27216 CollideWithNodes bool
27217 Weight float32 // deprecated
27221 VisualSize [3]float32
27223 SpriteSheetSize [2]int16 // in sprites.
27224 SpritePos [2]int16 // in sprite sheet.
27226 MakeFootstepSnds bool
27227 RotateSpeed float32 // in radians per second.
27229 Colors []color.NRGBA
27230 CollideWithAOs bool
27233 FaceRotateDirOff float32 // in degrees.
27236 NametagColor color.NRGBA
27237 FaceRotateSpeed float32 // in degrees per second.
27241 MaxBreath uint16 // Player only.
27242 EyeHeight float32 // Player only.
27243 ZoomFOV float32 // in degrees. Player only.
27244 UseTextureAlpha bool
27245 DmgTextureMod Texture // suffix
27248 NametagBG color.NRGBA
27249 }))(obj)).Pointable
27257 if len(([]byte((*(*(struct {
27258 MaxHP uint16 // Player only.
27259 CollideWithNodes bool
27260 Weight float32 // deprecated
27264 VisualSize [3]float32
27266 SpriteSheetSize [2]int16 // in sprites.
27267 SpritePos [2]int16 // in sprite sheet.
27269 MakeFootstepSnds bool
27270 RotateSpeed float32 // in radians per second.
27272 Colors []color.NRGBA
27273 CollideWithAOs bool
27276 FaceRotateDirOff float32 // in degrees.
27279 NametagColor color.NRGBA
27280 FaceRotateSpeed float32 // in degrees per second.
27284 MaxBreath uint16 // Player only.
27285 EyeHeight float32 // Player only.
27286 ZoomFOV float32 // in degrees. Player only.
27287 UseTextureAlpha bool
27288 DmgTextureMod Texture // suffix
27291 NametagBG color.NRGBA
27292 }))(obj)).Visual))) > math.MaxUint16 {
27296 x := uint16(len(([]byte((*(*(struct {
27297 MaxHP uint16 // Player only.
27298 CollideWithNodes bool
27299 Weight float32 // deprecated
27303 VisualSize [3]float32
27305 SpriteSheetSize [2]int16 // in sprites.
27306 SpritePos [2]int16 // in sprite sheet.
27308 MakeFootstepSnds bool
27309 RotateSpeed float32 // in radians per second.
27311 Colors []color.NRGBA
27312 CollideWithAOs bool
27315 FaceRotateDirOff float32 // in degrees.
27318 NametagColor color.NRGBA
27319 FaceRotateSpeed float32 // in degrees per second.
27323 MaxBreath uint16 // Player only.
27324 EyeHeight float32 // Player only.
27325 ZoomFOV float32 // in degrees. Player only.
27326 UseTextureAlpha bool
27327 DmgTextureMod Texture // suffix
27330 NametagBG color.NRGBA
27331 }))(obj)).Visual))))
27332 write16(w, uint16(x))
27335 _, err := w.Write(([]byte((*(*(struct {
27336 MaxHP uint16 // Player only.
27337 CollideWithNodes bool
27338 Weight float32 // deprecated
27342 VisualSize [3]float32
27344 SpriteSheetSize [2]int16 // in sprites.
27345 SpritePos [2]int16 // in sprite sheet.
27347 MakeFootstepSnds bool
27348 RotateSpeed float32 // in radians per second.
27350 Colors []color.NRGBA
27351 CollideWithAOs bool
27354 FaceRotateDirOff float32 // in degrees.
27357 NametagColor color.NRGBA
27358 FaceRotateSpeed float32 // in degrees per second.
27362 MaxBreath uint16 // Player only.
27363 EyeHeight float32 // Player only.
27364 ZoomFOV float32 // in degrees. Player only.
27365 UseTextureAlpha bool
27366 DmgTextureMod Texture // suffix
27369 NametagBG color.NRGBA
27370 }))(obj)).Visual))[:])
27373 for local336 := range (*(*(struct {
27374 MaxHP uint16 // Player only.
27375 CollideWithNodes bool
27376 Weight float32 // deprecated
27380 VisualSize [3]float32
27382 SpriteSheetSize [2]int16 // in sprites.
27383 SpritePos [2]int16 // in sprite sheet.
27385 MakeFootstepSnds bool
27386 RotateSpeed float32 // in radians per second.
27388 Colors []color.NRGBA
27389 CollideWithAOs bool
27392 FaceRotateDirOff float32 // in degrees.
27395 NametagColor color.NRGBA
27396 FaceRotateSpeed float32 // in degrees per second.
27400 MaxBreath uint16 // Player only.
27401 EyeHeight float32 // Player only.
27402 ZoomFOV float32 // in degrees. Player only.
27403 UseTextureAlpha bool
27404 DmgTextureMod Texture // suffix
27407 NametagBG color.NRGBA
27408 }))(obj)).VisualSize {
27410 x := ((*(*(struct {
27411 MaxHP uint16 // Player only.
27412 CollideWithNodes bool
27413 Weight float32 // deprecated
27417 VisualSize [3]float32
27419 SpriteSheetSize [2]int16 // in sprites.
27420 SpritePos [2]int16 // in sprite sheet.
27422 MakeFootstepSnds bool
27423 RotateSpeed float32 // in radians per second.
27425 Colors []color.NRGBA
27426 CollideWithAOs bool
27429 FaceRotateDirOff float32 // in degrees.
27432 NametagColor color.NRGBA
27433 FaceRotateSpeed float32 // in degrees per second.
27437 MaxBreath uint16 // Player only.
27438 EyeHeight float32 // Player only.
27439 ZoomFOV float32 // in degrees. Player only.
27440 UseTextureAlpha bool
27441 DmgTextureMod Texture // suffix
27444 NametagBG color.NRGBA
27445 }))(obj)).VisualSize)[local336]
27446 write32(w, math.Float32bits(x))
27449 if len(((*(*(struct {
27450 MaxHP uint16 // Player only.
27451 CollideWithNodes bool
27452 Weight float32 // deprecated
27456 VisualSize [3]float32
27458 SpriteSheetSize [2]int16 // in sprites.
27459 SpritePos [2]int16 // in sprite sheet.
27461 MakeFootstepSnds bool
27462 RotateSpeed float32 // in radians per second.
27464 Colors []color.NRGBA
27465 CollideWithAOs bool
27468 FaceRotateDirOff float32 // in degrees.
27471 NametagColor color.NRGBA
27472 FaceRotateSpeed float32 // in degrees per second.
27476 MaxBreath uint16 // Player only.
27477 EyeHeight float32 // Player only.
27478 ZoomFOV float32 // in degrees. Player only.
27479 UseTextureAlpha bool
27480 DmgTextureMod Texture // suffix
27483 NametagBG color.NRGBA
27484 }))(obj)).Textures)) > math.MaxUint16 {
27488 x := uint16(len(((*(*(struct {
27489 MaxHP uint16 // Player only.
27490 CollideWithNodes bool
27491 Weight float32 // deprecated
27495 VisualSize [3]float32
27497 SpriteSheetSize [2]int16 // in sprites.
27498 SpritePos [2]int16 // in sprite sheet.
27500 MakeFootstepSnds bool
27501 RotateSpeed float32 // in radians per second.
27503 Colors []color.NRGBA
27504 CollideWithAOs bool
27507 FaceRotateDirOff float32 // in degrees.
27510 NametagColor color.NRGBA
27511 FaceRotateSpeed float32 // in degrees per second.
27515 MaxBreath uint16 // Player only.
27516 EyeHeight float32 // Player only.
27517 ZoomFOV float32 // in degrees. Player only.
27518 UseTextureAlpha bool
27519 DmgTextureMod Texture // suffix
27522 NametagBG color.NRGBA
27523 }))(obj)).Textures)))
27524 write16(w, uint16(x))
27526 for local337 := range (*(*(struct {
27527 MaxHP uint16 // Player only.
27528 CollideWithNodes bool
27529 Weight float32 // deprecated
27533 VisualSize [3]float32
27535 SpriteSheetSize [2]int16 // in sprites.
27536 SpritePos [2]int16 // in sprite sheet.
27538 MakeFootstepSnds bool
27539 RotateSpeed float32 // in radians per second.
27541 Colors []color.NRGBA
27542 CollideWithAOs bool
27545 FaceRotateDirOff float32 // in degrees.
27548 NametagColor color.NRGBA
27549 FaceRotateSpeed float32 // in degrees per second.
27553 MaxBreath uint16 // Player only.
27554 EyeHeight float32 // Player only.
27555 ZoomFOV float32 // in degrees. Player only.
27556 UseTextureAlpha bool
27557 DmgTextureMod Texture // suffix
27560 NametagBG color.NRGBA
27561 }))(obj)).Textures {
27562 if err := pcall(func() {
27564 MaxHP uint16 // Player only.
27565 CollideWithNodes bool
27566 Weight float32 // deprecated
27570 VisualSize [3]float32
27572 SpriteSheetSize [2]int16 // in sprites.
27573 SpritePos [2]int16 // in sprite sheet.
27575 MakeFootstepSnds bool
27576 RotateSpeed float32 // in radians per second.
27578 Colors []color.NRGBA
27579 CollideWithAOs bool
27582 FaceRotateDirOff float32 // in degrees.
27585 NametagColor color.NRGBA
27586 FaceRotateSpeed float32 // in degrees per second.
27590 MaxBreath uint16 // Player only.
27591 EyeHeight float32 // Player only.
27592 ZoomFOV float32 // in degrees. Player only.
27593 UseTextureAlpha bool
27594 DmgTextureMod Texture // suffix
27597 NametagBG color.NRGBA
27598 }))(obj)).Textures)[local337]).serialize(w)
27603 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27606 for local338 := range (*(*(struct {
27607 MaxHP uint16 // Player only.
27608 CollideWithNodes bool
27609 Weight float32 // deprecated
27613 VisualSize [3]float32
27615 SpriteSheetSize [2]int16 // in sprites.
27616 SpritePos [2]int16 // in sprite sheet.
27618 MakeFootstepSnds bool
27619 RotateSpeed float32 // in radians per second.
27621 Colors []color.NRGBA
27622 CollideWithAOs bool
27625 FaceRotateDirOff float32 // in degrees.
27628 NametagColor color.NRGBA
27629 FaceRotateSpeed float32 // in degrees per second.
27633 MaxBreath uint16 // Player only.
27634 EyeHeight float32 // Player only.
27635 ZoomFOV float32 // in degrees. Player only.
27636 UseTextureAlpha bool
27637 DmgTextureMod Texture // suffix
27640 NametagBG color.NRGBA
27641 }))(obj)).SpriteSheetSize {
27643 x := ((*(*(struct {
27644 MaxHP uint16 // Player only.
27645 CollideWithNodes bool
27646 Weight float32 // deprecated
27650 VisualSize [3]float32
27652 SpriteSheetSize [2]int16 // in sprites.
27653 SpritePos [2]int16 // in sprite sheet.
27655 MakeFootstepSnds bool
27656 RotateSpeed float32 // in radians per second.
27658 Colors []color.NRGBA
27659 CollideWithAOs bool
27662 FaceRotateDirOff float32 // in degrees.
27665 NametagColor color.NRGBA
27666 FaceRotateSpeed float32 // in degrees per second.
27670 MaxBreath uint16 // Player only.
27671 EyeHeight float32 // Player only.
27672 ZoomFOV float32 // in degrees. Player only.
27673 UseTextureAlpha bool
27674 DmgTextureMod Texture // suffix
27677 NametagBG color.NRGBA
27678 }))(obj)).SpriteSheetSize)[local338]
27679 write16(w, uint16(x))
27682 for local339 := range (*(*(struct {
27683 MaxHP uint16 // Player only.
27684 CollideWithNodes bool
27685 Weight float32 // deprecated
27689 VisualSize [3]float32
27691 SpriteSheetSize [2]int16 // in sprites.
27692 SpritePos [2]int16 // in sprite sheet.
27694 MakeFootstepSnds bool
27695 RotateSpeed float32 // in radians per second.
27697 Colors []color.NRGBA
27698 CollideWithAOs bool
27701 FaceRotateDirOff float32 // in degrees.
27704 NametagColor color.NRGBA
27705 FaceRotateSpeed float32 // in degrees per second.
27709 MaxBreath uint16 // Player only.
27710 EyeHeight float32 // Player only.
27711 ZoomFOV float32 // in degrees. Player only.
27712 UseTextureAlpha bool
27713 DmgTextureMod Texture // suffix
27716 NametagBG color.NRGBA
27717 }))(obj)).SpritePos {
27719 x := ((*(*(struct {
27720 MaxHP uint16 // Player only.
27721 CollideWithNodes bool
27722 Weight float32 // deprecated
27726 VisualSize [3]float32
27728 SpriteSheetSize [2]int16 // in sprites.
27729 SpritePos [2]int16 // in sprite sheet.
27731 MakeFootstepSnds bool
27732 RotateSpeed float32 // in radians per second.
27734 Colors []color.NRGBA
27735 CollideWithAOs bool
27738 FaceRotateDirOff float32 // in degrees.
27741 NametagColor color.NRGBA
27742 FaceRotateSpeed float32 // in degrees per second.
27746 MaxBreath uint16 // Player only.
27747 EyeHeight float32 // Player only.
27748 ZoomFOV float32 // in degrees. Player only.
27749 UseTextureAlpha bool
27750 DmgTextureMod Texture // suffix
27753 NametagBG color.NRGBA
27754 }))(obj)).SpritePos)[local339]
27755 write16(w, uint16(x))
27760 MaxHP uint16 // Player only.
27761 CollideWithNodes bool
27762 Weight float32 // deprecated
27766 VisualSize [3]float32
27768 SpriteSheetSize [2]int16 // in sprites.
27769 SpritePos [2]int16 // in sprite sheet.
27771 MakeFootstepSnds bool
27772 RotateSpeed float32 // in radians per second.
27774 Colors []color.NRGBA
27775 CollideWithAOs bool
27778 FaceRotateDirOff float32 // in degrees.
27781 NametagColor color.NRGBA
27782 FaceRotateSpeed float32 // in degrees per second.
27786 MaxBreath uint16 // Player only.
27787 EyeHeight float32 // Player only.
27788 ZoomFOV float32 // in degrees. Player only.
27789 UseTextureAlpha bool
27790 DmgTextureMod Texture // suffix
27793 NametagBG color.NRGBA
27804 MaxHP uint16 // Player only.
27805 CollideWithNodes bool
27806 Weight float32 // deprecated
27810 VisualSize [3]float32
27812 SpriteSheetSize [2]int16 // in sprites.
27813 SpritePos [2]int16 // in sprite sheet.
27815 MakeFootstepSnds bool
27816 RotateSpeed float32 // in radians per second.
27818 Colors []color.NRGBA
27819 CollideWithAOs bool
27822 FaceRotateDirOff float32 // in degrees.
27825 NametagColor color.NRGBA
27826 FaceRotateSpeed float32 // in degrees per second.
27830 MaxBreath uint16 // Player only.
27831 EyeHeight float32 // Player only.
27832 ZoomFOV float32 // in degrees. Player only.
27833 UseTextureAlpha bool
27834 DmgTextureMod Texture // suffix
27837 NametagBG color.NRGBA
27838 }))(obj)).MakeFootstepSnds
27848 MaxHP uint16 // Player only.
27849 CollideWithNodes bool
27850 Weight float32 // deprecated
27854 VisualSize [3]float32
27856 SpriteSheetSize [2]int16 // in sprites.
27857 SpritePos [2]int16 // in sprite sheet.
27859 MakeFootstepSnds bool
27860 RotateSpeed float32 // in radians per second.
27862 Colors []color.NRGBA
27863 CollideWithAOs bool
27866 FaceRotateDirOff float32 // in degrees.
27869 NametagColor color.NRGBA
27870 FaceRotateSpeed float32 // in degrees per second.
27874 MaxBreath uint16 // Player only.
27875 EyeHeight float32 // Player only.
27876 ZoomFOV float32 // in degrees. Player only.
27877 UseTextureAlpha bool
27878 DmgTextureMod Texture // suffix
27881 NametagBG color.NRGBA
27882 }))(obj)).RotateSpeed
27883 write32(w, math.Float32bits(x))
27885 if len(([]byte((*(*(struct {
27886 MaxHP uint16 // Player only.
27887 CollideWithNodes bool
27888 Weight float32 // deprecated
27892 VisualSize [3]float32
27894 SpriteSheetSize [2]int16 // in sprites.
27895 SpritePos [2]int16 // in sprite sheet.
27897 MakeFootstepSnds bool
27898 RotateSpeed float32 // in radians per second.
27900 Colors []color.NRGBA
27901 CollideWithAOs bool
27904 FaceRotateDirOff float32 // in degrees.
27907 NametagColor color.NRGBA
27908 FaceRotateSpeed float32 // in degrees per second.
27912 MaxBreath uint16 // Player only.
27913 EyeHeight float32 // Player only.
27914 ZoomFOV float32 // in degrees. Player only.
27915 UseTextureAlpha bool
27916 DmgTextureMod Texture // suffix
27919 NametagBG color.NRGBA
27920 }))(obj)).Mesh))) > math.MaxUint16 {
27924 x := uint16(len(([]byte((*(*(struct {
27925 MaxHP uint16 // Player only.
27926 CollideWithNodes bool
27927 Weight float32 // deprecated
27931 VisualSize [3]float32
27933 SpriteSheetSize [2]int16 // in sprites.
27934 SpritePos [2]int16 // in sprite sheet.
27936 MakeFootstepSnds bool
27937 RotateSpeed float32 // in radians per second.
27939 Colors []color.NRGBA
27940 CollideWithAOs bool
27943 FaceRotateDirOff float32 // in degrees.
27946 NametagColor color.NRGBA
27947 FaceRotateSpeed float32 // in degrees per second.
27951 MaxBreath uint16 // Player only.
27952 EyeHeight float32 // Player only.
27953 ZoomFOV float32 // in degrees. Player only.
27954 UseTextureAlpha bool
27955 DmgTextureMod Texture // suffix
27958 NametagBG color.NRGBA
27960 write16(w, uint16(x))
27963 _, err := w.Write(([]byte((*(*(struct {
27964 MaxHP uint16 // Player only.
27965 CollideWithNodes bool
27966 Weight float32 // deprecated
27970 VisualSize [3]float32
27972 SpriteSheetSize [2]int16 // in sprites.
27973 SpritePos [2]int16 // in sprite sheet.
27975 MakeFootstepSnds bool
27976 RotateSpeed float32 // in radians per second.
27978 Colors []color.NRGBA
27979 CollideWithAOs bool
27982 FaceRotateDirOff float32 // in degrees.
27985 NametagColor color.NRGBA
27986 FaceRotateSpeed float32 // in degrees per second.
27990 MaxBreath uint16 // Player only.
27991 EyeHeight float32 // Player only.
27992 ZoomFOV float32 // in degrees. Player only.
27993 UseTextureAlpha bool
27994 DmgTextureMod Texture // suffix
27997 NametagBG color.NRGBA
27998 }))(obj)).Mesh))[:])
28001 if len(((*(*(struct {
28002 MaxHP uint16 // Player only.
28003 CollideWithNodes bool
28004 Weight float32 // deprecated
28008 VisualSize [3]float32
28010 SpriteSheetSize [2]int16 // in sprites.
28011 SpritePos [2]int16 // in sprite sheet.
28013 MakeFootstepSnds bool
28014 RotateSpeed float32 // in radians per second.
28016 Colors []color.NRGBA
28017 CollideWithAOs bool
28020 FaceRotateDirOff float32 // in degrees.
28023 NametagColor color.NRGBA
28024 FaceRotateSpeed float32 // in degrees per second.
28028 MaxBreath uint16 // Player only.
28029 EyeHeight float32 // Player only.
28030 ZoomFOV float32 // in degrees. Player only.
28031 UseTextureAlpha bool
28032 DmgTextureMod Texture // suffix
28035 NametagBG color.NRGBA
28036 }))(obj)).Colors)) > math.MaxUint16 {
28040 x := uint16(len(((*(*(struct {
28041 MaxHP uint16 // Player only.
28042 CollideWithNodes bool
28043 Weight float32 // deprecated
28047 VisualSize [3]float32
28049 SpriteSheetSize [2]int16 // in sprites.
28050 SpritePos [2]int16 // in sprite sheet.
28052 MakeFootstepSnds bool
28053 RotateSpeed float32 // in radians per second.
28055 Colors []color.NRGBA
28056 CollideWithAOs bool
28059 FaceRotateDirOff float32 // in degrees.
28062 NametagColor color.NRGBA
28063 FaceRotateSpeed float32 // in degrees per second.
28067 MaxBreath uint16 // Player only.
28068 EyeHeight float32 // Player only.
28069 ZoomFOV float32 // in degrees. Player only.
28070 UseTextureAlpha bool
28071 DmgTextureMod Texture // suffix
28074 NametagBG color.NRGBA
28075 }))(obj)).Colors)))
28076 write16(w, uint16(x))
28078 for local340 := range (*(*(struct {
28079 MaxHP uint16 // Player only.
28080 CollideWithNodes bool
28081 Weight float32 // deprecated
28085 VisualSize [3]float32
28087 SpriteSheetSize [2]int16 // in sprites.
28088 SpritePos [2]int16 // in sprite sheet.
28090 MakeFootstepSnds bool
28091 RotateSpeed float32 // in radians per second.
28093 Colors []color.NRGBA
28094 CollideWithAOs bool
28097 FaceRotateDirOff float32 // in degrees.
28100 NametagColor color.NRGBA
28101 FaceRotateSpeed float32 // in degrees per second.
28105 MaxBreath uint16 // Player only.
28106 EyeHeight float32 // Player only.
28107 ZoomFOV float32 // in degrees. Player only.
28108 UseTextureAlpha bool
28109 DmgTextureMod Texture // suffix
28112 NametagBG color.NRGBA
28115 x := ((*(*(struct {
28116 MaxHP uint16 // Player only.
28117 CollideWithNodes bool
28118 Weight float32 // deprecated
28122 VisualSize [3]float32
28124 SpriteSheetSize [2]int16 // in sprites.
28125 SpritePos [2]int16 // in sprite sheet.
28127 MakeFootstepSnds bool
28128 RotateSpeed float32 // in radians per second.
28130 Colors []color.NRGBA
28131 CollideWithAOs bool
28134 FaceRotateDirOff float32 // in degrees.
28137 NametagColor color.NRGBA
28138 FaceRotateSpeed float32 // in degrees per second.
28142 MaxBreath uint16 // Player only.
28143 EyeHeight float32 // Player only.
28144 ZoomFOV float32 // in degrees. Player only.
28145 UseTextureAlpha bool
28146 DmgTextureMod Texture // suffix
28149 NametagBG color.NRGBA
28150 }))(obj)).Colors)[local340]
28151 w.Write([]byte{x.A, x.R, x.G, x.B})
28157 MaxHP uint16 // Player only.
28158 CollideWithNodes bool
28159 Weight float32 // deprecated
28163 VisualSize [3]float32
28165 SpriteSheetSize [2]int16 // in sprites.
28166 SpritePos [2]int16 // in sprite sheet.
28168 MakeFootstepSnds bool
28169 RotateSpeed float32 // in radians per second.
28171 Colors []color.NRGBA
28172 CollideWithAOs bool
28175 FaceRotateDirOff float32 // in degrees.
28178 NametagColor color.NRGBA
28179 FaceRotateSpeed float32 // in degrees per second.
28183 MaxBreath uint16 // Player only.
28184 EyeHeight float32 // Player only.
28185 ZoomFOV float32 // in degrees. Player only.
28186 UseTextureAlpha bool
28187 DmgTextureMod Texture // suffix
28190 NametagBG color.NRGBA
28191 }))(obj)).CollideWithAOs
28201 MaxHP uint16 // Player only.
28202 CollideWithNodes bool
28203 Weight float32 // deprecated
28207 VisualSize [3]float32
28209 SpriteSheetSize [2]int16 // in sprites.
28210 SpritePos [2]int16 // in sprite sheet.
28212 MakeFootstepSnds bool
28213 RotateSpeed float32 // in radians per second.
28215 Colors []color.NRGBA
28216 CollideWithAOs bool
28219 FaceRotateDirOff float32 // in degrees.
28222 NametagColor color.NRGBA
28223 FaceRotateSpeed float32 // in degrees per second.
28227 MaxBreath uint16 // Player only.
28228 EyeHeight float32 // Player only.
28229 ZoomFOV float32 // in degrees. Player only.
28230 UseTextureAlpha bool
28231 DmgTextureMod Texture // suffix
28234 NametagBG color.NRGBA
28235 }))(obj)).StepHeight
28236 write32(w, math.Float32bits(x))
28240 MaxHP uint16 // Player only.
28241 CollideWithNodes bool
28242 Weight float32 // deprecated
28246 VisualSize [3]float32
28248 SpriteSheetSize [2]int16 // in sprites.
28249 SpritePos [2]int16 // in sprite sheet.
28251 MakeFootstepSnds bool
28252 RotateSpeed float32 // in radians per second.
28254 Colors []color.NRGBA
28255 CollideWithAOs bool
28258 FaceRotateDirOff float32 // in degrees.
28261 NametagColor color.NRGBA
28262 FaceRotateSpeed float32 // in degrees per second.
28266 MaxBreath uint16 // Player only.
28267 EyeHeight float32 // Player only.
28268 ZoomFOV float32 // in degrees. Player only.
28269 UseTextureAlpha bool
28270 DmgTextureMod Texture // suffix
28273 NametagBG color.NRGBA
28274 }))(obj)).FaceRotateDir
28284 MaxHP uint16 // Player only.
28285 CollideWithNodes bool
28286 Weight float32 // deprecated
28290 VisualSize [3]float32
28292 SpriteSheetSize [2]int16 // in sprites.
28293 SpritePos [2]int16 // in sprite sheet.
28295 MakeFootstepSnds bool
28296 RotateSpeed float32 // in radians per second.
28298 Colors []color.NRGBA
28299 CollideWithAOs bool
28302 FaceRotateDirOff float32 // in degrees.
28305 NametagColor color.NRGBA
28306 FaceRotateSpeed float32 // in degrees per second.
28310 MaxBreath uint16 // Player only.
28311 EyeHeight float32 // Player only.
28312 ZoomFOV float32 // in degrees. Player only.
28313 UseTextureAlpha bool
28314 DmgTextureMod Texture // suffix
28317 NametagBG color.NRGBA
28318 }))(obj)).FaceRotateDirOff
28319 write32(w, math.Float32bits(x))
28323 MaxHP uint16 // Player only.
28324 CollideWithNodes bool
28325 Weight float32 // deprecated
28329 VisualSize [3]float32
28331 SpriteSheetSize [2]int16 // in sprites.
28332 SpritePos [2]int16 // in sprite sheet.
28334 MakeFootstepSnds bool
28335 RotateSpeed float32 // in radians per second.
28337 Colors []color.NRGBA
28338 CollideWithAOs bool
28341 FaceRotateDirOff float32 // in degrees.
28344 NametagColor color.NRGBA
28345 FaceRotateSpeed float32 // in degrees per second.
28349 MaxBreath uint16 // Player only.
28350 EyeHeight float32 // Player only.
28351 ZoomFOV float32 // in degrees. Player only.
28352 UseTextureAlpha bool
28353 DmgTextureMod Texture // suffix
28356 NametagBG color.NRGBA
28357 }))(obj)).BackfaceCull
28365 if len(([]byte((*(*(struct {
28366 MaxHP uint16 // Player only.
28367 CollideWithNodes bool
28368 Weight float32 // deprecated
28372 VisualSize [3]float32
28374 SpriteSheetSize [2]int16 // in sprites.
28375 SpritePos [2]int16 // in sprite sheet.
28377 MakeFootstepSnds bool
28378 RotateSpeed float32 // in radians per second.
28380 Colors []color.NRGBA
28381 CollideWithAOs bool
28384 FaceRotateDirOff float32 // in degrees.
28387 NametagColor color.NRGBA
28388 FaceRotateSpeed float32 // in degrees per second.
28392 MaxBreath uint16 // Player only.
28393 EyeHeight float32 // Player only.
28394 ZoomFOV float32 // in degrees. Player only.
28395 UseTextureAlpha bool
28396 DmgTextureMod Texture // suffix
28399 NametagBG color.NRGBA
28400 }))(obj)).Nametag))) > math.MaxUint16 {
28404 x := uint16(len(([]byte((*(*(struct {
28405 MaxHP uint16 // Player only.
28406 CollideWithNodes bool
28407 Weight float32 // deprecated
28411 VisualSize [3]float32
28413 SpriteSheetSize [2]int16 // in sprites.
28414 SpritePos [2]int16 // in sprite sheet.
28416 MakeFootstepSnds bool
28417 RotateSpeed float32 // in radians per second.
28419 Colors []color.NRGBA
28420 CollideWithAOs bool
28423 FaceRotateDirOff float32 // in degrees.
28426 NametagColor color.NRGBA
28427 FaceRotateSpeed float32 // in degrees per second.
28431 MaxBreath uint16 // Player only.
28432 EyeHeight float32 // Player only.
28433 ZoomFOV float32 // in degrees. Player only.
28434 UseTextureAlpha bool
28435 DmgTextureMod Texture // suffix
28438 NametagBG color.NRGBA
28439 }))(obj)).Nametag))))
28440 write16(w, uint16(x))
28443 _, err := w.Write(([]byte((*(*(struct {
28444 MaxHP uint16 // Player only.
28445 CollideWithNodes bool
28446 Weight float32 // deprecated
28450 VisualSize [3]float32
28452 SpriteSheetSize [2]int16 // in sprites.
28453 SpritePos [2]int16 // in sprite sheet.
28455 MakeFootstepSnds bool
28456 RotateSpeed float32 // in radians per second.
28458 Colors []color.NRGBA
28459 CollideWithAOs bool
28462 FaceRotateDirOff float32 // in degrees.
28465 NametagColor color.NRGBA
28466 FaceRotateSpeed float32 // in degrees per second.
28470 MaxBreath uint16 // Player only.
28471 EyeHeight float32 // Player only.
28472 ZoomFOV float32 // in degrees. Player only.
28473 UseTextureAlpha bool
28474 DmgTextureMod Texture // suffix
28477 NametagBG color.NRGBA
28478 }))(obj)).Nametag))[:])
28483 MaxHP uint16 // Player only.
28484 CollideWithNodes bool
28485 Weight float32 // deprecated
28489 VisualSize [3]float32
28491 SpriteSheetSize [2]int16 // in sprites.
28492 SpritePos [2]int16 // in sprite sheet.
28494 MakeFootstepSnds bool
28495 RotateSpeed float32 // in radians per second.
28497 Colors []color.NRGBA
28498 CollideWithAOs bool
28501 FaceRotateDirOff float32 // in degrees.
28504 NametagColor color.NRGBA
28505 FaceRotateSpeed float32 // in degrees per second.
28509 MaxBreath uint16 // Player only.
28510 EyeHeight float32 // Player only.
28511 ZoomFOV float32 // in degrees. Player only.
28512 UseTextureAlpha bool
28513 DmgTextureMod Texture // suffix
28516 NametagBG color.NRGBA
28517 }))(obj)).NametagColor
28518 w.Write([]byte{x.A, x.R, x.G, x.B})
28523 MaxHP uint16 // Player only.
28524 CollideWithNodes bool
28525 Weight float32 // deprecated
28529 VisualSize [3]float32
28531 SpriteSheetSize [2]int16 // in sprites.
28532 SpritePos [2]int16 // in sprite sheet.
28534 MakeFootstepSnds bool
28535 RotateSpeed float32 // in radians per second.
28537 Colors []color.NRGBA
28538 CollideWithAOs bool
28541 FaceRotateDirOff float32 // in degrees.
28544 NametagColor color.NRGBA
28545 FaceRotateSpeed float32 // in degrees per second.
28549 MaxBreath uint16 // Player only.
28550 EyeHeight float32 // Player only.
28551 ZoomFOV float32 // in degrees. Player only.
28552 UseTextureAlpha bool
28553 DmgTextureMod Texture // suffix
28556 NametagBG color.NRGBA
28557 }))(obj)).FaceRotateSpeed
28558 write32(w, math.Float32bits(x))
28560 if 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)).Infotext))) > math.MaxUint16 {
28599 x := uint16(len(([]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)).Infotext))))
28635 write16(w, uint16(x))
28638 _, err := w.Write(([]byte((*(*(struct {
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
28673 }))(obj)).Infotext))[:])
28676 if len(([]byte((*(*(struct {
28677 MaxHP uint16 // Player only.
28678 CollideWithNodes bool
28679 Weight float32 // deprecated
28683 VisualSize [3]float32
28685 SpriteSheetSize [2]int16 // in sprites.
28686 SpritePos [2]int16 // in sprite sheet.
28688 MakeFootstepSnds bool
28689 RotateSpeed float32 // in radians per second.
28691 Colors []color.NRGBA
28692 CollideWithAOs bool
28695 FaceRotateDirOff float32 // in degrees.
28698 NametagColor color.NRGBA
28699 FaceRotateSpeed float32 // in degrees per second.
28703 MaxBreath uint16 // Player only.
28704 EyeHeight float32 // Player only.
28705 ZoomFOV float32 // in degrees. Player only.
28706 UseTextureAlpha bool
28707 DmgTextureMod Texture // suffix
28710 NametagBG color.NRGBA
28711 }))(obj)).Itemstring))) > math.MaxUint16 {
28715 x := uint16(len(([]byte((*(*(struct {
28716 MaxHP uint16 // Player only.
28717 CollideWithNodes bool
28718 Weight float32 // deprecated
28722 VisualSize [3]float32
28724 SpriteSheetSize [2]int16 // in sprites.
28725 SpritePos [2]int16 // in sprite sheet.
28727 MakeFootstepSnds bool
28728 RotateSpeed float32 // in radians per second.
28730 Colors []color.NRGBA
28731 CollideWithAOs bool
28734 FaceRotateDirOff float32 // in degrees.
28737 NametagColor color.NRGBA
28738 FaceRotateSpeed float32 // in degrees per second.
28742 MaxBreath uint16 // Player only.
28743 EyeHeight float32 // Player only.
28744 ZoomFOV float32 // in degrees. Player only.
28745 UseTextureAlpha bool
28746 DmgTextureMod Texture // suffix
28749 NametagBG color.NRGBA
28750 }))(obj)).Itemstring))))
28751 write16(w, uint16(x))
28754 _, err := w.Write(([]byte((*(*(struct {
28755 MaxHP uint16 // Player only.
28756 CollideWithNodes bool
28757 Weight float32 // deprecated
28761 VisualSize [3]float32
28763 SpriteSheetSize [2]int16 // in sprites.
28764 SpritePos [2]int16 // in sprite sheet.
28766 MakeFootstepSnds bool
28767 RotateSpeed float32 // in radians per second.
28769 Colors []color.NRGBA
28770 CollideWithAOs bool
28773 FaceRotateDirOff float32 // in degrees.
28776 NametagColor color.NRGBA
28777 FaceRotateSpeed float32 // in degrees per second.
28781 MaxBreath uint16 // Player only.
28782 EyeHeight float32 // Player only.
28783 ZoomFOV float32 // in degrees. Player only.
28784 UseTextureAlpha bool
28785 DmgTextureMod Texture // suffix
28788 NametagBG color.NRGBA
28789 }))(obj)).Itemstring))[:])
28794 MaxHP uint16 // Player only.
28795 CollideWithNodes bool
28796 Weight float32 // deprecated
28800 VisualSize [3]float32
28802 SpriteSheetSize [2]int16 // in sprites.
28803 SpritePos [2]int16 // in sprite sheet.
28805 MakeFootstepSnds bool
28806 RotateSpeed float32 // in radians per second.
28808 Colors []color.NRGBA
28809 CollideWithAOs bool
28812 FaceRotateDirOff float32 // in degrees.
28815 NametagColor color.NRGBA
28816 FaceRotateSpeed float32 // in degrees per second.
28820 MaxBreath uint16 // Player only.
28821 EyeHeight float32 // Player only.
28822 ZoomFOV float32 // in degrees. Player only.
28823 UseTextureAlpha bool
28824 DmgTextureMod Texture // suffix
28827 NametagBG color.NRGBA
28829 write8(w, uint8(x))
28833 MaxHP uint16 // Player only.
28834 CollideWithNodes bool
28835 Weight float32 // deprecated
28839 VisualSize [3]float32
28841 SpriteSheetSize [2]int16 // in sprites.
28842 SpritePos [2]int16 // in sprite sheet.
28844 MakeFootstepSnds bool
28845 RotateSpeed float32 // in radians per second.
28847 Colors []color.NRGBA
28848 CollideWithAOs bool
28851 FaceRotateDirOff float32 // in degrees.
28854 NametagColor color.NRGBA
28855 FaceRotateSpeed float32 // in degrees per second.
28859 MaxBreath uint16 // Player only.
28860 EyeHeight float32 // Player only.
28861 ZoomFOV float32 // in degrees. Player only.
28862 UseTextureAlpha bool
28863 DmgTextureMod Texture // suffix
28866 NametagBG color.NRGBA
28867 }))(obj)).MaxBreath
28868 write16(w, uint16(x))
28872 MaxHP uint16 // Player only.
28873 CollideWithNodes bool
28874 Weight float32 // deprecated
28878 VisualSize [3]float32
28880 SpriteSheetSize [2]int16 // in sprites.
28881 SpritePos [2]int16 // in sprite sheet.
28883 MakeFootstepSnds bool
28884 RotateSpeed float32 // in radians per second.
28886 Colors []color.NRGBA
28887 CollideWithAOs bool
28890 FaceRotateDirOff float32 // in degrees.
28893 NametagColor color.NRGBA
28894 FaceRotateSpeed float32 // in degrees per second.
28898 MaxBreath uint16 // Player only.
28899 EyeHeight float32 // Player only.
28900 ZoomFOV float32 // in degrees. Player only.
28901 UseTextureAlpha bool
28902 DmgTextureMod Texture // suffix
28905 NametagBG color.NRGBA
28906 }))(obj)).EyeHeight
28907 write32(w, math.Float32bits(x))
28911 MaxHP uint16 // Player only.
28912 CollideWithNodes bool
28913 Weight float32 // deprecated
28917 VisualSize [3]float32
28919 SpriteSheetSize [2]int16 // in sprites.
28920 SpritePos [2]int16 // in sprite sheet.
28922 MakeFootstepSnds bool
28923 RotateSpeed float32 // in radians per second.
28925 Colors []color.NRGBA
28926 CollideWithAOs bool
28929 FaceRotateDirOff float32 // in degrees.
28932 NametagColor color.NRGBA
28933 FaceRotateSpeed float32 // in degrees per second.
28937 MaxBreath uint16 // Player only.
28938 EyeHeight float32 // Player only.
28939 ZoomFOV float32 // in degrees. Player only.
28940 UseTextureAlpha bool
28941 DmgTextureMod Texture // suffix
28944 NametagBG color.NRGBA
28946 write32(w, math.Float32bits(x))
28950 MaxHP uint16 // Player only.
28951 CollideWithNodes bool
28952 Weight float32 // deprecated
28956 VisualSize [3]float32
28958 SpriteSheetSize [2]int16 // in sprites.
28959 SpritePos [2]int16 // in sprite sheet.
28961 MakeFootstepSnds bool
28962 RotateSpeed float32 // in radians per second.
28964 Colors []color.NRGBA
28965 CollideWithAOs bool
28968 FaceRotateDirOff float32 // in degrees.
28971 NametagColor color.NRGBA
28972 FaceRotateSpeed float32 // in degrees per second.
28976 MaxBreath uint16 // Player only.
28977 EyeHeight float32 // Player only.
28978 ZoomFOV float32 // in degrees. Player only.
28979 UseTextureAlpha bool
28980 DmgTextureMod Texture // suffix
28983 NametagBG color.NRGBA
28984 }))(obj)).UseTextureAlpha
28992 if err := pcall(func() {
28994 MaxHP uint16 // Player only.
28995 CollideWithNodes bool
28996 Weight float32 // deprecated
29000 VisualSize [3]float32
29002 SpriteSheetSize [2]int16 // in sprites.
29003 SpritePos [2]int16 // in sprite sheet.
29005 MakeFootstepSnds bool
29006 RotateSpeed float32 // in radians per second.
29008 Colors []color.NRGBA
29009 CollideWithAOs bool
29012 FaceRotateDirOff float32 // in degrees.
29015 NametagColor color.NRGBA
29016 FaceRotateSpeed float32 // in degrees per second.
29020 MaxBreath uint16 // Player only.
29021 EyeHeight float32 // Player only.
29022 ZoomFOV float32 // in degrees. Player only.
29023 UseTextureAlpha bool
29024 DmgTextureMod Texture // suffix
29027 NametagBG color.NRGBA
29028 }))(obj)).DmgTextureMod).serialize(w)
29033 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29037 MaxHP uint16 // Player only.
29038 CollideWithNodes bool
29039 Weight float32 // deprecated
29043 VisualSize [3]float32
29045 SpriteSheetSize [2]int16 // in sprites.
29046 SpritePos [2]int16 // in sprite sheet.
29048 MakeFootstepSnds bool
29049 RotateSpeed float32 // in radians per second.
29051 Colors []color.NRGBA
29052 CollideWithAOs bool
29055 FaceRotateDirOff float32 // in degrees.
29058 NametagColor color.NRGBA
29059 FaceRotateSpeed float32 // in degrees per second.
29063 MaxBreath uint16 // Player only.
29064 EyeHeight float32 // Player only.
29065 ZoomFOV float32 // in degrees. Player only.
29066 UseTextureAlpha bool
29067 DmgTextureMod Texture // suffix
29070 NametagBG color.NRGBA
29081 MaxHP uint16 // Player only.
29082 CollideWithNodes bool
29083 Weight float32 // deprecated
29087 VisualSize [3]float32
29089 SpriteSheetSize [2]int16 // in sprites.
29090 SpritePos [2]int16 // in sprite sheet.
29092 MakeFootstepSnds bool
29093 RotateSpeed float32 // in radians per second.
29095 Colors []color.NRGBA
29096 CollideWithAOs bool
29099 FaceRotateDirOff float32 // in degrees.
29102 NametagColor color.NRGBA
29103 FaceRotateSpeed float32 // in degrees per second.
29107 MaxBreath uint16 // Player only.
29108 EyeHeight float32 // Player only.
29109 ZoomFOV float32 // in degrees. Player only.
29110 UseTextureAlpha bool
29111 DmgTextureMod Texture // suffix
29114 NametagBG color.NRGBA
29115 }))(obj)).ShowOnMinimap
29125 MaxHP uint16 // Player only.
29126 CollideWithNodes bool
29127 Weight float32 // deprecated
29131 VisualSize [3]float32
29133 SpriteSheetSize [2]int16 // in sprites.
29134 SpritePos [2]int16 // in sprite sheet.
29136 MakeFootstepSnds bool
29137 RotateSpeed float32 // in radians per second.
29139 Colors []color.NRGBA
29140 CollideWithAOs bool
29143 FaceRotateDirOff float32 // in degrees.
29146 NametagColor color.NRGBA
29147 FaceRotateSpeed float32 // in degrees per second.
29151 MaxBreath uint16 // Player only.
29152 EyeHeight float32 // Player only.
29153 ZoomFOV float32 // in degrees. Player only.
29154 UseTextureAlpha bool
29155 DmgTextureMod Texture // suffix
29158 NametagBG color.NRGBA
29159 }))(obj)).NametagBG
29160 w.Write([]byte{x.A, x.R, x.G, x.B})
29165 func (obj *AOProps) deserialize(r io.Reader) {
29168 local342 := uint8(4)
29173 if local341 != local342 {
29174 chk(fmt.Errorf("const %v: %v", "uint8(4)", local341))
29178 p := &(*(*(struct {
29179 MaxHP uint16 // Player only.
29180 CollideWithNodes bool
29181 Weight float32 // deprecated
29185 VisualSize [3]float32
29187 SpriteSheetSize [2]int16 // in sprites.
29188 SpritePos [2]int16 // in sprite sheet.
29190 MakeFootstepSnds bool
29191 RotateSpeed float32 // in radians per second.
29193 Colors []color.NRGBA
29194 CollideWithAOs bool
29197 FaceRotateDirOff float32 // in degrees.
29200 NametagColor color.NRGBA
29201 FaceRotateSpeed float32 // in degrees per second.
29205 MaxBreath uint16 // Player only.
29206 EyeHeight float32 // Player only.
29207 ZoomFOV float32 // in degrees. Player only.
29208 UseTextureAlpha bool
29209 DmgTextureMod Texture // suffix
29212 NametagBG color.NRGBA
29217 p := &(*(*(struct {
29218 MaxHP uint16 // Player only.
29219 CollideWithNodes bool
29220 Weight float32 // deprecated
29224 VisualSize [3]float32
29226 SpriteSheetSize [2]int16 // in sprites.
29227 SpritePos [2]int16 // in sprite sheet.
29229 MakeFootstepSnds bool
29230 RotateSpeed float32 // in radians per second.
29232 Colors []color.NRGBA
29233 CollideWithAOs bool
29236 FaceRotateDirOff float32 // in degrees.
29239 NametagColor color.NRGBA
29240 FaceRotateSpeed float32 // in degrees per second.
29244 MaxBreath uint16 // Player only.
29245 EyeHeight float32 // Player only.
29246 ZoomFOV float32 // in degrees. Player only.
29247 UseTextureAlpha bool
29248 DmgTextureMod Texture // suffix
29251 NametagBG color.NRGBA
29252 }))(obj)).CollideWithNodes
29253 switch n := read8(r); n {
29259 chk(fmt.Errorf("invalid bool: %d", n))
29264 p := &(*(*(struct {
29265 MaxHP uint16 // Player only.
29266 CollideWithNodes bool
29267 Weight float32 // deprecated
29271 VisualSize [3]float32
29273 SpriteSheetSize [2]int16 // in sprites.
29274 SpritePos [2]int16 // in sprite sheet.
29276 MakeFootstepSnds bool
29277 RotateSpeed float32 // in radians per second.
29279 Colors []color.NRGBA
29280 CollideWithAOs bool
29283 FaceRotateDirOff float32 // in degrees.
29286 NametagColor color.NRGBA
29287 FaceRotateSpeed float32 // in degrees per second.
29291 MaxBreath uint16 // Player only.
29292 EyeHeight float32 // Player only.
29293 ZoomFOV float32 // in degrees. Player only.
29294 UseTextureAlpha bool
29295 DmgTextureMod Texture // suffix
29298 NametagBG color.NRGBA
29300 *p = math.Float32frombits(read32(r))
29302 if err := pcall(func() {
29304 MaxHP uint16 // Player only.
29305 CollideWithNodes bool
29306 Weight float32 // deprecated
29310 VisualSize [3]float32
29312 SpriteSheetSize [2]int16 // in sprites.
29313 SpritePos [2]int16 // in sprite sheet.
29315 MakeFootstepSnds bool
29316 RotateSpeed float32 // in radians per second.
29318 Colors []color.NRGBA
29319 CollideWithAOs bool
29322 FaceRotateDirOff float32 // in degrees.
29325 NametagColor color.NRGBA
29326 FaceRotateSpeed float32 // in degrees per second.
29330 MaxBreath uint16 // Player only.
29331 EyeHeight float32 // Player only.
29332 ZoomFOV float32 // in degrees. Player only.
29333 UseTextureAlpha bool
29334 DmgTextureMod Texture // suffix
29337 NametagBG color.NRGBA
29338 }))(obj)).ColBox).deserialize(r)
29343 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29345 if err := pcall(func() {
29347 MaxHP uint16 // Player only.
29348 CollideWithNodes bool
29349 Weight float32 // deprecated
29353 VisualSize [3]float32
29355 SpriteSheetSize [2]int16 // in sprites.
29356 SpritePos [2]int16 // in sprite sheet.
29358 MakeFootstepSnds bool
29359 RotateSpeed float32 // in radians per second.
29361 Colors []color.NRGBA
29362 CollideWithAOs bool
29365 FaceRotateDirOff float32 // in degrees.
29368 NametagColor color.NRGBA
29369 FaceRotateSpeed float32 // in degrees per second.
29373 MaxBreath uint16 // Player only.
29374 EyeHeight float32 // Player only.
29375 ZoomFOV float32 // in degrees. Player only.
29376 UseTextureAlpha bool
29377 DmgTextureMod Texture // suffix
29380 NametagBG color.NRGBA
29381 }))(obj)).SelBox).deserialize(r)
29386 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29389 p := &(*(*(struct {
29390 MaxHP uint16 // Player only.
29391 CollideWithNodes bool
29392 Weight float32 // deprecated
29396 VisualSize [3]float32
29398 SpriteSheetSize [2]int16 // in sprites.
29399 SpritePos [2]int16 // in sprite sheet.
29401 MakeFootstepSnds bool
29402 RotateSpeed float32 // in radians per second.
29404 Colors []color.NRGBA
29405 CollideWithAOs bool
29408 FaceRotateDirOff float32 // in degrees.
29411 NametagColor color.NRGBA
29412 FaceRotateSpeed float32 // in degrees per second.
29416 MaxBreath uint16 // Player only.
29417 EyeHeight float32 // Player only.
29418 ZoomFOV float32 // in degrees. Player only.
29419 UseTextureAlpha bool
29420 DmgTextureMod Texture // suffix
29423 NametagBG color.NRGBA
29424 }))(obj)).Pointable
29425 switch n := read8(r); n {
29431 chk(fmt.Errorf("invalid bool: %d", n))
29435 var local343 []uint8
29436 var local344 uint16
29441 (local343) = make([]uint8, local344)
29443 _, err := io.ReadFull(r, (local343)[:])
29447 MaxHP uint16 // Player only.
29448 CollideWithNodes bool
29449 Weight float32 // deprecated
29453 VisualSize [3]float32
29455 SpriteSheetSize [2]int16 // in sprites.
29456 SpritePos [2]int16 // in sprite sheet.
29458 MakeFootstepSnds bool
29459 RotateSpeed float32 // in radians per second.
29461 Colors []color.NRGBA
29462 CollideWithAOs bool
29465 FaceRotateDirOff float32 // in degrees.
29468 NametagColor color.NRGBA
29469 FaceRotateSpeed float32 // in degrees per second.
29473 MaxBreath uint16 // Player only.
29474 EyeHeight float32 // Player only.
29475 ZoomFOV float32 // in degrees. Player only.
29476 UseTextureAlpha bool
29477 DmgTextureMod Texture // suffix
29480 NametagBG color.NRGBA
29481 }))(obj)).Visual) = string(local343)
29482 for local345 := range (*(*(struct {
29483 MaxHP uint16 // Player only.
29484 CollideWithNodes bool
29485 Weight float32 // deprecated
29489 VisualSize [3]float32
29491 SpriteSheetSize [2]int16 // in sprites.
29492 SpritePos [2]int16 // in sprite sheet.
29494 MakeFootstepSnds bool
29495 RotateSpeed float32 // in radians per second.
29497 Colors []color.NRGBA
29498 CollideWithAOs bool
29501 FaceRotateDirOff float32 // in degrees.
29504 NametagColor color.NRGBA
29505 FaceRotateSpeed float32 // in degrees per second.
29509 MaxBreath uint16 // Player only.
29510 EyeHeight float32 // Player only.
29511 ZoomFOV float32 // in degrees. Player only.
29512 UseTextureAlpha bool
29513 DmgTextureMod Texture // suffix
29516 NametagBG color.NRGBA
29517 }))(obj)).VisualSize {
29519 p := &((*(*(struct {
29520 MaxHP uint16 // Player only.
29521 CollideWithNodes bool
29522 Weight float32 // deprecated
29526 VisualSize [3]float32
29528 SpriteSheetSize [2]int16 // in sprites.
29529 SpritePos [2]int16 // in sprite sheet.
29531 MakeFootstepSnds bool
29532 RotateSpeed float32 // in radians per second.
29534 Colors []color.NRGBA
29535 CollideWithAOs bool
29538 FaceRotateDirOff float32 // in degrees.
29541 NametagColor color.NRGBA
29542 FaceRotateSpeed float32 // in degrees per second.
29546 MaxBreath uint16 // Player only.
29547 EyeHeight float32 // Player only.
29548 ZoomFOV float32 // in degrees. Player only.
29549 UseTextureAlpha bool
29550 DmgTextureMod Texture // suffix
29553 NametagBG color.NRGBA
29554 }))(obj)).VisualSize)[local345]
29555 *p = math.Float32frombits(read32(r))
29558 var local346 uint16
29564 MaxHP uint16 // Player only.
29565 CollideWithNodes bool
29566 Weight float32 // deprecated
29570 VisualSize [3]float32
29572 SpriteSheetSize [2]int16 // in sprites.
29573 SpritePos [2]int16 // in sprite sheet.
29575 MakeFootstepSnds bool
29576 RotateSpeed float32 // in radians per second.
29578 Colors []color.NRGBA
29579 CollideWithAOs bool
29582 FaceRotateDirOff float32 // in degrees.
29585 NametagColor color.NRGBA
29586 FaceRotateSpeed float32 // in degrees per second.
29590 MaxBreath uint16 // Player only.
29591 EyeHeight float32 // Player only.
29592 ZoomFOV float32 // in degrees. Player only.
29593 UseTextureAlpha bool
29594 DmgTextureMod Texture // suffix
29597 NametagBG color.NRGBA
29598 }))(obj)).Textures) = make([]Texture, local346)
29599 for local347 := range (*(*(struct {
29600 MaxHP uint16 // Player only.
29601 CollideWithNodes bool
29602 Weight float32 // deprecated
29606 VisualSize [3]float32
29608 SpriteSheetSize [2]int16 // in sprites.
29609 SpritePos [2]int16 // in sprite sheet.
29611 MakeFootstepSnds bool
29612 RotateSpeed float32 // in radians per second.
29614 Colors []color.NRGBA
29615 CollideWithAOs bool
29618 FaceRotateDirOff float32 // in degrees.
29621 NametagColor color.NRGBA
29622 FaceRotateSpeed float32 // in degrees per second.
29626 MaxBreath uint16 // Player only.
29627 EyeHeight float32 // Player only.
29628 ZoomFOV float32 // in degrees. Player only.
29629 UseTextureAlpha bool
29630 DmgTextureMod Texture // suffix
29633 NametagBG color.NRGBA
29634 }))(obj)).Textures {
29635 if err := pcall(func() {
29637 MaxHP uint16 // Player only.
29638 CollideWithNodes bool
29639 Weight float32 // deprecated
29643 VisualSize [3]float32
29645 SpriteSheetSize [2]int16 // in sprites.
29646 SpritePos [2]int16 // in sprite sheet.
29648 MakeFootstepSnds bool
29649 RotateSpeed float32 // in radians per second.
29651 Colors []color.NRGBA
29652 CollideWithAOs bool
29655 FaceRotateDirOff float32 // in degrees.
29658 NametagColor color.NRGBA
29659 FaceRotateSpeed float32 // in degrees per second.
29663 MaxBreath uint16 // Player only.
29664 EyeHeight float32 // Player only.
29665 ZoomFOV float32 // in degrees. Player only.
29666 UseTextureAlpha bool
29667 DmgTextureMod Texture // suffix
29670 NametagBG color.NRGBA
29671 }))(obj)).Textures)[local347]).deserialize(r)
29676 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29679 for local348 := range (*(*(struct {
29680 MaxHP uint16 // Player only.
29681 CollideWithNodes bool
29682 Weight float32 // deprecated
29686 VisualSize [3]float32
29688 SpriteSheetSize [2]int16 // in sprites.
29689 SpritePos [2]int16 // in sprite sheet.
29691 MakeFootstepSnds bool
29692 RotateSpeed float32 // in radians per second.
29694 Colors []color.NRGBA
29695 CollideWithAOs bool
29698 FaceRotateDirOff float32 // in degrees.
29701 NametagColor color.NRGBA
29702 FaceRotateSpeed float32 // in degrees per second.
29706 MaxBreath uint16 // Player only.
29707 EyeHeight float32 // Player only.
29708 ZoomFOV float32 // in degrees. Player only.
29709 UseTextureAlpha bool
29710 DmgTextureMod Texture // suffix
29713 NametagBG color.NRGBA
29714 }))(obj)).SpriteSheetSize {
29716 p := &((*(*(struct {
29717 MaxHP uint16 // Player only.
29718 CollideWithNodes bool
29719 Weight float32 // deprecated
29723 VisualSize [3]float32
29725 SpriteSheetSize [2]int16 // in sprites.
29726 SpritePos [2]int16 // in sprite sheet.
29728 MakeFootstepSnds bool
29729 RotateSpeed float32 // in radians per second.
29731 Colors []color.NRGBA
29732 CollideWithAOs bool
29735 FaceRotateDirOff float32 // in degrees.
29738 NametagColor color.NRGBA
29739 FaceRotateSpeed float32 // in degrees per second.
29743 MaxBreath uint16 // Player only.
29744 EyeHeight float32 // Player only.
29745 ZoomFOV float32 // in degrees. Player only.
29746 UseTextureAlpha bool
29747 DmgTextureMod Texture // suffix
29750 NametagBG color.NRGBA
29751 }))(obj)).SpriteSheetSize)[local348]
29752 *p = int16(read16(r))
29755 for local349 := range (*(*(struct {
29756 MaxHP uint16 // Player only.
29757 CollideWithNodes bool
29758 Weight float32 // deprecated
29762 VisualSize [3]float32
29764 SpriteSheetSize [2]int16 // in sprites.
29765 SpritePos [2]int16 // in sprite sheet.
29767 MakeFootstepSnds bool
29768 RotateSpeed float32 // in radians per second.
29770 Colors []color.NRGBA
29771 CollideWithAOs bool
29774 FaceRotateDirOff float32 // in degrees.
29777 NametagColor color.NRGBA
29778 FaceRotateSpeed float32 // in degrees per second.
29782 MaxBreath uint16 // Player only.
29783 EyeHeight float32 // Player only.
29784 ZoomFOV float32 // in degrees. Player only.
29785 UseTextureAlpha bool
29786 DmgTextureMod Texture // suffix
29789 NametagBG color.NRGBA
29790 }))(obj)).SpritePos {
29792 p := &((*(*(struct {
29793 MaxHP uint16 // Player only.
29794 CollideWithNodes bool
29795 Weight float32 // deprecated
29799 VisualSize [3]float32
29801 SpriteSheetSize [2]int16 // in sprites.
29802 SpritePos [2]int16 // in sprite sheet.
29804 MakeFootstepSnds bool
29805 RotateSpeed float32 // in radians per second.
29807 Colors []color.NRGBA
29808 CollideWithAOs bool
29811 FaceRotateDirOff float32 // in degrees.
29814 NametagColor color.NRGBA
29815 FaceRotateSpeed float32 // in degrees per second.
29819 MaxBreath uint16 // Player only.
29820 EyeHeight float32 // Player only.
29821 ZoomFOV float32 // in degrees. Player only.
29822 UseTextureAlpha bool
29823 DmgTextureMod Texture // suffix
29826 NametagBG color.NRGBA
29827 }))(obj)).SpritePos)[local349]
29828 *p = int16(read16(r))
29832 p := &(*(*(struct {
29833 MaxHP uint16 // Player only.
29834 CollideWithNodes bool
29835 Weight float32 // deprecated
29839 VisualSize [3]float32
29841 SpriteSheetSize [2]int16 // in sprites.
29842 SpritePos [2]int16 // in sprite sheet.
29844 MakeFootstepSnds bool
29845 RotateSpeed float32 // in radians per second.
29847 Colors []color.NRGBA
29848 CollideWithAOs bool
29851 FaceRotateDirOff float32 // in degrees.
29854 NametagColor color.NRGBA
29855 FaceRotateSpeed float32 // in degrees per second.
29859 MaxBreath uint16 // Player only.
29860 EyeHeight float32 // Player only.
29861 ZoomFOV float32 // in degrees. Player only.
29862 UseTextureAlpha bool
29863 DmgTextureMod Texture // suffix
29866 NametagBG color.NRGBA
29868 switch n := read8(r); n {
29874 chk(fmt.Errorf("invalid bool: %d", n))
29879 p := &(*(*(struct {
29880 MaxHP uint16 // Player only.
29881 CollideWithNodes bool
29882 Weight float32 // deprecated
29886 VisualSize [3]float32
29888 SpriteSheetSize [2]int16 // in sprites.
29889 SpritePos [2]int16 // in sprite sheet.
29891 MakeFootstepSnds bool
29892 RotateSpeed float32 // in radians per second.
29894 Colors []color.NRGBA
29895 CollideWithAOs bool
29898 FaceRotateDirOff float32 // in degrees.
29901 NametagColor color.NRGBA
29902 FaceRotateSpeed float32 // in degrees per second.
29906 MaxBreath uint16 // Player only.
29907 EyeHeight float32 // Player only.
29908 ZoomFOV float32 // in degrees. Player only.
29909 UseTextureAlpha bool
29910 DmgTextureMod Texture // suffix
29913 NametagBG color.NRGBA
29914 }))(obj)).MakeFootstepSnds
29915 switch n := read8(r); n {
29921 chk(fmt.Errorf("invalid bool: %d", n))
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)).RotateSpeed
29962 *p = math.Float32frombits(read32(r))
29964 var local350 []uint8
29965 var local351 uint16
29970 (local350) = make([]uint8, local351)
29972 _, err := io.ReadFull(r, (local350)[:])
29976 MaxHP uint16 // Player only.
29977 CollideWithNodes bool
29978 Weight float32 // deprecated
29982 VisualSize [3]float32
29984 SpriteSheetSize [2]int16 // in sprites.
29985 SpritePos [2]int16 // in sprite sheet.
29987 MakeFootstepSnds bool
29988 RotateSpeed float32 // in radians per second.
29990 Colors []color.NRGBA
29991 CollideWithAOs bool
29994 FaceRotateDirOff float32 // in degrees.
29997 NametagColor color.NRGBA
29998 FaceRotateSpeed float32 // in degrees per second.
30002 MaxBreath uint16 // Player only.
30003 EyeHeight float32 // Player only.
30004 ZoomFOV float32 // in degrees. Player only.
30005 UseTextureAlpha bool
30006 DmgTextureMod Texture // suffix
30009 NametagBG color.NRGBA
30010 }))(obj)).Mesh) = string(local350)
30011 var local352 uint16
30017 MaxHP uint16 // Player only.
30018 CollideWithNodes bool
30019 Weight float32 // deprecated
30023 VisualSize [3]float32
30025 SpriteSheetSize [2]int16 // in sprites.
30026 SpritePos [2]int16 // in sprite sheet.
30028 MakeFootstepSnds bool
30029 RotateSpeed float32 // in radians per second.
30031 Colors []color.NRGBA
30032 CollideWithAOs bool
30035 FaceRotateDirOff float32 // in degrees.
30038 NametagColor color.NRGBA
30039 FaceRotateSpeed float32 // in degrees per second.
30043 MaxBreath uint16 // Player only.
30044 EyeHeight float32 // Player only.
30045 ZoomFOV float32 // in degrees. Player only.
30046 UseTextureAlpha bool
30047 DmgTextureMod Texture // suffix
30050 NametagBG color.NRGBA
30051 }))(obj)).Colors) = make([]color.NRGBA, local352)
30052 for local353 := range (*(*(struct {
30053 MaxHP uint16 // Player only.
30054 CollideWithNodes bool
30055 Weight float32 // deprecated
30059 VisualSize [3]float32
30061 SpriteSheetSize [2]int16 // in sprites.
30062 SpritePos [2]int16 // in sprite sheet.
30064 MakeFootstepSnds bool
30065 RotateSpeed float32 // in radians per second.
30067 Colors []color.NRGBA
30068 CollideWithAOs bool
30071 FaceRotateDirOff float32 // in degrees.
30074 NametagColor color.NRGBA
30075 FaceRotateSpeed float32 // in degrees per second.
30079 MaxBreath uint16 // Player only.
30080 EyeHeight float32 // Player only.
30081 ZoomFOV float32 // in degrees. Player only.
30082 UseTextureAlpha bool
30083 DmgTextureMod Texture // suffix
30086 NametagBG color.NRGBA
30089 p := &((*(*(struct {
30090 MaxHP uint16 // Player only.
30091 CollideWithNodes bool
30092 Weight float32 // deprecated
30096 VisualSize [3]float32
30098 SpriteSheetSize [2]int16 // in sprites.
30099 SpritePos [2]int16 // in sprite sheet.
30101 MakeFootstepSnds bool
30102 RotateSpeed float32 // in radians per second.
30104 Colors []color.NRGBA
30105 CollideWithAOs bool
30108 FaceRotateDirOff float32 // in degrees.
30111 NametagColor color.NRGBA
30112 FaceRotateSpeed float32 // in degrees per second.
30116 MaxBreath uint16 // Player only.
30117 EyeHeight float32 // Player only.
30118 ZoomFOV float32 // in degrees. Player only.
30119 UseTextureAlpha bool
30120 DmgTextureMod Texture // suffix
30123 NametagBG color.NRGBA
30124 }))(obj)).Colors)[local353]
30125 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30130 p := &(*(*(struct {
30131 MaxHP uint16 // Player only.
30132 CollideWithNodes bool
30133 Weight float32 // deprecated
30137 VisualSize [3]float32
30139 SpriteSheetSize [2]int16 // in sprites.
30140 SpritePos [2]int16 // in sprite sheet.
30142 MakeFootstepSnds bool
30143 RotateSpeed float32 // in radians per second.
30145 Colors []color.NRGBA
30146 CollideWithAOs bool
30149 FaceRotateDirOff float32 // in degrees.
30152 NametagColor color.NRGBA
30153 FaceRotateSpeed float32 // in degrees per second.
30157 MaxBreath uint16 // Player only.
30158 EyeHeight float32 // Player only.
30159 ZoomFOV float32 // in degrees. Player only.
30160 UseTextureAlpha bool
30161 DmgTextureMod Texture // suffix
30164 NametagBG color.NRGBA
30165 }))(obj)).CollideWithAOs
30166 switch n := read8(r); n {
30172 chk(fmt.Errorf("invalid bool: %d", n))
30177 p := &(*(*(struct {
30178 MaxHP uint16 // Player only.
30179 CollideWithNodes bool
30180 Weight float32 // deprecated
30184 VisualSize [3]float32
30186 SpriteSheetSize [2]int16 // in sprites.
30187 SpritePos [2]int16 // in sprite sheet.
30189 MakeFootstepSnds bool
30190 RotateSpeed float32 // in radians per second.
30192 Colors []color.NRGBA
30193 CollideWithAOs bool
30196 FaceRotateDirOff float32 // in degrees.
30199 NametagColor color.NRGBA
30200 FaceRotateSpeed float32 // in degrees per second.
30204 MaxBreath uint16 // Player only.
30205 EyeHeight float32 // Player only.
30206 ZoomFOV float32 // in degrees. Player only.
30207 UseTextureAlpha bool
30208 DmgTextureMod Texture // suffix
30211 NametagBG color.NRGBA
30212 }))(obj)).StepHeight
30213 *p = math.Float32frombits(read32(r))
30216 p := &(*(*(struct {
30217 MaxHP uint16 // Player only.
30218 CollideWithNodes bool
30219 Weight float32 // deprecated
30223 VisualSize [3]float32
30225 SpriteSheetSize [2]int16 // in sprites.
30226 SpritePos [2]int16 // in sprite sheet.
30228 MakeFootstepSnds bool
30229 RotateSpeed float32 // in radians per second.
30231 Colors []color.NRGBA
30232 CollideWithAOs bool
30235 FaceRotateDirOff float32 // in degrees.
30238 NametagColor color.NRGBA
30239 FaceRotateSpeed float32 // in degrees per second.
30243 MaxBreath uint16 // Player only.
30244 EyeHeight float32 // Player only.
30245 ZoomFOV float32 // in degrees. Player only.
30246 UseTextureAlpha bool
30247 DmgTextureMod Texture // suffix
30250 NametagBG color.NRGBA
30251 }))(obj)).FaceRotateDir
30252 switch n := read8(r); n {
30258 chk(fmt.Errorf("invalid bool: %d", n))
30263 p := &(*(*(struct {
30264 MaxHP uint16 // Player only.
30265 CollideWithNodes bool
30266 Weight float32 // deprecated
30270 VisualSize [3]float32
30272 SpriteSheetSize [2]int16 // in sprites.
30273 SpritePos [2]int16 // in sprite sheet.
30275 MakeFootstepSnds bool
30276 RotateSpeed float32 // in radians per second.
30278 Colors []color.NRGBA
30279 CollideWithAOs bool
30282 FaceRotateDirOff float32 // in degrees.
30285 NametagColor color.NRGBA
30286 FaceRotateSpeed float32 // in degrees per second.
30290 MaxBreath uint16 // Player only.
30291 EyeHeight float32 // Player only.
30292 ZoomFOV float32 // in degrees. Player only.
30293 UseTextureAlpha bool
30294 DmgTextureMod Texture // suffix
30297 NametagBG color.NRGBA
30298 }))(obj)).FaceRotateDirOff
30299 *p = math.Float32frombits(read32(r))
30302 p := &(*(*(struct {
30303 MaxHP uint16 // Player only.
30304 CollideWithNodes bool
30305 Weight float32 // deprecated
30309 VisualSize [3]float32
30311 SpriteSheetSize [2]int16 // in sprites.
30312 SpritePos [2]int16 // in sprite sheet.
30314 MakeFootstepSnds bool
30315 RotateSpeed float32 // in radians per second.
30317 Colors []color.NRGBA
30318 CollideWithAOs bool
30321 FaceRotateDirOff float32 // in degrees.
30324 NametagColor color.NRGBA
30325 FaceRotateSpeed float32 // in degrees per second.
30329 MaxBreath uint16 // Player only.
30330 EyeHeight float32 // Player only.
30331 ZoomFOV float32 // in degrees. Player only.
30332 UseTextureAlpha bool
30333 DmgTextureMod Texture // suffix
30336 NametagBG color.NRGBA
30337 }))(obj)).BackfaceCull
30338 switch n := read8(r); n {
30344 chk(fmt.Errorf("invalid bool: %d", n))
30348 var local354 []uint8
30349 var local355 uint16
30354 (local354) = make([]uint8, local355)
30356 _, err := io.ReadFull(r, (local354)[:])
30360 MaxHP uint16 // Player only.
30361 CollideWithNodes bool
30362 Weight float32 // deprecated
30366 VisualSize [3]float32
30368 SpriteSheetSize [2]int16 // in sprites.
30369 SpritePos [2]int16 // in sprite sheet.
30371 MakeFootstepSnds bool
30372 RotateSpeed float32 // in radians per second.
30374 Colors []color.NRGBA
30375 CollideWithAOs bool
30378 FaceRotateDirOff float32 // in degrees.
30381 NametagColor color.NRGBA
30382 FaceRotateSpeed float32 // in degrees per second.
30386 MaxBreath uint16 // Player only.
30387 EyeHeight float32 // Player only.
30388 ZoomFOV float32 // in degrees. Player only.
30389 UseTextureAlpha bool
30390 DmgTextureMod Texture // suffix
30393 NametagBG color.NRGBA
30394 }))(obj)).Nametag) = string(local354)
30396 p := &(*(*(struct {
30397 MaxHP uint16 // Player only.
30398 CollideWithNodes bool
30399 Weight float32 // deprecated
30403 VisualSize [3]float32
30405 SpriteSheetSize [2]int16 // in sprites.
30406 SpritePos [2]int16 // in sprite sheet.
30408 MakeFootstepSnds bool
30409 RotateSpeed float32 // in radians per second.
30411 Colors []color.NRGBA
30412 CollideWithAOs bool
30415 FaceRotateDirOff float32 // in degrees.
30418 NametagColor color.NRGBA
30419 FaceRotateSpeed float32 // in degrees per second.
30423 MaxBreath uint16 // Player only.
30424 EyeHeight float32 // Player only.
30425 ZoomFOV float32 // in degrees. Player only.
30426 UseTextureAlpha bool
30427 DmgTextureMod Texture // suffix
30430 NametagBG color.NRGBA
30431 }))(obj)).NametagColor
30432 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30436 p := &(*(*(struct {
30437 MaxHP uint16 // Player only.
30438 CollideWithNodes bool
30439 Weight float32 // deprecated
30443 VisualSize [3]float32
30445 SpriteSheetSize [2]int16 // in sprites.
30446 SpritePos [2]int16 // in sprite sheet.
30448 MakeFootstepSnds bool
30449 RotateSpeed float32 // in radians per second.
30451 Colors []color.NRGBA
30452 CollideWithAOs bool
30455 FaceRotateDirOff float32 // in degrees.
30458 NametagColor color.NRGBA
30459 FaceRotateSpeed float32 // in degrees per second.
30463 MaxBreath uint16 // Player only.
30464 EyeHeight float32 // Player only.
30465 ZoomFOV float32 // in degrees. Player only.
30466 UseTextureAlpha bool
30467 DmgTextureMod Texture // suffix
30470 NametagBG color.NRGBA
30471 }))(obj)).FaceRotateSpeed
30472 *p = math.Float32frombits(read32(r))
30474 var local356 []uint8
30475 var local357 uint16
30480 (local356) = make([]uint8, local357)
30482 _, err := io.ReadFull(r, (local356)[:])
30486 MaxHP uint16 // Player only.
30487 CollideWithNodes bool
30488 Weight float32 // deprecated
30492 VisualSize [3]float32
30494 SpriteSheetSize [2]int16 // in sprites.
30495 SpritePos [2]int16 // in sprite sheet.
30497 MakeFootstepSnds bool
30498 RotateSpeed float32 // in radians per second.
30500 Colors []color.NRGBA
30501 CollideWithAOs bool
30504 FaceRotateDirOff float32 // in degrees.
30507 NametagColor color.NRGBA
30508 FaceRotateSpeed float32 // in degrees per second.
30512 MaxBreath uint16 // Player only.
30513 EyeHeight float32 // Player only.
30514 ZoomFOV float32 // in degrees. Player only.
30515 UseTextureAlpha bool
30516 DmgTextureMod Texture // suffix
30519 NametagBG color.NRGBA
30520 }))(obj)).Infotext) = string(local356)
30521 var local358 []uint8
30522 var local359 uint16
30527 (local358) = make([]uint8, local359)
30529 _, err := io.ReadFull(r, (local358)[:])
30533 MaxHP uint16 // Player only.
30534 CollideWithNodes bool
30535 Weight float32 // deprecated
30539 VisualSize [3]float32
30541 SpriteSheetSize [2]int16 // in sprites.
30542 SpritePos [2]int16 // in sprite sheet.
30544 MakeFootstepSnds bool
30545 RotateSpeed float32 // in radians per second.
30547 Colors []color.NRGBA
30548 CollideWithAOs bool
30551 FaceRotateDirOff float32 // in degrees.
30554 NametagColor color.NRGBA
30555 FaceRotateSpeed float32 // in degrees per second.
30559 MaxBreath uint16 // Player only.
30560 EyeHeight float32 // Player only.
30561 ZoomFOV float32 // in degrees. Player only.
30562 UseTextureAlpha bool
30563 DmgTextureMod Texture // suffix
30566 NametagBG color.NRGBA
30567 }))(obj)).Itemstring) = string(local358)
30569 p := &(*(*(struct {
30570 MaxHP uint16 // Player only.
30571 CollideWithNodes bool
30572 Weight float32 // deprecated
30576 VisualSize [3]float32
30578 SpriteSheetSize [2]int16 // in sprites.
30579 SpritePos [2]int16 // in sprite sheet.
30581 MakeFootstepSnds bool
30582 RotateSpeed float32 // in radians per second.
30584 Colors []color.NRGBA
30585 CollideWithAOs bool
30588 FaceRotateDirOff float32 // in degrees.
30591 NametagColor color.NRGBA
30592 FaceRotateSpeed float32 // in degrees per second.
30596 MaxBreath uint16 // Player only.
30597 EyeHeight float32 // Player only.
30598 ZoomFOV float32 // in degrees. Player only.
30599 UseTextureAlpha bool
30600 DmgTextureMod Texture // suffix
30603 NametagBG color.NRGBA
30605 *p = int8(read8(r))
30608 p := &(*(*(struct {
30609 MaxHP uint16 // Player only.
30610 CollideWithNodes bool
30611 Weight float32 // deprecated
30615 VisualSize [3]float32
30617 SpriteSheetSize [2]int16 // in sprites.
30618 SpritePos [2]int16 // in sprite sheet.
30620 MakeFootstepSnds bool
30621 RotateSpeed float32 // in radians per second.
30623 Colors []color.NRGBA
30624 CollideWithAOs bool
30627 FaceRotateDirOff float32 // in degrees.
30630 NametagColor color.NRGBA
30631 FaceRotateSpeed float32 // in degrees per second.
30635 MaxBreath uint16 // Player only.
30636 EyeHeight float32 // Player only.
30637 ZoomFOV float32 // in degrees. Player only.
30638 UseTextureAlpha bool
30639 DmgTextureMod Texture // suffix
30642 NametagBG color.NRGBA
30643 }))(obj)).MaxBreath
30647 p := &(*(*(struct {
30648 MaxHP uint16 // Player only.
30649 CollideWithNodes bool
30650 Weight float32 // deprecated
30654 VisualSize [3]float32
30656 SpriteSheetSize [2]int16 // in sprites.
30657 SpritePos [2]int16 // in sprite sheet.
30659 MakeFootstepSnds bool
30660 RotateSpeed float32 // in radians per second.
30662 Colors []color.NRGBA
30663 CollideWithAOs bool
30666 FaceRotateDirOff float32 // in degrees.
30669 NametagColor color.NRGBA
30670 FaceRotateSpeed float32 // in degrees per second.
30674 MaxBreath uint16 // Player only.
30675 EyeHeight float32 // Player only.
30676 ZoomFOV float32 // in degrees. Player only.
30677 UseTextureAlpha bool
30678 DmgTextureMod Texture // suffix
30681 NametagBG color.NRGBA
30682 }))(obj)).EyeHeight
30683 *p = math.Float32frombits(read32(r))
30686 p := &(*(*(struct {
30687 MaxHP uint16 // Player only.
30688 CollideWithNodes bool
30689 Weight float32 // deprecated
30693 VisualSize [3]float32
30695 SpriteSheetSize [2]int16 // in sprites.
30696 SpritePos [2]int16 // in sprite sheet.
30698 MakeFootstepSnds bool
30699 RotateSpeed float32 // in radians per second.
30701 Colors []color.NRGBA
30702 CollideWithAOs bool
30705 FaceRotateDirOff float32 // in degrees.
30708 NametagColor color.NRGBA
30709 FaceRotateSpeed float32 // in degrees per second.
30713 MaxBreath uint16 // Player only.
30714 EyeHeight float32 // Player only.
30715 ZoomFOV float32 // in degrees. Player only.
30716 UseTextureAlpha bool
30717 DmgTextureMod Texture // suffix
30720 NametagBG color.NRGBA
30722 *p = math.Float32frombits(read32(r))
30725 p := &(*(*(struct {
30726 MaxHP uint16 // Player only.
30727 CollideWithNodes bool
30728 Weight float32 // deprecated
30732 VisualSize [3]float32
30734 SpriteSheetSize [2]int16 // in sprites.
30735 SpritePos [2]int16 // in sprite sheet.
30737 MakeFootstepSnds bool
30738 RotateSpeed float32 // in radians per second.
30740 Colors []color.NRGBA
30741 CollideWithAOs bool
30744 FaceRotateDirOff float32 // in degrees.
30747 NametagColor color.NRGBA
30748 FaceRotateSpeed float32 // in degrees per second.
30752 MaxBreath uint16 // Player only.
30753 EyeHeight float32 // Player only.
30754 ZoomFOV float32 // in degrees. Player only.
30755 UseTextureAlpha bool
30756 DmgTextureMod Texture // suffix
30759 NametagBG color.NRGBA
30760 }))(obj)).UseTextureAlpha
30761 switch n := read8(r); n {
30767 chk(fmt.Errorf("invalid bool: %d", n))
30771 if err := pcall(func() {
30773 MaxHP uint16 // Player only.
30774 CollideWithNodes bool
30775 Weight float32 // deprecated
30779 VisualSize [3]float32
30781 SpriteSheetSize [2]int16 // in sprites.
30782 SpritePos [2]int16 // in sprite sheet.
30784 MakeFootstepSnds bool
30785 RotateSpeed float32 // in radians per second.
30787 Colors []color.NRGBA
30788 CollideWithAOs bool
30791 FaceRotateDirOff float32 // in degrees.
30794 NametagColor color.NRGBA
30795 FaceRotateSpeed float32 // in degrees per second.
30799 MaxBreath uint16 // Player only.
30800 EyeHeight float32 // Player only.
30801 ZoomFOV float32 // in degrees. Player only.
30802 UseTextureAlpha bool
30803 DmgTextureMod Texture // suffix
30806 NametagBG color.NRGBA
30807 }))(obj)).DmgTextureMod).deserialize(r)
30812 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
30815 p := &(*(*(struct {
30816 MaxHP uint16 // Player only.
30817 CollideWithNodes bool
30818 Weight float32 // deprecated
30822 VisualSize [3]float32
30824 SpriteSheetSize [2]int16 // in sprites.
30825 SpritePos [2]int16 // in sprite sheet.
30827 MakeFootstepSnds bool
30828 RotateSpeed float32 // in radians per second.
30830 Colors []color.NRGBA
30831 CollideWithAOs bool
30834 FaceRotateDirOff float32 // in degrees.
30837 NametagColor color.NRGBA
30838 FaceRotateSpeed float32 // in degrees per second.
30842 MaxBreath uint16 // Player only.
30843 EyeHeight float32 // Player only.
30844 ZoomFOV float32 // in degrees. Player only.
30845 UseTextureAlpha bool
30846 DmgTextureMod Texture // suffix
30849 NametagBG color.NRGBA
30851 switch n := read8(r); n {
30857 chk(fmt.Errorf("invalid bool: %d", n))
30862 p := &(*(*(struct {
30863 MaxHP uint16 // Player only.
30864 CollideWithNodes bool
30865 Weight float32 // deprecated
30869 VisualSize [3]float32
30871 SpriteSheetSize [2]int16 // in sprites.
30872 SpritePos [2]int16 // in sprite sheet.
30874 MakeFootstepSnds bool
30875 RotateSpeed float32 // in radians per second.
30877 Colors []color.NRGBA
30878 CollideWithAOs bool
30881 FaceRotateDirOff float32 // in degrees.
30884 NametagColor color.NRGBA
30885 FaceRotateSpeed float32 // in degrees per second.
30889 MaxBreath uint16 // Player only.
30890 EyeHeight float32 // Player only.
30891 ZoomFOV float32 // in degrees. Player only.
30892 UseTextureAlpha bool
30893 DmgTextureMod Texture // suffix
30896 NametagBG color.NRGBA
30897 }))(obj)).ShowOnMinimap
30898 switch n := read8(r); n {
30904 chk(fmt.Errorf("invalid bool: %d", n))
30909 p := &(*(*(struct {
30910 MaxHP uint16 // Player only.
30911 CollideWithNodes bool
30912 Weight float32 // deprecated
30916 VisualSize [3]float32
30918 SpriteSheetSize [2]int16 // in sprites.
30919 SpritePos [2]int16 // in sprite sheet.
30921 MakeFootstepSnds bool
30922 RotateSpeed float32 // in radians per second.
30924 Colors []color.NRGBA
30925 CollideWithAOs bool
30928 FaceRotateDirOff float32 // in degrees.
30931 NametagColor color.NRGBA
30932 FaceRotateSpeed float32 // in degrees per second.
30936 MaxBreath uint16 // Player only.
30937 EyeHeight float32 // Player only.
30938 ZoomFOV float32 // in degrees. Player only.
30939 UseTextureAlpha bool
30940 DmgTextureMod Texture // suffix
30943 NametagBG color.NRGBA
30944 }))(obj)).NametagBG
30945 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30950 func (obj *AOPos) serialize(w io.Writer) {
30951 if err := pcall(func() {
30959 UpdateInterval float32
30960 }))(obj)).Pos).serialize(w)
30965 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
30967 if err := pcall(func() {
30975 UpdateInterval float32
30976 }))(obj)).Vel).serialize(w)
30981 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30983 if err := pcall(func() {
30991 UpdateInterval float32
30992 }))(obj)).Acc).serialize(w)
30997 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30999 for local360 := range (*(*(struct {
31006 UpdateInterval float32
31009 x := ((*(*(struct {
31016 UpdateInterval float32
31017 }))(obj)).Rot)[local360]
31018 write32(w, math.Float32bits(x))
31029 UpdateInterval float32
31030 }))(obj)).Interpolate
31046 UpdateInterval float32
31063 UpdateInterval float32
31064 }))(obj)).UpdateInterval
31065 write32(w, math.Float32bits(x))
31069 func (obj *AOPos) deserialize(r io.Reader) {
31070 if err := pcall(func() {
31078 UpdateInterval float32
31079 }))(obj)).Pos).deserialize(r)
31084 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
31086 if err := pcall(func() {
31094 UpdateInterval float32
31095 }))(obj)).Vel).deserialize(r)
31100 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31102 if err := pcall(func() {
31110 UpdateInterval float32
31111 }))(obj)).Acc).deserialize(r)
31116 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31118 for local361 := range (*(*(struct {
31125 UpdateInterval float32
31128 p := &((*(*(struct {
31135 UpdateInterval float32
31136 }))(obj)).Rot)[local361]
31137 *p = math.Float32frombits(read32(r))
31141 p := &(*(*(struct {
31148 UpdateInterval float32
31149 }))(obj)).Interpolate
31150 switch n := read8(r); n {
31156 chk(fmt.Errorf("invalid bool: %d", n))
31161 p := &(*(*(struct {
31168 UpdateInterval float32
31170 switch n := read8(r); n {
31176 chk(fmt.Errorf("invalid bool: %d", n))
31181 p := &(*(*(struct {
31188 UpdateInterval float32
31189 }))(obj)).UpdateInterval
31190 *p = math.Float32frombits(read32(r))
31194 func (obj *AOSprite) serialize(w io.Writer) {
31195 for local362 := range (*(*(struct {
31198 FrameDuration float32
31199 ViewAngleFrames bool
31202 x := ((*(*(struct {
31205 FrameDuration float32
31206 ViewAngleFrames bool
31207 }))(obj)).Frame0)[local362]
31208 write16(w, uint16(x))
31215 FrameDuration float32
31216 ViewAngleFrames bool
31218 write16(w, uint16(x))
31224 FrameDuration float32
31225 ViewAngleFrames bool
31226 }))(obj)).FrameDuration
31227 write32(w, math.Float32bits(x))
31233 FrameDuration float32
31234 ViewAngleFrames bool
31235 }))(obj)).ViewAngleFrames
31245 func (obj *AOSprite) deserialize(r io.Reader) {
31246 for local363 := range (*(*(struct {
31249 FrameDuration float32
31250 ViewAngleFrames bool
31253 p := &((*(*(struct {
31256 FrameDuration float32
31257 ViewAngleFrames bool
31258 }))(obj)).Frame0)[local363]
31259 *p = int16(read16(r))
31263 p := &(*(*(struct {
31266 FrameDuration float32
31267 ViewAngleFrames bool
31272 p := &(*(*(struct {
31275 FrameDuration float32
31276 ViewAngleFrames bool
31277 }))(obj)).FrameDuration
31278 *p = math.Float32frombits(read32(r))
31281 p := &(*(*(struct {
31284 FrameDuration float32
31285 ViewAngleFrames bool
31286 }))(obj)).ViewAngleFrames
31287 switch n := read8(r); n {
31293 chk(fmt.Errorf("invalid bool: %d", n))
31299 func (obj *Group) serialize(w io.Writer) {
31300 if len(([]byte((*(*(struct {
31303 }))(obj)).Name))) > math.MaxUint16 {
31307 x := uint16(len(([]byte((*(*(struct {
31311 write16(w, uint16(x))
31314 _, err := w.Write(([]byte((*(*(struct {
31317 }))(obj)).Name))[:])
31325 write16(w, uint16(x))
31329 func (obj *Group) deserialize(r io.Reader) {
31330 var local364 []uint8
31331 var local365 uint16
31336 (local364) = make([]uint8, local365)
31338 _, err := io.ReadFull(r, (local364)[:])
31344 }))(obj)).Name) = string(local364)
31346 p := &(*(*(struct {
31350 *p = int16(read16(r))
31354 func (obj *AOAnim) serialize(w io.Writer) {
31355 for local366 := range (*(*(struct {
31362 x := ((*(*(struct {
31367 }))(obj)).Frames)[local366]
31368 write32(w, uint32(x))
31378 write32(w, math.Float32bits(x))
31387 write32(w, math.Float32bits(x))
31405 func (obj *AOAnim) deserialize(r io.Reader) {
31406 for local367 := range (*(*(struct {
31413 p := &((*(*(struct {
31418 }))(obj)).Frames)[local367]
31419 *p = int32(read32(r))
31423 p := &(*(*(struct {
31429 *p = math.Float32frombits(read32(r))
31432 p := &(*(*(struct {
31438 *p = math.Float32frombits(read32(r))
31441 p := &(*(*(struct {
31447 switch n := read8(r); n {
31453 chk(fmt.Errorf("invalid bool: %d", n))
31459 func (obj *AOBonePos) serialize(w io.Writer) {
31460 if err := pcall(func() {
31464 }))(obj)).Pos).serialize(w)
31469 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31471 for local368 := range (*(*(struct {
31476 x := ((*(*(struct {
31479 }))(obj)).Rot)[local368]
31480 write32(w, math.Float32bits(x))
31485 func (obj *AOBonePos) deserialize(r io.Reader) {
31486 if err := pcall(func() {
31490 }))(obj)).Pos).deserialize(r)
31495 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31497 for local369 := range (*(*(struct {
31502 p := &((*(*(struct {
31505 }))(obj)).Rot)[local369]
31506 *p = math.Float32frombits(read32(r))
31511 func (obj *AOAttach) serialize(w io.Writer) {
31512 if err := pcall(func() {
31519 }))(obj)).ParentID).serialize(w)
31524 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31526 if len(([]byte((*(*(struct {
31532 }))(obj)).Bone))) > math.MaxUint16 {
31536 x := uint16(len(([]byte((*(*(struct {
31543 write16(w, uint16(x))
31546 _, err := w.Write(([]byte((*(*(struct {
31552 }))(obj)).Bone))[:])
31555 if err := pcall(func() {
31562 }))(obj)).Pos).serialize(w)
31567 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31569 for local370 := range (*(*(struct {
31577 x := ((*(*(struct {
31583 }))(obj)).Rot)[local370]
31584 write32(w, math.Float32bits(x))
31594 }))(obj)).ForceVisible
31604 func (obj *AOAttach) deserialize(r io.Reader) {
31605 if err := pcall(func() {
31612 }))(obj)).ParentID).deserialize(r)
31617 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31619 var local371 []uint8
31620 var local372 uint16
31625 (local371) = make([]uint8, local372)
31627 _, err := io.ReadFull(r, (local371)[:])
31636 }))(obj)).Bone) = string(local371)
31637 if err := pcall(func() {
31644 }))(obj)).Pos).deserialize(r)
31649 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31651 for local373 := range (*(*(struct {
31659 p := &((*(*(struct {
31665 }))(obj)).Rot)[local373]
31666 *p = math.Float32frombits(read32(r))
31670 p := &(*(*(struct {
31676 }))(obj)).ForceVisible
31677 switch n := read8(r); n {
31683 chk(fmt.Errorf("invalid bool: %d", n))
31689 func (obj *AOPhysOverride) serialize(w io.Writer) {
31692 Walk, Jump, Gravity float32
31695 NoSneak, NoSneakGlitch, OldSneak bool
31697 write32(w, math.Float32bits(x))
31701 Walk, Jump, Gravity float32
31704 NoSneak, NoSneakGlitch, OldSneak bool
31706 write32(w, math.Float32bits(x))
31710 Walk, Jump, Gravity float32
31713 NoSneak, NoSneakGlitch, OldSneak bool
31715 write32(w, math.Float32bits(x))
31719 Walk, Jump, Gravity float32
31722 NoSneak, NoSneakGlitch, OldSneak bool
31733 Walk, Jump, Gravity float32
31736 NoSneak, NoSneakGlitch, OldSneak bool
31737 }))(obj)).NoSneakGlitch
31747 Walk, Jump, Gravity float32
31750 NoSneak, NoSneakGlitch, OldSneak bool
31761 func (obj *AOPhysOverride) deserialize(r io.Reader) {
31763 p := &(*(*(struct {
31764 Walk, Jump, Gravity float32
31767 NoSneak, NoSneakGlitch, OldSneak bool
31769 *p = math.Float32frombits(read32(r))
31772 p := &(*(*(struct {
31773 Walk, Jump, Gravity float32
31776 NoSneak, NoSneakGlitch, OldSneak bool
31778 *p = math.Float32frombits(read32(r))
31781 p := &(*(*(struct {
31782 Walk, Jump, Gravity float32
31785 NoSneak, NoSneakGlitch, OldSneak bool
31787 *p = math.Float32frombits(read32(r))
31790 p := &(*(*(struct {
31791 Walk, Jump, Gravity float32
31794 NoSneak, NoSneakGlitch, OldSneak bool
31796 switch n := read8(r); n {
31802 chk(fmt.Errorf("invalid bool: %d", n))
31807 p := &(*(*(struct {
31808 Walk, Jump, Gravity float32
31811 NoSneak, NoSneakGlitch, OldSneak bool
31812 }))(obj)).NoSneakGlitch
31813 switch n := read8(r); n {
31819 chk(fmt.Errorf("invalid bool: %d", n))
31824 p := &(*(*(struct {
31825 Walk, Jump, Gravity float32
31828 NoSneak, NoSneakGlitch, OldSneak bool
31830 switch n := read8(r); n {
31836 chk(fmt.Errorf("invalid bool: %d", n))
31842 func (obj *aoType) serialize(w io.Writer) {
31844 x := *(*(uint8))(obj)
31845 write8(w, uint8(x))
31849 func (obj *aoType) deserialize(r io.Reader) {
31851 p := &*(*(uint8))(obj)
31856 func (obj *NodeMetaField) serialize(w io.Writer) {
31857 if err := pcall(func() {
31861 }))(obj)).Field).serialize(w)
31866 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31882 func (obj *NodeMetaField) deserialize(r io.Reader) {
31883 if err := pcall(func() {
31887 }))(obj)).Field).deserialize(r)
31892 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31895 p := &(*(*(struct {
31899 switch n := read8(r); n {
31905 chk(fmt.Errorf("invalid bool: %d", n))
31911 func (obj *MinimapType) serialize(w io.Writer) {
31913 x := *(*(uint16))(obj)
31914 write16(w, uint16(x))
31918 func (obj *MinimapType) deserialize(r io.Reader) {
31920 p := &*(*(uint16))(obj)
31925 func (obj *Param1Type) serialize(w io.Writer) {
31927 x := *(*(uint8))(obj)
31928 write8(w, uint8(x))
31932 func (obj *Param1Type) deserialize(r io.Reader) {
31934 p := &*(*(uint8))(obj)
31939 func (obj *Param2Type) serialize(w io.Writer) {
31941 x := *(*(uint8))(obj)
31942 write8(w, uint8(x))
31946 func (obj *Param2Type) deserialize(r io.Reader) {
31948 p := &*(*(uint8))(obj)
31953 func (obj *DrawType) serialize(w io.Writer) {
31955 x := *(*(uint8))(obj)
31956 write8(w, uint8(x))
31960 func (obj *DrawType) deserialize(r io.Reader) {
31962 p := &*(*(uint8))(obj)
31967 func (obj *TileDef) serialize(w io.Writer) {
31969 local374 := uint8(6)
31972 write8(w, uint8(x))
31975 if err := pcall(func() {
31981 //mt:if %s.Flags&TileColor != 0
31984 //mt:if %s.Flags&TileScale != 0
31987 //mt:if %s.Flags&TileAlign != 0
31989 }))(obj)).Texture).serialize(w)
31994 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
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)).Anim).serialize(w)
32015 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", 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)).Flags).serialize(w)
32036 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32043 //mt:if %s.Flags&TileColor != 0
32046 //mt:if %s.Flags&TileScale != 0
32049 //mt:if %s.Flags&TileAlign != 0
32051 }))(obj)).Flags&TileColor != 0 {
32058 //mt:if %s.Flags&TileColor != 0
32061 //mt:if %s.Flags&TileScale != 0
32064 //mt:if %s.Flags&TileAlign != 0
32067 write8(w, uint8(x))
32075 //mt:if %s.Flags&TileColor != 0
32078 //mt:if %s.Flags&TileScale != 0
32081 //mt:if %s.Flags&TileAlign != 0
32084 write8(w, uint8(x))
32092 //mt:if %s.Flags&TileColor != 0
32095 //mt:if %s.Flags&TileScale != 0
32098 //mt:if %s.Flags&TileAlign != 0
32101 write8(w, uint8(x))
32109 //mt:if %s.Flags&TileColor != 0
32112 //mt:if %s.Flags&TileScale != 0
32115 //mt:if %s.Flags&TileAlign != 0
32117 }))(obj)).Flags&TileScale != 0 {
32124 //mt:if %s.Flags&TileColor != 0
32127 //mt:if %s.Flags&TileScale != 0
32130 //mt:if %s.Flags&TileAlign != 0
32133 write8(w, uint8(x))
32141 //mt:if %s.Flags&TileColor != 0
32144 //mt:if %s.Flags&TileScale != 0
32147 //mt:if %s.Flags&TileAlign != 0
32149 }))(obj)).Flags&TileAlign != 0 {
32150 if err := pcall(func() {
32156 //mt:if %s.Flags&TileColor != 0
32159 //mt:if %s.Flags&TileScale != 0
32162 //mt:if %s.Flags&TileAlign != 0
32164 }))(obj)).Align).serialize(w)
32169 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32174 func (obj *TileDef) deserialize(r io.Reader) {
32177 local376 := uint8(6)
32182 if local375 != local376 {
32183 chk(fmt.Errorf("const %v: %v", "uint8(6)", local375))
32186 if err := pcall(func() {
32192 //mt:if %s.Flags&TileColor != 0
32195 //mt:if %s.Flags&TileScale != 0
32198 //mt:if %s.Flags&TileAlign != 0
32200 }))(obj)).Texture).deserialize(r)
32205 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32207 if err := pcall(func() {
32213 //mt:if %s.Flags&TileColor != 0
32216 //mt:if %s.Flags&TileScale != 0
32219 //mt:if %s.Flags&TileAlign != 0
32221 }))(obj)).Anim).deserialize(r)
32226 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32228 if err := pcall(func() {
32234 //mt:if %s.Flags&TileColor != 0
32237 //mt:if %s.Flags&TileScale != 0
32240 //mt:if %s.Flags&TileAlign != 0
32242 }))(obj)).Flags).deserialize(r)
32247 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32254 //mt:if %s.Flags&TileColor != 0
32257 //mt:if %s.Flags&TileScale != 0
32260 //mt:if %s.Flags&TileAlign != 0
32262 }))(obj)).Flags&TileColor != 0 {
32264 p := &(*(*(struct {
32269 //mt:if %s.Flags&TileColor != 0
32272 //mt:if %s.Flags&TileScale != 0
32275 //mt:if %s.Flags&TileAlign != 0
32281 p := &(*(*(struct {
32286 //mt:if %s.Flags&TileColor != 0
32289 //mt:if %s.Flags&TileScale != 0
32292 //mt:if %s.Flags&TileAlign != 0
32298 p := &(*(*(struct {
32303 //mt:if %s.Flags&TileColor != 0
32306 //mt:if %s.Flags&TileScale != 0
32309 //mt:if %s.Flags&TileAlign != 0
32320 //mt:if %s.Flags&TileColor != 0
32323 //mt:if %s.Flags&TileScale != 0
32326 //mt:if %s.Flags&TileAlign != 0
32328 }))(obj)).Flags&TileScale != 0 {
32330 p := &(*(*(struct {
32335 //mt:if %s.Flags&TileColor != 0
32338 //mt:if %s.Flags&TileScale != 0
32341 //mt:if %s.Flags&TileAlign != 0
32352 //mt:if %s.Flags&TileColor != 0
32355 //mt:if %s.Flags&TileScale != 0
32358 //mt:if %s.Flags&TileAlign != 0
32360 }))(obj)).Flags&TileAlign != 0 {
32361 if err := pcall(func() {
32367 //mt:if %s.Flags&TileColor != 0
32370 //mt:if %s.Flags&TileScale != 0
32373 //mt:if %s.Flags&TileAlign != 0
32375 }))(obj)).Align).deserialize(r)
32380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32385 func (obj *WaveType) serialize(w io.Writer) {
32387 x := *(*(uint8))(obj)
32388 write8(w, uint8(x))
32392 func (obj *WaveType) deserialize(r io.Reader) {
32394 p := &*(*(uint8))(obj)
32399 func (obj *LiquidType) serialize(w io.Writer) {
32401 x := *(*(uint8))(obj)
32402 write8(w, uint8(x))
32406 func (obj *LiquidType) deserialize(r io.Reader) {
32408 p := &*(*(uint8))(obj)
32413 func (obj *NodeBox) serialize(w io.Writer) {
32415 local377 := uint8(6)
32418 write8(w, uint8(x))
32421 if err := pcall(func() {
32425 //mt:if %s.Type == MountedBox
32426 WallTop, WallBot, WallSides Box
32428 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32431 //mt:if %s.Type == ConnectedBox
32432 ConnDirs, DiscoDirs DirBoxes
32433 DiscoAll, DiscoSides []Box
32434 }))(obj)).Type).serialize(w)
32439 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32444 //mt:if %s.Type == MountedBox
32445 WallTop, WallBot, WallSides Box
32447 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32450 //mt:if %s.Type == ConnectedBox
32451 ConnDirs, DiscoDirs DirBoxes
32452 DiscoAll, DiscoSides []Box
32453 }))(obj)).Type < maxBox) {
32454 chk(errors.New("assertion failed: %s.Type < maxBox"))
32459 //mt:if %s.Type == MountedBox
32460 WallTop, WallBot, WallSides Box
32462 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32465 //mt:if %s.Type == ConnectedBox
32466 ConnDirs, DiscoDirs DirBoxes
32467 DiscoAll, DiscoSides []Box
32468 }))(obj)).Type == MountedBox {
32469 if err := pcall(func() {
32473 //mt:if %s.Type == MountedBox
32474 WallTop, WallBot, WallSides Box
32476 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32479 //mt:if %s.Type == ConnectedBox
32480 ConnDirs, DiscoDirs DirBoxes
32481 DiscoAll, DiscoSides []Box
32482 }))(obj)).WallTop).serialize(w)
32487 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32489 if err := pcall(func() {
32493 //mt:if %s.Type == MountedBox
32494 WallTop, WallBot, WallSides Box
32496 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32499 //mt:if %s.Type == ConnectedBox
32500 ConnDirs, DiscoDirs DirBoxes
32501 DiscoAll, DiscoSides []Box
32502 }))(obj)).WallBot).serialize(w)
32507 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32509 if err := pcall(func() {
32513 //mt:if %s.Type == MountedBox
32514 WallTop, WallBot, WallSides Box
32516 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32519 //mt:if %s.Type == ConnectedBox
32520 ConnDirs, DiscoDirs DirBoxes
32521 DiscoAll, DiscoSides []Box
32522 }))(obj)).WallSides).serialize(w)
32527 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32530 if t := (*(*(struct {
32533 //mt:if %s.Type == MountedBox
32534 WallTop, WallBot, WallSides Box
32536 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32539 //mt:if %s.Type == ConnectedBox
32540 ConnDirs, DiscoDirs DirBoxes
32541 DiscoAll, DiscoSides []Box
32542 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32543 if len(((*(*(struct {
32546 //mt:if %s.Type == MountedBox
32547 WallTop, WallBot, WallSides Box
32549 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32552 //mt:if %s.Type == ConnectedBox
32553 ConnDirs, DiscoDirs DirBoxes
32554 DiscoAll, DiscoSides []Box
32555 }))(obj)).Fixed)) > math.MaxUint16 {
32559 x := uint16(len(((*(*(struct {
32562 //mt:if %s.Type == MountedBox
32563 WallTop, WallBot, WallSides Box
32565 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32568 //mt:if %s.Type == ConnectedBox
32569 ConnDirs, DiscoDirs DirBoxes
32570 DiscoAll, DiscoSides []Box
32572 write16(w, uint16(x))
32574 for local378 := range (*(*(struct {
32577 //mt:if %s.Type == MountedBox
32578 WallTop, WallBot, WallSides Box
32580 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32583 //mt:if %s.Type == ConnectedBox
32584 ConnDirs, DiscoDirs DirBoxes
32585 DiscoAll, DiscoSides []Box
32587 if err := pcall(func() {
32591 //mt:if %s.Type == MountedBox
32592 WallTop, WallBot, WallSides Box
32594 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32597 //mt:if %s.Type == ConnectedBox
32598 ConnDirs, DiscoDirs DirBoxes
32599 DiscoAll, DiscoSides []Box
32600 }))(obj)).Fixed)[local378]).serialize(w)
32605 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32612 //mt:if %s.Type == MountedBox
32613 WallTop, WallBot, WallSides Box
32615 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32618 //mt:if %s.Type == ConnectedBox
32619 ConnDirs, DiscoDirs DirBoxes
32620 DiscoAll, DiscoSides []Box
32621 }))(obj)).Type == ConnectedBox {
32622 if err := pcall(func() {
32626 //mt:if %s.Type == MountedBox
32627 WallTop, WallBot, WallSides Box
32629 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32632 //mt:if %s.Type == ConnectedBox
32633 ConnDirs, DiscoDirs DirBoxes
32634 DiscoAll, DiscoSides []Box
32635 }))(obj)).ConnDirs).serialize(w)
32640 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32642 if err := pcall(func() {
32646 //mt:if %s.Type == MountedBox
32647 WallTop, WallBot, WallSides Box
32649 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32652 //mt:if %s.Type == ConnectedBox
32653 ConnDirs, DiscoDirs DirBoxes
32654 DiscoAll, DiscoSides []Box
32655 }))(obj)).DiscoDirs).serialize(w)
32660 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32662 if len(((*(*(struct {
32665 //mt:if %s.Type == MountedBox
32666 WallTop, WallBot, WallSides Box
32668 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32671 //mt:if %s.Type == ConnectedBox
32672 ConnDirs, DiscoDirs DirBoxes
32673 DiscoAll, DiscoSides []Box
32674 }))(obj)).DiscoAll)) > math.MaxUint16 {
32678 x := uint16(len(((*(*(struct {
32681 //mt:if %s.Type == MountedBox
32682 WallTop, WallBot, WallSides Box
32684 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32687 //mt:if %s.Type == ConnectedBox
32688 ConnDirs, DiscoDirs DirBoxes
32689 DiscoAll, DiscoSides []Box
32690 }))(obj)).DiscoAll)))
32691 write16(w, uint16(x))
32693 for local379 := range (*(*(struct {
32696 //mt:if %s.Type == MountedBox
32697 WallTop, WallBot, WallSides Box
32699 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32702 //mt:if %s.Type == ConnectedBox
32703 ConnDirs, DiscoDirs DirBoxes
32704 DiscoAll, DiscoSides []Box
32705 }))(obj)).DiscoAll {
32706 if err := pcall(func() {
32710 //mt:if %s.Type == MountedBox
32711 WallTop, WallBot, WallSides Box
32713 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32716 //mt:if %s.Type == ConnectedBox
32717 ConnDirs, DiscoDirs DirBoxes
32718 DiscoAll, DiscoSides []Box
32719 }))(obj)).DiscoAll)[local379]).serialize(w)
32724 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32727 if len(((*(*(struct {
32730 //mt:if %s.Type == MountedBox
32731 WallTop, WallBot, WallSides Box
32733 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32736 //mt:if %s.Type == ConnectedBox
32737 ConnDirs, DiscoDirs DirBoxes
32738 DiscoAll, DiscoSides []Box
32739 }))(obj)).DiscoSides)) > math.MaxUint16 {
32743 x := uint16(len(((*(*(struct {
32746 //mt:if %s.Type == MountedBox
32747 WallTop, WallBot, WallSides Box
32749 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32752 //mt:if %s.Type == ConnectedBox
32753 ConnDirs, DiscoDirs DirBoxes
32754 DiscoAll, DiscoSides []Box
32755 }))(obj)).DiscoSides)))
32756 write16(w, uint16(x))
32758 for local380 := range (*(*(struct {
32761 //mt:if %s.Type == MountedBox
32762 WallTop, WallBot, WallSides Box
32764 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32767 //mt:if %s.Type == ConnectedBox
32768 ConnDirs, DiscoDirs DirBoxes
32769 DiscoAll, DiscoSides []Box
32770 }))(obj)).DiscoSides {
32771 if err := pcall(func() {
32775 //mt:if %s.Type == MountedBox
32776 WallTop, WallBot, WallSides Box
32778 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32781 //mt:if %s.Type == ConnectedBox
32782 ConnDirs, DiscoDirs DirBoxes
32783 DiscoAll, DiscoSides []Box
32784 }))(obj)).DiscoSides)[local380]).serialize(w)
32789 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32795 func (obj *NodeBox) deserialize(r io.Reader) {
32798 local382 := uint8(6)
32803 if local381 != local382 {
32804 chk(fmt.Errorf("const %v: %v", "uint8(6)", local381))
32807 if err := pcall(func() {
32811 //mt:if %s.Type == MountedBox
32812 WallTop, WallBot, WallSides Box
32814 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32817 //mt:if %s.Type == ConnectedBox
32818 ConnDirs, DiscoDirs DirBoxes
32819 DiscoAll, DiscoSides []Box
32820 }))(obj)).Type).deserialize(r)
32825 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32830 //mt:if %s.Type == MountedBox
32831 WallTop, WallBot, WallSides Box
32833 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32836 //mt:if %s.Type == ConnectedBox
32837 ConnDirs, DiscoDirs DirBoxes
32838 DiscoAll, DiscoSides []Box
32839 }))(obj)).Type < maxBox) {
32840 chk(errors.New("assertion failed: %s.Type < maxBox"))
32845 //mt:if %s.Type == MountedBox
32846 WallTop, WallBot, WallSides Box
32848 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32851 //mt:if %s.Type == ConnectedBox
32852 ConnDirs, DiscoDirs DirBoxes
32853 DiscoAll, DiscoSides []Box
32854 }))(obj)).Type == MountedBox {
32855 if err := pcall(func() {
32859 //mt:if %s.Type == MountedBox
32860 WallTop, WallBot, WallSides Box
32862 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32865 //mt:if %s.Type == ConnectedBox
32866 ConnDirs, DiscoDirs DirBoxes
32867 DiscoAll, DiscoSides []Box
32868 }))(obj)).WallTop).deserialize(r)
32873 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32875 if err := pcall(func() {
32879 //mt:if %s.Type == MountedBox
32880 WallTop, WallBot, WallSides Box
32882 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32885 //mt:if %s.Type == ConnectedBox
32886 ConnDirs, DiscoDirs DirBoxes
32887 DiscoAll, DiscoSides []Box
32888 }))(obj)).WallBot).deserialize(r)
32893 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32895 if err := pcall(func() {
32899 //mt:if %s.Type == MountedBox
32900 WallTop, WallBot, WallSides Box
32902 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32905 //mt:if %s.Type == ConnectedBox
32906 ConnDirs, DiscoDirs DirBoxes
32907 DiscoAll, DiscoSides []Box
32908 }))(obj)).WallSides).deserialize(r)
32913 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32916 if t := (*(*(struct {
32919 //mt:if %s.Type == MountedBox
32920 WallTop, WallBot, WallSides Box
32922 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32925 //mt:if %s.Type == ConnectedBox
32926 ConnDirs, DiscoDirs DirBoxes
32927 DiscoAll, DiscoSides []Box
32928 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32929 var local383 uint16
32937 //mt:if %s.Type == MountedBox
32938 WallTop, WallBot, WallSides Box
32940 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32943 //mt:if %s.Type == ConnectedBox
32944 ConnDirs, DiscoDirs DirBoxes
32945 DiscoAll, DiscoSides []Box
32946 }))(obj)).Fixed) = make([]Box, local383)
32947 for local384 := range (*(*(struct {
32950 //mt:if %s.Type == MountedBox
32951 WallTop, WallBot, WallSides Box
32953 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32956 //mt:if %s.Type == ConnectedBox
32957 ConnDirs, DiscoDirs DirBoxes
32958 DiscoAll, DiscoSides []Box
32960 if err := pcall(func() {
32964 //mt:if %s.Type == MountedBox
32965 WallTop, WallBot, WallSides Box
32967 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32970 //mt:if %s.Type == ConnectedBox
32971 ConnDirs, DiscoDirs DirBoxes
32972 DiscoAll, DiscoSides []Box
32973 }))(obj)).Fixed)[local384]).deserialize(r)
32978 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32985 //mt:if %s.Type == MountedBox
32986 WallTop, WallBot, WallSides Box
32988 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32991 //mt:if %s.Type == ConnectedBox
32992 ConnDirs, DiscoDirs DirBoxes
32993 DiscoAll, DiscoSides []Box
32994 }))(obj)).Type == ConnectedBox {
32995 if err := pcall(func() {
32999 //mt:if %s.Type == MountedBox
33000 WallTop, WallBot, WallSides Box
33002 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33005 //mt:if %s.Type == ConnectedBox
33006 ConnDirs, DiscoDirs DirBoxes
33007 DiscoAll, DiscoSides []Box
33008 }))(obj)).ConnDirs).deserialize(r)
33013 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33015 if err := pcall(func() {
33019 //mt:if %s.Type == MountedBox
33020 WallTop, WallBot, WallSides Box
33022 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33025 //mt:if %s.Type == ConnectedBox
33026 ConnDirs, DiscoDirs DirBoxes
33027 DiscoAll, DiscoSides []Box
33028 }))(obj)).DiscoDirs).deserialize(r)
33033 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33035 var local385 uint16
33043 //mt:if %s.Type == MountedBox
33044 WallTop, WallBot, WallSides Box
33046 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33049 //mt:if %s.Type == ConnectedBox
33050 ConnDirs, DiscoDirs DirBoxes
33051 DiscoAll, DiscoSides []Box
33052 }))(obj)).DiscoAll) = make([]Box, local385)
33053 for local386 := range (*(*(struct {
33056 //mt:if %s.Type == MountedBox
33057 WallTop, WallBot, WallSides Box
33059 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33062 //mt:if %s.Type == ConnectedBox
33063 ConnDirs, DiscoDirs DirBoxes
33064 DiscoAll, DiscoSides []Box
33065 }))(obj)).DiscoAll {
33066 if err := pcall(func() {
33070 //mt:if %s.Type == MountedBox
33071 WallTop, WallBot, WallSides Box
33073 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33076 //mt:if %s.Type == ConnectedBox
33077 ConnDirs, DiscoDirs DirBoxes
33078 DiscoAll, DiscoSides []Box
33079 }))(obj)).DiscoAll)[local386]).deserialize(r)
33084 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33087 var local387 uint16
33095 //mt:if %s.Type == MountedBox
33096 WallTop, WallBot, WallSides Box
33098 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33101 //mt:if %s.Type == ConnectedBox
33102 ConnDirs, DiscoDirs DirBoxes
33103 DiscoAll, DiscoSides []Box
33104 }))(obj)).DiscoSides) = make([]Box, local387)
33105 for local388 := range (*(*(struct {
33108 //mt:if %s.Type == MountedBox
33109 WallTop, WallBot, WallSides Box
33111 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33114 //mt:if %s.Type == ConnectedBox
33115 ConnDirs, DiscoDirs DirBoxes
33116 DiscoAll, DiscoSides []Box
33117 }))(obj)).DiscoSides {
33118 if err := pcall(func() {
33122 //mt:if %s.Type == MountedBox
33123 WallTop, WallBot, WallSides Box
33125 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33128 //mt:if %s.Type == ConnectedBox
33129 ConnDirs, DiscoDirs DirBoxes
33130 DiscoAll, DiscoSides []Box
33131 }))(obj)).DiscoSides)[local388]).deserialize(r)
33136 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33142 func (obj *SoundDef) serialize(w io.Writer) {
33143 if len(([]byte((*(*(struct {
33145 Gain, Pitch, Fade float32
33146 }))(obj)).Name))) > math.MaxUint16 {
33150 x := uint16(len(([]byte((*(*(struct {
33152 Gain, Pitch, Fade float32
33154 write16(w, uint16(x))
33157 _, err := w.Write(([]byte((*(*(struct {
33159 Gain, Pitch, Fade float32
33160 }))(obj)).Name))[:])
33166 Gain, Pitch, Fade float32
33168 write32(w, math.Float32bits(x))
33173 Gain, Pitch, Fade float32
33175 write32(w, math.Float32bits(x))
33180 Gain, Pitch, Fade float32
33182 write32(w, math.Float32bits(x))
33186 func (obj *SoundDef) deserialize(r io.Reader) {
33187 var local389 []uint8
33188 var local390 uint16
33193 (local389) = make([]uint8, local390)
33195 _, err := io.ReadFull(r, (local389)[:])
33200 Gain, Pitch, Fade float32
33201 }))(obj)).Name) = string(local389)
33203 p := &(*(*(struct {
33205 Gain, Pitch, Fade float32
33207 *p = math.Float32frombits(read32(r))
33210 p := &(*(*(struct {
33212 Gain, Pitch, Fade float32
33214 *p = math.Float32frombits(read32(r))
33217 p := &(*(*(struct {
33219 Gain, Pitch, Fade float32
33221 *p = math.Float32frombits(read32(r))
33225 func (obj *AlphaUse) serialize(w io.Writer) {
33227 x := *(*(uint8))(obj)
33228 write8(w, uint8(x))
33232 func (obj *AlphaUse) deserialize(r io.Reader) {
33234 p := &*(*(uint8))(obj)
33239 func (obj *Keys) serialize(w io.Writer) {
33241 x := *(*(uint32))(obj)
33242 write32(w, uint32(x))
33246 func (obj *Keys) deserialize(r io.Reader) {
33248 p := &*(*(uint32))(obj)
33253 func (obj *MapBlkFlags) serialize(w io.Writer) {
33255 x := *(*(uint8))(obj)
33256 write8(w, uint8(x))
33260 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33262 p := &*(*(uint8))(obj)
33267 func (obj *LitFromBlks) serialize(w io.Writer) {
33269 x := *(*(uint16))(obj)
33270 write16(w, uint16(x))
33274 func (obj *LitFromBlks) deserialize(r io.Reader) {
33276 p := &*(*(uint16))(obj)
33281 func (obj *AOInitData) serialize(w io.Writer) {
33283 local391 := uint8(1)
33286 write8(w, uint8(x))
33289 if len(([]byte((*(*(struct {
33302 // See (de)serialize.fmt.
33304 }))(obj)).Name))) > math.MaxUint16 {
33308 x := uint16(len(([]byte((*(*(struct {
33321 // See (de)serialize.fmt.
33324 write16(w, uint16(x))
33327 _, err := w.Write(([]byte((*(*(struct {
33340 // See (de)serialize.fmt.
33342 }))(obj)).Name))[:])
33359 // See (de)serialize.fmt.
33369 if err := pcall(func() {
33383 // See (de)serialize.fmt.
33385 }))(obj)).ID).serialize(w)
33390 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33392 if err := pcall(func() {
33406 // See (de)serialize.fmt.
33408 }))(obj)).Pos).serialize(w)
33413 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33415 for local392 := range (*(*(struct {
33428 // See (de)serialize.fmt.
33432 x := ((*(*(struct {
33445 // See (de)serialize.fmt.
33447 }))(obj)).Rot)[local392]
33448 write32(w, math.Float32bits(x))
33465 // See (de)serialize.fmt.
33468 write16(w, uint16(x))
33484 // See (de)serialize.fmt.
33487 { // For AOInitData.Msgs.
33488 if len(x) > math.MaxUint8 {
33491 write8(w, uint8(len(x)))
33492 for _, msg := range x {
33494 chk(writeAOMsg(&b, msg))
33495 if b.Len() > math.MaxUint32 {
33498 write32(w, uint32(b.Len()))
33499 _, err := b.WriteTo(w)
33507 func (obj *AOInitData) deserialize(r io.Reader) {
33510 local394 := uint8(1)
33515 if local393 != local394 {
33516 chk(fmt.Errorf("const %v: %v", "uint8(1)", local393))
33519 var local395 []uint8
33520 var local396 uint16
33525 (local395) = make([]uint8, local396)
33527 _, err := io.ReadFull(r, (local395)[:])
33543 // See (de)serialize.fmt.
33545 }))(obj)).Name) = string(local395)
33547 p := &(*(*(struct {
33560 // See (de)serialize.fmt.
33563 switch n := read8(r); n {
33569 chk(fmt.Errorf("invalid bool: %d", n))
33573 if err := pcall(func() {
33587 // See (de)serialize.fmt.
33589 }))(obj)).ID).deserialize(r)
33594 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33596 if err := pcall(func() {
33610 // See (de)serialize.fmt.
33612 }))(obj)).Pos).deserialize(r)
33617 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33619 for local397 := range (*(*(struct {
33632 // See (de)serialize.fmt.
33636 p := &((*(*(struct {
33649 // See (de)serialize.fmt.
33651 }))(obj)).Rot)[local397]
33652 *p = math.Float32frombits(read32(r))
33656 p := &(*(*(struct {
33669 // See (de)serialize.fmt.
33675 p := &(*(*(struct {
33688 // See (de)serialize.fmt.
33691 { // For AOInitData.Msgs.
33692 *p = make([]AOMsg, read8(r))
33693 for i := range *p {
33694 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33695 msg, err := readAOMsg(r)
33699 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33707 func (obj *ItemType) serialize(w io.Writer) {
33709 x := *(*(uint8))(obj)
33710 write8(w, uint8(x))
33714 func (obj *ItemType) deserialize(r io.Reader) {
33716 p := &*(*(uint8))(obj)
33721 func (obj *ToolCaps) serialize(w io.Writer) {
33722 if _ = (*(*(struct {
33723 //mt:if _ = %s; false
33726 AttackCooldown float32
33730 GroupCaps []ToolGroupCap
33740 //mt:if _ = %s; false
33743 AttackCooldown float32
33747 GroupCaps []ToolGroupCap
33765 w := new(bytes.Buffer)
33767 if r.N > 0 { (*(*(struct {
33768 //mt:if _ = %s; false
33771 AttackCooldown float32
33775 GroupCaps []ToolGroupCap
33782 }))(obj)).NonNil = true}; /**/{
33784 //mt:if _ = %s; false
33787 AttackCooldown float32
33791 GroupCaps []ToolGroupCap
33800 local398 := uint8(5)
33803 write8(w, uint8(x))
33808 //mt:if _ = %s; false
33811 AttackCooldown float32
33815 GroupCaps []ToolGroupCap
33822 }))(obj)).AttackCooldown
33823 write32(w, math.Float32bits(x))
33827 //mt:if _ = %s; false
33830 AttackCooldown float32
33834 GroupCaps []ToolGroupCap
33841 }))(obj)).MaxDropLvl
33842 write16(w, uint16(x))
33844 if len(((*(*(struct {
33845 //mt:if _ = %s; false
33848 AttackCooldown float32
33852 GroupCaps []ToolGroupCap
33859 }))(obj)).GroupCaps)) > math.MaxUint32 {
33863 x := uint32(len(((*(*(struct {
33864 //mt:if _ = %s; false
33867 AttackCooldown float32
33871 GroupCaps []ToolGroupCap
33878 }))(obj)).GroupCaps)))
33879 write32(w, uint32(x))
33881 for local399 := range (*(*(struct {
33882 //mt:if _ = %s; false
33885 AttackCooldown float32
33889 GroupCaps []ToolGroupCap
33896 }))(obj)).GroupCaps {
33897 if err := pcall(func() {
33899 //mt:if _ = %s; false
33902 AttackCooldown float32
33906 GroupCaps []ToolGroupCap
33913 }))(obj)).GroupCaps)[local399]).serialize(w)
33918 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
33921 if len(((*(*(struct {
33922 //mt:if _ = %s; false
33925 AttackCooldown float32
33929 GroupCaps []ToolGroupCap
33936 }))(obj)).DmgGroups)) > math.MaxUint32 {
33940 x := uint32(len(((*(*(struct {
33941 //mt:if _ = %s; false
33944 AttackCooldown float32
33948 GroupCaps []ToolGroupCap
33955 }))(obj)).DmgGroups)))
33956 write32(w, uint32(x))
33958 for local400 := range (*(*(struct {
33959 //mt:if _ = %s; false
33962 AttackCooldown float32
33966 GroupCaps []ToolGroupCap
33973 }))(obj)).DmgGroups {
33974 if err := pcall(func() {
33976 //mt:if _ = %s; false
33979 AttackCooldown float32
33983 GroupCaps []ToolGroupCap
33990 }))(obj)).DmgGroups)[local400]).serialize(w)
33995 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
33999 x := uint16((*(*(struct {
34000 //mt:if _ = %s; false
34003 AttackCooldown float32
34007 GroupCaps []ToolGroupCap
34014 }))(obj)).PunchUses)
34015 write16(w, uint16(x))
34022 if len((buf.Bytes())) > math.MaxUint16 {
34026 x := uint16(len((buf.Bytes())))
34027 write16(w, uint16(x))
34030 _, err := w.Write((buf.Bytes())[:])
34037 func (obj *ToolCaps) deserialize(r io.Reader) {
34038 if _ = (*(*(struct {
34039 //mt:if _ = %s; false
34042 AttackCooldown float32
34046 GroupCaps []ToolGroupCap
34055 p := &(*(*(struct {
34056 //mt:if _ = %s; false
34059 AttackCooldown float32
34063 GroupCaps []ToolGroupCap
34071 switch n := read8(r); n {
34077 chk(fmt.Errorf("invalid bool: %d", n))
34088 r := &io.LimitedReader{R: r, N: int64(n)}
34091 //mt:if _ = %s; false
34094 AttackCooldown float32
34098 GroupCaps []ToolGroupCap
34105 }))(obj)).NonNil = true
34109 //mt:if _ = %s; false
34112 AttackCooldown float32
34116 GroupCaps []ToolGroupCap
34126 local402 := uint8(5)
34131 if local401 != local402 {
34132 chk(fmt.Errorf("const %v: %v", "uint8(5)", local401))
34136 p := &(*(*(struct {
34137 //mt:if _ = %s; false
34140 AttackCooldown float32
34144 GroupCaps []ToolGroupCap
34151 }))(obj)).AttackCooldown
34152 *p = math.Float32frombits(read32(r))
34155 p := &(*(*(struct {
34156 //mt:if _ = %s; false
34159 AttackCooldown float32
34163 GroupCaps []ToolGroupCap
34170 }))(obj)).MaxDropLvl
34171 *p = int16(read16(r))
34173 var local403 uint32
34179 //mt:if _ = %s; false
34182 AttackCooldown float32
34186 GroupCaps []ToolGroupCap
34193 }))(obj)).GroupCaps) = make([]ToolGroupCap, local403)
34194 for local404 := range (*(*(struct {
34195 //mt:if _ = %s; false
34198 AttackCooldown float32
34202 GroupCaps []ToolGroupCap
34209 }))(obj)).GroupCaps {
34210 if err := pcall(func() {
34212 //mt:if _ = %s; false
34215 AttackCooldown float32
34219 GroupCaps []ToolGroupCap
34226 }))(obj)).GroupCaps)[local404]).deserialize(r)
34231 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
34234 var local405 uint32
34240 //mt:if _ = %s; false
34243 AttackCooldown float32
34247 GroupCaps []ToolGroupCap
34254 }))(obj)).DmgGroups) = make([]Group, local405)
34255 for local406 := range (*(*(struct {
34256 //mt:if _ = %s; false
34259 AttackCooldown float32
34263 GroupCaps []ToolGroupCap
34270 }))(obj)).DmgGroups {
34271 if err := pcall(func() {
34273 //mt:if _ = %s; false
34276 AttackCooldown float32
34280 GroupCaps []ToolGroupCap
34287 }))(obj)).DmgGroups)[local406]).deserialize(r)
34292 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34295 var local407 uint16
34301 //mt:if _ = %s; false
34304 AttackCooldown float32
34308 GroupCaps []ToolGroupCap
34315 }))(obj)).PunchUses = int32(local407)
34319 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34324 func (obj *AnimType) serialize(w io.Writer) {
34326 x := *(*(uint8))(obj)
34327 write8(w, uint8(x))
34331 func (obj *AnimType) deserialize(r io.Reader) {
34333 p := &*(*(uint8))(obj)
34338 func (obj *HUDType) serialize(w io.Writer) {
34340 x := *(*(uint8))(obj)
34341 write8(w, uint8(x))
34345 func (obj *HUDType) deserialize(r io.Reader) {
34347 p := &*(*(uint8))(obj)
34352 func (obj *Box) serialize(w io.Writer) {
34353 for local408 := range *(*([2]Vec))(obj) {
34354 if err := pcall(func() {
34355 ((*(*([2]Vec))(obj))[local408]).serialize(w)
34360 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34365 func (obj *Box) deserialize(r io.Reader) {
34366 for local409 := range *(*([2]Vec))(obj) {
34367 if err := pcall(func() {
34368 ((*(*([2]Vec))(obj))[local409]).deserialize(r)
34373 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34378 func (obj *TileFlags) serialize(w io.Writer) {
34380 x := *(*(uint16))(obj)
34381 write16(w, uint16(x))
34385 func (obj *TileFlags) deserialize(r io.Reader) {
34387 p := &*(*(uint16))(obj)
34392 func (obj *AlignType) serialize(w io.Writer) {
34394 x := *(*(uint8))(obj)
34395 write8(w, uint8(x))
34399 func (obj *AlignType) deserialize(r io.Reader) {
34401 p := &*(*(uint8))(obj)
34406 func (obj *NodeBoxType) serialize(w io.Writer) {
34408 x := *(*(uint8))(obj)
34409 write8(w, uint8(x))
34413 func (obj *NodeBoxType) deserialize(r io.Reader) {
34415 p := &*(*(uint8))(obj)
34420 func (obj *DirBoxes) serialize(w io.Writer) {
34421 if len(((*(*(struct {
34423 Front, Left, Back, Right []Box
34424 }))(obj)).Top)) > math.MaxUint16 {
34428 x := uint16(len(((*(*(struct {
34430 Front, Left, Back, Right []Box
34432 write16(w, uint16(x))
34434 for local410 := range (*(*(struct {
34436 Front, Left, Back, Right []Box
34438 if err := pcall(func() {
34441 Front, Left, Back, Right []Box
34442 }))(obj)).Top)[local410]).serialize(w)
34447 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34450 if len(((*(*(struct {
34452 Front, Left, Back, Right []Box
34453 }))(obj)).Bot)) > math.MaxUint16 {
34457 x := uint16(len(((*(*(struct {
34459 Front, Left, Back, Right []Box
34461 write16(w, uint16(x))
34463 for local411 := range (*(*(struct {
34465 Front, Left, Back, Right []Box
34467 if err := pcall(func() {
34470 Front, Left, Back, Right []Box
34471 }))(obj)).Bot)[local411]).serialize(w)
34476 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34479 if len(((*(*(struct {
34481 Front, Left, Back, Right []Box
34482 }))(obj)).Front)) > math.MaxUint16 {
34486 x := uint16(len(((*(*(struct {
34488 Front, Left, Back, Right []Box
34490 write16(w, uint16(x))
34492 for local412 := range (*(*(struct {
34494 Front, Left, Back, Right []Box
34496 if err := pcall(func() {
34499 Front, Left, Back, Right []Box
34500 }))(obj)).Front)[local412]).serialize(w)
34505 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34508 if len(((*(*(struct {
34510 Front, Left, Back, Right []Box
34511 }))(obj)).Left)) > math.MaxUint16 {
34515 x := uint16(len(((*(*(struct {
34517 Front, Left, Back, Right []Box
34519 write16(w, uint16(x))
34521 for local413 := range (*(*(struct {
34523 Front, Left, Back, Right []Box
34525 if err := pcall(func() {
34528 Front, Left, Back, Right []Box
34529 }))(obj)).Left)[local413]).serialize(w)
34534 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34537 if len(((*(*(struct {
34539 Front, Left, Back, Right []Box
34540 }))(obj)).Back)) > math.MaxUint16 {
34544 x := uint16(len(((*(*(struct {
34546 Front, Left, Back, Right []Box
34548 write16(w, uint16(x))
34550 for local414 := range (*(*(struct {
34552 Front, Left, Back, Right []Box
34554 if err := pcall(func() {
34557 Front, Left, Back, Right []Box
34558 }))(obj)).Back)[local414]).serialize(w)
34563 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34566 if len(((*(*(struct {
34568 Front, Left, Back, Right []Box
34569 }))(obj)).Right)) > math.MaxUint16 {
34573 x := uint16(len(((*(*(struct {
34575 Front, Left, Back, Right []Box
34577 write16(w, uint16(x))
34579 for local415 := range (*(*(struct {
34581 Front, Left, Back, Right []Box
34583 if err := pcall(func() {
34586 Front, Left, Back, Right []Box
34587 }))(obj)).Right)[local415]).serialize(w)
34592 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34597 func (obj *DirBoxes) deserialize(r io.Reader) {
34598 var local416 uint16
34605 Front, Left, Back, Right []Box
34606 }))(obj)).Top) = make([]Box, local416)
34607 for local417 := range (*(*(struct {
34609 Front, Left, Back, Right []Box
34611 if err := pcall(func() {
34614 Front, Left, Back, Right []Box
34615 }))(obj)).Top)[local417]).deserialize(r)
34620 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34623 var local418 uint16
34630 Front, Left, Back, Right []Box
34631 }))(obj)).Bot) = make([]Box, local418)
34632 for local419 := range (*(*(struct {
34634 Front, Left, Back, Right []Box
34636 if err := pcall(func() {
34639 Front, Left, Back, Right []Box
34640 }))(obj)).Bot)[local419]).deserialize(r)
34645 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34648 var local420 uint16
34655 Front, Left, Back, Right []Box
34656 }))(obj)).Front) = make([]Box, local420)
34657 for local421 := range (*(*(struct {
34659 Front, Left, Back, Right []Box
34661 if err := pcall(func() {
34664 Front, Left, Back, Right []Box
34665 }))(obj)).Front)[local421]).deserialize(r)
34670 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34673 var local422 uint16
34680 Front, Left, Back, Right []Box
34681 }))(obj)).Left) = make([]Box, local422)
34682 for local423 := range (*(*(struct {
34684 Front, Left, Back, Right []Box
34686 if err := pcall(func() {
34689 Front, Left, Back, Right []Box
34690 }))(obj)).Left)[local423]).deserialize(r)
34695 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34698 var local424 uint16
34705 Front, Left, Back, Right []Box
34706 }))(obj)).Back) = make([]Box, local424)
34707 for local425 := range (*(*(struct {
34709 Front, Left, Back, Right []Box
34711 if err := pcall(func() {
34714 Front, Left, Back, Right []Box
34715 }))(obj)).Back)[local425]).deserialize(r)
34720 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34723 var local426 uint16
34730 Front, Left, Back, Right []Box
34731 }))(obj)).Right) = make([]Box, local426)
34732 for local427 := range (*(*(struct {
34734 Front, Left, Back, Right []Box
34736 if err := pcall(func() {
34739 Front, Left, Back, Right []Box
34740 }))(obj)).Right)[local427]).deserialize(r)
34745 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34750 func (obj *ToolGroupCap) serialize(w io.Writer) {
34751 if len(([]byte((*(*(struct {
34761 }))(obj)).Name))) > math.MaxUint16 {
34765 x := uint16(len(([]byte((*(*(struct {
34776 write16(w, uint16(x))
34779 _, err := w.Write(([]byte((*(*(struct {
34789 }))(obj)).Name))[:])
34793 x := int16((*(*(struct {
34804 write16(w, uint16(x))
34818 write16(w, uint16(x))
34820 if len(((*(*(struct {
34830 }))(obj)).Times)) > math.MaxUint32 {
34834 x := uint32(len(((*(*(struct {
34845 write32(w, uint32(x))
34847 for local428 := range (*(*(struct {
34858 if err := pcall(func() {
34869 }))(obj)).Times)[local428]).serialize(w)
34874 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34879 func (obj *ToolGroupCap) deserialize(r io.Reader) {
34880 var local429 []uint8
34881 var local430 uint16
34886 (local429) = make([]uint8, local430)
34888 _, err := io.ReadFull(r, (local429)[:])
34901 }))(obj)).Name) = string(local429)
34905 *p = int16(read16(r))
34917 }))(obj)).Uses = int32(local431)
34919 p := &(*(*(struct {
34930 *p = int16(read16(r))
34932 var local432 uint32
34947 }))(obj)).Times) = make([]DigTime, local432)
34948 for local433 := range (*(*(struct {
34959 if err := pcall(func() {
34970 }))(obj)).Times)[local433]).deserialize(r)
34975 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34980 func (obj *DigTime) serialize(w io.Writer) {
34986 write16(w, uint16(x))
34993 write32(w, math.Float32bits(x))
34997 func (obj *DigTime) deserialize(r io.Reader) {
34999 p := &(*(*(struct {
35003 *p = int16(read16(r))
35006 p := &(*(*(struct {
35010 *p = math.Float32frombits(read32(r))