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, err := zstd.NewWriter(w)
22886 for local285 := range (*(*(struct {
22888 LitFrom LitFromBlks
22891 Param0 [4096]Content
22895 NodeMetas map[uint16]*NodeMeta
22897 if err := pcall(func() {
22900 LitFrom LitFromBlks
22903 Param0 [4096]Content
22907 NodeMetas map[uint16]*NodeMeta
22908 }))(obj)).Param0)[local285]).serialize(w)
22913 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
22917 _, err := w.Write(((*(*(struct {
22919 LitFrom LitFromBlks
22922 Param0 [4096]Content
22926 NodeMetas map[uint16]*NodeMeta
22927 }))(obj)).Param1)[:])
22931 _, err := w.Write(((*(*(struct {
22933 LitFrom LitFromBlks
22936 Param0 [4096]Content
22940 NodeMetas map[uint16]*NodeMeta
22941 }))(obj)).Param2)[:])
22949 LitFrom LitFromBlks
22952 Param0 [4096]Content
22956 NodeMetas map[uint16]*NodeMeta
22957 }))(obj)).NodeMetas
22959 w := zlib.NewWriter(w)
22965 // len(map[uint16]...) always < math.MaxUint16
22966 write16(w, uint16(len(x)))
22967 keys := make([]uint16, 0, len(x))
22968 for key := range x {
22969 keys = append(keys, key)
22971 sort.Slice(keys, func(i, j int) bool {
22972 i2pos := func(i int) [3]int16 {
22973 return Blkpos2Pos([3]int16{}, keys[i])
22976 p, q := i2pos(i), i2pos(j)
22989 for _, key := range keys {
22991 chk(serialize(w, x[key]))
23000 local286 := uint8(2) // version
23003 write8(w, uint8(x))
23008 func (obj *MapBlk) deserialize(r io.Reader) {
23009 if err := pcall(func() {
23012 LitFrom LitFromBlks
23015 Param0 [4096]Content
23019 NodeMetas map[uint16]*NodeMeta
23020 }))(obj)).Flags).deserialize(r)
23025 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
23027 if err := pcall(func() {
23030 LitFrom LitFromBlks
23033 Param0 [4096]Content
23037 NodeMetas map[uint16]*NodeMeta
23038 }))(obj)).LitFrom).deserialize(r)
23043 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
23047 local288 := uint8(2) // Size of param0 in bytes.
23052 if local287 != local288 {
23053 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local287))
23058 local290 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23063 if local289 != local290 {
23064 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local289))
23068 r, err := zstd.NewReader(byteReader{r})
23070 for local291 := range (*(*(struct {
23072 LitFrom LitFromBlks
23075 Param0 [4096]Content
23079 NodeMetas map[uint16]*NodeMeta
23081 if err := pcall(func() {
23084 LitFrom LitFromBlks
23087 Param0 [4096]Content
23091 NodeMetas map[uint16]*NodeMeta
23092 }))(obj)).Param0)[local291]).deserialize(r)
23097 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23101 _, err := io.ReadFull(r, ((*(*(struct {
23103 LitFrom LitFromBlks
23106 Param0 [4096]Content
23110 NodeMetas map[uint16]*NodeMeta
23111 }))(obj)).Param1)[:])
23115 _, err := io.ReadFull(r, ((*(*(struct {
23117 LitFrom LitFromBlks
23120 Param0 [4096]Content
23124 NodeMetas map[uint16]*NodeMeta
23125 }))(obj)).Param2)[:])
23131 p := &(*(*(struct {
23133 LitFrom LitFromBlks
23136 Param0 [4096]Content
23140 NodeMetas map[uint16]*NodeMeta
23141 }))(obj)).NodeMetas
23143 r, err := zlib.NewReader(byteReader{r})
23146 switch ver := read8(r); ver {
23151 *p = make(map[uint16]*NodeMeta, n)
23154 nm := new(NodeMeta)
23155 chk(deserialize(r, nm))
23159 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23168 local293 := uint8(2) // version
23173 if local292 != local293 {
23174 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local292))
23179 func (obj *Node) serialize(w io.Writer) {
23180 if err := pcall(func() {
23183 Param1, Param2 uint8
23184 }))(obj)).Param0).serialize(w)
23189 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23194 Param1, Param2 uint8
23196 write8(w, uint8(x))
23201 Param1, Param2 uint8
23203 write8(w, uint8(x))
23207 func (obj *Node) deserialize(r io.Reader) {
23208 if err := pcall(func() {
23211 Param1, Param2 uint8
23212 }))(obj)).Param0).deserialize(r)
23217 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23220 p := &(*(*(struct {
23222 Param1, Param2 uint8
23227 p := &(*(*(struct {
23229 Param1, Param2 uint8
23235 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23237 x := *(*(uint64))(obj)
23238 write64(w, uint64(x))
23243 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23245 p := &*(*(uint64))(obj)
23251 func (obj *Vec) serialize(w io.Writer) {
23252 for local294 := range *(*([3]float32))(obj) {
23254 x := (*(*([3]float32))(obj))[local294]
23255 write32(w, math.Float32bits(x))
23260 func (obj *Vec) deserialize(r io.Reader) {
23261 for local295 := range *(*([3]float32))(obj) {
23263 p := &(*(*([3]float32))(obj))[local295]
23264 *p = math.Float32frombits(read32(r))
23269 func (obj *ChatMsgType) serialize(w io.Writer) {
23271 x := *(*(uint8))(obj)
23272 write8(w, uint8(x))
23276 func (obj *ChatMsgType) deserialize(r io.Reader) {
23278 p := &*(*(uint8))(obj)
23283 func (obj *AOID) serialize(w io.Writer) {
23285 x := *(*(uint16))(obj)
23286 write16(w, uint16(x))
23290 func (obj *AOID) deserialize(r io.Reader) {
23292 p := &*(*(uint16))(obj)
23297 func (obj *AOAdd) serialize(w io.Writer) {
23298 if err := pcall(func() {
23301 //mt:const genericCAO
23303 InitData AOInitData
23304 }))(obj)).ID).serialize(w)
23309 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23312 local296 := genericCAO
23313 if err := pcall(func() {
23314 (local296).serialize(w)
23319 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23324 w := new(bytes.Buffer)
23325 if err := pcall(func() {
23328 //mt:const genericCAO
23330 InitData AOInitData
23331 }))(obj)).InitData).serialize(w)
23336 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23341 if len((buf.Bytes())) > math.MaxUint32 {
23345 x := uint32(len((buf.Bytes())))
23346 write32(w, uint32(x))
23349 _, err := w.Write((buf.Bytes())[:])
23356 func (obj *AOAdd) deserialize(r io.Reader) {
23357 if err := pcall(func() {
23360 //mt:const genericCAO
23362 InitData AOInitData
23363 }))(obj)).ID).deserialize(r)
23368 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23371 var local297 aoType
23372 local298 := genericCAO
23373 if err := pcall(func() {
23374 (local297).deserialize(r)
23379 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23381 if local297 != local298 {
23382 chk(fmt.Errorf("const %v: %v", "genericCAO", local297))
23391 r := &io.LimitedReader{R: r, N: int64(n)}
23392 if err := pcall(func() {
23395 //mt:const genericCAO
23397 InitData AOInitData
23398 }))(obj)).InitData).deserialize(r)
23403 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23406 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23411 func (obj *IDAOMsg) serialize(w io.Writer) {
23412 if err := pcall(func() {
23417 }))(obj)).ID).serialize(w)
23422 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23426 w := new(bytes.Buffer)
23439 if len((buf.Bytes())) > math.MaxUint16 {
23443 x := uint16(len((buf.Bytes())))
23444 write16(w, uint16(x))
23447 _, err := w.Write((buf.Bytes())[:])
23454 func (obj *IDAOMsg) deserialize(r io.Reader) {
23455 if err := pcall(func() {
23460 }))(obj)).ID).deserialize(r)
23465 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23473 r := &io.LimitedReader{R: r, N: int64(n)}
23475 p := &(*(*(struct {
23482 *p, err = readAOMsg(r)
23488 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23493 func (obj *ItemDef) serialize(w io.Writer) {
23496 w := new(bytes.Buffer)
23498 local299 := uint8(6)
23501 write8(w, uint8(x))
23504 if err := pcall(func() {
23510 InvImg, WieldImg Texture
23511 WieldScale [3]float32
23516 CanPointLiquids bool
23522 PlacePredict string
23524 PlaceSnd, PlaceFailSnd SoundDef
23528 // Set index in Palette with "palette_index" item meta field,
23529 // this overrides Color.
23533 // Texture overlays.
23534 InvOverlay, WieldOverlay Texture
23537 }))(obj)).Type).serialize(w)
23542 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
23544 if len(([]byte((*(*(struct {
23549 InvImg, WieldImg Texture
23550 WieldScale [3]float32
23555 CanPointLiquids bool
23561 PlacePredict string
23563 PlaceSnd, PlaceFailSnd SoundDef
23567 // Set index in Palette with "palette_index" item meta field,
23568 // this overrides Color.
23572 // Texture overlays.
23573 InvOverlay, WieldOverlay Texture
23576 }))(obj)).Name))) > math.MaxUint16 {
23580 x := uint16(len(([]byte((*(*(struct {
23585 InvImg, WieldImg Texture
23586 WieldScale [3]float32
23591 CanPointLiquids bool
23597 PlacePredict string
23599 PlaceSnd, PlaceFailSnd SoundDef
23603 // Set index in Palette with "palette_index" item meta field,
23604 // this overrides Color.
23608 // Texture overlays.
23609 InvOverlay, WieldOverlay Texture
23613 write16(w, uint16(x))
23616 _, err := w.Write(([]byte((*(*(struct {
23621 InvImg, WieldImg Texture
23622 WieldScale [3]float32
23627 CanPointLiquids bool
23633 PlacePredict string
23635 PlaceSnd, PlaceFailSnd SoundDef
23639 // Set index in Palette with "palette_index" item meta field,
23640 // this overrides Color.
23644 // Texture overlays.
23645 InvOverlay, WieldOverlay Texture
23648 }))(obj)).Name))[:])
23651 if len(([]byte((*(*(struct {
23656 InvImg, WieldImg Texture
23657 WieldScale [3]float32
23662 CanPointLiquids bool
23668 PlacePredict string
23670 PlaceSnd, PlaceFailSnd SoundDef
23674 // Set index in Palette with "palette_index" item meta field,
23675 // this overrides Color.
23679 // Texture overlays.
23680 InvOverlay, WieldOverlay Texture
23683 }))(obj)).Desc))) > math.MaxUint16 {
23687 x := uint16(len(([]byte((*(*(struct {
23692 InvImg, WieldImg Texture
23693 WieldScale [3]float32
23698 CanPointLiquids bool
23704 PlacePredict string
23706 PlaceSnd, PlaceFailSnd SoundDef
23710 // Set index in Palette with "palette_index" item meta field,
23711 // this overrides Color.
23715 // Texture overlays.
23716 InvOverlay, WieldOverlay Texture
23720 write16(w, uint16(x))
23723 _, err := w.Write(([]byte((*(*(struct {
23728 InvImg, WieldImg Texture
23729 WieldScale [3]float32
23734 CanPointLiquids bool
23740 PlacePredict string
23742 PlaceSnd, PlaceFailSnd SoundDef
23746 // Set index in Palette with "palette_index" item meta field,
23747 // this overrides Color.
23751 // Texture overlays.
23752 InvOverlay, WieldOverlay Texture
23755 }))(obj)).Desc))[:])
23758 if err := pcall(func() {
23764 InvImg, WieldImg Texture
23765 WieldScale [3]float32
23770 CanPointLiquids bool
23776 PlacePredict string
23778 PlaceSnd, PlaceFailSnd SoundDef
23782 // Set index in Palette with "palette_index" item meta field,
23783 // this overrides Color.
23787 // Texture overlays.
23788 InvOverlay, WieldOverlay Texture
23791 }))(obj)).InvImg).serialize(w)
23796 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23798 if err := pcall(func() {
23804 InvImg, WieldImg Texture
23805 WieldScale [3]float32
23810 CanPointLiquids bool
23816 PlacePredict string
23818 PlaceSnd, PlaceFailSnd SoundDef
23822 // Set index in Palette with "palette_index" item meta field,
23823 // this overrides Color.
23827 // Texture overlays.
23828 InvOverlay, WieldOverlay Texture
23831 }))(obj)).WieldImg).serialize(w)
23836 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23838 for local300 := range (*(*(struct {
23843 InvImg, WieldImg Texture
23844 WieldScale [3]float32
23849 CanPointLiquids bool
23855 PlacePredict string
23857 PlaceSnd, PlaceFailSnd SoundDef
23861 // Set index in Palette with "palette_index" item meta field,
23862 // this overrides Color.
23866 // Texture overlays.
23867 InvOverlay, WieldOverlay Texture
23870 }))(obj)).WieldScale {
23872 x := ((*(*(struct {
23877 InvImg, WieldImg Texture
23878 WieldScale [3]float32
23883 CanPointLiquids bool
23889 PlacePredict string
23891 PlaceSnd, PlaceFailSnd SoundDef
23895 // Set index in Palette with "palette_index" item meta field,
23896 // this overrides Color.
23900 // Texture overlays.
23901 InvOverlay, WieldOverlay Texture
23904 }))(obj)).WieldScale)[local300]
23905 write32(w, math.Float32bits(x))
23914 InvImg, WieldImg Texture
23915 WieldScale [3]float32
23920 CanPointLiquids bool
23926 PlacePredict string
23928 PlaceSnd, PlaceFailSnd SoundDef
23932 // Set index in Palette with "palette_index" item meta field,
23933 // this overrides Color.
23937 // Texture overlays.
23938 InvOverlay, WieldOverlay Texture
23942 write16(w, uint16(x))
23950 InvImg, WieldImg Texture
23951 WieldScale [3]float32
23956 CanPointLiquids bool
23962 PlacePredict string
23964 PlaceSnd, PlaceFailSnd SoundDef
23968 // Set index in Palette with "palette_index" item meta field,
23969 // this overrides Color.
23973 // Texture overlays.
23974 InvOverlay, WieldOverlay Texture
23991 InvImg, WieldImg Texture
23992 WieldScale [3]float32
23997 CanPointLiquids bool
24003 PlacePredict string
24005 PlaceSnd, PlaceFailSnd SoundDef
24009 // Set index in Palette with "palette_index" item meta field,
24010 // this overrides Color.
24014 // Texture overlays.
24015 InvOverlay, WieldOverlay Texture
24018 }))(obj)).CanPointLiquids
24026 if err := pcall(func() {
24032 InvImg, WieldImg Texture
24033 WieldScale [3]float32
24038 CanPointLiquids bool
24044 PlacePredict string
24046 PlaceSnd, PlaceFailSnd SoundDef
24050 // Set index in Palette with "palette_index" item meta field,
24051 // this overrides Color.
24055 // Texture overlays.
24056 InvOverlay, WieldOverlay Texture
24059 }))(obj)).ToolCaps).serialize(w)
24064 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
24066 if len(((*(*(struct {
24071 InvImg, WieldImg Texture
24072 WieldScale [3]float32
24077 CanPointLiquids bool
24083 PlacePredict string
24085 PlaceSnd, PlaceFailSnd SoundDef
24089 // Set index in Palette with "palette_index" item meta field,
24090 // this overrides Color.
24094 // Texture overlays.
24095 InvOverlay, WieldOverlay Texture
24098 }))(obj)).Groups)) > math.MaxUint16 {
24102 x := uint16(len(((*(*(struct {
24107 InvImg, WieldImg Texture
24108 WieldScale [3]float32
24113 CanPointLiquids bool
24119 PlacePredict string
24121 PlaceSnd, PlaceFailSnd SoundDef
24125 // Set index in Palette with "palette_index" item meta field,
24126 // this overrides Color.
24130 // Texture overlays.
24131 InvOverlay, WieldOverlay Texture
24134 }))(obj)).Groups)))
24135 write16(w, uint16(x))
24137 for local301 := range (*(*(struct {
24142 InvImg, WieldImg Texture
24143 WieldScale [3]float32
24148 CanPointLiquids bool
24154 PlacePredict string
24156 PlaceSnd, PlaceFailSnd SoundDef
24160 // Set index in Palette with "palette_index" item meta field,
24161 // this overrides Color.
24165 // Texture overlays.
24166 InvOverlay, WieldOverlay Texture
24170 if err := pcall(func() {
24176 InvImg, WieldImg Texture
24177 WieldScale [3]float32
24182 CanPointLiquids bool
24188 PlacePredict string
24190 PlaceSnd, PlaceFailSnd SoundDef
24194 // Set index in Palette with "palette_index" item meta field,
24195 // this overrides Color.
24199 // Texture overlays.
24200 InvOverlay, WieldOverlay Texture
24203 }))(obj)).Groups)[local301]).serialize(w)
24208 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
24211 if len(([]byte((*(*(struct {
24216 InvImg, WieldImg Texture
24217 WieldScale [3]float32
24222 CanPointLiquids bool
24228 PlacePredict string
24230 PlaceSnd, PlaceFailSnd SoundDef
24234 // Set index in Palette with "palette_index" item meta field,
24235 // this overrides Color.
24239 // Texture overlays.
24240 InvOverlay, WieldOverlay Texture
24243 }))(obj)).PlacePredict))) > math.MaxUint16 {
24247 x := uint16(len(([]byte((*(*(struct {
24252 InvImg, WieldImg Texture
24253 WieldScale [3]float32
24258 CanPointLiquids bool
24264 PlacePredict string
24266 PlaceSnd, PlaceFailSnd SoundDef
24270 // Set index in Palette with "palette_index" item meta field,
24271 // this overrides Color.
24275 // Texture overlays.
24276 InvOverlay, WieldOverlay Texture
24279 }))(obj)).PlacePredict))))
24280 write16(w, uint16(x))
24283 _, err := w.Write(([]byte((*(*(struct {
24288 InvImg, WieldImg Texture
24289 WieldScale [3]float32
24294 CanPointLiquids bool
24300 PlacePredict string
24302 PlaceSnd, PlaceFailSnd SoundDef
24306 // Set index in Palette with "palette_index" item meta field,
24307 // this overrides Color.
24311 // Texture overlays.
24312 InvOverlay, WieldOverlay Texture
24315 }))(obj)).PlacePredict))[:])
24318 if err := pcall(func() {
24324 InvImg, WieldImg Texture
24325 WieldScale [3]float32
24330 CanPointLiquids bool
24336 PlacePredict string
24338 PlaceSnd, PlaceFailSnd SoundDef
24342 // Set index in Palette with "palette_index" item meta field,
24343 // this overrides Color.
24347 // Texture overlays.
24348 InvOverlay, WieldOverlay Texture
24351 }))(obj)).PlaceSnd).serialize(w)
24356 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24358 if err := pcall(func() {
24364 InvImg, WieldImg Texture
24365 WieldScale [3]float32
24370 CanPointLiquids bool
24376 PlacePredict string
24378 PlaceSnd, PlaceFailSnd SoundDef
24382 // Set index in Palette with "palette_index" item meta field,
24383 // this overrides Color.
24387 // Texture overlays.
24388 InvOverlay, WieldOverlay Texture
24391 }))(obj)).PlaceFailSnd).serialize(w)
24396 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24404 InvImg, WieldImg Texture
24405 WieldScale [3]float32
24410 CanPointLiquids bool
24416 PlacePredict string
24418 PlaceSnd, PlaceFailSnd SoundDef
24422 // Set index in Palette with "palette_index" item meta field,
24423 // this overrides Color.
24427 // Texture overlays.
24428 InvOverlay, WieldOverlay Texture
24431 }))(obj)).PointRange
24432 write32(w, math.Float32bits(x))
24434 if err := pcall(func() {
24440 InvImg, WieldImg Texture
24441 WieldScale [3]float32
24446 CanPointLiquids bool
24452 PlacePredict string
24454 PlaceSnd, PlaceFailSnd SoundDef
24458 // Set index in Palette with "palette_index" item meta field,
24459 // this overrides Color.
24463 // Texture overlays.
24464 InvOverlay, WieldOverlay Texture
24467 }))(obj)).Palette).serialize(w)
24472 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24480 InvImg, WieldImg Texture
24481 WieldScale [3]float32
24486 CanPointLiquids bool
24492 PlacePredict string
24494 PlaceSnd, PlaceFailSnd SoundDef
24498 // Set index in Palette with "palette_index" item meta field,
24499 // this overrides Color.
24503 // Texture overlays.
24504 InvOverlay, WieldOverlay Texture
24508 w.Write([]byte{x.A, x.R, x.G, x.B})
24511 if err := pcall(func() {
24517 InvImg, WieldImg Texture
24518 WieldScale [3]float32
24523 CanPointLiquids bool
24529 PlacePredict string
24531 PlaceSnd, PlaceFailSnd SoundDef
24535 // Set index in Palette with "palette_index" item meta field,
24536 // this overrides Color.
24540 // Texture overlays.
24541 InvOverlay, WieldOverlay Texture
24544 }))(obj)).InvOverlay).serialize(w)
24549 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24551 if err := pcall(func() {
24557 InvImg, WieldImg Texture
24558 WieldScale [3]float32
24563 CanPointLiquids bool
24569 PlacePredict string
24571 PlaceSnd, PlaceFailSnd SoundDef
24575 // Set index in Palette with "palette_index" item meta field,
24576 // this overrides Color.
24580 // Texture overlays.
24581 InvOverlay, WieldOverlay Texture
24584 }))(obj)).WieldOverlay).serialize(w)
24589 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24591 if len(([]byte((*(*(struct {
24596 InvImg, WieldImg Texture
24597 WieldScale [3]float32
24602 CanPointLiquids bool
24608 PlacePredict string
24610 PlaceSnd, PlaceFailSnd SoundDef
24614 // Set index in Palette with "palette_index" item meta field,
24615 // this overrides Color.
24619 // Texture overlays.
24620 InvOverlay, WieldOverlay Texture
24623 }))(obj)).ShortDesc))) > math.MaxUint16 {
24627 x := uint16(len(([]byte((*(*(struct {
24632 InvImg, WieldImg Texture
24633 WieldScale [3]float32
24638 CanPointLiquids bool
24644 PlacePredict string
24646 PlaceSnd, PlaceFailSnd SoundDef
24650 // Set index in Palette with "palette_index" item meta field,
24651 // this overrides Color.
24655 // Texture overlays.
24656 InvOverlay, WieldOverlay Texture
24659 }))(obj)).ShortDesc))))
24660 write16(w, uint16(x))
24663 _, err := w.Write(([]byte((*(*(struct {
24668 InvImg, WieldImg Texture
24669 WieldScale [3]float32
24674 CanPointLiquids bool
24680 PlacePredict string
24682 PlaceSnd, PlaceFailSnd SoundDef
24686 // Set index in Palette with "palette_index" item meta field,
24687 // this overrides Color.
24691 // Texture overlays.
24692 InvOverlay, WieldOverlay Texture
24695 }))(obj)).ShortDesc))[:])
24701 if len((buf.Bytes())) > math.MaxUint16 {
24705 x := uint16(len((buf.Bytes())))
24706 write16(w, uint16(x))
24709 _, err := w.Write((buf.Bytes())[:])
24716 func (obj *ItemDef) deserialize(r io.Reader) {
24723 r := &io.LimitedReader{R: r, N: int64(n)}
24726 local303 := uint8(6)
24731 if local302 != local303 {
24732 chk(fmt.Errorf("const %v: %v", "uint8(6)", local302))
24735 if err := pcall(func() {
24741 InvImg, WieldImg Texture
24742 WieldScale [3]float32
24747 CanPointLiquids bool
24753 PlacePredict string
24755 PlaceSnd, PlaceFailSnd SoundDef
24759 // Set index in Palette with "palette_index" item meta field,
24760 // this overrides Color.
24764 // Texture overlays.
24765 InvOverlay, WieldOverlay Texture
24768 }))(obj)).Type).deserialize(r)
24773 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
24775 var local304 []uint8
24776 var local305 uint16
24781 (local304) = make([]uint8, local305)
24783 _, err := io.ReadFull(r, (local304)[:])
24791 InvImg, WieldImg Texture
24792 WieldScale [3]float32
24797 CanPointLiquids bool
24803 PlacePredict string
24805 PlaceSnd, PlaceFailSnd SoundDef
24809 // Set index in Palette with "palette_index" item meta field,
24810 // this overrides Color.
24814 // Texture overlays.
24815 InvOverlay, WieldOverlay Texture
24818 }))(obj)).Name) = string(local304)
24819 var local306 []uint8
24820 var local307 uint16
24825 (local306) = make([]uint8, local307)
24827 _, err := io.ReadFull(r, (local306)[:])
24835 InvImg, WieldImg Texture
24836 WieldScale [3]float32
24841 CanPointLiquids bool
24847 PlacePredict string
24849 PlaceSnd, PlaceFailSnd SoundDef
24853 // Set index in Palette with "palette_index" item meta field,
24854 // this overrides Color.
24858 // Texture overlays.
24859 InvOverlay, WieldOverlay Texture
24862 }))(obj)).Desc) = string(local306)
24863 if err := pcall(func() {
24869 InvImg, WieldImg Texture
24870 WieldScale [3]float32
24875 CanPointLiquids bool
24881 PlacePredict string
24883 PlaceSnd, PlaceFailSnd SoundDef
24887 // Set index in Palette with "palette_index" item meta field,
24888 // this overrides Color.
24892 // Texture overlays.
24893 InvOverlay, WieldOverlay Texture
24896 }))(obj)).InvImg).deserialize(r)
24901 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24903 if err := pcall(func() {
24909 InvImg, WieldImg Texture
24910 WieldScale [3]float32
24915 CanPointLiquids bool
24921 PlacePredict string
24923 PlaceSnd, PlaceFailSnd SoundDef
24927 // Set index in Palette with "palette_index" item meta field,
24928 // this overrides Color.
24932 // Texture overlays.
24933 InvOverlay, WieldOverlay Texture
24936 }))(obj)).WieldImg).deserialize(r)
24941 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24943 for local308 := range (*(*(struct {
24948 InvImg, WieldImg Texture
24949 WieldScale [3]float32
24954 CanPointLiquids bool
24960 PlacePredict string
24962 PlaceSnd, PlaceFailSnd SoundDef
24966 // Set index in Palette with "palette_index" item meta field,
24967 // this overrides Color.
24971 // Texture overlays.
24972 InvOverlay, WieldOverlay Texture
24975 }))(obj)).WieldScale {
24977 p := &((*(*(struct {
24982 InvImg, WieldImg Texture
24983 WieldScale [3]float32
24988 CanPointLiquids bool
24994 PlacePredict string
24996 PlaceSnd, PlaceFailSnd SoundDef
25000 // Set index in Palette with "palette_index" item meta field,
25001 // this overrides Color.
25005 // Texture overlays.
25006 InvOverlay, WieldOverlay Texture
25009 }))(obj)).WieldScale)[local308]
25010 *p = math.Float32frombits(read32(r))
25014 p := &(*(*(struct {
25019 InvImg, WieldImg Texture
25020 WieldScale [3]float32
25025 CanPointLiquids bool
25031 PlacePredict string
25033 PlaceSnd, PlaceFailSnd SoundDef
25037 // Set index in Palette with "palette_index" item meta field,
25038 // this overrides Color.
25042 // Texture overlays.
25043 InvOverlay, WieldOverlay Texture
25050 p := &(*(*(struct {
25055 InvImg, WieldImg Texture
25056 WieldScale [3]float32
25061 CanPointLiquids bool
25067 PlacePredict string
25069 PlaceSnd, PlaceFailSnd SoundDef
25073 // Set index in Palette with "palette_index" item meta field,
25074 // this overrides Color.
25078 // Texture overlays.
25079 InvOverlay, WieldOverlay Texture
25083 switch n := read8(r); n {
25089 chk(fmt.Errorf("invalid bool: %d", n))
25094 p := &(*(*(struct {
25099 InvImg, WieldImg Texture
25100 WieldScale [3]float32
25105 CanPointLiquids bool
25111 PlacePredict string
25113 PlaceSnd, PlaceFailSnd SoundDef
25117 // Set index in Palette with "palette_index" item meta field,
25118 // this overrides Color.
25122 // Texture overlays.
25123 InvOverlay, WieldOverlay Texture
25126 }))(obj)).CanPointLiquids
25127 switch n := read8(r); n {
25133 chk(fmt.Errorf("invalid bool: %d", n))
25137 if err := pcall(func() {
25143 InvImg, WieldImg Texture
25144 WieldScale [3]float32
25149 CanPointLiquids bool
25155 PlacePredict string
25157 PlaceSnd, PlaceFailSnd SoundDef
25161 // Set index in Palette with "palette_index" item meta field,
25162 // this overrides Color.
25166 // Texture overlays.
25167 InvOverlay, WieldOverlay Texture
25170 }))(obj)).ToolCaps).deserialize(r)
25175 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
25177 var local309 uint16
25187 InvImg, WieldImg Texture
25188 WieldScale [3]float32
25193 CanPointLiquids bool
25199 PlacePredict string
25201 PlaceSnd, PlaceFailSnd SoundDef
25205 // Set index in Palette with "palette_index" item meta field,
25206 // this overrides Color.
25210 // Texture overlays.
25211 InvOverlay, WieldOverlay Texture
25214 }))(obj)).Groups) = make([]Group, local309)
25215 for local310 := range (*(*(struct {
25220 InvImg, WieldImg Texture
25221 WieldScale [3]float32
25226 CanPointLiquids bool
25232 PlacePredict string
25234 PlaceSnd, PlaceFailSnd SoundDef
25238 // Set index in Palette with "palette_index" item meta field,
25239 // this overrides Color.
25243 // Texture overlays.
25244 InvOverlay, WieldOverlay Texture
25248 if err := pcall(func() {
25254 InvImg, WieldImg Texture
25255 WieldScale [3]float32
25260 CanPointLiquids bool
25266 PlacePredict string
25268 PlaceSnd, PlaceFailSnd SoundDef
25272 // Set index in Palette with "palette_index" item meta field,
25273 // this overrides Color.
25277 // Texture overlays.
25278 InvOverlay, WieldOverlay Texture
25281 }))(obj)).Groups)[local310]).deserialize(r)
25286 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
25289 var local311 []uint8
25290 var local312 uint16
25295 (local311) = make([]uint8, local312)
25297 _, err := io.ReadFull(r, (local311)[:])
25305 InvImg, WieldImg Texture
25306 WieldScale [3]float32
25311 CanPointLiquids bool
25317 PlacePredict string
25319 PlaceSnd, PlaceFailSnd SoundDef
25323 // Set index in Palette with "palette_index" item meta field,
25324 // this overrides Color.
25328 // Texture overlays.
25329 InvOverlay, WieldOverlay Texture
25332 }))(obj)).PlacePredict) = string(local311)
25333 if err := pcall(func() {
25339 InvImg, WieldImg Texture
25340 WieldScale [3]float32
25345 CanPointLiquids bool
25351 PlacePredict string
25353 PlaceSnd, PlaceFailSnd SoundDef
25357 // Set index in Palette with "palette_index" item meta field,
25358 // this overrides Color.
25362 // Texture overlays.
25363 InvOverlay, WieldOverlay Texture
25366 }))(obj)).PlaceSnd).deserialize(r)
25371 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25373 if err := pcall(func() {
25379 InvImg, WieldImg Texture
25380 WieldScale [3]float32
25385 CanPointLiquids bool
25391 PlacePredict string
25393 PlaceSnd, PlaceFailSnd SoundDef
25397 // Set index in Palette with "palette_index" item meta field,
25398 // this overrides Color.
25402 // Texture overlays.
25403 InvOverlay, WieldOverlay Texture
25406 }))(obj)).PlaceFailSnd).deserialize(r)
25411 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25414 p := &(*(*(struct {
25419 InvImg, WieldImg Texture
25420 WieldScale [3]float32
25425 CanPointLiquids bool
25431 PlacePredict string
25433 PlaceSnd, PlaceFailSnd SoundDef
25437 // Set index in Palette with "palette_index" item meta field,
25438 // this overrides Color.
25442 // Texture overlays.
25443 InvOverlay, WieldOverlay Texture
25446 }))(obj)).PointRange
25447 *p = math.Float32frombits(read32(r))
25449 if err := pcall(func() {
25455 InvImg, WieldImg Texture
25456 WieldScale [3]float32
25461 CanPointLiquids bool
25467 PlacePredict string
25469 PlaceSnd, PlaceFailSnd SoundDef
25473 // Set index in Palette with "palette_index" item meta field,
25474 // this overrides Color.
25478 // Texture overlays.
25479 InvOverlay, WieldOverlay Texture
25482 }))(obj)).Palette).deserialize(r)
25487 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25490 p := &(*(*(struct {
25495 InvImg, WieldImg Texture
25496 WieldScale [3]float32
25501 CanPointLiquids bool
25507 PlacePredict string
25509 PlaceSnd, PlaceFailSnd SoundDef
25513 // Set index in Palette with "palette_index" item meta field,
25514 // this overrides Color.
25518 // Texture overlays.
25519 InvOverlay, WieldOverlay Texture
25523 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25526 if err := pcall(func() {
25532 InvImg, WieldImg Texture
25533 WieldScale [3]float32
25538 CanPointLiquids bool
25544 PlacePredict string
25546 PlaceSnd, PlaceFailSnd SoundDef
25550 // Set index in Palette with "palette_index" item meta field,
25551 // this overrides Color.
25555 // Texture overlays.
25556 InvOverlay, WieldOverlay Texture
25559 }))(obj)).InvOverlay).deserialize(r)
25564 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25566 if err := pcall(func() {
25572 InvImg, WieldImg Texture
25573 WieldScale [3]float32
25578 CanPointLiquids bool
25584 PlacePredict string
25586 PlaceSnd, PlaceFailSnd SoundDef
25590 // Set index in Palette with "palette_index" item meta field,
25591 // this overrides Color.
25595 // Texture overlays.
25596 InvOverlay, WieldOverlay Texture
25599 }))(obj)).WieldOverlay).deserialize(r)
25604 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25606 var local313 []uint8
25607 var local314 uint16
25612 (local313) = make([]uint8, local314)
25614 _, err := io.ReadFull(r, (local313)[:])
25622 InvImg, WieldImg Texture
25623 WieldScale [3]float32
25628 CanPointLiquids bool
25634 PlacePredict string
25636 PlaceSnd, PlaceFailSnd SoundDef
25640 // Set index in Palette with "palette_index" item meta field,
25641 // this overrides Color.
25645 // Texture overlays.
25646 InvOverlay, WieldOverlay Texture
25649 }))(obj)).ShortDesc) = string(local313)
25651 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25656 func (obj *SoundSrcType) serialize(w io.Writer) {
25658 x := *(*(uint8))(obj)
25659 write8(w, uint8(x))
25663 func (obj *SoundSrcType) deserialize(r io.Reader) {
25665 p := &*(*(uint8))(obj)
25670 func (obj *TileAnim) serialize(w io.Writer) {
25671 if err := pcall(func() {
25675 //mt:if %s.Type == SpriteSheetAnim
25676 AspectRatio [2]uint8
25678 //mt:if %s.Type == VerticalFrameAnim
25681 //mt:if %s.Type != NoAnim
25682 Duration float32 // in seconds
25684 }))(obj)).Type).serialize(w)
25689 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25694 //mt:if %s.Type == SpriteSheetAnim
25695 AspectRatio [2]uint8
25697 //mt:if %s.Type == VerticalFrameAnim
25700 //mt:if %s.Type != NoAnim
25701 Duration float32 // in seconds
25703 }))(obj)).Type < maxAnim) {
25704 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25709 //mt:if %s.Type == SpriteSheetAnim
25710 AspectRatio [2]uint8
25712 //mt:if %s.Type == VerticalFrameAnim
25715 //mt:if %s.Type != NoAnim
25716 Duration float32 // in seconds
25718 }))(obj)).Type == SpriteSheetAnim {
25720 _, err := w.Write(((*(*(struct {
25723 //mt:if %s.Type == SpriteSheetAnim
25724 AspectRatio [2]uint8
25726 //mt:if %s.Type == VerticalFrameAnim
25729 //mt:if %s.Type != NoAnim
25730 Duration float32 // in seconds
25732 }))(obj)).AspectRatio)[:])
25739 //mt:if %s.Type == SpriteSheetAnim
25740 AspectRatio [2]uint8
25742 //mt:if %s.Type == VerticalFrameAnim
25745 //mt:if %s.Type != NoAnim
25746 Duration float32 // in seconds
25748 }))(obj)).Type == VerticalFrameAnim {
25749 for local315 := range (*(*(struct {
25752 //mt:if %s.Type == SpriteSheetAnim
25753 AspectRatio [2]uint8
25755 //mt:if %s.Type == VerticalFrameAnim
25758 //mt:if %s.Type != NoAnim
25759 Duration float32 // in seconds
25761 }))(obj)).NFrames {
25763 x := ((*(*(struct {
25766 //mt:if %s.Type == SpriteSheetAnim
25767 AspectRatio [2]uint8
25769 //mt:if %s.Type == VerticalFrameAnim
25772 //mt:if %s.Type != NoAnim
25773 Duration float32 // in seconds
25775 }))(obj)).NFrames)[local315]
25776 write16(w, uint16(x))
25783 //mt:if %s.Type == SpriteSheetAnim
25784 AspectRatio [2]uint8
25786 //mt:if %s.Type == VerticalFrameAnim
25789 //mt:if %s.Type != NoAnim
25790 Duration float32 // in seconds
25792 }))(obj)).Type != NoAnim {
25797 //mt:if %s.Type == SpriteSheetAnim
25798 AspectRatio [2]uint8
25800 //mt:if %s.Type == VerticalFrameAnim
25803 //mt:if %s.Type != NoAnim
25804 Duration float32 // in seconds
25807 write32(w, math.Float32bits(x))
25812 func (obj *TileAnim) deserialize(r io.Reader) {
25813 if err := pcall(func() {
25817 //mt:if %s.Type == SpriteSheetAnim
25818 AspectRatio [2]uint8
25820 //mt:if %s.Type == VerticalFrameAnim
25823 //mt:if %s.Type != NoAnim
25824 Duration float32 // in seconds
25826 }))(obj)).Type).deserialize(r)
25831 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25836 //mt:if %s.Type == SpriteSheetAnim
25837 AspectRatio [2]uint8
25839 //mt:if %s.Type == VerticalFrameAnim
25842 //mt:if %s.Type != NoAnim
25843 Duration float32 // in seconds
25845 }))(obj)).Type < maxAnim) {
25846 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25851 //mt:if %s.Type == SpriteSheetAnim
25852 AspectRatio [2]uint8
25854 //mt:if %s.Type == VerticalFrameAnim
25857 //mt:if %s.Type != NoAnim
25858 Duration float32 // in seconds
25860 }))(obj)).Type == SpriteSheetAnim {
25862 _, err := io.ReadFull(r, ((*(*(struct {
25865 //mt:if %s.Type == SpriteSheetAnim
25866 AspectRatio [2]uint8
25868 //mt:if %s.Type == VerticalFrameAnim
25871 //mt:if %s.Type != NoAnim
25872 Duration float32 // in seconds
25874 }))(obj)).AspectRatio)[:])
25881 //mt:if %s.Type == SpriteSheetAnim
25882 AspectRatio [2]uint8
25884 //mt:if %s.Type == VerticalFrameAnim
25887 //mt:if %s.Type != NoAnim
25888 Duration float32 // in seconds
25890 }))(obj)).Type == VerticalFrameAnim {
25891 for local316 := range (*(*(struct {
25894 //mt:if %s.Type == SpriteSheetAnim
25895 AspectRatio [2]uint8
25897 //mt:if %s.Type == VerticalFrameAnim
25900 //mt:if %s.Type != NoAnim
25901 Duration float32 // in seconds
25903 }))(obj)).NFrames {
25905 p := &((*(*(struct {
25908 //mt:if %s.Type == SpriteSheetAnim
25909 AspectRatio [2]uint8
25911 //mt:if %s.Type == VerticalFrameAnim
25914 //mt:if %s.Type != NoAnim
25915 Duration float32 // in seconds
25917 }))(obj)).NFrames)[local316]
25925 //mt:if %s.Type == SpriteSheetAnim
25926 AspectRatio [2]uint8
25928 //mt:if %s.Type == VerticalFrameAnim
25931 //mt:if %s.Type != NoAnim
25932 Duration float32 // in seconds
25934 }))(obj)).Type != NoAnim {
25936 p := &(*(*(struct {
25939 //mt:if %s.Type == SpriteSheetAnim
25940 AspectRatio [2]uint8
25942 //mt:if %s.Type == VerticalFrameAnim
25945 //mt:if %s.Type != NoAnim
25946 Duration float32 // in seconds
25949 *p = math.Float32frombits(read32(r))
25954 func (obj *Content) serialize(w io.Writer) {
25956 x := *(*(uint16))(obj)
25957 write16(w, uint16(x))
25961 func (obj *Content) deserialize(r io.Reader) {
25963 p := &*(*(uint16))(obj)
25968 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
25970 x := *(*(uint32))(obj)
25971 write32(w, uint32(x))
25975 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
25977 p := &*(*(uint32))(obj)
25982 func (obj *HUDID) serialize(w io.Writer) {
25984 x := *(*(uint32))(obj)
25985 write32(w, uint32(x))
25989 func (obj *HUDID) deserialize(r io.Reader) {
25991 p := &*(*(uint32))(obj)
25996 func (obj *HUD) serialize(w io.Writer) {
25997 if err := pcall(func() {
26014 }))(obj)).Type).serialize(w)
26019 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26021 for local317 := range (*(*(struct {
26039 x := ((*(*(struct {
26055 }))(obj)).Pos)[local317]
26056 write32(w, math.Float32bits(x))
26059 if len(([]byte((*(*(struct {
26075 }))(obj)).Name))) > math.MaxUint16 {
26079 x := uint16(len(([]byte((*(*(struct {
26096 write16(w, uint16(x))
26099 _, err := w.Write(([]byte((*(*(struct {
26115 }))(obj)).Name))[:])
26118 for local318 := range (*(*(struct {
26136 x := ((*(*(struct {
26152 }))(obj)).Scale)[local318]
26153 write32(w, math.Float32bits(x))
26156 if len(([]byte((*(*(struct {
26172 }))(obj)).Text))) > math.MaxUint16 {
26176 x := uint16(len(([]byte((*(*(struct {
26193 write16(w, uint16(x))
26196 _, err := w.Write(([]byte((*(*(struct {
26212 }))(obj)).Text))[:])
26233 write32(w, uint32(x))
26253 write32(w, uint32(x))
26273 write32(w, uint32(x))
26275 for local319 := range (*(*(struct {
26293 x := ((*(*(struct {
26309 }))(obj)).Align)[local319]
26310 write32(w, math.Float32bits(x))
26313 for local320 := range (*(*(struct {
26331 x := ((*(*(struct {
26347 }))(obj)).Offset)[local320]
26348 write32(w, math.Float32bits(x))
26351 if err := pcall(func() {
26368 }))(obj)).WorldPos).serialize(w)
26373 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26375 for local321 := range (*(*(struct {
26393 x := ((*(*(struct {
26409 }))(obj)).Size)[local321]
26410 write32(w, uint32(x))
26431 write16(w, uint16(x))
26433 if len(([]byte((*(*(struct {
26449 }))(obj)).Text2))) > math.MaxUint16 {
26453 x := uint16(len(([]byte((*(*(struct {
26469 }))(obj)).Text2))))
26470 write16(w, uint16(x))
26473 _, err := w.Write(([]byte((*(*(struct {
26489 }))(obj)).Text2))[:])
26494 func (obj *HUD) deserialize(r io.Reader) {
26495 if err := pcall(func() {
26512 }))(obj)).Type).deserialize(r)
26517 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26519 for local322 := range (*(*(struct {
26537 p := &((*(*(struct {
26553 }))(obj)).Pos)[local322]
26554 *p = math.Float32frombits(read32(r))
26557 var local323 []uint8
26558 var local324 uint16
26563 (local323) = make([]uint8, local324)
26565 _, err := io.ReadFull(r, (local323)[:])
26584 }))(obj)).Name) = string(local323)
26585 for local325 := range (*(*(struct {
26603 p := &((*(*(struct {
26619 }))(obj)).Scale)[local325]
26620 *p = math.Float32frombits(read32(r))
26623 var local326 []uint8
26624 var local327 uint16
26629 (local326) = make([]uint8, local327)
26631 _, err := io.ReadFull(r, (local326)[:])
26650 }))(obj)).Text) = string(local326)
26652 p := &(*(*(struct {
26672 p := &(*(*(struct {
26692 p := &(*(*(struct {
26711 for local328 := range (*(*(struct {
26729 p := &((*(*(struct {
26745 }))(obj)).Align)[local328]
26746 *p = math.Float32frombits(read32(r))
26749 for local329 := range (*(*(struct {
26767 p := &((*(*(struct {
26783 }))(obj)).Offset)[local329]
26784 *p = math.Float32frombits(read32(r))
26787 if err := pcall(func() {
26804 }))(obj)).WorldPos).deserialize(r)
26809 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26811 for local330 := range (*(*(struct {
26829 p := &((*(*(struct {
26845 }))(obj)).Size)[local330]
26846 *p = int32(read32(r))
26850 p := &(*(*(struct {
26867 *p = int16(read16(r))
26869 var local331 []uint8
26870 var local332 uint16
26875 (local331) = make([]uint8, local332)
26877 _, err := io.ReadFull(r, (local331)[:])
26896 }))(obj)).Text2) = string(local331)
26899 func (obj *HUDField) serialize(w io.Writer) {
26901 x := *(*(uint8))(obj)
26902 write8(w, uint8(x))
26906 func (obj *HUDField) deserialize(r io.Reader) {
26908 p := &*(*(uint8))(obj)
26913 func (obj *HUDFlags) serialize(w io.Writer) {
26915 x := *(*(uint32))(obj)
26916 write32(w, uint32(x))
26920 func (obj *HUDFlags) deserialize(r io.Reader) {
26922 p := &*(*(uint32))(obj)
26927 func (obj *HotbarParam) serialize(w io.Writer) {
26929 x := *(*(uint16))(obj)
26930 write16(w, uint16(x))
26934 func (obj *HotbarParam) deserialize(r io.Reader) {
26936 p := &*(*(uint16))(obj)
26941 func (obj *Texture) serialize(w io.Writer) {
26942 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26946 x := uint16(len(([]byte(*(*(string))(obj)))))
26947 write16(w, uint16(x))
26950 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26955 func (obj *Texture) deserialize(r io.Reader) {
26956 var local333 []uint8
26957 var local334 uint16
26962 (local333) = make([]uint8, local334)
26964 _, err := io.ReadFull(r, (local333)[:])
26967 (*(*(string))(obj)) = string(local333)
26970 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
26972 x := *(*(uint8))(obj)
26973 write8(w, uint8(x))
26977 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
26979 p := &*(*(uint8))(obj)
26984 func (obj *ModChanSig) serialize(w io.Writer) {
26986 x := *(*(uint8))(obj)
26987 write8(w, uint8(x))
26991 func (obj *ModChanSig) deserialize(r io.Reader) {
26993 p := &*(*(uint8))(obj)
26998 func (obj *AOProps) serialize(w io.Writer) {
27000 local335 := uint8(4)
27003 write8(w, uint8(x))
27008 MaxHP uint16 // Player only.
27009 CollideWithNodes bool
27010 Weight float32 // deprecated
27014 VisualSize [3]float32
27016 SpriteSheetSize [2]int16 // in sprites.
27017 SpritePos [2]int16 // in sprite sheet.
27019 MakeFootstepSnds bool
27020 RotateSpeed float32 // in radians per second.
27022 Colors []color.NRGBA
27023 CollideWithAOs bool
27026 FaceRotateDirOff float32 // in degrees.
27029 NametagColor color.NRGBA
27030 FaceRotateSpeed float32 // in degrees per second.
27034 MaxBreath uint16 // Player only.
27035 EyeHeight float32 // Player only.
27036 ZoomFOV float32 // in degrees. Player only.
27037 UseTextureAlpha bool
27038 DmgTextureMod Texture // suffix
27041 NametagBG color.NRGBA
27043 write16(w, uint16(x))
27047 MaxHP uint16 // Player only.
27048 CollideWithNodes bool
27049 Weight float32 // deprecated
27053 VisualSize [3]float32
27055 SpriteSheetSize [2]int16 // in sprites.
27056 SpritePos [2]int16 // in sprite sheet.
27058 MakeFootstepSnds bool
27059 RotateSpeed float32 // in radians per second.
27061 Colors []color.NRGBA
27062 CollideWithAOs bool
27065 FaceRotateDirOff float32 // in degrees.
27068 NametagColor color.NRGBA
27069 FaceRotateSpeed float32 // in degrees per second.
27073 MaxBreath uint16 // Player only.
27074 EyeHeight float32 // Player only.
27075 ZoomFOV float32 // in degrees. Player only.
27076 UseTextureAlpha bool
27077 DmgTextureMod Texture // suffix
27080 NametagBG color.NRGBA
27081 }))(obj)).CollideWithNodes
27091 MaxHP uint16 // Player only.
27092 CollideWithNodes bool
27093 Weight float32 // deprecated
27097 VisualSize [3]float32
27099 SpriteSheetSize [2]int16 // in sprites.
27100 SpritePos [2]int16 // in sprite sheet.
27102 MakeFootstepSnds bool
27103 RotateSpeed float32 // in radians per second.
27105 Colors []color.NRGBA
27106 CollideWithAOs bool
27109 FaceRotateDirOff float32 // in degrees.
27112 NametagColor color.NRGBA
27113 FaceRotateSpeed float32 // in degrees per second.
27117 MaxBreath uint16 // Player only.
27118 EyeHeight float32 // Player only.
27119 ZoomFOV float32 // in degrees. Player only.
27120 UseTextureAlpha bool
27121 DmgTextureMod Texture // suffix
27124 NametagBG color.NRGBA
27126 write32(w, math.Float32bits(x))
27128 if err := pcall(func() {
27130 MaxHP uint16 // Player only.
27131 CollideWithNodes bool
27132 Weight float32 // deprecated
27136 VisualSize [3]float32
27138 SpriteSheetSize [2]int16 // in sprites.
27139 SpritePos [2]int16 // in sprite sheet.
27141 MakeFootstepSnds bool
27142 RotateSpeed float32 // in radians per second.
27144 Colors []color.NRGBA
27145 CollideWithAOs bool
27148 FaceRotateDirOff float32 // in degrees.
27151 NametagColor color.NRGBA
27152 FaceRotateSpeed float32 // in degrees per second.
27156 MaxBreath uint16 // Player only.
27157 EyeHeight float32 // Player only.
27158 ZoomFOV float32 // in degrees. Player only.
27159 UseTextureAlpha bool
27160 DmgTextureMod Texture // suffix
27163 NametagBG color.NRGBA
27164 }))(obj)).ColBox).serialize(w)
27169 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27171 if err := pcall(func() {
27173 MaxHP uint16 // Player only.
27174 CollideWithNodes bool
27175 Weight float32 // deprecated
27179 VisualSize [3]float32
27181 SpriteSheetSize [2]int16 // in sprites.
27182 SpritePos [2]int16 // in sprite sheet.
27184 MakeFootstepSnds bool
27185 RotateSpeed float32 // in radians per second.
27187 Colors []color.NRGBA
27188 CollideWithAOs bool
27191 FaceRotateDirOff float32 // in degrees.
27194 NametagColor color.NRGBA
27195 FaceRotateSpeed float32 // in degrees per second.
27199 MaxBreath uint16 // Player only.
27200 EyeHeight float32 // Player only.
27201 ZoomFOV float32 // in degrees. Player only.
27202 UseTextureAlpha bool
27203 DmgTextureMod Texture // suffix
27206 NametagBG color.NRGBA
27207 }))(obj)).SelBox).serialize(w)
27212 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27216 MaxHP uint16 // Player only.
27217 CollideWithNodes bool
27218 Weight float32 // deprecated
27222 VisualSize [3]float32
27224 SpriteSheetSize [2]int16 // in sprites.
27225 SpritePos [2]int16 // in sprite sheet.
27227 MakeFootstepSnds bool
27228 RotateSpeed float32 // in radians per second.
27230 Colors []color.NRGBA
27231 CollideWithAOs bool
27234 FaceRotateDirOff float32 // in degrees.
27237 NametagColor color.NRGBA
27238 FaceRotateSpeed float32 // in degrees per second.
27242 MaxBreath uint16 // Player only.
27243 EyeHeight float32 // Player only.
27244 ZoomFOV float32 // in degrees. Player only.
27245 UseTextureAlpha bool
27246 DmgTextureMod Texture // suffix
27249 NametagBG color.NRGBA
27250 }))(obj)).Pointable
27258 if len(([]byte((*(*(struct {
27259 MaxHP uint16 // Player only.
27260 CollideWithNodes bool
27261 Weight float32 // deprecated
27265 VisualSize [3]float32
27267 SpriteSheetSize [2]int16 // in sprites.
27268 SpritePos [2]int16 // in sprite sheet.
27270 MakeFootstepSnds bool
27271 RotateSpeed float32 // in radians per second.
27273 Colors []color.NRGBA
27274 CollideWithAOs bool
27277 FaceRotateDirOff float32 // in degrees.
27280 NametagColor color.NRGBA
27281 FaceRotateSpeed float32 // in degrees per second.
27285 MaxBreath uint16 // Player only.
27286 EyeHeight float32 // Player only.
27287 ZoomFOV float32 // in degrees. Player only.
27288 UseTextureAlpha bool
27289 DmgTextureMod Texture // suffix
27292 NametagBG color.NRGBA
27293 }))(obj)).Visual))) > math.MaxUint16 {
27297 x := uint16(len(([]byte((*(*(struct {
27298 MaxHP uint16 // Player only.
27299 CollideWithNodes bool
27300 Weight float32 // deprecated
27304 VisualSize [3]float32
27306 SpriteSheetSize [2]int16 // in sprites.
27307 SpritePos [2]int16 // in sprite sheet.
27309 MakeFootstepSnds bool
27310 RotateSpeed float32 // in radians per second.
27312 Colors []color.NRGBA
27313 CollideWithAOs bool
27316 FaceRotateDirOff float32 // in degrees.
27319 NametagColor color.NRGBA
27320 FaceRotateSpeed float32 // in degrees per second.
27324 MaxBreath uint16 // Player only.
27325 EyeHeight float32 // Player only.
27326 ZoomFOV float32 // in degrees. Player only.
27327 UseTextureAlpha bool
27328 DmgTextureMod Texture // suffix
27331 NametagBG color.NRGBA
27332 }))(obj)).Visual))))
27333 write16(w, uint16(x))
27336 _, err := w.Write(([]byte((*(*(struct {
27337 MaxHP uint16 // Player only.
27338 CollideWithNodes bool
27339 Weight float32 // deprecated
27343 VisualSize [3]float32
27345 SpriteSheetSize [2]int16 // in sprites.
27346 SpritePos [2]int16 // in sprite sheet.
27348 MakeFootstepSnds bool
27349 RotateSpeed float32 // in radians per second.
27351 Colors []color.NRGBA
27352 CollideWithAOs bool
27355 FaceRotateDirOff float32 // in degrees.
27358 NametagColor color.NRGBA
27359 FaceRotateSpeed float32 // in degrees per second.
27363 MaxBreath uint16 // Player only.
27364 EyeHeight float32 // Player only.
27365 ZoomFOV float32 // in degrees. Player only.
27366 UseTextureAlpha bool
27367 DmgTextureMod Texture // suffix
27370 NametagBG color.NRGBA
27371 }))(obj)).Visual))[:])
27374 for local336 := range (*(*(struct {
27375 MaxHP uint16 // Player only.
27376 CollideWithNodes bool
27377 Weight float32 // deprecated
27381 VisualSize [3]float32
27383 SpriteSheetSize [2]int16 // in sprites.
27384 SpritePos [2]int16 // in sprite sheet.
27386 MakeFootstepSnds bool
27387 RotateSpeed float32 // in radians per second.
27389 Colors []color.NRGBA
27390 CollideWithAOs bool
27393 FaceRotateDirOff float32 // in degrees.
27396 NametagColor color.NRGBA
27397 FaceRotateSpeed float32 // in degrees per second.
27401 MaxBreath uint16 // Player only.
27402 EyeHeight float32 // Player only.
27403 ZoomFOV float32 // in degrees. Player only.
27404 UseTextureAlpha bool
27405 DmgTextureMod Texture // suffix
27408 NametagBG color.NRGBA
27409 }))(obj)).VisualSize {
27411 x := ((*(*(struct {
27412 MaxHP uint16 // Player only.
27413 CollideWithNodes bool
27414 Weight float32 // deprecated
27418 VisualSize [3]float32
27420 SpriteSheetSize [2]int16 // in sprites.
27421 SpritePos [2]int16 // in sprite sheet.
27423 MakeFootstepSnds bool
27424 RotateSpeed float32 // in radians per second.
27426 Colors []color.NRGBA
27427 CollideWithAOs bool
27430 FaceRotateDirOff float32 // in degrees.
27433 NametagColor color.NRGBA
27434 FaceRotateSpeed float32 // in degrees per second.
27438 MaxBreath uint16 // Player only.
27439 EyeHeight float32 // Player only.
27440 ZoomFOV float32 // in degrees. Player only.
27441 UseTextureAlpha bool
27442 DmgTextureMod Texture // suffix
27445 NametagBG color.NRGBA
27446 }))(obj)).VisualSize)[local336]
27447 write32(w, math.Float32bits(x))
27450 if len(((*(*(struct {
27451 MaxHP uint16 // Player only.
27452 CollideWithNodes bool
27453 Weight float32 // deprecated
27457 VisualSize [3]float32
27459 SpriteSheetSize [2]int16 // in sprites.
27460 SpritePos [2]int16 // in sprite sheet.
27462 MakeFootstepSnds bool
27463 RotateSpeed float32 // in radians per second.
27465 Colors []color.NRGBA
27466 CollideWithAOs bool
27469 FaceRotateDirOff float32 // in degrees.
27472 NametagColor color.NRGBA
27473 FaceRotateSpeed float32 // in degrees per second.
27477 MaxBreath uint16 // Player only.
27478 EyeHeight float32 // Player only.
27479 ZoomFOV float32 // in degrees. Player only.
27480 UseTextureAlpha bool
27481 DmgTextureMod Texture // suffix
27484 NametagBG color.NRGBA
27485 }))(obj)).Textures)) > math.MaxUint16 {
27489 x := uint16(len(((*(*(struct {
27490 MaxHP uint16 // Player only.
27491 CollideWithNodes bool
27492 Weight float32 // deprecated
27496 VisualSize [3]float32
27498 SpriteSheetSize [2]int16 // in sprites.
27499 SpritePos [2]int16 // in sprite sheet.
27501 MakeFootstepSnds bool
27502 RotateSpeed float32 // in radians per second.
27504 Colors []color.NRGBA
27505 CollideWithAOs bool
27508 FaceRotateDirOff float32 // in degrees.
27511 NametagColor color.NRGBA
27512 FaceRotateSpeed float32 // in degrees per second.
27516 MaxBreath uint16 // Player only.
27517 EyeHeight float32 // Player only.
27518 ZoomFOV float32 // in degrees. Player only.
27519 UseTextureAlpha bool
27520 DmgTextureMod Texture // suffix
27523 NametagBG color.NRGBA
27524 }))(obj)).Textures)))
27525 write16(w, uint16(x))
27527 for local337 := range (*(*(struct {
27528 MaxHP uint16 // Player only.
27529 CollideWithNodes bool
27530 Weight float32 // deprecated
27534 VisualSize [3]float32
27536 SpriteSheetSize [2]int16 // in sprites.
27537 SpritePos [2]int16 // in sprite sheet.
27539 MakeFootstepSnds bool
27540 RotateSpeed float32 // in radians per second.
27542 Colors []color.NRGBA
27543 CollideWithAOs bool
27546 FaceRotateDirOff float32 // in degrees.
27549 NametagColor color.NRGBA
27550 FaceRotateSpeed float32 // in degrees per second.
27554 MaxBreath uint16 // Player only.
27555 EyeHeight float32 // Player only.
27556 ZoomFOV float32 // in degrees. Player only.
27557 UseTextureAlpha bool
27558 DmgTextureMod Texture // suffix
27561 NametagBG color.NRGBA
27562 }))(obj)).Textures {
27563 if err := pcall(func() {
27565 MaxHP uint16 // Player only.
27566 CollideWithNodes bool
27567 Weight float32 // deprecated
27571 VisualSize [3]float32
27573 SpriteSheetSize [2]int16 // in sprites.
27574 SpritePos [2]int16 // in sprite sheet.
27576 MakeFootstepSnds bool
27577 RotateSpeed float32 // in radians per second.
27579 Colors []color.NRGBA
27580 CollideWithAOs bool
27583 FaceRotateDirOff float32 // in degrees.
27586 NametagColor color.NRGBA
27587 FaceRotateSpeed float32 // in degrees per second.
27591 MaxBreath uint16 // Player only.
27592 EyeHeight float32 // Player only.
27593 ZoomFOV float32 // in degrees. Player only.
27594 UseTextureAlpha bool
27595 DmgTextureMod Texture // suffix
27598 NametagBG color.NRGBA
27599 }))(obj)).Textures)[local337]).serialize(w)
27604 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27607 for local338 := range (*(*(struct {
27608 MaxHP uint16 // Player only.
27609 CollideWithNodes bool
27610 Weight float32 // deprecated
27614 VisualSize [3]float32
27616 SpriteSheetSize [2]int16 // in sprites.
27617 SpritePos [2]int16 // in sprite sheet.
27619 MakeFootstepSnds bool
27620 RotateSpeed float32 // in radians per second.
27622 Colors []color.NRGBA
27623 CollideWithAOs bool
27626 FaceRotateDirOff float32 // in degrees.
27629 NametagColor color.NRGBA
27630 FaceRotateSpeed float32 // in degrees per second.
27634 MaxBreath uint16 // Player only.
27635 EyeHeight float32 // Player only.
27636 ZoomFOV float32 // in degrees. Player only.
27637 UseTextureAlpha bool
27638 DmgTextureMod Texture // suffix
27641 NametagBG color.NRGBA
27642 }))(obj)).SpriteSheetSize {
27644 x := ((*(*(struct {
27645 MaxHP uint16 // Player only.
27646 CollideWithNodes bool
27647 Weight float32 // deprecated
27651 VisualSize [3]float32
27653 SpriteSheetSize [2]int16 // in sprites.
27654 SpritePos [2]int16 // in sprite sheet.
27656 MakeFootstepSnds bool
27657 RotateSpeed float32 // in radians per second.
27659 Colors []color.NRGBA
27660 CollideWithAOs bool
27663 FaceRotateDirOff float32 // in degrees.
27666 NametagColor color.NRGBA
27667 FaceRotateSpeed float32 // in degrees per second.
27671 MaxBreath uint16 // Player only.
27672 EyeHeight float32 // Player only.
27673 ZoomFOV float32 // in degrees. Player only.
27674 UseTextureAlpha bool
27675 DmgTextureMod Texture // suffix
27678 NametagBG color.NRGBA
27679 }))(obj)).SpriteSheetSize)[local338]
27680 write16(w, uint16(x))
27683 for local339 := range (*(*(struct {
27684 MaxHP uint16 // Player only.
27685 CollideWithNodes bool
27686 Weight float32 // deprecated
27690 VisualSize [3]float32
27692 SpriteSheetSize [2]int16 // in sprites.
27693 SpritePos [2]int16 // in sprite sheet.
27695 MakeFootstepSnds bool
27696 RotateSpeed float32 // in radians per second.
27698 Colors []color.NRGBA
27699 CollideWithAOs bool
27702 FaceRotateDirOff float32 // in degrees.
27705 NametagColor color.NRGBA
27706 FaceRotateSpeed float32 // in degrees per second.
27710 MaxBreath uint16 // Player only.
27711 EyeHeight float32 // Player only.
27712 ZoomFOV float32 // in degrees. Player only.
27713 UseTextureAlpha bool
27714 DmgTextureMod Texture // suffix
27717 NametagBG color.NRGBA
27718 }))(obj)).SpritePos {
27720 x := ((*(*(struct {
27721 MaxHP uint16 // Player only.
27722 CollideWithNodes bool
27723 Weight float32 // deprecated
27727 VisualSize [3]float32
27729 SpriteSheetSize [2]int16 // in sprites.
27730 SpritePos [2]int16 // in sprite sheet.
27732 MakeFootstepSnds bool
27733 RotateSpeed float32 // in radians per second.
27735 Colors []color.NRGBA
27736 CollideWithAOs bool
27739 FaceRotateDirOff float32 // in degrees.
27742 NametagColor color.NRGBA
27743 FaceRotateSpeed float32 // in degrees per second.
27747 MaxBreath uint16 // Player only.
27748 EyeHeight float32 // Player only.
27749 ZoomFOV float32 // in degrees. Player only.
27750 UseTextureAlpha bool
27751 DmgTextureMod Texture // suffix
27754 NametagBG color.NRGBA
27755 }))(obj)).SpritePos)[local339]
27756 write16(w, uint16(x))
27761 MaxHP uint16 // Player only.
27762 CollideWithNodes bool
27763 Weight float32 // deprecated
27767 VisualSize [3]float32
27769 SpriteSheetSize [2]int16 // in sprites.
27770 SpritePos [2]int16 // in sprite sheet.
27772 MakeFootstepSnds bool
27773 RotateSpeed float32 // in radians per second.
27775 Colors []color.NRGBA
27776 CollideWithAOs bool
27779 FaceRotateDirOff float32 // in degrees.
27782 NametagColor color.NRGBA
27783 FaceRotateSpeed float32 // in degrees per second.
27787 MaxBreath uint16 // Player only.
27788 EyeHeight float32 // Player only.
27789 ZoomFOV float32 // in degrees. Player only.
27790 UseTextureAlpha bool
27791 DmgTextureMod Texture // suffix
27794 NametagBG color.NRGBA
27805 MaxHP uint16 // Player only.
27806 CollideWithNodes bool
27807 Weight float32 // deprecated
27811 VisualSize [3]float32
27813 SpriteSheetSize [2]int16 // in sprites.
27814 SpritePos [2]int16 // in sprite sheet.
27816 MakeFootstepSnds bool
27817 RotateSpeed float32 // in radians per second.
27819 Colors []color.NRGBA
27820 CollideWithAOs bool
27823 FaceRotateDirOff float32 // in degrees.
27826 NametagColor color.NRGBA
27827 FaceRotateSpeed float32 // in degrees per second.
27831 MaxBreath uint16 // Player only.
27832 EyeHeight float32 // Player only.
27833 ZoomFOV float32 // in degrees. Player only.
27834 UseTextureAlpha bool
27835 DmgTextureMod Texture // suffix
27838 NametagBG color.NRGBA
27839 }))(obj)).MakeFootstepSnds
27849 MaxHP uint16 // Player only.
27850 CollideWithNodes bool
27851 Weight float32 // deprecated
27855 VisualSize [3]float32
27857 SpriteSheetSize [2]int16 // in sprites.
27858 SpritePos [2]int16 // in sprite sheet.
27860 MakeFootstepSnds bool
27861 RotateSpeed float32 // in radians per second.
27863 Colors []color.NRGBA
27864 CollideWithAOs bool
27867 FaceRotateDirOff float32 // in degrees.
27870 NametagColor color.NRGBA
27871 FaceRotateSpeed float32 // in degrees per second.
27875 MaxBreath uint16 // Player only.
27876 EyeHeight float32 // Player only.
27877 ZoomFOV float32 // in degrees. Player only.
27878 UseTextureAlpha bool
27879 DmgTextureMod Texture // suffix
27882 NametagBG color.NRGBA
27883 }))(obj)).RotateSpeed
27884 write32(w, math.Float32bits(x))
27886 if len(([]byte((*(*(struct {
27887 MaxHP uint16 // Player only.
27888 CollideWithNodes bool
27889 Weight float32 // deprecated
27893 VisualSize [3]float32
27895 SpriteSheetSize [2]int16 // in sprites.
27896 SpritePos [2]int16 // in sprite sheet.
27898 MakeFootstepSnds bool
27899 RotateSpeed float32 // in radians per second.
27901 Colors []color.NRGBA
27902 CollideWithAOs bool
27905 FaceRotateDirOff float32 // in degrees.
27908 NametagColor color.NRGBA
27909 FaceRotateSpeed float32 // in degrees per second.
27913 MaxBreath uint16 // Player only.
27914 EyeHeight float32 // Player only.
27915 ZoomFOV float32 // in degrees. Player only.
27916 UseTextureAlpha bool
27917 DmgTextureMod Texture // suffix
27920 NametagBG color.NRGBA
27921 }))(obj)).Mesh))) > math.MaxUint16 {
27925 x := uint16(len(([]byte((*(*(struct {
27926 MaxHP uint16 // Player only.
27927 CollideWithNodes bool
27928 Weight float32 // deprecated
27932 VisualSize [3]float32
27934 SpriteSheetSize [2]int16 // in sprites.
27935 SpritePos [2]int16 // in sprite sheet.
27937 MakeFootstepSnds bool
27938 RotateSpeed float32 // in radians per second.
27940 Colors []color.NRGBA
27941 CollideWithAOs bool
27944 FaceRotateDirOff float32 // in degrees.
27947 NametagColor color.NRGBA
27948 FaceRotateSpeed float32 // in degrees per second.
27952 MaxBreath uint16 // Player only.
27953 EyeHeight float32 // Player only.
27954 ZoomFOV float32 // in degrees. Player only.
27955 UseTextureAlpha bool
27956 DmgTextureMod Texture // suffix
27959 NametagBG color.NRGBA
27961 write16(w, uint16(x))
27964 _, err := w.Write(([]byte((*(*(struct {
27965 MaxHP uint16 // Player only.
27966 CollideWithNodes bool
27967 Weight float32 // deprecated
27971 VisualSize [3]float32
27973 SpriteSheetSize [2]int16 // in sprites.
27974 SpritePos [2]int16 // in sprite sheet.
27976 MakeFootstepSnds bool
27977 RotateSpeed float32 // in radians per second.
27979 Colors []color.NRGBA
27980 CollideWithAOs bool
27983 FaceRotateDirOff float32 // in degrees.
27986 NametagColor color.NRGBA
27987 FaceRotateSpeed float32 // in degrees per second.
27991 MaxBreath uint16 // Player only.
27992 EyeHeight float32 // Player only.
27993 ZoomFOV float32 // in degrees. Player only.
27994 UseTextureAlpha bool
27995 DmgTextureMod Texture // suffix
27998 NametagBG color.NRGBA
27999 }))(obj)).Mesh))[:])
28002 if len(((*(*(struct {
28003 MaxHP uint16 // Player only.
28004 CollideWithNodes bool
28005 Weight float32 // deprecated
28009 VisualSize [3]float32
28011 SpriteSheetSize [2]int16 // in sprites.
28012 SpritePos [2]int16 // in sprite sheet.
28014 MakeFootstepSnds bool
28015 RotateSpeed float32 // in radians per second.
28017 Colors []color.NRGBA
28018 CollideWithAOs bool
28021 FaceRotateDirOff float32 // in degrees.
28024 NametagColor color.NRGBA
28025 FaceRotateSpeed float32 // in degrees per second.
28029 MaxBreath uint16 // Player only.
28030 EyeHeight float32 // Player only.
28031 ZoomFOV float32 // in degrees. Player only.
28032 UseTextureAlpha bool
28033 DmgTextureMod Texture // suffix
28036 NametagBG color.NRGBA
28037 }))(obj)).Colors)) > math.MaxUint16 {
28041 x := uint16(len(((*(*(struct {
28042 MaxHP uint16 // Player only.
28043 CollideWithNodes bool
28044 Weight float32 // deprecated
28048 VisualSize [3]float32
28050 SpriteSheetSize [2]int16 // in sprites.
28051 SpritePos [2]int16 // in sprite sheet.
28053 MakeFootstepSnds bool
28054 RotateSpeed float32 // in radians per second.
28056 Colors []color.NRGBA
28057 CollideWithAOs bool
28060 FaceRotateDirOff float32 // in degrees.
28063 NametagColor color.NRGBA
28064 FaceRotateSpeed float32 // in degrees per second.
28068 MaxBreath uint16 // Player only.
28069 EyeHeight float32 // Player only.
28070 ZoomFOV float32 // in degrees. Player only.
28071 UseTextureAlpha bool
28072 DmgTextureMod Texture // suffix
28075 NametagBG color.NRGBA
28076 }))(obj)).Colors)))
28077 write16(w, uint16(x))
28079 for local340 := range (*(*(struct {
28080 MaxHP uint16 // Player only.
28081 CollideWithNodes bool
28082 Weight float32 // deprecated
28086 VisualSize [3]float32
28088 SpriteSheetSize [2]int16 // in sprites.
28089 SpritePos [2]int16 // in sprite sheet.
28091 MakeFootstepSnds bool
28092 RotateSpeed float32 // in radians per second.
28094 Colors []color.NRGBA
28095 CollideWithAOs bool
28098 FaceRotateDirOff float32 // in degrees.
28101 NametagColor color.NRGBA
28102 FaceRotateSpeed float32 // in degrees per second.
28106 MaxBreath uint16 // Player only.
28107 EyeHeight float32 // Player only.
28108 ZoomFOV float32 // in degrees. Player only.
28109 UseTextureAlpha bool
28110 DmgTextureMod Texture // suffix
28113 NametagBG color.NRGBA
28116 x := ((*(*(struct {
28117 MaxHP uint16 // Player only.
28118 CollideWithNodes bool
28119 Weight float32 // deprecated
28123 VisualSize [3]float32
28125 SpriteSheetSize [2]int16 // in sprites.
28126 SpritePos [2]int16 // in sprite sheet.
28128 MakeFootstepSnds bool
28129 RotateSpeed float32 // in radians per second.
28131 Colors []color.NRGBA
28132 CollideWithAOs bool
28135 FaceRotateDirOff float32 // in degrees.
28138 NametagColor color.NRGBA
28139 FaceRotateSpeed float32 // in degrees per second.
28143 MaxBreath uint16 // Player only.
28144 EyeHeight float32 // Player only.
28145 ZoomFOV float32 // in degrees. Player only.
28146 UseTextureAlpha bool
28147 DmgTextureMod Texture // suffix
28150 NametagBG color.NRGBA
28151 }))(obj)).Colors)[local340]
28152 w.Write([]byte{x.A, x.R, x.G, x.B})
28158 MaxHP uint16 // Player only.
28159 CollideWithNodes bool
28160 Weight float32 // deprecated
28164 VisualSize [3]float32
28166 SpriteSheetSize [2]int16 // in sprites.
28167 SpritePos [2]int16 // in sprite sheet.
28169 MakeFootstepSnds bool
28170 RotateSpeed float32 // in radians per second.
28172 Colors []color.NRGBA
28173 CollideWithAOs bool
28176 FaceRotateDirOff float32 // in degrees.
28179 NametagColor color.NRGBA
28180 FaceRotateSpeed float32 // in degrees per second.
28184 MaxBreath uint16 // Player only.
28185 EyeHeight float32 // Player only.
28186 ZoomFOV float32 // in degrees. Player only.
28187 UseTextureAlpha bool
28188 DmgTextureMod Texture // suffix
28191 NametagBG color.NRGBA
28192 }))(obj)).CollideWithAOs
28202 MaxHP uint16 // Player only.
28203 CollideWithNodes bool
28204 Weight float32 // deprecated
28208 VisualSize [3]float32
28210 SpriteSheetSize [2]int16 // in sprites.
28211 SpritePos [2]int16 // in sprite sheet.
28213 MakeFootstepSnds bool
28214 RotateSpeed float32 // in radians per second.
28216 Colors []color.NRGBA
28217 CollideWithAOs bool
28220 FaceRotateDirOff float32 // in degrees.
28223 NametagColor color.NRGBA
28224 FaceRotateSpeed float32 // in degrees per second.
28228 MaxBreath uint16 // Player only.
28229 EyeHeight float32 // Player only.
28230 ZoomFOV float32 // in degrees. Player only.
28231 UseTextureAlpha bool
28232 DmgTextureMod Texture // suffix
28235 NametagBG color.NRGBA
28236 }))(obj)).StepHeight
28237 write32(w, math.Float32bits(x))
28241 MaxHP uint16 // Player only.
28242 CollideWithNodes bool
28243 Weight float32 // deprecated
28247 VisualSize [3]float32
28249 SpriteSheetSize [2]int16 // in sprites.
28250 SpritePos [2]int16 // in sprite sheet.
28252 MakeFootstepSnds bool
28253 RotateSpeed float32 // in radians per second.
28255 Colors []color.NRGBA
28256 CollideWithAOs bool
28259 FaceRotateDirOff float32 // in degrees.
28262 NametagColor color.NRGBA
28263 FaceRotateSpeed float32 // in degrees per second.
28267 MaxBreath uint16 // Player only.
28268 EyeHeight float32 // Player only.
28269 ZoomFOV float32 // in degrees. Player only.
28270 UseTextureAlpha bool
28271 DmgTextureMod Texture // suffix
28274 NametagBG color.NRGBA
28275 }))(obj)).FaceRotateDir
28285 MaxHP uint16 // Player only.
28286 CollideWithNodes bool
28287 Weight float32 // deprecated
28291 VisualSize [3]float32
28293 SpriteSheetSize [2]int16 // in sprites.
28294 SpritePos [2]int16 // in sprite sheet.
28296 MakeFootstepSnds bool
28297 RotateSpeed float32 // in radians per second.
28299 Colors []color.NRGBA
28300 CollideWithAOs bool
28303 FaceRotateDirOff float32 // in degrees.
28306 NametagColor color.NRGBA
28307 FaceRotateSpeed float32 // in degrees per second.
28311 MaxBreath uint16 // Player only.
28312 EyeHeight float32 // Player only.
28313 ZoomFOV float32 // in degrees. Player only.
28314 UseTextureAlpha bool
28315 DmgTextureMod Texture // suffix
28318 NametagBG color.NRGBA
28319 }))(obj)).FaceRotateDirOff
28320 write32(w, math.Float32bits(x))
28324 MaxHP uint16 // Player only.
28325 CollideWithNodes bool
28326 Weight float32 // deprecated
28330 VisualSize [3]float32
28332 SpriteSheetSize [2]int16 // in sprites.
28333 SpritePos [2]int16 // in sprite sheet.
28335 MakeFootstepSnds bool
28336 RotateSpeed float32 // in radians per second.
28338 Colors []color.NRGBA
28339 CollideWithAOs bool
28342 FaceRotateDirOff float32 // in degrees.
28345 NametagColor color.NRGBA
28346 FaceRotateSpeed float32 // in degrees per second.
28350 MaxBreath uint16 // Player only.
28351 EyeHeight float32 // Player only.
28352 ZoomFOV float32 // in degrees. Player only.
28353 UseTextureAlpha bool
28354 DmgTextureMod Texture // suffix
28357 NametagBG color.NRGBA
28358 }))(obj)).BackfaceCull
28366 if len(([]byte((*(*(struct {
28367 MaxHP uint16 // Player only.
28368 CollideWithNodes bool
28369 Weight float32 // deprecated
28373 VisualSize [3]float32
28375 SpriteSheetSize [2]int16 // in sprites.
28376 SpritePos [2]int16 // in sprite sheet.
28378 MakeFootstepSnds bool
28379 RotateSpeed float32 // in radians per second.
28381 Colors []color.NRGBA
28382 CollideWithAOs bool
28385 FaceRotateDirOff float32 // in degrees.
28388 NametagColor color.NRGBA
28389 FaceRotateSpeed float32 // in degrees per second.
28393 MaxBreath uint16 // Player only.
28394 EyeHeight float32 // Player only.
28395 ZoomFOV float32 // in degrees. Player only.
28396 UseTextureAlpha bool
28397 DmgTextureMod Texture // suffix
28400 NametagBG color.NRGBA
28401 }))(obj)).Nametag))) > math.MaxUint16 {
28405 x := uint16(len(([]byte((*(*(struct {
28406 MaxHP uint16 // Player only.
28407 CollideWithNodes bool
28408 Weight float32 // deprecated
28412 VisualSize [3]float32
28414 SpriteSheetSize [2]int16 // in sprites.
28415 SpritePos [2]int16 // in sprite sheet.
28417 MakeFootstepSnds bool
28418 RotateSpeed float32 // in radians per second.
28420 Colors []color.NRGBA
28421 CollideWithAOs bool
28424 FaceRotateDirOff float32 // in degrees.
28427 NametagColor color.NRGBA
28428 FaceRotateSpeed float32 // in degrees per second.
28432 MaxBreath uint16 // Player only.
28433 EyeHeight float32 // Player only.
28434 ZoomFOV float32 // in degrees. Player only.
28435 UseTextureAlpha bool
28436 DmgTextureMod Texture // suffix
28439 NametagBG color.NRGBA
28440 }))(obj)).Nametag))))
28441 write16(w, uint16(x))
28444 _, err := w.Write(([]byte((*(*(struct {
28445 MaxHP uint16 // Player only.
28446 CollideWithNodes bool
28447 Weight float32 // deprecated
28451 VisualSize [3]float32
28453 SpriteSheetSize [2]int16 // in sprites.
28454 SpritePos [2]int16 // in sprite sheet.
28456 MakeFootstepSnds bool
28457 RotateSpeed float32 // in radians per second.
28459 Colors []color.NRGBA
28460 CollideWithAOs bool
28463 FaceRotateDirOff float32 // in degrees.
28466 NametagColor color.NRGBA
28467 FaceRotateSpeed float32 // in degrees per second.
28471 MaxBreath uint16 // Player only.
28472 EyeHeight float32 // Player only.
28473 ZoomFOV float32 // in degrees. Player only.
28474 UseTextureAlpha bool
28475 DmgTextureMod Texture // suffix
28478 NametagBG color.NRGBA
28479 }))(obj)).Nametag))[:])
28484 MaxHP uint16 // Player only.
28485 CollideWithNodes bool
28486 Weight float32 // deprecated
28490 VisualSize [3]float32
28492 SpriteSheetSize [2]int16 // in sprites.
28493 SpritePos [2]int16 // in sprite sheet.
28495 MakeFootstepSnds bool
28496 RotateSpeed float32 // in radians per second.
28498 Colors []color.NRGBA
28499 CollideWithAOs bool
28502 FaceRotateDirOff float32 // in degrees.
28505 NametagColor color.NRGBA
28506 FaceRotateSpeed float32 // in degrees per second.
28510 MaxBreath uint16 // Player only.
28511 EyeHeight float32 // Player only.
28512 ZoomFOV float32 // in degrees. Player only.
28513 UseTextureAlpha bool
28514 DmgTextureMod Texture // suffix
28517 NametagBG color.NRGBA
28518 }))(obj)).NametagColor
28519 w.Write([]byte{x.A, x.R, x.G, x.B})
28524 MaxHP uint16 // Player only.
28525 CollideWithNodes bool
28526 Weight float32 // deprecated
28530 VisualSize [3]float32
28532 SpriteSheetSize [2]int16 // in sprites.
28533 SpritePos [2]int16 // in sprite sheet.
28535 MakeFootstepSnds bool
28536 RotateSpeed float32 // in radians per second.
28538 Colors []color.NRGBA
28539 CollideWithAOs bool
28542 FaceRotateDirOff float32 // in degrees.
28545 NametagColor color.NRGBA
28546 FaceRotateSpeed float32 // in degrees per second.
28550 MaxBreath uint16 // Player only.
28551 EyeHeight float32 // Player only.
28552 ZoomFOV float32 // in degrees. Player only.
28553 UseTextureAlpha bool
28554 DmgTextureMod Texture // suffix
28557 NametagBG color.NRGBA
28558 }))(obj)).FaceRotateSpeed
28559 write32(w, math.Float32bits(x))
28561 if len(([]byte((*(*(struct {
28562 MaxHP uint16 // Player only.
28563 CollideWithNodes bool
28564 Weight float32 // deprecated
28568 VisualSize [3]float32
28570 SpriteSheetSize [2]int16 // in sprites.
28571 SpritePos [2]int16 // in sprite sheet.
28573 MakeFootstepSnds bool
28574 RotateSpeed float32 // in radians per second.
28576 Colors []color.NRGBA
28577 CollideWithAOs bool
28580 FaceRotateDirOff float32 // in degrees.
28583 NametagColor color.NRGBA
28584 FaceRotateSpeed float32 // in degrees per second.
28588 MaxBreath uint16 // Player only.
28589 EyeHeight float32 // Player only.
28590 ZoomFOV float32 // in degrees. Player only.
28591 UseTextureAlpha bool
28592 DmgTextureMod Texture // suffix
28595 NametagBG color.NRGBA
28596 }))(obj)).Infotext))) > math.MaxUint16 {
28600 x := uint16(len(([]byte((*(*(struct {
28601 MaxHP uint16 // Player only.
28602 CollideWithNodes bool
28603 Weight float32 // deprecated
28607 VisualSize [3]float32
28609 SpriteSheetSize [2]int16 // in sprites.
28610 SpritePos [2]int16 // in sprite sheet.
28612 MakeFootstepSnds bool
28613 RotateSpeed float32 // in radians per second.
28615 Colors []color.NRGBA
28616 CollideWithAOs bool
28619 FaceRotateDirOff float32 // in degrees.
28622 NametagColor color.NRGBA
28623 FaceRotateSpeed float32 // in degrees per second.
28627 MaxBreath uint16 // Player only.
28628 EyeHeight float32 // Player only.
28629 ZoomFOV float32 // in degrees. Player only.
28630 UseTextureAlpha bool
28631 DmgTextureMod Texture // suffix
28634 NametagBG color.NRGBA
28635 }))(obj)).Infotext))))
28636 write16(w, uint16(x))
28639 _, err := w.Write(([]byte((*(*(struct {
28640 MaxHP uint16 // Player only.
28641 CollideWithNodes bool
28642 Weight float32 // deprecated
28646 VisualSize [3]float32
28648 SpriteSheetSize [2]int16 // in sprites.
28649 SpritePos [2]int16 // in sprite sheet.
28651 MakeFootstepSnds bool
28652 RotateSpeed float32 // in radians per second.
28654 Colors []color.NRGBA
28655 CollideWithAOs bool
28658 FaceRotateDirOff float32 // in degrees.
28661 NametagColor color.NRGBA
28662 FaceRotateSpeed float32 // in degrees per second.
28666 MaxBreath uint16 // Player only.
28667 EyeHeight float32 // Player only.
28668 ZoomFOV float32 // in degrees. Player only.
28669 UseTextureAlpha bool
28670 DmgTextureMod Texture // suffix
28673 NametagBG color.NRGBA
28674 }))(obj)).Infotext))[:])
28677 if len(([]byte((*(*(struct {
28678 MaxHP uint16 // Player only.
28679 CollideWithNodes bool
28680 Weight float32 // deprecated
28684 VisualSize [3]float32
28686 SpriteSheetSize [2]int16 // in sprites.
28687 SpritePos [2]int16 // in sprite sheet.
28689 MakeFootstepSnds bool
28690 RotateSpeed float32 // in radians per second.
28692 Colors []color.NRGBA
28693 CollideWithAOs bool
28696 FaceRotateDirOff float32 // in degrees.
28699 NametagColor color.NRGBA
28700 FaceRotateSpeed float32 // in degrees per second.
28704 MaxBreath uint16 // Player only.
28705 EyeHeight float32 // Player only.
28706 ZoomFOV float32 // in degrees. Player only.
28707 UseTextureAlpha bool
28708 DmgTextureMod Texture // suffix
28711 NametagBG color.NRGBA
28712 }))(obj)).Itemstring))) > math.MaxUint16 {
28716 x := uint16(len(([]byte((*(*(struct {
28717 MaxHP uint16 // Player only.
28718 CollideWithNodes bool
28719 Weight float32 // deprecated
28723 VisualSize [3]float32
28725 SpriteSheetSize [2]int16 // in sprites.
28726 SpritePos [2]int16 // in sprite sheet.
28728 MakeFootstepSnds bool
28729 RotateSpeed float32 // in radians per second.
28731 Colors []color.NRGBA
28732 CollideWithAOs bool
28735 FaceRotateDirOff float32 // in degrees.
28738 NametagColor color.NRGBA
28739 FaceRotateSpeed float32 // in degrees per second.
28743 MaxBreath uint16 // Player only.
28744 EyeHeight float32 // Player only.
28745 ZoomFOV float32 // in degrees. Player only.
28746 UseTextureAlpha bool
28747 DmgTextureMod Texture // suffix
28750 NametagBG color.NRGBA
28751 }))(obj)).Itemstring))))
28752 write16(w, uint16(x))
28755 _, err := w.Write(([]byte((*(*(struct {
28756 MaxHP uint16 // Player only.
28757 CollideWithNodes bool
28758 Weight float32 // deprecated
28762 VisualSize [3]float32
28764 SpriteSheetSize [2]int16 // in sprites.
28765 SpritePos [2]int16 // in sprite sheet.
28767 MakeFootstepSnds bool
28768 RotateSpeed float32 // in radians per second.
28770 Colors []color.NRGBA
28771 CollideWithAOs bool
28774 FaceRotateDirOff float32 // in degrees.
28777 NametagColor color.NRGBA
28778 FaceRotateSpeed float32 // in degrees per second.
28782 MaxBreath uint16 // Player only.
28783 EyeHeight float32 // Player only.
28784 ZoomFOV float32 // in degrees. Player only.
28785 UseTextureAlpha bool
28786 DmgTextureMod Texture // suffix
28789 NametagBG color.NRGBA
28790 }))(obj)).Itemstring))[:])
28795 MaxHP uint16 // Player only.
28796 CollideWithNodes bool
28797 Weight float32 // deprecated
28801 VisualSize [3]float32
28803 SpriteSheetSize [2]int16 // in sprites.
28804 SpritePos [2]int16 // in sprite sheet.
28806 MakeFootstepSnds bool
28807 RotateSpeed float32 // in radians per second.
28809 Colors []color.NRGBA
28810 CollideWithAOs bool
28813 FaceRotateDirOff float32 // in degrees.
28816 NametagColor color.NRGBA
28817 FaceRotateSpeed float32 // in degrees per second.
28821 MaxBreath uint16 // Player only.
28822 EyeHeight float32 // Player only.
28823 ZoomFOV float32 // in degrees. Player only.
28824 UseTextureAlpha bool
28825 DmgTextureMod Texture // suffix
28828 NametagBG color.NRGBA
28830 write8(w, uint8(x))
28834 MaxHP uint16 // Player only.
28835 CollideWithNodes bool
28836 Weight float32 // deprecated
28840 VisualSize [3]float32
28842 SpriteSheetSize [2]int16 // in sprites.
28843 SpritePos [2]int16 // in sprite sheet.
28845 MakeFootstepSnds bool
28846 RotateSpeed float32 // in radians per second.
28848 Colors []color.NRGBA
28849 CollideWithAOs bool
28852 FaceRotateDirOff float32 // in degrees.
28855 NametagColor color.NRGBA
28856 FaceRotateSpeed float32 // in degrees per second.
28860 MaxBreath uint16 // Player only.
28861 EyeHeight float32 // Player only.
28862 ZoomFOV float32 // in degrees. Player only.
28863 UseTextureAlpha bool
28864 DmgTextureMod Texture // suffix
28867 NametagBG color.NRGBA
28868 }))(obj)).MaxBreath
28869 write16(w, uint16(x))
28873 MaxHP uint16 // Player only.
28874 CollideWithNodes bool
28875 Weight float32 // deprecated
28879 VisualSize [3]float32
28881 SpriteSheetSize [2]int16 // in sprites.
28882 SpritePos [2]int16 // in sprite sheet.
28884 MakeFootstepSnds bool
28885 RotateSpeed float32 // in radians per second.
28887 Colors []color.NRGBA
28888 CollideWithAOs bool
28891 FaceRotateDirOff float32 // in degrees.
28894 NametagColor color.NRGBA
28895 FaceRotateSpeed float32 // in degrees per second.
28899 MaxBreath uint16 // Player only.
28900 EyeHeight float32 // Player only.
28901 ZoomFOV float32 // in degrees. Player only.
28902 UseTextureAlpha bool
28903 DmgTextureMod Texture // suffix
28906 NametagBG color.NRGBA
28907 }))(obj)).EyeHeight
28908 write32(w, math.Float32bits(x))
28912 MaxHP uint16 // Player only.
28913 CollideWithNodes bool
28914 Weight float32 // deprecated
28918 VisualSize [3]float32
28920 SpriteSheetSize [2]int16 // in sprites.
28921 SpritePos [2]int16 // in sprite sheet.
28923 MakeFootstepSnds bool
28924 RotateSpeed float32 // in radians per second.
28926 Colors []color.NRGBA
28927 CollideWithAOs bool
28930 FaceRotateDirOff float32 // in degrees.
28933 NametagColor color.NRGBA
28934 FaceRotateSpeed float32 // in degrees per second.
28938 MaxBreath uint16 // Player only.
28939 EyeHeight float32 // Player only.
28940 ZoomFOV float32 // in degrees. Player only.
28941 UseTextureAlpha bool
28942 DmgTextureMod Texture // suffix
28945 NametagBG color.NRGBA
28947 write32(w, math.Float32bits(x))
28951 MaxHP uint16 // Player only.
28952 CollideWithNodes bool
28953 Weight float32 // deprecated
28957 VisualSize [3]float32
28959 SpriteSheetSize [2]int16 // in sprites.
28960 SpritePos [2]int16 // in sprite sheet.
28962 MakeFootstepSnds bool
28963 RotateSpeed float32 // in radians per second.
28965 Colors []color.NRGBA
28966 CollideWithAOs bool
28969 FaceRotateDirOff float32 // in degrees.
28972 NametagColor color.NRGBA
28973 FaceRotateSpeed float32 // in degrees per second.
28977 MaxBreath uint16 // Player only.
28978 EyeHeight float32 // Player only.
28979 ZoomFOV float32 // in degrees. Player only.
28980 UseTextureAlpha bool
28981 DmgTextureMod Texture // suffix
28984 NametagBG color.NRGBA
28985 }))(obj)).UseTextureAlpha
28993 if err := pcall(func() {
28995 MaxHP uint16 // Player only.
28996 CollideWithNodes bool
28997 Weight float32 // deprecated
29001 VisualSize [3]float32
29003 SpriteSheetSize [2]int16 // in sprites.
29004 SpritePos [2]int16 // in sprite sheet.
29006 MakeFootstepSnds bool
29007 RotateSpeed float32 // in radians per second.
29009 Colors []color.NRGBA
29010 CollideWithAOs bool
29013 FaceRotateDirOff float32 // in degrees.
29016 NametagColor color.NRGBA
29017 FaceRotateSpeed float32 // in degrees per second.
29021 MaxBreath uint16 // Player only.
29022 EyeHeight float32 // Player only.
29023 ZoomFOV float32 // in degrees. Player only.
29024 UseTextureAlpha bool
29025 DmgTextureMod Texture // suffix
29028 NametagBG color.NRGBA
29029 }))(obj)).DmgTextureMod).serialize(w)
29034 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29038 MaxHP uint16 // Player only.
29039 CollideWithNodes bool
29040 Weight float32 // deprecated
29044 VisualSize [3]float32
29046 SpriteSheetSize [2]int16 // in sprites.
29047 SpritePos [2]int16 // in sprite sheet.
29049 MakeFootstepSnds bool
29050 RotateSpeed float32 // in radians per second.
29052 Colors []color.NRGBA
29053 CollideWithAOs bool
29056 FaceRotateDirOff float32 // in degrees.
29059 NametagColor color.NRGBA
29060 FaceRotateSpeed float32 // in degrees per second.
29064 MaxBreath uint16 // Player only.
29065 EyeHeight float32 // Player only.
29066 ZoomFOV float32 // in degrees. Player only.
29067 UseTextureAlpha bool
29068 DmgTextureMod Texture // suffix
29071 NametagBG color.NRGBA
29082 MaxHP uint16 // Player only.
29083 CollideWithNodes bool
29084 Weight float32 // deprecated
29088 VisualSize [3]float32
29090 SpriteSheetSize [2]int16 // in sprites.
29091 SpritePos [2]int16 // in sprite sheet.
29093 MakeFootstepSnds bool
29094 RotateSpeed float32 // in radians per second.
29096 Colors []color.NRGBA
29097 CollideWithAOs bool
29100 FaceRotateDirOff float32 // in degrees.
29103 NametagColor color.NRGBA
29104 FaceRotateSpeed float32 // in degrees per second.
29108 MaxBreath uint16 // Player only.
29109 EyeHeight float32 // Player only.
29110 ZoomFOV float32 // in degrees. Player only.
29111 UseTextureAlpha bool
29112 DmgTextureMod Texture // suffix
29115 NametagBG color.NRGBA
29116 }))(obj)).ShowOnMinimap
29126 MaxHP uint16 // Player only.
29127 CollideWithNodes bool
29128 Weight float32 // deprecated
29132 VisualSize [3]float32
29134 SpriteSheetSize [2]int16 // in sprites.
29135 SpritePos [2]int16 // in sprite sheet.
29137 MakeFootstepSnds bool
29138 RotateSpeed float32 // in radians per second.
29140 Colors []color.NRGBA
29141 CollideWithAOs bool
29144 FaceRotateDirOff float32 // in degrees.
29147 NametagColor color.NRGBA
29148 FaceRotateSpeed float32 // in degrees per second.
29152 MaxBreath uint16 // Player only.
29153 EyeHeight float32 // Player only.
29154 ZoomFOV float32 // in degrees. Player only.
29155 UseTextureAlpha bool
29156 DmgTextureMod Texture // suffix
29159 NametagBG color.NRGBA
29160 }))(obj)).NametagBG
29161 w.Write([]byte{x.A, x.R, x.G, x.B})
29166 func (obj *AOProps) deserialize(r io.Reader) {
29169 local342 := uint8(4)
29174 if local341 != local342 {
29175 chk(fmt.Errorf("const %v: %v", "uint8(4)", local341))
29179 p := &(*(*(struct {
29180 MaxHP uint16 // Player only.
29181 CollideWithNodes bool
29182 Weight float32 // deprecated
29186 VisualSize [3]float32
29188 SpriteSheetSize [2]int16 // in sprites.
29189 SpritePos [2]int16 // in sprite sheet.
29191 MakeFootstepSnds bool
29192 RotateSpeed float32 // in radians per second.
29194 Colors []color.NRGBA
29195 CollideWithAOs bool
29198 FaceRotateDirOff float32 // in degrees.
29201 NametagColor color.NRGBA
29202 FaceRotateSpeed float32 // in degrees per second.
29206 MaxBreath uint16 // Player only.
29207 EyeHeight float32 // Player only.
29208 ZoomFOV float32 // in degrees. Player only.
29209 UseTextureAlpha bool
29210 DmgTextureMod Texture // suffix
29213 NametagBG color.NRGBA
29218 p := &(*(*(struct {
29219 MaxHP uint16 // Player only.
29220 CollideWithNodes bool
29221 Weight float32 // deprecated
29225 VisualSize [3]float32
29227 SpriteSheetSize [2]int16 // in sprites.
29228 SpritePos [2]int16 // in sprite sheet.
29230 MakeFootstepSnds bool
29231 RotateSpeed float32 // in radians per second.
29233 Colors []color.NRGBA
29234 CollideWithAOs bool
29237 FaceRotateDirOff float32 // in degrees.
29240 NametagColor color.NRGBA
29241 FaceRotateSpeed float32 // in degrees per second.
29245 MaxBreath uint16 // Player only.
29246 EyeHeight float32 // Player only.
29247 ZoomFOV float32 // in degrees. Player only.
29248 UseTextureAlpha bool
29249 DmgTextureMod Texture // suffix
29252 NametagBG color.NRGBA
29253 }))(obj)).CollideWithNodes
29254 switch n := read8(r); n {
29260 chk(fmt.Errorf("invalid bool: %d", n))
29265 p := &(*(*(struct {
29266 MaxHP uint16 // Player only.
29267 CollideWithNodes bool
29268 Weight float32 // deprecated
29272 VisualSize [3]float32
29274 SpriteSheetSize [2]int16 // in sprites.
29275 SpritePos [2]int16 // in sprite sheet.
29277 MakeFootstepSnds bool
29278 RotateSpeed float32 // in radians per second.
29280 Colors []color.NRGBA
29281 CollideWithAOs bool
29284 FaceRotateDirOff float32 // in degrees.
29287 NametagColor color.NRGBA
29288 FaceRotateSpeed float32 // in degrees per second.
29292 MaxBreath uint16 // Player only.
29293 EyeHeight float32 // Player only.
29294 ZoomFOV float32 // in degrees. Player only.
29295 UseTextureAlpha bool
29296 DmgTextureMod Texture // suffix
29299 NametagBG color.NRGBA
29301 *p = math.Float32frombits(read32(r))
29303 if err := pcall(func() {
29305 MaxHP uint16 // Player only.
29306 CollideWithNodes bool
29307 Weight float32 // deprecated
29311 VisualSize [3]float32
29313 SpriteSheetSize [2]int16 // in sprites.
29314 SpritePos [2]int16 // in sprite sheet.
29316 MakeFootstepSnds bool
29317 RotateSpeed float32 // in radians per second.
29319 Colors []color.NRGBA
29320 CollideWithAOs bool
29323 FaceRotateDirOff float32 // in degrees.
29326 NametagColor color.NRGBA
29327 FaceRotateSpeed float32 // in degrees per second.
29331 MaxBreath uint16 // Player only.
29332 EyeHeight float32 // Player only.
29333 ZoomFOV float32 // in degrees. Player only.
29334 UseTextureAlpha bool
29335 DmgTextureMod Texture // suffix
29338 NametagBG color.NRGBA
29339 }))(obj)).ColBox).deserialize(r)
29344 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29346 if err := pcall(func() {
29348 MaxHP uint16 // Player only.
29349 CollideWithNodes bool
29350 Weight float32 // deprecated
29354 VisualSize [3]float32
29356 SpriteSheetSize [2]int16 // in sprites.
29357 SpritePos [2]int16 // in sprite sheet.
29359 MakeFootstepSnds bool
29360 RotateSpeed float32 // in radians per second.
29362 Colors []color.NRGBA
29363 CollideWithAOs bool
29366 FaceRotateDirOff float32 // in degrees.
29369 NametagColor color.NRGBA
29370 FaceRotateSpeed float32 // in degrees per second.
29374 MaxBreath uint16 // Player only.
29375 EyeHeight float32 // Player only.
29376 ZoomFOV float32 // in degrees. Player only.
29377 UseTextureAlpha bool
29378 DmgTextureMod Texture // suffix
29381 NametagBG color.NRGBA
29382 }))(obj)).SelBox).deserialize(r)
29387 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29390 p := &(*(*(struct {
29391 MaxHP uint16 // Player only.
29392 CollideWithNodes bool
29393 Weight float32 // deprecated
29397 VisualSize [3]float32
29399 SpriteSheetSize [2]int16 // in sprites.
29400 SpritePos [2]int16 // in sprite sheet.
29402 MakeFootstepSnds bool
29403 RotateSpeed float32 // in radians per second.
29405 Colors []color.NRGBA
29406 CollideWithAOs bool
29409 FaceRotateDirOff float32 // in degrees.
29412 NametagColor color.NRGBA
29413 FaceRotateSpeed float32 // in degrees per second.
29417 MaxBreath uint16 // Player only.
29418 EyeHeight float32 // Player only.
29419 ZoomFOV float32 // in degrees. Player only.
29420 UseTextureAlpha bool
29421 DmgTextureMod Texture // suffix
29424 NametagBG color.NRGBA
29425 }))(obj)).Pointable
29426 switch n := read8(r); n {
29432 chk(fmt.Errorf("invalid bool: %d", n))
29436 var local343 []uint8
29437 var local344 uint16
29442 (local343) = make([]uint8, local344)
29444 _, err := io.ReadFull(r, (local343)[:])
29448 MaxHP uint16 // Player only.
29449 CollideWithNodes bool
29450 Weight float32 // deprecated
29454 VisualSize [3]float32
29456 SpriteSheetSize [2]int16 // in sprites.
29457 SpritePos [2]int16 // in sprite sheet.
29459 MakeFootstepSnds bool
29460 RotateSpeed float32 // in radians per second.
29462 Colors []color.NRGBA
29463 CollideWithAOs bool
29466 FaceRotateDirOff float32 // in degrees.
29469 NametagColor color.NRGBA
29470 FaceRotateSpeed float32 // in degrees per second.
29474 MaxBreath uint16 // Player only.
29475 EyeHeight float32 // Player only.
29476 ZoomFOV float32 // in degrees. Player only.
29477 UseTextureAlpha bool
29478 DmgTextureMod Texture // suffix
29481 NametagBG color.NRGBA
29482 }))(obj)).Visual) = string(local343)
29483 for local345 := range (*(*(struct {
29484 MaxHP uint16 // Player only.
29485 CollideWithNodes bool
29486 Weight float32 // deprecated
29490 VisualSize [3]float32
29492 SpriteSheetSize [2]int16 // in sprites.
29493 SpritePos [2]int16 // in sprite sheet.
29495 MakeFootstepSnds bool
29496 RotateSpeed float32 // in radians per second.
29498 Colors []color.NRGBA
29499 CollideWithAOs bool
29502 FaceRotateDirOff float32 // in degrees.
29505 NametagColor color.NRGBA
29506 FaceRotateSpeed float32 // in degrees per second.
29510 MaxBreath uint16 // Player only.
29511 EyeHeight float32 // Player only.
29512 ZoomFOV float32 // in degrees. Player only.
29513 UseTextureAlpha bool
29514 DmgTextureMod Texture // suffix
29517 NametagBG color.NRGBA
29518 }))(obj)).VisualSize {
29520 p := &((*(*(struct {
29521 MaxHP uint16 // Player only.
29522 CollideWithNodes bool
29523 Weight float32 // deprecated
29527 VisualSize [3]float32
29529 SpriteSheetSize [2]int16 // in sprites.
29530 SpritePos [2]int16 // in sprite sheet.
29532 MakeFootstepSnds bool
29533 RotateSpeed float32 // in radians per second.
29535 Colors []color.NRGBA
29536 CollideWithAOs bool
29539 FaceRotateDirOff float32 // in degrees.
29542 NametagColor color.NRGBA
29543 FaceRotateSpeed float32 // in degrees per second.
29547 MaxBreath uint16 // Player only.
29548 EyeHeight float32 // Player only.
29549 ZoomFOV float32 // in degrees. Player only.
29550 UseTextureAlpha bool
29551 DmgTextureMod Texture // suffix
29554 NametagBG color.NRGBA
29555 }))(obj)).VisualSize)[local345]
29556 *p = math.Float32frombits(read32(r))
29559 var local346 uint16
29565 MaxHP uint16 // Player only.
29566 CollideWithNodes bool
29567 Weight float32 // deprecated
29571 VisualSize [3]float32
29573 SpriteSheetSize [2]int16 // in sprites.
29574 SpritePos [2]int16 // in sprite sheet.
29576 MakeFootstepSnds bool
29577 RotateSpeed float32 // in radians per second.
29579 Colors []color.NRGBA
29580 CollideWithAOs bool
29583 FaceRotateDirOff float32 // in degrees.
29586 NametagColor color.NRGBA
29587 FaceRotateSpeed float32 // in degrees per second.
29591 MaxBreath uint16 // Player only.
29592 EyeHeight float32 // Player only.
29593 ZoomFOV float32 // in degrees. Player only.
29594 UseTextureAlpha bool
29595 DmgTextureMod Texture // suffix
29598 NametagBG color.NRGBA
29599 }))(obj)).Textures) = make([]Texture, local346)
29600 for local347 := range (*(*(struct {
29601 MaxHP uint16 // Player only.
29602 CollideWithNodes bool
29603 Weight float32 // deprecated
29607 VisualSize [3]float32
29609 SpriteSheetSize [2]int16 // in sprites.
29610 SpritePos [2]int16 // in sprite sheet.
29612 MakeFootstepSnds bool
29613 RotateSpeed float32 // in radians per second.
29615 Colors []color.NRGBA
29616 CollideWithAOs bool
29619 FaceRotateDirOff float32 // in degrees.
29622 NametagColor color.NRGBA
29623 FaceRotateSpeed float32 // in degrees per second.
29627 MaxBreath uint16 // Player only.
29628 EyeHeight float32 // Player only.
29629 ZoomFOV float32 // in degrees. Player only.
29630 UseTextureAlpha bool
29631 DmgTextureMod Texture // suffix
29634 NametagBG color.NRGBA
29635 }))(obj)).Textures {
29636 if err := pcall(func() {
29638 MaxHP uint16 // Player only.
29639 CollideWithNodes bool
29640 Weight float32 // deprecated
29644 VisualSize [3]float32
29646 SpriteSheetSize [2]int16 // in sprites.
29647 SpritePos [2]int16 // in sprite sheet.
29649 MakeFootstepSnds bool
29650 RotateSpeed float32 // in radians per second.
29652 Colors []color.NRGBA
29653 CollideWithAOs bool
29656 FaceRotateDirOff float32 // in degrees.
29659 NametagColor color.NRGBA
29660 FaceRotateSpeed float32 // in degrees per second.
29664 MaxBreath uint16 // Player only.
29665 EyeHeight float32 // Player only.
29666 ZoomFOV float32 // in degrees. Player only.
29667 UseTextureAlpha bool
29668 DmgTextureMod Texture // suffix
29671 NametagBG color.NRGBA
29672 }))(obj)).Textures)[local347]).deserialize(r)
29677 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29680 for local348 := range (*(*(struct {
29681 MaxHP uint16 // Player only.
29682 CollideWithNodes bool
29683 Weight float32 // deprecated
29687 VisualSize [3]float32
29689 SpriteSheetSize [2]int16 // in sprites.
29690 SpritePos [2]int16 // in sprite sheet.
29692 MakeFootstepSnds bool
29693 RotateSpeed float32 // in radians per second.
29695 Colors []color.NRGBA
29696 CollideWithAOs bool
29699 FaceRotateDirOff float32 // in degrees.
29702 NametagColor color.NRGBA
29703 FaceRotateSpeed float32 // in degrees per second.
29707 MaxBreath uint16 // Player only.
29708 EyeHeight float32 // Player only.
29709 ZoomFOV float32 // in degrees. Player only.
29710 UseTextureAlpha bool
29711 DmgTextureMod Texture // suffix
29714 NametagBG color.NRGBA
29715 }))(obj)).SpriteSheetSize {
29717 p := &((*(*(struct {
29718 MaxHP uint16 // Player only.
29719 CollideWithNodes bool
29720 Weight float32 // deprecated
29724 VisualSize [3]float32
29726 SpriteSheetSize [2]int16 // in sprites.
29727 SpritePos [2]int16 // in sprite sheet.
29729 MakeFootstepSnds bool
29730 RotateSpeed float32 // in radians per second.
29732 Colors []color.NRGBA
29733 CollideWithAOs bool
29736 FaceRotateDirOff float32 // in degrees.
29739 NametagColor color.NRGBA
29740 FaceRotateSpeed float32 // in degrees per second.
29744 MaxBreath uint16 // Player only.
29745 EyeHeight float32 // Player only.
29746 ZoomFOV float32 // in degrees. Player only.
29747 UseTextureAlpha bool
29748 DmgTextureMod Texture // suffix
29751 NametagBG color.NRGBA
29752 }))(obj)).SpriteSheetSize)[local348]
29753 *p = int16(read16(r))
29756 for local349 := range (*(*(struct {
29757 MaxHP uint16 // Player only.
29758 CollideWithNodes bool
29759 Weight float32 // deprecated
29763 VisualSize [3]float32
29765 SpriteSheetSize [2]int16 // in sprites.
29766 SpritePos [2]int16 // in sprite sheet.
29768 MakeFootstepSnds bool
29769 RotateSpeed float32 // in radians per second.
29771 Colors []color.NRGBA
29772 CollideWithAOs bool
29775 FaceRotateDirOff float32 // in degrees.
29778 NametagColor color.NRGBA
29779 FaceRotateSpeed float32 // in degrees per second.
29783 MaxBreath uint16 // Player only.
29784 EyeHeight float32 // Player only.
29785 ZoomFOV float32 // in degrees. Player only.
29786 UseTextureAlpha bool
29787 DmgTextureMod Texture // suffix
29790 NametagBG color.NRGBA
29791 }))(obj)).SpritePos {
29793 p := &((*(*(struct {
29794 MaxHP uint16 // Player only.
29795 CollideWithNodes bool
29796 Weight float32 // deprecated
29800 VisualSize [3]float32
29802 SpriteSheetSize [2]int16 // in sprites.
29803 SpritePos [2]int16 // in sprite sheet.
29805 MakeFootstepSnds bool
29806 RotateSpeed float32 // in radians per second.
29808 Colors []color.NRGBA
29809 CollideWithAOs bool
29812 FaceRotateDirOff float32 // in degrees.
29815 NametagColor color.NRGBA
29816 FaceRotateSpeed float32 // in degrees per second.
29820 MaxBreath uint16 // Player only.
29821 EyeHeight float32 // Player only.
29822 ZoomFOV float32 // in degrees. Player only.
29823 UseTextureAlpha bool
29824 DmgTextureMod Texture // suffix
29827 NametagBG color.NRGBA
29828 }))(obj)).SpritePos)[local349]
29829 *p = int16(read16(r))
29833 p := &(*(*(struct {
29834 MaxHP uint16 // Player only.
29835 CollideWithNodes bool
29836 Weight float32 // deprecated
29840 VisualSize [3]float32
29842 SpriteSheetSize [2]int16 // in sprites.
29843 SpritePos [2]int16 // in sprite sheet.
29845 MakeFootstepSnds bool
29846 RotateSpeed float32 // in radians per second.
29848 Colors []color.NRGBA
29849 CollideWithAOs bool
29852 FaceRotateDirOff float32 // in degrees.
29855 NametagColor color.NRGBA
29856 FaceRotateSpeed float32 // in degrees per second.
29860 MaxBreath uint16 // Player only.
29861 EyeHeight float32 // Player only.
29862 ZoomFOV float32 // in degrees. Player only.
29863 UseTextureAlpha bool
29864 DmgTextureMod Texture // suffix
29867 NametagBG color.NRGBA
29869 switch n := read8(r); n {
29875 chk(fmt.Errorf("invalid bool: %d", n))
29880 p := &(*(*(struct {
29881 MaxHP uint16 // Player only.
29882 CollideWithNodes bool
29883 Weight float32 // deprecated
29887 VisualSize [3]float32
29889 SpriteSheetSize [2]int16 // in sprites.
29890 SpritePos [2]int16 // in sprite sheet.
29892 MakeFootstepSnds bool
29893 RotateSpeed float32 // in radians per second.
29895 Colors []color.NRGBA
29896 CollideWithAOs bool
29899 FaceRotateDirOff float32 // in degrees.
29902 NametagColor color.NRGBA
29903 FaceRotateSpeed float32 // in degrees per second.
29907 MaxBreath uint16 // Player only.
29908 EyeHeight float32 // Player only.
29909 ZoomFOV float32 // in degrees. Player only.
29910 UseTextureAlpha bool
29911 DmgTextureMod Texture // suffix
29914 NametagBG color.NRGBA
29915 }))(obj)).MakeFootstepSnds
29916 switch n := read8(r); n {
29922 chk(fmt.Errorf("invalid bool: %d", n))
29927 p := &(*(*(struct {
29928 MaxHP uint16 // Player only.
29929 CollideWithNodes bool
29930 Weight float32 // deprecated
29934 VisualSize [3]float32
29936 SpriteSheetSize [2]int16 // in sprites.
29937 SpritePos [2]int16 // in sprite sheet.
29939 MakeFootstepSnds bool
29940 RotateSpeed float32 // in radians per second.
29942 Colors []color.NRGBA
29943 CollideWithAOs bool
29946 FaceRotateDirOff float32 // in degrees.
29949 NametagColor color.NRGBA
29950 FaceRotateSpeed float32 // in degrees per second.
29954 MaxBreath uint16 // Player only.
29955 EyeHeight float32 // Player only.
29956 ZoomFOV float32 // in degrees. Player only.
29957 UseTextureAlpha bool
29958 DmgTextureMod Texture // suffix
29961 NametagBG color.NRGBA
29962 }))(obj)).RotateSpeed
29963 *p = math.Float32frombits(read32(r))
29965 var local350 []uint8
29966 var local351 uint16
29971 (local350) = make([]uint8, local351)
29973 _, err := io.ReadFull(r, (local350)[:])
29977 MaxHP uint16 // Player only.
29978 CollideWithNodes bool
29979 Weight float32 // deprecated
29983 VisualSize [3]float32
29985 SpriteSheetSize [2]int16 // in sprites.
29986 SpritePos [2]int16 // in sprite sheet.
29988 MakeFootstepSnds bool
29989 RotateSpeed float32 // in radians per second.
29991 Colors []color.NRGBA
29992 CollideWithAOs bool
29995 FaceRotateDirOff float32 // in degrees.
29998 NametagColor color.NRGBA
29999 FaceRotateSpeed float32 // in degrees per second.
30003 MaxBreath uint16 // Player only.
30004 EyeHeight float32 // Player only.
30005 ZoomFOV float32 // in degrees. Player only.
30006 UseTextureAlpha bool
30007 DmgTextureMod Texture // suffix
30010 NametagBG color.NRGBA
30011 }))(obj)).Mesh) = string(local350)
30012 var local352 uint16
30018 MaxHP uint16 // Player only.
30019 CollideWithNodes bool
30020 Weight float32 // deprecated
30024 VisualSize [3]float32
30026 SpriteSheetSize [2]int16 // in sprites.
30027 SpritePos [2]int16 // in sprite sheet.
30029 MakeFootstepSnds bool
30030 RotateSpeed float32 // in radians per second.
30032 Colors []color.NRGBA
30033 CollideWithAOs bool
30036 FaceRotateDirOff float32 // in degrees.
30039 NametagColor color.NRGBA
30040 FaceRotateSpeed float32 // in degrees per second.
30044 MaxBreath uint16 // Player only.
30045 EyeHeight float32 // Player only.
30046 ZoomFOV float32 // in degrees. Player only.
30047 UseTextureAlpha bool
30048 DmgTextureMod Texture // suffix
30051 NametagBG color.NRGBA
30052 }))(obj)).Colors) = make([]color.NRGBA, local352)
30053 for local353 := range (*(*(struct {
30054 MaxHP uint16 // Player only.
30055 CollideWithNodes bool
30056 Weight float32 // deprecated
30060 VisualSize [3]float32
30062 SpriteSheetSize [2]int16 // in sprites.
30063 SpritePos [2]int16 // in sprite sheet.
30065 MakeFootstepSnds bool
30066 RotateSpeed float32 // in radians per second.
30068 Colors []color.NRGBA
30069 CollideWithAOs bool
30072 FaceRotateDirOff float32 // in degrees.
30075 NametagColor color.NRGBA
30076 FaceRotateSpeed float32 // in degrees per second.
30080 MaxBreath uint16 // Player only.
30081 EyeHeight float32 // Player only.
30082 ZoomFOV float32 // in degrees. Player only.
30083 UseTextureAlpha bool
30084 DmgTextureMod Texture // suffix
30087 NametagBG color.NRGBA
30090 p := &((*(*(struct {
30091 MaxHP uint16 // Player only.
30092 CollideWithNodes bool
30093 Weight float32 // deprecated
30097 VisualSize [3]float32
30099 SpriteSheetSize [2]int16 // in sprites.
30100 SpritePos [2]int16 // in sprite sheet.
30102 MakeFootstepSnds bool
30103 RotateSpeed float32 // in radians per second.
30105 Colors []color.NRGBA
30106 CollideWithAOs bool
30109 FaceRotateDirOff float32 // in degrees.
30112 NametagColor color.NRGBA
30113 FaceRotateSpeed float32 // in degrees per second.
30117 MaxBreath uint16 // Player only.
30118 EyeHeight float32 // Player only.
30119 ZoomFOV float32 // in degrees. Player only.
30120 UseTextureAlpha bool
30121 DmgTextureMod Texture // suffix
30124 NametagBG color.NRGBA
30125 }))(obj)).Colors)[local353]
30126 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30131 p := &(*(*(struct {
30132 MaxHP uint16 // Player only.
30133 CollideWithNodes bool
30134 Weight float32 // deprecated
30138 VisualSize [3]float32
30140 SpriteSheetSize [2]int16 // in sprites.
30141 SpritePos [2]int16 // in sprite sheet.
30143 MakeFootstepSnds bool
30144 RotateSpeed float32 // in radians per second.
30146 Colors []color.NRGBA
30147 CollideWithAOs bool
30150 FaceRotateDirOff float32 // in degrees.
30153 NametagColor color.NRGBA
30154 FaceRotateSpeed float32 // in degrees per second.
30158 MaxBreath uint16 // Player only.
30159 EyeHeight float32 // Player only.
30160 ZoomFOV float32 // in degrees. Player only.
30161 UseTextureAlpha bool
30162 DmgTextureMod Texture // suffix
30165 NametagBG color.NRGBA
30166 }))(obj)).CollideWithAOs
30167 switch n := read8(r); n {
30173 chk(fmt.Errorf("invalid bool: %d", n))
30178 p := &(*(*(struct {
30179 MaxHP uint16 // Player only.
30180 CollideWithNodes bool
30181 Weight float32 // deprecated
30185 VisualSize [3]float32
30187 SpriteSheetSize [2]int16 // in sprites.
30188 SpritePos [2]int16 // in sprite sheet.
30190 MakeFootstepSnds bool
30191 RotateSpeed float32 // in radians per second.
30193 Colors []color.NRGBA
30194 CollideWithAOs bool
30197 FaceRotateDirOff float32 // in degrees.
30200 NametagColor color.NRGBA
30201 FaceRotateSpeed float32 // in degrees per second.
30205 MaxBreath uint16 // Player only.
30206 EyeHeight float32 // Player only.
30207 ZoomFOV float32 // in degrees. Player only.
30208 UseTextureAlpha bool
30209 DmgTextureMod Texture // suffix
30212 NametagBG color.NRGBA
30213 }))(obj)).StepHeight
30214 *p = math.Float32frombits(read32(r))
30217 p := &(*(*(struct {
30218 MaxHP uint16 // Player only.
30219 CollideWithNodes bool
30220 Weight float32 // deprecated
30224 VisualSize [3]float32
30226 SpriteSheetSize [2]int16 // in sprites.
30227 SpritePos [2]int16 // in sprite sheet.
30229 MakeFootstepSnds bool
30230 RotateSpeed float32 // in radians per second.
30232 Colors []color.NRGBA
30233 CollideWithAOs bool
30236 FaceRotateDirOff float32 // in degrees.
30239 NametagColor color.NRGBA
30240 FaceRotateSpeed float32 // in degrees per second.
30244 MaxBreath uint16 // Player only.
30245 EyeHeight float32 // Player only.
30246 ZoomFOV float32 // in degrees. Player only.
30247 UseTextureAlpha bool
30248 DmgTextureMod Texture // suffix
30251 NametagBG color.NRGBA
30252 }))(obj)).FaceRotateDir
30253 switch n := read8(r); n {
30259 chk(fmt.Errorf("invalid bool: %d", n))
30264 p := &(*(*(struct {
30265 MaxHP uint16 // Player only.
30266 CollideWithNodes bool
30267 Weight float32 // deprecated
30271 VisualSize [3]float32
30273 SpriteSheetSize [2]int16 // in sprites.
30274 SpritePos [2]int16 // in sprite sheet.
30276 MakeFootstepSnds bool
30277 RotateSpeed float32 // in radians per second.
30279 Colors []color.NRGBA
30280 CollideWithAOs bool
30283 FaceRotateDirOff float32 // in degrees.
30286 NametagColor color.NRGBA
30287 FaceRotateSpeed float32 // in degrees per second.
30291 MaxBreath uint16 // Player only.
30292 EyeHeight float32 // Player only.
30293 ZoomFOV float32 // in degrees. Player only.
30294 UseTextureAlpha bool
30295 DmgTextureMod Texture // suffix
30298 NametagBG color.NRGBA
30299 }))(obj)).FaceRotateDirOff
30300 *p = math.Float32frombits(read32(r))
30303 p := &(*(*(struct {
30304 MaxHP uint16 // Player only.
30305 CollideWithNodes bool
30306 Weight float32 // deprecated
30310 VisualSize [3]float32
30312 SpriteSheetSize [2]int16 // in sprites.
30313 SpritePos [2]int16 // in sprite sheet.
30315 MakeFootstepSnds bool
30316 RotateSpeed float32 // in radians per second.
30318 Colors []color.NRGBA
30319 CollideWithAOs bool
30322 FaceRotateDirOff float32 // in degrees.
30325 NametagColor color.NRGBA
30326 FaceRotateSpeed float32 // in degrees per second.
30330 MaxBreath uint16 // Player only.
30331 EyeHeight float32 // Player only.
30332 ZoomFOV float32 // in degrees. Player only.
30333 UseTextureAlpha bool
30334 DmgTextureMod Texture // suffix
30337 NametagBG color.NRGBA
30338 }))(obj)).BackfaceCull
30339 switch n := read8(r); n {
30345 chk(fmt.Errorf("invalid bool: %d", n))
30349 var local354 []uint8
30350 var local355 uint16
30355 (local354) = make([]uint8, local355)
30357 _, err := io.ReadFull(r, (local354)[:])
30361 MaxHP uint16 // Player only.
30362 CollideWithNodes bool
30363 Weight float32 // deprecated
30367 VisualSize [3]float32
30369 SpriteSheetSize [2]int16 // in sprites.
30370 SpritePos [2]int16 // in sprite sheet.
30372 MakeFootstepSnds bool
30373 RotateSpeed float32 // in radians per second.
30375 Colors []color.NRGBA
30376 CollideWithAOs bool
30379 FaceRotateDirOff float32 // in degrees.
30382 NametagColor color.NRGBA
30383 FaceRotateSpeed float32 // in degrees per second.
30387 MaxBreath uint16 // Player only.
30388 EyeHeight float32 // Player only.
30389 ZoomFOV float32 // in degrees. Player only.
30390 UseTextureAlpha bool
30391 DmgTextureMod Texture // suffix
30394 NametagBG color.NRGBA
30395 }))(obj)).Nametag) = string(local354)
30397 p := &(*(*(struct {
30398 MaxHP uint16 // Player only.
30399 CollideWithNodes bool
30400 Weight float32 // deprecated
30404 VisualSize [3]float32
30406 SpriteSheetSize [2]int16 // in sprites.
30407 SpritePos [2]int16 // in sprite sheet.
30409 MakeFootstepSnds bool
30410 RotateSpeed float32 // in radians per second.
30412 Colors []color.NRGBA
30413 CollideWithAOs bool
30416 FaceRotateDirOff float32 // in degrees.
30419 NametagColor color.NRGBA
30420 FaceRotateSpeed float32 // in degrees per second.
30424 MaxBreath uint16 // Player only.
30425 EyeHeight float32 // Player only.
30426 ZoomFOV float32 // in degrees. Player only.
30427 UseTextureAlpha bool
30428 DmgTextureMod Texture // suffix
30431 NametagBG color.NRGBA
30432 }))(obj)).NametagColor
30433 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30437 p := &(*(*(struct {
30438 MaxHP uint16 // Player only.
30439 CollideWithNodes bool
30440 Weight float32 // deprecated
30444 VisualSize [3]float32
30446 SpriteSheetSize [2]int16 // in sprites.
30447 SpritePos [2]int16 // in sprite sheet.
30449 MakeFootstepSnds bool
30450 RotateSpeed float32 // in radians per second.
30452 Colors []color.NRGBA
30453 CollideWithAOs bool
30456 FaceRotateDirOff float32 // in degrees.
30459 NametagColor color.NRGBA
30460 FaceRotateSpeed float32 // in degrees per second.
30464 MaxBreath uint16 // Player only.
30465 EyeHeight float32 // Player only.
30466 ZoomFOV float32 // in degrees. Player only.
30467 UseTextureAlpha bool
30468 DmgTextureMod Texture // suffix
30471 NametagBG color.NRGBA
30472 }))(obj)).FaceRotateSpeed
30473 *p = math.Float32frombits(read32(r))
30475 var local356 []uint8
30476 var local357 uint16
30481 (local356) = make([]uint8, local357)
30483 _, err := io.ReadFull(r, (local356)[:])
30487 MaxHP uint16 // Player only.
30488 CollideWithNodes bool
30489 Weight float32 // deprecated
30493 VisualSize [3]float32
30495 SpriteSheetSize [2]int16 // in sprites.
30496 SpritePos [2]int16 // in sprite sheet.
30498 MakeFootstepSnds bool
30499 RotateSpeed float32 // in radians per second.
30501 Colors []color.NRGBA
30502 CollideWithAOs bool
30505 FaceRotateDirOff float32 // in degrees.
30508 NametagColor color.NRGBA
30509 FaceRotateSpeed float32 // in degrees per second.
30513 MaxBreath uint16 // Player only.
30514 EyeHeight float32 // Player only.
30515 ZoomFOV float32 // in degrees. Player only.
30516 UseTextureAlpha bool
30517 DmgTextureMod Texture // suffix
30520 NametagBG color.NRGBA
30521 }))(obj)).Infotext) = string(local356)
30522 var local358 []uint8
30523 var local359 uint16
30528 (local358) = make([]uint8, local359)
30530 _, err := io.ReadFull(r, (local358)[:])
30534 MaxHP uint16 // Player only.
30535 CollideWithNodes bool
30536 Weight float32 // deprecated
30540 VisualSize [3]float32
30542 SpriteSheetSize [2]int16 // in sprites.
30543 SpritePos [2]int16 // in sprite sheet.
30545 MakeFootstepSnds bool
30546 RotateSpeed float32 // in radians per second.
30548 Colors []color.NRGBA
30549 CollideWithAOs bool
30552 FaceRotateDirOff float32 // in degrees.
30555 NametagColor color.NRGBA
30556 FaceRotateSpeed float32 // in degrees per second.
30560 MaxBreath uint16 // Player only.
30561 EyeHeight float32 // Player only.
30562 ZoomFOV float32 // in degrees. Player only.
30563 UseTextureAlpha bool
30564 DmgTextureMod Texture // suffix
30567 NametagBG color.NRGBA
30568 }))(obj)).Itemstring) = string(local358)
30570 p := &(*(*(struct {
30571 MaxHP uint16 // Player only.
30572 CollideWithNodes bool
30573 Weight float32 // deprecated
30577 VisualSize [3]float32
30579 SpriteSheetSize [2]int16 // in sprites.
30580 SpritePos [2]int16 // in sprite sheet.
30582 MakeFootstepSnds bool
30583 RotateSpeed float32 // in radians per second.
30585 Colors []color.NRGBA
30586 CollideWithAOs bool
30589 FaceRotateDirOff float32 // in degrees.
30592 NametagColor color.NRGBA
30593 FaceRotateSpeed float32 // in degrees per second.
30597 MaxBreath uint16 // Player only.
30598 EyeHeight float32 // Player only.
30599 ZoomFOV float32 // in degrees. Player only.
30600 UseTextureAlpha bool
30601 DmgTextureMod Texture // suffix
30604 NametagBG color.NRGBA
30606 *p = int8(read8(r))
30609 p := &(*(*(struct {
30610 MaxHP uint16 // Player only.
30611 CollideWithNodes bool
30612 Weight float32 // deprecated
30616 VisualSize [3]float32
30618 SpriteSheetSize [2]int16 // in sprites.
30619 SpritePos [2]int16 // in sprite sheet.
30621 MakeFootstepSnds bool
30622 RotateSpeed float32 // in radians per second.
30624 Colors []color.NRGBA
30625 CollideWithAOs bool
30628 FaceRotateDirOff float32 // in degrees.
30631 NametagColor color.NRGBA
30632 FaceRotateSpeed float32 // in degrees per second.
30636 MaxBreath uint16 // Player only.
30637 EyeHeight float32 // Player only.
30638 ZoomFOV float32 // in degrees. Player only.
30639 UseTextureAlpha bool
30640 DmgTextureMod Texture // suffix
30643 NametagBG color.NRGBA
30644 }))(obj)).MaxBreath
30648 p := &(*(*(struct {
30649 MaxHP uint16 // Player only.
30650 CollideWithNodes bool
30651 Weight float32 // deprecated
30655 VisualSize [3]float32
30657 SpriteSheetSize [2]int16 // in sprites.
30658 SpritePos [2]int16 // in sprite sheet.
30660 MakeFootstepSnds bool
30661 RotateSpeed float32 // in radians per second.
30663 Colors []color.NRGBA
30664 CollideWithAOs bool
30667 FaceRotateDirOff float32 // in degrees.
30670 NametagColor color.NRGBA
30671 FaceRotateSpeed float32 // in degrees per second.
30675 MaxBreath uint16 // Player only.
30676 EyeHeight float32 // Player only.
30677 ZoomFOV float32 // in degrees. Player only.
30678 UseTextureAlpha bool
30679 DmgTextureMod Texture // suffix
30682 NametagBG color.NRGBA
30683 }))(obj)).EyeHeight
30684 *p = math.Float32frombits(read32(r))
30687 p := &(*(*(struct {
30688 MaxHP uint16 // Player only.
30689 CollideWithNodes bool
30690 Weight float32 // deprecated
30694 VisualSize [3]float32
30696 SpriteSheetSize [2]int16 // in sprites.
30697 SpritePos [2]int16 // in sprite sheet.
30699 MakeFootstepSnds bool
30700 RotateSpeed float32 // in radians per second.
30702 Colors []color.NRGBA
30703 CollideWithAOs bool
30706 FaceRotateDirOff float32 // in degrees.
30709 NametagColor color.NRGBA
30710 FaceRotateSpeed float32 // in degrees per second.
30714 MaxBreath uint16 // Player only.
30715 EyeHeight float32 // Player only.
30716 ZoomFOV float32 // in degrees. Player only.
30717 UseTextureAlpha bool
30718 DmgTextureMod Texture // suffix
30721 NametagBG color.NRGBA
30723 *p = math.Float32frombits(read32(r))
30726 p := &(*(*(struct {
30727 MaxHP uint16 // Player only.
30728 CollideWithNodes bool
30729 Weight float32 // deprecated
30733 VisualSize [3]float32
30735 SpriteSheetSize [2]int16 // in sprites.
30736 SpritePos [2]int16 // in sprite sheet.
30738 MakeFootstepSnds bool
30739 RotateSpeed float32 // in radians per second.
30741 Colors []color.NRGBA
30742 CollideWithAOs bool
30745 FaceRotateDirOff float32 // in degrees.
30748 NametagColor color.NRGBA
30749 FaceRotateSpeed float32 // in degrees per second.
30753 MaxBreath uint16 // Player only.
30754 EyeHeight float32 // Player only.
30755 ZoomFOV float32 // in degrees. Player only.
30756 UseTextureAlpha bool
30757 DmgTextureMod Texture // suffix
30760 NametagBG color.NRGBA
30761 }))(obj)).UseTextureAlpha
30762 switch n := read8(r); n {
30768 chk(fmt.Errorf("invalid bool: %d", n))
30772 if err := pcall(func() {
30774 MaxHP uint16 // Player only.
30775 CollideWithNodes bool
30776 Weight float32 // deprecated
30780 VisualSize [3]float32
30782 SpriteSheetSize [2]int16 // in sprites.
30783 SpritePos [2]int16 // in sprite sheet.
30785 MakeFootstepSnds bool
30786 RotateSpeed float32 // in radians per second.
30788 Colors []color.NRGBA
30789 CollideWithAOs bool
30792 FaceRotateDirOff float32 // in degrees.
30795 NametagColor color.NRGBA
30796 FaceRotateSpeed float32 // in degrees per second.
30800 MaxBreath uint16 // Player only.
30801 EyeHeight float32 // Player only.
30802 ZoomFOV float32 // in degrees. Player only.
30803 UseTextureAlpha bool
30804 DmgTextureMod Texture // suffix
30807 NametagBG color.NRGBA
30808 }))(obj)).DmgTextureMod).deserialize(r)
30813 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
30816 p := &(*(*(struct {
30817 MaxHP uint16 // Player only.
30818 CollideWithNodes bool
30819 Weight float32 // deprecated
30823 VisualSize [3]float32
30825 SpriteSheetSize [2]int16 // in sprites.
30826 SpritePos [2]int16 // in sprite sheet.
30828 MakeFootstepSnds bool
30829 RotateSpeed float32 // in radians per second.
30831 Colors []color.NRGBA
30832 CollideWithAOs bool
30835 FaceRotateDirOff float32 // in degrees.
30838 NametagColor color.NRGBA
30839 FaceRotateSpeed float32 // in degrees per second.
30843 MaxBreath uint16 // Player only.
30844 EyeHeight float32 // Player only.
30845 ZoomFOV float32 // in degrees. Player only.
30846 UseTextureAlpha bool
30847 DmgTextureMod Texture // suffix
30850 NametagBG color.NRGBA
30852 switch n := read8(r); n {
30858 chk(fmt.Errorf("invalid bool: %d", n))
30863 p := &(*(*(struct {
30864 MaxHP uint16 // Player only.
30865 CollideWithNodes bool
30866 Weight float32 // deprecated
30870 VisualSize [3]float32
30872 SpriteSheetSize [2]int16 // in sprites.
30873 SpritePos [2]int16 // in sprite sheet.
30875 MakeFootstepSnds bool
30876 RotateSpeed float32 // in radians per second.
30878 Colors []color.NRGBA
30879 CollideWithAOs bool
30882 FaceRotateDirOff float32 // in degrees.
30885 NametagColor color.NRGBA
30886 FaceRotateSpeed float32 // in degrees per second.
30890 MaxBreath uint16 // Player only.
30891 EyeHeight float32 // Player only.
30892 ZoomFOV float32 // in degrees. Player only.
30893 UseTextureAlpha bool
30894 DmgTextureMod Texture // suffix
30897 NametagBG color.NRGBA
30898 }))(obj)).ShowOnMinimap
30899 switch n := read8(r); n {
30905 chk(fmt.Errorf("invalid bool: %d", n))
30910 p := &(*(*(struct {
30911 MaxHP uint16 // Player only.
30912 CollideWithNodes bool
30913 Weight float32 // deprecated
30917 VisualSize [3]float32
30919 SpriteSheetSize [2]int16 // in sprites.
30920 SpritePos [2]int16 // in sprite sheet.
30922 MakeFootstepSnds bool
30923 RotateSpeed float32 // in radians per second.
30925 Colors []color.NRGBA
30926 CollideWithAOs bool
30929 FaceRotateDirOff float32 // in degrees.
30932 NametagColor color.NRGBA
30933 FaceRotateSpeed float32 // in degrees per second.
30937 MaxBreath uint16 // Player only.
30938 EyeHeight float32 // Player only.
30939 ZoomFOV float32 // in degrees. Player only.
30940 UseTextureAlpha bool
30941 DmgTextureMod Texture // suffix
30944 NametagBG color.NRGBA
30945 }))(obj)).NametagBG
30946 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30951 func (obj *AOPos) serialize(w io.Writer) {
30952 if err := pcall(func() {
30960 UpdateInterval float32
30961 }))(obj)).Pos).serialize(w)
30966 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
30968 if err := pcall(func() {
30976 UpdateInterval float32
30977 }))(obj)).Vel).serialize(w)
30982 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30984 if err := pcall(func() {
30992 UpdateInterval float32
30993 }))(obj)).Acc).serialize(w)
30998 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31000 for local360 := range (*(*(struct {
31007 UpdateInterval float32
31010 x := ((*(*(struct {
31017 UpdateInterval float32
31018 }))(obj)).Rot)[local360]
31019 write32(w, math.Float32bits(x))
31030 UpdateInterval float32
31031 }))(obj)).Interpolate
31047 UpdateInterval float32
31064 UpdateInterval float32
31065 }))(obj)).UpdateInterval
31066 write32(w, math.Float32bits(x))
31070 func (obj *AOPos) deserialize(r io.Reader) {
31071 if err := pcall(func() {
31079 UpdateInterval float32
31080 }))(obj)).Pos).deserialize(r)
31085 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
31087 if err := pcall(func() {
31095 UpdateInterval float32
31096 }))(obj)).Vel).deserialize(r)
31101 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31103 if err := pcall(func() {
31111 UpdateInterval float32
31112 }))(obj)).Acc).deserialize(r)
31117 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31119 for local361 := range (*(*(struct {
31126 UpdateInterval float32
31129 p := &((*(*(struct {
31136 UpdateInterval float32
31137 }))(obj)).Rot)[local361]
31138 *p = math.Float32frombits(read32(r))
31142 p := &(*(*(struct {
31149 UpdateInterval float32
31150 }))(obj)).Interpolate
31151 switch n := read8(r); n {
31157 chk(fmt.Errorf("invalid bool: %d", n))
31162 p := &(*(*(struct {
31169 UpdateInterval float32
31171 switch n := read8(r); n {
31177 chk(fmt.Errorf("invalid bool: %d", n))
31182 p := &(*(*(struct {
31189 UpdateInterval float32
31190 }))(obj)).UpdateInterval
31191 *p = math.Float32frombits(read32(r))
31195 func (obj *AOSprite) serialize(w io.Writer) {
31196 for local362 := range (*(*(struct {
31199 FrameDuration float32
31200 ViewAngleFrames bool
31203 x := ((*(*(struct {
31206 FrameDuration float32
31207 ViewAngleFrames bool
31208 }))(obj)).Frame0)[local362]
31209 write16(w, uint16(x))
31216 FrameDuration float32
31217 ViewAngleFrames bool
31219 write16(w, uint16(x))
31225 FrameDuration float32
31226 ViewAngleFrames bool
31227 }))(obj)).FrameDuration
31228 write32(w, math.Float32bits(x))
31234 FrameDuration float32
31235 ViewAngleFrames bool
31236 }))(obj)).ViewAngleFrames
31246 func (obj *AOSprite) deserialize(r io.Reader) {
31247 for local363 := range (*(*(struct {
31250 FrameDuration float32
31251 ViewAngleFrames bool
31254 p := &((*(*(struct {
31257 FrameDuration float32
31258 ViewAngleFrames bool
31259 }))(obj)).Frame0)[local363]
31260 *p = int16(read16(r))
31264 p := &(*(*(struct {
31267 FrameDuration float32
31268 ViewAngleFrames bool
31273 p := &(*(*(struct {
31276 FrameDuration float32
31277 ViewAngleFrames bool
31278 }))(obj)).FrameDuration
31279 *p = math.Float32frombits(read32(r))
31282 p := &(*(*(struct {
31285 FrameDuration float32
31286 ViewAngleFrames bool
31287 }))(obj)).ViewAngleFrames
31288 switch n := read8(r); n {
31294 chk(fmt.Errorf("invalid bool: %d", n))
31300 func (obj *Group) serialize(w io.Writer) {
31301 if len(([]byte((*(*(struct {
31304 }))(obj)).Name))) > math.MaxUint16 {
31308 x := uint16(len(([]byte((*(*(struct {
31312 write16(w, uint16(x))
31315 _, err := w.Write(([]byte((*(*(struct {
31318 }))(obj)).Name))[:])
31326 write16(w, uint16(x))
31330 func (obj *Group) deserialize(r io.Reader) {
31331 var local364 []uint8
31332 var local365 uint16
31337 (local364) = make([]uint8, local365)
31339 _, err := io.ReadFull(r, (local364)[:])
31345 }))(obj)).Name) = string(local364)
31347 p := &(*(*(struct {
31351 *p = int16(read16(r))
31355 func (obj *AOAnim) serialize(w io.Writer) {
31356 for local366 := range (*(*(struct {
31363 x := ((*(*(struct {
31368 }))(obj)).Frames)[local366]
31369 write32(w, uint32(x))
31379 write32(w, math.Float32bits(x))
31388 write32(w, math.Float32bits(x))
31406 func (obj *AOAnim) deserialize(r io.Reader) {
31407 for local367 := range (*(*(struct {
31414 p := &((*(*(struct {
31419 }))(obj)).Frames)[local367]
31420 *p = int32(read32(r))
31424 p := &(*(*(struct {
31430 *p = math.Float32frombits(read32(r))
31433 p := &(*(*(struct {
31439 *p = math.Float32frombits(read32(r))
31442 p := &(*(*(struct {
31448 switch n := read8(r); n {
31454 chk(fmt.Errorf("invalid bool: %d", n))
31460 func (obj *AOBonePos) serialize(w io.Writer) {
31461 if err := pcall(func() {
31465 }))(obj)).Pos).serialize(w)
31470 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31472 for local368 := range (*(*(struct {
31477 x := ((*(*(struct {
31480 }))(obj)).Rot)[local368]
31481 write32(w, math.Float32bits(x))
31486 func (obj *AOBonePos) deserialize(r io.Reader) {
31487 if err := pcall(func() {
31491 }))(obj)).Pos).deserialize(r)
31496 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31498 for local369 := range (*(*(struct {
31503 p := &((*(*(struct {
31506 }))(obj)).Rot)[local369]
31507 *p = math.Float32frombits(read32(r))
31512 func (obj *AOAttach) serialize(w io.Writer) {
31513 if err := pcall(func() {
31520 }))(obj)).ParentID).serialize(w)
31525 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31527 if len(([]byte((*(*(struct {
31533 }))(obj)).Bone))) > math.MaxUint16 {
31537 x := uint16(len(([]byte((*(*(struct {
31544 write16(w, uint16(x))
31547 _, err := w.Write(([]byte((*(*(struct {
31553 }))(obj)).Bone))[:])
31556 if err := pcall(func() {
31563 }))(obj)).Pos).serialize(w)
31568 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31570 for local370 := range (*(*(struct {
31578 x := ((*(*(struct {
31584 }))(obj)).Rot)[local370]
31585 write32(w, math.Float32bits(x))
31595 }))(obj)).ForceVisible
31605 func (obj *AOAttach) deserialize(r io.Reader) {
31606 if err := pcall(func() {
31613 }))(obj)).ParentID).deserialize(r)
31618 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31620 var local371 []uint8
31621 var local372 uint16
31626 (local371) = make([]uint8, local372)
31628 _, err := io.ReadFull(r, (local371)[:])
31637 }))(obj)).Bone) = string(local371)
31638 if err := pcall(func() {
31645 }))(obj)).Pos).deserialize(r)
31650 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31652 for local373 := range (*(*(struct {
31660 p := &((*(*(struct {
31666 }))(obj)).Rot)[local373]
31667 *p = math.Float32frombits(read32(r))
31671 p := &(*(*(struct {
31677 }))(obj)).ForceVisible
31678 switch n := read8(r); n {
31684 chk(fmt.Errorf("invalid bool: %d", n))
31690 func (obj *AOPhysOverride) serialize(w io.Writer) {
31693 Walk, Jump, Gravity float32
31696 NoSneak, NoSneakGlitch, OldSneak bool
31698 write32(w, math.Float32bits(x))
31702 Walk, Jump, Gravity float32
31705 NoSneak, NoSneakGlitch, OldSneak bool
31707 write32(w, math.Float32bits(x))
31711 Walk, Jump, Gravity float32
31714 NoSneak, NoSneakGlitch, OldSneak bool
31716 write32(w, math.Float32bits(x))
31720 Walk, Jump, Gravity float32
31723 NoSneak, NoSneakGlitch, OldSneak bool
31734 Walk, Jump, Gravity float32
31737 NoSneak, NoSneakGlitch, OldSneak bool
31738 }))(obj)).NoSneakGlitch
31748 Walk, Jump, Gravity float32
31751 NoSneak, NoSneakGlitch, OldSneak bool
31762 func (obj *AOPhysOverride) deserialize(r io.Reader) {
31764 p := &(*(*(struct {
31765 Walk, Jump, Gravity float32
31768 NoSneak, NoSneakGlitch, OldSneak bool
31770 *p = math.Float32frombits(read32(r))
31773 p := &(*(*(struct {
31774 Walk, Jump, Gravity float32
31777 NoSneak, NoSneakGlitch, OldSneak bool
31779 *p = math.Float32frombits(read32(r))
31782 p := &(*(*(struct {
31783 Walk, Jump, Gravity float32
31786 NoSneak, NoSneakGlitch, OldSneak bool
31788 *p = math.Float32frombits(read32(r))
31791 p := &(*(*(struct {
31792 Walk, Jump, Gravity float32
31795 NoSneak, NoSneakGlitch, OldSneak bool
31797 switch n := read8(r); n {
31803 chk(fmt.Errorf("invalid bool: %d", n))
31808 p := &(*(*(struct {
31809 Walk, Jump, Gravity float32
31812 NoSneak, NoSneakGlitch, OldSneak bool
31813 }))(obj)).NoSneakGlitch
31814 switch n := read8(r); n {
31820 chk(fmt.Errorf("invalid bool: %d", n))
31825 p := &(*(*(struct {
31826 Walk, Jump, Gravity float32
31829 NoSneak, NoSneakGlitch, OldSneak bool
31831 switch n := read8(r); n {
31837 chk(fmt.Errorf("invalid bool: %d", n))
31843 func (obj *aoType) serialize(w io.Writer) {
31845 x := *(*(uint8))(obj)
31846 write8(w, uint8(x))
31850 func (obj *aoType) deserialize(r io.Reader) {
31852 p := &*(*(uint8))(obj)
31857 func (obj *NodeMetaField) serialize(w io.Writer) {
31858 if err := pcall(func() {
31862 }))(obj)).Field).serialize(w)
31867 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31883 func (obj *NodeMetaField) deserialize(r io.Reader) {
31884 if err := pcall(func() {
31888 }))(obj)).Field).deserialize(r)
31893 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31896 p := &(*(*(struct {
31900 switch n := read8(r); n {
31906 chk(fmt.Errorf("invalid bool: %d", n))
31912 func (obj *MinimapType) serialize(w io.Writer) {
31914 x := *(*(uint16))(obj)
31915 write16(w, uint16(x))
31919 func (obj *MinimapType) deserialize(r io.Reader) {
31921 p := &*(*(uint16))(obj)
31926 func (obj *Param1Type) serialize(w io.Writer) {
31928 x := *(*(uint8))(obj)
31929 write8(w, uint8(x))
31933 func (obj *Param1Type) deserialize(r io.Reader) {
31935 p := &*(*(uint8))(obj)
31940 func (obj *Param2Type) serialize(w io.Writer) {
31942 x := *(*(uint8))(obj)
31943 write8(w, uint8(x))
31947 func (obj *Param2Type) deserialize(r io.Reader) {
31949 p := &*(*(uint8))(obj)
31954 func (obj *DrawType) serialize(w io.Writer) {
31956 x := *(*(uint8))(obj)
31957 write8(w, uint8(x))
31961 func (obj *DrawType) deserialize(r io.Reader) {
31963 p := &*(*(uint8))(obj)
31968 func (obj *TileDef) serialize(w io.Writer) {
31970 local374 := uint8(6)
31973 write8(w, uint8(x))
31976 if err := pcall(func() {
31982 //mt:if %s.Flags&TileColor != 0
31985 //mt:if %s.Flags&TileScale != 0
31988 //mt:if %s.Flags&TileAlign != 0
31990 }))(obj)).Texture).serialize(w)
31995 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
31997 if err := pcall(func() {
32003 //mt:if %s.Flags&TileColor != 0
32006 //mt:if %s.Flags&TileScale != 0
32009 //mt:if %s.Flags&TileAlign != 0
32011 }))(obj)).Anim).serialize(w)
32016 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32018 if err := pcall(func() {
32024 //mt:if %s.Flags&TileColor != 0
32027 //mt:if %s.Flags&TileScale != 0
32030 //mt:if %s.Flags&TileAlign != 0
32032 }))(obj)).Flags).serialize(w)
32037 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32044 //mt:if %s.Flags&TileColor != 0
32047 //mt:if %s.Flags&TileScale != 0
32050 //mt:if %s.Flags&TileAlign != 0
32052 }))(obj)).Flags&TileColor != 0 {
32059 //mt:if %s.Flags&TileColor != 0
32062 //mt:if %s.Flags&TileScale != 0
32065 //mt:if %s.Flags&TileAlign != 0
32068 write8(w, uint8(x))
32076 //mt:if %s.Flags&TileColor != 0
32079 //mt:if %s.Flags&TileScale != 0
32082 //mt:if %s.Flags&TileAlign != 0
32085 write8(w, uint8(x))
32093 //mt:if %s.Flags&TileColor != 0
32096 //mt:if %s.Flags&TileScale != 0
32099 //mt:if %s.Flags&TileAlign != 0
32102 write8(w, uint8(x))
32110 //mt:if %s.Flags&TileColor != 0
32113 //mt:if %s.Flags&TileScale != 0
32116 //mt:if %s.Flags&TileAlign != 0
32118 }))(obj)).Flags&TileScale != 0 {
32125 //mt:if %s.Flags&TileColor != 0
32128 //mt:if %s.Flags&TileScale != 0
32131 //mt:if %s.Flags&TileAlign != 0
32134 write8(w, uint8(x))
32142 //mt:if %s.Flags&TileColor != 0
32145 //mt:if %s.Flags&TileScale != 0
32148 //mt:if %s.Flags&TileAlign != 0
32150 }))(obj)).Flags&TileAlign != 0 {
32151 if err := pcall(func() {
32157 //mt:if %s.Flags&TileColor != 0
32160 //mt:if %s.Flags&TileScale != 0
32163 //mt:if %s.Flags&TileAlign != 0
32165 }))(obj)).Align).serialize(w)
32170 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32175 func (obj *TileDef) deserialize(r io.Reader) {
32178 local376 := uint8(6)
32183 if local375 != local376 {
32184 chk(fmt.Errorf("const %v: %v", "uint8(6)", local375))
32187 if err := pcall(func() {
32193 //mt:if %s.Flags&TileColor != 0
32196 //mt:if %s.Flags&TileScale != 0
32199 //mt:if %s.Flags&TileAlign != 0
32201 }))(obj)).Texture).deserialize(r)
32206 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32208 if err := pcall(func() {
32214 //mt:if %s.Flags&TileColor != 0
32217 //mt:if %s.Flags&TileScale != 0
32220 //mt:if %s.Flags&TileAlign != 0
32222 }))(obj)).Anim).deserialize(r)
32227 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32229 if err := pcall(func() {
32235 //mt:if %s.Flags&TileColor != 0
32238 //mt:if %s.Flags&TileScale != 0
32241 //mt:if %s.Flags&TileAlign != 0
32243 }))(obj)).Flags).deserialize(r)
32248 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32255 //mt:if %s.Flags&TileColor != 0
32258 //mt:if %s.Flags&TileScale != 0
32261 //mt:if %s.Flags&TileAlign != 0
32263 }))(obj)).Flags&TileColor != 0 {
32265 p := &(*(*(struct {
32270 //mt:if %s.Flags&TileColor != 0
32273 //mt:if %s.Flags&TileScale != 0
32276 //mt:if %s.Flags&TileAlign != 0
32282 p := &(*(*(struct {
32287 //mt:if %s.Flags&TileColor != 0
32290 //mt:if %s.Flags&TileScale != 0
32293 //mt:if %s.Flags&TileAlign != 0
32299 p := &(*(*(struct {
32304 //mt:if %s.Flags&TileColor != 0
32307 //mt:if %s.Flags&TileScale != 0
32310 //mt:if %s.Flags&TileAlign != 0
32321 //mt:if %s.Flags&TileColor != 0
32324 //mt:if %s.Flags&TileScale != 0
32327 //mt:if %s.Flags&TileAlign != 0
32329 }))(obj)).Flags&TileScale != 0 {
32331 p := &(*(*(struct {
32336 //mt:if %s.Flags&TileColor != 0
32339 //mt:if %s.Flags&TileScale != 0
32342 //mt:if %s.Flags&TileAlign != 0
32353 //mt:if %s.Flags&TileColor != 0
32356 //mt:if %s.Flags&TileScale != 0
32359 //mt:if %s.Flags&TileAlign != 0
32361 }))(obj)).Flags&TileAlign != 0 {
32362 if err := pcall(func() {
32368 //mt:if %s.Flags&TileColor != 0
32371 //mt:if %s.Flags&TileScale != 0
32374 //mt:if %s.Flags&TileAlign != 0
32376 }))(obj)).Align).deserialize(r)
32381 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32386 func (obj *WaveType) serialize(w io.Writer) {
32388 x := *(*(uint8))(obj)
32389 write8(w, uint8(x))
32393 func (obj *WaveType) deserialize(r io.Reader) {
32395 p := &*(*(uint8))(obj)
32400 func (obj *LiquidType) serialize(w io.Writer) {
32402 x := *(*(uint8))(obj)
32403 write8(w, uint8(x))
32407 func (obj *LiquidType) deserialize(r io.Reader) {
32409 p := &*(*(uint8))(obj)
32414 func (obj *NodeBox) serialize(w io.Writer) {
32416 local377 := uint8(6)
32419 write8(w, uint8(x))
32422 if err := pcall(func() {
32426 //mt:if %s.Type == MountedBox
32427 WallTop, WallBot, WallSides Box
32429 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32432 //mt:if %s.Type == ConnectedBox
32433 ConnDirs, DiscoDirs DirBoxes
32434 DiscoAll, DiscoSides []Box
32435 }))(obj)).Type).serialize(w)
32440 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32445 //mt:if %s.Type == MountedBox
32446 WallTop, WallBot, WallSides Box
32448 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32451 //mt:if %s.Type == ConnectedBox
32452 ConnDirs, DiscoDirs DirBoxes
32453 DiscoAll, DiscoSides []Box
32454 }))(obj)).Type < maxBox) {
32455 chk(errors.New("assertion failed: %s.Type < maxBox"))
32460 //mt:if %s.Type == MountedBox
32461 WallTop, WallBot, WallSides Box
32463 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32466 //mt:if %s.Type == ConnectedBox
32467 ConnDirs, DiscoDirs DirBoxes
32468 DiscoAll, DiscoSides []Box
32469 }))(obj)).Type == MountedBox {
32470 if err := pcall(func() {
32474 //mt:if %s.Type == MountedBox
32475 WallTop, WallBot, WallSides Box
32477 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32480 //mt:if %s.Type == ConnectedBox
32481 ConnDirs, DiscoDirs DirBoxes
32482 DiscoAll, DiscoSides []Box
32483 }))(obj)).WallTop).serialize(w)
32488 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32490 if err := pcall(func() {
32494 //mt:if %s.Type == MountedBox
32495 WallTop, WallBot, WallSides Box
32497 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32500 //mt:if %s.Type == ConnectedBox
32501 ConnDirs, DiscoDirs DirBoxes
32502 DiscoAll, DiscoSides []Box
32503 }))(obj)).WallBot).serialize(w)
32508 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32510 if err := pcall(func() {
32514 //mt:if %s.Type == MountedBox
32515 WallTop, WallBot, WallSides Box
32517 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32520 //mt:if %s.Type == ConnectedBox
32521 ConnDirs, DiscoDirs DirBoxes
32522 DiscoAll, DiscoSides []Box
32523 }))(obj)).WallSides).serialize(w)
32528 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32531 if t := (*(*(struct {
32534 //mt:if %s.Type == MountedBox
32535 WallTop, WallBot, WallSides Box
32537 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32540 //mt:if %s.Type == ConnectedBox
32541 ConnDirs, DiscoDirs DirBoxes
32542 DiscoAll, DiscoSides []Box
32543 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32544 if len(((*(*(struct {
32547 //mt:if %s.Type == MountedBox
32548 WallTop, WallBot, WallSides Box
32550 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32553 //mt:if %s.Type == ConnectedBox
32554 ConnDirs, DiscoDirs DirBoxes
32555 DiscoAll, DiscoSides []Box
32556 }))(obj)).Fixed)) > math.MaxUint16 {
32560 x := uint16(len(((*(*(struct {
32563 //mt:if %s.Type == MountedBox
32564 WallTop, WallBot, WallSides Box
32566 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32569 //mt:if %s.Type == ConnectedBox
32570 ConnDirs, DiscoDirs DirBoxes
32571 DiscoAll, DiscoSides []Box
32573 write16(w, uint16(x))
32575 for local378 := range (*(*(struct {
32578 //mt:if %s.Type == MountedBox
32579 WallTop, WallBot, WallSides Box
32581 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32584 //mt:if %s.Type == ConnectedBox
32585 ConnDirs, DiscoDirs DirBoxes
32586 DiscoAll, DiscoSides []Box
32588 if err := pcall(func() {
32592 //mt:if %s.Type == MountedBox
32593 WallTop, WallBot, WallSides Box
32595 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32598 //mt:if %s.Type == ConnectedBox
32599 ConnDirs, DiscoDirs DirBoxes
32600 DiscoAll, DiscoSides []Box
32601 }))(obj)).Fixed)[local378]).serialize(w)
32606 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32613 //mt:if %s.Type == MountedBox
32614 WallTop, WallBot, WallSides Box
32616 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32619 //mt:if %s.Type == ConnectedBox
32620 ConnDirs, DiscoDirs DirBoxes
32621 DiscoAll, DiscoSides []Box
32622 }))(obj)).Type == ConnectedBox {
32623 if err := pcall(func() {
32627 //mt:if %s.Type == MountedBox
32628 WallTop, WallBot, WallSides Box
32630 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32633 //mt:if %s.Type == ConnectedBox
32634 ConnDirs, DiscoDirs DirBoxes
32635 DiscoAll, DiscoSides []Box
32636 }))(obj)).ConnDirs).serialize(w)
32641 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32643 if err := pcall(func() {
32647 //mt:if %s.Type == MountedBox
32648 WallTop, WallBot, WallSides Box
32650 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32653 //mt:if %s.Type == ConnectedBox
32654 ConnDirs, DiscoDirs DirBoxes
32655 DiscoAll, DiscoSides []Box
32656 }))(obj)).DiscoDirs).serialize(w)
32661 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32663 if len(((*(*(struct {
32666 //mt:if %s.Type == MountedBox
32667 WallTop, WallBot, WallSides Box
32669 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32672 //mt:if %s.Type == ConnectedBox
32673 ConnDirs, DiscoDirs DirBoxes
32674 DiscoAll, DiscoSides []Box
32675 }))(obj)).DiscoAll)) > math.MaxUint16 {
32679 x := uint16(len(((*(*(struct {
32682 //mt:if %s.Type == MountedBox
32683 WallTop, WallBot, WallSides Box
32685 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32688 //mt:if %s.Type == ConnectedBox
32689 ConnDirs, DiscoDirs DirBoxes
32690 DiscoAll, DiscoSides []Box
32691 }))(obj)).DiscoAll)))
32692 write16(w, uint16(x))
32694 for local379 := range (*(*(struct {
32697 //mt:if %s.Type == MountedBox
32698 WallTop, WallBot, WallSides Box
32700 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32703 //mt:if %s.Type == ConnectedBox
32704 ConnDirs, DiscoDirs DirBoxes
32705 DiscoAll, DiscoSides []Box
32706 }))(obj)).DiscoAll {
32707 if err := pcall(func() {
32711 //mt:if %s.Type == MountedBox
32712 WallTop, WallBot, WallSides Box
32714 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32717 //mt:if %s.Type == ConnectedBox
32718 ConnDirs, DiscoDirs DirBoxes
32719 DiscoAll, DiscoSides []Box
32720 }))(obj)).DiscoAll)[local379]).serialize(w)
32725 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32728 if len(((*(*(struct {
32731 //mt:if %s.Type == MountedBox
32732 WallTop, WallBot, WallSides Box
32734 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32737 //mt:if %s.Type == ConnectedBox
32738 ConnDirs, DiscoDirs DirBoxes
32739 DiscoAll, DiscoSides []Box
32740 }))(obj)).DiscoSides)) > math.MaxUint16 {
32744 x := uint16(len(((*(*(struct {
32747 //mt:if %s.Type == MountedBox
32748 WallTop, WallBot, WallSides Box
32750 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32753 //mt:if %s.Type == ConnectedBox
32754 ConnDirs, DiscoDirs DirBoxes
32755 DiscoAll, DiscoSides []Box
32756 }))(obj)).DiscoSides)))
32757 write16(w, uint16(x))
32759 for local380 := range (*(*(struct {
32762 //mt:if %s.Type == MountedBox
32763 WallTop, WallBot, WallSides Box
32765 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32768 //mt:if %s.Type == ConnectedBox
32769 ConnDirs, DiscoDirs DirBoxes
32770 DiscoAll, DiscoSides []Box
32771 }))(obj)).DiscoSides {
32772 if err := pcall(func() {
32776 //mt:if %s.Type == MountedBox
32777 WallTop, WallBot, WallSides Box
32779 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32782 //mt:if %s.Type == ConnectedBox
32783 ConnDirs, DiscoDirs DirBoxes
32784 DiscoAll, DiscoSides []Box
32785 }))(obj)).DiscoSides)[local380]).serialize(w)
32790 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32796 func (obj *NodeBox) deserialize(r io.Reader) {
32799 local382 := uint8(6)
32804 if local381 != local382 {
32805 chk(fmt.Errorf("const %v: %v", "uint8(6)", local381))
32808 if err := pcall(func() {
32812 //mt:if %s.Type == MountedBox
32813 WallTop, WallBot, WallSides Box
32815 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32818 //mt:if %s.Type == ConnectedBox
32819 ConnDirs, DiscoDirs DirBoxes
32820 DiscoAll, DiscoSides []Box
32821 }))(obj)).Type).deserialize(r)
32826 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32831 //mt:if %s.Type == MountedBox
32832 WallTop, WallBot, WallSides Box
32834 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32837 //mt:if %s.Type == ConnectedBox
32838 ConnDirs, DiscoDirs DirBoxes
32839 DiscoAll, DiscoSides []Box
32840 }))(obj)).Type < maxBox) {
32841 chk(errors.New("assertion failed: %s.Type < maxBox"))
32846 //mt:if %s.Type == MountedBox
32847 WallTop, WallBot, WallSides Box
32849 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32852 //mt:if %s.Type == ConnectedBox
32853 ConnDirs, DiscoDirs DirBoxes
32854 DiscoAll, DiscoSides []Box
32855 }))(obj)).Type == MountedBox {
32856 if err := pcall(func() {
32860 //mt:if %s.Type == MountedBox
32861 WallTop, WallBot, WallSides Box
32863 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32866 //mt:if %s.Type == ConnectedBox
32867 ConnDirs, DiscoDirs DirBoxes
32868 DiscoAll, DiscoSides []Box
32869 }))(obj)).WallTop).deserialize(r)
32874 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32876 if err := pcall(func() {
32880 //mt:if %s.Type == MountedBox
32881 WallTop, WallBot, WallSides Box
32883 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32886 //mt:if %s.Type == ConnectedBox
32887 ConnDirs, DiscoDirs DirBoxes
32888 DiscoAll, DiscoSides []Box
32889 }))(obj)).WallBot).deserialize(r)
32894 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32896 if err := pcall(func() {
32900 //mt:if %s.Type == MountedBox
32901 WallTop, WallBot, WallSides Box
32903 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32906 //mt:if %s.Type == ConnectedBox
32907 ConnDirs, DiscoDirs DirBoxes
32908 DiscoAll, DiscoSides []Box
32909 }))(obj)).WallSides).deserialize(r)
32914 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32917 if t := (*(*(struct {
32920 //mt:if %s.Type == MountedBox
32921 WallTop, WallBot, WallSides Box
32923 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32926 //mt:if %s.Type == ConnectedBox
32927 ConnDirs, DiscoDirs DirBoxes
32928 DiscoAll, DiscoSides []Box
32929 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32930 var local383 uint16
32938 //mt:if %s.Type == MountedBox
32939 WallTop, WallBot, WallSides Box
32941 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32944 //mt:if %s.Type == ConnectedBox
32945 ConnDirs, DiscoDirs DirBoxes
32946 DiscoAll, DiscoSides []Box
32947 }))(obj)).Fixed) = make([]Box, local383)
32948 for local384 := range (*(*(struct {
32951 //mt:if %s.Type == MountedBox
32952 WallTop, WallBot, WallSides Box
32954 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32957 //mt:if %s.Type == ConnectedBox
32958 ConnDirs, DiscoDirs DirBoxes
32959 DiscoAll, DiscoSides []Box
32961 if err := pcall(func() {
32965 //mt:if %s.Type == MountedBox
32966 WallTop, WallBot, WallSides Box
32968 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32971 //mt:if %s.Type == ConnectedBox
32972 ConnDirs, DiscoDirs DirBoxes
32973 DiscoAll, DiscoSides []Box
32974 }))(obj)).Fixed)[local384]).deserialize(r)
32979 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32986 //mt:if %s.Type == MountedBox
32987 WallTop, WallBot, WallSides Box
32989 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32992 //mt:if %s.Type == ConnectedBox
32993 ConnDirs, DiscoDirs DirBoxes
32994 DiscoAll, DiscoSides []Box
32995 }))(obj)).Type == ConnectedBox {
32996 if err := pcall(func() {
33000 //mt:if %s.Type == MountedBox
33001 WallTop, WallBot, WallSides Box
33003 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33006 //mt:if %s.Type == ConnectedBox
33007 ConnDirs, DiscoDirs DirBoxes
33008 DiscoAll, DiscoSides []Box
33009 }))(obj)).ConnDirs).deserialize(r)
33014 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33016 if err := pcall(func() {
33020 //mt:if %s.Type == MountedBox
33021 WallTop, WallBot, WallSides Box
33023 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33026 //mt:if %s.Type == ConnectedBox
33027 ConnDirs, DiscoDirs DirBoxes
33028 DiscoAll, DiscoSides []Box
33029 }))(obj)).DiscoDirs).deserialize(r)
33034 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33036 var local385 uint16
33044 //mt:if %s.Type == MountedBox
33045 WallTop, WallBot, WallSides Box
33047 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33050 //mt:if %s.Type == ConnectedBox
33051 ConnDirs, DiscoDirs DirBoxes
33052 DiscoAll, DiscoSides []Box
33053 }))(obj)).DiscoAll) = make([]Box, local385)
33054 for local386 := range (*(*(struct {
33057 //mt:if %s.Type == MountedBox
33058 WallTop, WallBot, WallSides Box
33060 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33063 //mt:if %s.Type == ConnectedBox
33064 ConnDirs, DiscoDirs DirBoxes
33065 DiscoAll, DiscoSides []Box
33066 }))(obj)).DiscoAll {
33067 if err := pcall(func() {
33071 //mt:if %s.Type == MountedBox
33072 WallTop, WallBot, WallSides Box
33074 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33077 //mt:if %s.Type == ConnectedBox
33078 ConnDirs, DiscoDirs DirBoxes
33079 DiscoAll, DiscoSides []Box
33080 }))(obj)).DiscoAll)[local386]).deserialize(r)
33085 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33088 var local387 uint16
33096 //mt:if %s.Type == MountedBox
33097 WallTop, WallBot, WallSides Box
33099 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33102 //mt:if %s.Type == ConnectedBox
33103 ConnDirs, DiscoDirs DirBoxes
33104 DiscoAll, DiscoSides []Box
33105 }))(obj)).DiscoSides) = make([]Box, local387)
33106 for local388 := range (*(*(struct {
33109 //mt:if %s.Type == MountedBox
33110 WallTop, WallBot, WallSides Box
33112 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33115 //mt:if %s.Type == ConnectedBox
33116 ConnDirs, DiscoDirs DirBoxes
33117 DiscoAll, DiscoSides []Box
33118 }))(obj)).DiscoSides {
33119 if err := pcall(func() {
33123 //mt:if %s.Type == MountedBox
33124 WallTop, WallBot, WallSides Box
33126 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33129 //mt:if %s.Type == ConnectedBox
33130 ConnDirs, DiscoDirs DirBoxes
33131 DiscoAll, DiscoSides []Box
33132 }))(obj)).DiscoSides)[local388]).deserialize(r)
33137 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33143 func (obj *SoundDef) serialize(w io.Writer) {
33144 if len(([]byte((*(*(struct {
33146 Gain, Pitch, Fade float32
33147 }))(obj)).Name))) > math.MaxUint16 {
33151 x := uint16(len(([]byte((*(*(struct {
33153 Gain, Pitch, Fade float32
33155 write16(w, uint16(x))
33158 _, err := w.Write(([]byte((*(*(struct {
33160 Gain, Pitch, Fade float32
33161 }))(obj)).Name))[:])
33167 Gain, Pitch, Fade float32
33169 write32(w, math.Float32bits(x))
33174 Gain, Pitch, Fade float32
33176 write32(w, math.Float32bits(x))
33181 Gain, Pitch, Fade float32
33183 write32(w, math.Float32bits(x))
33187 func (obj *SoundDef) deserialize(r io.Reader) {
33188 var local389 []uint8
33189 var local390 uint16
33194 (local389) = make([]uint8, local390)
33196 _, err := io.ReadFull(r, (local389)[:])
33201 Gain, Pitch, Fade float32
33202 }))(obj)).Name) = string(local389)
33204 p := &(*(*(struct {
33206 Gain, Pitch, Fade float32
33208 *p = math.Float32frombits(read32(r))
33211 p := &(*(*(struct {
33213 Gain, Pitch, Fade float32
33215 *p = math.Float32frombits(read32(r))
33218 p := &(*(*(struct {
33220 Gain, Pitch, Fade float32
33222 *p = math.Float32frombits(read32(r))
33226 func (obj *AlphaUse) serialize(w io.Writer) {
33228 x := *(*(uint8))(obj)
33229 write8(w, uint8(x))
33233 func (obj *AlphaUse) deserialize(r io.Reader) {
33235 p := &*(*(uint8))(obj)
33240 func (obj *Keys) serialize(w io.Writer) {
33242 x := *(*(uint32))(obj)
33243 write32(w, uint32(x))
33247 func (obj *Keys) deserialize(r io.Reader) {
33249 p := &*(*(uint32))(obj)
33254 func (obj *MapBlkFlags) serialize(w io.Writer) {
33256 x := *(*(uint8))(obj)
33257 write8(w, uint8(x))
33261 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33263 p := &*(*(uint8))(obj)
33268 func (obj *LitFromBlks) serialize(w io.Writer) {
33270 x := *(*(uint16))(obj)
33271 write16(w, uint16(x))
33275 func (obj *LitFromBlks) deserialize(r io.Reader) {
33277 p := &*(*(uint16))(obj)
33282 func (obj *AOInitData) serialize(w io.Writer) {
33284 local391 := uint8(1)
33287 write8(w, uint8(x))
33290 if len(([]byte((*(*(struct {
33303 // See (de)serialize.fmt.
33305 }))(obj)).Name))) > math.MaxUint16 {
33309 x := uint16(len(([]byte((*(*(struct {
33322 // See (de)serialize.fmt.
33325 write16(w, uint16(x))
33328 _, err := w.Write(([]byte((*(*(struct {
33341 // See (de)serialize.fmt.
33343 }))(obj)).Name))[:])
33360 // See (de)serialize.fmt.
33370 if err := pcall(func() {
33384 // See (de)serialize.fmt.
33386 }))(obj)).ID).serialize(w)
33391 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33393 if err := pcall(func() {
33407 // See (de)serialize.fmt.
33409 }))(obj)).Pos).serialize(w)
33414 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33416 for local392 := range (*(*(struct {
33429 // See (de)serialize.fmt.
33433 x := ((*(*(struct {
33446 // See (de)serialize.fmt.
33448 }))(obj)).Rot)[local392]
33449 write32(w, math.Float32bits(x))
33466 // See (de)serialize.fmt.
33469 write16(w, uint16(x))
33485 // See (de)serialize.fmt.
33488 { // For AOInitData.Msgs.
33489 if len(x) > math.MaxUint8 {
33492 write8(w, uint8(len(x)))
33493 for _, msg := range x {
33495 chk(writeAOMsg(&b, msg))
33496 if b.Len() > math.MaxUint32 {
33499 write32(w, uint32(b.Len()))
33500 _, err := b.WriteTo(w)
33508 func (obj *AOInitData) deserialize(r io.Reader) {
33511 local394 := uint8(1)
33516 if local393 != local394 {
33517 chk(fmt.Errorf("const %v: %v", "uint8(1)", local393))
33520 var local395 []uint8
33521 var local396 uint16
33526 (local395) = make([]uint8, local396)
33528 _, err := io.ReadFull(r, (local395)[:])
33544 // See (de)serialize.fmt.
33546 }))(obj)).Name) = string(local395)
33548 p := &(*(*(struct {
33561 // See (de)serialize.fmt.
33564 switch n := read8(r); n {
33570 chk(fmt.Errorf("invalid bool: %d", n))
33574 if err := pcall(func() {
33588 // See (de)serialize.fmt.
33590 }))(obj)).ID).deserialize(r)
33595 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33597 if err := pcall(func() {
33611 // See (de)serialize.fmt.
33613 }))(obj)).Pos).deserialize(r)
33618 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33620 for local397 := range (*(*(struct {
33633 // See (de)serialize.fmt.
33637 p := &((*(*(struct {
33650 // See (de)serialize.fmt.
33652 }))(obj)).Rot)[local397]
33653 *p = math.Float32frombits(read32(r))
33657 p := &(*(*(struct {
33670 // See (de)serialize.fmt.
33676 p := &(*(*(struct {
33689 // See (de)serialize.fmt.
33692 { // For AOInitData.Msgs.
33693 *p = make([]AOMsg, read8(r))
33694 for i := range *p {
33695 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33696 msg, err := readAOMsg(r)
33700 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33708 func (obj *ItemType) serialize(w io.Writer) {
33710 x := *(*(uint8))(obj)
33711 write8(w, uint8(x))
33715 func (obj *ItemType) deserialize(r io.Reader) {
33717 p := &*(*(uint8))(obj)
33722 func (obj *ToolCaps) serialize(w io.Writer) {
33723 if _ = (*(*(struct {
33724 //mt:if _ = %s; false
33727 AttackCooldown float32
33731 GroupCaps []ToolGroupCap
33741 //mt:if _ = %s; false
33744 AttackCooldown float32
33748 GroupCaps []ToolGroupCap
33766 w := new(bytes.Buffer)
33768 if r.N > 0 { (*(*(struct {
33769 //mt:if _ = %s; false
33772 AttackCooldown float32
33776 GroupCaps []ToolGroupCap
33783 }))(obj)).NonNil = true}; /**/{
33785 //mt:if _ = %s; false
33788 AttackCooldown float32
33792 GroupCaps []ToolGroupCap
33801 local398 := uint8(5)
33804 write8(w, uint8(x))
33809 //mt:if _ = %s; false
33812 AttackCooldown float32
33816 GroupCaps []ToolGroupCap
33823 }))(obj)).AttackCooldown
33824 write32(w, math.Float32bits(x))
33828 //mt:if _ = %s; false
33831 AttackCooldown float32
33835 GroupCaps []ToolGroupCap
33842 }))(obj)).MaxDropLvl
33843 write16(w, uint16(x))
33845 if len(((*(*(struct {
33846 //mt:if _ = %s; false
33849 AttackCooldown float32
33853 GroupCaps []ToolGroupCap
33860 }))(obj)).GroupCaps)) > math.MaxUint32 {
33864 x := uint32(len(((*(*(struct {
33865 //mt:if _ = %s; false
33868 AttackCooldown float32
33872 GroupCaps []ToolGroupCap
33879 }))(obj)).GroupCaps)))
33880 write32(w, uint32(x))
33882 for local399 := range (*(*(struct {
33883 //mt:if _ = %s; false
33886 AttackCooldown float32
33890 GroupCaps []ToolGroupCap
33897 }))(obj)).GroupCaps {
33898 if err := pcall(func() {
33900 //mt:if _ = %s; false
33903 AttackCooldown float32
33907 GroupCaps []ToolGroupCap
33914 }))(obj)).GroupCaps)[local399]).serialize(w)
33919 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
33922 if len(((*(*(struct {
33923 //mt:if _ = %s; false
33926 AttackCooldown float32
33930 GroupCaps []ToolGroupCap
33937 }))(obj)).DmgGroups)) > math.MaxUint32 {
33941 x := uint32(len(((*(*(struct {
33942 //mt:if _ = %s; false
33945 AttackCooldown float32
33949 GroupCaps []ToolGroupCap
33956 }))(obj)).DmgGroups)))
33957 write32(w, uint32(x))
33959 for local400 := range (*(*(struct {
33960 //mt:if _ = %s; false
33963 AttackCooldown float32
33967 GroupCaps []ToolGroupCap
33974 }))(obj)).DmgGroups {
33975 if err := pcall(func() {
33977 //mt:if _ = %s; false
33980 AttackCooldown float32
33984 GroupCaps []ToolGroupCap
33991 }))(obj)).DmgGroups)[local400]).serialize(w)
33996 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34000 x := uint16((*(*(struct {
34001 //mt:if _ = %s; false
34004 AttackCooldown float32
34008 GroupCaps []ToolGroupCap
34015 }))(obj)).PunchUses)
34016 write16(w, uint16(x))
34023 if len((buf.Bytes())) > math.MaxUint16 {
34027 x := uint16(len((buf.Bytes())))
34028 write16(w, uint16(x))
34031 _, err := w.Write((buf.Bytes())[:])
34038 func (obj *ToolCaps) deserialize(r io.Reader) {
34039 if _ = (*(*(struct {
34040 //mt:if _ = %s; false
34043 AttackCooldown float32
34047 GroupCaps []ToolGroupCap
34056 p := &(*(*(struct {
34057 //mt:if _ = %s; false
34060 AttackCooldown float32
34064 GroupCaps []ToolGroupCap
34072 switch n := read8(r); n {
34078 chk(fmt.Errorf("invalid bool: %d", n))
34089 r := &io.LimitedReader{R: r, N: int64(n)}
34092 //mt:if _ = %s; false
34095 AttackCooldown float32
34099 GroupCaps []ToolGroupCap
34106 }))(obj)).NonNil = true
34110 //mt:if _ = %s; false
34113 AttackCooldown float32
34117 GroupCaps []ToolGroupCap
34127 local402 := uint8(5)
34132 if local401 != local402 {
34133 chk(fmt.Errorf("const %v: %v", "uint8(5)", local401))
34137 p := &(*(*(struct {
34138 //mt:if _ = %s; false
34141 AttackCooldown float32
34145 GroupCaps []ToolGroupCap
34152 }))(obj)).AttackCooldown
34153 *p = math.Float32frombits(read32(r))
34156 p := &(*(*(struct {
34157 //mt:if _ = %s; false
34160 AttackCooldown float32
34164 GroupCaps []ToolGroupCap
34171 }))(obj)).MaxDropLvl
34172 *p = int16(read16(r))
34174 var local403 uint32
34180 //mt:if _ = %s; false
34183 AttackCooldown float32
34187 GroupCaps []ToolGroupCap
34194 }))(obj)).GroupCaps) = make([]ToolGroupCap, local403)
34195 for local404 := range (*(*(struct {
34196 //mt:if _ = %s; false
34199 AttackCooldown float32
34203 GroupCaps []ToolGroupCap
34210 }))(obj)).GroupCaps {
34211 if err := pcall(func() {
34213 //mt:if _ = %s; false
34216 AttackCooldown float32
34220 GroupCaps []ToolGroupCap
34227 }))(obj)).GroupCaps)[local404]).deserialize(r)
34232 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
34235 var local405 uint32
34241 //mt:if _ = %s; false
34244 AttackCooldown float32
34248 GroupCaps []ToolGroupCap
34255 }))(obj)).DmgGroups) = make([]Group, local405)
34256 for local406 := range (*(*(struct {
34257 //mt:if _ = %s; false
34260 AttackCooldown float32
34264 GroupCaps []ToolGroupCap
34271 }))(obj)).DmgGroups {
34272 if err := pcall(func() {
34274 //mt:if _ = %s; false
34277 AttackCooldown float32
34281 GroupCaps []ToolGroupCap
34288 }))(obj)).DmgGroups)[local406]).deserialize(r)
34293 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34296 var local407 uint16
34302 //mt:if _ = %s; false
34305 AttackCooldown float32
34309 GroupCaps []ToolGroupCap
34316 }))(obj)).PunchUses = int32(local407)
34320 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34325 func (obj *AnimType) serialize(w io.Writer) {
34327 x := *(*(uint8))(obj)
34328 write8(w, uint8(x))
34332 func (obj *AnimType) deserialize(r io.Reader) {
34334 p := &*(*(uint8))(obj)
34339 func (obj *HUDType) serialize(w io.Writer) {
34341 x := *(*(uint8))(obj)
34342 write8(w, uint8(x))
34346 func (obj *HUDType) deserialize(r io.Reader) {
34348 p := &*(*(uint8))(obj)
34353 func (obj *Box) serialize(w io.Writer) {
34354 for local408 := range *(*([2]Vec))(obj) {
34355 if err := pcall(func() {
34356 ((*(*([2]Vec))(obj))[local408]).serialize(w)
34361 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34366 func (obj *Box) deserialize(r io.Reader) {
34367 for local409 := range *(*([2]Vec))(obj) {
34368 if err := pcall(func() {
34369 ((*(*([2]Vec))(obj))[local409]).deserialize(r)
34374 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34379 func (obj *TileFlags) serialize(w io.Writer) {
34381 x := *(*(uint16))(obj)
34382 write16(w, uint16(x))
34386 func (obj *TileFlags) deserialize(r io.Reader) {
34388 p := &*(*(uint16))(obj)
34393 func (obj *AlignType) serialize(w io.Writer) {
34395 x := *(*(uint8))(obj)
34396 write8(w, uint8(x))
34400 func (obj *AlignType) deserialize(r io.Reader) {
34402 p := &*(*(uint8))(obj)
34407 func (obj *NodeBoxType) serialize(w io.Writer) {
34409 x := *(*(uint8))(obj)
34410 write8(w, uint8(x))
34414 func (obj *NodeBoxType) deserialize(r io.Reader) {
34416 p := &*(*(uint8))(obj)
34421 func (obj *DirBoxes) serialize(w io.Writer) {
34422 if len(((*(*(struct {
34424 Front, Left, Back, Right []Box
34425 }))(obj)).Top)) > math.MaxUint16 {
34429 x := uint16(len(((*(*(struct {
34431 Front, Left, Back, Right []Box
34433 write16(w, uint16(x))
34435 for local410 := range (*(*(struct {
34437 Front, Left, Back, Right []Box
34439 if err := pcall(func() {
34442 Front, Left, Back, Right []Box
34443 }))(obj)).Top)[local410]).serialize(w)
34448 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34451 if len(((*(*(struct {
34453 Front, Left, Back, Right []Box
34454 }))(obj)).Bot)) > math.MaxUint16 {
34458 x := uint16(len(((*(*(struct {
34460 Front, Left, Back, Right []Box
34462 write16(w, uint16(x))
34464 for local411 := range (*(*(struct {
34466 Front, Left, Back, Right []Box
34468 if err := pcall(func() {
34471 Front, Left, Back, Right []Box
34472 }))(obj)).Bot)[local411]).serialize(w)
34477 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34480 if len(((*(*(struct {
34482 Front, Left, Back, Right []Box
34483 }))(obj)).Front)) > math.MaxUint16 {
34487 x := uint16(len(((*(*(struct {
34489 Front, Left, Back, Right []Box
34491 write16(w, uint16(x))
34493 for local412 := range (*(*(struct {
34495 Front, Left, Back, Right []Box
34497 if err := pcall(func() {
34500 Front, Left, Back, Right []Box
34501 }))(obj)).Front)[local412]).serialize(w)
34506 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34509 if len(((*(*(struct {
34511 Front, Left, Back, Right []Box
34512 }))(obj)).Left)) > math.MaxUint16 {
34516 x := uint16(len(((*(*(struct {
34518 Front, Left, Back, Right []Box
34520 write16(w, uint16(x))
34522 for local413 := range (*(*(struct {
34524 Front, Left, Back, Right []Box
34526 if err := pcall(func() {
34529 Front, Left, Back, Right []Box
34530 }))(obj)).Left)[local413]).serialize(w)
34535 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34538 if len(((*(*(struct {
34540 Front, Left, Back, Right []Box
34541 }))(obj)).Back)) > math.MaxUint16 {
34545 x := uint16(len(((*(*(struct {
34547 Front, Left, Back, Right []Box
34549 write16(w, uint16(x))
34551 for local414 := range (*(*(struct {
34553 Front, Left, Back, Right []Box
34555 if err := pcall(func() {
34558 Front, Left, Back, Right []Box
34559 }))(obj)).Back)[local414]).serialize(w)
34564 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34567 if len(((*(*(struct {
34569 Front, Left, Back, Right []Box
34570 }))(obj)).Right)) > math.MaxUint16 {
34574 x := uint16(len(((*(*(struct {
34576 Front, Left, Back, Right []Box
34578 write16(w, uint16(x))
34580 for local415 := range (*(*(struct {
34582 Front, Left, Back, Right []Box
34584 if err := pcall(func() {
34587 Front, Left, Back, Right []Box
34588 }))(obj)).Right)[local415]).serialize(w)
34593 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34598 func (obj *DirBoxes) deserialize(r io.Reader) {
34599 var local416 uint16
34606 Front, Left, Back, Right []Box
34607 }))(obj)).Top) = make([]Box, local416)
34608 for local417 := range (*(*(struct {
34610 Front, Left, Back, Right []Box
34612 if err := pcall(func() {
34615 Front, Left, Back, Right []Box
34616 }))(obj)).Top)[local417]).deserialize(r)
34621 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34624 var local418 uint16
34631 Front, Left, Back, Right []Box
34632 }))(obj)).Bot) = make([]Box, local418)
34633 for local419 := range (*(*(struct {
34635 Front, Left, Back, Right []Box
34637 if err := pcall(func() {
34640 Front, Left, Back, Right []Box
34641 }))(obj)).Bot)[local419]).deserialize(r)
34646 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34649 var local420 uint16
34656 Front, Left, Back, Right []Box
34657 }))(obj)).Front) = make([]Box, local420)
34658 for local421 := range (*(*(struct {
34660 Front, Left, Back, Right []Box
34662 if err := pcall(func() {
34665 Front, Left, Back, Right []Box
34666 }))(obj)).Front)[local421]).deserialize(r)
34671 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34674 var local422 uint16
34681 Front, Left, Back, Right []Box
34682 }))(obj)).Left) = make([]Box, local422)
34683 for local423 := range (*(*(struct {
34685 Front, Left, Back, Right []Box
34687 if err := pcall(func() {
34690 Front, Left, Back, Right []Box
34691 }))(obj)).Left)[local423]).deserialize(r)
34696 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34699 var local424 uint16
34706 Front, Left, Back, Right []Box
34707 }))(obj)).Back) = make([]Box, local424)
34708 for local425 := range (*(*(struct {
34710 Front, Left, Back, Right []Box
34712 if err := pcall(func() {
34715 Front, Left, Back, Right []Box
34716 }))(obj)).Back)[local425]).deserialize(r)
34721 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34724 var local426 uint16
34731 Front, Left, Back, Right []Box
34732 }))(obj)).Right) = make([]Box, local426)
34733 for local427 := range (*(*(struct {
34735 Front, Left, Back, Right []Box
34737 if err := pcall(func() {
34740 Front, Left, Back, Right []Box
34741 }))(obj)).Right)[local427]).deserialize(r)
34746 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34751 func (obj *ToolGroupCap) serialize(w io.Writer) {
34752 if len(([]byte((*(*(struct {
34762 }))(obj)).Name))) > math.MaxUint16 {
34766 x := uint16(len(([]byte((*(*(struct {
34777 write16(w, uint16(x))
34780 _, err := w.Write(([]byte((*(*(struct {
34790 }))(obj)).Name))[:])
34794 x := int16((*(*(struct {
34805 write16(w, uint16(x))
34819 write16(w, uint16(x))
34821 if len(((*(*(struct {
34831 }))(obj)).Times)) > math.MaxUint32 {
34835 x := uint32(len(((*(*(struct {
34846 write32(w, uint32(x))
34848 for local428 := range (*(*(struct {
34859 if err := pcall(func() {
34870 }))(obj)).Times)[local428]).serialize(w)
34875 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34880 func (obj *ToolGroupCap) deserialize(r io.Reader) {
34881 var local429 []uint8
34882 var local430 uint16
34887 (local429) = make([]uint8, local430)
34889 _, err := io.ReadFull(r, (local429)[:])
34902 }))(obj)).Name) = string(local429)
34906 *p = int16(read16(r))
34918 }))(obj)).Uses = int32(local431)
34920 p := &(*(*(struct {
34931 *p = int16(read16(r))
34933 var local432 uint32
34948 }))(obj)).Times) = make([]DigTime, local432)
34949 for local433 := range (*(*(struct {
34960 if err := pcall(func() {
34971 }))(obj)).Times)[local433]).deserialize(r)
34976 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34981 func (obj *DigTime) serialize(w io.Writer) {
34987 write16(w, uint16(x))
34994 write32(w, math.Float32bits(x))
34998 func (obj *DigTime) deserialize(r io.Reader) {
35000 p := &(*(*(struct {
35004 *p = int16(read16(r))
35007 p := &(*(*(struct {
35011 *p = math.Float32frombits(read32(r))