1 // Code generated by mkserialize.sh; DO NOT EDIT.
16 "github.com/klauspost/compress/zstd"
19 func write8(w io.Writer, x uint8) {
20 _, err := w.Write([]byte{x})
24 func write16(w io.Writer, x uint16) {
25 buf := make([]byte, 2)
27 _, err := w.Write(buf)
31 func write32(w io.Writer, x uint32) {
32 buf := make([]byte, 4)
34 _, err := w.Write(buf)
38 func write64(w io.Writer, x uint64) {
39 buf := make([]byte, 8)
41 _, err := w.Write(buf)
45 func readBuf(r io.Reader, n int) []byte {
46 buf := make([]byte, n)
47 _, err := io.ReadFull(r, buf)
52 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
53 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
54 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
55 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
57 func (obj *ToSrvNil) serialize(w io.Writer) {
60 func (obj *ToSrvNil) deserialize(r io.Reader) {
63 func (obj *ToSrvInit) serialize(w io.Writer) {
67 SupportedCompression CompressionModes
68 MinProtoVer, MaxProtoVer uint16
73 }))(obj)).SerializeVer
76 if err := pcall(func() {
79 SupportedCompression CompressionModes
80 MinProtoVer, MaxProtoVer uint16
85 }))(obj)).SupportedCompression).serialize(w)
90 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
95 SupportedCompression CompressionModes
96 MinProtoVer, MaxProtoVer uint16
100 SendFullItemMeta bool
101 }))(obj)).MinProtoVer
102 write16(w, uint16(x))
107 SupportedCompression CompressionModes
108 MinProtoVer, MaxProtoVer uint16
112 SendFullItemMeta bool
113 }))(obj)).MaxProtoVer
114 write16(w, uint16(x))
116 if len(([]byte((*(*(struct {
118 SupportedCompression CompressionModes
119 MinProtoVer, MaxProtoVer uint16
123 SendFullItemMeta bool
124 }))(obj)).PlayerName))) > math.MaxUint16 {
128 x := uint16(len(([]byte((*(*(struct {
130 SupportedCompression CompressionModes
131 MinProtoVer, MaxProtoVer uint16
135 SendFullItemMeta bool
136 }))(obj)).PlayerName))))
137 write16(w, uint16(x))
140 _, err := w.Write(([]byte((*(*(struct {
142 SupportedCompression CompressionModes
143 MinProtoVer, MaxProtoVer uint16
147 SendFullItemMeta bool
148 }))(obj)).PlayerName))[:])
151 if err := pcall(func() {
155 SupportedCompression CompressionModes
156 MinProtoVer, MaxProtoVer uint16
160 SendFullItemMeta bool
161 }))(obj)).SendFullItemMeta
169 }); err != nil && err != io.EOF {
174 func (obj *ToSrvInit) deserialize(r io.Reader) {
178 SupportedCompression CompressionModes
179 MinProtoVer, MaxProtoVer uint16
183 SendFullItemMeta bool
184 }))(obj)).SerializeVer
187 if err := pcall(func() {
190 SupportedCompression CompressionModes
191 MinProtoVer, MaxProtoVer uint16
195 SendFullItemMeta bool
196 }))(obj)).SupportedCompression).deserialize(r)
201 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
206 SupportedCompression CompressionModes
207 MinProtoVer, MaxProtoVer uint16
211 SendFullItemMeta bool
212 }))(obj)).MinProtoVer
218 SupportedCompression CompressionModes
219 MinProtoVer, MaxProtoVer uint16
223 SendFullItemMeta bool
224 }))(obj)).MaxProtoVer
233 (local1) = make([]uint8, local2)
235 _, err := io.ReadFull(r, (local1)[:])
240 SupportedCompression CompressionModes
241 MinProtoVer, MaxProtoVer uint16
245 SendFullItemMeta bool
246 }))(obj)).PlayerName) = string(local1)
247 if err := pcall(func() {
251 SupportedCompression CompressionModes
252 MinProtoVer, MaxProtoVer uint16
256 SendFullItemMeta bool
257 }))(obj)).SendFullItemMeta
258 switch n := read8(r); n {
264 chk(fmt.Errorf("invalid bool: %d", n))
268 }); err != nil && err != io.EOF {
273 func (obj *ToSrvInit2) serialize(w io.Writer) {
274 if len(([]byte((*(*(struct {
276 }))(obj)).Lang))) > math.MaxUint16 {
280 x := uint16(len(([]byte((*(*(struct {
283 write16(w, uint16(x))
286 _, err := w.Write(([]byte((*(*(struct {
293 func (obj *ToSrvInit2) deserialize(r io.Reader) {
300 (local3) = make([]uint8, local4)
302 _, err := io.ReadFull(r, (local3)[:])
307 }))(obj)).Lang) = string(local3)
310 func (obj *ToSrvJoinModChan) serialize(w io.Writer) {
311 if len(([]byte((*(*(struct {
313 }))(obj)).Channel))) > math.MaxUint16 {
317 x := uint16(len(([]byte((*(*(struct {
319 }))(obj)).Channel))))
320 write16(w, uint16(x))
323 _, err := w.Write(([]byte((*(*(struct {
325 }))(obj)).Channel))[:])
330 func (obj *ToSrvJoinModChan) deserialize(r io.Reader) {
337 (local5) = make([]uint8, local6)
339 _, err := io.ReadFull(r, (local5)[:])
344 }))(obj)).Channel) = string(local5)
347 func (obj *ToSrvLeaveModChan) serialize(w io.Writer) {
348 if len(([]byte((*(*(struct {
350 }))(obj)).Channel))) > math.MaxUint16 {
354 x := uint16(len(([]byte((*(*(struct {
356 }))(obj)).Channel))))
357 write16(w, uint16(x))
360 _, err := w.Write(([]byte((*(*(struct {
362 }))(obj)).Channel))[:])
367 func (obj *ToSrvLeaveModChan) deserialize(r io.Reader) {
374 (local7) = make([]uint8, local8)
376 _, err := io.ReadFull(r, (local7)[:])
381 }))(obj)).Channel) = string(local7)
384 func (obj *ToSrvMsgModChan) serialize(w io.Writer) {
385 if len(([]byte((*(*(struct {
388 }))(obj)).Channel))) > math.MaxUint16 {
392 x := uint16(len(([]byte((*(*(struct {
395 }))(obj)).Channel))))
396 write16(w, uint16(x))
399 _, err := w.Write(([]byte((*(*(struct {
402 }))(obj)).Channel))[:])
405 if len(([]byte((*(*(struct {
408 }))(obj)).Msg))) > math.MaxUint16 {
412 x := uint16(len(([]byte((*(*(struct {
416 write16(w, uint16(x))
419 _, err := w.Write(([]byte((*(*(struct {
427 func (obj *ToSrvMsgModChan) deserialize(r io.Reader) {
434 (local9) = make([]uint8, local10)
436 _, err := io.ReadFull(r, (local9)[:])
442 }))(obj)).Channel) = string(local9)
449 (local11) = make([]uint8, local12)
451 _, err := io.ReadFull(r, (local11)[:])
457 }))(obj)).Msg) = string(local11)
460 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
461 if err := pcall(func() {
464 }))(obj)).Pos).serialize(w)
469 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
473 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
474 if err := pcall(func() {
477 }))(obj)).Pos).deserialize(r)
482 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
486 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
487 if len(((*(*(struct {
490 }))(obj)).Blks)) > math.MaxUint8 {
494 x := uint8(len(((*(*(struct {
500 for local13 := range (*(*(struct {
504 for local14 := range ((*(*(struct {
507 }))(obj)).Blks)[local13] {
512 }))(obj)).Blks)[local13])[local14]
513 write16(w, uint16(x))
519 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
528 }))(obj)).Blks) = make([][3]int16, local15)
529 for local16 := range (*(*(struct {
533 for local17 := range ((*(*(struct {
536 }))(obj)).Blks)[local16] {
538 p := &(((*(*(struct {
541 }))(obj)).Blks)[local16])[local17]
542 *p = int16(read16(r))
548 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
549 if len(((*(*(struct {
552 }))(obj)).Blks)) > math.MaxUint8 {
556 x := uint8(len(((*(*(struct {
562 for local18 := range (*(*(struct {
566 for local19 := range ((*(*(struct {
569 }))(obj)).Blks)[local18] {
574 }))(obj)).Blks)[local18])[local19]
575 write16(w, uint16(x))
581 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
590 }))(obj)).Blks) = make([][3]int16, local20)
591 for local21 := range (*(*(struct {
595 for local22 := range ((*(*(struct {
598 }))(obj)).Blks)[local21] {
600 p := &(((*(*(struct {
603 }))(obj)).Blks)[local21])[local22]
604 *p = int16(read16(r))
610 func (obj *ToSrvInvAction) serialize(w io.Writer) {
612 _, err := w.Write(([]byte((*(*(struct {
615 }))(obj)).Action))[:])
620 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
624 (local23), err = io.ReadAll(r)
630 }))(obj)).Action) = string(local23)
633 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
634 local24 := utf16.Encode([]rune((*(*(struct {
638 if len((local24)) > math.MaxUint16 {
642 x := uint16(len((local24)))
643 write16(w, uint16(x))
645 for local25 := range local24 {
647 x := (local24)[local25]
648 write16(w, uint16(x))
653 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
660 (local26) = make([]uint16, local27)
661 for local28 := range local26 {
663 p := &(local26)[local28]
670 }))(obj)).Msg = string(utf16.Decode(local26))
673 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
678 write16(w, uint16(x))
682 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
691 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
696 write16(w, uint16(x))
700 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
709 func (obj *ToSrvRespawn) serialize(w io.Writer) {
712 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
715 func (obj *ToSrvInteract) serialize(w io.Writer) {
716 if err := pcall(func() {
724 }))(obj)).Action).serialize(w)
729 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Interaction", err))
740 write16(w, uint16(x))
744 w := new(bytes.Buffer)
754 chk(writePointedThing(w, x))
760 if len((buf.Bytes())) > math.MaxUint32 {
764 x := uint32(len((buf.Bytes())))
765 write32(w, uint32(x))
768 _, err := w.Write((buf.Bytes())[:])
773 if err := pcall(func() {
781 }))(obj)).Pos).serialize(w)
786 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
790 func (obj *ToSrvInteract) deserialize(r io.Reader) {
791 if err := pcall(func() {
799 }))(obj)).Action).deserialize(r)
804 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Interaction", err))
823 r := &io.LimitedReader{R: r, N: int64(n)}
835 *p, err = readPointedThing(r)
841 chk(fmt.Errorf("%d bytes of trailing data", r.N))
844 if err := pcall(func() {
852 }))(obj)).Pos).deserialize(r)
857 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
861 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
862 if len(((*(*(struct {
864 }))(obj)).IDs)) > math.MaxUint16 {
868 x := uint16(len(((*(*(struct {
871 write16(w, uint16(x))
873 for local29 := range (*(*(struct {
876 if err := pcall(func() {
879 }))(obj)).IDs)[local29]).serialize(w)
884 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
889 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
897 }))(obj)).IDs) = make([]SoundID, local30)
898 for local31 := range (*(*(struct {
901 if err := pcall(func() {
904 }))(obj)).IDs)[local31]).deserialize(r)
909 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
914 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
915 for local32 := range (*(*(struct {
925 }))(obj)).Pos)[local32]
926 write16(w, uint16(x))
929 if len(([]byte((*(*(struct {
933 }))(obj)).Formname))) > math.MaxUint16 {
937 x := uint16(len(([]byte((*(*(struct {
941 }))(obj)).Formname))))
942 write16(w, uint16(x))
945 _, err := w.Write(([]byte((*(*(struct {
949 }))(obj)).Formname))[:])
952 if len(((*(*(struct {
956 }))(obj)).Fields)) > math.MaxUint16 {
960 x := uint16(len(((*(*(struct {
965 write16(w, uint16(x))
967 for local33 := range (*(*(struct {
972 if err := pcall(func() {
977 }))(obj)).Fields)[local33]).serialize(w)
982 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
987 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
988 for local34 := range (*(*(struct {
998 }))(obj)).Pos)[local34]
999 *p = int16(read16(r))
1008 (local35) = make([]uint8, local36)
1010 _, err := io.ReadFull(r, (local35)[:])
1017 }))(obj)).Formname) = string(local35)
1027 }))(obj)).Fields) = make([]Field, local37)
1028 for local38 := range (*(*(struct {
1033 if err := pcall(func() {
1038 }))(obj)).Fields)[local38]).deserialize(r)
1043 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1048 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1049 if len(([]byte((*(*(struct {
1052 }))(obj)).Formname))) > math.MaxUint16 {
1056 x := uint16(len(([]byte((*(*(struct {
1059 }))(obj)).Formname))))
1060 write16(w, uint16(x))
1063 _, err := w.Write(([]byte((*(*(struct {
1066 }))(obj)).Formname))[:])
1069 if len(((*(*(struct {
1072 }))(obj)).Fields)) > math.MaxUint16 {
1076 x := uint16(len(((*(*(struct {
1080 write16(w, uint16(x))
1082 for local39 := range (*(*(struct {
1086 if err := pcall(func() {
1090 }))(obj)).Fields)[local39]).serialize(w)
1095 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1100 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1107 (local40) = make([]uint8, local41)
1109 _, err := io.ReadFull(r, (local40)[:])
1115 }))(obj)).Formname) = string(local40)
1124 }))(obj)).Fields) = make([]Field, local42)
1125 for local43 := range (*(*(struct {
1129 if err := pcall(func() {
1133 }))(obj)).Fields)[local43]).deserialize(r)
1138 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1143 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1144 if len(((*(*(struct {
1146 }))(obj)).Filenames)) > math.MaxUint16 {
1150 x := uint16(len(((*(*(struct {
1152 }))(obj)).Filenames)))
1153 write16(w, uint16(x))
1155 for local44 := range (*(*(struct {
1157 }))(obj)).Filenames {
1158 if len(([]byte(((*(*(struct {
1160 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1164 x := uint16(len(([]byte(((*(*(struct {
1166 }))(obj)).Filenames)[local44]))))
1167 write16(w, uint16(x))
1170 _, err := w.Write(([]byte(((*(*(struct {
1172 }))(obj)).Filenames)[local44]))[:])
1178 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1186 }))(obj)).Filenames) = make([]string, local45)
1187 for local46 := range (*(*(struct {
1189 }))(obj)).Filenames {
1196 (local47) = make([]uint8, local48)
1198 _, err := io.ReadFull(r, (local47)[:])
1203 }))(obj)).Filenames)[local46]) = string(local47)
1207 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1210 // Version information.
1211 Major, Minor, Patch uint8
1220 // Version information.
1221 Major, Minor, Patch uint8
1230 // Version information.
1231 Major, Minor, Patch uint8
1240 // Version information.
1241 Major, Minor, Patch uint8
1248 if len(([]byte((*(*(struct {
1249 // Version information.
1250 Major, Minor, Patch uint8
1254 }))(obj)).Version))) > math.MaxUint16 {
1258 x := uint16(len(([]byte((*(*(struct {
1259 // Version information.
1260 Major, Minor, Patch uint8
1264 }))(obj)).Version))))
1265 write16(w, uint16(x))
1268 _, err := w.Write(([]byte((*(*(struct {
1269 // Version information.
1270 Major, Minor, Patch uint8
1274 }))(obj)).Version))[:])
1279 // Version information.
1280 Major, Minor, Patch uint8
1285 write16(w, uint16(x))
1289 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1292 // Version information.
1293 Major, Minor, Patch uint8
1302 // Version information.
1303 Major, Minor, Patch uint8
1312 // Version information.
1313 Major, Minor, Patch uint8
1322 // Version information.
1323 Major, Minor, Patch uint8
1336 (local49) = make([]uint8, local50)
1338 _, err := io.ReadFull(r, (local49)[:])
1342 // Version information.
1343 Major, Minor, Patch uint8
1347 }))(obj)).Version) = string(local49)
1350 // Version information.
1351 Major, Minor, Patch uint8
1360 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1361 if len(((*(*(struct {
1365 }))(obj)).Salt)) > math.MaxUint16 {
1369 x := uint16(len(((*(*(struct {
1374 write16(w, uint16(x))
1377 _, err := w.Write(((*(*(struct {
1384 if len(((*(*(struct {
1388 }))(obj)).Verifier)) > math.MaxUint16 {
1392 x := uint16(len(((*(*(struct {
1396 }))(obj)).Verifier)))
1397 write16(w, uint16(x))
1400 _, err := w.Write(((*(*(struct {
1404 }))(obj)).Verifier)[:])
1412 }))(obj)).EmptyPasswd
1422 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1432 }))(obj)).Salt) = make([]byte, local51)
1434 _, err := io.ReadFull(r, ((*(*(struct {
1450 }))(obj)).Verifier) = make([]byte, local52)
1452 _, err := io.ReadFull(r, ((*(*(struct {
1456 }))(obj)).Verifier)[:])
1464 }))(obj)).EmptyPasswd
1465 switch n := read8(r); n {
1471 chk(fmt.Errorf("invalid bool: %d", n))
1477 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1478 if len(((*(*(struct {
1481 }))(obj)).A)) > math.MaxUint16 {
1485 x := uint16(len(((*(*(struct {
1489 write16(w, uint16(x))
1492 _, err := w.Write(((*(*(struct {
1512 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1521 }))(obj)).A) = make([]byte, local53)
1523 _, err := io.ReadFull(r, ((*(*(struct {
1534 switch n := read8(r); n {
1540 chk(fmt.Errorf("invalid bool: %d", n))
1546 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1547 if len(((*(*(struct {
1549 }))(obj)).M)) > math.MaxUint16 {
1553 x := uint16(len(((*(*(struct {
1556 write16(w, uint16(x))
1559 _, err := w.Write(((*(*(struct {
1566 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1574 }))(obj)).M) = make([]byte, local54)
1576 _, err := io.ReadFull(r, ((*(*(struct {
1583 func (obj *ToCltHello) serialize(w io.Writer) {
1587 Compression CompressionModes
1591 }))(obj)).SerializeVer
1594 if err := pcall(func() {
1597 Compression CompressionModes
1601 }))(obj)).Compression).serialize(w)
1606 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
1611 Compression CompressionModes
1616 write16(w, uint16(x))
1618 if err := pcall(func() {
1621 Compression CompressionModes
1625 }))(obj)).AuthMethods).serialize(w)
1630 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1632 if len(([]byte((*(*(struct {
1634 Compression CompressionModes
1638 }))(obj)).Username))) > math.MaxUint16 {
1642 x := uint16(len(([]byte((*(*(struct {
1644 Compression CompressionModes
1648 }))(obj)).Username))))
1649 write16(w, uint16(x))
1652 _, err := w.Write(([]byte((*(*(struct {
1654 Compression CompressionModes
1658 }))(obj)).Username))[:])
1663 func (obj *ToCltHello) deserialize(r io.Reader) {
1667 Compression CompressionModes
1671 }))(obj)).SerializeVer
1674 if err := pcall(func() {
1677 Compression CompressionModes
1681 }))(obj)).Compression).deserialize(r)
1686 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
1691 Compression CompressionModes
1698 if err := pcall(func() {
1701 Compression CompressionModes
1705 }))(obj)).AuthMethods).deserialize(r)
1710 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1718 (local55) = make([]uint8, local56)
1720 _, err := io.ReadFull(r, (local55)[:])
1725 Compression CompressionModes
1729 }))(obj)).Username) = string(local55)
1732 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1733 if err := pcall(func() {
1735 // The client does the equivalent of
1736 // PlayerPos[1] -= 5
1737 // before using PlayerPos.
1741 SendInterval float32
1742 SudoAuthMethods AuthMethods
1743 }))(obj)).PlayerPos).serialize(w)
1748 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
1752 // The client does the equivalent of
1753 // PlayerPos[1] -= 5
1754 // before using PlayerPos.
1758 SendInterval float32
1759 SudoAuthMethods AuthMethods
1761 write64(w, uint64(x))
1766 // The client does the equivalent of
1767 // PlayerPos[1] -= 5
1768 // before using PlayerPos.
1772 SendInterval float32
1773 SudoAuthMethods AuthMethods
1774 }))(obj)).SendInterval
1775 write32(w, math.Float32bits(x))
1777 if err := pcall(func() {
1779 // The client does the equivalent of
1780 // PlayerPos[1] -= 5
1781 // before using PlayerPos.
1785 SendInterval float32
1786 SudoAuthMethods AuthMethods
1787 }))(obj)).SudoAuthMethods).serialize(w)
1792 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1796 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1797 if err := pcall(func() {
1799 // The client does the equivalent of
1800 // PlayerPos[1] -= 5
1801 // before using PlayerPos.
1805 SendInterval float32
1806 SudoAuthMethods AuthMethods
1807 }))(obj)).PlayerPos).deserialize(r)
1812 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
1816 // The client does the equivalent of
1817 // PlayerPos[1] -= 5
1818 // before using PlayerPos.
1822 SendInterval float32
1823 SudoAuthMethods AuthMethods
1830 // The client does the equivalent of
1831 // PlayerPos[1] -= 5
1832 // before using PlayerPos.
1836 SendInterval float32
1837 SudoAuthMethods AuthMethods
1838 }))(obj)).SendInterval
1839 *p = math.Float32frombits(read32(r))
1841 if err := pcall(func() {
1843 // The client does the equivalent of
1844 // PlayerPos[1] -= 5
1845 // before using PlayerPos.
1849 SendInterval float32
1850 SudoAuthMethods AuthMethods
1851 }))(obj)).SudoAuthMethods).deserialize(r)
1856 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1860 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1861 if err := pcall(func() {
1863 SudoAuthMethods AuthMethods
1864 }))(obj)).SudoAuthMethods).serialize(w)
1869 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1872 local57 := [15]byte{}
1874 _, err := w.Write((local57)[:])
1880 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1881 if err := pcall(func() {
1883 SudoAuthMethods AuthMethods
1884 }))(obj)).SudoAuthMethods).deserialize(r)
1889 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1892 var local58 [15]byte
1893 local59 := [15]byte{}
1895 _, err := io.ReadFull(r, (local58)[:])
1898 if local58 != local59 {
1899 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1904 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1907 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1910 func (obj *ToCltKick) serialize(w io.Writer) {
1911 if err := pcall(func() {
1915 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1918 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1920 }))(obj)).Reason).serialize(w)
1925 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.KickReason", err))
1930 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1933 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1935 }))(obj)).Reason < maxKickReason) {
1936 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1938 if dr := (*(*(struct {
1941 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1944 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1946 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1947 if len(([]byte((*(*(struct {
1950 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1953 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1955 }))(obj)).Custom))) > math.MaxUint16 {
1959 x := uint16(len(([]byte((*(*(struct {
1962 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1965 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1967 }))(obj)).Custom))))
1968 write16(w, uint16(x))
1971 _, err := w.Write(([]byte((*(*(struct {
1974 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1977 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1979 }))(obj)).Custom))[:])
1983 if dr := (*(*(struct {
1986 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1989 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1991 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1996 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1999 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2012 func (obj *ToCltKick) deserialize(r io.Reader) {
2013 if err := pcall(func() {
2017 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2020 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2022 }))(obj)).Reason).deserialize(r)
2027 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.KickReason", err))
2032 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2035 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2037 }))(obj)).Reason < maxKickReason) {
2038 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2040 if dr := (*(*(struct {
2043 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2046 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2048 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2055 (local60) = make([]uint8, local61)
2057 _, err := io.ReadFull(r, (local60)[:])
2063 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2066 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2068 }))(obj)).Custom) = string(local60)
2070 if dr := (*(*(struct {
2073 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2076 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2078 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2083 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2086 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2089 switch n := read8(r); n {
2095 chk(fmt.Errorf("invalid bool: %d", n))
2102 func (obj *ToCltBlkData) serialize(w io.Writer) {
2103 for local62 := range (*(*(struct {
2111 }))(obj)).Blkpos)[local62]
2112 write16(w, uint16(x))
2115 if err := pcall(func() {
2119 }))(obj)).Blk).serialize(w)
2124 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlk", err))
2128 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2129 for local63 := range (*(*(struct {
2134 p := &((*(*(struct {
2137 }))(obj)).Blkpos)[local63]
2138 *p = int16(read16(r))
2141 if err := pcall(func() {
2145 }))(obj)).Blk).deserialize(r)
2150 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlk", err))
2154 func (obj *ToCltAddNode) serialize(w io.Writer) {
2155 for local64 := range (*(*(struct {
2165 }))(obj)).Pos)[local64]
2166 write16(w, uint16(x))
2169 if err := pcall(func() {
2174 }))(obj)).Node).serialize(w)
2179 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Node", err))
2196 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2197 for local65 := range (*(*(struct {
2203 p := &((*(*(struct {
2207 }))(obj)).Pos)[local65]
2208 *p = int16(read16(r))
2211 if err := pcall(func() {
2216 }))(obj)).Node).deserialize(r)
2221 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Node", err))
2229 switch n := read8(r); n {
2235 chk(fmt.Errorf("invalid bool: %d", n))
2241 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2242 for local66 := range (*(*(struct {
2248 }))(obj)).Pos)[local66]
2249 write16(w, uint16(x))
2254 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2255 for local67 := range (*(*(struct {
2259 p := &((*(*(struct {
2261 }))(obj)).Pos)[local67]
2262 *p = int16(read16(r))
2267 func (obj *ToCltInv) serialize(w io.Writer) {
2269 _, err := w.Write(([]byte((*(*(struct {
2277 func (obj *ToCltInv) deserialize(r io.Reader) {
2281 (local68), err = io.ReadAll(r)
2287 }))(obj)).Inv) = string(local68)
2290 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2293 Time uint16 // %24000
2294 Speed float32 // Speed times faster than real time
2296 write16(w, uint16(x))
2300 Time uint16 // %24000
2301 Speed float32 // Speed times faster than real time
2303 write32(w, math.Float32bits(x))
2307 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2310 Time uint16 // %24000
2311 Speed float32 // Speed times faster than real time
2317 Time uint16 // %24000
2318 Speed float32 // Speed times faster than real time
2320 *p = math.Float32frombits(read32(r))
2324 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2325 if err := pcall(func() {
2327 Flags CSMRestrictionFlags
2329 // MapRange is the maximum distance from the player CSMs can read the map
2330 // if Flags&LimitMapRange != 0.
2332 }))(obj)).Flags).serialize(w)
2337 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CSMRestrictionFlags", err))
2341 Flags CSMRestrictionFlags
2343 // MapRange is the maximum distance from the player CSMs can read the map
2344 // if Flags&LimitMapRange != 0.
2347 write32(w, uint32(x))
2351 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2352 if err := pcall(func() {
2354 Flags CSMRestrictionFlags
2356 // MapRange is the maximum distance from the player CSMs can read the map
2357 // if Flags&LimitMapRange != 0.
2359 }))(obj)).Flags).deserialize(r)
2364 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CSMRestrictionFlags", err))
2368 Flags CSMRestrictionFlags
2370 // MapRange is the maximum distance from the player CSMs can read the map
2371 // if Flags&LimitMapRange != 0.
2378 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2379 if err := pcall(func() {
2382 }))(obj)).Vel).serialize(w)
2387 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
2391 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2392 if err := pcall(func() {
2395 }))(obj)).Vel).deserialize(r)
2400 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
2404 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2405 if len(([]byte((*(*(struct {
2408 CallbackToken uint32
2410 }))(obj)).RawHash))) > math.MaxUint16 {
2414 x := uint16(len(([]byte((*(*(struct {
2417 CallbackToken uint32
2419 }))(obj)).RawHash))))
2420 write16(w, uint16(x))
2423 _, err := w.Write(([]byte((*(*(struct {
2426 CallbackToken uint32
2428 }))(obj)).RawHash))[:])
2431 if len(([]byte((*(*(struct {
2434 CallbackToken uint32
2436 }))(obj)).Filename))) > math.MaxUint16 {
2440 x := uint16(len(([]byte((*(*(struct {
2443 CallbackToken uint32
2445 }))(obj)).Filename))))
2446 write16(w, uint16(x))
2449 _, err := w.Write(([]byte((*(*(struct {
2452 CallbackToken uint32
2454 }))(obj)).Filename))[:])
2461 CallbackToken uint32
2463 }))(obj)).CallbackToken
2464 write32(w, uint32(x))
2470 CallbackToken uint32
2472 }))(obj)).ShouldCache
2482 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2489 (local69) = make([]uint8, local70)
2491 _, err := io.ReadFull(r, (local69)[:])
2497 CallbackToken uint32
2499 }))(obj)).RawHash) = string(local69)
2506 (local71) = make([]uint8, local72)
2508 _, err := io.ReadFull(r, (local71)[:])
2514 CallbackToken uint32
2516 }))(obj)).Filename) = string(local71)
2521 CallbackToken uint32
2523 }))(obj)).CallbackToken
2530 CallbackToken uint32
2532 }))(obj)).ShouldCache
2533 switch n := read8(r); n {
2539 chk(fmt.Errorf("invalid bool: %d", n))
2545 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2553 if err := pcall(func() {
2560 Timestamp int64 // Unix time.
2561 }))(obj)).Type).serialize(w)
2566 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ChatMsgType", err))
2568 local74 := utf16.Encode([]rune((*(*(struct {
2574 Timestamp int64 // Unix time.
2576 if len((local74)) > math.MaxUint16 {
2580 x := uint16(len((local74)))
2581 write16(w, uint16(x))
2583 for local75 := range local74 {
2585 x := (local74)[local75]
2586 write16(w, uint16(x))
2589 local76 := utf16.Encode([]rune((*(*(struct {
2595 Timestamp int64 // Unix time.
2597 if len((local76)) > math.MaxUint16 {
2601 x := uint16(len((local76)))
2602 write16(w, uint16(x))
2604 for local77 := range local76 {
2606 x := (local76)[local77]
2607 write16(w, uint16(x))
2617 Timestamp int64 // Unix time.
2619 write64(w, uint64(x))
2624 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2632 if local78 != local79 {
2633 chk(fmt.Errorf("const %v: %v", "uint8(1)", local78))
2636 if err := pcall(func() {
2643 Timestamp int64 // Unix time.
2644 }))(obj)).Type).deserialize(r)
2649 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ChatMsgType", err))
2651 var local80 []uint16
2657 (local80) = make([]uint16, local81)
2658 for local82 := range local80 {
2660 p := &(local80)[local82]
2670 Timestamp int64 // Unix time.
2671 }))(obj)).Sender = string(utf16.Decode(local80))
2672 var local83 []uint16
2678 (local83) = make([]uint16, local84)
2679 for local85 := range local83 {
2681 p := &(local83)[local85]
2691 Timestamp int64 // Unix time.
2692 }))(obj)).Text = string(utf16.Decode(local83))
2700 Timestamp int64 // Unix time.
2702 *p = int64(read64(r))
2707 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2708 if len(((*(*(struct {
2711 }))(obj)).Remove)) > math.MaxUint16 {
2715 x := uint16(len(((*(*(struct {
2719 write16(w, uint16(x))
2721 for local86 := range (*(*(struct {
2725 if err := pcall(func() {
2729 }))(obj)).Remove)[local86]).serialize(w)
2734 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
2737 if len(((*(*(struct {
2740 }))(obj)).Add)) > math.MaxUint16 {
2744 x := uint16(len(((*(*(struct {
2748 write16(w, uint16(x))
2750 for local87 := range (*(*(struct {
2754 if err := pcall(func() {
2758 }))(obj)).Add)[local87]).serialize(w)
2763 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAdd", err))
2768 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2777 }))(obj)).Remove) = make([]AOID, local88)
2778 for local89 := range (*(*(struct {
2782 if err := pcall(func() {
2786 }))(obj)).Remove)[local89]).deserialize(r)
2791 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
2802 }))(obj)).Add) = make([]AOAdd, local90)
2803 for local91 := range (*(*(struct {
2807 if err := pcall(func() {
2811 }))(obj)).Add)[local91]).deserialize(r)
2816 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAdd", err))
2821 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2822 for local92 := range (*(*(struct {
2826 if err := pcall(func() {
2830 }))(obj)).Msgs)[local92]).serialize(w)
2835 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.IDAOMsg", err))
2840 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2843 err := pcall(func() {
2844 if err := pcall(func() {
2845 (local93).deserialize(r)
2850 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.IDAOMsg", err))
2859 }))(obj)).Msgs) = append(((*(*(struct {
2862 }))(obj)).Msgs), local93)
2867 func (obj *ToCltHP) serialize(w io.Writer) {
2872 write16(w, uint16(x))
2876 func (obj *ToCltHP) deserialize(r io.Reader) {
2885 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2886 if err := pcall(func() {
2890 }))(obj)).Pos).serialize(w)
2895 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
2902 write32(w, math.Float32bits(x))
2909 write32(w, math.Float32bits(x))
2913 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2914 if err := pcall(func() {
2918 }))(obj)).Pos).deserialize(r)
2923 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
2930 *p = math.Float32frombits(read32(r))
2937 *p = math.Float32frombits(read32(r))
2941 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
2942 local94 := utf16.Encode([]rune((*(*(struct {
2946 if len((local94)) > math.MaxUint16 {
2950 x := uint16(len((local94)))
2951 write16(w, uint16(x))
2953 for local95 := range local94 {
2955 x := (local94)[local95]
2956 write16(w, uint16(x))
2961 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
2962 var local96 []uint16
2968 (local96) = make([]uint16, local97)
2969 for local98 := range local96 {
2971 p := &(local96)[local98]
2978 }))(obj)).Reason = string(utf16.Decode(local96))
2981 func (obj *ToCltFOV) serialize(w io.Writer) {
2986 TransitionTime float32
2988 write32(w, math.Float32bits(x))
2994 TransitionTime float32
2995 }))(obj)).Multiplier
3007 TransitionTime float32
3008 }))(obj)).TransitionTime
3009 write32(w, math.Float32bits(x))
3013 func (obj *ToCltFOV) deserialize(r io.Reader) {
3018 TransitionTime float32
3020 *p = math.Float32frombits(read32(r))
3026 TransitionTime float32
3027 }))(obj)).Multiplier
3028 switch n := read8(r); n {
3034 chk(fmt.Errorf("invalid bool: %d", n))
3042 TransitionTime float32
3043 }))(obj)).TransitionTime
3044 *p = math.Float32frombits(read32(r))
3048 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3061 if err := pcall(func() {
3065 }))(obj)).PointAt).serialize(w)
3070 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
3074 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3080 switch n := read8(r); n {
3086 chk(fmt.Errorf("invalid bool: %d", n))
3090 if err := pcall(func() {
3094 }))(obj)).PointAt).deserialize(r)
3099 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
3103 func (obj *ToCltMedia) serialize(w io.Writer) {
3106 // N is the total number of ToCltMedia packets.
3107 // I is the index of this packet.
3118 write16(w, uint16(x))
3122 // N is the total number of ToCltMedia packets.
3123 // I is the index of this packet.
3134 write16(w, uint16(x))
3136 if len(((*(*(struct {
3137 // N is the total number of ToCltMedia packets.
3138 // I is the index of this packet.
3148 }))(obj)).Files)) > math.MaxUint32 {
3152 x := uint32(len(((*(*(struct {
3153 // N is the total number of ToCltMedia packets.
3154 // I is the index of this packet.
3165 write32(w, uint32(x))
3167 for local99 := range (*(*(struct {
3168 // N is the total number of ToCltMedia packets.
3169 // I is the index of this packet.
3180 if len(([]byte((((*(*(struct {
3181 // N is the total number of ToCltMedia packets.
3182 // I is the index of this packet.
3192 }))(obj)).Files)[local99]).Name))) > math.MaxUint16 {
3196 x := uint16(len(([]byte((((*(*(struct {
3197 // N is the total number of ToCltMedia packets.
3198 // I is the index of this packet.
3208 }))(obj)).Files)[local99]).Name))))
3209 write16(w, uint16(x))
3212 _, err := w.Write(([]byte((((*(*(struct {
3213 // N is the total number of ToCltMedia packets.
3214 // I is the index of this packet.
3224 }))(obj)).Files)[local99]).Name))[:])
3227 if len(((((*(*(struct {
3228 // N is the total number of ToCltMedia packets.
3229 // I is the index of this packet.
3239 }))(obj)).Files)[local99]).Data)) > math.MaxUint32 {
3243 x := uint32(len(((((*(*(struct {
3244 // N is the total number of ToCltMedia packets.
3245 // I is the index of this packet.
3255 }))(obj)).Files)[local99]).Data)))
3256 write32(w, uint32(x))
3259 _, err := w.Write(((((*(*(struct {
3260 // N is the total number of ToCltMedia packets.
3261 // I is the index of this packet.
3271 }))(obj)).Files)[local99]).Data)[:])
3277 func (obj *ToCltMedia) deserialize(r io.Reader) {
3280 // N is the total number of ToCltMedia packets.
3281 // I is the index of this packet.
3296 // N is the total number of ToCltMedia packets.
3297 // I is the index of this packet.
3316 // N is the total number of ToCltMedia packets.
3317 // I is the index of this packet.
3327 }))(obj)).Files) = make([]struct {
3331 for local101 := range (*(*(struct {
3332 // N is the total number of ToCltMedia packets.
3333 // I is the index of this packet.
3344 var local102 []uint8
3350 (local102) = make([]uint8, local103)
3352 _, err := io.ReadFull(r, (local102)[:])
3356 // N is the total number of ToCltMedia packets.
3357 // I is the index of this packet.
3367 }))(obj)).Files)[local101]).Name) = string(local102)
3374 // N is the total number of ToCltMedia packets.
3375 // I is the index of this packet.
3385 }))(obj)).Files)[local101]).Data) = make([]byte, local104)
3387 _, err := io.ReadFull(r, ((((*(*(struct {
3388 // N is the total number of ToCltMedia packets.
3389 // I is the index of this packet.
3399 }))(obj)).Files)[local101]).Data)[:])
3405 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3408 w := new(bytes.Buffer)
3410 w := zlib.NewWriter(w)
3412 local105 := uint8(1)
3421 // See (de)serialize.fmt.
3424 { // For ToCltNodeDefs.Defs.
3425 if len(x) > math.MaxUint16 {
3428 write16(w, uint16(len(x)))
3433 if b.Len() > math.MaxUint32 {
3436 write32(w, uint32(b.Len()))
3437 _, err := b.WriteTo(w)
3446 if len((buf.Bytes())) > math.MaxUint32 {
3450 x := uint32(len((buf.Bytes())))
3451 write32(w, uint32(x))
3454 _, err := w.Write((buf.Bytes())[:])
3461 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3468 r := &io.LimitedReader{R: r, N: int64(n)}
3470 r, err := zlib.NewReader(byteReader{r})
3474 local107 := uint8(1)
3479 if local106 != local107 {
3480 chk(fmt.Errorf("const %v: %v", "uint8(1)", local106))
3486 // See (de)serialize.fmt.
3489 { // For ToCltNodeDefs.Defs.
3490 *p = make([]NodeDef, read16(r))
3491 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3493 (*p)[i].deserialize(r)
3496 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3503 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3508 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3509 if len(((*(*(struct {
3515 }))(obj)).Files)) > math.MaxUint16 {
3519 x := uint16(len(((*(*(struct {
3526 write16(w, uint16(x))
3528 for local108 := range (*(*(struct {
3535 if len(([]byte((((*(*(struct {
3541 }))(obj)).Files)[local108]).Name))) > math.MaxUint16 {
3545 x := uint16(len(([]byte((((*(*(struct {
3551 }))(obj)).Files)[local108]).Name))))
3552 write16(w, uint16(x))
3555 _, err := w.Write(([]byte((((*(*(struct {
3561 }))(obj)).Files)[local108]).Name))[:])
3564 if len(([]byte((((*(*(struct {
3570 }))(obj)).Files)[local108]).Base64SHA1))) > math.MaxUint16 {
3574 x := uint16(len(([]byte((((*(*(struct {
3580 }))(obj)).Files)[local108]).Base64SHA1))))
3581 write16(w, uint16(x))
3584 _, err := w.Write(([]byte((((*(*(struct {
3590 }))(obj)).Files)[local108]).Base64SHA1))[:])
3594 if len(([]byte((*(*(struct {
3600 }))(obj)).URL))) > math.MaxUint16 {
3604 x := uint16(len(([]byte((*(*(struct {
3611 write16(w, uint16(x))
3614 _, err := w.Write(([]byte((*(*(struct {
3625 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3637 }))(obj)).Files) = make([]struct {
3641 for local110 := range (*(*(struct {
3648 var local111 []uint8
3654 (local111) = make([]uint8, local112)
3656 _, err := io.ReadFull(r, (local111)[:])
3665 }))(obj)).Files)[local110]).Name) = string(local111)
3666 var local113 []uint8
3672 (local113) = make([]uint8, local114)
3674 _, err := io.ReadFull(r, (local113)[:])
3683 }))(obj)).Files)[local110]).Base64SHA1) = string(local113)
3685 var local115 []uint8
3691 (local115) = make([]uint8, local116)
3693 _, err := io.ReadFull(r, (local115)[:])
3702 }))(obj)).URL) = string(local115)
3705 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3708 w := new(bytes.Buffer)
3710 w := zlib.NewWriter(w)
3712 local117 := uint8(0)
3718 if len(((*(*(struct {
3720 Aliases []struct{ Alias, Orig string }
3721 }))(obj)).Defs)) > math.MaxUint16 {
3725 x := uint16(len(((*(*(struct {
3727 Aliases []struct{ Alias, Orig string }
3729 write16(w, uint16(x))
3731 for local118 := range (*(*(struct {
3733 Aliases []struct{ Alias, Orig string }
3735 if err := pcall(func() {
3738 Aliases []struct{ Alias, Orig string }
3739 }))(obj)).Defs)[local118]).serialize(w)
3744 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemDef", err))
3747 if len(((*(*(struct {
3749 Aliases []struct{ Alias, Orig string }
3750 }))(obj)).Aliases)) > math.MaxUint16 {
3754 x := uint16(len(((*(*(struct {
3756 Aliases []struct{ Alias, Orig string }
3757 }))(obj)).Aliases)))
3758 write16(w, uint16(x))
3760 for local119 := range (*(*(struct {
3762 Aliases []struct{ Alias, Orig string }
3764 if len(([]byte((((*(*(struct {
3766 Aliases []struct{ Alias, Orig string }
3767 }))(obj)).Aliases)[local119]).Alias))) > math.MaxUint16 {
3771 x := uint16(len(([]byte((((*(*(struct {
3773 Aliases []struct{ Alias, Orig string }
3774 }))(obj)).Aliases)[local119]).Alias))))
3775 write16(w, uint16(x))
3778 _, err := w.Write(([]byte((((*(*(struct {
3780 Aliases []struct{ Alias, Orig string }
3781 }))(obj)).Aliases)[local119]).Alias))[:])
3784 if len(([]byte((((*(*(struct {
3786 Aliases []struct{ Alias, Orig string }
3787 }))(obj)).Aliases)[local119]).Orig))) > math.MaxUint16 {
3791 x := uint16(len(([]byte((((*(*(struct {
3793 Aliases []struct{ Alias, Orig string }
3794 }))(obj)).Aliases)[local119]).Orig))))
3795 write16(w, uint16(x))
3798 _, err := w.Write(([]byte((((*(*(struct {
3800 Aliases []struct{ Alias, Orig string }
3801 }))(obj)).Aliases)[local119]).Orig))[:])
3810 if len((buf.Bytes())) > math.MaxUint32 {
3814 x := uint32(len((buf.Bytes())))
3815 write32(w, uint32(x))
3818 _, err := w.Write((buf.Bytes())[:])
3825 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3832 r := &io.LimitedReader{R: r, N: int64(n)}
3834 r, err := zlib.NewReader(byteReader{r})
3838 local121 := uint8(0)
3843 if local120 != local121 {
3844 chk(fmt.Errorf("const %v: %v", "uint8(0)", local120))
3854 Aliases []struct{ Alias, Orig string }
3855 }))(obj)).Defs) = make([]ItemDef, local122)
3856 for local123 := range (*(*(struct {
3858 Aliases []struct{ Alias, Orig string }
3860 if err := pcall(func() {
3863 Aliases []struct{ Alias, Orig string }
3864 }))(obj)).Defs)[local123]).deserialize(r)
3869 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemDef", err))
3879 Aliases []struct{ Alias, Orig string }
3880 }))(obj)).Aliases) = make([]struct {
3884 for local125 := range (*(*(struct {
3886 Aliases []struct{ Alias, Orig string }
3888 var local126 []uint8
3894 (local126) = make([]uint8, local127)
3896 _, err := io.ReadFull(r, (local126)[:])
3901 Aliases []struct{ Alias, Orig string }
3902 }))(obj)).Aliases)[local125]).Alias) = string(local126)
3903 var local128 []uint8
3909 (local128) = make([]uint8, local129)
3911 _, err := io.ReadFull(r, (local128)[:])
3916 Aliases []struct{ Alias, Orig string }
3917 }))(obj)).Aliases)[local125]).Orig) = string(local128)
3922 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3927 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3928 if err := pcall(func() {
3933 SrcType SoundSrcType
3940 }))(obj)).ID).serialize(w)
3945 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
3947 if len(([]byte((*(*(struct {
3951 SrcType SoundSrcType
3958 }))(obj)).Name))) > math.MaxUint16 {
3962 x := uint16(len(([]byte((*(*(struct {
3966 SrcType SoundSrcType
3974 write16(w, uint16(x))
3977 _, err := w.Write(([]byte((*(*(struct {
3981 SrcType SoundSrcType
3988 }))(obj)).Name))[:])
3996 SrcType SoundSrcType
4004 write32(w, math.Float32bits(x))
4006 if err := pcall(func() {
4011 SrcType SoundSrcType
4018 }))(obj)).SrcType).serialize(w)
4023 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundSrcType", err))
4025 if err := pcall(func() {
4030 SrcType SoundSrcType
4037 }))(obj)).Pos).serialize(w)
4042 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
4044 if err := pcall(func() {
4049 SrcType SoundSrcType
4056 }))(obj)).SrcAOID).serialize(w)
4061 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
4068 SrcType SoundSrcType
4088 SrcType SoundSrcType
4096 write32(w, math.Float32bits(x))
4103 SrcType SoundSrcType
4111 write32(w, math.Float32bits(x))
4118 SrcType SoundSrcType
4135 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4136 if err := pcall(func() {
4141 SrcType SoundSrcType
4148 }))(obj)).ID).deserialize(r)
4153 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4155 var local130 []uint8
4161 (local130) = make([]uint8, local131)
4163 _, err := io.ReadFull(r, (local130)[:])
4170 SrcType SoundSrcType
4177 }))(obj)).Name) = string(local130)
4183 SrcType SoundSrcType
4191 *p = math.Float32frombits(read32(r))
4193 if err := pcall(func() {
4198 SrcType SoundSrcType
4205 }))(obj)).SrcType).deserialize(r)
4210 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundSrcType", err))
4212 if err := pcall(func() {
4217 SrcType SoundSrcType
4224 }))(obj)).Pos).deserialize(r)
4229 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
4231 if err := pcall(func() {
4236 SrcType SoundSrcType
4243 }))(obj)).SrcAOID).deserialize(r)
4248 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
4255 SrcType SoundSrcType
4263 switch n := read8(r); n {
4269 chk(fmt.Errorf("invalid bool: %d", n))
4278 SrcType SoundSrcType
4286 *p = math.Float32frombits(read32(r))
4293 SrcType SoundSrcType
4301 *p = math.Float32frombits(read32(r))
4308 SrcType SoundSrcType
4316 switch n := read8(r); n {
4322 chk(fmt.Errorf("invalid bool: %d", n))
4328 func (obj *ToCltStopSound) serialize(w io.Writer) {
4329 if err := pcall(func() {
4332 }))(obj)).ID).serialize(w)
4337 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4341 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4342 if err := pcall(func() {
4345 }))(obj)).ID).deserialize(r)
4350 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4354 func (obj *ToCltPrivs) serialize(w io.Writer) {
4355 if len(((*(*(struct {
4357 }))(obj)).Privs)) > math.MaxUint16 {
4361 x := uint16(len(((*(*(struct {
4364 write16(w, uint16(x))
4366 for local132 := range (*(*(struct {
4369 if len(([]byte(((*(*(struct {
4371 }))(obj)).Privs)[local132]))) > math.MaxUint16 {
4375 x := uint16(len(([]byte(((*(*(struct {
4377 }))(obj)).Privs)[local132]))))
4378 write16(w, uint16(x))
4381 _, err := w.Write(([]byte(((*(*(struct {
4383 }))(obj)).Privs)[local132]))[:])
4389 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4397 }))(obj)).Privs) = make([]string, local133)
4398 for local134 := range (*(*(struct {
4401 var local135 []uint8
4407 (local135) = make([]uint8, local136)
4409 _, err := io.ReadFull(r, (local135)[:])
4414 }))(obj)).Privs)[local134]) = string(local135)
4418 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4419 if len(([]byte((*(*(struct {
4422 }))(obj)).Formspec))) > math.MaxUint32 {
4426 x := uint32(len(([]byte((*(*(struct {
4429 }))(obj)).Formspec))))
4430 write32(w, uint32(x))
4433 _, err := w.Write(([]byte((*(*(struct {
4436 }))(obj)).Formspec))[:])
4441 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4442 var local137 []uint8
4448 (local137) = make([]uint8, local138)
4450 _, err := io.ReadFull(r, (local137)[:])
4456 }))(obj)).Formspec) = string(local137)
4459 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4460 if len(([]byte((*(*(struct {
4463 Len uint16 // deprecated
4467 }))(obj)).Name))) > math.MaxUint16 {
4471 x := uint16(len(([]byte((*(*(struct {
4474 Len uint16 // deprecated
4479 write16(w, uint16(x))
4482 _, err := w.Write(([]byte((*(*(struct {
4485 Len uint16 // deprecated
4489 }))(obj)).Name))[:])
4496 Len uint16 // deprecated
4512 Len uint16 // deprecated
4517 write16(w, uint16(x))
4520 _, err := w.Write(([]byte((*(*(struct {
4523 Len uint16 // deprecated
4532 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4533 var local139 []uint8
4539 (local139) = make([]uint8, local140)
4541 _, err := io.ReadFull(r, (local139)[:])
4547 Len uint16 // deprecated
4551 }))(obj)).Name) = string(local139)
4556 Len uint16 // deprecated
4561 switch n := read8(r); n {
4567 chk(fmt.Errorf("invalid bool: %d", n))
4575 Len uint16 // deprecated
4582 var local141 []uint8
4585 (local141), err = io.ReadAll(r)
4591 Len uint16 // deprecated
4595 }))(obj)).Inv) = string(local141)
4598 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4599 if len(([]byte((*(*(struct {
4604 }))(obj)).Formspec))) > math.MaxUint32 {
4608 x := uint32(len(([]byte((*(*(struct {
4613 }))(obj)).Formspec))))
4614 write32(w, uint32(x))
4617 _, err := w.Write(([]byte((*(*(struct {
4622 }))(obj)).Formspec))[:])
4625 if len(([]byte((*(*(struct {
4630 }))(obj)).Formname))) > math.MaxUint16 {
4634 x := uint16(len(([]byte((*(*(struct {
4639 }))(obj)).Formname))))
4640 write16(w, uint16(x))
4643 _, err := w.Write(([]byte((*(*(struct {
4648 }))(obj)).Formname))[:])
4653 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4654 var local142 []uint8
4660 (local142) = make([]uint8, local143)
4662 _, err := io.ReadFull(r, (local142)[:])
4670 }))(obj)).Formspec) = string(local142)
4671 var local144 []uint8
4677 (local144) = make([]uint8, local145)
4679 _, err := io.ReadFull(r, (local144)[:])
4687 }))(obj)).Formname) = string(local144)
4690 func (obj *ToCltMovement) serialize(w io.Writer) {
4693 DefaultAccel, AirAccel, FastAccel,
4694 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4695 Fluidity, Smoothing, Sink,
4697 }))(obj)).DefaultAccel
4698 write32(w, math.Float32bits(x))
4702 DefaultAccel, AirAccel, FastAccel,
4703 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4704 Fluidity, Smoothing, Sink,
4707 write32(w, math.Float32bits(x))
4711 DefaultAccel, AirAccel, FastAccel,
4712 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4713 Fluidity, Smoothing, Sink,
4716 write32(w, math.Float32bits(x))
4720 DefaultAccel, AirAccel, FastAccel,
4721 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4722 Fluidity, Smoothing, Sink,
4725 write32(w, math.Float32bits(x))
4729 DefaultAccel, AirAccel, FastAccel,
4730 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4731 Fluidity, Smoothing, Sink,
4733 }))(obj)).CrouchSpeed
4734 write32(w, math.Float32bits(x))
4738 DefaultAccel, AirAccel, FastAccel,
4739 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4740 Fluidity, Smoothing, Sink,
4743 write32(w, math.Float32bits(x))
4747 DefaultAccel, AirAccel, FastAccel,
4748 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4749 Fluidity, Smoothing, Sink,
4751 }))(obj)).ClimbSpeed
4752 write32(w, math.Float32bits(x))
4756 DefaultAccel, AirAccel, FastAccel,
4757 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4758 Fluidity, Smoothing, Sink,
4761 write32(w, math.Float32bits(x))
4765 DefaultAccel, AirAccel, FastAccel,
4766 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4767 Fluidity, Smoothing, Sink,
4770 write32(w, math.Float32bits(x))
4774 DefaultAccel, AirAccel, FastAccel,
4775 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4776 Fluidity, Smoothing, Sink,
4779 write32(w, math.Float32bits(x))
4783 DefaultAccel, AirAccel, FastAccel,
4784 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4785 Fluidity, Smoothing, Sink,
4788 write32(w, math.Float32bits(x))
4792 DefaultAccel, AirAccel, FastAccel,
4793 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4794 Fluidity, Smoothing, Sink,
4797 write32(w, math.Float32bits(x))
4801 func (obj *ToCltMovement) deserialize(r io.Reader) {
4804 DefaultAccel, AirAccel, FastAccel,
4805 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4806 Fluidity, Smoothing, Sink,
4808 }))(obj)).DefaultAccel
4809 *p = math.Float32frombits(read32(r))
4813 DefaultAccel, AirAccel, FastAccel,
4814 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4815 Fluidity, Smoothing, Sink,
4818 *p = math.Float32frombits(read32(r))
4822 DefaultAccel, AirAccel, FastAccel,
4823 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4824 Fluidity, Smoothing, Sink,
4827 *p = math.Float32frombits(read32(r))
4831 DefaultAccel, AirAccel, FastAccel,
4832 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4833 Fluidity, Smoothing, Sink,
4836 *p = math.Float32frombits(read32(r))
4840 DefaultAccel, AirAccel, FastAccel,
4841 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4842 Fluidity, Smoothing, Sink,
4844 }))(obj)).CrouchSpeed
4845 *p = math.Float32frombits(read32(r))
4849 DefaultAccel, AirAccel, FastAccel,
4850 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4851 Fluidity, Smoothing, Sink,
4854 *p = math.Float32frombits(read32(r))
4858 DefaultAccel, AirAccel, FastAccel,
4859 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4860 Fluidity, Smoothing, Sink,
4862 }))(obj)).ClimbSpeed
4863 *p = math.Float32frombits(read32(r))
4867 DefaultAccel, AirAccel, FastAccel,
4868 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4869 Fluidity, Smoothing, Sink,
4872 *p = math.Float32frombits(read32(r))
4876 DefaultAccel, AirAccel, FastAccel,
4877 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4878 Fluidity, Smoothing, Sink,
4881 *p = math.Float32frombits(read32(r))
4885 DefaultAccel, AirAccel, FastAccel,
4886 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4887 Fluidity, Smoothing, Sink,
4890 *p = math.Float32frombits(read32(r))
4894 DefaultAccel, AirAccel, FastAccel,
4895 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4896 Fluidity, Smoothing, Sink,
4899 *p = math.Float32frombits(read32(r))
4903 DefaultAccel, AirAccel, FastAccel,
4904 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4905 Fluidity, Smoothing, Sink,
4908 *p = math.Float32frombits(read32(r))
4912 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4913 for local146 := range (*(*(struct {
4914 Pos, Vel, Acc [3]float32
4915 ExpirationTime float32 // in seconds.
4933 Pos, Vel, Acc [3]float32
4934 ExpirationTime float32 // in seconds.
4949 }))(obj)).Pos)[local146]
4950 write32(w, math.Float32bits(x))
4953 for local147 := range (*(*(struct {
4954 Pos, Vel, Acc [3]float32
4955 ExpirationTime float32 // in seconds.
4973 Pos, Vel, Acc [3]float32
4974 ExpirationTime float32 // in seconds.
4989 }))(obj)).Vel)[local147]
4990 write32(w, math.Float32bits(x))
4993 for local148 := range (*(*(struct {
4994 Pos, Vel, Acc [3]float32
4995 ExpirationTime float32 // in seconds.
5013 Pos, Vel, Acc [3]float32
5014 ExpirationTime float32 // in seconds.
5029 }))(obj)).Acc)[local148]
5030 write32(w, math.Float32bits(x))
5035 Pos, Vel, Acc [3]float32
5036 ExpirationTime float32 // in seconds.
5051 }))(obj)).ExpirationTime
5052 write32(w, math.Float32bits(x))
5056 Pos, Vel, Acc [3]float32
5057 ExpirationTime float32 // in seconds.
5073 write32(w, math.Float32bits(x))
5077 Pos, Vel, Acc [3]float32
5078 ExpirationTime float32 // in seconds.
5101 if len(([]byte(*(*string)(&((*(*(struct {
5102 Pos, Vel, Acc [3]float32
5103 ExpirationTime float32 // in seconds.
5118 }))(obj)).Texture))))) > math.MaxUint32 {
5122 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5123 Pos, Vel, Acc [3]float32
5124 ExpirationTime float32 // in seconds.
5139 }))(obj)).Texture))))))
5140 write32(w, uint32(x))
5143 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5144 Pos, Vel, Acc [3]float32
5145 ExpirationTime float32 // in seconds.
5160 }))(obj)).Texture))))[:])
5165 Pos, Vel, Acc [3]float32
5166 ExpirationTime float32 // in seconds.
5191 Pos, Vel, Acc [3]float32
5192 ExpirationTime float32 // in seconds.
5207 }))(obj)).CollisionRm
5215 if err := pcall(func() {
5217 Pos, Vel, Acc [3]float32
5218 ExpirationTime float32 // in seconds.
5233 }))(obj)).AnimParams).serialize(w)
5238 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
5242 Pos, Vel, Acc [3]float32
5243 ExpirationTime float32 // in seconds.
5263 Pos, Vel, Acc [3]float32
5264 ExpirationTime float32 // in seconds.
5279 }))(obj)).AOCollision
5287 if err := pcall(func() {
5289 Pos, Vel, Acc [3]float32
5290 ExpirationTime float32 // in seconds.
5305 }))(obj)).NodeParam0).serialize(w)
5310 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
5314 Pos, Vel, Acc [3]float32
5315 ExpirationTime float32 // in seconds.
5330 }))(obj)).NodeParam2
5335 Pos, Vel, Acc [3]float32
5336 ExpirationTime float32 // in seconds.
5356 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5357 for local149 := range (*(*(struct {
5358 Pos, Vel, Acc [3]float32
5359 ExpirationTime float32 // in seconds.
5376 p := &((*(*(struct {
5377 Pos, Vel, Acc [3]float32
5378 ExpirationTime float32 // in seconds.
5393 }))(obj)).Pos)[local149]
5394 *p = math.Float32frombits(read32(r))
5397 for local150 := range (*(*(struct {
5398 Pos, Vel, Acc [3]float32
5399 ExpirationTime float32 // in seconds.
5416 p := &((*(*(struct {
5417 Pos, Vel, Acc [3]float32
5418 ExpirationTime float32 // in seconds.
5433 }))(obj)).Vel)[local150]
5434 *p = math.Float32frombits(read32(r))
5437 for local151 := range (*(*(struct {
5438 Pos, Vel, Acc [3]float32
5439 ExpirationTime float32 // in seconds.
5456 p := &((*(*(struct {
5457 Pos, Vel, Acc [3]float32
5458 ExpirationTime float32 // in seconds.
5473 }))(obj)).Acc)[local151]
5474 *p = math.Float32frombits(read32(r))
5479 Pos, Vel, Acc [3]float32
5480 ExpirationTime float32 // in seconds.
5495 }))(obj)).ExpirationTime
5496 *p = math.Float32frombits(read32(r))
5500 Pos, Vel, Acc [3]float32
5501 ExpirationTime float32 // in seconds.
5517 *p = math.Float32frombits(read32(r))
5521 Pos, Vel, Acc [3]float32
5522 ExpirationTime float32 // in seconds.
5538 switch n := read8(r); n {
5544 chk(fmt.Errorf("invalid bool: %d", n))
5548 var local152 []uint8
5554 (local152) = make([]uint8, local153)
5556 _, err := io.ReadFull(r, (local152)[:])
5559 (*(*string)(&((*(*(struct {
5560 Pos, Vel, Acc [3]float32
5561 ExpirationTime float32 // in seconds.
5576 }))(obj)).Texture))) = string(local152)
5579 Pos, Vel, Acc [3]float32
5580 ExpirationTime float32 // in seconds.
5596 switch n := read8(r); n {
5602 chk(fmt.Errorf("invalid bool: %d", n))
5608 Pos, Vel, Acc [3]float32
5609 ExpirationTime float32 // in seconds.
5624 }))(obj)).CollisionRm
5625 switch n := read8(r); n {
5631 chk(fmt.Errorf("invalid bool: %d", n))
5635 if err := pcall(func() {
5637 Pos, Vel, Acc [3]float32
5638 ExpirationTime float32 // in seconds.
5653 }))(obj)).AnimParams).deserialize(r)
5658 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
5662 Pos, Vel, Acc [3]float32
5663 ExpirationTime float32 // in seconds.
5683 Pos, Vel, Acc [3]float32
5684 ExpirationTime float32 // in seconds.
5699 }))(obj)).AOCollision
5700 switch n := read8(r); n {
5706 chk(fmt.Errorf("invalid bool: %d", n))
5710 if err := pcall(func() {
5712 Pos, Vel, Acc [3]float32
5713 ExpirationTime float32 // in seconds.
5728 }))(obj)).NodeParam0).deserialize(r)
5733 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
5737 Pos, Vel, Acc [3]float32
5738 ExpirationTime float32 // in seconds.
5753 }))(obj)).NodeParam2
5758 Pos, Vel, Acc [3]float32
5759 ExpirationTime float32 // in seconds.
5779 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5784 Pos, Vel, Acc [2][3]float32
5785 ExpirationTime [2]float32 // in seconds.
5792 ID ParticleSpawnerID
5803 write16(w, uint16(x))
5809 Pos, Vel, Acc [2][3]float32
5810 ExpirationTime [2]float32 // in seconds.
5817 ID ParticleSpawnerID
5828 write32(w, math.Float32bits(x))
5830 for local154 := range (*(*(struct {
5833 Pos, Vel, Acc [2][3]float32
5834 ExpirationTime [2]float32 // in seconds.
5841 ID ParticleSpawnerID
5852 for local155 := range ((*(*(struct {
5855 Pos, Vel, Acc [2][3]float32
5856 ExpirationTime [2]float32 // in seconds.
5863 ID ParticleSpawnerID
5873 }))(obj)).Pos)[local154] {
5875 x := (((*(*(struct {
5878 Pos, Vel, Acc [2][3]float32
5879 ExpirationTime [2]float32 // in seconds.
5886 ID ParticleSpawnerID
5896 }))(obj)).Pos)[local154])[local155]
5897 write32(w, math.Float32bits(x))
5901 for local156 := range (*(*(struct {
5904 Pos, Vel, Acc [2][3]float32
5905 ExpirationTime [2]float32 // in seconds.
5912 ID ParticleSpawnerID
5923 for local157 := range ((*(*(struct {
5926 Pos, Vel, Acc [2][3]float32
5927 ExpirationTime [2]float32 // in seconds.
5934 ID ParticleSpawnerID
5944 }))(obj)).Vel)[local156] {
5946 x := (((*(*(struct {
5949 Pos, Vel, Acc [2][3]float32
5950 ExpirationTime [2]float32 // in seconds.
5957 ID ParticleSpawnerID
5967 }))(obj)).Vel)[local156])[local157]
5968 write32(w, math.Float32bits(x))
5972 for local158 := range (*(*(struct {
5975 Pos, Vel, Acc [2][3]float32
5976 ExpirationTime [2]float32 // in seconds.
5983 ID ParticleSpawnerID
5994 for local159 := range ((*(*(struct {
5997 Pos, Vel, Acc [2][3]float32
5998 ExpirationTime [2]float32 // in seconds.
6005 ID ParticleSpawnerID
6015 }))(obj)).Acc)[local158] {
6017 x := (((*(*(struct {
6020 Pos, Vel, Acc [2][3]float32
6021 ExpirationTime [2]float32 // in seconds.
6028 ID ParticleSpawnerID
6038 }))(obj)).Acc)[local158])[local159]
6039 write32(w, math.Float32bits(x))
6043 for local160 := range (*(*(struct {
6046 Pos, Vel, Acc [2][3]float32
6047 ExpirationTime [2]float32 // in seconds.
6054 ID ParticleSpawnerID
6064 }))(obj)).ExpirationTime {
6069 Pos, Vel, Acc [2][3]float32
6070 ExpirationTime [2]float32 // in seconds.
6077 ID ParticleSpawnerID
6087 }))(obj)).ExpirationTime)[local160]
6088 write32(w, math.Float32bits(x))
6091 for local161 := range (*(*(struct {
6094 Pos, Vel, Acc [2][3]float32
6095 ExpirationTime [2]float32 // in seconds.
6102 ID ParticleSpawnerID
6117 Pos, Vel, Acc [2][3]float32
6118 ExpirationTime [2]float32 // in seconds.
6125 ID ParticleSpawnerID
6135 }))(obj)).Size)[local161]
6136 write32(w, math.Float32bits(x))
6143 Pos, Vel, Acc [2][3]float32
6144 ExpirationTime [2]float32 // in seconds.
6151 ID ParticleSpawnerID
6169 if len(([]byte(*(*string)(&((*(*(struct {
6172 Pos, Vel, Acc [2][3]float32
6173 ExpirationTime [2]float32 // in seconds.
6180 ID ParticleSpawnerID
6190 }))(obj)).Texture))))) > math.MaxUint32 {
6194 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6197 Pos, Vel, Acc [2][3]float32
6198 ExpirationTime [2]float32 // in seconds.
6205 ID ParticleSpawnerID
6215 }))(obj)).Texture))))))
6216 write32(w, uint32(x))
6219 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6222 Pos, Vel, Acc [2][3]float32
6223 ExpirationTime [2]float32 // in seconds.
6230 ID ParticleSpawnerID
6240 }))(obj)).Texture))))[:])
6243 if err := pcall(func() {
6247 Pos, Vel, Acc [2][3]float32
6248 ExpirationTime [2]float32 // in seconds.
6255 ID ParticleSpawnerID
6265 }))(obj)).ID).serialize(w)
6270 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
6276 Pos, Vel, Acc [2][3]float32
6277 ExpirationTime [2]float32 // in seconds.
6284 ID ParticleSpawnerID
6306 Pos, Vel, Acc [2][3]float32
6307 ExpirationTime [2]float32 // in seconds.
6314 ID ParticleSpawnerID
6324 }))(obj)).CollisionRm
6332 if err := pcall(func() {
6336 Pos, Vel, Acc [2][3]float32
6337 ExpirationTime [2]float32 // in seconds.
6344 ID ParticleSpawnerID
6354 }))(obj)).AttachedAOID).serialize(w)
6359 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
6361 if err := pcall(func() {
6365 Pos, Vel, Acc [2][3]float32
6366 ExpirationTime [2]float32 // in seconds.
6373 ID ParticleSpawnerID
6383 }))(obj)).AnimParams).serialize(w)
6388 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
6394 Pos, Vel, Acc [2][3]float32
6395 ExpirationTime [2]float32 // in seconds.
6402 ID ParticleSpawnerID
6419 Pos, Vel, Acc [2][3]float32
6420 ExpirationTime [2]float32 // in seconds.
6427 ID ParticleSpawnerID
6437 }))(obj)).AOCollision
6445 if err := pcall(func() {
6449 Pos, Vel, Acc [2][3]float32
6450 ExpirationTime [2]float32 // in seconds.
6457 ID ParticleSpawnerID
6467 }))(obj)).NodeParam0).serialize(w)
6472 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
6478 Pos, Vel, Acc [2][3]float32
6479 ExpirationTime [2]float32 // in seconds.
6486 ID ParticleSpawnerID
6496 }))(obj)).NodeParam2
6503 Pos, Vel, Acc [2][3]float32
6504 ExpirationTime [2]float32 // in seconds.
6511 ID ParticleSpawnerID
6526 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6531 Pos, Vel, Acc [2][3]float32
6532 ExpirationTime [2]float32 // in seconds.
6539 ID ParticleSpawnerID
6556 Pos, Vel, Acc [2][3]float32
6557 ExpirationTime [2]float32 // in seconds.
6564 ID ParticleSpawnerID
6575 *p = math.Float32frombits(read32(r))
6577 for local162 := range (*(*(struct {
6580 Pos, Vel, Acc [2][3]float32
6581 ExpirationTime [2]float32 // in seconds.
6588 ID ParticleSpawnerID
6599 for local163 := range ((*(*(struct {
6602 Pos, Vel, Acc [2][3]float32
6603 ExpirationTime [2]float32 // in seconds.
6610 ID ParticleSpawnerID
6620 }))(obj)).Pos)[local162] {
6622 p := &(((*(*(struct {
6625 Pos, Vel, Acc [2][3]float32
6626 ExpirationTime [2]float32 // in seconds.
6633 ID ParticleSpawnerID
6643 }))(obj)).Pos)[local162])[local163]
6644 *p = math.Float32frombits(read32(r))
6648 for local164 := range (*(*(struct {
6651 Pos, Vel, Acc [2][3]float32
6652 ExpirationTime [2]float32 // in seconds.
6659 ID ParticleSpawnerID
6670 for local165 := range ((*(*(struct {
6673 Pos, Vel, Acc [2][3]float32
6674 ExpirationTime [2]float32 // in seconds.
6681 ID ParticleSpawnerID
6691 }))(obj)).Vel)[local164] {
6693 p := &(((*(*(struct {
6696 Pos, Vel, Acc [2][3]float32
6697 ExpirationTime [2]float32 // in seconds.
6704 ID ParticleSpawnerID
6714 }))(obj)).Vel)[local164])[local165]
6715 *p = math.Float32frombits(read32(r))
6719 for local166 := range (*(*(struct {
6722 Pos, Vel, Acc [2][3]float32
6723 ExpirationTime [2]float32 // in seconds.
6730 ID ParticleSpawnerID
6741 for local167 := range ((*(*(struct {
6744 Pos, Vel, Acc [2][3]float32
6745 ExpirationTime [2]float32 // in seconds.
6752 ID ParticleSpawnerID
6762 }))(obj)).Acc)[local166] {
6764 p := &(((*(*(struct {
6767 Pos, Vel, Acc [2][3]float32
6768 ExpirationTime [2]float32 // in seconds.
6775 ID ParticleSpawnerID
6785 }))(obj)).Acc)[local166])[local167]
6786 *p = math.Float32frombits(read32(r))
6790 for local168 := range (*(*(struct {
6793 Pos, Vel, Acc [2][3]float32
6794 ExpirationTime [2]float32 // in seconds.
6801 ID ParticleSpawnerID
6811 }))(obj)).ExpirationTime {
6813 p := &((*(*(struct {
6816 Pos, Vel, Acc [2][3]float32
6817 ExpirationTime [2]float32 // in seconds.
6824 ID ParticleSpawnerID
6834 }))(obj)).ExpirationTime)[local168]
6835 *p = math.Float32frombits(read32(r))
6838 for local169 := range (*(*(struct {
6841 Pos, Vel, Acc [2][3]float32
6842 ExpirationTime [2]float32 // in seconds.
6849 ID ParticleSpawnerID
6861 p := &((*(*(struct {
6864 Pos, Vel, Acc [2][3]float32
6865 ExpirationTime [2]float32 // in seconds.
6872 ID ParticleSpawnerID
6882 }))(obj)).Size)[local169]
6883 *p = math.Float32frombits(read32(r))
6890 Pos, Vel, Acc [2][3]float32
6891 ExpirationTime [2]float32 // in seconds.
6898 ID ParticleSpawnerID
6909 switch n := read8(r); n {
6915 chk(fmt.Errorf("invalid bool: %d", n))
6919 var local170 []uint8
6925 (local170) = make([]uint8, local171)
6927 _, err := io.ReadFull(r, (local170)[:])
6930 (*(*string)(&((*(*(struct {
6933 Pos, Vel, Acc [2][3]float32
6934 ExpirationTime [2]float32 // in seconds.
6941 ID ParticleSpawnerID
6951 }))(obj)).Texture))) = string(local170)
6952 if err := pcall(func() {
6956 Pos, Vel, Acc [2][3]float32
6957 ExpirationTime [2]float32 // in seconds.
6964 ID ParticleSpawnerID
6974 }))(obj)).ID).deserialize(r)
6979 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
6985 Pos, Vel, Acc [2][3]float32
6986 ExpirationTime [2]float32 // in seconds.
6993 ID ParticleSpawnerID
7004 switch n := read8(r); n {
7010 chk(fmt.Errorf("invalid bool: %d", n))
7018 Pos, Vel, Acc [2][3]float32
7019 ExpirationTime [2]float32 // in seconds.
7026 ID ParticleSpawnerID
7036 }))(obj)).CollisionRm
7037 switch n := read8(r); n {
7043 chk(fmt.Errorf("invalid bool: %d", n))
7047 if err := pcall(func() {
7051 Pos, Vel, Acc [2][3]float32
7052 ExpirationTime [2]float32 // in seconds.
7059 ID ParticleSpawnerID
7069 }))(obj)).AttachedAOID).deserialize(r)
7074 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
7076 if err := pcall(func() {
7080 Pos, Vel, Acc [2][3]float32
7081 ExpirationTime [2]float32 // in seconds.
7088 ID ParticleSpawnerID
7098 }))(obj)).AnimParams).deserialize(r)
7103 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
7109 Pos, Vel, Acc [2][3]float32
7110 ExpirationTime [2]float32 // in seconds.
7117 ID ParticleSpawnerID
7134 Pos, Vel, Acc [2][3]float32
7135 ExpirationTime [2]float32 // in seconds.
7142 ID ParticleSpawnerID
7152 }))(obj)).AOCollision
7153 switch n := read8(r); n {
7159 chk(fmt.Errorf("invalid bool: %d", n))
7163 if err := pcall(func() {
7167 Pos, Vel, Acc [2][3]float32
7168 ExpirationTime [2]float32 // in seconds.
7175 ID ParticleSpawnerID
7185 }))(obj)).NodeParam0).deserialize(r)
7190 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
7196 Pos, Vel, Acc [2][3]float32
7197 ExpirationTime [2]float32 // in seconds.
7204 ID ParticleSpawnerID
7214 }))(obj)).NodeParam2
7221 Pos, Vel, Acc [2][3]float32
7222 ExpirationTime [2]float32 // in seconds.
7229 ID ParticleSpawnerID
7244 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7245 if err := pcall(func() {
7249 }))(obj)).ID).serialize(w)
7254 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7256 if err := pcall(func() {
7260 }))(obj)).HUD).serialize(w)
7265 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUD", err))
7269 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7270 if err := pcall(func() {
7274 }))(obj)).ID).deserialize(r)
7279 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7281 if err := pcall(func() {
7285 }))(obj)).HUD).deserialize(r)
7290 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUD", err))
7294 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7295 if err := pcall(func() {
7298 }))(obj)).ID).serialize(w)
7303 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7307 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7308 if err := pcall(func() {
7311 }))(obj)).ID).deserialize(r)
7316 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7320 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
7321 if err := pcall(func() {
7327 //mt:if %s.Field == HUDPos
7330 //mt:if %s.Field == HUDName
7333 //mt:if %s.Field == HUDScale
7336 //mt:if %s.Field == HUDText
7339 //mt:if %s.Field == HUDNumber
7342 //mt:if %s.Field == HUDItem
7345 //mt:if %s.Field == HUDDir
7348 //mt:if %s.Field == HUDAlign
7351 //mt:if %s.Field == HUDOffset
7354 //mt:if %s.Field == HUDWorldPos
7357 //mt:if %s.Field == HUDSize
7360 //mt:if %s.Field == HUDZIndex
7363 //mt:if %s.Field == HUDText2
7365 }))(obj)).ID).serialize(w)
7370 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7372 if err := pcall(func() {
7378 //mt:if %s.Field == HUDPos
7381 //mt:if %s.Field == HUDName
7384 //mt:if %s.Field == HUDScale
7387 //mt:if %s.Field == HUDText
7390 //mt:if %s.Field == HUDNumber
7393 //mt:if %s.Field == HUDItem
7396 //mt:if %s.Field == HUDDir
7399 //mt:if %s.Field == HUDAlign
7402 //mt:if %s.Field == HUDOffset
7405 //mt:if %s.Field == HUDWorldPos
7408 //mt:if %s.Field == HUDSize
7411 //mt:if %s.Field == HUDZIndex
7414 //mt:if %s.Field == HUDText2
7416 }))(obj)).Field).serialize(w)
7421 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
7428 //mt:if %s.Field == HUDPos
7431 //mt:if %s.Field == HUDName
7434 //mt:if %s.Field == HUDScale
7437 //mt:if %s.Field == HUDText
7440 //mt:if %s.Field == HUDNumber
7443 //mt:if %s.Field == HUDItem
7446 //mt:if %s.Field == HUDDir
7449 //mt:if %s.Field == HUDAlign
7452 //mt:if %s.Field == HUDOffset
7455 //mt:if %s.Field == HUDWorldPos
7458 //mt:if %s.Field == HUDSize
7461 //mt:if %s.Field == HUDZIndex
7464 //mt:if %s.Field == HUDText2
7466 }))(obj)).Field < hudMax) {
7467 chk(errors.New("assertion failed: %s.Field < hudMax"))
7474 //mt:if %s.Field == HUDPos
7477 //mt:if %s.Field == HUDName
7480 //mt:if %s.Field == HUDScale
7483 //mt:if %s.Field == HUDText
7486 //mt:if %s.Field == HUDNumber
7489 //mt:if %s.Field == HUDItem
7492 //mt:if %s.Field == HUDDir
7495 //mt:if %s.Field == HUDAlign
7498 //mt:if %s.Field == HUDOffset
7501 //mt:if %s.Field == HUDWorldPos
7504 //mt:if %s.Field == HUDSize
7507 //mt:if %s.Field == HUDZIndex
7510 //mt:if %s.Field == HUDText2
7512 }))(obj)).Field == HUDPos {
7513 for local172 := range (*(*(struct {
7518 //mt:if %s.Field == HUDPos
7521 //mt:if %s.Field == HUDName
7524 //mt:if %s.Field == HUDScale
7527 //mt:if %s.Field == HUDText
7530 //mt:if %s.Field == HUDNumber
7533 //mt:if %s.Field == HUDItem
7536 //mt:if %s.Field == HUDDir
7539 //mt:if %s.Field == HUDAlign
7542 //mt:if %s.Field == HUDOffset
7545 //mt:if %s.Field == HUDWorldPos
7548 //mt:if %s.Field == HUDSize
7551 //mt:if %s.Field == HUDZIndex
7554 //mt:if %s.Field == HUDText2
7563 //mt:if %s.Field == HUDPos
7566 //mt:if %s.Field == HUDName
7569 //mt:if %s.Field == HUDScale
7572 //mt:if %s.Field == HUDText
7575 //mt:if %s.Field == HUDNumber
7578 //mt:if %s.Field == HUDItem
7581 //mt:if %s.Field == HUDDir
7584 //mt:if %s.Field == HUDAlign
7587 //mt:if %s.Field == HUDOffset
7590 //mt:if %s.Field == HUDWorldPos
7593 //mt:if %s.Field == HUDSize
7596 //mt:if %s.Field == HUDZIndex
7599 //mt:if %s.Field == HUDText2
7601 }))(obj)).Pos)[local172]
7602 write32(w, math.Float32bits(x))
7611 //mt:if %s.Field == HUDPos
7614 //mt:if %s.Field == HUDName
7617 //mt:if %s.Field == HUDScale
7620 //mt:if %s.Field == HUDText
7623 //mt:if %s.Field == HUDNumber
7626 //mt:if %s.Field == HUDItem
7629 //mt:if %s.Field == HUDDir
7632 //mt:if %s.Field == HUDAlign
7635 //mt:if %s.Field == HUDOffset
7638 //mt:if %s.Field == HUDWorldPos
7641 //mt:if %s.Field == HUDSize
7644 //mt:if %s.Field == HUDZIndex
7647 //mt:if %s.Field == HUDText2
7649 }))(obj)).Field == HUDName {
7650 if len(([]byte((*(*(struct {
7655 //mt:if %s.Field == HUDPos
7658 //mt:if %s.Field == HUDName
7661 //mt:if %s.Field == HUDScale
7664 //mt:if %s.Field == HUDText
7667 //mt:if %s.Field == HUDNumber
7670 //mt:if %s.Field == HUDItem
7673 //mt:if %s.Field == HUDDir
7676 //mt:if %s.Field == HUDAlign
7679 //mt:if %s.Field == HUDOffset
7682 //mt:if %s.Field == HUDWorldPos
7685 //mt:if %s.Field == HUDSize
7688 //mt:if %s.Field == HUDZIndex
7691 //mt:if %s.Field == HUDText2
7693 }))(obj)).Name))) > math.MaxUint16 {
7697 x := uint16(len(([]byte((*(*(struct {
7702 //mt:if %s.Field == HUDPos
7705 //mt:if %s.Field == HUDName
7708 //mt:if %s.Field == HUDScale
7711 //mt:if %s.Field == HUDText
7714 //mt:if %s.Field == HUDNumber
7717 //mt:if %s.Field == HUDItem
7720 //mt:if %s.Field == HUDDir
7723 //mt:if %s.Field == HUDAlign
7726 //mt:if %s.Field == HUDOffset
7729 //mt:if %s.Field == HUDWorldPos
7732 //mt:if %s.Field == HUDSize
7735 //mt:if %s.Field == HUDZIndex
7738 //mt:if %s.Field == HUDText2
7741 write16(w, uint16(x))
7744 _, err := w.Write(([]byte((*(*(struct {
7749 //mt:if %s.Field == HUDPos
7752 //mt:if %s.Field == HUDName
7755 //mt:if %s.Field == HUDScale
7758 //mt:if %s.Field == HUDText
7761 //mt:if %s.Field == HUDNumber
7764 //mt:if %s.Field == HUDItem
7767 //mt:if %s.Field == HUDDir
7770 //mt:if %s.Field == HUDAlign
7773 //mt:if %s.Field == HUDOffset
7776 //mt:if %s.Field == HUDWorldPos
7779 //mt:if %s.Field == HUDSize
7782 //mt:if %s.Field == HUDZIndex
7785 //mt:if %s.Field == HUDText2
7787 }))(obj)).Name))[:])
7796 //mt:if %s.Field == HUDPos
7799 //mt:if %s.Field == HUDName
7802 //mt:if %s.Field == HUDScale
7805 //mt:if %s.Field == HUDText
7808 //mt:if %s.Field == HUDNumber
7811 //mt:if %s.Field == HUDItem
7814 //mt:if %s.Field == HUDDir
7817 //mt:if %s.Field == HUDAlign
7820 //mt:if %s.Field == HUDOffset
7823 //mt:if %s.Field == HUDWorldPos
7826 //mt:if %s.Field == HUDSize
7829 //mt:if %s.Field == HUDZIndex
7832 //mt:if %s.Field == HUDText2
7834 }))(obj)).Field == HUDScale {
7835 for local173 := range (*(*(struct {
7840 //mt:if %s.Field == HUDPos
7843 //mt:if %s.Field == HUDName
7846 //mt:if %s.Field == HUDScale
7849 //mt:if %s.Field == HUDText
7852 //mt:if %s.Field == HUDNumber
7855 //mt:if %s.Field == HUDItem
7858 //mt:if %s.Field == HUDDir
7861 //mt:if %s.Field == HUDAlign
7864 //mt:if %s.Field == HUDOffset
7867 //mt:if %s.Field == HUDWorldPos
7870 //mt:if %s.Field == HUDSize
7873 //mt:if %s.Field == HUDZIndex
7876 //mt:if %s.Field == HUDText2
7885 //mt:if %s.Field == HUDPos
7888 //mt:if %s.Field == HUDName
7891 //mt:if %s.Field == HUDScale
7894 //mt:if %s.Field == HUDText
7897 //mt:if %s.Field == HUDNumber
7900 //mt:if %s.Field == HUDItem
7903 //mt:if %s.Field == HUDDir
7906 //mt:if %s.Field == HUDAlign
7909 //mt:if %s.Field == HUDOffset
7912 //mt:if %s.Field == HUDWorldPos
7915 //mt:if %s.Field == HUDSize
7918 //mt:if %s.Field == HUDZIndex
7921 //mt:if %s.Field == HUDText2
7923 }))(obj)).Scale)[local173]
7924 write32(w, math.Float32bits(x))
7933 //mt:if %s.Field == HUDPos
7936 //mt:if %s.Field == HUDName
7939 //mt:if %s.Field == HUDScale
7942 //mt:if %s.Field == HUDText
7945 //mt:if %s.Field == HUDNumber
7948 //mt:if %s.Field == HUDItem
7951 //mt:if %s.Field == HUDDir
7954 //mt:if %s.Field == HUDAlign
7957 //mt:if %s.Field == HUDOffset
7960 //mt:if %s.Field == HUDWorldPos
7963 //mt:if %s.Field == HUDSize
7966 //mt:if %s.Field == HUDZIndex
7969 //mt:if %s.Field == HUDText2
7971 }))(obj)).Field == HUDText {
7972 if len(([]byte((*(*(struct {
7977 //mt:if %s.Field == HUDPos
7980 //mt:if %s.Field == HUDName
7983 //mt:if %s.Field == HUDScale
7986 //mt:if %s.Field == HUDText
7989 //mt:if %s.Field == HUDNumber
7992 //mt:if %s.Field == HUDItem
7995 //mt:if %s.Field == HUDDir
7998 //mt:if %s.Field == HUDAlign
8001 //mt:if %s.Field == HUDOffset
8004 //mt:if %s.Field == HUDWorldPos
8007 //mt:if %s.Field == HUDSize
8010 //mt:if %s.Field == HUDZIndex
8013 //mt:if %s.Field == HUDText2
8015 }))(obj)).Text))) > math.MaxUint16 {
8019 x := uint16(len(([]byte((*(*(struct {
8024 //mt:if %s.Field == HUDPos
8027 //mt:if %s.Field == HUDName
8030 //mt:if %s.Field == HUDScale
8033 //mt:if %s.Field == HUDText
8036 //mt:if %s.Field == HUDNumber
8039 //mt:if %s.Field == HUDItem
8042 //mt:if %s.Field == HUDDir
8045 //mt:if %s.Field == HUDAlign
8048 //mt:if %s.Field == HUDOffset
8051 //mt:if %s.Field == HUDWorldPos
8054 //mt:if %s.Field == HUDSize
8057 //mt:if %s.Field == HUDZIndex
8060 //mt:if %s.Field == HUDText2
8063 write16(w, uint16(x))
8066 _, err := w.Write(([]byte((*(*(struct {
8071 //mt:if %s.Field == HUDPos
8074 //mt:if %s.Field == HUDName
8077 //mt:if %s.Field == HUDScale
8080 //mt:if %s.Field == HUDText
8083 //mt:if %s.Field == HUDNumber
8086 //mt:if %s.Field == HUDItem
8089 //mt:if %s.Field == HUDDir
8092 //mt:if %s.Field == HUDAlign
8095 //mt:if %s.Field == HUDOffset
8098 //mt:if %s.Field == HUDWorldPos
8101 //mt:if %s.Field == HUDSize
8104 //mt:if %s.Field == HUDZIndex
8107 //mt:if %s.Field == HUDText2
8109 }))(obj)).Text))[:])
8118 //mt:if %s.Field == HUDPos
8121 //mt:if %s.Field == HUDName
8124 //mt:if %s.Field == HUDScale
8127 //mt:if %s.Field == HUDText
8130 //mt:if %s.Field == HUDNumber
8133 //mt:if %s.Field == HUDItem
8136 //mt:if %s.Field == HUDDir
8139 //mt:if %s.Field == HUDAlign
8142 //mt:if %s.Field == HUDOffset
8145 //mt:if %s.Field == HUDWorldPos
8148 //mt:if %s.Field == HUDSize
8151 //mt:if %s.Field == HUDZIndex
8154 //mt:if %s.Field == HUDText2
8156 }))(obj)).Field == HUDNumber {
8163 //mt:if %s.Field == HUDPos
8166 //mt:if %s.Field == HUDName
8169 //mt:if %s.Field == HUDScale
8172 //mt:if %s.Field == HUDText
8175 //mt:if %s.Field == HUDNumber
8178 //mt:if %s.Field == HUDItem
8181 //mt:if %s.Field == HUDDir
8184 //mt:if %s.Field == HUDAlign
8187 //mt:if %s.Field == HUDOffset
8190 //mt:if %s.Field == HUDWorldPos
8193 //mt:if %s.Field == HUDSize
8196 //mt:if %s.Field == HUDZIndex
8199 //mt:if %s.Field == HUDText2
8202 write32(w, uint32(x))
8210 //mt:if %s.Field == HUDPos
8213 //mt:if %s.Field == HUDName
8216 //mt:if %s.Field == HUDScale
8219 //mt:if %s.Field == HUDText
8222 //mt:if %s.Field == HUDNumber
8225 //mt:if %s.Field == HUDItem
8228 //mt:if %s.Field == HUDDir
8231 //mt:if %s.Field == HUDAlign
8234 //mt:if %s.Field == HUDOffset
8237 //mt:if %s.Field == HUDWorldPos
8240 //mt:if %s.Field == HUDSize
8243 //mt:if %s.Field == HUDZIndex
8246 //mt:if %s.Field == HUDText2
8248 }))(obj)).Field == HUDItem {
8255 //mt:if %s.Field == HUDPos
8258 //mt:if %s.Field == HUDName
8261 //mt:if %s.Field == HUDScale
8264 //mt:if %s.Field == HUDText
8267 //mt:if %s.Field == HUDNumber
8270 //mt:if %s.Field == HUDItem
8273 //mt:if %s.Field == HUDDir
8276 //mt:if %s.Field == HUDAlign
8279 //mt:if %s.Field == HUDOffset
8282 //mt:if %s.Field == HUDWorldPos
8285 //mt:if %s.Field == HUDSize
8288 //mt:if %s.Field == HUDZIndex
8291 //mt:if %s.Field == HUDText2
8294 write32(w, uint32(x))
8302 //mt:if %s.Field == HUDPos
8305 //mt:if %s.Field == HUDName
8308 //mt:if %s.Field == HUDScale
8311 //mt:if %s.Field == HUDText
8314 //mt:if %s.Field == HUDNumber
8317 //mt:if %s.Field == HUDItem
8320 //mt:if %s.Field == HUDDir
8323 //mt:if %s.Field == HUDAlign
8326 //mt:if %s.Field == HUDOffset
8329 //mt:if %s.Field == HUDWorldPos
8332 //mt:if %s.Field == HUDSize
8335 //mt:if %s.Field == HUDZIndex
8338 //mt:if %s.Field == HUDText2
8340 }))(obj)).Field == HUDDir {
8347 //mt:if %s.Field == HUDPos
8350 //mt:if %s.Field == HUDName
8353 //mt:if %s.Field == HUDScale
8356 //mt:if %s.Field == HUDText
8359 //mt:if %s.Field == HUDNumber
8362 //mt:if %s.Field == HUDItem
8365 //mt:if %s.Field == HUDDir
8368 //mt:if %s.Field == HUDAlign
8371 //mt:if %s.Field == HUDOffset
8374 //mt:if %s.Field == HUDWorldPos
8377 //mt:if %s.Field == HUDSize
8380 //mt:if %s.Field == HUDZIndex
8383 //mt:if %s.Field == HUDText2
8386 write32(w, uint32(x))
8394 //mt:if %s.Field == HUDPos
8397 //mt:if %s.Field == HUDName
8400 //mt:if %s.Field == HUDScale
8403 //mt:if %s.Field == HUDText
8406 //mt:if %s.Field == HUDNumber
8409 //mt:if %s.Field == HUDItem
8412 //mt:if %s.Field == HUDDir
8415 //mt:if %s.Field == HUDAlign
8418 //mt:if %s.Field == HUDOffset
8421 //mt:if %s.Field == HUDWorldPos
8424 //mt:if %s.Field == HUDSize
8427 //mt:if %s.Field == HUDZIndex
8430 //mt:if %s.Field == HUDText2
8432 }))(obj)).Field == HUDAlign {
8433 for local174 := range (*(*(struct {
8438 //mt:if %s.Field == HUDPos
8441 //mt:if %s.Field == HUDName
8444 //mt:if %s.Field == HUDScale
8447 //mt:if %s.Field == HUDText
8450 //mt:if %s.Field == HUDNumber
8453 //mt:if %s.Field == HUDItem
8456 //mt:if %s.Field == HUDDir
8459 //mt:if %s.Field == HUDAlign
8462 //mt:if %s.Field == HUDOffset
8465 //mt:if %s.Field == HUDWorldPos
8468 //mt:if %s.Field == HUDSize
8471 //mt:if %s.Field == HUDZIndex
8474 //mt:if %s.Field == HUDText2
8483 //mt:if %s.Field == HUDPos
8486 //mt:if %s.Field == HUDName
8489 //mt:if %s.Field == HUDScale
8492 //mt:if %s.Field == HUDText
8495 //mt:if %s.Field == HUDNumber
8498 //mt:if %s.Field == HUDItem
8501 //mt:if %s.Field == HUDDir
8504 //mt:if %s.Field == HUDAlign
8507 //mt:if %s.Field == HUDOffset
8510 //mt:if %s.Field == HUDWorldPos
8513 //mt:if %s.Field == HUDSize
8516 //mt:if %s.Field == HUDZIndex
8519 //mt:if %s.Field == HUDText2
8521 }))(obj)).Align)[local174]
8522 write32(w, math.Float32bits(x))
8531 //mt:if %s.Field == HUDPos
8534 //mt:if %s.Field == HUDName
8537 //mt:if %s.Field == HUDScale
8540 //mt:if %s.Field == HUDText
8543 //mt:if %s.Field == HUDNumber
8546 //mt:if %s.Field == HUDItem
8549 //mt:if %s.Field == HUDDir
8552 //mt:if %s.Field == HUDAlign
8555 //mt:if %s.Field == HUDOffset
8558 //mt:if %s.Field == HUDWorldPos
8561 //mt:if %s.Field == HUDSize
8564 //mt:if %s.Field == HUDZIndex
8567 //mt:if %s.Field == HUDText2
8569 }))(obj)).Field == HUDOffset {
8570 for local175 := range (*(*(struct {
8575 //mt:if %s.Field == HUDPos
8578 //mt:if %s.Field == HUDName
8581 //mt:if %s.Field == HUDScale
8584 //mt:if %s.Field == HUDText
8587 //mt:if %s.Field == HUDNumber
8590 //mt:if %s.Field == HUDItem
8593 //mt:if %s.Field == HUDDir
8596 //mt:if %s.Field == HUDAlign
8599 //mt:if %s.Field == HUDOffset
8602 //mt:if %s.Field == HUDWorldPos
8605 //mt:if %s.Field == HUDSize
8608 //mt:if %s.Field == HUDZIndex
8611 //mt:if %s.Field == HUDText2
8620 //mt:if %s.Field == HUDPos
8623 //mt:if %s.Field == HUDName
8626 //mt:if %s.Field == HUDScale
8629 //mt:if %s.Field == HUDText
8632 //mt:if %s.Field == HUDNumber
8635 //mt:if %s.Field == HUDItem
8638 //mt:if %s.Field == HUDDir
8641 //mt:if %s.Field == HUDAlign
8644 //mt:if %s.Field == HUDOffset
8647 //mt:if %s.Field == HUDWorldPos
8650 //mt:if %s.Field == HUDSize
8653 //mt:if %s.Field == HUDZIndex
8656 //mt:if %s.Field == HUDText2
8658 }))(obj)).Offset)[local175]
8659 write32(w, math.Float32bits(x))
8668 //mt:if %s.Field == HUDPos
8671 //mt:if %s.Field == HUDName
8674 //mt:if %s.Field == HUDScale
8677 //mt:if %s.Field == HUDText
8680 //mt:if %s.Field == HUDNumber
8683 //mt:if %s.Field == HUDItem
8686 //mt:if %s.Field == HUDDir
8689 //mt:if %s.Field == HUDAlign
8692 //mt:if %s.Field == HUDOffset
8695 //mt:if %s.Field == HUDWorldPos
8698 //mt:if %s.Field == HUDSize
8701 //mt:if %s.Field == HUDZIndex
8704 //mt:if %s.Field == HUDText2
8706 }))(obj)).Field == HUDWorldPos {
8707 if err := pcall(func() {
8713 //mt:if %s.Field == HUDPos
8716 //mt:if %s.Field == HUDName
8719 //mt:if %s.Field == HUDScale
8722 //mt:if %s.Field == HUDText
8725 //mt:if %s.Field == HUDNumber
8728 //mt:if %s.Field == HUDItem
8731 //mt:if %s.Field == HUDDir
8734 //mt:if %s.Field == HUDAlign
8737 //mt:if %s.Field == HUDOffset
8740 //mt:if %s.Field == HUDWorldPos
8743 //mt:if %s.Field == HUDSize
8746 //mt:if %s.Field == HUDZIndex
8749 //mt:if %s.Field == HUDText2
8751 }))(obj)).WorldPos).serialize(w)
8756 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
8764 //mt:if %s.Field == HUDPos
8767 //mt:if %s.Field == HUDName
8770 //mt:if %s.Field == HUDScale
8773 //mt:if %s.Field == HUDText
8776 //mt:if %s.Field == HUDNumber
8779 //mt:if %s.Field == HUDItem
8782 //mt:if %s.Field == HUDDir
8785 //mt:if %s.Field == HUDAlign
8788 //mt:if %s.Field == HUDOffset
8791 //mt:if %s.Field == HUDWorldPos
8794 //mt:if %s.Field == HUDSize
8797 //mt:if %s.Field == HUDZIndex
8800 //mt:if %s.Field == HUDText2
8802 }))(obj)).Field == HUDSize {
8803 for local176 := range (*(*(struct {
8808 //mt:if %s.Field == HUDPos
8811 //mt:if %s.Field == HUDName
8814 //mt:if %s.Field == HUDScale
8817 //mt:if %s.Field == HUDText
8820 //mt:if %s.Field == HUDNumber
8823 //mt:if %s.Field == HUDItem
8826 //mt:if %s.Field == HUDDir
8829 //mt:if %s.Field == HUDAlign
8832 //mt:if %s.Field == HUDOffset
8835 //mt:if %s.Field == HUDWorldPos
8838 //mt:if %s.Field == HUDSize
8841 //mt:if %s.Field == HUDZIndex
8844 //mt:if %s.Field == HUDText2
8853 //mt:if %s.Field == HUDPos
8856 //mt:if %s.Field == HUDName
8859 //mt:if %s.Field == HUDScale
8862 //mt:if %s.Field == HUDText
8865 //mt:if %s.Field == HUDNumber
8868 //mt:if %s.Field == HUDItem
8871 //mt:if %s.Field == HUDDir
8874 //mt:if %s.Field == HUDAlign
8877 //mt:if %s.Field == HUDOffset
8880 //mt:if %s.Field == HUDWorldPos
8883 //mt:if %s.Field == HUDSize
8886 //mt:if %s.Field == HUDZIndex
8889 //mt:if %s.Field == HUDText2
8891 }))(obj)).Size)[local176]
8892 write32(w, uint32(x))
8901 //mt:if %s.Field == HUDPos
8904 //mt:if %s.Field == HUDName
8907 //mt:if %s.Field == HUDScale
8910 //mt:if %s.Field == HUDText
8913 //mt:if %s.Field == HUDNumber
8916 //mt:if %s.Field == HUDItem
8919 //mt:if %s.Field == HUDDir
8922 //mt:if %s.Field == HUDAlign
8925 //mt:if %s.Field == HUDOffset
8928 //mt:if %s.Field == HUDWorldPos
8931 //mt:if %s.Field == HUDSize
8934 //mt:if %s.Field == HUDZIndex
8937 //mt:if %s.Field == HUDText2
8939 }))(obj)).Field == HUDZIndex {
8946 //mt:if %s.Field == HUDPos
8949 //mt:if %s.Field == HUDName
8952 //mt:if %s.Field == HUDScale
8955 //mt:if %s.Field == HUDText
8958 //mt:if %s.Field == HUDNumber
8961 //mt:if %s.Field == HUDItem
8964 //mt:if %s.Field == HUDDir
8967 //mt:if %s.Field == HUDAlign
8970 //mt:if %s.Field == HUDOffset
8973 //mt:if %s.Field == HUDWorldPos
8976 //mt:if %s.Field == HUDSize
8979 //mt:if %s.Field == HUDZIndex
8982 //mt:if %s.Field == HUDText2
8985 write32(w, uint32(x))
8993 //mt:if %s.Field == HUDPos
8996 //mt:if %s.Field == HUDName
8999 //mt:if %s.Field == HUDScale
9002 //mt:if %s.Field == HUDText
9005 //mt:if %s.Field == HUDNumber
9008 //mt:if %s.Field == HUDItem
9011 //mt:if %s.Field == HUDDir
9014 //mt:if %s.Field == HUDAlign
9017 //mt:if %s.Field == HUDOffset
9020 //mt:if %s.Field == HUDWorldPos
9023 //mt:if %s.Field == HUDSize
9026 //mt:if %s.Field == HUDZIndex
9029 //mt:if %s.Field == HUDText2
9031 }))(obj)).Field == HUDText2 {
9032 if len(([]byte((*(*(struct {
9037 //mt:if %s.Field == HUDPos
9040 //mt:if %s.Field == HUDName
9043 //mt:if %s.Field == HUDScale
9046 //mt:if %s.Field == HUDText
9049 //mt:if %s.Field == HUDNumber
9052 //mt:if %s.Field == HUDItem
9055 //mt:if %s.Field == HUDDir
9058 //mt:if %s.Field == HUDAlign
9061 //mt:if %s.Field == HUDOffset
9064 //mt:if %s.Field == HUDWorldPos
9067 //mt:if %s.Field == HUDSize
9070 //mt:if %s.Field == HUDZIndex
9073 //mt:if %s.Field == HUDText2
9075 }))(obj)).Text2))) > math.MaxUint16 {
9079 x := uint16(len(([]byte((*(*(struct {
9084 //mt:if %s.Field == HUDPos
9087 //mt:if %s.Field == HUDName
9090 //mt:if %s.Field == HUDScale
9093 //mt:if %s.Field == HUDText
9096 //mt:if %s.Field == HUDNumber
9099 //mt:if %s.Field == HUDItem
9102 //mt:if %s.Field == HUDDir
9105 //mt:if %s.Field == HUDAlign
9108 //mt:if %s.Field == HUDOffset
9111 //mt:if %s.Field == HUDWorldPos
9114 //mt:if %s.Field == HUDSize
9117 //mt:if %s.Field == HUDZIndex
9120 //mt:if %s.Field == HUDText2
9123 write16(w, uint16(x))
9126 _, err := w.Write(([]byte((*(*(struct {
9131 //mt:if %s.Field == HUDPos
9134 //mt:if %s.Field == HUDName
9137 //mt:if %s.Field == HUDScale
9140 //mt:if %s.Field == HUDText
9143 //mt:if %s.Field == HUDNumber
9146 //mt:if %s.Field == HUDItem
9149 //mt:if %s.Field == HUDDir
9152 //mt:if %s.Field == HUDAlign
9155 //mt:if %s.Field == HUDOffset
9158 //mt:if %s.Field == HUDWorldPos
9161 //mt:if %s.Field == HUDSize
9164 //mt:if %s.Field == HUDZIndex
9167 //mt:if %s.Field == HUDText2
9169 }))(obj)).Text2))[:])
9175 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9176 if err := pcall(func() {
9182 //mt:if %s.Field == HUDPos
9185 //mt:if %s.Field == HUDName
9188 //mt:if %s.Field == HUDScale
9191 //mt:if %s.Field == HUDText
9194 //mt:if %s.Field == HUDNumber
9197 //mt:if %s.Field == HUDItem
9200 //mt:if %s.Field == HUDDir
9203 //mt:if %s.Field == HUDAlign
9206 //mt:if %s.Field == HUDOffset
9209 //mt:if %s.Field == HUDWorldPos
9212 //mt:if %s.Field == HUDSize
9215 //mt:if %s.Field == HUDZIndex
9218 //mt:if %s.Field == HUDText2
9220 }))(obj)).ID).deserialize(r)
9225 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
9227 if err := pcall(func() {
9233 //mt:if %s.Field == HUDPos
9236 //mt:if %s.Field == HUDName
9239 //mt:if %s.Field == HUDScale
9242 //mt:if %s.Field == HUDText
9245 //mt:if %s.Field == HUDNumber
9248 //mt:if %s.Field == HUDItem
9251 //mt:if %s.Field == HUDDir
9254 //mt:if %s.Field == HUDAlign
9257 //mt:if %s.Field == HUDOffset
9260 //mt:if %s.Field == HUDWorldPos
9263 //mt:if %s.Field == HUDSize
9266 //mt:if %s.Field == HUDZIndex
9269 //mt:if %s.Field == HUDText2
9271 }))(obj)).Field).deserialize(r)
9276 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
9283 //mt:if %s.Field == HUDPos
9286 //mt:if %s.Field == HUDName
9289 //mt:if %s.Field == HUDScale
9292 //mt:if %s.Field == HUDText
9295 //mt:if %s.Field == HUDNumber
9298 //mt:if %s.Field == HUDItem
9301 //mt:if %s.Field == HUDDir
9304 //mt:if %s.Field == HUDAlign
9307 //mt:if %s.Field == HUDOffset
9310 //mt:if %s.Field == HUDWorldPos
9313 //mt:if %s.Field == HUDSize
9316 //mt:if %s.Field == HUDZIndex
9319 //mt:if %s.Field == HUDText2
9321 }))(obj)).Field < hudMax) {
9322 chk(errors.New("assertion failed: %s.Field < hudMax"))
9329 //mt:if %s.Field == HUDPos
9332 //mt:if %s.Field == HUDName
9335 //mt:if %s.Field == HUDScale
9338 //mt:if %s.Field == HUDText
9341 //mt:if %s.Field == HUDNumber
9344 //mt:if %s.Field == HUDItem
9347 //mt:if %s.Field == HUDDir
9350 //mt:if %s.Field == HUDAlign
9353 //mt:if %s.Field == HUDOffset
9356 //mt:if %s.Field == HUDWorldPos
9359 //mt:if %s.Field == HUDSize
9362 //mt:if %s.Field == HUDZIndex
9365 //mt:if %s.Field == HUDText2
9367 }))(obj)).Field == HUDPos {
9368 for local177 := range (*(*(struct {
9373 //mt:if %s.Field == HUDPos
9376 //mt:if %s.Field == HUDName
9379 //mt:if %s.Field == HUDScale
9382 //mt:if %s.Field == HUDText
9385 //mt:if %s.Field == HUDNumber
9388 //mt:if %s.Field == HUDItem
9391 //mt:if %s.Field == HUDDir
9394 //mt:if %s.Field == HUDAlign
9397 //mt:if %s.Field == HUDOffset
9400 //mt:if %s.Field == HUDWorldPos
9403 //mt:if %s.Field == HUDSize
9406 //mt:if %s.Field == HUDZIndex
9409 //mt:if %s.Field == HUDText2
9413 p := &((*(*(struct {
9418 //mt:if %s.Field == HUDPos
9421 //mt:if %s.Field == HUDName
9424 //mt:if %s.Field == HUDScale
9427 //mt:if %s.Field == HUDText
9430 //mt:if %s.Field == HUDNumber
9433 //mt:if %s.Field == HUDItem
9436 //mt:if %s.Field == HUDDir
9439 //mt:if %s.Field == HUDAlign
9442 //mt:if %s.Field == HUDOffset
9445 //mt:if %s.Field == HUDWorldPos
9448 //mt:if %s.Field == HUDSize
9451 //mt:if %s.Field == HUDZIndex
9454 //mt:if %s.Field == HUDText2
9456 }))(obj)).Pos)[local177]
9457 *p = math.Float32frombits(read32(r))
9466 //mt:if %s.Field == HUDPos
9469 //mt:if %s.Field == HUDName
9472 //mt:if %s.Field == HUDScale
9475 //mt:if %s.Field == HUDText
9478 //mt:if %s.Field == HUDNumber
9481 //mt:if %s.Field == HUDItem
9484 //mt:if %s.Field == HUDDir
9487 //mt:if %s.Field == HUDAlign
9490 //mt:if %s.Field == HUDOffset
9493 //mt:if %s.Field == HUDWorldPos
9496 //mt:if %s.Field == HUDSize
9499 //mt:if %s.Field == HUDZIndex
9502 //mt:if %s.Field == HUDText2
9504 }))(obj)).Field == HUDName {
9505 var local178 []uint8
9511 (local178) = make([]uint8, local179)
9513 _, err := io.ReadFull(r, (local178)[:])
9521 //mt:if %s.Field == HUDPos
9524 //mt:if %s.Field == HUDName
9527 //mt:if %s.Field == HUDScale
9530 //mt:if %s.Field == HUDText
9533 //mt:if %s.Field == HUDNumber
9536 //mt:if %s.Field == HUDItem
9539 //mt:if %s.Field == HUDDir
9542 //mt:if %s.Field == HUDAlign
9545 //mt:if %s.Field == HUDOffset
9548 //mt:if %s.Field == HUDWorldPos
9551 //mt:if %s.Field == HUDSize
9554 //mt:if %s.Field == HUDZIndex
9557 //mt:if %s.Field == HUDText2
9559 }))(obj)).Name) = string(local178)
9566 //mt:if %s.Field == HUDPos
9569 //mt:if %s.Field == HUDName
9572 //mt:if %s.Field == HUDScale
9575 //mt:if %s.Field == HUDText
9578 //mt:if %s.Field == HUDNumber
9581 //mt:if %s.Field == HUDItem
9584 //mt:if %s.Field == HUDDir
9587 //mt:if %s.Field == HUDAlign
9590 //mt:if %s.Field == HUDOffset
9593 //mt:if %s.Field == HUDWorldPos
9596 //mt:if %s.Field == HUDSize
9599 //mt:if %s.Field == HUDZIndex
9602 //mt:if %s.Field == HUDText2
9604 }))(obj)).Field == HUDScale {
9605 for local180 := range (*(*(struct {
9610 //mt:if %s.Field == HUDPos
9613 //mt:if %s.Field == HUDName
9616 //mt:if %s.Field == HUDScale
9619 //mt:if %s.Field == HUDText
9622 //mt:if %s.Field == HUDNumber
9625 //mt:if %s.Field == HUDItem
9628 //mt:if %s.Field == HUDDir
9631 //mt:if %s.Field == HUDAlign
9634 //mt:if %s.Field == HUDOffset
9637 //mt:if %s.Field == HUDWorldPos
9640 //mt:if %s.Field == HUDSize
9643 //mt:if %s.Field == HUDZIndex
9646 //mt:if %s.Field == HUDText2
9650 p := &((*(*(struct {
9655 //mt:if %s.Field == HUDPos
9658 //mt:if %s.Field == HUDName
9661 //mt:if %s.Field == HUDScale
9664 //mt:if %s.Field == HUDText
9667 //mt:if %s.Field == HUDNumber
9670 //mt:if %s.Field == HUDItem
9673 //mt:if %s.Field == HUDDir
9676 //mt:if %s.Field == HUDAlign
9679 //mt:if %s.Field == HUDOffset
9682 //mt:if %s.Field == HUDWorldPos
9685 //mt:if %s.Field == HUDSize
9688 //mt:if %s.Field == HUDZIndex
9691 //mt:if %s.Field == HUDText2
9693 }))(obj)).Scale)[local180]
9694 *p = math.Float32frombits(read32(r))
9703 //mt:if %s.Field == HUDPos
9706 //mt:if %s.Field == HUDName
9709 //mt:if %s.Field == HUDScale
9712 //mt:if %s.Field == HUDText
9715 //mt:if %s.Field == HUDNumber
9718 //mt:if %s.Field == HUDItem
9721 //mt:if %s.Field == HUDDir
9724 //mt:if %s.Field == HUDAlign
9727 //mt:if %s.Field == HUDOffset
9730 //mt:if %s.Field == HUDWorldPos
9733 //mt:if %s.Field == HUDSize
9736 //mt:if %s.Field == HUDZIndex
9739 //mt:if %s.Field == HUDText2
9741 }))(obj)).Field == HUDText {
9742 var local181 []uint8
9748 (local181) = make([]uint8, local182)
9750 _, err := io.ReadFull(r, (local181)[:])
9758 //mt:if %s.Field == HUDPos
9761 //mt:if %s.Field == HUDName
9764 //mt:if %s.Field == HUDScale
9767 //mt:if %s.Field == HUDText
9770 //mt:if %s.Field == HUDNumber
9773 //mt:if %s.Field == HUDItem
9776 //mt:if %s.Field == HUDDir
9779 //mt:if %s.Field == HUDAlign
9782 //mt:if %s.Field == HUDOffset
9785 //mt:if %s.Field == HUDWorldPos
9788 //mt:if %s.Field == HUDSize
9791 //mt:if %s.Field == HUDZIndex
9794 //mt:if %s.Field == HUDText2
9796 }))(obj)).Text) = string(local181)
9803 //mt:if %s.Field == HUDPos
9806 //mt:if %s.Field == HUDName
9809 //mt:if %s.Field == HUDScale
9812 //mt:if %s.Field == HUDText
9815 //mt:if %s.Field == HUDNumber
9818 //mt:if %s.Field == HUDItem
9821 //mt:if %s.Field == HUDDir
9824 //mt:if %s.Field == HUDAlign
9827 //mt:if %s.Field == HUDOffset
9830 //mt:if %s.Field == HUDWorldPos
9833 //mt:if %s.Field == HUDSize
9836 //mt:if %s.Field == HUDZIndex
9839 //mt:if %s.Field == HUDText2
9841 }))(obj)).Field == HUDNumber {
9848 //mt:if %s.Field == HUDPos
9851 //mt:if %s.Field == HUDName
9854 //mt:if %s.Field == HUDScale
9857 //mt:if %s.Field == HUDText
9860 //mt:if %s.Field == HUDNumber
9863 //mt:if %s.Field == HUDItem
9866 //mt:if %s.Field == HUDDir
9869 //mt:if %s.Field == HUDAlign
9872 //mt:if %s.Field == HUDOffset
9875 //mt:if %s.Field == HUDWorldPos
9878 //mt:if %s.Field == HUDSize
9881 //mt:if %s.Field == HUDZIndex
9884 //mt:if %s.Field == HUDText2
9895 //mt:if %s.Field == HUDPos
9898 //mt:if %s.Field == HUDName
9901 //mt:if %s.Field == HUDScale
9904 //mt:if %s.Field == HUDText
9907 //mt:if %s.Field == HUDNumber
9910 //mt:if %s.Field == HUDItem
9913 //mt:if %s.Field == HUDDir
9916 //mt:if %s.Field == HUDAlign
9919 //mt:if %s.Field == HUDOffset
9922 //mt:if %s.Field == HUDWorldPos
9925 //mt:if %s.Field == HUDSize
9928 //mt:if %s.Field == HUDZIndex
9931 //mt:if %s.Field == HUDText2
9933 }))(obj)).Field == HUDItem {
9940 //mt:if %s.Field == HUDPos
9943 //mt:if %s.Field == HUDName
9946 //mt:if %s.Field == HUDScale
9949 //mt:if %s.Field == HUDText
9952 //mt:if %s.Field == HUDNumber
9955 //mt:if %s.Field == HUDItem
9958 //mt:if %s.Field == HUDDir
9961 //mt:if %s.Field == HUDAlign
9964 //mt:if %s.Field == HUDOffset
9967 //mt:if %s.Field == HUDWorldPos
9970 //mt:if %s.Field == HUDSize
9973 //mt:if %s.Field == HUDZIndex
9976 //mt:if %s.Field == HUDText2
9987 //mt:if %s.Field == HUDPos
9990 //mt:if %s.Field == HUDName
9993 //mt:if %s.Field == HUDScale
9996 //mt:if %s.Field == HUDText
9999 //mt:if %s.Field == HUDNumber
10002 //mt:if %s.Field == HUDItem
10005 //mt:if %s.Field == HUDDir
10008 //mt:if %s.Field == HUDAlign
10011 //mt:if %s.Field == HUDOffset
10014 //mt:if %s.Field == HUDWorldPos
10017 //mt:if %s.Field == HUDSize
10020 //mt:if %s.Field == HUDZIndex
10023 //mt:if %s.Field == HUDText2
10025 }))(obj)).Field == HUDDir {
10027 p := &(*(*(struct {
10032 //mt:if %s.Field == HUDPos
10035 //mt:if %s.Field == HUDName
10038 //mt:if %s.Field == HUDScale
10041 //mt:if %s.Field == HUDText
10044 //mt:if %s.Field == HUDNumber
10047 //mt:if %s.Field == HUDItem
10050 //mt:if %s.Field == HUDDir
10053 //mt:if %s.Field == HUDAlign
10056 //mt:if %s.Field == HUDOffset
10059 //mt:if %s.Field == HUDWorldPos
10062 //mt:if %s.Field == HUDSize
10065 //mt:if %s.Field == HUDZIndex
10068 //mt:if %s.Field == HUDText2
10079 //mt:if %s.Field == HUDPos
10082 //mt:if %s.Field == HUDName
10085 //mt:if %s.Field == HUDScale
10088 //mt:if %s.Field == HUDText
10091 //mt:if %s.Field == HUDNumber
10094 //mt:if %s.Field == HUDItem
10097 //mt:if %s.Field == HUDDir
10100 //mt:if %s.Field == HUDAlign
10103 //mt:if %s.Field == HUDOffset
10106 //mt:if %s.Field == HUDWorldPos
10109 //mt:if %s.Field == HUDSize
10112 //mt:if %s.Field == HUDZIndex
10115 //mt:if %s.Field == HUDText2
10117 }))(obj)).Field == HUDAlign {
10118 for local183 := range (*(*(struct {
10123 //mt:if %s.Field == HUDPos
10126 //mt:if %s.Field == HUDName
10129 //mt:if %s.Field == HUDScale
10132 //mt:if %s.Field == HUDText
10135 //mt:if %s.Field == HUDNumber
10138 //mt:if %s.Field == HUDItem
10141 //mt:if %s.Field == HUDDir
10144 //mt:if %s.Field == HUDAlign
10147 //mt:if %s.Field == HUDOffset
10150 //mt:if %s.Field == HUDWorldPos
10153 //mt:if %s.Field == HUDSize
10156 //mt:if %s.Field == HUDZIndex
10159 //mt:if %s.Field == HUDText2
10163 p := &((*(*(struct {
10168 //mt:if %s.Field == HUDPos
10171 //mt:if %s.Field == HUDName
10174 //mt:if %s.Field == HUDScale
10177 //mt:if %s.Field == HUDText
10180 //mt:if %s.Field == HUDNumber
10183 //mt:if %s.Field == HUDItem
10186 //mt:if %s.Field == HUDDir
10189 //mt:if %s.Field == HUDAlign
10192 //mt:if %s.Field == HUDOffset
10195 //mt:if %s.Field == HUDWorldPos
10198 //mt:if %s.Field == HUDSize
10201 //mt:if %s.Field == HUDZIndex
10204 //mt:if %s.Field == HUDText2
10206 }))(obj)).Align)[local183]
10207 *p = math.Float32frombits(read32(r))
10216 //mt:if %s.Field == HUDPos
10219 //mt:if %s.Field == HUDName
10222 //mt:if %s.Field == HUDScale
10225 //mt:if %s.Field == HUDText
10228 //mt:if %s.Field == HUDNumber
10231 //mt:if %s.Field == HUDItem
10234 //mt:if %s.Field == HUDDir
10237 //mt:if %s.Field == HUDAlign
10240 //mt:if %s.Field == HUDOffset
10243 //mt:if %s.Field == HUDWorldPos
10246 //mt:if %s.Field == HUDSize
10249 //mt:if %s.Field == HUDZIndex
10252 //mt:if %s.Field == HUDText2
10254 }))(obj)).Field == HUDOffset {
10255 for local184 := range (*(*(struct {
10260 //mt:if %s.Field == HUDPos
10263 //mt:if %s.Field == HUDName
10266 //mt:if %s.Field == HUDScale
10269 //mt:if %s.Field == HUDText
10272 //mt:if %s.Field == HUDNumber
10275 //mt:if %s.Field == HUDItem
10278 //mt:if %s.Field == HUDDir
10281 //mt:if %s.Field == HUDAlign
10284 //mt:if %s.Field == HUDOffset
10287 //mt:if %s.Field == HUDWorldPos
10290 //mt:if %s.Field == HUDSize
10293 //mt:if %s.Field == HUDZIndex
10296 //mt:if %s.Field == HUDText2
10300 p := &((*(*(struct {
10305 //mt:if %s.Field == HUDPos
10308 //mt:if %s.Field == HUDName
10311 //mt:if %s.Field == HUDScale
10314 //mt:if %s.Field == HUDText
10317 //mt:if %s.Field == HUDNumber
10320 //mt:if %s.Field == HUDItem
10323 //mt:if %s.Field == HUDDir
10326 //mt:if %s.Field == HUDAlign
10329 //mt:if %s.Field == HUDOffset
10332 //mt:if %s.Field == HUDWorldPos
10335 //mt:if %s.Field == HUDSize
10338 //mt:if %s.Field == HUDZIndex
10341 //mt:if %s.Field == HUDText2
10343 }))(obj)).Offset)[local184]
10344 *p = math.Float32frombits(read32(r))
10353 //mt:if %s.Field == HUDPos
10356 //mt:if %s.Field == HUDName
10359 //mt:if %s.Field == HUDScale
10362 //mt:if %s.Field == HUDText
10365 //mt:if %s.Field == HUDNumber
10368 //mt:if %s.Field == HUDItem
10371 //mt:if %s.Field == HUDDir
10374 //mt:if %s.Field == HUDAlign
10377 //mt:if %s.Field == HUDOffset
10380 //mt:if %s.Field == HUDWorldPos
10383 //mt:if %s.Field == HUDSize
10386 //mt:if %s.Field == HUDZIndex
10389 //mt:if %s.Field == HUDText2
10391 }))(obj)).Field == HUDWorldPos {
10392 if err := pcall(func() {
10398 //mt:if %s.Field == HUDPos
10401 //mt:if %s.Field == HUDName
10404 //mt:if %s.Field == HUDScale
10407 //mt:if %s.Field == HUDText
10410 //mt:if %s.Field == HUDNumber
10413 //mt:if %s.Field == HUDItem
10416 //mt:if %s.Field == HUDDir
10419 //mt:if %s.Field == HUDAlign
10422 //mt:if %s.Field == HUDOffset
10425 //mt:if %s.Field == HUDWorldPos
10428 //mt:if %s.Field == HUDSize
10431 //mt:if %s.Field == HUDZIndex
10434 //mt:if %s.Field == HUDText2
10436 }))(obj)).WorldPos).deserialize(r)
10441 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
10449 //mt:if %s.Field == HUDPos
10452 //mt:if %s.Field == HUDName
10455 //mt:if %s.Field == HUDScale
10458 //mt:if %s.Field == HUDText
10461 //mt:if %s.Field == HUDNumber
10464 //mt:if %s.Field == HUDItem
10467 //mt:if %s.Field == HUDDir
10470 //mt:if %s.Field == HUDAlign
10473 //mt:if %s.Field == HUDOffset
10476 //mt:if %s.Field == HUDWorldPos
10479 //mt:if %s.Field == HUDSize
10482 //mt:if %s.Field == HUDZIndex
10485 //mt:if %s.Field == HUDText2
10487 }))(obj)).Field == HUDSize {
10488 for local185 := range (*(*(struct {
10493 //mt:if %s.Field == HUDPos
10496 //mt:if %s.Field == HUDName
10499 //mt:if %s.Field == HUDScale
10502 //mt:if %s.Field == HUDText
10505 //mt:if %s.Field == HUDNumber
10508 //mt:if %s.Field == HUDItem
10511 //mt:if %s.Field == HUDDir
10514 //mt:if %s.Field == HUDAlign
10517 //mt:if %s.Field == HUDOffset
10520 //mt:if %s.Field == HUDWorldPos
10523 //mt:if %s.Field == HUDSize
10526 //mt:if %s.Field == HUDZIndex
10529 //mt:if %s.Field == HUDText2
10533 p := &((*(*(struct {
10538 //mt:if %s.Field == HUDPos
10541 //mt:if %s.Field == HUDName
10544 //mt:if %s.Field == HUDScale
10547 //mt:if %s.Field == HUDText
10550 //mt:if %s.Field == HUDNumber
10553 //mt:if %s.Field == HUDItem
10556 //mt:if %s.Field == HUDDir
10559 //mt:if %s.Field == HUDAlign
10562 //mt:if %s.Field == HUDOffset
10565 //mt:if %s.Field == HUDWorldPos
10568 //mt:if %s.Field == HUDSize
10571 //mt:if %s.Field == HUDZIndex
10574 //mt:if %s.Field == HUDText2
10576 }))(obj)).Size)[local185]
10577 *p = int32(read32(r))
10586 //mt:if %s.Field == HUDPos
10589 //mt:if %s.Field == HUDName
10592 //mt:if %s.Field == HUDScale
10595 //mt:if %s.Field == HUDText
10598 //mt:if %s.Field == HUDNumber
10601 //mt:if %s.Field == HUDItem
10604 //mt:if %s.Field == HUDDir
10607 //mt:if %s.Field == HUDAlign
10610 //mt:if %s.Field == HUDOffset
10613 //mt:if %s.Field == HUDWorldPos
10616 //mt:if %s.Field == HUDSize
10619 //mt:if %s.Field == HUDZIndex
10622 //mt:if %s.Field == HUDText2
10624 }))(obj)).Field == HUDZIndex {
10626 p := &(*(*(struct {
10631 //mt:if %s.Field == HUDPos
10634 //mt:if %s.Field == HUDName
10637 //mt:if %s.Field == HUDScale
10640 //mt:if %s.Field == HUDText
10643 //mt:if %s.Field == HUDNumber
10646 //mt:if %s.Field == HUDItem
10649 //mt:if %s.Field == HUDDir
10652 //mt:if %s.Field == HUDAlign
10655 //mt:if %s.Field == HUDOffset
10658 //mt:if %s.Field == HUDWorldPos
10661 //mt:if %s.Field == HUDSize
10664 //mt:if %s.Field == HUDZIndex
10667 //mt:if %s.Field == HUDText2
10670 *p = int32(read32(r))
10678 //mt:if %s.Field == HUDPos
10681 //mt:if %s.Field == HUDName
10684 //mt:if %s.Field == HUDScale
10687 //mt:if %s.Field == HUDText
10690 //mt:if %s.Field == HUDNumber
10693 //mt:if %s.Field == HUDItem
10696 //mt:if %s.Field == HUDDir
10699 //mt:if %s.Field == HUDAlign
10702 //mt:if %s.Field == HUDOffset
10705 //mt:if %s.Field == HUDWorldPos
10708 //mt:if %s.Field == HUDSize
10711 //mt:if %s.Field == HUDZIndex
10714 //mt:if %s.Field == HUDText2
10716 }))(obj)).Field == HUDText2 {
10717 var local186 []uint8
10718 var local187 uint16
10723 (local186) = make([]uint8, local187)
10725 _, err := io.ReadFull(r, (local186)[:])
10733 //mt:if %s.Field == HUDPos
10736 //mt:if %s.Field == HUDName
10739 //mt:if %s.Field == HUDScale
10742 //mt:if %s.Field == HUDText
10745 //mt:if %s.Field == HUDNumber
10748 //mt:if %s.Field == HUDItem
10751 //mt:if %s.Field == HUDDir
10754 //mt:if %s.Field == HUDAlign
10757 //mt:if %s.Field == HUDOffset
10760 //mt:if %s.Field == HUDWorldPos
10763 //mt:if %s.Field == HUDSize
10766 //mt:if %s.Field == HUDZIndex
10769 //mt:if %s.Field == HUDText2
10771 }))(obj)).Text2) = string(local186)
10775 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
10776 if err := pcall(func() {
10780 Flags, Mask HUDFlags
10781 }))(obj)).Flags).serialize(w)
10786 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10788 if err := pcall(func() {
10792 Flags, Mask HUDFlags
10793 }))(obj)).Mask).serialize(w)
10798 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10802 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
10803 if err := pcall(func() {
10807 Flags, Mask HUDFlags
10808 }))(obj)).Flags).deserialize(r)
10813 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10815 if err := pcall(func() {
10819 Flags, Mask HUDFlags
10820 }))(obj)).Mask).deserialize(r)
10825 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10829 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
10830 if err := pcall(func() {
10834 //mt:if %s.Param == HotbarSize
10835 //mt:const uint16(4) // Size of Size field.
10838 //mt:if %s.Param != HotbarSize
10840 }))(obj)).Param).serialize(w)
10845 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
10850 //mt:if %s.Param == HotbarSize
10851 //mt:const uint16(4) // Size of Size field.
10854 //mt:if %s.Param != HotbarSize
10856 }))(obj)).Param == HotbarSize {
10858 local188 := uint16(4) // Size of Size field.
10861 write16(w, uint16(x))
10868 //mt:if %s.Param == HotbarSize
10869 //mt:const uint16(4) // Size of Size field.
10872 //mt:if %s.Param != HotbarSize
10875 write32(w, uint32(x))
10881 //mt:if %s.Param == HotbarSize
10882 //mt:const uint16(4) // Size of Size field.
10885 //mt:if %s.Param != HotbarSize
10887 }))(obj)).Param != HotbarSize {
10888 if err := pcall(func() {
10892 //mt:if %s.Param == HotbarSize
10893 //mt:const uint16(4) // Size of Size field.
10896 //mt:if %s.Param != HotbarSize
10898 }))(obj)).Img).serialize(w)
10903 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
10908 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
10909 if err := pcall(func() {
10913 //mt:if %s.Param == HotbarSize
10914 //mt:const uint16(4) // Size of Size field.
10917 //mt:if %s.Param != HotbarSize
10919 }))(obj)).Param).deserialize(r)
10924 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
10929 //mt:if %s.Param == HotbarSize
10930 //mt:const uint16(4) // Size of Size field.
10933 //mt:if %s.Param != HotbarSize
10935 }))(obj)).Param == HotbarSize {
10937 var local189 uint16
10938 local190 := uint16(4) // Size of Size field.
10943 if local189 != local190 {
10944 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
10948 p := &(*(*(struct {
10951 //mt:if %s.Param == HotbarSize
10952 //mt:const uint16(4) // Size of Size field.
10955 //mt:if %s.Param != HotbarSize
10958 *p = int32(read32(r))
10964 //mt:if %s.Param == HotbarSize
10965 //mt:const uint16(4) // Size of Size field.
10968 //mt:if %s.Param != HotbarSize
10970 }))(obj)).Param != HotbarSize {
10971 if err := pcall(func() {
10975 //mt:if %s.Param == HotbarSize
10976 //mt:const uint16(4) // Size of Size field.
10979 //mt:if %s.Param != HotbarSize
10981 }))(obj)).Img).deserialize(r)
10986 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
10991 func (obj *ToCltBreath) serialize(w io.Writer) {
10996 write16(w, uint16(x))
11000 func (obj *ToCltBreath) deserialize(r io.Reader) {
11002 p := &(*(*(struct {
11009 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11012 BgColor color.NRGBA
11015 SunFogTint color.NRGBA
11016 MoonFogTint color.NRGBA
11019 //mt:if %s.Type == "skybox"
11022 //mt:if %s.Type == "regular"
11023 DaySky, DayHorizon,
11024 DawnSky, DawnHorizon,
11025 NightSky, NightHorizon,
11028 w.Write([]byte{x.A, x.R, x.G, x.B})
11031 if len(([]byte((*(*(struct {
11032 BgColor color.NRGBA
11035 SunFogTint color.NRGBA
11036 MoonFogTint color.NRGBA
11039 //mt:if %s.Type == "skybox"
11042 //mt:if %s.Type == "regular"
11043 DaySky, DayHorizon,
11044 DawnSky, DawnHorizon,
11045 NightSky, NightHorizon,
11047 }))(obj)).Type))) > math.MaxUint16 {
11051 x := uint16(len(([]byte((*(*(struct {
11052 BgColor color.NRGBA
11055 SunFogTint color.NRGBA
11056 MoonFogTint color.NRGBA
11059 //mt:if %s.Type == "skybox"
11062 //mt:if %s.Type == "regular"
11063 DaySky, DayHorizon,
11064 DawnSky, DawnHorizon,
11065 NightSky, NightHorizon,
11068 write16(w, uint16(x))
11071 _, err := w.Write(([]byte((*(*(struct {
11072 BgColor color.NRGBA
11075 SunFogTint color.NRGBA
11076 MoonFogTint color.NRGBA
11079 //mt:if %s.Type == "skybox"
11082 //mt:if %s.Type == "regular"
11083 DaySky, DayHorizon,
11084 DawnSky, DawnHorizon,
11085 NightSky, NightHorizon,
11087 }))(obj)).Type))[:])
11092 BgColor color.NRGBA
11095 SunFogTint color.NRGBA
11096 MoonFogTint color.NRGBA
11099 //mt:if %s.Type == "skybox"
11102 //mt:if %s.Type == "regular"
11103 DaySky, DayHorizon,
11104 DawnSky, DawnHorizon,
11105 NightSky, NightHorizon,
11117 BgColor color.NRGBA
11120 SunFogTint color.NRGBA
11121 MoonFogTint color.NRGBA
11124 //mt:if %s.Type == "skybox"
11127 //mt:if %s.Type == "regular"
11128 DaySky, DayHorizon,
11129 DawnSky, DawnHorizon,
11130 NightSky, NightHorizon,
11132 }))(obj)).SunFogTint
11133 w.Write([]byte{x.A, x.R, x.G, x.B})
11138 BgColor color.NRGBA
11141 SunFogTint color.NRGBA
11142 MoonFogTint color.NRGBA
11145 //mt:if %s.Type == "skybox"
11148 //mt:if %s.Type == "regular"
11149 DaySky, DayHorizon,
11150 DawnSky, DawnHorizon,
11151 NightSky, NightHorizon,
11153 }))(obj)).MoonFogTint
11154 w.Write([]byte{x.A, x.R, x.G, x.B})
11157 if len(([]byte((*(*(struct {
11158 BgColor color.NRGBA
11161 SunFogTint color.NRGBA
11162 MoonFogTint color.NRGBA
11165 //mt:if %s.Type == "skybox"
11168 //mt:if %s.Type == "regular"
11169 DaySky, DayHorizon,
11170 DawnSky, DawnHorizon,
11171 NightSky, NightHorizon,
11173 }))(obj)).FogTintType))) > math.MaxUint16 {
11177 x := uint16(len(([]byte((*(*(struct {
11178 BgColor color.NRGBA
11181 SunFogTint color.NRGBA
11182 MoonFogTint color.NRGBA
11185 //mt:if %s.Type == "skybox"
11188 //mt:if %s.Type == "regular"
11189 DaySky, DayHorizon,
11190 DawnSky, DawnHorizon,
11191 NightSky, NightHorizon,
11193 }))(obj)).FogTintType))))
11194 write16(w, uint16(x))
11197 _, err := w.Write(([]byte((*(*(struct {
11198 BgColor color.NRGBA
11201 SunFogTint color.NRGBA
11202 MoonFogTint color.NRGBA
11205 //mt:if %s.Type == "skybox"
11208 //mt:if %s.Type == "regular"
11209 DaySky, DayHorizon,
11210 DawnSky, DawnHorizon,
11211 NightSky, NightHorizon,
11213 }))(obj)).FogTintType))[:])
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)).Type == "skybox" {
11233 if len(((*(*(struct {
11234 BgColor color.NRGBA
11237 SunFogTint color.NRGBA
11238 MoonFogTint color.NRGBA
11241 //mt:if %s.Type == "skybox"
11244 //mt:if %s.Type == "regular"
11245 DaySky, DayHorizon,
11246 DawnSky, DawnHorizon,
11247 NightSky, NightHorizon,
11249 }))(obj)).Textures)) > math.MaxUint16 {
11253 x := uint16(len(((*(*(struct {
11254 BgColor color.NRGBA
11257 SunFogTint color.NRGBA
11258 MoonFogTint color.NRGBA
11261 //mt:if %s.Type == "skybox"
11264 //mt:if %s.Type == "regular"
11265 DaySky, DayHorizon,
11266 DawnSky, DawnHorizon,
11267 NightSky, NightHorizon,
11269 }))(obj)).Textures)))
11270 write16(w, uint16(x))
11272 for local191 := range (*(*(struct {
11273 BgColor color.NRGBA
11276 SunFogTint color.NRGBA
11277 MoonFogTint color.NRGBA
11280 //mt:if %s.Type == "skybox"
11283 //mt:if %s.Type == "regular"
11284 DaySky, DayHorizon,
11285 DawnSky, DawnHorizon,
11286 NightSky, NightHorizon,
11288 }))(obj)).Textures {
11289 if err := pcall(func() {
11291 BgColor color.NRGBA
11294 SunFogTint color.NRGBA
11295 MoonFogTint color.NRGBA
11298 //mt:if %s.Type == "skybox"
11301 //mt:if %s.Type == "regular"
11302 DaySky, DayHorizon,
11303 DawnSky, DawnHorizon,
11304 NightSky, NightHorizon,
11306 }))(obj)).Textures)[local191]).serialize(w)
11311 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11316 BgColor color.NRGBA
11319 SunFogTint color.NRGBA
11320 MoonFogTint color.NRGBA
11323 //mt:if %s.Type == "skybox"
11326 //mt:if %s.Type == "regular"
11327 DaySky, DayHorizon,
11328 DawnSky, DawnHorizon,
11329 NightSky, NightHorizon,
11331 }))(obj)).Type == "regular" {
11334 BgColor color.NRGBA
11337 SunFogTint color.NRGBA
11338 MoonFogTint color.NRGBA
11341 //mt:if %s.Type == "skybox"
11344 //mt:if %s.Type == "regular"
11345 DaySky, DayHorizon,
11346 DawnSky, DawnHorizon,
11347 NightSky, NightHorizon,
11350 w.Write([]byte{x.A, x.R, x.G, x.B})
11355 BgColor color.NRGBA
11358 SunFogTint color.NRGBA
11359 MoonFogTint color.NRGBA
11362 //mt:if %s.Type == "skybox"
11365 //mt:if %s.Type == "regular"
11366 DaySky, DayHorizon,
11367 DawnSky, DawnHorizon,
11368 NightSky, NightHorizon,
11370 }))(obj)).DayHorizon
11371 w.Write([]byte{x.A, x.R, x.G, x.B})
11376 BgColor color.NRGBA
11379 SunFogTint color.NRGBA
11380 MoonFogTint color.NRGBA
11383 //mt:if %s.Type == "skybox"
11386 //mt:if %s.Type == "regular"
11387 DaySky, DayHorizon,
11388 DawnSky, DawnHorizon,
11389 NightSky, NightHorizon,
11392 w.Write([]byte{x.A, x.R, x.G, x.B})
11397 BgColor color.NRGBA
11400 SunFogTint color.NRGBA
11401 MoonFogTint color.NRGBA
11404 //mt:if %s.Type == "skybox"
11407 //mt:if %s.Type == "regular"
11408 DaySky, DayHorizon,
11409 DawnSky, DawnHorizon,
11410 NightSky, NightHorizon,
11412 }))(obj)).DawnHorizon
11413 w.Write([]byte{x.A, x.R, x.G, x.B})
11418 BgColor color.NRGBA
11421 SunFogTint color.NRGBA
11422 MoonFogTint color.NRGBA
11425 //mt:if %s.Type == "skybox"
11428 //mt:if %s.Type == "regular"
11429 DaySky, DayHorizon,
11430 DawnSky, DawnHorizon,
11431 NightSky, NightHorizon,
11434 w.Write([]byte{x.A, x.R, x.G, x.B})
11439 BgColor color.NRGBA
11442 SunFogTint color.NRGBA
11443 MoonFogTint color.NRGBA
11446 //mt:if %s.Type == "skybox"
11449 //mt:if %s.Type == "regular"
11450 DaySky, DayHorizon,
11451 DawnSky, DawnHorizon,
11452 NightSky, NightHorizon,
11454 }))(obj)).NightHorizon
11455 w.Write([]byte{x.A, x.R, x.G, x.B})
11460 BgColor color.NRGBA
11463 SunFogTint color.NRGBA
11464 MoonFogTint color.NRGBA
11467 //mt:if %s.Type == "skybox"
11470 //mt:if %s.Type == "regular"
11471 DaySky, DayHorizon,
11472 DawnSky, DawnHorizon,
11473 NightSky, NightHorizon,
11476 w.Write([]byte{x.A, x.R, x.G, x.B})
11482 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11484 p := &(*(*(struct {
11485 BgColor color.NRGBA
11488 SunFogTint color.NRGBA
11489 MoonFogTint color.NRGBA
11492 //mt:if %s.Type == "skybox"
11495 //mt:if %s.Type == "regular"
11496 DaySky, DayHorizon,
11497 DawnSky, DawnHorizon,
11498 NightSky, NightHorizon,
11501 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11504 var local192 []uint8
11505 var local193 uint16
11510 (local192) = make([]uint8, local193)
11512 _, err := io.ReadFull(r, (local192)[:])
11516 BgColor color.NRGBA
11519 SunFogTint color.NRGBA
11520 MoonFogTint color.NRGBA
11523 //mt:if %s.Type == "skybox"
11526 //mt:if %s.Type == "regular"
11527 DaySky, DayHorizon,
11528 DawnSky, DawnHorizon,
11529 NightSky, NightHorizon,
11531 }))(obj)).Type) = string(local192)
11533 p := &(*(*(struct {
11534 BgColor color.NRGBA
11537 SunFogTint color.NRGBA
11538 MoonFogTint color.NRGBA
11541 //mt:if %s.Type == "skybox"
11544 //mt:if %s.Type == "regular"
11545 DaySky, DayHorizon,
11546 DawnSky, DawnHorizon,
11547 NightSky, NightHorizon,
11550 switch n := read8(r); n {
11556 chk(fmt.Errorf("invalid bool: %d", n))
11561 p := &(*(*(struct {
11562 BgColor color.NRGBA
11565 SunFogTint color.NRGBA
11566 MoonFogTint color.NRGBA
11569 //mt:if %s.Type == "skybox"
11572 //mt:if %s.Type == "regular"
11573 DaySky, DayHorizon,
11574 DawnSky, DawnHorizon,
11575 NightSky, NightHorizon,
11577 }))(obj)).SunFogTint
11578 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11582 p := &(*(*(struct {
11583 BgColor color.NRGBA
11586 SunFogTint color.NRGBA
11587 MoonFogTint color.NRGBA
11590 //mt:if %s.Type == "skybox"
11593 //mt:if %s.Type == "regular"
11594 DaySky, DayHorizon,
11595 DawnSky, DawnHorizon,
11596 NightSky, NightHorizon,
11598 }))(obj)).MoonFogTint
11599 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11602 var local194 []uint8
11603 var local195 uint16
11608 (local194) = make([]uint8, local195)
11610 _, err := io.ReadFull(r, (local194)[:])
11614 BgColor color.NRGBA
11617 SunFogTint color.NRGBA
11618 MoonFogTint color.NRGBA
11621 //mt:if %s.Type == "skybox"
11624 //mt:if %s.Type == "regular"
11625 DaySky, DayHorizon,
11626 DawnSky, DawnHorizon,
11627 NightSky, NightHorizon,
11629 }))(obj)).FogTintType) = string(local194)
11631 BgColor color.NRGBA
11634 SunFogTint color.NRGBA
11635 MoonFogTint color.NRGBA
11638 //mt:if %s.Type == "skybox"
11641 //mt:if %s.Type == "regular"
11642 DaySky, DayHorizon,
11643 DawnSky, DawnHorizon,
11644 NightSky, NightHorizon,
11646 }))(obj)).Type == "skybox" {
11647 var local196 uint16
11653 BgColor color.NRGBA
11656 SunFogTint color.NRGBA
11657 MoonFogTint color.NRGBA
11660 //mt:if %s.Type == "skybox"
11663 //mt:if %s.Type == "regular"
11664 DaySky, DayHorizon,
11665 DawnSky, DawnHorizon,
11666 NightSky, NightHorizon,
11668 }))(obj)).Textures) = make([]Texture, local196)
11669 for local197 := range (*(*(struct {
11670 BgColor color.NRGBA
11673 SunFogTint color.NRGBA
11674 MoonFogTint color.NRGBA
11677 //mt:if %s.Type == "skybox"
11680 //mt:if %s.Type == "regular"
11681 DaySky, DayHorizon,
11682 DawnSky, DawnHorizon,
11683 NightSky, NightHorizon,
11685 }))(obj)).Textures {
11686 if err := pcall(func() {
11688 BgColor color.NRGBA
11691 SunFogTint color.NRGBA
11692 MoonFogTint color.NRGBA
11695 //mt:if %s.Type == "skybox"
11698 //mt:if %s.Type == "regular"
11699 DaySky, DayHorizon,
11700 DawnSky, DawnHorizon,
11701 NightSky, NightHorizon,
11703 }))(obj)).Textures)[local197]).deserialize(r)
11708 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11713 BgColor color.NRGBA
11716 SunFogTint color.NRGBA
11717 MoonFogTint color.NRGBA
11720 //mt:if %s.Type == "skybox"
11723 //mt:if %s.Type == "regular"
11724 DaySky, DayHorizon,
11725 DawnSky, DawnHorizon,
11726 NightSky, NightHorizon,
11728 }))(obj)).Type == "regular" {
11730 p := &(*(*(struct {
11731 BgColor color.NRGBA
11734 SunFogTint color.NRGBA
11735 MoonFogTint color.NRGBA
11738 //mt:if %s.Type == "skybox"
11741 //mt:if %s.Type == "regular"
11742 DaySky, DayHorizon,
11743 DawnSky, DawnHorizon,
11744 NightSky, NightHorizon,
11747 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11751 p := &(*(*(struct {
11752 BgColor color.NRGBA
11755 SunFogTint color.NRGBA
11756 MoonFogTint color.NRGBA
11759 //mt:if %s.Type == "skybox"
11762 //mt:if %s.Type == "regular"
11763 DaySky, DayHorizon,
11764 DawnSky, DawnHorizon,
11765 NightSky, NightHorizon,
11767 }))(obj)).DayHorizon
11768 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11772 p := &(*(*(struct {
11773 BgColor color.NRGBA
11776 SunFogTint color.NRGBA
11777 MoonFogTint color.NRGBA
11780 //mt:if %s.Type == "skybox"
11783 //mt:if %s.Type == "regular"
11784 DaySky, DayHorizon,
11785 DawnSky, DawnHorizon,
11786 NightSky, NightHorizon,
11789 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11793 p := &(*(*(struct {
11794 BgColor color.NRGBA
11797 SunFogTint color.NRGBA
11798 MoonFogTint color.NRGBA
11801 //mt:if %s.Type == "skybox"
11804 //mt:if %s.Type == "regular"
11805 DaySky, DayHorizon,
11806 DawnSky, DawnHorizon,
11807 NightSky, NightHorizon,
11809 }))(obj)).DawnHorizon
11810 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11814 p := &(*(*(struct {
11815 BgColor color.NRGBA
11818 SunFogTint color.NRGBA
11819 MoonFogTint color.NRGBA
11822 //mt:if %s.Type == "skybox"
11825 //mt:if %s.Type == "regular"
11826 DaySky, DayHorizon,
11827 DawnSky, DawnHorizon,
11828 NightSky, NightHorizon,
11831 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11835 p := &(*(*(struct {
11836 BgColor color.NRGBA
11839 SunFogTint color.NRGBA
11840 MoonFogTint color.NRGBA
11843 //mt:if %s.Type == "skybox"
11846 //mt:if %s.Type == "regular"
11847 DaySky, DayHorizon,
11848 DawnSky, DawnHorizon,
11849 NightSky, NightHorizon,
11851 }))(obj)).NightHorizon
11852 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11856 p := &(*(*(struct {
11857 BgColor color.NRGBA
11860 SunFogTint color.NRGBA
11861 MoonFogTint color.NRGBA
11864 //mt:if %s.Type == "skybox"
11867 //mt:if %s.Type == "regular"
11868 DaySky, DayHorizon,
11869 DawnSky, DawnHorizon,
11870 NightSky, NightHorizon,
11873 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11879 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
11897 write16(w, uint16(x))
11901 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
11903 p := &(*(*(struct {
11907 switch n := read8(r); n {
11913 chk(fmt.Errorf("invalid bool: %d", n))
11918 p := &(*(*(struct {
11926 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
11927 for local198 := range (*(*(struct {
11928 Idle, Walk, Dig, WalkDig [2]int32
11932 x := ((*(*(struct {
11933 Idle, Walk, Dig, WalkDig [2]int32
11935 }))(obj)).Idle)[local198]
11936 write32(w, uint32(x))
11939 for local199 := range (*(*(struct {
11940 Idle, Walk, Dig, WalkDig [2]int32
11944 x := ((*(*(struct {
11945 Idle, Walk, Dig, WalkDig [2]int32
11947 }))(obj)).Walk)[local199]
11948 write32(w, uint32(x))
11951 for local200 := range (*(*(struct {
11952 Idle, Walk, Dig, WalkDig [2]int32
11956 x := ((*(*(struct {
11957 Idle, Walk, Dig, WalkDig [2]int32
11959 }))(obj)).Dig)[local200]
11960 write32(w, uint32(x))
11963 for local201 := range (*(*(struct {
11964 Idle, Walk, Dig, WalkDig [2]int32
11966 }))(obj)).WalkDig {
11968 x := ((*(*(struct {
11969 Idle, Walk, Dig, WalkDig [2]int32
11971 }))(obj)).WalkDig)[local201]
11972 write32(w, uint32(x))
11977 Idle, Walk, Dig, WalkDig [2]int32
11980 write32(w, math.Float32bits(x))
11984 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
11985 for local202 := range (*(*(struct {
11986 Idle, Walk, Dig, WalkDig [2]int32
11990 p := &((*(*(struct {
11991 Idle, Walk, Dig, WalkDig [2]int32
11993 }))(obj)).Idle)[local202]
11994 *p = int32(read32(r))
11997 for local203 := range (*(*(struct {
11998 Idle, Walk, Dig, WalkDig [2]int32
12002 p := &((*(*(struct {
12003 Idle, Walk, Dig, WalkDig [2]int32
12005 }))(obj)).Walk)[local203]
12006 *p = int32(read32(r))
12009 for local204 := range (*(*(struct {
12010 Idle, Walk, Dig, WalkDig [2]int32
12014 p := &((*(*(struct {
12015 Idle, Walk, Dig, WalkDig [2]int32
12017 }))(obj)).Dig)[local204]
12018 *p = int32(read32(r))
12021 for local205 := range (*(*(struct {
12022 Idle, Walk, Dig, WalkDig [2]int32
12024 }))(obj)).WalkDig {
12026 p := &((*(*(struct {
12027 Idle, Walk, Dig, WalkDig [2]int32
12029 }))(obj)).WalkDig)[local205]
12030 *p = int32(read32(r))
12034 p := &(*(*(struct {
12035 Idle, Walk, Dig, WalkDig [2]int32
12038 *p = math.Float32frombits(read32(r))
12042 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12043 if err := pcall(func() {
12046 }))(obj)).First).serialize(w)
12051 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12053 if err := pcall(func() {
12056 }))(obj)).Third).serialize(w)
12061 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12065 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12066 if err := pcall(func() {
12069 }))(obj)).First).deserialize(r)
12074 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12076 if err := pcall(func() {
12079 }))(obj)).Third).deserialize(r)
12084 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12088 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12089 if err := pcall(func() {
12091 ID ParticleSpawnerID
12092 }))(obj)).ID).serialize(w)
12097 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12101 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12102 if err := pcall(func() {
12104 ID ParticleSpawnerID
12105 }))(obj)).ID).deserialize(r)
12110 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12114 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12118 DiffuseColor color.NRGBA
12119 AmbientColor color.NRGBA
12124 write32(w, math.Float32bits(x))
12129 DiffuseColor color.NRGBA
12130 AmbientColor color.NRGBA
12134 }))(obj)).DiffuseColor
12135 w.Write([]byte{x.A, x.R, x.G, x.B})
12141 DiffuseColor color.NRGBA
12142 AmbientColor color.NRGBA
12146 }))(obj)).AmbientColor
12147 w.Write([]byte{x.A, x.R, x.G, x.B})
12153 DiffuseColor color.NRGBA
12154 AmbientColor color.NRGBA
12159 write32(w, math.Float32bits(x))
12164 DiffuseColor color.NRGBA
12165 AmbientColor color.NRGBA
12169 }))(obj)).Thickness
12170 write32(w, math.Float32bits(x))
12172 for local206 := range (*(*(struct {
12174 DiffuseColor color.NRGBA
12175 AmbientColor color.NRGBA
12181 x := ((*(*(struct {
12183 DiffuseColor color.NRGBA
12184 AmbientColor color.NRGBA
12188 }))(obj)).Speed)[local206]
12189 write32(w, math.Float32bits(x))
12194 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12196 p := &(*(*(struct {
12198 DiffuseColor color.NRGBA
12199 AmbientColor color.NRGBA
12204 *p = math.Float32frombits(read32(r))
12207 p := &(*(*(struct {
12209 DiffuseColor color.NRGBA
12210 AmbientColor color.NRGBA
12214 }))(obj)).DiffuseColor
12215 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12219 p := &(*(*(struct {
12221 DiffuseColor color.NRGBA
12222 AmbientColor color.NRGBA
12226 }))(obj)).AmbientColor
12227 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12231 p := &(*(*(struct {
12233 DiffuseColor color.NRGBA
12234 AmbientColor color.NRGBA
12239 *p = math.Float32frombits(read32(r))
12242 p := &(*(*(struct {
12244 DiffuseColor color.NRGBA
12245 AmbientColor color.NRGBA
12249 }))(obj)).Thickness
12250 *p = math.Float32frombits(read32(r))
12252 for local207 := range (*(*(struct {
12254 DiffuseColor color.NRGBA
12255 AmbientColor color.NRGBA
12261 p := &((*(*(struct {
12263 DiffuseColor color.NRGBA
12264 AmbientColor color.NRGBA
12268 }))(obj)).Speed)[local207]
12269 *p = math.Float32frombits(read32(r))
12274 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12275 if err := pcall(func() {
12280 }))(obj)).ID).serialize(w)
12285 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12293 write32(w, math.Float32bits(x))
12301 write32(w, math.Float32bits(x))
12305 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12306 if err := pcall(func() {
12311 }))(obj)).ID).deserialize(r)
12316 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12319 p := &(*(*(struct {
12324 *p = math.Float32frombits(read32(r))
12327 p := &(*(*(struct {
12332 *p = math.Float32frombits(read32(r))
12336 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12337 if err := pcall(func() {
12339 Type PlayerListUpdateType
12341 }))(obj)).Type).serialize(w)
12346 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12348 if len(((*(*(struct {
12349 Type PlayerListUpdateType
12351 }))(obj)).Players)) > math.MaxUint16 {
12355 x := uint16(len(((*(*(struct {
12356 Type PlayerListUpdateType
12358 }))(obj)).Players)))
12359 write16(w, uint16(x))
12361 for local208 := range (*(*(struct {
12362 Type PlayerListUpdateType
12364 }))(obj)).Players {
12365 if len(([]byte(((*(*(struct {
12366 Type PlayerListUpdateType
12368 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12372 x := uint16(len(([]byte(((*(*(struct {
12373 Type PlayerListUpdateType
12375 }))(obj)).Players)[local208]))))
12376 write16(w, uint16(x))
12379 _, err := w.Write(([]byte(((*(*(struct {
12380 Type PlayerListUpdateType
12382 }))(obj)).Players)[local208]))[:])
12388 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12389 if err := pcall(func() {
12391 Type PlayerListUpdateType
12393 }))(obj)).Type).deserialize(r)
12398 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12400 var local209 uint16
12406 Type PlayerListUpdateType
12408 }))(obj)).Players) = make([]string, local209)
12409 for local210 := range (*(*(struct {
12410 Type PlayerListUpdateType
12412 }))(obj)).Players {
12413 var local211 []uint8
12414 var local212 uint16
12419 (local211) = make([]uint8, local212)
12421 _, err := io.ReadFull(r, (local211)[:])
12425 Type PlayerListUpdateType
12427 }))(obj)).Players)[local210]) = string(local211)
12431 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12432 if len(([]byte((*(*(struct {
12436 }))(obj)).Channel))) > math.MaxUint16 {
12440 x := uint16(len(([]byte((*(*(struct {
12444 }))(obj)).Channel))))
12445 write16(w, uint16(x))
12448 _, err := w.Write(([]byte((*(*(struct {
12452 }))(obj)).Channel))[:])
12455 if len(([]byte((*(*(struct {
12459 }))(obj)).Sender))) > math.MaxUint16 {
12463 x := uint16(len(([]byte((*(*(struct {
12467 }))(obj)).Sender))))
12468 write16(w, uint16(x))
12471 _, err := w.Write(([]byte((*(*(struct {
12475 }))(obj)).Sender))[:])
12478 if len(([]byte((*(*(struct {
12482 }))(obj)).Msg))) > math.MaxUint16 {
12486 x := uint16(len(([]byte((*(*(struct {
12491 write16(w, uint16(x))
12494 _, err := w.Write(([]byte((*(*(struct {
12498 }))(obj)).Msg))[:])
12503 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12504 var local213 []uint8
12505 var local214 uint16
12510 (local213) = make([]uint8, local214)
12512 _, err := io.ReadFull(r, (local213)[:])
12519 }))(obj)).Channel) = string(local213)
12520 var local215 []uint8
12521 var local216 uint16
12526 (local215) = make([]uint8, local216)
12528 _, err := io.ReadFull(r, (local215)[:])
12535 }))(obj)).Sender) = string(local215)
12536 var local217 []uint8
12537 var local218 uint16
12542 (local217) = make([]uint8, local218)
12544 _, err := io.ReadFull(r, (local217)[:])
12551 }))(obj)).Msg) = string(local217)
12554 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12555 if err := pcall(func() {
12559 }))(obj)).Signal).serialize(w)
12564 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12566 if len(([]byte((*(*(struct {
12569 }))(obj)).Channel))) > math.MaxUint16 {
12573 x := uint16(len(([]byte((*(*(struct {
12576 }))(obj)).Channel))))
12577 write16(w, uint16(x))
12580 _, err := w.Write(([]byte((*(*(struct {
12583 }))(obj)).Channel))[:])
12588 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12589 if err := pcall(func() {
12593 }))(obj)).Signal).deserialize(r)
12598 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12600 var local219 []uint8
12601 var local220 uint16
12606 (local219) = make([]uint8, local220)
12608 _, err := io.ReadFull(r, (local219)[:])
12614 }))(obj)).Channel) = string(local219)
12617 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12620 w := new(bytes.Buffer)
12624 Changed map[[3]int16]*NodeMeta
12627 w := zlib.NewWriter(w)
12633 if len(x) > math.MaxUint16 {
12636 write16(w, uint16(len(x)))
12637 keys := make([][3]int16, 0, len(x))
12638 for key := range x {
12639 keys = append(keys, key)
12641 sort.Slice(keys, func(i, j int) bool {
12642 p, q := keys[i], keys[j]
12655 for _, key := range keys {
12656 for _, n := range key {
12657 write16(w, uint16(n))
12659 chk(serialize(w, x[key]))
12670 if len((buf.Bytes())) > math.MaxUint32 {
12674 x := uint32(len((buf.Bytes())))
12675 write32(w, uint32(x))
12678 _, err := w.Write((buf.Bytes())[:])
12685 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
12692 r := &io.LimitedReader{R: r, N: int64(n)}
12694 p := &(*(*(struct {
12696 Changed map[[3]int16]*NodeMeta
12699 r, err := zlib.NewReader(byteReader{r})
12702 switch ver := read8(r); ver {
12707 *p = make(map[[3]int16]*NodeMeta, n)
12710 for i := range pos {
12711 pos[i] = int16(read16(r))
12713 nm := new(NodeMeta)
12714 chk(deserialize(r, nm))
12718 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
12726 chk(fmt.Errorf("%d bytes of trailing data", r.N))
12731 func (obj *ToCltSunParams) serialize(w io.Writer) {
12748 if err := pcall(func() {
12756 }))(obj)).Texture).serialize(w)
12761 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12763 if err := pcall(func() {
12771 }))(obj)).ToneMap).serialize(w)
12776 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12778 if err := pcall(func() {
12786 }))(obj)).Rise).serialize(w)
12791 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12818 write32(w, math.Float32bits(x))
12822 func (obj *ToCltSunParams) deserialize(r io.Reader) {
12824 p := &(*(*(struct {
12832 switch n := read8(r); n {
12838 chk(fmt.Errorf("invalid bool: %d", n))
12842 if err := pcall(func() {
12850 }))(obj)).Texture).deserialize(r)
12855 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12857 if err := pcall(func() {
12865 }))(obj)).ToneMap).deserialize(r)
12870 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12872 if err := pcall(func() {
12880 }))(obj)).Rise).deserialize(r)
12885 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12888 p := &(*(*(struct {
12896 switch n := read8(r); n {
12902 chk(fmt.Errorf("invalid bool: %d", n))
12907 p := &(*(*(struct {
12915 *p = math.Float32frombits(read32(r))
12919 func (obj *ToCltMoonParams) serialize(w io.Writer) {
12934 if err := pcall(func() {
12940 }))(obj)).Texture).serialize(w)
12945 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12947 if err := pcall(func() {
12953 }))(obj)).ToneMap).serialize(w)
12958 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12967 write32(w, math.Float32bits(x))
12971 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
12973 p := &(*(*(struct {
12979 switch n := read8(r); n {
12985 chk(fmt.Errorf("invalid bool: %d", n))
12989 if err := pcall(func() {
12995 }))(obj)).Texture).deserialize(r)
13000 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13002 if err := pcall(func() {
13008 }))(obj)).ToneMap).deserialize(r)
13013 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13016 p := &(*(*(struct {
13022 *p = math.Float32frombits(read32(r))
13026 func (obj *ToCltStarParams) serialize(w io.Writer) {
13048 write32(w, uint32(x))
13057 w.Write([]byte{x.A, x.R, x.G, x.B})
13067 write32(w, math.Float32bits(x))
13071 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13073 p := &(*(*(struct {
13079 switch n := read8(r); n {
13085 chk(fmt.Errorf("invalid bool: %d", n))
13090 p := &(*(*(struct {
13099 p := &(*(*(struct {
13105 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13109 p := &(*(*(struct {
13115 *p = math.Float32frombits(read32(r))
13119 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13120 if len(((*(*(struct {
13122 }))(obj)).Salt)) > math.MaxUint16 {
13126 x := uint16(len(((*(*(struct {
13129 write16(w, uint16(x))
13132 _, err := w.Write(((*(*(struct {
13134 }))(obj)).Salt)[:])
13137 if len(((*(*(struct {
13139 }))(obj)).B)) > math.MaxUint16 {
13143 x := uint16(len(((*(*(struct {
13146 write16(w, uint16(x))
13149 _, err := w.Write(((*(*(struct {
13156 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13157 var local221 uint16
13164 }))(obj)).Salt) = make([]byte, local221)
13166 _, err := io.ReadFull(r, ((*(*(struct {
13168 }))(obj)).Salt)[:])
13171 var local222 uint16
13178 }))(obj)).B) = make([]byte, local222)
13180 _, err := io.ReadFull(r, ((*(*(struct {
13187 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13188 if len(([]byte((*(*(struct {
13190 }))(obj)).Prepend))) > math.MaxUint16 {
13194 x := uint16(len(([]byte((*(*(struct {
13196 }))(obj)).Prepend))))
13197 write16(w, uint16(x))
13200 _, err := w.Write(([]byte((*(*(struct {
13202 }))(obj)).Prepend))[:])
13207 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13208 var local223 []uint8
13209 var local224 uint16
13214 (local223) = make([]uint8, local224)
13216 _, err := io.ReadFull(r, (local223)[:])
13221 }))(obj)).Prepend) = string(local223)
13224 func (obj *AOCmdProps) serialize(w io.Writer) {
13225 if err := pcall(func() {
13228 }))(obj)).Props).serialize(w)
13233 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13237 func (obj *AOCmdProps) deserialize(r io.Reader) {
13238 if err := pcall(func() {
13241 }))(obj)).Props).deserialize(r)
13246 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13250 func (obj *AOCmdPos) serialize(w io.Writer) {
13251 if err := pcall(func() {
13254 }))(obj)).Pos).serialize(w)
13259 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13263 func (obj *AOCmdPos) deserialize(r io.Reader) {
13264 if err := pcall(func() {
13267 }))(obj)).Pos).deserialize(r)
13272 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13276 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13277 if err := pcall(func() {
13279 Mod Texture // suffix
13280 }))(obj)).Mod).serialize(w)
13285 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13289 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13290 if err := pcall(func() {
13292 Mod Texture // suffix
13293 }))(obj)).Mod).deserialize(r)
13298 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13302 func (obj *AOCmdSprite) serialize(w io.Writer) {
13303 if err := pcall(func() {
13306 }))(obj)).Sprite).serialize(w)
13311 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13315 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13316 if err := pcall(func() {
13319 }))(obj)).Sprite).deserialize(r)
13324 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13328 func (obj *AOCmdHP) serialize(w io.Writer) {
13333 write16(w, uint16(x))
13337 func (obj *AOCmdHP) deserialize(r io.Reader) {
13339 p := &(*(*(struct {
13346 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13347 if len(((*(*(struct {
13349 }))(obj)).Armor)) > math.MaxUint16 {
13353 x := uint16(len(((*(*(struct {
13356 write16(w, uint16(x))
13358 for local225 := range (*(*(struct {
13361 if err := pcall(func() {
13364 }))(obj)).Armor)[local225]).serialize(w)
13369 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13374 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13375 var local226 uint16
13382 }))(obj)).Armor) = make([]Group, local226)
13383 for local227 := range (*(*(struct {
13386 if err := pcall(func() {
13389 }))(obj)).Armor)[local227]).deserialize(r)
13394 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13399 func (obj *AOCmdAnim) serialize(w io.Writer) {
13400 if err := pcall(func() {
13403 }))(obj)).Anim).serialize(w)
13408 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13412 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13413 if err := pcall(func() {
13416 }))(obj)).Anim).deserialize(r)
13421 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13425 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13426 if len(([]byte((*(*(struct {
13429 }))(obj)).Bone))) > math.MaxUint16 {
13433 x := uint16(len(([]byte((*(*(struct {
13437 write16(w, uint16(x))
13440 _, err := w.Write(([]byte((*(*(struct {
13443 }))(obj)).Bone))[:])
13446 if err := pcall(func() {
13450 }))(obj)).Pos).serialize(w)
13455 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13459 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13460 var local228 []uint8
13461 var local229 uint16
13466 (local228) = make([]uint8, local229)
13468 _, err := io.ReadFull(r, (local228)[:])
13474 }))(obj)).Bone) = string(local228)
13475 if err := pcall(func() {
13479 }))(obj)).Pos).deserialize(r)
13484 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13488 func (obj *AOCmdAttach) serialize(w io.Writer) {
13489 if err := pcall(func() {
13492 }))(obj)).Attach).serialize(w)
13497 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13501 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13502 if err := pcall(func() {
13505 }))(obj)).Attach).deserialize(r)
13510 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13514 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13515 if err := pcall(func() {
13517 Phys AOPhysOverride
13518 }))(obj)).Phys).serialize(w)
13523 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13527 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13528 if err := pcall(func() {
13530 Phys AOPhysOverride
13531 }))(obj)).Phys).deserialize(r)
13536 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13540 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13541 if err := pcall(func() {
13544 }))(obj)).ID).serialize(w)
13549 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13552 local230 := genericCAO
13553 if err := pcall(func() {
13554 (local230).serialize(w)
13559 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13564 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13565 if err := pcall(func() {
13568 }))(obj)).ID).deserialize(r)
13573 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13576 var local231 aoType
13577 local232 := genericCAO
13578 if err := pcall(func() {
13579 (local231).deserialize(r)
13584 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13586 if local231 != local232 {
13587 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13592 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13597 write32(w, math.Float32bits(x))
13601 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13603 p := &(*(*(struct {
13606 *p = math.Float32frombits(read32(r))
13610 func (obj *NodeMeta) serialize(w io.Writer) {
13611 if len(((*(*(struct {
13613 Fields []NodeMetaField
13616 }))(obj)).Fields)) > math.MaxUint32 {
13620 x := uint32(len(((*(*(struct {
13622 Fields []NodeMetaField
13625 }))(obj)).Fields)))
13626 write32(w, uint32(x))
13628 for local233 := range (*(*(struct {
13630 Fields []NodeMetaField
13634 if err := pcall(func() {
13637 Fields []NodeMetaField
13640 }))(obj)).Fields)[local233]).serialize(w)
13645 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
13650 Fields []NodeMetaField
13653 }))(obj)).Inv).Serialize(w))
13656 func (obj *NodeMeta) deserialize(r io.Reader) {
13657 var local234 uint32
13664 Fields []NodeMetaField
13667 }))(obj)).Fields) = make([]NodeMetaField, local234)
13668 for local235 := range (*(*(struct {
13670 Fields []NodeMetaField
13674 if err := pcall(func() {
13677 Fields []NodeMetaField
13680 }))(obj)).Fields)[local235]).deserialize(r)
13685 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
13690 Fields []NodeMetaField
13693 }))(obj)).Inv).Deserialize(r))
13696 func (obj *MinimapMode) serialize(w io.Writer) {
13697 if err := pcall(func() {
13704 }))(obj)).Type).serialize(w)
13709 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
13711 if len(([]byte((*(*(struct {
13717 }))(obj)).Label))) > math.MaxUint16 {
13721 x := uint16(len(([]byte((*(*(struct {
13727 }))(obj)).Label))))
13728 write16(w, uint16(x))
13731 _, err := w.Write(([]byte((*(*(struct {
13737 }))(obj)).Label))[:])
13748 write16(w, uint16(x))
13750 if err := pcall(func() {
13757 }))(obj)).Texture).serialize(w)
13762 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13772 write16(w, uint16(x))
13776 func (obj *MinimapMode) deserialize(r io.Reader) {
13777 if err := pcall(func() {
13784 }))(obj)).Type).deserialize(r)
13789 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
13791 var local236 []uint8
13792 var local237 uint16
13797 (local236) = make([]uint8, local237)
13799 _, err := io.ReadFull(r, (local236)[:])
13808 }))(obj)).Label) = string(local236)
13810 p := &(*(*(struct {
13819 if err := pcall(func() {
13826 }))(obj)).Texture).deserialize(r)
13831 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13834 p := &(*(*(struct {
13845 func (obj *NodeDef) serialize(w io.Writer) {
13846 if err := pcall(func() {
13859 //mt:const uint8(6)
13861 OverlayTiles [6]TileDef
13862 //mt:const uint8(6)
13863 SpecialTiles [6]TileDef
13870 ConnectTo []Content
13871 InsideTint color.NRGBA
13872 Level uint8 // Must be < 128.
13874 Translucent bool // Sunlight is scattered and becomes normal light.
13875 Transparent bool // Sunlight isn't scattered.
13888 LiquidType LiquidType
13891 Viscosity uint8 // 0-7
13897 DrawBox, ColBox, SelBox NodeBox
13899 FootstepSnd, DiggingSnd, DugSnd SoundDef
13909 }))(obj)).Param0).serialize(w)
13914 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
13918 w := new(bytes.Buffer)
13920 local238 := uint8(13)
13923 write8(w, uint8(x))
13926 if len(([]byte((*(*(struct {
13938 //mt:const uint8(6)
13940 OverlayTiles [6]TileDef
13941 //mt:const uint8(6)
13942 SpecialTiles [6]TileDef
13949 ConnectTo []Content
13950 InsideTint color.NRGBA
13951 Level uint8 // Must be < 128.
13953 Translucent bool // Sunlight is scattered and becomes normal light.
13954 Transparent bool // Sunlight isn't scattered.
13967 LiquidType LiquidType
13970 Viscosity uint8 // 0-7
13976 DrawBox, ColBox, SelBox NodeBox
13978 FootstepSnd, DiggingSnd, DugSnd SoundDef
13988 }))(obj)).Name))) > math.MaxUint16 {
13992 x := uint16(len(([]byte((*(*(struct {
14004 //mt:const uint8(6)
14006 OverlayTiles [6]TileDef
14007 //mt:const uint8(6)
14008 SpecialTiles [6]TileDef
14015 ConnectTo []Content
14016 InsideTint color.NRGBA
14017 Level uint8 // Must be < 128.
14019 Translucent bool // Sunlight is scattered and becomes normal light.
14020 Transparent bool // Sunlight isn't scattered.
14033 LiquidType LiquidType
14036 Viscosity uint8 // 0-7
14042 DrawBox, ColBox, SelBox NodeBox
14044 FootstepSnd, DiggingSnd, DugSnd SoundDef
14055 write16(w, uint16(x))
14058 _, err := w.Write(([]byte((*(*(struct {
14070 //mt:const uint8(6)
14072 OverlayTiles [6]TileDef
14073 //mt:const uint8(6)
14074 SpecialTiles [6]TileDef
14081 ConnectTo []Content
14082 InsideTint color.NRGBA
14083 Level uint8 // Must be < 128.
14085 Translucent bool // Sunlight is scattered and becomes normal light.
14086 Transparent bool // Sunlight isn't scattered.
14099 LiquidType LiquidType
14102 Viscosity uint8 // 0-7
14108 DrawBox, ColBox, SelBox NodeBox
14110 FootstepSnd, DiggingSnd, DugSnd SoundDef
14120 }))(obj)).Name))[:])
14123 if len(((*(*(struct {
14135 //mt:const uint8(6)
14137 OverlayTiles [6]TileDef
14138 //mt:const uint8(6)
14139 SpecialTiles [6]TileDef
14146 ConnectTo []Content
14147 InsideTint color.NRGBA
14148 Level uint8 // Must be < 128.
14150 Translucent bool // Sunlight is scattered and becomes normal light.
14151 Transparent bool // Sunlight isn't scattered.
14164 LiquidType LiquidType
14167 Viscosity uint8 // 0-7
14173 DrawBox, ColBox, SelBox NodeBox
14175 FootstepSnd, DiggingSnd, DugSnd SoundDef
14185 }))(obj)).Groups)) > math.MaxUint16 {
14189 x := uint16(len(((*(*(struct {
14201 //mt:const uint8(6)
14203 OverlayTiles [6]TileDef
14204 //mt:const uint8(6)
14205 SpecialTiles [6]TileDef
14212 ConnectTo []Content
14213 InsideTint color.NRGBA
14214 Level uint8 // Must be < 128.
14216 Translucent bool // Sunlight is scattered and becomes normal light.
14217 Transparent bool // Sunlight isn't scattered.
14230 LiquidType LiquidType
14233 Viscosity uint8 // 0-7
14239 DrawBox, ColBox, SelBox NodeBox
14241 FootstepSnd, DiggingSnd, DugSnd SoundDef
14251 }))(obj)).Groups)))
14252 write16(w, uint16(x))
14254 for local239 := range (*(*(struct {
14266 //mt:const uint8(6)
14268 OverlayTiles [6]TileDef
14269 //mt:const uint8(6)
14270 SpecialTiles [6]TileDef
14277 ConnectTo []Content
14278 InsideTint color.NRGBA
14279 Level uint8 // Must be < 128.
14281 Translucent bool // Sunlight is scattered and becomes normal light.
14282 Transparent bool // Sunlight isn't scattered.
14295 LiquidType LiquidType
14298 Viscosity uint8 // 0-7
14304 DrawBox, ColBox, SelBox NodeBox
14306 FootstepSnd, DiggingSnd, DugSnd SoundDef
14317 if err := pcall(func() {
14330 //mt:const uint8(6)
14332 OverlayTiles [6]TileDef
14333 //mt:const uint8(6)
14334 SpecialTiles [6]TileDef
14341 ConnectTo []Content
14342 InsideTint color.NRGBA
14343 Level uint8 // Must be < 128.
14345 Translucent bool // Sunlight is scattered and becomes normal light.
14346 Transparent bool // Sunlight isn't scattered.
14359 LiquidType LiquidType
14362 Viscosity uint8 // 0-7
14368 DrawBox, ColBox, SelBox NodeBox
14370 FootstepSnd, DiggingSnd, DugSnd SoundDef
14380 }))(obj)).Groups)[local239]).serialize(w)
14385 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
14388 if err := pcall(func() {
14401 //mt:const uint8(6)
14403 OverlayTiles [6]TileDef
14404 //mt:const uint8(6)
14405 SpecialTiles [6]TileDef
14412 ConnectTo []Content
14413 InsideTint color.NRGBA
14414 Level uint8 // Must be < 128.
14416 Translucent bool // Sunlight is scattered and becomes normal light.
14417 Transparent bool // Sunlight isn't scattered.
14430 LiquidType LiquidType
14433 Viscosity uint8 // 0-7
14439 DrawBox, ColBox, SelBox NodeBox
14441 FootstepSnd, DiggingSnd, DugSnd SoundDef
14451 }))(obj)).P1Type).serialize(w)
14456 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
14458 if err := pcall(func() {
14471 //mt:const uint8(6)
14473 OverlayTiles [6]TileDef
14474 //mt:const uint8(6)
14475 SpecialTiles [6]TileDef
14482 ConnectTo []Content
14483 InsideTint color.NRGBA
14484 Level uint8 // Must be < 128.
14486 Translucent bool // Sunlight is scattered and becomes normal light.
14487 Transparent bool // Sunlight isn't scattered.
14500 LiquidType LiquidType
14503 Viscosity uint8 // 0-7
14509 DrawBox, ColBox, SelBox NodeBox
14511 FootstepSnd, DiggingSnd, DugSnd SoundDef
14521 }))(obj)).P2Type).serialize(w)
14526 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
14528 if err := pcall(func() {
14541 //mt:const uint8(6)
14543 OverlayTiles [6]TileDef
14544 //mt:const uint8(6)
14545 SpecialTiles [6]TileDef
14552 ConnectTo []Content
14553 InsideTint color.NRGBA
14554 Level uint8 // Must be < 128.
14556 Translucent bool // Sunlight is scattered and becomes normal light.
14557 Transparent bool // Sunlight isn't scattered.
14570 LiquidType LiquidType
14573 Viscosity uint8 // 0-7
14579 DrawBox, ColBox, SelBox NodeBox
14581 FootstepSnd, DiggingSnd, DugSnd SoundDef
14591 }))(obj)).DrawType).serialize(w)
14596 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
14598 if len(([]byte((*(*(struct {
14610 //mt:const uint8(6)
14612 OverlayTiles [6]TileDef
14613 //mt:const uint8(6)
14614 SpecialTiles [6]TileDef
14621 ConnectTo []Content
14622 InsideTint color.NRGBA
14623 Level uint8 // Must be < 128.
14625 Translucent bool // Sunlight is scattered and becomes normal light.
14626 Transparent bool // Sunlight isn't scattered.
14639 LiquidType LiquidType
14642 Viscosity uint8 // 0-7
14648 DrawBox, ColBox, SelBox NodeBox
14650 FootstepSnd, DiggingSnd, DugSnd SoundDef
14660 }))(obj)).Mesh))) > math.MaxUint16 {
14664 x := uint16(len(([]byte((*(*(struct {
14676 //mt:const uint8(6)
14678 OverlayTiles [6]TileDef
14679 //mt:const uint8(6)
14680 SpecialTiles [6]TileDef
14687 ConnectTo []Content
14688 InsideTint color.NRGBA
14689 Level uint8 // Must be < 128.
14691 Translucent bool // Sunlight is scattered and becomes normal light.
14692 Transparent bool // Sunlight isn't scattered.
14705 LiquidType LiquidType
14708 Viscosity uint8 // 0-7
14714 DrawBox, ColBox, SelBox NodeBox
14716 FootstepSnd, DiggingSnd, DugSnd SoundDef
14727 write16(w, uint16(x))
14730 _, err := w.Write(([]byte((*(*(struct {
14742 //mt:const uint8(6)
14744 OverlayTiles [6]TileDef
14745 //mt:const uint8(6)
14746 SpecialTiles [6]TileDef
14753 ConnectTo []Content
14754 InsideTint color.NRGBA
14755 Level uint8 // Must be < 128.
14757 Translucent bool // Sunlight is scattered and becomes normal light.
14758 Transparent bool // Sunlight isn't scattered.
14771 LiquidType LiquidType
14774 Viscosity uint8 // 0-7
14780 DrawBox, ColBox, SelBox NodeBox
14782 FootstepSnd, DiggingSnd, DugSnd SoundDef
14792 }))(obj)).Mesh))[:])
14808 //mt:const uint8(6)
14810 OverlayTiles [6]TileDef
14811 //mt:const uint8(6)
14812 SpecialTiles [6]TileDef
14819 ConnectTo []Content
14820 InsideTint color.NRGBA
14821 Level uint8 // Must be < 128.
14823 Translucent bool // Sunlight is scattered and becomes normal light.
14824 Transparent bool // Sunlight isn't scattered.
14837 LiquidType LiquidType
14840 Viscosity uint8 // 0-7
14846 DrawBox, ColBox, SelBox NodeBox
14848 FootstepSnd, DiggingSnd, DugSnd SoundDef
14859 write32(w, math.Float32bits(x))
14862 local240 := uint8(6)
14865 write8(w, uint8(x))
14868 for local241 := range (*(*(struct {
14880 //mt:const uint8(6)
14882 OverlayTiles [6]TileDef
14883 //mt:const uint8(6)
14884 SpecialTiles [6]TileDef
14891 ConnectTo []Content
14892 InsideTint color.NRGBA
14893 Level uint8 // Must be < 128.
14895 Translucent bool // Sunlight is scattered and becomes normal light.
14896 Transparent bool // Sunlight isn't scattered.
14909 LiquidType LiquidType
14912 Viscosity uint8 // 0-7
14918 DrawBox, ColBox, SelBox NodeBox
14920 FootstepSnd, DiggingSnd, DugSnd SoundDef
14931 if err := pcall(func() {
14944 //mt:const uint8(6)
14946 OverlayTiles [6]TileDef
14947 //mt:const uint8(6)
14948 SpecialTiles [6]TileDef
14955 ConnectTo []Content
14956 InsideTint color.NRGBA
14957 Level uint8 // Must be < 128.
14959 Translucent bool // Sunlight is scattered and becomes normal light.
14960 Transparent bool // Sunlight isn't scattered.
14973 LiquidType LiquidType
14976 Viscosity uint8 // 0-7
14982 DrawBox, ColBox, SelBox NodeBox
14984 FootstepSnd, DiggingSnd, DugSnd SoundDef
14994 }))(obj)).Tiles)[local241]).serialize(w)
14999 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15002 for local242 := range (*(*(struct {
15014 //mt:const uint8(6)
15016 OverlayTiles [6]TileDef
15017 //mt:const uint8(6)
15018 SpecialTiles [6]TileDef
15025 ConnectTo []Content
15026 InsideTint color.NRGBA
15027 Level uint8 // Must be < 128.
15029 Translucent bool // Sunlight is scattered and becomes normal light.
15030 Transparent bool // Sunlight isn't scattered.
15043 LiquidType LiquidType
15046 Viscosity uint8 // 0-7
15052 DrawBox, ColBox, SelBox NodeBox
15054 FootstepSnd, DiggingSnd, DugSnd SoundDef
15064 }))(obj)).OverlayTiles {
15065 if err := pcall(func() {
15078 //mt:const uint8(6)
15080 OverlayTiles [6]TileDef
15081 //mt:const uint8(6)
15082 SpecialTiles [6]TileDef
15089 ConnectTo []Content
15090 InsideTint color.NRGBA
15091 Level uint8 // Must be < 128.
15093 Translucent bool // Sunlight is scattered and becomes normal light.
15094 Transparent bool // Sunlight isn't scattered.
15107 LiquidType LiquidType
15110 Viscosity uint8 // 0-7
15116 DrawBox, ColBox, SelBox NodeBox
15118 FootstepSnd, DiggingSnd, DugSnd SoundDef
15128 }))(obj)).OverlayTiles)[local242]).serialize(w)
15133 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15137 local243 := uint8(6)
15140 write8(w, uint8(x))
15143 for local244 := range (*(*(struct {
15155 //mt:const uint8(6)
15157 OverlayTiles [6]TileDef
15158 //mt:const uint8(6)
15159 SpecialTiles [6]TileDef
15166 ConnectTo []Content
15167 InsideTint color.NRGBA
15168 Level uint8 // Must be < 128.
15170 Translucent bool // Sunlight is scattered and becomes normal light.
15171 Transparent bool // Sunlight isn't scattered.
15184 LiquidType LiquidType
15187 Viscosity uint8 // 0-7
15193 DrawBox, ColBox, SelBox NodeBox
15195 FootstepSnd, DiggingSnd, DugSnd SoundDef
15205 }))(obj)).SpecialTiles {
15206 if err := pcall(func() {
15219 //mt:const uint8(6)
15221 OverlayTiles [6]TileDef
15222 //mt:const uint8(6)
15223 SpecialTiles [6]TileDef
15230 ConnectTo []Content
15231 InsideTint color.NRGBA
15232 Level uint8 // Must be < 128.
15234 Translucent bool // Sunlight is scattered and becomes normal light.
15235 Transparent bool // Sunlight isn't scattered.
15248 LiquidType LiquidType
15251 Viscosity uint8 // 0-7
15257 DrawBox, ColBox, SelBox NodeBox
15259 FootstepSnd, DiggingSnd, DugSnd SoundDef
15269 }))(obj)).SpecialTiles)[local244]).serialize(w)
15274 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15290 //mt:const uint8(6)
15292 OverlayTiles [6]TileDef
15293 //mt:const uint8(6)
15294 SpecialTiles [6]TileDef
15301 ConnectTo []Content
15302 InsideTint color.NRGBA
15303 Level uint8 // Must be < 128.
15305 Translucent bool // Sunlight is scattered and becomes normal light.
15306 Transparent bool // Sunlight isn't scattered.
15319 LiquidType LiquidType
15322 Viscosity uint8 // 0-7
15328 DrawBox, ColBox, SelBox NodeBox
15330 FootstepSnd, DiggingSnd, DugSnd SoundDef
15341 w.Write([]byte{x.A, x.R, x.G, x.B})
15344 if err := pcall(func() {
15357 //mt:const uint8(6)
15359 OverlayTiles [6]TileDef
15360 //mt:const uint8(6)
15361 SpecialTiles [6]TileDef
15368 ConnectTo []Content
15369 InsideTint color.NRGBA
15370 Level uint8 // Must be < 128.
15372 Translucent bool // Sunlight is scattered and becomes normal light.
15373 Transparent bool // Sunlight isn't scattered.
15386 LiquidType LiquidType
15389 Viscosity uint8 // 0-7
15395 DrawBox, ColBox, SelBox NodeBox
15397 FootstepSnd, DiggingSnd, DugSnd SoundDef
15407 }))(obj)).Palette).serialize(w)
15412 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
15414 if err := pcall(func() {
15427 //mt:const uint8(6)
15429 OverlayTiles [6]TileDef
15430 //mt:const uint8(6)
15431 SpecialTiles [6]TileDef
15438 ConnectTo []Content
15439 InsideTint color.NRGBA
15440 Level uint8 // Must be < 128.
15442 Translucent bool // Sunlight is scattered and becomes normal light.
15443 Transparent bool // Sunlight isn't scattered.
15456 LiquidType LiquidType
15459 Viscosity uint8 // 0-7
15465 DrawBox, ColBox, SelBox NodeBox
15467 FootstepSnd, DiggingSnd, DugSnd SoundDef
15477 }))(obj)).Waving).serialize(w)
15482 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
15497 //mt:const uint8(6)
15499 OverlayTiles [6]TileDef
15500 //mt:const uint8(6)
15501 SpecialTiles [6]TileDef
15508 ConnectTo []Content
15509 InsideTint color.NRGBA
15510 Level uint8 // Must be < 128.
15512 Translucent bool // Sunlight is scattered and becomes normal light.
15513 Transparent bool // Sunlight isn't scattered.
15526 LiquidType LiquidType
15529 Viscosity uint8 // 0-7
15535 DrawBox, ColBox, SelBox NodeBox
15537 FootstepSnd, DiggingSnd, DugSnd SoundDef
15547 }))(obj)).ConnectSides
15548 write8(w, uint8(x))
15550 if len(((*(*(struct {
15562 //mt:const uint8(6)
15564 OverlayTiles [6]TileDef
15565 //mt:const uint8(6)
15566 SpecialTiles [6]TileDef
15573 ConnectTo []Content
15574 InsideTint color.NRGBA
15575 Level uint8 // Must be < 128.
15577 Translucent bool // Sunlight is scattered and becomes normal light.
15578 Transparent bool // Sunlight isn't scattered.
15591 LiquidType LiquidType
15594 Viscosity uint8 // 0-7
15600 DrawBox, ColBox, SelBox NodeBox
15602 FootstepSnd, DiggingSnd, DugSnd SoundDef
15612 }))(obj)).ConnectTo)) > math.MaxUint16 {
15616 x := uint16(len(((*(*(struct {
15628 //mt:const uint8(6)
15630 OverlayTiles [6]TileDef
15631 //mt:const uint8(6)
15632 SpecialTiles [6]TileDef
15639 ConnectTo []Content
15640 InsideTint color.NRGBA
15641 Level uint8 // Must be < 128.
15643 Translucent bool // Sunlight is scattered and becomes normal light.
15644 Transparent bool // Sunlight isn't scattered.
15657 LiquidType LiquidType
15660 Viscosity uint8 // 0-7
15666 DrawBox, ColBox, SelBox NodeBox
15668 FootstepSnd, DiggingSnd, DugSnd SoundDef
15678 }))(obj)).ConnectTo)))
15679 write16(w, uint16(x))
15681 for local245 := range (*(*(struct {
15693 //mt:const uint8(6)
15695 OverlayTiles [6]TileDef
15696 //mt:const uint8(6)
15697 SpecialTiles [6]TileDef
15704 ConnectTo []Content
15705 InsideTint color.NRGBA
15706 Level uint8 // Must be < 128.
15708 Translucent bool // Sunlight is scattered and becomes normal light.
15709 Transparent bool // Sunlight isn't scattered.
15722 LiquidType LiquidType
15725 Viscosity uint8 // 0-7
15731 DrawBox, ColBox, SelBox NodeBox
15733 FootstepSnd, DiggingSnd, DugSnd SoundDef
15743 }))(obj)).ConnectTo {
15744 if err := pcall(func() {
15757 //mt:const uint8(6)
15759 OverlayTiles [6]TileDef
15760 //mt:const uint8(6)
15761 SpecialTiles [6]TileDef
15768 ConnectTo []Content
15769 InsideTint color.NRGBA
15770 Level uint8 // Must be < 128.
15772 Translucent bool // Sunlight is scattered and becomes normal light.
15773 Transparent bool // Sunlight isn't scattered.
15786 LiquidType LiquidType
15789 Viscosity uint8 // 0-7
15795 DrawBox, ColBox, SelBox NodeBox
15797 FootstepSnd, DiggingSnd, DugSnd SoundDef
15807 }))(obj)).ConnectTo)[local245]).serialize(w)
15812 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
15828 //mt:const uint8(6)
15830 OverlayTiles [6]TileDef
15831 //mt:const uint8(6)
15832 SpecialTiles [6]TileDef
15839 ConnectTo []Content
15840 InsideTint color.NRGBA
15841 Level uint8 // Must be < 128.
15843 Translucent bool // Sunlight is scattered and becomes normal light.
15844 Transparent bool // Sunlight isn't scattered.
15857 LiquidType LiquidType
15860 Viscosity uint8 // 0-7
15866 DrawBox, ColBox, SelBox NodeBox
15868 FootstepSnd, DiggingSnd, DugSnd SoundDef
15878 }))(obj)).InsideTint
15879 w.Write([]byte{x.A, x.R, x.G, x.B})
15895 //mt:const uint8(6)
15897 OverlayTiles [6]TileDef
15898 //mt:const uint8(6)
15899 SpecialTiles [6]TileDef
15906 ConnectTo []Content
15907 InsideTint color.NRGBA
15908 Level uint8 // Must be < 128.
15910 Translucent bool // Sunlight is scattered and becomes normal light.
15911 Transparent bool // Sunlight isn't scattered.
15924 LiquidType LiquidType
15927 Viscosity uint8 // 0-7
15933 DrawBox, ColBox, SelBox NodeBox
15935 FootstepSnd, DiggingSnd, DugSnd SoundDef
15946 write8(w, uint8(x))
15961 //mt:const uint8(6)
15963 OverlayTiles [6]TileDef
15964 //mt:const uint8(6)
15965 SpecialTiles [6]TileDef
15972 ConnectTo []Content
15973 InsideTint color.NRGBA
15974 Level uint8 // Must be < 128.
15976 Translucent bool // Sunlight is scattered and becomes normal light.
15977 Transparent bool // Sunlight isn't scattered.
15990 LiquidType LiquidType
15993 Viscosity uint8 // 0-7
15999 DrawBox, ColBox, SelBox NodeBox
16001 FootstepSnd, DiggingSnd, DugSnd SoundDef
16011 }))(obj)).Translucent
16032 //mt:const uint8(6)
16034 OverlayTiles [6]TileDef
16035 //mt:const uint8(6)
16036 SpecialTiles [6]TileDef
16043 ConnectTo []Content
16044 InsideTint color.NRGBA
16045 Level uint8 // Must be < 128.
16047 Translucent bool // Sunlight is scattered and becomes normal light.
16048 Transparent bool // Sunlight isn't scattered.
16061 LiquidType LiquidType
16064 Viscosity uint8 // 0-7
16070 DrawBox, ColBox, SelBox NodeBox
16072 FootstepSnd, DiggingSnd, DugSnd SoundDef
16082 }))(obj)).Transparent
16103 //mt:const uint8(6)
16105 OverlayTiles [6]TileDef
16106 //mt:const uint8(6)
16107 SpecialTiles [6]TileDef
16114 ConnectTo []Content
16115 InsideTint color.NRGBA
16116 Level uint8 // Must be < 128.
16118 Translucent bool // Sunlight is scattered and becomes normal light.
16119 Transparent bool // Sunlight isn't scattered.
16132 LiquidType LiquidType
16135 Viscosity uint8 // 0-7
16141 DrawBox, ColBox, SelBox NodeBox
16143 FootstepSnd, DiggingSnd, DugSnd SoundDef
16154 write8(w, uint8(x))
16169 //mt:const uint8(6)
16171 OverlayTiles [6]TileDef
16172 //mt:const uint8(6)
16173 SpecialTiles [6]TileDef
16180 ConnectTo []Content
16181 InsideTint color.NRGBA
16182 Level uint8 // Must be < 128.
16184 Translucent bool // Sunlight is scattered and becomes normal light.
16185 Transparent bool // Sunlight isn't scattered.
16198 LiquidType LiquidType
16201 Viscosity uint8 // 0-7
16207 DrawBox, ColBox, SelBox NodeBox
16209 FootstepSnd, DiggingSnd, DugSnd SoundDef
16219 }))(obj)).GndContent
16240 //mt:const uint8(6)
16242 OverlayTiles [6]TileDef
16243 //mt:const uint8(6)
16244 SpecialTiles [6]TileDef
16251 ConnectTo []Content
16252 InsideTint color.NRGBA
16253 Level uint8 // Must be < 128.
16255 Translucent bool // Sunlight is scattered and becomes normal light.
16256 Transparent bool // Sunlight isn't scattered.
16269 LiquidType LiquidType
16272 Viscosity uint8 // 0-7
16278 DrawBox, ColBox, SelBox NodeBox
16280 FootstepSnd, DiggingSnd, DugSnd SoundDef
16311 //mt:const uint8(6)
16313 OverlayTiles [6]TileDef
16314 //mt:const uint8(6)
16315 SpecialTiles [6]TileDef
16322 ConnectTo []Content
16323 InsideTint color.NRGBA
16324 Level uint8 // Must be < 128.
16326 Translucent bool // Sunlight is scattered and becomes normal light.
16327 Transparent bool // Sunlight isn't scattered.
16340 LiquidType LiquidType
16343 Viscosity uint8 // 0-7
16349 DrawBox, ColBox, SelBox NodeBox
16351 FootstepSnd, DiggingSnd, DugSnd SoundDef
16361 }))(obj)).Pointable
16382 //mt:const uint8(6)
16384 OverlayTiles [6]TileDef
16385 //mt:const uint8(6)
16386 SpecialTiles [6]TileDef
16393 ConnectTo []Content
16394 InsideTint color.NRGBA
16395 Level uint8 // Must be < 128.
16397 Translucent bool // Sunlight is scattered and becomes normal light.
16398 Transparent bool // Sunlight isn't scattered.
16411 LiquidType LiquidType
16414 Viscosity uint8 // 0-7
16420 DrawBox, ColBox, SelBox NodeBox
16422 FootstepSnd, DiggingSnd, DugSnd SoundDef
16453 //mt:const uint8(6)
16455 OverlayTiles [6]TileDef
16456 //mt:const uint8(6)
16457 SpecialTiles [6]TileDef
16464 ConnectTo []Content
16465 InsideTint color.NRGBA
16466 Level uint8 // Must be < 128.
16468 Translucent bool // Sunlight is scattered and becomes normal light.
16469 Transparent bool // Sunlight isn't scattered.
16482 LiquidType LiquidType
16485 Viscosity uint8 // 0-7
16491 DrawBox, ColBox, SelBox NodeBox
16493 FootstepSnd, DiggingSnd, DugSnd SoundDef
16503 }))(obj)).Climbable
16524 //mt:const uint8(6)
16526 OverlayTiles [6]TileDef
16527 //mt:const uint8(6)
16528 SpecialTiles [6]TileDef
16535 ConnectTo []Content
16536 InsideTint color.NRGBA
16537 Level uint8 // Must be < 128.
16539 Translucent bool // Sunlight is scattered and becomes normal light.
16540 Transparent bool // Sunlight isn't scattered.
16553 LiquidType LiquidType
16556 Viscosity uint8 // 0-7
16562 DrawBox, ColBox, SelBox NodeBox
16564 FootstepSnd, DiggingSnd, DugSnd SoundDef
16574 }))(obj)).Replaceable
16595 //mt:const uint8(6)
16597 OverlayTiles [6]TileDef
16598 //mt:const uint8(6)
16599 SpecialTiles [6]TileDef
16606 ConnectTo []Content
16607 InsideTint color.NRGBA
16608 Level uint8 // Must be < 128.
16610 Translucent bool // Sunlight is scattered and becomes normal light.
16611 Transparent bool // Sunlight isn't scattered.
16624 LiquidType LiquidType
16627 Viscosity uint8 // 0-7
16633 DrawBox, ColBox, SelBox NodeBox
16635 FootstepSnd, DiggingSnd, DugSnd SoundDef
16645 }))(obj)).OnRightClick
16666 //mt:const uint8(6)
16668 OverlayTiles [6]TileDef
16669 //mt:const uint8(6)
16670 SpecialTiles [6]TileDef
16677 ConnectTo []Content
16678 InsideTint color.NRGBA
16679 Level uint8 // Must be < 128.
16681 Translucent bool // Sunlight is scattered and becomes normal light.
16682 Transparent bool // Sunlight isn't scattered.
16695 LiquidType LiquidType
16698 Viscosity uint8 // 0-7
16704 DrawBox, ColBox, SelBox NodeBox
16706 FootstepSnd, DiggingSnd, DugSnd SoundDef
16716 }))(obj)).DmgPerSec
16717 write32(w, uint32(x))
16719 if err := pcall(func() {
16732 //mt:const uint8(6)
16734 OverlayTiles [6]TileDef
16735 //mt:const uint8(6)
16736 SpecialTiles [6]TileDef
16743 ConnectTo []Content
16744 InsideTint color.NRGBA
16745 Level uint8 // Must be < 128.
16747 Translucent bool // Sunlight is scattered and becomes normal light.
16748 Transparent bool // Sunlight isn't scattered.
16761 LiquidType LiquidType
16764 Viscosity uint8 // 0-7
16770 DrawBox, ColBox, SelBox NodeBox
16772 FootstepSnd, DiggingSnd, DugSnd SoundDef
16782 }))(obj)).LiquidType).serialize(w)
16787 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
16789 if len(([]byte((*(*(struct {
16801 //mt:const uint8(6)
16803 OverlayTiles [6]TileDef
16804 //mt:const uint8(6)
16805 SpecialTiles [6]TileDef
16812 ConnectTo []Content
16813 InsideTint color.NRGBA
16814 Level uint8 // Must be < 128.
16816 Translucent bool // Sunlight is scattered and becomes normal light.
16817 Transparent bool // Sunlight isn't scattered.
16830 LiquidType LiquidType
16833 Viscosity uint8 // 0-7
16839 DrawBox, ColBox, SelBox NodeBox
16841 FootstepSnd, DiggingSnd, DugSnd SoundDef
16851 }))(obj)).FlowingAlt))) > math.MaxUint16 {
16855 x := uint16(len(([]byte((*(*(struct {
16867 //mt:const uint8(6)
16869 OverlayTiles [6]TileDef
16870 //mt:const uint8(6)
16871 SpecialTiles [6]TileDef
16878 ConnectTo []Content
16879 InsideTint color.NRGBA
16880 Level uint8 // Must be < 128.
16882 Translucent bool // Sunlight is scattered and becomes normal light.
16883 Transparent bool // Sunlight isn't scattered.
16896 LiquidType LiquidType
16899 Viscosity uint8 // 0-7
16905 DrawBox, ColBox, SelBox NodeBox
16907 FootstepSnd, DiggingSnd, DugSnd SoundDef
16917 }))(obj)).FlowingAlt))))
16918 write16(w, uint16(x))
16921 _, err := w.Write(([]byte((*(*(struct {
16933 //mt:const uint8(6)
16935 OverlayTiles [6]TileDef
16936 //mt:const uint8(6)
16937 SpecialTiles [6]TileDef
16944 ConnectTo []Content
16945 InsideTint color.NRGBA
16946 Level uint8 // Must be < 128.
16948 Translucent bool // Sunlight is scattered and becomes normal light.
16949 Transparent bool // Sunlight isn't scattered.
16962 LiquidType LiquidType
16965 Viscosity uint8 // 0-7
16971 DrawBox, ColBox, SelBox NodeBox
16973 FootstepSnd, DiggingSnd, DugSnd SoundDef
16983 }))(obj)).FlowingAlt))[:])
16986 if len(([]byte((*(*(struct {
16998 //mt:const uint8(6)
17000 OverlayTiles [6]TileDef
17001 //mt:const uint8(6)
17002 SpecialTiles [6]TileDef
17009 ConnectTo []Content
17010 InsideTint color.NRGBA
17011 Level uint8 // Must be < 128.
17013 Translucent bool // Sunlight is scattered and becomes normal light.
17014 Transparent bool // Sunlight isn't scattered.
17027 LiquidType LiquidType
17030 Viscosity uint8 // 0-7
17036 DrawBox, ColBox, SelBox NodeBox
17038 FootstepSnd, DiggingSnd, DugSnd SoundDef
17048 }))(obj)).SrcAlt))) > math.MaxUint16 {
17052 x := uint16(len(([]byte((*(*(struct {
17064 //mt:const uint8(6)
17066 OverlayTiles [6]TileDef
17067 //mt:const uint8(6)
17068 SpecialTiles [6]TileDef
17075 ConnectTo []Content
17076 InsideTint color.NRGBA
17077 Level uint8 // Must be < 128.
17079 Translucent bool // Sunlight is scattered and becomes normal light.
17080 Transparent bool // Sunlight isn't scattered.
17093 LiquidType LiquidType
17096 Viscosity uint8 // 0-7
17102 DrawBox, ColBox, SelBox NodeBox
17104 FootstepSnd, DiggingSnd, DugSnd SoundDef
17114 }))(obj)).SrcAlt))))
17115 write16(w, uint16(x))
17118 _, err := w.Write(([]byte((*(*(struct {
17130 //mt:const uint8(6)
17132 OverlayTiles [6]TileDef
17133 //mt:const uint8(6)
17134 SpecialTiles [6]TileDef
17141 ConnectTo []Content
17142 InsideTint color.NRGBA
17143 Level uint8 // Must be < 128.
17145 Translucent bool // Sunlight is scattered and becomes normal light.
17146 Transparent bool // Sunlight isn't scattered.
17159 LiquidType LiquidType
17162 Viscosity uint8 // 0-7
17168 DrawBox, ColBox, SelBox NodeBox
17170 FootstepSnd, DiggingSnd, DugSnd SoundDef
17180 }))(obj)).SrcAlt))[:])
17196 //mt:const uint8(6)
17198 OverlayTiles [6]TileDef
17199 //mt:const uint8(6)
17200 SpecialTiles [6]TileDef
17207 ConnectTo []Content
17208 InsideTint color.NRGBA
17209 Level uint8 // Must be < 128.
17211 Translucent bool // Sunlight is scattered and becomes normal light.
17212 Transparent bool // Sunlight isn't scattered.
17225 LiquidType LiquidType
17228 Viscosity uint8 // 0-7
17234 DrawBox, ColBox, SelBox NodeBox
17236 FootstepSnd, DiggingSnd, DugSnd SoundDef
17246 }))(obj)).Viscosity
17247 write8(w, uint8(x))
17262 //mt:const uint8(6)
17264 OverlayTiles [6]TileDef
17265 //mt:const uint8(6)
17266 SpecialTiles [6]TileDef
17273 ConnectTo []Content
17274 InsideTint color.NRGBA
17275 Level uint8 // Must be < 128.
17277 Translucent bool // Sunlight is scattered and becomes normal light.
17278 Transparent bool // Sunlight isn't scattered.
17291 LiquidType LiquidType
17294 Viscosity uint8 // 0-7
17300 DrawBox, ColBox, SelBox NodeBox
17302 FootstepSnd, DiggingSnd, DugSnd SoundDef
17312 }))(obj)).LiqRenewable
17333 //mt:const uint8(6)
17335 OverlayTiles [6]TileDef
17336 //mt:const uint8(6)
17337 SpecialTiles [6]TileDef
17344 ConnectTo []Content
17345 InsideTint color.NRGBA
17346 Level uint8 // Must be < 128.
17348 Translucent bool // Sunlight is scattered and becomes normal light.
17349 Transparent bool // Sunlight isn't scattered.
17362 LiquidType LiquidType
17365 Viscosity uint8 // 0-7
17371 DrawBox, ColBox, SelBox NodeBox
17373 FootstepSnd, DiggingSnd, DugSnd SoundDef
17383 }))(obj)).FlowRange
17384 write8(w, uint8(x))
17399 //mt:const uint8(6)
17401 OverlayTiles [6]TileDef
17402 //mt:const uint8(6)
17403 SpecialTiles [6]TileDef
17410 ConnectTo []Content
17411 InsideTint color.NRGBA
17412 Level uint8 // Must be < 128.
17414 Translucent bool // Sunlight is scattered and becomes normal light.
17415 Transparent bool // Sunlight isn't scattered.
17428 LiquidType LiquidType
17431 Viscosity uint8 // 0-7
17437 DrawBox, ColBox, SelBox NodeBox
17439 FootstepSnd, DiggingSnd, DugSnd SoundDef
17450 write8(w, uint8(x))
17465 //mt:const uint8(6)
17467 OverlayTiles [6]TileDef
17468 //mt:const uint8(6)
17469 SpecialTiles [6]TileDef
17476 ConnectTo []Content
17477 InsideTint color.NRGBA
17478 Level uint8 // Must be < 128.
17480 Translucent bool // Sunlight is scattered and becomes normal light.
17481 Transparent bool // Sunlight isn't scattered.
17494 LiquidType LiquidType
17497 Viscosity uint8 // 0-7
17503 DrawBox, ColBox, SelBox NodeBox
17505 FootstepSnd, DiggingSnd, DugSnd SoundDef
17515 }))(obj)).Floodable
17523 if err := pcall(func() {
17536 //mt:const uint8(6)
17538 OverlayTiles [6]TileDef
17539 //mt:const uint8(6)
17540 SpecialTiles [6]TileDef
17547 ConnectTo []Content
17548 InsideTint color.NRGBA
17549 Level uint8 // Must be < 128.
17551 Translucent bool // Sunlight is scattered and becomes normal light.
17552 Transparent bool // Sunlight isn't scattered.
17565 LiquidType LiquidType
17568 Viscosity uint8 // 0-7
17574 DrawBox, ColBox, SelBox NodeBox
17576 FootstepSnd, DiggingSnd, DugSnd SoundDef
17586 }))(obj)).DrawBox).serialize(w)
17591 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17593 if err := pcall(func() {
17606 //mt:const uint8(6)
17608 OverlayTiles [6]TileDef
17609 //mt:const uint8(6)
17610 SpecialTiles [6]TileDef
17617 ConnectTo []Content
17618 InsideTint color.NRGBA
17619 Level uint8 // Must be < 128.
17621 Translucent bool // Sunlight is scattered and becomes normal light.
17622 Transparent bool // Sunlight isn't scattered.
17635 LiquidType LiquidType
17638 Viscosity uint8 // 0-7
17644 DrawBox, ColBox, SelBox NodeBox
17646 FootstepSnd, DiggingSnd, DugSnd SoundDef
17656 }))(obj)).ColBox).serialize(w)
17661 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17663 if err := pcall(func() {
17676 //mt:const uint8(6)
17678 OverlayTiles [6]TileDef
17679 //mt:const uint8(6)
17680 SpecialTiles [6]TileDef
17687 ConnectTo []Content
17688 InsideTint color.NRGBA
17689 Level uint8 // Must be < 128.
17691 Translucent bool // Sunlight is scattered and becomes normal light.
17692 Transparent bool // Sunlight isn't scattered.
17705 LiquidType LiquidType
17708 Viscosity uint8 // 0-7
17714 DrawBox, ColBox, SelBox NodeBox
17716 FootstepSnd, DiggingSnd, DugSnd SoundDef
17726 }))(obj)).SelBox).serialize(w)
17731 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17733 if err := pcall(func() {
17746 //mt:const uint8(6)
17748 OverlayTiles [6]TileDef
17749 //mt:const uint8(6)
17750 SpecialTiles [6]TileDef
17757 ConnectTo []Content
17758 InsideTint color.NRGBA
17759 Level uint8 // Must be < 128.
17761 Translucent bool // Sunlight is scattered and becomes normal light.
17762 Transparent bool // Sunlight isn't scattered.
17775 LiquidType LiquidType
17778 Viscosity uint8 // 0-7
17784 DrawBox, ColBox, SelBox NodeBox
17786 FootstepSnd, DiggingSnd, DugSnd SoundDef
17796 }))(obj)).FootstepSnd).serialize(w)
17801 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17803 if err := pcall(func() {
17816 //mt:const uint8(6)
17818 OverlayTiles [6]TileDef
17819 //mt:const uint8(6)
17820 SpecialTiles [6]TileDef
17827 ConnectTo []Content
17828 InsideTint color.NRGBA
17829 Level uint8 // Must be < 128.
17831 Translucent bool // Sunlight is scattered and becomes normal light.
17832 Transparent bool // Sunlight isn't scattered.
17845 LiquidType LiquidType
17848 Viscosity uint8 // 0-7
17854 DrawBox, ColBox, SelBox NodeBox
17856 FootstepSnd, DiggingSnd, DugSnd SoundDef
17866 }))(obj)).DiggingSnd).serialize(w)
17871 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17873 if err := pcall(func() {
17886 //mt:const uint8(6)
17888 OverlayTiles [6]TileDef
17889 //mt:const uint8(6)
17890 SpecialTiles [6]TileDef
17897 ConnectTo []Content
17898 InsideTint color.NRGBA
17899 Level uint8 // Must be < 128.
17901 Translucent bool // Sunlight is scattered and becomes normal light.
17902 Transparent bool // Sunlight isn't scattered.
17915 LiquidType LiquidType
17918 Viscosity uint8 // 0-7
17924 DrawBox, ColBox, SelBox NodeBox
17926 FootstepSnd, DiggingSnd, DugSnd SoundDef
17936 }))(obj)).DugSnd).serialize(w)
17941 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17956 //mt:const uint8(6)
17958 OverlayTiles [6]TileDef
17959 //mt:const uint8(6)
17960 SpecialTiles [6]TileDef
17967 ConnectTo []Content
17968 InsideTint color.NRGBA
17969 Level uint8 // Must be < 128.
17971 Translucent bool // Sunlight is scattered and becomes normal light.
17972 Transparent bool // Sunlight isn't scattered.
17985 LiquidType LiquidType
17988 Viscosity uint8 // 0-7
17994 DrawBox, ColBox, SelBox NodeBox
17996 FootstepSnd, DiggingSnd, DugSnd SoundDef
18006 }))(obj)).LegacyFaceDir
18027 //mt:const uint8(6)
18029 OverlayTiles [6]TileDef
18030 //mt:const uint8(6)
18031 SpecialTiles [6]TileDef
18038 ConnectTo []Content
18039 InsideTint color.NRGBA
18040 Level uint8 // Must be < 128.
18042 Translucent bool // Sunlight is scattered and becomes normal light.
18043 Transparent bool // Sunlight isn't scattered.
18056 LiquidType LiquidType
18059 Viscosity uint8 // 0-7
18065 DrawBox, ColBox, SelBox NodeBox
18067 FootstepSnd, DiggingSnd, DugSnd SoundDef
18077 }))(obj)).LegacyMounted
18085 if len(([]byte((*(*(struct {
18097 //mt:const uint8(6)
18099 OverlayTiles [6]TileDef
18100 //mt:const uint8(6)
18101 SpecialTiles [6]TileDef
18108 ConnectTo []Content
18109 InsideTint color.NRGBA
18110 Level uint8 // Must be < 128.
18112 Translucent bool // Sunlight is scattered and becomes normal light.
18113 Transparent bool // Sunlight isn't scattered.
18126 LiquidType LiquidType
18129 Viscosity uint8 // 0-7
18135 DrawBox, ColBox, SelBox NodeBox
18137 FootstepSnd, DiggingSnd, DugSnd SoundDef
18147 }))(obj)).DigPredict))) > math.MaxUint16 {
18151 x := uint16(len(([]byte((*(*(struct {
18163 //mt:const uint8(6)
18165 OverlayTiles [6]TileDef
18166 //mt:const uint8(6)
18167 SpecialTiles [6]TileDef
18174 ConnectTo []Content
18175 InsideTint color.NRGBA
18176 Level uint8 // Must be < 128.
18178 Translucent bool // Sunlight is scattered and becomes normal light.
18179 Transparent bool // Sunlight isn't scattered.
18192 LiquidType LiquidType
18195 Viscosity uint8 // 0-7
18201 DrawBox, ColBox, SelBox NodeBox
18203 FootstepSnd, DiggingSnd, DugSnd SoundDef
18213 }))(obj)).DigPredict))))
18214 write16(w, uint16(x))
18217 _, err := w.Write(([]byte((*(*(struct {
18229 //mt:const uint8(6)
18231 OverlayTiles [6]TileDef
18232 //mt:const uint8(6)
18233 SpecialTiles [6]TileDef
18240 ConnectTo []Content
18241 InsideTint color.NRGBA
18242 Level uint8 // Must be < 128.
18244 Translucent bool // Sunlight is scattered and becomes normal light.
18245 Transparent bool // Sunlight isn't scattered.
18258 LiquidType LiquidType
18261 Viscosity uint8 // 0-7
18267 DrawBox, ColBox, SelBox NodeBox
18269 FootstepSnd, DiggingSnd, DugSnd SoundDef
18279 }))(obj)).DigPredict))[:])
18295 //mt:const uint8(6)
18297 OverlayTiles [6]TileDef
18298 //mt:const uint8(6)
18299 SpecialTiles [6]TileDef
18306 ConnectTo []Content
18307 InsideTint color.NRGBA
18308 Level uint8 // Must be < 128.
18310 Translucent bool // Sunlight is scattered and becomes normal light.
18311 Transparent bool // Sunlight isn't scattered.
18324 LiquidType LiquidType
18327 Viscosity uint8 // 0-7
18333 DrawBox, ColBox, SelBox NodeBox
18335 FootstepSnd, DiggingSnd, DugSnd SoundDef
18346 write8(w, uint8(x))
18348 if err := pcall(func() {
18361 //mt:const uint8(6)
18363 OverlayTiles [6]TileDef
18364 //mt:const uint8(6)
18365 SpecialTiles [6]TileDef
18372 ConnectTo []Content
18373 InsideTint color.NRGBA
18374 Level uint8 // Must be < 128.
18376 Translucent bool // Sunlight is scattered and becomes normal light.
18377 Transparent bool // Sunlight isn't scattered.
18390 LiquidType LiquidType
18393 Viscosity uint8 // 0-7
18399 DrawBox, ColBox, SelBox NodeBox
18401 FootstepSnd, DiggingSnd, DugSnd SoundDef
18411 }))(obj)).AlphaUse).serialize(w)
18416 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
18421 if len((buf.Bytes())) > math.MaxUint16 {
18425 x := uint16(len((buf.Bytes())))
18426 write16(w, uint16(x))
18429 _, err := w.Write((buf.Bytes())[:])
18436 func (obj *NodeDef) deserialize(r io.Reader) {
18437 if err := pcall(func() {
18450 //mt:const uint8(6)
18452 OverlayTiles [6]TileDef
18453 //mt:const uint8(6)
18454 SpecialTiles [6]TileDef
18461 ConnectTo []Content
18462 InsideTint color.NRGBA
18463 Level uint8 // Must be < 128.
18465 Translucent bool // Sunlight is scattered and becomes normal light.
18466 Transparent bool // Sunlight isn't scattered.
18479 LiquidType LiquidType
18482 Viscosity uint8 // 0-7
18488 DrawBox, ColBox, SelBox NodeBox
18490 FootstepSnd, DiggingSnd, DugSnd SoundDef
18500 }))(obj)).Param0).deserialize(r)
18505 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
18513 r := &io.LimitedReader{R: r, N: int64(n)}
18516 local247 := uint8(13)
18521 if local246 != local247 {
18522 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
18525 var local248 []uint8
18526 var local249 uint16
18531 (local248) = make([]uint8, local249)
18533 _, err := io.ReadFull(r, (local248)[:])
18548 //mt:const uint8(6)
18550 OverlayTiles [6]TileDef
18551 //mt:const uint8(6)
18552 SpecialTiles [6]TileDef
18559 ConnectTo []Content
18560 InsideTint color.NRGBA
18561 Level uint8 // Must be < 128.
18563 Translucent bool // Sunlight is scattered and becomes normal light.
18564 Transparent bool // Sunlight isn't scattered.
18577 LiquidType LiquidType
18580 Viscosity uint8 // 0-7
18586 DrawBox, ColBox, SelBox NodeBox
18588 FootstepSnd, DiggingSnd, DugSnd SoundDef
18598 }))(obj)).Name) = string(local248)
18599 var local250 uint16
18616 //mt:const uint8(6)
18618 OverlayTiles [6]TileDef
18619 //mt:const uint8(6)
18620 SpecialTiles [6]TileDef
18627 ConnectTo []Content
18628 InsideTint color.NRGBA
18629 Level uint8 // Must be < 128.
18631 Translucent bool // Sunlight is scattered and becomes normal light.
18632 Transparent bool // Sunlight isn't scattered.
18645 LiquidType LiquidType
18648 Viscosity uint8 // 0-7
18654 DrawBox, ColBox, SelBox NodeBox
18656 FootstepSnd, DiggingSnd, DugSnd SoundDef
18666 }))(obj)).Groups) = make([]Group, local250)
18667 for local251 := range (*(*(struct {
18679 //mt:const uint8(6)
18681 OverlayTiles [6]TileDef
18682 //mt:const uint8(6)
18683 SpecialTiles [6]TileDef
18690 ConnectTo []Content
18691 InsideTint color.NRGBA
18692 Level uint8 // Must be < 128.
18694 Translucent bool // Sunlight is scattered and becomes normal light.
18695 Transparent bool // Sunlight isn't scattered.
18708 LiquidType LiquidType
18711 Viscosity uint8 // 0-7
18717 DrawBox, ColBox, SelBox NodeBox
18719 FootstepSnd, DiggingSnd, DugSnd SoundDef
18730 if err := pcall(func() {
18743 //mt:const uint8(6)
18745 OverlayTiles [6]TileDef
18746 //mt:const uint8(6)
18747 SpecialTiles [6]TileDef
18754 ConnectTo []Content
18755 InsideTint color.NRGBA
18756 Level uint8 // Must be < 128.
18758 Translucent bool // Sunlight is scattered and becomes normal light.
18759 Transparent bool // Sunlight isn't scattered.
18772 LiquidType LiquidType
18775 Viscosity uint8 // 0-7
18781 DrawBox, ColBox, SelBox NodeBox
18783 FootstepSnd, DiggingSnd, DugSnd SoundDef
18793 }))(obj)).Groups)[local251]).deserialize(r)
18798 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
18801 if err := pcall(func() {
18814 //mt:const uint8(6)
18816 OverlayTiles [6]TileDef
18817 //mt:const uint8(6)
18818 SpecialTiles [6]TileDef
18825 ConnectTo []Content
18826 InsideTint color.NRGBA
18827 Level uint8 // Must be < 128.
18829 Translucent bool // Sunlight is scattered and becomes normal light.
18830 Transparent bool // Sunlight isn't scattered.
18843 LiquidType LiquidType
18846 Viscosity uint8 // 0-7
18852 DrawBox, ColBox, SelBox NodeBox
18854 FootstepSnd, DiggingSnd, DugSnd SoundDef
18864 }))(obj)).P1Type).deserialize(r)
18869 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
18871 if err := pcall(func() {
18884 //mt:const uint8(6)
18886 OverlayTiles [6]TileDef
18887 //mt:const uint8(6)
18888 SpecialTiles [6]TileDef
18895 ConnectTo []Content
18896 InsideTint color.NRGBA
18897 Level uint8 // Must be < 128.
18899 Translucent bool // Sunlight is scattered and becomes normal light.
18900 Transparent bool // Sunlight isn't scattered.
18913 LiquidType LiquidType
18916 Viscosity uint8 // 0-7
18922 DrawBox, ColBox, SelBox NodeBox
18924 FootstepSnd, DiggingSnd, DugSnd SoundDef
18934 }))(obj)).P2Type).deserialize(r)
18939 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
18941 if err := pcall(func() {
18954 //mt:const uint8(6)
18956 OverlayTiles [6]TileDef
18957 //mt:const uint8(6)
18958 SpecialTiles [6]TileDef
18965 ConnectTo []Content
18966 InsideTint color.NRGBA
18967 Level uint8 // Must be < 128.
18969 Translucent bool // Sunlight is scattered and becomes normal light.
18970 Transparent bool // Sunlight isn't scattered.
18983 LiquidType LiquidType
18986 Viscosity uint8 // 0-7
18992 DrawBox, ColBox, SelBox NodeBox
18994 FootstepSnd, DiggingSnd, DugSnd SoundDef
19004 }))(obj)).DrawType).deserialize(r)
19009 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
19011 var local252 []uint8
19012 var local253 uint16
19017 (local252) = make([]uint8, local253)
19019 _, err := io.ReadFull(r, (local252)[:])
19034 //mt:const uint8(6)
19036 OverlayTiles [6]TileDef
19037 //mt:const uint8(6)
19038 SpecialTiles [6]TileDef
19045 ConnectTo []Content
19046 InsideTint color.NRGBA
19047 Level uint8 // Must be < 128.
19049 Translucent bool // Sunlight is scattered and becomes normal light.
19050 Transparent bool // Sunlight isn't scattered.
19063 LiquidType LiquidType
19066 Viscosity uint8 // 0-7
19072 DrawBox, ColBox, SelBox NodeBox
19074 FootstepSnd, DiggingSnd, DugSnd SoundDef
19084 }))(obj)).Mesh) = string(local252)
19086 p := &(*(*(struct {
19098 //mt:const uint8(6)
19100 OverlayTiles [6]TileDef
19101 //mt:const uint8(6)
19102 SpecialTiles [6]TileDef
19109 ConnectTo []Content
19110 InsideTint color.NRGBA
19111 Level uint8 // Must be < 128.
19113 Translucent bool // Sunlight is scattered and becomes normal light.
19114 Transparent bool // Sunlight isn't scattered.
19127 LiquidType LiquidType
19130 Viscosity uint8 // 0-7
19136 DrawBox, ColBox, SelBox NodeBox
19138 FootstepSnd, DiggingSnd, DugSnd SoundDef
19149 *p = math.Float32frombits(read32(r))
19153 local255 := uint8(6)
19158 if local254 != local255 {
19159 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19162 for local256 := range (*(*(struct {
19174 //mt:const uint8(6)
19176 OverlayTiles [6]TileDef
19177 //mt:const uint8(6)
19178 SpecialTiles [6]TileDef
19185 ConnectTo []Content
19186 InsideTint color.NRGBA
19187 Level uint8 // Must be < 128.
19189 Translucent bool // Sunlight is scattered and becomes normal light.
19190 Transparent bool // Sunlight isn't scattered.
19203 LiquidType LiquidType
19206 Viscosity uint8 // 0-7
19212 DrawBox, ColBox, SelBox NodeBox
19214 FootstepSnd, DiggingSnd, DugSnd SoundDef
19225 if err := pcall(func() {
19238 //mt:const uint8(6)
19240 OverlayTiles [6]TileDef
19241 //mt:const uint8(6)
19242 SpecialTiles [6]TileDef
19249 ConnectTo []Content
19250 InsideTint color.NRGBA
19251 Level uint8 // Must be < 128.
19253 Translucent bool // Sunlight is scattered and becomes normal light.
19254 Transparent bool // Sunlight isn't scattered.
19267 LiquidType LiquidType
19270 Viscosity uint8 // 0-7
19276 DrawBox, ColBox, SelBox NodeBox
19278 FootstepSnd, DiggingSnd, DugSnd SoundDef
19288 }))(obj)).Tiles)[local256]).deserialize(r)
19293 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19296 for local257 := range (*(*(struct {
19308 //mt:const uint8(6)
19310 OverlayTiles [6]TileDef
19311 //mt:const uint8(6)
19312 SpecialTiles [6]TileDef
19319 ConnectTo []Content
19320 InsideTint color.NRGBA
19321 Level uint8 // Must be < 128.
19323 Translucent bool // Sunlight is scattered and becomes normal light.
19324 Transparent bool // Sunlight isn't scattered.
19337 LiquidType LiquidType
19340 Viscosity uint8 // 0-7
19346 DrawBox, ColBox, SelBox NodeBox
19348 FootstepSnd, DiggingSnd, DugSnd SoundDef
19358 }))(obj)).OverlayTiles {
19359 if err := pcall(func() {
19372 //mt:const uint8(6)
19374 OverlayTiles [6]TileDef
19375 //mt:const uint8(6)
19376 SpecialTiles [6]TileDef
19383 ConnectTo []Content
19384 InsideTint color.NRGBA
19385 Level uint8 // Must be < 128.
19387 Translucent bool // Sunlight is scattered and becomes normal light.
19388 Transparent bool // Sunlight isn't scattered.
19401 LiquidType LiquidType
19404 Viscosity uint8 // 0-7
19410 DrawBox, ColBox, SelBox NodeBox
19412 FootstepSnd, DiggingSnd, DugSnd SoundDef
19422 }))(obj)).OverlayTiles)[local257]).deserialize(r)
19427 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19432 local259 := uint8(6)
19437 if local258 != local259 {
19438 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
19441 for local260 := range (*(*(struct {
19453 //mt:const uint8(6)
19455 OverlayTiles [6]TileDef
19456 //mt:const uint8(6)
19457 SpecialTiles [6]TileDef
19464 ConnectTo []Content
19465 InsideTint color.NRGBA
19466 Level uint8 // Must be < 128.
19468 Translucent bool // Sunlight is scattered and becomes normal light.
19469 Transparent bool // Sunlight isn't scattered.
19482 LiquidType LiquidType
19485 Viscosity uint8 // 0-7
19491 DrawBox, ColBox, SelBox NodeBox
19493 FootstepSnd, DiggingSnd, DugSnd SoundDef
19503 }))(obj)).SpecialTiles {
19504 if err := pcall(func() {
19517 //mt:const uint8(6)
19519 OverlayTiles [6]TileDef
19520 //mt:const uint8(6)
19521 SpecialTiles [6]TileDef
19528 ConnectTo []Content
19529 InsideTint color.NRGBA
19530 Level uint8 // Must be < 128.
19532 Translucent bool // Sunlight is scattered and becomes normal light.
19533 Transparent bool // Sunlight isn't scattered.
19546 LiquidType LiquidType
19549 Viscosity uint8 // 0-7
19555 DrawBox, ColBox, SelBox NodeBox
19557 FootstepSnd, DiggingSnd, DugSnd SoundDef
19567 }))(obj)).SpecialTiles)[local260]).deserialize(r)
19572 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19576 p := &(*(*(struct {
19588 //mt:const uint8(6)
19590 OverlayTiles [6]TileDef
19591 //mt:const uint8(6)
19592 SpecialTiles [6]TileDef
19599 ConnectTo []Content
19600 InsideTint color.NRGBA
19601 Level uint8 // Must be < 128.
19603 Translucent bool // Sunlight is scattered and becomes normal light.
19604 Transparent bool // Sunlight isn't scattered.
19617 LiquidType LiquidType
19620 Viscosity uint8 // 0-7
19626 DrawBox, ColBox, SelBox NodeBox
19628 FootstepSnd, DiggingSnd, DugSnd SoundDef
19639 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19642 if err := pcall(func() {
19655 //mt:const uint8(6)
19657 OverlayTiles [6]TileDef
19658 //mt:const uint8(6)
19659 SpecialTiles [6]TileDef
19666 ConnectTo []Content
19667 InsideTint color.NRGBA
19668 Level uint8 // Must be < 128.
19670 Translucent bool // Sunlight is scattered and becomes normal light.
19671 Transparent bool // Sunlight isn't scattered.
19684 LiquidType LiquidType
19687 Viscosity uint8 // 0-7
19693 DrawBox, ColBox, SelBox NodeBox
19695 FootstepSnd, DiggingSnd, DugSnd SoundDef
19705 }))(obj)).Palette).deserialize(r)
19710 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
19712 if err := pcall(func() {
19725 //mt:const uint8(6)
19727 OverlayTiles [6]TileDef
19728 //mt:const uint8(6)
19729 SpecialTiles [6]TileDef
19736 ConnectTo []Content
19737 InsideTint color.NRGBA
19738 Level uint8 // Must be < 128.
19740 Translucent bool // Sunlight is scattered and becomes normal light.
19741 Transparent bool // Sunlight isn't scattered.
19754 LiquidType LiquidType
19757 Viscosity uint8 // 0-7
19763 DrawBox, ColBox, SelBox NodeBox
19765 FootstepSnd, DiggingSnd, DugSnd SoundDef
19775 }))(obj)).Waving).deserialize(r)
19780 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
19783 p := &(*(*(struct {
19795 //mt:const uint8(6)
19797 OverlayTiles [6]TileDef
19798 //mt:const uint8(6)
19799 SpecialTiles [6]TileDef
19806 ConnectTo []Content
19807 InsideTint color.NRGBA
19808 Level uint8 // Must be < 128.
19810 Translucent bool // Sunlight is scattered and becomes normal light.
19811 Transparent bool // Sunlight isn't scattered.
19824 LiquidType LiquidType
19827 Viscosity uint8 // 0-7
19833 DrawBox, ColBox, SelBox NodeBox
19835 FootstepSnd, DiggingSnd, DugSnd SoundDef
19845 }))(obj)).ConnectSides
19848 var local261 uint16
19865 //mt:const uint8(6)
19867 OverlayTiles [6]TileDef
19868 //mt:const uint8(6)
19869 SpecialTiles [6]TileDef
19876 ConnectTo []Content
19877 InsideTint color.NRGBA
19878 Level uint8 // Must be < 128.
19880 Translucent bool // Sunlight is scattered and becomes normal light.
19881 Transparent bool // Sunlight isn't scattered.
19894 LiquidType LiquidType
19897 Viscosity uint8 // 0-7
19903 DrawBox, ColBox, SelBox NodeBox
19905 FootstepSnd, DiggingSnd, DugSnd SoundDef
19915 }))(obj)).ConnectTo) = make([]Content, local261)
19916 for local262 := range (*(*(struct {
19928 //mt:const uint8(6)
19930 OverlayTiles [6]TileDef
19931 //mt:const uint8(6)
19932 SpecialTiles [6]TileDef
19939 ConnectTo []Content
19940 InsideTint color.NRGBA
19941 Level uint8 // Must be < 128.
19943 Translucent bool // Sunlight is scattered and becomes normal light.
19944 Transparent bool // Sunlight isn't scattered.
19957 LiquidType LiquidType
19960 Viscosity uint8 // 0-7
19966 DrawBox, ColBox, SelBox NodeBox
19968 FootstepSnd, DiggingSnd, DugSnd SoundDef
19978 }))(obj)).ConnectTo {
19979 if err := pcall(func() {
19992 //mt:const uint8(6)
19994 OverlayTiles [6]TileDef
19995 //mt:const uint8(6)
19996 SpecialTiles [6]TileDef
20003 ConnectTo []Content
20004 InsideTint color.NRGBA
20005 Level uint8 // Must be < 128.
20007 Translucent bool // Sunlight is scattered and becomes normal light.
20008 Transparent bool // Sunlight isn't scattered.
20021 LiquidType LiquidType
20024 Viscosity uint8 // 0-7
20030 DrawBox, ColBox, SelBox NodeBox
20032 FootstepSnd, DiggingSnd, DugSnd SoundDef
20042 }))(obj)).ConnectTo)[local262]).deserialize(r)
20047 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
20051 p := &(*(*(struct {
20063 //mt:const uint8(6)
20065 OverlayTiles [6]TileDef
20066 //mt:const uint8(6)
20067 SpecialTiles [6]TileDef
20074 ConnectTo []Content
20075 InsideTint color.NRGBA
20076 Level uint8 // Must be < 128.
20078 Translucent bool // Sunlight is scattered and becomes normal light.
20079 Transparent bool // Sunlight isn't scattered.
20092 LiquidType LiquidType
20095 Viscosity uint8 // 0-7
20101 DrawBox, ColBox, SelBox NodeBox
20103 FootstepSnd, DiggingSnd, DugSnd SoundDef
20113 }))(obj)).InsideTint
20114 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20118 p := &(*(*(struct {
20130 //mt:const uint8(6)
20132 OverlayTiles [6]TileDef
20133 //mt:const uint8(6)
20134 SpecialTiles [6]TileDef
20141 ConnectTo []Content
20142 InsideTint color.NRGBA
20143 Level uint8 // Must be < 128.
20145 Translucent bool // Sunlight is scattered and becomes normal light.
20146 Transparent bool // Sunlight isn't scattered.
20159 LiquidType LiquidType
20162 Viscosity uint8 // 0-7
20168 DrawBox, ColBox, SelBox NodeBox
20170 FootstepSnd, DiggingSnd, DugSnd SoundDef
20184 p := &(*(*(struct {
20196 //mt:const uint8(6)
20198 OverlayTiles [6]TileDef
20199 //mt:const uint8(6)
20200 SpecialTiles [6]TileDef
20207 ConnectTo []Content
20208 InsideTint color.NRGBA
20209 Level uint8 // Must be < 128.
20211 Translucent bool // Sunlight is scattered and becomes normal light.
20212 Transparent bool // Sunlight isn't scattered.
20225 LiquidType LiquidType
20228 Viscosity uint8 // 0-7
20234 DrawBox, ColBox, SelBox NodeBox
20236 FootstepSnd, DiggingSnd, DugSnd SoundDef
20246 }))(obj)).Translucent
20247 switch n := read8(r); n {
20253 chk(fmt.Errorf("invalid bool: %d", n))
20258 p := &(*(*(struct {
20270 //mt:const uint8(6)
20272 OverlayTiles [6]TileDef
20273 //mt:const uint8(6)
20274 SpecialTiles [6]TileDef
20281 ConnectTo []Content
20282 InsideTint color.NRGBA
20283 Level uint8 // Must be < 128.
20285 Translucent bool // Sunlight is scattered and becomes normal light.
20286 Transparent bool // Sunlight isn't scattered.
20299 LiquidType LiquidType
20302 Viscosity uint8 // 0-7
20308 DrawBox, ColBox, SelBox NodeBox
20310 FootstepSnd, DiggingSnd, DugSnd SoundDef
20320 }))(obj)).Transparent
20321 switch n := read8(r); n {
20327 chk(fmt.Errorf("invalid bool: %d", n))
20332 p := &(*(*(struct {
20344 //mt:const uint8(6)
20346 OverlayTiles [6]TileDef
20347 //mt:const uint8(6)
20348 SpecialTiles [6]TileDef
20355 ConnectTo []Content
20356 InsideTint color.NRGBA
20357 Level uint8 // Must be < 128.
20359 Translucent bool // Sunlight is scattered and becomes normal light.
20360 Transparent bool // Sunlight isn't scattered.
20373 LiquidType LiquidType
20376 Viscosity uint8 // 0-7
20382 DrawBox, ColBox, SelBox NodeBox
20384 FootstepSnd, DiggingSnd, DugSnd SoundDef
20398 p := &(*(*(struct {
20410 //mt:const uint8(6)
20412 OverlayTiles [6]TileDef
20413 //mt:const uint8(6)
20414 SpecialTiles [6]TileDef
20421 ConnectTo []Content
20422 InsideTint color.NRGBA
20423 Level uint8 // Must be < 128.
20425 Translucent bool // Sunlight is scattered and becomes normal light.
20426 Transparent bool // Sunlight isn't scattered.
20439 LiquidType LiquidType
20442 Viscosity uint8 // 0-7
20448 DrawBox, ColBox, SelBox NodeBox
20450 FootstepSnd, DiggingSnd, DugSnd SoundDef
20460 }))(obj)).GndContent
20461 switch n := read8(r); n {
20467 chk(fmt.Errorf("invalid bool: %d", n))
20472 p := &(*(*(struct {
20484 //mt:const uint8(6)
20486 OverlayTiles [6]TileDef
20487 //mt:const uint8(6)
20488 SpecialTiles [6]TileDef
20495 ConnectTo []Content
20496 InsideTint color.NRGBA
20497 Level uint8 // Must be < 128.
20499 Translucent bool // Sunlight is scattered and becomes normal light.
20500 Transparent bool // Sunlight isn't scattered.
20513 LiquidType LiquidType
20516 Viscosity uint8 // 0-7
20522 DrawBox, ColBox, SelBox NodeBox
20524 FootstepSnd, DiggingSnd, DugSnd SoundDef
20535 switch n := read8(r); n {
20541 chk(fmt.Errorf("invalid bool: %d", n))
20546 p := &(*(*(struct {
20558 //mt:const uint8(6)
20560 OverlayTiles [6]TileDef
20561 //mt:const uint8(6)
20562 SpecialTiles [6]TileDef
20569 ConnectTo []Content
20570 InsideTint color.NRGBA
20571 Level uint8 // Must be < 128.
20573 Translucent bool // Sunlight is scattered and becomes normal light.
20574 Transparent bool // Sunlight isn't scattered.
20587 LiquidType LiquidType
20590 Viscosity uint8 // 0-7
20596 DrawBox, ColBox, SelBox NodeBox
20598 FootstepSnd, DiggingSnd, DugSnd SoundDef
20608 }))(obj)).Pointable
20609 switch n := read8(r); n {
20615 chk(fmt.Errorf("invalid bool: %d", n))
20620 p := &(*(*(struct {
20632 //mt:const uint8(6)
20634 OverlayTiles [6]TileDef
20635 //mt:const uint8(6)
20636 SpecialTiles [6]TileDef
20643 ConnectTo []Content
20644 InsideTint color.NRGBA
20645 Level uint8 // Must be < 128.
20647 Translucent bool // Sunlight is scattered and becomes normal light.
20648 Transparent bool // Sunlight isn't scattered.
20661 LiquidType LiquidType
20664 Viscosity uint8 // 0-7
20670 DrawBox, ColBox, SelBox NodeBox
20672 FootstepSnd, DiggingSnd, DugSnd SoundDef
20683 switch n := read8(r); n {
20689 chk(fmt.Errorf("invalid bool: %d", n))
20694 p := &(*(*(struct {
20706 //mt:const uint8(6)
20708 OverlayTiles [6]TileDef
20709 //mt:const uint8(6)
20710 SpecialTiles [6]TileDef
20717 ConnectTo []Content
20718 InsideTint color.NRGBA
20719 Level uint8 // Must be < 128.
20721 Translucent bool // Sunlight is scattered and becomes normal light.
20722 Transparent bool // Sunlight isn't scattered.
20735 LiquidType LiquidType
20738 Viscosity uint8 // 0-7
20744 DrawBox, ColBox, SelBox NodeBox
20746 FootstepSnd, DiggingSnd, DugSnd SoundDef
20756 }))(obj)).Climbable
20757 switch n := read8(r); n {
20763 chk(fmt.Errorf("invalid bool: %d", n))
20768 p := &(*(*(struct {
20780 //mt:const uint8(6)
20782 OverlayTiles [6]TileDef
20783 //mt:const uint8(6)
20784 SpecialTiles [6]TileDef
20791 ConnectTo []Content
20792 InsideTint color.NRGBA
20793 Level uint8 // Must be < 128.
20795 Translucent bool // Sunlight is scattered and becomes normal light.
20796 Transparent bool // Sunlight isn't scattered.
20809 LiquidType LiquidType
20812 Viscosity uint8 // 0-7
20818 DrawBox, ColBox, SelBox NodeBox
20820 FootstepSnd, DiggingSnd, DugSnd SoundDef
20830 }))(obj)).Replaceable
20831 switch n := read8(r); n {
20837 chk(fmt.Errorf("invalid bool: %d", n))
20842 p := &(*(*(struct {
20854 //mt:const uint8(6)
20856 OverlayTiles [6]TileDef
20857 //mt:const uint8(6)
20858 SpecialTiles [6]TileDef
20865 ConnectTo []Content
20866 InsideTint color.NRGBA
20867 Level uint8 // Must be < 128.
20869 Translucent bool // Sunlight is scattered and becomes normal light.
20870 Transparent bool // Sunlight isn't scattered.
20883 LiquidType LiquidType
20886 Viscosity uint8 // 0-7
20892 DrawBox, ColBox, SelBox NodeBox
20894 FootstepSnd, DiggingSnd, DugSnd SoundDef
20904 }))(obj)).OnRightClick
20905 switch n := read8(r); n {
20911 chk(fmt.Errorf("invalid bool: %d", n))
20916 p := &(*(*(struct {
20928 //mt:const uint8(6)
20930 OverlayTiles [6]TileDef
20931 //mt:const uint8(6)
20932 SpecialTiles [6]TileDef
20939 ConnectTo []Content
20940 InsideTint color.NRGBA
20941 Level uint8 // Must be < 128.
20943 Translucent bool // Sunlight is scattered and becomes normal light.
20944 Transparent bool // Sunlight isn't scattered.
20957 LiquidType LiquidType
20960 Viscosity uint8 // 0-7
20966 DrawBox, ColBox, SelBox NodeBox
20968 FootstepSnd, DiggingSnd, DugSnd SoundDef
20978 }))(obj)).DmgPerSec
20979 *p = int32(read32(r))
20981 if err := pcall(func() {
20994 //mt:const uint8(6)
20996 OverlayTiles [6]TileDef
20997 //mt:const uint8(6)
20998 SpecialTiles [6]TileDef
21005 ConnectTo []Content
21006 InsideTint color.NRGBA
21007 Level uint8 // Must be < 128.
21009 Translucent bool // Sunlight is scattered and becomes normal light.
21010 Transparent bool // Sunlight isn't scattered.
21023 LiquidType LiquidType
21026 Viscosity uint8 // 0-7
21032 DrawBox, ColBox, SelBox NodeBox
21034 FootstepSnd, DiggingSnd, DugSnd SoundDef
21044 }))(obj)).LiquidType).deserialize(r)
21049 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
21051 var local263 []uint8
21052 var local264 uint16
21057 (local263) = make([]uint8, local264)
21059 _, err := io.ReadFull(r, (local263)[:])
21074 //mt:const uint8(6)
21076 OverlayTiles [6]TileDef
21077 //mt:const uint8(6)
21078 SpecialTiles [6]TileDef
21085 ConnectTo []Content
21086 InsideTint color.NRGBA
21087 Level uint8 // Must be < 128.
21089 Translucent bool // Sunlight is scattered and becomes normal light.
21090 Transparent bool // Sunlight isn't scattered.
21103 LiquidType LiquidType
21106 Viscosity uint8 // 0-7
21112 DrawBox, ColBox, SelBox NodeBox
21114 FootstepSnd, DiggingSnd, DugSnd SoundDef
21124 }))(obj)).FlowingAlt) = string(local263)
21125 var local265 []uint8
21126 var local266 uint16
21131 (local265) = make([]uint8, local266)
21133 _, err := io.ReadFull(r, (local265)[:])
21148 //mt:const uint8(6)
21150 OverlayTiles [6]TileDef
21151 //mt:const uint8(6)
21152 SpecialTiles [6]TileDef
21159 ConnectTo []Content
21160 InsideTint color.NRGBA
21161 Level uint8 // Must be < 128.
21163 Translucent bool // Sunlight is scattered and becomes normal light.
21164 Transparent bool // Sunlight isn't scattered.
21177 LiquidType LiquidType
21180 Viscosity uint8 // 0-7
21186 DrawBox, ColBox, SelBox NodeBox
21188 FootstepSnd, DiggingSnd, DugSnd SoundDef
21198 }))(obj)).SrcAlt) = string(local265)
21200 p := &(*(*(struct {
21212 //mt:const uint8(6)
21214 OverlayTiles [6]TileDef
21215 //mt:const uint8(6)
21216 SpecialTiles [6]TileDef
21223 ConnectTo []Content
21224 InsideTint color.NRGBA
21225 Level uint8 // Must be < 128.
21227 Translucent bool // Sunlight is scattered and becomes normal light.
21228 Transparent bool // Sunlight isn't scattered.
21241 LiquidType LiquidType
21244 Viscosity uint8 // 0-7
21250 DrawBox, ColBox, SelBox NodeBox
21252 FootstepSnd, DiggingSnd, DugSnd SoundDef
21262 }))(obj)).Viscosity
21266 p := &(*(*(struct {
21278 //mt:const uint8(6)
21280 OverlayTiles [6]TileDef
21281 //mt:const uint8(6)
21282 SpecialTiles [6]TileDef
21289 ConnectTo []Content
21290 InsideTint color.NRGBA
21291 Level uint8 // Must be < 128.
21293 Translucent bool // Sunlight is scattered and becomes normal light.
21294 Transparent bool // Sunlight isn't scattered.
21307 LiquidType LiquidType
21310 Viscosity uint8 // 0-7
21316 DrawBox, ColBox, SelBox NodeBox
21318 FootstepSnd, DiggingSnd, DugSnd SoundDef
21328 }))(obj)).LiqRenewable
21329 switch n := read8(r); n {
21335 chk(fmt.Errorf("invalid bool: %d", n))
21340 p := &(*(*(struct {
21352 //mt:const uint8(6)
21354 OverlayTiles [6]TileDef
21355 //mt:const uint8(6)
21356 SpecialTiles [6]TileDef
21363 ConnectTo []Content
21364 InsideTint color.NRGBA
21365 Level uint8 // Must be < 128.
21367 Translucent bool // Sunlight is scattered and becomes normal light.
21368 Transparent bool // Sunlight isn't scattered.
21381 LiquidType LiquidType
21384 Viscosity uint8 // 0-7
21390 DrawBox, ColBox, SelBox NodeBox
21392 FootstepSnd, DiggingSnd, DugSnd SoundDef
21402 }))(obj)).FlowRange
21406 p := &(*(*(struct {
21418 //mt:const uint8(6)
21420 OverlayTiles [6]TileDef
21421 //mt:const uint8(6)
21422 SpecialTiles [6]TileDef
21429 ConnectTo []Content
21430 InsideTint color.NRGBA
21431 Level uint8 // Must be < 128.
21433 Translucent bool // Sunlight is scattered and becomes normal light.
21434 Transparent bool // Sunlight isn't scattered.
21447 LiquidType LiquidType
21450 Viscosity uint8 // 0-7
21456 DrawBox, ColBox, SelBox NodeBox
21458 FootstepSnd, DiggingSnd, DugSnd SoundDef
21472 p := &(*(*(struct {
21484 //mt:const uint8(6)
21486 OverlayTiles [6]TileDef
21487 //mt:const uint8(6)
21488 SpecialTiles [6]TileDef
21495 ConnectTo []Content
21496 InsideTint color.NRGBA
21497 Level uint8 // Must be < 128.
21499 Translucent bool // Sunlight is scattered and becomes normal light.
21500 Transparent bool // Sunlight isn't scattered.
21513 LiquidType LiquidType
21516 Viscosity uint8 // 0-7
21522 DrawBox, ColBox, SelBox NodeBox
21524 FootstepSnd, DiggingSnd, DugSnd SoundDef
21534 }))(obj)).Floodable
21535 switch n := read8(r); n {
21541 chk(fmt.Errorf("invalid bool: %d", n))
21545 if err := pcall(func() {
21558 //mt:const uint8(6)
21560 OverlayTiles [6]TileDef
21561 //mt:const uint8(6)
21562 SpecialTiles [6]TileDef
21569 ConnectTo []Content
21570 InsideTint color.NRGBA
21571 Level uint8 // Must be < 128.
21573 Translucent bool // Sunlight is scattered and becomes normal light.
21574 Transparent bool // Sunlight isn't scattered.
21587 LiquidType LiquidType
21590 Viscosity uint8 // 0-7
21596 DrawBox, ColBox, SelBox NodeBox
21598 FootstepSnd, DiggingSnd, DugSnd SoundDef
21608 }))(obj)).DrawBox).deserialize(r)
21613 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21615 if err := pcall(func() {
21628 //mt:const uint8(6)
21630 OverlayTiles [6]TileDef
21631 //mt:const uint8(6)
21632 SpecialTiles [6]TileDef
21639 ConnectTo []Content
21640 InsideTint color.NRGBA
21641 Level uint8 // Must be < 128.
21643 Translucent bool // Sunlight is scattered and becomes normal light.
21644 Transparent bool // Sunlight isn't scattered.
21657 LiquidType LiquidType
21660 Viscosity uint8 // 0-7
21666 DrawBox, ColBox, SelBox NodeBox
21668 FootstepSnd, DiggingSnd, DugSnd SoundDef
21678 }))(obj)).ColBox).deserialize(r)
21683 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21685 if err := pcall(func() {
21698 //mt:const uint8(6)
21700 OverlayTiles [6]TileDef
21701 //mt:const uint8(6)
21702 SpecialTiles [6]TileDef
21709 ConnectTo []Content
21710 InsideTint color.NRGBA
21711 Level uint8 // Must be < 128.
21713 Translucent bool // Sunlight is scattered and becomes normal light.
21714 Transparent bool // Sunlight isn't scattered.
21727 LiquidType LiquidType
21730 Viscosity uint8 // 0-7
21736 DrawBox, ColBox, SelBox NodeBox
21738 FootstepSnd, DiggingSnd, DugSnd SoundDef
21748 }))(obj)).SelBox).deserialize(r)
21753 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21755 if err := pcall(func() {
21768 //mt:const uint8(6)
21770 OverlayTiles [6]TileDef
21771 //mt:const uint8(6)
21772 SpecialTiles [6]TileDef
21779 ConnectTo []Content
21780 InsideTint color.NRGBA
21781 Level uint8 // Must be < 128.
21783 Translucent bool // Sunlight is scattered and becomes normal light.
21784 Transparent bool // Sunlight isn't scattered.
21797 LiquidType LiquidType
21800 Viscosity uint8 // 0-7
21806 DrawBox, ColBox, SelBox NodeBox
21808 FootstepSnd, DiggingSnd, DugSnd SoundDef
21818 }))(obj)).FootstepSnd).deserialize(r)
21823 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21825 if err := pcall(func() {
21838 //mt:const uint8(6)
21840 OverlayTiles [6]TileDef
21841 //mt:const uint8(6)
21842 SpecialTiles [6]TileDef
21849 ConnectTo []Content
21850 InsideTint color.NRGBA
21851 Level uint8 // Must be < 128.
21853 Translucent bool // Sunlight is scattered and becomes normal light.
21854 Transparent bool // Sunlight isn't scattered.
21867 LiquidType LiquidType
21870 Viscosity uint8 // 0-7
21876 DrawBox, ColBox, SelBox NodeBox
21878 FootstepSnd, DiggingSnd, DugSnd SoundDef
21888 }))(obj)).DiggingSnd).deserialize(r)
21893 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21895 if err := pcall(func() {
21908 //mt:const uint8(6)
21910 OverlayTiles [6]TileDef
21911 //mt:const uint8(6)
21912 SpecialTiles [6]TileDef
21919 ConnectTo []Content
21920 InsideTint color.NRGBA
21921 Level uint8 // Must be < 128.
21923 Translucent bool // Sunlight is scattered and becomes normal light.
21924 Transparent bool // Sunlight isn't scattered.
21937 LiquidType LiquidType
21940 Viscosity uint8 // 0-7
21946 DrawBox, ColBox, SelBox NodeBox
21948 FootstepSnd, DiggingSnd, DugSnd SoundDef
21958 }))(obj)).DugSnd).deserialize(r)
21963 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21966 p := &(*(*(struct {
21978 //mt:const uint8(6)
21980 OverlayTiles [6]TileDef
21981 //mt:const uint8(6)
21982 SpecialTiles [6]TileDef
21989 ConnectTo []Content
21990 InsideTint color.NRGBA
21991 Level uint8 // Must be < 128.
21993 Translucent bool // Sunlight is scattered and becomes normal light.
21994 Transparent bool // Sunlight isn't scattered.
22007 LiquidType LiquidType
22010 Viscosity uint8 // 0-7
22016 DrawBox, ColBox, SelBox NodeBox
22018 FootstepSnd, DiggingSnd, DugSnd SoundDef
22028 }))(obj)).LegacyFaceDir
22029 switch n := read8(r); n {
22035 chk(fmt.Errorf("invalid bool: %d", n))
22040 p := &(*(*(struct {
22052 //mt:const uint8(6)
22054 OverlayTiles [6]TileDef
22055 //mt:const uint8(6)
22056 SpecialTiles [6]TileDef
22063 ConnectTo []Content
22064 InsideTint color.NRGBA
22065 Level uint8 // Must be < 128.
22067 Translucent bool // Sunlight is scattered and becomes normal light.
22068 Transparent bool // Sunlight isn't scattered.
22081 LiquidType LiquidType
22084 Viscosity uint8 // 0-7
22090 DrawBox, ColBox, SelBox NodeBox
22092 FootstepSnd, DiggingSnd, DugSnd SoundDef
22102 }))(obj)).LegacyMounted
22103 switch n := read8(r); n {
22109 chk(fmt.Errorf("invalid bool: %d", n))
22113 var local267 []uint8
22114 var local268 uint16
22119 (local267) = make([]uint8, local268)
22121 _, err := io.ReadFull(r, (local267)[:])
22136 //mt:const uint8(6)
22138 OverlayTiles [6]TileDef
22139 //mt:const uint8(6)
22140 SpecialTiles [6]TileDef
22147 ConnectTo []Content
22148 InsideTint color.NRGBA
22149 Level uint8 // Must be < 128.
22151 Translucent bool // Sunlight is scattered and becomes normal light.
22152 Transparent bool // Sunlight isn't scattered.
22165 LiquidType LiquidType
22168 Viscosity uint8 // 0-7
22174 DrawBox, ColBox, SelBox NodeBox
22176 FootstepSnd, DiggingSnd, DugSnd SoundDef
22186 }))(obj)).DigPredict) = string(local267)
22188 p := &(*(*(struct {
22200 //mt:const uint8(6)
22202 OverlayTiles [6]TileDef
22203 //mt:const uint8(6)
22204 SpecialTiles [6]TileDef
22211 ConnectTo []Content
22212 InsideTint color.NRGBA
22213 Level uint8 // Must be < 128.
22215 Translucent bool // Sunlight is scattered and becomes normal light.
22216 Transparent bool // Sunlight isn't scattered.
22229 LiquidType LiquidType
22232 Viscosity uint8 // 0-7
22238 DrawBox, ColBox, SelBox NodeBox
22240 FootstepSnd, DiggingSnd, DugSnd SoundDef
22253 if err := pcall(func() {
22266 //mt:const uint8(6)
22268 OverlayTiles [6]TileDef
22269 //mt:const uint8(6)
22270 SpecialTiles [6]TileDef
22277 ConnectTo []Content
22278 InsideTint color.NRGBA
22279 Level uint8 // Must be < 128.
22281 Translucent bool // Sunlight is scattered and becomes normal light.
22282 Transparent bool // Sunlight isn't scattered.
22295 LiquidType LiquidType
22298 Viscosity uint8 // 0-7
22304 DrawBox, ColBox, SelBox NodeBox
22306 FootstepSnd, DiggingSnd, DugSnd SoundDef
22316 }))(obj)).AlphaUse).deserialize(r)
22321 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
22324 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22329 func (obj *PointedNode) serialize(w io.Writer) {
22330 for local269 := range (*(*(struct {
22331 Under, Above [3]int16
22334 x := ((*(*(struct {
22335 Under, Above [3]int16
22336 }))(obj)).Under)[local269]
22337 write16(w, uint16(x))
22340 for local270 := range (*(*(struct {
22341 Under, Above [3]int16
22344 x := ((*(*(struct {
22345 Under, Above [3]int16
22346 }))(obj)).Above)[local270]
22347 write16(w, uint16(x))
22352 func (obj *PointedNode) deserialize(r io.Reader) {
22353 for local271 := range (*(*(struct {
22354 Under, Above [3]int16
22357 p := &((*(*(struct {
22358 Under, Above [3]int16
22359 }))(obj)).Under)[local271]
22360 *p = int16(read16(r))
22363 for local272 := range (*(*(struct {
22364 Under, Above [3]int16
22367 p := &((*(*(struct {
22368 Under, Above [3]int16
22369 }))(obj)).Above)[local272]
22370 *p = int16(read16(r))
22375 func (obj *PointedAO) serialize(w io.Writer) {
22376 if err := pcall(func() {
22379 }))(obj)).ID).serialize(w)
22384 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22388 func (obj *PointedAO) deserialize(r io.Reader) {
22389 if err := pcall(func() {
22392 }))(obj)).ID).deserialize(r)
22397 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22401 func (obj *CompressionModes) serialize(w io.Writer) {
22403 x := *(*(uint16))(obj)
22404 write16(w, uint16(x))
22408 func (obj *CompressionModes) deserialize(r io.Reader) {
22410 p := &*(*(uint16))(obj)
22415 func (obj *PlayerPos) serialize(w io.Writer) {
22416 for local273 := range (*(*(struct {
22417 Pos100, Vel100 [3]int32
22418 Pitch100, Yaw100 int32
22421 WantedRange uint8 // in MapBlks.
22424 x := ((*(*(struct {
22425 Pos100, Vel100 [3]int32
22426 Pitch100, Yaw100 int32
22429 WantedRange uint8 // in MapBlks.
22430 }))(obj)).Pos100)[local273]
22431 write32(w, uint32(x))
22434 for local274 := range (*(*(struct {
22435 Pos100, Vel100 [3]int32
22436 Pitch100, Yaw100 int32
22439 WantedRange uint8 // in MapBlks.
22442 x := ((*(*(struct {
22443 Pos100, Vel100 [3]int32
22444 Pitch100, Yaw100 int32
22447 WantedRange uint8 // in MapBlks.
22448 }))(obj)).Vel100)[local274]
22449 write32(w, uint32(x))
22454 Pos100, Vel100 [3]int32
22455 Pitch100, Yaw100 int32
22458 WantedRange uint8 // in MapBlks.
22460 write32(w, uint32(x))
22464 Pos100, Vel100 [3]int32
22465 Pitch100, Yaw100 int32
22468 WantedRange uint8 // in MapBlks.
22470 write32(w, uint32(x))
22472 if err := pcall(func() {
22474 Pos100, Vel100 [3]int32
22475 Pitch100, Yaw100 int32
22478 WantedRange uint8 // in MapBlks.
22479 }))(obj)).Keys).serialize(w)
22484 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22488 Pos100, Vel100 [3]int32
22489 Pitch100, Yaw100 int32
22492 WantedRange uint8 // in MapBlks.
22494 write8(w, uint8(x))
22498 Pos100, Vel100 [3]int32
22499 Pitch100, Yaw100 int32
22502 WantedRange uint8 // in MapBlks.
22503 }))(obj)).WantedRange
22504 write8(w, uint8(x))
22508 func (obj *PlayerPos) deserialize(r io.Reader) {
22509 for local275 := range (*(*(struct {
22510 Pos100, Vel100 [3]int32
22511 Pitch100, Yaw100 int32
22514 WantedRange uint8 // in MapBlks.
22517 p := &((*(*(struct {
22518 Pos100, Vel100 [3]int32
22519 Pitch100, Yaw100 int32
22522 WantedRange uint8 // in MapBlks.
22523 }))(obj)).Pos100)[local275]
22524 *p = int32(read32(r))
22527 for local276 := range (*(*(struct {
22528 Pos100, Vel100 [3]int32
22529 Pitch100, Yaw100 int32
22532 WantedRange uint8 // in MapBlks.
22535 p := &((*(*(struct {
22536 Pos100, Vel100 [3]int32
22537 Pitch100, Yaw100 int32
22540 WantedRange uint8 // in MapBlks.
22541 }))(obj)).Vel100)[local276]
22542 *p = int32(read32(r))
22546 p := &(*(*(struct {
22547 Pos100, Vel100 [3]int32
22548 Pitch100, Yaw100 int32
22551 WantedRange uint8 // in MapBlks.
22553 *p = int32(read32(r))
22556 p := &(*(*(struct {
22557 Pos100, Vel100 [3]int32
22558 Pitch100, Yaw100 int32
22561 WantedRange uint8 // in MapBlks.
22563 *p = int32(read32(r))
22565 if err := pcall(func() {
22567 Pos100, Vel100 [3]int32
22568 Pitch100, Yaw100 int32
22571 WantedRange uint8 // in MapBlks.
22572 }))(obj)).Keys).deserialize(r)
22577 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22580 p := &(*(*(struct {
22581 Pos100, Vel100 [3]int32
22582 Pitch100, Yaw100 int32
22585 WantedRange uint8 // in MapBlks.
22590 p := &(*(*(struct {
22591 Pos100, Vel100 [3]int32
22592 Pitch100, Yaw100 int32
22595 WantedRange uint8 // in MapBlks.
22596 }))(obj)).WantedRange
22601 func (obj *Interaction) serialize(w io.Writer) {
22603 x := *(*(uint8))(obj)
22604 write8(w, uint8(x))
22608 func (obj *Interaction) deserialize(r io.Reader) {
22610 p := &*(*(uint8))(obj)
22615 func (obj *SoundID) serialize(w io.Writer) {
22617 x := *(*(int32))(obj)
22618 write32(w, uint32(x))
22622 func (obj *SoundID) deserialize(r io.Reader) {
22624 p := &*(*(int32))(obj)
22625 *p = int32(read32(r))
22629 func (obj *Field) serialize(w io.Writer) {
22630 if len(([]byte((*(*(struct {
22635 }))(obj)).Name))) > math.MaxUint16 {
22639 x := uint16(len(([]byte((*(*(struct {
22645 write16(w, uint16(x))
22648 _, err := w.Write(([]byte((*(*(struct {
22653 }))(obj)).Name))[:])
22656 if len(([]byte((*(*(struct {
22661 }))(obj)).Value))) > math.MaxUint32 {
22665 x := uint32(len(([]byte((*(*(struct {
22670 }))(obj)).Value))))
22671 write32(w, uint32(x))
22674 _, err := w.Write(([]byte((*(*(struct {
22679 }))(obj)).Value))[:])
22684 func (obj *Field) deserialize(r io.Reader) {
22685 var local277 []uint8
22686 var local278 uint16
22691 (local277) = make([]uint8, local278)
22693 _, err := io.ReadFull(r, (local277)[:])
22701 }))(obj)).Name) = string(local277)
22702 var local279 []uint8
22703 var local280 uint32
22708 (local279) = make([]uint8, local280)
22710 _, err := io.ReadFull(r, (local279)[:])
22718 }))(obj)).Value) = string(local279)
22721 func (obj *AuthMethods) serialize(w io.Writer) {
22723 x := *(*(uint32))(obj)
22724 write32(w, uint32(x))
22728 func (obj *AuthMethods) deserialize(r io.Reader) {
22730 p := &*(*(uint32))(obj)
22735 func (obj *Pos) serialize(w io.Writer) {
22736 if err := pcall(func() {
22737 (*(*(Vec))(obj)).serialize(w)
22742 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
22746 func (obj *Pos) deserialize(r io.Reader) {
22747 if err := pcall(func() {
22748 (*(*(Vec))(obj)).deserialize(r)
22753 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
22757 func (obj *KickReason) serialize(w io.Writer) {
22759 x := *(*(uint8))(obj)
22760 write8(w, uint8(x))
22764 func (obj *KickReason) deserialize(r io.Reader) {
22766 p := &*(*(uint8))(obj)
22771 func (obj *MapBlk) serialize(w io.Writer) {
22772 if err := pcall(func() {
22775 LitFrom LitFromBlks
22778 Param0 [4096]Content
22782 NodeMetas map[uint16]*NodeMeta
22783 }))(obj)).Flags).serialize(w)
22788 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
22790 if err := pcall(func() {
22793 LitFrom LitFromBlks
22796 Param0 [4096]Content
22800 NodeMetas map[uint16]*NodeMeta
22801 }))(obj)).LitFrom).serialize(w)
22806 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
22809 local281 := uint8(2) // Size of param0 in bytes.
22812 write8(w, uint8(x))
22816 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22819 write8(w, uint8(x))
22823 w, err := zstd.NewWriter(w)
22825 for local283 := range (*(*(struct {
22827 LitFrom LitFromBlks
22830 Param0 [4096]Content
22834 NodeMetas map[uint16]*NodeMeta
22836 if err := pcall(func() {
22839 LitFrom LitFromBlks
22842 Param0 [4096]Content
22846 NodeMetas map[uint16]*NodeMeta
22847 }))(obj)).Param0)[local283]).serialize(w)
22852 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
22856 _, err := w.Write(((*(*(struct {
22858 LitFrom LitFromBlks
22861 Param0 [4096]Content
22865 NodeMetas map[uint16]*NodeMeta
22866 }))(obj)).Param1)[:])
22870 _, err := w.Write(((*(*(struct {
22872 LitFrom LitFromBlks
22875 Param0 [4096]Content
22879 NodeMetas map[uint16]*NodeMeta
22880 }))(obj)).Param2)[:])
22888 LitFrom LitFromBlks
22891 Param0 [4096]Content
22895 NodeMetas map[uint16]*NodeMeta
22896 }))(obj)).NodeMetas
22898 w := zlib.NewWriter(w)
22904 // len(map[uint16]...) always < math.MaxUint16
22905 write16(w, uint16(len(x)))
22906 keys := make([]uint16, 0, len(x))
22907 for key := range x {
22908 keys = append(keys, key)
22910 sort.Slice(keys, func(i, j int) bool {
22911 i2pos := func(i int) [3]int16 {
22912 return Blkpos2Pos([3]int16{}, keys[i])
22915 p, q := i2pos(i), i2pos(j)
22928 for _, key := range keys {
22930 chk(serialize(w, x[key]))
22939 local284 := uint8(2) // version
22942 write8(w, uint8(x))
22947 func (obj *MapBlk) deserialize(r io.Reader) {
22948 if err := pcall(func() {
22951 LitFrom LitFromBlks
22954 Param0 [4096]Content
22958 NodeMetas map[uint16]*NodeMeta
22959 }))(obj)).Flags).deserialize(r)
22964 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
22966 if err := pcall(func() {
22969 LitFrom LitFromBlks
22972 Param0 [4096]Content
22976 NodeMetas map[uint16]*NodeMeta
22977 }))(obj)).LitFrom).deserialize(r)
22982 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
22986 local286 := uint8(2) // Size of param0 in bytes.
22991 if local285 != local286 {
22992 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local285))
22997 local288 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23002 if local287 != local288 {
23003 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local287))
23007 r, err := zstd.NewReader(byteReader{r})
23009 for local289 := range (*(*(struct {
23011 LitFrom LitFromBlks
23014 Param0 [4096]Content
23018 NodeMetas map[uint16]*NodeMeta
23020 if err := pcall(func() {
23023 LitFrom LitFromBlks
23026 Param0 [4096]Content
23030 NodeMetas map[uint16]*NodeMeta
23031 }))(obj)).Param0)[local289]).deserialize(r)
23036 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23040 _, err := io.ReadFull(r, ((*(*(struct {
23042 LitFrom LitFromBlks
23045 Param0 [4096]Content
23049 NodeMetas map[uint16]*NodeMeta
23050 }))(obj)).Param1)[:])
23054 _, err := io.ReadFull(r, ((*(*(struct {
23056 LitFrom LitFromBlks
23059 Param0 [4096]Content
23063 NodeMetas map[uint16]*NodeMeta
23064 }))(obj)).Param2)[:])
23070 p := &(*(*(struct {
23072 LitFrom LitFromBlks
23075 Param0 [4096]Content
23079 NodeMetas map[uint16]*NodeMeta
23080 }))(obj)).NodeMetas
23082 r, err := zlib.NewReader(byteReader{r})
23085 switch ver := read8(r); ver {
23090 *p = make(map[uint16]*NodeMeta, n)
23093 nm := new(NodeMeta)
23094 chk(deserialize(r, nm))
23098 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23107 local291 := uint8(2) // version
23112 if local290 != local291 {
23113 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local290))
23118 func (obj *Node) serialize(w io.Writer) {
23119 if err := pcall(func() {
23122 Param1, Param2 uint8
23123 }))(obj)).Param0).serialize(w)
23128 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23133 Param1, Param2 uint8
23135 write8(w, uint8(x))
23140 Param1, Param2 uint8
23142 write8(w, uint8(x))
23146 func (obj *Node) deserialize(r io.Reader) {
23147 if err := pcall(func() {
23150 Param1, Param2 uint8
23151 }))(obj)).Param0).deserialize(r)
23156 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23159 p := &(*(*(struct {
23161 Param1, Param2 uint8
23166 p := &(*(*(struct {
23168 Param1, Param2 uint8
23174 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23176 x := *(*(uint64))(obj)
23177 write64(w, uint64(x))
23182 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23184 p := &*(*(uint64))(obj)
23190 func (obj *Vec) serialize(w io.Writer) {
23191 for local292 := range *(*([3]float32))(obj) {
23193 x := (*(*([3]float32))(obj))[local292]
23194 write32(w, math.Float32bits(x))
23199 func (obj *Vec) deserialize(r io.Reader) {
23200 for local293 := range *(*([3]float32))(obj) {
23202 p := &(*(*([3]float32))(obj))[local293]
23203 *p = math.Float32frombits(read32(r))
23208 func (obj *ChatMsgType) serialize(w io.Writer) {
23210 x := *(*(uint8))(obj)
23211 write8(w, uint8(x))
23215 func (obj *ChatMsgType) deserialize(r io.Reader) {
23217 p := &*(*(uint8))(obj)
23222 func (obj *AOID) serialize(w io.Writer) {
23224 x := *(*(uint16))(obj)
23225 write16(w, uint16(x))
23229 func (obj *AOID) deserialize(r io.Reader) {
23231 p := &*(*(uint16))(obj)
23236 func (obj *AOAdd) serialize(w io.Writer) {
23237 if err := pcall(func() {
23240 //mt:const genericCAO
23242 InitData AOInitData
23243 }))(obj)).ID).serialize(w)
23248 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23251 local294 := genericCAO
23252 if err := pcall(func() {
23253 (local294).serialize(w)
23258 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23263 w := new(bytes.Buffer)
23264 if err := pcall(func() {
23267 //mt:const genericCAO
23269 InitData AOInitData
23270 }))(obj)).InitData).serialize(w)
23275 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23280 if len((buf.Bytes())) > math.MaxUint32 {
23284 x := uint32(len((buf.Bytes())))
23285 write32(w, uint32(x))
23288 _, err := w.Write((buf.Bytes())[:])
23295 func (obj *AOAdd) deserialize(r io.Reader) {
23296 if err := pcall(func() {
23299 //mt:const genericCAO
23301 InitData AOInitData
23302 }))(obj)).ID).deserialize(r)
23307 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23310 var local295 aoType
23311 local296 := genericCAO
23312 if err := pcall(func() {
23313 (local295).deserialize(r)
23318 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23320 if local295 != local296 {
23321 chk(fmt.Errorf("const %v: %v", "genericCAO", local295))
23330 r := &io.LimitedReader{R: r, N: int64(n)}
23331 if err := pcall(func() {
23334 //mt:const genericCAO
23336 InitData AOInitData
23337 }))(obj)).InitData).deserialize(r)
23342 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23345 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23350 func (obj *IDAOMsg) serialize(w io.Writer) {
23351 if err := pcall(func() {
23356 }))(obj)).ID).serialize(w)
23361 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23365 w := new(bytes.Buffer)
23378 if len((buf.Bytes())) > math.MaxUint16 {
23382 x := uint16(len((buf.Bytes())))
23383 write16(w, uint16(x))
23386 _, err := w.Write((buf.Bytes())[:])
23393 func (obj *IDAOMsg) deserialize(r io.Reader) {
23394 if err := pcall(func() {
23399 }))(obj)).ID).deserialize(r)
23404 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23412 r := &io.LimitedReader{R: r, N: int64(n)}
23414 p := &(*(*(struct {
23421 *p, err = readAOMsg(r)
23427 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23432 func (obj *ItemDef) serialize(w io.Writer) {
23435 w := new(bytes.Buffer)
23437 local297 := uint8(6)
23440 write8(w, uint8(x))
23443 if err := pcall(func() {
23449 InvImg, WieldImg Texture
23450 WieldScale [3]float32
23455 CanPointLiquids bool
23461 PlacePredict string
23463 PlaceSnd, PlaceFailSnd SoundDef
23467 // Set index in Palette with "palette_index" item meta field,
23468 // this overrides Color.
23472 // Texture overlays.
23473 InvOverlay, WieldOverlay Texture
23476 }))(obj)).Type).serialize(w)
23481 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
23483 if len(([]byte((*(*(struct {
23488 InvImg, WieldImg Texture
23489 WieldScale [3]float32
23494 CanPointLiquids bool
23500 PlacePredict string
23502 PlaceSnd, PlaceFailSnd SoundDef
23506 // Set index in Palette with "palette_index" item meta field,
23507 // this overrides Color.
23511 // Texture overlays.
23512 InvOverlay, WieldOverlay Texture
23515 }))(obj)).Name))) > math.MaxUint16 {
23519 x := uint16(len(([]byte((*(*(struct {
23524 InvImg, WieldImg Texture
23525 WieldScale [3]float32
23530 CanPointLiquids bool
23536 PlacePredict string
23538 PlaceSnd, PlaceFailSnd SoundDef
23542 // Set index in Palette with "palette_index" item meta field,
23543 // this overrides Color.
23547 // Texture overlays.
23548 InvOverlay, WieldOverlay Texture
23552 write16(w, uint16(x))
23555 _, err := w.Write(([]byte((*(*(struct {
23560 InvImg, WieldImg Texture
23561 WieldScale [3]float32
23566 CanPointLiquids bool
23572 PlacePredict string
23574 PlaceSnd, PlaceFailSnd SoundDef
23578 // Set index in Palette with "palette_index" item meta field,
23579 // this overrides Color.
23583 // Texture overlays.
23584 InvOverlay, WieldOverlay Texture
23587 }))(obj)).Name))[:])
23590 if len(([]byte((*(*(struct {
23595 InvImg, WieldImg Texture
23596 WieldScale [3]float32
23601 CanPointLiquids bool
23607 PlacePredict string
23609 PlaceSnd, PlaceFailSnd SoundDef
23613 // Set index in Palette with "palette_index" item meta field,
23614 // this overrides Color.
23618 // Texture overlays.
23619 InvOverlay, WieldOverlay Texture
23622 }))(obj)).Desc))) > math.MaxUint16 {
23626 x := uint16(len(([]byte((*(*(struct {
23631 InvImg, WieldImg Texture
23632 WieldScale [3]float32
23637 CanPointLiquids bool
23643 PlacePredict string
23645 PlaceSnd, PlaceFailSnd SoundDef
23649 // Set index in Palette with "palette_index" item meta field,
23650 // this overrides Color.
23654 // Texture overlays.
23655 InvOverlay, WieldOverlay Texture
23659 write16(w, uint16(x))
23662 _, err := w.Write(([]byte((*(*(struct {
23667 InvImg, WieldImg Texture
23668 WieldScale [3]float32
23673 CanPointLiquids bool
23679 PlacePredict string
23681 PlaceSnd, PlaceFailSnd SoundDef
23685 // Set index in Palette with "palette_index" item meta field,
23686 // this overrides Color.
23690 // Texture overlays.
23691 InvOverlay, WieldOverlay Texture
23694 }))(obj)).Desc))[:])
23697 if err := pcall(func() {
23703 InvImg, WieldImg Texture
23704 WieldScale [3]float32
23709 CanPointLiquids bool
23715 PlacePredict string
23717 PlaceSnd, PlaceFailSnd SoundDef
23721 // Set index in Palette with "palette_index" item meta field,
23722 // this overrides Color.
23726 // Texture overlays.
23727 InvOverlay, WieldOverlay Texture
23730 }))(obj)).InvImg).serialize(w)
23735 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
23737 if err := pcall(func() {
23743 InvImg, WieldImg Texture
23744 WieldScale [3]float32
23749 CanPointLiquids bool
23755 PlacePredict string
23757 PlaceSnd, PlaceFailSnd SoundDef
23761 // Set index in Palette with "palette_index" item meta field,
23762 // this overrides Color.
23766 // Texture overlays.
23767 InvOverlay, WieldOverlay Texture
23770 }))(obj)).WieldImg).serialize(w)
23775 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
23777 for local298 := range (*(*(struct {
23782 InvImg, WieldImg Texture
23783 WieldScale [3]float32
23788 CanPointLiquids bool
23794 PlacePredict string
23796 PlaceSnd, PlaceFailSnd SoundDef
23800 // Set index in Palette with "palette_index" item meta field,
23801 // this overrides Color.
23805 // Texture overlays.
23806 InvOverlay, WieldOverlay Texture
23809 }))(obj)).WieldScale {
23811 x := ((*(*(struct {
23816 InvImg, WieldImg Texture
23817 WieldScale [3]float32
23822 CanPointLiquids bool
23828 PlacePredict string
23830 PlaceSnd, PlaceFailSnd SoundDef
23834 // Set index in Palette with "palette_index" item meta field,
23835 // this overrides Color.
23839 // Texture overlays.
23840 InvOverlay, WieldOverlay Texture
23843 }))(obj)).WieldScale)[local298]
23844 write32(w, math.Float32bits(x))
23853 InvImg, WieldImg Texture
23854 WieldScale [3]float32
23859 CanPointLiquids bool
23865 PlacePredict string
23867 PlaceSnd, PlaceFailSnd SoundDef
23871 // Set index in Palette with "palette_index" item meta field,
23872 // this overrides Color.
23876 // Texture overlays.
23877 InvOverlay, WieldOverlay Texture
23881 write16(w, uint16(x))
23889 InvImg, WieldImg Texture
23890 WieldScale [3]float32
23895 CanPointLiquids bool
23901 PlacePredict string
23903 PlaceSnd, PlaceFailSnd SoundDef
23907 // Set index in Palette with "palette_index" item meta field,
23908 // this overrides Color.
23912 // Texture overlays.
23913 InvOverlay, WieldOverlay Texture
23930 InvImg, WieldImg Texture
23931 WieldScale [3]float32
23936 CanPointLiquids bool
23942 PlacePredict string
23944 PlaceSnd, PlaceFailSnd SoundDef
23948 // Set index in Palette with "palette_index" item meta field,
23949 // this overrides Color.
23953 // Texture overlays.
23954 InvOverlay, WieldOverlay Texture
23957 }))(obj)).CanPointLiquids
23965 if err := pcall(func() {
23971 InvImg, WieldImg Texture
23972 WieldScale [3]float32
23977 CanPointLiquids bool
23983 PlacePredict string
23985 PlaceSnd, PlaceFailSnd SoundDef
23989 // Set index in Palette with "palette_index" item meta field,
23990 // this overrides Color.
23994 // Texture overlays.
23995 InvOverlay, WieldOverlay Texture
23998 }))(obj)).ToolCaps).serialize(w)
24003 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
24005 if len(((*(*(struct {
24010 InvImg, WieldImg Texture
24011 WieldScale [3]float32
24016 CanPointLiquids bool
24022 PlacePredict string
24024 PlaceSnd, PlaceFailSnd SoundDef
24028 // Set index in Palette with "palette_index" item meta field,
24029 // this overrides Color.
24033 // Texture overlays.
24034 InvOverlay, WieldOverlay Texture
24037 }))(obj)).Groups)) > math.MaxUint16 {
24041 x := uint16(len(((*(*(struct {
24046 InvImg, WieldImg Texture
24047 WieldScale [3]float32
24052 CanPointLiquids bool
24058 PlacePredict string
24060 PlaceSnd, PlaceFailSnd SoundDef
24064 // Set index in Palette with "palette_index" item meta field,
24065 // this overrides Color.
24069 // Texture overlays.
24070 InvOverlay, WieldOverlay Texture
24073 }))(obj)).Groups)))
24074 write16(w, uint16(x))
24076 for local299 := range (*(*(struct {
24081 InvImg, WieldImg Texture
24082 WieldScale [3]float32
24087 CanPointLiquids bool
24093 PlacePredict string
24095 PlaceSnd, PlaceFailSnd SoundDef
24099 // Set index in Palette with "palette_index" item meta field,
24100 // this overrides Color.
24104 // Texture overlays.
24105 InvOverlay, WieldOverlay Texture
24109 if err := pcall(func() {
24115 InvImg, WieldImg Texture
24116 WieldScale [3]float32
24121 CanPointLiquids bool
24127 PlacePredict string
24129 PlaceSnd, PlaceFailSnd SoundDef
24133 // Set index in Palette with "palette_index" item meta field,
24134 // this overrides Color.
24138 // Texture overlays.
24139 InvOverlay, WieldOverlay Texture
24142 }))(obj)).Groups)[local299]).serialize(w)
24147 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
24150 if len(([]byte((*(*(struct {
24155 InvImg, WieldImg Texture
24156 WieldScale [3]float32
24161 CanPointLiquids bool
24167 PlacePredict string
24169 PlaceSnd, PlaceFailSnd SoundDef
24173 // Set index in Palette with "palette_index" item meta field,
24174 // this overrides Color.
24178 // Texture overlays.
24179 InvOverlay, WieldOverlay Texture
24182 }))(obj)).PlacePredict))) > math.MaxUint16 {
24186 x := uint16(len(([]byte((*(*(struct {
24191 InvImg, WieldImg Texture
24192 WieldScale [3]float32
24197 CanPointLiquids bool
24203 PlacePredict string
24205 PlaceSnd, PlaceFailSnd SoundDef
24209 // Set index in Palette with "palette_index" item meta field,
24210 // this overrides Color.
24214 // Texture overlays.
24215 InvOverlay, WieldOverlay Texture
24218 }))(obj)).PlacePredict))))
24219 write16(w, uint16(x))
24222 _, err := w.Write(([]byte((*(*(struct {
24227 InvImg, WieldImg Texture
24228 WieldScale [3]float32
24233 CanPointLiquids bool
24239 PlacePredict string
24241 PlaceSnd, PlaceFailSnd SoundDef
24245 // Set index in Palette with "palette_index" item meta field,
24246 // this overrides Color.
24250 // Texture overlays.
24251 InvOverlay, WieldOverlay Texture
24254 }))(obj)).PlacePredict))[:])
24257 if err := pcall(func() {
24263 InvImg, WieldImg Texture
24264 WieldScale [3]float32
24269 CanPointLiquids bool
24275 PlacePredict string
24277 PlaceSnd, PlaceFailSnd SoundDef
24281 // Set index in Palette with "palette_index" item meta field,
24282 // this overrides Color.
24286 // Texture overlays.
24287 InvOverlay, WieldOverlay Texture
24290 }))(obj)).PlaceSnd).serialize(w)
24295 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24297 if err := pcall(func() {
24303 InvImg, WieldImg Texture
24304 WieldScale [3]float32
24309 CanPointLiquids bool
24315 PlacePredict string
24317 PlaceSnd, PlaceFailSnd SoundDef
24321 // Set index in Palette with "palette_index" item meta field,
24322 // this overrides Color.
24326 // Texture overlays.
24327 InvOverlay, WieldOverlay Texture
24330 }))(obj)).PlaceFailSnd).serialize(w)
24335 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24343 InvImg, WieldImg Texture
24344 WieldScale [3]float32
24349 CanPointLiquids bool
24355 PlacePredict string
24357 PlaceSnd, PlaceFailSnd SoundDef
24361 // Set index in Palette with "palette_index" item meta field,
24362 // this overrides Color.
24366 // Texture overlays.
24367 InvOverlay, WieldOverlay Texture
24370 }))(obj)).PointRange
24371 write32(w, math.Float32bits(x))
24373 if err := pcall(func() {
24379 InvImg, WieldImg Texture
24380 WieldScale [3]float32
24385 CanPointLiquids bool
24391 PlacePredict string
24393 PlaceSnd, PlaceFailSnd SoundDef
24397 // Set index in Palette with "palette_index" item meta field,
24398 // this overrides Color.
24402 // Texture overlays.
24403 InvOverlay, WieldOverlay Texture
24406 }))(obj)).Palette).serialize(w)
24411 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24419 InvImg, WieldImg Texture
24420 WieldScale [3]float32
24425 CanPointLiquids bool
24431 PlacePredict string
24433 PlaceSnd, PlaceFailSnd SoundDef
24437 // Set index in Palette with "palette_index" item meta field,
24438 // this overrides Color.
24442 // Texture overlays.
24443 InvOverlay, WieldOverlay Texture
24447 w.Write([]byte{x.A, x.R, x.G, x.B})
24450 if err := pcall(func() {
24456 InvImg, WieldImg Texture
24457 WieldScale [3]float32
24462 CanPointLiquids bool
24468 PlacePredict string
24470 PlaceSnd, PlaceFailSnd SoundDef
24474 // Set index in Palette with "palette_index" item meta field,
24475 // this overrides Color.
24479 // Texture overlays.
24480 InvOverlay, WieldOverlay Texture
24483 }))(obj)).InvOverlay).serialize(w)
24488 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24490 if err := pcall(func() {
24496 InvImg, WieldImg Texture
24497 WieldScale [3]float32
24502 CanPointLiquids bool
24508 PlacePredict string
24510 PlaceSnd, PlaceFailSnd SoundDef
24514 // Set index in Palette with "palette_index" item meta field,
24515 // this overrides Color.
24519 // Texture overlays.
24520 InvOverlay, WieldOverlay Texture
24523 }))(obj)).WieldOverlay).serialize(w)
24528 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24530 if len(([]byte((*(*(struct {
24535 InvImg, WieldImg Texture
24536 WieldScale [3]float32
24541 CanPointLiquids bool
24547 PlacePredict string
24549 PlaceSnd, PlaceFailSnd SoundDef
24553 // Set index in Palette with "palette_index" item meta field,
24554 // this overrides Color.
24558 // Texture overlays.
24559 InvOverlay, WieldOverlay Texture
24562 }))(obj)).ShortDesc))) > math.MaxUint16 {
24566 x := uint16(len(([]byte((*(*(struct {
24571 InvImg, WieldImg Texture
24572 WieldScale [3]float32
24577 CanPointLiquids bool
24583 PlacePredict string
24585 PlaceSnd, PlaceFailSnd SoundDef
24589 // Set index in Palette with "palette_index" item meta field,
24590 // this overrides Color.
24594 // Texture overlays.
24595 InvOverlay, WieldOverlay Texture
24598 }))(obj)).ShortDesc))))
24599 write16(w, uint16(x))
24602 _, err := w.Write(([]byte((*(*(struct {
24607 InvImg, WieldImg Texture
24608 WieldScale [3]float32
24613 CanPointLiquids bool
24619 PlacePredict string
24621 PlaceSnd, PlaceFailSnd SoundDef
24625 // Set index in Palette with "palette_index" item meta field,
24626 // this overrides Color.
24630 // Texture overlays.
24631 InvOverlay, WieldOverlay Texture
24634 }))(obj)).ShortDesc))[:])
24640 if len((buf.Bytes())) > math.MaxUint16 {
24644 x := uint16(len((buf.Bytes())))
24645 write16(w, uint16(x))
24648 _, err := w.Write((buf.Bytes())[:])
24655 func (obj *ItemDef) deserialize(r io.Reader) {
24662 r := &io.LimitedReader{R: r, N: int64(n)}
24665 local301 := uint8(6)
24670 if local300 != local301 {
24671 chk(fmt.Errorf("const %v: %v", "uint8(6)", local300))
24674 if err := pcall(func() {
24680 InvImg, WieldImg Texture
24681 WieldScale [3]float32
24686 CanPointLiquids bool
24692 PlacePredict string
24694 PlaceSnd, PlaceFailSnd SoundDef
24698 // Set index in Palette with "palette_index" item meta field,
24699 // this overrides Color.
24703 // Texture overlays.
24704 InvOverlay, WieldOverlay Texture
24707 }))(obj)).Type).deserialize(r)
24712 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
24714 var local302 []uint8
24715 var local303 uint16
24720 (local302) = make([]uint8, local303)
24722 _, err := io.ReadFull(r, (local302)[:])
24730 InvImg, WieldImg Texture
24731 WieldScale [3]float32
24736 CanPointLiquids bool
24742 PlacePredict string
24744 PlaceSnd, PlaceFailSnd SoundDef
24748 // Set index in Palette with "palette_index" item meta field,
24749 // this overrides Color.
24753 // Texture overlays.
24754 InvOverlay, WieldOverlay Texture
24757 }))(obj)).Name) = string(local302)
24758 var local304 []uint8
24759 var local305 uint16
24764 (local304) = make([]uint8, local305)
24766 _, err := io.ReadFull(r, (local304)[:])
24774 InvImg, WieldImg Texture
24775 WieldScale [3]float32
24780 CanPointLiquids bool
24786 PlacePredict string
24788 PlaceSnd, PlaceFailSnd SoundDef
24792 // Set index in Palette with "palette_index" item meta field,
24793 // this overrides Color.
24797 // Texture overlays.
24798 InvOverlay, WieldOverlay Texture
24801 }))(obj)).Desc) = string(local304)
24802 if err := pcall(func() {
24808 InvImg, WieldImg Texture
24809 WieldScale [3]float32
24814 CanPointLiquids bool
24820 PlacePredict string
24822 PlaceSnd, PlaceFailSnd SoundDef
24826 // Set index in Palette with "palette_index" item meta field,
24827 // this overrides Color.
24831 // Texture overlays.
24832 InvOverlay, WieldOverlay Texture
24835 }))(obj)).InvImg).deserialize(r)
24840 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24842 if err := pcall(func() {
24848 InvImg, WieldImg Texture
24849 WieldScale [3]float32
24854 CanPointLiquids bool
24860 PlacePredict string
24862 PlaceSnd, PlaceFailSnd SoundDef
24866 // Set index in Palette with "palette_index" item meta field,
24867 // this overrides Color.
24871 // Texture overlays.
24872 InvOverlay, WieldOverlay Texture
24875 }))(obj)).WieldImg).deserialize(r)
24880 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24882 for local306 := range (*(*(struct {
24887 InvImg, WieldImg Texture
24888 WieldScale [3]float32
24893 CanPointLiquids bool
24899 PlacePredict string
24901 PlaceSnd, PlaceFailSnd SoundDef
24905 // Set index in Palette with "palette_index" item meta field,
24906 // this overrides Color.
24910 // Texture overlays.
24911 InvOverlay, WieldOverlay Texture
24914 }))(obj)).WieldScale {
24916 p := &((*(*(struct {
24921 InvImg, WieldImg Texture
24922 WieldScale [3]float32
24927 CanPointLiquids bool
24933 PlacePredict string
24935 PlaceSnd, PlaceFailSnd SoundDef
24939 // Set index in Palette with "palette_index" item meta field,
24940 // this overrides Color.
24944 // Texture overlays.
24945 InvOverlay, WieldOverlay Texture
24948 }))(obj)).WieldScale)[local306]
24949 *p = math.Float32frombits(read32(r))
24953 p := &(*(*(struct {
24958 InvImg, WieldImg Texture
24959 WieldScale [3]float32
24964 CanPointLiquids bool
24970 PlacePredict string
24972 PlaceSnd, PlaceFailSnd SoundDef
24976 // Set index in Palette with "palette_index" item meta field,
24977 // this overrides Color.
24981 // Texture overlays.
24982 InvOverlay, WieldOverlay Texture
24989 p := &(*(*(struct {
24994 InvImg, WieldImg Texture
24995 WieldScale [3]float32
25000 CanPointLiquids bool
25006 PlacePredict string
25008 PlaceSnd, PlaceFailSnd SoundDef
25012 // Set index in Palette with "palette_index" item meta field,
25013 // this overrides Color.
25017 // Texture overlays.
25018 InvOverlay, WieldOverlay Texture
25022 switch n := read8(r); n {
25028 chk(fmt.Errorf("invalid bool: %d", n))
25033 p := &(*(*(struct {
25038 InvImg, WieldImg Texture
25039 WieldScale [3]float32
25044 CanPointLiquids bool
25050 PlacePredict string
25052 PlaceSnd, PlaceFailSnd SoundDef
25056 // Set index in Palette with "palette_index" item meta field,
25057 // this overrides Color.
25061 // Texture overlays.
25062 InvOverlay, WieldOverlay Texture
25065 }))(obj)).CanPointLiquids
25066 switch n := read8(r); n {
25072 chk(fmt.Errorf("invalid bool: %d", n))
25076 if err := pcall(func() {
25082 InvImg, WieldImg Texture
25083 WieldScale [3]float32
25088 CanPointLiquids bool
25094 PlacePredict string
25096 PlaceSnd, PlaceFailSnd SoundDef
25100 // Set index in Palette with "palette_index" item meta field,
25101 // this overrides Color.
25105 // Texture overlays.
25106 InvOverlay, WieldOverlay Texture
25109 }))(obj)).ToolCaps).deserialize(r)
25114 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
25116 var local307 uint16
25126 InvImg, WieldImg Texture
25127 WieldScale [3]float32
25132 CanPointLiquids bool
25138 PlacePredict string
25140 PlaceSnd, PlaceFailSnd SoundDef
25144 // Set index in Palette with "palette_index" item meta field,
25145 // this overrides Color.
25149 // Texture overlays.
25150 InvOverlay, WieldOverlay Texture
25153 }))(obj)).Groups) = make([]Group, local307)
25154 for local308 := range (*(*(struct {
25159 InvImg, WieldImg Texture
25160 WieldScale [3]float32
25165 CanPointLiquids bool
25171 PlacePredict string
25173 PlaceSnd, PlaceFailSnd SoundDef
25177 // Set index in Palette with "palette_index" item meta field,
25178 // this overrides Color.
25182 // Texture overlays.
25183 InvOverlay, WieldOverlay Texture
25187 if err := pcall(func() {
25193 InvImg, WieldImg Texture
25194 WieldScale [3]float32
25199 CanPointLiquids bool
25205 PlacePredict string
25207 PlaceSnd, PlaceFailSnd SoundDef
25211 // Set index in Palette with "palette_index" item meta field,
25212 // this overrides Color.
25216 // Texture overlays.
25217 InvOverlay, WieldOverlay Texture
25220 }))(obj)).Groups)[local308]).deserialize(r)
25225 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
25228 var local309 []uint8
25229 var local310 uint16
25234 (local309) = make([]uint8, local310)
25236 _, err := io.ReadFull(r, (local309)[:])
25244 InvImg, WieldImg Texture
25245 WieldScale [3]float32
25250 CanPointLiquids bool
25256 PlacePredict string
25258 PlaceSnd, PlaceFailSnd SoundDef
25262 // Set index in Palette with "palette_index" item meta field,
25263 // this overrides Color.
25267 // Texture overlays.
25268 InvOverlay, WieldOverlay Texture
25271 }))(obj)).PlacePredict) = string(local309)
25272 if err := pcall(func() {
25278 InvImg, WieldImg Texture
25279 WieldScale [3]float32
25284 CanPointLiquids bool
25290 PlacePredict string
25292 PlaceSnd, PlaceFailSnd SoundDef
25296 // Set index in Palette with "palette_index" item meta field,
25297 // this overrides Color.
25301 // Texture overlays.
25302 InvOverlay, WieldOverlay Texture
25305 }))(obj)).PlaceSnd).deserialize(r)
25310 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25312 if err := pcall(func() {
25318 InvImg, WieldImg Texture
25319 WieldScale [3]float32
25324 CanPointLiquids bool
25330 PlacePredict string
25332 PlaceSnd, PlaceFailSnd SoundDef
25336 // Set index in Palette with "palette_index" item meta field,
25337 // this overrides Color.
25341 // Texture overlays.
25342 InvOverlay, WieldOverlay Texture
25345 }))(obj)).PlaceFailSnd).deserialize(r)
25350 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25353 p := &(*(*(struct {
25358 InvImg, WieldImg Texture
25359 WieldScale [3]float32
25364 CanPointLiquids bool
25370 PlacePredict string
25372 PlaceSnd, PlaceFailSnd SoundDef
25376 // Set index in Palette with "palette_index" item meta field,
25377 // this overrides Color.
25381 // Texture overlays.
25382 InvOverlay, WieldOverlay Texture
25385 }))(obj)).PointRange
25386 *p = math.Float32frombits(read32(r))
25388 if err := pcall(func() {
25394 InvImg, WieldImg Texture
25395 WieldScale [3]float32
25400 CanPointLiquids bool
25406 PlacePredict string
25408 PlaceSnd, PlaceFailSnd SoundDef
25412 // Set index in Palette with "palette_index" item meta field,
25413 // this overrides Color.
25417 // Texture overlays.
25418 InvOverlay, WieldOverlay Texture
25421 }))(obj)).Palette).deserialize(r)
25426 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25429 p := &(*(*(struct {
25434 InvImg, WieldImg Texture
25435 WieldScale [3]float32
25440 CanPointLiquids bool
25446 PlacePredict string
25448 PlaceSnd, PlaceFailSnd SoundDef
25452 // Set index in Palette with "palette_index" item meta field,
25453 // this overrides Color.
25457 // Texture overlays.
25458 InvOverlay, WieldOverlay Texture
25462 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25465 if err := pcall(func() {
25471 InvImg, WieldImg Texture
25472 WieldScale [3]float32
25477 CanPointLiquids bool
25483 PlacePredict string
25485 PlaceSnd, PlaceFailSnd SoundDef
25489 // Set index in Palette with "palette_index" item meta field,
25490 // this overrides Color.
25494 // Texture overlays.
25495 InvOverlay, WieldOverlay Texture
25498 }))(obj)).InvOverlay).deserialize(r)
25503 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25505 if err := pcall(func() {
25511 InvImg, WieldImg Texture
25512 WieldScale [3]float32
25517 CanPointLiquids bool
25523 PlacePredict string
25525 PlaceSnd, PlaceFailSnd SoundDef
25529 // Set index in Palette with "palette_index" item meta field,
25530 // this overrides Color.
25534 // Texture overlays.
25535 InvOverlay, WieldOverlay Texture
25538 }))(obj)).WieldOverlay).deserialize(r)
25543 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25545 var local311 []uint8
25546 var local312 uint16
25551 (local311) = make([]uint8, local312)
25553 _, err := io.ReadFull(r, (local311)[:])
25561 InvImg, WieldImg Texture
25562 WieldScale [3]float32
25567 CanPointLiquids bool
25573 PlacePredict string
25575 PlaceSnd, PlaceFailSnd SoundDef
25579 // Set index in Palette with "palette_index" item meta field,
25580 // this overrides Color.
25584 // Texture overlays.
25585 InvOverlay, WieldOverlay Texture
25588 }))(obj)).ShortDesc) = string(local311)
25590 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25595 func (obj *SoundSrcType) serialize(w io.Writer) {
25597 x := *(*(uint8))(obj)
25598 write8(w, uint8(x))
25602 func (obj *SoundSrcType) deserialize(r io.Reader) {
25604 p := &*(*(uint8))(obj)
25609 func (obj *TileAnim) serialize(w io.Writer) {
25610 if err := pcall(func() {
25614 //mt:if %s.Type == SpriteSheetAnim
25615 AspectRatio [2]uint8
25617 //mt:if %s.Type == VerticalFrameAnim
25620 //mt:if %s.Type != NoAnim
25621 Duration float32 // in seconds
25623 }))(obj)).Type).serialize(w)
25628 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
25633 //mt:if %s.Type == SpriteSheetAnim
25634 AspectRatio [2]uint8
25636 //mt:if %s.Type == VerticalFrameAnim
25639 //mt:if %s.Type != NoAnim
25640 Duration float32 // in seconds
25642 }))(obj)).Type < maxAnim) {
25643 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25648 //mt:if %s.Type == SpriteSheetAnim
25649 AspectRatio [2]uint8
25651 //mt:if %s.Type == VerticalFrameAnim
25654 //mt:if %s.Type != NoAnim
25655 Duration float32 // in seconds
25657 }))(obj)).Type == SpriteSheetAnim {
25659 _, err := w.Write(((*(*(struct {
25662 //mt:if %s.Type == SpriteSheetAnim
25663 AspectRatio [2]uint8
25665 //mt:if %s.Type == VerticalFrameAnim
25668 //mt:if %s.Type != NoAnim
25669 Duration float32 // in seconds
25671 }))(obj)).AspectRatio)[:])
25678 //mt:if %s.Type == SpriteSheetAnim
25679 AspectRatio [2]uint8
25681 //mt:if %s.Type == VerticalFrameAnim
25684 //mt:if %s.Type != NoAnim
25685 Duration float32 // in seconds
25687 }))(obj)).Type == VerticalFrameAnim {
25688 for local313 := range (*(*(struct {
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)).NFrames {
25702 x := ((*(*(struct {
25705 //mt:if %s.Type == SpriteSheetAnim
25706 AspectRatio [2]uint8
25708 //mt:if %s.Type == VerticalFrameAnim
25711 //mt:if %s.Type != NoAnim
25712 Duration float32 // in seconds
25714 }))(obj)).NFrames)[local313]
25715 write16(w, uint16(x))
25722 //mt:if %s.Type == SpriteSheetAnim
25723 AspectRatio [2]uint8
25725 //mt:if %s.Type == VerticalFrameAnim
25728 //mt:if %s.Type != NoAnim
25729 Duration float32 // in seconds
25731 }))(obj)).Type != NoAnim {
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
25746 write32(w, math.Float32bits(x))
25751 func (obj *TileAnim) deserialize(r io.Reader) {
25752 if err := pcall(func() {
25756 //mt:if %s.Type == SpriteSheetAnim
25757 AspectRatio [2]uint8
25759 //mt:if %s.Type == VerticalFrameAnim
25762 //mt:if %s.Type != NoAnim
25763 Duration float32 // in seconds
25765 }))(obj)).Type).deserialize(r)
25770 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
25775 //mt:if %s.Type == SpriteSheetAnim
25776 AspectRatio [2]uint8
25778 //mt:if %s.Type == VerticalFrameAnim
25781 //mt:if %s.Type != NoAnim
25782 Duration float32 // in seconds
25784 }))(obj)).Type < maxAnim) {
25785 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25790 //mt:if %s.Type == SpriteSheetAnim
25791 AspectRatio [2]uint8
25793 //mt:if %s.Type == VerticalFrameAnim
25796 //mt:if %s.Type != NoAnim
25797 Duration float32 // in seconds
25799 }))(obj)).Type == SpriteSheetAnim {
25801 _, err := io.ReadFull(r, ((*(*(struct {
25804 //mt:if %s.Type == SpriteSheetAnim
25805 AspectRatio [2]uint8
25807 //mt:if %s.Type == VerticalFrameAnim
25810 //mt:if %s.Type != NoAnim
25811 Duration float32 // in seconds
25813 }))(obj)).AspectRatio)[:])
25820 //mt:if %s.Type == SpriteSheetAnim
25821 AspectRatio [2]uint8
25823 //mt:if %s.Type == VerticalFrameAnim
25826 //mt:if %s.Type != NoAnim
25827 Duration float32 // in seconds
25829 }))(obj)).Type == VerticalFrameAnim {
25830 for local314 := range (*(*(struct {
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)).NFrames {
25844 p := &((*(*(struct {
25847 //mt:if %s.Type == SpriteSheetAnim
25848 AspectRatio [2]uint8
25850 //mt:if %s.Type == VerticalFrameAnim
25853 //mt:if %s.Type != NoAnim
25854 Duration float32 // in seconds
25856 }))(obj)).NFrames)[local314]
25864 //mt:if %s.Type == SpriteSheetAnim
25865 AspectRatio [2]uint8
25867 //mt:if %s.Type == VerticalFrameAnim
25870 //mt:if %s.Type != NoAnim
25871 Duration float32 // in seconds
25873 }))(obj)).Type != NoAnim {
25875 p := &(*(*(struct {
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
25888 *p = math.Float32frombits(read32(r))
25893 func (obj *Content) serialize(w io.Writer) {
25895 x := *(*(uint16))(obj)
25896 write16(w, uint16(x))
25900 func (obj *Content) deserialize(r io.Reader) {
25902 p := &*(*(uint16))(obj)
25907 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
25909 x := *(*(uint32))(obj)
25910 write32(w, uint32(x))
25914 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
25916 p := &*(*(uint32))(obj)
25921 func (obj *HUDID) serialize(w io.Writer) {
25923 x := *(*(uint32))(obj)
25924 write32(w, uint32(x))
25928 func (obj *HUDID) deserialize(r io.Reader) {
25930 p := &*(*(uint32))(obj)
25935 func (obj *HUD) serialize(w io.Writer) {
25936 if err := pcall(func() {
25953 }))(obj)).Type).serialize(w)
25958 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
25960 for local315 := range (*(*(struct {
25978 x := ((*(*(struct {
25994 }))(obj)).Pos)[local315]
25995 write32(w, math.Float32bits(x))
25998 if len(([]byte((*(*(struct {
26014 }))(obj)).Name))) > math.MaxUint16 {
26018 x := uint16(len(([]byte((*(*(struct {
26035 write16(w, uint16(x))
26038 _, err := w.Write(([]byte((*(*(struct {
26054 }))(obj)).Name))[:])
26057 for local316 := range (*(*(struct {
26075 x := ((*(*(struct {
26091 }))(obj)).Scale)[local316]
26092 write32(w, math.Float32bits(x))
26095 if len(([]byte((*(*(struct {
26111 }))(obj)).Text))) > math.MaxUint16 {
26115 x := uint16(len(([]byte((*(*(struct {
26132 write16(w, uint16(x))
26135 _, err := w.Write(([]byte((*(*(struct {
26151 }))(obj)).Text))[:])
26172 write32(w, uint32(x))
26192 write32(w, uint32(x))
26212 write32(w, uint32(x))
26214 for local317 := range (*(*(struct {
26232 x := ((*(*(struct {
26248 }))(obj)).Align)[local317]
26249 write32(w, math.Float32bits(x))
26252 for local318 := range (*(*(struct {
26270 x := ((*(*(struct {
26286 }))(obj)).Offset)[local318]
26287 write32(w, math.Float32bits(x))
26290 if err := pcall(func() {
26307 }))(obj)).WorldPos).serialize(w)
26312 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
26314 for local319 := range (*(*(struct {
26332 x := ((*(*(struct {
26348 }))(obj)).Size)[local319]
26349 write32(w, uint32(x))
26370 write16(w, uint16(x))
26372 if len(([]byte((*(*(struct {
26388 }))(obj)).Text2))) > math.MaxUint16 {
26392 x := uint16(len(([]byte((*(*(struct {
26408 }))(obj)).Text2))))
26409 write16(w, uint16(x))
26412 _, err := w.Write(([]byte((*(*(struct {
26428 }))(obj)).Text2))[:])
26433 func (obj *HUD) deserialize(r io.Reader) {
26434 if err := pcall(func() {
26451 }))(obj)).Type).deserialize(r)
26456 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
26458 for local320 := range (*(*(struct {
26476 p := &((*(*(struct {
26492 }))(obj)).Pos)[local320]
26493 *p = math.Float32frombits(read32(r))
26496 var local321 []uint8
26497 var local322 uint16
26502 (local321) = make([]uint8, local322)
26504 _, err := io.ReadFull(r, (local321)[:])
26523 }))(obj)).Name) = string(local321)
26524 for local323 := range (*(*(struct {
26542 p := &((*(*(struct {
26558 }))(obj)).Scale)[local323]
26559 *p = math.Float32frombits(read32(r))
26562 var local324 []uint8
26563 var local325 uint16
26568 (local324) = make([]uint8, local325)
26570 _, err := io.ReadFull(r, (local324)[:])
26589 }))(obj)).Text) = string(local324)
26591 p := &(*(*(struct {
26611 p := &(*(*(struct {
26631 p := &(*(*(struct {
26650 for local326 := range (*(*(struct {
26668 p := &((*(*(struct {
26684 }))(obj)).Align)[local326]
26685 *p = math.Float32frombits(read32(r))
26688 for local327 := range (*(*(struct {
26706 p := &((*(*(struct {
26722 }))(obj)).Offset)[local327]
26723 *p = math.Float32frombits(read32(r))
26726 if err := pcall(func() {
26743 }))(obj)).WorldPos).deserialize(r)
26748 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
26750 for local328 := range (*(*(struct {
26768 p := &((*(*(struct {
26784 }))(obj)).Size)[local328]
26785 *p = int32(read32(r))
26789 p := &(*(*(struct {
26806 *p = int16(read16(r))
26808 var local329 []uint8
26809 var local330 uint16
26814 (local329) = make([]uint8, local330)
26816 _, err := io.ReadFull(r, (local329)[:])
26835 }))(obj)).Text2) = string(local329)
26838 func (obj *HUDField) serialize(w io.Writer) {
26840 x := *(*(uint8))(obj)
26841 write8(w, uint8(x))
26845 func (obj *HUDField) deserialize(r io.Reader) {
26847 p := &*(*(uint8))(obj)
26852 func (obj *HUDFlags) serialize(w io.Writer) {
26854 x := *(*(uint32))(obj)
26855 write32(w, uint32(x))
26859 func (obj *HUDFlags) deserialize(r io.Reader) {
26861 p := &*(*(uint32))(obj)
26866 func (obj *HotbarParam) serialize(w io.Writer) {
26868 x := *(*(uint16))(obj)
26869 write16(w, uint16(x))
26873 func (obj *HotbarParam) deserialize(r io.Reader) {
26875 p := &*(*(uint16))(obj)
26880 func (obj *Texture) serialize(w io.Writer) {
26881 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26885 x := uint16(len(([]byte(*(*(string))(obj)))))
26886 write16(w, uint16(x))
26889 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26894 func (obj *Texture) deserialize(r io.Reader) {
26895 var local331 []uint8
26896 var local332 uint16
26901 (local331) = make([]uint8, local332)
26903 _, err := io.ReadFull(r, (local331)[:])
26906 (*(*(string))(obj)) = string(local331)
26909 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
26911 x := *(*(uint8))(obj)
26912 write8(w, uint8(x))
26916 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
26918 p := &*(*(uint8))(obj)
26923 func (obj *ModChanSig) serialize(w io.Writer) {
26925 x := *(*(uint8))(obj)
26926 write8(w, uint8(x))
26930 func (obj *ModChanSig) deserialize(r io.Reader) {
26932 p := &*(*(uint8))(obj)
26937 func (obj *AOProps) serialize(w io.Writer) {
26939 local333 := uint8(4)
26942 write8(w, uint8(x))
26947 MaxHP uint16 // Player only.
26948 CollideWithNodes bool
26949 Weight float32 // deprecated
26953 VisualSize [3]float32
26955 SpriteSheetSize [2]int16 // in sprites.
26956 SpritePos [2]int16 // in sprite sheet.
26958 MakeFootstepSnds bool
26959 RotateSpeed float32 // in radians per second.
26961 Colors []color.NRGBA
26962 CollideWithAOs bool
26965 FaceRotateDirOff float32 // in degrees.
26968 NametagColor color.NRGBA
26969 FaceRotateSpeed float32 // in degrees per second.
26973 MaxBreath uint16 // Player only.
26974 EyeHeight float32 // Player only.
26975 ZoomFOV float32 // in degrees. Player only.
26976 UseTextureAlpha bool
26977 DmgTextureMod Texture // suffix
26980 NametagBG color.NRGBA
26982 write16(w, uint16(x))
26986 MaxHP uint16 // Player only.
26987 CollideWithNodes bool
26988 Weight float32 // deprecated
26992 VisualSize [3]float32
26994 SpriteSheetSize [2]int16 // in sprites.
26995 SpritePos [2]int16 // in sprite sheet.
26997 MakeFootstepSnds bool
26998 RotateSpeed float32 // in radians per second.
27000 Colors []color.NRGBA
27001 CollideWithAOs bool
27004 FaceRotateDirOff float32 // in degrees.
27007 NametagColor color.NRGBA
27008 FaceRotateSpeed float32 // in degrees per second.
27012 MaxBreath uint16 // Player only.
27013 EyeHeight float32 // Player only.
27014 ZoomFOV float32 // in degrees. Player only.
27015 UseTextureAlpha bool
27016 DmgTextureMod Texture // suffix
27019 NametagBG color.NRGBA
27020 }))(obj)).CollideWithNodes
27030 MaxHP uint16 // Player only.
27031 CollideWithNodes bool
27032 Weight float32 // deprecated
27036 VisualSize [3]float32
27038 SpriteSheetSize [2]int16 // in sprites.
27039 SpritePos [2]int16 // in sprite sheet.
27041 MakeFootstepSnds bool
27042 RotateSpeed float32 // in radians per second.
27044 Colors []color.NRGBA
27045 CollideWithAOs bool
27048 FaceRotateDirOff float32 // in degrees.
27051 NametagColor color.NRGBA
27052 FaceRotateSpeed float32 // in degrees per second.
27056 MaxBreath uint16 // Player only.
27057 EyeHeight float32 // Player only.
27058 ZoomFOV float32 // in degrees. Player only.
27059 UseTextureAlpha bool
27060 DmgTextureMod Texture // suffix
27063 NametagBG color.NRGBA
27065 write32(w, math.Float32bits(x))
27067 if err := pcall(func() {
27069 MaxHP uint16 // Player only.
27070 CollideWithNodes bool
27071 Weight float32 // deprecated
27075 VisualSize [3]float32
27077 SpriteSheetSize [2]int16 // in sprites.
27078 SpritePos [2]int16 // in sprite sheet.
27080 MakeFootstepSnds bool
27081 RotateSpeed float32 // in radians per second.
27083 Colors []color.NRGBA
27084 CollideWithAOs bool
27087 FaceRotateDirOff float32 // in degrees.
27090 NametagColor color.NRGBA
27091 FaceRotateSpeed float32 // in degrees per second.
27095 MaxBreath uint16 // Player only.
27096 EyeHeight float32 // Player only.
27097 ZoomFOV float32 // in degrees. Player only.
27098 UseTextureAlpha bool
27099 DmgTextureMod Texture // suffix
27102 NametagBG color.NRGBA
27103 }))(obj)).ColBox).serialize(w)
27108 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
27110 if err := pcall(func() {
27112 MaxHP uint16 // Player only.
27113 CollideWithNodes bool
27114 Weight float32 // deprecated
27118 VisualSize [3]float32
27120 SpriteSheetSize [2]int16 // in sprites.
27121 SpritePos [2]int16 // in sprite sheet.
27123 MakeFootstepSnds bool
27124 RotateSpeed float32 // in radians per second.
27126 Colors []color.NRGBA
27127 CollideWithAOs bool
27130 FaceRotateDirOff float32 // in degrees.
27133 NametagColor color.NRGBA
27134 FaceRotateSpeed float32 // in degrees per second.
27138 MaxBreath uint16 // Player only.
27139 EyeHeight float32 // Player only.
27140 ZoomFOV float32 // in degrees. Player only.
27141 UseTextureAlpha bool
27142 DmgTextureMod Texture // suffix
27145 NametagBG color.NRGBA
27146 }))(obj)).SelBox).serialize(w)
27151 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
27155 MaxHP uint16 // Player only.
27156 CollideWithNodes bool
27157 Weight float32 // deprecated
27161 VisualSize [3]float32
27163 SpriteSheetSize [2]int16 // in sprites.
27164 SpritePos [2]int16 // in sprite sheet.
27166 MakeFootstepSnds bool
27167 RotateSpeed float32 // in radians per second.
27169 Colors []color.NRGBA
27170 CollideWithAOs bool
27173 FaceRotateDirOff float32 // in degrees.
27176 NametagColor color.NRGBA
27177 FaceRotateSpeed float32 // in degrees per second.
27181 MaxBreath uint16 // Player only.
27182 EyeHeight float32 // Player only.
27183 ZoomFOV float32 // in degrees. Player only.
27184 UseTextureAlpha bool
27185 DmgTextureMod Texture // suffix
27188 NametagBG color.NRGBA
27189 }))(obj)).Pointable
27197 if len(([]byte((*(*(struct {
27198 MaxHP uint16 // Player only.
27199 CollideWithNodes bool
27200 Weight float32 // deprecated
27204 VisualSize [3]float32
27206 SpriteSheetSize [2]int16 // in sprites.
27207 SpritePos [2]int16 // in sprite sheet.
27209 MakeFootstepSnds bool
27210 RotateSpeed float32 // in radians per second.
27212 Colors []color.NRGBA
27213 CollideWithAOs bool
27216 FaceRotateDirOff float32 // in degrees.
27219 NametagColor color.NRGBA
27220 FaceRotateSpeed float32 // in degrees per second.
27224 MaxBreath uint16 // Player only.
27225 EyeHeight float32 // Player only.
27226 ZoomFOV float32 // in degrees. Player only.
27227 UseTextureAlpha bool
27228 DmgTextureMod Texture // suffix
27231 NametagBG color.NRGBA
27232 }))(obj)).Visual))) > math.MaxUint16 {
27236 x := uint16(len(([]byte((*(*(struct {
27237 MaxHP uint16 // Player only.
27238 CollideWithNodes bool
27239 Weight float32 // deprecated
27243 VisualSize [3]float32
27245 SpriteSheetSize [2]int16 // in sprites.
27246 SpritePos [2]int16 // in sprite sheet.
27248 MakeFootstepSnds bool
27249 RotateSpeed float32 // in radians per second.
27251 Colors []color.NRGBA
27252 CollideWithAOs bool
27255 FaceRotateDirOff float32 // in degrees.
27258 NametagColor color.NRGBA
27259 FaceRotateSpeed float32 // in degrees per second.
27263 MaxBreath uint16 // Player only.
27264 EyeHeight float32 // Player only.
27265 ZoomFOV float32 // in degrees. Player only.
27266 UseTextureAlpha bool
27267 DmgTextureMod Texture // suffix
27270 NametagBG color.NRGBA
27271 }))(obj)).Visual))))
27272 write16(w, uint16(x))
27275 _, err := w.Write(([]byte((*(*(struct {
27276 MaxHP uint16 // Player only.
27277 CollideWithNodes bool
27278 Weight float32 // deprecated
27282 VisualSize [3]float32
27284 SpriteSheetSize [2]int16 // in sprites.
27285 SpritePos [2]int16 // in sprite sheet.
27287 MakeFootstepSnds bool
27288 RotateSpeed float32 // in radians per second.
27290 Colors []color.NRGBA
27291 CollideWithAOs bool
27294 FaceRotateDirOff float32 // in degrees.
27297 NametagColor color.NRGBA
27298 FaceRotateSpeed float32 // in degrees per second.
27302 MaxBreath uint16 // Player only.
27303 EyeHeight float32 // Player only.
27304 ZoomFOV float32 // in degrees. Player only.
27305 UseTextureAlpha bool
27306 DmgTextureMod Texture // suffix
27309 NametagBG color.NRGBA
27310 }))(obj)).Visual))[:])
27313 for local334 := range (*(*(struct {
27314 MaxHP uint16 // Player only.
27315 CollideWithNodes bool
27316 Weight float32 // deprecated
27320 VisualSize [3]float32
27322 SpriteSheetSize [2]int16 // in sprites.
27323 SpritePos [2]int16 // in sprite sheet.
27325 MakeFootstepSnds bool
27326 RotateSpeed float32 // in radians per second.
27328 Colors []color.NRGBA
27329 CollideWithAOs bool
27332 FaceRotateDirOff float32 // in degrees.
27335 NametagColor color.NRGBA
27336 FaceRotateSpeed float32 // in degrees per second.
27340 MaxBreath uint16 // Player only.
27341 EyeHeight float32 // Player only.
27342 ZoomFOV float32 // in degrees. Player only.
27343 UseTextureAlpha bool
27344 DmgTextureMod Texture // suffix
27347 NametagBG color.NRGBA
27348 }))(obj)).VisualSize {
27350 x := ((*(*(struct {
27351 MaxHP uint16 // Player only.
27352 CollideWithNodes bool
27353 Weight float32 // deprecated
27357 VisualSize [3]float32
27359 SpriteSheetSize [2]int16 // in sprites.
27360 SpritePos [2]int16 // in sprite sheet.
27362 MakeFootstepSnds bool
27363 RotateSpeed float32 // in radians per second.
27365 Colors []color.NRGBA
27366 CollideWithAOs bool
27369 FaceRotateDirOff float32 // in degrees.
27372 NametagColor color.NRGBA
27373 FaceRotateSpeed float32 // in degrees per second.
27377 MaxBreath uint16 // Player only.
27378 EyeHeight float32 // Player only.
27379 ZoomFOV float32 // in degrees. Player only.
27380 UseTextureAlpha bool
27381 DmgTextureMod Texture // suffix
27384 NametagBG color.NRGBA
27385 }))(obj)).VisualSize)[local334]
27386 write32(w, math.Float32bits(x))
27389 if len(((*(*(struct {
27390 MaxHP uint16 // Player only.
27391 CollideWithNodes bool
27392 Weight float32 // deprecated
27396 VisualSize [3]float32
27398 SpriteSheetSize [2]int16 // in sprites.
27399 SpritePos [2]int16 // in sprite sheet.
27401 MakeFootstepSnds bool
27402 RotateSpeed float32 // in radians per second.
27404 Colors []color.NRGBA
27405 CollideWithAOs bool
27408 FaceRotateDirOff float32 // in degrees.
27411 NametagColor color.NRGBA
27412 FaceRotateSpeed float32 // in degrees per second.
27416 MaxBreath uint16 // Player only.
27417 EyeHeight float32 // Player only.
27418 ZoomFOV float32 // in degrees. Player only.
27419 UseTextureAlpha bool
27420 DmgTextureMod Texture // suffix
27423 NametagBG color.NRGBA
27424 }))(obj)).Textures)) > math.MaxUint16 {
27428 x := uint16(len(((*(*(struct {
27429 MaxHP uint16 // Player only.
27430 CollideWithNodes bool
27431 Weight float32 // deprecated
27435 VisualSize [3]float32
27437 SpriteSheetSize [2]int16 // in sprites.
27438 SpritePos [2]int16 // in sprite sheet.
27440 MakeFootstepSnds bool
27441 RotateSpeed float32 // in radians per second.
27443 Colors []color.NRGBA
27444 CollideWithAOs bool
27447 FaceRotateDirOff float32 // in degrees.
27450 NametagColor color.NRGBA
27451 FaceRotateSpeed float32 // in degrees per second.
27455 MaxBreath uint16 // Player only.
27456 EyeHeight float32 // Player only.
27457 ZoomFOV float32 // in degrees. Player only.
27458 UseTextureAlpha bool
27459 DmgTextureMod Texture // suffix
27462 NametagBG color.NRGBA
27463 }))(obj)).Textures)))
27464 write16(w, uint16(x))
27466 for local335 := range (*(*(struct {
27467 MaxHP uint16 // Player only.
27468 CollideWithNodes bool
27469 Weight float32 // deprecated
27473 VisualSize [3]float32
27475 SpriteSheetSize [2]int16 // in sprites.
27476 SpritePos [2]int16 // in sprite sheet.
27478 MakeFootstepSnds bool
27479 RotateSpeed float32 // in radians per second.
27481 Colors []color.NRGBA
27482 CollideWithAOs bool
27485 FaceRotateDirOff float32 // in degrees.
27488 NametagColor color.NRGBA
27489 FaceRotateSpeed float32 // in degrees per second.
27493 MaxBreath uint16 // Player only.
27494 EyeHeight float32 // Player only.
27495 ZoomFOV float32 // in degrees. Player only.
27496 UseTextureAlpha bool
27497 DmgTextureMod Texture // suffix
27500 NametagBG color.NRGBA
27501 }))(obj)).Textures {
27502 if err := pcall(func() {
27504 MaxHP uint16 // Player only.
27505 CollideWithNodes bool
27506 Weight float32 // deprecated
27510 VisualSize [3]float32
27512 SpriteSheetSize [2]int16 // in sprites.
27513 SpritePos [2]int16 // in sprite sheet.
27515 MakeFootstepSnds bool
27516 RotateSpeed float32 // in radians per second.
27518 Colors []color.NRGBA
27519 CollideWithAOs bool
27522 FaceRotateDirOff float32 // in degrees.
27525 NametagColor color.NRGBA
27526 FaceRotateSpeed float32 // in degrees per second.
27530 MaxBreath uint16 // Player only.
27531 EyeHeight float32 // Player only.
27532 ZoomFOV float32 // in degrees. Player only.
27533 UseTextureAlpha bool
27534 DmgTextureMod Texture // suffix
27537 NametagBG color.NRGBA
27538 }))(obj)).Textures)[local335]).serialize(w)
27543 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
27546 for local336 := range (*(*(struct {
27547 MaxHP uint16 // Player only.
27548 CollideWithNodes bool
27549 Weight float32 // deprecated
27553 VisualSize [3]float32
27555 SpriteSheetSize [2]int16 // in sprites.
27556 SpritePos [2]int16 // in sprite sheet.
27558 MakeFootstepSnds bool
27559 RotateSpeed float32 // in radians per second.
27561 Colors []color.NRGBA
27562 CollideWithAOs bool
27565 FaceRotateDirOff float32 // in degrees.
27568 NametagColor color.NRGBA
27569 FaceRotateSpeed float32 // in degrees per second.
27573 MaxBreath uint16 // Player only.
27574 EyeHeight float32 // Player only.
27575 ZoomFOV float32 // in degrees. Player only.
27576 UseTextureAlpha bool
27577 DmgTextureMod Texture // suffix
27580 NametagBG color.NRGBA
27581 }))(obj)).SpriteSheetSize {
27583 x := ((*(*(struct {
27584 MaxHP uint16 // Player only.
27585 CollideWithNodes bool
27586 Weight float32 // deprecated
27590 VisualSize [3]float32
27592 SpriteSheetSize [2]int16 // in sprites.
27593 SpritePos [2]int16 // in sprite sheet.
27595 MakeFootstepSnds bool
27596 RotateSpeed float32 // in radians per second.
27598 Colors []color.NRGBA
27599 CollideWithAOs bool
27602 FaceRotateDirOff float32 // in degrees.
27605 NametagColor color.NRGBA
27606 FaceRotateSpeed float32 // in degrees per second.
27610 MaxBreath uint16 // Player only.
27611 EyeHeight float32 // Player only.
27612 ZoomFOV float32 // in degrees. Player only.
27613 UseTextureAlpha bool
27614 DmgTextureMod Texture // suffix
27617 NametagBG color.NRGBA
27618 }))(obj)).SpriteSheetSize)[local336]
27619 write16(w, uint16(x))
27622 for local337 := range (*(*(struct {
27623 MaxHP uint16 // Player only.
27624 CollideWithNodes bool
27625 Weight float32 // deprecated
27629 VisualSize [3]float32
27631 SpriteSheetSize [2]int16 // in sprites.
27632 SpritePos [2]int16 // in sprite sheet.
27634 MakeFootstepSnds bool
27635 RotateSpeed float32 // in radians per second.
27637 Colors []color.NRGBA
27638 CollideWithAOs bool
27641 FaceRotateDirOff float32 // in degrees.
27644 NametagColor color.NRGBA
27645 FaceRotateSpeed float32 // in degrees per second.
27649 MaxBreath uint16 // Player only.
27650 EyeHeight float32 // Player only.
27651 ZoomFOV float32 // in degrees. Player only.
27652 UseTextureAlpha bool
27653 DmgTextureMod Texture // suffix
27656 NametagBG color.NRGBA
27657 }))(obj)).SpritePos {
27659 x := ((*(*(struct {
27660 MaxHP uint16 // Player only.
27661 CollideWithNodes bool
27662 Weight float32 // deprecated
27666 VisualSize [3]float32
27668 SpriteSheetSize [2]int16 // in sprites.
27669 SpritePos [2]int16 // in sprite sheet.
27671 MakeFootstepSnds bool
27672 RotateSpeed float32 // in radians per second.
27674 Colors []color.NRGBA
27675 CollideWithAOs bool
27678 FaceRotateDirOff float32 // in degrees.
27681 NametagColor color.NRGBA
27682 FaceRotateSpeed float32 // in degrees per second.
27686 MaxBreath uint16 // Player only.
27687 EyeHeight float32 // Player only.
27688 ZoomFOV float32 // in degrees. Player only.
27689 UseTextureAlpha bool
27690 DmgTextureMod Texture // suffix
27693 NametagBG color.NRGBA
27694 }))(obj)).SpritePos)[local337]
27695 write16(w, uint16(x))
27700 MaxHP uint16 // Player only.
27701 CollideWithNodes bool
27702 Weight float32 // deprecated
27706 VisualSize [3]float32
27708 SpriteSheetSize [2]int16 // in sprites.
27709 SpritePos [2]int16 // in sprite sheet.
27711 MakeFootstepSnds bool
27712 RotateSpeed float32 // in radians per second.
27714 Colors []color.NRGBA
27715 CollideWithAOs bool
27718 FaceRotateDirOff float32 // in degrees.
27721 NametagColor color.NRGBA
27722 FaceRotateSpeed float32 // in degrees per second.
27726 MaxBreath uint16 // Player only.
27727 EyeHeight float32 // Player only.
27728 ZoomFOV float32 // in degrees. Player only.
27729 UseTextureAlpha bool
27730 DmgTextureMod Texture // suffix
27733 NametagBG color.NRGBA
27744 MaxHP uint16 // Player only.
27745 CollideWithNodes bool
27746 Weight float32 // deprecated
27750 VisualSize [3]float32
27752 SpriteSheetSize [2]int16 // in sprites.
27753 SpritePos [2]int16 // in sprite sheet.
27755 MakeFootstepSnds bool
27756 RotateSpeed float32 // in radians per second.
27758 Colors []color.NRGBA
27759 CollideWithAOs bool
27762 FaceRotateDirOff float32 // in degrees.
27765 NametagColor color.NRGBA
27766 FaceRotateSpeed float32 // in degrees per second.
27770 MaxBreath uint16 // Player only.
27771 EyeHeight float32 // Player only.
27772 ZoomFOV float32 // in degrees. Player only.
27773 UseTextureAlpha bool
27774 DmgTextureMod Texture // suffix
27777 NametagBG color.NRGBA
27778 }))(obj)).MakeFootstepSnds
27788 MaxHP uint16 // Player only.
27789 CollideWithNodes bool
27790 Weight float32 // deprecated
27794 VisualSize [3]float32
27796 SpriteSheetSize [2]int16 // in sprites.
27797 SpritePos [2]int16 // in sprite sheet.
27799 MakeFootstepSnds bool
27800 RotateSpeed float32 // in radians per second.
27802 Colors []color.NRGBA
27803 CollideWithAOs bool
27806 FaceRotateDirOff float32 // in degrees.
27809 NametagColor color.NRGBA
27810 FaceRotateSpeed float32 // in degrees per second.
27814 MaxBreath uint16 // Player only.
27815 EyeHeight float32 // Player only.
27816 ZoomFOV float32 // in degrees. Player only.
27817 UseTextureAlpha bool
27818 DmgTextureMod Texture // suffix
27821 NametagBG color.NRGBA
27822 }))(obj)).RotateSpeed
27823 write32(w, math.Float32bits(x))
27825 if len(([]byte((*(*(struct {
27826 MaxHP uint16 // Player only.
27827 CollideWithNodes bool
27828 Weight float32 // deprecated
27832 VisualSize [3]float32
27834 SpriteSheetSize [2]int16 // in sprites.
27835 SpritePos [2]int16 // in sprite sheet.
27837 MakeFootstepSnds bool
27838 RotateSpeed float32 // in radians per second.
27840 Colors []color.NRGBA
27841 CollideWithAOs bool
27844 FaceRotateDirOff float32 // in degrees.
27847 NametagColor color.NRGBA
27848 FaceRotateSpeed float32 // in degrees per second.
27852 MaxBreath uint16 // Player only.
27853 EyeHeight float32 // Player only.
27854 ZoomFOV float32 // in degrees. Player only.
27855 UseTextureAlpha bool
27856 DmgTextureMod Texture // suffix
27859 NametagBG color.NRGBA
27860 }))(obj)).Mesh))) > math.MaxUint16 {
27864 x := uint16(len(([]byte((*(*(struct {
27865 MaxHP uint16 // Player only.
27866 CollideWithNodes bool
27867 Weight float32 // deprecated
27871 VisualSize [3]float32
27873 SpriteSheetSize [2]int16 // in sprites.
27874 SpritePos [2]int16 // in sprite sheet.
27876 MakeFootstepSnds bool
27877 RotateSpeed float32 // in radians per second.
27879 Colors []color.NRGBA
27880 CollideWithAOs bool
27883 FaceRotateDirOff float32 // in degrees.
27886 NametagColor color.NRGBA
27887 FaceRotateSpeed float32 // in degrees per second.
27891 MaxBreath uint16 // Player only.
27892 EyeHeight float32 // Player only.
27893 ZoomFOV float32 // in degrees. Player only.
27894 UseTextureAlpha bool
27895 DmgTextureMod Texture // suffix
27898 NametagBG color.NRGBA
27900 write16(w, uint16(x))
27903 _, err := w.Write(([]byte((*(*(struct {
27904 MaxHP uint16 // Player only.
27905 CollideWithNodes bool
27906 Weight float32 // deprecated
27910 VisualSize [3]float32
27912 SpriteSheetSize [2]int16 // in sprites.
27913 SpritePos [2]int16 // in sprite sheet.
27915 MakeFootstepSnds bool
27916 RotateSpeed float32 // in radians per second.
27918 Colors []color.NRGBA
27919 CollideWithAOs bool
27922 FaceRotateDirOff float32 // in degrees.
27925 NametagColor color.NRGBA
27926 FaceRotateSpeed float32 // in degrees per second.
27930 MaxBreath uint16 // Player only.
27931 EyeHeight float32 // Player only.
27932 ZoomFOV float32 // in degrees. Player only.
27933 UseTextureAlpha bool
27934 DmgTextureMod Texture // suffix
27937 NametagBG color.NRGBA
27938 }))(obj)).Mesh))[:])
27941 if len(((*(*(struct {
27942 MaxHP uint16 // Player only.
27943 CollideWithNodes bool
27944 Weight float32 // deprecated
27948 VisualSize [3]float32
27950 SpriteSheetSize [2]int16 // in sprites.
27951 SpritePos [2]int16 // in sprite sheet.
27953 MakeFootstepSnds bool
27954 RotateSpeed float32 // in radians per second.
27956 Colors []color.NRGBA
27957 CollideWithAOs bool
27960 FaceRotateDirOff float32 // in degrees.
27963 NametagColor color.NRGBA
27964 FaceRotateSpeed float32 // in degrees per second.
27968 MaxBreath uint16 // Player only.
27969 EyeHeight float32 // Player only.
27970 ZoomFOV float32 // in degrees. Player only.
27971 UseTextureAlpha bool
27972 DmgTextureMod Texture // suffix
27975 NametagBG color.NRGBA
27976 }))(obj)).Colors)) > math.MaxUint16 {
27980 x := uint16(len(((*(*(struct {
27981 MaxHP uint16 // Player only.
27982 CollideWithNodes bool
27983 Weight float32 // deprecated
27987 VisualSize [3]float32
27989 SpriteSheetSize [2]int16 // in sprites.
27990 SpritePos [2]int16 // in sprite sheet.
27992 MakeFootstepSnds bool
27993 RotateSpeed float32 // in radians per second.
27995 Colors []color.NRGBA
27996 CollideWithAOs bool
27999 FaceRotateDirOff float32 // in degrees.
28002 NametagColor color.NRGBA
28003 FaceRotateSpeed float32 // in degrees per second.
28007 MaxBreath uint16 // Player only.
28008 EyeHeight float32 // Player only.
28009 ZoomFOV float32 // in degrees. Player only.
28010 UseTextureAlpha bool
28011 DmgTextureMod Texture // suffix
28014 NametagBG color.NRGBA
28015 }))(obj)).Colors)))
28016 write16(w, uint16(x))
28018 for local338 := range (*(*(struct {
28019 MaxHP uint16 // Player only.
28020 CollideWithNodes bool
28021 Weight float32 // deprecated
28025 VisualSize [3]float32
28027 SpriteSheetSize [2]int16 // in sprites.
28028 SpritePos [2]int16 // in sprite sheet.
28030 MakeFootstepSnds bool
28031 RotateSpeed float32 // in radians per second.
28033 Colors []color.NRGBA
28034 CollideWithAOs bool
28037 FaceRotateDirOff float32 // in degrees.
28040 NametagColor color.NRGBA
28041 FaceRotateSpeed float32 // in degrees per second.
28045 MaxBreath uint16 // Player only.
28046 EyeHeight float32 // Player only.
28047 ZoomFOV float32 // in degrees. Player only.
28048 UseTextureAlpha bool
28049 DmgTextureMod Texture // suffix
28052 NametagBG color.NRGBA
28055 x := ((*(*(struct {
28056 MaxHP uint16 // Player only.
28057 CollideWithNodes bool
28058 Weight float32 // deprecated
28062 VisualSize [3]float32
28064 SpriteSheetSize [2]int16 // in sprites.
28065 SpritePos [2]int16 // in sprite sheet.
28067 MakeFootstepSnds bool
28068 RotateSpeed float32 // in radians per second.
28070 Colors []color.NRGBA
28071 CollideWithAOs bool
28074 FaceRotateDirOff float32 // in degrees.
28077 NametagColor color.NRGBA
28078 FaceRotateSpeed float32 // in degrees per second.
28082 MaxBreath uint16 // Player only.
28083 EyeHeight float32 // Player only.
28084 ZoomFOV float32 // in degrees. Player only.
28085 UseTextureAlpha bool
28086 DmgTextureMod Texture // suffix
28089 NametagBG color.NRGBA
28090 }))(obj)).Colors)[local338]
28091 w.Write([]byte{x.A, x.R, x.G, x.B})
28097 MaxHP uint16 // Player only.
28098 CollideWithNodes bool
28099 Weight float32 // deprecated
28103 VisualSize [3]float32
28105 SpriteSheetSize [2]int16 // in sprites.
28106 SpritePos [2]int16 // in sprite sheet.
28108 MakeFootstepSnds bool
28109 RotateSpeed float32 // in radians per second.
28111 Colors []color.NRGBA
28112 CollideWithAOs bool
28115 FaceRotateDirOff float32 // in degrees.
28118 NametagColor color.NRGBA
28119 FaceRotateSpeed float32 // in degrees per second.
28123 MaxBreath uint16 // Player only.
28124 EyeHeight float32 // Player only.
28125 ZoomFOV float32 // in degrees. Player only.
28126 UseTextureAlpha bool
28127 DmgTextureMod Texture // suffix
28130 NametagBG color.NRGBA
28131 }))(obj)).CollideWithAOs
28141 MaxHP uint16 // Player only.
28142 CollideWithNodes bool
28143 Weight float32 // deprecated
28147 VisualSize [3]float32
28149 SpriteSheetSize [2]int16 // in sprites.
28150 SpritePos [2]int16 // in sprite sheet.
28152 MakeFootstepSnds bool
28153 RotateSpeed float32 // in radians per second.
28155 Colors []color.NRGBA
28156 CollideWithAOs bool
28159 FaceRotateDirOff float32 // in degrees.
28162 NametagColor color.NRGBA
28163 FaceRotateSpeed float32 // in degrees per second.
28167 MaxBreath uint16 // Player only.
28168 EyeHeight float32 // Player only.
28169 ZoomFOV float32 // in degrees. Player only.
28170 UseTextureAlpha bool
28171 DmgTextureMod Texture // suffix
28174 NametagBG color.NRGBA
28175 }))(obj)).StepHeight
28176 write32(w, math.Float32bits(x))
28180 MaxHP uint16 // Player only.
28181 CollideWithNodes bool
28182 Weight float32 // deprecated
28186 VisualSize [3]float32
28188 SpriteSheetSize [2]int16 // in sprites.
28189 SpritePos [2]int16 // in sprite sheet.
28191 MakeFootstepSnds bool
28192 RotateSpeed float32 // in radians per second.
28194 Colors []color.NRGBA
28195 CollideWithAOs bool
28198 FaceRotateDirOff float32 // in degrees.
28201 NametagColor color.NRGBA
28202 FaceRotateSpeed float32 // in degrees per second.
28206 MaxBreath uint16 // Player only.
28207 EyeHeight float32 // Player only.
28208 ZoomFOV float32 // in degrees. Player only.
28209 UseTextureAlpha bool
28210 DmgTextureMod Texture // suffix
28213 NametagBG color.NRGBA
28214 }))(obj)).FaceRotateDir
28224 MaxHP uint16 // Player only.
28225 CollideWithNodes bool
28226 Weight float32 // deprecated
28230 VisualSize [3]float32
28232 SpriteSheetSize [2]int16 // in sprites.
28233 SpritePos [2]int16 // in sprite sheet.
28235 MakeFootstepSnds bool
28236 RotateSpeed float32 // in radians per second.
28238 Colors []color.NRGBA
28239 CollideWithAOs bool
28242 FaceRotateDirOff float32 // in degrees.
28245 NametagColor color.NRGBA
28246 FaceRotateSpeed float32 // in degrees per second.
28250 MaxBreath uint16 // Player only.
28251 EyeHeight float32 // Player only.
28252 ZoomFOV float32 // in degrees. Player only.
28253 UseTextureAlpha bool
28254 DmgTextureMod Texture // suffix
28257 NametagBG color.NRGBA
28258 }))(obj)).FaceRotateDirOff
28259 write32(w, math.Float32bits(x))
28263 MaxHP uint16 // Player only.
28264 CollideWithNodes bool
28265 Weight float32 // deprecated
28269 VisualSize [3]float32
28271 SpriteSheetSize [2]int16 // in sprites.
28272 SpritePos [2]int16 // in sprite sheet.
28274 MakeFootstepSnds bool
28275 RotateSpeed float32 // in radians per second.
28277 Colors []color.NRGBA
28278 CollideWithAOs bool
28281 FaceRotateDirOff float32 // in degrees.
28284 NametagColor color.NRGBA
28285 FaceRotateSpeed float32 // in degrees per second.
28289 MaxBreath uint16 // Player only.
28290 EyeHeight float32 // Player only.
28291 ZoomFOV float32 // in degrees. Player only.
28292 UseTextureAlpha bool
28293 DmgTextureMod Texture // suffix
28296 NametagBG color.NRGBA
28297 }))(obj)).BackfaceCull
28305 if len(([]byte((*(*(struct {
28306 MaxHP uint16 // Player only.
28307 CollideWithNodes bool
28308 Weight float32 // deprecated
28312 VisualSize [3]float32
28314 SpriteSheetSize [2]int16 // in sprites.
28315 SpritePos [2]int16 // in sprite sheet.
28317 MakeFootstepSnds bool
28318 RotateSpeed float32 // in radians per second.
28320 Colors []color.NRGBA
28321 CollideWithAOs bool
28324 FaceRotateDirOff float32 // in degrees.
28327 NametagColor color.NRGBA
28328 FaceRotateSpeed float32 // in degrees per second.
28332 MaxBreath uint16 // Player only.
28333 EyeHeight float32 // Player only.
28334 ZoomFOV float32 // in degrees. Player only.
28335 UseTextureAlpha bool
28336 DmgTextureMod Texture // suffix
28339 NametagBG color.NRGBA
28340 }))(obj)).Nametag))) > math.MaxUint16 {
28344 x := uint16(len(([]byte((*(*(struct {
28345 MaxHP uint16 // Player only.
28346 CollideWithNodes bool
28347 Weight float32 // deprecated
28351 VisualSize [3]float32
28353 SpriteSheetSize [2]int16 // in sprites.
28354 SpritePos [2]int16 // in sprite sheet.
28356 MakeFootstepSnds bool
28357 RotateSpeed float32 // in radians per second.
28359 Colors []color.NRGBA
28360 CollideWithAOs bool
28363 FaceRotateDirOff float32 // in degrees.
28366 NametagColor color.NRGBA
28367 FaceRotateSpeed float32 // in degrees per second.
28371 MaxBreath uint16 // Player only.
28372 EyeHeight float32 // Player only.
28373 ZoomFOV float32 // in degrees. Player only.
28374 UseTextureAlpha bool
28375 DmgTextureMod Texture // suffix
28378 NametagBG color.NRGBA
28379 }))(obj)).Nametag))))
28380 write16(w, uint16(x))
28383 _, err := w.Write(([]byte((*(*(struct {
28384 MaxHP uint16 // Player only.
28385 CollideWithNodes bool
28386 Weight float32 // deprecated
28390 VisualSize [3]float32
28392 SpriteSheetSize [2]int16 // in sprites.
28393 SpritePos [2]int16 // in sprite sheet.
28395 MakeFootstepSnds bool
28396 RotateSpeed float32 // in radians per second.
28398 Colors []color.NRGBA
28399 CollideWithAOs bool
28402 FaceRotateDirOff float32 // in degrees.
28405 NametagColor color.NRGBA
28406 FaceRotateSpeed float32 // in degrees per second.
28410 MaxBreath uint16 // Player only.
28411 EyeHeight float32 // Player only.
28412 ZoomFOV float32 // in degrees. Player only.
28413 UseTextureAlpha bool
28414 DmgTextureMod Texture // suffix
28417 NametagBG color.NRGBA
28418 }))(obj)).Nametag))[:])
28423 MaxHP uint16 // Player only.
28424 CollideWithNodes bool
28425 Weight float32 // deprecated
28429 VisualSize [3]float32
28431 SpriteSheetSize [2]int16 // in sprites.
28432 SpritePos [2]int16 // in sprite sheet.
28434 MakeFootstepSnds bool
28435 RotateSpeed float32 // in radians per second.
28437 Colors []color.NRGBA
28438 CollideWithAOs bool
28441 FaceRotateDirOff float32 // in degrees.
28444 NametagColor color.NRGBA
28445 FaceRotateSpeed float32 // in degrees per second.
28449 MaxBreath uint16 // Player only.
28450 EyeHeight float32 // Player only.
28451 ZoomFOV float32 // in degrees. Player only.
28452 UseTextureAlpha bool
28453 DmgTextureMod Texture // suffix
28456 NametagBG color.NRGBA
28457 }))(obj)).NametagColor
28458 w.Write([]byte{x.A, x.R, x.G, x.B})
28463 MaxHP uint16 // Player only.
28464 CollideWithNodes bool
28465 Weight float32 // deprecated
28469 VisualSize [3]float32
28471 SpriteSheetSize [2]int16 // in sprites.
28472 SpritePos [2]int16 // in sprite sheet.
28474 MakeFootstepSnds bool
28475 RotateSpeed float32 // in radians per second.
28477 Colors []color.NRGBA
28478 CollideWithAOs bool
28481 FaceRotateDirOff float32 // in degrees.
28484 NametagColor color.NRGBA
28485 FaceRotateSpeed float32 // in degrees per second.
28489 MaxBreath uint16 // Player only.
28490 EyeHeight float32 // Player only.
28491 ZoomFOV float32 // in degrees. Player only.
28492 UseTextureAlpha bool
28493 DmgTextureMod Texture // suffix
28496 NametagBG color.NRGBA
28497 }))(obj)).FaceRotateSpeed
28498 write32(w, math.Float32bits(x))
28500 if len(([]byte((*(*(struct {
28501 MaxHP uint16 // Player only.
28502 CollideWithNodes bool
28503 Weight float32 // deprecated
28507 VisualSize [3]float32
28509 SpriteSheetSize [2]int16 // in sprites.
28510 SpritePos [2]int16 // in sprite sheet.
28512 MakeFootstepSnds bool
28513 RotateSpeed float32 // in radians per second.
28515 Colors []color.NRGBA
28516 CollideWithAOs bool
28519 FaceRotateDirOff float32 // in degrees.
28522 NametagColor color.NRGBA
28523 FaceRotateSpeed float32 // in degrees per second.
28527 MaxBreath uint16 // Player only.
28528 EyeHeight float32 // Player only.
28529 ZoomFOV float32 // in degrees. Player only.
28530 UseTextureAlpha bool
28531 DmgTextureMod Texture // suffix
28534 NametagBG color.NRGBA
28535 }))(obj)).Infotext))) > math.MaxUint16 {
28539 x := uint16(len(([]byte((*(*(struct {
28540 MaxHP uint16 // Player only.
28541 CollideWithNodes bool
28542 Weight float32 // deprecated
28546 VisualSize [3]float32
28548 SpriteSheetSize [2]int16 // in sprites.
28549 SpritePos [2]int16 // in sprite sheet.
28551 MakeFootstepSnds bool
28552 RotateSpeed float32 // in radians per second.
28554 Colors []color.NRGBA
28555 CollideWithAOs bool
28558 FaceRotateDirOff float32 // in degrees.
28561 NametagColor color.NRGBA
28562 FaceRotateSpeed float32 // in degrees per second.
28566 MaxBreath uint16 // Player only.
28567 EyeHeight float32 // Player only.
28568 ZoomFOV float32 // in degrees. Player only.
28569 UseTextureAlpha bool
28570 DmgTextureMod Texture // suffix
28573 NametagBG color.NRGBA
28574 }))(obj)).Infotext))))
28575 write16(w, uint16(x))
28578 _, err := w.Write(([]byte((*(*(struct {
28579 MaxHP uint16 // Player only.
28580 CollideWithNodes bool
28581 Weight float32 // deprecated
28585 VisualSize [3]float32
28587 SpriteSheetSize [2]int16 // in sprites.
28588 SpritePos [2]int16 // in sprite sheet.
28590 MakeFootstepSnds bool
28591 RotateSpeed float32 // in radians per second.
28593 Colors []color.NRGBA
28594 CollideWithAOs bool
28597 FaceRotateDirOff float32 // in degrees.
28600 NametagColor color.NRGBA
28601 FaceRotateSpeed float32 // in degrees per second.
28605 MaxBreath uint16 // Player only.
28606 EyeHeight float32 // Player only.
28607 ZoomFOV float32 // in degrees. Player only.
28608 UseTextureAlpha bool
28609 DmgTextureMod Texture // suffix
28612 NametagBG color.NRGBA
28613 }))(obj)).Infotext))[:])
28616 if len(([]byte((*(*(struct {
28617 MaxHP uint16 // Player only.
28618 CollideWithNodes bool
28619 Weight float32 // deprecated
28623 VisualSize [3]float32
28625 SpriteSheetSize [2]int16 // in sprites.
28626 SpritePos [2]int16 // in sprite sheet.
28628 MakeFootstepSnds bool
28629 RotateSpeed float32 // in radians per second.
28631 Colors []color.NRGBA
28632 CollideWithAOs bool
28635 FaceRotateDirOff float32 // in degrees.
28638 NametagColor color.NRGBA
28639 FaceRotateSpeed float32 // in degrees per second.
28643 MaxBreath uint16 // Player only.
28644 EyeHeight float32 // Player only.
28645 ZoomFOV float32 // in degrees. Player only.
28646 UseTextureAlpha bool
28647 DmgTextureMod Texture // suffix
28650 NametagBG color.NRGBA
28651 }))(obj)).Itemstring))) > math.MaxUint16 {
28655 x := uint16(len(([]byte((*(*(struct {
28656 MaxHP uint16 // Player only.
28657 CollideWithNodes bool
28658 Weight float32 // deprecated
28662 VisualSize [3]float32
28664 SpriteSheetSize [2]int16 // in sprites.
28665 SpritePos [2]int16 // in sprite sheet.
28667 MakeFootstepSnds bool
28668 RotateSpeed float32 // in radians per second.
28670 Colors []color.NRGBA
28671 CollideWithAOs bool
28674 FaceRotateDirOff float32 // in degrees.
28677 NametagColor color.NRGBA
28678 FaceRotateSpeed float32 // in degrees per second.
28682 MaxBreath uint16 // Player only.
28683 EyeHeight float32 // Player only.
28684 ZoomFOV float32 // in degrees. Player only.
28685 UseTextureAlpha bool
28686 DmgTextureMod Texture // suffix
28689 NametagBG color.NRGBA
28690 }))(obj)).Itemstring))))
28691 write16(w, uint16(x))
28694 _, err := w.Write(([]byte((*(*(struct {
28695 MaxHP uint16 // Player only.
28696 CollideWithNodes bool
28697 Weight float32 // deprecated
28701 VisualSize [3]float32
28703 SpriteSheetSize [2]int16 // in sprites.
28704 SpritePos [2]int16 // in sprite sheet.
28706 MakeFootstepSnds bool
28707 RotateSpeed float32 // in radians per second.
28709 Colors []color.NRGBA
28710 CollideWithAOs bool
28713 FaceRotateDirOff float32 // in degrees.
28716 NametagColor color.NRGBA
28717 FaceRotateSpeed float32 // in degrees per second.
28721 MaxBreath uint16 // Player only.
28722 EyeHeight float32 // Player only.
28723 ZoomFOV float32 // in degrees. Player only.
28724 UseTextureAlpha bool
28725 DmgTextureMod Texture // suffix
28728 NametagBG color.NRGBA
28729 }))(obj)).Itemstring))[:])
28734 MaxHP uint16 // Player only.
28735 CollideWithNodes bool
28736 Weight float32 // deprecated
28740 VisualSize [3]float32
28742 SpriteSheetSize [2]int16 // in sprites.
28743 SpritePos [2]int16 // in sprite sheet.
28745 MakeFootstepSnds bool
28746 RotateSpeed float32 // in radians per second.
28748 Colors []color.NRGBA
28749 CollideWithAOs bool
28752 FaceRotateDirOff float32 // in degrees.
28755 NametagColor color.NRGBA
28756 FaceRotateSpeed float32 // in degrees per second.
28760 MaxBreath uint16 // Player only.
28761 EyeHeight float32 // Player only.
28762 ZoomFOV float32 // in degrees. Player only.
28763 UseTextureAlpha bool
28764 DmgTextureMod Texture // suffix
28767 NametagBG color.NRGBA
28769 write8(w, uint8(x))
28773 MaxHP uint16 // Player only.
28774 CollideWithNodes bool
28775 Weight float32 // deprecated
28779 VisualSize [3]float32
28781 SpriteSheetSize [2]int16 // in sprites.
28782 SpritePos [2]int16 // in sprite sheet.
28784 MakeFootstepSnds bool
28785 RotateSpeed float32 // in radians per second.
28787 Colors []color.NRGBA
28788 CollideWithAOs bool
28791 FaceRotateDirOff float32 // in degrees.
28794 NametagColor color.NRGBA
28795 FaceRotateSpeed float32 // in degrees per second.
28799 MaxBreath uint16 // Player only.
28800 EyeHeight float32 // Player only.
28801 ZoomFOV float32 // in degrees. Player only.
28802 UseTextureAlpha bool
28803 DmgTextureMod Texture // suffix
28806 NametagBG color.NRGBA
28807 }))(obj)).MaxBreath
28808 write16(w, uint16(x))
28812 MaxHP uint16 // Player only.
28813 CollideWithNodes bool
28814 Weight float32 // deprecated
28818 VisualSize [3]float32
28820 SpriteSheetSize [2]int16 // in sprites.
28821 SpritePos [2]int16 // in sprite sheet.
28823 MakeFootstepSnds bool
28824 RotateSpeed float32 // in radians per second.
28826 Colors []color.NRGBA
28827 CollideWithAOs bool
28830 FaceRotateDirOff float32 // in degrees.
28833 NametagColor color.NRGBA
28834 FaceRotateSpeed float32 // in degrees per second.
28838 MaxBreath uint16 // Player only.
28839 EyeHeight float32 // Player only.
28840 ZoomFOV float32 // in degrees. Player only.
28841 UseTextureAlpha bool
28842 DmgTextureMod Texture // suffix
28845 NametagBG color.NRGBA
28846 }))(obj)).EyeHeight
28847 write32(w, math.Float32bits(x))
28851 MaxHP uint16 // Player only.
28852 CollideWithNodes bool
28853 Weight float32 // deprecated
28857 VisualSize [3]float32
28859 SpriteSheetSize [2]int16 // in sprites.
28860 SpritePos [2]int16 // in sprite sheet.
28862 MakeFootstepSnds bool
28863 RotateSpeed float32 // in radians per second.
28865 Colors []color.NRGBA
28866 CollideWithAOs bool
28869 FaceRotateDirOff float32 // in degrees.
28872 NametagColor color.NRGBA
28873 FaceRotateSpeed float32 // in degrees per second.
28877 MaxBreath uint16 // Player only.
28878 EyeHeight float32 // Player only.
28879 ZoomFOV float32 // in degrees. Player only.
28880 UseTextureAlpha bool
28881 DmgTextureMod Texture // suffix
28884 NametagBG color.NRGBA
28886 write32(w, math.Float32bits(x))
28890 MaxHP uint16 // Player only.
28891 CollideWithNodes bool
28892 Weight float32 // deprecated
28896 VisualSize [3]float32
28898 SpriteSheetSize [2]int16 // in sprites.
28899 SpritePos [2]int16 // in sprite sheet.
28901 MakeFootstepSnds bool
28902 RotateSpeed float32 // in radians per second.
28904 Colors []color.NRGBA
28905 CollideWithAOs bool
28908 FaceRotateDirOff float32 // in degrees.
28911 NametagColor color.NRGBA
28912 FaceRotateSpeed float32 // in degrees per second.
28916 MaxBreath uint16 // Player only.
28917 EyeHeight float32 // Player only.
28918 ZoomFOV float32 // in degrees. Player only.
28919 UseTextureAlpha bool
28920 DmgTextureMod Texture // suffix
28923 NametagBG color.NRGBA
28924 }))(obj)).UseTextureAlpha
28932 if err := pcall(func() {
28934 MaxHP uint16 // Player only.
28935 CollideWithNodes bool
28936 Weight float32 // deprecated
28940 VisualSize [3]float32
28942 SpriteSheetSize [2]int16 // in sprites.
28943 SpritePos [2]int16 // in sprite sheet.
28945 MakeFootstepSnds bool
28946 RotateSpeed float32 // in radians per second.
28948 Colors []color.NRGBA
28949 CollideWithAOs bool
28952 FaceRotateDirOff float32 // in degrees.
28955 NametagColor color.NRGBA
28956 FaceRotateSpeed float32 // in degrees per second.
28960 MaxBreath uint16 // Player only.
28961 EyeHeight float32 // Player only.
28962 ZoomFOV float32 // in degrees. Player only.
28963 UseTextureAlpha bool
28964 DmgTextureMod Texture // suffix
28967 NametagBG color.NRGBA
28968 }))(obj)).DmgTextureMod).serialize(w)
28973 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
28977 MaxHP uint16 // Player only.
28978 CollideWithNodes bool
28979 Weight float32 // deprecated
28983 VisualSize [3]float32
28985 SpriteSheetSize [2]int16 // in sprites.
28986 SpritePos [2]int16 // in sprite sheet.
28988 MakeFootstepSnds bool
28989 RotateSpeed float32 // in radians per second.
28991 Colors []color.NRGBA
28992 CollideWithAOs bool
28995 FaceRotateDirOff float32 // in degrees.
28998 NametagColor color.NRGBA
28999 FaceRotateSpeed float32 // in degrees per second.
29003 MaxBreath uint16 // Player only.
29004 EyeHeight float32 // Player only.
29005 ZoomFOV float32 // in degrees. Player only.
29006 UseTextureAlpha bool
29007 DmgTextureMod Texture // suffix
29010 NametagBG color.NRGBA
29021 MaxHP uint16 // Player only.
29022 CollideWithNodes bool
29023 Weight float32 // deprecated
29027 VisualSize [3]float32
29029 SpriteSheetSize [2]int16 // in sprites.
29030 SpritePos [2]int16 // in sprite sheet.
29032 MakeFootstepSnds bool
29033 RotateSpeed float32 // in radians per second.
29035 Colors []color.NRGBA
29036 CollideWithAOs bool
29039 FaceRotateDirOff float32 // in degrees.
29042 NametagColor color.NRGBA
29043 FaceRotateSpeed float32 // in degrees per second.
29047 MaxBreath uint16 // Player only.
29048 EyeHeight float32 // Player only.
29049 ZoomFOV float32 // in degrees. Player only.
29050 UseTextureAlpha bool
29051 DmgTextureMod Texture // suffix
29054 NametagBG color.NRGBA
29055 }))(obj)).ShowOnMinimap
29065 MaxHP uint16 // Player only.
29066 CollideWithNodes bool
29067 Weight float32 // deprecated
29071 VisualSize [3]float32
29073 SpriteSheetSize [2]int16 // in sprites.
29074 SpritePos [2]int16 // in sprite sheet.
29076 MakeFootstepSnds bool
29077 RotateSpeed float32 // in radians per second.
29079 Colors []color.NRGBA
29080 CollideWithAOs bool
29083 FaceRotateDirOff float32 // in degrees.
29086 NametagColor color.NRGBA
29087 FaceRotateSpeed float32 // in degrees per second.
29091 MaxBreath uint16 // Player only.
29092 EyeHeight float32 // Player only.
29093 ZoomFOV float32 // in degrees. Player only.
29094 UseTextureAlpha bool
29095 DmgTextureMod Texture // suffix
29098 NametagBG color.NRGBA
29099 }))(obj)).NametagBG
29100 w.Write([]byte{x.A, x.R, x.G, x.B})
29105 func (obj *AOProps) deserialize(r io.Reader) {
29108 local340 := uint8(4)
29113 if local339 != local340 {
29114 chk(fmt.Errorf("const %v: %v", "uint8(4)", local339))
29118 p := &(*(*(struct {
29119 MaxHP uint16 // Player only.
29120 CollideWithNodes bool
29121 Weight float32 // deprecated
29125 VisualSize [3]float32
29127 SpriteSheetSize [2]int16 // in sprites.
29128 SpritePos [2]int16 // in sprite sheet.
29130 MakeFootstepSnds bool
29131 RotateSpeed float32 // in radians per second.
29133 Colors []color.NRGBA
29134 CollideWithAOs bool
29137 FaceRotateDirOff float32 // in degrees.
29140 NametagColor color.NRGBA
29141 FaceRotateSpeed float32 // in degrees per second.
29145 MaxBreath uint16 // Player only.
29146 EyeHeight float32 // Player only.
29147 ZoomFOV float32 // in degrees. Player only.
29148 UseTextureAlpha bool
29149 DmgTextureMod Texture // suffix
29152 NametagBG color.NRGBA
29157 p := &(*(*(struct {
29158 MaxHP uint16 // Player only.
29159 CollideWithNodes bool
29160 Weight float32 // deprecated
29164 VisualSize [3]float32
29166 SpriteSheetSize [2]int16 // in sprites.
29167 SpritePos [2]int16 // in sprite sheet.
29169 MakeFootstepSnds bool
29170 RotateSpeed float32 // in radians per second.
29172 Colors []color.NRGBA
29173 CollideWithAOs bool
29176 FaceRotateDirOff float32 // in degrees.
29179 NametagColor color.NRGBA
29180 FaceRotateSpeed float32 // in degrees per second.
29184 MaxBreath uint16 // Player only.
29185 EyeHeight float32 // Player only.
29186 ZoomFOV float32 // in degrees. Player only.
29187 UseTextureAlpha bool
29188 DmgTextureMod Texture // suffix
29191 NametagBG color.NRGBA
29192 }))(obj)).CollideWithNodes
29193 switch n := read8(r); n {
29199 chk(fmt.Errorf("invalid bool: %d", n))
29204 p := &(*(*(struct {
29205 MaxHP uint16 // Player only.
29206 CollideWithNodes bool
29207 Weight float32 // deprecated
29211 VisualSize [3]float32
29213 SpriteSheetSize [2]int16 // in sprites.
29214 SpritePos [2]int16 // in sprite sheet.
29216 MakeFootstepSnds bool
29217 RotateSpeed float32 // in radians per second.
29219 Colors []color.NRGBA
29220 CollideWithAOs bool
29223 FaceRotateDirOff float32 // in degrees.
29226 NametagColor color.NRGBA
29227 FaceRotateSpeed float32 // in degrees per second.
29231 MaxBreath uint16 // Player only.
29232 EyeHeight float32 // Player only.
29233 ZoomFOV float32 // in degrees. Player only.
29234 UseTextureAlpha bool
29235 DmgTextureMod Texture // suffix
29238 NametagBG color.NRGBA
29240 *p = math.Float32frombits(read32(r))
29242 if err := pcall(func() {
29244 MaxHP uint16 // Player only.
29245 CollideWithNodes bool
29246 Weight float32 // deprecated
29250 VisualSize [3]float32
29252 SpriteSheetSize [2]int16 // in sprites.
29253 SpritePos [2]int16 // in sprite sheet.
29255 MakeFootstepSnds bool
29256 RotateSpeed float32 // in radians per second.
29258 Colors []color.NRGBA
29259 CollideWithAOs bool
29262 FaceRotateDirOff float32 // in degrees.
29265 NametagColor color.NRGBA
29266 FaceRotateSpeed float32 // in degrees per second.
29270 MaxBreath uint16 // Player only.
29271 EyeHeight float32 // Player only.
29272 ZoomFOV float32 // in degrees. Player only.
29273 UseTextureAlpha bool
29274 DmgTextureMod Texture // suffix
29277 NametagBG color.NRGBA
29278 }))(obj)).ColBox).deserialize(r)
29283 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29285 if err := pcall(func() {
29287 MaxHP uint16 // Player only.
29288 CollideWithNodes bool
29289 Weight float32 // deprecated
29293 VisualSize [3]float32
29295 SpriteSheetSize [2]int16 // in sprites.
29296 SpritePos [2]int16 // in sprite sheet.
29298 MakeFootstepSnds bool
29299 RotateSpeed float32 // in radians per second.
29301 Colors []color.NRGBA
29302 CollideWithAOs bool
29305 FaceRotateDirOff float32 // in degrees.
29308 NametagColor color.NRGBA
29309 FaceRotateSpeed float32 // in degrees per second.
29313 MaxBreath uint16 // Player only.
29314 EyeHeight float32 // Player only.
29315 ZoomFOV float32 // in degrees. Player only.
29316 UseTextureAlpha bool
29317 DmgTextureMod Texture // suffix
29320 NametagBG color.NRGBA
29321 }))(obj)).SelBox).deserialize(r)
29326 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29329 p := &(*(*(struct {
29330 MaxHP uint16 // Player only.
29331 CollideWithNodes bool
29332 Weight float32 // deprecated
29336 VisualSize [3]float32
29338 SpriteSheetSize [2]int16 // in sprites.
29339 SpritePos [2]int16 // in sprite sheet.
29341 MakeFootstepSnds bool
29342 RotateSpeed float32 // in radians per second.
29344 Colors []color.NRGBA
29345 CollideWithAOs bool
29348 FaceRotateDirOff float32 // in degrees.
29351 NametagColor color.NRGBA
29352 FaceRotateSpeed float32 // in degrees per second.
29356 MaxBreath uint16 // Player only.
29357 EyeHeight float32 // Player only.
29358 ZoomFOV float32 // in degrees. Player only.
29359 UseTextureAlpha bool
29360 DmgTextureMod Texture // suffix
29363 NametagBG color.NRGBA
29364 }))(obj)).Pointable
29365 switch n := read8(r); n {
29371 chk(fmt.Errorf("invalid bool: %d", n))
29375 var local341 []uint8
29376 var local342 uint16
29381 (local341) = make([]uint8, local342)
29383 _, err := io.ReadFull(r, (local341)[:])
29387 MaxHP uint16 // Player only.
29388 CollideWithNodes bool
29389 Weight float32 // deprecated
29393 VisualSize [3]float32
29395 SpriteSheetSize [2]int16 // in sprites.
29396 SpritePos [2]int16 // in sprite sheet.
29398 MakeFootstepSnds bool
29399 RotateSpeed float32 // in radians per second.
29401 Colors []color.NRGBA
29402 CollideWithAOs bool
29405 FaceRotateDirOff float32 // in degrees.
29408 NametagColor color.NRGBA
29409 FaceRotateSpeed float32 // in degrees per second.
29413 MaxBreath uint16 // Player only.
29414 EyeHeight float32 // Player only.
29415 ZoomFOV float32 // in degrees. Player only.
29416 UseTextureAlpha bool
29417 DmgTextureMod Texture // suffix
29420 NametagBG color.NRGBA
29421 }))(obj)).Visual) = string(local341)
29422 for local343 := range (*(*(struct {
29423 MaxHP uint16 // Player only.
29424 CollideWithNodes bool
29425 Weight float32 // deprecated
29429 VisualSize [3]float32
29431 SpriteSheetSize [2]int16 // in sprites.
29432 SpritePos [2]int16 // in sprite sheet.
29434 MakeFootstepSnds bool
29435 RotateSpeed float32 // in radians per second.
29437 Colors []color.NRGBA
29438 CollideWithAOs bool
29441 FaceRotateDirOff float32 // in degrees.
29444 NametagColor color.NRGBA
29445 FaceRotateSpeed float32 // in degrees per second.
29449 MaxBreath uint16 // Player only.
29450 EyeHeight float32 // Player only.
29451 ZoomFOV float32 // in degrees. Player only.
29452 UseTextureAlpha bool
29453 DmgTextureMod Texture // suffix
29456 NametagBG color.NRGBA
29457 }))(obj)).VisualSize {
29459 p := &((*(*(struct {
29460 MaxHP uint16 // Player only.
29461 CollideWithNodes bool
29462 Weight float32 // deprecated
29466 VisualSize [3]float32
29468 SpriteSheetSize [2]int16 // in sprites.
29469 SpritePos [2]int16 // in sprite sheet.
29471 MakeFootstepSnds bool
29472 RotateSpeed float32 // in radians per second.
29474 Colors []color.NRGBA
29475 CollideWithAOs bool
29478 FaceRotateDirOff float32 // in degrees.
29481 NametagColor color.NRGBA
29482 FaceRotateSpeed float32 // in degrees per second.
29486 MaxBreath uint16 // Player only.
29487 EyeHeight float32 // Player only.
29488 ZoomFOV float32 // in degrees. Player only.
29489 UseTextureAlpha bool
29490 DmgTextureMod Texture // suffix
29493 NametagBG color.NRGBA
29494 }))(obj)).VisualSize)[local343]
29495 *p = math.Float32frombits(read32(r))
29498 var local344 uint16
29504 MaxHP uint16 // Player only.
29505 CollideWithNodes bool
29506 Weight float32 // deprecated
29510 VisualSize [3]float32
29512 SpriteSheetSize [2]int16 // in sprites.
29513 SpritePos [2]int16 // in sprite sheet.
29515 MakeFootstepSnds bool
29516 RotateSpeed float32 // in radians per second.
29518 Colors []color.NRGBA
29519 CollideWithAOs bool
29522 FaceRotateDirOff float32 // in degrees.
29525 NametagColor color.NRGBA
29526 FaceRotateSpeed float32 // in degrees per second.
29530 MaxBreath uint16 // Player only.
29531 EyeHeight float32 // Player only.
29532 ZoomFOV float32 // in degrees. Player only.
29533 UseTextureAlpha bool
29534 DmgTextureMod Texture // suffix
29537 NametagBG color.NRGBA
29538 }))(obj)).Textures) = make([]Texture, local344)
29539 for local345 := range (*(*(struct {
29540 MaxHP uint16 // Player only.
29541 CollideWithNodes bool
29542 Weight float32 // deprecated
29546 VisualSize [3]float32
29548 SpriteSheetSize [2]int16 // in sprites.
29549 SpritePos [2]int16 // in sprite sheet.
29551 MakeFootstepSnds bool
29552 RotateSpeed float32 // in radians per second.
29554 Colors []color.NRGBA
29555 CollideWithAOs bool
29558 FaceRotateDirOff float32 // in degrees.
29561 NametagColor color.NRGBA
29562 FaceRotateSpeed float32 // in degrees per second.
29566 MaxBreath uint16 // Player only.
29567 EyeHeight float32 // Player only.
29568 ZoomFOV float32 // in degrees. Player only.
29569 UseTextureAlpha bool
29570 DmgTextureMod Texture // suffix
29573 NametagBG color.NRGBA
29574 }))(obj)).Textures {
29575 if err := pcall(func() {
29577 MaxHP uint16 // Player only.
29578 CollideWithNodes bool
29579 Weight float32 // deprecated
29583 VisualSize [3]float32
29585 SpriteSheetSize [2]int16 // in sprites.
29586 SpritePos [2]int16 // in sprite sheet.
29588 MakeFootstepSnds bool
29589 RotateSpeed float32 // in radians per second.
29591 Colors []color.NRGBA
29592 CollideWithAOs bool
29595 FaceRotateDirOff float32 // in degrees.
29598 NametagColor color.NRGBA
29599 FaceRotateSpeed float32 // in degrees per second.
29603 MaxBreath uint16 // Player only.
29604 EyeHeight float32 // Player only.
29605 ZoomFOV float32 // in degrees. Player only.
29606 UseTextureAlpha bool
29607 DmgTextureMod Texture // suffix
29610 NametagBG color.NRGBA
29611 }))(obj)).Textures)[local345]).deserialize(r)
29616 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
29619 for local346 := range (*(*(struct {
29620 MaxHP uint16 // Player only.
29621 CollideWithNodes bool
29622 Weight float32 // deprecated
29626 VisualSize [3]float32
29628 SpriteSheetSize [2]int16 // in sprites.
29629 SpritePos [2]int16 // in sprite sheet.
29631 MakeFootstepSnds bool
29632 RotateSpeed float32 // in radians per second.
29634 Colors []color.NRGBA
29635 CollideWithAOs bool
29638 FaceRotateDirOff float32 // in degrees.
29641 NametagColor color.NRGBA
29642 FaceRotateSpeed float32 // in degrees per second.
29646 MaxBreath uint16 // Player only.
29647 EyeHeight float32 // Player only.
29648 ZoomFOV float32 // in degrees. Player only.
29649 UseTextureAlpha bool
29650 DmgTextureMod Texture // suffix
29653 NametagBG color.NRGBA
29654 }))(obj)).SpriteSheetSize {
29656 p := &((*(*(struct {
29657 MaxHP uint16 // Player only.
29658 CollideWithNodes bool
29659 Weight float32 // deprecated
29663 VisualSize [3]float32
29665 SpriteSheetSize [2]int16 // in sprites.
29666 SpritePos [2]int16 // in sprite sheet.
29668 MakeFootstepSnds bool
29669 RotateSpeed float32 // in radians per second.
29671 Colors []color.NRGBA
29672 CollideWithAOs bool
29675 FaceRotateDirOff float32 // in degrees.
29678 NametagColor color.NRGBA
29679 FaceRotateSpeed float32 // in degrees per second.
29683 MaxBreath uint16 // Player only.
29684 EyeHeight float32 // Player only.
29685 ZoomFOV float32 // in degrees. Player only.
29686 UseTextureAlpha bool
29687 DmgTextureMod Texture // suffix
29690 NametagBG color.NRGBA
29691 }))(obj)).SpriteSheetSize)[local346]
29692 *p = int16(read16(r))
29695 for local347 := range (*(*(struct {
29696 MaxHP uint16 // Player only.
29697 CollideWithNodes bool
29698 Weight float32 // deprecated
29702 VisualSize [3]float32
29704 SpriteSheetSize [2]int16 // in sprites.
29705 SpritePos [2]int16 // in sprite sheet.
29707 MakeFootstepSnds bool
29708 RotateSpeed float32 // in radians per second.
29710 Colors []color.NRGBA
29711 CollideWithAOs bool
29714 FaceRotateDirOff float32 // in degrees.
29717 NametagColor color.NRGBA
29718 FaceRotateSpeed float32 // in degrees per second.
29722 MaxBreath uint16 // Player only.
29723 EyeHeight float32 // Player only.
29724 ZoomFOV float32 // in degrees. Player only.
29725 UseTextureAlpha bool
29726 DmgTextureMod Texture // suffix
29729 NametagBG color.NRGBA
29730 }))(obj)).SpritePos {
29732 p := &((*(*(struct {
29733 MaxHP uint16 // Player only.
29734 CollideWithNodes bool
29735 Weight float32 // deprecated
29739 VisualSize [3]float32
29741 SpriteSheetSize [2]int16 // in sprites.
29742 SpritePos [2]int16 // in sprite sheet.
29744 MakeFootstepSnds bool
29745 RotateSpeed float32 // in radians per second.
29747 Colors []color.NRGBA
29748 CollideWithAOs bool
29751 FaceRotateDirOff float32 // in degrees.
29754 NametagColor color.NRGBA
29755 FaceRotateSpeed float32 // in degrees per second.
29759 MaxBreath uint16 // Player only.
29760 EyeHeight float32 // Player only.
29761 ZoomFOV float32 // in degrees. Player only.
29762 UseTextureAlpha bool
29763 DmgTextureMod Texture // suffix
29766 NametagBG color.NRGBA
29767 }))(obj)).SpritePos)[local347]
29768 *p = int16(read16(r))
29772 p := &(*(*(struct {
29773 MaxHP uint16 // Player only.
29774 CollideWithNodes bool
29775 Weight float32 // deprecated
29779 VisualSize [3]float32
29781 SpriteSheetSize [2]int16 // in sprites.
29782 SpritePos [2]int16 // in sprite sheet.
29784 MakeFootstepSnds bool
29785 RotateSpeed float32 // in radians per second.
29787 Colors []color.NRGBA
29788 CollideWithAOs bool
29791 FaceRotateDirOff float32 // in degrees.
29794 NametagColor color.NRGBA
29795 FaceRotateSpeed float32 // in degrees per second.
29799 MaxBreath uint16 // Player only.
29800 EyeHeight float32 // Player only.
29801 ZoomFOV float32 // in degrees. Player only.
29802 UseTextureAlpha bool
29803 DmgTextureMod Texture // suffix
29806 NametagBG color.NRGBA
29808 switch n := read8(r); n {
29814 chk(fmt.Errorf("invalid bool: %d", n))
29819 p := &(*(*(struct {
29820 MaxHP uint16 // Player only.
29821 CollideWithNodes bool
29822 Weight float32 // deprecated
29826 VisualSize [3]float32
29828 SpriteSheetSize [2]int16 // in sprites.
29829 SpritePos [2]int16 // in sprite sheet.
29831 MakeFootstepSnds bool
29832 RotateSpeed float32 // in radians per second.
29834 Colors []color.NRGBA
29835 CollideWithAOs bool
29838 FaceRotateDirOff float32 // in degrees.
29841 NametagColor color.NRGBA
29842 FaceRotateSpeed float32 // in degrees per second.
29846 MaxBreath uint16 // Player only.
29847 EyeHeight float32 // Player only.
29848 ZoomFOV float32 // in degrees. Player only.
29849 UseTextureAlpha bool
29850 DmgTextureMod Texture // suffix
29853 NametagBG color.NRGBA
29854 }))(obj)).MakeFootstepSnds
29855 switch n := read8(r); n {
29861 chk(fmt.Errorf("invalid bool: %d", n))
29866 p := &(*(*(struct {
29867 MaxHP uint16 // Player only.
29868 CollideWithNodes bool
29869 Weight float32 // deprecated
29873 VisualSize [3]float32
29875 SpriteSheetSize [2]int16 // in sprites.
29876 SpritePos [2]int16 // in sprite sheet.
29878 MakeFootstepSnds bool
29879 RotateSpeed float32 // in radians per second.
29881 Colors []color.NRGBA
29882 CollideWithAOs bool
29885 FaceRotateDirOff float32 // in degrees.
29888 NametagColor color.NRGBA
29889 FaceRotateSpeed float32 // in degrees per second.
29893 MaxBreath uint16 // Player only.
29894 EyeHeight float32 // Player only.
29895 ZoomFOV float32 // in degrees. Player only.
29896 UseTextureAlpha bool
29897 DmgTextureMod Texture // suffix
29900 NametagBG color.NRGBA
29901 }))(obj)).RotateSpeed
29902 *p = math.Float32frombits(read32(r))
29904 var local348 []uint8
29905 var local349 uint16
29910 (local348) = make([]uint8, local349)
29912 _, err := io.ReadFull(r, (local348)[:])
29916 MaxHP uint16 // Player only.
29917 CollideWithNodes bool
29918 Weight float32 // deprecated
29922 VisualSize [3]float32
29924 SpriteSheetSize [2]int16 // in sprites.
29925 SpritePos [2]int16 // in sprite sheet.
29927 MakeFootstepSnds bool
29928 RotateSpeed float32 // in radians per second.
29930 Colors []color.NRGBA
29931 CollideWithAOs bool
29934 FaceRotateDirOff float32 // in degrees.
29937 NametagColor color.NRGBA
29938 FaceRotateSpeed float32 // in degrees per second.
29942 MaxBreath uint16 // Player only.
29943 EyeHeight float32 // Player only.
29944 ZoomFOV float32 // in degrees. Player only.
29945 UseTextureAlpha bool
29946 DmgTextureMod Texture // suffix
29949 NametagBG color.NRGBA
29950 }))(obj)).Mesh) = string(local348)
29951 var local350 uint16
29957 MaxHP uint16 // Player only.
29958 CollideWithNodes bool
29959 Weight float32 // deprecated
29963 VisualSize [3]float32
29965 SpriteSheetSize [2]int16 // in sprites.
29966 SpritePos [2]int16 // in sprite sheet.
29968 MakeFootstepSnds bool
29969 RotateSpeed float32 // in radians per second.
29971 Colors []color.NRGBA
29972 CollideWithAOs bool
29975 FaceRotateDirOff float32 // in degrees.
29978 NametagColor color.NRGBA
29979 FaceRotateSpeed float32 // in degrees per second.
29983 MaxBreath uint16 // Player only.
29984 EyeHeight float32 // Player only.
29985 ZoomFOV float32 // in degrees. Player only.
29986 UseTextureAlpha bool
29987 DmgTextureMod Texture // suffix
29990 NametagBG color.NRGBA
29991 }))(obj)).Colors) = make([]color.NRGBA, local350)
29992 for local351 := range (*(*(struct {
29993 MaxHP uint16 // Player only.
29994 CollideWithNodes bool
29995 Weight float32 // deprecated
29999 VisualSize [3]float32
30001 SpriteSheetSize [2]int16 // in sprites.
30002 SpritePos [2]int16 // in sprite sheet.
30004 MakeFootstepSnds bool
30005 RotateSpeed float32 // in radians per second.
30007 Colors []color.NRGBA
30008 CollideWithAOs bool
30011 FaceRotateDirOff float32 // in degrees.
30014 NametagColor color.NRGBA
30015 FaceRotateSpeed float32 // in degrees per second.
30019 MaxBreath uint16 // Player only.
30020 EyeHeight float32 // Player only.
30021 ZoomFOV float32 // in degrees. Player only.
30022 UseTextureAlpha bool
30023 DmgTextureMod Texture // suffix
30026 NametagBG color.NRGBA
30029 p := &((*(*(struct {
30030 MaxHP uint16 // Player only.
30031 CollideWithNodes bool
30032 Weight float32 // deprecated
30036 VisualSize [3]float32
30038 SpriteSheetSize [2]int16 // in sprites.
30039 SpritePos [2]int16 // in sprite sheet.
30041 MakeFootstepSnds bool
30042 RotateSpeed float32 // in radians per second.
30044 Colors []color.NRGBA
30045 CollideWithAOs bool
30048 FaceRotateDirOff float32 // in degrees.
30051 NametagColor color.NRGBA
30052 FaceRotateSpeed float32 // in degrees per second.
30056 MaxBreath uint16 // Player only.
30057 EyeHeight float32 // Player only.
30058 ZoomFOV float32 // in degrees. Player only.
30059 UseTextureAlpha bool
30060 DmgTextureMod Texture // suffix
30063 NametagBG color.NRGBA
30064 }))(obj)).Colors)[local351]
30065 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30070 p := &(*(*(struct {
30071 MaxHP uint16 // Player only.
30072 CollideWithNodes bool
30073 Weight float32 // deprecated
30077 VisualSize [3]float32
30079 SpriteSheetSize [2]int16 // in sprites.
30080 SpritePos [2]int16 // in sprite sheet.
30082 MakeFootstepSnds bool
30083 RotateSpeed float32 // in radians per second.
30085 Colors []color.NRGBA
30086 CollideWithAOs bool
30089 FaceRotateDirOff float32 // in degrees.
30092 NametagColor color.NRGBA
30093 FaceRotateSpeed float32 // in degrees per second.
30097 MaxBreath uint16 // Player only.
30098 EyeHeight float32 // Player only.
30099 ZoomFOV float32 // in degrees. Player only.
30100 UseTextureAlpha bool
30101 DmgTextureMod Texture // suffix
30104 NametagBG color.NRGBA
30105 }))(obj)).CollideWithAOs
30106 switch n := read8(r); n {
30112 chk(fmt.Errorf("invalid bool: %d", n))
30117 p := &(*(*(struct {
30118 MaxHP uint16 // Player only.
30119 CollideWithNodes bool
30120 Weight float32 // deprecated
30124 VisualSize [3]float32
30126 SpriteSheetSize [2]int16 // in sprites.
30127 SpritePos [2]int16 // in sprite sheet.
30129 MakeFootstepSnds bool
30130 RotateSpeed float32 // in radians per second.
30132 Colors []color.NRGBA
30133 CollideWithAOs bool
30136 FaceRotateDirOff float32 // in degrees.
30139 NametagColor color.NRGBA
30140 FaceRotateSpeed float32 // in degrees per second.
30144 MaxBreath uint16 // Player only.
30145 EyeHeight float32 // Player only.
30146 ZoomFOV float32 // in degrees. Player only.
30147 UseTextureAlpha bool
30148 DmgTextureMod Texture // suffix
30151 NametagBG color.NRGBA
30152 }))(obj)).StepHeight
30153 *p = math.Float32frombits(read32(r))
30156 p := &(*(*(struct {
30157 MaxHP uint16 // Player only.
30158 CollideWithNodes bool
30159 Weight float32 // deprecated
30163 VisualSize [3]float32
30165 SpriteSheetSize [2]int16 // in sprites.
30166 SpritePos [2]int16 // in sprite sheet.
30168 MakeFootstepSnds bool
30169 RotateSpeed float32 // in radians per second.
30171 Colors []color.NRGBA
30172 CollideWithAOs bool
30175 FaceRotateDirOff float32 // in degrees.
30178 NametagColor color.NRGBA
30179 FaceRotateSpeed float32 // in degrees per second.
30183 MaxBreath uint16 // Player only.
30184 EyeHeight float32 // Player only.
30185 ZoomFOV float32 // in degrees. Player only.
30186 UseTextureAlpha bool
30187 DmgTextureMod Texture // suffix
30190 NametagBG color.NRGBA
30191 }))(obj)).FaceRotateDir
30192 switch n := read8(r); n {
30198 chk(fmt.Errorf("invalid bool: %d", n))
30203 p := &(*(*(struct {
30204 MaxHP uint16 // Player only.
30205 CollideWithNodes bool
30206 Weight float32 // deprecated
30210 VisualSize [3]float32
30212 SpriteSheetSize [2]int16 // in sprites.
30213 SpritePos [2]int16 // in sprite sheet.
30215 MakeFootstepSnds bool
30216 RotateSpeed float32 // in radians per second.
30218 Colors []color.NRGBA
30219 CollideWithAOs bool
30222 FaceRotateDirOff float32 // in degrees.
30225 NametagColor color.NRGBA
30226 FaceRotateSpeed float32 // in degrees per second.
30230 MaxBreath uint16 // Player only.
30231 EyeHeight float32 // Player only.
30232 ZoomFOV float32 // in degrees. Player only.
30233 UseTextureAlpha bool
30234 DmgTextureMod Texture // suffix
30237 NametagBG color.NRGBA
30238 }))(obj)).FaceRotateDirOff
30239 *p = math.Float32frombits(read32(r))
30242 p := &(*(*(struct {
30243 MaxHP uint16 // Player only.
30244 CollideWithNodes bool
30245 Weight float32 // deprecated
30249 VisualSize [3]float32
30251 SpriteSheetSize [2]int16 // in sprites.
30252 SpritePos [2]int16 // in sprite sheet.
30254 MakeFootstepSnds bool
30255 RotateSpeed float32 // in radians per second.
30257 Colors []color.NRGBA
30258 CollideWithAOs bool
30261 FaceRotateDirOff float32 // in degrees.
30264 NametagColor color.NRGBA
30265 FaceRotateSpeed float32 // in degrees per second.
30269 MaxBreath uint16 // Player only.
30270 EyeHeight float32 // Player only.
30271 ZoomFOV float32 // in degrees. Player only.
30272 UseTextureAlpha bool
30273 DmgTextureMod Texture // suffix
30276 NametagBG color.NRGBA
30277 }))(obj)).BackfaceCull
30278 switch n := read8(r); n {
30284 chk(fmt.Errorf("invalid bool: %d", n))
30288 var local352 []uint8
30289 var local353 uint16
30294 (local352) = make([]uint8, local353)
30296 _, err := io.ReadFull(r, (local352)[:])
30300 MaxHP uint16 // Player only.
30301 CollideWithNodes bool
30302 Weight float32 // deprecated
30306 VisualSize [3]float32
30308 SpriteSheetSize [2]int16 // in sprites.
30309 SpritePos [2]int16 // in sprite sheet.
30311 MakeFootstepSnds bool
30312 RotateSpeed float32 // in radians per second.
30314 Colors []color.NRGBA
30315 CollideWithAOs bool
30318 FaceRotateDirOff float32 // in degrees.
30321 NametagColor color.NRGBA
30322 FaceRotateSpeed float32 // in degrees per second.
30326 MaxBreath uint16 // Player only.
30327 EyeHeight float32 // Player only.
30328 ZoomFOV float32 // in degrees. Player only.
30329 UseTextureAlpha bool
30330 DmgTextureMod Texture // suffix
30333 NametagBG color.NRGBA
30334 }))(obj)).Nametag) = string(local352)
30336 p := &(*(*(struct {
30337 MaxHP uint16 // Player only.
30338 CollideWithNodes bool
30339 Weight float32 // deprecated
30343 VisualSize [3]float32
30345 SpriteSheetSize [2]int16 // in sprites.
30346 SpritePos [2]int16 // in sprite sheet.
30348 MakeFootstepSnds bool
30349 RotateSpeed float32 // in radians per second.
30351 Colors []color.NRGBA
30352 CollideWithAOs bool
30355 FaceRotateDirOff float32 // in degrees.
30358 NametagColor color.NRGBA
30359 FaceRotateSpeed float32 // in degrees per second.
30363 MaxBreath uint16 // Player only.
30364 EyeHeight float32 // Player only.
30365 ZoomFOV float32 // in degrees. Player only.
30366 UseTextureAlpha bool
30367 DmgTextureMod Texture // suffix
30370 NametagBG color.NRGBA
30371 }))(obj)).NametagColor
30372 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30376 p := &(*(*(struct {
30377 MaxHP uint16 // Player only.
30378 CollideWithNodes bool
30379 Weight float32 // deprecated
30383 VisualSize [3]float32
30385 SpriteSheetSize [2]int16 // in sprites.
30386 SpritePos [2]int16 // in sprite sheet.
30388 MakeFootstepSnds bool
30389 RotateSpeed float32 // in radians per second.
30391 Colors []color.NRGBA
30392 CollideWithAOs bool
30395 FaceRotateDirOff float32 // in degrees.
30398 NametagColor color.NRGBA
30399 FaceRotateSpeed float32 // in degrees per second.
30403 MaxBreath uint16 // Player only.
30404 EyeHeight float32 // Player only.
30405 ZoomFOV float32 // in degrees. Player only.
30406 UseTextureAlpha bool
30407 DmgTextureMod Texture // suffix
30410 NametagBG color.NRGBA
30411 }))(obj)).FaceRotateSpeed
30412 *p = math.Float32frombits(read32(r))
30414 var local354 []uint8
30415 var local355 uint16
30420 (local354) = make([]uint8, local355)
30422 _, err := io.ReadFull(r, (local354)[:])
30426 MaxHP uint16 // Player only.
30427 CollideWithNodes bool
30428 Weight float32 // deprecated
30432 VisualSize [3]float32
30434 SpriteSheetSize [2]int16 // in sprites.
30435 SpritePos [2]int16 // in sprite sheet.
30437 MakeFootstepSnds bool
30438 RotateSpeed float32 // in radians per second.
30440 Colors []color.NRGBA
30441 CollideWithAOs bool
30444 FaceRotateDirOff float32 // in degrees.
30447 NametagColor color.NRGBA
30448 FaceRotateSpeed float32 // in degrees per second.
30452 MaxBreath uint16 // Player only.
30453 EyeHeight float32 // Player only.
30454 ZoomFOV float32 // in degrees. Player only.
30455 UseTextureAlpha bool
30456 DmgTextureMod Texture // suffix
30459 NametagBG color.NRGBA
30460 }))(obj)).Infotext) = string(local354)
30461 var local356 []uint8
30462 var local357 uint16
30467 (local356) = make([]uint8, local357)
30469 _, err := io.ReadFull(r, (local356)[:])
30473 MaxHP uint16 // Player only.
30474 CollideWithNodes bool
30475 Weight float32 // deprecated
30479 VisualSize [3]float32
30481 SpriteSheetSize [2]int16 // in sprites.
30482 SpritePos [2]int16 // in sprite sheet.
30484 MakeFootstepSnds bool
30485 RotateSpeed float32 // in radians per second.
30487 Colors []color.NRGBA
30488 CollideWithAOs bool
30491 FaceRotateDirOff float32 // in degrees.
30494 NametagColor color.NRGBA
30495 FaceRotateSpeed float32 // in degrees per second.
30499 MaxBreath uint16 // Player only.
30500 EyeHeight float32 // Player only.
30501 ZoomFOV float32 // in degrees. Player only.
30502 UseTextureAlpha bool
30503 DmgTextureMod Texture // suffix
30506 NametagBG color.NRGBA
30507 }))(obj)).Itemstring) = string(local356)
30509 p := &(*(*(struct {
30510 MaxHP uint16 // Player only.
30511 CollideWithNodes bool
30512 Weight float32 // deprecated
30516 VisualSize [3]float32
30518 SpriteSheetSize [2]int16 // in sprites.
30519 SpritePos [2]int16 // in sprite sheet.
30521 MakeFootstepSnds bool
30522 RotateSpeed float32 // in radians per second.
30524 Colors []color.NRGBA
30525 CollideWithAOs bool
30528 FaceRotateDirOff float32 // in degrees.
30531 NametagColor color.NRGBA
30532 FaceRotateSpeed float32 // in degrees per second.
30536 MaxBreath uint16 // Player only.
30537 EyeHeight float32 // Player only.
30538 ZoomFOV float32 // in degrees. Player only.
30539 UseTextureAlpha bool
30540 DmgTextureMod Texture // suffix
30543 NametagBG color.NRGBA
30545 *p = int8(read8(r))
30548 p := &(*(*(struct {
30549 MaxHP uint16 // Player only.
30550 CollideWithNodes bool
30551 Weight float32 // deprecated
30555 VisualSize [3]float32
30557 SpriteSheetSize [2]int16 // in sprites.
30558 SpritePos [2]int16 // in sprite sheet.
30560 MakeFootstepSnds bool
30561 RotateSpeed float32 // in radians per second.
30563 Colors []color.NRGBA
30564 CollideWithAOs bool
30567 FaceRotateDirOff float32 // in degrees.
30570 NametagColor color.NRGBA
30571 FaceRotateSpeed float32 // in degrees per second.
30575 MaxBreath uint16 // Player only.
30576 EyeHeight float32 // Player only.
30577 ZoomFOV float32 // in degrees. Player only.
30578 UseTextureAlpha bool
30579 DmgTextureMod Texture // suffix
30582 NametagBG color.NRGBA
30583 }))(obj)).MaxBreath
30587 p := &(*(*(struct {
30588 MaxHP uint16 // Player only.
30589 CollideWithNodes bool
30590 Weight float32 // deprecated
30594 VisualSize [3]float32
30596 SpriteSheetSize [2]int16 // in sprites.
30597 SpritePos [2]int16 // in sprite sheet.
30599 MakeFootstepSnds bool
30600 RotateSpeed float32 // in radians per second.
30602 Colors []color.NRGBA
30603 CollideWithAOs bool
30606 FaceRotateDirOff float32 // in degrees.
30609 NametagColor color.NRGBA
30610 FaceRotateSpeed float32 // in degrees per second.
30614 MaxBreath uint16 // Player only.
30615 EyeHeight float32 // Player only.
30616 ZoomFOV float32 // in degrees. Player only.
30617 UseTextureAlpha bool
30618 DmgTextureMod Texture // suffix
30621 NametagBG color.NRGBA
30622 }))(obj)).EyeHeight
30623 *p = math.Float32frombits(read32(r))
30626 p := &(*(*(struct {
30627 MaxHP uint16 // Player only.
30628 CollideWithNodes bool
30629 Weight float32 // deprecated
30633 VisualSize [3]float32
30635 SpriteSheetSize [2]int16 // in sprites.
30636 SpritePos [2]int16 // in sprite sheet.
30638 MakeFootstepSnds bool
30639 RotateSpeed float32 // in radians per second.
30641 Colors []color.NRGBA
30642 CollideWithAOs bool
30645 FaceRotateDirOff float32 // in degrees.
30648 NametagColor color.NRGBA
30649 FaceRotateSpeed float32 // in degrees per second.
30653 MaxBreath uint16 // Player only.
30654 EyeHeight float32 // Player only.
30655 ZoomFOV float32 // in degrees. Player only.
30656 UseTextureAlpha bool
30657 DmgTextureMod Texture // suffix
30660 NametagBG color.NRGBA
30662 *p = math.Float32frombits(read32(r))
30665 p := &(*(*(struct {
30666 MaxHP uint16 // Player only.
30667 CollideWithNodes bool
30668 Weight float32 // deprecated
30672 VisualSize [3]float32
30674 SpriteSheetSize [2]int16 // in sprites.
30675 SpritePos [2]int16 // in sprite sheet.
30677 MakeFootstepSnds bool
30678 RotateSpeed float32 // in radians per second.
30680 Colors []color.NRGBA
30681 CollideWithAOs bool
30684 FaceRotateDirOff float32 // in degrees.
30687 NametagColor color.NRGBA
30688 FaceRotateSpeed float32 // in degrees per second.
30692 MaxBreath uint16 // Player only.
30693 EyeHeight float32 // Player only.
30694 ZoomFOV float32 // in degrees. Player only.
30695 UseTextureAlpha bool
30696 DmgTextureMod Texture // suffix
30699 NametagBG color.NRGBA
30700 }))(obj)).UseTextureAlpha
30701 switch n := read8(r); n {
30707 chk(fmt.Errorf("invalid bool: %d", n))
30711 if err := pcall(func() {
30713 MaxHP uint16 // Player only.
30714 CollideWithNodes bool
30715 Weight float32 // deprecated
30719 VisualSize [3]float32
30721 SpriteSheetSize [2]int16 // in sprites.
30722 SpritePos [2]int16 // in sprite sheet.
30724 MakeFootstepSnds bool
30725 RotateSpeed float32 // in radians per second.
30727 Colors []color.NRGBA
30728 CollideWithAOs bool
30731 FaceRotateDirOff float32 // in degrees.
30734 NametagColor color.NRGBA
30735 FaceRotateSpeed float32 // in degrees per second.
30739 MaxBreath uint16 // Player only.
30740 EyeHeight float32 // Player only.
30741 ZoomFOV float32 // in degrees. Player only.
30742 UseTextureAlpha bool
30743 DmgTextureMod Texture // suffix
30746 NametagBG color.NRGBA
30747 }))(obj)).DmgTextureMod).deserialize(r)
30752 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
30755 p := &(*(*(struct {
30756 MaxHP uint16 // Player only.
30757 CollideWithNodes bool
30758 Weight float32 // deprecated
30762 VisualSize [3]float32
30764 SpriteSheetSize [2]int16 // in sprites.
30765 SpritePos [2]int16 // in sprite sheet.
30767 MakeFootstepSnds bool
30768 RotateSpeed float32 // in radians per second.
30770 Colors []color.NRGBA
30771 CollideWithAOs bool
30774 FaceRotateDirOff float32 // in degrees.
30777 NametagColor color.NRGBA
30778 FaceRotateSpeed float32 // in degrees per second.
30782 MaxBreath uint16 // Player only.
30783 EyeHeight float32 // Player only.
30784 ZoomFOV float32 // in degrees. Player only.
30785 UseTextureAlpha bool
30786 DmgTextureMod Texture // suffix
30789 NametagBG color.NRGBA
30791 switch n := read8(r); n {
30797 chk(fmt.Errorf("invalid bool: %d", n))
30802 p := &(*(*(struct {
30803 MaxHP uint16 // Player only.
30804 CollideWithNodes bool
30805 Weight float32 // deprecated
30809 VisualSize [3]float32
30811 SpriteSheetSize [2]int16 // in sprites.
30812 SpritePos [2]int16 // in sprite sheet.
30814 MakeFootstepSnds bool
30815 RotateSpeed float32 // in radians per second.
30817 Colors []color.NRGBA
30818 CollideWithAOs bool
30821 FaceRotateDirOff float32 // in degrees.
30824 NametagColor color.NRGBA
30825 FaceRotateSpeed float32 // in degrees per second.
30829 MaxBreath uint16 // Player only.
30830 EyeHeight float32 // Player only.
30831 ZoomFOV float32 // in degrees. Player only.
30832 UseTextureAlpha bool
30833 DmgTextureMod Texture // suffix
30836 NametagBG color.NRGBA
30837 }))(obj)).ShowOnMinimap
30838 switch n := read8(r); n {
30844 chk(fmt.Errorf("invalid bool: %d", n))
30849 p := &(*(*(struct {
30850 MaxHP uint16 // Player only.
30851 CollideWithNodes bool
30852 Weight float32 // deprecated
30856 VisualSize [3]float32
30858 SpriteSheetSize [2]int16 // in sprites.
30859 SpritePos [2]int16 // in sprite sheet.
30861 MakeFootstepSnds bool
30862 RotateSpeed float32 // in radians per second.
30864 Colors []color.NRGBA
30865 CollideWithAOs bool
30868 FaceRotateDirOff float32 // in degrees.
30871 NametagColor color.NRGBA
30872 FaceRotateSpeed float32 // in degrees per second.
30876 MaxBreath uint16 // Player only.
30877 EyeHeight float32 // Player only.
30878 ZoomFOV float32 // in degrees. Player only.
30879 UseTextureAlpha bool
30880 DmgTextureMod Texture // suffix
30883 NametagBG color.NRGBA
30884 }))(obj)).NametagBG
30885 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30890 func (obj *AOPos) serialize(w io.Writer) {
30891 if err := pcall(func() {
30899 UpdateInterval float32
30900 }))(obj)).Pos).serialize(w)
30905 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
30907 if err := pcall(func() {
30915 UpdateInterval float32
30916 }))(obj)).Vel).serialize(w)
30921 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30923 if err := pcall(func() {
30931 UpdateInterval float32
30932 }))(obj)).Acc).serialize(w)
30937 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30939 for local358 := range (*(*(struct {
30946 UpdateInterval float32
30949 x := ((*(*(struct {
30956 UpdateInterval float32
30957 }))(obj)).Rot)[local358]
30958 write32(w, math.Float32bits(x))
30969 UpdateInterval float32
30970 }))(obj)).Interpolate
30986 UpdateInterval float32
31003 UpdateInterval float32
31004 }))(obj)).UpdateInterval
31005 write32(w, math.Float32bits(x))
31009 func (obj *AOPos) deserialize(r io.Reader) {
31010 if err := pcall(func() {
31018 UpdateInterval float32
31019 }))(obj)).Pos).deserialize(r)
31024 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
31026 if err := pcall(func() {
31034 UpdateInterval float32
31035 }))(obj)).Vel).deserialize(r)
31040 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31042 if err := pcall(func() {
31050 UpdateInterval float32
31051 }))(obj)).Acc).deserialize(r)
31056 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31058 for local359 := range (*(*(struct {
31065 UpdateInterval float32
31068 p := &((*(*(struct {
31075 UpdateInterval float32
31076 }))(obj)).Rot)[local359]
31077 *p = math.Float32frombits(read32(r))
31081 p := &(*(*(struct {
31088 UpdateInterval float32
31089 }))(obj)).Interpolate
31090 switch n := read8(r); n {
31096 chk(fmt.Errorf("invalid bool: %d", n))
31101 p := &(*(*(struct {
31108 UpdateInterval float32
31110 switch n := read8(r); n {
31116 chk(fmt.Errorf("invalid bool: %d", n))
31121 p := &(*(*(struct {
31128 UpdateInterval float32
31129 }))(obj)).UpdateInterval
31130 *p = math.Float32frombits(read32(r))
31134 func (obj *AOSprite) serialize(w io.Writer) {
31135 for local360 := range (*(*(struct {
31138 FrameDuration float32
31139 ViewAngleFrames bool
31142 x := ((*(*(struct {
31145 FrameDuration float32
31146 ViewAngleFrames bool
31147 }))(obj)).Frame0)[local360]
31148 write16(w, uint16(x))
31155 FrameDuration float32
31156 ViewAngleFrames bool
31158 write16(w, uint16(x))
31164 FrameDuration float32
31165 ViewAngleFrames bool
31166 }))(obj)).FrameDuration
31167 write32(w, math.Float32bits(x))
31173 FrameDuration float32
31174 ViewAngleFrames bool
31175 }))(obj)).ViewAngleFrames
31185 func (obj *AOSprite) deserialize(r io.Reader) {
31186 for local361 := range (*(*(struct {
31189 FrameDuration float32
31190 ViewAngleFrames bool
31193 p := &((*(*(struct {
31196 FrameDuration float32
31197 ViewAngleFrames bool
31198 }))(obj)).Frame0)[local361]
31199 *p = int16(read16(r))
31203 p := &(*(*(struct {
31206 FrameDuration float32
31207 ViewAngleFrames bool
31212 p := &(*(*(struct {
31215 FrameDuration float32
31216 ViewAngleFrames bool
31217 }))(obj)).FrameDuration
31218 *p = math.Float32frombits(read32(r))
31221 p := &(*(*(struct {
31224 FrameDuration float32
31225 ViewAngleFrames bool
31226 }))(obj)).ViewAngleFrames
31227 switch n := read8(r); n {
31233 chk(fmt.Errorf("invalid bool: %d", n))
31239 func (obj *Group) serialize(w io.Writer) {
31240 if len(([]byte((*(*(struct {
31243 }))(obj)).Name))) > math.MaxUint16 {
31247 x := uint16(len(([]byte((*(*(struct {
31251 write16(w, uint16(x))
31254 _, err := w.Write(([]byte((*(*(struct {
31257 }))(obj)).Name))[:])
31265 write16(w, uint16(x))
31269 func (obj *Group) deserialize(r io.Reader) {
31270 var local362 []uint8
31271 var local363 uint16
31276 (local362) = make([]uint8, local363)
31278 _, err := io.ReadFull(r, (local362)[:])
31284 }))(obj)).Name) = string(local362)
31286 p := &(*(*(struct {
31290 *p = int16(read16(r))
31294 func (obj *AOAnim) serialize(w io.Writer) {
31295 for local364 := range (*(*(struct {
31302 x := ((*(*(struct {
31307 }))(obj)).Frames)[local364]
31308 write32(w, uint32(x))
31318 write32(w, math.Float32bits(x))
31327 write32(w, math.Float32bits(x))
31345 func (obj *AOAnim) deserialize(r io.Reader) {
31346 for local365 := range (*(*(struct {
31353 p := &((*(*(struct {
31358 }))(obj)).Frames)[local365]
31359 *p = int32(read32(r))
31363 p := &(*(*(struct {
31369 *p = math.Float32frombits(read32(r))
31372 p := &(*(*(struct {
31378 *p = math.Float32frombits(read32(r))
31381 p := &(*(*(struct {
31387 switch n := read8(r); n {
31393 chk(fmt.Errorf("invalid bool: %d", n))
31399 func (obj *AOBonePos) serialize(w io.Writer) {
31400 if err := pcall(func() {
31404 }))(obj)).Pos).serialize(w)
31409 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31411 for local366 := range (*(*(struct {
31416 x := ((*(*(struct {
31419 }))(obj)).Rot)[local366]
31420 write32(w, math.Float32bits(x))
31425 func (obj *AOBonePos) deserialize(r io.Reader) {
31426 if err := pcall(func() {
31430 }))(obj)).Pos).deserialize(r)
31435 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31437 for local367 := range (*(*(struct {
31442 p := &((*(*(struct {
31445 }))(obj)).Rot)[local367]
31446 *p = math.Float32frombits(read32(r))
31451 func (obj *AOAttach) serialize(w io.Writer) {
31452 if err := pcall(func() {
31459 }))(obj)).ParentID).serialize(w)
31464 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31466 if len(([]byte((*(*(struct {
31472 }))(obj)).Bone))) > math.MaxUint16 {
31476 x := uint16(len(([]byte((*(*(struct {
31483 write16(w, uint16(x))
31486 _, err := w.Write(([]byte((*(*(struct {
31492 }))(obj)).Bone))[:])
31495 if err := pcall(func() {
31502 }))(obj)).Pos).serialize(w)
31507 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31509 for local368 := range (*(*(struct {
31517 x := ((*(*(struct {
31523 }))(obj)).Rot)[local368]
31524 write32(w, math.Float32bits(x))
31534 }))(obj)).ForceVisible
31544 func (obj *AOAttach) deserialize(r io.Reader) {
31545 if err := pcall(func() {
31552 }))(obj)).ParentID).deserialize(r)
31557 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31559 var local369 []uint8
31560 var local370 uint16
31565 (local369) = make([]uint8, local370)
31567 _, err := io.ReadFull(r, (local369)[:])
31576 }))(obj)).Bone) = string(local369)
31577 if err := pcall(func() {
31584 }))(obj)).Pos).deserialize(r)
31589 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31591 for local371 := range (*(*(struct {
31599 p := &((*(*(struct {
31605 }))(obj)).Rot)[local371]
31606 *p = math.Float32frombits(read32(r))
31610 p := &(*(*(struct {
31616 }))(obj)).ForceVisible
31617 switch n := read8(r); n {
31623 chk(fmt.Errorf("invalid bool: %d", n))
31629 func (obj *AOPhysOverride) serialize(w io.Writer) {
31632 Walk, Jump, Gravity float32
31635 NoSneak, NoSneakGlitch, OldSneak bool
31637 write32(w, math.Float32bits(x))
31641 Walk, Jump, Gravity float32
31644 NoSneak, NoSneakGlitch, OldSneak bool
31646 write32(w, math.Float32bits(x))
31650 Walk, Jump, Gravity float32
31653 NoSneak, NoSneakGlitch, OldSneak bool
31655 write32(w, math.Float32bits(x))
31659 Walk, Jump, Gravity float32
31662 NoSneak, NoSneakGlitch, OldSneak bool
31673 Walk, Jump, Gravity float32
31676 NoSneak, NoSneakGlitch, OldSneak bool
31677 }))(obj)).NoSneakGlitch
31687 Walk, Jump, Gravity float32
31690 NoSneak, NoSneakGlitch, OldSneak bool
31701 func (obj *AOPhysOverride) deserialize(r io.Reader) {
31703 p := &(*(*(struct {
31704 Walk, Jump, Gravity float32
31707 NoSneak, NoSneakGlitch, OldSneak bool
31709 *p = math.Float32frombits(read32(r))
31712 p := &(*(*(struct {
31713 Walk, Jump, Gravity float32
31716 NoSneak, NoSneakGlitch, OldSneak bool
31718 *p = math.Float32frombits(read32(r))
31721 p := &(*(*(struct {
31722 Walk, Jump, Gravity float32
31725 NoSneak, NoSneakGlitch, OldSneak bool
31727 *p = math.Float32frombits(read32(r))
31730 p := &(*(*(struct {
31731 Walk, Jump, Gravity float32
31734 NoSneak, NoSneakGlitch, OldSneak bool
31736 switch n := read8(r); n {
31742 chk(fmt.Errorf("invalid bool: %d", n))
31747 p := &(*(*(struct {
31748 Walk, Jump, Gravity float32
31751 NoSneak, NoSneakGlitch, OldSneak bool
31752 }))(obj)).NoSneakGlitch
31753 switch n := read8(r); n {
31759 chk(fmt.Errorf("invalid bool: %d", n))
31764 p := &(*(*(struct {
31765 Walk, Jump, Gravity float32
31768 NoSneak, NoSneakGlitch, OldSneak bool
31770 switch n := read8(r); n {
31776 chk(fmt.Errorf("invalid bool: %d", n))
31782 func (obj *aoType) serialize(w io.Writer) {
31784 x := *(*(uint8))(obj)
31785 write8(w, uint8(x))
31789 func (obj *aoType) deserialize(r io.Reader) {
31791 p := &*(*(uint8))(obj)
31796 func (obj *NodeMetaField) serialize(w io.Writer) {
31797 if err := pcall(func() {
31801 }))(obj)).Field).serialize(w)
31806 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
31822 func (obj *NodeMetaField) deserialize(r io.Reader) {
31823 if err := pcall(func() {
31827 }))(obj)).Field).deserialize(r)
31832 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
31835 p := &(*(*(struct {
31839 switch n := read8(r); n {
31845 chk(fmt.Errorf("invalid bool: %d", n))
31851 func (obj *MinimapType) serialize(w io.Writer) {
31853 x := *(*(uint16))(obj)
31854 write16(w, uint16(x))
31858 func (obj *MinimapType) deserialize(r io.Reader) {
31860 p := &*(*(uint16))(obj)
31865 func (obj *Param1Type) serialize(w io.Writer) {
31867 x := *(*(uint8))(obj)
31868 write8(w, uint8(x))
31872 func (obj *Param1Type) deserialize(r io.Reader) {
31874 p := &*(*(uint8))(obj)
31879 func (obj *Param2Type) serialize(w io.Writer) {
31881 x := *(*(uint8))(obj)
31882 write8(w, uint8(x))
31886 func (obj *Param2Type) deserialize(r io.Reader) {
31888 p := &*(*(uint8))(obj)
31893 func (obj *DrawType) serialize(w io.Writer) {
31895 x := *(*(uint8))(obj)
31896 write8(w, uint8(x))
31900 func (obj *DrawType) deserialize(r io.Reader) {
31902 p := &*(*(uint8))(obj)
31907 func (obj *TileDef) serialize(w io.Writer) {
31909 local372 := uint8(6)
31912 write8(w, uint8(x))
31915 if err := pcall(func() {
31921 //mt:if %s.Flags&TileColor != 0
31924 //mt:if %s.Flags&TileScale != 0
31927 //mt:if %s.Flags&TileAlign != 0
31929 }))(obj)).Texture).serialize(w)
31934 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
31936 if err := pcall(func() {
31942 //mt:if %s.Flags&TileColor != 0
31945 //mt:if %s.Flags&TileScale != 0
31948 //mt:if %s.Flags&TileAlign != 0
31950 }))(obj)).Anim).serialize(w)
31955 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
31957 if err := pcall(func() {
31963 //mt:if %s.Flags&TileColor != 0
31966 //mt:if %s.Flags&TileScale != 0
31969 //mt:if %s.Flags&TileAlign != 0
31971 }))(obj)).Flags).serialize(w)
31976 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
31983 //mt:if %s.Flags&TileColor != 0
31986 //mt:if %s.Flags&TileScale != 0
31989 //mt:if %s.Flags&TileAlign != 0
31991 }))(obj)).Flags&TileColor != 0 {
31998 //mt:if %s.Flags&TileColor != 0
32001 //mt:if %s.Flags&TileScale != 0
32004 //mt:if %s.Flags&TileAlign != 0
32007 write8(w, uint8(x))
32015 //mt:if %s.Flags&TileColor != 0
32018 //mt:if %s.Flags&TileScale != 0
32021 //mt:if %s.Flags&TileAlign != 0
32024 write8(w, uint8(x))
32032 //mt:if %s.Flags&TileColor != 0
32035 //mt:if %s.Flags&TileScale != 0
32038 //mt:if %s.Flags&TileAlign != 0
32041 write8(w, uint8(x))
32049 //mt:if %s.Flags&TileColor != 0
32052 //mt:if %s.Flags&TileScale != 0
32055 //mt:if %s.Flags&TileAlign != 0
32057 }))(obj)).Flags&TileScale != 0 {
32064 //mt:if %s.Flags&TileColor != 0
32067 //mt:if %s.Flags&TileScale != 0
32070 //mt:if %s.Flags&TileAlign != 0
32073 write8(w, uint8(x))
32081 //mt:if %s.Flags&TileColor != 0
32084 //mt:if %s.Flags&TileScale != 0
32087 //mt:if %s.Flags&TileAlign != 0
32089 }))(obj)).Flags&TileAlign != 0 {
32090 if err := pcall(func() {
32096 //mt:if %s.Flags&TileColor != 0
32099 //mt:if %s.Flags&TileScale != 0
32102 //mt:if %s.Flags&TileAlign != 0
32104 }))(obj)).Align).serialize(w)
32109 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
32114 func (obj *TileDef) deserialize(r io.Reader) {
32117 local374 := uint8(6)
32122 if local373 != local374 {
32123 chk(fmt.Errorf("const %v: %v", "uint8(6)", local373))
32126 if err := pcall(func() {
32132 //mt:if %s.Flags&TileColor != 0
32135 //mt:if %s.Flags&TileScale != 0
32138 //mt:if %s.Flags&TileAlign != 0
32140 }))(obj)).Texture).deserialize(r)
32145 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
32147 if err := pcall(func() {
32153 //mt:if %s.Flags&TileColor != 0
32156 //mt:if %s.Flags&TileScale != 0
32159 //mt:if %s.Flags&TileAlign != 0
32161 }))(obj)).Anim).deserialize(r)
32166 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
32168 if err := pcall(func() {
32174 //mt:if %s.Flags&TileColor != 0
32177 //mt:if %s.Flags&TileScale != 0
32180 //mt:if %s.Flags&TileAlign != 0
32182 }))(obj)).Flags).deserialize(r)
32187 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
32194 //mt:if %s.Flags&TileColor != 0
32197 //mt:if %s.Flags&TileScale != 0
32200 //mt:if %s.Flags&TileAlign != 0
32202 }))(obj)).Flags&TileColor != 0 {
32204 p := &(*(*(struct {
32209 //mt:if %s.Flags&TileColor != 0
32212 //mt:if %s.Flags&TileScale != 0
32215 //mt:if %s.Flags&TileAlign != 0
32221 p := &(*(*(struct {
32226 //mt:if %s.Flags&TileColor != 0
32229 //mt:if %s.Flags&TileScale != 0
32232 //mt:if %s.Flags&TileAlign != 0
32238 p := &(*(*(struct {
32243 //mt:if %s.Flags&TileColor != 0
32246 //mt:if %s.Flags&TileScale != 0
32249 //mt:if %s.Flags&TileAlign != 0
32260 //mt:if %s.Flags&TileColor != 0
32263 //mt:if %s.Flags&TileScale != 0
32266 //mt:if %s.Flags&TileAlign != 0
32268 }))(obj)).Flags&TileScale != 0 {
32270 p := &(*(*(struct {
32275 //mt:if %s.Flags&TileColor != 0
32278 //mt:if %s.Flags&TileScale != 0
32281 //mt:if %s.Flags&TileAlign != 0
32292 //mt:if %s.Flags&TileColor != 0
32295 //mt:if %s.Flags&TileScale != 0
32298 //mt:if %s.Flags&TileAlign != 0
32300 }))(obj)).Flags&TileAlign != 0 {
32301 if err := pcall(func() {
32307 //mt:if %s.Flags&TileColor != 0
32310 //mt:if %s.Flags&TileScale != 0
32313 //mt:if %s.Flags&TileAlign != 0
32315 }))(obj)).Align).deserialize(r)
32320 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
32325 func (obj *WaveType) serialize(w io.Writer) {
32327 x := *(*(uint8))(obj)
32328 write8(w, uint8(x))
32332 func (obj *WaveType) deserialize(r io.Reader) {
32334 p := &*(*(uint8))(obj)
32339 func (obj *LiquidType) serialize(w io.Writer) {
32341 x := *(*(uint8))(obj)
32342 write8(w, uint8(x))
32346 func (obj *LiquidType) deserialize(r io.Reader) {
32348 p := &*(*(uint8))(obj)
32353 func (obj *NodeBox) serialize(w io.Writer) {
32355 local375 := uint8(6)
32358 write8(w, uint8(x))
32361 if err := pcall(func() {
32365 //mt:if %s.Type == MountedBox
32366 WallTop, WallBot, WallSides Box
32368 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32371 //mt:if %s.Type == ConnectedBox
32372 ConnDirs, DiscoDirs DirBoxes
32373 DiscoAll, DiscoSides []Box
32374 }))(obj)).Type).serialize(w)
32379 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
32384 //mt:if %s.Type == MountedBox
32385 WallTop, WallBot, WallSides Box
32387 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32390 //mt:if %s.Type == ConnectedBox
32391 ConnDirs, DiscoDirs DirBoxes
32392 DiscoAll, DiscoSides []Box
32393 }))(obj)).Type < maxBox) {
32394 chk(errors.New("assertion failed: %s.Type < maxBox"))
32399 //mt:if %s.Type == MountedBox
32400 WallTop, WallBot, WallSides Box
32402 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32405 //mt:if %s.Type == ConnectedBox
32406 ConnDirs, DiscoDirs DirBoxes
32407 DiscoAll, DiscoSides []Box
32408 }))(obj)).Type == MountedBox {
32409 if err := pcall(func() {
32413 //mt:if %s.Type == MountedBox
32414 WallTop, WallBot, WallSides Box
32416 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32419 //mt:if %s.Type == ConnectedBox
32420 ConnDirs, DiscoDirs DirBoxes
32421 DiscoAll, DiscoSides []Box
32422 }))(obj)).WallTop).serialize(w)
32427 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32429 if err := pcall(func() {
32433 //mt:if %s.Type == MountedBox
32434 WallTop, WallBot, WallSides Box
32436 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32439 //mt:if %s.Type == ConnectedBox
32440 ConnDirs, DiscoDirs DirBoxes
32441 DiscoAll, DiscoSides []Box
32442 }))(obj)).WallBot).serialize(w)
32447 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32449 if err := pcall(func() {
32453 //mt:if %s.Type == MountedBox
32454 WallTop, WallBot, WallSides Box
32456 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32459 //mt:if %s.Type == ConnectedBox
32460 ConnDirs, DiscoDirs DirBoxes
32461 DiscoAll, DiscoSides []Box
32462 }))(obj)).WallSides).serialize(w)
32467 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32470 if t := (*(*(struct {
32473 //mt:if %s.Type == MountedBox
32474 WallTop, WallBot, WallSides Box
32476 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32479 //mt:if %s.Type == ConnectedBox
32480 ConnDirs, DiscoDirs DirBoxes
32481 DiscoAll, DiscoSides []Box
32482 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32483 if len(((*(*(struct {
32486 //mt:if %s.Type == MountedBox
32487 WallTop, WallBot, WallSides Box
32489 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32492 //mt:if %s.Type == ConnectedBox
32493 ConnDirs, DiscoDirs DirBoxes
32494 DiscoAll, DiscoSides []Box
32495 }))(obj)).Fixed)) > math.MaxUint16 {
32499 x := uint16(len(((*(*(struct {
32502 //mt:if %s.Type == MountedBox
32503 WallTop, WallBot, WallSides Box
32505 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32508 //mt:if %s.Type == ConnectedBox
32509 ConnDirs, DiscoDirs DirBoxes
32510 DiscoAll, DiscoSides []Box
32512 write16(w, uint16(x))
32514 for local376 := range (*(*(struct {
32517 //mt:if %s.Type == MountedBox
32518 WallTop, WallBot, WallSides Box
32520 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32523 //mt:if %s.Type == ConnectedBox
32524 ConnDirs, DiscoDirs DirBoxes
32525 DiscoAll, DiscoSides []Box
32527 if err := pcall(func() {
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)).Fixed)[local376]).serialize(w)
32545 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32552 //mt:if %s.Type == MountedBox
32553 WallTop, WallBot, WallSides Box
32555 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32558 //mt:if %s.Type == ConnectedBox
32559 ConnDirs, DiscoDirs DirBoxes
32560 DiscoAll, DiscoSides []Box
32561 }))(obj)).Type == ConnectedBox {
32562 if err := pcall(func() {
32566 //mt:if %s.Type == MountedBox
32567 WallTop, WallBot, WallSides Box
32569 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32572 //mt:if %s.Type == ConnectedBox
32573 ConnDirs, DiscoDirs DirBoxes
32574 DiscoAll, DiscoSides []Box
32575 }))(obj)).ConnDirs).serialize(w)
32580 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32582 if err := pcall(func() {
32586 //mt:if %s.Type == MountedBox
32587 WallTop, WallBot, WallSides Box
32589 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32592 //mt:if %s.Type == ConnectedBox
32593 ConnDirs, DiscoDirs DirBoxes
32594 DiscoAll, DiscoSides []Box
32595 }))(obj)).DiscoDirs).serialize(w)
32600 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32602 if len(((*(*(struct {
32605 //mt:if %s.Type == MountedBox
32606 WallTop, WallBot, WallSides Box
32608 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32611 //mt:if %s.Type == ConnectedBox
32612 ConnDirs, DiscoDirs DirBoxes
32613 DiscoAll, DiscoSides []Box
32614 }))(obj)).DiscoAll)) > math.MaxUint16 {
32618 x := uint16(len(((*(*(struct {
32621 //mt:if %s.Type == MountedBox
32622 WallTop, WallBot, WallSides Box
32624 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32627 //mt:if %s.Type == ConnectedBox
32628 ConnDirs, DiscoDirs DirBoxes
32629 DiscoAll, DiscoSides []Box
32630 }))(obj)).DiscoAll)))
32631 write16(w, uint16(x))
32633 for local377 := range (*(*(struct {
32636 //mt:if %s.Type == MountedBox
32637 WallTop, WallBot, WallSides Box
32639 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32642 //mt:if %s.Type == ConnectedBox
32643 ConnDirs, DiscoDirs DirBoxes
32644 DiscoAll, DiscoSides []Box
32645 }))(obj)).DiscoAll {
32646 if err := pcall(func() {
32650 //mt:if %s.Type == MountedBox
32651 WallTop, WallBot, WallSides Box
32653 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32656 //mt:if %s.Type == ConnectedBox
32657 ConnDirs, DiscoDirs DirBoxes
32658 DiscoAll, DiscoSides []Box
32659 }))(obj)).DiscoAll)[local377]).serialize(w)
32664 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32667 if len(((*(*(struct {
32670 //mt:if %s.Type == MountedBox
32671 WallTop, WallBot, WallSides Box
32673 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32676 //mt:if %s.Type == ConnectedBox
32677 ConnDirs, DiscoDirs DirBoxes
32678 DiscoAll, DiscoSides []Box
32679 }))(obj)).DiscoSides)) > math.MaxUint16 {
32683 x := uint16(len(((*(*(struct {
32686 //mt:if %s.Type == MountedBox
32687 WallTop, WallBot, WallSides Box
32689 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32692 //mt:if %s.Type == ConnectedBox
32693 ConnDirs, DiscoDirs DirBoxes
32694 DiscoAll, DiscoSides []Box
32695 }))(obj)).DiscoSides)))
32696 write16(w, uint16(x))
32698 for local378 := range (*(*(struct {
32701 //mt:if %s.Type == MountedBox
32702 WallTop, WallBot, WallSides Box
32704 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32707 //mt:if %s.Type == ConnectedBox
32708 ConnDirs, DiscoDirs DirBoxes
32709 DiscoAll, DiscoSides []Box
32710 }))(obj)).DiscoSides {
32711 if err := pcall(func() {
32715 //mt:if %s.Type == MountedBox
32716 WallTop, WallBot, WallSides Box
32718 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32721 //mt:if %s.Type == ConnectedBox
32722 ConnDirs, DiscoDirs DirBoxes
32723 DiscoAll, DiscoSides []Box
32724 }))(obj)).DiscoSides)[local378]).serialize(w)
32729 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32735 func (obj *NodeBox) deserialize(r io.Reader) {
32738 local380 := uint8(6)
32743 if local379 != local380 {
32744 chk(fmt.Errorf("const %v: %v", "uint8(6)", local379))
32747 if err := pcall(func() {
32751 //mt:if %s.Type == MountedBox
32752 WallTop, WallBot, WallSides Box
32754 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32757 //mt:if %s.Type == ConnectedBox
32758 ConnDirs, DiscoDirs DirBoxes
32759 DiscoAll, DiscoSides []Box
32760 }))(obj)).Type).deserialize(r)
32765 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
32770 //mt:if %s.Type == MountedBox
32771 WallTop, WallBot, WallSides Box
32773 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32776 //mt:if %s.Type == ConnectedBox
32777 ConnDirs, DiscoDirs DirBoxes
32778 DiscoAll, DiscoSides []Box
32779 }))(obj)).Type < maxBox) {
32780 chk(errors.New("assertion failed: %s.Type < maxBox"))
32785 //mt:if %s.Type == MountedBox
32786 WallTop, WallBot, WallSides Box
32788 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32791 //mt:if %s.Type == ConnectedBox
32792 ConnDirs, DiscoDirs DirBoxes
32793 DiscoAll, DiscoSides []Box
32794 }))(obj)).Type == MountedBox {
32795 if err := pcall(func() {
32799 //mt:if %s.Type == MountedBox
32800 WallTop, WallBot, WallSides Box
32802 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32805 //mt:if %s.Type == ConnectedBox
32806 ConnDirs, DiscoDirs DirBoxes
32807 DiscoAll, DiscoSides []Box
32808 }))(obj)).WallTop).deserialize(r)
32813 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32815 if err := pcall(func() {
32819 //mt:if %s.Type == MountedBox
32820 WallTop, WallBot, WallSides Box
32822 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32825 //mt:if %s.Type == ConnectedBox
32826 ConnDirs, DiscoDirs DirBoxes
32827 DiscoAll, DiscoSides []Box
32828 }))(obj)).WallBot).deserialize(r)
32833 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32835 if err := pcall(func() {
32839 //mt:if %s.Type == MountedBox
32840 WallTop, WallBot, WallSides Box
32842 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32845 //mt:if %s.Type == ConnectedBox
32846 ConnDirs, DiscoDirs DirBoxes
32847 DiscoAll, DiscoSides []Box
32848 }))(obj)).WallSides).deserialize(r)
32853 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32856 if t := (*(*(struct {
32859 //mt:if %s.Type == MountedBox
32860 WallTop, WallBot, WallSides Box
32862 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32865 //mt:if %s.Type == ConnectedBox
32866 ConnDirs, DiscoDirs DirBoxes
32867 DiscoAll, DiscoSides []Box
32868 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32869 var local381 uint16
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)).Fixed) = make([]Box, local381)
32887 for local382 := range (*(*(struct {
32890 //mt:if %s.Type == MountedBox
32891 WallTop, WallBot, WallSides Box
32893 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32896 //mt:if %s.Type == ConnectedBox
32897 ConnDirs, DiscoDirs DirBoxes
32898 DiscoAll, DiscoSides []Box
32900 if err := pcall(func() {
32904 //mt:if %s.Type == MountedBox
32905 WallTop, WallBot, WallSides Box
32907 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32910 //mt:if %s.Type == ConnectedBox
32911 ConnDirs, DiscoDirs DirBoxes
32912 DiscoAll, DiscoSides []Box
32913 }))(obj)).Fixed)[local382]).deserialize(r)
32918 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32925 //mt:if %s.Type == MountedBox
32926 WallTop, WallBot, WallSides Box
32928 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32931 //mt:if %s.Type == ConnectedBox
32932 ConnDirs, DiscoDirs DirBoxes
32933 DiscoAll, DiscoSides []Box
32934 }))(obj)).Type == ConnectedBox {
32935 if err := pcall(func() {
32939 //mt:if %s.Type == MountedBox
32940 WallTop, WallBot, WallSides Box
32942 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32945 //mt:if %s.Type == ConnectedBox
32946 ConnDirs, DiscoDirs DirBoxes
32947 DiscoAll, DiscoSides []Box
32948 }))(obj)).ConnDirs).deserialize(r)
32953 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32955 if err := pcall(func() {
32959 //mt:if %s.Type == MountedBox
32960 WallTop, WallBot, WallSides Box
32962 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32965 //mt:if %s.Type == ConnectedBox
32966 ConnDirs, DiscoDirs DirBoxes
32967 DiscoAll, DiscoSides []Box
32968 }))(obj)).DiscoDirs).deserialize(r)
32973 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32975 var local383 uint16
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)).DiscoAll) = make([]Box, local383)
32993 for local384 := range (*(*(struct {
32996 //mt:if %s.Type == MountedBox
32997 WallTop, WallBot, WallSides Box
32999 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33002 //mt:if %s.Type == ConnectedBox
33003 ConnDirs, DiscoDirs DirBoxes
33004 DiscoAll, DiscoSides []Box
33005 }))(obj)).DiscoAll {
33006 if err := pcall(func() {
33010 //mt:if %s.Type == MountedBox
33011 WallTop, WallBot, WallSides Box
33013 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33016 //mt:if %s.Type == ConnectedBox
33017 ConnDirs, DiscoDirs DirBoxes
33018 DiscoAll, DiscoSides []Box
33019 }))(obj)).DiscoAll)[local384]).deserialize(r)
33024 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33027 var local385 uint16
33035 //mt:if %s.Type == MountedBox
33036 WallTop, WallBot, WallSides Box
33038 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33041 //mt:if %s.Type == ConnectedBox
33042 ConnDirs, DiscoDirs DirBoxes
33043 DiscoAll, DiscoSides []Box
33044 }))(obj)).DiscoSides) = make([]Box, local385)
33045 for local386 := range (*(*(struct {
33048 //mt:if %s.Type == MountedBox
33049 WallTop, WallBot, WallSides Box
33051 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33054 //mt:if %s.Type == ConnectedBox
33055 ConnDirs, DiscoDirs DirBoxes
33056 DiscoAll, DiscoSides []Box
33057 }))(obj)).DiscoSides {
33058 if err := pcall(func() {
33062 //mt:if %s.Type == MountedBox
33063 WallTop, WallBot, WallSides Box
33065 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33068 //mt:if %s.Type == ConnectedBox
33069 ConnDirs, DiscoDirs DirBoxes
33070 DiscoAll, DiscoSides []Box
33071 }))(obj)).DiscoSides)[local386]).deserialize(r)
33076 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33082 func (obj *SoundDef) serialize(w io.Writer) {
33083 if len(([]byte((*(*(struct {
33085 Gain, Pitch, Fade float32
33086 }))(obj)).Name))) > math.MaxUint16 {
33090 x := uint16(len(([]byte((*(*(struct {
33092 Gain, Pitch, Fade float32
33094 write16(w, uint16(x))
33097 _, err := w.Write(([]byte((*(*(struct {
33099 Gain, Pitch, Fade float32
33100 }))(obj)).Name))[:])
33106 Gain, Pitch, Fade float32
33108 write32(w, math.Float32bits(x))
33113 Gain, Pitch, Fade float32
33115 write32(w, math.Float32bits(x))
33120 Gain, Pitch, Fade float32
33122 write32(w, math.Float32bits(x))
33126 func (obj *SoundDef) deserialize(r io.Reader) {
33127 var local387 []uint8
33128 var local388 uint16
33133 (local387) = make([]uint8, local388)
33135 _, err := io.ReadFull(r, (local387)[:])
33140 Gain, Pitch, Fade float32
33141 }))(obj)).Name) = string(local387)
33143 p := &(*(*(struct {
33145 Gain, Pitch, Fade float32
33147 *p = math.Float32frombits(read32(r))
33150 p := &(*(*(struct {
33152 Gain, Pitch, Fade float32
33154 *p = math.Float32frombits(read32(r))
33157 p := &(*(*(struct {
33159 Gain, Pitch, Fade float32
33161 *p = math.Float32frombits(read32(r))
33165 func (obj *AlphaUse) serialize(w io.Writer) {
33167 x := *(*(uint8))(obj)
33168 write8(w, uint8(x))
33172 func (obj *AlphaUse) deserialize(r io.Reader) {
33174 p := &*(*(uint8))(obj)
33179 func (obj *Keys) serialize(w io.Writer) {
33181 x := *(*(uint32))(obj)
33182 write32(w, uint32(x))
33186 func (obj *Keys) deserialize(r io.Reader) {
33188 p := &*(*(uint32))(obj)
33193 func (obj *MapBlkFlags) serialize(w io.Writer) {
33195 x := *(*(uint8))(obj)
33196 write8(w, uint8(x))
33200 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33202 p := &*(*(uint8))(obj)
33207 func (obj *LitFromBlks) serialize(w io.Writer) {
33209 x := *(*(uint16))(obj)
33210 write16(w, uint16(x))
33214 func (obj *LitFromBlks) deserialize(r io.Reader) {
33216 p := &*(*(uint16))(obj)
33221 func (obj *AOInitData) serialize(w io.Writer) {
33223 local389 := uint8(1)
33226 write8(w, uint8(x))
33229 if len(([]byte((*(*(struct {
33242 // See (de)serialize.fmt.
33244 }))(obj)).Name))) > math.MaxUint16 {
33248 x := uint16(len(([]byte((*(*(struct {
33261 // See (de)serialize.fmt.
33264 write16(w, uint16(x))
33267 _, err := w.Write(([]byte((*(*(struct {
33280 // See (de)serialize.fmt.
33282 }))(obj)).Name))[:])
33299 // See (de)serialize.fmt.
33309 if err := pcall(func() {
33323 // See (de)serialize.fmt.
33325 }))(obj)).ID).serialize(w)
33330 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33332 if err := pcall(func() {
33346 // See (de)serialize.fmt.
33348 }))(obj)).Pos).serialize(w)
33353 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33355 for local390 := range (*(*(struct {
33368 // See (de)serialize.fmt.
33372 x := ((*(*(struct {
33385 // See (de)serialize.fmt.
33387 }))(obj)).Rot)[local390]
33388 write32(w, math.Float32bits(x))
33405 // See (de)serialize.fmt.
33408 write16(w, uint16(x))
33424 // See (de)serialize.fmt.
33427 { // For AOInitData.Msgs.
33428 if len(x) > math.MaxUint8 {
33431 write8(w, uint8(len(x)))
33432 for _, msg := range x {
33434 chk(writeAOMsg(&b, msg))
33435 if b.Len() > math.MaxUint32 {
33438 write32(w, uint32(b.Len()))
33439 _, err := b.WriteTo(w)
33447 func (obj *AOInitData) deserialize(r io.Reader) {
33450 local392 := uint8(1)
33455 if local391 != local392 {
33456 chk(fmt.Errorf("const %v: %v", "uint8(1)", local391))
33459 var local393 []uint8
33460 var local394 uint16
33465 (local393) = make([]uint8, local394)
33467 _, err := io.ReadFull(r, (local393)[:])
33483 // See (de)serialize.fmt.
33485 }))(obj)).Name) = string(local393)
33487 p := &(*(*(struct {
33500 // See (de)serialize.fmt.
33503 switch n := read8(r); n {
33509 chk(fmt.Errorf("invalid bool: %d", n))
33513 if err := pcall(func() {
33527 // See (de)serialize.fmt.
33529 }))(obj)).ID).deserialize(r)
33534 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33536 if err := pcall(func() {
33550 // See (de)serialize.fmt.
33552 }))(obj)).Pos).deserialize(r)
33557 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33559 for local395 := range (*(*(struct {
33572 // See (de)serialize.fmt.
33576 p := &((*(*(struct {
33589 // See (de)serialize.fmt.
33591 }))(obj)).Rot)[local395]
33592 *p = math.Float32frombits(read32(r))
33596 p := &(*(*(struct {
33609 // See (de)serialize.fmt.
33615 p := &(*(*(struct {
33628 // See (de)serialize.fmt.
33631 { // For AOInitData.Msgs.
33632 *p = make([]AOMsg, read8(r))
33633 for i := range *p {
33634 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33635 msg, err := readAOMsg(r)
33639 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33647 func (obj *ItemType) serialize(w io.Writer) {
33649 x := *(*(uint8))(obj)
33650 write8(w, uint8(x))
33654 func (obj *ItemType) deserialize(r io.Reader) {
33656 p := &*(*(uint8))(obj)
33661 func (obj *ToolCaps) serialize(w io.Writer) {
33662 if _ = (*(*(struct {
33663 //mt:if _ = %s; false
33666 AttackCooldown float32
33670 GroupCaps []ToolGroupCap
33680 //mt:if _ = %s; false
33683 AttackCooldown float32
33687 GroupCaps []ToolGroupCap
33705 w := new(bytes.Buffer)
33707 if r.N > 0 { (*(*(struct {
33708 //mt:if _ = %s; false
33711 AttackCooldown float32
33715 GroupCaps []ToolGroupCap
33722 }))(obj)).NonNil = true}; /**/{
33724 //mt:if _ = %s; false
33727 AttackCooldown float32
33731 GroupCaps []ToolGroupCap
33740 local396 := uint8(5)
33743 write8(w, uint8(x))
33748 //mt:if _ = %s; false
33751 AttackCooldown float32
33755 GroupCaps []ToolGroupCap
33762 }))(obj)).AttackCooldown
33763 write32(w, math.Float32bits(x))
33767 //mt:if _ = %s; false
33770 AttackCooldown float32
33774 GroupCaps []ToolGroupCap
33781 }))(obj)).MaxDropLvl
33782 write16(w, uint16(x))
33784 if len(((*(*(struct {
33785 //mt:if _ = %s; false
33788 AttackCooldown float32
33792 GroupCaps []ToolGroupCap
33799 }))(obj)).GroupCaps)) > math.MaxUint32 {
33803 x := uint32(len(((*(*(struct {
33804 //mt:if _ = %s; false
33807 AttackCooldown float32
33811 GroupCaps []ToolGroupCap
33818 }))(obj)).GroupCaps)))
33819 write32(w, uint32(x))
33821 for local397 := range (*(*(struct {
33822 //mt:if _ = %s; false
33825 AttackCooldown float32
33829 GroupCaps []ToolGroupCap
33836 }))(obj)).GroupCaps {
33837 if err := pcall(func() {
33839 //mt:if _ = %s; false
33842 AttackCooldown float32
33846 GroupCaps []ToolGroupCap
33853 }))(obj)).GroupCaps)[local397]).serialize(w)
33858 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
33861 if len(((*(*(struct {
33862 //mt:if _ = %s; false
33865 AttackCooldown float32
33869 GroupCaps []ToolGroupCap
33876 }))(obj)).DmgGroups)) > math.MaxUint32 {
33880 x := uint32(len(((*(*(struct {
33881 //mt:if _ = %s; false
33884 AttackCooldown float32
33888 GroupCaps []ToolGroupCap
33895 }))(obj)).DmgGroups)))
33896 write32(w, uint32(x))
33898 for local398 := range (*(*(struct {
33899 //mt:if _ = %s; false
33902 AttackCooldown float32
33906 GroupCaps []ToolGroupCap
33913 }))(obj)).DmgGroups {
33914 if err := pcall(func() {
33916 //mt:if _ = %s; false
33919 AttackCooldown float32
33923 GroupCaps []ToolGroupCap
33930 }))(obj)).DmgGroups)[local398]).serialize(w)
33935 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
33939 x := uint16((*(*(struct {
33940 //mt:if _ = %s; false
33943 AttackCooldown float32
33947 GroupCaps []ToolGroupCap
33954 }))(obj)).PunchUses)
33955 write16(w, uint16(x))
33962 if len((buf.Bytes())) > math.MaxUint16 {
33966 x := uint16(len((buf.Bytes())))
33967 write16(w, uint16(x))
33970 _, err := w.Write((buf.Bytes())[:])
33977 func (obj *ToolCaps) deserialize(r io.Reader) {
33978 if _ = (*(*(struct {
33979 //mt:if _ = %s; false
33982 AttackCooldown float32
33986 GroupCaps []ToolGroupCap
33995 p := &(*(*(struct {
33996 //mt:if _ = %s; false
33999 AttackCooldown float32
34003 GroupCaps []ToolGroupCap
34011 switch n := read8(r); n {
34017 chk(fmt.Errorf("invalid bool: %d", n))
34028 r := &io.LimitedReader{R: r, N: int64(n)}
34031 //mt:if _ = %s; false
34034 AttackCooldown float32
34038 GroupCaps []ToolGroupCap
34045 }))(obj)).NonNil = true
34049 //mt:if _ = %s; false
34052 AttackCooldown float32
34056 GroupCaps []ToolGroupCap
34066 local400 := uint8(5)
34071 if local399 != local400 {
34072 chk(fmt.Errorf("const %v: %v", "uint8(5)", local399))
34076 p := &(*(*(struct {
34077 //mt:if _ = %s; false
34080 AttackCooldown float32
34084 GroupCaps []ToolGroupCap
34091 }))(obj)).AttackCooldown
34092 *p = math.Float32frombits(read32(r))
34095 p := &(*(*(struct {
34096 //mt:if _ = %s; false
34099 AttackCooldown float32
34103 GroupCaps []ToolGroupCap
34110 }))(obj)).MaxDropLvl
34111 *p = int16(read16(r))
34113 var local401 uint32
34119 //mt:if _ = %s; false
34122 AttackCooldown float32
34126 GroupCaps []ToolGroupCap
34133 }))(obj)).GroupCaps) = make([]ToolGroupCap, local401)
34134 for local402 := range (*(*(struct {
34135 //mt:if _ = %s; false
34138 AttackCooldown float32
34142 GroupCaps []ToolGroupCap
34149 }))(obj)).GroupCaps {
34150 if err := pcall(func() {
34152 //mt:if _ = %s; false
34155 AttackCooldown float32
34159 GroupCaps []ToolGroupCap
34166 }))(obj)).GroupCaps)[local402]).deserialize(r)
34171 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
34174 var local403 uint32
34180 //mt:if _ = %s; false
34183 AttackCooldown float32
34187 GroupCaps []ToolGroupCap
34194 }))(obj)).DmgGroups) = make([]Group, local403)
34195 for local404 := range (*(*(struct {
34196 //mt:if _ = %s; false
34199 AttackCooldown float32
34203 GroupCaps []ToolGroupCap
34210 }))(obj)).DmgGroups {
34211 if err := pcall(func() {
34213 //mt:if _ = %s; false
34216 AttackCooldown float32
34220 GroupCaps []ToolGroupCap
34227 }))(obj)).DmgGroups)[local404]).deserialize(r)
34232 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
34235 var local405 uint16
34241 //mt:if _ = %s; false
34244 AttackCooldown float32
34248 GroupCaps []ToolGroupCap
34255 }))(obj)).PunchUses = int32(local405)
34259 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34264 func (obj *AnimType) serialize(w io.Writer) {
34266 x := *(*(uint8))(obj)
34267 write8(w, uint8(x))
34271 func (obj *AnimType) deserialize(r io.Reader) {
34273 p := &*(*(uint8))(obj)
34278 func (obj *HUDType) serialize(w io.Writer) {
34280 x := *(*(uint8))(obj)
34281 write8(w, uint8(x))
34285 func (obj *HUDType) deserialize(r io.Reader) {
34287 p := &*(*(uint8))(obj)
34292 func (obj *Box) serialize(w io.Writer) {
34293 for local406 := range *(*([2]Vec))(obj) {
34294 if err := pcall(func() {
34295 ((*(*([2]Vec))(obj))[local406]).serialize(w)
34300 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34305 func (obj *Box) deserialize(r io.Reader) {
34306 for local407 := range *(*([2]Vec))(obj) {
34307 if err := pcall(func() {
34308 ((*(*([2]Vec))(obj))[local407]).deserialize(r)
34313 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34318 func (obj *TileFlags) serialize(w io.Writer) {
34320 x := *(*(uint16))(obj)
34321 write16(w, uint16(x))
34325 func (obj *TileFlags) deserialize(r io.Reader) {
34327 p := &*(*(uint16))(obj)
34332 func (obj *AlignType) serialize(w io.Writer) {
34334 x := *(*(uint8))(obj)
34335 write8(w, uint8(x))
34339 func (obj *AlignType) deserialize(r io.Reader) {
34341 p := &*(*(uint8))(obj)
34346 func (obj *NodeBoxType) serialize(w io.Writer) {
34348 x := *(*(uint8))(obj)
34349 write8(w, uint8(x))
34353 func (obj *NodeBoxType) deserialize(r io.Reader) {
34355 p := &*(*(uint8))(obj)
34360 func (obj *DirBoxes) serialize(w io.Writer) {
34361 if len(((*(*(struct {
34363 Front, Left, Back, Right []Box
34364 }))(obj)).Top)) > math.MaxUint16 {
34368 x := uint16(len(((*(*(struct {
34370 Front, Left, Back, Right []Box
34372 write16(w, uint16(x))
34374 for local408 := range (*(*(struct {
34376 Front, Left, Back, Right []Box
34378 if err := pcall(func() {
34381 Front, Left, Back, Right []Box
34382 }))(obj)).Top)[local408]).serialize(w)
34387 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34390 if len(((*(*(struct {
34392 Front, Left, Back, Right []Box
34393 }))(obj)).Bot)) > math.MaxUint16 {
34397 x := uint16(len(((*(*(struct {
34399 Front, Left, Back, Right []Box
34401 write16(w, uint16(x))
34403 for local409 := range (*(*(struct {
34405 Front, Left, Back, Right []Box
34407 if err := pcall(func() {
34410 Front, Left, Back, Right []Box
34411 }))(obj)).Bot)[local409]).serialize(w)
34416 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34419 if len(((*(*(struct {
34421 Front, Left, Back, Right []Box
34422 }))(obj)).Front)) > 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)).Front)[local410]).serialize(w)
34445 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34448 if len(((*(*(struct {
34450 Front, Left, Back, Right []Box
34451 }))(obj)).Left)) > 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)).Left)[local411]).serialize(w)
34474 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34477 if len(((*(*(struct {
34479 Front, Left, Back, Right []Box
34480 }))(obj)).Back)) > 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)).Back)[local412]).serialize(w)
34503 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34506 if len(((*(*(struct {
34508 Front, Left, Back, Right []Box
34509 }))(obj)).Right)) > 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)).Right)[local413]).serialize(w)
34532 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34537 func (obj *DirBoxes) deserialize(r io.Reader) {
34538 var local414 uint16
34545 Front, Left, Back, Right []Box
34546 }))(obj)).Top) = make([]Box, local414)
34547 for local415 := range (*(*(struct {
34549 Front, Left, Back, Right []Box
34551 if err := pcall(func() {
34554 Front, Left, Back, Right []Box
34555 }))(obj)).Top)[local415]).deserialize(r)
34560 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34563 var local416 uint16
34570 Front, Left, Back, Right []Box
34571 }))(obj)).Bot) = make([]Box, local416)
34572 for local417 := range (*(*(struct {
34574 Front, Left, Back, Right []Box
34576 if err := pcall(func() {
34579 Front, Left, Back, Right []Box
34580 }))(obj)).Bot)[local417]).deserialize(r)
34585 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34588 var local418 uint16
34595 Front, Left, Back, Right []Box
34596 }))(obj)).Front) = make([]Box, local418)
34597 for local419 := range (*(*(struct {
34599 Front, Left, Back, Right []Box
34601 if err := pcall(func() {
34604 Front, Left, Back, Right []Box
34605 }))(obj)).Front)[local419]).deserialize(r)
34610 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34613 var local420 uint16
34620 Front, Left, Back, Right []Box
34621 }))(obj)).Left) = make([]Box, local420)
34622 for local421 := range (*(*(struct {
34624 Front, Left, Back, Right []Box
34626 if err := pcall(func() {
34629 Front, Left, Back, Right []Box
34630 }))(obj)).Left)[local421]).deserialize(r)
34635 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34638 var local422 uint16
34645 Front, Left, Back, Right []Box
34646 }))(obj)).Back) = make([]Box, local422)
34647 for local423 := range (*(*(struct {
34649 Front, Left, Back, Right []Box
34651 if err := pcall(func() {
34654 Front, Left, Back, Right []Box
34655 }))(obj)).Back)[local423]).deserialize(r)
34660 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34663 var local424 uint16
34670 Front, Left, Back, Right []Box
34671 }))(obj)).Right) = make([]Box, local424)
34672 for local425 := range (*(*(struct {
34674 Front, Left, Back, Right []Box
34676 if err := pcall(func() {
34679 Front, Left, Back, Right []Box
34680 }))(obj)).Right)[local425]).deserialize(r)
34685 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34690 func (obj *ToolGroupCap) serialize(w io.Writer) {
34691 if len(([]byte((*(*(struct {
34701 }))(obj)).Name))) > math.MaxUint16 {
34705 x := uint16(len(([]byte((*(*(struct {
34716 write16(w, uint16(x))
34719 _, err := w.Write(([]byte((*(*(struct {
34729 }))(obj)).Name))[:])
34733 x := int16((*(*(struct {
34744 write16(w, uint16(x))
34758 write16(w, uint16(x))
34760 if len(((*(*(struct {
34770 }))(obj)).Times)) > math.MaxUint32 {
34774 x := uint32(len(((*(*(struct {
34785 write32(w, uint32(x))
34787 for local426 := range (*(*(struct {
34798 if err := pcall(func() {
34809 }))(obj)).Times)[local426]).serialize(w)
34814 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
34819 func (obj *ToolGroupCap) deserialize(r io.Reader) {
34820 var local427 []uint8
34821 var local428 uint16
34826 (local427) = make([]uint8, local428)
34828 _, err := io.ReadFull(r, (local427)[:])
34841 }))(obj)).Name) = string(local427)
34845 *p = int16(read16(r))
34857 }))(obj)).Uses = int32(local429)
34859 p := &(*(*(struct {
34870 *p = int16(read16(r))
34872 var local430 uint32
34887 }))(obj)).Times) = make([]DigTime, local430)
34888 for local431 := range (*(*(struct {
34899 if err := pcall(func() {
34910 }))(obj)).Times)[local431]).deserialize(r)
34915 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
34920 func (obj *DigTime) serialize(w io.Writer) {
34926 write16(w, uint16(x))
34933 write32(w, math.Float32bits(x))
34937 func (obj *DigTime) deserialize(r io.Reader) {
34939 p := &(*(*(struct {
34943 *p = int16(read16(r))
34946 p := &(*(*(struct {
34950 *p = math.Float32frombits(read32(r))