1 // Code generated by mkserialize.sh; DO NOT EDIT.
18 func write8(w io.Writer, x uint8) {
19 _, err := w.Write([]byte{x})
23 func write16(w io.Writer, x uint16) {
24 buf := make([]byte, 2)
26 _, err := w.Write(buf)
30 func write32(w io.Writer, x uint32) {
31 buf := make([]byte, 4)
33 _, err := w.Write(buf)
37 func write64(w io.Writer, x uint64) {
38 buf := make([]byte, 8)
40 _, err := w.Write(buf)
44 func readBuf(r io.Reader, n int) []byte {
45 buf := make([]byte, n)
46 _, err := io.ReadFull(r, buf)
51 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
52 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
53 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
54 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
56 func (obj *ToSrvNil) serialize(w io.Writer) {
59 func (obj *ToSrvNil) deserialize(r io.Reader) {
62 func (obj *ToSrvInit) serialize(w io.Writer) {
66 SupportedCompression CompressionModes
67 MinProtoVer, MaxProtoVer uint16
72 }))(obj)).SerializeVer
75 if err := pcall(func() {
78 SupportedCompression CompressionModes
79 MinProtoVer, MaxProtoVer uint16
84 }))(obj)).SupportedCompression).serialize(w)
89 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
94 SupportedCompression CompressionModes
95 MinProtoVer, MaxProtoVer uint16
100 }))(obj)).MinProtoVer
101 write16(w, uint16(x))
106 SupportedCompression CompressionModes
107 MinProtoVer, MaxProtoVer uint16
111 SendFullItemMeta bool
112 }))(obj)).MaxProtoVer
113 write16(w, uint16(x))
115 if len(([]byte((*(*(struct {
117 SupportedCompression CompressionModes
118 MinProtoVer, MaxProtoVer uint16
122 SendFullItemMeta bool
123 }))(obj)).PlayerName))) > math.MaxUint16 {
127 x := uint16(len(([]byte((*(*(struct {
129 SupportedCompression CompressionModes
130 MinProtoVer, MaxProtoVer uint16
134 SendFullItemMeta bool
135 }))(obj)).PlayerName))))
136 write16(w, uint16(x))
139 _, err := w.Write(([]byte((*(*(struct {
141 SupportedCompression CompressionModes
142 MinProtoVer, MaxProtoVer uint16
146 SendFullItemMeta bool
147 }))(obj)).PlayerName))[:])
150 if err := pcall(func() {
154 SupportedCompression CompressionModes
155 MinProtoVer, MaxProtoVer uint16
159 SendFullItemMeta bool
160 }))(obj)).SendFullItemMeta
168 }); err != nil && err != io.EOF {
173 func (obj *ToSrvInit) deserialize(r io.Reader) {
177 SupportedCompression CompressionModes
178 MinProtoVer, MaxProtoVer uint16
182 SendFullItemMeta bool
183 }))(obj)).SerializeVer
186 if err := pcall(func() {
189 SupportedCompression CompressionModes
190 MinProtoVer, MaxProtoVer uint16
194 SendFullItemMeta bool
195 }))(obj)).SupportedCompression).deserialize(r)
200 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
205 SupportedCompression CompressionModes
206 MinProtoVer, MaxProtoVer uint16
210 SendFullItemMeta bool
211 }))(obj)).MinProtoVer
217 SupportedCompression CompressionModes
218 MinProtoVer, MaxProtoVer uint16
222 SendFullItemMeta bool
223 }))(obj)).MaxProtoVer
232 (local1) = make([]uint8, local2)
234 _, err := io.ReadFull(r, (local1)[:])
239 SupportedCompression CompressionModes
240 MinProtoVer, MaxProtoVer uint16
244 SendFullItemMeta bool
245 }))(obj)).PlayerName) = string(local1)
246 if err := pcall(func() {
250 SupportedCompression CompressionModes
251 MinProtoVer, MaxProtoVer uint16
255 SendFullItemMeta bool
256 }))(obj)).SendFullItemMeta
257 switch n := read8(r); n {
263 chk(fmt.Errorf("invalid bool: %d", n))
267 }); err != nil && err != io.EOF {
272 func (obj *ToSrvInit2) serialize(w io.Writer) {
273 if len(([]byte((*(*(struct {
275 }))(obj)).Lang))) > math.MaxUint16 {
279 x := uint16(len(([]byte((*(*(struct {
282 write16(w, uint16(x))
285 _, err := w.Write(([]byte((*(*(struct {
292 func (obj *ToSrvInit2) deserialize(r io.Reader) {
299 (local3) = make([]uint8, local4)
301 _, err := io.ReadFull(r, (local3)[:])
306 }))(obj)).Lang) = string(local3)
309 func (obj *ToSrvJoinModChan) serialize(w io.Writer) {
310 if len(([]byte((*(*(struct {
312 }))(obj)).Channel))) > math.MaxUint16 {
316 x := uint16(len(([]byte((*(*(struct {
318 }))(obj)).Channel))))
319 write16(w, uint16(x))
322 _, err := w.Write(([]byte((*(*(struct {
324 }))(obj)).Channel))[:])
329 func (obj *ToSrvJoinModChan) deserialize(r io.Reader) {
336 (local5) = make([]uint8, local6)
338 _, err := io.ReadFull(r, (local5)[:])
343 }))(obj)).Channel) = string(local5)
346 func (obj *ToSrvLeaveModChan) serialize(w io.Writer) {
347 if len(([]byte((*(*(struct {
349 }))(obj)).Channel))) > math.MaxUint16 {
353 x := uint16(len(([]byte((*(*(struct {
355 }))(obj)).Channel))))
356 write16(w, uint16(x))
359 _, err := w.Write(([]byte((*(*(struct {
361 }))(obj)).Channel))[:])
366 func (obj *ToSrvLeaveModChan) deserialize(r io.Reader) {
373 (local7) = make([]uint8, local8)
375 _, err := io.ReadFull(r, (local7)[:])
380 }))(obj)).Channel) = string(local7)
383 func (obj *ToSrvMsgModChan) serialize(w io.Writer) {
384 if len(([]byte((*(*(struct {
387 }))(obj)).Channel))) > math.MaxUint16 {
391 x := uint16(len(([]byte((*(*(struct {
394 }))(obj)).Channel))))
395 write16(w, uint16(x))
398 _, err := w.Write(([]byte((*(*(struct {
401 }))(obj)).Channel))[:])
404 if len(([]byte((*(*(struct {
407 }))(obj)).Msg))) > math.MaxUint16 {
411 x := uint16(len(([]byte((*(*(struct {
415 write16(w, uint16(x))
418 _, err := w.Write(([]byte((*(*(struct {
426 func (obj *ToSrvMsgModChan) deserialize(r io.Reader) {
433 (local9) = make([]uint8, local10)
435 _, err := io.ReadFull(r, (local9)[:])
441 }))(obj)).Channel) = string(local9)
448 (local11) = make([]uint8, local12)
450 _, err := io.ReadFull(r, (local11)[:])
456 }))(obj)).Msg) = string(local11)
459 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
460 if err := pcall(func() {
463 }))(obj)).Pos).serialize(w)
468 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
472 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
473 if err := pcall(func() {
476 }))(obj)).Pos).deserialize(r)
481 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
485 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
486 if len(((*(*(struct {
489 }))(obj)).Blks)) > math.MaxUint8 {
493 x := uint8(len(((*(*(struct {
499 for local13 := range (*(*(struct {
503 for local14 := range ((*(*(struct {
506 }))(obj)).Blks)[local13] {
511 }))(obj)).Blks)[local13])[local14]
512 write16(w, uint16(x))
518 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
527 }))(obj)).Blks) = make([][3]int16, local15)
528 for local16 := range (*(*(struct {
532 for local17 := range ((*(*(struct {
535 }))(obj)).Blks)[local16] {
537 p := &(((*(*(struct {
540 }))(obj)).Blks)[local16])[local17]
541 *p = int16(read16(r))
547 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
548 if len(((*(*(struct {
551 }))(obj)).Blks)) > math.MaxUint8 {
555 x := uint8(len(((*(*(struct {
561 for local18 := range (*(*(struct {
565 for local19 := range ((*(*(struct {
568 }))(obj)).Blks)[local18] {
573 }))(obj)).Blks)[local18])[local19]
574 write16(w, uint16(x))
580 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
589 }))(obj)).Blks) = make([][3]int16, local20)
590 for local21 := range (*(*(struct {
594 for local22 := range ((*(*(struct {
597 }))(obj)).Blks)[local21] {
599 p := &(((*(*(struct {
602 }))(obj)).Blks)[local21])[local22]
603 *p = int16(read16(r))
609 func (obj *ToSrvInvAction) serialize(w io.Writer) {
611 _, err := w.Write(([]byte((*(*(struct {
614 }))(obj)).Action))[:])
619 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
623 (local23), err = io.ReadAll(r)
629 }))(obj)).Action) = string(local23)
632 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
633 local24 := utf16.Encode([]rune((*(*(struct {
637 if len((local24)) > math.MaxUint16 {
641 x := uint16(len((local24)))
642 write16(w, uint16(x))
644 for local25 := range local24 {
646 x := (local24)[local25]
647 write16(w, uint16(x))
652 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
659 (local26) = make([]uint16, local27)
660 for local28 := range local26 {
662 p := &(local26)[local28]
669 }))(obj)).Msg = string(utf16.Decode(local26))
672 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
677 write16(w, uint16(x))
681 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
690 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
695 write16(w, uint16(x))
699 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
708 func (obj *ToSrvRespawn) serialize(w io.Writer) {
711 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
714 func (obj *ToSrvInteract) serialize(w io.Writer) {
715 if err := pcall(func() {
723 }))(obj)).Action).serialize(w)
728 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
739 write16(w, uint16(x))
743 w := new(bytes.Buffer)
753 chk(writePointedThing(w, x))
759 if len((buf.Bytes())) > math.MaxUint32 {
763 x := uint32(len((buf.Bytes())))
764 write32(w, uint32(x))
767 _, err := w.Write((buf.Bytes())[:])
772 if err := pcall(func() {
780 }))(obj)).Pos).serialize(w)
785 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
789 func (obj *ToSrvInteract) deserialize(r io.Reader) {
790 if err := pcall(func() {
798 }))(obj)).Action).deserialize(r)
803 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Interaction", err))
822 r := &io.LimitedReader{R: r, N: int64(n)}
834 *p, err = readPointedThing(r)
840 chk(fmt.Errorf("%d bytes of trailing data", r.N))
843 if err := pcall(func() {
851 }))(obj)).Pos).deserialize(r)
856 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerPos", err))
860 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
861 if len(((*(*(struct {
863 }))(obj)).IDs)) > math.MaxUint16 {
867 x := uint16(len(((*(*(struct {
870 write16(w, uint16(x))
872 for local29 := range (*(*(struct {
875 if err := pcall(func() {
878 }))(obj)).IDs)[local29]).serialize(w)
883 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
888 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
896 }))(obj)).IDs) = make([]SoundID, local30)
897 for local31 := range (*(*(struct {
900 if err := pcall(func() {
903 }))(obj)).IDs)[local31]).deserialize(r)
908 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
913 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
914 for local32 := range (*(*(struct {
924 }))(obj)).Pos)[local32]
925 write16(w, uint16(x))
928 if len(([]byte((*(*(struct {
932 }))(obj)).Formname))) > math.MaxUint16 {
936 x := uint16(len(([]byte((*(*(struct {
940 }))(obj)).Formname))))
941 write16(w, uint16(x))
944 _, err := w.Write(([]byte((*(*(struct {
948 }))(obj)).Formname))[:])
951 if len(((*(*(struct {
955 }))(obj)).Fields)) > math.MaxUint16 {
959 x := uint16(len(((*(*(struct {
964 write16(w, uint16(x))
966 for local33 := range (*(*(struct {
971 if err := pcall(func() {
976 }))(obj)).Fields)[local33]).serialize(w)
981 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
986 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
987 for local34 := range (*(*(struct {
997 }))(obj)).Pos)[local34]
998 *p = int16(read16(r))
1007 (local35) = make([]uint8, local36)
1009 _, err := io.ReadFull(r, (local35)[:])
1016 }))(obj)).Formname) = string(local35)
1026 }))(obj)).Fields) = make([]Field, local37)
1027 for local38 := range (*(*(struct {
1032 if err := pcall(func() {
1037 }))(obj)).Fields)[local38]).deserialize(r)
1042 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1047 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1048 if len(([]byte((*(*(struct {
1051 }))(obj)).Formname))) > math.MaxUint16 {
1055 x := uint16(len(([]byte((*(*(struct {
1058 }))(obj)).Formname))))
1059 write16(w, uint16(x))
1062 _, err := w.Write(([]byte((*(*(struct {
1065 }))(obj)).Formname))[:])
1068 if len(((*(*(struct {
1071 }))(obj)).Fields)) > math.MaxUint16 {
1075 x := uint16(len(((*(*(struct {
1079 write16(w, uint16(x))
1081 for local39 := range (*(*(struct {
1085 if err := pcall(func() {
1089 }))(obj)).Fields)[local39]).serialize(w)
1094 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1099 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1106 (local40) = make([]uint8, local41)
1108 _, err := io.ReadFull(r, (local40)[:])
1114 }))(obj)).Formname) = string(local40)
1123 }))(obj)).Fields) = make([]Field, local42)
1124 for local43 := range (*(*(struct {
1128 if err := pcall(func() {
1132 }))(obj)).Fields)[local43]).deserialize(r)
1137 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
1142 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1143 if len(((*(*(struct {
1145 }))(obj)).Filenames)) > math.MaxUint16 {
1149 x := uint16(len(((*(*(struct {
1151 }))(obj)).Filenames)))
1152 write16(w, uint16(x))
1154 for local44 := range (*(*(struct {
1156 }))(obj)).Filenames {
1157 if len(([]byte(((*(*(struct {
1159 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1163 x := uint16(len(([]byte(((*(*(struct {
1165 }))(obj)).Filenames)[local44]))))
1166 write16(w, uint16(x))
1169 _, err := w.Write(([]byte(((*(*(struct {
1171 }))(obj)).Filenames)[local44]))[:])
1177 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1185 }))(obj)).Filenames) = make([]string, local45)
1186 for local46 := range (*(*(struct {
1188 }))(obj)).Filenames {
1195 (local47) = make([]uint8, local48)
1197 _, err := io.ReadFull(r, (local47)[:])
1202 }))(obj)).Filenames)[local46]) = string(local47)
1206 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1209 // Version information.
1210 Major, Minor, Patch uint8
1219 // Version information.
1220 Major, Minor, Patch uint8
1229 // Version information.
1230 Major, Minor, Patch uint8
1239 // Version information.
1240 Major, Minor, Patch uint8
1247 if len(([]byte((*(*(struct {
1248 // Version information.
1249 Major, Minor, Patch uint8
1253 }))(obj)).Version))) > math.MaxUint16 {
1257 x := uint16(len(([]byte((*(*(struct {
1258 // Version information.
1259 Major, Minor, Patch uint8
1263 }))(obj)).Version))))
1264 write16(w, uint16(x))
1267 _, err := w.Write(([]byte((*(*(struct {
1268 // Version information.
1269 Major, Minor, Patch uint8
1273 }))(obj)).Version))[:])
1278 // Version information.
1279 Major, Minor, Patch uint8
1284 write16(w, uint16(x))
1288 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1291 // Version information.
1292 Major, Minor, Patch uint8
1301 // Version information.
1302 Major, Minor, Patch uint8
1311 // Version information.
1312 Major, Minor, Patch uint8
1321 // Version information.
1322 Major, Minor, Patch uint8
1335 (local49) = make([]uint8, local50)
1337 _, err := io.ReadFull(r, (local49)[:])
1341 // Version information.
1342 Major, Minor, Patch uint8
1346 }))(obj)).Version) = string(local49)
1349 // Version information.
1350 Major, Minor, Patch uint8
1359 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1360 if len(((*(*(struct {
1364 }))(obj)).Salt)) > math.MaxUint16 {
1368 x := uint16(len(((*(*(struct {
1373 write16(w, uint16(x))
1376 _, err := w.Write(((*(*(struct {
1383 if len(((*(*(struct {
1387 }))(obj)).Verifier)) > math.MaxUint16 {
1391 x := uint16(len(((*(*(struct {
1395 }))(obj)).Verifier)))
1396 write16(w, uint16(x))
1399 _, err := w.Write(((*(*(struct {
1403 }))(obj)).Verifier)[:])
1411 }))(obj)).EmptyPasswd
1421 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1431 }))(obj)).Salt) = make([]byte, local51)
1433 _, err := io.ReadFull(r, ((*(*(struct {
1449 }))(obj)).Verifier) = make([]byte, local52)
1451 _, err := io.ReadFull(r, ((*(*(struct {
1455 }))(obj)).Verifier)[:])
1463 }))(obj)).EmptyPasswd
1464 switch n := read8(r); n {
1470 chk(fmt.Errorf("invalid bool: %d", n))
1476 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1477 if len(((*(*(struct {
1480 }))(obj)).A)) > math.MaxUint16 {
1484 x := uint16(len(((*(*(struct {
1488 write16(w, uint16(x))
1491 _, err := w.Write(((*(*(struct {
1511 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1520 }))(obj)).A) = make([]byte, local53)
1522 _, err := io.ReadFull(r, ((*(*(struct {
1533 switch n := read8(r); n {
1539 chk(fmt.Errorf("invalid bool: %d", n))
1545 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1546 if len(((*(*(struct {
1548 }))(obj)).M)) > math.MaxUint16 {
1552 x := uint16(len(((*(*(struct {
1555 write16(w, uint16(x))
1558 _, err := w.Write(((*(*(struct {
1565 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1573 }))(obj)).M) = make([]byte, local54)
1575 _, err := io.ReadFull(r, ((*(*(struct {
1582 func (obj *ToCltHello) serialize(w io.Writer) {
1586 Compression CompressionModes
1590 }))(obj)).SerializeVer
1593 if err := pcall(func() {
1596 Compression CompressionModes
1600 }))(obj)).Compression).serialize(w)
1605 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1610 Compression CompressionModes
1615 write16(w, uint16(x))
1617 if err := pcall(func() {
1620 Compression CompressionModes
1624 }))(obj)).AuthMethods).serialize(w)
1629 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1631 if len(([]byte((*(*(struct {
1633 Compression CompressionModes
1637 }))(obj)).Username))) > math.MaxUint16 {
1641 x := uint16(len(([]byte((*(*(struct {
1643 Compression CompressionModes
1647 }))(obj)).Username))))
1648 write16(w, uint16(x))
1651 _, err := w.Write(([]byte((*(*(struct {
1653 Compression CompressionModes
1657 }))(obj)).Username))[:])
1662 func (obj *ToCltHello) deserialize(r io.Reader) {
1666 Compression CompressionModes
1670 }))(obj)).SerializeVer
1673 if err := pcall(func() {
1676 Compression CompressionModes
1680 }))(obj)).Compression).deserialize(r)
1685 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CompressionModes", err))
1690 Compression CompressionModes
1697 if err := pcall(func() {
1700 Compression CompressionModes
1704 }))(obj)).AuthMethods).deserialize(r)
1709 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1717 (local55) = make([]uint8, local56)
1719 _, err := io.ReadFull(r, (local55)[:])
1724 Compression CompressionModes
1728 }))(obj)).Username) = string(local55)
1731 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1732 if err := pcall(func() {
1734 // The client does the equivalent of
1735 // PlayerPos[1] -= 5
1736 // before using PlayerPos.
1740 SendInterval float32
1741 SudoAuthMethods AuthMethods
1742 }))(obj)).PlayerPos).serialize(w)
1747 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1751 // The client does the equivalent of
1752 // PlayerPos[1] -= 5
1753 // before using PlayerPos.
1757 SendInterval float32
1758 SudoAuthMethods AuthMethods
1760 write64(w, uint64(x))
1765 // The client does the equivalent of
1766 // PlayerPos[1] -= 5
1767 // before using PlayerPos.
1771 SendInterval float32
1772 SudoAuthMethods AuthMethods
1773 }))(obj)).SendInterval
1774 write32(w, math.Float32bits(x))
1776 if err := pcall(func() {
1778 // The client does the equivalent of
1779 // PlayerPos[1] -= 5
1780 // before using PlayerPos.
1784 SendInterval float32
1785 SudoAuthMethods AuthMethods
1786 }))(obj)).SudoAuthMethods).serialize(w)
1791 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1795 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1796 if err := pcall(func() {
1798 // The client does the equivalent of
1799 // PlayerPos[1] -= 5
1800 // before using PlayerPos.
1804 SendInterval float32
1805 SudoAuthMethods AuthMethods
1806 }))(obj)).PlayerPos).deserialize(r)
1811 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
1815 // The client does the equivalent of
1816 // PlayerPos[1] -= 5
1817 // before using PlayerPos.
1821 SendInterval float32
1822 SudoAuthMethods AuthMethods
1829 // The client does the equivalent of
1830 // PlayerPos[1] -= 5
1831 // before using PlayerPos.
1835 SendInterval float32
1836 SudoAuthMethods AuthMethods
1837 }))(obj)).SendInterval
1838 *p = math.Float32frombits(read32(r))
1840 if err := pcall(func() {
1842 // The client does the equivalent of
1843 // PlayerPos[1] -= 5
1844 // before using PlayerPos.
1848 SendInterval float32
1849 SudoAuthMethods AuthMethods
1850 }))(obj)).SudoAuthMethods).deserialize(r)
1855 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1859 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1860 if err := pcall(func() {
1862 SudoAuthMethods AuthMethods
1863 }))(obj)).SudoAuthMethods).serialize(w)
1868 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1871 local57 := [15]byte{}
1873 _, err := w.Write((local57)[:])
1879 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1880 if err := pcall(func() {
1882 SudoAuthMethods AuthMethods
1883 }))(obj)).SudoAuthMethods).deserialize(r)
1888 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AuthMethods", err))
1891 var local58 [15]byte
1892 local59 := [15]byte{}
1894 _, err := io.ReadFull(r, (local58)[:])
1897 if local58 != local59 {
1898 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1903 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1906 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1909 func (obj *ToCltKick) serialize(w io.Writer) {
1910 if err := pcall(func() {
1914 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1917 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1919 }))(obj)).Reason).serialize(w)
1924 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
1929 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1932 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1934 }))(obj)).Reason < maxKickReason) {
1935 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1937 if dr := (*(*(struct {
1940 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1943 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1945 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1946 if len(([]byte((*(*(struct {
1949 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1952 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1954 }))(obj)).Custom))) > math.MaxUint16 {
1958 x := uint16(len(([]byte((*(*(struct {
1961 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1964 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1966 }))(obj)).Custom))))
1967 write16(w, uint16(x))
1970 _, err := w.Write(([]byte((*(*(struct {
1973 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1976 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1978 }))(obj)).Custom))[:])
1982 if dr := (*(*(struct {
1985 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1988 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1990 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1995 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1998 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2011 func (obj *ToCltKick) deserialize(r io.Reader) {
2012 if err := pcall(func() {
2016 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2019 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2021 }))(obj)).Reason).deserialize(r)
2026 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.KickReason", err))
2031 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2034 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2036 }))(obj)).Reason < maxKickReason) {
2037 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2039 if dr := (*(*(struct {
2042 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2045 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2047 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2054 (local60) = make([]uint8, local61)
2056 _, err := io.ReadFull(r, (local60)[:])
2062 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2065 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2067 }))(obj)).Custom) = string(local60)
2069 if dr := (*(*(struct {
2072 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2075 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2077 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2082 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2085 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2088 switch n := read8(r); n {
2094 chk(fmt.Errorf("invalid bool: %d", n))
2101 func (obj *ToCltBlkData) serialize(w io.Writer) {
2102 for local62 := range (*(*(struct {
2110 }))(obj)).Blkpos)[local62]
2111 write16(w, uint16(x))
2114 if err := pcall(func() {
2118 }))(obj)).Blk).serialize(w)
2123 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2127 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2128 for local63 := range (*(*(struct {
2133 p := &((*(*(struct {
2136 }))(obj)).Blkpos)[local63]
2137 *p = int16(read16(r))
2140 if err := pcall(func() {
2144 }))(obj)).Blk).deserialize(r)
2149 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlk", err))
2153 func (obj *ToCltAddNode) serialize(w io.Writer) {
2154 for local64 := range (*(*(struct {
2164 }))(obj)).Pos)[local64]
2165 write16(w, uint16(x))
2168 if err := pcall(func() {
2173 }))(obj)).Node).serialize(w)
2178 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2195 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2196 for local65 := range (*(*(struct {
2202 p := &((*(*(struct {
2206 }))(obj)).Pos)[local65]
2207 *p = int16(read16(r))
2210 if err := pcall(func() {
2215 }))(obj)).Node).deserialize(r)
2220 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Node", err))
2228 switch n := read8(r); n {
2234 chk(fmt.Errorf("invalid bool: %d", n))
2240 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2241 for local66 := range (*(*(struct {
2247 }))(obj)).Pos)[local66]
2248 write16(w, uint16(x))
2253 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2254 for local67 := range (*(*(struct {
2258 p := &((*(*(struct {
2260 }))(obj)).Pos)[local67]
2261 *p = int16(read16(r))
2266 func (obj *ToCltInv) serialize(w io.Writer) {
2268 _, err := w.Write(([]byte((*(*(struct {
2276 func (obj *ToCltInv) deserialize(r io.Reader) {
2280 (local68), err = io.ReadAll(r)
2286 }))(obj)).Inv) = string(local68)
2289 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2292 Time uint16 // %24000
2293 Speed float32 // Speed times faster than real time
2295 write16(w, uint16(x))
2299 Time uint16 // %24000
2300 Speed float32 // Speed times faster than real time
2302 write32(w, math.Float32bits(x))
2306 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2309 Time uint16 // %24000
2310 Speed float32 // Speed times faster than real time
2316 Time uint16 // %24000
2317 Speed float32 // Speed times faster than real time
2319 *p = math.Float32frombits(read32(r))
2323 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2324 if err := pcall(func() {
2326 Flags CSMRestrictionFlags
2328 // MapRange is the maximum distance from the player CSMs can read the map
2329 // if Flags&LimitMapRange != 0.
2331 }))(obj)).Flags).serialize(w)
2336 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2340 Flags CSMRestrictionFlags
2342 // MapRange is the maximum distance from the player CSMs can read the map
2343 // if Flags&LimitMapRange != 0.
2346 write32(w, uint32(x))
2350 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2351 if err := pcall(func() {
2353 Flags CSMRestrictionFlags
2355 // MapRange is the maximum distance from the player CSMs can read the map
2356 // if Flags&LimitMapRange != 0.
2358 }))(obj)).Flags).deserialize(r)
2363 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.CSMRestrictionFlags", err))
2367 Flags CSMRestrictionFlags
2369 // MapRange is the maximum distance from the player CSMs can read the map
2370 // if Flags&LimitMapRange != 0.
2377 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2378 if err := pcall(func() {
2381 }))(obj)).Vel).serialize(w)
2386 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2390 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2391 if err := pcall(func() {
2394 }))(obj)).Vel).deserialize(r)
2399 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
2403 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2405 local69 := uint16(sha1.Size)
2408 write16(w, uint16(x))
2412 _, err := w.Write(((*(*(struct {
2413 //mt:const uint16(sha1.Size)
2414 SHA1 [sha1.Size]byte
2423 if len(([]byte((*(*(struct {
2424 //mt:const uint16(sha1.Size)
2425 SHA1 [sha1.Size]byte
2431 }))(obj)).Filename))) > math.MaxUint16 {
2435 x := uint16(len(([]byte((*(*(struct {
2436 //mt:const uint16(sha1.Size)
2437 SHA1 [sha1.Size]byte
2443 }))(obj)).Filename))))
2444 write16(w, uint16(x))
2447 _, err := w.Write(([]byte((*(*(struct {
2448 //mt:const uint16(sha1.Size)
2449 SHA1 [sha1.Size]byte
2455 }))(obj)).Filename))[:])
2460 //mt:const uint16(sha1.Size)
2461 SHA1 [sha1.Size]byte
2467 }))(obj)).ShouldCache
2475 if len(((*(*(struct {
2476 //mt:const uint16(sha1.Size)
2477 SHA1 [sha1.Size]byte
2483 }))(obj)).Data)) > math.MaxUint32 {
2487 x := uint32(len(((*(*(struct {
2488 //mt:const uint16(sha1.Size)
2489 SHA1 [sha1.Size]byte
2496 write32(w, uint32(x))
2499 _, err := w.Write(((*(*(struct {
2500 //mt:const uint16(sha1.Size)
2501 SHA1 [sha1.Size]byte
2512 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2515 local71 := uint16(sha1.Size)
2520 if local70 != local71 {
2521 chk(fmt.Errorf("const %v: %v", "uint16(sha1.Size)", local70))
2525 _, err := io.ReadFull(r, ((*(*(struct {
2526 //mt:const uint16(sha1.Size)
2527 SHA1 [sha1.Size]byte
2542 (local72) = make([]uint8, local73)
2544 _, err := io.ReadFull(r, (local72)[:])
2548 //mt:const uint16(sha1.Size)
2549 SHA1 [sha1.Size]byte
2555 }))(obj)).Filename) = string(local72)
2558 //mt:const uint16(sha1.Size)
2559 SHA1 [sha1.Size]byte
2565 }))(obj)).ShouldCache
2566 switch n := read8(r); n {
2572 chk(fmt.Errorf("invalid bool: %d", n))
2582 //mt:const uint16(sha1.Size)
2583 SHA1 [sha1.Size]byte
2589 }))(obj)).Data) = make([]byte, local74)
2591 _, err := io.ReadFull(r, ((*(*(struct {
2592 //mt:const uint16(sha1.Size)
2593 SHA1 [sha1.Size]byte
2604 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2612 if err := pcall(func() {
2619 Timestamp int64 // Unix time.
2620 }))(obj)).Type).serialize(w)
2625 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2627 local76 := utf16.Encode([]rune((*(*(struct {
2633 Timestamp int64 // Unix time.
2635 if len((local76)) > math.MaxUint16 {
2639 x := uint16(len((local76)))
2640 write16(w, uint16(x))
2642 for local77 := range local76 {
2644 x := (local76)[local77]
2645 write16(w, uint16(x))
2648 local78 := utf16.Encode([]rune((*(*(struct {
2654 Timestamp int64 // Unix time.
2656 if len((local78)) > math.MaxUint16 {
2660 x := uint16(len((local78)))
2661 write16(w, uint16(x))
2663 for local79 := range local78 {
2665 x := (local78)[local79]
2666 write16(w, uint16(x))
2676 Timestamp int64 // Unix time.
2678 write64(w, uint64(x))
2683 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2691 if local80 != local81 {
2692 chk(fmt.Errorf("const %v: %v", "uint8(1)", local80))
2695 if err := pcall(func() {
2702 Timestamp int64 // Unix time.
2703 }))(obj)).Type).deserialize(r)
2708 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ChatMsgType", err))
2710 var local82 []uint16
2716 (local82) = make([]uint16, local83)
2717 for local84 := range local82 {
2719 p := &(local82)[local84]
2729 Timestamp int64 // Unix time.
2730 }))(obj)).Sender = string(utf16.Decode(local82))
2731 var local85 []uint16
2737 (local85) = make([]uint16, local86)
2738 for local87 := range local85 {
2740 p := &(local85)[local87]
2750 Timestamp int64 // Unix time.
2751 }))(obj)).Text = string(utf16.Decode(local85))
2759 Timestamp int64 // Unix time.
2761 *p = int64(read64(r))
2766 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2767 if len(((*(*(struct {
2770 }))(obj)).Remove)) > math.MaxUint16 {
2774 x := uint16(len(((*(*(struct {
2778 write16(w, uint16(x))
2780 for local88 := range (*(*(struct {
2784 if err := pcall(func() {
2788 }))(obj)).Remove)[local88]).serialize(w)
2793 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2796 if len(((*(*(struct {
2799 }))(obj)).Add)) > math.MaxUint16 {
2803 x := uint16(len(((*(*(struct {
2807 write16(w, uint16(x))
2809 for local89 := range (*(*(struct {
2813 if err := pcall(func() {
2817 }))(obj)).Add)[local89]).serialize(w)
2822 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2827 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2836 }))(obj)).Remove) = make([]AOID, local90)
2837 for local91 := range (*(*(struct {
2841 if err := pcall(func() {
2845 }))(obj)).Remove)[local91]).deserialize(r)
2850 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
2861 }))(obj)).Add) = make([]AOAdd, local92)
2862 for local93 := range (*(*(struct {
2866 if err := pcall(func() {
2870 }))(obj)).Add)[local93]).deserialize(r)
2875 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAdd", err))
2880 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2881 for local94 := range (*(*(struct {
2885 if err := pcall(func() {
2889 }))(obj)).Msgs)[local94]).serialize(w)
2894 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2899 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2902 err := pcall(func() {
2903 if err := pcall(func() {
2904 (local95).deserialize(r)
2909 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.IDAOMsg", err))
2918 }))(obj)).Msgs) = append(((*(*(struct {
2921 }))(obj)).Msgs), local95)
2926 func (obj *ToCltHP) serialize(w io.Writer) {
2931 write16(w, uint16(x))
2935 func (obj *ToCltHP) deserialize(r io.Reader) {
2944 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2945 if err := pcall(func() {
2949 }))(obj)).Pos).serialize(w)
2954 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2961 write32(w, math.Float32bits(x))
2968 write32(w, math.Float32bits(x))
2972 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2973 if err := pcall(func() {
2977 }))(obj)).Pos).deserialize(r)
2982 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
2989 *p = math.Float32frombits(read32(r))
2996 *p = math.Float32frombits(read32(r))
3000 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
3001 local96 := utf16.Encode([]rune((*(*(struct {
3005 if len((local96)) > math.MaxUint16 {
3009 x := uint16(len((local96)))
3010 write16(w, uint16(x))
3012 for local97 := range local96 {
3014 x := (local96)[local97]
3015 write16(w, uint16(x))
3020 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
3021 var local98 []uint16
3027 (local98) = make([]uint16, local99)
3028 for local100 := range local98 {
3030 p := &(local98)[local100]
3037 }))(obj)).Reason = string(utf16.Decode(local98))
3040 func (obj *ToCltFOV) serialize(w io.Writer) {
3045 TransitionTime float32
3047 write32(w, math.Float32bits(x))
3053 TransitionTime float32
3054 }))(obj)).Multiplier
3066 TransitionTime float32
3067 }))(obj)).TransitionTime
3068 write32(w, math.Float32bits(x))
3072 func (obj *ToCltFOV) deserialize(r io.Reader) {
3077 TransitionTime float32
3079 *p = math.Float32frombits(read32(r))
3085 TransitionTime float32
3086 }))(obj)).Multiplier
3087 switch n := read8(r); n {
3093 chk(fmt.Errorf("invalid bool: %d", n))
3101 TransitionTime float32
3102 }))(obj)).TransitionTime
3103 *p = math.Float32frombits(read32(r))
3107 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3120 if err := pcall(func() {
3124 }))(obj)).PointAt).serialize(w)
3129 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3133 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3139 switch n := read8(r); n {
3145 chk(fmt.Errorf("invalid bool: %d", n))
3149 if err := pcall(func() {
3153 }))(obj)).PointAt).deserialize(r)
3158 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
3162 func (obj *ToCltMedia) serialize(w io.Writer) {
3165 // N is the total number of ToCltMedia packets.
3166 // I is the index of this packet.
3177 write16(w, uint16(x))
3181 // N is the total number of ToCltMedia packets.
3182 // I is the index of this packet.
3193 write16(w, uint16(x))
3195 if len(((*(*(struct {
3196 // N is the total number of ToCltMedia packets.
3197 // I is the index of this packet.
3207 }))(obj)).Files)) > math.MaxUint32 {
3211 x := uint32(len(((*(*(struct {
3212 // N is the total number of ToCltMedia packets.
3213 // I is the index of this packet.
3224 write32(w, uint32(x))
3226 for local101 := range (*(*(struct {
3227 // N is the total number of ToCltMedia packets.
3228 // I is the index of this packet.
3239 if len(([]byte((((*(*(struct {
3240 // N is the total number of ToCltMedia packets.
3241 // I is the index of this packet.
3251 }))(obj)).Files)[local101]).Name))) > math.MaxUint16 {
3255 x := uint16(len(([]byte((((*(*(struct {
3256 // N is the total number of ToCltMedia packets.
3257 // I is the index of this packet.
3267 }))(obj)).Files)[local101]).Name))))
3268 write16(w, uint16(x))
3271 _, err := w.Write(([]byte((((*(*(struct {
3272 // N is the total number of ToCltMedia packets.
3273 // I is the index of this packet.
3283 }))(obj)).Files)[local101]).Name))[:])
3286 if len(((((*(*(struct {
3287 // N is the total number of ToCltMedia packets.
3288 // I is the index of this packet.
3298 }))(obj)).Files)[local101]).Data)) > math.MaxUint32 {
3302 x := uint32(len(((((*(*(struct {
3303 // N is the total number of ToCltMedia packets.
3304 // I is the index of this packet.
3314 }))(obj)).Files)[local101]).Data)))
3315 write32(w, uint32(x))
3318 _, err := w.Write(((((*(*(struct {
3319 // N is the total number of ToCltMedia packets.
3320 // I is the index of this packet.
3330 }))(obj)).Files)[local101]).Data)[:])
3336 func (obj *ToCltMedia) deserialize(r io.Reader) {
3339 // N is the total number of ToCltMedia packets.
3340 // I is the index of this packet.
3355 // N is the total number of ToCltMedia packets.
3356 // I is the index of this packet.
3375 // N is the total number of ToCltMedia packets.
3376 // I is the index of this packet.
3386 }))(obj)).Files) = make([]struct {
3390 for local103 := range (*(*(struct {
3391 // N is the total number of ToCltMedia packets.
3392 // I is the index of this packet.
3403 var local104 []uint8
3409 (local104) = make([]uint8, local105)
3411 _, err := io.ReadFull(r, (local104)[:])
3415 // N is the total number of ToCltMedia packets.
3416 // I is the index of this packet.
3426 }))(obj)).Files)[local103]).Name) = string(local104)
3433 // N is the total number of ToCltMedia packets.
3434 // I is the index of this packet.
3444 }))(obj)).Files)[local103]).Data) = make([]byte, local106)
3446 _, err := io.ReadFull(r, ((((*(*(struct {
3447 // N is the total number of ToCltMedia packets.
3448 // I is the index of this packet.
3458 }))(obj)).Files)[local103]).Data)[:])
3464 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3467 w := new(bytes.Buffer)
3469 w := zlib.NewWriter(w)
3471 local107 := uint8(1)
3480 // See (de)serialize.fmt.
3483 { // For ToCltNodeDefs.Defs.
3484 if len(x) > math.MaxUint16 {
3487 write16(w, uint16(len(x)))
3492 if b.Len() > math.MaxUint32 {
3495 write32(w, uint32(b.Len()))
3496 _, err := b.WriteTo(w)
3505 if len((buf.Bytes())) > math.MaxUint32 {
3509 x := uint32(len((buf.Bytes())))
3510 write32(w, uint32(x))
3513 _, err := w.Write((buf.Bytes())[:])
3520 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3527 r := &io.LimitedReader{R: r, N: int64(n)}
3529 r, err := zlib.NewReader(byteReader{r})
3533 local109 := uint8(1)
3538 if local108 != local109 {
3539 chk(fmt.Errorf("const %v: %v", "uint8(1)", local108))
3545 // See (de)serialize.fmt.
3548 { // For ToCltNodeDefs.Defs.
3549 *p = make([]NodeDef, read16(r))
3550 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3552 (*p)[i].deserialize(r)
3555 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3562 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3567 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3568 if len(((*(*(struct {
3574 }))(obj)).Files)) > math.MaxUint16 {
3578 x := uint16(len(((*(*(struct {
3585 write16(w, uint16(x))
3587 for local110 := range (*(*(struct {
3594 if len(([]byte((((*(*(struct {
3600 }))(obj)).Files)[local110]).Name))) > math.MaxUint16 {
3604 x := uint16(len(([]byte((((*(*(struct {
3610 }))(obj)).Files)[local110]).Name))))
3611 write16(w, uint16(x))
3614 _, err := w.Write(([]byte((((*(*(struct {
3620 }))(obj)).Files)[local110]).Name))[:])
3623 if len(([]byte((((*(*(struct {
3629 }))(obj)).Files)[local110]).Base64SHA1))) > math.MaxUint16 {
3633 x := uint16(len(([]byte((((*(*(struct {
3639 }))(obj)).Files)[local110]).Base64SHA1))))
3640 write16(w, uint16(x))
3643 _, err := w.Write(([]byte((((*(*(struct {
3649 }))(obj)).Files)[local110]).Base64SHA1))[:])
3653 if len(([]byte((*(*(struct {
3659 }))(obj)).URL))) > math.MaxUint16 {
3663 x := uint16(len(([]byte((*(*(struct {
3670 write16(w, uint16(x))
3673 _, err := w.Write(([]byte((*(*(struct {
3684 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3696 }))(obj)).Files) = make([]struct {
3700 for local112 := range (*(*(struct {
3707 var local113 []uint8
3713 (local113) = make([]uint8, local114)
3715 _, err := io.ReadFull(r, (local113)[:])
3724 }))(obj)).Files)[local112]).Name) = string(local113)
3725 var local115 []uint8
3731 (local115) = make([]uint8, local116)
3733 _, err := io.ReadFull(r, (local115)[:])
3742 }))(obj)).Files)[local112]).Base64SHA1) = string(local115)
3744 var local117 []uint8
3750 (local117) = make([]uint8, local118)
3752 _, err := io.ReadFull(r, (local117)[:])
3761 }))(obj)).URL) = string(local117)
3764 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3767 w := new(bytes.Buffer)
3769 w := zlib.NewWriter(w)
3771 local119 := uint8(0)
3777 if len(((*(*(struct {
3779 Aliases []struct{ Alias, Orig string }
3780 }))(obj)).Defs)) > math.MaxUint16 {
3784 x := uint16(len(((*(*(struct {
3786 Aliases []struct{ Alias, Orig string }
3788 write16(w, uint16(x))
3790 for local120 := range (*(*(struct {
3792 Aliases []struct{ Alias, Orig string }
3794 if err := pcall(func() {
3797 Aliases []struct{ Alias, Orig string }
3798 }))(obj)).Defs)[local120]).serialize(w)
3803 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3806 if len(((*(*(struct {
3808 Aliases []struct{ Alias, Orig string }
3809 }))(obj)).Aliases)) > math.MaxUint16 {
3813 x := uint16(len(((*(*(struct {
3815 Aliases []struct{ Alias, Orig string }
3816 }))(obj)).Aliases)))
3817 write16(w, uint16(x))
3819 for local121 := range (*(*(struct {
3821 Aliases []struct{ Alias, Orig string }
3823 if len(([]byte((((*(*(struct {
3825 Aliases []struct{ Alias, Orig string }
3826 }))(obj)).Aliases)[local121]).Alias))) > math.MaxUint16 {
3830 x := uint16(len(([]byte((((*(*(struct {
3832 Aliases []struct{ Alias, Orig string }
3833 }))(obj)).Aliases)[local121]).Alias))))
3834 write16(w, uint16(x))
3837 _, err := w.Write(([]byte((((*(*(struct {
3839 Aliases []struct{ Alias, Orig string }
3840 }))(obj)).Aliases)[local121]).Alias))[:])
3843 if len(([]byte((((*(*(struct {
3845 Aliases []struct{ Alias, Orig string }
3846 }))(obj)).Aliases)[local121]).Orig))) > math.MaxUint16 {
3850 x := uint16(len(([]byte((((*(*(struct {
3852 Aliases []struct{ Alias, Orig string }
3853 }))(obj)).Aliases)[local121]).Orig))))
3854 write16(w, uint16(x))
3857 _, err := w.Write(([]byte((((*(*(struct {
3859 Aliases []struct{ Alias, Orig string }
3860 }))(obj)).Aliases)[local121]).Orig))[:])
3869 if len((buf.Bytes())) > math.MaxUint32 {
3873 x := uint32(len((buf.Bytes())))
3874 write32(w, uint32(x))
3877 _, err := w.Write((buf.Bytes())[:])
3884 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3891 r := &io.LimitedReader{R: r, N: int64(n)}
3893 r, err := zlib.NewReader(byteReader{r})
3897 local123 := uint8(0)
3902 if local122 != local123 {
3903 chk(fmt.Errorf("const %v: %v", "uint8(0)", local122))
3913 Aliases []struct{ Alias, Orig string }
3914 }))(obj)).Defs) = make([]ItemDef, local124)
3915 for local125 := range (*(*(struct {
3917 Aliases []struct{ Alias, Orig string }
3919 if err := pcall(func() {
3922 Aliases []struct{ Alias, Orig string }
3923 }))(obj)).Defs)[local125]).deserialize(r)
3928 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemDef", err))
3938 Aliases []struct{ Alias, Orig string }
3939 }))(obj)).Aliases) = make([]struct {
3943 for local127 := range (*(*(struct {
3945 Aliases []struct{ Alias, Orig string }
3947 var local128 []uint8
3953 (local128) = make([]uint8, local129)
3955 _, err := io.ReadFull(r, (local128)[:])
3960 Aliases []struct{ Alias, Orig string }
3961 }))(obj)).Aliases)[local127]).Alias) = string(local128)
3962 var local130 []uint8
3968 (local130) = make([]uint8, local131)
3970 _, err := io.ReadFull(r, (local130)[:])
3975 Aliases []struct{ Alias, Orig string }
3976 }))(obj)).Aliases)[local127]).Orig) = string(local130)
3981 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3986 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3987 if err := pcall(func() {
3992 SrcType SoundSrcType
3999 }))(obj)).ID).serialize(w)
4004 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4006 if len(([]byte((*(*(struct {
4010 SrcType SoundSrcType
4017 }))(obj)).Name))) > math.MaxUint16 {
4021 x := uint16(len(([]byte((*(*(struct {
4025 SrcType SoundSrcType
4033 write16(w, uint16(x))
4036 _, err := w.Write(([]byte((*(*(struct {
4040 SrcType SoundSrcType
4047 }))(obj)).Name))[:])
4055 SrcType SoundSrcType
4063 write32(w, math.Float32bits(x))
4065 if err := pcall(func() {
4070 SrcType SoundSrcType
4077 }))(obj)).SrcType).serialize(w)
4082 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4084 if err := pcall(func() {
4089 SrcType SoundSrcType
4096 }))(obj)).Pos).serialize(w)
4101 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4103 if err := pcall(func() {
4108 SrcType SoundSrcType
4115 }))(obj)).SrcAOID).serialize(w)
4120 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4127 SrcType SoundSrcType
4147 SrcType SoundSrcType
4155 write32(w, math.Float32bits(x))
4162 SrcType SoundSrcType
4170 write32(w, math.Float32bits(x))
4177 SrcType SoundSrcType
4194 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4195 if err := pcall(func() {
4200 SrcType SoundSrcType
4207 }))(obj)).ID).deserialize(r)
4212 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4214 var local132 []uint8
4220 (local132) = make([]uint8, local133)
4222 _, err := io.ReadFull(r, (local132)[:])
4229 SrcType SoundSrcType
4236 }))(obj)).Name) = string(local132)
4242 SrcType SoundSrcType
4250 *p = math.Float32frombits(read32(r))
4252 if err := pcall(func() {
4257 SrcType SoundSrcType
4264 }))(obj)).SrcType).deserialize(r)
4269 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundSrcType", err))
4271 if err := pcall(func() {
4276 SrcType SoundSrcType
4283 }))(obj)).Pos).deserialize(r)
4288 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
4290 if err := pcall(func() {
4295 SrcType SoundSrcType
4302 }))(obj)).SrcAOID).deserialize(r)
4307 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
4314 SrcType SoundSrcType
4322 switch n := read8(r); n {
4328 chk(fmt.Errorf("invalid bool: %d", n))
4337 SrcType SoundSrcType
4345 *p = math.Float32frombits(read32(r))
4352 SrcType SoundSrcType
4360 *p = math.Float32frombits(read32(r))
4367 SrcType SoundSrcType
4375 switch n := read8(r); n {
4381 chk(fmt.Errorf("invalid bool: %d", n))
4387 func (obj *ToCltStopSound) serialize(w io.Writer) {
4388 if err := pcall(func() {
4391 }))(obj)).ID).serialize(w)
4396 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4400 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4401 if err := pcall(func() {
4404 }))(obj)).ID).deserialize(r)
4409 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
4413 func (obj *ToCltPrivs) serialize(w io.Writer) {
4414 if len(((*(*(struct {
4416 }))(obj)).Privs)) > math.MaxUint16 {
4420 x := uint16(len(((*(*(struct {
4423 write16(w, uint16(x))
4425 for local134 := range (*(*(struct {
4428 if len(([]byte(((*(*(struct {
4430 }))(obj)).Privs)[local134]))) > math.MaxUint16 {
4434 x := uint16(len(([]byte(((*(*(struct {
4436 }))(obj)).Privs)[local134]))))
4437 write16(w, uint16(x))
4440 _, err := w.Write(([]byte(((*(*(struct {
4442 }))(obj)).Privs)[local134]))[:])
4448 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4456 }))(obj)).Privs) = make([]string, local135)
4457 for local136 := range (*(*(struct {
4460 var local137 []uint8
4466 (local137) = make([]uint8, local138)
4468 _, err := io.ReadFull(r, (local137)[:])
4473 }))(obj)).Privs)[local136]) = string(local137)
4477 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4478 if len(([]byte((*(*(struct {
4481 }))(obj)).Formspec))) > math.MaxUint32 {
4485 x := uint32(len(([]byte((*(*(struct {
4488 }))(obj)).Formspec))))
4489 write32(w, uint32(x))
4492 _, err := w.Write(([]byte((*(*(struct {
4495 }))(obj)).Formspec))[:])
4500 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4501 var local139 []uint8
4507 (local139) = make([]uint8, local140)
4509 _, err := io.ReadFull(r, (local139)[:])
4515 }))(obj)).Formspec) = string(local139)
4518 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4519 if len(([]byte((*(*(struct {
4522 Len uint16 // deprecated
4526 }))(obj)).Name))) > math.MaxUint16 {
4530 x := uint16(len(([]byte((*(*(struct {
4533 Len uint16 // deprecated
4538 write16(w, uint16(x))
4541 _, err := w.Write(([]byte((*(*(struct {
4544 Len uint16 // deprecated
4548 }))(obj)).Name))[:])
4555 Len uint16 // deprecated
4571 Len uint16 // deprecated
4576 write16(w, uint16(x))
4579 _, err := w.Write(([]byte((*(*(struct {
4582 Len uint16 // deprecated
4591 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4592 var local141 []uint8
4598 (local141) = make([]uint8, local142)
4600 _, err := io.ReadFull(r, (local141)[:])
4606 Len uint16 // deprecated
4610 }))(obj)).Name) = string(local141)
4615 Len uint16 // deprecated
4620 switch n := read8(r); n {
4626 chk(fmt.Errorf("invalid bool: %d", n))
4634 Len uint16 // deprecated
4641 var local143 []uint8
4644 (local143), err = io.ReadAll(r)
4650 Len uint16 // deprecated
4654 }))(obj)).Inv) = string(local143)
4657 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4658 if len(([]byte((*(*(struct {
4663 }))(obj)).Formspec))) > math.MaxUint32 {
4667 x := uint32(len(([]byte((*(*(struct {
4672 }))(obj)).Formspec))))
4673 write32(w, uint32(x))
4676 _, err := w.Write(([]byte((*(*(struct {
4681 }))(obj)).Formspec))[:])
4684 if len(([]byte((*(*(struct {
4689 }))(obj)).Formname))) > math.MaxUint16 {
4693 x := uint16(len(([]byte((*(*(struct {
4698 }))(obj)).Formname))))
4699 write16(w, uint16(x))
4702 _, err := w.Write(([]byte((*(*(struct {
4707 }))(obj)).Formname))[:])
4712 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4713 var local144 []uint8
4719 (local144) = make([]uint8, local145)
4721 _, err := io.ReadFull(r, (local144)[:])
4729 }))(obj)).Formspec) = string(local144)
4730 var local146 []uint8
4736 (local146) = make([]uint8, local147)
4738 _, err := io.ReadFull(r, (local146)[:])
4746 }))(obj)).Formname) = string(local146)
4749 func (obj *ToCltMovement) serialize(w io.Writer) {
4752 DefaultAccel, AirAccel, FastAccel,
4753 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4754 Fluidity, Smoothing, Sink,
4756 }))(obj)).DefaultAccel
4757 write32(w, math.Float32bits(x))
4761 DefaultAccel, AirAccel, FastAccel,
4762 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4763 Fluidity, Smoothing, Sink,
4766 write32(w, math.Float32bits(x))
4770 DefaultAccel, AirAccel, FastAccel,
4771 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4772 Fluidity, Smoothing, Sink,
4775 write32(w, math.Float32bits(x))
4779 DefaultAccel, AirAccel, FastAccel,
4780 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4781 Fluidity, Smoothing, Sink,
4784 write32(w, math.Float32bits(x))
4788 DefaultAccel, AirAccel, FastAccel,
4789 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4790 Fluidity, Smoothing, Sink,
4792 }))(obj)).CrouchSpeed
4793 write32(w, math.Float32bits(x))
4797 DefaultAccel, AirAccel, FastAccel,
4798 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4799 Fluidity, Smoothing, Sink,
4802 write32(w, math.Float32bits(x))
4806 DefaultAccel, AirAccel, FastAccel,
4807 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4808 Fluidity, Smoothing, Sink,
4810 }))(obj)).ClimbSpeed
4811 write32(w, math.Float32bits(x))
4815 DefaultAccel, AirAccel, FastAccel,
4816 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4817 Fluidity, Smoothing, Sink,
4820 write32(w, math.Float32bits(x))
4824 DefaultAccel, AirAccel, FastAccel,
4825 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4826 Fluidity, Smoothing, Sink,
4829 write32(w, math.Float32bits(x))
4833 DefaultAccel, AirAccel, FastAccel,
4834 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4835 Fluidity, Smoothing, Sink,
4838 write32(w, math.Float32bits(x))
4842 DefaultAccel, AirAccel, FastAccel,
4843 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4844 Fluidity, Smoothing, Sink,
4847 write32(w, math.Float32bits(x))
4851 DefaultAccel, AirAccel, FastAccel,
4852 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4853 Fluidity, Smoothing, Sink,
4856 write32(w, math.Float32bits(x))
4860 func (obj *ToCltMovement) deserialize(r io.Reader) {
4863 DefaultAccel, AirAccel, FastAccel,
4864 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4865 Fluidity, Smoothing, Sink,
4867 }))(obj)).DefaultAccel
4868 *p = math.Float32frombits(read32(r))
4872 DefaultAccel, AirAccel, FastAccel,
4873 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4874 Fluidity, Smoothing, Sink,
4877 *p = math.Float32frombits(read32(r))
4881 DefaultAccel, AirAccel, FastAccel,
4882 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4883 Fluidity, Smoothing, Sink,
4886 *p = math.Float32frombits(read32(r))
4890 DefaultAccel, AirAccel, FastAccel,
4891 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4892 Fluidity, Smoothing, Sink,
4895 *p = math.Float32frombits(read32(r))
4899 DefaultAccel, AirAccel, FastAccel,
4900 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4901 Fluidity, Smoothing, Sink,
4903 }))(obj)).CrouchSpeed
4904 *p = math.Float32frombits(read32(r))
4908 DefaultAccel, AirAccel, FastAccel,
4909 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4910 Fluidity, Smoothing, Sink,
4913 *p = math.Float32frombits(read32(r))
4917 DefaultAccel, AirAccel, FastAccel,
4918 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4919 Fluidity, Smoothing, Sink,
4921 }))(obj)).ClimbSpeed
4922 *p = math.Float32frombits(read32(r))
4926 DefaultAccel, AirAccel, FastAccel,
4927 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4928 Fluidity, Smoothing, Sink,
4931 *p = math.Float32frombits(read32(r))
4935 DefaultAccel, AirAccel, FastAccel,
4936 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4937 Fluidity, Smoothing, Sink,
4940 *p = math.Float32frombits(read32(r))
4944 DefaultAccel, AirAccel, FastAccel,
4945 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4946 Fluidity, Smoothing, Sink,
4949 *p = math.Float32frombits(read32(r))
4953 DefaultAccel, AirAccel, FastAccel,
4954 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4955 Fluidity, Smoothing, Sink,
4958 *p = math.Float32frombits(read32(r))
4962 DefaultAccel, AirAccel, FastAccel,
4963 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4964 Fluidity, Smoothing, Sink,
4967 *p = math.Float32frombits(read32(r))
4971 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4972 for local148 := range (*(*(struct {
4973 Pos, Vel, Acc [3]float32
4974 ExpirationTime float32 // in seconds.
4992 Pos, Vel, Acc [3]float32
4993 ExpirationTime float32 // in seconds.
5008 }))(obj)).Pos)[local148]
5009 write32(w, math.Float32bits(x))
5012 for local149 := range (*(*(struct {
5013 Pos, Vel, Acc [3]float32
5014 ExpirationTime float32 // in seconds.
5032 Pos, Vel, Acc [3]float32
5033 ExpirationTime float32 // in seconds.
5048 }))(obj)).Vel)[local149]
5049 write32(w, math.Float32bits(x))
5052 for local150 := range (*(*(struct {
5053 Pos, Vel, Acc [3]float32
5054 ExpirationTime float32 // in seconds.
5072 Pos, Vel, Acc [3]float32
5073 ExpirationTime float32 // in seconds.
5088 }))(obj)).Acc)[local150]
5089 write32(w, math.Float32bits(x))
5094 Pos, Vel, Acc [3]float32
5095 ExpirationTime float32 // in seconds.
5110 }))(obj)).ExpirationTime
5111 write32(w, math.Float32bits(x))
5115 Pos, Vel, Acc [3]float32
5116 ExpirationTime float32 // in seconds.
5132 write32(w, math.Float32bits(x))
5136 Pos, Vel, Acc [3]float32
5137 ExpirationTime float32 // in seconds.
5160 if len(([]byte(*(*string)(&((*(*(struct {
5161 Pos, Vel, Acc [3]float32
5162 ExpirationTime float32 // in seconds.
5177 }))(obj)).Texture))))) > math.MaxUint32 {
5181 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5182 Pos, Vel, Acc [3]float32
5183 ExpirationTime float32 // in seconds.
5198 }))(obj)).Texture))))))
5199 write32(w, uint32(x))
5202 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5203 Pos, Vel, Acc [3]float32
5204 ExpirationTime float32 // in seconds.
5219 }))(obj)).Texture))))[:])
5224 Pos, Vel, Acc [3]float32
5225 ExpirationTime float32 // in seconds.
5250 Pos, Vel, Acc [3]float32
5251 ExpirationTime float32 // in seconds.
5266 }))(obj)).CollisionRm
5274 if err := pcall(func() {
5276 Pos, Vel, Acc [3]float32
5277 ExpirationTime float32 // in seconds.
5292 }))(obj)).AnimParams).serialize(w)
5297 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5301 Pos, Vel, Acc [3]float32
5302 ExpirationTime float32 // in seconds.
5322 Pos, Vel, Acc [3]float32
5323 ExpirationTime float32 // in seconds.
5338 }))(obj)).AOCollision
5346 if err := pcall(func() {
5348 Pos, Vel, Acc [3]float32
5349 ExpirationTime float32 // in seconds.
5364 }))(obj)).NodeParam0).serialize(w)
5369 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5373 Pos, Vel, Acc [3]float32
5374 ExpirationTime float32 // in seconds.
5389 }))(obj)).NodeParam2
5394 Pos, Vel, Acc [3]float32
5395 ExpirationTime float32 // in seconds.
5415 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5416 for local151 := range (*(*(struct {
5417 Pos, Vel, Acc [3]float32
5418 ExpirationTime float32 // in seconds.
5435 p := &((*(*(struct {
5436 Pos, Vel, Acc [3]float32
5437 ExpirationTime float32 // in seconds.
5452 }))(obj)).Pos)[local151]
5453 *p = math.Float32frombits(read32(r))
5456 for local152 := range (*(*(struct {
5457 Pos, Vel, Acc [3]float32
5458 ExpirationTime float32 // in seconds.
5475 p := &((*(*(struct {
5476 Pos, Vel, Acc [3]float32
5477 ExpirationTime float32 // in seconds.
5492 }))(obj)).Vel)[local152]
5493 *p = math.Float32frombits(read32(r))
5496 for local153 := range (*(*(struct {
5497 Pos, Vel, Acc [3]float32
5498 ExpirationTime float32 // in seconds.
5515 p := &((*(*(struct {
5516 Pos, Vel, Acc [3]float32
5517 ExpirationTime float32 // in seconds.
5532 }))(obj)).Acc)[local153]
5533 *p = math.Float32frombits(read32(r))
5538 Pos, Vel, Acc [3]float32
5539 ExpirationTime float32 // in seconds.
5554 }))(obj)).ExpirationTime
5555 *p = math.Float32frombits(read32(r))
5559 Pos, Vel, Acc [3]float32
5560 ExpirationTime float32 // in seconds.
5576 *p = math.Float32frombits(read32(r))
5580 Pos, Vel, Acc [3]float32
5581 ExpirationTime float32 // in seconds.
5597 switch n := read8(r); n {
5603 chk(fmt.Errorf("invalid bool: %d", n))
5607 var local154 []uint8
5613 (local154) = make([]uint8, local155)
5615 _, err := io.ReadFull(r, (local154)[:])
5618 (*(*string)(&((*(*(struct {
5619 Pos, Vel, Acc [3]float32
5620 ExpirationTime float32 // in seconds.
5635 }))(obj)).Texture))) = string(local154)
5638 Pos, Vel, Acc [3]float32
5639 ExpirationTime float32 // in seconds.
5655 switch n := read8(r); n {
5661 chk(fmt.Errorf("invalid bool: %d", n))
5667 Pos, Vel, Acc [3]float32
5668 ExpirationTime float32 // in seconds.
5683 }))(obj)).CollisionRm
5684 switch n := read8(r); n {
5690 chk(fmt.Errorf("invalid bool: %d", n))
5694 if err := pcall(func() {
5696 Pos, Vel, Acc [3]float32
5697 ExpirationTime float32 // in seconds.
5712 }))(obj)).AnimParams).deserialize(r)
5717 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
5721 Pos, Vel, Acc [3]float32
5722 ExpirationTime float32 // in seconds.
5742 Pos, Vel, Acc [3]float32
5743 ExpirationTime float32 // in seconds.
5758 }))(obj)).AOCollision
5759 switch n := read8(r); n {
5765 chk(fmt.Errorf("invalid bool: %d", n))
5769 if err := pcall(func() {
5771 Pos, Vel, Acc [3]float32
5772 ExpirationTime float32 // in seconds.
5787 }))(obj)).NodeParam0).deserialize(r)
5792 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
5796 Pos, Vel, Acc [3]float32
5797 ExpirationTime float32 // in seconds.
5812 }))(obj)).NodeParam2
5817 Pos, Vel, Acc [3]float32
5818 ExpirationTime float32 // in seconds.
5838 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5843 Pos, Vel, Acc [2][3]float32
5844 ExpirationTime [2]float32 // in seconds.
5851 ID ParticleSpawnerID
5862 write16(w, uint16(x))
5868 Pos, Vel, Acc [2][3]float32
5869 ExpirationTime [2]float32 // in seconds.
5876 ID ParticleSpawnerID
5887 write32(w, math.Float32bits(x))
5889 for local156 := range (*(*(struct {
5892 Pos, Vel, Acc [2][3]float32
5893 ExpirationTime [2]float32 // in seconds.
5900 ID ParticleSpawnerID
5911 for local157 := range ((*(*(struct {
5914 Pos, Vel, Acc [2][3]float32
5915 ExpirationTime [2]float32 // in seconds.
5922 ID ParticleSpawnerID
5932 }))(obj)).Pos)[local156] {
5934 x := (((*(*(struct {
5937 Pos, Vel, Acc [2][3]float32
5938 ExpirationTime [2]float32 // in seconds.
5945 ID ParticleSpawnerID
5955 }))(obj)).Pos)[local156])[local157]
5956 write32(w, math.Float32bits(x))
5960 for local158 := range (*(*(struct {
5963 Pos, Vel, Acc [2][3]float32
5964 ExpirationTime [2]float32 // in seconds.
5971 ID ParticleSpawnerID
5982 for local159 := range ((*(*(struct {
5985 Pos, Vel, Acc [2][3]float32
5986 ExpirationTime [2]float32 // in seconds.
5993 ID ParticleSpawnerID
6003 }))(obj)).Vel)[local158] {
6005 x := (((*(*(struct {
6008 Pos, Vel, Acc [2][3]float32
6009 ExpirationTime [2]float32 // in seconds.
6016 ID ParticleSpawnerID
6026 }))(obj)).Vel)[local158])[local159]
6027 write32(w, math.Float32bits(x))
6031 for local160 := range (*(*(struct {
6034 Pos, Vel, Acc [2][3]float32
6035 ExpirationTime [2]float32 // in seconds.
6042 ID ParticleSpawnerID
6053 for local161 := range ((*(*(struct {
6056 Pos, Vel, Acc [2][3]float32
6057 ExpirationTime [2]float32 // in seconds.
6064 ID ParticleSpawnerID
6074 }))(obj)).Acc)[local160] {
6076 x := (((*(*(struct {
6079 Pos, Vel, Acc [2][3]float32
6080 ExpirationTime [2]float32 // in seconds.
6087 ID ParticleSpawnerID
6097 }))(obj)).Acc)[local160])[local161]
6098 write32(w, math.Float32bits(x))
6102 for local162 := range (*(*(struct {
6105 Pos, Vel, Acc [2][3]float32
6106 ExpirationTime [2]float32 // in seconds.
6113 ID ParticleSpawnerID
6123 }))(obj)).ExpirationTime {
6128 Pos, Vel, Acc [2][3]float32
6129 ExpirationTime [2]float32 // in seconds.
6136 ID ParticleSpawnerID
6146 }))(obj)).ExpirationTime)[local162]
6147 write32(w, math.Float32bits(x))
6150 for local163 := range (*(*(struct {
6153 Pos, Vel, Acc [2][3]float32
6154 ExpirationTime [2]float32 // in seconds.
6161 ID ParticleSpawnerID
6176 Pos, Vel, Acc [2][3]float32
6177 ExpirationTime [2]float32 // in seconds.
6184 ID ParticleSpawnerID
6194 }))(obj)).Size)[local163]
6195 write32(w, math.Float32bits(x))
6202 Pos, Vel, Acc [2][3]float32
6203 ExpirationTime [2]float32 // in seconds.
6210 ID ParticleSpawnerID
6228 if len(([]byte(*(*string)(&((*(*(struct {
6231 Pos, Vel, Acc [2][3]float32
6232 ExpirationTime [2]float32 // in seconds.
6239 ID ParticleSpawnerID
6249 }))(obj)).Texture))))) > math.MaxUint32 {
6253 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6256 Pos, Vel, Acc [2][3]float32
6257 ExpirationTime [2]float32 // in seconds.
6264 ID ParticleSpawnerID
6274 }))(obj)).Texture))))))
6275 write32(w, uint32(x))
6278 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6281 Pos, Vel, Acc [2][3]float32
6282 ExpirationTime [2]float32 // in seconds.
6289 ID ParticleSpawnerID
6299 }))(obj)).Texture))))[:])
6302 if err := pcall(func() {
6306 Pos, Vel, Acc [2][3]float32
6307 ExpirationTime [2]float32 // in seconds.
6314 ID ParticleSpawnerID
6324 }))(obj)).ID).serialize(w)
6329 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
6335 Pos, Vel, Acc [2][3]float32
6336 ExpirationTime [2]float32 // in seconds.
6343 ID ParticleSpawnerID
6365 Pos, Vel, Acc [2][3]float32
6366 ExpirationTime [2]float32 // in seconds.
6373 ID ParticleSpawnerID
6383 }))(obj)).CollisionRm
6391 if err := pcall(func() {
6395 Pos, Vel, Acc [2][3]float32
6396 ExpirationTime [2]float32 // in seconds.
6403 ID ParticleSpawnerID
6413 }))(obj)).AttachedAOID).serialize(w)
6418 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
6420 if err := pcall(func() {
6424 Pos, Vel, Acc [2][3]float32
6425 ExpirationTime [2]float32 // in seconds.
6432 ID ParticleSpawnerID
6442 }))(obj)).AnimParams).serialize(w)
6447 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
6453 Pos, Vel, Acc [2][3]float32
6454 ExpirationTime [2]float32 // in seconds.
6461 ID ParticleSpawnerID
6478 Pos, Vel, Acc [2][3]float32
6479 ExpirationTime [2]float32 // in seconds.
6486 ID ParticleSpawnerID
6496 }))(obj)).AOCollision
6504 if err := pcall(func() {
6508 Pos, Vel, Acc [2][3]float32
6509 ExpirationTime [2]float32 // in seconds.
6516 ID ParticleSpawnerID
6526 }))(obj)).NodeParam0).serialize(w)
6531 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
6537 Pos, Vel, Acc [2][3]float32
6538 ExpirationTime [2]float32 // in seconds.
6545 ID ParticleSpawnerID
6555 }))(obj)).NodeParam2
6562 Pos, Vel, Acc [2][3]float32
6563 ExpirationTime [2]float32 // in seconds.
6570 ID ParticleSpawnerID
6585 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6590 Pos, Vel, Acc [2][3]float32
6591 ExpirationTime [2]float32 // in seconds.
6598 ID ParticleSpawnerID
6615 Pos, Vel, Acc [2][3]float32
6616 ExpirationTime [2]float32 // in seconds.
6623 ID ParticleSpawnerID
6634 *p = math.Float32frombits(read32(r))
6636 for local164 := range (*(*(struct {
6639 Pos, Vel, Acc [2][3]float32
6640 ExpirationTime [2]float32 // in seconds.
6647 ID ParticleSpawnerID
6658 for local165 := range ((*(*(struct {
6661 Pos, Vel, Acc [2][3]float32
6662 ExpirationTime [2]float32 // in seconds.
6669 ID ParticleSpawnerID
6679 }))(obj)).Pos)[local164] {
6681 p := &(((*(*(struct {
6684 Pos, Vel, Acc [2][3]float32
6685 ExpirationTime [2]float32 // in seconds.
6692 ID ParticleSpawnerID
6702 }))(obj)).Pos)[local164])[local165]
6703 *p = math.Float32frombits(read32(r))
6707 for local166 := range (*(*(struct {
6710 Pos, Vel, Acc [2][3]float32
6711 ExpirationTime [2]float32 // in seconds.
6718 ID ParticleSpawnerID
6729 for local167 := range ((*(*(struct {
6732 Pos, Vel, Acc [2][3]float32
6733 ExpirationTime [2]float32 // in seconds.
6740 ID ParticleSpawnerID
6750 }))(obj)).Vel)[local166] {
6752 p := &(((*(*(struct {
6755 Pos, Vel, Acc [2][3]float32
6756 ExpirationTime [2]float32 // in seconds.
6763 ID ParticleSpawnerID
6773 }))(obj)).Vel)[local166])[local167]
6774 *p = math.Float32frombits(read32(r))
6778 for local168 := range (*(*(struct {
6781 Pos, Vel, Acc [2][3]float32
6782 ExpirationTime [2]float32 // in seconds.
6789 ID ParticleSpawnerID
6800 for local169 := range ((*(*(struct {
6803 Pos, Vel, Acc [2][3]float32
6804 ExpirationTime [2]float32 // in seconds.
6811 ID ParticleSpawnerID
6821 }))(obj)).Acc)[local168] {
6823 p := &(((*(*(struct {
6826 Pos, Vel, Acc [2][3]float32
6827 ExpirationTime [2]float32 // in seconds.
6834 ID ParticleSpawnerID
6844 }))(obj)).Acc)[local168])[local169]
6845 *p = math.Float32frombits(read32(r))
6849 for local170 := range (*(*(struct {
6852 Pos, Vel, Acc [2][3]float32
6853 ExpirationTime [2]float32 // in seconds.
6860 ID ParticleSpawnerID
6870 }))(obj)).ExpirationTime {
6872 p := &((*(*(struct {
6875 Pos, Vel, Acc [2][3]float32
6876 ExpirationTime [2]float32 // in seconds.
6883 ID ParticleSpawnerID
6893 }))(obj)).ExpirationTime)[local170]
6894 *p = math.Float32frombits(read32(r))
6897 for local171 := range (*(*(struct {
6900 Pos, Vel, Acc [2][3]float32
6901 ExpirationTime [2]float32 // in seconds.
6908 ID ParticleSpawnerID
6920 p := &((*(*(struct {
6923 Pos, Vel, Acc [2][3]float32
6924 ExpirationTime [2]float32 // in seconds.
6931 ID ParticleSpawnerID
6941 }))(obj)).Size)[local171]
6942 *p = math.Float32frombits(read32(r))
6949 Pos, Vel, Acc [2][3]float32
6950 ExpirationTime [2]float32 // in seconds.
6957 ID ParticleSpawnerID
6968 switch n := read8(r); n {
6974 chk(fmt.Errorf("invalid bool: %d", n))
6978 var local172 []uint8
6984 (local172) = make([]uint8, local173)
6986 _, err := io.ReadFull(r, (local172)[:])
6989 (*(*string)(&((*(*(struct {
6992 Pos, Vel, Acc [2][3]float32
6993 ExpirationTime [2]float32 // in seconds.
7000 ID ParticleSpawnerID
7010 }))(obj)).Texture))) = string(local172)
7011 if err := pcall(func() {
7015 Pos, Vel, Acc [2][3]float32
7016 ExpirationTime [2]float32 // in seconds.
7023 ID ParticleSpawnerID
7033 }))(obj)).ID).deserialize(r)
7038 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
7044 Pos, Vel, Acc [2][3]float32
7045 ExpirationTime [2]float32 // in seconds.
7052 ID ParticleSpawnerID
7063 switch n := read8(r); n {
7069 chk(fmt.Errorf("invalid bool: %d", n))
7077 Pos, Vel, Acc [2][3]float32
7078 ExpirationTime [2]float32 // in seconds.
7085 ID ParticleSpawnerID
7095 }))(obj)).CollisionRm
7096 switch n := read8(r); n {
7102 chk(fmt.Errorf("invalid bool: %d", n))
7106 if err := pcall(func() {
7110 Pos, Vel, Acc [2][3]float32
7111 ExpirationTime [2]float32 // in seconds.
7118 ID ParticleSpawnerID
7128 }))(obj)).AttachedAOID).deserialize(r)
7133 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
7135 if err := pcall(func() {
7139 Pos, Vel, Acc [2][3]float32
7140 ExpirationTime [2]float32 // in seconds.
7147 ID ParticleSpawnerID
7157 }))(obj)).AnimParams).deserialize(r)
7162 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
7168 Pos, Vel, Acc [2][3]float32
7169 ExpirationTime [2]float32 // in seconds.
7176 ID ParticleSpawnerID
7193 Pos, Vel, Acc [2][3]float32
7194 ExpirationTime [2]float32 // in seconds.
7201 ID ParticleSpawnerID
7211 }))(obj)).AOCollision
7212 switch n := read8(r); n {
7218 chk(fmt.Errorf("invalid bool: %d", n))
7222 if err := pcall(func() {
7226 Pos, Vel, Acc [2][3]float32
7227 ExpirationTime [2]float32 // in seconds.
7234 ID ParticleSpawnerID
7244 }))(obj)).NodeParam0).deserialize(r)
7249 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
7255 Pos, Vel, Acc [2][3]float32
7256 ExpirationTime [2]float32 // in seconds.
7263 ID ParticleSpawnerID
7273 }))(obj)).NodeParam2
7280 Pos, Vel, Acc [2][3]float32
7281 ExpirationTime [2]float32 // in seconds.
7288 ID ParticleSpawnerID
7303 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7304 if err := pcall(func() {
7308 }))(obj)).ID).serialize(w)
7313 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7315 if err := pcall(func() {
7319 }))(obj)).HUD).serialize(w)
7324 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7328 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7329 if err := pcall(func() {
7333 }))(obj)).ID).deserialize(r)
7338 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7340 if err := pcall(func() {
7344 }))(obj)).HUD).deserialize(r)
7349 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUD", err))
7353 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7354 if err := pcall(func() {
7357 }))(obj)).ID).serialize(w)
7362 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7366 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7367 if err := pcall(func() {
7370 }))(obj)).ID).deserialize(r)
7375 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7379 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
7380 if err := pcall(func() {
7386 //mt:if %s.Field == HUDPos
7389 //mt:if %s.Field == HUDName
7392 //mt:if %s.Field == HUDScale
7395 //mt:if %s.Field == HUDText
7398 //mt:if %s.Field == HUDNumber
7401 //mt:if %s.Field == HUDItem
7404 //mt:if %s.Field == HUDDir
7407 //mt:if %s.Field == HUDAlign
7410 //mt:if %s.Field == HUDOffset
7413 //mt:if %s.Field == HUDWorldPos
7416 //mt:if %s.Field == HUDSize
7419 //mt:if %s.Field == HUDZIndex
7422 //mt:if %s.Field == HUDText2
7424 }))(obj)).ID).serialize(w)
7429 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
7431 if err := pcall(func() {
7437 //mt:if %s.Field == HUDPos
7440 //mt:if %s.Field == HUDName
7443 //mt:if %s.Field == HUDScale
7446 //mt:if %s.Field == HUDText
7449 //mt:if %s.Field == HUDNumber
7452 //mt:if %s.Field == HUDItem
7455 //mt:if %s.Field == HUDDir
7458 //mt:if %s.Field == HUDAlign
7461 //mt:if %s.Field == HUDOffset
7464 //mt:if %s.Field == HUDWorldPos
7467 //mt:if %s.Field == HUDSize
7470 //mt:if %s.Field == HUDZIndex
7473 //mt:if %s.Field == HUDText2
7475 }))(obj)).Field).serialize(w)
7480 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
7487 //mt:if %s.Field == HUDPos
7490 //mt:if %s.Field == HUDName
7493 //mt:if %s.Field == HUDScale
7496 //mt:if %s.Field == HUDText
7499 //mt:if %s.Field == HUDNumber
7502 //mt:if %s.Field == HUDItem
7505 //mt:if %s.Field == HUDDir
7508 //mt:if %s.Field == HUDAlign
7511 //mt:if %s.Field == HUDOffset
7514 //mt:if %s.Field == HUDWorldPos
7517 //mt:if %s.Field == HUDSize
7520 //mt:if %s.Field == HUDZIndex
7523 //mt:if %s.Field == HUDText2
7525 }))(obj)).Field < hudMax) {
7526 chk(errors.New("assertion failed: %s.Field < hudMax"))
7533 //mt:if %s.Field == HUDPos
7536 //mt:if %s.Field == HUDName
7539 //mt:if %s.Field == HUDScale
7542 //mt:if %s.Field == HUDText
7545 //mt:if %s.Field == HUDNumber
7548 //mt:if %s.Field == HUDItem
7551 //mt:if %s.Field == HUDDir
7554 //mt:if %s.Field == HUDAlign
7557 //mt:if %s.Field == HUDOffset
7560 //mt:if %s.Field == HUDWorldPos
7563 //mt:if %s.Field == HUDSize
7566 //mt:if %s.Field == HUDZIndex
7569 //mt:if %s.Field == HUDText2
7571 }))(obj)).Field == HUDPos {
7572 for local174 := range (*(*(struct {
7577 //mt:if %s.Field == HUDPos
7580 //mt:if %s.Field == HUDName
7583 //mt:if %s.Field == HUDScale
7586 //mt:if %s.Field == HUDText
7589 //mt:if %s.Field == HUDNumber
7592 //mt:if %s.Field == HUDItem
7595 //mt:if %s.Field == HUDDir
7598 //mt:if %s.Field == HUDAlign
7601 //mt:if %s.Field == HUDOffset
7604 //mt:if %s.Field == HUDWorldPos
7607 //mt:if %s.Field == HUDSize
7610 //mt:if %s.Field == HUDZIndex
7613 //mt:if %s.Field == HUDText2
7622 //mt:if %s.Field == HUDPos
7625 //mt:if %s.Field == HUDName
7628 //mt:if %s.Field == HUDScale
7631 //mt:if %s.Field == HUDText
7634 //mt:if %s.Field == HUDNumber
7637 //mt:if %s.Field == HUDItem
7640 //mt:if %s.Field == HUDDir
7643 //mt:if %s.Field == HUDAlign
7646 //mt:if %s.Field == HUDOffset
7649 //mt:if %s.Field == HUDWorldPos
7652 //mt:if %s.Field == HUDSize
7655 //mt:if %s.Field == HUDZIndex
7658 //mt:if %s.Field == HUDText2
7660 }))(obj)).Pos)[local174]
7661 write32(w, math.Float32bits(x))
7670 //mt:if %s.Field == HUDPos
7673 //mt:if %s.Field == HUDName
7676 //mt:if %s.Field == HUDScale
7679 //mt:if %s.Field == HUDText
7682 //mt:if %s.Field == HUDNumber
7685 //mt:if %s.Field == HUDItem
7688 //mt:if %s.Field == HUDDir
7691 //mt:if %s.Field == HUDAlign
7694 //mt:if %s.Field == HUDOffset
7697 //mt:if %s.Field == HUDWorldPos
7700 //mt:if %s.Field == HUDSize
7703 //mt:if %s.Field == HUDZIndex
7706 //mt:if %s.Field == HUDText2
7708 }))(obj)).Field == HUDName {
7709 if len(([]byte((*(*(struct {
7714 //mt:if %s.Field == HUDPos
7717 //mt:if %s.Field == HUDName
7720 //mt:if %s.Field == HUDScale
7723 //mt:if %s.Field == HUDText
7726 //mt:if %s.Field == HUDNumber
7729 //mt:if %s.Field == HUDItem
7732 //mt:if %s.Field == HUDDir
7735 //mt:if %s.Field == HUDAlign
7738 //mt:if %s.Field == HUDOffset
7741 //mt:if %s.Field == HUDWorldPos
7744 //mt:if %s.Field == HUDSize
7747 //mt:if %s.Field == HUDZIndex
7750 //mt:if %s.Field == HUDText2
7752 }))(obj)).Name))) > math.MaxUint16 {
7756 x := uint16(len(([]byte((*(*(struct {
7761 //mt:if %s.Field == HUDPos
7764 //mt:if %s.Field == HUDName
7767 //mt:if %s.Field == HUDScale
7770 //mt:if %s.Field == HUDText
7773 //mt:if %s.Field == HUDNumber
7776 //mt:if %s.Field == HUDItem
7779 //mt:if %s.Field == HUDDir
7782 //mt:if %s.Field == HUDAlign
7785 //mt:if %s.Field == HUDOffset
7788 //mt:if %s.Field == HUDWorldPos
7791 //mt:if %s.Field == HUDSize
7794 //mt:if %s.Field == HUDZIndex
7797 //mt:if %s.Field == HUDText2
7800 write16(w, uint16(x))
7803 _, err := w.Write(([]byte((*(*(struct {
7808 //mt:if %s.Field == HUDPos
7811 //mt:if %s.Field == HUDName
7814 //mt:if %s.Field == HUDScale
7817 //mt:if %s.Field == HUDText
7820 //mt:if %s.Field == HUDNumber
7823 //mt:if %s.Field == HUDItem
7826 //mt:if %s.Field == HUDDir
7829 //mt:if %s.Field == HUDAlign
7832 //mt:if %s.Field == HUDOffset
7835 //mt:if %s.Field == HUDWorldPos
7838 //mt:if %s.Field == HUDSize
7841 //mt:if %s.Field == HUDZIndex
7844 //mt:if %s.Field == HUDText2
7846 }))(obj)).Name))[:])
7855 //mt:if %s.Field == HUDPos
7858 //mt:if %s.Field == HUDName
7861 //mt:if %s.Field == HUDScale
7864 //mt:if %s.Field == HUDText
7867 //mt:if %s.Field == HUDNumber
7870 //mt:if %s.Field == HUDItem
7873 //mt:if %s.Field == HUDDir
7876 //mt:if %s.Field == HUDAlign
7879 //mt:if %s.Field == HUDOffset
7882 //mt:if %s.Field == HUDWorldPos
7885 //mt:if %s.Field == HUDSize
7888 //mt:if %s.Field == HUDZIndex
7891 //mt:if %s.Field == HUDText2
7893 }))(obj)).Field == HUDScale {
7894 for local175 := range (*(*(struct {
7899 //mt:if %s.Field == HUDPos
7902 //mt:if %s.Field == HUDName
7905 //mt:if %s.Field == HUDScale
7908 //mt:if %s.Field == HUDText
7911 //mt:if %s.Field == HUDNumber
7914 //mt:if %s.Field == HUDItem
7917 //mt:if %s.Field == HUDDir
7920 //mt:if %s.Field == HUDAlign
7923 //mt:if %s.Field == HUDOffset
7926 //mt:if %s.Field == HUDWorldPos
7929 //mt:if %s.Field == HUDSize
7932 //mt:if %s.Field == HUDZIndex
7935 //mt:if %s.Field == HUDText2
7944 //mt:if %s.Field == HUDPos
7947 //mt:if %s.Field == HUDName
7950 //mt:if %s.Field == HUDScale
7953 //mt:if %s.Field == HUDText
7956 //mt:if %s.Field == HUDNumber
7959 //mt:if %s.Field == HUDItem
7962 //mt:if %s.Field == HUDDir
7965 //mt:if %s.Field == HUDAlign
7968 //mt:if %s.Field == HUDOffset
7971 //mt:if %s.Field == HUDWorldPos
7974 //mt:if %s.Field == HUDSize
7977 //mt:if %s.Field == HUDZIndex
7980 //mt:if %s.Field == HUDText2
7982 }))(obj)).Scale)[local175]
7983 write32(w, math.Float32bits(x))
7992 //mt:if %s.Field == HUDPos
7995 //mt:if %s.Field == HUDName
7998 //mt:if %s.Field == HUDScale
8001 //mt:if %s.Field == HUDText
8004 //mt:if %s.Field == HUDNumber
8007 //mt:if %s.Field == HUDItem
8010 //mt:if %s.Field == HUDDir
8013 //mt:if %s.Field == HUDAlign
8016 //mt:if %s.Field == HUDOffset
8019 //mt:if %s.Field == HUDWorldPos
8022 //mt:if %s.Field == HUDSize
8025 //mt:if %s.Field == HUDZIndex
8028 //mt:if %s.Field == HUDText2
8030 }))(obj)).Field == HUDText {
8031 if len(([]byte((*(*(struct {
8036 //mt:if %s.Field == HUDPos
8039 //mt:if %s.Field == HUDName
8042 //mt:if %s.Field == HUDScale
8045 //mt:if %s.Field == HUDText
8048 //mt:if %s.Field == HUDNumber
8051 //mt:if %s.Field == HUDItem
8054 //mt:if %s.Field == HUDDir
8057 //mt:if %s.Field == HUDAlign
8060 //mt:if %s.Field == HUDOffset
8063 //mt:if %s.Field == HUDWorldPos
8066 //mt:if %s.Field == HUDSize
8069 //mt:if %s.Field == HUDZIndex
8072 //mt:if %s.Field == HUDText2
8074 }))(obj)).Text))) > math.MaxUint16 {
8078 x := uint16(len(([]byte((*(*(struct {
8083 //mt:if %s.Field == HUDPos
8086 //mt:if %s.Field == HUDName
8089 //mt:if %s.Field == HUDScale
8092 //mt:if %s.Field == HUDText
8095 //mt:if %s.Field == HUDNumber
8098 //mt:if %s.Field == HUDItem
8101 //mt:if %s.Field == HUDDir
8104 //mt:if %s.Field == HUDAlign
8107 //mt:if %s.Field == HUDOffset
8110 //mt:if %s.Field == HUDWorldPos
8113 //mt:if %s.Field == HUDSize
8116 //mt:if %s.Field == HUDZIndex
8119 //mt:if %s.Field == HUDText2
8122 write16(w, uint16(x))
8125 _, err := w.Write(([]byte((*(*(struct {
8130 //mt:if %s.Field == HUDPos
8133 //mt:if %s.Field == HUDName
8136 //mt:if %s.Field == HUDScale
8139 //mt:if %s.Field == HUDText
8142 //mt:if %s.Field == HUDNumber
8145 //mt:if %s.Field == HUDItem
8148 //mt:if %s.Field == HUDDir
8151 //mt:if %s.Field == HUDAlign
8154 //mt:if %s.Field == HUDOffset
8157 //mt:if %s.Field == HUDWorldPos
8160 //mt:if %s.Field == HUDSize
8163 //mt:if %s.Field == HUDZIndex
8166 //mt:if %s.Field == HUDText2
8168 }))(obj)).Text))[:])
8177 //mt:if %s.Field == HUDPos
8180 //mt:if %s.Field == HUDName
8183 //mt:if %s.Field == HUDScale
8186 //mt:if %s.Field == HUDText
8189 //mt:if %s.Field == HUDNumber
8192 //mt:if %s.Field == HUDItem
8195 //mt:if %s.Field == HUDDir
8198 //mt:if %s.Field == HUDAlign
8201 //mt:if %s.Field == HUDOffset
8204 //mt:if %s.Field == HUDWorldPos
8207 //mt:if %s.Field == HUDSize
8210 //mt:if %s.Field == HUDZIndex
8213 //mt:if %s.Field == HUDText2
8215 }))(obj)).Field == HUDNumber {
8222 //mt:if %s.Field == HUDPos
8225 //mt:if %s.Field == HUDName
8228 //mt:if %s.Field == HUDScale
8231 //mt:if %s.Field == HUDText
8234 //mt:if %s.Field == HUDNumber
8237 //mt:if %s.Field == HUDItem
8240 //mt:if %s.Field == HUDDir
8243 //mt:if %s.Field == HUDAlign
8246 //mt:if %s.Field == HUDOffset
8249 //mt:if %s.Field == HUDWorldPos
8252 //mt:if %s.Field == HUDSize
8255 //mt:if %s.Field == HUDZIndex
8258 //mt:if %s.Field == HUDText2
8261 write32(w, uint32(x))
8269 //mt:if %s.Field == HUDPos
8272 //mt:if %s.Field == HUDName
8275 //mt:if %s.Field == HUDScale
8278 //mt:if %s.Field == HUDText
8281 //mt:if %s.Field == HUDNumber
8284 //mt:if %s.Field == HUDItem
8287 //mt:if %s.Field == HUDDir
8290 //mt:if %s.Field == HUDAlign
8293 //mt:if %s.Field == HUDOffset
8296 //mt:if %s.Field == HUDWorldPos
8299 //mt:if %s.Field == HUDSize
8302 //mt:if %s.Field == HUDZIndex
8305 //mt:if %s.Field == HUDText2
8307 }))(obj)).Field == HUDItem {
8314 //mt:if %s.Field == HUDPos
8317 //mt:if %s.Field == HUDName
8320 //mt:if %s.Field == HUDScale
8323 //mt:if %s.Field == HUDText
8326 //mt:if %s.Field == HUDNumber
8329 //mt:if %s.Field == HUDItem
8332 //mt:if %s.Field == HUDDir
8335 //mt:if %s.Field == HUDAlign
8338 //mt:if %s.Field == HUDOffset
8341 //mt:if %s.Field == HUDWorldPos
8344 //mt:if %s.Field == HUDSize
8347 //mt:if %s.Field == HUDZIndex
8350 //mt:if %s.Field == HUDText2
8353 write32(w, uint32(x))
8361 //mt:if %s.Field == HUDPos
8364 //mt:if %s.Field == HUDName
8367 //mt:if %s.Field == HUDScale
8370 //mt:if %s.Field == HUDText
8373 //mt:if %s.Field == HUDNumber
8376 //mt:if %s.Field == HUDItem
8379 //mt:if %s.Field == HUDDir
8382 //mt:if %s.Field == HUDAlign
8385 //mt:if %s.Field == HUDOffset
8388 //mt:if %s.Field == HUDWorldPos
8391 //mt:if %s.Field == HUDSize
8394 //mt:if %s.Field == HUDZIndex
8397 //mt:if %s.Field == HUDText2
8399 }))(obj)).Field == HUDDir {
8406 //mt:if %s.Field == HUDPos
8409 //mt:if %s.Field == HUDName
8412 //mt:if %s.Field == HUDScale
8415 //mt:if %s.Field == HUDText
8418 //mt:if %s.Field == HUDNumber
8421 //mt:if %s.Field == HUDItem
8424 //mt:if %s.Field == HUDDir
8427 //mt:if %s.Field == HUDAlign
8430 //mt:if %s.Field == HUDOffset
8433 //mt:if %s.Field == HUDWorldPos
8436 //mt:if %s.Field == HUDSize
8439 //mt:if %s.Field == HUDZIndex
8442 //mt:if %s.Field == HUDText2
8445 write32(w, uint32(x))
8453 //mt:if %s.Field == HUDPos
8456 //mt:if %s.Field == HUDName
8459 //mt:if %s.Field == HUDScale
8462 //mt:if %s.Field == HUDText
8465 //mt:if %s.Field == HUDNumber
8468 //mt:if %s.Field == HUDItem
8471 //mt:if %s.Field == HUDDir
8474 //mt:if %s.Field == HUDAlign
8477 //mt:if %s.Field == HUDOffset
8480 //mt:if %s.Field == HUDWorldPos
8483 //mt:if %s.Field == HUDSize
8486 //mt:if %s.Field == HUDZIndex
8489 //mt:if %s.Field == HUDText2
8491 }))(obj)).Field == HUDAlign {
8492 for local176 := range (*(*(struct {
8497 //mt:if %s.Field == HUDPos
8500 //mt:if %s.Field == HUDName
8503 //mt:if %s.Field == HUDScale
8506 //mt:if %s.Field == HUDText
8509 //mt:if %s.Field == HUDNumber
8512 //mt:if %s.Field == HUDItem
8515 //mt:if %s.Field == HUDDir
8518 //mt:if %s.Field == HUDAlign
8521 //mt:if %s.Field == HUDOffset
8524 //mt:if %s.Field == HUDWorldPos
8527 //mt:if %s.Field == HUDSize
8530 //mt:if %s.Field == HUDZIndex
8533 //mt:if %s.Field == HUDText2
8542 //mt:if %s.Field == HUDPos
8545 //mt:if %s.Field == HUDName
8548 //mt:if %s.Field == HUDScale
8551 //mt:if %s.Field == HUDText
8554 //mt:if %s.Field == HUDNumber
8557 //mt:if %s.Field == HUDItem
8560 //mt:if %s.Field == HUDDir
8563 //mt:if %s.Field == HUDAlign
8566 //mt:if %s.Field == HUDOffset
8569 //mt:if %s.Field == HUDWorldPos
8572 //mt:if %s.Field == HUDSize
8575 //mt:if %s.Field == HUDZIndex
8578 //mt:if %s.Field == HUDText2
8580 }))(obj)).Align)[local176]
8581 write32(w, math.Float32bits(x))
8590 //mt:if %s.Field == HUDPos
8593 //mt:if %s.Field == HUDName
8596 //mt:if %s.Field == HUDScale
8599 //mt:if %s.Field == HUDText
8602 //mt:if %s.Field == HUDNumber
8605 //mt:if %s.Field == HUDItem
8608 //mt:if %s.Field == HUDDir
8611 //mt:if %s.Field == HUDAlign
8614 //mt:if %s.Field == HUDOffset
8617 //mt:if %s.Field == HUDWorldPos
8620 //mt:if %s.Field == HUDSize
8623 //mt:if %s.Field == HUDZIndex
8626 //mt:if %s.Field == HUDText2
8628 }))(obj)).Field == HUDOffset {
8629 for local177 := range (*(*(struct {
8634 //mt:if %s.Field == HUDPos
8637 //mt:if %s.Field == HUDName
8640 //mt:if %s.Field == HUDScale
8643 //mt:if %s.Field == HUDText
8646 //mt:if %s.Field == HUDNumber
8649 //mt:if %s.Field == HUDItem
8652 //mt:if %s.Field == HUDDir
8655 //mt:if %s.Field == HUDAlign
8658 //mt:if %s.Field == HUDOffset
8661 //mt:if %s.Field == HUDWorldPos
8664 //mt:if %s.Field == HUDSize
8667 //mt:if %s.Field == HUDZIndex
8670 //mt:if %s.Field == HUDText2
8679 //mt:if %s.Field == HUDPos
8682 //mt:if %s.Field == HUDName
8685 //mt:if %s.Field == HUDScale
8688 //mt:if %s.Field == HUDText
8691 //mt:if %s.Field == HUDNumber
8694 //mt:if %s.Field == HUDItem
8697 //mt:if %s.Field == HUDDir
8700 //mt:if %s.Field == HUDAlign
8703 //mt:if %s.Field == HUDOffset
8706 //mt:if %s.Field == HUDWorldPos
8709 //mt:if %s.Field == HUDSize
8712 //mt:if %s.Field == HUDZIndex
8715 //mt:if %s.Field == HUDText2
8717 }))(obj)).Offset)[local177]
8718 write32(w, math.Float32bits(x))
8727 //mt:if %s.Field == HUDPos
8730 //mt:if %s.Field == HUDName
8733 //mt:if %s.Field == HUDScale
8736 //mt:if %s.Field == HUDText
8739 //mt:if %s.Field == HUDNumber
8742 //mt:if %s.Field == HUDItem
8745 //mt:if %s.Field == HUDDir
8748 //mt:if %s.Field == HUDAlign
8751 //mt:if %s.Field == HUDOffset
8754 //mt:if %s.Field == HUDWorldPos
8757 //mt:if %s.Field == HUDSize
8760 //mt:if %s.Field == HUDZIndex
8763 //mt:if %s.Field == HUDText2
8765 }))(obj)).Field == HUDWorldPos {
8766 if err := pcall(func() {
8772 //mt:if %s.Field == HUDPos
8775 //mt:if %s.Field == HUDName
8778 //mt:if %s.Field == HUDScale
8781 //mt:if %s.Field == HUDText
8784 //mt:if %s.Field == HUDNumber
8787 //mt:if %s.Field == HUDItem
8790 //mt:if %s.Field == HUDDir
8793 //mt:if %s.Field == HUDAlign
8796 //mt:if %s.Field == HUDOffset
8799 //mt:if %s.Field == HUDWorldPos
8802 //mt:if %s.Field == HUDSize
8805 //mt:if %s.Field == HUDZIndex
8808 //mt:if %s.Field == HUDText2
8810 }))(obj)).WorldPos).serialize(w)
8815 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
8823 //mt:if %s.Field == HUDPos
8826 //mt:if %s.Field == HUDName
8829 //mt:if %s.Field == HUDScale
8832 //mt:if %s.Field == HUDText
8835 //mt:if %s.Field == HUDNumber
8838 //mt:if %s.Field == HUDItem
8841 //mt:if %s.Field == HUDDir
8844 //mt:if %s.Field == HUDAlign
8847 //mt:if %s.Field == HUDOffset
8850 //mt:if %s.Field == HUDWorldPos
8853 //mt:if %s.Field == HUDSize
8856 //mt:if %s.Field == HUDZIndex
8859 //mt:if %s.Field == HUDText2
8861 }))(obj)).Field == HUDSize {
8862 for local178 := range (*(*(struct {
8867 //mt:if %s.Field == HUDPos
8870 //mt:if %s.Field == HUDName
8873 //mt:if %s.Field == HUDScale
8876 //mt:if %s.Field == HUDText
8879 //mt:if %s.Field == HUDNumber
8882 //mt:if %s.Field == HUDItem
8885 //mt:if %s.Field == HUDDir
8888 //mt:if %s.Field == HUDAlign
8891 //mt:if %s.Field == HUDOffset
8894 //mt:if %s.Field == HUDWorldPos
8897 //mt:if %s.Field == HUDSize
8900 //mt:if %s.Field == HUDZIndex
8903 //mt:if %s.Field == HUDText2
8912 //mt:if %s.Field == HUDPos
8915 //mt:if %s.Field == HUDName
8918 //mt:if %s.Field == HUDScale
8921 //mt:if %s.Field == HUDText
8924 //mt:if %s.Field == HUDNumber
8927 //mt:if %s.Field == HUDItem
8930 //mt:if %s.Field == HUDDir
8933 //mt:if %s.Field == HUDAlign
8936 //mt:if %s.Field == HUDOffset
8939 //mt:if %s.Field == HUDWorldPos
8942 //mt:if %s.Field == HUDSize
8945 //mt:if %s.Field == HUDZIndex
8948 //mt:if %s.Field == HUDText2
8950 }))(obj)).Size)[local178]
8951 write32(w, uint32(x))
8960 //mt:if %s.Field == HUDPos
8963 //mt:if %s.Field == HUDName
8966 //mt:if %s.Field == HUDScale
8969 //mt:if %s.Field == HUDText
8972 //mt:if %s.Field == HUDNumber
8975 //mt:if %s.Field == HUDItem
8978 //mt:if %s.Field == HUDDir
8981 //mt:if %s.Field == HUDAlign
8984 //mt:if %s.Field == HUDOffset
8987 //mt:if %s.Field == HUDWorldPos
8990 //mt:if %s.Field == HUDSize
8993 //mt:if %s.Field == HUDZIndex
8996 //mt:if %s.Field == HUDText2
8998 }))(obj)).Field == HUDZIndex {
9005 //mt:if %s.Field == HUDPos
9008 //mt:if %s.Field == HUDName
9011 //mt:if %s.Field == HUDScale
9014 //mt:if %s.Field == HUDText
9017 //mt:if %s.Field == HUDNumber
9020 //mt:if %s.Field == HUDItem
9023 //mt:if %s.Field == HUDDir
9026 //mt:if %s.Field == HUDAlign
9029 //mt:if %s.Field == HUDOffset
9032 //mt:if %s.Field == HUDWorldPos
9035 //mt:if %s.Field == HUDSize
9038 //mt:if %s.Field == HUDZIndex
9041 //mt:if %s.Field == HUDText2
9044 write32(w, uint32(x))
9052 //mt:if %s.Field == HUDPos
9055 //mt:if %s.Field == HUDName
9058 //mt:if %s.Field == HUDScale
9061 //mt:if %s.Field == HUDText
9064 //mt:if %s.Field == HUDNumber
9067 //mt:if %s.Field == HUDItem
9070 //mt:if %s.Field == HUDDir
9073 //mt:if %s.Field == HUDAlign
9076 //mt:if %s.Field == HUDOffset
9079 //mt:if %s.Field == HUDWorldPos
9082 //mt:if %s.Field == HUDSize
9085 //mt:if %s.Field == HUDZIndex
9088 //mt:if %s.Field == HUDText2
9090 }))(obj)).Field == HUDText2 {
9091 if len(([]byte((*(*(struct {
9096 //mt:if %s.Field == HUDPos
9099 //mt:if %s.Field == HUDName
9102 //mt:if %s.Field == HUDScale
9105 //mt:if %s.Field == HUDText
9108 //mt:if %s.Field == HUDNumber
9111 //mt:if %s.Field == HUDItem
9114 //mt:if %s.Field == HUDDir
9117 //mt:if %s.Field == HUDAlign
9120 //mt:if %s.Field == HUDOffset
9123 //mt:if %s.Field == HUDWorldPos
9126 //mt:if %s.Field == HUDSize
9129 //mt:if %s.Field == HUDZIndex
9132 //mt:if %s.Field == HUDText2
9134 }))(obj)).Text2))) > math.MaxUint16 {
9138 x := uint16(len(([]byte((*(*(struct {
9143 //mt:if %s.Field == HUDPos
9146 //mt:if %s.Field == HUDName
9149 //mt:if %s.Field == HUDScale
9152 //mt:if %s.Field == HUDText
9155 //mt:if %s.Field == HUDNumber
9158 //mt:if %s.Field == HUDItem
9161 //mt:if %s.Field == HUDDir
9164 //mt:if %s.Field == HUDAlign
9167 //mt:if %s.Field == HUDOffset
9170 //mt:if %s.Field == HUDWorldPos
9173 //mt:if %s.Field == HUDSize
9176 //mt:if %s.Field == HUDZIndex
9179 //mt:if %s.Field == HUDText2
9182 write16(w, uint16(x))
9185 _, err := w.Write(([]byte((*(*(struct {
9190 //mt:if %s.Field == HUDPos
9193 //mt:if %s.Field == HUDName
9196 //mt:if %s.Field == HUDScale
9199 //mt:if %s.Field == HUDText
9202 //mt:if %s.Field == HUDNumber
9205 //mt:if %s.Field == HUDItem
9208 //mt:if %s.Field == HUDDir
9211 //mt:if %s.Field == HUDAlign
9214 //mt:if %s.Field == HUDOffset
9217 //mt:if %s.Field == HUDWorldPos
9220 //mt:if %s.Field == HUDSize
9223 //mt:if %s.Field == HUDZIndex
9226 //mt:if %s.Field == HUDText2
9228 }))(obj)).Text2))[:])
9234 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9235 if err := pcall(func() {
9241 //mt:if %s.Field == HUDPos
9244 //mt:if %s.Field == HUDName
9247 //mt:if %s.Field == HUDScale
9250 //mt:if %s.Field == HUDText
9253 //mt:if %s.Field == HUDNumber
9256 //mt:if %s.Field == HUDItem
9259 //mt:if %s.Field == HUDDir
9262 //mt:if %s.Field == HUDAlign
9265 //mt:if %s.Field == HUDOffset
9268 //mt:if %s.Field == HUDWorldPos
9271 //mt:if %s.Field == HUDSize
9274 //mt:if %s.Field == HUDZIndex
9277 //mt:if %s.Field == HUDText2
9279 }))(obj)).ID).deserialize(r)
9284 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDID", err))
9286 if err := pcall(func() {
9292 //mt:if %s.Field == HUDPos
9295 //mt:if %s.Field == HUDName
9298 //mt:if %s.Field == HUDScale
9301 //mt:if %s.Field == HUDText
9304 //mt:if %s.Field == HUDNumber
9307 //mt:if %s.Field == HUDItem
9310 //mt:if %s.Field == HUDDir
9313 //mt:if %s.Field == HUDAlign
9316 //mt:if %s.Field == HUDOffset
9319 //mt:if %s.Field == HUDWorldPos
9322 //mt:if %s.Field == HUDSize
9325 //mt:if %s.Field == HUDZIndex
9328 //mt:if %s.Field == HUDText2
9330 }))(obj)).Field).deserialize(r)
9335 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDField", err))
9342 //mt:if %s.Field == HUDPos
9345 //mt:if %s.Field == HUDName
9348 //mt:if %s.Field == HUDScale
9351 //mt:if %s.Field == HUDText
9354 //mt:if %s.Field == HUDNumber
9357 //mt:if %s.Field == HUDItem
9360 //mt:if %s.Field == HUDDir
9363 //mt:if %s.Field == HUDAlign
9366 //mt:if %s.Field == HUDOffset
9369 //mt:if %s.Field == HUDWorldPos
9372 //mt:if %s.Field == HUDSize
9375 //mt:if %s.Field == HUDZIndex
9378 //mt:if %s.Field == HUDText2
9380 }))(obj)).Field < hudMax) {
9381 chk(errors.New("assertion failed: %s.Field < hudMax"))
9388 //mt:if %s.Field == HUDPos
9391 //mt:if %s.Field == HUDName
9394 //mt:if %s.Field == HUDScale
9397 //mt:if %s.Field == HUDText
9400 //mt:if %s.Field == HUDNumber
9403 //mt:if %s.Field == HUDItem
9406 //mt:if %s.Field == HUDDir
9409 //mt:if %s.Field == HUDAlign
9412 //mt:if %s.Field == HUDOffset
9415 //mt:if %s.Field == HUDWorldPos
9418 //mt:if %s.Field == HUDSize
9421 //mt:if %s.Field == HUDZIndex
9424 //mt:if %s.Field == HUDText2
9426 }))(obj)).Field == HUDPos {
9427 for local179 := range (*(*(struct {
9432 //mt:if %s.Field == HUDPos
9435 //mt:if %s.Field == HUDName
9438 //mt:if %s.Field == HUDScale
9441 //mt:if %s.Field == HUDText
9444 //mt:if %s.Field == HUDNumber
9447 //mt:if %s.Field == HUDItem
9450 //mt:if %s.Field == HUDDir
9453 //mt:if %s.Field == HUDAlign
9456 //mt:if %s.Field == HUDOffset
9459 //mt:if %s.Field == HUDWorldPos
9462 //mt:if %s.Field == HUDSize
9465 //mt:if %s.Field == HUDZIndex
9468 //mt:if %s.Field == HUDText2
9472 p := &((*(*(struct {
9477 //mt:if %s.Field == HUDPos
9480 //mt:if %s.Field == HUDName
9483 //mt:if %s.Field == HUDScale
9486 //mt:if %s.Field == HUDText
9489 //mt:if %s.Field == HUDNumber
9492 //mt:if %s.Field == HUDItem
9495 //mt:if %s.Field == HUDDir
9498 //mt:if %s.Field == HUDAlign
9501 //mt:if %s.Field == HUDOffset
9504 //mt:if %s.Field == HUDWorldPos
9507 //mt:if %s.Field == HUDSize
9510 //mt:if %s.Field == HUDZIndex
9513 //mt:if %s.Field == HUDText2
9515 }))(obj)).Pos)[local179]
9516 *p = math.Float32frombits(read32(r))
9525 //mt:if %s.Field == HUDPos
9528 //mt:if %s.Field == HUDName
9531 //mt:if %s.Field == HUDScale
9534 //mt:if %s.Field == HUDText
9537 //mt:if %s.Field == HUDNumber
9540 //mt:if %s.Field == HUDItem
9543 //mt:if %s.Field == HUDDir
9546 //mt:if %s.Field == HUDAlign
9549 //mt:if %s.Field == HUDOffset
9552 //mt:if %s.Field == HUDWorldPos
9555 //mt:if %s.Field == HUDSize
9558 //mt:if %s.Field == HUDZIndex
9561 //mt:if %s.Field == HUDText2
9563 }))(obj)).Field == HUDName {
9564 var local180 []uint8
9570 (local180) = make([]uint8, local181)
9572 _, err := io.ReadFull(r, (local180)[:])
9580 //mt:if %s.Field == HUDPos
9583 //mt:if %s.Field == HUDName
9586 //mt:if %s.Field == HUDScale
9589 //mt:if %s.Field == HUDText
9592 //mt:if %s.Field == HUDNumber
9595 //mt:if %s.Field == HUDItem
9598 //mt:if %s.Field == HUDDir
9601 //mt:if %s.Field == HUDAlign
9604 //mt:if %s.Field == HUDOffset
9607 //mt:if %s.Field == HUDWorldPos
9610 //mt:if %s.Field == HUDSize
9613 //mt:if %s.Field == HUDZIndex
9616 //mt:if %s.Field == HUDText2
9618 }))(obj)).Name) = string(local180)
9625 //mt:if %s.Field == HUDPos
9628 //mt:if %s.Field == HUDName
9631 //mt:if %s.Field == HUDScale
9634 //mt:if %s.Field == HUDText
9637 //mt:if %s.Field == HUDNumber
9640 //mt:if %s.Field == HUDItem
9643 //mt:if %s.Field == HUDDir
9646 //mt:if %s.Field == HUDAlign
9649 //mt:if %s.Field == HUDOffset
9652 //mt:if %s.Field == HUDWorldPos
9655 //mt:if %s.Field == HUDSize
9658 //mt:if %s.Field == HUDZIndex
9661 //mt:if %s.Field == HUDText2
9663 }))(obj)).Field == HUDScale {
9664 for local182 := range (*(*(struct {
9669 //mt:if %s.Field == HUDPos
9672 //mt:if %s.Field == HUDName
9675 //mt:if %s.Field == HUDScale
9678 //mt:if %s.Field == HUDText
9681 //mt:if %s.Field == HUDNumber
9684 //mt:if %s.Field == HUDItem
9687 //mt:if %s.Field == HUDDir
9690 //mt:if %s.Field == HUDAlign
9693 //mt:if %s.Field == HUDOffset
9696 //mt:if %s.Field == HUDWorldPos
9699 //mt:if %s.Field == HUDSize
9702 //mt:if %s.Field == HUDZIndex
9705 //mt:if %s.Field == HUDText2
9709 p := &((*(*(struct {
9714 //mt:if %s.Field == HUDPos
9717 //mt:if %s.Field == HUDName
9720 //mt:if %s.Field == HUDScale
9723 //mt:if %s.Field == HUDText
9726 //mt:if %s.Field == HUDNumber
9729 //mt:if %s.Field == HUDItem
9732 //mt:if %s.Field == HUDDir
9735 //mt:if %s.Field == HUDAlign
9738 //mt:if %s.Field == HUDOffset
9741 //mt:if %s.Field == HUDWorldPos
9744 //mt:if %s.Field == HUDSize
9747 //mt:if %s.Field == HUDZIndex
9750 //mt:if %s.Field == HUDText2
9752 }))(obj)).Scale)[local182]
9753 *p = math.Float32frombits(read32(r))
9762 //mt:if %s.Field == HUDPos
9765 //mt:if %s.Field == HUDName
9768 //mt:if %s.Field == HUDScale
9771 //mt:if %s.Field == HUDText
9774 //mt:if %s.Field == HUDNumber
9777 //mt:if %s.Field == HUDItem
9780 //mt:if %s.Field == HUDDir
9783 //mt:if %s.Field == HUDAlign
9786 //mt:if %s.Field == HUDOffset
9789 //mt:if %s.Field == HUDWorldPos
9792 //mt:if %s.Field == HUDSize
9795 //mt:if %s.Field == HUDZIndex
9798 //mt:if %s.Field == HUDText2
9800 }))(obj)).Field == HUDText {
9801 var local183 []uint8
9807 (local183) = make([]uint8, local184)
9809 _, err := io.ReadFull(r, (local183)[:])
9817 //mt:if %s.Field == HUDPos
9820 //mt:if %s.Field == HUDName
9823 //mt:if %s.Field == HUDScale
9826 //mt:if %s.Field == HUDText
9829 //mt:if %s.Field == HUDNumber
9832 //mt:if %s.Field == HUDItem
9835 //mt:if %s.Field == HUDDir
9838 //mt:if %s.Field == HUDAlign
9841 //mt:if %s.Field == HUDOffset
9844 //mt:if %s.Field == HUDWorldPos
9847 //mt:if %s.Field == HUDSize
9850 //mt:if %s.Field == HUDZIndex
9853 //mt:if %s.Field == HUDText2
9855 }))(obj)).Text) = string(local183)
9862 //mt:if %s.Field == HUDPos
9865 //mt:if %s.Field == HUDName
9868 //mt:if %s.Field == HUDScale
9871 //mt:if %s.Field == HUDText
9874 //mt:if %s.Field == HUDNumber
9877 //mt:if %s.Field == HUDItem
9880 //mt:if %s.Field == HUDDir
9883 //mt:if %s.Field == HUDAlign
9886 //mt:if %s.Field == HUDOffset
9889 //mt:if %s.Field == HUDWorldPos
9892 //mt:if %s.Field == HUDSize
9895 //mt:if %s.Field == HUDZIndex
9898 //mt:if %s.Field == HUDText2
9900 }))(obj)).Field == HUDNumber {
9907 //mt:if %s.Field == HUDPos
9910 //mt:if %s.Field == HUDName
9913 //mt:if %s.Field == HUDScale
9916 //mt:if %s.Field == HUDText
9919 //mt:if %s.Field == HUDNumber
9922 //mt:if %s.Field == HUDItem
9925 //mt:if %s.Field == HUDDir
9928 //mt:if %s.Field == HUDAlign
9931 //mt:if %s.Field == HUDOffset
9934 //mt:if %s.Field == HUDWorldPos
9937 //mt:if %s.Field == HUDSize
9940 //mt:if %s.Field == HUDZIndex
9943 //mt:if %s.Field == HUDText2
9954 //mt:if %s.Field == HUDPos
9957 //mt:if %s.Field == HUDName
9960 //mt:if %s.Field == HUDScale
9963 //mt:if %s.Field == HUDText
9966 //mt:if %s.Field == HUDNumber
9969 //mt:if %s.Field == HUDItem
9972 //mt:if %s.Field == HUDDir
9975 //mt:if %s.Field == HUDAlign
9978 //mt:if %s.Field == HUDOffset
9981 //mt:if %s.Field == HUDWorldPos
9984 //mt:if %s.Field == HUDSize
9987 //mt:if %s.Field == HUDZIndex
9990 //mt:if %s.Field == HUDText2
9992 }))(obj)).Field == HUDItem {
9999 //mt:if %s.Field == HUDPos
10002 //mt:if %s.Field == HUDName
10005 //mt:if %s.Field == HUDScale
10008 //mt:if %s.Field == HUDText
10011 //mt:if %s.Field == HUDNumber
10014 //mt:if %s.Field == HUDItem
10017 //mt:if %s.Field == HUDDir
10020 //mt:if %s.Field == HUDAlign
10023 //mt:if %s.Field == HUDOffset
10026 //mt:if %s.Field == HUDWorldPos
10029 //mt:if %s.Field == HUDSize
10032 //mt:if %s.Field == HUDZIndex
10035 //mt:if %s.Field == HUDText2
10046 //mt:if %s.Field == HUDPos
10049 //mt:if %s.Field == HUDName
10052 //mt:if %s.Field == HUDScale
10055 //mt:if %s.Field == HUDText
10058 //mt:if %s.Field == HUDNumber
10061 //mt:if %s.Field == HUDItem
10064 //mt:if %s.Field == HUDDir
10067 //mt:if %s.Field == HUDAlign
10070 //mt:if %s.Field == HUDOffset
10073 //mt:if %s.Field == HUDWorldPos
10076 //mt:if %s.Field == HUDSize
10079 //mt:if %s.Field == HUDZIndex
10082 //mt:if %s.Field == HUDText2
10084 }))(obj)).Field == HUDDir {
10086 p := &(*(*(struct {
10091 //mt:if %s.Field == HUDPos
10094 //mt:if %s.Field == HUDName
10097 //mt:if %s.Field == HUDScale
10100 //mt:if %s.Field == HUDText
10103 //mt:if %s.Field == HUDNumber
10106 //mt:if %s.Field == HUDItem
10109 //mt:if %s.Field == HUDDir
10112 //mt:if %s.Field == HUDAlign
10115 //mt:if %s.Field == HUDOffset
10118 //mt:if %s.Field == HUDWorldPos
10121 //mt:if %s.Field == HUDSize
10124 //mt:if %s.Field == HUDZIndex
10127 //mt:if %s.Field == HUDText2
10138 //mt:if %s.Field == HUDPos
10141 //mt:if %s.Field == HUDName
10144 //mt:if %s.Field == HUDScale
10147 //mt:if %s.Field == HUDText
10150 //mt:if %s.Field == HUDNumber
10153 //mt:if %s.Field == HUDItem
10156 //mt:if %s.Field == HUDDir
10159 //mt:if %s.Field == HUDAlign
10162 //mt:if %s.Field == HUDOffset
10165 //mt:if %s.Field == HUDWorldPos
10168 //mt:if %s.Field == HUDSize
10171 //mt:if %s.Field == HUDZIndex
10174 //mt:if %s.Field == HUDText2
10176 }))(obj)).Field == HUDAlign {
10177 for local185 := range (*(*(struct {
10182 //mt:if %s.Field == HUDPos
10185 //mt:if %s.Field == HUDName
10188 //mt:if %s.Field == HUDScale
10191 //mt:if %s.Field == HUDText
10194 //mt:if %s.Field == HUDNumber
10197 //mt:if %s.Field == HUDItem
10200 //mt:if %s.Field == HUDDir
10203 //mt:if %s.Field == HUDAlign
10206 //mt:if %s.Field == HUDOffset
10209 //mt:if %s.Field == HUDWorldPos
10212 //mt:if %s.Field == HUDSize
10215 //mt:if %s.Field == HUDZIndex
10218 //mt:if %s.Field == HUDText2
10222 p := &((*(*(struct {
10227 //mt:if %s.Field == HUDPos
10230 //mt:if %s.Field == HUDName
10233 //mt:if %s.Field == HUDScale
10236 //mt:if %s.Field == HUDText
10239 //mt:if %s.Field == HUDNumber
10242 //mt:if %s.Field == HUDItem
10245 //mt:if %s.Field == HUDDir
10248 //mt:if %s.Field == HUDAlign
10251 //mt:if %s.Field == HUDOffset
10254 //mt:if %s.Field == HUDWorldPos
10257 //mt:if %s.Field == HUDSize
10260 //mt:if %s.Field == HUDZIndex
10263 //mt:if %s.Field == HUDText2
10265 }))(obj)).Align)[local185]
10266 *p = math.Float32frombits(read32(r))
10275 //mt:if %s.Field == HUDPos
10278 //mt:if %s.Field == HUDName
10281 //mt:if %s.Field == HUDScale
10284 //mt:if %s.Field == HUDText
10287 //mt:if %s.Field == HUDNumber
10290 //mt:if %s.Field == HUDItem
10293 //mt:if %s.Field == HUDDir
10296 //mt:if %s.Field == HUDAlign
10299 //mt:if %s.Field == HUDOffset
10302 //mt:if %s.Field == HUDWorldPos
10305 //mt:if %s.Field == HUDSize
10308 //mt:if %s.Field == HUDZIndex
10311 //mt:if %s.Field == HUDText2
10313 }))(obj)).Field == HUDOffset {
10314 for local186 := range (*(*(struct {
10319 //mt:if %s.Field == HUDPos
10322 //mt:if %s.Field == HUDName
10325 //mt:if %s.Field == HUDScale
10328 //mt:if %s.Field == HUDText
10331 //mt:if %s.Field == HUDNumber
10334 //mt:if %s.Field == HUDItem
10337 //mt:if %s.Field == HUDDir
10340 //mt:if %s.Field == HUDAlign
10343 //mt:if %s.Field == HUDOffset
10346 //mt:if %s.Field == HUDWorldPos
10349 //mt:if %s.Field == HUDSize
10352 //mt:if %s.Field == HUDZIndex
10355 //mt:if %s.Field == HUDText2
10359 p := &((*(*(struct {
10364 //mt:if %s.Field == HUDPos
10367 //mt:if %s.Field == HUDName
10370 //mt:if %s.Field == HUDScale
10373 //mt:if %s.Field == HUDText
10376 //mt:if %s.Field == HUDNumber
10379 //mt:if %s.Field == HUDItem
10382 //mt:if %s.Field == HUDDir
10385 //mt:if %s.Field == HUDAlign
10388 //mt:if %s.Field == HUDOffset
10391 //mt:if %s.Field == HUDWorldPos
10394 //mt:if %s.Field == HUDSize
10397 //mt:if %s.Field == HUDZIndex
10400 //mt:if %s.Field == HUDText2
10402 }))(obj)).Offset)[local186]
10403 *p = math.Float32frombits(read32(r))
10412 //mt:if %s.Field == HUDPos
10415 //mt:if %s.Field == HUDName
10418 //mt:if %s.Field == HUDScale
10421 //mt:if %s.Field == HUDText
10424 //mt:if %s.Field == HUDNumber
10427 //mt:if %s.Field == HUDItem
10430 //mt:if %s.Field == HUDDir
10433 //mt:if %s.Field == HUDAlign
10436 //mt:if %s.Field == HUDOffset
10439 //mt:if %s.Field == HUDWorldPos
10442 //mt:if %s.Field == HUDSize
10445 //mt:if %s.Field == HUDZIndex
10448 //mt:if %s.Field == HUDText2
10450 }))(obj)).Field == HUDWorldPos {
10451 if err := pcall(func() {
10457 //mt:if %s.Field == HUDPos
10460 //mt:if %s.Field == HUDName
10463 //mt:if %s.Field == HUDScale
10466 //mt:if %s.Field == HUDText
10469 //mt:if %s.Field == HUDNumber
10472 //mt:if %s.Field == HUDItem
10475 //mt:if %s.Field == HUDDir
10478 //mt:if %s.Field == HUDAlign
10481 //mt:if %s.Field == HUDOffset
10484 //mt:if %s.Field == HUDWorldPos
10487 //mt:if %s.Field == HUDSize
10490 //mt:if %s.Field == HUDZIndex
10493 //mt:if %s.Field == HUDText2
10495 }))(obj)).WorldPos).deserialize(r)
10500 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
10508 //mt:if %s.Field == HUDPos
10511 //mt:if %s.Field == HUDName
10514 //mt:if %s.Field == HUDScale
10517 //mt:if %s.Field == HUDText
10520 //mt:if %s.Field == HUDNumber
10523 //mt:if %s.Field == HUDItem
10526 //mt:if %s.Field == HUDDir
10529 //mt:if %s.Field == HUDAlign
10532 //mt:if %s.Field == HUDOffset
10535 //mt:if %s.Field == HUDWorldPos
10538 //mt:if %s.Field == HUDSize
10541 //mt:if %s.Field == HUDZIndex
10544 //mt:if %s.Field == HUDText2
10546 }))(obj)).Field == HUDSize {
10547 for local187 := range (*(*(struct {
10552 //mt:if %s.Field == HUDPos
10555 //mt:if %s.Field == HUDName
10558 //mt:if %s.Field == HUDScale
10561 //mt:if %s.Field == HUDText
10564 //mt:if %s.Field == HUDNumber
10567 //mt:if %s.Field == HUDItem
10570 //mt:if %s.Field == HUDDir
10573 //mt:if %s.Field == HUDAlign
10576 //mt:if %s.Field == HUDOffset
10579 //mt:if %s.Field == HUDWorldPos
10582 //mt:if %s.Field == HUDSize
10585 //mt:if %s.Field == HUDZIndex
10588 //mt:if %s.Field == HUDText2
10592 p := &((*(*(struct {
10597 //mt:if %s.Field == HUDPos
10600 //mt:if %s.Field == HUDName
10603 //mt:if %s.Field == HUDScale
10606 //mt:if %s.Field == HUDText
10609 //mt:if %s.Field == HUDNumber
10612 //mt:if %s.Field == HUDItem
10615 //mt:if %s.Field == HUDDir
10618 //mt:if %s.Field == HUDAlign
10621 //mt:if %s.Field == HUDOffset
10624 //mt:if %s.Field == HUDWorldPos
10627 //mt:if %s.Field == HUDSize
10630 //mt:if %s.Field == HUDZIndex
10633 //mt:if %s.Field == HUDText2
10635 }))(obj)).Size)[local187]
10636 *p = int32(read32(r))
10645 //mt:if %s.Field == HUDPos
10648 //mt:if %s.Field == HUDName
10651 //mt:if %s.Field == HUDScale
10654 //mt:if %s.Field == HUDText
10657 //mt:if %s.Field == HUDNumber
10660 //mt:if %s.Field == HUDItem
10663 //mt:if %s.Field == HUDDir
10666 //mt:if %s.Field == HUDAlign
10669 //mt:if %s.Field == HUDOffset
10672 //mt:if %s.Field == HUDWorldPos
10675 //mt:if %s.Field == HUDSize
10678 //mt:if %s.Field == HUDZIndex
10681 //mt:if %s.Field == HUDText2
10683 }))(obj)).Field == HUDZIndex {
10685 p := &(*(*(struct {
10690 //mt:if %s.Field == HUDPos
10693 //mt:if %s.Field == HUDName
10696 //mt:if %s.Field == HUDScale
10699 //mt:if %s.Field == HUDText
10702 //mt:if %s.Field == HUDNumber
10705 //mt:if %s.Field == HUDItem
10708 //mt:if %s.Field == HUDDir
10711 //mt:if %s.Field == HUDAlign
10714 //mt:if %s.Field == HUDOffset
10717 //mt:if %s.Field == HUDWorldPos
10720 //mt:if %s.Field == HUDSize
10723 //mt:if %s.Field == HUDZIndex
10726 //mt:if %s.Field == HUDText2
10729 *p = int32(read32(r))
10737 //mt:if %s.Field == HUDPos
10740 //mt:if %s.Field == HUDName
10743 //mt:if %s.Field == HUDScale
10746 //mt:if %s.Field == HUDText
10749 //mt:if %s.Field == HUDNumber
10752 //mt:if %s.Field == HUDItem
10755 //mt:if %s.Field == HUDDir
10758 //mt:if %s.Field == HUDAlign
10761 //mt:if %s.Field == HUDOffset
10764 //mt:if %s.Field == HUDWorldPos
10767 //mt:if %s.Field == HUDSize
10770 //mt:if %s.Field == HUDZIndex
10773 //mt:if %s.Field == HUDText2
10775 }))(obj)).Field == HUDText2 {
10776 var local188 []uint8
10777 var local189 uint16
10782 (local188) = make([]uint8, local189)
10784 _, err := io.ReadFull(r, (local188)[:])
10792 //mt:if %s.Field == HUDPos
10795 //mt:if %s.Field == HUDName
10798 //mt:if %s.Field == HUDScale
10801 //mt:if %s.Field == HUDText
10804 //mt:if %s.Field == HUDNumber
10807 //mt:if %s.Field == HUDItem
10810 //mt:if %s.Field == HUDDir
10813 //mt:if %s.Field == HUDAlign
10816 //mt:if %s.Field == HUDOffset
10819 //mt:if %s.Field == HUDWorldPos
10822 //mt:if %s.Field == HUDSize
10825 //mt:if %s.Field == HUDZIndex
10828 //mt:if %s.Field == HUDText2
10830 }))(obj)).Text2) = string(local188)
10834 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
10835 if err := pcall(func() {
10839 Flags, Mask HUDFlags
10840 }))(obj)).Flags).serialize(w)
10845 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10847 if err := pcall(func() {
10851 Flags, Mask HUDFlags
10852 }))(obj)).Mask).serialize(w)
10857 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10861 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
10862 if err := pcall(func() {
10866 Flags, Mask HUDFlags
10867 }))(obj)).Flags).deserialize(r)
10872 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10874 if err := pcall(func() {
10878 Flags, Mask HUDFlags
10879 }))(obj)).Mask).deserialize(r)
10884 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDFlags", err))
10888 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
10889 if err := pcall(func() {
10893 //mt:if %s.Param == HotbarSize
10894 //mt:const uint16(4) // Size of Size field.
10897 //mt:if %s.Param != HotbarSize
10899 }))(obj)).Param).serialize(w)
10904 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10909 //mt:if %s.Param == HotbarSize
10910 //mt:const uint16(4) // Size of Size field.
10913 //mt:if %s.Param != HotbarSize
10915 }))(obj)).Param == HotbarSize {
10917 local190 := uint16(4) // Size of Size field.
10920 write16(w, uint16(x))
10927 //mt:if %s.Param == HotbarSize
10928 //mt:const uint16(4) // Size of Size field.
10931 //mt:if %s.Param != HotbarSize
10934 write32(w, uint32(x))
10940 //mt:if %s.Param == HotbarSize
10941 //mt:const uint16(4) // Size of Size field.
10944 //mt:if %s.Param != HotbarSize
10946 }))(obj)).Param != HotbarSize {
10947 if err := pcall(func() {
10951 //mt:if %s.Param == HotbarSize
10952 //mt:const uint16(4) // Size of Size field.
10955 //mt:if %s.Param != HotbarSize
10957 }))(obj)).Img).serialize(w)
10962 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
10967 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
10968 if err := pcall(func() {
10972 //mt:if %s.Param == HotbarSize
10973 //mt:const uint16(4) // Size of Size field.
10976 //mt:if %s.Param != HotbarSize
10978 }))(obj)).Param).deserialize(r)
10983 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HotbarParam", err))
10988 //mt:if %s.Param == HotbarSize
10989 //mt:const uint16(4) // Size of Size field.
10992 //mt:if %s.Param != HotbarSize
10994 }))(obj)).Param == HotbarSize {
10996 var local191 uint16
10997 local192 := uint16(4) // Size of Size field.
11002 if local191 != local192 {
11003 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local191))
11007 p := &(*(*(struct {
11010 //mt:if %s.Param == HotbarSize
11011 //mt:const uint16(4) // Size of Size field.
11014 //mt:if %s.Param != HotbarSize
11017 *p = int32(read32(r))
11023 //mt:if %s.Param == HotbarSize
11024 //mt:const uint16(4) // Size of Size field.
11027 //mt:if %s.Param != HotbarSize
11029 }))(obj)).Param != HotbarSize {
11030 if err := pcall(func() {
11034 //mt:if %s.Param == HotbarSize
11035 //mt:const uint16(4) // Size of Size field.
11038 //mt:if %s.Param != HotbarSize
11040 }))(obj)).Img).deserialize(r)
11045 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11050 func (obj *ToCltBreath) serialize(w io.Writer) {
11055 write16(w, uint16(x))
11059 func (obj *ToCltBreath) deserialize(r io.Reader) {
11061 p := &(*(*(struct {
11068 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11071 BgColor color.NRGBA
11074 SunFogTint color.NRGBA
11075 MoonFogTint color.NRGBA
11078 //mt:if %s.Type == "skybox"
11081 //mt:if %s.Type == "regular"
11082 DaySky, DayHorizon,
11083 DawnSky, DawnHorizon,
11084 NightSky, NightHorizon,
11087 w.Write([]byte{x.A, x.R, x.G, x.B})
11090 if len(([]byte((*(*(struct {
11091 BgColor color.NRGBA
11094 SunFogTint color.NRGBA
11095 MoonFogTint color.NRGBA
11098 //mt:if %s.Type == "skybox"
11101 //mt:if %s.Type == "regular"
11102 DaySky, DayHorizon,
11103 DawnSky, DawnHorizon,
11104 NightSky, NightHorizon,
11106 }))(obj)).Type))) > math.MaxUint16 {
11110 x := uint16(len(([]byte((*(*(struct {
11111 BgColor color.NRGBA
11114 SunFogTint color.NRGBA
11115 MoonFogTint color.NRGBA
11118 //mt:if %s.Type == "skybox"
11121 //mt:if %s.Type == "regular"
11122 DaySky, DayHorizon,
11123 DawnSky, DawnHorizon,
11124 NightSky, NightHorizon,
11127 write16(w, uint16(x))
11130 _, err := w.Write(([]byte((*(*(struct {
11131 BgColor color.NRGBA
11134 SunFogTint color.NRGBA
11135 MoonFogTint color.NRGBA
11138 //mt:if %s.Type == "skybox"
11141 //mt:if %s.Type == "regular"
11142 DaySky, DayHorizon,
11143 DawnSky, DawnHorizon,
11144 NightSky, NightHorizon,
11146 }))(obj)).Type))[:])
11151 BgColor color.NRGBA
11154 SunFogTint color.NRGBA
11155 MoonFogTint color.NRGBA
11158 //mt:if %s.Type == "skybox"
11161 //mt:if %s.Type == "regular"
11162 DaySky, DayHorizon,
11163 DawnSky, DawnHorizon,
11164 NightSky, NightHorizon,
11176 BgColor color.NRGBA
11179 SunFogTint color.NRGBA
11180 MoonFogTint color.NRGBA
11183 //mt:if %s.Type == "skybox"
11186 //mt:if %s.Type == "regular"
11187 DaySky, DayHorizon,
11188 DawnSky, DawnHorizon,
11189 NightSky, NightHorizon,
11191 }))(obj)).SunFogTint
11192 w.Write([]byte{x.A, x.R, x.G, x.B})
11197 BgColor color.NRGBA
11200 SunFogTint color.NRGBA
11201 MoonFogTint color.NRGBA
11204 //mt:if %s.Type == "skybox"
11207 //mt:if %s.Type == "regular"
11208 DaySky, DayHorizon,
11209 DawnSky, DawnHorizon,
11210 NightSky, NightHorizon,
11212 }))(obj)).MoonFogTint
11213 w.Write([]byte{x.A, x.R, x.G, x.B})
11216 if len(([]byte((*(*(struct {
11217 BgColor color.NRGBA
11220 SunFogTint color.NRGBA
11221 MoonFogTint color.NRGBA
11224 //mt:if %s.Type == "skybox"
11227 //mt:if %s.Type == "regular"
11228 DaySky, DayHorizon,
11229 DawnSky, DawnHorizon,
11230 NightSky, NightHorizon,
11232 }))(obj)).FogTintType))) > math.MaxUint16 {
11236 x := uint16(len(([]byte((*(*(struct {
11237 BgColor color.NRGBA
11240 SunFogTint color.NRGBA
11241 MoonFogTint color.NRGBA
11244 //mt:if %s.Type == "skybox"
11247 //mt:if %s.Type == "regular"
11248 DaySky, DayHorizon,
11249 DawnSky, DawnHorizon,
11250 NightSky, NightHorizon,
11252 }))(obj)).FogTintType))))
11253 write16(w, uint16(x))
11256 _, err := w.Write(([]byte((*(*(struct {
11257 BgColor color.NRGBA
11260 SunFogTint color.NRGBA
11261 MoonFogTint color.NRGBA
11264 //mt:if %s.Type == "skybox"
11267 //mt:if %s.Type == "regular"
11268 DaySky, DayHorizon,
11269 DawnSky, DawnHorizon,
11270 NightSky, NightHorizon,
11272 }))(obj)).FogTintType))[:])
11276 BgColor color.NRGBA
11279 SunFogTint color.NRGBA
11280 MoonFogTint color.NRGBA
11283 //mt:if %s.Type == "skybox"
11286 //mt:if %s.Type == "regular"
11287 DaySky, DayHorizon,
11288 DawnSky, DawnHorizon,
11289 NightSky, NightHorizon,
11291 }))(obj)).Type == "skybox" {
11292 if len(((*(*(struct {
11293 BgColor color.NRGBA
11296 SunFogTint color.NRGBA
11297 MoonFogTint color.NRGBA
11300 //mt:if %s.Type == "skybox"
11303 //mt:if %s.Type == "regular"
11304 DaySky, DayHorizon,
11305 DawnSky, DawnHorizon,
11306 NightSky, NightHorizon,
11308 }))(obj)).Textures)) > math.MaxUint16 {
11312 x := uint16(len(((*(*(struct {
11313 BgColor color.NRGBA
11316 SunFogTint color.NRGBA
11317 MoonFogTint color.NRGBA
11320 //mt:if %s.Type == "skybox"
11323 //mt:if %s.Type == "regular"
11324 DaySky, DayHorizon,
11325 DawnSky, DawnHorizon,
11326 NightSky, NightHorizon,
11328 }))(obj)).Textures)))
11329 write16(w, uint16(x))
11331 for local193 := range (*(*(struct {
11332 BgColor color.NRGBA
11335 SunFogTint color.NRGBA
11336 MoonFogTint color.NRGBA
11339 //mt:if %s.Type == "skybox"
11342 //mt:if %s.Type == "regular"
11343 DaySky, DayHorizon,
11344 DawnSky, DawnHorizon,
11345 NightSky, NightHorizon,
11347 }))(obj)).Textures {
11348 if err := pcall(func() {
11350 BgColor color.NRGBA
11353 SunFogTint color.NRGBA
11354 MoonFogTint color.NRGBA
11357 //mt:if %s.Type == "skybox"
11360 //mt:if %s.Type == "regular"
11361 DaySky, DayHorizon,
11362 DawnSky, DawnHorizon,
11363 NightSky, NightHorizon,
11365 }))(obj)).Textures)[local193]).serialize(w)
11370 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11375 BgColor color.NRGBA
11378 SunFogTint color.NRGBA
11379 MoonFogTint color.NRGBA
11382 //mt:if %s.Type == "skybox"
11385 //mt:if %s.Type == "regular"
11386 DaySky, DayHorizon,
11387 DawnSky, DawnHorizon,
11388 NightSky, NightHorizon,
11390 }))(obj)).Type == "regular" {
11393 BgColor color.NRGBA
11396 SunFogTint color.NRGBA
11397 MoonFogTint color.NRGBA
11400 //mt:if %s.Type == "skybox"
11403 //mt:if %s.Type == "regular"
11404 DaySky, DayHorizon,
11405 DawnSky, DawnHorizon,
11406 NightSky, NightHorizon,
11409 w.Write([]byte{x.A, x.R, x.G, x.B})
11414 BgColor color.NRGBA
11417 SunFogTint color.NRGBA
11418 MoonFogTint color.NRGBA
11421 //mt:if %s.Type == "skybox"
11424 //mt:if %s.Type == "regular"
11425 DaySky, DayHorizon,
11426 DawnSky, DawnHorizon,
11427 NightSky, NightHorizon,
11429 }))(obj)).DayHorizon
11430 w.Write([]byte{x.A, x.R, x.G, x.B})
11435 BgColor color.NRGBA
11438 SunFogTint color.NRGBA
11439 MoonFogTint color.NRGBA
11442 //mt:if %s.Type == "skybox"
11445 //mt:if %s.Type == "regular"
11446 DaySky, DayHorizon,
11447 DawnSky, DawnHorizon,
11448 NightSky, NightHorizon,
11451 w.Write([]byte{x.A, x.R, x.G, x.B})
11456 BgColor color.NRGBA
11459 SunFogTint color.NRGBA
11460 MoonFogTint color.NRGBA
11463 //mt:if %s.Type == "skybox"
11466 //mt:if %s.Type == "regular"
11467 DaySky, DayHorizon,
11468 DawnSky, DawnHorizon,
11469 NightSky, NightHorizon,
11471 }))(obj)).DawnHorizon
11472 w.Write([]byte{x.A, x.R, x.G, x.B})
11477 BgColor color.NRGBA
11480 SunFogTint color.NRGBA
11481 MoonFogTint color.NRGBA
11484 //mt:if %s.Type == "skybox"
11487 //mt:if %s.Type == "regular"
11488 DaySky, DayHorizon,
11489 DawnSky, DawnHorizon,
11490 NightSky, NightHorizon,
11493 w.Write([]byte{x.A, x.R, x.G, x.B})
11498 BgColor color.NRGBA
11501 SunFogTint color.NRGBA
11502 MoonFogTint color.NRGBA
11505 //mt:if %s.Type == "skybox"
11508 //mt:if %s.Type == "regular"
11509 DaySky, DayHorizon,
11510 DawnSky, DawnHorizon,
11511 NightSky, NightHorizon,
11513 }))(obj)).NightHorizon
11514 w.Write([]byte{x.A, x.R, x.G, x.B})
11519 BgColor color.NRGBA
11522 SunFogTint color.NRGBA
11523 MoonFogTint color.NRGBA
11526 //mt:if %s.Type == "skybox"
11529 //mt:if %s.Type == "regular"
11530 DaySky, DayHorizon,
11531 DawnSky, DawnHorizon,
11532 NightSky, NightHorizon,
11535 w.Write([]byte{x.A, x.R, x.G, x.B})
11541 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11543 p := &(*(*(struct {
11544 BgColor color.NRGBA
11547 SunFogTint color.NRGBA
11548 MoonFogTint color.NRGBA
11551 //mt:if %s.Type == "skybox"
11554 //mt:if %s.Type == "regular"
11555 DaySky, DayHorizon,
11556 DawnSky, DawnHorizon,
11557 NightSky, NightHorizon,
11560 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11563 var local194 []uint8
11564 var local195 uint16
11569 (local194) = make([]uint8, local195)
11571 _, err := io.ReadFull(r, (local194)[:])
11575 BgColor color.NRGBA
11578 SunFogTint color.NRGBA
11579 MoonFogTint color.NRGBA
11582 //mt:if %s.Type == "skybox"
11585 //mt:if %s.Type == "regular"
11586 DaySky, DayHorizon,
11587 DawnSky, DawnHorizon,
11588 NightSky, NightHorizon,
11590 }))(obj)).Type) = string(local194)
11592 p := &(*(*(struct {
11593 BgColor color.NRGBA
11596 SunFogTint color.NRGBA
11597 MoonFogTint color.NRGBA
11600 //mt:if %s.Type == "skybox"
11603 //mt:if %s.Type == "regular"
11604 DaySky, DayHorizon,
11605 DawnSky, DawnHorizon,
11606 NightSky, NightHorizon,
11609 switch n := read8(r); n {
11615 chk(fmt.Errorf("invalid bool: %d", n))
11620 p := &(*(*(struct {
11621 BgColor color.NRGBA
11624 SunFogTint color.NRGBA
11625 MoonFogTint color.NRGBA
11628 //mt:if %s.Type == "skybox"
11631 //mt:if %s.Type == "regular"
11632 DaySky, DayHorizon,
11633 DawnSky, DawnHorizon,
11634 NightSky, NightHorizon,
11636 }))(obj)).SunFogTint
11637 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11641 p := &(*(*(struct {
11642 BgColor color.NRGBA
11645 SunFogTint color.NRGBA
11646 MoonFogTint color.NRGBA
11649 //mt:if %s.Type == "skybox"
11652 //mt:if %s.Type == "regular"
11653 DaySky, DayHorizon,
11654 DawnSky, DawnHorizon,
11655 NightSky, NightHorizon,
11657 }))(obj)).MoonFogTint
11658 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11661 var local196 []uint8
11662 var local197 uint16
11667 (local196) = make([]uint8, local197)
11669 _, err := io.ReadFull(r, (local196)[:])
11673 BgColor color.NRGBA
11676 SunFogTint color.NRGBA
11677 MoonFogTint color.NRGBA
11680 //mt:if %s.Type == "skybox"
11683 //mt:if %s.Type == "regular"
11684 DaySky, DayHorizon,
11685 DawnSky, DawnHorizon,
11686 NightSky, NightHorizon,
11688 }))(obj)).FogTintType) = string(local196)
11690 BgColor color.NRGBA
11693 SunFogTint color.NRGBA
11694 MoonFogTint color.NRGBA
11697 //mt:if %s.Type == "skybox"
11700 //mt:if %s.Type == "regular"
11701 DaySky, DayHorizon,
11702 DawnSky, DawnHorizon,
11703 NightSky, NightHorizon,
11705 }))(obj)).Type == "skybox" {
11706 var local198 uint16
11712 BgColor color.NRGBA
11715 SunFogTint color.NRGBA
11716 MoonFogTint color.NRGBA
11719 //mt:if %s.Type == "skybox"
11722 //mt:if %s.Type == "regular"
11723 DaySky, DayHorizon,
11724 DawnSky, DawnHorizon,
11725 NightSky, NightHorizon,
11727 }))(obj)).Textures) = make([]Texture, local198)
11728 for local199 := range (*(*(struct {
11729 BgColor color.NRGBA
11732 SunFogTint color.NRGBA
11733 MoonFogTint color.NRGBA
11736 //mt:if %s.Type == "skybox"
11739 //mt:if %s.Type == "regular"
11740 DaySky, DayHorizon,
11741 DawnSky, DawnHorizon,
11742 NightSky, NightHorizon,
11744 }))(obj)).Textures {
11745 if err := pcall(func() {
11747 BgColor color.NRGBA
11750 SunFogTint color.NRGBA
11751 MoonFogTint color.NRGBA
11754 //mt:if %s.Type == "skybox"
11757 //mt:if %s.Type == "regular"
11758 DaySky, DayHorizon,
11759 DawnSky, DawnHorizon,
11760 NightSky, NightHorizon,
11762 }))(obj)).Textures)[local199]).deserialize(r)
11767 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
11772 BgColor color.NRGBA
11775 SunFogTint color.NRGBA
11776 MoonFogTint color.NRGBA
11779 //mt:if %s.Type == "skybox"
11782 //mt:if %s.Type == "regular"
11783 DaySky, DayHorizon,
11784 DawnSky, DawnHorizon,
11785 NightSky, NightHorizon,
11787 }))(obj)).Type == "regular" {
11789 p := &(*(*(struct {
11790 BgColor color.NRGBA
11793 SunFogTint color.NRGBA
11794 MoonFogTint color.NRGBA
11797 //mt:if %s.Type == "skybox"
11800 //mt:if %s.Type == "regular"
11801 DaySky, DayHorizon,
11802 DawnSky, DawnHorizon,
11803 NightSky, NightHorizon,
11806 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11810 p := &(*(*(struct {
11811 BgColor color.NRGBA
11814 SunFogTint color.NRGBA
11815 MoonFogTint color.NRGBA
11818 //mt:if %s.Type == "skybox"
11821 //mt:if %s.Type == "regular"
11822 DaySky, DayHorizon,
11823 DawnSky, DawnHorizon,
11824 NightSky, NightHorizon,
11826 }))(obj)).DayHorizon
11827 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11831 p := &(*(*(struct {
11832 BgColor color.NRGBA
11835 SunFogTint color.NRGBA
11836 MoonFogTint color.NRGBA
11839 //mt:if %s.Type == "skybox"
11842 //mt:if %s.Type == "regular"
11843 DaySky, DayHorizon,
11844 DawnSky, DawnHorizon,
11845 NightSky, NightHorizon,
11848 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11852 p := &(*(*(struct {
11853 BgColor color.NRGBA
11856 SunFogTint color.NRGBA
11857 MoonFogTint color.NRGBA
11860 //mt:if %s.Type == "skybox"
11863 //mt:if %s.Type == "regular"
11864 DaySky, DayHorizon,
11865 DawnSky, DawnHorizon,
11866 NightSky, NightHorizon,
11868 }))(obj)).DawnHorizon
11869 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11873 p := &(*(*(struct {
11874 BgColor color.NRGBA
11877 SunFogTint color.NRGBA
11878 MoonFogTint color.NRGBA
11881 //mt:if %s.Type == "skybox"
11884 //mt:if %s.Type == "regular"
11885 DaySky, DayHorizon,
11886 DawnSky, DawnHorizon,
11887 NightSky, NightHorizon,
11890 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11894 p := &(*(*(struct {
11895 BgColor color.NRGBA
11898 SunFogTint color.NRGBA
11899 MoonFogTint color.NRGBA
11902 //mt:if %s.Type == "skybox"
11905 //mt:if %s.Type == "regular"
11906 DaySky, DayHorizon,
11907 DawnSky, DawnHorizon,
11908 NightSky, NightHorizon,
11910 }))(obj)).NightHorizon
11911 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11915 p := &(*(*(struct {
11916 BgColor color.NRGBA
11919 SunFogTint color.NRGBA
11920 MoonFogTint color.NRGBA
11923 //mt:if %s.Type == "skybox"
11926 //mt:if %s.Type == "regular"
11927 DaySky, DayHorizon,
11928 DawnSky, DawnHorizon,
11929 NightSky, NightHorizon,
11932 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11938 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
11956 write16(w, uint16(x))
11960 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
11962 p := &(*(*(struct {
11966 switch n := read8(r); n {
11972 chk(fmt.Errorf("invalid bool: %d", n))
11977 p := &(*(*(struct {
11985 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
11986 for local200 := range (*(*(struct {
11987 Idle, Walk, Dig, WalkDig [2]int32
11991 x := ((*(*(struct {
11992 Idle, Walk, Dig, WalkDig [2]int32
11994 }))(obj)).Idle)[local200]
11995 write32(w, uint32(x))
11998 for local201 := range (*(*(struct {
11999 Idle, Walk, Dig, WalkDig [2]int32
12003 x := ((*(*(struct {
12004 Idle, Walk, Dig, WalkDig [2]int32
12006 }))(obj)).Walk)[local201]
12007 write32(w, uint32(x))
12010 for local202 := range (*(*(struct {
12011 Idle, Walk, Dig, WalkDig [2]int32
12015 x := ((*(*(struct {
12016 Idle, Walk, Dig, WalkDig [2]int32
12018 }))(obj)).Dig)[local202]
12019 write32(w, uint32(x))
12022 for local203 := range (*(*(struct {
12023 Idle, Walk, Dig, WalkDig [2]int32
12025 }))(obj)).WalkDig {
12027 x := ((*(*(struct {
12028 Idle, Walk, Dig, WalkDig [2]int32
12030 }))(obj)).WalkDig)[local203]
12031 write32(w, uint32(x))
12036 Idle, Walk, Dig, WalkDig [2]int32
12039 write32(w, math.Float32bits(x))
12043 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
12044 for local204 := range (*(*(struct {
12045 Idle, Walk, Dig, WalkDig [2]int32
12049 p := &((*(*(struct {
12050 Idle, Walk, Dig, WalkDig [2]int32
12052 }))(obj)).Idle)[local204]
12053 *p = int32(read32(r))
12056 for local205 := range (*(*(struct {
12057 Idle, Walk, Dig, WalkDig [2]int32
12061 p := &((*(*(struct {
12062 Idle, Walk, Dig, WalkDig [2]int32
12064 }))(obj)).Walk)[local205]
12065 *p = int32(read32(r))
12068 for local206 := range (*(*(struct {
12069 Idle, Walk, Dig, WalkDig [2]int32
12073 p := &((*(*(struct {
12074 Idle, Walk, Dig, WalkDig [2]int32
12076 }))(obj)).Dig)[local206]
12077 *p = int32(read32(r))
12080 for local207 := range (*(*(struct {
12081 Idle, Walk, Dig, WalkDig [2]int32
12083 }))(obj)).WalkDig {
12085 p := &((*(*(struct {
12086 Idle, Walk, Dig, WalkDig [2]int32
12088 }))(obj)).WalkDig)[local207]
12089 *p = int32(read32(r))
12093 p := &(*(*(struct {
12094 Idle, Walk, Dig, WalkDig [2]int32
12097 *p = math.Float32frombits(read32(r))
12101 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12102 if err := pcall(func() {
12105 }))(obj)).First).serialize(w)
12110 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12112 if err := pcall(func() {
12115 }))(obj)).Third).serialize(w)
12120 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12124 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12125 if err := pcall(func() {
12128 }))(obj)).First).deserialize(r)
12133 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12135 if err := pcall(func() {
12138 }))(obj)).Third).deserialize(r)
12143 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
12147 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12148 if err := pcall(func() {
12150 ID ParticleSpawnerID
12151 }))(obj)).ID).serialize(w)
12156 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12160 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12161 if err := pcall(func() {
12163 ID ParticleSpawnerID
12164 }))(obj)).ID).deserialize(r)
12169 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ParticleSpawnerID", err))
12173 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12177 DiffuseColor color.NRGBA
12178 AmbientColor color.NRGBA
12183 write32(w, math.Float32bits(x))
12188 DiffuseColor color.NRGBA
12189 AmbientColor color.NRGBA
12193 }))(obj)).DiffuseColor
12194 w.Write([]byte{x.A, x.R, x.G, x.B})
12200 DiffuseColor color.NRGBA
12201 AmbientColor color.NRGBA
12205 }))(obj)).AmbientColor
12206 w.Write([]byte{x.A, x.R, x.G, x.B})
12212 DiffuseColor color.NRGBA
12213 AmbientColor color.NRGBA
12218 write32(w, math.Float32bits(x))
12223 DiffuseColor color.NRGBA
12224 AmbientColor color.NRGBA
12228 }))(obj)).Thickness
12229 write32(w, math.Float32bits(x))
12231 for local208 := range (*(*(struct {
12233 DiffuseColor color.NRGBA
12234 AmbientColor color.NRGBA
12240 x := ((*(*(struct {
12242 DiffuseColor color.NRGBA
12243 AmbientColor color.NRGBA
12247 }))(obj)).Speed)[local208]
12248 write32(w, math.Float32bits(x))
12253 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12255 p := &(*(*(struct {
12257 DiffuseColor color.NRGBA
12258 AmbientColor color.NRGBA
12263 *p = math.Float32frombits(read32(r))
12266 p := &(*(*(struct {
12268 DiffuseColor color.NRGBA
12269 AmbientColor color.NRGBA
12273 }))(obj)).DiffuseColor
12274 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12278 p := &(*(*(struct {
12280 DiffuseColor color.NRGBA
12281 AmbientColor color.NRGBA
12285 }))(obj)).AmbientColor
12286 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12290 p := &(*(*(struct {
12292 DiffuseColor color.NRGBA
12293 AmbientColor color.NRGBA
12298 *p = math.Float32frombits(read32(r))
12301 p := &(*(*(struct {
12303 DiffuseColor color.NRGBA
12304 AmbientColor color.NRGBA
12308 }))(obj)).Thickness
12309 *p = math.Float32frombits(read32(r))
12311 for local209 := range (*(*(struct {
12313 DiffuseColor color.NRGBA
12314 AmbientColor color.NRGBA
12320 p := &((*(*(struct {
12322 DiffuseColor color.NRGBA
12323 AmbientColor color.NRGBA
12327 }))(obj)).Speed)[local209]
12328 *p = math.Float32frombits(read32(r))
12333 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12334 if err := pcall(func() {
12339 }))(obj)).ID).serialize(w)
12344 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12352 write32(w, math.Float32bits(x))
12360 write32(w, math.Float32bits(x))
12364 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12365 if err := pcall(func() {
12370 }))(obj)).ID).deserialize(r)
12375 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundID", err))
12378 p := &(*(*(struct {
12383 *p = math.Float32frombits(read32(r))
12386 p := &(*(*(struct {
12391 *p = math.Float32frombits(read32(r))
12395 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12396 if err := pcall(func() {
12398 Type PlayerListUpdateType
12400 }))(obj)).Type).serialize(w)
12405 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12407 if len(((*(*(struct {
12408 Type PlayerListUpdateType
12410 }))(obj)).Players)) > math.MaxUint16 {
12414 x := uint16(len(((*(*(struct {
12415 Type PlayerListUpdateType
12417 }))(obj)).Players)))
12418 write16(w, uint16(x))
12420 for local210 := range (*(*(struct {
12421 Type PlayerListUpdateType
12423 }))(obj)).Players {
12424 if len(([]byte(((*(*(struct {
12425 Type PlayerListUpdateType
12427 }))(obj)).Players)[local210]))) > math.MaxUint16 {
12431 x := uint16(len(([]byte(((*(*(struct {
12432 Type PlayerListUpdateType
12434 }))(obj)).Players)[local210]))))
12435 write16(w, uint16(x))
12438 _, err := w.Write(([]byte(((*(*(struct {
12439 Type PlayerListUpdateType
12441 }))(obj)).Players)[local210]))[:])
12447 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12448 if err := pcall(func() {
12450 Type PlayerListUpdateType
12452 }))(obj)).Type).deserialize(r)
12457 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.PlayerListUpdateType", err))
12459 var local211 uint16
12465 Type PlayerListUpdateType
12467 }))(obj)).Players) = make([]string, local211)
12468 for local212 := range (*(*(struct {
12469 Type PlayerListUpdateType
12471 }))(obj)).Players {
12472 var local213 []uint8
12473 var local214 uint16
12478 (local213) = make([]uint8, local214)
12480 _, err := io.ReadFull(r, (local213)[:])
12484 Type PlayerListUpdateType
12486 }))(obj)).Players)[local212]) = string(local213)
12490 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12491 if len(([]byte((*(*(struct {
12495 }))(obj)).Channel))) > math.MaxUint16 {
12499 x := uint16(len(([]byte((*(*(struct {
12503 }))(obj)).Channel))))
12504 write16(w, uint16(x))
12507 _, err := w.Write(([]byte((*(*(struct {
12511 }))(obj)).Channel))[:])
12514 if len(([]byte((*(*(struct {
12518 }))(obj)).Sender))) > math.MaxUint16 {
12522 x := uint16(len(([]byte((*(*(struct {
12526 }))(obj)).Sender))))
12527 write16(w, uint16(x))
12530 _, err := w.Write(([]byte((*(*(struct {
12534 }))(obj)).Sender))[:])
12537 if len(([]byte((*(*(struct {
12541 }))(obj)).Msg))) > math.MaxUint16 {
12545 x := uint16(len(([]byte((*(*(struct {
12550 write16(w, uint16(x))
12553 _, err := w.Write(([]byte((*(*(struct {
12557 }))(obj)).Msg))[:])
12562 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12563 var local215 []uint8
12564 var local216 uint16
12569 (local215) = make([]uint8, local216)
12571 _, err := io.ReadFull(r, (local215)[:])
12578 }))(obj)).Channel) = string(local215)
12579 var local217 []uint8
12580 var local218 uint16
12585 (local217) = make([]uint8, local218)
12587 _, err := io.ReadFull(r, (local217)[:])
12594 }))(obj)).Sender) = string(local217)
12595 var local219 []uint8
12596 var local220 uint16
12601 (local219) = make([]uint8, local220)
12603 _, err := io.ReadFull(r, (local219)[:])
12610 }))(obj)).Msg) = string(local219)
12613 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12614 if err := pcall(func() {
12618 }))(obj)).Signal).serialize(w)
12623 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12625 if len(([]byte((*(*(struct {
12628 }))(obj)).Channel))) > math.MaxUint16 {
12632 x := uint16(len(([]byte((*(*(struct {
12635 }))(obj)).Channel))))
12636 write16(w, uint16(x))
12639 _, err := w.Write(([]byte((*(*(struct {
12642 }))(obj)).Channel))[:])
12647 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12648 if err := pcall(func() {
12652 }))(obj)).Signal).deserialize(r)
12657 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ModChanSig", err))
12659 var local221 []uint8
12660 var local222 uint16
12665 (local221) = make([]uint8, local222)
12667 _, err := io.ReadFull(r, (local221)[:])
12673 }))(obj)).Channel) = string(local221)
12676 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12679 w := new(bytes.Buffer)
12683 Changed map[[3]int16]*NodeMeta
12686 w := zlib.NewWriter(w)
12692 if len(x) > math.MaxUint16 {
12695 write16(w, uint16(len(x)))
12696 keys := make([][3]int16, 0, len(x))
12697 for key := range x {
12698 keys = append(keys, key)
12700 sort.Slice(keys, func(i, j int) bool {
12701 p, q := keys[i], keys[j]
12714 for _, key := range keys {
12715 for _, n := range key {
12716 write16(w, uint16(n))
12718 chk(serialize(w, x[key]))
12729 if len((buf.Bytes())) > math.MaxUint32 {
12733 x := uint32(len((buf.Bytes())))
12734 write32(w, uint32(x))
12737 _, err := w.Write((buf.Bytes())[:])
12744 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
12751 r := &io.LimitedReader{R: r, N: int64(n)}
12753 p := &(*(*(struct {
12755 Changed map[[3]int16]*NodeMeta
12758 r, err := zlib.NewReader(byteReader{r})
12761 switch ver := read8(r); ver {
12766 *p = make(map[[3]int16]*NodeMeta, n)
12769 for i := range pos {
12770 pos[i] = int16(read16(r))
12772 nm := new(NodeMeta)
12773 chk(deserialize(r, nm))
12777 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
12785 chk(fmt.Errorf("%d bytes of trailing data", r.N))
12790 func (obj *ToCltSunParams) serialize(w io.Writer) {
12807 if err := pcall(func() {
12815 }))(obj)).Texture).serialize(w)
12820 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12822 if err := pcall(func() {
12830 }))(obj)).ToneMap).serialize(w)
12835 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12837 if err := pcall(func() {
12845 }))(obj)).Rise).serialize(w)
12850 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12877 write32(w, math.Float32bits(x))
12881 func (obj *ToCltSunParams) deserialize(r io.Reader) {
12883 p := &(*(*(struct {
12891 switch n := read8(r); n {
12897 chk(fmt.Errorf("invalid bool: %d", n))
12901 if err := pcall(func() {
12909 }))(obj)).Texture).deserialize(r)
12914 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12916 if err := pcall(func() {
12924 }))(obj)).ToneMap).deserialize(r)
12929 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12931 if err := pcall(func() {
12939 }))(obj)).Rise).deserialize(r)
12944 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
12947 p := &(*(*(struct {
12955 switch n := read8(r); n {
12961 chk(fmt.Errorf("invalid bool: %d", n))
12966 p := &(*(*(struct {
12974 *p = math.Float32frombits(read32(r))
12978 func (obj *ToCltMoonParams) serialize(w io.Writer) {
12993 if err := pcall(func() {
12999 }))(obj)).Texture).serialize(w)
13004 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13006 if err := pcall(func() {
13012 }))(obj)).ToneMap).serialize(w)
13017 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13026 write32(w, math.Float32bits(x))
13030 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
13032 p := &(*(*(struct {
13038 switch n := read8(r); n {
13044 chk(fmt.Errorf("invalid bool: %d", n))
13048 if err := pcall(func() {
13054 }))(obj)).Texture).deserialize(r)
13059 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13061 if err := pcall(func() {
13067 }))(obj)).ToneMap).deserialize(r)
13072 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13075 p := &(*(*(struct {
13081 *p = math.Float32frombits(read32(r))
13085 func (obj *ToCltStarParams) serialize(w io.Writer) {
13107 write32(w, uint32(x))
13116 w.Write([]byte{x.A, x.R, x.G, x.B})
13126 write32(w, math.Float32bits(x))
13130 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13132 p := &(*(*(struct {
13138 switch n := read8(r); n {
13144 chk(fmt.Errorf("invalid bool: %d", n))
13149 p := &(*(*(struct {
13158 p := &(*(*(struct {
13164 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13168 p := &(*(*(struct {
13174 *p = math.Float32frombits(read32(r))
13178 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13179 if len(((*(*(struct {
13181 }))(obj)).Salt)) > math.MaxUint16 {
13185 x := uint16(len(((*(*(struct {
13188 write16(w, uint16(x))
13191 _, err := w.Write(((*(*(struct {
13193 }))(obj)).Salt)[:])
13196 if len(((*(*(struct {
13198 }))(obj)).B)) > math.MaxUint16 {
13202 x := uint16(len(((*(*(struct {
13205 write16(w, uint16(x))
13208 _, err := w.Write(((*(*(struct {
13215 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13216 var local223 uint16
13223 }))(obj)).Salt) = make([]byte, local223)
13225 _, err := io.ReadFull(r, ((*(*(struct {
13227 }))(obj)).Salt)[:])
13230 var local224 uint16
13237 }))(obj)).B) = make([]byte, local224)
13239 _, err := io.ReadFull(r, ((*(*(struct {
13246 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13247 if len(([]byte((*(*(struct {
13249 }))(obj)).Prepend))) > math.MaxUint16 {
13253 x := uint16(len(([]byte((*(*(struct {
13255 }))(obj)).Prepend))))
13256 write16(w, uint16(x))
13259 _, err := w.Write(([]byte((*(*(struct {
13261 }))(obj)).Prepend))[:])
13266 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13267 var local225 []uint8
13268 var local226 uint16
13273 (local225) = make([]uint8, local226)
13275 _, err := io.ReadFull(r, (local225)[:])
13280 }))(obj)).Prepend) = string(local225)
13283 func (obj *AOCmdProps) serialize(w io.Writer) {
13284 if err := pcall(func() {
13287 }))(obj)).Props).serialize(w)
13292 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13296 func (obj *AOCmdProps) deserialize(r io.Reader) {
13297 if err := pcall(func() {
13300 }))(obj)).Props).deserialize(r)
13305 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOProps", err))
13309 func (obj *AOCmdPos) serialize(w io.Writer) {
13310 if err := pcall(func() {
13313 }))(obj)).Pos).serialize(w)
13318 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13322 func (obj *AOCmdPos) deserialize(r io.Reader) {
13323 if err := pcall(func() {
13326 }))(obj)).Pos).deserialize(r)
13331 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPos", err))
13335 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13336 if err := pcall(func() {
13338 Mod Texture // suffix
13339 }))(obj)).Mod).serialize(w)
13344 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13348 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13349 if err := pcall(func() {
13351 Mod Texture // suffix
13352 }))(obj)).Mod).deserialize(r)
13357 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13361 func (obj *AOCmdSprite) serialize(w io.Writer) {
13362 if err := pcall(func() {
13365 }))(obj)).Sprite).serialize(w)
13370 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13374 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13375 if err := pcall(func() {
13378 }))(obj)).Sprite).deserialize(r)
13383 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOSprite", err))
13387 func (obj *AOCmdHP) serialize(w io.Writer) {
13392 write16(w, uint16(x))
13396 func (obj *AOCmdHP) deserialize(r io.Reader) {
13398 p := &(*(*(struct {
13405 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13406 if len(((*(*(struct {
13408 }))(obj)).Armor)) > math.MaxUint16 {
13412 x := uint16(len(((*(*(struct {
13415 write16(w, uint16(x))
13417 for local227 := range (*(*(struct {
13420 if err := pcall(func() {
13423 }))(obj)).Armor)[local227]).serialize(w)
13428 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13433 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13434 var local228 uint16
13441 }))(obj)).Armor) = make([]Group, local228)
13442 for local229 := range (*(*(struct {
13445 if err := pcall(func() {
13448 }))(obj)).Armor)[local229]).deserialize(r)
13453 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
13458 func (obj *AOCmdAnim) serialize(w io.Writer) {
13459 if err := pcall(func() {
13462 }))(obj)).Anim).serialize(w)
13467 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13471 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13472 if err := pcall(func() {
13475 }))(obj)).Anim).deserialize(r)
13480 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAnim", err))
13484 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13485 if len(([]byte((*(*(struct {
13488 }))(obj)).Bone))) > math.MaxUint16 {
13492 x := uint16(len(([]byte((*(*(struct {
13496 write16(w, uint16(x))
13499 _, err := w.Write(([]byte((*(*(struct {
13502 }))(obj)).Bone))[:])
13505 if err := pcall(func() {
13509 }))(obj)).Pos).serialize(w)
13514 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13518 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13519 var local230 []uint8
13520 var local231 uint16
13525 (local230) = make([]uint8, local231)
13527 _, err := io.ReadFull(r, (local230)[:])
13533 }))(obj)).Bone) = string(local230)
13534 if err := pcall(func() {
13538 }))(obj)).Pos).deserialize(r)
13543 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOBonePos", err))
13547 func (obj *AOCmdAttach) serialize(w io.Writer) {
13548 if err := pcall(func() {
13551 }))(obj)).Attach).serialize(w)
13556 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13560 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13561 if err := pcall(func() {
13564 }))(obj)).Attach).deserialize(r)
13569 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOAttach", err))
13573 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13574 if err := pcall(func() {
13576 Phys AOPhysOverride
13577 }))(obj)).Phys).serialize(w)
13582 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13586 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13587 if err := pcall(func() {
13589 Phys AOPhysOverride
13590 }))(obj)).Phys).deserialize(r)
13595 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOPhysOverride", err))
13599 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13600 if err := pcall(func() {
13603 }))(obj)).ID).serialize(w)
13608 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13611 local232 := genericCAO
13612 if err := pcall(func() {
13613 (local232).serialize(w)
13618 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13623 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13624 if err := pcall(func() {
13627 }))(obj)).ID).deserialize(r)
13632 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
13635 var local233 aoType
13636 local234 := genericCAO
13637 if err := pcall(func() {
13638 (local233).deserialize(r)
13643 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
13645 if local233 != local234 {
13646 chk(fmt.Errorf("const %v: %v", "genericCAO", local233))
13651 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13656 write32(w, math.Float32bits(x))
13660 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13662 p := &(*(*(struct {
13665 *p = math.Float32frombits(read32(r))
13669 func (obj *NodeMeta) serialize(w io.Writer) {
13670 if len(((*(*(struct {
13672 Fields []NodeMetaField
13675 }))(obj)).Fields)) > math.MaxUint32 {
13679 x := uint32(len(((*(*(struct {
13681 Fields []NodeMetaField
13684 }))(obj)).Fields)))
13685 write32(w, uint32(x))
13687 for local235 := range (*(*(struct {
13689 Fields []NodeMetaField
13693 if err := pcall(func() {
13696 Fields []NodeMetaField
13699 }))(obj)).Fields)[local235]).serialize(w)
13704 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13709 Fields []NodeMetaField
13712 }))(obj)).Inv).Serialize(w))
13715 func (obj *NodeMeta) deserialize(r io.Reader) {
13716 var local236 uint32
13723 Fields []NodeMetaField
13726 }))(obj)).Fields) = make([]NodeMetaField, local236)
13727 for local237 := range (*(*(struct {
13729 Fields []NodeMetaField
13733 if err := pcall(func() {
13736 Fields []NodeMetaField
13739 }))(obj)).Fields)[local237]).deserialize(r)
13744 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeMetaField", err))
13749 Fields []NodeMetaField
13752 }))(obj)).Inv).Deserialize(r))
13755 func (obj *MinimapMode) serialize(w io.Writer) {
13756 if err := pcall(func() {
13763 }))(obj)).Type).serialize(w)
13768 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13770 if len(([]byte((*(*(struct {
13776 }))(obj)).Label))) > math.MaxUint16 {
13780 x := uint16(len(([]byte((*(*(struct {
13786 }))(obj)).Label))))
13787 write16(w, uint16(x))
13790 _, err := w.Write(([]byte((*(*(struct {
13796 }))(obj)).Label))[:])
13807 write16(w, uint16(x))
13809 if err := pcall(func() {
13816 }))(obj)).Texture).serialize(w)
13821 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13831 write16(w, uint16(x))
13835 func (obj *MinimapMode) deserialize(r io.Reader) {
13836 if err := pcall(func() {
13843 }))(obj)).Type).deserialize(r)
13848 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MinimapType", err))
13850 var local238 []uint8
13851 var local239 uint16
13856 (local238) = make([]uint8, local239)
13858 _, err := io.ReadFull(r, (local238)[:])
13867 }))(obj)).Label) = string(local238)
13869 p := &(*(*(struct {
13878 if err := pcall(func() {
13885 }))(obj)).Texture).deserialize(r)
13890 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
13893 p := &(*(*(struct {
13904 func (obj *NodeDef) serialize(w io.Writer) {
13905 if err := pcall(func() {
13918 //mt:const uint8(6)
13920 OverlayTiles [6]TileDef
13921 //mt:const uint8(6)
13922 SpecialTiles [6]TileDef
13929 ConnectTo []Content
13930 InsideTint color.NRGBA
13931 Level uint8 // Must be < 128.
13933 Translucent bool // Sunlight is scattered and becomes normal light.
13934 Transparent bool // Sunlight isn't scattered.
13947 LiquidType LiquidType
13950 Viscosity uint8 // 0-7
13956 DrawBox, ColBox, SelBox NodeBox
13958 FootstepSnd, DiggingSnd, DugSnd SoundDef
13968 }))(obj)).Param0).serialize(w)
13973 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
13977 w := new(bytes.Buffer)
13979 local240 := uint8(13)
13982 write8(w, uint8(x))
13985 if len(([]byte((*(*(struct {
13997 //mt:const uint8(6)
13999 OverlayTiles [6]TileDef
14000 //mt:const uint8(6)
14001 SpecialTiles [6]TileDef
14008 ConnectTo []Content
14009 InsideTint color.NRGBA
14010 Level uint8 // Must be < 128.
14012 Translucent bool // Sunlight is scattered and becomes normal light.
14013 Transparent bool // Sunlight isn't scattered.
14026 LiquidType LiquidType
14029 Viscosity uint8 // 0-7
14035 DrawBox, ColBox, SelBox NodeBox
14037 FootstepSnd, DiggingSnd, DugSnd SoundDef
14047 }))(obj)).Name))) > math.MaxUint16 {
14051 x := uint16(len(([]byte((*(*(struct {
14063 //mt:const uint8(6)
14065 OverlayTiles [6]TileDef
14066 //mt:const uint8(6)
14067 SpecialTiles [6]TileDef
14074 ConnectTo []Content
14075 InsideTint color.NRGBA
14076 Level uint8 // Must be < 128.
14078 Translucent bool // Sunlight is scattered and becomes normal light.
14079 Transparent bool // Sunlight isn't scattered.
14092 LiquidType LiquidType
14095 Viscosity uint8 // 0-7
14101 DrawBox, ColBox, SelBox NodeBox
14103 FootstepSnd, DiggingSnd, DugSnd SoundDef
14114 write16(w, uint16(x))
14117 _, err := w.Write(([]byte((*(*(struct {
14129 //mt:const uint8(6)
14131 OverlayTiles [6]TileDef
14132 //mt:const uint8(6)
14133 SpecialTiles [6]TileDef
14140 ConnectTo []Content
14141 InsideTint color.NRGBA
14142 Level uint8 // Must be < 128.
14144 Translucent bool // Sunlight is scattered and becomes normal light.
14145 Transparent bool // Sunlight isn't scattered.
14158 LiquidType LiquidType
14161 Viscosity uint8 // 0-7
14167 DrawBox, ColBox, SelBox NodeBox
14169 FootstepSnd, DiggingSnd, DugSnd SoundDef
14179 }))(obj)).Name))[:])
14182 if len(((*(*(struct {
14194 //mt:const uint8(6)
14196 OverlayTiles [6]TileDef
14197 //mt:const uint8(6)
14198 SpecialTiles [6]TileDef
14205 ConnectTo []Content
14206 InsideTint color.NRGBA
14207 Level uint8 // Must be < 128.
14209 Translucent bool // Sunlight is scattered and becomes normal light.
14210 Transparent bool // Sunlight isn't scattered.
14223 LiquidType LiquidType
14226 Viscosity uint8 // 0-7
14232 DrawBox, ColBox, SelBox NodeBox
14234 FootstepSnd, DiggingSnd, DugSnd SoundDef
14244 }))(obj)).Groups)) > math.MaxUint16 {
14248 x := uint16(len(((*(*(struct {
14260 //mt:const uint8(6)
14262 OverlayTiles [6]TileDef
14263 //mt:const uint8(6)
14264 SpecialTiles [6]TileDef
14271 ConnectTo []Content
14272 InsideTint color.NRGBA
14273 Level uint8 // Must be < 128.
14275 Translucent bool // Sunlight is scattered and becomes normal light.
14276 Transparent bool // Sunlight isn't scattered.
14289 LiquidType LiquidType
14292 Viscosity uint8 // 0-7
14298 DrawBox, ColBox, SelBox NodeBox
14300 FootstepSnd, DiggingSnd, DugSnd SoundDef
14310 }))(obj)).Groups)))
14311 write16(w, uint16(x))
14313 for local241 := range (*(*(struct {
14325 //mt:const uint8(6)
14327 OverlayTiles [6]TileDef
14328 //mt:const uint8(6)
14329 SpecialTiles [6]TileDef
14336 ConnectTo []Content
14337 InsideTint color.NRGBA
14338 Level uint8 // Must be < 128.
14340 Translucent bool // Sunlight is scattered and becomes normal light.
14341 Transparent bool // Sunlight isn't scattered.
14354 LiquidType LiquidType
14357 Viscosity uint8 // 0-7
14363 DrawBox, ColBox, SelBox NodeBox
14365 FootstepSnd, DiggingSnd, DugSnd SoundDef
14376 if err := pcall(func() {
14389 //mt:const uint8(6)
14391 OverlayTiles [6]TileDef
14392 //mt:const uint8(6)
14393 SpecialTiles [6]TileDef
14400 ConnectTo []Content
14401 InsideTint color.NRGBA
14402 Level uint8 // Must be < 128.
14404 Translucent bool // Sunlight is scattered and becomes normal light.
14405 Transparent bool // Sunlight isn't scattered.
14418 LiquidType LiquidType
14421 Viscosity uint8 // 0-7
14427 DrawBox, ColBox, SelBox NodeBox
14429 FootstepSnd, DiggingSnd, DugSnd SoundDef
14439 }))(obj)).Groups)[local241]).serialize(w)
14444 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
14447 if err := pcall(func() {
14460 //mt:const uint8(6)
14462 OverlayTiles [6]TileDef
14463 //mt:const uint8(6)
14464 SpecialTiles [6]TileDef
14471 ConnectTo []Content
14472 InsideTint color.NRGBA
14473 Level uint8 // Must be < 128.
14475 Translucent bool // Sunlight is scattered and becomes normal light.
14476 Transparent bool // Sunlight isn't scattered.
14489 LiquidType LiquidType
14492 Viscosity uint8 // 0-7
14498 DrawBox, ColBox, SelBox NodeBox
14500 FootstepSnd, DiggingSnd, DugSnd SoundDef
14510 }))(obj)).P1Type).serialize(w)
14515 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
14517 if err := pcall(func() {
14530 //mt:const uint8(6)
14532 OverlayTiles [6]TileDef
14533 //mt:const uint8(6)
14534 SpecialTiles [6]TileDef
14541 ConnectTo []Content
14542 InsideTint color.NRGBA
14543 Level uint8 // Must be < 128.
14545 Translucent bool // Sunlight is scattered and becomes normal light.
14546 Transparent bool // Sunlight isn't scattered.
14559 LiquidType LiquidType
14562 Viscosity uint8 // 0-7
14568 DrawBox, ColBox, SelBox NodeBox
14570 FootstepSnd, DiggingSnd, DugSnd SoundDef
14580 }))(obj)).P2Type).serialize(w)
14585 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
14587 if err := pcall(func() {
14600 //mt:const uint8(6)
14602 OverlayTiles [6]TileDef
14603 //mt:const uint8(6)
14604 SpecialTiles [6]TileDef
14611 ConnectTo []Content
14612 InsideTint color.NRGBA
14613 Level uint8 // Must be < 128.
14615 Translucent bool // Sunlight is scattered and becomes normal light.
14616 Transparent bool // Sunlight isn't scattered.
14629 LiquidType LiquidType
14632 Viscosity uint8 // 0-7
14638 DrawBox, ColBox, SelBox NodeBox
14640 FootstepSnd, DiggingSnd, DugSnd SoundDef
14650 }))(obj)).DrawType).serialize(w)
14655 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
14657 if len(([]byte((*(*(struct {
14669 //mt:const uint8(6)
14671 OverlayTiles [6]TileDef
14672 //mt:const uint8(6)
14673 SpecialTiles [6]TileDef
14680 ConnectTo []Content
14681 InsideTint color.NRGBA
14682 Level uint8 // Must be < 128.
14684 Translucent bool // Sunlight is scattered and becomes normal light.
14685 Transparent bool // Sunlight isn't scattered.
14698 LiquidType LiquidType
14701 Viscosity uint8 // 0-7
14707 DrawBox, ColBox, SelBox NodeBox
14709 FootstepSnd, DiggingSnd, DugSnd SoundDef
14719 }))(obj)).Mesh))) > math.MaxUint16 {
14723 x := uint16(len(([]byte((*(*(struct {
14735 //mt:const uint8(6)
14737 OverlayTiles [6]TileDef
14738 //mt:const uint8(6)
14739 SpecialTiles [6]TileDef
14746 ConnectTo []Content
14747 InsideTint color.NRGBA
14748 Level uint8 // Must be < 128.
14750 Translucent bool // Sunlight is scattered and becomes normal light.
14751 Transparent bool // Sunlight isn't scattered.
14764 LiquidType LiquidType
14767 Viscosity uint8 // 0-7
14773 DrawBox, ColBox, SelBox NodeBox
14775 FootstepSnd, DiggingSnd, DugSnd SoundDef
14786 write16(w, uint16(x))
14789 _, err := w.Write(([]byte((*(*(struct {
14801 //mt:const uint8(6)
14803 OverlayTiles [6]TileDef
14804 //mt:const uint8(6)
14805 SpecialTiles [6]TileDef
14812 ConnectTo []Content
14813 InsideTint color.NRGBA
14814 Level uint8 // Must be < 128.
14816 Translucent bool // Sunlight is scattered and becomes normal light.
14817 Transparent bool // Sunlight isn't scattered.
14830 LiquidType LiquidType
14833 Viscosity uint8 // 0-7
14839 DrawBox, ColBox, SelBox NodeBox
14841 FootstepSnd, DiggingSnd, DugSnd SoundDef
14851 }))(obj)).Mesh))[:])
14867 //mt:const uint8(6)
14869 OverlayTiles [6]TileDef
14870 //mt:const uint8(6)
14871 SpecialTiles [6]TileDef
14878 ConnectTo []Content
14879 InsideTint color.NRGBA
14880 Level uint8 // Must be < 128.
14882 Translucent bool // Sunlight is scattered and becomes normal light.
14883 Transparent bool // Sunlight isn't scattered.
14896 LiquidType LiquidType
14899 Viscosity uint8 // 0-7
14905 DrawBox, ColBox, SelBox NodeBox
14907 FootstepSnd, DiggingSnd, DugSnd SoundDef
14918 write32(w, math.Float32bits(x))
14921 local242 := uint8(6)
14924 write8(w, uint8(x))
14927 for local243 := range (*(*(struct {
14939 //mt:const uint8(6)
14941 OverlayTiles [6]TileDef
14942 //mt:const uint8(6)
14943 SpecialTiles [6]TileDef
14950 ConnectTo []Content
14951 InsideTint color.NRGBA
14952 Level uint8 // Must be < 128.
14954 Translucent bool // Sunlight is scattered and becomes normal light.
14955 Transparent bool // Sunlight isn't scattered.
14968 LiquidType LiquidType
14971 Viscosity uint8 // 0-7
14977 DrawBox, ColBox, SelBox NodeBox
14979 FootstepSnd, DiggingSnd, DugSnd SoundDef
14990 if err := pcall(func() {
15003 //mt:const uint8(6)
15005 OverlayTiles [6]TileDef
15006 //mt:const uint8(6)
15007 SpecialTiles [6]TileDef
15014 ConnectTo []Content
15015 InsideTint color.NRGBA
15016 Level uint8 // Must be < 128.
15018 Translucent bool // Sunlight is scattered and becomes normal light.
15019 Transparent bool // Sunlight isn't scattered.
15032 LiquidType LiquidType
15035 Viscosity uint8 // 0-7
15041 DrawBox, ColBox, SelBox NodeBox
15043 FootstepSnd, DiggingSnd, DugSnd SoundDef
15053 }))(obj)).Tiles)[local243]).serialize(w)
15058 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15061 for local244 := range (*(*(struct {
15073 //mt:const uint8(6)
15075 OverlayTiles [6]TileDef
15076 //mt:const uint8(6)
15077 SpecialTiles [6]TileDef
15084 ConnectTo []Content
15085 InsideTint color.NRGBA
15086 Level uint8 // Must be < 128.
15088 Translucent bool // Sunlight is scattered and becomes normal light.
15089 Transparent bool // Sunlight isn't scattered.
15102 LiquidType LiquidType
15105 Viscosity uint8 // 0-7
15111 DrawBox, ColBox, SelBox NodeBox
15113 FootstepSnd, DiggingSnd, DugSnd SoundDef
15123 }))(obj)).OverlayTiles {
15124 if err := pcall(func() {
15137 //mt:const uint8(6)
15139 OverlayTiles [6]TileDef
15140 //mt:const uint8(6)
15141 SpecialTiles [6]TileDef
15148 ConnectTo []Content
15149 InsideTint color.NRGBA
15150 Level uint8 // Must be < 128.
15152 Translucent bool // Sunlight is scattered and becomes normal light.
15153 Transparent bool // Sunlight isn't scattered.
15166 LiquidType LiquidType
15169 Viscosity uint8 // 0-7
15175 DrawBox, ColBox, SelBox NodeBox
15177 FootstepSnd, DiggingSnd, DugSnd SoundDef
15187 }))(obj)).OverlayTiles)[local244]).serialize(w)
15192 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15196 local245 := uint8(6)
15199 write8(w, uint8(x))
15202 for local246 := range (*(*(struct {
15214 //mt:const uint8(6)
15216 OverlayTiles [6]TileDef
15217 //mt:const uint8(6)
15218 SpecialTiles [6]TileDef
15225 ConnectTo []Content
15226 InsideTint color.NRGBA
15227 Level uint8 // Must be < 128.
15229 Translucent bool // Sunlight is scattered and becomes normal light.
15230 Transparent bool // Sunlight isn't scattered.
15243 LiquidType LiquidType
15246 Viscosity uint8 // 0-7
15252 DrawBox, ColBox, SelBox NodeBox
15254 FootstepSnd, DiggingSnd, DugSnd SoundDef
15264 }))(obj)).SpecialTiles {
15265 if err := pcall(func() {
15278 //mt:const uint8(6)
15280 OverlayTiles [6]TileDef
15281 //mt:const uint8(6)
15282 SpecialTiles [6]TileDef
15289 ConnectTo []Content
15290 InsideTint color.NRGBA
15291 Level uint8 // Must be < 128.
15293 Translucent bool // Sunlight is scattered and becomes normal light.
15294 Transparent bool // Sunlight isn't scattered.
15307 LiquidType LiquidType
15310 Viscosity uint8 // 0-7
15316 DrawBox, ColBox, SelBox NodeBox
15318 FootstepSnd, DiggingSnd, DugSnd SoundDef
15328 }))(obj)).SpecialTiles)[local246]).serialize(w)
15333 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
15349 //mt:const uint8(6)
15351 OverlayTiles [6]TileDef
15352 //mt:const uint8(6)
15353 SpecialTiles [6]TileDef
15360 ConnectTo []Content
15361 InsideTint color.NRGBA
15362 Level uint8 // Must be < 128.
15364 Translucent bool // Sunlight is scattered and becomes normal light.
15365 Transparent bool // Sunlight isn't scattered.
15378 LiquidType LiquidType
15381 Viscosity uint8 // 0-7
15387 DrawBox, ColBox, SelBox NodeBox
15389 FootstepSnd, DiggingSnd, DugSnd SoundDef
15400 w.Write([]byte{x.A, x.R, x.G, x.B})
15403 if err := pcall(func() {
15416 //mt:const uint8(6)
15418 OverlayTiles [6]TileDef
15419 //mt:const uint8(6)
15420 SpecialTiles [6]TileDef
15427 ConnectTo []Content
15428 InsideTint color.NRGBA
15429 Level uint8 // Must be < 128.
15431 Translucent bool // Sunlight is scattered and becomes normal light.
15432 Transparent bool // Sunlight isn't scattered.
15445 LiquidType LiquidType
15448 Viscosity uint8 // 0-7
15454 DrawBox, ColBox, SelBox NodeBox
15456 FootstepSnd, DiggingSnd, DugSnd SoundDef
15466 }))(obj)).Palette).serialize(w)
15471 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
15473 if err := pcall(func() {
15486 //mt:const uint8(6)
15488 OverlayTiles [6]TileDef
15489 //mt:const uint8(6)
15490 SpecialTiles [6]TileDef
15497 ConnectTo []Content
15498 InsideTint color.NRGBA
15499 Level uint8 // Must be < 128.
15501 Translucent bool // Sunlight is scattered and becomes normal light.
15502 Transparent bool // Sunlight isn't scattered.
15515 LiquidType LiquidType
15518 Viscosity uint8 // 0-7
15524 DrawBox, ColBox, SelBox NodeBox
15526 FootstepSnd, DiggingSnd, DugSnd SoundDef
15536 }))(obj)).Waving).serialize(w)
15541 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
15556 //mt:const uint8(6)
15558 OverlayTiles [6]TileDef
15559 //mt:const uint8(6)
15560 SpecialTiles [6]TileDef
15567 ConnectTo []Content
15568 InsideTint color.NRGBA
15569 Level uint8 // Must be < 128.
15571 Translucent bool // Sunlight is scattered and becomes normal light.
15572 Transparent bool // Sunlight isn't scattered.
15585 LiquidType LiquidType
15588 Viscosity uint8 // 0-7
15594 DrawBox, ColBox, SelBox NodeBox
15596 FootstepSnd, DiggingSnd, DugSnd SoundDef
15606 }))(obj)).ConnectSides
15607 write8(w, uint8(x))
15609 if len(((*(*(struct {
15621 //mt:const uint8(6)
15623 OverlayTiles [6]TileDef
15624 //mt:const uint8(6)
15625 SpecialTiles [6]TileDef
15632 ConnectTo []Content
15633 InsideTint color.NRGBA
15634 Level uint8 // Must be < 128.
15636 Translucent bool // Sunlight is scattered and becomes normal light.
15637 Transparent bool // Sunlight isn't scattered.
15650 LiquidType LiquidType
15653 Viscosity uint8 // 0-7
15659 DrawBox, ColBox, SelBox NodeBox
15661 FootstepSnd, DiggingSnd, DugSnd SoundDef
15671 }))(obj)).ConnectTo)) > math.MaxUint16 {
15675 x := uint16(len(((*(*(struct {
15687 //mt:const uint8(6)
15689 OverlayTiles [6]TileDef
15690 //mt:const uint8(6)
15691 SpecialTiles [6]TileDef
15698 ConnectTo []Content
15699 InsideTint color.NRGBA
15700 Level uint8 // Must be < 128.
15702 Translucent bool // Sunlight is scattered and becomes normal light.
15703 Transparent bool // Sunlight isn't scattered.
15716 LiquidType LiquidType
15719 Viscosity uint8 // 0-7
15725 DrawBox, ColBox, SelBox NodeBox
15727 FootstepSnd, DiggingSnd, DugSnd SoundDef
15737 }))(obj)).ConnectTo)))
15738 write16(w, uint16(x))
15740 for local247 := range (*(*(struct {
15752 //mt:const uint8(6)
15754 OverlayTiles [6]TileDef
15755 //mt:const uint8(6)
15756 SpecialTiles [6]TileDef
15763 ConnectTo []Content
15764 InsideTint color.NRGBA
15765 Level uint8 // Must be < 128.
15767 Translucent bool // Sunlight is scattered and becomes normal light.
15768 Transparent bool // Sunlight isn't scattered.
15781 LiquidType LiquidType
15784 Viscosity uint8 // 0-7
15790 DrawBox, ColBox, SelBox NodeBox
15792 FootstepSnd, DiggingSnd, DugSnd SoundDef
15802 }))(obj)).ConnectTo {
15803 if err := pcall(func() {
15816 //mt:const uint8(6)
15818 OverlayTiles [6]TileDef
15819 //mt:const uint8(6)
15820 SpecialTiles [6]TileDef
15827 ConnectTo []Content
15828 InsideTint color.NRGBA
15829 Level uint8 // Must be < 128.
15831 Translucent bool // Sunlight is scattered and becomes normal light.
15832 Transparent bool // Sunlight isn't scattered.
15845 LiquidType LiquidType
15848 Viscosity uint8 // 0-7
15854 DrawBox, ColBox, SelBox NodeBox
15856 FootstepSnd, DiggingSnd, DugSnd SoundDef
15866 }))(obj)).ConnectTo)[local247]).serialize(w)
15871 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
15887 //mt:const uint8(6)
15889 OverlayTiles [6]TileDef
15890 //mt:const uint8(6)
15891 SpecialTiles [6]TileDef
15898 ConnectTo []Content
15899 InsideTint color.NRGBA
15900 Level uint8 // Must be < 128.
15902 Translucent bool // Sunlight is scattered and becomes normal light.
15903 Transparent bool // Sunlight isn't scattered.
15916 LiquidType LiquidType
15919 Viscosity uint8 // 0-7
15925 DrawBox, ColBox, SelBox NodeBox
15927 FootstepSnd, DiggingSnd, DugSnd SoundDef
15937 }))(obj)).InsideTint
15938 w.Write([]byte{x.A, x.R, x.G, x.B})
15954 //mt:const uint8(6)
15956 OverlayTiles [6]TileDef
15957 //mt:const uint8(6)
15958 SpecialTiles [6]TileDef
15965 ConnectTo []Content
15966 InsideTint color.NRGBA
15967 Level uint8 // Must be < 128.
15969 Translucent bool // Sunlight is scattered and becomes normal light.
15970 Transparent bool // Sunlight isn't scattered.
15983 LiquidType LiquidType
15986 Viscosity uint8 // 0-7
15992 DrawBox, ColBox, SelBox NodeBox
15994 FootstepSnd, DiggingSnd, DugSnd SoundDef
16005 write8(w, uint8(x))
16020 //mt:const uint8(6)
16022 OverlayTiles [6]TileDef
16023 //mt:const uint8(6)
16024 SpecialTiles [6]TileDef
16031 ConnectTo []Content
16032 InsideTint color.NRGBA
16033 Level uint8 // Must be < 128.
16035 Translucent bool // Sunlight is scattered and becomes normal light.
16036 Transparent bool // Sunlight isn't scattered.
16049 LiquidType LiquidType
16052 Viscosity uint8 // 0-7
16058 DrawBox, ColBox, SelBox NodeBox
16060 FootstepSnd, DiggingSnd, DugSnd SoundDef
16070 }))(obj)).Translucent
16091 //mt:const uint8(6)
16093 OverlayTiles [6]TileDef
16094 //mt:const uint8(6)
16095 SpecialTiles [6]TileDef
16102 ConnectTo []Content
16103 InsideTint color.NRGBA
16104 Level uint8 // Must be < 128.
16106 Translucent bool // Sunlight is scattered and becomes normal light.
16107 Transparent bool // Sunlight isn't scattered.
16120 LiquidType LiquidType
16123 Viscosity uint8 // 0-7
16129 DrawBox, ColBox, SelBox NodeBox
16131 FootstepSnd, DiggingSnd, DugSnd SoundDef
16141 }))(obj)).Transparent
16162 //mt:const uint8(6)
16164 OverlayTiles [6]TileDef
16165 //mt:const uint8(6)
16166 SpecialTiles [6]TileDef
16173 ConnectTo []Content
16174 InsideTint color.NRGBA
16175 Level uint8 // Must be < 128.
16177 Translucent bool // Sunlight is scattered and becomes normal light.
16178 Transparent bool // Sunlight isn't scattered.
16191 LiquidType LiquidType
16194 Viscosity uint8 // 0-7
16200 DrawBox, ColBox, SelBox NodeBox
16202 FootstepSnd, DiggingSnd, DugSnd SoundDef
16213 write8(w, uint8(x))
16228 //mt:const uint8(6)
16230 OverlayTiles [6]TileDef
16231 //mt:const uint8(6)
16232 SpecialTiles [6]TileDef
16239 ConnectTo []Content
16240 InsideTint color.NRGBA
16241 Level uint8 // Must be < 128.
16243 Translucent bool // Sunlight is scattered and becomes normal light.
16244 Transparent bool // Sunlight isn't scattered.
16257 LiquidType LiquidType
16260 Viscosity uint8 // 0-7
16266 DrawBox, ColBox, SelBox NodeBox
16268 FootstepSnd, DiggingSnd, DugSnd SoundDef
16278 }))(obj)).GndContent
16299 //mt:const uint8(6)
16301 OverlayTiles [6]TileDef
16302 //mt:const uint8(6)
16303 SpecialTiles [6]TileDef
16310 ConnectTo []Content
16311 InsideTint color.NRGBA
16312 Level uint8 // Must be < 128.
16314 Translucent bool // Sunlight is scattered and becomes normal light.
16315 Transparent bool // Sunlight isn't scattered.
16328 LiquidType LiquidType
16331 Viscosity uint8 // 0-7
16337 DrawBox, ColBox, SelBox NodeBox
16339 FootstepSnd, DiggingSnd, DugSnd SoundDef
16370 //mt:const uint8(6)
16372 OverlayTiles [6]TileDef
16373 //mt:const uint8(6)
16374 SpecialTiles [6]TileDef
16381 ConnectTo []Content
16382 InsideTint color.NRGBA
16383 Level uint8 // Must be < 128.
16385 Translucent bool // Sunlight is scattered and becomes normal light.
16386 Transparent bool // Sunlight isn't scattered.
16399 LiquidType LiquidType
16402 Viscosity uint8 // 0-7
16408 DrawBox, ColBox, SelBox NodeBox
16410 FootstepSnd, DiggingSnd, DugSnd SoundDef
16420 }))(obj)).Pointable
16441 //mt:const uint8(6)
16443 OverlayTiles [6]TileDef
16444 //mt:const uint8(6)
16445 SpecialTiles [6]TileDef
16452 ConnectTo []Content
16453 InsideTint color.NRGBA
16454 Level uint8 // Must be < 128.
16456 Translucent bool // Sunlight is scattered and becomes normal light.
16457 Transparent bool // Sunlight isn't scattered.
16470 LiquidType LiquidType
16473 Viscosity uint8 // 0-7
16479 DrawBox, ColBox, SelBox NodeBox
16481 FootstepSnd, DiggingSnd, DugSnd SoundDef
16512 //mt:const uint8(6)
16514 OverlayTiles [6]TileDef
16515 //mt:const uint8(6)
16516 SpecialTiles [6]TileDef
16523 ConnectTo []Content
16524 InsideTint color.NRGBA
16525 Level uint8 // Must be < 128.
16527 Translucent bool // Sunlight is scattered and becomes normal light.
16528 Transparent bool // Sunlight isn't scattered.
16541 LiquidType LiquidType
16544 Viscosity uint8 // 0-7
16550 DrawBox, ColBox, SelBox NodeBox
16552 FootstepSnd, DiggingSnd, DugSnd SoundDef
16562 }))(obj)).Climbable
16583 //mt:const uint8(6)
16585 OverlayTiles [6]TileDef
16586 //mt:const uint8(6)
16587 SpecialTiles [6]TileDef
16594 ConnectTo []Content
16595 InsideTint color.NRGBA
16596 Level uint8 // Must be < 128.
16598 Translucent bool // Sunlight is scattered and becomes normal light.
16599 Transparent bool // Sunlight isn't scattered.
16612 LiquidType LiquidType
16615 Viscosity uint8 // 0-7
16621 DrawBox, ColBox, SelBox NodeBox
16623 FootstepSnd, DiggingSnd, DugSnd SoundDef
16633 }))(obj)).Replaceable
16654 //mt:const uint8(6)
16656 OverlayTiles [6]TileDef
16657 //mt:const uint8(6)
16658 SpecialTiles [6]TileDef
16665 ConnectTo []Content
16666 InsideTint color.NRGBA
16667 Level uint8 // Must be < 128.
16669 Translucent bool // Sunlight is scattered and becomes normal light.
16670 Transparent bool // Sunlight isn't scattered.
16683 LiquidType LiquidType
16686 Viscosity uint8 // 0-7
16692 DrawBox, ColBox, SelBox NodeBox
16694 FootstepSnd, DiggingSnd, DugSnd SoundDef
16704 }))(obj)).OnRightClick
16725 //mt:const uint8(6)
16727 OverlayTiles [6]TileDef
16728 //mt:const uint8(6)
16729 SpecialTiles [6]TileDef
16736 ConnectTo []Content
16737 InsideTint color.NRGBA
16738 Level uint8 // Must be < 128.
16740 Translucent bool // Sunlight is scattered and becomes normal light.
16741 Transparent bool // Sunlight isn't scattered.
16754 LiquidType LiquidType
16757 Viscosity uint8 // 0-7
16763 DrawBox, ColBox, SelBox NodeBox
16765 FootstepSnd, DiggingSnd, DugSnd SoundDef
16775 }))(obj)).DmgPerSec
16776 write32(w, uint32(x))
16778 if err := pcall(func() {
16791 //mt:const uint8(6)
16793 OverlayTiles [6]TileDef
16794 //mt:const uint8(6)
16795 SpecialTiles [6]TileDef
16802 ConnectTo []Content
16803 InsideTint color.NRGBA
16804 Level uint8 // Must be < 128.
16806 Translucent bool // Sunlight is scattered and becomes normal light.
16807 Transparent bool // Sunlight isn't scattered.
16820 LiquidType LiquidType
16823 Viscosity uint8 // 0-7
16829 DrawBox, ColBox, SelBox NodeBox
16831 FootstepSnd, DiggingSnd, DugSnd SoundDef
16841 }))(obj)).LiquidType).serialize(w)
16846 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
16848 if len(([]byte((*(*(struct {
16860 //mt:const uint8(6)
16862 OverlayTiles [6]TileDef
16863 //mt:const uint8(6)
16864 SpecialTiles [6]TileDef
16871 ConnectTo []Content
16872 InsideTint color.NRGBA
16873 Level uint8 // Must be < 128.
16875 Translucent bool // Sunlight is scattered and becomes normal light.
16876 Transparent bool // Sunlight isn't scattered.
16889 LiquidType LiquidType
16892 Viscosity uint8 // 0-7
16898 DrawBox, ColBox, SelBox NodeBox
16900 FootstepSnd, DiggingSnd, DugSnd SoundDef
16910 }))(obj)).FlowingAlt))) > math.MaxUint16 {
16914 x := uint16(len(([]byte((*(*(struct {
16926 //mt:const uint8(6)
16928 OverlayTiles [6]TileDef
16929 //mt:const uint8(6)
16930 SpecialTiles [6]TileDef
16937 ConnectTo []Content
16938 InsideTint color.NRGBA
16939 Level uint8 // Must be < 128.
16941 Translucent bool // Sunlight is scattered and becomes normal light.
16942 Transparent bool // Sunlight isn't scattered.
16955 LiquidType LiquidType
16958 Viscosity uint8 // 0-7
16964 DrawBox, ColBox, SelBox NodeBox
16966 FootstepSnd, DiggingSnd, DugSnd SoundDef
16976 }))(obj)).FlowingAlt))))
16977 write16(w, uint16(x))
16980 _, err := w.Write(([]byte((*(*(struct {
16992 //mt:const uint8(6)
16994 OverlayTiles [6]TileDef
16995 //mt:const uint8(6)
16996 SpecialTiles [6]TileDef
17003 ConnectTo []Content
17004 InsideTint color.NRGBA
17005 Level uint8 // Must be < 128.
17007 Translucent bool // Sunlight is scattered and becomes normal light.
17008 Transparent bool // Sunlight isn't scattered.
17021 LiquidType LiquidType
17024 Viscosity uint8 // 0-7
17030 DrawBox, ColBox, SelBox NodeBox
17032 FootstepSnd, DiggingSnd, DugSnd SoundDef
17042 }))(obj)).FlowingAlt))[:])
17045 if len(([]byte((*(*(struct {
17057 //mt:const uint8(6)
17059 OverlayTiles [6]TileDef
17060 //mt:const uint8(6)
17061 SpecialTiles [6]TileDef
17068 ConnectTo []Content
17069 InsideTint color.NRGBA
17070 Level uint8 // Must be < 128.
17072 Translucent bool // Sunlight is scattered and becomes normal light.
17073 Transparent bool // Sunlight isn't scattered.
17086 LiquidType LiquidType
17089 Viscosity uint8 // 0-7
17095 DrawBox, ColBox, SelBox NodeBox
17097 FootstepSnd, DiggingSnd, DugSnd SoundDef
17107 }))(obj)).SrcAlt))) > math.MaxUint16 {
17111 x := uint16(len(([]byte((*(*(struct {
17123 //mt:const uint8(6)
17125 OverlayTiles [6]TileDef
17126 //mt:const uint8(6)
17127 SpecialTiles [6]TileDef
17134 ConnectTo []Content
17135 InsideTint color.NRGBA
17136 Level uint8 // Must be < 128.
17138 Translucent bool // Sunlight is scattered and becomes normal light.
17139 Transparent bool // Sunlight isn't scattered.
17152 LiquidType LiquidType
17155 Viscosity uint8 // 0-7
17161 DrawBox, ColBox, SelBox NodeBox
17163 FootstepSnd, DiggingSnd, DugSnd SoundDef
17173 }))(obj)).SrcAlt))))
17174 write16(w, uint16(x))
17177 _, err := w.Write(([]byte((*(*(struct {
17189 //mt:const uint8(6)
17191 OverlayTiles [6]TileDef
17192 //mt:const uint8(6)
17193 SpecialTiles [6]TileDef
17200 ConnectTo []Content
17201 InsideTint color.NRGBA
17202 Level uint8 // Must be < 128.
17204 Translucent bool // Sunlight is scattered and becomes normal light.
17205 Transparent bool // Sunlight isn't scattered.
17218 LiquidType LiquidType
17221 Viscosity uint8 // 0-7
17227 DrawBox, ColBox, SelBox NodeBox
17229 FootstepSnd, DiggingSnd, DugSnd SoundDef
17239 }))(obj)).SrcAlt))[:])
17255 //mt:const uint8(6)
17257 OverlayTiles [6]TileDef
17258 //mt:const uint8(6)
17259 SpecialTiles [6]TileDef
17266 ConnectTo []Content
17267 InsideTint color.NRGBA
17268 Level uint8 // Must be < 128.
17270 Translucent bool // Sunlight is scattered and becomes normal light.
17271 Transparent bool // Sunlight isn't scattered.
17284 LiquidType LiquidType
17287 Viscosity uint8 // 0-7
17293 DrawBox, ColBox, SelBox NodeBox
17295 FootstepSnd, DiggingSnd, DugSnd SoundDef
17305 }))(obj)).Viscosity
17306 write8(w, uint8(x))
17321 //mt:const uint8(6)
17323 OverlayTiles [6]TileDef
17324 //mt:const uint8(6)
17325 SpecialTiles [6]TileDef
17332 ConnectTo []Content
17333 InsideTint color.NRGBA
17334 Level uint8 // Must be < 128.
17336 Translucent bool // Sunlight is scattered and becomes normal light.
17337 Transparent bool // Sunlight isn't scattered.
17350 LiquidType LiquidType
17353 Viscosity uint8 // 0-7
17359 DrawBox, ColBox, SelBox NodeBox
17361 FootstepSnd, DiggingSnd, DugSnd SoundDef
17371 }))(obj)).LiqRenewable
17392 //mt:const uint8(6)
17394 OverlayTiles [6]TileDef
17395 //mt:const uint8(6)
17396 SpecialTiles [6]TileDef
17403 ConnectTo []Content
17404 InsideTint color.NRGBA
17405 Level uint8 // Must be < 128.
17407 Translucent bool // Sunlight is scattered and becomes normal light.
17408 Transparent bool // Sunlight isn't scattered.
17421 LiquidType LiquidType
17424 Viscosity uint8 // 0-7
17430 DrawBox, ColBox, SelBox NodeBox
17432 FootstepSnd, DiggingSnd, DugSnd SoundDef
17442 }))(obj)).FlowRange
17443 write8(w, uint8(x))
17458 //mt:const uint8(6)
17460 OverlayTiles [6]TileDef
17461 //mt:const uint8(6)
17462 SpecialTiles [6]TileDef
17469 ConnectTo []Content
17470 InsideTint color.NRGBA
17471 Level uint8 // Must be < 128.
17473 Translucent bool // Sunlight is scattered and becomes normal light.
17474 Transparent bool // Sunlight isn't scattered.
17487 LiquidType LiquidType
17490 Viscosity uint8 // 0-7
17496 DrawBox, ColBox, SelBox NodeBox
17498 FootstepSnd, DiggingSnd, DugSnd SoundDef
17509 write8(w, uint8(x))
17524 //mt:const uint8(6)
17526 OverlayTiles [6]TileDef
17527 //mt:const uint8(6)
17528 SpecialTiles [6]TileDef
17535 ConnectTo []Content
17536 InsideTint color.NRGBA
17537 Level uint8 // Must be < 128.
17539 Translucent bool // Sunlight is scattered and becomes normal light.
17540 Transparent bool // Sunlight isn't scattered.
17553 LiquidType LiquidType
17556 Viscosity uint8 // 0-7
17562 DrawBox, ColBox, SelBox NodeBox
17564 FootstepSnd, DiggingSnd, DugSnd SoundDef
17574 }))(obj)).Floodable
17582 if err := pcall(func() {
17595 //mt:const uint8(6)
17597 OverlayTiles [6]TileDef
17598 //mt:const uint8(6)
17599 SpecialTiles [6]TileDef
17606 ConnectTo []Content
17607 InsideTint color.NRGBA
17608 Level uint8 // Must be < 128.
17610 Translucent bool // Sunlight is scattered and becomes normal light.
17611 Transparent bool // Sunlight isn't scattered.
17624 LiquidType LiquidType
17627 Viscosity uint8 // 0-7
17633 DrawBox, ColBox, SelBox NodeBox
17635 FootstepSnd, DiggingSnd, DugSnd SoundDef
17645 }))(obj)).DrawBox).serialize(w)
17650 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17652 if err := pcall(func() {
17665 //mt:const uint8(6)
17667 OverlayTiles [6]TileDef
17668 //mt:const uint8(6)
17669 SpecialTiles [6]TileDef
17676 ConnectTo []Content
17677 InsideTint color.NRGBA
17678 Level uint8 // Must be < 128.
17680 Translucent bool // Sunlight is scattered and becomes normal light.
17681 Transparent bool // Sunlight isn't scattered.
17694 LiquidType LiquidType
17697 Viscosity uint8 // 0-7
17703 DrawBox, ColBox, SelBox NodeBox
17705 FootstepSnd, DiggingSnd, DugSnd SoundDef
17715 }))(obj)).ColBox).serialize(w)
17720 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17722 if err := pcall(func() {
17735 //mt:const uint8(6)
17737 OverlayTiles [6]TileDef
17738 //mt:const uint8(6)
17739 SpecialTiles [6]TileDef
17746 ConnectTo []Content
17747 InsideTint color.NRGBA
17748 Level uint8 // Must be < 128.
17750 Translucent bool // Sunlight is scattered and becomes normal light.
17751 Transparent bool // Sunlight isn't scattered.
17764 LiquidType LiquidType
17767 Viscosity uint8 // 0-7
17773 DrawBox, ColBox, SelBox NodeBox
17775 FootstepSnd, DiggingSnd, DugSnd SoundDef
17785 }))(obj)).SelBox).serialize(w)
17790 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
17792 if err := pcall(func() {
17805 //mt:const uint8(6)
17807 OverlayTiles [6]TileDef
17808 //mt:const uint8(6)
17809 SpecialTiles [6]TileDef
17816 ConnectTo []Content
17817 InsideTint color.NRGBA
17818 Level uint8 // Must be < 128.
17820 Translucent bool // Sunlight is scattered and becomes normal light.
17821 Transparent bool // Sunlight isn't scattered.
17834 LiquidType LiquidType
17837 Viscosity uint8 // 0-7
17843 DrawBox, ColBox, SelBox NodeBox
17845 FootstepSnd, DiggingSnd, DugSnd SoundDef
17855 }))(obj)).FootstepSnd).serialize(w)
17860 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17862 if err := pcall(func() {
17875 //mt:const uint8(6)
17877 OverlayTiles [6]TileDef
17878 //mt:const uint8(6)
17879 SpecialTiles [6]TileDef
17886 ConnectTo []Content
17887 InsideTint color.NRGBA
17888 Level uint8 // Must be < 128.
17890 Translucent bool // Sunlight is scattered and becomes normal light.
17891 Transparent bool // Sunlight isn't scattered.
17904 LiquidType LiquidType
17907 Viscosity uint8 // 0-7
17913 DrawBox, ColBox, SelBox NodeBox
17915 FootstepSnd, DiggingSnd, DugSnd SoundDef
17925 }))(obj)).DiggingSnd).serialize(w)
17930 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
17932 if err := pcall(func() {
17945 //mt:const uint8(6)
17947 OverlayTiles [6]TileDef
17948 //mt:const uint8(6)
17949 SpecialTiles [6]TileDef
17956 ConnectTo []Content
17957 InsideTint color.NRGBA
17958 Level uint8 // Must be < 128.
17960 Translucent bool // Sunlight is scattered and becomes normal light.
17961 Transparent bool // Sunlight isn't scattered.
17974 LiquidType LiquidType
17977 Viscosity uint8 // 0-7
17983 DrawBox, ColBox, SelBox NodeBox
17985 FootstepSnd, DiggingSnd, DugSnd SoundDef
17995 }))(obj)).DugSnd).serialize(w)
18000 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
18015 //mt:const uint8(6)
18017 OverlayTiles [6]TileDef
18018 //mt:const uint8(6)
18019 SpecialTiles [6]TileDef
18026 ConnectTo []Content
18027 InsideTint color.NRGBA
18028 Level uint8 // Must be < 128.
18030 Translucent bool // Sunlight is scattered and becomes normal light.
18031 Transparent bool // Sunlight isn't scattered.
18044 LiquidType LiquidType
18047 Viscosity uint8 // 0-7
18053 DrawBox, ColBox, SelBox NodeBox
18055 FootstepSnd, DiggingSnd, DugSnd SoundDef
18065 }))(obj)).LegacyFaceDir
18086 //mt:const uint8(6)
18088 OverlayTiles [6]TileDef
18089 //mt:const uint8(6)
18090 SpecialTiles [6]TileDef
18097 ConnectTo []Content
18098 InsideTint color.NRGBA
18099 Level uint8 // Must be < 128.
18101 Translucent bool // Sunlight is scattered and becomes normal light.
18102 Transparent bool // Sunlight isn't scattered.
18115 LiquidType LiquidType
18118 Viscosity uint8 // 0-7
18124 DrawBox, ColBox, SelBox NodeBox
18126 FootstepSnd, DiggingSnd, DugSnd SoundDef
18136 }))(obj)).LegacyMounted
18144 if len(([]byte((*(*(struct {
18156 //mt:const uint8(6)
18158 OverlayTiles [6]TileDef
18159 //mt:const uint8(6)
18160 SpecialTiles [6]TileDef
18167 ConnectTo []Content
18168 InsideTint color.NRGBA
18169 Level uint8 // Must be < 128.
18171 Translucent bool // Sunlight is scattered and becomes normal light.
18172 Transparent bool // Sunlight isn't scattered.
18185 LiquidType LiquidType
18188 Viscosity uint8 // 0-7
18194 DrawBox, ColBox, SelBox NodeBox
18196 FootstepSnd, DiggingSnd, DugSnd SoundDef
18206 }))(obj)).DigPredict))) > math.MaxUint16 {
18210 x := uint16(len(([]byte((*(*(struct {
18222 //mt:const uint8(6)
18224 OverlayTiles [6]TileDef
18225 //mt:const uint8(6)
18226 SpecialTiles [6]TileDef
18233 ConnectTo []Content
18234 InsideTint color.NRGBA
18235 Level uint8 // Must be < 128.
18237 Translucent bool // Sunlight is scattered and becomes normal light.
18238 Transparent bool // Sunlight isn't scattered.
18251 LiquidType LiquidType
18254 Viscosity uint8 // 0-7
18260 DrawBox, ColBox, SelBox NodeBox
18262 FootstepSnd, DiggingSnd, DugSnd SoundDef
18272 }))(obj)).DigPredict))))
18273 write16(w, uint16(x))
18276 _, err := w.Write(([]byte((*(*(struct {
18288 //mt:const uint8(6)
18290 OverlayTiles [6]TileDef
18291 //mt:const uint8(6)
18292 SpecialTiles [6]TileDef
18299 ConnectTo []Content
18300 InsideTint color.NRGBA
18301 Level uint8 // Must be < 128.
18303 Translucent bool // Sunlight is scattered and becomes normal light.
18304 Transparent bool // Sunlight isn't scattered.
18317 LiquidType LiquidType
18320 Viscosity uint8 // 0-7
18326 DrawBox, ColBox, SelBox NodeBox
18328 FootstepSnd, DiggingSnd, DugSnd SoundDef
18338 }))(obj)).DigPredict))[:])
18354 //mt:const uint8(6)
18356 OverlayTiles [6]TileDef
18357 //mt:const uint8(6)
18358 SpecialTiles [6]TileDef
18365 ConnectTo []Content
18366 InsideTint color.NRGBA
18367 Level uint8 // Must be < 128.
18369 Translucent bool // Sunlight is scattered and becomes normal light.
18370 Transparent bool // Sunlight isn't scattered.
18383 LiquidType LiquidType
18386 Viscosity uint8 // 0-7
18392 DrawBox, ColBox, SelBox NodeBox
18394 FootstepSnd, DiggingSnd, DugSnd SoundDef
18405 write8(w, uint8(x))
18407 if err := pcall(func() {
18420 //mt:const uint8(6)
18422 OverlayTiles [6]TileDef
18423 //mt:const uint8(6)
18424 SpecialTiles [6]TileDef
18431 ConnectTo []Content
18432 InsideTint color.NRGBA
18433 Level uint8 // Must be < 128.
18435 Translucent bool // Sunlight is scattered and becomes normal light.
18436 Transparent bool // Sunlight isn't scattered.
18449 LiquidType LiquidType
18452 Viscosity uint8 // 0-7
18458 DrawBox, ColBox, SelBox NodeBox
18460 FootstepSnd, DiggingSnd, DugSnd SoundDef
18470 }))(obj)).AlphaUse).serialize(w)
18475 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
18480 if len((buf.Bytes())) > math.MaxUint16 {
18484 x := uint16(len((buf.Bytes())))
18485 write16(w, uint16(x))
18488 _, err := w.Write((buf.Bytes())[:])
18495 func (obj *NodeDef) deserialize(r io.Reader) {
18496 if err := pcall(func() {
18509 //mt:const uint8(6)
18511 OverlayTiles [6]TileDef
18512 //mt:const uint8(6)
18513 SpecialTiles [6]TileDef
18520 ConnectTo []Content
18521 InsideTint color.NRGBA
18522 Level uint8 // Must be < 128.
18524 Translucent bool // Sunlight is scattered and becomes normal light.
18525 Transparent bool // Sunlight isn't scattered.
18538 LiquidType LiquidType
18541 Viscosity uint8 // 0-7
18547 DrawBox, ColBox, SelBox NodeBox
18549 FootstepSnd, DiggingSnd, DugSnd SoundDef
18559 }))(obj)).Param0).deserialize(r)
18564 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
18572 r := &io.LimitedReader{R: r, N: int64(n)}
18575 local249 := uint8(13)
18580 if local248 != local249 {
18581 chk(fmt.Errorf("const %v: %v", "uint8(13)", local248))
18584 var local250 []uint8
18585 var local251 uint16
18590 (local250) = make([]uint8, local251)
18592 _, err := io.ReadFull(r, (local250)[:])
18607 //mt:const uint8(6)
18609 OverlayTiles [6]TileDef
18610 //mt:const uint8(6)
18611 SpecialTiles [6]TileDef
18618 ConnectTo []Content
18619 InsideTint color.NRGBA
18620 Level uint8 // Must be < 128.
18622 Translucent bool // Sunlight is scattered and becomes normal light.
18623 Transparent bool // Sunlight isn't scattered.
18636 LiquidType LiquidType
18639 Viscosity uint8 // 0-7
18645 DrawBox, ColBox, SelBox NodeBox
18647 FootstepSnd, DiggingSnd, DugSnd SoundDef
18657 }))(obj)).Name) = string(local250)
18658 var local252 uint16
18675 //mt:const uint8(6)
18677 OverlayTiles [6]TileDef
18678 //mt:const uint8(6)
18679 SpecialTiles [6]TileDef
18686 ConnectTo []Content
18687 InsideTint color.NRGBA
18688 Level uint8 // Must be < 128.
18690 Translucent bool // Sunlight is scattered and becomes normal light.
18691 Transparent bool // Sunlight isn't scattered.
18704 LiquidType LiquidType
18707 Viscosity uint8 // 0-7
18713 DrawBox, ColBox, SelBox NodeBox
18715 FootstepSnd, DiggingSnd, DugSnd SoundDef
18725 }))(obj)).Groups) = make([]Group, local252)
18726 for local253 := range (*(*(struct {
18738 //mt:const uint8(6)
18740 OverlayTiles [6]TileDef
18741 //mt:const uint8(6)
18742 SpecialTiles [6]TileDef
18749 ConnectTo []Content
18750 InsideTint color.NRGBA
18751 Level uint8 // Must be < 128.
18753 Translucent bool // Sunlight is scattered and becomes normal light.
18754 Transparent bool // Sunlight isn't scattered.
18767 LiquidType LiquidType
18770 Viscosity uint8 // 0-7
18776 DrawBox, ColBox, SelBox NodeBox
18778 FootstepSnd, DiggingSnd, DugSnd SoundDef
18789 if err := pcall(func() {
18802 //mt:const uint8(6)
18804 OverlayTiles [6]TileDef
18805 //mt:const uint8(6)
18806 SpecialTiles [6]TileDef
18813 ConnectTo []Content
18814 InsideTint color.NRGBA
18815 Level uint8 // Must be < 128.
18817 Translucent bool // Sunlight is scattered and becomes normal light.
18818 Transparent bool // Sunlight isn't scattered.
18831 LiquidType LiquidType
18834 Viscosity uint8 // 0-7
18840 DrawBox, ColBox, SelBox NodeBox
18842 FootstepSnd, DiggingSnd, DugSnd SoundDef
18852 }))(obj)).Groups)[local253]).deserialize(r)
18857 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
18860 if err := pcall(func() {
18873 //mt:const uint8(6)
18875 OverlayTiles [6]TileDef
18876 //mt:const uint8(6)
18877 SpecialTiles [6]TileDef
18884 ConnectTo []Content
18885 InsideTint color.NRGBA
18886 Level uint8 // Must be < 128.
18888 Translucent bool // Sunlight is scattered and becomes normal light.
18889 Transparent bool // Sunlight isn't scattered.
18902 LiquidType LiquidType
18905 Viscosity uint8 // 0-7
18911 DrawBox, ColBox, SelBox NodeBox
18913 FootstepSnd, DiggingSnd, DugSnd SoundDef
18923 }))(obj)).P1Type).deserialize(r)
18928 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param1Type", err))
18930 if err := pcall(func() {
18943 //mt:const uint8(6)
18945 OverlayTiles [6]TileDef
18946 //mt:const uint8(6)
18947 SpecialTiles [6]TileDef
18954 ConnectTo []Content
18955 InsideTint color.NRGBA
18956 Level uint8 // Must be < 128.
18958 Translucent bool // Sunlight is scattered and becomes normal light.
18959 Transparent bool // Sunlight isn't scattered.
18972 LiquidType LiquidType
18975 Viscosity uint8 // 0-7
18981 DrawBox, ColBox, SelBox NodeBox
18983 FootstepSnd, DiggingSnd, DugSnd SoundDef
18993 }))(obj)).P2Type).deserialize(r)
18998 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Param2Type", err))
19000 if err := pcall(func() {
19013 //mt:const uint8(6)
19015 OverlayTiles [6]TileDef
19016 //mt:const uint8(6)
19017 SpecialTiles [6]TileDef
19024 ConnectTo []Content
19025 InsideTint color.NRGBA
19026 Level uint8 // Must be < 128.
19028 Translucent bool // Sunlight is scattered and becomes normal light.
19029 Transparent bool // Sunlight isn't scattered.
19042 LiquidType LiquidType
19045 Viscosity uint8 // 0-7
19051 DrawBox, ColBox, SelBox NodeBox
19053 FootstepSnd, DiggingSnd, DugSnd SoundDef
19063 }))(obj)).DrawType).deserialize(r)
19068 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DrawType", err))
19070 var local254 []uint8
19071 var local255 uint16
19076 (local254) = make([]uint8, local255)
19078 _, err := io.ReadFull(r, (local254)[:])
19093 //mt:const uint8(6)
19095 OverlayTiles [6]TileDef
19096 //mt:const uint8(6)
19097 SpecialTiles [6]TileDef
19104 ConnectTo []Content
19105 InsideTint color.NRGBA
19106 Level uint8 // Must be < 128.
19108 Translucent bool // Sunlight is scattered and becomes normal light.
19109 Transparent bool // Sunlight isn't scattered.
19122 LiquidType LiquidType
19125 Viscosity uint8 // 0-7
19131 DrawBox, ColBox, SelBox NodeBox
19133 FootstepSnd, DiggingSnd, DugSnd SoundDef
19143 }))(obj)).Mesh) = string(local254)
19145 p := &(*(*(struct {
19157 //mt:const uint8(6)
19159 OverlayTiles [6]TileDef
19160 //mt:const uint8(6)
19161 SpecialTiles [6]TileDef
19168 ConnectTo []Content
19169 InsideTint color.NRGBA
19170 Level uint8 // Must be < 128.
19172 Translucent bool // Sunlight is scattered and becomes normal light.
19173 Transparent bool // Sunlight isn't scattered.
19186 LiquidType LiquidType
19189 Viscosity uint8 // 0-7
19195 DrawBox, ColBox, SelBox NodeBox
19197 FootstepSnd, DiggingSnd, DugSnd SoundDef
19208 *p = math.Float32frombits(read32(r))
19212 local257 := uint8(6)
19217 if local256 != local257 {
19218 chk(fmt.Errorf("const %v: %v", "uint8(6)", local256))
19221 for local258 := range (*(*(struct {
19233 //mt:const uint8(6)
19235 OverlayTiles [6]TileDef
19236 //mt:const uint8(6)
19237 SpecialTiles [6]TileDef
19244 ConnectTo []Content
19245 InsideTint color.NRGBA
19246 Level uint8 // Must be < 128.
19248 Translucent bool // Sunlight is scattered and becomes normal light.
19249 Transparent bool // Sunlight isn't scattered.
19262 LiquidType LiquidType
19265 Viscosity uint8 // 0-7
19271 DrawBox, ColBox, SelBox NodeBox
19273 FootstepSnd, DiggingSnd, DugSnd SoundDef
19284 if err := pcall(func() {
19297 //mt:const uint8(6)
19299 OverlayTiles [6]TileDef
19300 //mt:const uint8(6)
19301 SpecialTiles [6]TileDef
19308 ConnectTo []Content
19309 InsideTint color.NRGBA
19310 Level uint8 // Must be < 128.
19312 Translucent bool // Sunlight is scattered and becomes normal light.
19313 Transparent bool // Sunlight isn't scattered.
19326 LiquidType LiquidType
19329 Viscosity uint8 // 0-7
19335 DrawBox, ColBox, SelBox NodeBox
19337 FootstepSnd, DiggingSnd, DugSnd SoundDef
19347 }))(obj)).Tiles)[local258]).deserialize(r)
19352 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19355 for local259 := range (*(*(struct {
19367 //mt:const uint8(6)
19369 OverlayTiles [6]TileDef
19370 //mt:const uint8(6)
19371 SpecialTiles [6]TileDef
19378 ConnectTo []Content
19379 InsideTint color.NRGBA
19380 Level uint8 // Must be < 128.
19382 Translucent bool // Sunlight is scattered and becomes normal light.
19383 Transparent bool // Sunlight isn't scattered.
19396 LiquidType LiquidType
19399 Viscosity uint8 // 0-7
19405 DrawBox, ColBox, SelBox NodeBox
19407 FootstepSnd, DiggingSnd, DugSnd SoundDef
19417 }))(obj)).OverlayTiles {
19418 if err := pcall(func() {
19431 //mt:const uint8(6)
19433 OverlayTiles [6]TileDef
19434 //mt:const uint8(6)
19435 SpecialTiles [6]TileDef
19442 ConnectTo []Content
19443 InsideTint color.NRGBA
19444 Level uint8 // Must be < 128.
19446 Translucent bool // Sunlight is scattered and becomes normal light.
19447 Transparent bool // Sunlight isn't scattered.
19460 LiquidType LiquidType
19463 Viscosity uint8 // 0-7
19469 DrawBox, ColBox, SelBox NodeBox
19471 FootstepSnd, DiggingSnd, DugSnd SoundDef
19481 }))(obj)).OverlayTiles)[local259]).deserialize(r)
19486 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19491 local261 := uint8(6)
19496 if local260 != local261 {
19497 chk(fmt.Errorf("const %v: %v", "uint8(6)", local260))
19500 for local262 := range (*(*(struct {
19512 //mt:const uint8(6)
19514 OverlayTiles [6]TileDef
19515 //mt:const uint8(6)
19516 SpecialTiles [6]TileDef
19523 ConnectTo []Content
19524 InsideTint color.NRGBA
19525 Level uint8 // Must be < 128.
19527 Translucent bool // Sunlight is scattered and becomes normal light.
19528 Transparent bool // Sunlight isn't scattered.
19541 LiquidType LiquidType
19544 Viscosity uint8 // 0-7
19550 DrawBox, ColBox, SelBox NodeBox
19552 FootstepSnd, DiggingSnd, DugSnd SoundDef
19562 }))(obj)).SpecialTiles {
19563 if err := pcall(func() {
19576 //mt:const uint8(6)
19578 OverlayTiles [6]TileDef
19579 //mt:const uint8(6)
19580 SpecialTiles [6]TileDef
19587 ConnectTo []Content
19588 InsideTint color.NRGBA
19589 Level uint8 // Must be < 128.
19591 Translucent bool // Sunlight is scattered and becomes normal light.
19592 Transparent bool // Sunlight isn't scattered.
19605 LiquidType LiquidType
19608 Viscosity uint8 // 0-7
19614 DrawBox, ColBox, SelBox NodeBox
19616 FootstepSnd, DiggingSnd, DugSnd SoundDef
19626 }))(obj)).SpecialTiles)[local262]).deserialize(r)
19631 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileDef", err))
19635 p := &(*(*(struct {
19647 //mt:const uint8(6)
19649 OverlayTiles [6]TileDef
19650 //mt:const uint8(6)
19651 SpecialTiles [6]TileDef
19658 ConnectTo []Content
19659 InsideTint color.NRGBA
19660 Level uint8 // Must be < 128.
19662 Translucent bool // Sunlight is scattered and becomes normal light.
19663 Transparent bool // Sunlight isn't scattered.
19676 LiquidType LiquidType
19679 Viscosity uint8 // 0-7
19685 DrawBox, ColBox, SelBox NodeBox
19687 FootstepSnd, DiggingSnd, DugSnd SoundDef
19698 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19701 if err := pcall(func() {
19714 //mt:const uint8(6)
19716 OverlayTiles [6]TileDef
19717 //mt:const uint8(6)
19718 SpecialTiles [6]TileDef
19725 ConnectTo []Content
19726 InsideTint color.NRGBA
19727 Level uint8 // Must be < 128.
19729 Translucent bool // Sunlight is scattered and becomes normal light.
19730 Transparent bool // Sunlight isn't scattered.
19743 LiquidType LiquidType
19746 Viscosity uint8 // 0-7
19752 DrawBox, ColBox, SelBox NodeBox
19754 FootstepSnd, DiggingSnd, DugSnd SoundDef
19764 }))(obj)).Palette).deserialize(r)
19769 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
19771 if err := pcall(func() {
19784 //mt:const uint8(6)
19786 OverlayTiles [6]TileDef
19787 //mt:const uint8(6)
19788 SpecialTiles [6]TileDef
19795 ConnectTo []Content
19796 InsideTint color.NRGBA
19797 Level uint8 // Must be < 128.
19799 Translucent bool // Sunlight is scattered and becomes normal light.
19800 Transparent bool // Sunlight isn't scattered.
19813 LiquidType LiquidType
19816 Viscosity uint8 // 0-7
19822 DrawBox, ColBox, SelBox NodeBox
19824 FootstepSnd, DiggingSnd, DugSnd SoundDef
19834 }))(obj)).Waving).deserialize(r)
19839 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.WaveType", err))
19842 p := &(*(*(struct {
19854 //mt:const uint8(6)
19856 OverlayTiles [6]TileDef
19857 //mt:const uint8(6)
19858 SpecialTiles [6]TileDef
19865 ConnectTo []Content
19866 InsideTint color.NRGBA
19867 Level uint8 // Must be < 128.
19869 Translucent bool // Sunlight is scattered and becomes normal light.
19870 Transparent bool // Sunlight isn't scattered.
19883 LiquidType LiquidType
19886 Viscosity uint8 // 0-7
19892 DrawBox, ColBox, SelBox NodeBox
19894 FootstepSnd, DiggingSnd, DugSnd SoundDef
19904 }))(obj)).ConnectSides
19907 var local263 uint16
19924 //mt:const uint8(6)
19926 OverlayTiles [6]TileDef
19927 //mt:const uint8(6)
19928 SpecialTiles [6]TileDef
19935 ConnectTo []Content
19936 InsideTint color.NRGBA
19937 Level uint8 // Must be < 128.
19939 Translucent bool // Sunlight is scattered and becomes normal light.
19940 Transparent bool // Sunlight isn't scattered.
19953 LiquidType LiquidType
19956 Viscosity uint8 // 0-7
19962 DrawBox, ColBox, SelBox NodeBox
19964 FootstepSnd, DiggingSnd, DugSnd SoundDef
19974 }))(obj)).ConnectTo) = make([]Content, local263)
19975 for local264 := range (*(*(struct {
19987 //mt:const uint8(6)
19989 OverlayTiles [6]TileDef
19990 //mt:const uint8(6)
19991 SpecialTiles [6]TileDef
19998 ConnectTo []Content
19999 InsideTint color.NRGBA
20000 Level uint8 // Must be < 128.
20002 Translucent bool // Sunlight is scattered and becomes normal light.
20003 Transparent bool // Sunlight isn't scattered.
20016 LiquidType LiquidType
20019 Viscosity uint8 // 0-7
20025 DrawBox, ColBox, SelBox NodeBox
20027 FootstepSnd, DiggingSnd, DugSnd SoundDef
20037 }))(obj)).ConnectTo {
20038 if err := pcall(func() {
20051 //mt:const uint8(6)
20053 OverlayTiles [6]TileDef
20054 //mt:const uint8(6)
20055 SpecialTiles [6]TileDef
20062 ConnectTo []Content
20063 InsideTint color.NRGBA
20064 Level uint8 // Must be < 128.
20066 Translucent bool // Sunlight is scattered and becomes normal light.
20067 Transparent bool // Sunlight isn't scattered.
20080 LiquidType LiquidType
20083 Viscosity uint8 // 0-7
20089 DrawBox, ColBox, SelBox NodeBox
20091 FootstepSnd, DiggingSnd, DugSnd SoundDef
20101 }))(obj)).ConnectTo)[local264]).deserialize(r)
20106 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
20110 p := &(*(*(struct {
20122 //mt:const uint8(6)
20124 OverlayTiles [6]TileDef
20125 //mt:const uint8(6)
20126 SpecialTiles [6]TileDef
20133 ConnectTo []Content
20134 InsideTint color.NRGBA
20135 Level uint8 // Must be < 128.
20137 Translucent bool // Sunlight is scattered and becomes normal light.
20138 Transparent bool // Sunlight isn't scattered.
20151 LiquidType LiquidType
20154 Viscosity uint8 // 0-7
20160 DrawBox, ColBox, SelBox NodeBox
20162 FootstepSnd, DiggingSnd, DugSnd SoundDef
20172 }))(obj)).InsideTint
20173 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20177 p := &(*(*(struct {
20189 //mt:const uint8(6)
20191 OverlayTiles [6]TileDef
20192 //mt:const uint8(6)
20193 SpecialTiles [6]TileDef
20200 ConnectTo []Content
20201 InsideTint color.NRGBA
20202 Level uint8 // Must be < 128.
20204 Translucent bool // Sunlight is scattered and becomes normal light.
20205 Transparent bool // Sunlight isn't scattered.
20218 LiquidType LiquidType
20221 Viscosity uint8 // 0-7
20227 DrawBox, ColBox, SelBox NodeBox
20229 FootstepSnd, DiggingSnd, DugSnd SoundDef
20243 p := &(*(*(struct {
20255 //mt:const uint8(6)
20257 OverlayTiles [6]TileDef
20258 //mt:const uint8(6)
20259 SpecialTiles [6]TileDef
20266 ConnectTo []Content
20267 InsideTint color.NRGBA
20268 Level uint8 // Must be < 128.
20270 Translucent bool // Sunlight is scattered and becomes normal light.
20271 Transparent bool // Sunlight isn't scattered.
20284 LiquidType LiquidType
20287 Viscosity uint8 // 0-7
20293 DrawBox, ColBox, SelBox NodeBox
20295 FootstepSnd, DiggingSnd, DugSnd SoundDef
20305 }))(obj)).Translucent
20306 switch n := read8(r); n {
20312 chk(fmt.Errorf("invalid bool: %d", n))
20317 p := &(*(*(struct {
20329 //mt:const uint8(6)
20331 OverlayTiles [6]TileDef
20332 //mt:const uint8(6)
20333 SpecialTiles [6]TileDef
20340 ConnectTo []Content
20341 InsideTint color.NRGBA
20342 Level uint8 // Must be < 128.
20344 Translucent bool // Sunlight is scattered and becomes normal light.
20345 Transparent bool // Sunlight isn't scattered.
20358 LiquidType LiquidType
20361 Viscosity uint8 // 0-7
20367 DrawBox, ColBox, SelBox NodeBox
20369 FootstepSnd, DiggingSnd, DugSnd SoundDef
20379 }))(obj)).Transparent
20380 switch n := read8(r); n {
20386 chk(fmt.Errorf("invalid bool: %d", n))
20391 p := &(*(*(struct {
20403 //mt:const uint8(6)
20405 OverlayTiles [6]TileDef
20406 //mt:const uint8(6)
20407 SpecialTiles [6]TileDef
20414 ConnectTo []Content
20415 InsideTint color.NRGBA
20416 Level uint8 // Must be < 128.
20418 Translucent bool // Sunlight is scattered and becomes normal light.
20419 Transparent bool // Sunlight isn't scattered.
20432 LiquidType LiquidType
20435 Viscosity uint8 // 0-7
20441 DrawBox, ColBox, SelBox NodeBox
20443 FootstepSnd, DiggingSnd, DugSnd SoundDef
20457 p := &(*(*(struct {
20469 //mt:const uint8(6)
20471 OverlayTiles [6]TileDef
20472 //mt:const uint8(6)
20473 SpecialTiles [6]TileDef
20480 ConnectTo []Content
20481 InsideTint color.NRGBA
20482 Level uint8 // Must be < 128.
20484 Translucent bool // Sunlight is scattered and becomes normal light.
20485 Transparent bool // Sunlight isn't scattered.
20498 LiquidType LiquidType
20501 Viscosity uint8 // 0-7
20507 DrawBox, ColBox, SelBox NodeBox
20509 FootstepSnd, DiggingSnd, DugSnd SoundDef
20519 }))(obj)).GndContent
20520 switch n := read8(r); n {
20526 chk(fmt.Errorf("invalid bool: %d", n))
20531 p := &(*(*(struct {
20543 //mt:const uint8(6)
20545 OverlayTiles [6]TileDef
20546 //mt:const uint8(6)
20547 SpecialTiles [6]TileDef
20554 ConnectTo []Content
20555 InsideTint color.NRGBA
20556 Level uint8 // Must be < 128.
20558 Translucent bool // Sunlight is scattered and becomes normal light.
20559 Transparent bool // Sunlight isn't scattered.
20572 LiquidType LiquidType
20575 Viscosity uint8 // 0-7
20581 DrawBox, ColBox, SelBox NodeBox
20583 FootstepSnd, DiggingSnd, DugSnd SoundDef
20594 switch n := read8(r); n {
20600 chk(fmt.Errorf("invalid bool: %d", n))
20605 p := &(*(*(struct {
20617 //mt:const uint8(6)
20619 OverlayTiles [6]TileDef
20620 //mt:const uint8(6)
20621 SpecialTiles [6]TileDef
20628 ConnectTo []Content
20629 InsideTint color.NRGBA
20630 Level uint8 // Must be < 128.
20632 Translucent bool // Sunlight is scattered and becomes normal light.
20633 Transparent bool // Sunlight isn't scattered.
20646 LiquidType LiquidType
20649 Viscosity uint8 // 0-7
20655 DrawBox, ColBox, SelBox NodeBox
20657 FootstepSnd, DiggingSnd, DugSnd SoundDef
20667 }))(obj)).Pointable
20668 switch n := read8(r); n {
20674 chk(fmt.Errorf("invalid bool: %d", n))
20679 p := &(*(*(struct {
20691 //mt:const uint8(6)
20693 OverlayTiles [6]TileDef
20694 //mt:const uint8(6)
20695 SpecialTiles [6]TileDef
20702 ConnectTo []Content
20703 InsideTint color.NRGBA
20704 Level uint8 // Must be < 128.
20706 Translucent bool // Sunlight is scattered and becomes normal light.
20707 Transparent bool // Sunlight isn't scattered.
20720 LiquidType LiquidType
20723 Viscosity uint8 // 0-7
20729 DrawBox, ColBox, SelBox NodeBox
20731 FootstepSnd, DiggingSnd, DugSnd SoundDef
20742 switch n := read8(r); n {
20748 chk(fmt.Errorf("invalid bool: %d", n))
20753 p := &(*(*(struct {
20765 //mt:const uint8(6)
20767 OverlayTiles [6]TileDef
20768 //mt:const uint8(6)
20769 SpecialTiles [6]TileDef
20776 ConnectTo []Content
20777 InsideTint color.NRGBA
20778 Level uint8 // Must be < 128.
20780 Translucent bool // Sunlight is scattered and becomes normal light.
20781 Transparent bool // Sunlight isn't scattered.
20794 LiquidType LiquidType
20797 Viscosity uint8 // 0-7
20803 DrawBox, ColBox, SelBox NodeBox
20805 FootstepSnd, DiggingSnd, DugSnd SoundDef
20815 }))(obj)).Climbable
20816 switch n := read8(r); n {
20822 chk(fmt.Errorf("invalid bool: %d", n))
20827 p := &(*(*(struct {
20839 //mt:const uint8(6)
20841 OverlayTiles [6]TileDef
20842 //mt:const uint8(6)
20843 SpecialTiles [6]TileDef
20850 ConnectTo []Content
20851 InsideTint color.NRGBA
20852 Level uint8 // Must be < 128.
20854 Translucent bool // Sunlight is scattered and becomes normal light.
20855 Transparent bool // Sunlight isn't scattered.
20868 LiquidType LiquidType
20871 Viscosity uint8 // 0-7
20877 DrawBox, ColBox, SelBox NodeBox
20879 FootstepSnd, DiggingSnd, DugSnd SoundDef
20889 }))(obj)).Replaceable
20890 switch n := read8(r); n {
20896 chk(fmt.Errorf("invalid bool: %d", n))
20901 p := &(*(*(struct {
20913 //mt:const uint8(6)
20915 OverlayTiles [6]TileDef
20916 //mt:const uint8(6)
20917 SpecialTiles [6]TileDef
20924 ConnectTo []Content
20925 InsideTint color.NRGBA
20926 Level uint8 // Must be < 128.
20928 Translucent bool // Sunlight is scattered and becomes normal light.
20929 Transparent bool // Sunlight isn't scattered.
20942 LiquidType LiquidType
20945 Viscosity uint8 // 0-7
20951 DrawBox, ColBox, SelBox NodeBox
20953 FootstepSnd, DiggingSnd, DugSnd SoundDef
20963 }))(obj)).OnRightClick
20964 switch n := read8(r); n {
20970 chk(fmt.Errorf("invalid bool: %d", n))
20975 p := &(*(*(struct {
20987 //mt:const uint8(6)
20989 OverlayTiles [6]TileDef
20990 //mt:const uint8(6)
20991 SpecialTiles [6]TileDef
20998 ConnectTo []Content
20999 InsideTint color.NRGBA
21000 Level uint8 // Must be < 128.
21002 Translucent bool // Sunlight is scattered and becomes normal light.
21003 Transparent bool // Sunlight isn't scattered.
21016 LiquidType LiquidType
21019 Viscosity uint8 // 0-7
21025 DrawBox, ColBox, SelBox NodeBox
21027 FootstepSnd, DiggingSnd, DugSnd SoundDef
21037 }))(obj)).DmgPerSec
21038 *p = int32(read32(r))
21040 if err := pcall(func() {
21053 //mt:const uint8(6)
21055 OverlayTiles [6]TileDef
21056 //mt:const uint8(6)
21057 SpecialTiles [6]TileDef
21064 ConnectTo []Content
21065 InsideTint color.NRGBA
21066 Level uint8 // Must be < 128.
21068 Translucent bool // Sunlight is scattered and becomes normal light.
21069 Transparent bool // Sunlight isn't scattered.
21082 LiquidType LiquidType
21085 Viscosity uint8 // 0-7
21091 DrawBox, ColBox, SelBox NodeBox
21093 FootstepSnd, DiggingSnd, DugSnd SoundDef
21103 }))(obj)).LiquidType).deserialize(r)
21108 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LiquidType", err))
21110 var local265 []uint8
21111 var local266 uint16
21116 (local265) = make([]uint8, local266)
21118 _, err := io.ReadFull(r, (local265)[:])
21133 //mt:const uint8(6)
21135 OverlayTiles [6]TileDef
21136 //mt:const uint8(6)
21137 SpecialTiles [6]TileDef
21144 ConnectTo []Content
21145 InsideTint color.NRGBA
21146 Level uint8 // Must be < 128.
21148 Translucent bool // Sunlight is scattered and becomes normal light.
21149 Transparent bool // Sunlight isn't scattered.
21162 LiquidType LiquidType
21165 Viscosity uint8 // 0-7
21171 DrawBox, ColBox, SelBox NodeBox
21173 FootstepSnd, DiggingSnd, DugSnd SoundDef
21183 }))(obj)).FlowingAlt) = string(local265)
21184 var local267 []uint8
21185 var local268 uint16
21190 (local267) = make([]uint8, local268)
21192 _, err := io.ReadFull(r, (local267)[:])
21207 //mt:const uint8(6)
21209 OverlayTiles [6]TileDef
21210 //mt:const uint8(6)
21211 SpecialTiles [6]TileDef
21218 ConnectTo []Content
21219 InsideTint color.NRGBA
21220 Level uint8 // Must be < 128.
21222 Translucent bool // Sunlight is scattered and becomes normal light.
21223 Transparent bool // Sunlight isn't scattered.
21236 LiquidType LiquidType
21239 Viscosity uint8 // 0-7
21245 DrawBox, ColBox, SelBox NodeBox
21247 FootstepSnd, DiggingSnd, DugSnd SoundDef
21257 }))(obj)).SrcAlt) = string(local267)
21259 p := &(*(*(struct {
21271 //mt:const uint8(6)
21273 OverlayTiles [6]TileDef
21274 //mt:const uint8(6)
21275 SpecialTiles [6]TileDef
21282 ConnectTo []Content
21283 InsideTint color.NRGBA
21284 Level uint8 // Must be < 128.
21286 Translucent bool // Sunlight is scattered and becomes normal light.
21287 Transparent bool // Sunlight isn't scattered.
21300 LiquidType LiquidType
21303 Viscosity uint8 // 0-7
21309 DrawBox, ColBox, SelBox NodeBox
21311 FootstepSnd, DiggingSnd, DugSnd SoundDef
21321 }))(obj)).Viscosity
21325 p := &(*(*(struct {
21337 //mt:const uint8(6)
21339 OverlayTiles [6]TileDef
21340 //mt:const uint8(6)
21341 SpecialTiles [6]TileDef
21348 ConnectTo []Content
21349 InsideTint color.NRGBA
21350 Level uint8 // Must be < 128.
21352 Translucent bool // Sunlight is scattered and becomes normal light.
21353 Transparent bool // Sunlight isn't scattered.
21366 LiquidType LiquidType
21369 Viscosity uint8 // 0-7
21375 DrawBox, ColBox, SelBox NodeBox
21377 FootstepSnd, DiggingSnd, DugSnd SoundDef
21387 }))(obj)).LiqRenewable
21388 switch n := read8(r); n {
21394 chk(fmt.Errorf("invalid bool: %d", n))
21399 p := &(*(*(struct {
21411 //mt:const uint8(6)
21413 OverlayTiles [6]TileDef
21414 //mt:const uint8(6)
21415 SpecialTiles [6]TileDef
21422 ConnectTo []Content
21423 InsideTint color.NRGBA
21424 Level uint8 // Must be < 128.
21426 Translucent bool // Sunlight is scattered and becomes normal light.
21427 Transparent bool // Sunlight isn't scattered.
21440 LiquidType LiquidType
21443 Viscosity uint8 // 0-7
21449 DrawBox, ColBox, SelBox NodeBox
21451 FootstepSnd, DiggingSnd, DugSnd SoundDef
21461 }))(obj)).FlowRange
21465 p := &(*(*(struct {
21477 //mt:const uint8(6)
21479 OverlayTiles [6]TileDef
21480 //mt:const uint8(6)
21481 SpecialTiles [6]TileDef
21488 ConnectTo []Content
21489 InsideTint color.NRGBA
21490 Level uint8 // Must be < 128.
21492 Translucent bool // Sunlight is scattered and becomes normal light.
21493 Transparent bool // Sunlight isn't scattered.
21506 LiquidType LiquidType
21509 Viscosity uint8 // 0-7
21515 DrawBox, ColBox, SelBox NodeBox
21517 FootstepSnd, DiggingSnd, DugSnd SoundDef
21531 p := &(*(*(struct {
21543 //mt:const uint8(6)
21545 OverlayTiles [6]TileDef
21546 //mt:const uint8(6)
21547 SpecialTiles [6]TileDef
21554 ConnectTo []Content
21555 InsideTint color.NRGBA
21556 Level uint8 // Must be < 128.
21558 Translucent bool // Sunlight is scattered and becomes normal light.
21559 Transparent bool // Sunlight isn't scattered.
21572 LiquidType LiquidType
21575 Viscosity uint8 // 0-7
21581 DrawBox, ColBox, SelBox NodeBox
21583 FootstepSnd, DiggingSnd, DugSnd SoundDef
21593 }))(obj)).Floodable
21594 switch n := read8(r); n {
21600 chk(fmt.Errorf("invalid bool: %d", n))
21604 if err := pcall(func() {
21617 //mt:const uint8(6)
21619 OverlayTiles [6]TileDef
21620 //mt:const uint8(6)
21621 SpecialTiles [6]TileDef
21628 ConnectTo []Content
21629 InsideTint color.NRGBA
21630 Level uint8 // Must be < 128.
21632 Translucent bool // Sunlight is scattered and becomes normal light.
21633 Transparent bool // Sunlight isn't scattered.
21646 LiquidType LiquidType
21649 Viscosity uint8 // 0-7
21655 DrawBox, ColBox, SelBox NodeBox
21657 FootstepSnd, DiggingSnd, DugSnd SoundDef
21667 }))(obj)).DrawBox).deserialize(r)
21672 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21674 if err := pcall(func() {
21687 //mt:const uint8(6)
21689 OverlayTiles [6]TileDef
21690 //mt:const uint8(6)
21691 SpecialTiles [6]TileDef
21698 ConnectTo []Content
21699 InsideTint color.NRGBA
21700 Level uint8 // Must be < 128.
21702 Translucent bool // Sunlight is scattered and becomes normal light.
21703 Transparent bool // Sunlight isn't scattered.
21716 LiquidType LiquidType
21719 Viscosity uint8 // 0-7
21725 DrawBox, ColBox, SelBox NodeBox
21727 FootstepSnd, DiggingSnd, DugSnd SoundDef
21737 }))(obj)).ColBox).deserialize(r)
21742 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21744 if err := pcall(func() {
21757 //mt:const uint8(6)
21759 OverlayTiles [6]TileDef
21760 //mt:const uint8(6)
21761 SpecialTiles [6]TileDef
21768 ConnectTo []Content
21769 InsideTint color.NRGBA
21770 Level uint8 // Must be < 128.
21772 Translucent bool // Sunlight is scattered and becomes normal light.
21773 Transparent bool // Sunlight isn't scattered.
21786 LiquidType LiquidType
21789 Viscosity uint8 // 0-7
21795 DrawBox, ColBox, SelBox NodeBox
21797 FootstepSnd, DiggingSnd, DugSnd SoundDef
21807 }))(obj)).SelBox).deserialize(r)
21812 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBox", err))
21814 if err := pcall(func() {
21827 //mt:const uint8(6)
21829 OverlayTiles [6]TileDef
21830 //mt:const uint8(6)
21831 SpecialTiles [6]TileDef
21838 ConnectTo []Content
21839 InsideTint color.NRGBA
21840 Level uint8 // Must be < 128.
21842 Translucent bool // Sunlight is scattered and becomes normal light.
21843 Transparent bool // Sunlight isn't scattered.
21856 LiquidType LiquidType
21859 Viscosity uint8 // 0-7
21865 DrawBox, ColBox, SelBox NodeBox
21867 FootstepSnd, DiggingSnd, DugSnd SoundDef
21877 }))(obj)).FootstepSnd).deserialize(r)
21882 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21884 if err := pcall(func() {
21897 //mt:const uint8(6)
21899 OverlayTiles [6]TileDef
21900 //mt:const uint8(6)
21901 SpecialTiles [6]TileDef
21908 ConnectTo []Content
21909 InsideTint color.NRGBA
21910 Level uint8 // Must be < 128.
21912 Translucent bool // Sunlight is scattered and becomes normal light.
21913 Transparent bool // Sunlight isn't scattered.
21926 LiquidType LiquidType
21929 Viscosity uint8 // 0-7
21935 DrawBox, ColBox, SelBox NodeBox
21937 FootstepSnd, DiggingSnd, DugSnd SoundDef
21947 }))(obj)).DiggingSnd).deserialize(r)
21952 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
21954 if err := pcall(func() {
21967 //mt:const uint8(6)
21969 OverlayTiles [6]TileDef
21970 //mt:const uint8(6)
21971 SpecialTiles [6]TileDef
21978 ConnectTo []Content
21979 InsideTint color.NRGBA
21980 Level uint8 // Must be < 128.
21982 Translucent bool // Sunlight is scattered and becomes normal light.
21983 Transparent bool // Sunlight isn't scattered.
21996 LiquidType LiquidType
21999 Viscosity uint8 // 0-7
22005 DrawBox, ColBox, SelBox NodeBox
22007 FootstepSnd, DiggingSnd, DugSnd SoundDef
22017 }))(obj)).DugSnd).deserialize(r)
22022 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
22025 p := &(*(*(struct {
22037 //mt:const uint8(6)
22039 OverlayTiles [6]TileDef
22040 //mt:const uint8(6)
22041 SpecialTiles [6]TileDef
22048 ConnectTo []Content
22049 InsideTint color.NRGBA
22050 Level uint8 // Must be < 128.
22052 Translucent bool // Sunlight is scattered and becomes normal light.
22053 Transparent bool // Sunlight isn't scattered.
22066 LiquidType LiquidType
22069 Viscosity uint8 // 0-7
22075 DrawBox, ColBox, SelBox NodeBox
22077 FootstepSnd, DiggingSnd, DugSnd SoundDef
22087 }))(obj)).LegacyFaceDir
22088 switch n := read8(r); n {
22094 chk(fmt.Errorf("invalid bool: %d", n))
22099 p := &(*(*(struct {
22111 //mt:const uint8(6)
22113 OverlayTiles [6]TileDef
22114 //mt:const uint8(6)
22115 SpecialTiles [6]TileDef
22122 ConnectTo []Content
22123 InsideTint color.NRGBA
22124 Level uint8 // Must be < 128.
22126 Translucent bool // Sunlight is scattered and becomes normal light.
22127 Transparent bool // Sunlight isn't scattered.
22140 LiquidType LiquidType
22143 Viscosity uint8 // 0-7
22149 DrawBox, ColBox, SelBox NodeBox
22151 FootstepSnd, DiggingSnd, DugSnd SoundDef
22161 }))(obj)).LegacyMounted
22162 switch n := read8(r); n {
22168 chk(fmt.Errorf("invalid bool: %d", n))
22172 var local269 []uint8
22173 var local270 uint16
22178 (local269) = make([]uint8, local270)
22180 _, err := io.ReadFull(r, (local269)[:])
22195 //mt:const uint8(6)
22197 OverlayTiles [6]TileDef
22198 //mt:const uint8(6)
22199 SpecialTiles [6]TileDef
22206 ConnectTo []Content
22207 InsideTint color.NRGBA
22208 Level uint8 // Must be < 128.
22210 Translucent bool // Sunlight is scattered and becomes normal light.
22211 Transparent bool // Sunlight isn't scattered.
22224 LiquidType LiquidType
22227 Viscosity uint8 // 0-7
22233 DrawBox, ColBox, SelBox NodeBox
22235 FootstepSnd, DiggingSnd, DugSnd SoundDef
22245 }))(obj)).DigPredict) = string(local269)
22247 p := &(*(*(struct {
22259 //mt:const uint8(6)
22261 OverlayTiles [6]TileDef
22262 //mt:const uint8(6)
22263 SpecialTiles [6]TileDef
22270 ConnectTo []Content
22271 InsideTint color.NRGBA
22272 Level uint8 // Must be < 128.
22274 Translucent bool // Sunlight is scattered and becomes normal light.
22275 Transparent bool // Sunlight isn't scattered.
22288 LiquidType LiquidType
22291 Viscosity uint8 // 0-7
22297 DrawBox, ColBox, SelBox NodeBox
22299 FootstepSnd, DiggingSnd, DugSnd SoundDef
22312 if err := pcall(func() {
22325 //mt:const uint8(6)
22327 OverlayTiles [6]TileDef
22328 //mt:const uint8(6)
22329 SpecialTiles [6]TileDef
22336 ConnectTo []Content
22337 InsideTint color.NRGBA
22338 Level uint8 // Must be < 128.
22340 Translucent bool // Sunlight is scattered and becomes normal light.
22341 Transparent bool // Sunlight isn't scattered.
22354 LiquidType LiquidType
22357 Viscosity uint8 // 0-7
22363 DrawBox, ColBox, SelBox NodeBox
22365 FootstepSnd, DiggingSnd, DugSnd SoundDef
22375 }))(obj)).AlphaUse).deserialize(r)
22380 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlphaUse", err))
22383 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22388 func (obj *PointedNode) serialize(w io.Writer) {
22389 for local271 := range (*(*(struct {
22390 Under, Above [3]int16
22393 x := ((*(*(struct {
22394 Under, Above [3]int16
22395 }))(obj)).Under)[local271]
22396 write16(w, uint16(x))
22399 for local272 := range (*(*(struct {
22400 Under, Above [3]int16
22403 x := ((*(*(struct {
22404 Under, Above [3]int16
22405 }))(obj)).Above)[local272]
22406 write16(w, uint16(x))
22411 func (obj *PointedNode) deserialize(r io.Reader) {
22412 for local273 := range (*(*(struct {
22413 Under, Above [3]int16
22416 p := &((*(*(struct {
22417 Under, Above [3]int16
22418 }))(obj)).Under)[local273]
22419 *p = int16(read16(r))
22422 for local274 := range (*(*(struct {
22423 Under, Above [3]int16
22426 p := &((*(*(struct {
22427 Under, Above [3]int16
22428 }))(obj)).Above)[local274]
22429 *p = int16(read16(r))
22434 func (obj *PointedAO) serialize(w io.Writer) {
22435 if err := pcall(func() {
22438 }))(obj)).ID).serialize(w)
22443 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22447 func (obj *PointedAO) deserialize(r io.Reader) {
22448 if err := pcall(func() {
22451 }))(obj)).ID).deserialize(r)
22456 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
22460 func (obj *CompressionModes) serialize(w io.Writer) {
22462 x := *(*(uint16))(obj)
22463 write16(w, uint16(x))
22467 func (obj *CompressionModes) deserialize(r io.Reader) {
22469 p := &*(*(uint16))(obj)
22474 func (obj *PlayerPos) serialize(w io.Writer) {
22475 for local275 := range (*(*(struct {
22476 Pos100, Vel100 [3]int32
22477 Pitch100, Yaw100 int32
22480 WantedRange uint8 // in MapBlks.
22483 x := ((*(*(struct {
22484 Pos100, Vel100 [3]int32
22485 Pitch100, Yaw100 int32
22488 WantedRange uint8 // in MapBlks.
22489 }))(obj)).Pos100)[local275]
22490 write32(w, uint32(x))
22493 for local276 := range (*(*(struct {
22494 Pos100, Vel100 [3]int32
22495 Pitch100, Yaw100 int32
22498 WantedRange uint8 // in MapBlks.
22501 x := ((*(*(struct {
22502 Pos100, Vel100 [3]int32
22503 Pitch100, Yaw100 int32
22506 WantedRange uint8 // in MapBlks.
22507 }))(obj)).Vel100)[local276]
22508 write32(w, uint32(x))
22513 Pos100, Vel100 [3]int32
22514 Pitch100, Yaw100 int32
22517 WantedRange uint8 // in MapBlks.
22519 write32(w, uint32(x))
22523 Pos100, Vel100 [3]int32
22524 Pitch100, Yaw100 int32
22527 WantedRange uint8 // in MapBlks.
22529 write32(w, uint32(x))
22531 if err := pcall(func() {
22533 Pos100, Vel100 [3]int32
22534 Pitch100, Yaw100 int32
22537 WantedRange uint8 // in MapBlks.
22538 }))(obj)).Keys).serialize(w)
22543 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22547 Pos100, Vel100 [3]int32
22548 Pitch100, Yaw100 int32
22551 WantedRange uint8 // in MapBlks.
22553 write8(w, uint8(x))
22557 Pos100, Vel100 [3]int32
22558 Pitch100, Yaw100 int32
22561 WantedRange uint8 // in MapBlks.
22562 }))(obj)).WantedRange
22563 write8(w, uint8(x))
22567 func (obj *PlayerPos) deserialize(r io.Reader) {
22568 for local277 := range (*(*(struct {
22569 Pos100, Vel100 [3]int32
22570 Pitch100, Yaw100 int32
22573 WantedRange uint8 // in MapBlks.
22576 p := &((*(*(struct {
22577 Pos100, Vel100 [3]int32
22578 Pitch100, Yaw100 int32
22581 WantedRange uint8 // in MapBlks.
22582 }))(obj)).Pos100)[local277]
22583 *p = int32(read32(r))
22586 for local278 := range (*(*(struct {
22587 Pos100, Vel100 [3]int32
22588 Pitch100, Yaw100 int32
22591 WantedRange uint8 // in MapBlks.
22594 p := &((*(*(struct {
22595 Pos100, Vel100 [3]int32
22596 Pitch100, Yaw100 int32
22599 WantedRange uint8 // in MapBlks.
22600 }))(obj)).Vel100)[local278]
22601 *p = int32(read32(r))
22605 p := &(*(*(struct {
22606 Pos100, Vel100 [3]int32
22607 Pitch100, Yaw100 int32
22610 WantedRange uint8 // in MapBlks.
22612 *p = int32(read32(r))
22615 p := &(*(*(struct {
22616 Pos100, Vel100 [3]int32
22617 Pitch100, Yaw100 int32
22620 WantedRange uint8 // in MapBlks.
22622 *p = int32(read32(r))
22624 if err := pcall(func() {
22626 Pos100, Vel100 [3]int32
22627 Pitch100, Yaw100 int32
22630 WantedRange uint8 // in MapBlks.
22631 }))(obj)).Keys).deserialize(r)
22636 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Keys", err))
22639 p := &(*(*(struct {
22640 Pos100, Vel100 [3]int32
22641 Pitch100, Yaw100 int32
22644 WantedRange uint8 // in MapBlks.
22649 p := &(*(*(struct {
22650 Pos100, Vel100 [3]int32
22651 Pitch100, Yaw100 int32
22654 WantedRange uint8 // in MapBlks.
22655 }))(obj)).WantedRange
22660 func (obj *Interaction) serialize(w io.Writer) {
22662 x := *(*(uint8))(obj)
22663 write8(w, uint8(x))
22667 func (obj *Interaction) deserialize(r io.Reader) {
22669 p := &*(*(uint8))(obj)
22674 func (obj *SoundID) serialize(w io.Writer) {
22676 x := *(*(int32))(obj)
22677 write32(w, uint32(x))
22681 func (obj *SoundID) deserialize(r io.Reader) {
22683 p := &*(*(int32))(obj)
22684 *p = int32(read32(r))
22688 func (obj *Field) serialize(w io.Writer) {
22689 if len(([]byte((*(*(struct {
22694 }))(obj)).Name))) > math.MaxUint16 {
22698 x := uint16(len(([]byte((*(*(struct {
22704 write16(w, uint16(x))
22707 _, err := w.Write(([]byte((*(*(struct {
22712 }))(obj)).Name))[:])
22715 if len(([]byte((*(*(struct {
22720 }))(obj)).Value))) > math.MaxUint32 {
22724 x := uint32(len(([]byte((*(*(struct {
22729 }))(obj)).Value))))
22730 write32(w, uint32(x))
22733 _, err := w.Write(([]byte((*(*(struct {
22738 }))(obj)).Value))[:])
22743 func (obj *Field) deserialize(r io.Reader) {
22744 var local279 []uint8
22745 var local280 uint16
22750 (local279) = make([]uint8, local280)
22752 _, err := io.ReadFull(r, (local279)[:])
22760 }))(obj)).Name) = string(local279)
22761 var local281 []uint8
22762 var local282 uint32
22767 (local281) = make([]uint8, local282)
22769 _, err := io.ReadFull(r, (local281)[:])
22777 }))(obj)).Value) = string(local281)
22780 func (obj *AuthMethods) serialize(w io.Writer) {
22782 x := *(*(uint32))(obj)
22783 write32(w, uint32(x))
22787 func (obj *AuthMethods) deserialize(r io.Reader) {
22789 p := &*(*(uint32))(obj)
22794 func (obj *Pos) serialize(w io.Writer) {
22795 if err := pcall(func() {
22796 (*(*(Vec))(obj)).serialize(w)
22801 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22805 func (obj *Pos) deserialize(r io.Reader) {
22806 if err := pcall(func() {
22807 (*(*(Vec))(obj)).deserialize(r)
22812 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
22816 func (obj *KickReason) serialize(w io.Writer) {
22818 x := *(*(uint8))(obj)
22819 write8(w, uint8(x))
22823 func (obj *KickReason) deserialize(r io.Reader) {
22825 p := &*(*(uint8))(obj)
22830 func (obj *MapBlk) serialize(w io.Writer) {
22831 if err := pcall(func() {
22834 LitFrom LitFromBlks
22837 Param0 [4096]Content
22841 NodeMetas map[uint16]*NodeMeta
22842 }))(obj)).Flags).serialize(w)
22847 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
22849 if err := pcall(func() {
22852 LitFrom LitFromBlks
22855 Param0 [4096]Content
22859 NodeMetas map[uint16]*NodeMeta
22860 }))(obj)).LitFrom).serialize(w)
22865 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
22868 local283 := uint8(2) // Size of param0 in bytes.
22871 write8(w, uint8(x))
22875 local284 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22878 write8(w, uint8(x))
22882 w := zstd.NewWriter(w)
22883 for local285 := range (*(*(struct {
22885 LitFrom LitFromBlks
22888 Param0 [4096]Content
22892 NodeMetas map[uint16]*NodeMeta
22894 if err := pcall(func() {
22897 LitFrom LitFromBlks
22900 Param0 [4096]Content
22904 NodeMetas map[uint16]*NodeMeta
22905 }))(obj)).Param0)[local285]).serialize(w)
22910 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
22914 _, err := w.Write(((*(*(struct {
22916 LitFrom LitFromBlks
22919 Param0 [4096]Content
22923 NodeMetas map[uint16]*NodeMeta
22924 }))(obj)).Param1)[:])
22928 _, err := w.Write(((*(*(struct {
22930 LitFrom LitFromBlks
22933 Param0 [4096]Content
22937 NodeMetas map[uint16]*NodeMeta
22938 }))(obj)).Param2)[:])
22946 LitFrom LitFromBlks
22949 Param0 [4096]Content
22953 NodeMetas map[uint16]*NodeMeta
22954 }))(obj)).NodeMetas
22956 w := zlib.NewWriter(w)
22962 // len(map[uint16]...) always < math.MaxUint16
22963 write16(w, uint16(len(x)))
22964 keys := make([]uint16, 0, len(x))
22965 for key := range x {
22966 keys = append(keys, key)
22968 sort.Slice(keys, func(i, j int) bool {
22969 i2pos := func(i int) [3]int16 {
22970 return Blkpos2Pos([3]int16{}, keys[i])
22973 p, q := i2pos(i), i2pos(j)
22986 for _, key := range keys {
22988 chk(serialize(w, x[key]))
22997 local286 := uint8(2) // version
23000 write8(w, uint8(x))
23005 func (obj *MapBlk) deserialize(r io.Reader) {
23006 if err := pcall(func() {
23009 LitFrom LitFromBlks
23012 Param0 [4096]Content
23016 NodeMetas map[uint16]*NodeMeta
23017 }))(obj)).Flags).deserialize(r)
23022 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.MapBlkFlags", err))
23024 if err := pcall(func() {
23027 LitFrom LitFromBlks
23030 Param0 [4096]Content
23034 NodeMetas map[uint16]*NodeMeta
23035 }))(obj)).LitFrom).deserialize(r)
23040 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.LitFromBlks", err))
23044 local288 := uint8(2) // Size of param0 in bytes.
23049 if local287 != local288 {
23050 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local287))
23055 local290 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23060 if local289 != local290 {
23061 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local289))
23065 r, err := zstd.NewReader(byteReader{r})
23067 for local291 := range (*(*(struct {
23069 LitFrom LitFromBlks
23072 Param0 [4096]Content
23076 NodeMetas map[uint16]*NodeMeta
23078 if err := pcall(func() {
23081 LitFrom LitFromBlks
23084 Param0 [4096]Content
23088 NodeMetas map[uint16]*NodeMeta
23089 }))(obj)).Param0)[local291]).deserialize(r)
23094 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23098 _, err := io.ReadFull(r, ((*(*(struct {
23100 LitFrom LitFromBlks
23103 Param0 [4096]Content
23107 NodeMetas map[uint16]*NodeMeta
23108 }))(obj)).Param1)[:])
23112 _, err := io.ReadFull(r, ((*(*(struct {
23114 LitFrom LitFromBlks
23117 Param0 [4096]Content
23121 NodeMetas map[uint16]*NodeMeta
23122 }))(obj)).Param2)[:])
23128 p := &(*(*(struct {
23130 LitFrom LitFromBlks
23133 Param0 [4096]Content
23137 NodeMetas map[uint16]*NodeMeta
23138 }))(obj)).NodeMetas
23140 r, err := zlib.NewReader(byteReader{r})
23143 switch ver := read8(r); ver {
23148 *p = make(map[uint16]*NodeMeta, n)
23151 nm := new(NodeMeta)
23152 chk(deserialize(r, nm))
23156 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23165 local293 := uint8(2) // version
23170 if local292 != local293 {
23171 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local292))
23176 func (obj *Node) serialize(w io.Writer) {
23177 if err := pcall(func() {
23180 Param1, Param2 uint8
23181 }))(obj)).Param0).serialize(w)
23186 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23191 Param1, Param2 uint8
23193 write8(w, uint8(x))
23198 Param1, Param2 uint8
23200 write8(w, uint8(x))
23204 func (obj *Node) deserialize(r io.Reader) {
23205 if err := pcall(func() {
23208 Param1, Param2 uint8
23209 }))(obj)).Param0).deserialize(r)
23214 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Content", err))
23217 p := &(*(*(struct {
23219 Param1, Param2 uint8
23224 p := &(*(*(struct {
23226 Param1, Param2 uint8
23232 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23234 x := *(*(uint64))(obj)
23235 write64(w, uint64(x))
23240 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23242 p := &*(*(uint64))(obj)
23248 func (obj *Vec) serialize(w io.Writer) {
23249 for local294 := range *(*([3]float32))(obj) {
23251 x := (*(*([3]float32))(obj))[local294]
23252 write32(w, math.Float32bits(x))
23257 func (obj *Vec) deserialize(r io.Reader) {
23258 for local295 := range *(*([3]float32))(obj) {
23260 p := &(*(*([3]float32))(obj))[local295]
23261 *p = math.Float32frombits(read32(r))
23266 func (obj *ChatMsgType) serialize(w io.Writer) {
23268 x := *(*(uint8))(obj)
23269 write8(w, uint8(x))
23273 func (obj *ChatMsgType) deserialize(r io.Reader) {
23275 p := &*(*(uint8))(obj)
23280 func (obj *AOID) serialize(w io.Writer) {
23282 x := *(*(uint16))(obj)
23283 write16(w, uint16(x))
23287 func (obj *AOID) deserialize(r io.Reader) {
23289 p := &*(*(uint16))(obj)
23294 func (obj *AOAdd) serialize(w io.Writer) {
23295 if err := pcall(func() {
23298 //mt:const genericCAO
23300 InitData AOInitData
23301 }))(obj)).ID).serialize(w)
23306 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23309 local296 := genericCAO
23310 if err := pcall(func() {
23311 (local296).serialize(w)
23316 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23321 w := new(bytes.Buffer)
23322 if err := pcall(func() {
23325 //mt:const genericCAO
23327 InitData AOInitData
23328 }))(obj)).InitData).serialize(w)
23333 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23338 if len((buf.Bytes())) > math.MaxUint32 {
23342 x := uint32(len((buf.Bytes())))
23343 write32(w, uint32(x))
23346 _, err := w.Write((buf.Bytes())[:])
23353 func (obj *AOAdd) deserialize(r io.Reader) {
23354 if err := pcall(func() {
23357 //mt:const genericCAO
23359 InitData AOInitData
23360 }))(obj)).ID).deserialize(r)
23365 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23368 var local297 aoType
23369 local298 := genericCAO
23370 if err := pcall(func() {
23371 (local297).deserialize(r)
23376 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.aoType", err))
23378 if local297 != local298 {
23379 chk(fmt.Errorf("const %v: %v", "genericCAO", local297))
23388 r := &io.LimitedReader{R: r, N: int64(n)}
23389 if err := pcall(func() {
23392 //mt:const genericCAO
23394 InitData AOInitData
23395 }))(obj)).InitData).deserialize(r)
23400 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOInitData", err))
23403 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23408 func (obj *IDAOMsg) serialize(w io.Writer) {
23409 if err := pcall(func() {
23414 }))(obj)).ID).serialize(w)
23419 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23423 w := new(bytes.Buffer)
23436 if len((buf.Bytes())) > math.MaxUint16 {
23440 x := uint16(len((buf.Bytes())))
23441 write16(w, uint16(x))
23444 _, err := w.Write((buf.Bytes())[:])
23451 func (obj *IDAOMsg) deserialize(r io.Reader) {
23452 if err := pcall(func() {
23457 }))(obj)).ID).deserialize(r)
23462 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
23470 r := &io.LimitedReader{R: r, N: int64(n)}
23472 p := &(*(*(struct {
23479 *p, err = readAOMsg(r)
23485 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23490 func (obj *ItemDef) serialize(w io.Writer) {
23493 w := new(bytes.Buffer)
23495 local299 := uint8(6)
23498 write8(w, uint8(x))
23501 if err := pcall(func() {
23507 InvImg, WieldImg Texture
23508 WieldScale [3]float32
23513 CanPointLiquids bool
23519 PlacePredict string
23521 PlaceSnd, PlaceFailSnd SoundDef
23525 // Set index in Palette with "palette_index" item meta field,
23526 // this overrides Color.
23530 // Texture overlays.
23531 InvOverlay, WieldOverlay Texture
23534 }))(obj)).Type).serialize(w)
23539 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
23541 if len(([]byte((*(*(struct {
23546 InvImg, WieldImg Texture
23547 WieldScale [3]float32
23552 CanPointLiquids bool
23558 PlacePredict string
23560 PlaceSnd, PlaceFailSnd SoundDef
23564 // Set index in Palette with "palette_index" item meta field,
23565 // this overrides Color.
23569 // Texture overlays.
23570 InvOverlay, WieldOverlay Texture
23573 }))(obj)).Name))) > math.MaxUint16 {
23577 x := uint16(len(([]byte((*(*(struct {
23582 InvImg, WieldImg Texture
23583 WieldScale [3]float32
23588 CanPointLiquids bool
23594 PlacePredict string
23596 PlaceSnd, PlaceFailSnd SoundDef
23600 // Set index in Palette with "palette_index" item meta field,
23601 // this overrides Color.
23605 // Texture overlays.
23606 InvOverlay, WieldOverlay Texture
23610 write16(w, uint16(x))
23613 _, err := w.Write(([]byte((*(*(struct {
23618 InvImg, WieldImg Texture
23619 WieldScale [3]float32
23624 CanPointLiquids bool
23630 PlacePredict string
23632 PlaceSnd, PlaceFailSnd SoundDef
23636 // Set index in Palette with "palette_index" item meta field,
23637 // this overrides Color.
23641 // Texture overlays.
23642 InvOverlay, WieldOverlay Texture
23645 }))(obj)).Name))[:])
23648 if len(([]byte((*(*(struct {
23653 InvImg, WieldImg Texture
23654 WieldScale [3]float32
23659 CanPointLiquids bool
23665 PlacePredict string
23667 PlaceSnd, PlaceFailSnd SoundDef
23671 // Set index in Palette with "palette_index" item meta field,
23672 // this overrides Color.
23676 // Texture overlays.
23677 InvOverlay, WieldOverlay Texture
23680 }))(obj)).Desc))) > math.MaxUint16 {
23684 x := uint16(len(([]byte((*(*(struct {
23689 InvImg, WieldImg Texture
23690 WieldScale [3]float32
23695 CanPointLiquids bool
23701 PlacePredict string
23703 PlaceSnd, PlaceFailSnd SoundDef
23707 // Set index in Palette with "palette_index" item meta field,
23708 // this overrides Color.
23712 // Texture overlays.
23713 InvOverlay, WieldOverlay Texture
23717 write16(w, uint16(x))
23720 _, err := w.Write(([]byte((*(*(struct {
23725 InvImg, WieldImg Texture
23726 WieldScale [3]float32
23731 CanPointLiquids bool
23737 PlacePredict string
23739 PlaceSnd, PlaceFailSnd SoundDef
23743 // Set index in Palette with "palette_index" item meta field,
23744 // this overrides Color.
23748 // Texture overlays.
23749 InvOverlay, WieldOverlay Texture
23752 }))(obj)).Desc))[:])
23755 if err := pcall(func() {
23761 InvImg, WieldImg Texture
23762 WieldScale [3]float32
23767 CanPointLiquids bool
23773 PlacePredict string
23775 PlaceSnd, PlaceFailSnd SoundDef
23779 // Set index in Palette with "palette_index" item meta field,
23780 // this overrides Color.
23784 // Texture overlays.
23785 InvOverlay, WieldOverlay Texture
23788 }))(obj)).InvImg).serialize(w)
23793 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23795 if err := pcall(func() {
23801 InvImg, WieldImg Texture
23802 WieldScale [3]float32
23807 CanPointLiquids bool
23813 PlacePredict string
23815 PlaceSnd, PlaceFailSnd SoundDef
23819 // Set index in Palette with "palette_index" item meta field,
23820 // this overrides Color.
23824 // Texture overlays.
23825 InvOverlay, WieldOverlay Texture
23828 }))(obj)).WieldImg).serialize(w)
23833 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
23835 for local300 := range (*(*(struct {
23840 InvImg, WieldImg Texture
23841 WieldScale [3]float32
23846 CanPointLiquids bool
23852 PlacePredict string
23854 PlaceSnd, PlaceFailSnd SoundDef
23858 // Set index in Palette with "palette_index" item meta field,
23859 // this overrides Color.
23863 // Texture overlays.
23864 InvOverlay, WieldOverlay Texture
23867 }))(obj)).WieldScale {
23869 x := ((*(*(struct {
23874 InvImg, WieldImg Texture
23875 WieldScale [3]float32
23880 CanPointLiquids bool
23886 PlacePredict string
23888 PlaceSnd, PlaceFailSnd SoundDef
23892 // Set index in Palette with "palette_index" item meta field,
23893 // this overrides Color.
23897 // Texture overlays.
23898 InvOverlay, WieldOverlay Texture
23901 }))(obj)).WieldScale)[local300]
23902 write32(w, math.Float32bits(x))
23911 InvImg, WieldImg Texture
23912 WieldScale [3]float32
23917 CanPointLiquids bool
23923 PlacePredict string
23925 PlaceSnd, PlaceFailSnd SoundDef
23929 // Set index in Palette with "palette_index" item meta field,
23930 // this overrides Color.
23934 // Texture overlays.
23935 InvOverlay, WieldOverlay Texture
23939 write16(w, uint16(x))
23947 InvImg, WieldImg Texture
23948 WieldScale [3]float32
23953 CanPointLiquids bool
23959 PlacePredict string
23961 PlaceSnd, PlaceFailSnd SoundDef
23965 // Set index in Palette with "palette_index" item meta field,
23966 // this overrides Color.
23970 // Texture overlays.
23971 InvOverlay, WieldOverlay Texture
23988 InvImg, WieldImg Texture
23989 WieldScale [3]float32
23994 CanPointLiquids bool
24000 PlacePredict string
24002 PlaceSnd, PlaceFailSnd SoundDef
24006 // Set index in Palette with "palette_index" item meta field,
24007 // this overrides Color.
24011 // Texture overlays.
24012 InvOverlay, WieldOverlay Texture
24015 }))(obj)).CanPointLiquids
24023 if err := pcall(func() {
24029 InvImg, WieldImg Texture
24030 WieldScale [3]float32
24035 CanPointLiquids bool
24041 PlacePredict string
24043 PlaceSnd, PlaceFailSnd SoundDef
24047 // Set index in Palette with "palette_index" item meta field,
24048 // this overrides Color.
24052 // Texture overlays.
24053 InvOverlay, WieldOverlay Texture
24056 }))(obj)).ToolCaps).serialize(w)
24061 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
24063 if len(((*(*(struct {
24068 InvImg, WieldImg Texture
24069 WieldScale [3]float32
24074 CanPointLiquids bool
24080 PlacePredict string
24082 PlaceSnd, PlaceFailSnd SoundDef
24086 // Set index in Palette with "palette_index" item meta field,
24087 // this overrides Color.
24091 // Texture overlays.
24092 InvOverlay, WieldOverlay Texture
24095 }))(obj)).Groups)) > math.MaxUint16 {
24099 x := uint16(len(((*(*(struct {
24104 InvImg, WieldImg Texture
24105 WieldScale [3]float32
24110 CanPointLiquids bool
24116 PlacePredict string
24118 PlaceSnd, PlaceFailSnd SoundDef
24122 // Set index in Palette with "palette_index" item meta field,
24123 // this overrides Color.
24127 // Texture overlays.
24128 InvOverlay, WieldOverlay Texture
24131 }))(obj)).Groups)))
24132 write16(w, uint16(x))
24134 for local301 := range (*(*(struct {
24139 InvImg, WieldImg Texture
24140 WieldScale [3]float32
24145 CanPointLiquids bool
24151 PlacePredict string
24153 PlaceSnd, PlaceFailSnd SoundDef
24157 // Set index in Palette with "palette_index" item meta field,
24158 // this overrides Color.
24162 // Texture overlays.
24163 InvOverlay, WieldOverlay Texture
24167 if err := pcall(func() {
24173 InvImg, WieldImg Texture
24174 WieldScale [3]float32
24179 CanPointLiquids bool
24185 PlacePredict string
24187 PlaceSnd, PlaceFailSnd SoundDef
24191 // Set index in Palette with "palette_index" item meta field,
24192 // this overrides Color.
24196 // Texture overlays.
24197 InvOverlay, WieldOverlay Texture
24200 }))(obj)).Groups)[local301]).serialize(w)
24205 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
24208 if len(([]byte((*(*(struct {
24213 InvImg, WieldImg Texture
24214 WieldScale [3]float32
24219 CanPointLiquids bool
24225 PlacePredict string
24227 PlaceSnd, PlaceFailSnd SoundDef
24231 // Set index in Palette with "palette_index" item meta field,
24232 // this overrides Color.
24236 // Texture overlays.
24237 InvOverlay, WieldOverlay Texture
24240 }))(obj)).PlacePredict))) > math.MaxUint16 {
24244 x := uint16(len(([]byte((*(*(struct {
24249 InvImg, WieldImg Texture
24250 WieldScale [3]float32
24255 CanPointLiquids bool
24261 PlacePredict string
24263 PlaceSnd, PlaceFailSnd SoundDef
24267 // Set index in Palette with "palette_index" item meta field,
24268 // this overrides Color.
24272 // Texture overlays.
24273 InvOverlay, WieldOverlay Texture
24276 }))(obj)).PlacePredict))))
24277 write16(w, uint16(x))
24280 _, err := w.Write(([]byte((*(*(struct {
24285 InvImg, WieldImg Texture
24286 WieldScale [3]float32
24291 CanPointLiquids bool
24297 PlacePredict string
24299 PlaceSnd, PlaceFailSnd SoundDef
24303 // Set index in Palette with "palette_index" item meta field,
24304 // this overrides Color.
24308 // Texture overlays.
24309 InvOverlay, WieldOverlay Texture
24312 }))(obj)).PlacePredict))[:])
24315 if err := pcall(func() {
24321 InvImg, WieldImg Texture
24322 WieldScale [3]float32
24327 CanPointLiquids bool
24333 PlacePredict string
24335 PlaceSnd, PlaceFailSnd SoundDef
24339 // Set index in Palette with "palette_index" item meta field,
24340 // this overrides Color.
24344 // Texture overlays.
24345 InvOverlay, WieldOverlay Texture
24348 }))(obj)).PlaceSnd).serialize(w)
24353 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24355 if err := pcall(func() {
24361 InvImg, WieldImg Texture
24362 WieldScale [3]float32
24367 CanPointLiquids bool
24373 PlacePredict string
24375 PlaceSnd, PlaceFailSnd SoundDef
24379 // Set index in Palette with "palette_index" item meta field,
24380 // this overrides Color.
24384 // Texture overlays.
24385 InvOverlay, WieldOverlay Texture
24388 }))(obj)).PlaceFailSnd).serialize(w)
24393 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
24401 InvImg, WieldImg Texture
24402 WieldScale [3]float32
24407 CanPointLiquids bool
24413 PlacePredict string
24415 PlaceSnd, PlaceFailSnd SoundDef
24419 // Set index in Palette with "palette_index" item meta field,
24420 // this overrides Color.
24424 // Texture overlays.
24425 InvOverlay, WieldOverlay Texture
24428 }))(obj)).PointRange
24429 write32(w, math.Float32bits(x))
24431 if err := pcall(func() {
24437 InvImg, WieldImg Texture
24438 WieldScale [3]float32
24443 CanPointLiquids bool
24449 PlacePredict string
24451 PlaceSnd, PlaceFailSnd SoundDef
24455 // Set index in Palette with "palette_index" item meta field,
24456 // this overrides Color.
24460 // Texture overlays.
24461 InvOverlay, WieldOverlay Texture
24464 }))(obj)).Palette).serialize(w)
24469 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24477 InvImg, WieldImg Texture
24478 WieldScale [3]float32
24483 CanPointLiquids bool
24489 PlacePredict string
24491 PlaceSnd, PlaceFailSnd SoundDef
24495 // Set index in Palette with "palette_index" item meta field,
24496 // this overrides Color.
24500 // Texture overlays.
24501 InvOverlay, WieldOverlay Texture
24505 w.Write([]byte{x.A, x.R, x.G, x.B})
24508 if err := pcall(func() {
24514 InvImg, WieldImg Texture
24515 WieldScale [3]float32
24520 CanPointLiquids bool
24526 PlacePredict string
24528 PlaceSnd, PlaceFailSnd SoundDef
24532 // Set index in Palette with "palette_index" item meta field,
24533 // this overrides Color.
24537 // Texture overlays.
24538 InvOverlay, WieldOverlay Texture
24541 }))(obj)).InvOverlay).serialize(w)
24546 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24548 if err := pcall(func() {
24554 InvImg, WieldImg Texture
24555 WieldScale [3]float32
24560 CanPointLiquids bool
24566 PlacePredict string
24568 PlaceSnd, PlaceFailSnd SoundDef
24572 // Set index in Palette with "palette_index" item meta field,
24573 // this overrides Color.
24577 // Texture overlays.
24578 InvOverlay, WieldOverlay Texture
24581 }))(obj)).WieldOverlay).serialize(w)
24586 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24588 if len(([]byte((*(*(struct {
24593 InvImg, WieldImg Texture
24594 WieldScale [3]float32
24599 CanPointLiquids bool
24605 PlacePredict string
24607 PlaceSnd, PlaceFailSnd SoundDef
24611 // Set index in Palette with "palette_index" item meta field,
24612 // this overrides Color.
24616 // Texture overlays.
24617 InvOverlay, WieldOverlay Texture
24620 }))(obj)).ShortDesc))) > math.MaxUint16 {
24624 x := uint16(len(([]byte((*(*(struct {
24629 InvImg, WieldImg Texture
24630 WieldScale [3]float32
24635 CanPointLiquids bool
24641 PlacePredict string
24643 PlaceSnd, PlaceFailSnd SoundDef
24647 // Set index in Palette with "palette_index" item meta field,
24648 // this overrides Color.
24652 // Texture overlays.
24653 InvOverlay, WieldOverlay Texture
24656 }))(obj)).ShortDesc))))
24657 write16(w, uint16(x))
24660 _, err := w.Write(([]byte((*(*(struct {
24665 InvImg, WieldImg Texture
24666 WieldScale [3]float32
24671 CanPointLiquids bool
24677 PlacePredict string
24679 PlaceSnd, PlaceFailSnd SoundDef
24683 // Set index in Palette with "palette_index" item meta field,
24684 // this overrides Color.
24688 // Texture overlays.
24689 InvOverlay, WieldOverlay Texture
24692 }))(obj)).ShortDesc))[:])
24698 if len((buf.Bytes())) > math.MaxUint16 {
24702 x := uint16(len((buf.Bytes())))
24703 write16(w, uint16(x))
24706 _, err := w.Write((buf.Bytes())[:])
24713 func (obj *ItemDef) deserialize(r io.Reader) {
24720 r := &io.LimitedReader{R: r, N: int64(n)}
24723 local303 := uint8(6)
24728 if local302 != local303 {
24729 chk(fmt.Errorf("const %v: %v", "uint8(6)", local302))
24732 if err := pcall(func() {
24738 InvImg, WieldImg Texture
24739 WieldScale [3]float32
24744 CanPointLiquids bool
24750 PlacePredict string
24752 PlaceSnd, PlaceFailSnd SoundDef
24756 // Set index in Palette with "palette_index" item meta field,
24757 // this overrides Color.
24761 // Texture overlays.
24762 InvOverlay, WieldOverlay Texture
24765 }))(obj)).Type).deserialize(r)
24770 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ItemType", err))
24772 var local304 []uint8
24773 var local305 uint16
24778 (local304) = make([]uint8, local305)
24780 _, err := io.ReadFull(r, (local304)[:])
24788 InvImg, WieldImg Texture
24789 WieldScale [3]float32
24794 CanPointLiquids bool
24800 PlacePredict string
24802 PlaceSnd, PlaceFailSnd SoundDef
24806 // Set index in Palette with "palette_index" item meta field,
24807 // this overrides Color.
24811 // Texture overlays.
24812 InvOverlay, WieldOverlay Texture
24815 }))(obj)).Name) = string(local304)
24816 var local306 []uint8
24817 var local307 uint16
24822 (local306) = make([]uint8, local307)
24824 _, err := io.ReadFull(r, (local306)[:])
24832 InvImg, WieldImg Texture
24833 WieldScale [3]float32
24838 CanPointLiquids bool
24844 PlacePredict string
24846 PlaceSnd, PlaceFailSnd SoundDef
24850 // Set index in Palette with "palette_index" item meta field,
24851 // this overrides Color.
24855 // Texture overlays.
24856 InvOverlay, WieldOverlay Texture
24859 }))(obj)).Desc) = string(local306)
24860 if err := pcall(func() {
24866 InvImg, WieldImg Texture
24867 WieldScale [3]float32
24872 CanPointLiquids bool
24878 PlacePredict string
24880 PlaceSnd, PlaceFailSnd SoundDef
24884 // Set index in Palette with "palette_index" item meta field,
24885 // this overrides Color.
24889 // Texture overlays.
24890 InvOverlay, WieldOverlay Texture
24893 }))(obj)).InvImg).deserialize(r)
24898 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24900 if err := pcall(func() {
24906 InvImg, WieldImg Texture
24907 WieldScale [3]float32
24912 CanPointLiquids bool
24918 PlacePredict string
24920 PlaceSnd, PlaceFailSnd SoundDef
24924 // Set index in Palette with "palette_index" item meta field,
24925 // this overrides Color.
24929 // Texture overlays.
24930 InvOverlay, WieldOverlay Texture
24933 }))(obj)).WieldImg).deserialize(r)
24938 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
24940 for local308 := range (*(*(struct {
24945 InvImg, WieldImg Texture
24946 WieldScale [3]float32
24951 CanPointLiquids bool
24957 PlacePredict string
24959 PlaceSnd, PlaceFailSnd SoundDef
24963 // Set index in Palette with "palette_index" item meta field,
24964 // this overrides Color.
24968 // Texture overlays.
24969 InvOverlay, WieldOverlay Texture
24972 }))(obj)).WieldScale {
24974 p := &((*(*(struct {
24979 InvImg, WieldImg Texture
24980 WieldScale [3]float32
24985 CanPointLiquids bool
24991 PlacePredict string
24993 PlaceSnd, PlaceFailSnd SoundDef
24997 // Set index in Palette with "palette_index" item meta field,
24998 // this overrides Color.
25002 // Texture overlays.
25003 InvOverlay, WieldOverlay Texture
25006 }))(obj)).WieldScale)[local308]
25007 *p = math.Float32frombits(read32(r))
25011 p := &(*(*(struct {
25016 InvImg, WieldImg Texture
25017 WieldScale [3]float32
25022 CanPointLiquids bool
25028 PlacePredict string
25030 PlaceSnd, PlaceFailSnd SoundDef
25034 // Set index in Palette with "palette_index" item meta field,
25035 // this overrides Color.
25039 // Texture overlays.
25040 InvOverlay, WieldOverlay Texture
25047 p := &(*(*(struct {
25052 InvImg, WieldImg Texture
25053 WieldScale [3]float32
25058 CanPointLiquids bool
25064 PlacePredict string
25066 PlaceSnd, PlaceFailSnd SoundDef
25070 // Set index in Palette with "palette_index" item meta field,
25071 // this overrides Color.
25075 // Texture overlays.
25076 InvOverlay, WieldOverlay Texture
25080 switch n := read8(r); n {
25086 chk(fmt.Errorf("invalid bool: %d", n))
25091 p := &(*(*(struct {
25096 InvImg, WieldImg Texture
25097 WieldScale [3]float32
25102 CanPointLiquids bool
25108 PlacePredict string
25110 PlaceSnd, PlaceFailSnd SoundDef
25114 // Set index in Palette with "palette_index" item meta field,
25115 // this overrides Color.
25119 // Texture overlays.
25120 InvOverlay, WieldOverlay Texture
25123 }))(obj)).CanPointLiquids
25124 switch n := read8(r); n {
25130 chk(fmt.Errorf("invalid bool: %d", n))
25134 if err := pcall(func() {
25140 InvImg, WieldImg Texture
25141 WieldScale [3]float32
25146 CanPointLiquids bool
25152 PlacePredict string
25154 PlaceSnd, PlaceFailSnd SoundDef
25158 // Set index in Palette with "palette_index" item meta field,
25159 // this overrides Color.
25163 // Texture overlays.
25164 InvOverlay, WieldOverlay Texture
25167 }))(obj)).ToolCaps).deserialize(r)
25172 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolCaps", err))
25174 var local309 uint16
25184 InvImg, WieldImg Texture
25185 WieldScale [3]float32
25190 CanPointLiquids bool
25196 PlacePredict string
25198 PlaceSnd, PlaceFailSnd SoundDef
25202 // Set index in Palette with "palette_index" item meta field,
25203 // this overrides Color.
25207 // Texture overlays.
25208 InvOverlay, WieldOverlay Texture
25211 }))(obj)).Groups) = make([]Group, local309)
25212 for local310 := range (*(*(struct {
25217 InvImg, WieldImg Texture
25218 WieldScale [3]float32
25223 CanPointLiquids bool
25229 PlacePredict string
25231 PlaceSnd, PlaceFailSnd SoundDef
25235 // Set index in Palette with "palette_index" item meta field,
25236 // this overrides Color.
25240 // Texture overlays.
25241 InvOverlay, WieldOverlay Texture
25245 if err := pcall(func() {
25251 InvImg, WieldImg Texture
25252 WieldScale [3]float32
25257 CanPointLiquids bool
25263 PlacePredict string
25265 PlaceSnd, PlaceFailSnd SoundDef
25269 // Set index in Palette with "palette_index" item meta field,
25270 // this overrides Color.
25274 // Texture overlays.
25275 InvOverlay, WieldOverlay Texture
25278 }))(obj)).Groups)[local310]).deserialize(r)
25283 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
25286 var local311 []uint8
25287 var local312 uint16
25292 (local311) = make([]uint8, local312)
25294 _, err := io.ReadFull(r, (local311)[:])
25302 InvImg, WieldImg Texture
25303 WieldScale [3]float32
25308 CanPointLiquids bool
25314 PlacePredict string
25316 PlaceSnd, PlaceFailSnd SoundDef
25320 // Set index in Palette with "palette_index" item meta field,
25321 // this overrides Color.
25325 // Texture overlays.
25326 InvOverlay, WieldOverlay Texture
25329 }))(obj)).PlacePredict) = string(local311)
25330 if err := pcall(func() {
25336 InvImg, WieldImg Texture
25337 WieldScale [3]float32
25342 CanPointLiquids bool
25348 PlacePredict string
25350 PlaceSnd, PlaceFailSnd SoundDef
25354 // Set index in Palette with "palette_index" item meta field,
25355 // this overrides Color.
25359 // Texture overlays.
25360 InvOverlay, WieldOverlay Texture
25363 }))(obj)).PlaceSnd).deserialize(r)
25368 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25370 if err := pcall(func() {
25376 InvImg, WieldImg Texture
25377 WieldScale [3]float32
25382 CanPointLiquids bool
25388 PlacePredict string
25390 PlaceSnd, PlaceFailSnd SoundDef
25394 // Set index in Palette with "palette_index" item meta field,
25395 // this overrides Color.
25399 // Texture overlays.
25400 InvOverlay, WieldOverlay Texture
25403 }))(obj)).PlaceFailSnd).deserialize(r)
25408 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.SoundDef", err))
25411 p := &(*(*(struct {
25416 InvImg, WieldImg Texture
25417 WieldScale [3]float32
25422 CanPointLiquids bool
25428 PlacePredict string
25430 PlaceSnd, PlaceFailSnd SoundDef
25434 // Set index in Palette with "palette_index" item meta field,
25435 // this overrides Color.
25439 // Texture overlays.
25440 InvOverlay, WieldOverlay Texture
25443 }))(obj)).PointRange
25444 *p = math.Float32frombits(read32(r))
25446 if err := pcall(func() {
25452 InvImg, WieldImg Texture
25453 WieldScale [3]float32
25458 CanPointLiquids bool
25464 PlacePredict string
25466 PlaceSnd, PlaceFailSnd SoundDef
25470 // Set index in Palette with "palette_index" item meta field,
25471 // this overrides Color.
25475 // Texture overlays.
25476 InvOverlay, WieldOverlay Texture
25479 }))(obj)).Palette).deserialize(r)
25484 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25487 p := &(*(*(struct {
25492 InvImg, WieldImg Texture
25493 WieldScale [3]float32
25498 CanPointLiquids bool
25504 PlacePredict string
25506 PlaceSnd, PlaceFailSnd SoundDef
25510 // Set index in Palette with "palette_index" item meta field,
25511 // this overrides Color.
25515 // Texture overlays.
25516 InvOverlay, WieldOverlay Texture
25520 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25523 if err := pcall(func() {
25529 InvImg, WieldImg Texture
25530 WieldScale [3]float32
25535 CanPointLiquids bool
25541 PlacePredict string
25543 PlaceSnd, PlaceFailSnd SoundDef
25547 // Set index in Palette with "palette_index" item meta field,
25548 // this overrides Color.
25552 // Texture overlays.
25553 InvOverlay, WieldOverlay Texture
25556 }))(obj)).InvOverlay).deserialize(r)
25561 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25563 if err := pcall(func() {
25569 InvImg, WieldImg Texture
25570 WieldScale [3]float32
25575 CanPointLiquids bool
25581 PlacePredict string
25583 PlaceSnd, PlaceFailSnd SoundDef
25587 // Set index in Palette with "palette_index" item meta field,
25588 // this overrides Color.
25592 // Texture overlays.
25593 InvOverlay, WieldOverlay Texture
25596 }))(obj)).WieldOverlay).deserialize(r)
25601 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
25603 var local313 []uint8
25604 var local314 uint16
25609 (local313) = make([]uint8, local314)
25611 _, err := io.ReadFull(r, (local313)[:])
25619 InvImg, WieldImg Texture
25620 WieldScale [3]float32
25625 CanPointLiquids bool
25631 PlacePredict string
25633 PlaceSnd, PlaceFailSnd SoundDef
25637 // Set index in Palette with "palette_index" item meta field,
25638 // this overrides Color.
25642 // Texture overlays.
25643 InvOverlay, WieldOverlay Texture
25646 }))(obj)).ShortDesc) = string(local313)
25648 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25653 func (obj *SoundSrcType) serialize(w io.Writer) {
25655 x := *(*(uint8))(obj)
25656 write8(w, uint8(x))
25660 func (obj *SoundSrcType) deserialize(r io.Reader) {
25662 p := &*(*(uint8))(obj)
25667 func (obj *TileAnim) serialize(w io.Writer) {
25668 if err := pcall(func() {
25672 //mt:if %s.Type == SpriteSheetAnim
25673 AspectRatio [2]uint8
25675 //mt:if %s.Type == VerticalFrameAnim
25678 //mt:if %s.Type != NoAnim
25679 Duration float32 // in seconds
25681 }))(obj)).Type).serialize(w)
25686 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25691 //mt:if %s.Type == SpriteSheetAnim
25692 AspectRatio [2]uint8
25694 //mt:if %s.Type == VerticalFrameAnim
25697 //mt:if %s.Type != NoAnim
25698 Duration float32 // in seconds
25700 }))(obj)).Type < maxAnim) {
25701 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25706 //mt:if %s.Type == SpriteSheetAnim
25707 AspectRatio [2]uint8
25709 //mt:if %s.Type == VerticalFrameAnim
25712 //mt:if %s.Type != NoAnim
25713 Duration float32 // in seconds
25715 }))(obj)).Type == SpriteSheetAnim {
25717 _, err := w.Write(((*(*(struct {
25720 //mt:if %s.Type == SpriteSheetAnim
25721 AspectRatio [2]uint8
25723 //mt:if %s.Type == VerticalFrameAnim
25726 //mt:if %s.Type != NoAnim
25727 Duration float32 // in seconds
25729 }))(obj)).AspectRatio)[:])
25736 //mt:if %s.Type == SpriteSheetAnim
25737 AspectRatio [2]uint8
25739 //mt:if %s.Type == VerticalFrameAnim
25742 //mt:if %s.Type != NoAnim
25743 Duration float32 // in seconds
25745 }))(obj)).Type == VerticalFrameAnim {
25746 for local315 := range (*(*(struct {
25749 //mt:if %s.Type == SpriteSheetAnim
25750 AspectRatio [2]uint8
25752 //mt:if %s.Type == VerticalFrameAnim
25755 //mt:if %s.Type != NoAnim
25756 Duration float32 // in seconds
25758 }))(obj)).NFrames {
25760 x := ((*(*(struct {
25763 //mt:if %s.Type == SpriteSheetAnim
25764 AspectRatio [2]uint8
25766 //mt:if %s.Type == VerticalFrameAnim
25769 //mt:if %s.Type != NoAnim
25770 Duration float32 // in seconds
25772 }))(obj)).NFrames)[local315]
25773 write16(w, uint16(x))
25780 //mt:if %s.Type == SpriteSheetAnim
25781 AspectRatio [2]uint8
25783 //mt:if %s.Type == VerticalFrameAnim
25786 //mt:if %s.Type != NoAnim
25787 Duration float32 // in seconds
25789 }))(obj)).Type != NoAnim {
25794 //mt:if %s.Type == SpriteSheetAnim
25795 AspectRatio [2]uint8
25797 //mt:if %s.Type == VerticalFrameAnim
25800 //mt:if %s.Type != NoAnim
25801 Duration float32 // in seconds
25804 write32(w, math.Float32bits(x))
25809 func (obj *TileAnim) deserialize(r io.Reader) {
25810 if err := pcall(func() {
25814 //mt:if %s.Type == SpriteSheetAnim
25815 AspectRatio [2]uint8
25817 //mt:if %s.Type == VerticalFrameAnim
25820 //mt:if %s.Type != NoAnim
25821 Duration float32 // in seconds
25823 }))(obj)).Type).deserialize(r)
25828 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AnimType", err))
25833 //mt:if %s.Type == SpriteSheetAnim
25834 AspectRatio [2]uint8
25836 //mt:if %s.Type == VerticalFrameAnim
25839 //mt:if %s.Type != NoAnim
25840 Duration float32 // in seconds
25842 }))(obj)).Type < maxAnim) {
25843 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25848 //mt:if %s.Type == SpriteSheetAnim
25849 AspectRatio [2]uint8
25851 //mt:if %s.Type == VerticalFrameAnim
25854 //mt:if %s.Type != NoAnim
25855 Duration float32 // in seconds
25857 }))(obj)).Type == SpriteSheetAnim {
25859 _, err := io.ReadFull(r, ((*(*(struct {
25862 //mt:if %s.Type == SpriteSheetAnim
25863 AspectRatio [2]uint8
25865 //mt:if %s.Type == VerticalFrameAnim
25868 //mt:if %s.Type != NoAnim
25869 Duration float32 // in seconds
25871 }))(obj)).AspectRatio)[:])
25878 //mt:if %s.Type == SpriteSheetAnim
25879 AspectRatio [2]uint8
25881 //mt:if %s.Type == VerticalFrameAnim
25884 //mt:if %s.Type != NoAnim
25885 Duration float32 // in seconds
25887 }))(obj)).Type == VerticalFrameAnim {
25888 for local316 := range (*(*(struct {
25891 //mt:if %s.Type == SpriteSheetAnim
25892 AspectRatio [2]uint8
25894 //mt:if %s.Type == VerticalFrameAnim
25897 //mt:if %s.Type != NoAnim
25898 Duration float32 // in seconds
25900 }))(obj)).NFrames {
25902 p := &((*(*(struct {
25905 //mt:if %s.Type == SpriteSheetAnim
25906 AspectRatio [2]uint8
25908 //mt:if %s.Type == VerticalFrameAnim
25911 //mt:if %s.Type != NoAnim
25912 Duration float32 // in seconds
25914 }))(obj)).NFrames)[local316]
25922 //mt:if %s.Type == SpriteSheetAnim
25923 AspectRatio [2]uint8
25925 //mt:if %s.Type == VerticalFrameAnim
25928 //mt:if %s.Type != NoAnim
25929 Duration float32 // in seconds
25931 }))(obj)).Type != NoAnim {
25933 p := &(*(*(struct {
25936 //mt:if %s.Type == SpriteSheetAnim
25937 AspectRatio [2]uint8
25939 //mt:if %s.Type == VerticalFrameAnim
25942 //mt:if %s.Type != NoAnim
25943 Duration float32 // in seconds
25946 *p = math.Float32frombits(read32(r))
25951 func (obj *Content) serialize(w io.Writer) {
25953 x := *(*(uint16))(obj)
25954 write16(w, uint16(x))
25958 func (obj *Content) deserialize(r io.Reader) {
25960 p := &*(*(uint16))(obj)
25965 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
25967 x := *(*(uint32))(obj)
25968 write32(w, uint32(x))
25972 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
25974 p := &*(*(uint32))(obj)
25979 func (obj *HUDID) serialize(w io.Writer) {
25981 x := *(*(uint32))(obj)
25982 write32(w, uint32(x))
25986 func (obj *HUDID) deserialize(r io.Reader) {
25988 p := &*(*(uint32))(obj)
25993 func (obj *HUD) serialize(w io.Writer) {
25994 if err := pcall(func() {
26011 }))(obj)).Type).serialize(w)
26016 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26018 for local317 := range (*(*(struct {
26036 x := ((*(*(struct {
26052 }))(obj)).Pos)[local317]
26053 write32(w, math.Float32bits(x))
26056 if len(([]byte((*(*(struct {
26072 }))(obj)).Name))) > math.MaxUint16 {
26076 x := uint16(len(([]byte((*(*(struct {
26093 write16(w, uint16(x))
26096 _, err := w.Write(([]byte((*(*(struct {
26112 }))(obj)).Name))[:])
26115 for local318 := range (*(*(struct {
26133 x := ((*(*(struct {
26149 }))(obj)).Scale)[local318]
26150 write32(w, math.Float32bits(x))
26153 if len(([]byte((*(*(struct {
26169 }))(obj)).Text))) > math.MaxUint16 {
26173 x := uint16(len(([]byte((*(*(struct {
26190 write16(w, uint16(x))
26193 _, err := w.Write(([]byte((*(*(struct {
26209 }))(obj)).Text))[:])
26230 write32(w, uint32(x))
26250 write32(w, uint32(x))
26270 write32(w, uint32(x))
26272 for local319 := range (*(*(struct {
26290 x := ((*(*(struct {
26306 }))(obj)).Align)[local319]
26307 write32(w, math.Float32bits(x))
26310 for local320 := range (*(*(struct {
26328 x := ((*(*(struct {
26344 }))(obj)).Offset)[local320]
26345 write32(w, math.Float32bits(x))
26348 if err := pcall(func() {
26365 }))(obj)).WorldPos).serialize(w)
26370 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26372 for local321 := range (*(*(struct {
26390 x := ((*(*(struct {
26406 }))(obj)).Size)[local321]
26407 write32(w, uint32(x))
26428 write16(w, uint16(x))
26430 if len(([]byte((*(*(struct {
26446 }))(obj)).Text2))) > math.MaxUint16 {
26450 x := uint16(len(([]byte((*(*(struct {
26466 }))(obj)).Text2))))
26467 write16(w, uint16(x))
26470 _, err := w.Write(([]byte((*(*(struct {
26486 }))(obj)).Text2))[:])
26491 func (obj *HUD) deserialize(r io.Reader) {
26492 if err := pcall(func() {
26509 }))(obj)).Type).deserialize(r)
26514 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.HUDType", err))
26516 for local322 := range (*(*(struct {
26534 p := &((*(*(struct {
26550 }))(obj)).Pos)[local322]
26551 *p = math.Float32frombits(read32(r))
26554 var local323 []uint8
26555 var local324 uint16
26560 (local323) = make([]uint8, local324)
26562 _, err := io.ReadFull(r, (local323)[:])
26581 }))(obj)).Name) = string(local323)
26582 for local325 := range (*(*(struct {
26600 p := &((*(*(struct {
26616 }))(obj)).Scale)[local325]
26617 *p = math.Float32frombits(read32(r))
26620 var local326 []uint8
26621 var local327 uint16
26626 (local326) = make([]uint8, local327)
26628 _, err := io.ReadFull(r, (local326)[:])
26647 }))(obj)).Text) = string(local326)
26649 p := &(*(*(struct {
26669 p := &(*(*(struct {
26689 p := &(*(*(struct {
26708 for local328 := range (*(*(struct {
26726 p := &((*(*(struct {
26742 }))(obj)).Align)[local328]
26743 *p = math.Float32frombits(read32(r))
26746 for local329 := range (*(*(struct {
26764 p := &((*(*(struct {
26780 }))(obj)).Offset)[local329]
26781 *p = math.Float32frombits(read32(r))
26784 if err := pcall(func() {
26801 }))(obj)).WorldPos).deserialize(r)
26806 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
26808 for local330 := range (*(*(struct {
26826 p := &((*(*(struct {
26842 }))(obj)).Size)[local330]
26843 *p = int32(read32(r))
26847 p := &(*(*(struct {
26864 *p = int16(read16(r))
26866 var local331 []uint8
26867 var local332 uint16
26872 (local331) = make([]uint8, local332)
26874 _, err := io.ReadFull(r, (local331)[:])
26893 }))(obj)).Text2) = string(local331)
26896 func (obj *HUDField) serialize(w io.Writer) {
26898 x := *(*(uint8))(obj)
26899 write8(w, uint8(x))
26903 func (obj *HUDField) deserialize(r io.Reader) {
26905 p := &*(*(uint8))(obj)
26910 func (obj *HUDFlags) serialize(w io.Writer) {
26912 x := *(*(uint32))(obj)
26913 write32(w, uint32(x))
26917 func (obj *HUDFlags) deserialize(r io.Reader) {
26919 p := &*(*(uint32))(obj)
26924 func (obj *HotbarParam) serialize(w io.Writer) {
26926 x := *(*(uint16))(obj)
26927 write16(w, uint16(x))
26931 func (obj *HotbarParam) deserialize(r io.Reader) {
26933 p := &*(*(uint16))(obj)
26938 func (obj *Texture) serialize(w io.Writer) {
26939 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26943 x := uint16(len(([]byte(*(*(string))(obj)))))
26944 write16(w, uint16(x))
26947 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26952 func (obj *Texture) deserialize(r io.Reader) {
26953 var local333 []uint8
26954 var local334 uint16
26959 (local333) = make([]uint8, local334)
26961 _, err := io.ReadFull(r, (local333)[:])
26964 (*(*(string))(obj)) = string(local333)
26967 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
26969 x := *(*(uint8))(obj)
26970 write8(w, uint8(x))
26974 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
26976 p := &*(*(uint8))(obj)
26981 func (obj *ModChanSig) serialize(w io.Writer) {
26983 x := *(*(uint8))(obj)
26984 write8(w, uint8(x))
26988 func (obj *ModChanSig) deserialize(r io.Reader) {
26990 p := &*(*(uint8))(obj)
26995 func (obj *AOProps) serialize(w io.Writer) {
26997 local335 := uint8(4)
27000 write8(w, uint8(x))
27005 MaxHP uint16 // Player only.
27006 CollideWithNodes bool
27007 Weight float32 // deprecated
27011 VisualSize [3]float32
27013 SpriteSheetSize [2]int16 // in sprites.
27014 SpritePos [2]int16 // in sprite sheet.
27016 MakeFootstepSnds bool
27017 RotateSpeed float32 // in radians per second.
27019 Colors []color.NRGBA
27020 CollideWithAOs bool
27023 FaceRotateDirOff float32 // in degrees.
27026 NametagColor color.NRGBA
27027 FaceRotateSpeed float32 // in degrees per second.
27031 MaxBreath uint16 // Player only.
27032 EyeHeight float32 // Player only.
27033 ZoomFOV float32 // in degrees. Player only.
27034 UseTextureAlpha bool
27035 DmgTextureMod Texture // suffix
27038 NametagBG color.NRGBA
27040 write16(w, uint16(x))
27044 MaxHP uint16 // Player only.
27045 CollideWithNodes bool
27046 Weight float32 // deprecated
27050 VisualSize [3]float32
27052 SpriteSheetSize [2]int16 // in sprites.
27053 SpritePos [2]int16 // in sprite sheet.
27055 MakeFootstepSnds bool
27056 RotateSpeed float32 // in radians per second.
27058 Colors []color.NRGBA
27059 CollideWithAOs bool
27062 FaceRotateDirOff float32 // in degrees.
27065 NametagColor color.NRGBA
27066 FaceRotateSpeed float32 // in degrees per second.
27070 MaxBreath uint16 // Player only.
27071 EyeHeight float32 // Player only.
27072 ZoomFOV float32 // in degrees. Player only.
27073 UseTextureAlpha bool
27074 DmgTextureMod Texture // suffix
27077 NametagBG color.NRGBA
27078 }))(obj)).CollideWithNodes
27088 MaxHP uint16 // Player only.
27089 CollideWithNodes bool
27090 Weight float32 // deprecated
27094 VisualSize [3]float32
27096 SpriteSheetSize [2]int16 // in sprites.
27097 SpritePos [2]int16 // in sprite sheet.
27099 MakeFootstepSnds bool
27100 RotateSpeed float32 // in radians per second.
27102 Colors []color.NRGBA
27103 CollideWithAOs bool
27106 FaceRotateDirOff float32 // in degrees.
27109 NametagColor color.NRGBA
27110 FaceRotateSpeed float32 // in degrees per second.
27114 MaxBreath uint16 // Player only.
27115 EyeHeight float32 // Player only.
27116 ZoomFOV float32 // in degrees. Player only.
27117 UseTextureAlpha bool
27118 DmgTextureMod Texture // suffix
27121 NametagBG color.NRGBA
27123 write32(w, math.Float32bits(x))
27125 if err := pcall(func() {
27127 MaxHP uint16 // Player only.
27128 CollideWithNodes bool
27129 Weight float32 // deprecated
27133 VisualSize [3]float32
27135 SpriteSheetSize [2]int16 // in sprites.
27136 SpritePos [2]int16 // in sprite sheet.
27138 MakeFootstepSnds bool
27139 RotateSpeed float32 // in radians per second.
27141 Colors []color.NRGBA
27142 CollideWithAOs bool
27145 FaceRotateDirOff float32 // in degrees.
27148 NametagColor color.NRGBA
27149 FaceRotateSpeed float32 // in degrees per second.
27153 MaxBreath uint16 // Player only.
27154 EyeHeight float32 // Player only.
27155 ZoomFOV float32 // in degrees. Player only.
27156 UseTextureAlpha bool
27157 DmgTextureMod Texture // suffix
27160 NametagBG color.NRGBA
27161 }))(obj)).ColBox).serialize(w)
27166 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27168 if err := pcall(func() {
27170 MaxHP uint16 // Player only.
27171 CollideWithNodes bool
27172 Weight float32 // deprecated
27176 VisualSize [3]float32
27178 SpriteSheetSize [2]int16 // in sprites.
27179 SpritePos [2]int16 // in sprite sheet.
27181 MakeFootstepSnds bool
27182 RotateSpeed float32 // in radians per second.
27184 Colors []color.NRGBA
27185 CollideWithAOs bool
27188 FaceRotateDirOff float32 // in degrees.
27191 NametagColor color.NRGBA
27192 FaceRotateSpeed float32 // in degrees per second.
27196 MaxBreath uint16 // Player only.
27197 EyeHeight float32 // Player only.
27198 ZoomFOV float32 // in degrees. Player only.
27199 UseTextureAlpha bool
27200 DmgTextureMod Texture // suffix
27203 NametagBG color.NRGBA
27204 }))(obj)).SelBox).serialize(w)
27209 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
27213 MaxHP uint16 // Player only.
27214 CollideWithNodes bool
27215 Weight float32 // deprecated
27219 VisualSize [3]float32
27221 SpriteSheetSize [2]int16 // in sprites.
27222 SpritePos [2]int16 // in sprite sheet.
27224 MakeFootstepSnds bool
27225 RotateSpeed float32 // in radians per second.
27227 Colors []color.NRGBA
27228 CollideWithAOs bool
27231 FaceRotateDirOff float32 // in degrees.
27234 NametagColor color.NRGBA
27235 FaceRotateSpeed float32 // in degrees per second.
27239 MaxBreath uint16 // Player only.
27240 EyeHeight float32 // Player only.
27241 ZoomFOV float32 // in degrees. Player only.
27242 UseTextureAlpha bool
27243 DmgTextureMod Texture // suffix
27246 NametagBG color.NRGBA
27247 }))(obj)).Pointable
27255 if len(([]byte((*(*(struct {
27256 MaxHP uint16 // Player only.
27257 CollideWithNodes bool
27258 Weight float32 // deprecated
27262 VisualSize [3]float32
27264 SpriteSheetSize [2]int16 // in sprites.
27265 SpritePos [2]int16 // in sprite sheet.
27267 MakeFootstepSnds bool
27268 RotateSpeed float32 // in radians per second.
27270 Colors []color.NRGBA
27271 CollideWithAOs bool
27274 FaceRotateDirOff float32 // in degrees.
27277 NametagColor color.NRGBA
27278 FaceRotateSpeed float32 // in degrees per second.
27282 MaxBreath uint16 // Player only.
27283 EyeHeight float32 // Player only.
27284 ZoomFOV float32 // in degrees. Player only.
27285 UseTextureAlpha bool
27286 DmgTextureMod Texture // suffix
27289 NametagBG color.NRGBA
27290 }))(obj)).Visual))) > math.MaxUint16 {
27294 x := uint16(len(([]byte((*(*(struct {
27295 MaxHP uint16 // Player only.
27296 CollideWithNodes bool
27297 Weight float32 // deprecated
27301 VisualSize [3]float32
27303 SpriteSheetSize [2]int16 // in sprites.
27304 SpritePos [2]int16 // in sprite sheet.
27306 MakeFootstepSnds bool
27307 RotateSpeed float32 // in radians per second.
27309 Colors []color.NRGBA
27310 CollideWithAOs bool
27313 FaceRotateDirOff float32 // in degrees.
27316 NametagColor color.NRGBA
27317 FaceRotateSpeed float32 // in degrees per second.
27321 MaxBreath uint16 // Player only.
27322 EyeHeight float32 // Player only.
27323 ZoomFOV float32 // in degrees. Player only.
27324 UseTextureAlpha bool
27325 DmgTextureMod Texture // suffix
27328 NametagBG color.NRGBA
27329 }))(obj)).Visual))))
27330 write16(w, uint16(x))
27333 _, err := w.Write(([]byte((*(*(struct {
27334 MaxHP uint16 // Player only.
27335 CollideWithNodes bool
27336 Weight float32 // deprecated
27340 VisualSize [3]float32
27342 SpriteSheetSize [2]int16 // in sprites.
27343 SpritePos [2]int16 // in sprite sheet.
27345 MakeFootstepSnds bool
27346 RotateSpeed float32 // in radians per second.
27348 Colors []color.NRGBA
27349 CollideWithAOs bool
27352 FaceRotateDirOff float32 // in degrees.
27355 NametagColor color.NRGBA
27356 FaceRotateSpeed float32 // in degrees per second.
27360 MaxBreath uint16 // Player only.
27361 EyeHeight float32 // Player only.
27362 ZoomFOV float32 // in degrees. Player only.
27363 UseTextureAlpha bool
27364 DmgTextureMod Texture // suffix
27367 NametagBG color.NRGBA
27368 }))(obj)).Visual))[:])
27371 for local336 := range (*(*(struct {
27372 MaxHP uint16 // Player only.
27373 CollideWithNodes bool
27374 Weight float32 // deprecated
27378 VisualSize [3]float32
27380 SpriteSheetSize [2]int16 // in sprites.
27381 SpritePos [2]int16 // in sprite sheet.
27383 MakeFootstepSnds bool
27384 RotateSpeed float32 // in radians per second.
27386 Colors []color.NRGBA
27387 CollideWithAOs bool
27390 FaceRotateDirOff float32 // in degrees.
27393 NametagColor color.NRGBA
27394 FaceRotateSpeed float32 // in degrees per second.
27398 MaxBreath uint16 // Player only.
27399 EyeHeight float32 // Player only.
27400 ZoomFOV float32 // in degrees. Player only.
27401 UseTextureAlpha bool
27402 DmgTextureMod Texture // suffix
27405 NametagBG color.NRGBA
27406 }))(obj)).VisualSize {
27408 x := ((*(*(struct {
27409 MaxHP uint16 // Player only.
27410 CollideWithNodes bool
27411 Weight float32 // deprecated
27415 VisualSize [3]float32
27417 SpriteSheetSize [2]int16 // in sprites.
27418 SpritePos [2]int16 // in sprite sheet.
27420 MakeFootstepSnds bool
27421 RotateSpeed float32 // in radians per second.
27423 Colors []color.NRGBA
27424 CollideWithAOs bool
27427 FaceRotateDirOff float32 // in degrees.
27430 NametagColor color.NRGBA
27431 FaceRotateSpeed float32 // in degrees per second.
27435 MaxBreath uint16 // Player only.
27436 EyeHeight float32 // Player only.
27437 ZoomFOV float32 // in degrees. Player only.
27438 UseTextureAlpha bool
27439 DmgTextureMod Texture // suffix
27442 NametagBG color.NRGBA
27443 }))(obj)).VisualSize)[local336]
27444 write32(w, math.Float32bits(x))
27447 if len(((*(*(struct {
27448 MaxHP uint16 // Player only.
27449 CollideWithNodes bool
27450 Weight float32 // deprecated
27454 VisualSize [3]float32
27456 SpriteSheetSize [2]int16 // in sprites.
27457 SpritePos [2]int16 // in sprite sheet.
27459 MakeFootstepSnds bool
27460 RotateSpeed float32 // in radians per second.
27462 Colors []color.NRGBA
27463 CollideWithAOs bool
27466 FaceRotateDirOff float32 // in degrees.
27469 NametagColor color.NRGBA
27470 FaceRotateSpeed float32 // in degrees per second.
27474 MaxBreath uint16 // Player only.
27475 EyeHeight float32 // Player only.
27476 ZoomFOV float32 // in degrees. Player only.
27477 UseTextureAlpha bool
27478 DmgTextureMod Texture // suffix
27481 NametagBG color.NRGBA
27482 }))(obj)).Textures)) > math.MaxUint16 {
27486 x := uint16(len(((*(*(struct {
27487 MaxHP uint16 // Player only.
27488 CollideWithNodes bool
27489 Weight float32 // deprecated
27493 VisualSize [3]float32
27495 SpriteSheetSize [2]int16 // in sprites.
27496 SpritePos [2]int16 // in sprite sheet.
27498 MakeFootstepSnds bool
27499 RotateSpeed float32 // in radians per second.
27501 Colors []color.NRGBA
27502 CollideWithAOs bool
27505 FaceRotateDirOff float32 // in degrees.
27508 NametagColor color.NRGBA
27509 FaceRotateSpeed float32 // in degrees per second.
27513 MaxBreath uint16 // Player only.
27514 EyeHeight float32 // Player only.
27515 ZoomFOV float32 // in degrees. Player only.
27516 UseTextureAlpha bool
27517 DmgTextureMod Texture // suffix
27520 NametagBG color.NRGBA
27521 }))(obj)).Textures)))
27522 write16(w, uint16(x))
27524 for local337 := range (*(*(struct {
27525 MaxHP uint16 // Player only.
27526 CollideWithNodes bool
27527 Weight float32 // deprecated
27531 VisualSize [3]float32
27533 SpriteSheetSize [2]int16 // in sprites.
27534 SpritePos [2]int16 // in sprite sheet.
27536 MakeFootstepSnds bool
27537 RotateSpeed float32 // in radians per second.
27539 Colors []color.NRGBA
27540 CollideWithAOs bool
27543 FaceRotateDirOff float32 // in degrees.
27546 NametagColor color.NRGBA
27547 FaceRotateSpeed float32 // in degrees per second.
27551 MaxBreath uint16 // Player only.
27552 EyeHeight float32 // Player only.
27553 ZoomFOV float32 // in degrees. Player only.
27554 UseTextureAlpha bool
27555 DmgTextureMod Texture // suffix
27558 NametagBG color.NRGBA
27559 }))(obj)).Textures {
27560 if err := pcall(func() {
27562 MaxHP uint16 // Player only.
27563 CollideWithNodes bool
27564 Weight float32 // deprecated
27568 VisualSize [3]float32
27570 SpriteSheetSize [2]int16 // in sprites.
27571 SpritePos [2]int16 // in sprite sheet.
27573 MakeFootstepSnds bool
27574 RotateSpeed float32 // in radians per second.
27576 Colors []color.NRGBA
27577 CollideWithAOs bool
27580 FaceRotateDirOff float32 // in degrees.
27583 NametagColor color.NRGBA
27584 FaceRotateSpeed float32 // in degrees per second.
27588 MaxBreath uint16 // Player only.
27589 EyeHeight float32 // Player only.
27590 ZoomFOV float32 // in degrees. Player only.
27591 UseTextureAlpha bool
27592 DmgTextureMod Texture // suffix
27595 NametagBG color.NRGBA
27596 }))(obj)).Textures)[local337]).serialize(w)
27601 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
27604 for local338 := range (*(*(struct {
27605 MaxHP uint16 // Player only.
27606 CollideWithNodes bool
27607 Weight float32 // deprecated
27611 VisualSize [3]float32
27613 SpriteSheetSize [2]int16 // in sprites.
27614 SpritePos [2]int16 // in sprite sheet.
27616 MakeFootstepSnds bool
27617 RotateSpeed float32 // in radians per second.
27619 Colors []color.NRGBA
27620 CollideWithAOs bool
27623 FaceRotateDirOff float32 // in degrees.
27626 NametagColor color.NRGBA
27627 FaceRotateSpeed float32 // in degrees per second.
27631 MaxBreath uint16 // Player only.
27632 EyeHeight float32 // Player only.
27633 ZoomFOV float32 // in degrees. Player only.
27634 UseTextureAlpha bool
27635 DmgTextureMod Texture // suffix
27638 NametagBG color.NRGBA
27639 }))(obj)).SpriteSheetSize {
27641 x := ((*(*(struct {
27642 MaxHP uint16 // Player only.
27643 CollideWithNodes bool
27644 Weight float32 // deprecated
27648 VisualSize [3]float32
27650 SpriteSheetSize [2]int16 // in sprites.
27651 SpritePos [2]int16 // in sprite sheet.
27653 MakeFootstepSnds bool
27654 RotateSpeed float32 // in radians per second.
27656 Colors []color.NRGBA
27657 CollideWithAOs bool
27660 FaceRotateDirOff float32 // in degrees.
27663 NametagColor color.NRGBA
27664 FaceRotateSpeed float32 // in degrees per second.
27668 MaxBreath uint16 // Player only.
27669 EyeHeight float32 // Player only.
27670 ZoomFOV float32 // in degrees. Player only.
27671 UseTextureAlpha bool
27672 DmgTextureMod Texture // suffix
27675 NametagBG color.NRGBA
27676 }))(obj)).SpriteSheetSize)[local338]
27677 write16(w, uint16(x))
27680 for local339 := range (*(*(struct {
27681 MaxHP uint16 // Player only.
27682 CollideWithNodes bool
27683 Weight float32 // deprecated
27687 VisualSize [3]float32
27689 SpriteSheetSize [2]int16 // in sprites.
27690 SpritePos [2]int16 // in sprite sheet.
27692 MakeFootstepSnds bool
27693 RotateSpeed float32 // in radians per second.
27695 Colors []color.NRGBA
27696 CollideWithAOs bool
27699 FaceRotateDirOff float32 // in degrees.
27702 NametagColor color.NRGBA
27703 FaceRotateSpeed float32 // in degrees per second.
27707 MaxBreath uint16 // Player only.
27708 EyeHeight float32 // Player only.
27709 ZoomFOV float32 // in degrees. Player only.
27710 UseTextureAlpha bool
27711 DmgTextureMod Texture // suffix
27714 NametagBG color.NRGBA
27715 }))(obj)).SpritePos {
27717 x := ((*(*(struct {
27718 MaxHP uint16 // Player only.
27719 CollideWithNodes bool
27720 Weight float32 // deprecated
27724 VisualSize [3]float32
27726 SpriteSheetSize [2]int16 // in sprites.
27727 SpritePos [2]int16 // in sprite sheet.
27729 MakeFootstepSnds bool
27730 RotateSpeed float32 // in radians per second.
27732 Colors []color.NRGBA
27733 CollideWithAOs bool
27736 FaceRotateDirOff float32 // in degrees.
27739 NametagColor color.NRGBA
27740 FaceRotateSpeed float32 // in degrees per second.
27744 MaxBreath uint16 // Player only.
27745 EyeHeight float32 // Player only.
27746 ZoomFOV float32 // in degrees. Player only.
27747 UseTextureAlpha bool
27748 DmgTextureMod Texture // suffix
27751 NametagBG color.NRGBA
27752 }))(obj)).SpritePos)[local339]
27753 write16(w, uint16(x))
27758 MaxHP uint16 // Player only.
27759 CollideWithNodes bool
27760 Weight float32 // deprecated
27764 VisualSize [3]float32
27766 SpriteSheetSize [2]int16 // in sprites.
27767 SpritePos [2]int16 // in sprite sheet.
27769 MakeFootstepSnds bool
27770 RotateSpeed float32 // in radians per second.
27772 Colors []color.NRGBA
27773 CollideWithAOs bool
27776 FaceRotateDirOff float32 // in degrees.
27779 NametagColor color.NRGBA
27780 FaceRotateSpeed float32 // in degrees per second.
27784 MaxBreath uint16 // Player only.
27785 EyeHeight float32 // Player only.
27786 ZoomFOV float32 // in degrees. Player only.
27787 UseTextureAlpha bool
27788 DmgTextureMod Texture // suffix
27791 NametagBG color.NRGBA
27802 MaxHP uint16 // Player only.
27803 CollideWithNodes bool
27804 Weight float32 // deprecated
27808 VisualSize [3]float32
27810 SpriteSheetSize [2]int16 // in sprites.
27811 SpritePos [2]int16 // in sprite sheet.
27813 MakeFootstepSnds bool
27814 RotateSpeed float32 // in radians per second.
27816 Colors []color.NRGBA
27817 CollideWithAOs bool
27820 FaceRotateDirOff float32 // in degrees.
27823 NametagColor color.NRGBA
27824 FaceRotateSpeed float32 // in degrees per second.
27828 MaxBreath uint16 // Player only.
27829 EyeHeight float32 // Player only.
27830 ZoomFOV float32 // in degrees. Player only.
27831 UseTextureAlpha bool
27832 DmgTextureMod Texture // suffix
27835 NametagBG color.NRGBA
27836 }))(obj)).MakeFootstepSnds
27846 MaxHP uint16 // Player only.
27847 CollideWithNodes bool
27848 Weight float32 // deprecated
27852 VisualSize [3]float32
27854 SpriteSheetSize [2]int16 // in sprites.
27855 SpritePos [2]int16 // in sprite sheet.
27857 MakeFootstepSnds bool
27858 RotateSpeed float32 // in radians per second.
27860 Colors []color.NRGBA
27861 CollideWithAOs bool
27864 FaceRotateDirOff float32 // in degrees.
27867 NametagColor color.NRGBA
27868 FaceRotateSpeed float32 // in degrees per second.
27872 MaxBreath uint16 // Player only.
27873 EyeHeight float32 // Player only.
27874 ZoomFOV float32 // in degrees. Player only.
27875 UseTextureAlpha bool
27876 DmgTextureMod Texture // suffix
27879 NametagBG color.NRGBA
27880 }))(obj)).RotateSpeed
27881 write32(w, math.Float32bits(x))
27883 if len(([]byte((*(*(struct {
27884 MaxHP uint16 // Player only.
27885 CollideWithNodes bool
27886 Weight float32 // deprecated
27890 VisualSize [3]float32
27892 SpriteSheetSize [2]int16 // in sprites.
27893 SpritePos [2]int16 // in sprite sheet.
27895 MakeFootstepSnds bool
27896 RotateSpeed float32 // in radians per second.
27898 Colors []color.NRGBA
27899 CollideWithAOs bool
27902 FaceRotateDirOff float32 // in degrees.
27905 NametagColor color.NRGBA
27906 FaceRotateSpeed float32 // in degrees per second.
27910 MaxBreath uint16 // Player only.
27911 EyeHeight float32 // Player only.
27912 ZoomFOV float32 // in degrees. Player only.
27913 UseTextureAlpha bool
27914 DmgTextureMod Texture // suffix
27917 NametagBG color.NRGBA
27918 }))(obj)).Mesh))) > math.MaxUint16 {
27922 x := uint16(len(([]byte((*(*(struct {
27923 MaxHP uint16 // Player only.
27924 CollideWithNodes bool
27925 Weight float32 // deprecated
27929 VisualSize [3]float32
27931 SpriteSheetSize [2]int16 // in sprites.
27932 SpritePos [2]int16 // in sprite sheet.
27934 MakeFootstepSnds bool
27935 RotateSpeed float32 // in radians per second.
27937 Colors []color.NRGBA
27938 CollideWithAOs bool
27941 FaceRotateDirOff float32 // in degrees.
27944 NametagColor color.NRGBA
27945 FaceRotateSpeed float32 // in degrees per second.
27949 MaxBreath uint16 // Player only.
27950 EyeHeight float32 // Player only.
27951 ZoomFOV float32 // in degrees. Player only.
27952 UseTextureAlpha bool
27953 DmgTextureMod Texture // suffix
27956 NametagBG color.NRGBA
27958 write16(w, uint16(x))
27961 _, err := w.Write(([]byte((*(*(struct {
27962 MaxHP uint16 // Player only.
27963 CollideWithNodes bool
27964 Weight float32 // deprecated
27968 VisualSize [3]float32
27970 SpriteSheetSize [2]int16 // in sprites.
27971 SpritePos [2]int16 // in sprite sheet.
27973 MakeFootstepSnds bool
27974 RotateSpeed float32 // in radians per second.
27976 Colors []color.NRGBA
27977 CollideWithAOs bool
27980 FaceRotateDirOff float32 // in degrees.
27983 NametagColor color.NRGBA
27984 FaceRotateSpeed float32 // in degrees per second.
27988 MaxBreath uint16 // Player only.
27989 EyeHeight float32 // Player only.
27990 ZoomFOV float32 // in degrees. Player only.
27991 UseTextureAlpha bool
27992 DmgTextureMod Texture // suffix
27995 NametagBG color.NRGBA
27996 }))(obj)).Mesh))[:])
27999 if len(((*(*(struct {
28000 MaxHP uint16 // Player only.
28001 CollideWithNodes bool
28002 Weight float32 // deprecated
28006 VisualSize [3]float32
28008 SpriteSheetSize [2]int16 // in sprites.
28009 SpritePos [2]int16 // in sprite sheet.
28011 MakeFootstepSnds bool
28012 RotateSpeed float32 // in radians per second.
28014 Colors []color.NRGBA
28015 CollideWithAOs bool
28018 FaceRotateDirOff float32 // in degrees.
28021 NametagColor color.NRGBA
28022 FaceRotateSpeed float32 // in degrees per second.
28026 MaxBreath uint16 // Player only.
28027 EyeHeight float32 // Player only.
28028 ZoomFOV float32 // in degrees. Player only.
28029 UseTextureAlpha bool
28030 DmgTextureMod Texture // suffix
28033 NametagBG color.NRGBA
28034 }))(obj)).Colors)) > math.MaxUint16 {
28038 x := uint16(len(((*(*(struct {
28039 MaxHP uint16 // Player only.
28040 CollideWithNodes bool
28041 Weight float32 // deprecated
28045 VisualSize [3]float32
28047 SpriteSheetSize [2]int16 // in sprites.
28048 SpritePos [2]int16 // in sprite sheet.
28050 MakeFootstepSnds bool
28051 RotateSpeed float32 // in radians per second.
28053 Colors []color.NRGBA
28054 CollideWithAOs bool
28057 FaceRotateDirOff float32 // in degrees.
28060 NametagColor color.NRGBA
28061 FaceRotateSpeed float32 // in degrees per second.
28065 MaxBreath uint16 // Player only.
28066 EyeHeight float32 // Player only.
28067 ZoomFOV float32 // in degrees. Player only.
28068 UseTextureAlpha bool
28069 DmgTextureMod Texture // suffix
28072 NametagBG color.NRGBA
28073 }))(obj)).Colors)))
28074 write16(w, uint16(x))
28076 for local340 := range (*(*(struct {
28077 MaxHP uint16 // Player only.
28078 CollideWithNodes bool
28079 Weight float32 // deprecated
28083 VisualSize [3]float32
28085 SpriteSheetSize [2]int16 // in sprites.
28086 SpritePos [2]int16 // in sprite sheet.
28088 MakeFootstepSnds bool
28089 RotateSpeed float32 // in radians per second.
28091 Colors []color.NRGBA
28092 CollideWithAOs bool
28095 FaceRotateDirOff float32 // in degrees.
28098 NametagColor color.NRGBA
28099 FaceRotateSpeed float32 // in degrees per second.
28103 MaxBreath uint16 // Player only.
28104 EyeHeight float32 // Player only.
28105 ZoomFOV float32 // in degrees. Player only.
28106 UseTextureAlpha bool
28107 DmgTextureMod Texture // suffix
28110 NametagBG color.NRGBA
28113 x := ((*(*(struct {
28114 MaxHP uint16 // Player only.
28115 CollideWithNodes bool
28116 Weight float32 // deprecated
28120 VisualSize [3]float32
28122 SpriteSheetSize [2]int16 // in sprites.
28123 SpritePos [2]int16 // in sprite sheet.
28125 MakeFootstepSnds bool
28126 RotateSpeed float32 // in radians per second.
28128 Colors []color.NRGBA
28129 CollideWithAOs bool
28132 FaceRotateDirOff float32 // in degrees.
28135 NametagColor color.NRGBA
28136 FaceRotateSpeed float32 // in degrees per second.
28140 MaxBreath uint16 // Player only.
28141 EyeHeight float32 // Player only.
28142 ZoomFOV float32 // in degrees. Player only.
28143 UseTextureAlpha bool
28144 DmgTextureMod Texture // suffix
28147 NametagBG color.NRGBA
28148 }))(obj)).Colors)[local340]
28149 w.Write([]byte{x.A, x.R, x.G, x.B})
28155 MaxHP uint16 // Player only.
28156 CollideWithNodes bool
28157 Weight float32 // deprecated
28161 VisualSize [3]float32
28163 SpriteSheetSize [2]int16 // in sprites.
28164 SpritePos [2]int16 // in sprite sheet.
28166 MakeFootstepSnds bool
28167 RotateSpeed float32 // in radians per second.
28169 Colors []color.NRGBA
28170 CollideWithAOs bool
28173 FaceRotateDirOff float32 // in degrees.
28176 NametagColor color.NRGBA
28177 FaceRotateSpeed float32 // in degrees per second.
28181 MaxBreath uint16 // Player only.
28182 EyeHeight float32 // Player only.
28183 ZoomFOV float32 // in degrees. Player only.
28184 UseTextureAlpha bool
28185 DmgTextureMod Texture // suffix
28188 NametagBG color.NRGBA
28189 }))(obj)).CollideWithAOs
28199 MaxHP uint16 // Player only.
28200 CollideWithNodes bool
28201 Weight float32 // deprecated
28205 VisualSize [3]float32
28207 SpriteSheetSize [2]int16 // in sprites.
28208 SpritePos [2]int16 // in sprite sheet.
28210 MakeFootstepSnds bool
28211 RotateSpeed float32 // in radians per second.
28213 Colors []color.NRGBA
28214 CollideWithAOs bool
28217 FaceRotateDirOff float32 // in degrees.
28220 NametagColor color.NRGBA
28221 FaceRotateSpeed float32 // in degrees per second.
28225 MaxBreath uint16 // Player only.
28226 EyeHeight float32 // Player only.
28227 ZoomFOV float32 // in degrees. Player only.
28228 UseTextureAlpha bool
28229 DmgTextureMod Texture // suffix
28232 NametagBG color.NRGBA
28233 }))(obj)).StepHeight
28234 write32(w, math.Float32bits(x))
28238 MaxHP uint16 // Player only.
28239 CollideWithNodes bool
28240 Weight float32 // deprecated
28244 VisualSize [3]float32
28246 SpriteSheetSize [2]int16 // in sprites.
28247 SpritePos [2]int16 // in sprite sheet.
28249 MakeFootstepSnds bool
28250 RotateSpeed float32 // in radians per second.
28252 Colors []color.NRGBA
28253 CollideWithAOs bool
28256 FaceRotateDirOff float32 // in degrees.
28259 NametagColor color.NRGBA
28260 FaceRotateSpeed float32 // in degrees per second.
28264 MaxBreath uint16 // Player only.
28265 EyeHeight float32 // Player only.
28266 ZoomFOV float32 // in degrees. Player only.
28267 UseTextureAlpha bool
28268 DmgTextureMod Texture // suffix
28271 NametagBG color.NRGBA
28272 }))(obj)).FaceRotateDir
28282 MaxHP uint16 // Player only.
28283 CollideWithNodes bool
28284 Weight float32 // deprecated
28288 VisualSize [3]float32
28290 SpriteSheetSize [2]int16 // in sprites.
28291 SpritePos [2]int16 // in sprite sheet.
28293 MakeFootstepSnds bool
28294 RotateSpeed float32 // in radians per second.
28296 Colors []color.NRGBA
28297 CollideWithAOs bool
28300 FaceRotateDirOff float32 // in degrees.
28303 NametagColor color.NRGBA
28304 FaceRotateSpeed float32 // in degrees per second.
28308 MaxBreath uint16 // Player only.
28309 EyeHeight float32 // Player only.
28310 ZoomFOV float32 // in degrees. Player only.
28311 UseTextureAlpha bool
28312 DmgTextureMod Texture // suffix
28315 NametagBG color.NRGBA
28316 }))(obj)).FaceRotateDirOff
28317 write32(w, math.Float32bits(x))
28321 MaxHP uint16 // Player only.
28322 CollideWithNodes bool
28323 Weight float32 // deprecated
28327 VisualSize [3]float32
28329 SpriteSheetSize [2]int16 // in sprites.
28330 SpritePos [2]int16 // in sprite sheet.
28332 MakeFootstepSnds bool
28333 RotateSpeed float32 // in radians per second.
28335 Colors []color.NRGBA
28336 CollideWithAOs bool
28339 FaceRotateDirOff float32 // in degrees.
28342 NametagColor color.NRGBA
28343 FaceRotateSpeed float32 // in degrees per second.
28347 MaxBreath uint16 // Player only.
28348 EyeHeight float32 // Player only.
28349 ZoomFOV float32 // in degrees. Player only.
28350 UseTextureAlpha bool
28351 DmgTextureMod Texture // suffix
28354 NametagBG color.NRGBA
28355 }))(obj)).BackfaceCull
28363 if len(([]byte((*(*(struct {
28364 MaxHP uint16 // Player only.
28365 CollideWithNodes bool
28366 Weight float32 // deprecated
28370 VisualSize [3]float32
28372 SpriteSheetSize [2]int16 // in sprites.
28373 SpritePos [2]int16 // in sprite sheet.
28375 MakeFootstepSnds bool
28376 RotateSpeed float32 // in radians per second.
28378 Colors []color.NRGBA
28379 CollideWithAOs bool
28382 FaceRotateDirOff float32 // in degrees.
28385 NametagColor color.NRGBA
28386 FaceRotateSpeed float32 // in degrees per second.
28390 MaxBreath uint16 // Player only.
28391 EyeHeight float32 // Player only.
28392 ZoomFOV float32 // in degrees. Player only.
28393 UseTextureAlpha bool
28394 DmgTextureMod Texture // suffix
28397 NametagBG color.NRGBA
28398 }))(obj)).Nametag))) > math.MaxUint16 {
28402 x := uint16(len(([]byte((*(*(struct {
28403 MaxHP uint16 // Player only.
28404 CollideWithNodes bool
28405 Weight float32 // deprecated
28409 VisualSize [3]float32
28411 SpriteSheetSize [2]int16 // in sprites.
28412 SpritePos [2]int16 // in sprite sheet.
28414 MakeFootstepSnds bool
28415 RotateSpeed float32 // in radians per second.
28417 Colors []color.NRGBA
28418 CollideWithAOs bool
28421 FaceRotateDirOff float32 // in degrees.
28424 NametagColor color.NRGBA
28425 FaceRotateSpeed float32 // in degrees per second.
28429 MaxBreath uint16 // Player only.
28430 EyeHeight float32 // Player only.
28431 ZoomFOV float32 // in degrees. Player only.
28432 UseTextureAlpha bool
28433 DmgTextureMod Texture // suffix
28436 NametagBG color.NRGBA
28437 }))(obj)).Nametag))))
28438 write16(w, uint16(x))
28441 _, err := w.Write(([]byte((*(*(struct {
28442 MaxHP uint16 // Player only.
28443 CollideWithNodes bool
28444 Weight float32 // deprecated
28448 VisualSize [3]float32
28450 SpriteSheetSize [2]int16 // in sprites.
28451 SpritePos [2]int16 // in sprite sheet.
28453 MakeFootstepSnds bool
28454 RotateSpeed float32 // in radians per second.
28456 Colors []color.NRGBA
28457 CollideWithAOs bool
28460 FaceRotateDirOff float32 // in degrees.
28463 NametagColor color.NRGBA
28464 FaceRotateSpeed float32 // in degrees per second.
28468 MaxBreath uint16 // Player only.
28469 EyeHeight float32 // Player only.
28470 ZoomFOV float32 // in degrees. Player only.
28471 UseTextureAlpha bool
28472 DmgTextureMod Texture // suffix
28475 NametagBG color.NRGBA
28476 }))(obj)).Nametag))[:])
28481 MaxHP uint16 // Player only.
28482 CollideWithNodes bool
28483 Weight float32 // deprecated
28487 VisualSize [3]float32
28489 SpriteSheetSize [2]int16 // in sprites.
28490 SpritePos [2]int16 // in sprite sheet.
28492 MakeFootstepSnds bool
28493 RotateSpeed float32 // in radians per second.
28495 Colors []color.NRGBA
28496 CollideWithAOs bool
28499 FaceRotateDirOff float32 // in degrees.
28502 NametagColor color.NRGBA
28503 FaceRotateSpeed float32 // in degrees per second.
28507 MaxBreath uint16 // Player only.
28508 EyeHeight float32 // Player only.
28509 ZoomFOV float32 // in degrees. Player only.
28510 UseTextureAlpha bool
28511 DmgTextureMod Texture // suffix
28514 NametagBG color.NRGBA
28515 }))(obj)).NametagColor
28516 w.Write([]byte{x.A, x.R, x.G, x.B})
28521 MaxHP uint16 // Player only.
28522 CollideWithNodes bool
28523 Weight float32 // deprecated
28527 VisualSize [3]float32
28529 SpriteSheetSize [2]int16 // in sprites.
28530 SpritePos [2]int16 // in sprite sheet.
28532 MakeFootstepSnds bool
28533 RotateSpeed float32 // in radians per second.
28535 Colors []color.NRGBA
28536 CollideWithAOs bool
28539 FaceRotateDirOff float32 // in degrees.
28542 NametagColor color.NRGBA
28543 FaceRotateSpeed float32 // in degrees per second.
28547 MaxBreath uint16 // Player only.
28548 EyeHeight float32 // Player only.
28549 ZoomFOV float32 // in degrees. Player only.
28550 UseTextureAlpha bool
28551 DmgTextureMod Texture // suffix
28554 NametagBG color.NRGBA
28555 }))(obj)).FaceRotateSpeed
28556 write32(w, math.Float32bits(x))
28558 if len(([]byte((*(*(struct {
28559 MaxHP uint16 // Player only.
28560 CollideWithNodes bool
28561 Weight float32 // deprecated
28565 VisualSize [3]float32
28567 SpriteSheetSize [2]int16 // in sprites.
28568 SpritePos [2]int16 // in sprite sheet.
28570 MakeFootstepSnds bool
28571 RotateSpeed float32 // in radians per second.
28573 Colors []color.NRGBA
28574 CollideWithAOs bool
28577 FaceRotateDirOff float32 // in degrees.
28580 NametagColor color.NRGBA
28581 FaceRotateSpeed float32 // in degrees per second.
28585 MaxBreath uint16 // Player only.
28586 EyeHeight float32 // Player only.
28587 ZoomFOV float32 // in degrees. Player only.
28588 UseTextureAlpha bool
28589 DmgTextureMod Texture // suffix
28592 NametagBG color.NRGBA
28593 }))(obj)).Infotext))) > math.MaxUint16 {
28597 x := uint16(len(([]byte((*(*(struct {
28598 MaxHP uint16 // Player only.
28599 CollideWithNodes bool
28600 Weight float32 // deprecated
28604 VisualSize [3]float32
28606 SpriteSheetSize [2]int16 // in sprites.
28607 SpritePos [2]int16 // in sprite sheet.
28609 MakeFootstepSnds bool
28610 RotateSpeed float32 // in radians per second.
28612 Colors []color.NRGBA
28613 CollideWithAOs bool
28616 FaceRotateDirOff float32 // in degrees.
28619 NametagColor color.NRGBA
28620 FaceRotateSpeed float32 // in degrees per second.
28624 MaxBreath uint16 // Player only.
28625 EyeHeight float32 // Player only.
28626 ZoomFOV float32 // in degrees. Player only.
28627 UseTextureAlpha bool
28628 DmgTextureMod Texture // suffix
28631 NametagBG color.NRGBA
28632 }))(obj)).Infotext))))
28633 write16(w, uint16(x))
28636 _, err := w.Write(([]byte((*(*(struct {
28637 MaxHP uint16 // Player only.
28638 CollideWithNodes bool
28639 Weight float32 // deprecated
28643 VisualSize [3]float32
28645 SpriteSheetSize [2]int16 // in sprites.
28646 SpritePos [2]int16 // in sprite sheet.
28648 MakeFootstepSnds bool
28649 RotateSpeed float32 // in radians per second.
28651 Colors []color.NRGBA
28652 CollideWithAOs bool
28655 FaceRotateDirOff float32 // in degrees.
28658 NametagColor color.NRGBA
28659 FaceRotateSpeed float32 // in degrees per second.
28663 MaxBreath uint16 // Player only.
28664 EyeHeight float32 // Player only.
28665 ZoomFOV float32 // in degrees. Player only.
28666 UseTextureAlpha bool
28667 DmgTextureMod Texture // suffix
28670 NametagBG color.NRGBA
28671 }))(obj)).Infotext))[:])
28674 if len(([]byte((*(*(struct {
28675 MaxHP uint16 // Player only.
28676 CollideWithNodes bool
28677 Weight float32 // deprecated
28681 VisualSize [3]float32
28683 SpriteSheetSize [2]int16 // in sprites.
28684 SpritePos [2]int16 // in sprite sheet.
28686 MakeFootstepSnds bool
28687 RotateSpeed float32 // in radians per second.
28689 Colors []color.NRGBA
28690 CollideWithAOs bool
28693 FaceRotateDirOff float32 // in degrees.
28696 NametagColor color.NRGBA
28697 FaceRotateSpeed float32 // in degrees per second.
28701 MaxBreath uint16 // Player only.
28702 EyeHeight float32 // Player only.
28703 ZoomFOV float32 // in degrees. Player only.
28704 UseTextureAlpha bool
28705 DmgTextureMod Texture // suffix
28708 NametagBG color.NRGBA
28709 }))(obj)).Itemstring))) > math.MaxUint16 {
28713 x := uint16(len(([]byte((*(*(struct {
28714 MaxHP uint16 // Player only.
28715 CollideWithNodes bool
28716 Weight float32 // deprecated
28720 VisualSize [3]float32
28722 SpriteSheetSize [2]int16 // in sprites.
28723 SpritePos [2]int16 // in sprite sheet.
28725 MakeFootstepSnds bool
28726 RotateSpeed float32 // in radians per second.
28728 Colors []color.NRGBA
28729 CollideWithAOs bool
28732 FaceRotateDirOff float32 // in degrees.
28735 NametagColor color.NRGBA
28736 FaceRotateSpeed float32 // in degrees per second.
28740 MaxBreath uint16 // Player only.
28741 EyeHeight float32 // Player only.
28742 ZoomFOV float32 // in degrees. Player only.
28743 UseTextureAlpha bool
28744 DmgTextureMod Texture // suffix
28747 NametagBG color.NRGBA
28748 }))(obj)).Itemstring))))
28749 write16(w, uint16(x))
28752 _, err := w.Write(([]byte((*(*(struct {
28753 MaxHP uint16 // Player only.
28754 CollideWithNodes bool
28755 Weight float32 // deprecated
28759 VisualSize [3]float32
28761 SpriteSheetSize [2]int16 // in sprites.
28762 SpritePos [2]int16 // in sprite sheet.
28764 MakeFootstepSnds bool
28765 RotateSpeed float32 // in radians per second.
28767 Colors []color.NRGBA
28768 CollideWithAOs bool
28771 FaceRotateDirOff float32 // in degrees.
28774 NametagColor color.NRGBA
28775 FaceRotateSpeed float32 // in degrees per second.
28779 MaxBreath uint16 // Player only.
28780 EyeHeight float32 // Player only.
28781 ZoomFOV float32 // in degrees. Player only.
28782 UseTextureAlpha bool
28783 DmgTextureMod Texture // suffix
28786 NametagBG color.NRGBA
28787 }))(obj)).Itemstring))[:])
28792 MaxHP uint16 // Player only.
28793 CollideWithNodes bool
28794 Weight float32 // deprecated
28798 VisualSize [3]float32
28800 SpriteSheetSize [2]int16 // in sprites.
28801 SpritePos [2]int16 // in sprite sheet.
28803 MakeFootstepSnds bool
28804 RotateSpeed float32 // in radians per second.
28806 Colors []color.NRGBA
28807 CollideWithAOs bool
28810 FaceRotateDirOff float32 // in degrees.
28813 NametagColor color.NRGBA
28814 FaceRotateSpeed float32 // in degrees per second.
28818 MaxBreath uint16 // Player only.
28819 EyeHeight float32 // Player only.
28820 ZoomFOV float32 // in degrees. Player only.
28821 UseTextureAlpha bool
28822 DmgTextureMod Texture // suffix
28825 NametagBG color.NRGBA
28827 write8(w, uint8(x))
28831 MaxHP uint16 // Player only.
28832 CollideWithNodes bool
28833 Weight float32 // deprecated
28837 VisualSize [3]float32
28839 SpriteSheetSize [2]int16 // in sprites.
28840 SpritePos [2]int16 // in sprite sheet.
28842 MakeFootstepSnds bool
28843 RotateSpeed float32 // in radians per second.
28845 Colors []color.NRGBA
28846 CollideWithAOs bool
28849 FaceRotateDirOff float32 // in degrees.
28852 NametagColor color.NRGBA
28853 FaceRotateSpeed float32 // in degrees per second.
28857 MaxBreath uint16 // Player only.
28858 EyeHeight float32 // Player only.
28859 ZoomFOV float32 // in degrees. Player only.
28860 UseTextureAlpha bool
28861 DmgTextureMod Texture // suffix
28864 NametagBG color.NRGBA
28865 }))(obj)).MaxBreath
28866 write16(w, uint16(x))
28870 MaxHP uint16 // Player only.
28871 CollideWithNodes bool
28872 Weight float32 // deprecated
28876 VisualSize [3]float32
28878 SpriteSheetSize [2]int16 // in sprites.
28879 SpritePos [2]int16 // in sprite sheet.
28881 MakeFootstepSnds bool
28882 RotateSpeed float32 // in radians per second.
28884 Colors []color.NRGBA
28885 CollideWithAOs bool
28888 FaceRotateDirOff float32 // in degrees.
28891 NametagColor color.NRGBA
28892 FaceRotateSpeed float32 // in degrees per second.
28896 MaxBreath uint16 // Player only.
28897 EyeHeight float32 // Player only.
28898 ZoomFOV float32 // in degrees. Player only.
28899 UseTextureAlpha bool
28900 DmgTextureMod Texture // suffix
28903 NametagBG color.NRGBA
28904 }))(obj)).EyeHeight
28905 write32(w, math.Float32bits(x))
28909 MaxHP uint16 // Player only.
28910 CollideWithNodes bool
28911 Weight float32 // deprecated
28915 VisualSize [3]float32
28917 SpriteSheetSize [2]int16 // in sprites.
28918 SpritePos [2]int16 // in sprite sheet.
28920 MakeFootstepSnds bool
28921 RotateSpeed float32 // in radians per second.
28923 Colors []color.NRGBA
28924 CollideWithAOs bool
28927 FaceRotateDirOff float32 // in degrees.
28930 NametagColor color.NRGBA
28931 FaceRotateSpeed float32 // in degrees per second.
28935 MaxBreath uint16 // Player only.
28936 EyeHeight float32 // Player only.
28937 ZoomFOV float32 // in degrees. Player only.
28938 UseTextureAlpha bool
28939 DmgTextureMod Texture // suffix
28942 NametagBG color.NRGBA
28944 write32(w, math.Float32bits(x))
28948 MaxHP uint16 // Player only.
28949 CollideWithNodes bool
28950 Weight float32 // deprecated
28954 VisualSize [3]float32
28956 SpriteSheetSize [2]int16 // in sprites.
28957 SpritePos [2]int16 // in sprite sheet.
28959 MakeFootstepSnds bool
28960 RotateSpeed float32 // in radians per second.
28962 Colors []color.NRGBA
28963 CollideWithAOs bool
28966 FaceRotateDirOff float32 // in degrees.
28969 NametagColor color.NRGBA
28970 FaceRotateSpeed float32 // in degrees per second.
28974 MaxBreath uint16 // Player only.
28975 EyeHeight float32 // Player only.
28976 ZoomFOV float32 // in degrees. Player only.
28977 UseTextureAlpha bool
28978 DmgTextureMod Texture // suffix
28981 NametagBG color.NRGBA
28982 }))(obj)).UseTextureAlpha
28990 if err := pcall(func() {
28992 MaxHP uint16 // Player only.
28993 CollideWithNodes bool
28994 Weight float32 // deprecated
28998 VisualSize [3]float32
29000 SpriteSheetSize [2]int16 // in sprites.
29001 SpritePos [2]int16 // in sprite sheet.
29003 MakeFootstepSnds bool
29004 RotateSpeed float32 // in radians per second.
29006 Colors []color.NRGBA
29007 CollideWithAOs bool
29010 FaceRotateDirOff float32 // in degrees.
29013 NametagColor color.NRGBA
29014 FaceRotateSpeed float32 // in degrees per second.
29018 MaxBreath uint16 // Player only.
29019 EyeHeight float32 // Player only.
29020 ZoomFOV float32 // in degrees. Player only.
29021 UseTextureAlpha bool
29022 DmgTextureMod Texture // suffix
29025 NametagBG color.NRGBA
29026 }))(obj)).DmgTextureMod).serialize(w)
29031 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29035 MaxHP uint16 // Player only.
29036 CollideWithNodes bool
29037 Weight float32 // deprecated
29041 VisualSize [3]float32
29043 SpriteSheetSize [2]int16 // in sprites.
29044 SpritePos [2]int16 // in sprite sheet.
29046 MakeFootstepSnds bool
29047 RotateSpeed float32 // in radians per second.
29049 Colors []color.NRGBA
29050 CollideWithAOs bool
29053 FaceRotateDirOff float32 // in degrees.
29056 NametagColor color.NRGBA
29057 FaceRotateSpeed float32 // in degrees per second.
29061 MaxBreath uint16 // Player only.
29062 EyeHeight float32 // Player only.
29063 ZoomFOV float32 // in degrees. Player only.
29064 UseTextureAlpha bool
29065 DmgTextureMod Texture // suffix
29068 NametagBG color.NRGBA
29079 MaxHP uint16 // Player only.
29080 CollideWithNodes bool
29081 Weight float32 // deprecated
29085 VisualSize [3]float32
29087 SpriteSheetSize [2]int16 // in sprites.
29088 SpritePos [2]int16 // in sprite sheet.
29090 MakeFootstepSnds bool
29091 RotateSpeed float32 // in radians per second.
29093 Colors []color.NRGBA
29094 CollideWithAOs bool
29097 FaceRotateDirOff float32 // in degrees.
29100 NametagColor color.NRGBA
29101 FaceRotateSpeed float32 // in degrees per second.
29105 MaxBreath uint16 // Player only.
29106 EyeHeight float32 // Player only.
29107 ZoomFOV float32 // in degrees. Player only.
29108 UseTextureAlpha bool
29109 DmgTextureMod Texture // suffix
29112 NametagBG color.NRGBA
29113 }))(obj)).ShowOnMinimap
29123 MaxHP uint16 // Player only.
29124 CollideWithNodes bool
29125 Weight float32 // deprecated
29129 VisualSize [3]float32
29131 SpriteSheetSize [2]int16 // in sprites.
29132 SpritePos [2]int16 // in sprite sheet.
29134 MakeFootstepSnds bool
29135 RotateSpeed float32 // in radians per second.
29137 Colors []color.NRGBA
29138 CollideWithAOs bool
29141 FaceRotateDirOff float32 // in degrees.
29144 NametagColor color.NRGBA
29145 FaceRotateSpeed float32 // in degrees per second.
29149 MaxBreath uint16 // Player only.
29150 EyeHeight float32 // Player only.
29151 ZoomFOV float32 // in degrees. Player only.
29152 UseTextureAlpha bool
29153 DmgTextureMod Texture // suffix
29156 NametagBG color.NRGBA
29157 }))(obj)).NametagBG
29158 w.Write([]byte{x.A, x.R, x.G, x.B})
29163 func (obj *AOProps) deserialize(r io.Reader) {
29166 local342 := uint8(4)
29171 if local341 != local342 {
29172 chk(fmt.Errorf("const %v: %v", "uint8(4)", local341))
29176 p := &(*(*(struct {
29177 MaxHP uint16 // Player only.
29178 CollideWithNodes bool
29179 Weight float32 // deprecated
29183 VisualSize [3]float32
29185 SpriteSheetSize [2]int16 // in sprites.
29186 SpritePos [2]int16 // in sprite sheet.
29188 MakeFootstepSnds bool
29189 RotateSpeed float32 // in radians per second.
29191 Colors []color.NRGBA
29192 CollideWithAOs bool
29195 FaceRotateDirOff float32 // in degrees.
29198 NametagColor color.NRGBA
29199 FaceRotateSpeed float32 // in degrees per second.
29203 MaxBreath uint16 // Player only.
29204 EyeHeight float32 // Player only.
29205 ZoomFOV float32 // in degrees. Player only.
29206 UseTextureAlpha bool
29207 DmgTextureMod Texture // suffix
29210 NametagBG color.NRGBA
29215 p := &(*(*(struct {
29216 MaxHP uint16 // Player only.
29217 CollideWithNodes bool
29218 Weight float32 // deprecated
29222 VisualSize [3]float32
29224 SpriteSheetSize [2]int16 // in sprites.
29225 SpritePos [2]int16 // in sprite sheet.
29227 MakeFootstepSnds bool
29228 RotateSpeed float32 // in radians per second.
29230 Colors []color.NRGBA
29231 CollideWithAOs bool
29234 FaceRotateDirOff float32 // in degrees.
29237 NametagColor color.NRGBA
29238 FaceRotateSpeed float32 // in degrees per second.
29242 MaxBreath uint16 // Player only.
29243 EyeHeight float32 // Player only.
29244 ZoomFOV float32 // in degrees. Player only.
29245 UseTextureAlpha bool
29246 DmgTextureMod Texture // suffix
29249 NametagBG color.NRGBA
29250 }))(obj)).CollideWithNodes
29251 switch n := read8(r); n {
29257 chk(fmt.Errorf("invalid bool: %d", n))
29262 p := &(*(*(struct {
29263 MaxHP uint16 // Player only.
29264 CollideWithNodes bool
29265 Weight float32 // deprecated
29269 VisualSize [3]float32
29271 SpriteSheetSize [2]int16 // in sprites.
29272 SpritePos [2]int16 // in sprite sheet.
29274 MakeFootstepSnds bool
29275 RotateSpeed float32 // in radians per second.
29277 Colors []color.NRGBA
29278 CollideWithAOs bool
29281 FaceRotateDirOff float32 // in degrees.
29284 NametagColor color.NRGBA
29285 FaceRotateSpeed float32 // in degrees per second.
29289 MaxBreath uint16 // Player only.
29290 EyeHeight float32 // Player only.
29291 ZoomFOV float32 // in degrees. Player only.
29292 UseTextureAlpha bool
29293 DmgTextureMod Texture // suffix
29296 NametagBG color.NRGBA
29298 *p = math.Float32frombits(read32(r))
29300 if err := pcall(func() {
29302 MaxHP uint16 // Player only.
29303 CollideWithNodes bool
29304 Weight float32 // deprecated
29308 VisualSize [3]float32
29310 SpriteSheetSize [2]int16 // in sprites.
29311 SpritePos [2]int16 // in sprite sheet.
29313 MakeFootstepSnds bool
29314 RotateSpeed float32 // in radians per second.
29316 Colors []color.NRGBA
29317 CollideWithAOs bool
29320 FaceRotateDirOff float32 // in degrees.
29323 NametagColor color.NRGBA
29324 FaceRotateSpeed float32 // in degrees per second.
29328 MaxBreath uint16 // Player only.
29329 EyeHeight float32 // Player only.
29330 ZoomFOV float32 // in degrees. Player only.
29331 UseTextureAlpha bool
29332 DmgTextureMod Texture // suffix
29335 NametagBG color.NRGBA
29336 }))(obj)).ColBox).deserialize(r)
29341 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29343 if err := pcall(func() {
29345 MaxHP uint16 // Player only.
29346 CollideWithNodes bool
29347 Weight float32 // deprecated
29351 VisualSize [3]float32
29353 SpriteSheetSize [2]int16 // in sprites.
29354 SpritePos [2]int16 // in sprite sheet.
29356 MakeFootstepSnds bool
29357 RotateSpeed float32 // in radians per second.
29359 Colors []color.NRGBA
29360 CollideWithAOs bool
29363 FaceRotateDirOff float32 // in degrees.
29366 NametagColor color.NRGBA
29367 FaceRotateSpeed float32 // in degrees per second.
29371 MaxBreath uint16 // Player only.
29372 EyeHeight float32 // Player only.
29373 ZoomFOV float32 // in degrees. Player only.
29374 UseTextureAlpha bool
29375 DmgTextureMod Texture // suffix
29378 NametagBG color.NRGBA
29379 }))(obj)).SelBox).deserialize(r)
29384 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
29387 p := &(*(*(struct {
29388 MaxHP uint16 // Player only.
29389 CollideWithNodes bool
29390 Weight float32 // deprecated
29394 VisualSize [3]float32
29396 SpriteSheetSize [2]int16 // in sprites.
29397 SpritePos [2]int16 // in sprite sheet.
29399 MakeFootstepSnds bool
29400 RotateSpeed float32 // in radians per second.
29402 Colors []color.NRGBA
29403 CollideWithAOs bool
29406 FaceRotateDirOff float32 // in degrees.
29409 NametagColor color.NRGBA
29410 FaceRotateSpeed float32 // in degrees per second.
29414 MaxBreath uint16 // Player only.
29415 EyeHeight float32 // Player only.
29416 ZoomFOV float32 // in degrees. Player only.
29417 UseTextureAlpha bool
29418 DmgTextureMod Texture // suffix
29421 NametagBG color.NRGBA
29422 }))(obj)).Pointable
29423 switch n := read8(r); n {
29429 chk(fmt.Errorf("invalid bool: %d", n))
29433 var local343 []uint8
29434 var local344 uint16
29439 (local343) = make([]uint8, local344)
29441 _, err := io.ReadFull(r, (local343)[:])
29445 MaxHP uint16 // Player only.
29446 CollideWithNodes bool
29447 Weight float32 // deprecated
29451 VisualSize [3]float32
29453 SpriteSheetSize [2]int16 // in sprites.
29454 SpritePos [2]int16 // in sprite sheet.
29456 MakeFootstepSnds bool
29457 RotateSpeed float32 // in radians per second.
29459 Colors []color.NRGBA
29460 CollideWithAOs bool
29463 FaceRotateDirOff float32 // in degrees.
29466 NametagColor color.NRGBA
29467 FaceRotateSpeed float32 // in degrees per second.
29471 MaxBreath uint16 // Player only.
29472 EyeHeight float32 // Player only.
29473 ZoomFOV float32 // in degrees. Player only.
29474 UseTextureAlpha bool
29475 DmgTextureMod Texture // suffix
29478 NametagBG color.NRGBA
29479 }))(obj)).Visual) = string(local343)
29480 for local345 := range (*(*(struct {
29481 MaxHP uint16 // Player only.
29482 CollideWithNodes bool
29483 Weight float32 // deprecated
29487 VisualSize [3]float32
29489 SpriteSheetSize [2]int16 // in sprites.
29490 SpritePos [2]int16 // in sprite sheet.
29492 MakeFootstepSnds bool
29493 RotateSpeed float32 // in radians per second.
29495 Colors []color.NRGBA
29496 CollideWithAOs bool
29499 FaceRotateDirOff float32 // in degrees.
29502 NametagColor color.NRGBA
29503 FaceRotateSpeed float32 // in degrees per second.
29507 MaxBreath uint16 // Player only.
29508 EyeHeight float32 // Player only.
29509 ZoomFOV float32 // in degrees. Player only.
29510 UseTextureAlpha bool
29511 DmgTextureMod Texture // suffix
29514 NametagBG color.NRGBA
29515 }))(obj)).VisualSize {
29517 p := &((*(*(struct {
29518 MaxHP uint16 // Player only.
29519 CollideWithNodes bool
29520 Weight float32 // deprecated
29524 VisualSize [3]float32
29526 SpriteSheetSize [2]int16 // in sprites.
29527 SpritePos [2]int16 // in sprite sheet.
29529 MakeFootstepSnds bool
29530 RotateSpeed float32 // in radians per second.
29532 Colors []color.NRGBA
29533 CollideWithAOs bool
29536 FaceRotateDirOff float32 // in degrees.
29539 NametagColor color.NRGBA
29540 FaceRotateSpeed float32 // in degrees per second.
29544 MaxBreath uint16 // Player only.
29545 EyeHeight float32 // Player only.
29546 ZoomFOV float32 // in degrees. Player only.
29547 UseTextureAlpha bool
29548 DmgTextureMod Texture // suffix
29551 NametagBG color.NRGBA
29552 }))(obj)).VisualSize)[local345]
29553 *p = math.Float32frombits(read32(r))
29556 var local346 uint16
29562 MaxHP uint16 // Player only.
29563 CollideWithNodes bool
29564 Weight float32 // deprecated
29568 VisualSize [3]float32
29570 SpriteSheetSize [2]int16 // in sprites.
29571 SpritePos [2]int16 // in sprite sheet.
29573 MakeFootstepSnds bool
29574 RotateSpeed float32 // in radians per second.
29576 Colors []color.NRGBA
29577 CollideWithAOs bool
29580 FaceRotateDirOff float32 // in degrees.
29583 NametagColor color.NRGBA
29584 FaceRotateSpeed float32 // in degrees per second.
29588 MaxBreath uint16 // Player only.
29589 EyeHeight float32 // Player only.
29590 ZoomFOV float32 // in degrees. Player only.
29591 UseTextureAlpha bool
29592 DmgTextureMod Texture // suffix
29595 NametagBG color.NRGBA
29596 }))(obj)).Textures) = make([]Texture, local346)
29597 for local347 := range (*(*(struct {
29598 MaxHP uint16 // Player only.
29599 CollideWithNodes bool
29600 Weight float32 // deprecated
29604 VisualSize [3]float32
29606 SpriteSheetSize [2]int16 // in sprites.
29607 SpritePos [2]int16 // in sprite sheet.
29609 MakeFootstepSnds bool
29610 RotateSpeed float32 // in radians per second.
29612 Colors []color.NRGBA
29613 CollideWithAOs bool
29616 FaceRotateDirOff float32 // in degrees.
29619 NametagColor color.NRGBA
29620 FaceRotateSpeed float32 // in degrees per second.
29624 MaxBreath uint16 // Player only.
29625 EyeHeight float32 // Player only.
29626 ZoomFOV float32 // in degrees. Player only.
29627 UseTextureAlpha bool
29628 DmgTextureMod Texture // suffix
29631 NametagBG color.NRGBA
29632 }))(obj)).Textures {
29633 if err := pcall(func() {
29635 MaxHP uint16 // Player only.
29636 CollideWithNodes bool
29637 Weight float32 // deprecated
29641 VisualSize [3]float32
29643 SpriteSheetSize [2]int16 // in sprites.
29644 SpritePos [2]int16 // in sprite sheet.
29646 MakeFootstepSnds bool
29647 RotateSpeed float32 // in radians per second.
29649 Colors []color.NRGBA
29650 CollideWithAOs bool
29653 FaceRotateDirOff float32 // in degrees.
29656 NametagColor color.NRGBA
29657 FaceRotateSpeed float32 // in degrees per second.
29661 MaxBreath uint16 // Player only.
29662 EyeHeight float32 // Player only.
29663 ZoomFOV float32 // in degrees. Player only.
29664 UseTextureAlpha bool
29665 DmgTextureMod Texture // suffix
29668 NametagBG color.NRGBA
29669 }))(obj)).Textures)[local347]).deserialize(r)
29674 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
29677 for local348 := range (*(*(struct {
29678 MaxHP uint16 // Player only.
29679 CollideWithNodes bool
29680 Weight float32 // deprecated
29684 VisualSize [3]float32
29686 SpriteSheetSize [2]int16 // in sprites.
29687 SpritePos [2]int16 // in sprite sheet.
29689 MakeFootstepSnds bool
29690 RotateSpeed float32 // in radians per second.
29692 Colors []color.NRGBA
29693 CollideWithAOs bool
29696 FaceRotateDirOff float32 // in degrees.
29699 NametagColor color.NRGBA
29700 FaceRotateSpeed float32 // in degrees per second.
29704 MaxBreath uint16 // Player only.
29705 EyeHeight float32 // Player only.
29706 ZoomFOV float32 // in degrees. Player only.
29707 UseTextureAlpha bool
29708 DmgTextureMod Texture // suffix
29711 NametagBG color.NRGBA
29712 }))(obj)).SpriteSheetSize {
29714 p := &((*(*(struct {
29715 MaxHP uint16 // Player only.
29716 CollideWithNodes bool
29717 Weight float32 // deprecated
29721 VisualSize [3]float32
29723 SpriteSheetSize [2]int16 // in sprites.
29724 SpritePos [2]int16 // in sprite sheet.
29726 MakeFootstepSnds bool
29727 RotateSpeed float32 // in radians per second.
29729 Colors []color.NRGBA
29730 CollideWithAOs bool
29733 FaceRotateDirOff float32 // in degrees.
29736 NametagColor color.NRGBA
29737 FaceRotateSpeed float32 // in degrees per second.
29741 MaxBreath uint16 // Player only.
29742 EyeHeight float32 // Player only.
29743 ZoomFOV float32 // in degrees. Player only.
29744 UseTextureAlpha bool
29745 DmgTextureMod Texture // suffix
29748 NametagBG color.NRGBA
29749 }))(obj)).SpriteSheetSize)[local348]
29750 *p = int16(read16(r))
29753 for local349 := range (*(*(struct {
29754 MaxHP uint16 // Player only.
29755 CollideWithNodes bool
29756 Weight float32 // deprecated
29760 VisualSize [3]float32
29762 SpriteSheetSize [2]int16 // in sprites.
29763 SpritePos [2]int16 // in sprite sheet.
29765 MakeFootstepSnds bool
29766 RotateSpeed float32 // in radians per second.
29768 Colors []color.NRGBA
29769 CollideWithAOs bool
29772 FaceRotateDirOff float32 // in degrees.
29775 NametagColor color.NRGBA
29776 FaceRotateSpeed float32 // in degrees per second.
29780 MaxBreath uint16 // Player only.
29781 EyeHeight float32 // Player only.
29782 ZoomFOV float32 // in degrees. Player only.
29783 UseTextureAlpha bool
29784 DmgTextureMod Texture // suffix
29787 NametagBG color.NRGBA
29788 }))(obj)).SpritePos {
29790 p := &((*(*(struct {
29791 MaxHP uint16 // Player only.
29792 CollideWithNodes bool
29793 Weight float32 // deprecated
29797 VisualSize [3]float32
29799 SpriteSheetSize [2]int16 // in sprites.
29800 SpritePos [2]int16 // in sprite sheet.
29802 MakeFootstepSnds bool
29803 RotateSpeed float32 // in radians per second.
29805 Colors []color.NRGBA
29806 CollideWithAOs bool
29809 FaceRotateDirOff float32 // in degrees.
29812 NametagColor color.NRGBA
29813 FaceRotateSpeed float32 // in degrees per second.
29817 MaxBreath uint16 // Player only.
29818 EyeHeight float32 // Player only.
29819 ZoomFOV float32 // in degrees. Player only.
29820 UseTextureAlpha bool
29821 DmgTextureMod Texture // suffix
29824 NametagBG color.NRGBA
29825 }))(obj)).SpritePos)[local349]
29826 *p = int16(read16(r))
29830 p := &(*(*(struct {
29831 MaxHP uint16 // Player only.
29832 CollideWithNodes bool
29833 Weight float32 // deprecated
29837 VisualSize [3]float32
29839 SpriteSheetSize [2]int16 // in sprites.
29840 SpritePos [2]int16 // in sprite sheet.
29842 MakeFootstepSnds bool
29843 RotateSpeed float32 // in radians per second.
29845 Colors []color.NRGBA
29846 CollideWithAOs bool
29849 FaceRotateDirOff float32 // in degrees.
29852 NametagColor color.NRGBA
29853 FaceRotateSpeed float32 // in degrees per second.
29857 MaxBreath uint16 // Player only.
29858 EyeHeight float32 // Player only.
29859 ZoomFOV float32 // in degrees. Player only.
29860 UseTextureAlpha bool
29861 DmgTextureMod Texture // suffix
29864 NametagBG color.NRGBA
29866 switch n := read8(r); n {
29872 chk(fmt.Errorf("invalid bool: %d", n))
29877 p := &(*(*(struct {
29878 MaxHP uint16 // Player only.
29879 CollideWithNodes bool
29880 Weight float32 // deprecated
29884 VisualSize [3]float32
29886 SpriteSheetSize [2]int16 // in sprites.
29887 SpritePos [2]int16 // in sprite sheet.
29889 MakeFootstepSnds bool
29890 RotateSpeed float32 // in radians per second.
29892 Colors []color.NRGBA
29893 CollideWithAOs bool
29896 FaceRotateDirOff float32 // in degrees.
29899 NametagColor color.NRGBA
29900 FaceRotateSpeed float32 // in degrees per second.
29904 MaxBreath uint16 // Player only.
29905 EyeHeight float32 // Player only.
29906 ZoomFOV float32 // in degrees. Player only.
29907 UseTextureAlpha bool
29908 DmgTextureMod Texture // suffix
29911 NametagBG color.NRGBA
29912 }))(obj)).MakeFootstepSnds
29913 switch n := read8(r); n {
29919 chk(fmt.Errorf("invalid bool: %d", n))
29924 p := &(*(*(struct {
29925 MaxHP uint16 // Player only.
29926 CollideWithNodes bool
29927 Weight float32 // deprecated
29931 VisualSize [3]float32
29933 SpriteSheetSize [2]int16 // in sprites.
29934 SpritePos [2]int16 // in sprite sheet.
29936 MakeFootstepSnds bool
29937 RotateSpeed float32 // in radians per second.
29939 Colors []color.NRGBA
29940 CollideWithAOs bool
29943 FaceRotateDirOff float32 // in degrees.
29946 NametagColor color.NRGBA
29947 FaceRotateSpeed float32 // in degrees per second.
29951 MaxBreath uint16 // Player only.
29952 EyeHeight float32 // Player only.
29953 ZoomFOV float32 // in degrees. Player only.
29954 UseTextureAlpha bool
29955 DmgTextureMod Texture // suffix
29958 NametagBG color.NRGBA
29959 }))(obj)).RotateSpeed
29960 *p = math.Float32frombits(read32(r))
29962 var local350 []uint8
29963 var local351 uint16
29968 (local350) = make([]uint8, local351)
29970 _, err := io.ReadFull(r, (local350)[:])
29974 MaxHP uint16 // Player only.
29975 CollideWithNodes bool
29976 Weight float32 // deprecated
29980 VisualSize [3]float32
29982 SpriteSheetSize [2]int16 // in sprites.
29983 SpritePos [2]int16 // in sprite sheet.
29985 MakeFootstepSnds bool
29986 RotateSpeed float32 // in radians per second.
29988 Colors []color.NRGBA
29989 CollideWithAOs bool
29992 FaceRotateDirOff float32 // in degrees.
29995 NametagColor color.NRGBA
29996 FaceRotateSpeed float32 // in degrees per second.
30000 MaxBreath uint16 // Player only.
30001 EyeHeight float32 // Player only.
30002 ZoomFOV float32 // in degrees. Player only.
30003 UseTextureAlpha bool
30004 DmgTextureMod Texture // suffix
30007 NametagBG color.NRGBA
30008 }))(obj)).Mesh) = string(local350)
30009 var local352 uint16
30015 MaxHP uint16 // Player only.
30016 CollideWithNodes bool
30017 Weight float32 // deprecated
30021 VisualSize [3]float32
30023 SpriteSheetSize [2]int16 // in sprites.
30024 SpritePos [2]int16 // in sprite sheet.
30026 MakeFootstepSnds bool
30027 RotateSpeed float32 // in radians per second.
30029 Colors []color.NRGBA
30030 CollideWithAOs bool
30033 FaceRotateDirOff float32 // in degrees.
30036 NametagColor color.NRGBA
30037 FaceRotateSpeed float32 // in degrees per second.
30041 MaxBreath uint16 // Player only.
30042 EyeHeight float32 // Player only.
30043 ZoomFOV float32 // in degrees. Player only.
30044 UseTextureAlpha bool
30045 DmgTextureMod Texture // suffix
30048 NametagBG color.NRGBA
30049 }))(obj)).Colors) = make([]color.NRGBA, local352)
30050 for local353 := range (*(*(struct {
30051 MaxHP uint16 // Player only.
30052 CollideWithNodes bool
30053 Weight float32 // deprecated
30057 VisualSize [3]float32
30059 SpriteSheetSize [2]int16 // in sprites.
30060 SpritePos [2]int16 // in sprite sheet.
30062 MakeFootstepSnds bool
30063 RotateSpeed float32 // in radians per second.
30065 Colors []color.NRGBA
30066 CollideWithAOs bool
30069 FaceRotateDirOff float32 // in degrees.
30072 NametagColor color.NRGBA
30073 FaceRotateSpeed float32 // in degrees per second.
30077 MaxBreath uint16 // Player only.
30078 EyeHeight float32 // Player only.
30079 ZoomFOV float32 // in degrees. Player only.
30080 UseTextureAlpha bool
30081 DmgTextureMod Texture // suffix
30084 NametagBG color.NRGBA
30087 p := &((*(*(struct {
30088 MaxHP uint16 // Player only.
30089 CollideWithNodes bool
30090 Weight float32 // deprecated
30094 VisualSize [3]float32
30096 SpriteSheetSize [2]int16 // in sprites.
30097 SpritePos [2]int16 // in sprite sheet.
30099 MakeFootstepSnds bool
30100 RotateSpeed float32 // in radians per second.
30102 Colors []color.NRGBA
30103 CollideWithAOs bool
30106 FaceRotateDirOff float32 // in degrees.
30109 NametagColor color.NRGBA
30110 FaceRotateSpeed float32 // in degrees per second.
30114 MaxBreath uint16 // Player only.
30115 EyeHeight float32 // Player only.
30116 ZoomFOV float32 // in degrees. Player only.
30117 UseTextureAlpha bool
30118 DmgTextureMod Texture // suffix
30121 NametagBG color.NRGBA
30122 }))(obj)).Colors)[local353]
30123 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30128 p := &(*(*(struct {
30129 MaxHP uint16 // Player only.
30130 CollideWithNodes bool
30131 Weight float32 // deprecated
30135 VisualSize [3]float32
30137 SpriteSheetSize [2]int16 // in sprites.
30138 SpritePos [2]int16 // in sprite sheet.
30140 MakeFootstepSnds bool
30141 RotateSpeed float32 // in radians per second.
30143 Colors []color.NRGBA
30144 CollideWithAOs bool
30147 FaceRotateDirOff float32 // in degrees.
30150 NametagColor color.NRGBA
30151 FaceRotateSpeed float32 // in degrees per second.
30155 MaxBreath uint16 // Player only.
30156 EyeHeight float32 // Player only.
30157 ZoomFOV float32 // in degrees. Player only.
30158 UseTextureAlpha bool
30159 DmgTextureMod Texture // suffix
30162 NametagBG color.NRGBA
30163 }))(obj)).CollideWithAOs
30164 switch n := read8(r); n {
30170 chk(fmt.Errorf("invalid bool: %d", n))
30175 p := &(*(*(struct {
30176 MaxHP uint16 // Player only.
30177 CollideWithNodes bool
30178 Weight float32 // deprecated
30182 VisualSize [3]float32
30184 SpriteSheetSize [2]int16 // in sprites.
30185 SpritePos [2]int16 // in sprite sheet.
30187 MakeFootstepSnds bool
30188 RotateSpeed float32 // in radians per second.
30190 Colors []color.NRGBA
30191 CollideWithAOs bool
30194 FaceRotateDirOff float32 // in degrees.
30197 NametagColor color.NRGBA
30198 FaceRotateSpeed float32 // in degrees per second.
30202 MaxBreath uint16 // Player only.
30203 EyeHeight float32 // Player only.
30204 ZoomFOV float32 // in degrees. Player only.
30205 UseTextureAlpha bool
30206 DmgTextureMod Texture // suffix
30209 NametagBG color.NRGBA
30210 }))(obj)).StepHeight
30211 *p = math.Float32frombits(read32(r))
30214 p := &(*(*(struct {
30215 MaxHP uint16 // Player only.
30216 CollideWithNodes bool
30217 Weight float32 // deprecated
30221 VisualSize [3]float32
30223 SpriteSheetSize [2]int16 // in sprites.
30224 SpritePos [2]int16 // in sprite sheet.
30226 MakeFootstepSnds bool
30227 RotateSpeed float32 // in radians per second.
30229 Colors []color.NRGBA
30230 CollideWithAOs bool
30233 FaceRotateDirOff float32 // in degrees.
30236 NametagColor color.NRGBA
30237 FaceRotateSpeed float32 // in degrees per second.
30241 MaxBreath uint16 // Player only.
30242 EyeHeight float32 // Player only.
30243 ZoomFOV float32 // in degrees. Player only.
30244 UseTextureAlpha bool
30245 DmgTextureMod Texture // suffix
30248 NametagBG color.NRGBA
30249 }))(obj)).FaceRotateDir
30250 switch n := read8(r); n {
30256 chk(fmt.Errorf("invalid bool: %d", n))
30261 p := &(*(*(struct {
30262 MaxHP uint16 // Player only.
30263 CollideWithNodes bool
30264 Weight float32 // deprecated
30268 VisualSize [3]float32
30270 SpriteSheetSize [2]int16 // in sprites.
30271 SpritePos [2]int16 // in sprite sheet.
30273 MakeFootstepSnds bool
30274 RotateSpeed float32 // in radians per second.
30276 Colors []color.NRGBA
30277 CollideWithAOs bool
30280 FaceRotateDirOff float32 // in degrees.
30283 NametagColor color.NRGBA
30284 FaceRotateSpeed float32 // in degrees per second.
30288 MaxBreath uint16 // Player only.
30289 EyeHeight float32 // Player only.
30290 ZoomFOV float32 // in degrees. Player only.
30291 UseTextureAlpha bool
30292 DmgTextureMod Texture // suffix
30295 NametagBG color.NRGBA
30296 }))(obj)).FaceRotateDirOff
30297 *p = math.Float32frombits(read32(r))
30300 p := &(*(*(struct {
30301 MaxHP uint16 // Player only.
30302 CollideWithNodes bool
30303 Weight float32 // deprecated
30307 VisualSize [3]float32
30309 SpriteSheetSize [2]int16 // in sprites.
30310 SpritePos [2]int16 // in sprite sheet.
30312 MakeFootstepSnds bool
30313 RotateSpeed float32 // in radians per second.
30315 Colors []color.NRGBA
30316 CollideWithAOs bool
30319 FaceRotateDirOff float32 // in degrees.
30322 NametagColor color.NRGBA
30323 FaceRotateSpeed float32 // in degrees per second.
30327 MaxBreath uint16 // Player only.
30328 EyeHeight float32 // Player only.
30329 ZoomFOV float32 // in degrees. Player only.
30330 UseTextureAlpha bool
30331 DmgTextureMod Texture // suffix
30334 NametagBG color.NRGBA
30335 }))(obj)).BackfaceCull
30336 switch n := read8(r); n {
30342 chk(fmt.Errorf("invalid bool: %d", n))
30346 var local354 []uint8
30347 var local355 uint16
30352 (local354) = make([]uint8, local355)
30354 _, err := io.ReadFull(r, (local354)[:])
30358 MaxHP uint16 // Player only.
30359 CollideWithNodes bool
30360 Weight float32 // deprecated
30364 VisualSize [3]float32
30366 SpriteSheetSize [2]int16 // in sprites.
30367 SpritePos [2]int16 // in sprite sheet.
30369 MakeFootstepSnds bool
30370 RotateSpeed float32 // in radians per second.
30372 Colors []color.NRGBA
30373 CollideWithAOs bool
30376 FaceRotateDirOff float32 // in degrees.
30379 NametagColor color.NRGBA
30380 FaceRotateSpeed float32 // in degrees per second.
30384 MaxBreath uint16 // Player only.
30385 EyeHeight float32 // Player only.
30386 ZoomFOV float32 // in degrees. Player only.
30387 UseTextureAlpha bool
30388 DmgTextureMod Texture // suffix
30391 NametagBG color.NRGBA
30392 }))(obj)).Nametag) = string(local354)
30394 p := &(*(*(struct {
30395 MaxHP uint16 // Player only.
30396 CollideWithNodes bool
30397 Weight float32 // deprecated
30401 VisualSize [3]float32
30403 SpriteSheetSize [2]int16 // in sprites.
30404 SpritePos [2]int16 // in sprite sheet.
30406 MakeFootstepSnds bool
30407 RotateSpeed float32 // in radians per second.
30409 Colors []color.NRGBA
30410 CollideWithAOs bool
30413 FaceRotateDirOff float32 // in degrees.
30416 NametagColor color.NRGBA
30417 FaceRotateSpeed float32 // in degrees per second.
30421 MaxBreath uint16 // Player only.
30422 EyeHeight float32 // Player only.
30423 ZoomFOV float32 // in degrees. Player only.
30424 UseTextureAlpha bool
30425 DmgTextureMod Texture // suffix
30428 NametagBG color.NRGBA
30429 }))(obj)).NametagColor
30430 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30434 p := &(*(*(struct {
30435 MaxHP uint16 // Player only.
30436 CollideWithNodes bool
30437 Weight float32 // deprecated
30441 VisualSize [3]float32
30443 SpriteSheetSize [2]int16 // in sprites.
30444 SpritePos [2]int16 // in sprite sheet.
30446 MakeFootstepSnds bool
30447 RotateSpeed float32 // in radians per second.
30449 Colors []color.NRGBA
30450 CollideWithAOs bool
30453 FaceRotateDirOff float32 // in degrees.
30456 NametagColor color.NRGBA
30457 FaceRotateSpeed float32 // in degrees per second.
30461 MaxBreath uint16 // Player only.
30462 EyeHeight float32 // Player only.
30463 ZoomFOV float32 // in degrees. Player only.
30464 UseTextureAlpha bool
30465 DmgTextureMod Texture // suffix
30468 NametagBG color.NRGBA
30469 }))(obj)).FaceRotateSpeed
30470 *p = math.Float32frombits(read32(r))
30472 var local356 []uint8
30473 var local357 uint16
30478 (local356) = make([]uint8, local357)
30480 _, err := io.ReadFull(r, (local356)[:])
30484 MaxHP uint16 // Player only.
30485 CollideWithNodes bool
30486 Weight float32 // deprecated
30490 VisualSize [3]float32
30492 SpriteSheetSize [2]int16 // in sprites.
30493 SpritePos [2]int16 // in sprite sheet.
30495 MakeFootstepSnds bool
30496 RotateSpeed float32 // in radians per second.
30498 Colors []color.NRGBA
30499 CollideWithAOs bool
30502 FaceRotateDirOff float32 // in degrees.
30505 NametagColor color.NRGBA
30506 FaceRotateSpeed float32 // in degrees per second.
30510 MaxBreath uint16 // Player only.
30511 EyeHeight float32 // Player only.
30512 ZoomFOV float32 // in degrees. Player only.
30513 UseTextureAlpha bool
30514 DmgTextureMod Texture // suffix
30517 NametagBG color.NRGBA
30518 }))(obj)).Infotext) = string(local356)
30519 var local358 []uint8
30520 var local359 uint16
30525 (local358) = make([]uint8, local359)
30527 _, err := io.ReadFull(r, (local358)[:])
30531 MaxHP uint16 // Player only.
30532 CollideWithNodes bool
30533 Weight float32 // deprecated
30537 VisualSize [3]float32
30539 SpriteSheetSize [2]int16 // in sprites.
30540 SpritePos [2]int16 // in sprite sheet.
30542 MakeFootstepSnds bool
30543 RotateSpeed float32 // in radians per second.
30545 Colors []color.NRGBA
30546 CollideWithAOs bool
30549 FaceRotateDirOff float32 // in degrees.
30552 NametagColor color.NRGBA
30553 FaceRotateSpeed float32 // in degrees per second.
30557 MaxBreath uint16 // Player only.
30558 EyeHeight float32 // Player only.
30559 ZoomFOV float32 // in degrees. Player only.
30560 UseTextureAlpha bool
30561 DmgTextureMod Texture // suffix
30564 NametagBG color.NRGBA
30565 }))(obj)).Itemstring) = string(local358)
30567 p := &(*(*(struct {
30568 MaxHP uint16 // Player only.
30569 CollideWithNodes bool
30570 Weight float32 // deprecated
30574 VisualSize [3]float32
30576 SpriteSheetSize [2]int16 // in sprites.
30577 SpritePos [2]int16 // in sprite sheet.
30579 MakeFootstepSnds bool
30580 RotateSpeed float32 // in radians per second.
30582 Colors []color.NRGBA
30583 CollideWithAOs bool
30586 FaceRotateDirOff float32 // in degrees.
30589 NametagColor color.NRGBA
30590 FaceRotateSpeed float32 // in degrees per second.
30594 MaxBreath uint16 // Player only.
30595 EyeHeight float32 // Player only.
30596 ZoomFOV float32 // in degrees. Player only.
30597 UseTextureAlpha bool
30598 DmgTextureMod Texture // suffix
30601 NametagBG color.NRGBA
30603 *p = int8(read8(r))
30606 p := &(*(*(struct {
30607 MaxHP uint16 // Player only.
30608 CollideWithNodes bool
30609 Weight float32 // deprecated
30613 VisualSize [3]float32
30615 SpriteSheetSize [2]int16 // in sprites.
30616 SpritePos [2]int16 // in sprite sheet.
30618 MakeFootstepSnds bool
30619 RotateSpeed float32 // in radians per second.
30621 Colors []color.NRGBA
30622 CollideWithAOs bool
30625 FaceRotateDirOff float32 // in degrees.
30628 NametagColor color.NRGBA
30629 FaceRotateSpeed float32 // in degrees per second.
30633 MaxBreath uint16 // Player only.
30634 EyeHeight float32 // Player only.
30635 ZoomFOV float32 // in degrees. Player only.
30636 UseTextureAlpha bool
30637 DmgTextureMod Texture // suffix
30640 NametagBG color.NRGBA
30641 }))(obj)).MaxBreath
30645 p := &(*(*(struct {
30646 MaxHP uint16 // Player only.
30647 CollideWithNodes bool
30648 Weight float32 // deprecated
30652 VisualSize [3]float32
30654 SpriteSheetSize [2]int16 // in sprites.
30655 SpritePos [2]int16 // in sprite sheet.
30657 MakeFootstepSnds bool
30658 RotateSpeed float32 // in radians per second.
30660 Colors []color.NRGBA
30661 CollideWithAOs bool
30664 FaceRotateDirOff float32 // in degrees.
30667 NametagColor color.NRGBA
30668 FaceRotateSpeed float32 // in degrees per second.
30672 MaxBreath uint16 // Player only.
30673 EyeHeight float32 // Player only.
30674 ZoomFOV float32 // in degrees. Player only.
30675 UseTextureAlpha bool
30676 DmgTextureMod Texture // suffix
30679 NametagBG color.NRGBA
30680 }))(obj)).EyeHeight
30681 *p = math.Float32frombits(read32(r))
30684 p := &(*(*(struct {
30685 MaxHP uint16 // Player only.
30686 CollideWithNodes bool
30687 Weight float32 // deprecated
30691 VisualSize [3]float32
30693 SpriteSheetSize [2]int16 // in sprites.
30694 SpritePos [2]int16 // in sprite sheet.
30696 MakeFootstepSnds bool
30697 RotateSpeed float32 // in radians per second.
30699 Colors []color.NRGBA
30700 CollideWithAOs bool
30703 FaceRotateDirOff float32 // in degrees.
30706 NametagColor color.NRGBA
30707 FaceRotateSpeed float32 // in degrees per second.
30711 MaxBreath uint16 // Player only.
30712 EyeHeight float32 // Player only.
30713 ZoomFOV float32 // in degrees. Player only.
30714 UseTextureAlpha bool
30715 DmgTextureMod Texture // suffix
30718 NametagBG color.NRGBA
30720 *p = math.Float32frombits(read32(r))
30723 p := &(*(*(struct {
30724 MaxHP uint16 // Player only.
30725 CollideWithNodes bool
30726 Weight float32 // deprecated
30730 VisualSize [3]float32
30732 SpriteSheetSize [2]int16 // in sprites.
30733 SpritePos [2]int16 // in sprite sheet.
30735 MakeFootstepSnds bool
30736 RotateSpeed float32 // in radians per second.
30738 Colors []color.NRGBA
30739 CollideWithAOs bool
30742 FaceRotateDirOff float32 // in degrees.
30745 NametagColor color.NRGBA
30746 FaceRotateSpeed float32 // in degrees per second.
30750 MaxBreath uint16 // Player only.
30751 EyeHeight float32 // Player only.
30752 ZoomFOV float32 // in degrees. Player only.
30753 UseTextureAlpha bool
30754 DmgTextureMod Texture // suffix
30757 NametagBG color.NRGBA
30758 }))(obj)).UseTextureAlpha
30759 switch n := read8(r); n {
30765 chk(fmt.Errorf("invalid bool: %d", n))
30769 if err := pcall(func() {
30771 MaxHP uint16 // Player only.
30772 CollideWithNodes bool
30773 Weight float32 // deprecated
30777 VisualSize [3]float32
30779 SpriteSheetSize [2]int16 // in sprites.
30780 SpritePos [2]int16 // in sprite sheet.
30782 MakeFootstepSnds bool
30783 RotateSpeed float32 // in radians per second.
30785 Colors []color.NRGBA
30786 CollideWithAOs bool
30789 FaceRotateDirOff float32 // in degrees.
30792 NametagColor color.NRGBA
30793 FaceRotateSpeed float32 // in degrees per second.
30797 MaxBreath uint16 // Player only.
30798 EyeHeight float32 // Player only.
30799 ZoomFOV float32 // in degrees. Player only.
30800 UseTextureAlpha bool
30801 DmgTextureMod Texture // suffix
30804 NametagBG color.NRGBA
30805 }))(obj)).DmgTextureMod).deserialize(r)
30810 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
30813 p := &(*(*(struct {
30814 MaxHP uint16 // Player only.
30815 CollideWithNodes bool
30816 Weight float32 // deprecated
30820 VisualSize [3]float32
30822 SpriteSheetSize [2]int16 // in sprites.
30823 SpritePos [2]int16 // in sprite sheet.
30825 MakeFootstepSnds bool
30826 RotateSpeed float32 // in radians per second.
30828 Colors []color.NRGBA
30829 CollideWithAOs bool
30832 FaceRotateDirOff float32 // in degrees.
30835 NametagColor color.NRGBA
30836 FaceRotateSpeed float32 // in degrees per second.
30840 MaxBreath uint16 // Player only.
30841 EyeHeight float32 // Player only.
30842 ZoomFOV float32 // in degrees. Player only.
30843 UseTextureAlpha bool
30844 DmgTextureMod Texture // suffix
30847 NametagBG color.NRGBA
30849 switch n := read8(r); n {
30855 chk(fmt.Errorf("invalid bool: %d", n))
30860 p := &(*(*(struct {
30861 MaxHP uint16 // Player only.
30862 CollideWithNodes bool
30863 Weight float32 // deprecated
30867 VisualSize [3]float32
30869 SpriteSheetSize [2]int16 // in sprites.
30870 SpritePos [2]int16 // in sprite sheet.
30872 MakeFootstepSnds bool
30873 RotateSpeed float32 // in radians per second.
30875 Colors []color.NRGBA
30876 CollideWithAOs bool
30879 FaceRotateDirOff float32 // in degrees.
30882 NametagColor color.NRGBA
30883 FaceRotateSpeed float32 // in degrees per second.
30887 MaxBreath uint16 // Player only.
30888 EyeHeight float32 // Player only.
30889 ZoomFOV float32 // in degrees. Player only.
30890 UseTextureAlpha bool
30891 DmgTextureMod Texture // suffix
30894 NametagBG color.NRGBA
30895 }))(obj)).ShowOnMinimap
30896 switch n := read8(r); n {
30902 chk(fmt.Errorf("invalid bool: %d", n))
30907 p := &(*(*(struct {
30908 MaxHP uint16 // Player only.
30909 CollideWithNodes bool
30910 Weight float32 // deprecated
30914 VisualSize [3]float32
30916 SpriteSheetSize [2]int16 // in sprites.
30917 SpritePos [2]int16 // in sprite sheet.
30919 MakeFootstepSnds bool
30920 RotateSpeed float32 // in radians per second.
30922 Colors []color.NRGBA
30923 CollideWithAOs bool
30926 FaceRotateDirOff float32 // in degrees.
30929 NametagColor color.NRGBA
30930 FaceRotateSpeed float32 // in degrees per second.
30934 MaxBreath uint16 // Player only.
30935 EyeHeight float32 // Player only.
30936 ZoomFOV float32 // in degrees. Player only.
30937 UseTextureAlpha bool
30938 DmgTextureMod Texture // suffix
30941 NametagBG color.NRGBA
30942 }))(obj)).NametagBG
30943 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30948 func (obj *AOPos) serialize(w io.Writer) {
30949 if err := pcall(func() {
30957 UpdateInterval float32
30958 }))(obj)).Pos).serialize(w)
30963 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
30965 if err := pcall(func() {
30973 UpdateInterval float32
30974 }))(obj)).Vel).serialize(w)
30979 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30981 if err := pcall(func() {
30989 UpdateInterval float32
30990 }))(obj)).Acc).serialize(w)
30995 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
30997 for local360 := range (*(*(struct {
31004 UpdateInterval float32
31007 x := ((*(*(struct {
31014 UpdateInterval float32
31015 }))(obj)).Rot)[local360]
31016 write32(w, math.Float32bits(x))
31027 UpdateInterval float32
31028 }))(obj)).Interpolate
31044 UpdateInterval float32
31061 UpdateInterval float32
31062 }))(obj)).UpdateInterval
31063 write32(w, math.Float32bits(x))
31067 func (obj *AOPos) deserialize(r io.Reader) {
31068 if err := pcall(func() {
31076 UpdateInterval float32
31077 }))(obj)).Pos).deserialize(r)
31082 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
31084 if err := pcall(func() {
31092 UpdateInterval float32
31093 }))(obj)).Vel).deserialize(r)
31098 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31100 if err := pcall(func() {
31108 UpdateInterval float32
31109 }))(obj)).Acc).deserialize(r)
31114 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31116 for local361 := range (*(*(struct {
31123 UpdateInterval float32
31126 p := &((*(*(struct {
31133 UpdateInterval float32
31134 }))(obj)).Rot)[local361]
31135 *p = math.Float32frombits(read32(r))
31139 p := &(*(*(struct {
31146 UpdateInterval float32
31147 }))(obj)).Interpolate
31148 switch n := read8(r); n {
31154 chk(fmt.Errorf("invalid bool: %d", n))
31159 p := &(*(*(struct {
31166 UpdateInterval float32
31168 switch n := read8(r); n {
31174 chk(fmt.Errorf("invalid bool: %d", n))
31179 p := &(*(*(struct {
31186 UpdateInterval float32
31187 }))(obj)).UpdateInterval
31188 *p = math.Float32frombits(read32(r))
31192 func (obj *AOSprite) serialize(w io.Writer) {
31193 for local362 := range (*(*(struct {
31196 FrameDuration float32
31197 ViewAngleFrames bool
31200 x := ((*(*(struct {
31203 FrameDuration float32
31204 ViewAngleFrames bool
31205 }))(obj)).Frame0)[local362]
31206 write16(w, uint16(x))
31213 FrameDuration float32
31214 ViewAngleFrames bool
31216 write16(w, uint16(x))
31222 FrameDuration float32
31223 ViewAngleFrames bool
31224 }))(obj)).FrameDuration
31225 write32(w, math.Float32bits(x))
31231 FrameDuration float32
31232 ViewAngleFrames bool
31233 }))(obj)).ViewAngleFrames
31243 func (obj *AOSprite) deserialize(r io.Reader) {
31244 for local363 := range (*(*(struct {
31247 FrameDuration float32
31248 ViewAngleFrames bool
31251 p := &((*(*(struct {
31254 FrameDuration float32
31255 ViewAngleFrames bool
31256 }))(obj)).Frame0)[local363]
31257 *p = int16(read16(r))
31261 p := &(*(*(struct {
31264 FrameDuration float32
31265 ViewAngleFrames bool
31270 p := &(*(*(struct {
31273 FrameDuration float32
31274 ViewAngleFrames bool
31275 }))(obj)).FrameDuration
31276 *p = math.Float32frombits(read32(r))
31279 p := &(*(*(struct {
31282 FrameDuration float32
31283 ViewAngleFrames bool
31284 }))(obj)).ViewAngleFrames
31285 switch n := read8(r); n {
31291 chk(fmt.Errorf("invalid bool: %d", n))
31297 func (obj *Group) serialize(w io.Writer) {
31298 if len(([]byte((*(*(struct {
31301 }))(obj)).Name))) > math.MaxUint16 {
31305 x := uint16(len(([]byte((*(*(struct {
31309 write16(w, uint16(x))
31312 _, err := w.Write(([]byte((*(*(struct {
31315 }))(obj)).Name))[:])
31323 write16(w, uint16(x))
31327 func (obj *Group) deserialize(r io.Reader) {
31328 var local364 []uint8
31329 var local365 uint16
31334 (local364) = make([]uint8, local365)
31336 _, err := io.ReadFull(r, (local364)[:])
31342 }))(obj)).Name) = string(local364)
31344 p := &(*(*(struct {
31348 *p = int16(read16(r))
31352 func (obj *AOAnim) serialize(w io.Writer) {
31353 for local366 := range (*(*(struct {
31360 x := ((*(*(struct {
31365 }))(obj)).Frames)[local366]
31366 write32(w, uint32(x))
31376 write32(w, math.Float32bits(x))
31385 write32(w, math.Float32bits(x))
31403 func (obj *AOAnim) deserialize(r io.Reader) {
31404 for local367 := range (*(*(struct {
31411 p := &((*(*(struct {
31416 }))(obj)).Frames)[local367]
31417 *p = int32(read32(r))
31421 p := &(*(*(struct {
31427 *p = math.Float32frombits(read32(r))
31430 p := &(*(*(struct {
31436 *p = math.Float32frombits(read32(r))
31439 p := &(*(*(struct {
31445 switch n := read8(r); n {
31451 chk(fmt.Errorf("invalid bool: %d", n))
31457 func (obj *AOBonePos) serialize(w io.Writer) {
31458 if err := pcall(func() {
31462 }))(obj)).Pos).serialize(w)
31467 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31469 for local368 := range (*(*(struct {
31474 x := ((*(*(struct {
31477 }))(obj)).Rot)[local368]
31478 write32(w, math.Float32bits(x))
31483 func (obj *AOBonePos) deserialize(r io.Reader) {
31484 if err := pcall(func() {
31488 }))(obj)).Pos).deserialize(r)
31493 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31495 for local369 := range (*(*(struct {
31500 p := &((*(*(struct {
31503 }))(obj)).Rot)[local369]
31504 *p = math.Float32frombits(read32(r))
31509 func (obj *AOAttach) serialize(w io.Writer) {
31510 if err := pcall(func() {
31517 }))(obj)).ParentID).serialize(w)
31522 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31524 if len(([]byte((*(*(struct {
31530 }))(obj)).Bone))) > math.MaxUint16 {
31534 x := uint16(len(([]byte((*(*(struct {
31541 write16(w, uint16(x))
31544 _, err := w.Write(([]byte((*(*(struct {
31550 }))(obj)).Bone))[:])
31553 if err := pcall(func() {
31560 }))(obj)).Pos).serialize(w)
31565 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31567 for local370 := range (*(*(struct {
31575 x := ((*(*(struct {
31581 }))(obj)).Rot)[local370]
31582 write32(w, math.Float32bits(x))
31592 }))(obj)).ForceVisible
31602 func (obj *AOAttach) deserialize(r io.Reader) {
31603 if err := pcall(func() {
31610 }))(obj)).ParentID).deserialize(r)
31615 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
31617 var local371 []uint8
31618 var local372 uint16
31623 (local371) = make([]uint8, local372)
31625 _, err := io.ReadFull(r, (local371)[:])
31634 }))(obj)).Bone) = string(local371)
31635 if err := pcall(func() {
31642 }))(obj)).Pos).deserialize(r)
31647 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
31649 for local373 := range (*(*(struct {
31657 p := &((*(*(struct {
31663 }))(obj)).Rot)[local373]
31664 *p = math.Float32frombits(read32(r))
31668 p := &(*(*(struct {
31674 }))(obj)).ForceVisible
31675 switch n := read8(r); n {
31681 chk(fmt.Errorf("invalid bool: %d", n))
31687 func (obj *AOPhysOverride) serialize(w io.Writer) {
31690 Walk, Jump, Gravity float32
31693 NoSneak, NoSneakGlitch, OldSneak bool
31695 write32(w, math.Float32bits(x))
31699 Walk, Jump, Gravity float32
31702 NoSneak, NoSneakGlitch, OldSneak bool
31704 write32(w, math.Float32bits(x))
31708 Walk, Jump, Gravity float32
31711 NoSneak, NoSneakGlitch, OldSneak bool
31713 write32(w, math.Float32bits(x))
31717 Walk, Jump, Gravity float32
31720 NoSneak, NoSneakGlitch, OldSneak bool
31731 Walk, Jump, Gravity float32
31734 NoSneak, NoSneakGlitch, OldSneak bool
31735 }))(obj)).NoSneakGlitch
31745 Walk, Jump, Gravity float32
31748 NoSneak, NoSneakGlitch, OldSneak bool
31759 func (obj *AOPhysOverride) deserialize(r io.Reader) {
31761 p := &(*(*(struct {
31762 Walk, Jump, Gravity float32
31765 NoSneak, NoSneakGlitch, OldSneak bool
31767 *p = math.Float32frombits(read32(r))
31770 p := &(*(*(struct {
31771 Walk, Jump, Gravity float32
31774 NoSneak, NoSneakGlitch, OldSneak bool
31776 *p = math.Float32frombits(read32(r))
31779 p := &(*(*(struct {
31780 Walk, Jump, Gravity float32
31783 NoSneak, NoSneakGlitch, OldSneak bool
31785 *p = math.Float32frombits(read32(r))
31788 p := &(*(*(struct {
31789 Walk, Jump, Gravity float32
31792 NoSneak, NoSneakGlitch, OldSneak bool
31794 switch n := read8(r); n {
31800 chk(fmt.Errorf("invalid bool: %d", n))
31805 p := &(*(*(struct {
31806 Walk, Jump, Gravity float32
31809 NoSneak, NoSneakGlitch, OldSneak bool
31810 }))(obj)).NoSneakGlitch
31811 switch n := read8(r); n {
31817 chk(fmt.Errorf("invalid bool: %d", n))
31822 p := &(*(*(struct {
31823 Walk, Jump, Gravity float32
31826 NoSneak, NoSneakGlitch, OldSneak bool
31828 switch n := read8(r); n {
31834 chk(fmt.Errorf("invalid bool: %d", n))
31840 func (obj *aoType) serialize(w io.Writer) {
31842 x := *(*(uint8))(obj)
31843 write8(w, uint8(x))
31847 func (obj *aoType) deserialize(r io.Reader) {
31849 p := &*(*(uint8))(obj)
31854 func (obj *NodeMetaField) serialize(w io.Writer) {
31855 if err := pcall(func() {
31859 }))(obj)).Field).serialize(w)
31864 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31880 func (obj *NodeMetaField) deserialize(r io.Reader) {
31881 if err := pcall(func() {
31885 }))(obj)).Field).deserialize(r)
31890 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Field", err))
31893 p := &(*(*(struct {
31897 switch n := read8(r); n {
31903 chk(fmt.Errorf("invalid bool: %d", n))
31909 func (obj *MinimapType) serialize(w io.Writer) {
31911 x := *(*(uint16))(obj)
31912 write16(w, uint16(x))
31916 func (obj *MinimapType) deserialize(r io.Reader) {
31918 p := &*(*(uint16))(obj)
31923 func (obj *Param1Type) serialize(w io.Writer) {
31925 x := *(*(uint8))(obj)
31926 write8(w, uint8(x))
31930 func (obj *Param1Type) deserialize(r io.Reader) {
31932 p := &*(*(uint8))(obj)
31937 func (obj *Param2Type) serialize(w io.Writer) {
31939 x := *(*(uint8))(obj)
31940 write8(w, uint8(x))
31944 func (obj *Param2Type) deserialize(r io.Reader) {
31946 p := &*(*(uint8))(obj)
31951 func (obj *DrawType) serialize(w io.Writer) {
31953 x := *(*(uint8))(obj)
31954 write8(w, uint8(x))
31958 func (obj *DrawType) deserialize(r io.Reader) {
31960 p := &*(*(uint8))(obj)
31965 func (obj *TileDef) serialize(w io.Writer) {
31967 local374 := uint8(6)
31970 write8(w, uint8(x))
31973 if err := pcall(func() {
31979 //mt:if %s.Flags&TileColor != 0
31982 //mt:if %s.Flags&TileScale != 0
31985 //mt:if %s.Flags&TileAlign != 0
31987 }))(obj)).Texture).serialize(w)
31992 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
31994 if err := pcall(func() {
32000 //mt:if %s.Flags&TileColor != 0
32003 //mt:if %s.Flags&TileScale != 0
32006 //mt:if %s.Flags&TileAlign != 0
32008 }))(obj)).Anim).serialize(w)
32013 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32015 if err := pcall(func() {
32021 //mt:if %s.Flags&TileColor != 0
32024 //mt:if %s.Flags&TileScale != 0
32027 //mt:if %s.Flags&TileAlign != 0
32029 }))(obj)).Flags).serialize(w)
32034 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32041 //mt:if %s.Flags&TileColor != 0
32044 //mt:if %s.Flags&TileScale != 0
32047 //mt:if %s.Flags&TileAlign != 0
32049 }))(obj)).Flags&TileColor != 0 {
32056 //mt:if %s.Flags&TileColor != 0
32059 //mt:if %s.Flags&TileScale != 0
32062 //mt:if %s.Flags&TileAlign != 0
32065 write8(w, uint8(x))
32073 //mt:if %s.Flags&TileColor != 0
32076 //mt:if %s.Flags&TileScale != 0
32079 //mt:if %s.Flags&TileAlign != 0
32082 write8(w, uint8(x))
32090 //mt:if %s.Flags&TileColor != 0
32093 //mt:if %s.Flags&TileScale != 0
32096 //mt:if %s.Flags&TileAlign != 0
32099 write8(w, uint8(x))
32107 //mt:if %s.Flags&TileColor != 0
32110 //mt:if %s.Flags&TileScale != 0
32113 //mt:if %s.Flags&TileAlign != 0
32115 }))(obj)).Flags&TileScale != 0 {
32122 //mt:if %s.Flags&TileColor != 0
32125 //mt:if %s.Flags&TileScale != 0
32128 //mt:if %s.Flags&TileAlign != 0
32131 write8(w, uint8(x))
32139 //mt:if %s.Flags&TileColor != 0
32142 //mt:if %s.Flags&TileScale != 0
32145 //mt:if %s.Flags&TileAlign != 0
32147 }))(obj)).Flags&TileAlign != 0 {
32148 if err := pcall(func() {
32154 //mt:if %s.Flags&TileColor != 0
32157 //mt:if %s.Flags&TileScale != 0
32160 //mt:if %s.Flags&TileAlign != 0
32162 }))(obj)).Align).serialize(w)
32167 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32172 func (obj *TileDef) deserialize(r io.Reader) {
32175 local376 := uint8(6)
32180 if local375 != local376 {
32181 chk(fmt.Errorf("const %v: %v", "uint8(6)", local375))
32184 if err := pcall(func() {
32190 //mt:if %s.Flags&TileColor != 0
32193 //mt:if %s.Flags&TileScale != 0
32196 //mt:if %s.Flags&TileAlign != 0
32198 }))(obj)).Texture).deserialize(r)
32203 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Texture", err))
32205 if err := pcall(func() {
32211 //mt:if %s.Flags&TileColor != 0
32214 //mt:if %s.Flags&TileScale != 0
32217 //mt:if %s.Flags&TileAlign != 0
32219 }))(obj)).Anim).deserialize(r)
32224 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileAnim", err))
32226 if err := pcall(func() {
32232 //mt:if %s.Flags&TileColor != 0
32235 //mt:if %s.Flags&TileScale != 0
32238 //mt:if %s.Flags&TileAlign != 0
32240 }))(obj)).Flags).deserialize(r)
32245 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.TileFlags", err))
32252 //mt:if %s.Flags&TileColor != 0
32255 //mt:if %s.Flags&TileScale != 0
32258 //mt:if %s.Flags&TileAlign != 0
32260 }))(obj)).Flags&TileColor != 0 {
32262 p := &(*(*(struct {
32267 //mt:if %s.Flags&TileColor != 0
32270 //mt:if %s.Flags&TileScale != 0
32273 //mt:if %s.Flags&TileAlign != 0
32279 p := &(*(*(struct {
32284 //mt:if %s.Flags&TileColor != 0
32287 //mt:if %s.Flags&TileScale != 0
32290 //mt:if %s.Flags&TileAlign != 0
32296 p := &(*(*(struct {
32301 //mt:if %s.Flags&TileColor != 0
32304 //mt:if %s.Flags&TileScale != 0
32307 //mt:if %s.Flags&TileAlign != 0
32318 //mt:if %s.Flags&TileColor != 0
32321 //mt:if %s.Flags&TileScale != 0
32324 //mt:if %s.Flags&TileAlign != 0
32326 }))(obj)).Flags&TileScale != 0 {
32328 p := &(*(*(struct {
32333 //mt:if %s.Flags&TileColor != 0
32336 //mt:if %s.Flags&TileScale != 0
32339 //mt:if %s.Flags&TileAlign != 0
32350 //mt:if %s.Flags&TileColor != 0
32353 //mt:if %s.Flags&TileScale != 0
32356 //mt:if %s.Flags&TileAlign != 0
32358 }))(obj)).Flags&TileAlign != 0 {
32359 if err := pcall(func() {
32365 //mt:if %s.Flags&TileColor != 0
32368 //mt:if %s.Flags&TileScale != 0
32371 //mt:if %s.Flags&TileAlign != 0
32373 }))(obj)).Align).deserialize(r)
32378 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AlignType", err))
32383 func (obj *WaveType) serialize(w io.Writer) {
32385 x := *(*(uint8))(obj)
32386 write8(w, uint8(x))
32390 func (obj *WaveType) deserialize(r io.Reader) {
32392 p := &*(*(uint8))(obj)
32397 func (obj *LiquidType) serialize(w io.Writer) {
32399 x := *(*(uint8))(obj)
32400 write8(w, uint8(x))
32404 func (obj *LiquidType) deserialize(r io.Reader) {
32406 p := &*(*(uint8))(obj)
32411 func (obj *NodeBox) serialize(w io.Writer) {
32413 local377 := uint8(6)
32416 write8(w, uint8(x))
32419 if err := pcall(func() {
32423 //mt:if %s.Type == MountedBox
32424 WallTop, WallBot, WallSides Box
32426 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32429 //mt:if %s.Type == ConnectedBox
32430 ConnDirs, DiscoDirs DirBoxes
32431 DiscoAll, DiscoSides []Box
32432 }))(obj)).Type).serialize(w)
32437 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32442 //mt:if %s.Type == MountedBox
32443 WallTop, WallBot, WallSides Box
32445 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32448 //mt:if %s.Type == ConnectedBox
32449 ConnDirs, DiscoDirs DirBoxes
32450 DiscoAll, DiscoSides []Box
32451 }))(obj)).Type < maxBox) {
32452 chk(errors.New("assertion failed: %s.Type < maxBox"))
32457 //mt:if %s.Type == MountedBox
32458 WallTop, WallBot, WallSides Box
32460 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32463 //mt:if %s.Type == ConnectedBox
32464 ConnDirs, DiscoDirs DirBoxes
32465 DiscoAll, DiscoSides []Box
32466 }))(obj)).Type == MountedBox {
32467 if err := pcall(func() {
32471 //mt:if %s.Type == MountedBox
32472 WallTop, WallBot, WallSides Box
32474 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32477 //mt:if %s.Type == ConnectedBox
32478 ConnDirs, DiscoDirs DirBoxes
32479 DiscoAll, DiscoSides []Box
32480 }))(obj)).WallTop).serialize(w)
32485 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32487 if err := pcall(func() {
32491 //mt:if %s.Type == MountedBox
32492 WallTop, WallBot, WallSides Box
32494 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32497 //mt:if %s.Type == ConnectedBox
32498 ConnDirs, DiscoDirs DirBoxes
32499 DiscoAll, DiscoSides []Box
32500 }))(obj)).WallBot).serialize(w)
32505 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32507 if err := pcall(func() {
32511 //mt:if %s.Type == MountedBox
32512 WallTop, WallBot, WallSides Box
32514 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32517 //mt:if %s.Type == ConnectedBox
32518 ConnDirs, DiscoDirs DirBoxes
32519 DiscoAll, DiscoSides []Box
32520 }))(obj)).WallSides).serialize(w)
32525 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32528 if t := (*(*(struct {
32531 //mt:if %s.Type == MountedBox
32532 WallTop, WallBot, WallSides Box
32534 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32537 //mt:if %s.Type == ConnectedBox
32538 ConnDirs, DiscoDirs DirBoxes
32539 DiscoAll, DiscoSides []Box
32540 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32541 if len(((*(*(struct {
32544 //mt:if %s.Type == MountedBox
32545 WallTop, WallBot, WallSides Box
32547 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32550 //mt:if %s.Type == ConnectedBox
32551 ConnDirs, DiscoDirs DirBoxes
32552 DiscoAll, DiscoSides []Box
32553 }))(obj)).Fixed)) > math.MaxUint16 {
32557 x := uint16(len(((*(*(struct {
32560 //mt:if %s.Type == MountedBox
32561 WallTop, WallBot, WallSides Box
32563 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32566 //mt:if %s.Type == ConnectedBox
32567 ConnDirs, DiscoDirs DirBoxes
32568 DiscoAll, DiscoSides []Box
32570 write16(w, uint16(x))
32572 for local378 := range (*(*(struct {
32575 //mt:if %s.Type == MountedBox
32576 WallTop, WallBot, WallSides Box
32578 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32581 //mt:if %s.Type == ConnectedBox
32582 ConnDirs, DiscoDirs DirBoxes
32583 DiscoAll, DiscoSides []Box
32585 if err := pcall(func() {
32589 //mt:if %s.Type == MountedBox
32590 WallTop, WallBot, WallSides Box
32592 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32595 //mt:if %s.Type == ConnectedBox
32596 ConnDirs, DiscoDirs DirBoxes
32597 DiscoAll, DiscoSides []Box
32598 }))(obj)).Fixed)[local378]).serialize(w)
32603 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32610 //mt:if %s.Type == MountedBox
32611 WallTop, WallBot, WallSides Box
32613 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32616 //mt:if %s.Type == ConnectedBox
32617 ConnDirs, DiscoDirs DirBoxes
32618 DiscoAll, DiscoSides []Box
32619 }))(obj)).Type == ConnectedBox {
32620 if err := pcall(func() {
32624 //mt:if %s.Type == MountedBox
32625 WallTop, WallBot, WallSides Box
32627 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32630 //mt:if %s.Type == ConnectedBox
32631 ConnDirs, DiscoDirs DirBoxes
32632 DiscoAll, DiscoSides []Box
32633 }))(obj)).ConnDirs).serialize(w)
32638 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32640 if err := pcall(func() {
32644 //mt:if %s.Type == MountedBox
32645 WallTop, WallBot, WallSides Box
32647 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32650 //mt:if %s.Type == ConnectedBox
32651 ConnDirs, DiscoDirs DirBoxes
32652 DiscoAll, DiscoSides []Box
32653 }))(obj)).DiscoDirs).serialize(w)
32658 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
32660 if len(((*(*(struct {
32663 //mt:if %s.Type == MountedBox
32664 WallTop, WallBot, WallSides Box
32666 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32669 //mt:if %s.Type == ConnectedBox
32670 ConnDirs, DiscoDirs DirBoxes
32671 DiscoAll, DiscoSides []Box
32672 }))(obj)).DiscoAll)) > math.MaxUint16 {
32676 x := uint16(len(((*(*(struct {
32679 //mt:if %s.Type == MountedBox
32680 WallTop, WallBot, WallSides Box
32682 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32685 //mt:if %s.Type == ConnectedBox
32686 ConnDirs, DiscoDirs DirBoxes
32687 DiscoAll, DiscoSides []Box
32688 }))(obj)).DiscoAll)))
32689 write16(w, uint16(x))
32691 for local379 := range (*(*(struct {
32694 //mt:if %s.Type == MountedBox
32695 WallTop, WallBot, WallSides Box
32697 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32700 //mt:if %s.Type == ConnectedBox
32701 ConnDirs, DiscoDirs DirBoxes
32702 DiscoAll, DiscoSides []Box
32703 }))(obj)).DiscoAll {
32704 if err := pcall(func() {
32708 //mt:if %s.Type == MountedBox
32709 WallTop, WallBot, WallSides Box
32711 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32714 //mt:if %s.Type == ConnectedBox
32715 ConnDirs, DiscoDirs DirBoxes
32716 DiscoAll, DiscoSides []Box
32717 }))(obj)).DiscoAll)[local379]).serialize(w)
32722 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32725 if len(((*(*(struct {
32728 //mt:if %s.Type == MountedBox
32729 WallTop, WallBot, WallSides Box
32731 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32734 //mt:if %s.Type == ConnectedBox
32735 ConnDirs, DiscoDirs DirBoxes
32736 DiscoAll, DiscoSides []Box
32737 }))(obj)).DiscoSides)) > math.MaxUint16 {
32741 x := uint16(len(((*(*(struct {
32744 //mt:if %s.Type == MountedBox
32745 WallTop, WallBot, WallSides Box
32747 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32750 //mt:if %s.Type == ConnectedBox
32751 ConnDirs, DiscoDirs DirBoxes
32752 DiscoAll, DiscoSides []Box
32753 }))(obj)).DiscoSides)))
32754 write16(w, uint16(x))
32756 for local380 := range (*(*(struct {
32759 //mt:if %s.Type == MountedBox
32760 WallTop, WallBot, WallSides Box
32762 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32765 //mt:if %s.Type == ConnectedBox
32766 ConnDirs, DiscoDirs DirBoxes
32767 DiscoAll, DiscoSides []Box
32768 }))(obj)).DiscoSides {
32769 if err := pcall(func() {
32773 //mt:if %s.Type == MountedBox
32774 WallTop, WallBot, WallSides Box
32776 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32779 //mt:if %s.Type == ConnectedBox
32780 ConnDirs, DiscoDirs DirBoxes
32781 DiscoAll, DiscoSides []Box
32782 }))(obj)).DiscoSides)[local380]).serialize(w)
32787 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32793 func (obj *NodeBox) deserialize(r io.Reader) {
32796 local382 := uint8(6)
32801 if local381 != local382 {
32802 chk(fmt.Errorf("const %v: %v", "uint8(6)", local381))
32805 if err := pcall(func() {
32809 //mt:if %s.Type == MountedBox
32810 WallTop, WallBot, WallSides Box
32812 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32815 //mt:if %s.Type == ConnectedBox
32816 ConnDirs, DiscoDirs DirBoxes
32817 DiscoAll, DiscoSides []Box
32818 }))(obj)).Type).deserialize(r)
32823 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.NodeBoxType", err))
32828 //mt:if %s.Type == MountedBox
32829 WallTop, WallBot, WallSides Box
32831 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32834 //mt:if %s.Type == ConnectedBox
32835 ConnDirs, DiscoDirs DirBoxes
32836 DiscoAll, DiscoSides []Box
32837 }))(obj)).Type < maxBox) {
32838 chk(errors.New("assertion failed: %s.Type < maxBox"))
32843 //mt:if %s.Type == MountedBox
32844 WallTop, WallBot, WallSides Box
32846 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32849 //mt:if %s.Type == ConnectedBox
32850 ConnDirs, DiscoDirs DirBoxes
32851 DiscoAll, DiscoSides []Box
32852 }))(obj)).Type == MountedBox {
32853 if err := pcall(func() {
32857 //mt:if %s.Type == MountedBox
32858 WallTop, WallBot, WallSides Box
32860 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32863 //mt:if %s.Type == ConnectedBox
32864 ConnDirs, DiscoDirs DirBoxes
32865 DiscoAll, DiscoSides []Box
32866 }))(obj)).WallTop).deserialize(r)
32871 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32873 if err := pcall(func() {
32877 //mt:if %s.Type == MountedBox
32878 WallTop, WallBot, WallSides Box
32880 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32883 //mt:if %s.Type == ConnectedBox
32884 ConnDirs, DiscoDirs DirBoxes
32885 DiscoAll, DiscoSides []Box
32886 }))(obj)).WallBot).deserialize(r)
32891 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32893 if err := pcall(func() {
32897 //mt:if %s.Type == MountedBox
32898 WallTop, WallBot, WallSides Box
32900 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32903 //mt:if %s.Type == ConnectedBox
32904 ConnDirs, DiscoDirs DirBoxes
32905 DiscoAll, DiscoSides []Box
32906 }))(obj)).WallSides).deserialize(r)
32911 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32914 if t := (*(*(struct {
32917 //mt:if %s.Type == MountedBox
32918 WallTop, WallBot, WallSides Box
32920 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32923 //mt:if %s.Type == ConnectedBox
32924 ConnDirs, DiscoDirs DirBoxes
32925 DiscoAll, DiscoSides []Box
32926 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32927 var local383 uint16
32935 //mt:if %s.Type == MountedBox
32936 WallTop, WallBot, WallSides Box
32938 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32941 //mt:if %s.Type == ConnectedBox
32942 ConnDirs, DiscoDirs DirBoxes
32943 DiscoAll, DiscoSides []Box
32944 }))(obj)).Fixed) = make([]Box, local383)
32945 for local384 := range (*(*(struct {
32948 //mt:if %s.Type == MountedBox
32949 WallTop, WallBot, WallSides Box
32951 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32954 //mt:if %s.Type == ConnectedBox
32955 ConnDirs, DiscoDirs DirBoxes
32956 DiscoAll, DiscoSides []Box
32958 if err := pcall(func() {
32962 //mt:if %s.Type == MountedBox
32963 WallTop, WallBot, WallSides Box
32965 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32968 //mt:if %s.Type == ConnectedBox
32969 ConnDirs, DiscoDirs DirBoxes
32970 DiscoAll, DiscoSides []Box
32971 }))(obj)).Fixed)[local384]).deserialize(r)
32976 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
32983 //mt:if %s.Type == MountedBox
32984 WallTop, WallBot, WallSides Box
32986 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32989 //mt:if %s.Type == ConnectedBox
32990 ConnDirs, DiscoDirs DirBoxes
32991 DiscoAll, DiscoSides []Box
32992 }))(obj)).Type == ConnectedBox {
32993 if err := pcall(func() {
32997 //mt:if %s.Type == MountedBox
32998 WallTop, WallBot, WallSides Box
33000 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33003 //mt:if %s.Type == ConnectedBox
33004 ConnDirs, DiscoDirs DirBoxes
33005 DiscoAll, DiscoSides []Box
33006 }))(obj)).ConnDirs).deserialize(r)
33011 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33013 if err := pcall(func() {
33017 //mt:if %s.Type == MountedBox
33018 WallTop, WallBot, WallSides Box
33020 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33023 //mt:if %s.Type == ConnectedBox
33024 ConnDirs, DiscoDirs DirBoxes
33025 DiscoAll, DiscoSides []Box
33026 }))(obj)).DiscoDirs).deserialize(r)
33031 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DirBoxes", err))
33033 var local385 uint16
33041 //mt:if %s.Type == MountedBox
33042 WallTop, WallBot, WallSides Box
33044 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33047 //mt:if %s.Type == ConnectedBox
33048 ConnDirs, DiscoDirs DirBoxes
33049 DiscoAll, DiscoSides []Box
33050 }))(obj)).DiscoAll) = make([]Box, local385)
33051 for local386 := range (*(*(struct {
33054 //mt:if %s.Type == MountedBox
33055 WallTop, WallBot, WallSides Box
33057 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33060 //mt:if %s.Type == ConnectedBox
33061 ConnDirs, DiscoDirs DirBoxes
33062 DiscoAll, DiscoSides []Box
33063 }))(obj)).DiscoAll {
33064 if err := pcall(func() {
33068 //mt:if %s.Type == MountedBox
33069 WallTop, WallBot, WallSides Box
33071 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33074 //mt:if %s.Type == ConnectedBox
33075 ConnDirs, DiscoDirs DirBoxes
33076 DiscoAll, DiscoSides []Box
33077 }))(obj)).DiscoAll)[local386]).deserialize(r)
33082 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33085 var local387 uint16
33093 //mt:if %s.Type == MountedBox
33094 WallTop, WallBot, WallSides Box
33096 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33099 //mt:if %s.Type == ConnectedBox
33100 ConnDirs, DiscoDirs DirBoxes
33101 DiscoAll, DiscoSides []Box
33102 }))(obj)).DiscoSides) = make([]Box, local387)
33103 for local388 := range (*(*(struct {
33106 //mt:if %s.Type == MountedBox
33107 WallTop, WallBot, WallSides Box
33109 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33112 //mt:if %s.Type == ConnectedBox
33113 ConnDirs, DiscoDirs DirBoxes
33114 DiscoAll, DiscoSides []Box
33115 }))(obj)).DiscoSides {
33116 if err := pcall(func() {
33120 //mt:if %s.Type == MountedBox
33121 WallTop, WallBot, WallSides Box
33123 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33126 //mt:if %s.Type == ConnectedBox
33127 ConnDirs, DiscoDirs DirBoxes
33128 DiscoAll, DiscoSides []Box
33129 }))(obj)).DiscoSides)[local388]).deserialize(r)
33134 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
33140 func (obj *SoundDef) serialize(w io.Writer) {
33141 if len(([]byte((*(*(struct {
33143 Gain, Pitch, Fade float32
33144 }))(obj)).Name))) > math.MaxUint16 {
33148 x := uint16(len(([]byte((*(*(struct {
33150 Gain, Pitch, Fade float32
33152 write16(w, uint16(x))
33155 _, err := w.Write(([]byte((*(*(struct {
33157 Gain, Pitch, Fade float32
33158 }))(obj)).Name))[:])
33164 Gain, Pitch, Fade float32
33166 write32(w, math.Float32bits(x))
33171 Gain, Pitch, Fade float32
33173 write32(w, math.Float32bits(x))
33178 Gain, Pitch, Fade float32
33180 write32(w, math.Float32bits(x))
33184 func (obj *SoundDef) deserialize(r io.Reader) {
33185 var local389 []uint8
33186 var local390 uint16
33191 (local389) = make([]uint8, local390)
33193 _, err := io.ReadFull(r, (local389)[:])
33198 Gain, Pitch, Fade float32
33199 }))(obj)).Name) = string(local389)
33201 p := &(*(*(struct {
33203 Gain, Pitch, Fade float32
33205 *p = math.Float32frombits(read32(r))
33208 p := &(*(*(struct {
33210 Gain, Pitch, Fade float32
33212 *p = math.Float32frombits(read32(r))
33215 p := &(*(*(struct {
33217 Gain, Pitch, Fade float32
33219 *p = math.Float32frombits(read32(r))
33223 func (obj *AlphaUse) serialize(w io.Writer) {
33225 x := *(*(uint8))(obj)
33226 write8(w, uint8(x))
33230 func (obj *AlphaUse) deserialize(r io.Reader) {
33232 p := &*(*(uint8))(obj)
33237 func (obj *Keys) serialize(w io.Writer) {
33239 x := *(*(uint32))(obj)
33240 write32(w, uint32(x))
33244 func (obj *Keys) deserialize(r io.Reader) {
33246 p := &*(*(uint32))(obj)
33251 func (obj *MapBlkFlags) serialize(w io.Writer) {
33253 x := *(*(uint8))(obj)
33254 write8(w, uint8(x))
33258 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33260 p := &*(*(uint8))(obj)
33265 func (obj *LitFromBlks) serialize(w io.Writer) {
33267 x := *(*(uint16))(obj)
33268 write16(w, uint16(x))
33272 func (obj *LitFromBlks) deserialize(r io.Reader) {
33274 p := &*(*(uint16))(obj)
33279 func (obj *AOInitData) serialize(w io.Writer) {
33281 local391 := uint8(1)
33284 write8(w, uint8(x))
33287 if len(([]byte((*(*(struct {
33300 // See (de)serialize.fmt.
33302 }))(obj)).Name))) > math.MaxUint16 {
33306 x := uint16(len(([]byte((*(*(struct {
33319 // See (de)serialize.fmt.
33322 write16(w, uint16(x))
33325 _, err := w.Write(([]byte((*(*(struct {
33338 // See (de)serialize.fmt.
33340 }))(obj)).Name))[:])
33357 // See (de)serialize.fmt.
33367 if err := pcall(func() {
33381 // See (de)serialize.fmt.
33383 }))(obj)).ID).serialize(w)
33388 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33390 if err := pcall(func() {
33404 // See (de)serialize.fmt.
33406 }))(obj)).Pos).serialize(w)
33411 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33413 for local392 := range (*(*(struct {
33426 // See (de)serialize.fmt.
33430 x := ((*(*(struct {
33443 // See (de)serialize.fmt.
33445 }))(obj)).Rot)[local392]
33446 write32(w, math.Float32bits(x))
33463 // See (de)serialize.fmt.
33466 write16(w, uint16(x))
33482 // See (de)serialize.fmt.
33485 { // For AOInitData.Msgs.
33486 if len(x) > math.MaxUint8 {
33489 write8(w, uint8(len(x)))
33490 for _, msg := range x {
33492 chk(writeAOMsg(&b, msg))
33493 if b.Len() > math.MaxUint32 {
33496 write32(w, uint32(b.Len()))
33497 _, err := b.WriteTo(w)
33505 func (obj *AOInitData) deserialize(r io.Reader) {
33508 local394 := uint8(1)
33513 if local393 != local394 {
33514 chk(fmt.Errorf("const %v: %v", "uint8(1)", local393))
33517 var local395 []uint8
33518 var local396 uint16
33523 (local395) = make([]uint8, local396)
33525 _, err := io.ReadFull(r, (local395)[:])
33541 // See (de)serialize.fmt.
33543 }))(obj)).Name) = string(local395)
33545 p := &(*(*(struct {
33558 // See (de)serialize.fmt.
33561 switch n := read8(r); n {
33567 chk(fmt.Errorf("invalid bool: %d", n))
33571 if err := pcall(func() {
33585 // See (de)serialize.fmt.
33587 }))(obj)).ID).deserialize(r)
33592 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.AOID", err))
33594 if err := pcall(func() {
33608 // See (de)serialize.fmt.
33610 }))(obj)).Pos).deserialize(r)
33615 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Pos", err))
33617 for local397 := range (*(*(struct {
33630 // See (de)serialize.fmt.
33634 p := &((*(*(struct {
33647 // See (de)serialize.fmt.
33649 }))(obj)).Rot)[local397]
33650 *p = math.Float32frombits(read32(r))
33654 p := &(*(*(struct {
33667 // See (de)serialize.fmt.
33673 p := &(*(*(struct {
33686 // See (de)serialize.fmt.
33689 { // For AOInitData.Msgs.
33690 *p = make([]AOMsg, read8(r))
33691 for i := range *p {
33692 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33693 msg, err := readAOMsg(r)
33697 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33705 func (obj *ItemType) serialize(w io.Writer) {
33707 x := *(*(uint8))(obj)
33708 write8(w, uint8(x))
33712 func (obj *ItemType) deserialize(r io.Reader) {
33714 p := &*(*(uint8))(obj)
33719 func (obj *ToolCaps) serialize(w io.Writer) {
33720 if _ = (*(*(struct {
33721 //mt:if _ = %s; false
33724 AttackCooldown float32
33728 GroupCaps []ToolGroupCap
33738 //mt:if _ = %s; false
33741 AttackCooldown float32
33745 GroupCaps []ToolGroupCap
33763 w := new(bytes.Buffer)
33765 if r.N > 0 { (*(*(struct {
33766 //mt:if _ = %s; false
33769 AttackCooldown float32
33773 GroupCaps []ToolGroupCap
33780 }))(obj)).NonNil = true}; /**/{
33782 //mt:if _ = %s; false
33785 AttackCooldown float32
33789 GroupCaps []ToolGroupCap
33798 local398 := uint8(5)
33801 write8(w, uint8(x))
33806 //mt:if _ = %s; false
33809 AttackCooldown float32
33813 GroupCaps []ToolGroupCap
33820 }))(obj)).AttackCooldown
33821 write32(w, math.Float32bits(x))
33825 //mt:if _ = %s; false
33828 AttackCooldown float32
33832 GroupCaps []ToolGroupCap
33839 }))(obj)).MaxDropLvl
33840 write16(w, uint16(x))
33842 if len(((*(*(struct {
33843 //mt:if _ = %s; false
33846 AttackCooldown float32
33850 GroupCaps []ToolGroupCap
33857 }))(obj)).GroupCaps)) > math.MaxUint32 {
33861 x := uint32(len(((*(*(struct {
33862 //mt:if _ = %s; false
33865 AttackCooldown float32
33869 GroupCaps []ToolGroupCap
33876 }))(obj)).GroupCaps)))
33877 write32(w, uint32(x))
33879 for local399 := range (*(*(struct {
33880 //mt:if _ = %s; false
33883 AttackCooldown float32
33887 GroupCaps []ToolGroupCap
33894 }))(obj)).GroupCaps {
33895 if err := pcall(func() {
33897 //mt:if _ = %s; false
33900 AttackCooldown float32
33904 GroupCaps []ToolGroupCap
33911 }))(obj)).GroupCaps)[local399]).serialize(w)
33916 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
33919 if len(((*(*(struct {
33920 //mt:if _ = %s; false
33923 AttackCooldown float32
33927 GroupCaps []ToolGroupCap
33934 }))(obj)).DmgGroups)) > math.MaxUint32 {
33938 x := uint32(len(((*(*(struct {
33939 //mt:if _ = %s; false
33942 AttackCooldown float32
33946 GroupCaps []ToolGroupCap
33953 }))(obj)).DmgGroups)))
33954 write32(w, uint32(x))
33956 for local400 := range (*(*(struct {
33957 //mt:if _ = %s; false
33960 AttackCooldown float32
33964 GroupCaps []ToolGroupCap
33971 }))(obj)).DmgGroups {
33972 if err := pcall(func() {
33974 //mt:if _ = %s; false
33977 AttackCooldown float32
33981 GroupCaps []ToolGroupCap
33988 }))(obj)).DmgGroups)[local400]).serialize(w)
33993 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
33997 x := uint16((*(*(struct {
33998 //mt:if _ = %s; false
34001 AttackCooldown float32
34005 GroupCaps []ToolGroupCap
34012 }))(obj)).PunchUses)
34013 write16(w, uint16(x))
34020 if len((buf.Bytes())) > math.MaxUint16 {
34024 x := uint16(len((buf.Bytes())))
34025 write16(w, uint16(x))
34028 _, err := w.Write((buf.Bytes())[:])
34035 func (obj *ToolCaps) deserialize(r io.Reader) {
34036 if _ = (*(*(struct {
34037 //mt:if _ = %s; false
34040 AttackCooldown float32
34044 GroupCaps []ToolGroupCap
34053 p := &(*(*(struct {
34054 //mt:if _ = %s; false
34057 AttackCooldown float32
34061 GroupCaps []ToolGroupCap
34069 switch n := read8(r); n {
34075 chk(fmt.Errorf("invalid bool: %d", n))
34086 r := &io.LimitedReader{R: r, N: int64(n)}
34089 //mt:if _ = %s; false
34092 AttackCooldown float32
34096 GroupCaps []ToolGroupCap
34103 }))(obj)).NonNil = true
34107 //mt:if _ = %s; false
34110 AttackCooldown float32
34114 GroupCaps []ToolGroupCap
34124 local402 := uint8(5)
34129 if local401 != local402 {
34130 chk(fmt.Errorf("const %v: %v", "uint8(5)", local401))
34134 p := &(*(*(struct {
34135 //mt:if _ = %s; false
34138 AttackCooldown float32
34142 GroupCaps []ToolGroupCap
34149 }))(obj)).AttackCooldown
34150 *p = math.Float32frombits(read32(r))
34153 p := &(*(*(struct {
34154 //mt:if _ = %s; false
34157 AttackCooldown float32
34161 GroupCaps []ToolGroupCap
34168 }))(obj)).MaxDropLvl
34169 *p = int16(read16(r))
34171 var local403 uint32
34177 //mt:if _ = %s; false
34180 AttackCooldown float32
34184 GroupCaps []ToolGroupCap
34191 }))(obj)).GroupCaps) = make([]ToolGroupCap, local403)
34192 for local404 := range (*(*(struct {
34193 //mt:if _ = %s; false
34196 AttackCooldown float32
34200 GroupCaps []ToolGroupCap
34207 }))(obj)).GroupCaps {
34208 if err := pcall(func() {
34210 //mt:if _ = %s; false
34213 AttackCooldown float32
34217 GroupCaps []ToolGroupCap
34224 }))(obj)).GroupCaps)[local404]).deserialize(r)
34229 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.ToolGroupCap", err))
34232 var local405 uint32
34238 //mt:if _ = %s; false
34241 AttackCooldown float32
34245 GroupCaps []ToolGroupCap
34252 }))(obj)).DmgGroups) = make([]Group, local405)
34253 for local406 := range (*(*(struct {
34254 //mt:if _ = %s; false
34257 AttackCooldown float32
34261 GroupCaps []ToolGroupCap
34268 }))(obj)).DmgGroups {
34269 if err := pcall(func() {
34271 //mt:if _ = %s; false
34274 AttackCooldown float32
34278 GroupCaps []ToolGroupCap
34285 }))(obj)).DmgGroups)[local406]).deserialize(r)
34290 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Group", err))
34293 var local407 uint16
34299 //mt:if _ = %s; false
34302 AttackCooldown float32
34306 GroupCaps []ToolGroupCap
34313 }))(obj)).PunchUses = int32(local407)
34317 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34322 func (obj *AnimType) serialize(w io.Writer) {
34324 x := *(*(uint8))(obj)
34325 write8(w, uint8(x))
34329 func (obj *AnimType) deserialize(r io.Reader) {
34331 p := &*(*(uint8))(obj)
34336 func (obj *HUDType) serialize(w io.Writer) {
34338 x := *(*(uint8))(obj)
34339 write8(w, uint8(x))
34343 func (obj *HUDType) deserialize(r io.Reader) {
34345 p := &*(*(uint8))(obj)
34350 func (obj *Box) serialize(w io.Writer) {
34351 for local408 := range *(*([2]Vec))(obj) {
34352 if err := pcall(func() {
34353 ((*(*([2]Vec))(obj))[local408]).serialize(w)
34358 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34363 func (obj *Box) deserialize(r io.Reader) {
34364 for local409 := range *(*([2]Vec))(obj) {
34365 if err := pcall(func() {
34366 ((*(*([2]Vec))(obj))[local409]).deserialize(r)
34371 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Vec", err))
34376 func (obj *TileFlags) serialize(w io.Writer) {
34378 x := *(*(uint16))(obj)
34379 write16(w, uint16(x))
34383 func (obj *TileFlags) deserialize(r io.Reader) {
34385 p := &*(*(uint16))(obj)
34390 func (obj *AlignType) serialize(w io.Writer) {
34392 x := *(*(uint8))(obj)
34393 write8(w, uint8(x))
34397 func (obj *AlignType) deserialize(r io.Reader) {
34399 p := &*(*(uint8))(obj)
34404 func (obj *NodeBoxType) serialize(w io.Writer) {
34406 x := *(*(uint8))(obj)
34407 write8(w, uint8(x))
34411 func (obj *NodeBoxType) deserialize(r io.Reader) {
34413 p := &*(*(uint8))(obj)
34418 func (obj *DirBoxes) serialize(w io.Writer) {
34419 if len(((*(*(struct {
34421 Front, Left, Back, Right []Box
34422 }))(obj)).Top)) > math.MaxUint16 {
34426 x := uint16(len(((*(*(struct {
34428 Front, Left, Back, Right []Box
34430 write16(w, uint16(x))
34432 for local410 := range (*(*(struct {
34434 Front, Left, Back, Right []Box
34436 if err := pcall(func() {
34439 Front, Left, Back, Right []Box
34440 }))(obj)).Top)[local410]).serialize(w)
34445 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34448 if len(((*(*(struct {
34450 Front, Left, Back, Right []Box
34451 }))(obj)).Bot)) > math.MaxUint16 {
34455 x := uint16(len(((*(*(struct {
34457 Front, Left, Back, Right []Box
34459 write16(w, uint16(x))
34461 for local411 := range (*(*(struct {
34463 Front, Left, Back, Right []Box
34465 if err := pcall(func() {
34468 Front, Left, Back, Right []Box
34469 }))(obj)).Bot)[local411]).serialize(w)
34474 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34477 if len(((*(*(struct {
34479 Front, Left, Back, Right []Box
34480 }))(obj)).Front)) > math.MaxUint16 {
34484 x := uint16(len(((*(*(struct {
34486 Front, Left, Back, Right []Box
34488 write16(w, uint16(x))
34490 for local412 := range (*(*(struct {
34492 Front, Left, Back, Right []Box
34494 if err := pcall(func() {
34497 Front, Left, Back, Right []Box
34498 }))(obj)).Front)[local412]).serialize(w)
34503 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34506 if len(((*(*(struct {
34508 Front, Left, Back, Right []Box
34509 }))(obj)).Left)) > math.MaxUint16 {
34513 x := uint16(len(((*(*(struct {
34515 Front, Left, Back, Right []Box
34517 write16(w, uint16(x))
34519 for local413 := range (*(*(struct {
34521 Front, Left, Back, Right []Box
34523 if err := pcall(func() {
34526 Front, Left, Back, Right []Box
34527 }))(obj)).Left)[local413]).serialize(w)
34532 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34535 if len(((*(*(struct {
34537 Front, Left, Back, Right []Box
34538 }))(obj)).Back)) > math.MaxUint16 {
34542 x := uint16(len(((*(*(struct {
34544 Front, Left, Back, Right []Box
34546 write16(w, uint16(x))
34548 for local414 := range (*(*(struct {
34550 Front, Left, Back, Right []Box
34552 if err := pcall(func() {
34555 Front, Left, Back, Right []Box
34556 }))(obj)).Back)[local414]).serialize(w)
34561 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34564 if len(((*(*(struct {
34566 Front, Left, Back, Right []Box
34567 }))(obj)).Right)) > math.MaxUint16 {
34571 x := uint16(len(((*(*(struct {
34573 Front, Left, Back, Right []Box
34575 write16(w, uint16(x))
34577 for local415 := range (*(*(struct {
34579 Front, Left, Back, Right []Box
34581 if err := pcall(func() {
34584 Front, Left, Back, Right []Box
34585 }))(obj)).Right)[local415]).serialize(w)
34590 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34595 func (obj *DirBoxes) deserialize(r io.Reader) {
34596 var local416 uint16
34603 Front, Left, Back, Right []Box
34604 }))(obj)).Top) = make([]Box, local416)
34605 for local417 := range (*(*(struct {
34607 Front, Left, Back, Right []Box
34609 if err := pcall(func() {
34612 Front, Left, Back, Right []Box
34613 }))(obj)).Top)[local417]).deserialize(r)
34618 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34621 var local418 uint16
34628 Front, Left, Back, Right []Box
34629 }))(obj)).Bot) = make([]Box, local418)
34630 for local419 := range (*(*(struct {
34632 Front, Left, Back, Right []Box
34634 if err := pcall(func() {
34637 Front, Left, Back, Right []Box
34638 }))(obj)).Bot)[local419]).deserialize(r)
34643 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34646 var local420 uint16
34653 Front, Left, Back, Right []Box
34654 }))(obj)).Front) = make([]Box, local420)
34655 for local421 := range (*(*(struct {
34657 Front, Left, Back, Right []Box
34659 if err := pcall(func() {
34662 Front, Left, Back, Right []Box
34663 }))(obj)).Front)[local421]).deserialize(r)
34668 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34671 var local422 uint16
34678 Front, Left, Back, Right []Box
34679 }))(obj)).Left) = make([]Box, local422)
34680 for local423 := range (*(*(struct {
34682 Front, Left, Back, Right []Box
34684 if err := pcall(func() {
34687 Front, Left, Back, Right []Box
34688 }))(obj)).Left)[local423]).deserialize(r)
34693 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34696 var local424 uint16
34703 Front, Left, Back, Right []Box
34704 }))(obj)).Back) = make([]Box, local424)
34705 for local425 := range (*(*(struct {
34707 Front, Left, Back, Right []Box
34709 if err := pcall(func() {
34712 Front, Left, Back, Right []Box
34713 }))(obj)).Back)[local425]).deserialize(r)
34718 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34721 var local426 uint16
34728 Front, Left, Back, Right []Box
34729 }))(obj)).Right) = make([]Box, local426)
34730 for local427 := range (*(*(struct {
34732 Front, Left, Back, Right []Box
34734 if err := pcall(func() {
34737 Front, Left, Back, Right []Box
34738 }))(obj)).Right)[local427]).deserialize(r)
34743 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.Box", err))
34748 func (obj *ToolGroupCap) serialize(w io.Writer) {
34749 if len(([]byte((*(*(struct {
34759 }))(obj)).Name))) > math.MaxUint16 {
34763 x := uint16(len(([]byte((*(*(struct {
34774 write16(w, uint16(x))
34777 _, err := w.Write(([]byte((*(*(struct {
34787 }))(obj)).Name))[:])
34791 x := int16((*(*(struct {
34802 write16(w, uint16(x))
34816 write16(w, uint16(x))
34818 if len(((*(*(struct {
34828 }))(obj)).Times)) > math.MaxUint32 {
34832 x := uint32(len(((*(*(struct {
34843 write32(w, uint32(x))
34845 for local428 := range (*(*(struct {
34856 if err := pcall(func() {
34867 }))(obj)).Times)[local428]).serialize(w)
34872 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34877 func (obj *ToolGroupCap) deserialize(r io.Reader) {
34878 var local429 []uint8
34879 var local430 uint16
34884 (local429) = make([]uint8, local430)
34886 _, err := io.ReadFull(r, (local429)[:])
34899 }))(obj)).Name) = string(local429)
34903 *p = int16(read16(r))
34915 }))(obj)).Uses = int32(local431)
34917 p := &(*(*(struct {
34928 *p = int16(read16(r))
34930 var local432 uint32
34945 }))(obj)).Times) = make([]DigTime, local432)
34946 for local433 := range (*(*(struct {
34957 if err := pcall(func() {
34968 }))(obj)).Times)[local433]).deserialize(r)
34973 chk(fmt.Errorf("%s: %w", "github.com/anon55555/mt.DigTime", err))
34978 func (obj *DigTime) serialize(w io.Writer) {
34984 write16(w, uint16(x))
34991 write32(w, math.Float32bits(x))
34995 func (obj *DigTime) deserialize(r io.Reader) {
34997 p := &(*(*(struct {
35001 *p = int16(read16(r))
35004 p := &(*(*(struct {
35008 *p = math.Float32frombits(read32(r))