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})
23 func write16(w io.Writer, x uint16) {
24 buf := make([]byte, 2)
26 _, err := w.Write(buf)
29 func write32(w io.Writer, x uint32) {
30 buf := make([]byte, 4)
32 _, err := w.Write(buf)
35 func write64(w io.Writer, x uint64) {
36 buf := make([]byte, 8)
38 _, err := w.Write(buf)
41 func readBuf(r io.Reader, n int) []byte {
42 buf := make([]byte, n)
43 _, err := io.ReadFull(r, buf)
47 func read8(r io.Reader) uint8 { return readBuf(r, 1)[0] }
48 func read16(r io.Reader) uint16 { return be.Uint16(readBuf(r, 2)) }
49 func read32(r io.Reader) uint32 { return be.Uint32(readBuf(r, 4)) }
50 func read64(r io.Reader) uint64 { return be.Uint64(readBuf(r, 8)) }
52 func (obj *ToSrvNil) serialize(w io.Writer) {
55 func (obj *ToSrvNil) deserialize(r io.Reader) {
58 func (obj *ToSrvInit) serialize(w io.Writer) {
62 SupportedCompression CompressionModes
63 MinProtoVer, MaxProtoVer uint16
68 }))(obj)).SerializeVer
71 if err := pcall(func() {
74 SupportedCompression CompressionModes
75 MinProtoVer, MaxProtoVer uint16
80 }))(obj)).SupportedCompression).serialize(w)
85 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
90 SupportedCompression CompressionModes
91 MinProtoVer, MaxProtoVer uint16
102 SupportedCompression CompressionModes
103 MinProtoVer, MaxProtoVer uint16
107 SendFullItemMeta bool
108 }))(obj)).MaxProtoVer
109 write16(w, uint16(x))
111 if len(([]byte((*(*(struct {
113 SupportedCompression CompressionModes
114 MinProtoVer, MaxProtoVer uint16
118 SendFullItemMeta bool
119 }))(obj)).PlayerName))) > math.MaxUint16 {
123 x := uint16(len(([]byte((*(*(struct {
125 SupportedCompression CompressionModes
126 MinProtoVer, MaxProtoVer uint16
130 SendFullItemMeta bool
131 }))(obj)).PlayerName))))
132 write16(w, uint16(x))
135 _, err := w.Write(([]byte((*(*(struct {
137 SupportedCompression CompressionModes
138 MinProtoVer, MaxProtoVer uint16
142 SendFullItemMeta bool
143 }))(obj)).PlayerName))[:])
146 if err := pcall(func() {
150 SupportedCompression CompressionModes
151 MinProtoVer, MaxProtoVer uint16
155 SendFullItemMeta bool
156 }))(obj)).SendFullItemMeta
163 }); err != nil && err != io.EOF {
168 func (obj *ToSrvInit) deserialize(r io.Reader) {
172 SupportedCompression CompressionModes
173 MinProtoVer, MaxProtoVer uint16
177 SendFullItemMeta bool
178 }))(obj)).SerializeVer
181 if err := pcall(func() {
184 SupportedCompression CompressionModes
185 MinProtoVer, MaxProtoVer uint16
189 SendFullItemMeta bool
190 }))(obj)).SupportedCompression).deserialize(r)
195 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
200 SupportedCompression CompressionModes
201 MinProtoVer, MaxProtoVer uint16
205 SendFullItemMeta bool
206 }))(obj)).MinProtoVer
212 SupportedCompression CompressionModes
213 MinProtoVer, MaxProtoVer uint16
217 SendFullItemMeta bool
218 }))(obj)).MaxProtoVer
227 (local1) = make([]uint8, local2)
229 _, err := io.ReadFull(r, (local1)[:])
234 SupportedCompression CompressionModes
235 MinProtoVer, MaxProtoVer uint16
239 SendFullItemMeta bool
240 }))(obj)).PlayerName) = string(local1)
241 if err := pcall(func() {
245 SupportedCompression CompressionModes
246 MinProtoVer, MaxProtoVer uint16
250 SendFullItemMeta bool
251 }))(obj)).SendFullItemMeta
252 switch n := read8(r); n {
258 chk(fmt.Errorf("invalid bool: %d", n))
261 }); err != nil && err != io.EOF {
266 func (obj *ToSrvInit2) serialize(w io.Writer) {
267 if len(([]byte((*(*(struct {
269 }))(obj)).Lang))) > math.MaxUint16 {
273 x := uint16(len(([]byte((*(*(struct {
276 write16(w, uint16(x))
279 _, err := w.Write(([]byte((*(*(struct {
286 func (obj *ToSrvInit2) deserialize(r io.Reader) {
293 (local3) = make([]uint8, local4)
295 _, err := io.ReadFull(r, (local3)[:])
300 }))(obj)).Lang) = string(local3)
303 func (obj *ToSrvJoinModChan) serialize(w io.Writer) {
304 if len(([]byte((*(*(struct {
306 }))(obj)).Channel))) > math.MaxUint16 {
310 x := uint16(len(([]byte((*(*(struct {
312 }))(obj)).Channel))))
313 write16(w, uint16(x))
316 _, err := w.Write(([]byte((*(*(struct {
318 }))(obj)).Channel))[:])
323 func (obj *ToSrvJoinModChan) deserialize(r io.Reader) {
330 (local5) = make([]uint8, local6)
332 _, err := io.ReadFull(r, (local5)[:])
337 }))(obj)).Channel) = string(local5)
340 func (obj *ToSrvLeaveModChan) serialize(w io.Writer) {
341 if len(([]byte((*(*(struct {
343 }))(obj)).Channel))) > math.MaxUint16 {
347 x := uint16(len(([]byte((*(*(struct {
349 }))(obj)).Channel))))
350 write16(w, uint16(x))
353 _, err := w.Write(([]byte((*(*(struct {
355 }))(obj)).Channel))[:])
360 func (obj *ToSrvLeaveModChan) deserialize(r io.Reader) {
367 (local7) = make([]uint8, local8)
369 _, err := io.ReadFull(r, (local7)[:])
374 }))(obj)).Channel) = string(local7)
377 func (obj *ToSrvMsgModChan) serialize(w io.Writer) {
378 if len(([]byte((*(*(struct {
381 }))(obj)).Channel))) > math.MaxUint16 {
385 x := uint16(len(([]byte((*(*(struct {
388 }))(obj)).Channel))))
389 write16(w, uint16(x))
392 _, err := w.Write(([]byte((*(*(struct {
395 }))(obj)).Channel))[:])
398 if len(([]byte((*(*(struct {
401 }))(obj)).Msg))) > math.MaxUint16 {
405 x := uint16(len(([]byte((*(*(struct {
409 write16(w, uint16(x))
412 _, err := w.Write(([]byte((*(*(struct {
420 func (obj *ToSrvMsgModChan) deserialize(r io.Reader) {
427 (local9) = make([]uint8, local10)
429 _, err := io.ReadFull(r, (local9)[:])
435 }))(obj)).Channel) = string(local9)
442 (local11) = make([]uint8, local12)
444 _, err := io.ReadFull(r, (local11)[:])
450 }))(obj)).Msg) = string(local11)
453 func (obj *ToSrvPlayerPos) serialize(w io.Writer) {
454 if err := pcall(func() {
457 }))(obj)).Pos).serialize(w)
462 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
466 func (obj *ToSrvPlayerPos) deserialize(r io.Reader) {
467 if err := pcall(func() {
470 }))(obj)).Pos).deserialize(r)
475 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
479 func (obj *ToSrvGotBlks) serialize(w io.Writer) {
480 if len(((*(*(struct {
483 }))(obj)).Blks)) > math.MaxUint8 {
487 x := uint8(len(((*(*(struct {
493 for local13 := range (*(*(struct {
497 for local14 := range ((*(*(struct {
500 }))(obj)).Blks)[local13] {
505 }))(obj)).Blks)[local13])[local14]
506 write16(w, uint16(x))
512 func (obj *ToSrvGotBlks) deserialize(r io.Reader) {
521 }))(obj)).Blks) = make([][3]int16, local15)
522 for local16 := range (*(*(struct {
526 for local17 := range ((*(*(struct {
529 }))(obj)).Blks)[local16] {
531 p := &(((*(*(struct {
534 }))(obj)).Blks)[local16])[local17]
535 *p = int16(read16(r))
541 func (obj *ToSrvDeletedBlks) serialize(w io.Writer) {
542 if len(((*(*(struct {
545 }))(obj)).Blks)) > math.MaxUint8 {
549 x := uint8(len(((*(*(struct {
555 for local18 := range (*(*(struct {
559 for local19 := range ((*(*(struct {
562 }))(obj)).Blks)[local18] {
567 }))(obj)).Blks)[local18])[local19]
568 write16(w, uint16(x))
574 func (obj *ToSrvDeletedBlks) deserialize(r io.Reader) {
583 }))(obj)).Blks) = make([][3]int16, local20)
584 for local21 := range (*(*(struct {
588 for local22 := range ((*(*(struct {
591 }))(obj)).Blks)[local21] {
593 p := &(((*(*(struct {
596 }))(obj)).Blks)[local21])[local22]
597 *p = int16(read16(r))
603 func (obj *ToSrvInvAction) serialize(w io.Writer) {
605 _, err := w.Write(([]byte((*(*(struct {
608 }))(obj)).Action))[:])
613 func (obj *ToSrvInvAction) deserialize(r io.Reader) {
617 (local23), err = io.ReadAll(r)
623 }))(obj)).Action) = string(local23)
626 func (obj *ToSrvChatMsg) serialize(w io.Writer) {
627 local24 := utf16.Encode([]rune((*(*(struct {
631 if len((local24)) > math.MaxUint16 {
635 x := uint16(len((local24)))
636 write16(w, uint16(x))
638 for local25 := range local24 {
640 x := (local24)[local25]
641 write16(w, uint16(x))
646 func (obj *ToSrvChatMsg) deserialize(r io.Reader) {
653 (local26) = make([]uint16, local27)
654 for local28 := range local26 {
656 p := &(local26)[local28]
663 }))(obj)).Msg = string(utf16.Decode(local26))
666 func (obj *ToSrvFallDmg) serialize(w io.Writer) {
671 write16(w, uint16(x))
675 func (obj *ToSrvFallDmg) deserialize(r io.Reader) {
684 func (obj *ToSrvSelectItem) serialize(w io.Writer) {
689 write16(w, uint16(x))
693 func (obj *ToSrvSelectItem) deserialize(r io.Reader) {
702 func (obj *ToSrvRespawn) serialize(w io.Writer) {
705 func (obj *ToSrvRespawn) deserialize(r io.Reader) {
708 func (obj *ToSrvInteract) serialize(w io.Writer) {
709 if err := pcall(func() {
717 }))(obj)).Action).serialize(w)
722 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Interaction", err))
733 write16(w, uint16(x))
737 w := new(bytes.Buffer)
747 chk(writePointedThing(w, x))
752 if len((buf.Bytes())) > math.MaxUint32 {
756 x := uint32(len((buf.Bytes())))
757 write32(w, uint32(x))
760 _, err := w.Write((buf.Bytes())[:])
765 if err := pcall(func() {
773 }))(obj)).Pos).serialize(w)
778 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
782 func (obj *ToSrvInteract) deserialize(r io.Reader) {
783 if err := pcall(func() {
791 }))(obj)).Action).deserialize(r)
796 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Interaction", err))
815 r := &io.LimitedReader{R: r, N: int64(n)}
827 *p, err = readPointedThing(r)
832 chk(fmt.Errorf("%d bytes of trailing data", r.N))
835 if err := pcall(func() {
843 }))(obj)).Pos).deserialize(r)
848 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerPos", err))
852 func (obj *ToSrvRemovedSounds) serialize(w io.Writer) {
853 if len(((*(*(struct {
855 }))(obj)).IDs)) > math.MaxUint16 {
859 x := uint16(len(((*(*(struct {
862 write16(w, uint16(x))
864 for local29 := range (*(*(struct {
867 if err := pcall(func() {
870 }))(obj)).IDs)[local29]).serialize(w)
875 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
880 func (obj *ToSrvRemovedSounds) deserialize(r io.Reader) {
888 }))(obj)).IDs) = make([]SoundID, local30)
889 for local31 := range (*(*(struct {
892 if err := pcall(func() {
895 }))(obj)).IDs)[local31]).deserialize(r)
900 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
905 func (obj *ToSrvNodeMetaFields) serialize(w io.Writer) {
906 for local32 := range (*(*(struct {
916 }))(obj)).Pos)[local32]
917 write16(w, uint16(x))
920 if len(([]byte((*(*(struct {
924 }))(obj)).Formname))) > math.MaxUint16 {
928 x := uint16(len(([]byte((*(*(struct {
932 }))(obj)).Formname))))
933 write16(w, uint16(x))
936 _, err := w.Write(([]byte((*(*(struct {
940 }))(obj)).Formname))[:])
943 if len(((*(*(struct {
947 }))(obj)).Fields)) > math.MaxUint16 {
951 x := uint16(len(((*(*(struct {
956 write16(w, uint16(x))
958 for local33 := range (*(*(struct {
963 if err := pcall(func() {
968 }))(obj)).Fields)[local33]).serialize(w)
973 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
978 func (obj *ToSrvNodeMetaFields) deserialize(r io.Reader) {
979 for local34 := range (*(*(struct {
989 }))(obj)).Pos)[local34]
990 *p = int16(read16(r))
999 (local35) = make([]uint8, local36)
1001 _, err := io.ReadFull(r, (local35)[:])
1008 }))(obj)).Formname) = string(local35)
1018 }))(obj)).Fields) = make([]Field, local37)
1019 for local38 := range (*(*(struct {
1024 if err := pcall(func() {
1029 }))(obj)).Fields)[local38]).deserialize(r)
1034 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1039 func (obj *ToSrvInvFields) serialize(w io.Writer) {
1040 if len(([]byte((*(*(struct {
1043 }))(obj)).Formname))) > math.MaxUint16 {
1047 x := uint16(len(([]byte((*(*(struct {
1050 }))(obj)).Formname))))
1051 write16(w, uint16(x))
1054 _, err := w.Write(([]byte((*(*(struct {
1057 }))(obj)).Formname))[:])
1060 if len(((*(*(struct {
1063 }))(obj)).Fields)) > math.MaxUint16 {
1067 x := uint16(len(((*(*(struct {
1071 write16(w, uint16(x))
1073 for local39 := range (*(*(struct {
1077 if err := pcall(func() {
1081 }))(obj)).Fields)[local39]).serialize(w)
1086 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1091 func (obj *ToSrvInvFields) deserialize(r io.Reader) {
1098 (local40) = make([]uint8, local41)
1100 _, err := io.ReadFull(r, (local40)[:])
1106 }))(obj)).Formname) = string(local40)
1115 }))(obj)).Fields) = make([]Field, local42)
1116 for local43 := range (*(*(struct {
1120 if err := pcall(func() {
1124 }))(obj)).Fields)[local43]).deserialize(r)
1129 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
1134 func (obj *ToSrvReqMedia) serialize(w io.Writer) {
1135 if len(((*(*(struct {
1137 }))(obj)).Filenames)) > math.MaxUint16 {
1141 x := uint16(len(((*(*(struct {
1143 }))(obj)).Filenames)))
1144 write16(w, uint16(x))
1146 for local44 := range (*(*(struct {
1148 }))(obj)).Filenames {
1149 if len(([]byte(((*(*(struct {
1151 }))(obj)).Filenames)[local44]))) > math.MaxUint16 {
1155 x := uint16(len(([]byte(((*(*(struct {
1157 }))(obj)).Filenames)[local44]))))
1158 write16(w, uint16(x))
1161 _, err := w.Write(([]byte(((*(*(struct {
1163 }))(obj)).Filenames)[local44]))[:])
1169 func (obj *ToSrvReqMedia) deserialize(r io.Reader) {
1177 }))(obj)).Filenames) = make([]string, local45)
1178 for local46 := range (*(*(struct {
1180 }))(obj)).Filenames {
1187 (local47) = make([]uint8, local48)
1189 _, err := io.ReadFull(r, (local47)[:])
1194 }))(obj)).Filenames)[local46]) = string(local47)
1198 func (obj *ToSrvCltReady) serialize(w io.Writer) {
1201 // Version information.
1202 Major, Minor, Patch uint8
1211 // Version information.
1212 Major, Minor, Patch uint8
1221 // Version information.
1222 Major, Minor, Patch uint8
1231 // Version information.
1232 Major, Minor, Patch uint8
1239 if len(([]byte((*(*(struct {
1240 // Version information.
1241 Major, Minor, Patch uint8
1245 }))(obj)).Version))) > math.MaxUint16 {
1249 x := uint16(len(([]byte((*(*(struct {
1250 // Version information.
1251 Major, Minor, Patch uint8
1255 }))(obj)).Version))))
1256 write16(w, uint16(x))
1259 _, err := w.Write(([]byte((*(*(struct {
1260 // Version information.
1261 Major, Minor, Patch uint8
1265 }))(obj)).Version))[:])
1270 // Version information.
1271 Major, Minor, Patch uint8
1276 write16(w, uint16(x))
1280 func (obj *ToSrvCltReady) deserialize(r io.Reader) {
1283 // Version information.
1284 Major, Minor, Patch uint8
1293 // Version information.
1294 Major, Minor, Patch uint8
1303 // Version information.
1304 Major, Minor, Patch uint8
1313 // Version information.
1314 Major, Minor, Patch uint8
1327 (local49) = make([]uint8, local50)
1329 _, err := io.ReadFull(r, (local49)[:])
1333 // Version information.
1334 Major, Minor, Patch uint8
1338 }))(obj)).Version) = string(local49)
1341 // Version information.
1342 Major, Minor, Patch uint8
1351 func (obj *ToSrvFirstSRP) serialize(w io.Writer) {
1352 if len(((*(*(struct {
1356 }))(obj)).Salt)) > math.MaxUint16 {
1360 x := uint16(len(((*(*(struct {
1365 write16(w, uint16(x))
1368 _, err := w.Write(((*(*(struct {
1375 if len(((*(*(struct {
1379 }))(obj)).Verifier)) > math.MaxUint16 {
1383 x := uint16(len(((*(*(struct {
1387 }))(obj)).Verifier)))
1388 write16(w, uint16(x))
1391 _, err := w.Write(((*(*(struct {
1395 }))(obj)).Verifier)[:])
1403 }))(obj)).EmptyPasswd
1412 func (obj *ToSrvFirstSRP) deserialize(r io.Reader) {
1422 }))(obj)).Salt) = make([]byte, local51)
1424 _, err := io.ReadFull(r, ((*(*(struct {
1440 }))(obj)).Verifier) = make([]byte, local52)
1442 _, err := io.ReadFull(r, ((*(*(struct {
1446 }))(obj)).Verifier)[:])
1454 }))(obj)).EmptyPasswd
1455 switch n := read8(r); n {
1461 chk(fmt.Errorf("invalid bool: %d", n))
1466 func (obj *ToSrvSRPBytesA) serialize(w io.Writer) {
1467 if len(((*(*(struct {
1470 }))(obj)).A)) > math.MaxUint16 {
1474 x := uint16(len(((*(*(struct {
1478 write16(w, uint16(x))
1481 _, err := w.Write(((*(*(struct {
1500 func (obj *ToSrvSRPBytesA) deserialize(r io.Reader) {
1509 }))(obj)).A) = make([]byte, local53)
1511 _, err := io.ReadFull(r, ((*(*(struct {
1522 switch n := read8(r); n {
1528 chk(fmt.Errorf("invalid bool: %d", n))
1533 func (obj *ToSrvSRPBytesM) serialize(w io.Writer) {
1534 if len(((*(*(struct {
1536 }))(obj)).M)) > math.MaxUint16 {
1540 x := uint16(len(((*(*(struct {
1543 write16(w, uint16(x))
1546 _, err := w.Write(((*(*(struct {
1553 func (obj *ToSrvSRPBytesM) deserialize(r io.Reader) {
1561 }))(obj)).M) = make([]byte, local54)
1563 _, err := io.ReadFull(r, ((*(*(struct {
1570 func (obj *ToCltHello) serialize(w io.Writer) {
1574 Compression CompressionModes
1578 }))(obj)).SerializeVer
1581 if err := pcall(func() {
1584 Compression CompressionModes
1588 }))(obj)).Compression).serialize(w)
1593 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
1598 Compression CompressionModes
1603 write16(w, uint16(x))
1605 if err := pcall(func() {
1608 Compression CompressionModes
1612 }))(obj)).AuthMethods).serialize(w)
1617 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1619 if len(([]byte((*(*(struct {
1621 Compression CompressionModes
1625 }))(obj)).Username))) > math.MaxUint16 {
1629 x := uint16(len(([]byte((*(*(struct {
1631 Compression CompressionModes
1635 }))(obj)).Username))))
1636 write16(w, uint16(x))
1639 _, err := w.Write(([]byte((*(*(struct {
1641 Compression CompressionModes
1645 }))(obj)).Username))[:])
1650 func (obj *ToCltHello) deserialize(r io.Reader) {
1654 Compression CompressionModes
1658 }))(obj)).SerializeVer
1661 if err := pcall(func() {
1664 Compression CompressionModes
1668 }))(obj)).Compression).deserialize(r)
1673 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CompressionModes", err))
1678 Compression CompressionModes
1685 if err := pcall(func() {
1688 Compression CompressionModes
1692 }))(obj)).AuthMethods).deserialize(r)
1697 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1705 (local55) = make([]uint8, local56)
1707 _, err := io.ReadFull(r, (local55)[:])
1712 Compression CompressionModes
1716 }))(obj)).Username) = string(local55)
1719 func (obj *ToCltAcceptAuth) serialize(w io.Writer) {
1720 if err := pcall(func() {
1722 // The client does the equivalent of
1723 // PlayerPos[1] -= 5
1724 // before using PlayerPos.
1728 SendInterval float32
1729 SudoAuthMethods AuthMethods
1730 }))(obj)).PlayerPos).serialize(w)
1735 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
1739 // The client does the equivalent of
1740 // PlayerPos[1] -= 5
1741 // before using PlayerPos.
1745 SendInterval float32
1746 SudoAuthMethods AuthMethods
1748 write64(w, uint64(x))
1752 // The client does the equivalent of
1753 // PlayerPos[1] -= 5
1754 // before using PlayerPos.
1758 SendInterval float32
1759 SudoAuthMethods AuthMethods
1760 }))(obj)).SendInterval
1761 write32(w, math.Float32bits(x))
1763 if err := pcall(func() {
1765 // The client does the equivalent of
1766 // PlayerPos[1] -= 5
1767 // before using PlayerPos.
1771 SendInterval float32
1772 SudoAuthMethods AuthMethods
1773 }))(obj)).SudoAuthMethods).serialize(w)
1778 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1782 func (obj *ToCltAcceptAuth) deserialize(r io.Reader) {
1783 if err := pcall(func() {
1785 // The client does the equivalent of
1786 // PlayerPos[1] -= 5
1787 // before using PlayerPos.
1791 SendInterval float32
1792 SudoAuthMethods AuthMethods
1793 }))(obj)).PlayerPos).deserialize(r)
1798 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
1802 // The client does the equivalent of
1803 // PlayerPos[1] -= 5
1804 // before using PlayerPos.
1808 SendInterval float32
1809 SudoAuthMethods AuthMethods
1815 // The client does the equivalent of
1816 // PlayerPos[1] -= 5
1817 // before using PlayerPos.
1821 SendInterval float32
1822 SudoAuthMethods AuthMethods
1823 }))(obj)).SendInterval
1824 *p = math.Float32frombits(read32(r))
1826 if err := pcall(func() {
1828 // The client does the equivalent of
1829 // PlayerPos[1] -= 5
1830 // before using PlayerPos.
1834 SendInterval float32
1835 SudoAuthMethods AuthMethods
1836 }))(obj)).SudoAuthMethods).deserialize(r)
1841 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1845 func (obj *ToCltAcceptSudoMode) serialize(w io.Writer) {
1846 if err := pcall(func() {
1848 SudoAuthMethods AuthMethods
1849 }))(obj)).SudoAuthMethods).serialize(w)
1854 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1857 local57 := [15]byte{}
1859 _, err := w.Write((local57)[:])
1865 func (obj *ToCltAcceptSudoMode) deserialize(r io.Reader) {
1866 if err := pcall(func() {
1868 SudoAuthMethods AuthMethods
1869 }))(obj)).SudoAuthMethods).deserialize(r)
1874 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AuthMethods", err))
1877 var local58 [15]byte
1878 local59 := [15]byte{}
1880 _, err := io.ReadFull(r, (local58)[:])
1883 if local58 != local59 {
1884 chk(fmt.Errorf("const %v: %v", "[15]byte{}", local58))
1889 func (obj *ToCltDenySudoMode) serialize(w io.Writer) {
1892 func (obj *ToCltDenySudoMode) deserialize(r io.Reader) {
1895 func (obj *ToCltKick) serialize(w io.Writer) {
1896 if err := pcall(func() {
1900 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1903 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1905 }))(obj)).Reason).serialize(w)
1910 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.KickReason", err))
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 < maxKickReason) {
1921 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
1923 if dr := (*(*(struct {
1926 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1929 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1931 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
1932 if len(([]byte((*(*(struct {
1935 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1938 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1940 }))(obj)).Custom))) > math.MaxUint16 {
1944 x := uint16(len(([]byte((*(*(struct {
1947 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1950 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1952 }))(obj)).Custom))))
1953 write16(w, uint16(x))
1956 _, err := w.Write(([]byte((*(*(struct {
1959 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1962 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1964 }))(obj)).Custom))[:])
1968 if dr := (*(*(struct {
1971 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1974 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1976 }))(obj)).Reason; dr == Shutdown || dr == Crash {
1981 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
1984 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
1996 func (obj *ToCltKick) deserialize(r io.Reader) {
1997 if err := pcall(func() {
2001 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2004 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2006 }))(obj)).Reason).deserialize(r)
2011 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.KickReason", err))
2016 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2019 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2021 }))(obj)).Reason < maxKickReason) {
2022 chk(errors.New("assertion failed: %s.Reason < maxKickReason"))
2024 if dr := (*(*(struct {
2027 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2030 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2032 }))(obj)).Reason; dr == Custom || dr == Shutdown || dr == Crash {
2039 (local60) = make([]uint8, local61)
2041 _, err := io.ReadFull(r, (local60)[:])
2047 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2050 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2052 }))(obj)).Custom) = string(local60)
2054 if dr := (*(*(struct {
2057 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2060 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2062 }))(obj)).Reason; dr == Shutdown || dr == Crash {
2067 //mt:if dr := %s.Reason; dr == Custom || dr == Shutdown || dr == Crash
2070 //mt:if dr := %s.Reason; dr == Shutdown || dr == Crash
2073 switch n := read8(r); n {
2079 chk(fmt.Errorf("invalid bool: %d", n))
2085 func (obj *ToCltBlkData) serialize(w io.Writer) {
2086 for local62 := range (*(*(struct {
2094 }))(obj)).Blkpos)[local62]
2095 write16(w, uint16(x))
2098 if err := pcall(func() {
2102 }))(obj)).Blk).serialize(w)
2107 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlk", err))
2111 func (obj *ToCltBlkData) deserialize(r io.Reader) {
2112 for local63 := range (*(*(struct {
2117 p := &((*(*(struct {
2120 }))(obj)).Blkpos)[local63]
2121 *p = int16(read16(r))
2124 if err := pcall(func() {
2128 }))(obj)).Blk).deserialize(r)
2133 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlk", err))
2137 func (obj *ToCltAddNode) serialize(w io.Writer) {
2138 for local64 := range (*(*(struct {
2148 }))(obj)).Pos)[local64]
2149 write16(w, uint16(x))
2152 if err := pcall(func() {
2157 }))(obj)).Node).serialize(w)
2162 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Node", err))
2178 func (obj *ToCltAddNode) deserialize(r io.Reader) {
2179 for local65 := range (*(*(struct {
2185 p := &((*(*(struct {
2189 }))(obj)).Pos)[local65]
2190 *p = int16(read16(r))
2193 if err := pcall(func() {
2198 }))(obj)).Node).deserialize(r)
2203 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Node", err))
2211 switch n := read8(r); n {
2217 chk(fmt.Errorf("invalid bool: %d", n))
2222 func (obj *ToCltRemoveNode) serialize(w io.Writer) {
2223 for local66 := range (*(*(struct {
2229 }))(obj)).Pos)[local66]
2230 write16(w, uint16(x))
2235 func (obj *ToCltRemoveNode) deserialize(r io.Reader) {
2236 for local67 := range (*(*(struct {
2240 p := &((*(*(struct {
2242 }))(obj)).Pos)[local67]
2243 *p = int16(read16(r))
2248 func (obj *ToCltInv) serialize(w io.Writer) {
2250 _, err := w.Write(([]byte((*(*(struct {
2258 func (obj *ToCltInv) deserialize(r io.Reader) {
2262 (local68), err = io.ReadAll(r)
2268 }))(obj)).Inv) = string(local68)
2271 func (obj *ToCltTimeOfDay) serialize(w io.Writer) {
2274 Time uint16 // %24000
2275 Speed float32 // Speed times faster than real time
2277 write16(w, uint16(x))
2281 Time uint16 // %24000
2282 Speed float32 // Speed times faster than real time
2284 write32(w, math.Float32bits(x))
2288 func (obj *ToCltTimeOfDay) deserialize(r io.Reader) {
2291 Time uint16 // %24000
2292 Speed float32 // Speed times faster than real time
2298 Time uint16 // %24000
2299 Speed float32 // Speed times faster than real time
2301 *p = math.Float32frombits(read32(r))
2305 func (obj *ToCltCSMRestrictionFlags) serialize(w io.Writer) {
2306 if err := pcall(func() {
2308 Flags CSMRestrictionFlags
2310 // MapRange is the maximum distance from the player CSMs can read the map
2311 // if Flags&LimitMapRange != 0.
2313 }))(obj)).Flags).serialize(w)
2318 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CSMRestrictionFlags", err))
2322 Flags CSMRestrictionFlags
2324 // MapRange is the maximum distance from the player CSMs can read the map
2325 // if Flags&LimitMapRange != 0.
2328 write32(w, uint32(x))
2332 func (obj *ToCltCSMRestrictionFlags) deserialize(r io.Reader) {
2333 if err := pcall(func() {
2335 Flags CSMRestrictionFlags
2337 // MapRange is the maximum distance from the player CSMs can read the map
2338 // if Flags&LimitMapRange != 0.
2340 }))(obj)).Flags).deserialize(r)
2345 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.CSMRestrictionFlags", err))
2349 Flags CSMRestrictionFlags
2351 // MapRange is the maximum distance from the player CSMs can read the map
2352 // if Flags&LimitMapRange != 0.
2359 func (obj *ToCltAddPlayerVel) serialize(w io.Writer) {
2360 if err := pcall(func() {
2363 }))(obj)).Vel).serialize(w)
2368 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
2372 func (obj *ToCltAddPlayerVel) deserialize(r io.Reader) {
2373 if err := pcall(func() {
2376 }))(obj)).Vel).deserialize(r)
2381 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
2385 func (obj *ToCltMediaPush) serialize(w io.Writer) {
2386 if len(([]byte((*(*(struct {
2389 CallbackToken uint32
2391 }))(obj)).RawHash))) > math.MaxUint16 {
2395 x := uint16(len(([]byte((*(*(struct {
2398 CallbackToken uint32
2400 }))(obj)).RawHash))))
2401 write16(w, uint16(x))
2404 _, err := w.Write(([]byte((*(*(struct {
2407 CallbackToken uint32
2409 }))(obj)).RawHash))[:])
2412 if len(([]byte((*(*(struct {
2415 CallbackToken uint32
2417 }))(obj)).Filename))) > math.MaxUint16 {
2421 x := uint16(len(([]byte((*(*(struct {
2424 CallbackToken uint32
2426 }))(obj)).Filename))))
2427 write16(w, uint16(x))
2430 _, err := w.Write(([]byte((*(*(struct {
2433 CallbackToken uint32
2435 }))(obj)).Filename))[:])
2442 CallbackToken uint32
2444 }))(obj)).CallbackToken
2445 write32(w, uint32(x))
2451 CallbackToken uint32
2453 }))(obj)).ShouldCache
2462 func (obj *ToCltMediaPush) deserialize(r io.Reader) {
2469 (local69) = make([]uint8, local70)
2471 _, err := io.ReadFull(r, (local69)[:])
2477 CallbackToken uint32
2479 }))(obj)).RawHash) = string(local69)
2486 (local71) = make([]uint8, local72)
2488 _, err := io.ReadFull(r, (local71)[:])
2494 CallbackToken uint32
2496 }))(obj)).Filename) = string(local71)
2501 CallbackToken uint32
2503 }))(obj)).CallbackToken
2510 CallbackToken uint32
2512 }))(obj)).ShouldCache
2513 switch n := read8(r); n {
2519 chk(fmt.Errorf("invalid bool: %d", n))
2524 func (obj *ToCltChatMsg) serialize(w io.Writer) {
2532 if err := pcall(func() {
2539 Timestamp int64 // Unix time.
2540 }))(obj)).Type).serialize(w)
2545 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ChatMsgType", err))
2547 local74 := utf16.Encode([]rune((*(*(struct {
2553 Timestamp int64 // Unix time.
2555 if len((local74)) > math.MaxUint16 {
2559 x := uint16(len((local74)))
2560 write16(w, uint16(x))
2562 for local75 := range local74 {
2564 x := (local74)[local75]
2565 write16(w, uint16(x))
2568 local76 := utf16.Encode([]rune((*(*(struct {
2574 Timestamp int64 // Unix time.
2576 if len((local76)) > math.MaxUint16 {
2580 x := uint16(len((local76)))
2581 write16(w, uint16(x))
2583 for local77 := range local76 {
2585 x := (local76)[local77]
2586 write16(w, uint16(x))
2596 Timestamp int64 // Unix time.
2598 write64(w, uint64(x))
2602 func (obj *ToCltChatMsg) deserialize(r io.Reader) {
2610 if local78 != local79 {
2611 chk(fmt.Errorf("const %v: %v", "uint8(1)", local78))
2614 if err := pcall(func() {
2621 Timestamp int64 // Unix time.
2622 }))(obj)).Type).deserialize(r)
2627 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ChatMsgType", err))
2629 var local80 []uint16
2635 (local80) = make([]uint16, local81)
2636 for local82 := range local80 {
2638 p := &(local80)[local82]
2648 Timestamp int64 // Unix time.
2649 }))(obj)).Sender = string(utf16.Decode(local80))
2650 var local83 []uint16
2656 (local83) = make([]uint16, local84)
2657 for local85 := range local83 {
2659 p := &(local83)[local85]
2669 Timestamp int64 // Unix time.
2670 }))(obj)).Text = string(utf16.Decode(local83))
2678 Timestamp int64 // Unix time.
2680 *p = int64(read64(r))
2684 func (obj *ToCltAORmAdd) serialize(w io.Writer) {
2685 if len(((*(*(struct {
2688 }))(obj)).Remove)) > math.MaxUint16 {
2692 x := uint16(len(((*(*(struct {
2696 write16(w, uint16(x))
2698 for local86 := range (*(*(struct {
2702 if err := pcall(func() {
2706 }))(obj)).Remove)[local86]).serialize(w)
2711 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
2714 if len(((*(*(struct {
2717 }))(obj)).Add)) > math.MaxUint16 {
2721 x := uint16(len(((*(*(struct {
2725 write16(w, uint16(x))
2727 for local87 := range (*(*(struct {
2731 if err := pcall(func() {
2735 }))(obj)).Add)[local87]).serialize(w)
2740 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAdd", err))
2745 func (obj *ToCltAORmAdd) deserialize(r io.Reader) {
2754 }))(obj)).Remove) = make([]AOID, local88)
2755 for local89 := range (*(*(struct {
2759 if err := pcall(func() {
2763 }))(obj)).Remove)[local89]).deserialize(r)
2768 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
2779 }))(obj)).Add) = make([]AOAdd, local90)
2780 for local91 := range (*(*(struct {
2784 if err := pcall(func() {
2788 }))(obj)).Add)[local91]).deserialize(r)
2793 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAdd", err))
2798 func (obj *ToCltAOMsgs) serialize(w io.Writer) {
2799 for local92 := range (*(*(struct {
2803 if err := pcall(func() {
2807 }))(obj)).Msgs)[local92]).serialize(w)
2812 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.IDAOMsg", err))
2817 func (obj *ToCltAOMsgs) deserialize(r io.Reader) {
2820 err := pcall(func() {
2821 if err := pcall(func() {
2822 (local93).deserialize(r)
2827 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.IDAOMsg", err))
2836 }))(obj)).Msgs) = append(((*(*(struct {
2839 }))(obj)).Msgs), local93)
2844 func (obj *ToCltHP) serialize(w io.Writer) {
2849 write16(w, uint16(x))
2853 func (obj *ToCltHP) deserialize(r io.Reader) {
2862 func (obj *ToCltMovePlayer) serialize(w io.Writer) {
2863 if err := pcall(func() {
2867 }))(obj)).Pos).serialize(w)
2872 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
2879 write32(w, math.Float32bits(x))
2886 write32(w, math.Float32bits(x))
2890 func (obj *ToCltMovePlayer) deserialize(r io.Reader) {
2891 if err := pcall(func() {
2895 }))(obj)).Pos).deserialize(r)
2900 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
2907 *p = math.Float32frombits(read32(r))
2914 *p = math.Float32frombits(read32(r))
2918 func (obj *ToCltLegacyKick) serialize(w io.Writer) {
2919 local94 := utf16.Encode([]rune((*(*(struct {
2923 if len((local94)) > math.MaxUint16 {
2927 x := uint16(len((local94)))
2928 write16(w, uint16(x))
2930 for local95 := range local94 {
2932 x := (local94)[local95]
2933 write16(w, uint16(x))
2938 func (obj *ToCltLegacyKick) deserialize(r io.Reader) {
2939 var local96 []uint16
2945 (local96) = make([]uint16, local97)
2946 for local98 := range local96 {
2948 p := &(local96)[local98]
2955 }))(obj)).Reason = string(utf16.Decode(local96))
2958 func (obj *ToCltFOV) serialize(w io.Writer) {
2963 TransitionTime float32
2965 write32(w, math.Float32bits(x))
2971 TransitionTime float32
2972 }))(obj)).Multiplier
2983 TransitionTime float32
2984 }))(obj)).TransitionTime
2985 write32(w, math.Float32bits(x))
2989 func (obj *ToCltFOV) deserialize(r io.Reader) {
2994 TransitionTime float32
2996 *p = math.Float32frombits(read32(r))
3002 TransitionTime float32
3003 }))(obj)).Multiplier
3004 switch n := read8(r); n {
3010 chk(fmt.Errorf("invalid bool: %d", n))
3017 TransitionTime float32
3018 }))(obj)).TransitionTime
3019 *p = math.Float32frombits(read32(r))
3023 func (obj *ToCltDeathScreen) serialize(w io.Writer) {
3035 if err := pcall(func() {
3039 }))(obj)).PointAt).serialize(w)
3044 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
3048 func (obj *ToCltDeathScreen) deserialize(r io.Reader) {
3054 switch n := read8(r); n {
3060 chk(fmt.Errorf("invalid bool: %d", n))
3063 if err := pcall(func() {
3067 }))(obj)).PointAt).deserialize(r)
3072 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
3076 func (obj *ToCltMedia) serialize(w io.Writer) {
3079 // N is the total number of ToCltMedia packets.
3080 // I is the index of this packet.
3091 write16(w, uint16(x))
3095 // N is the total number of ToCltMedia packets.
3096 // I is the index of this packet.
3107 write16(w, uint16(x))
3109 if len(((*(*(struct {
3110 // N is the total number of ToCltMedia packets.
3111 // I is the index of this packet.
3121 }))(obj)).Files)) > math.MaxUint32 {
3125 x := uint32(len(((*(*(struct {
3126 // N is the total number of ToCltMedia packets.
3127 // I is the index of this packet.
3138 write32(w, uint32(x))
3140 for local99 := range (*(*(struct {
3141 // N is the total number of ToCltMedia packets.
3142 // I is the index of this packet.
3153 if len(([]byte((((*(*(struct {
3154 // N is the total number of ToCltMedia packets.
3155 // I is the index of this packet.
3165 }))(obj)).Files)[local99]).Name))) > math.MaxUint16 {
3169 x := uint16(len(([]byte((((*(*(struct {
3170 // N is the total number of ToCltMedia packets.
3171 // I is the index of this packet.
3181 }))(obj)).Files)[local99]).Name))))
3182 write16(w, uint16(x))
3185 _, err := w.Write(([]byte((((*(*(struct {
3186 // N is the total number of ToCltMedia packets.
3187 // I is the index of this packet.
3197 }))(obj)).Files)[local99]).Name))[:])
3200 if len(((((*(*(struct {
3201 // N is the total number of ToCltMedia packets.
3202 // I is the index of this packet.
3212 }))(obj)).Files)[local99]).Data)) > math.MaxUint32 {
3216 x := uint32(len(((((*(*(struct {
3217 // N is the total number of ToCltMedia packets.
3218 // I is the index of this packet.
3228 }))(obj)).Files)[local99]).Data)))
3229 write32(w, uint32(x))
3232 _, err := w.Write(((((*(*(struct {
3233 // N is the total number of ToCltMedia packets.
3234 // I is the index of this packet.
3244 }))(obj)).Files)[local99]).Data)[:])
3250 func (obj *ToCltMedia) deserialize(r io.Reader) {
3253 // N is the total number of ToCltMedia packets.
3254 // I is the index of this packet.
3269 // N is the total number of ToCltMedia packets.
3270 // I is the index of this packet.
3289 // N is the total number of ToCltMedia packets.
3290 // I is the index of this packet.
3300 }))(obj)).Files) = make([]struct {
3304 for local101 := range (*(*(struct {
3305 // N is the total number of ToCltMedia packets.
3306 // I is the index of this packet.
3317 var local102 []uint8
3323 (local102) = make([]uint8, local103)
3325 _, err := io.ReadFull(r, (local102)[:])
3329 // N is the total number of ToCltMedia packets.
3330 // I is the index of this packet.
3340 }))(obj)).Files)[local101]).Name) = string(local102)
3347 // N is the total number of ToCltMedia packets.
3348 // I is the index of this packet.
3358 }))(obj)).Files)[local101]).Data) = make([]byte, local104)
3360 _, err := io.ReadFull(r, ((((*(*(struct {
3361 // N is the total number of ToCltMedia packets.
3362 // I is the index of this packet.
3372 }))(obj)).Files)[local101]).Data)[:])
3378 func (obj *ToCltNodeDefs) serialize(w io.Writer) {
3381 w := new(bytes.Buffer)
3383 w := zlib.NewWriter(w)
3385 local105 := uint8(1)
3394 // See (de)serialize.fmt.
3397 { // For ToCltNodeDefs.Defs.
3398 if len(x) > math.MaxUint16 {
3401 write16(w, uint16(len(x)))
3406 if b.Len() > math.MaxUint32 {
3409 write32(w, uint32(b.Len()))
3410 _, err := b.WriteTo(w)
3419 if len((buf.Bytes())) > math.MaxUint32 {
3423 x := uint32(len((buf.Bytes())))
3424 write32(w, uint32(x))
3427 _, err := w.Write((buf.Bytes())[:])
3434 func (obj *ToCltNodeDefs) deserialize(r io.Reader) {
3441 r := &io.LimitedReader{R: r, N: int64(n)}
3443 r, err := zlib.NewReader(byteReader{r})
3447 local107 := uint8(1)
3452 if local106 != local107 {
3453 chk(fmt.Errorf("const %v: %v", "uint8(1)", local106))
3459 // See (de)serialize.fmt.
3462 { // For ToCltNodeDefs.Defs.
3463 *p = make([]NodeDef, read16(r))
3464 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3466 (*p)[i].deserialize(r)
3469 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3476 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3481 func (obj *ToCltAnnounceMedia) serialize(w io.Writer) {
3482 if len(((*(*(struct {
3488 }))(obj)).Files)) > math.MaxUint16 {
3492 x := uint16(len(((*(*(struct {
3499 write16(w, uint16(x))
3501 for local108 := range (*(*(struct {
3508 if len(([]byte((((*(*(struct {
3514 }))(obj)).Files)[local108]).Name))) > math.MaxUint16 {
3518 x := uint16(len(([]byte((((*(*(struct {
3524 }))(obj)).Files)[local108]).Name))))
3525 write16(w, uint16(x))
3528 _, err := w.Write(([]byte((((*(*(struct {
3534 }))(obj)).Files)[local108]).Name))[:])
3537 if len(([]byte((((*(*(struct {
3543 }))(obj)).Files)[local108]).Base64SHA1))) > math.MaxUint16 {
3547 x := uint16(len(([]byte((((*(*(struct {
3553 }))(obj)).Files)[local108]).Base64SHA1))))
3554 write16(w, uint16(x))
3557 _, err := w.Write(([]byte((((*(*(struct {
3563 }))(obj)).Files)[local108]).Base64SHA1))[:])
3567 if len(([]byte((*(*(struct {
3573 }))(obj)).URL))) > math.MaxUint16 {
3577 x := uint16(len(([]byte((*(*(struct {
3584 write16(w, uint16(x))
3587 _, err := w.Write(([]byte((*(*(struct {
3598 func (obj *ToCltAnnounceMedia) deserialize(r io.Reader) {
3610 }))(obj)).Files) = make([]struct {
3614 for local110 := range (*(*(struct {
3621 var local111 []uint8
3627 (local111) = make([]uint8, local112)
3629 _, err := io.ReadFull(r, (local111)[:])
3638 }))(obj)).Files)[local110]).Name) = string(local111)
3639 var local113 []uint8
3645 (local113) = make([]uint8, local114)
3647 _, err := io.ReadFull(r, (local113)[:])
3656 }))(obj)).Files)[local110]).Base64SHA1) = string(local113)
3658 var local115 []uint8
3664 (local115) = make([]uint8, local116)
3666 _, err := io.ReadFull(r, (local115)[:])
3675 }))(obj)).URL) = string(local115)
3678 func (obj *ToCltItemDefs) serialize(w io.Writer) {
3681 w := new(bytes.Buffer)
3683 w := zlib.NewWriter(w)
3685 local117 := uint8(0)
3691 if len(((*(*(struct {
3693 Aliases []struct{ Alias, Orig string }
3694 }))(obj)).Defs)) > math.MaxUint16 {
3698 x := uint16(len(((*(*(struct {
3700 Aliases []struct{ Alias, Orig string }
3702 write16(w, uint16(x))
3704 for local118 := range (*(*(struct {
3706 Aliases []struct{ Alias, Orig string }
3708 if err := pcall(func() {
3711 Aliases []struct{ Alias, Orig string }
3712 }))(obj)).Defs)[local118]).serialize(w)
3717 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemDef", err))
3720 if len(((*(*(struct {
3722 Aliases []struct{ Alias, Orig string }
3723 }))(obj)).Aliases)) > math.MaxUint16 {
3727 x := uint16(len(((*(*(struct {
3729 Aliases []struct{ Alias, Orig string }
3730 }))(obj)).Aliases)))
3731 write16(w, uint16(x))
3733 for local119 := range (*(*(struct {
3735 Aliases []struct{ Alias, Orig string }
3737 if len(([]byte((((*(*(struct {
3739 Aliases []struct{ Alias, Orig string }
3740 }))(obj)).Aliases)[local119]).Alias))) > math.MaxUint16 {
3744 x := uint16(len(([]byte((((*(*(struct {
3746 Aliases []struct{ Alias, Orig string }
3747 }))(obj)).Aliases)[local119]).Alias))))
3748 write16(w, uint16(x))
3751 _, err := w.Write(([]byte((((*(*(struct {
3753 Aliases []struct{ Alias, Orig string }
3754 }))(obj)).Aliases)[local119]).Alias))[:])
3757 if len(([]byte((((*(*(struct {
3759 Aliases []struct{ Alias, Orig string }
3760 }))(obj)).Aliases)[local119]).Orig))) > math.MaxUint16 {
3764 x := uint16(len(([]byte((((*(*(struct {
3766 Aliases []struct{ Alias, Orig string }
3767 }))(obj)).Aliases)[local119]).Orig))))
3768 write16(w, uint16(x))
3771 _, err := w.Write(([]byte((((*(*(struct {
3773 Aliases []struct{ Alias, Orig string }
3774 }))(obj)).Aliases)[local119]).Orig))[:])
3783 if len((buf.Bytes())) > math.MaxUint32 {
3787 x := uint32(len((buf.Bytes())))
3788 write32(w, uint32(x))
3791 _, err := w.Write((buf.Bytes())[:])
3798 func (obj *ToCltItemDefs) deserialize(r io.Reader) {
3805 r := &io.LimitedReader{R: r, N: int64(n)}
3807 r, err := zlib.NewReader(byteReader{r})
3811 local121 := uint8(0)
3816 if local120 != local121 {
3817 chk(fmt.Errorf("const %v: %v", "uint8(0)", local120))
3827 Aliases []struct{ Alias, Orig string }
3828 }))(obj)).Defs) = make([]ItemDef, local122)
3829 for local123 := range (*(*(struct {
3831 Aliases []struct{ Alias, Orig string }
3833 if err := pcall(func() {
3836 Aliases []struct{ Alias, Orig string }
3837 }))(obj)).Defs)[local123]).deserialize(r)
3842 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemDef", err))
3852 Aliases []struct{ Alias, Orig string }
3853 }))(obj)).Aliases) = make([]struct {
3857 for local125 := range (*(*(struct {
3859 Aliases []struct{ Alias, Orig string }
3861 var local126 []uint8
3867 (local126) = make([]uint8, local127)
3869 _, err := io.ReadFull(r, (local126)[:])
3874 Aliases []struct{ Alias, Orig string }
3875 }))(obj)).Aliases)[local125]).Alias) = string(local126)
3876 var local128 []uint8
3882 (local128) = make([]uint8, local129)
3884 _, err := io.ReadFull(r, (local128)[:])
3889 Aliases []struct{ Alias, Orig string }
3890 }))(obj)).Aliases)[local125]).Orig) = string(local128)
3895 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3900 func (obj *ToCltPlaySound) serialize(w io.Writer) {
3901 if err := pcall(func() {
3906 SrcType SoundSrcType
3913 }))(obj)).ID).serialize(w)
3918 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
3920 if len(([]byte((*(*(struct {
3924 SrcType SoundSrcType
3931 }))(obj)).Name))) > math.MaxUint16 {
3935 x := uint16(len(([]byte((*(*(struct {
3939 SrcType SoundSrcType
3947 write16(w, uint16(x))
3950 _, err := w.Write(([]byte((*(*(struct {
3954 SrcType SoundSrcType
3961 }))(obj)).Name))[:])
3969 SrcType SoundSrcType
3977 write32(w, math.Float32bits(x))
3979 if err := pcall(func() {
3984 SrcType SoundSrcType
3991 }))(obj)).SrcType).serialize(w)
3996 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundSrcType", err))
3998 if err := pcall(func() {
4003 SrcType SoundSrcType
4010 }))(obj)).Pos).serialize(w)
4015 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
4017 if err := pcall(func() {
4022 SrcType SoundSrcType
4029 }))(obj)).SrcAOID).serialize(w)
4034 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
4041 SrcType SoundSrcType
4060 SrcType SoundSrcType
4068 write32(w, math.Float32bits(x))
4075 SrcType SoundSrcType
4083 write32(w, math.Float32bits(x))
4090 SrcType SoundSrcType
4106 func (obj *ToCltPlaySound) deserialize(r io.Reader) {
4107 if err := pcall(func() {
4112 SrcType SoundSrcType
4119 }))(obj)).ID).deserialize(r)
4124 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4126 var local130 []uint8
4132 (local130) = make([]uint8, local131)
4134 _, err := io.ReadFull(r, (local130)[:])
4141 SrcType SoundSrcType
4148 }))(obj)).Name) = string(local130)
4154 SrcType SoundSrcType
4162 *p = math.Float32frombits(read32(r))
4164 if err := pcall(func() {
4169 SrcType SoundSrcType
4176 }))(obj)).SrcType).deserialize(r)
4181 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundSrcType", err))
4183 if err := pcall(func() {
4188 SrcType SoundSrcType
4195 }))(obj)).Pos).deserialize(r)
4200 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
4202 if err := pcall(func() {
4207 SrcType SoundSrcType
4214 }))(obj)).SrcAOID).deserialize(r)
4219 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
4226 SrcType SoundSrcType
4234 switch n := read8(r); n {
4240 chk(fmt.Errorf("invalid bool: %d", n))
4248 SrcType SoundSrcType
4256 *p = math.Float32frombits(read32(r))
4263 SrcType SoundSrcType
4271 *p = math.Float32frombits(read32(r))
4278 SrcType SoundSrcType
4286 switch n := read8(r); n {
4292 chk(fmt.Errorf("invalid bool: %d", n))
4297 func (obj *ToCltStopSound) serialize(w io.Writer) {
4298 if err := pcall(func() {
4301 }))(obj)).ID).serialize(w)
4306 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4310 func (obj *ToCltStopSound) deserialize(r io.Reader) {
4311 if err := pcall(func() {
4314 }))(obj)).ID).deserialize(r)
4319 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
4323 func (obj *ToCltPrivs) serialize(w io.Writer) {
4324 if len(((*(*(struct {
4326 }))(obj)).Privs)) > math.MaxUint16 {
4330 x := uint16(len(((*(*(struct {
4333 write16(w, uint16(x))
4335 for local132 := range (*(*(struct {
4338 if len(([]byte(((*(*(struct {
4340 }))(obj)).Privs)[local132]))) > math.MaxUint16 {
4344 x := uint16(len(([]byte(((*(*(struct {
4346 }))(obj)).Privs)[local132]))))
4347 write16(w, uint16(x))
4350 _, err := w.Write(([]byte(((*(*(struct {
4352 }))(obj)).Privs)[local132]))[:])
4358 func (obj *ToCltPrivs) deserialize(r io.Reader) {
4366 }))(obj)).Privs) = make([]string, local133)
4367 for local134 := range (*(*(struct {
4370 var local135 []uint8
4376 (local135) = make([]uint8, local136)
4378 _, err := io.ReadFull(r, (local135)[:])
4383 }))(obj)).Privs)[local134]) = string(local135)
4387 func (obj *ToCltInvFormspec) serialize(w io.Writer) {
4388 if len(([]byte((*(*(struct {
4391 }))(obj)).Formspec))) > math.MaxUint32 {
4395 x := uint32(len(([]byte((*(*(struct {
4398 }))(obj)).Formspec))))
4399 write32(w, uint32(x))
4402 _, err := w.Write(([]byte((*(*(struct {
4405 }))(obj)).Formspec))[:])
4410 func (obj *ToCltInvFormspec) deserialize(r io.Reader) {
4411 var local137 []uint8
4417 (local137) = make([]uint8, local138)
4419 _, err := io.ReadFull(r, (local137)[:])
4425 }))(obj)).Formspec) = string(local137)
4428 func (obj *ToCltDetachedInv) serialize(w io.Writer) {
4429 if len(([]byte((*(*(struct {
4432 Len uint16 // deprecated
4436 }))(obj)).Name))) > math.MaxUint16 {
4440 x := uint16(len(([]byte((*(*(struct {
4443 Len uint16 // deprecated
4448 write16(w, uint16(x))
4451 _, err := w.Write(([]byte((*(*(struct {
4454 Len uint16 // deprecated
4458 }))(obj)).Name))[:])
4465 Len uint16 // deprecated
4480 Len uint16 // deprecated
4485 write16(w, uint16(x))
4488 _, err := w.Write(([]byte((*(*(struct {
4491 Len uint16 // deprecated
4500 func (obj *ToCltDetachedInv) deserialize(r io.Reader) {
4501 var local139 []uint8
4507 (local139) = make([]uint8, local140)
4509 _, err := io.ReadFull(r, (local139)[:])
4515 Len uint16 // deprecated
4519 }))(obj)).Name) = string(local139)
4524 Len uint16 // deprecated
4529 switch n := read8(r); n {
4535 chk(fmt.Errorf("invalid bool: %d", n))
4542 Len uint16 // deprecated
4549 var local141 []uint8
4552 (local141), err = io.ReadAll(r)
4558 Len uint16 // deprecated
4562 }))(obj)).Inv) = string(local141)
4565 func (obj *ToCltShowFormspec) serialize(w io.Writer) {
4566 if len(([]byte((*(*(struct {
4571 }))(obj)).Formspec))) > math.MaxUint32 {
4575 x := uint32(len(([]byte((*(*(struct {
4580 }))(obj)).Formspec))))
4581 write32(w, uint32(x))
4584 _, err := w.Write(([]byte((*(*(struct {
4589 }))(obj)).Formspec))[:])
4592 if len(([]byte((*(*(struct {
4597 }))(obj)).Formname))) > math.MaxUint16 {
4601 x := uint16(len(([]byte((*(*(struct {
4606 }))(obj)).Formname))))
4607 write16(w, uint16(x))
4610 _, err := w.Write(([]byte((*(*(struct {
4615 }))(obj)).Formname))[:])
4620 func (obj *ToCltShowFormspec) deserialize(r io.Reader) {
4621 var local142 []uint8
4627 (local142) = make([]uint8, local143)
4629 _, err := io.ReadFull(r, (local142)[:])
4637 }))(obj)).Formspec) = string(local142)
4638 var local144 []uint8
4644 (local144) = make([]uint8, local145)
4646 _, err := io.ReadFull(r, (local144)[:])
4654 }))(obj)).Formname) = string(local144)
4657 func (obj *ToCltMovement) serialize(w io.Writer) {
4660 DefaultAccel, AirAccel, FastAccel,
4661 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4662 Fluidity, Smoothing, Sink,
4664 }))(obj)).DefaultAccel
4665 write32(w, math.Float32bits(x))
4669 DefaultAccel, AirAccel, FastAccel,
4670 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4671 Fluidity, Smoothing, Sink,
4674 write32(w, math.Float32bits(x))
4678 DefaultAccel, AirAccel, FastAccel,
4679 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4680 Fluidity, Smoothing, Sink,
4683 write32(w, math.Float32bits(x))
4687 DefaultAccel, AirAccel, FastAccel,
4688 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4689 Fluidity, Smoothing, Sink,
4692 write32(w, math.Float32bits(x))
4696 DefaultAccel, AirAccel, FastAccel,
4697 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4698 Fluidity, Smoothing, Sink,
4700 }))(obj)).CrouchSpeed
4701 write32(w, math.Float32bits(x))
4705 DefaultAccel, AirAccel, FastAccel,
4706 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4707 Fluidity, Smoothing, Sink,
4710 write32(w, math.Float32bits(x))
4714 DefaultAccel, AirAccel, FastAccel,
4715 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4716 Fluidity, Smoothing, Sink,
4718 }))(obj)).ClimbSpeed
4719 write32(w, math.Float32bits(x))
4723 DefaultAccel, AirAccel, FastAccel,
4724 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4725 Fluidity, Smoothing, Sink,
4728 write32(w, math.Float32bits(x))
4732 DefaultAccel, AirAccel, FastAccel,
4733 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4734 Fluidity, Smoothing, Sink,
4737 write32(w, math.Float32bits(x))
4741 DefaultAccel, AirAccel, FastAccel,
4742 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4743 Fluidity, Smoothing, Sink,
4746 write32(w, math.Float32bits(x))
4750 DefaultAccel, AirAccel, FastAccel,
4751 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4752 Fluidity, Smoothing, Sink,
4755 write32(w, math.Float32bits(x))
4759 DefaultAccel, AirAccel, FastAccel,
4760 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4761 Fluidity, Smoothing, Sink,
4764 write32(w, math.Float32bits(x))
4768 func (obj *ToCltMovement) deserialize(r io.Reader) {
4771 DefaultAccel, AirAccel, FastAccel,
4772 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4773 Fluidity, Smoothing, Sink,
4775 }))(obj)).DefaultAccel
4776 *p = math.Float32frombits(read32(r))
4780 DefaultAccel, AirAccel, FastAccel,
4781 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4782 Fluidity, Smoothing, Sink,
4785 *p = math.Float32frombits(read32(r))
4789 DefaultAccel, AirAccel, FastAccel,
4790 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4791 Fluidity, Smoothing, Sink,
4794 *p = math.Float32frombits(read32(r))
4798 DefaultAccel, AirAccel, FastAccel,
4799 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4800 Fluidity, Smoothing, Sink,
4803 *p = math.Float32frombits(read32(r))
4807 DefaultAccel, AirAccel, FastAccel,
4808 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4809 Fluidity, Smoothing, Sink,
4811 }))(obj)).CrouchSpeed
4812 *p = math.Float32frombits(read32(r))
4816 DefaultAccel, AirAccel, FastAccel,
4817 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4818 Fluidity, Smoothing, Sink,
4821 *p = math.Float32frombits(read32(r))
4825 DefaultAccel, AirAccel, FastAccel,
4826 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4827 Fluidity, Smoothing, Sink,
4829 }))(obj)).ClimbSpeed
4830 *p = math.Float32frombits(read32(r))
4834 DefaultAccel, AirAccel, FastAccel,
4835 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4836 Fluidity, Smoothing, Sink,
4839 *p = math.Float32frombits(read32(r))
4843 DefaultAccel, AirAccel, FastAccel,
4844 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4845 Fluidity, Smoothing, Sink,
4848 *p = math.Float32frombits(read32(r))
4852 DefaultAccel, AirAccel, FastAccel,
4853 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4854 Fluidity, Smoothing, Sink,
4857 *p = math.Float32frombits(read32(r))
4861 DefaultAccel, AirAccel, FastAccel,
4862 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4863 Fluidity, Smoothing, Sink,
4866 *p = math.Float32frombits(read32(r))
4870 DefaultAccel, AirAccel, FastAccel,
4871 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4872 Fluidity, Smoothing, Sink,
4875 *p = math.Float32frombits(read32(r))
4879 func (obj *ToCltSpawnParticle) serialize(w io.Writer) {
4880 for local146 := range (*(*(struct {
4881 Pos, Vel, Acc [3]float32
4882 ExpirationTime float32 // in seconds.
4900 Pos, Vel, Acc [3]float32
4901 ExpirationTime float32 // in seconds.
4916 }))(obj)).Pos)[local146]
4917 write32(w, math.Float32bits(x))
4920 for local147 := range (*(*(struct {
4921 Pos, Vel, Acc [3]float32
4922 ExpirationTime float32 // in seconds.
4940 Pos, Vel, Acc [3]float32
4941 ExpirationTime float32 // in seconds.
4956 }))(obj)).Vel)[local147]
4957 write32(w, math.Float32bits(x))
4960 for local148 := range (*(*(struct {
4961 Pos, Vel, Acc [3]float32
4962 ExpirationTime float32 // in seconds.
4980 Pos, Vel, Acc [3]float32
4981 ExpirationTime float32 // in seconds.
4996 }))(obj)).Acc)[local148]
4997 write32(w, math.Float32bits(x))
5002 Pos, Vel, Acc [3]float32
5003 ExpirationTime float32 // in seconds.
5018 }))(obj)).ExpirationTime
5019 write32(w, math.Float32bits(x))
5023 Pos, Vel, Acc [3]float32
5024 ExpirationTime float32 // in seconds.
5040 write32(w, math.Float32bits(x))
5044 Pos, Vel, Acc [3]float32
5045 ExpirationTime float32 // in seconds.
5067 if len(([]byte(*(*string)(&((*(*(struct {
5068 Pos, Vel, Acc [3]float32
5069 ExpirationTime float32 // in seconds.
5084 }))(obj)).Texture))))) > math.MaxUint32 {
5088 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5089 Pos, Vel, Acc [3]float32
5090 ExpirationTime float32 // in seconds.
5105 }))(obj)).Texture))))))
5106 write32(w, uint32(x))
5109 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5110 Pos, Vel, Acc [3]float32
5111 ExpirationTime float32 // in seconds.
5126 }))(obj)).Texture))))[:])
5131 Pos, Vel, Acc [3]float32
5132 ExpirationTime float32 // in seconds.
5156 Pos, Vel, Acc [3]float32
5157 ExpirationTime float32 // in seconds.
5172 }))(obj)).CollisionRm
5179 if err := pcall(func() {
5181 Pos, Vel, Acc [3]float32
5182 ExpirationTime float32 // in seconds.
5197 }))(obj)).AnimParams).serialize(w)
5202 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
5206 Pos, Vel, Acc [3]float32
5207 ExpirationTime float32 // in seconds.
5227 Pos, Vel, Acc [3]float32
5228 ExpirationTime float32 // in seconds.
5243 }))(obj)).AOCollision
5250 if err := pcall(func() {
5252 Pos, Vel, Acc [3]float32
5253 ExpirationTime float32 // in seconds.
5268 }))(obj)).NodeParam0).serialize(w)
5273 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
5277 Pos, Vel, Acc [3]float32
5278 ExpirationTime float32 // in seconds.
5293 }))(obj)).NodeParam2
5298 Pos, Vel, Acc [3]float32
5299 ExpirationTime float32 // in seconds.
5319 func (obj *ToCltSpawnParticle) deserialize(r io.Reader) {
5320 for local149 := range (*(*(struct {
5321 Pos, Vel, Acc [3]float32
5322 ExpirationTime float32 // in seconds.
5339 p := &((*(*(struct {
5340 Pos, Vel, Acc [3]float32
5341 ExpirationTime float32 // in seconds.
5356 }))(obj)).Pos)[local149]
5357 *p = math.Float32frombits(read32(r))
5360 for local150 := range (*(*(struct {
5361 Pos, Vel, Acc [3]float32
5362 ExpirationTime float32 // in seconds.
5379 p := &((*(*(struct {
5380 Pos, Vel, Acc [3]float32
5381 ExpirationTime float32 // in seconds.
5396 }))(obj)).Vel)[local150]
5397 *p = math.Float32frombits(read32(r))
5400 for local151 := range (*(*(struct {
5401 Pos, Vel, Acc [3]float32
5402 ExpirationTime float32 // in seconds.
5419 p := &((*(*(struct {
5420 Pos, Vel, Acc [3]float32
5421 ExpirationTime float32 // in seconds.
5436 }))(obj)).Acc)[local151]
5437 *p = math.Float32frombits(read32(r))
5442 Pos, Vel, Acc [3]float32
5443 ExpirationTime float32 // in seconds.
5458 }))(obj)).ExpirationTime
5459 *p = math.Float32frombits(read32(r))
5463 Pos, Vel, Acc [3]float32
5464 ExpirationTime float32 // in seconds.
5480 *p = math.Float32frombits(read32(r))
5484 Pos, Vel, Acc [3]float32
5485 ExpirationTime float32 // in seconds.
5501 switch n := read8(r); n {
5507 chk(fmt.Errorf("invalid bool: %d", n))
5510 var local152 []uint8
5516 (local152) = make([]uint8, local153)
5518 _, err := io.ReadFull(r, (local152)[:])
5521 (*(*string)(&((*(*(struct {
5522 Pos, Vel, Acc [3]float32
5523 ExpirationTime float32 // in seconds.
5538 }))(obj)).Texture))) = string(local152)
5541 Pos, Vel, Acc [3]float32
5542 ExpirationTime float32 // in seconds.
5558 switch n := read8(r); n {
5564 chk(fmt.Errorf("invalid bool: %d", n))
5569 Pos, Vel, Acc [3]float32
5570 ExpirationTime float32 // in seconds.
5585 }))(obj)).CollisionRm
5586 switch n := read8(r); n {
5592 chk(fmt.Errorf("invalid bool: %d", n))
5595 if err := pcall(func() {
5597 Pos, Vel, Acc [3]float32
5598 ExpirationTime float32 // in seconds.
5613 }))(obj)).AnimParams).deserialize(r)
5618 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
5622 Pos, Vel, Acc [3]float32
5623 ExpirationTime float32 // in seconds.
5643 Pos, Vel, Acc [3]float32
5644 ExpirationTime float32 // in seconds.
5659 }))(obj)).AOCollision
5660 switch n := read8(r); n {
5666 chk(fmt.Errorf("invalid bool: %d", n))
5669 if err := pcall(func() {
5671 Pos, Vel, Acc [3]float32
5672 ExpirationTime float32 // in seconds.
5687 }))(obj)).NodeParam0).deserialize(r)
5692 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
5696 Pos, Vel, Acc [3]float32
5697 ExpirationTime float32 // in seconds.
5712 }))(obj)).NodeParam2
5717 Pos, Vel, Acc [3]float32
5718 ExpirationTime float32 // in seconds.
5738 func (obj *ToCltAddParticleSpawner) serialize(w io.Writer) {
5743 Pos, Vel, Acc [2][3]float32
5744 ExpirationTime [2]float32 // in seconds.
5751 ID ParticleSpawnerID
5762 write16(w, uint16(x))
5768 Pos, Vel, Acc [2][3]float32
5769 ExpirationTime [2]float32 // in seconds.
5776 ID ParticleSpawnerID
5787 write32(w, math.Float32bits(x))
5789 for local154 := range (*(*(struct {
5792 Pos, Vel, Acc [2][3]float32
5793 ExpirationTime [2]float32 // in seconds.
5800 ID ParticleSpawnerID
5811 for local155 := range ((*(*(struct {
5814 Pos, Vel, Acc [2][3]float32
5815 ExpirationTime [2]float32 // in seconds.
5822 ID ParticleSpawnerID
5832 }))(obj)).Pos)[local154] {
5834 x := (((*(*(struct {
5837 Pos, Vel, Acc [2][3]float32
5838 ExpirationTime [2]float32 // in seconds.
5845 ID ParticleSpawnerID
5855 }))(obj)).Pos)[local154])[local155]
5856 write32(w, math.Float32bits(x))
5860 for local156 := range (*(*(struct {
5863 Pos, Vel, Acc [2][3]float32
5864 ExpirationTime [2]float32 // in seconds.
5871 ID ParticleSpawnerID
5882 for local157 := range ((*(*(struct {
5885 Pos, Vel, Acc [2][3]float32
5886 ExpirationTime [2]float32 // in seconds.
5893 ID ParticleSpawnerID
5903 }))(obj)).Vel)[local156] {
5905 x := (((*(*(struct {
5908 Pos, Vel, Acc [2][3]float32
5909 ExpirationTime [2]float32 // in seconds.
5916 ID ParticleSpawnerID
5926 }))(obj)).Vel)[local156])[local157]
5927 write32(w, math.Float32bits(x))
5931 for local158 := range (*(*(struct {
5934 Pos, Vel, Acc [2][3]float32
5935 ExpirationTime [2]float32 // in seconds.
5942 ID ParticleSpawnerID
5953 for local159 := range ((*(*(struct {
5956 Pos, Vel, Acc [2][3]float32
5957 ExpirationTime [2]float32 // in seconds.
5964 ID ParticleSpawnerID
5974 }))(obj)).Acc)[local158] {
5976 x := (((*(*(struct {
5979 Pos, Vel, Acc [2][3]float32
5980 ExpirationTime [2]float32 // in seconds.
5987 ID ParticleSpawnerID
5997 }))(obj)).Acc)[local158])[local159]
5998 write32(w, math.Float32bits(x))
6002 for local160 := range (*(*(struct {
6005 Pos, Vel, Acc [2][3]float32
6006 ExpirationTime [2]float32 // in seconds.
6013 ID ParticleSpawnerID
6023 }))(obj)).ExpirationTime {
6028 Pos, Vel, Acc [2][3]float32
6029 ExpirationTime [2]float32 // in seconds.
6036 ID ParticleSpawnerID
6046 }))(obj)).ExpirationTime)[local160]
6047 write32(w, math.Float32bits(x))
6050 for local161 := range (*(*(struct {
6053 Pos, Vel, Acc [2][3]float32
6054 ExpirationTime [2]float32 // in seconds.
6061 ID ParticleSpawnerID
6076 Pos, Vel, Acc [2][3]float32
6077 ExpirationTime [2]float32 // in seconds.
6084 ID ParticleSpawnerID
6094 }))(obj)).Size)[local161]
6095 write32(w, math.Float32bits(x))
6102 Pos, Vel, Acc [2][3]float32
6103 ExpirationTime [2]float32 // in seconds.
6110 ID ParticleSpawnerID
6127 if len(([]byte(*(*string)(&((*(*(struct {
6130 Pos, Vel, Acc [2][3]float32
6131 ExpirationTime [2]float32 // in seconds.
6138 ID ParticleSpawnerID
6148 }))(obj)).Texture))))) > math.MaxUint32 {
6152 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6155 Pos, Vel, Acc [2][3]float32
6156 ExpirationTime [2]float32 // in seconds.
6163 ID ParticleSpawnerID
6173 }))(obj)).Texture))))))
6174 write32(w, uint32(x))
6177 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6180 Pos, Vel, Acc [2][3]float32
6181 ExpirationTime [2]float32 // in seconds.
6188 ID ParticleSpawnerID
6198 }))(obj)).Texture))))[:])
6201 if err := pcall(func() {
6205 Pos, Vel, Acc [2][3]float32
6206 ExpirationTime [2]float32 // in seconds.
6213 ID ParticleSpawnerID
6223 }))(obj)).ID).serialize(w)
6228 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
6234 Pos, Vel, Acc [2][3]float32
6235 ExpirationTime [2]float32 // in seconds.
6242 ID ParticleSpawnerID
6263 Pos, Vel, Acc [2][3]float32
6264 ExpirationTime [2]float32 // in seconds.
6271 ID ParticleSpawnerID
6281 }))(obj)).CollisionRm
6288 if err := pcall(func() {
6292 Pos, Vel, Acc [2][3]float32
6293 ExpirationTime [2]float32 // in seconds.
6300 ID ParticleSpawnerID
6310 }))(obj)).AttachedAOID).serialize(w)
6315 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
6317 if err := pcall(func() {
6321 Pos, Vel, Acc [2][3]float32
6322 ExpirationTime [2]float32 // in seconds.
6329 ID ParticleSpawnerID
6339 }))(obj)).AnimParams).serialize(w)
6344 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
6350 Pos, Vel, Acc [2][3]float32
6351 ExpirationTime [2]float32 // in seconds.
6358 ID ParticleSpawnerID
6375 Pos, Vel, Acc [2][3]float32
6376 ExpirationTime [2]float32 // in seconds.
6383 ID ParticleSpawnerID
6393 }))(obj)).AOCollision
6400 if err := pcall(func() {
6404 Pos, Vel, Acc [2][3]float32
6405 ExpirationTime [2]float32 // in seconds.
6412 ID ParticleSpawnerID
6422 }))(obj)).NodeParam0).serialize(w)
6427 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
6433 Pos, Vel, Acc [2][3]float32
6434 ExpirationTime [2]float32 // in seconds.
6441 ID ParticleSpawnerID
6451 }))(obj)).NodeParam2
6458 Pos, Vel, Acc [2][3]float32
6459 ExpirationTime [2]float32 // in seconds.
6466 ID ParticleSpawnerID
6481 func (obj *ToCltAddParticleSpawner) deserialize(r io.Reader) {
6486 Pos, Vel, Acc [2][3]float32
6487 ExpirationTime [2]float32 // in seconds.
6494 ID ParticleSpawnerID
6511 Pos, Vel, Acc [2][3]float32
6512 ExpirationTime [2]float32 // in seconds.
6519 ID ParticleSpawnerID
6530 *p = math.Float32frombits(read32(r))
6532 for local162 := range (*(*(struct {
6535 Pos, Vel, Acc [2][3]float32
6536 ExpirationTime [2]float32 // in seconds.
6543 ID ParticleSpawnerID
6554 for local163 := range ((*(*(struct {
6557 Pos, Vel, Acc [2][3]float32
6558 ExpirationTime [2]float32 // in seconds.
6565 ID ParticleSpawnerID
6575 }))(obj)).Pos)[local162] {
6577 p := &(((*(*(struct {
6580 Pos, Vel, Acc [2][3]float32
6581 ExpirationTime [2]float32 // in seconds.
6588 ID ParticleSpawnerID
6598 }))(obj)).Pos)[local162])[local163]
6599 *p = math.Float32frombits(read32(r))
6603 for local164 := range (*(*(struct {
6606 Pos, Vel, Acc [2][3]float32
6607 ExpirationTime [2]float32 // in seconds.
6614 ID ParticleSpawnerID
6625 for local165 := range ((*(*(struct {
6628 Pos, Vel, Acc [2][3]float32
6629 ExpirationTime [2]float32 // in seconds.
6636 ID ParticleSpawnerID
6646 }))(obj)).Vel)[local164] {
6648 p := &(((*(*(struct {
6651 Pos, Vel, Acc [2][3]float32
6652 ExpirationTime [2]float32 // in seconds.
6659 ID ParticleSpawnerID
6669 }))(obj)).Vel)[local164])[local165]
6670 *p = math.Float32frombits(read32(r))
6674 for local166 := range (*(*(struct {
6677 Pos, Vel, Acc [2][3]float32
6678 ExpirationTime [2]float32 // in seconds.
6685 ID ParticleSpawnerID
6696 for local167 := range ((*(*(struct {
6699 Pos, Vel, Acc [2][3]float32
6700 ExpirationTime [2]float32 // in seconds.
6707 ID ParticleSpawnerID
6717 }))(obj)).Acc)[local166] {
6719 p := &(((*(*(struct {
6722 Pos, Vel, Acc [2][3]float32
6723 ExpirationTime [2]float32 // in seconds.
6730 ID ParticleSpawnerID
6740 }))(obj)).Acc)[local166])[local167]
6741 *p = math.Float32frombits(read32(r))
6745 for local168 := range (*(*(struct {
6748 Pos, Vel, Acc [2][3]float32
6749 ExpirationTime [2]float32 // in seconds.
6756 ID ParticleSpawnerID
6766 }))(obj)).ExpirationTime {
6768 p := &((*(*(struct {
6771 Pos, Vel, Acc [2][3]float32
6772 ExpirationTime [2]float32 // in seconds.
6779 ID ParticleSpawnerID
6789 }))(obj)).ExpirationTime)[local168]
6790 *p = math.Float32frombits(read32(r))
6793 for local169 := range (*(*(struct {
6796 Pos, Vel, Acc [2][3]float32
6797 ExpirationTime [2]float32 // in seconds.
6804 ID ParticleSpawnerID
6816 p := &((*(*(struct {
6819 Pos, Vel, Acc [2][3]float32
6820 ExpirationTime [2]float32 // in seconds.
6827 ID ParticleSpawnerID
6837 }))(obj)).Size)[local169]
6838 *p = math.Float32frombits(read32(r))
6845 Pos, Vel, Acc [2][3]float32
6846 ExpirationTime [2]float32 // in seconds.
6853 ID ParticleSpawnerID
6864 switch n := read8(r); n {
6870 chk(fmt.Errorf("invalid bool: %d", n))
6873 var local170 []uint8
6879 (local170) = make([]uint8, local171)
6881 _, err := io.ReadFull(r, (local170)[:])
6884 (*(*string)(&((*(*(struct {
6887 Pos, Vel, Acc [2][3]float32
6888 ExpirationTime [2]float32 // in seconds.
6895 ID ParticleSpawnerID
6905 }))(obj)).Texture))) = string(local170)
6906 if err := pcall(func() {
6910 Pos, Vel, Acc [2][3]float32
6911 ExpirationTime [2]float32 // in seconds.
6918 ID ParticleSpawnerID
6928 }))(obj)).ID).deserialize(r)
6933 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
6939 Pos, Vel, Acc [2][3]float32
6940 ExpirationTime [2]float32 // in seconds.
6947 ID ParticleSpawnerID
6958 switch n := read8(r); n {
6964 chk(fmt.Errorf("invalid bool: %d", n))
6971 Pos, Vel, Acc [2][3]float32
6972 ExpirationTime [2]float32 // in seconds.
6979 ID ParticleSpawnerID
6989 }))(obj)).CollisionRm
6990 switch n := read8(r); n {
6996 chk(fmt.Errorf("invalid bool: %d", n))
6999 if err := pcall(func() {
7003 Pos, Vel, Acc [2][3]float32
7004 ExpirationTime [2]float32 // in seconds.
7011 ID ParticleSpawnerID
7021 }))(obj)).AttachedAOID).deserialize(r)
7026 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
7028 if err := pcall(func() {
7032 Pos, Vel, Acc [2][3]float32
7033 ExpirationTime [2]float32 // in seconds.
7040 ID ParticleSpawnerID
7050 }))(obj)).AnimParams).deserialize(r)
7055 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
7061 Pos, Vel, Acc [2][3]float32
7062 ExpirationTime [2]float32 // in seconds.
7069 ID ParticleSpawnerID
7086 Pos, Vel, Acc [2][3]float32
7087 ExpirationTime [2]float32 // in seconds.
7094 ID ParticleSpawnerID
7104 }))(obj)).AOCollision
7105 switch n := read8(r); n {
7111 chk(fmt.Errorf("invalid bool: %d", n))
7114 if err := pcall(func() {
7118 Pos, Vel, Acc [2][3]float32
7119 ExpirationTime [2]float32 // in seconds.
7126 ID ParticleSpawnerID
7136 }))(obj)).NodeParam0).deserialize(r)
7141 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
7147 Pos, Vel, Acc [2][3]float32
7148 ExpirationTime [2]float32 // in seconds.
7155 ID ParticleSpawnerID
7165 }))(obj)).NodeParam2
7172 Pos, Vel, Acc [2][3]float32
7173 ExpirationTime [2]float32 // in seconds.
7180 ID ParticleSpawnerID
7195 func (obj *ToCltAddHUD) serialize(w io.Writer) {
7196 if err := pcall(func() {
7200 }))(obj)).ID).serialize(w)
7205 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7207 if err := pcall(func() {
7211 }))(obj)).HUD).serialize(w)
7216 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUD", err))
7220 func (obj *ToCltAddHUD) deserialize(r io.Reader) {
7221 if err := pcall(func() {
7225 }))(obj)).ID).deserialize(r)
7230 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7232 if err := pcall(func() {
7236 }))(obj)).HUD).deserialize(r)
7241 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUD", err))
7245 func (obj *ToCltRmHUD) serialize(w io.Writer) {
7246 if err := pcall(func() {
7249 }))(obj)).ID).serialize(w)
7254 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7258 func (obj *ToCltRmHUD) deserialize(r io.Reader) {
7259 if err := pcall(func() {
7262 }))(obj)).ID).deserialize(r)
7267 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7271 func (obj *ToCltChangeHUD) serialize(w io.Writer) {
7272 if err := pcall(func() {
7278 //mt:if %s.Field == HUDPos
7281 //mt:if %s.Field == HUDName
7284 //mt:if %s.Field == HUDScale
7287 //mt:if %s.Field == HUDText
7290 //mt:if %s.Field == HUDNumber
7293 //mt:if %s.Field == HUDItem
7296 //mt:if %s.Field == HUDDir
7299 //mt:if %s.Field == HUDAlign
7302 //mt:if %s.Field == HUDOffset
7305 //mt:if %s.Field == HUDWorldPos
7308 //mt:if %s.Field == HUDSize
7311 //mt:if %s.Field == HUDZIndex
7314 //mt:if %s.Field == HUDText2
7317 //mt:if %s.Field == HUDStyle
7319 }))(obj)).ID).serialize(w)
7324 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7326 if err := pcall(func() {
7332 //mt:if %s.Field == HUDPos
7335 //mt:if %s.Field == HUDName
7338 //mt:if %s.Field == HUDScale
7341 //mt:if %s.Field == HUDText
7344 //mt:if %s.Field == HUDNumber
7347 //mt:if %s.Field == HUDItem
7350 //mt:if %s.Field == HUDDir
7353 //mt:if %s.Field == HUDAlign
7356 //mt:if %s.Field == HUDOffset
7359 //mt:if %s.Field == HUDWorldPos
7362 //mt:if %s.Field == HUDSize
7365 //mt:if %s.Field == HUDZIndex
7368 //mt:if %s.Field == HUDText2
7371 //mt:if %s.Field == HUDStyle
7373 }))(obj)).Field).serialize(w)
7378 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
7385 //mt:if %s.Field == HUDPos
7388 //mt:if %s.Field == HUDName
7391 //mt:if %s.Field == HUDScale
7394 //mt:if %s.Field == HUDText
7397 //mt:if %s.Field == HUDNumber
7400 //mt:if %s.Field == HUDItem
7403 //mt:if %s.Field == HUDDir
7406 //mt:if %s.Field == HUDAlign
7409 //mt:if %s.Field == HUDOffset
7412 //mt:if %s.Field == HUDWorldPos
7415 //mt:if %s.Field == HUDSize
7418 //mt:if %s.Field == HUDZIndex
7421 //mt:if %s.Field == HUDText2
7424 //mt:if %s.Field == HUDStyle
7426 }))(obj)).Field < hudMax) {
7427 chk(errors.New("assertion failed: %s.Field < hudMax"))
7434 //mt:if %s.Field == HUDPos
7437 //mt:if %s.Field == HUDName
7440 //mt:if %s.Field == HUDScale
7443 //mt:if %s.Field == HUDText
7446 //mt:if %s.Field == HUDNumber
7449 //mt:if %s.Field == HUDItem
7452 //mt:if %s.Field == HUDDir
7455 //mt:if %s.Field == HUDAlign
7458 //mt:if %s.Field == HUDOffset
7461 //mt:if %s.Field == HUDWorldPos
7464 //mt:if %s.Field == HUDSize
7467 //mt:if %s.Field == HUDZIndex
7470 //mt:if %s.Field == HUDText2
7473 //mt:if %s.Field == HUDStyle
7475 }))(obj)).Field == HUDPos {
7476 for local172 := range (*(*(struct {
7481 //mt:if %s.Field == HUDPos
7484 //mt:if %s.Field == HUDName
7487 //mt:if %s.Field == HUDScale
7490 //mt:if %s.Field == HUDText
7493 //mt:if %s.Field == HUDNumber
7496 //mt:if %s.Field == HUDItem
7499 //mt:if %s.Field == HUDDir
7502 //mt:if %s.Field == HUDAlign
7505 //mt:if %s.Field == HUDOffset
7508 //mt:if %s.Field == HUDWorldPos
7511 //mt:if %s.Field == HUDSize
7514 //mt:if %s.Field == HUDZIndex
7517 //mt:if %s.Field == HUDText2
7520 //mt:if %s.Field == HUDStyle
7529 //mt:if %s.Field == HUDPos
7532 //mt:if %s.Field == HUDName
7535 //mt:if %s.Field == HUDScale
7538 //mt:if %s.Field == HUDText
7541 //mt:if %s.Field == HUDNumber
7544 //mt:if %s.Field == HUDItem
7547 //mt:if %s.Field == HUDDir
7550 //mt:if %s.Field == HUDAlign
7553 //mt:if %s.Field == HUDOffset
7556 //mt:if %s.Field == HUDWorldPos
7559 //mt:if %s.Field == HUDSize
7562 //mt:if %s.Field == HUDZIndex
7565 //mt:if %s.Field == HUDText2
7568 //mt:if %s.Field == HUDStyle
7570 }))(obj)).Pos)[local172]
7571 write32(w, math.Float32bits(x))
7580 //mt:if %s.Field == HUDPos
7583 //mt:if %s.Field == HUDName
7586 //mt:if %s.Field == HUDScale
7589 //mt:if %s.Field == HUDText
7592 //mt:if %s.Field == HUDNumber
7595 //mt:if %s.Field == HUDItem
7598 //mt:if %s.Field == HUDDir
7601 //mt:if %s.Field == HUDAlign
7604 //mt:if %s.Field == HUDOffset
7607 //mt:if %s.Field == HUDWorldPos
7610 //mt:if %s.Field == HUDSize
7613 //mt:if %s.Field == HUDZIndex
7616 //mt:if %s.Field == HUDText2
7619 //mt:if %s.Field == HUDStyle
7621 }))(obj)).Field == HUDName {
7622 if len(([]byte((*(*(struct {
7627 //mt:if %s.Field == HUDPos
7630 //mt:if %s.Field == HUDName
7633 //mt:if %s.Field == HUDScale
7636 //mt:if %s.Field == HUDText
7639 //mt:if %s.Field == HUDNumber
7642 //mt:if %s.Field == HUDItem
7645 //mt:if %s.Field == HUDDir
7648 //mt:if %s.Field == HUDAlign
7651 //mt:if %s.Field == HUDOffset
7654 //mt:if %s.Field == HUDWorldPos
7657 //mt:if %s.Field == HUDSize
7660 //mt:if %s.Field == HUDZIndex
7663 //mt:if %s.Field == HUDText2
7666 //mt:if %s.Field == HUDStyle
7668 }))(obj)).Name))) > math.MaxUint16 {
7672 x := uint16(len(([]byte((*(*(struct {
7677 //mt:if %s.Field == HUDPos
7680 //mt:if %s.Field == HUDName
7683 //mt:if %s.Field == HUDScale
7686 //mt:if %s.Field == HUDText
7689 //mt:if %s.Field == HUDNumber
7692 //mt:if %s.Field == HUDItem
7695 //mt:if %s.Field == HUDDir
7698 //mt:if %s.Field == HUDAlign
7701 //mt:if %s.Field == HUDOffset
7704 //mt:if %s.Field == HUDWorldPos
7707 //mt:if %s.Field == HUDSize
7710 //mt:if %s.Field == HUDZIndex
7713 //mt:if %s.Field == HUDText2
7716 //mt:if %s.Field == HUDStyle
7719 write16(w, uint16(x))
7722 _, err := w.Write(([]byte((*(*(struct {
7727 //mt:if %s.Field == HUDPos
7730 //mt:if %s.Field == HUDName
7733 //mt:if %s.Field == HUDScale
7736 //mt:if %s.Field == HUDText
7739 //mt:if %s.Field == HUDNumber
7742 //mt:if %s.Field == HUDItem
7745 //mt:if %s.Field == HUDDir
7748 //mt:if %s.Field == HUDAlign
7751 //mt:if %s.Field == HUDOffset
7754 //mt:if %s.Field == HUDWorldPos
7757 //mt:if %s.Field == HUDSize
7760 //mt:if %s.Field == HUDZIndex
7763 //mt:if %s.Field == HUDText2
7766 //mt:if %s.Field == HUDStyle
7768 }))(obj)).Name))[:])
7777 //mt:if %s.Field == HUDPos
7780 //mt:if %s.Field == HUDName
7783 //mt:if %s.Field == HUDScale
7786 //mt:if %s.Field == HUDText
7789 //mt:if %s.Field == HUDNumber
7792 //mt:if %s.Field == HUDItem
7795 //mt:if %s.Field == HUDDir
7798 //mt:if %s.Field == HUDAlign
7801 //mt:if %s.Field == HUDOffset
7804 //mt:if %s.Field == HUDWorldPos
7807 //mt:if %s.Field == HUDSize
7810 //mt:if %s.Field == HUDZIndex
7813 //mt:if %s.Field == HUDText2
7816 //mt:if %s.Field == HUDStyle
7818 }))(obj)).Field == HUDScale {
7819 for local173 := range (*(*(struct {
7824 //mt:if %s.Field == HUDPos
7827 //mt:if %s.Field == HUDName
7830 //mt:if %s.Field == HUDScale
7833 //mt:if %s.Field == HUDText
7836 //mt:if %s.Field == HUDNumber
7839 //mt:if %s.Field == HUDItem
7842 //mt:if %s.Field == HUDDir
7845 //mt:if %s.Field == HUDAlign
7848 //mt:if %s.Field == HUDOffset
7851 //mt:if %s.Field == HUDWorldPos
7854 //mt:if %s.Field == HUDSize
7857 //mt:if %s.Field == HUDZIndex
7860 //mt:if %s.Field == HUDText2
7863 //mt:if %s.Field == HUDStyle
7872 //mt:if %s.Field == HUDPos
7875 //mt:if %s.Field == HUDName
7878 //mt:if %s.Field == HUDScale
7881 //mt:if %s.Field == HUDText
7884 //mt:if %s.Field == HUDNumber
7887 //mt:if %s.Field == HUDItem
7890 //mt:if %s.Field == HUDDir
7893 //mt:if %s.Field == HUDAlign
7896 //mt:if %s.Field == HUDOffset
7899 //mt:if %s.Field == HUDWorldPos
7902 //mt:if %s.Field == HUDSize
7905 //mt:if %s.Field == HUDZIndex
7908 //mt:if %s.Field == HUDText2
7911 //mt:if %s.Field == HUDStyle
7913 }))(obj)).Scale)[local173]
7914 write32(w, math.Float32bits(x))
7923 //mt:if %s.Field == HUDPos
7926 //mt:if %s.Field == HUDName
7929 //mt:if %s.Field == HUDScale
7932 //mt:if %s.Field == HUDText
7935 //mt:if %s.Field == HUDNumber
7938 //mt:if %s.Field == HUDItem
7941 //mt:if %s.Field == HUDDir
7944 //mt:if %s.Field == HUDAlign
7947 //mt:if %s.Field == HUDOffset
7950 //mt:if %s.Field == HUDWorldPos
7953 //mt:if %s.Field == HUDSize
7956 //mt:if %s.Field == HUDZIndex
7959 //mt:if %s.Field == HUDText2
7962 //mt:if %s.Field == HUDStyle
7964 }))(obj)).Field == HUDText {
7965 if len(([]byte((*(*(struct {
7970 //mt:if %s.Field == HUDPos
7973 //mt:if %s.Field == HUDName
7976 //mt:if %s.Field == HUDScale
7979 //mt:if %s.Field == HUDText
7982 //mt:if %s.Field == HUDNumber
7985 //mt:if %s.Field == HUDItem
7988 //mt:if %s.Field == HUDDir
7991 //mt:if %s.Field == HUDAlign
7994 //mt:if %s.Field == HUDOffset
7997 //mt:if %s.Field == HUDWorldPos
8000 //mt:if %s.Field == HUDSize
8003 //mt:if %s.Field == HUDZIndex
8006 //mt:if %s.Field == HUDText2
8009 //mt:if %s.Field == HUDStyle
8011 }))(obj)).Text))) > math.MaxUint16 {
8015 x := uint16(len(([]byte((*(*(struct {
8020 //mt:if %s.Field == HUDPos
8023 //mt:if %s.Field == HUDName
8026 //mt:if %s.Field == HUDScale
8029 //mt:if %s.Field == HUDText
8032 //mt:if %s.Field == HUDNumber
8035 //mt:if %s.Field == HUDItem
8038 //mt:if %s.Field == HUDDir
8041 //mt:if %s.Field == HUDAlign
8044 //mt:if %s.Field == HUDOffset
8047 //mt:if %s.Field == HUDWorldPos
8050 //mt:if %s.Field == HUDSize
8053 //mt:if %s.Field == HUDZIndex
8056 //mt:if %s.Field == HUDText2
8059 //mt:if %s.Field == HUDStyle
8062 write16(w, uint16(x))
8065 _, err := w.Write(([]byte((*(*(struct {
8070 //mt:if %s.Field == HUDPos
8073 //mt:if %s.Field == HUDName
8076 //mt:if %s.Field == HUDScale
8079 //mt:if %s.Field == HUDText
8082 //mt:if %s.Field == HUDNumber
8085 //mt:if %s.Field == HUDItem
8088 //mt:if %s.Field == HUDDir
8091 //mt:if %s.Field == HUDAlign
8094 //mt:if %s.Field == HUDOffset
8097 //mt:if %s.Field == HUDWorldPos
8100 //mt:if %s.Field == HUDSize
8103 //mt:if %s.Field == HUDZIndex
8106 //mt:if %s.Field == HUDText2
8109 //mt:if %s.Field == HUDStyle
8111 }))(obj)).Text))[:])
8120 //mt:if %s.Field == HUDPos
8123 //mt:if %s.Field == HUDName
8126 //mt:if %s.Field == HUDScale
8129 //mt:if %s.Field == HUDText
8132 //mt:if %s.Field == HUDNumber
8135 //mt:if %s.Field == HUDItem
8138 //mt:if %s.Field == HUDDir
8141 //mt:if %s.Field == HUDAlign
8144 //mt:if %s.Field == HUDOffset
8147 //mt:if %s.Field == HUDWorldPos
8150 //mt:if %s.Field == HUDSize
8153 //mt:if %s.Field == HUDZIndex
8156 //mt:if %s.Field == HUDText2
8159 //mt:if %s.Field == HUDStyle
8161 }))(obj)).Field == HUDNumber {
8168 //mt:if %s.Field == HUDPos
8171 //mt:if %s.Field == HUDName
8174 //mt:if %s.Field == HUDScale
8177 //mt:if %s.Field == HUDText
8180 //mt:if %s.Field == HUDNumber
8183 //mt:if %s.Field == HUDItem
8186 //mt:if %s.Field == HUDDir
8189 //mt:if %s.Field == HUDAlign
8192 //mt:if %s.Field == HUDOffset
8195 //mt:if %s.Field == HUDWorldPos
8198 //mt:if %s.Field == HUDSize
8201 //mt:if %s.Field == HUDZIndex
8204 //mt:if %s.Field == HUDText2
8207 //mt:if %s.Field == HUDStyle
8210 write32(w, uint32(x))
8218 //mt:if %s.Field == HUDPos
8221 //mt:if %s.Field == HUDName
8224 //mt:if %s.Field == HUDScale
8227 //mt:if %s.Field == HUDText
8230 //mt:if %s.Field == HUDNumber
8233 //mt:if %s.Field == HUDItem
8236 //mt:if %s.Field == HUDDir
8239 //mt:if %s.Field == HUDAlign
8242 //mt:if %s.Field == HUDOffset
8245 //mt:if %s.Field == HUDWorldPos
8248 //mt:if %s.Field == HUDSize
8251 //mt:if %s.Field == HUDZIndex
8254 //mt:if %s.Field == HUDText2
8257 //mt:if %s.Field == HUDStyle
8259 }))(obj)).Field == HUDItem {
8266 //mt:if %s.Field == HUDPos
8269 //mt:if %s.Field == HUDName
8272 //mt:if %s.Field == HUDScale
8275 //mt:if %s.Field == HUDText
8278 //mt:if %s.Field == HUDNumber
8281 //mt:if %s.Field == HUDItem
8284 //mt:if %s.Field == HUDDir
8287 //mt:if %s.Field == HUDAlign
8290 //mt:if %s.Field == HUDOffset
8293 //mt:if %s.Field == HUDWorldPos
8296 //mt:if %s.Field == HUDSize
8299 //mt:if %s.Field == HUDZIndex
8302 //mt:if %s.Field == HUDText2
8305 //mt:if %s.Field == HUDStyle
8308 write32(w, uint32(x))
8316 //mt:if %s.Field == HUDPos
8319 //mt:if %s.Field == HUDName
8322 //mt:if %s.Field == HUDScale
8325 //mt:if %s.Field == HUDText
8328 //mt:if %s.Field == HUDNumber
8331 //mt:if %s.Field == HUDItem
8334 //mt:if %s.Field == HUDDir
8337 //mt:if %s.Field == HUDAlign
8340 //mt:if %s.Field == HUDOffset
8343 //mt:if %s.Field == HUDWorldPos
8346 //mt:if %s.Field == HUDSize
8349 //mt:if %s.Field == HUDZIndex
8352 //mt:if %s.Field == HUDText2
8355 //mt:if %s.Field == HUDStyle
8357 }))(obj)).Field == HUDDir {
8364 //mt:if %s.Field == HUDPos
8367 //mt:if %s.Field == HUDName
8370 //mt:if %s.Field == HUDScale
8373 //mt:if %s.Field == HUDText
8376 //mt:if %s.Field == HUDNumber
8379 //mt:if %s.Field == HUDItem
8382 //mt:if %s.Field == HUDDir
8385 //mt:if %s.Field == HUDAlign
8388 //mt:if %s.Field == HUDOffset
8391 //mt:if %s.Field == HUDWorldPos
8394 //mt:if %s.Field == HUDSize
8397 //mt:if %s.Field == HUDZIndex
8400 //mt:if %s.Field == HUDText2
8403 //mt:if %s.Field == HUDStyle
8406 write32(w, uint32(x))
8414 //mt:if %s.Field == HUDPos
8417 //mt:if %s.Field == HUDName
8420 //mt:if %s.Field == HUDScale
8423 //mt:if %s.Field == HUDText
8426 //mt:if %s.Field == HUDNumber
8429 //mt:if %s.Field == HUDItem
8432 //mt:if %s.Field == HUDDir
8435 //mt:if %s.Field == HUDAlign
8438 //mt:if %s.Field == HUDOffset
8441 //mt:if %s.Field == HUDWorldPos
8444 //mt:if %s.Field == HUDSize
8447 //mt:if %s.Field == HUDZIndex
8450 //mt:if %s.Field == HUDText2
8453 //mt:if %s.Field == HUDStyle
8455 }))(obj)).Field == HUDAlign {
8456 for local174 := range (*(*(struct {
8461 //mt:if %s.Field == HUDPos
8464 //mt:if %s.Field == HUDName
8467 //mt:if %s.Field == HUDScale
8470 //mt:if %s.Field == HUDText
8473 //mt:if %s.Field == HUDNumber
8476 //mt:if %s.Field == HUDItem
8479 //mt:if %s.Field == HUDDir
8482 //mt:if %s.Field == HUDAlign
8485 //mt:if %s.Field == HUDOffset
8488 //mt:if %s.Field == HUDWorldPos
8491 //mt:if %s.Field == HUDSize
8494 //mt:if %s.Field == HUDZIndex
8497 //mt:if %s.Field == HUDText2
8500 //mt:if %s.Field == HUDStyle
8509 //mt:if %s.Field == HUDPos
8512 //mt:if %s.Field == HUDName
8515 //mt:if %s.Field == HUDScale
8518 //mt:if %s.Field == HUDText
8521 //mt:if %s.Field == HUDNumber
8524 //mt:if %s.Field == HUDItem
8527 //mt:if %s.Field == HUDDir
8530 //mt:if %s.Field == HUDAlign
8533 //mt:if %s.Field == HUDOffset
8536 //mt:if %s.Field == HUDWorldPos
8539 //mt:if %s.Field == HUDSize
8542 //mt:if %s.Field == HUDZIndex
8545 //mt:if %s.Field == HUDText2
8548 //mt:if %s.Field == HUDStyle
8550 }))(obj)).Align)[local174]
8551 write32(w, math.Float32bits(x))
8560 //mt:if %s.Field == HUDPos
8563 //mt:if %s.Field == HUDName
8566 //mt:if %s.Field == HUDScale
8569 //mt:if %s.Field == HUDText
8572 //mt:if %s.Field == HUDNumber
8575 //mt:if %s.Field == HUDItem
8578 //mt:if %s.Field == HUDDir
8581 //mt:if %s.Field == HUDAlign
8584 //mt:if %s.Field == HUDOffset
8587 //mt:if %s.Field == HUDWorldPos
8590 //mt:if %s.Field == HUDSize
8593 //mt:if %s.Field == HUDZIndex
8596 //mt:if %s.Field == HUDText2
8599 //mt:if %s.Field == HUDStyle
8601 }))(obj)).Field == HUDOffset {
8602 for local175 := range (*(*(struct {
8607 //mt:if %s.Field == HUDPos
8610 //mt:if %s.Field == HUDName
8613 //mt:if %s.Field == HUDScale
8616 //mt:if %s.Field == HUDText
8619 //mt:if %s.Field == HUDNumber
8622 //mt:if %s.Field == HUDItem
8625 //mt:if %s.Field == HUDDir
8628 //mt:if %s.Field == HUDAlign
8631 //mt:if %s.Field == HUDOffset
8634 //mt:if %s.Field == HUDWorldPos
8637 //mt:if %s.Field == HUDSize
8640 //mt:if %s.Field == HUDZIndex
8643 //mt:if %s.Field == HUDText2
8646 //mt:if %s.Field == HUDStyle
8655 //mt:if %s.Field == HUDPos
8658 //mt:if %s.Field == HUDName
8661 //mt:if %s.Field == HUDScale
8664 //mt:if %s.Field == HUDText
8667 //mt:if %s.Field == HUDNumber
8670 //mt:if %s.Field == HUDItem
8673 //mt:if %s.Field == HUDDir
8676 //mt:if %s.Field == HUDAlign
8679 //mt:if %s.Field == HUDOffset
8682 //mt:if %s.Field == HUDWorldPos
8685 //mt:if %s.Field == HUDSize
8688 //mt:if %s.Field == HUDZIndex
8691 //mt:if %s.Field == HUDText2
8694 //mt:if %s.Field == HUDStyle
8696 }))(obj)).Offset)[local175]
8697 write32(w, math.Float32bits(x))
8706 //mt:if %s.Field == HUDPos
8709 //mt:if %s.Field == HUDName
8712 //mt:if %s.Field == HUDScale
8715 //mt:if %s.Field == HUDText
8718 //mt:if %s.Field == HUDNumber
8721 //mt:if %s.Field == HUDItem
8724 //mt:if %s.Field == HUDDir
8727 //mt:if %s.Field == HUDAlign
8730 //mt:if %s.Field == HUDOffset
8733 //mt:if %s.Field == HUDWorldPos
8736 //mt:if %s.Field == HUDSize
8739 //mt:if %s.Field == HUDZIndex
8742 //mt:if %s.Field == HUDText2
8745 //mt:if %s.Field == HUDStyle
8747 }))(obj)).Field == HUDWorldPos {
8748 if err := pcall(func() {
8754 //mt:if %s.Field == HUDPos
8757 //mt:if %s.Field == HUDName
8760 //mt:if %s.Field == HUDScale
8763 //mt:if %s.Field == HUDText
8766 //mt:if %s.Field == HUDNumber
8769 //mt:if %s.Field == HUDItem
8772 //mt:if %s.Field == HUDDir
8775 //mt:if %s.Field == HUDAlign
8778 //mt:if %s.Field == HUDOffset
8781 //mt:if %s.Field == HUDWorldPos
8784 //mt:if %s.Field == HUDSize
8787 //mt:if %s.Field == HUDZIndex
8790 //mt:if %s.Field == HUDText2
8793 //mt:if %s.Field == HUDStyle
8795 }))(obj)).WorldPos).serialize(w)
8800 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
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
8847 //mt:if %s.Field == HUDStyle
8849 }))(obj)).Field == HUDSize {
8850 for local176 := range (*(*(struct {
8855 //mt:if %s.Field == HUDPos
8858 //mt:if %s.Field == HUDName
8861 //mt:if %s.Field == HUDScale
8864 //mt:if %s.Field == HUDText
8867 //mt:if %s.Field == HUDNumber
8870 //mt:if %s.Field == HUDItem
8873 //mt:if %s.Field == HUDDir
8876 //mt:if %s.Field == HUDAlign
8879 //mt:if %s.Field == HUDOffset
8882 //mt:if %s.Field == HUDWorldPos
8885 //mt:if %s.Field == HUDSize
8888 //mt:if %s.Field == HUDZIndex
8891 //mt:if %s.Field == HUDText2
8894 //mt:if %s.Field == HUDStyle
8903 //mt:if %s.Field == HUDPos
8906 //mt:if %s.Field == HUDName
8909 //mt:if %s.Field == HUDScale
8912 //mt:if %s.Field == HUDText
8915 //mt:if %s.Field == HUDNumber
8918 //mt:if %s.Field == HUDItem
8921 //mt:if %s.Field == HUDDir
8924 //mt:if %s.Field == HUDAlign
8927 //mt:if %s.Field == HUDOffset
8930 //mt:if %s.Field == HUDWorldPos
8933 //mt:if %s.Field == HUDSize
8936 //mt:if %s.Field == HUDZIndex
8939 //mt:if %s.Field == HUDText2
8942 //mt:if %s.Field == HUDStyle
8944 }))(obj)).Size)[local176]
8945 write32(w, uint32(x))
8954 //mt:if %s.Field == HUDPos
8957 //mt:if %s.Field == HUDName
8960 //mt:if %s.Field == HUDScale
8963 //mt:if %s.Field == HUDText
8966 //mt:if %s.Field == HUDNumber
8969 //mt:if %s.Field == HUDItem
8972 //mt:if %s.Field == HUDDir
8975 //mt:if %s.Field == HUDAlign
8978 //mt:if %s.Field == HUDOffset
8981 //mt:if %s.Field == HUDWorldPos
8984 //mt:if %s.Field == HUDSize
8987 //mt:if %s.Field == HUDZIndex
8990 //mt:if %s.Field == HUDText2
8993 //mt:if %s.Field == HUDStyle
8995 }))(obj)).Field == HUDZIndex {
9002 //mt:if %s.Field == HUDPos
9005 //mt:if %s.Field == HUDName
9008 //mt:if %s.Field == HUDScale
9011 //mt:if %s.Field == HUDText
9014 //mt:if %s.Field == HUDNumber
9017 //mt:if %s.Field == HUDItem
9020 //mt:if %s.Field == HUDDir
9023 //mt:if %s.Field == HUDAlign
9026 //mt:if %s.Field == HUDOffset
9029 //mt:if %s.Field == HUDWorldPos
9032 //mt:if %s.Field == HUDSize
9035 //mt:if %s.Field == HUDZIndex
9038 //mt:if %s.Field == HUDText2
9041 //mt:if %s.Field == HUDStyle
9044 write32(w, uint32(x))
9052 //mt:if %s.Field == HUDPos
9055 //mt:if %s.Field == HUDName
9058 //mt:if %s.Field == HUDScale
9061 //mt:if %s.Field == HUDText
9064 //mt:if %s.Field == HUDNumber
9067 //mt:if %s.Field == HUDItem
9070 //mt:if %s.Field == HUDDir
9073 //mt:if %s.Field == HUDAlign
9076 //mt:if %s.Field == HUDOffset
9079 //mt:if %s.Field == HUDWorldPos
9082 //mt:if %s.Field == HUDSize
9085 //mt:if %s.Field == HUDZIndex
9088 //mt:if %s.Field == HUDText2
9091 //mt:if %s.Field == HUDStyle
9093 }))(obj)).Field == HUDText2 {
9094 if len(([]byte((*(*(struct {
9099 //mt:if %s.Field == HUDPos
9102 //mt:if %s.Field == HUDName
9105 //mt:if %s.Field == HUDScale
9108 //mt:if %s.Field == HUDText
9111 //mt:if %s.Field == HUDNumber
9114 //mt:if %s.Field == HUDItem
9117 //mt:if %s.Field == HUDDir
9120 //mt:if %s.Field == HUDAlign
9123 //mt:if %s.Field == HUDOffset
9126 //mt:if %s.Field == HUDWorldPos
9129 //mt:if %s.Field == HUDSize
9132 //mt:if %s.Field == HUDZIndex
9135 //mt:if %s.Field == HUDText2
9138 //mt:if %s.Field == HUDStyle
9140 }))(obj)).Text2))) > math.MaxUint16 {
9144 x := uint16(len(([]byte((*(*(struct {
9149 //mt:if %s.Field == HUDPos
9152 //mt:if %s.Field == HUDName
9155 //mt:if %s.Field == HUDScale
9158 //mt:if %s.Field == HUDText
9161 //mt:if %s.Field == HUDNumber
9164 //mt:if %s.Field == HUDItem
9167 //mt:if %s.Field == HUDDir
9170 //mt:if %s.Field == HUDAlign
9173 //mt:if %s.Field == HUDOffset
9176 //mt:if %s.Field == HUDWorldPos
9179 //mt:if %s.Field == HUDSize
9182 //mt:if %s.Field == HUDZIndex
9185 //mt:if %s.Field == HUDText2
9188 //mt:if %s.Field == HUDStyle
9191 write16(w, uint16(x))
9194 _, err := w.Write(([]byte((*(*(struct {
9199 //mt:if %s.Field == HUDPos
9202 //mt:if %s.Field == HUDName
9205 //mt:if %s.Field == HUDScale
9208 //mt:if %s.Field == HUDText
9211 //mt:if %s.Field == HUDNumber
9214 //mt:if %s.Field == HUDItem
9217 //mt:if %s.Field == HUDDir
9220 //mt:if %s.Field == HUDAlign
9223 //mt:if %s.Field == HUDOffset
9226 //mt:if %s.Field == HUDWorldPos
9229 //mt:if %s.Field == HUDSize
9232 //mt:if %s.Field == HUDZIndex
9235 //mt:if %s.Field == HUDText2
9238 //mt:if %s.Field == HUDStyle
9240 }))(obj)).Text2))[:])
9249 //mt:if %s.Field == HUDPos
9252 //mt:if %s.Field == HUDName
9255 //mt:if %s.Field == HUDScale
9258 //mt:if %s.Field == HUDText
9261 //mt:if %s.Field == HUDNumber
9264 //mt:if %s.Field == HUDItem
9267 //mt:if %s.Field == HUDDir
9270 //mt:if %s.Field == HUDAlign
9273 //mt:if %s.Field == HUDOffset
9276 //mt:if %s.Field == HUDWorldPos
9279 //mt:if %s.Field == HUDSize
9282 //mt:if %s.Field == HUDZIndex
9285 //mt:if %s.Field == HUDText2
9288 //mt:if %s.Field == HUDStyle
9290 }))(obj)).Field == HUDStyle {
9291 if err := pcall(func() {
9297 //mt:if %s.Field == HUDPos
9300 //mt:if %s.Field == HUDName
9303 //mt:if %s.Field == HUDScale
9306 //mt:if %s.Field == HUDText
9309 //mt:if %s.Field == HUDNumber
9312 //mt:if %s.Field == HUDItem
9315 //mt:if %s.Field == HUDDir
9318 //mt:if %s.Field == HUDAlign
9321 //mt:if %s.Field == HUDOffset
9324 //mt:if %s.Field == HUDWorldPos
9327 //mt:if %s.Field == HUDSize
9330 //mt:if %s.Field == HUDZIndex
9333 //mt:if %s.Field == HUDText2
9336 //mt:if %s.Field == HUDStyle
9338 }))(obj)).Style).serialize(w)
9343 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDStyleFlags", err))
9348 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9349 if err := pcall(func() {
9355 //mt:if %s.Field == HUDPos
9358 //mt:if %s.Field == HUDName
9361 //mt:if %s.Field == HUDScale
9364 //mt:if %s.Field == HUDText
9367 //mt:if %s.Field == HUDNumber
9370 //mt:if %s.Field == HUDItem
9373 //mt:if %s.Field == HUDDir
9376 //mt:if %s.Field == HUDAlign
9379 //mt:if %s.Field == HUDOffset
9382 //mt:if %s.Field == HUDWorldPos
9385 //mt:if %s.Field == HUDSize
9388 //mt:if %s.Field == HUDZIndex
9391 //mt:if %s.Field == HUDText2
9394 //mt:if %s.Field == HUDStyle
9396 }))(obj)).ID).deserialize(r)
9401 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
9403 if err := pcall(func() {
9409 //mt:if %s.Field == HUDPos
9412 //mt:if %s.Field == HUDName
9415 //mt:if %s.Field == HUDScale
9418 //mt:if %s.Field == HUDText
9421 //mt:if %s.Field == HUDNumber
9424 //mt:if %s.Field == HUDItem
9427 //mt:if %s.Field == HUDDir
9430 //mt:if %s.Field == HUDAlign
9433 //mt:if %s.Field == HUDOffset
9436 //mt:if %s.Field == HUDWorldPos
9439 //mt:if %s.Field == HUDSize
9442 //mt:if %s.Field == HUDZIndex
9445 //mt:if %s.Field == HUDText2
9448 //mt:if %s.Field == HUDStyle
9450 }))(obj)).Field).deserialize(r)
9455 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
9462 //mt:if %s.Field == HUDPos
9465 //mt:if %s.Field == HUDName
9468 //mt:if %s.Field == HUDScale
9471 //mt:if %s.Field == HUDText
9474 //mt:if %s.Field == HUDNumber
9477 //mt:if %s.Field == HUDItem
9480 //mt:if %s.Field == HUDDir
9483 //mt:if %s.Field == HUDAlign
9486 //mt:if %s.Field == HUDOffset
9489 //mt:if %s.Field == HUDWorldPos
9492 //mt:if %s.Field == HUDSize
9495 //mt:if %s.Field == HUDZIndex
9498 //mt:if %s.Field == HUDText2
9501 //mt:if %s.Field == HUDStyle
9503 }))(obj)).Field < hudMax) {
9504 chk(errors.New("assertion failed: %s.Field < hudMax"))
9511 //mt:if %s.Field == HUDPos
9514 //mt:if %s.Field == HUDName
9517 //mt:if %s.Field == HUDScale
9520 //mt:if %s.Field == HUDText
9523 //mt:if %s.Field == HUDNumber
9526 //mt:if %s.Field == HUDItem
9529 //mt:if %s.Field == HUDDir
9532 //mt:if %s.Field == HUDAlign
9535 //mt:if %s.Field == HUDOffset
9538 //mt:if %s.Field == HUDWorldPos
9541 //mt:if %s.Field == HUDSize
9544 //mt:if %s.Field == HUDZIndex
9547 //mt:if %s.Field == HUDText2
9550 //mt:if %s.Field == HUDStyle
9552 }))(obj)).Field == HUDPos {
9553 for local177 := range (*(*(struct {
9558 //mt:if %s.Field == HUDPos
9561 //mt:if %s.Field == HUDName
9564 //mt:if %s.Field == HUDScale
9567 //mt:if %s.Field == HUDText
9570 //mt:if %s.Field == HUDNumber
9573 //mt:if %s.Field == HUDItem
9576 //mt:if %s.Field == HUDDir
9579 //mt:if %s.Field == HUDAlign
9582 //mt:if %s.Field == HUDOffset
9585 //mt:if %s.Field == HUDWorldPos
9588 //mt:if %s.Field == HUDSize
9591 //mt:if %s.Field == HUDZIndex
9594 //mt:if %s.Field == HUDText2
9597 //mt:if %s.Field == HUDStyle
9601 p := &((*(*(struct {
9606 //mt:if %s.Field == HUDPos
9609 //mt:if %s.Field == HUDName
9612 //mt:if %s.Field == HUDScale
9615 //mt:if %s.Field == HUDText
9618 //mt:if %s.Field == HUDNumber
9621 //mt:if %s.Field == HUDItem
9624 //mt:if %s.Field == HUDDir
9627 //mt:if %s.Field == HUDAlign
9630 //mt:if %s.Field == HUDOffset
9633 //mt:if %s.Field == HUDWorldPos
9636 //mt:if %s.Field == HUDSize
9639 //mt:if %s.Field == HUDZIndex
9642 //mt:if %s.Field == HUDText2
9645 //mt:if %s.Field == HUDStyle
9647 }))(obj)).Pos)[local177]
9648 *p = math.Float32frombits(read32(r))
9657 //mt:if %s.Field == HUDPos
9660 //mt:if %s.Field == HUDName
9663 //mt:if %s.Field == HUDScale
9666 //mt:if %s.Field == HUDText
9669 //mt:if %s.Field == HUDNumber
9672 //mt:if %s.Field == HUDItem
9675 //mt:if %s.Field == HUDDir
9678 //mt:if %s.Field == HUDAlign
9681 //mt:if %s.Field == HUDOffset
9684 //mt:if %s.Field == HUDWorldPos
9687 //mt:if %s.Field == HUDSize
9690 //mt:if %s.Field == HUDZIndex
9693 //mt:if %s.Field == HUDText2
9696 //mt:if %s.Field == HUDStyle
9698 }))(obj)).Field == HUDName {
9699 var local178 []uint8
9705 (local178) = make([]uint8, local179)
9707 _, err := io.ReadFull(r, (local178)[:])
9715 //mt:if %s.Field == HUDPos
9718 //mt:if %s.Field == HUDName
9721 //mt:if %s.Field == HUDScale
9724 //mt:if %s.Field == HUDText
9727 //mt:if %s.Field == HUDNumber
9730 //mt:if %s.Field == HUDItem
9733 //mt:if %s.Field == HUDDir
9736 //mt:if %s.Field == HUDAlign
9739 //mt:if %s.Field == HUDOffset
9742 //mt:if %s.Field == HUDWorldPos
9745 //mt:if %s.Field == HUDSize
9748 //mt:if %s.Field == HUDZIndex
9751 //mt:if %s.Field == HUDText2
9754 //mt:if %s.Field == HUDStyle
9756 }))(obj)).Name) = string(local178)
9763 //mt:if %s.Field == HUDPos
9766 //mt:if %s.Field == HUDName
9769 //mt:if %s.Field == HUDScale
9772 //mt:if %s.Field == HUDText
9775 //mt:if %s.Field == HUDNumber
9778 //mt:if %s.Field == HUDItem
9781 //mt:if %s.Field == HUDDir
9784 //mt:if %s.Field == HUDAlign
9787 //mt:if %s.Field == HUDOffset
9790 //mt:if %s.Field == HUDWorldPos
9793 //mt:if %s.Field == HUDSize
9796 //mt:if %s.Field == HUDZIndex
9799 //mt:if %s.Field == HUDText2
9802 //mt:if %s.Field == HUDStyle
9804 }))(obj)).Field == HUDScale {
9805 for local180 := range (*(*(struct {
9810 //mt:if %s.Field == HUDPos
9813 //mt:if %s.Field == HUDName
9816 //mt:if %s.Field == HUDScale
9819 //mt:if %s.Field == HUDText
9822 //mt:if %s.Field == HUDNumber
9825 //mt:if %s.Field == HUDItem
9828 //mt:if %s.Field == HUDDir
9831 //mt:if %s.Field == HUDAlign
9834 //mt:if %s.Field == HUDOffset
9837 //mt:if %s.Field == HUDWorldPos
9840 //mt:if %s.Field == HUDSize
9843 //mt:if %s.Field == HUDZIndex
9846 //mt:if %s.Field == HUDText2
9849 //mt:if %s.Field == HUDStyle
9853 p := &((*(*(struct {
9858 //mt:if %s.Field == HUDPos
9861 //mt:if %s.Field == HUDName
9864 //mt:if %s.Field == HUDScale
9867 //mt:if %s.Field == HUDText
9870 //mt:if %s.Field == HUDNumber
9873 //mt:if %s.Field == HUDItem
9876 //mt:if %s.Field == HUDDir
9879 //mt:if %s.Field == HUDAlign
9882 //mt:if %s.Field == HUDOffset
9885 //mt:if %s.Field == HUDWorldPos
9888 //mt:if %s.Field == HUDSize
9891 //mt:if %s.Field == HUDZIndex
9894 //mt:if %s.Field == HUDText2
9897 //mt:if %s.Field == HUDStyle
9899 }))(obj)).Scale)[local180]
9900 *p = math.Float32frombits(read32(r))
9909 //mt:if %s.Field == HUDPos
9912 //mt:if %s.Field == HUDName
9915 //mt:if %s.Field == HUDScale
9918 //mt:if %s.Field == HUDText
9921 //mt:if %s.Field == HUDNumber
9924 //mt:if %s.Field == HUDItem
9927 //mt:if %s.Field == HUDDir
9930 //mt:if %s.Field == HUDAlign
9933 //mt:if %s.Field == HUDOffset
9936 //mt:if %s.Field == HUDWorldPos
9939 //mt:if %s.Field == HUDSize
9942 //mt:if %s.Field == HUDZIndex
9945 //mt:if %s.Field == HUDText2
9948 //mt:if %s.Field == HUDStyle
9950 }))(obj)).Field == HUDText {
9951 var local181 []uint8
9957 (local181) = make([]uint8, local182)
9959 _, err := io.ReadFull(r, (local181)[:])
9967 //mt:if %s.Field == HUDPos
9970 //mt:if %s.Field == HUDName
9973 //mt:if %s.Field == HUDScale
9976 //mt:if %s.Field == HUDText
9979 //mt:if %s.Field == HUDNumber
9982 //mt:if %s.Field == HUDItem
9985 //mt:if %s.Field == HUDDir
9988 //mt:if %s.Field == HUDAlign
9991 //mt:if %s.Field == HUDOffset
9994 //mt:if %s.Field == HUDWorldPos
9997 //mt:if %s.Field == HUDSize
10000 //mt:if %s.Field == HUDZIndex
10003 //mt:if %s.Field == HUDText2
10006 //mt:if %s.Field == HUDStyle
10007 Style HUDStyleFlags
10008 }))(obj)).Text) = string(local181)
10015 //mt:if %s.Field == HUDPos
10018 //mt:if %s.Field == HUDName
10021 //mt:if %s.Field == HUDScale
10024 //mt:if %s.Field == HUDText
10027 //mt:if %s.Field == HUDNumber
10030 //mt:if %s.Field == HUDItem
10033 //mt:if %s.Field == HUDDir
10036 //mt:if %s.Field == HUDAlign
10039 //mt:if %s.Field == HUDOffset
10042 //mt:if %s.Field == HUDWorldPos
10045 //mt:if %s.Field == HUDSize
10048 //mt:if %s.Field == HUDZIndex
10051 //mt:if %s.Field == HUDText2
10054 //mt:if %s.Field == HUDStyle
10055 Style HUDStyleFlags
10056 }))(obj)).Field == HUDNumber {
10058 p := &(*(*(struct {
10063 //mt:if %s.Field == HUDPos
10066 //mt:if %s.Field == HUDName
10069 //mt:if %s.Field == HUDScale
10072 //mt:if %s.Field == HUDText
10075 //mt:if %s.Field == HUDNumber
10078 //mt:if %s.Field == HUDItem
10081 //mt:if %s.Field == HUDDir
10084 //mt:if %s.Field == HUDAlign
10087 //mt:if %s.Field == HUDOffset
10090 //mt:if %s.Field == HUDWorldPos
10093 //mt:if %s.Field == HUDSize
10096 //mt:if %s.Field == HUDZIndex
10099 //mt:if %s.Field == HUDText2
10102 //mt:if %s.Field == HUDStyle
10103 Style HUDStyleFlags
10113 //mt:if %s.Field == HUDPos
10116 //mt:if %s.Field == HUDName
10119 //mt:if %s.Field == HUDScale
10122 //mt:if %s.Field == HUDText
10125 //mt:if %s.Field == HUDNumber
10128 //mt:if %s.Field == HUDItem
10131 //mt:if %s.Field == HUDDir
10134 //mt:if %s.Field == HUDAlign
10137 //mt:if %s.Field == HUDOffset
10140 //mt:if %s.Field == HUDWorldPos
10143 //mt:if %s.Field == HUDSize
10146 //mt:if %s.Field == HUDZIndex
10149 //mt:if %s.Field == HUDText2
10152 //mt:if %s.Field == HUDStyle
10153 Style HUDStyleFlags
10154 }))(obj)).Field == HUDItem {
10156 p := &(*(*(struct {
10161 //mt:if %s.Field == HUDPos
10164 //mt:if %s.Field == HUDName
10167 //mt:if %s.Field == HUDScale
10170 //mt:if %s.Field == HUDText
10173 //mt:if %s.Field == HUDNumber
10176 //mt:if %s.Field == HUDItem
10179 //mt:if %s.Field == HUDDir
10182 //mt:if %s.Field == HUDAlign
10185 //mt:if %s.Field == HUDOffset
10188 //mt:if %s.Field == HUDWorldPos
10191 //mt:if %s.Field == HUDSize
10194 //mt:if %s.Field == HUDZIndex
10197 //mt:if %s.Field == HUDText2
10200 //mt:if %s.Field == HUDStyle
10201 Style HUDStyleFlags
10211 //mt:if %s.Field == HUDPos
10214 //mt:if %s.Field == HUDName
10217 //mt:if %s.Field == HUDScale
10220 //mt:if %s.Field == HUDText
10223 //mt:if %s.Field == HUDNumber
10226 //mt:if %s.Field == HUDItem
10229 //mt:if %s.Field == HUDDir
10232 //mt:if %s.Field == HUDAlign
10235 //mt:if %s.Field == HUDOffset
10238 //mt:if %s.Field == HUDWorldPos
10241 //mt:if %s.Field == HUDSize
10244 //mt:if %s.Field == HUDZIndex
10247 //mt:if %s.Field == HUDText2
10250 //mt:if %s.Field == HUDStyle
10251 Style HUDStyleFlags
10252 }))(obj)).Field == HUDDir {
10254 p := &(*(*(struct {
10259 //mt:if %s.Field == HUDPos
10262 //mt:if %s.Field == HUDName
10265 //mt:if %s.Field == HUDScale
10268 //mt:if %s.Field == HUDText
10271 //mt:if %s.Field == HUDNumber
10274 //mt:if %s.Field == HUDItem
10277 //mt:if %s.Field == HUDDir
10280 //mt:if %s.Field == HUDAlign
10283 //mt:if %s.Field == HUDOffset
10286 //mt:if %s.Field == HUDWorldPos
10289 //mt:if %s.Field == HUDSize
10292 //mt:if %s.Field == HUDZIndex
10295 //mt:if %s.Field == HUDText2
10298 //mt:if %s.Field == HUDStyle
10299 Style HUDStyleFlags
10309 //mt:if %s.Field == HUDPos
10312 //mt:if %s.Field == HUDName
10315 //mt:if %s.Field == HUDScale
10318 //mt:if %s.Field == HUDText
10321 //mt:if %s.Field == HUDNumber
10324 //mt:if %s.Field == HUDItem
10327 //mt:if %s.Field == HUDDir
10330 //mt:if %s.Field == HUDAlign
10333 //mt:if %s.Field == HUDOffset
10336 //mt:if %s.Field == HUDWorldPos
10339 //mt:if %s.Field == HUDSize
10342 //mt:if %s.Field == HUDZIndex
10345 //mt:if %s.Field == HUDText2
10348 //mt:if %s.Field == HUDStyle
10349 Style HUDStyleFlags
10350 }))(obj)).Field == HUDAlign {
10351 for local183 := range (*(*(struct {
10356 //mt:if %s.Field == HUDPos
10359 //mt:if %s.Field == HUDName
10362 //mt:if %s.Field == HUDScale
10365 //mt:if %s.Field == HUDText
10368 //mt:if %s.Field == HUDNumber
10371 //mt:if %s.Field == HUDItem
10374 //mt:if %s.Field == HUDDir
10377 //mt:if %s.Field == HUDAlign
10380 //mt:if %s.Field == HUDOffset
10383 //mt:if %s.Field == HUDWorldPos
10386 //mt:if %s.Field == HUDSize
10389 //mt:if %s.Field == HUDZIndex
10392 //mt:if %s.Field == HUDText2
10395 //mt:if %s.Field == HUDStyle
10396 Style HUDStyleFlags
10399 p := &((*(*(struct {
10404 //mt:if %s.Field == HUDPos
10407 //mt:if %s.Field == HUDName
10410 //mt:if %s.Field == HUDScale
10413 //mt:if %s.Field == HUDText
10416 //mt:if %s.Field == HUDNumber
10419 //mt:if %s.Field == HUDItem
10422 //mt:if %s.Field == HUDDir
10425 //mt:if %s.Field == HUDAlign
10428 //mt:if %s.Field == HUDOffset
10431 //mt:if %s.Field == HUDWorldPos
10434 //mt:if %s.Field == HUDSize
10437 //mt:if %s.Field == HUDZIndex
10440 //mt:if %s.Field == HUDText2
10443 //mt:if %s.Field == HUDStyle
10444 Style HUDStyleFlags
10445 }))(obj)).Align)[local183]
10446 *p = math.Float32frombits(read32(r))
10455 //mt:if %s.Field == HUDPos
10458 //mt:if %s.Field == HUDName
10461 //mt:if %s.Field == HUDScale
10464 //mt:if %s.Field == HUDText
10467 //mt:if %s.Field == HUDNumber
10470 //mt:if %s.Field == HUDItem
10473 //mt:if %s.Field == HUDDir
10476 //mt:if %s.Field == HUDAlign
10479 //mt:if %s.Field == HUDOffset
10482 //mt:if %s.Field == HUDWorldPos
10485 //mt:if %s.Field == HUDSize
10488 //mt:if %s.Field == HUDZIndex
10491 //mt:if %s.Field == HUDText2
10494 //mt:if %s.Field == HUDStyle
10495 Style HUDStyleFlags
10496 }))(obj)).Field == HUDOffset {
10497 for local184 := range (*(*(struct {
10502 //mt:if %s.Field == HUDPos
10505 //mt:if %s.Field == HUDName
10508 //mt:if %s.Field == HUDScale
10511 //mt:if %s.Field == HUDText
10514 //mt:if %s.Field == HUDNumber
10517 //mt:if %s.Field == HUDItem
10520 //mt:if %s.Field == HUDDir
10523 //mt:if %s.Field == HUDAlign
10526 //mt:if %s.Field == HUDOffset
10529 //mt:if %s.Field == HUDWorldPos
10532 //mt:if %s.Field == HUDSize
10535 //mt:if %s.Field == HUDZIndex
10538 //mt:if %s.Field == HUDText2
10541 //mt:if %s.Field == HUDStyle
10542 Style HUDStyleFlags
10545 p := &((*(*(struct {
10550 //mt:if %s.Field == HUDPos
10553 //mt:if %s.Field == HUDName
10556 //mt:if %s.Field == HUDScale
10559 //mt:if %s.Field == HUDText
10562 //mt:if %s.Field == HUDNumber
10565 //mt:if %s.Field == HUDItem
10568 //mt:if %s.Field == HUDDir
10571 //mt:if %s.Field == HUDAlign
10574 //mt:if %s.Field == HUDOffset
10577 //mt:if %s.Field == HUDWorldPos
10580 //mt:if %s.Field == HUDSize
10583 //mt:if %s.Field == HUDZIndex
10586 //mt:if %s.Field == HUDText2
10589 //mt:if %s.Field == HUDStyle
10590 Style HUDStyleFlags
10591 }))(obj)).Offset)[local184]
10592 *p = math.Float32frombits(read32(r))
10601 //mt:if %s.Field == HUDPos
10604 //mt:if %s.Field == HUDName
10607 //mt:if %s.Field == HUDScale
10610 //mt:if %s.Field == HUDText
10613 //mt:if %s.Field == HUDNumber
10616 //mt:if %s.Field == HUDItem
10619 //mt:if %s.Field == HUDDir
10622 //mt:if %s.Field == HUDAlign
10625 //mt:if %s.Field == HUDOffset
10628 //mt:if %s.Field == HUDWorldPos
10631 //mt:if %s.Field == HUDSize
10634 //mt:if %s.Field == HUDZIndex
10637 //mt:if %s.Field == HUDText2
10640 //mt:if %s.Field == HUDStyle
10641 Style HUDStyleFlags
10642 }))(obj)).Field == HUDWorldPos {
10643 if err := pcall(func() {
10649 //mt:if %s.Field == HUDPos
10652 //mt:if %s.Field == HUDName
10655 //mt:if %s.Field == HUDScale
10658 //mt:if %s.Field == HUDText
10661 //mt:if %s.Field == HUDNumber
10664 //mt:if %s.Field == HUDItem
10667 //mt:if %s.Field == HUDDir
10670 //mt:if %s.Field == HUDAlign
10673 //mt:if %s.Field == HUDOffset
10676 //mt:if %s.Field == HUDWorldPos
10679 //mt:if %s.Field == HUDSize
10682 //mt:if %s.Field == HUDZIndex
10685 //mt:if %s.Field == HUDText2
10688 //mt:if %s.Field == HUDStyle
10689 Style HUDStyleFlags
10690 }))(obj)).WorldPos).deserialize(r)
10695 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
10703 //mt:if %s.Field == HUDPos
10706 //mt:if %s.Field == HUDName
10709 //mt:if %s.Field == HUDScale
10712 //mt:if %s.Field == HUDText
10715 //mt:if %s.Field == HUDNumber
10718 //mt:if %s.Field == HUDItem
10721 //mt:if %s.Field == HUDDir
10724 //mt:if %s.Field == HUDAlign
10727 //mt:if %s.Field == HUDOffset
10730 //mt:if %s.Field == HUDWorldPos
10733 //mt:if %s.Field == HUDSize
10736 //mt:if %s.Field == HUDZIndex
10739 //mt:if %s.Field == HUDText2
10742 //mt:if %s.Field == HUDStyle
10743 Style HUDStyleFlags
10744 }))(obj)).Field == HUDSize {
10745 for local185 := range (*(*(struct {
10750 //mt:if %s.Field == HUDPos
10753 //mt:if %s.Field == HUDName
10756 //mt:if %s.Field == HUDScale
10759 //mt:if %s.Field == HUDText
10762 //mt:if %s.Field == HUDNumber
10765 //mt:if %s.Field == HUDItem
10768 //mt:if %s.Field == HUDDir
10771 //mt:if %s.Field == HUDAlign
10774 //mt:if %s.Field == HUDOffset
10777 //mt:if %s.Field == HUDWorldPos
10780 //mt:if %s.Field == HUDSize
10783 //mt:if %s.Field == HUDZIndex
10786 //mt:if %s.Field == HUDText2
10789 //mt:if %s.Field == HUDStyle
10790 Style HUDStyleFlags
10793 p := &((*(*(struct {
10798 //mt:if %s.Field == HUDPos
10801 //mt:if %s.Field == HUDName
10804 //mt:if %s.Field == HUDScale
10807 //mt:if %s.Field == HUDText
10810 //mt:if %s.Field == HUDNumber
10813 //mt:if %s.Field == HUDItem
10816 //mt:if %s.Field == HUDDir
10819 //mt:if %s.Field == HUDAlign
10822 //mt:if %s.Field == HUDOffset
10825 //mt:if %s.Field == HUDWorldPos
10828 //mt:if %s.Field == HUDSize
10831 //mt:if %s.Field == HUDZIndex
10834 //mt:if %s.Field == HUDText2
10837 //mt:if %s.Field == HUDStyle
10838 Style HUDStyleFlags
10839 }))(obj)).Size)[local185]
10840 *p = int32(read32(r))
10849 //mt:if %s.Field == HUDPos
10852 //mt:if %s.Field == HUDName
10855 //mt:if %s.Field == HUDScale
10858 //mt:if %s.Field == HUDText
10861 //mt:if %s.Field == HUDNumber
10864 //mt:if %s.Field == HUDItem
10867 //mt:if %s.Field == HUDDir
10870 //mt:if %s.Field == HUDAlign
10873 //mt:if %s.Field == HUDOffset
10876 //mt:if %s.Field == HUDWorldPos
10879 //mt:if %s.Field == HUDSize
10882 //mt:if %s.Field == HUDZIndex
10885 //mt:if %s.Field == HUDText2
10888 //mt:if %s.Field == HUDStyle
10889 Style HUDStyleFlags
10890 }))(obj)).Field == HUDZIndex {
10892 p := &(*(*(struct {
10897 //mt:if %s.Field == HUDPos
10900 //mt:if %s.Field == HUDName
10903 //mt:if %s.Field == HUDScale
10906 //mt:if %s.Field == HUDText
10909 //mt:if %s.Field == HUDNumber
10912 //mt:if %s.Field == HUDItem
10915 //mt:if %s.Field == HUDDir
10918 //mt:if %s.Field == HUDAlign
10921 //mt:if %s.Field == HUDOffset
10924 //mt:if %s.Field == HUDWorldPos
10927 //mt:if %s.Field == HUDSize
10930 //mt:if %s.Field == HUDZIndex
10933 //mt:if %s.Field == HUDText2
10936 //mt:if %s.Field == HUDStyle
10937 Style HUDStyleFlags
10939 *p = int32(read32(r))
10947 //mt:if %s.Field == HUDPos
10950 //mt:if %s.Field == HUDName
10953 //mt:if %s.Field == HUDScale
10956 //mt:if %s.Field == HUDText
10959 //mt:if %s.Field == HUDNumber
10962 //mt:if %s.Field == HUDItem
10965 //mt:if %s.Field == HUDDir
10968 //mt:if %s.Field == HUDAlign
10971 //mt:if %s.Field == HUDOffset
10974 //mt:if %s.Field == HUDWorldPos
10977 //mt:if %s.Field == HUDSize
10980 //mt:if %s.Field == HUDZIndex
10983 //mt:if %s.Field == HUDText2
10986 //mt:if %s.Field == HUDStyle
10987 Style HUDStyleFlags
10988 }))(obj)).Field == HUDText2 {
10989 var local186 []uint8
10990 var local187 uint16
10995 (local186) = make([]uint8, local187)
10997 _, err := io.ReadFull(r, (local186)[:])
11005 //mt:if %s.Field == HUDPos
11008 //mt:if %s.Field == HUDName
11011 //mt:if %s.Field == HUDScale
11014 //mt:if %s.Field == HUDText
11017 //mt:if %s.Field == HUDNumber
11020 //mt:if %s.Field == HUDItem
11023 //mt:if %s.Field == HUDDir
11026 //mt:if %s.Field == HUDAlign
11029 //mt:if %s.Field == HUDOffset
11032 //mt:if %s.Field == HUDWorldPos
11035 //mt:if %s.Field == HUDSize
11038 //mt:if %s.Field == HUDZIndex
11041 //mt:if %s.Field == HUDText2
11044 //mt:if %s.Field == HUDStyle
11045 Style HUDStyleFlags
11046 }))(obj)).Text2) = string(local186)
11053 //mt:if %s.Field == HUDPos
11056 //mt:if %s.Field == HUDName
11059 //mt:if %s.Field == HUDScale
11062 //mt:if %s.Field == HUDText
11065 //mt:if %s.Field == HUDNumber
11068 //mt:if %s.Field == HUDItem
11071 //mt:if %s.Field == HUDDir
11074 //mt:if %s.Field == HUDAlign
11077 //mt:if %s.Field == HUDOffset
11080 //mt:if %s.Field == HUDWorldPos
11083 //mt:if %s.Field == HUDSize
11086 //mt:if %s.Field == HUDZIndex
11089 //mt:if %s.Field == HUDText2
11092 //mt:if %s.Field == HUDStyle
11093 Style HUDStyleFlags
11094 }))(obj)).Field == HUDStyle {
11095 if err := pcall(func() {
11101 //mt:if %s.Field == HUDPos
11104 //mt:if %s.Field == HUDName
11107 //mt:if %s.Field == HUDScale
11110 //mt:if %s.Field == HUDText
11113 //mt:if %s.Field == HUDNumber
11116 //mt:if %s.Field == HUDItem
11119 //mt:if %s.Field == HUDDir
11122 //mt:if %s.Field == HUDAlign
11125 //mt:if %s.Field == HUDOffset
11128 //mt:if %s.Field == HUDWorldPos
11131 //mt:if %s.Field == HUDSize
11134 //mt:if %s.Field == HUDZIndex
11137 //mt:if %s.Field == HUDText2
11140 //mt:if %s.Field == HUDStyle
11141 Style HUDStyleFlags
11142 }))(obj)).Style).deserialize(r)
11147 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDStyleFlags", err))
11152 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
11153 if err := pcall(func() {
11157 Flags, Mask HUDFlags
11158 }))(obj)).Flags).serialize(w)
11163 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
11165 if err := pcall(func() {
11169 Flags, Mask HUDFlags
11170 }))(obj)).Mask).serialize(w)
11175 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
11179 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
11180 if err := pcall(func() {
11184 Flags, Mask HUDFlags
11185 }))(obj)).Flags).deserialize(r)
11190 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
11192 if err := pcall(func() {
11196 Flags, Mask HUDFlags
11197 }))(obj)).Mask).deserialize(r)
11202 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
11206 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
11207 if err := pcall(func() {
11211 //mt:if %s.Param == HotbarSize
11212 //mt:const uint16(4) // Size of Size field.
11215 //mt:if %s.Param != HotbarSize
11217 }))(obj)).Param).serialize(w)
11222 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
11227 //mt:if %s.Param == HotbarSize
11228 //mt:const uint16(4) // Size of Size field.
11231 //mt:if %s.Param != HotbarSize
11233 }))(obj)).Param == HotbarSize {
11235 local188 := uint16(4) // Size of Size field.
11238 write16(w, uint16(x))
11245 //mt:if %s.Param == HotbarSize
11246 //mt:const uint16(4) // Size of Size field.
11249 //mt:if %s.Param != HotbarSize
11252 write32(w, uint32(x))
11258 //mt:if %s.Param == HotbarSize
11259 //mt:const uint16(4) // Size of Size field.
11262 //mt:if %s.Param != HotbarSize
11264 }))(obj)).Param != HotbarSize {
11265 if err := pcall(func() {
11269 //mt:if %s.Param == HotbarSize
11270 //mt:const uint16(4) // Size of Size field.
11273 //mt:if %s.Param != HotbarSize
11275 }))(obj)).Img).serialize(w)
11280 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11285 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
11286 if err := pcall(func() {
11290 //mt:if %s.Param == HotbarSize
11291 //mt:const uint16(4) // Size of Size field.
11294 //mt:if %s.Param != HotbarSize
11296 }))(obj)).Param).deserialize(r)
11301 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
11306 //mt:if %s.Param == HotbarSize
11307 //mt:const uint16(4) // Size of Size field.
11310 //mt:if %s.Param != HotbarSize
11312 }))(obj)).Param == HotbarSize {
11314 var local189 uint16
11315 local190 := uint16(4) // Size of Size field.
11320 if local189 != local190 {
11321 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
11325 p := &(*(*(struct {
11328 //mt:if %s.Param == HotbarSize
11329 //mt:const uint16(4) // Size of Size field.
11332 //mt:if %s.Param != HotbarSize
11335 *p = int32(read32(r))
11341 //mt:if %s.Param == HotbarSize
11342 //mt:const uint16(4) // Size of Size field.
11345 //mt:if %s.Param != HotbarSize
11347 }))(obj)).Param != HotbarSize {
11348 if err := pcall(func() {
11352 //mt:if %s.Param == HotbarSize
11353 //mt:const uint16(4) // Size of Size field.
11356 //mt:if %s.Param != HotbarSize
11358 }))(obj)).Img).deserialize(r)
11363 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11368 func (obj *ToCltBreath) serialize(w io.Writer) {
11373 write16(w, uint16(x))
11377 func (obj *ToCltBreath) deserialize(r io.Reader) {
11379 p := &(*(*(struct {
11386 func (obj *ToCltSkyParams) serialize(w io.Writer) {
11389 BgColor color.NRGBA
11392 SunFogTint color.NRGBA
11393 MoonFogTint color.NRGBA
11396 //mt:if %s.Type == "skybox"
11399 //mt:if %s.Type == "regular"
11400 DaySky, DayHorizon,
11401 DawnSky, DawnHorizon,
11402 NightSky, NightHorizon,
11405 w.Write([]byte{x.A, x.R, x.G, x.B})
11407 if len(([]byte((*(*(struct {
11408 BgColor color.NRGBA
11411 SunFogTint color.NRGBA
11412 MoonFogTint color.NRGBA
11415 //mt:if %s.Type == "skybox"
11418 //mt:if %s.Type == "regular"
11419 DaySky, DayHorizon,
11420 DawnSky, DawnHorizon,
11421 NightSky, NightHorizon,
11423 }))(obj)).Type))) > math.MaxUint16 {
11427 x := uint16(len(([]byte((*(*(struct {
11428 BgColor color.NRGBA
11431 SunFogTint color.NRGBA
11432 MoonFogTint color.NRGBA
11435 //mt:if %s.Type == "skybox"
11438 //mt:if %s.Type == "regular"
11439 DaySky, DayHorizon,
11440 DawnSky, DawnHorizon,
11441 NightSky, NightHorizon,
11444 write16(w, uint16(x))
11447 _, err := w.Write(([]byte((*(*(struct {
11448 BgColor color.NRGBA
11451 SunFogTint color.NRGBA
11452 MoonFogTint color.NRGBA
11455 //mt:if %s.Type == "skybox"
11458 //mt:if %s.Type == "regular"
11459 DaySky, DayHorizon,
11460 DawnSky, DawnHorizon,
11461 NightSky, NightHorizon,
11463 }))(obj)).Type))[:])
11468 BgColor color.NRGBA
11471 SunFogTint color.NRGBA
11472 MoonFogTint color.NRGBA
11475 //mt:if %s.Type == "skybox"
11478 //mt:if %s.Type == "regular"
11479 DaySky, DayHorizon,
11480 DawnSky, DawnHorizon,
11481 NightSky, NightHorizon,
11492 BgColor color.NRGBA
11495 SunFogTint color.NRGBA
11496 MoonFogTint color.NRGBA
11499 //mt:if %s.Type == "skybox"
11502 //mt:if %s.Type == "regular"
11503 DaySky, DayHorizon,
11504 DawnSky, DawnHorizon,
11505 NightSky, NightHorizon,
11507 }))(obj)).SunFogTint
11508 w.Write([]byte{x.A, x.R, x.G, x.B})
11512 BgColor color.NRGBA
11515 SunFogTint color.NRGBA
11516 MoonFogTint color.NRGBA
11519 //mt:if %s.Type == "skybox"
11522 //mt:if %s.Type == "regular"
11523 DaySky, DayHorizon,
11524 DawnSky, DawnHorizon,
11525 NightSky, NightHorizon,
11527 }))(obj)).MoonFogTint
11528 w.Write([]byte{x.A, x.R, x.G, x.B})
11530 if len(([]byte((*(*(struct {
11531 BgColor color.NRGBA
11534 SunFogTint color.NRGBA
11535 MoonFogTint color.NRGBA
11538 //mt:if %s.Type == "skybox"
11541 //mt:if %s.Type == "regular"
11542 DaySky, DayHorizon,
11543 DawnSky, DawnHorizon,
11544 NightSky, NightHorizon,
11546 }))(obj)).FogTintType))) > math.MaxUint16 {
11550 x := uint16(len(([]byte((*(*(struct {
11551 BgColor color.NRGBA
11554 SunFogTint color.NRGBA
11555 MoonFogTint color.NRGBA
11558 //mt:if %s.Type == "skybox"
11561 //mt:if %s.Type == "regular"
11562 DaySky, DayHorizon,
11563 DawnSky, DawnHorizon,
11564 NightSky, NightHorizon,
11566 }))(obj)).FogTintType))))
11567 write16(w, uint16(x))
11570 _, err := w.Write(([]byte((*(*(struct {
11571 BgColor color.NRGBA
11574 SunFogTint color.NRGBA
11575 MoonFogTint color.NRGBA
11578 //mt:if %s.Type == "skybox"
11581 //mt:if %s.Type == "regular"
11582 DaySky, DayHorizon,
11583 DawnSky, DawnHorizon,
11584 NightSky, NightHorizon,
11586 }))(obj)).FogTintType))[:])
11590 BgColor color.NRGBA
11593 SunFogTint color.NRGBA
11594 MoonFogTint color.NRGBA
11597 //mt:if %s.Type == "skybox"
11600 //mt:if %s.Type == "regular"
11601 DaySky, DayHorizon,
11602 DawnSky, DawnHorizon,
11603 NightSky, NightHorizon,
11605 }))(obj)).Type == "skybox" {
11606 if len(((*(*(struct {
11607 BgColor color.NRGBA
11610 SunFogTint color.NRGBA
11611 MoonFogTint color.NRGBA
11614 //mt:if %s.Type == "skybox"
11617 //mt:if %s.Type == "regular"
11618 DaySky, DayHorizon,
11619 DawnSky, DawnHorizon,
11620 NightSky, NightHorizon,
11622 }))(obj)).Textures)) > math.MaxUint16 {
11626 x := uint16(len(((*(*(struct {
11627 BgColor color.NRGBA
11630 SunFogTint color.NRGBA
11631 MoonFogTint color.NRGBA
11634 //mt:if %s.Type == "skybox"
11637 //mt:if %s.Type == "regular"
11638 DaySky, DayHorizon,
11639 DawnSky, DawnHorizon,
11640 NightSky, NightHorizon,
11642 }))(obj)).Textures)))
11643 write16(w, uint16(x))
11645 for local191 := range (*(*(struct {
11646 BgColor color.NRGBA
11649 SunFogTint color.NRGBA
11650 MoonFogTint color.NRGBA
11653 //mt:if %s.Type == "skybox"
11656 //mt:if %s.Type == "regular"
11657 DaySky, DayHorizon,
11658 DawnSky, DawnHorizon,
11659 NightSky, NightHorizon,
11661 }))(obj)).Textures {
11662 if err := pcall(func() {
11664 BgColor color.NRGBA
11667 SunFogTint color.NRGBA
11668 MoonFogTint color.NRGBA
11671 //mt:if %s.Type == "skybox"
11674 //mt:if %s.Type == "regular"
11675 DaySky, DayHorizon,
11676 DawnSky, DawnHorizon,
11677 NightSky, NightHorizon,
11679 }))(obj)).Textures)[local191]).serialize(w)
11684 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11689 BgColor color.NRGBA
11692 SunFogTint color.NRGBA
11693 MoonFogTint color.NRGBA
11696 //mt:if %s.Type == "skybox"
11699 //mt:if %s.Type == "regular"
11700 DaySky, DayHorizon,
11701 DawnSky, DawnHorizon,
11702 NightSky, NightHorizon,
11704 }))(obj)).Type == "regular" {
11707 BgColor color.NRGBA
11710 SunFogTint color.NRGBA
11711 MoonFogTint color.NRGBA
11714 //mt:if %s.Type == "skybox"
11717 //mt:if %s.Type == "regular"
11718 DaySky, DayHorizon,
11719 DawnSky, DawnHorizon,
11720 NightSky, NightHorizon,
11723 w.Write([]byte{x.A, x.R, x.G, x.B})
11727 BgColor color.NRGBA
11730 SunFogTint color.NRGBA
11731 MoonFogTint color.NRGBA
11734 //mt:if %s.Type == "skybox"
11737 //mt:if %s.Type == "regular"
11738 DaySky, DayHorizon,
11739 DawnSky, DawnHorizon,
11740 NightSky, NightHorizon,
11742 }))(obj)).DayHorizon
11743 w.Write([]byte{x.A, x.R, x.G, x.B})
11747 BgColor color.NRGBA
11750 SunFogTint color.NRGBA
11751 MoonFogTint color.NRGBA
11754 //mt:if %s.Type == "skybox"
11757 //mt:if %s.Type == "regular"
11758 DaySky, DayHorizon,
11759 DawnSky, DawnHorizon,
11760 NightSky, NightHorizon,
11763 w.Write([]byte{x.A, x.R, x.G, x.B})
11767 BgColor color.NRGBA
11770 SunFogTint color.NRGBA
11771 MoonFogTint color.NRGBA
11774 //mt:if %s.Type == "skybox"
11777 //mt:if %s.Type == "regular"
11778 DaySky, DayHorizon,
11779 DawnSky, DawnHorizon,
11780 NightSky, NightHorizon,
11782 }))(obj)).DawnHorizon
11783 w.Write([]byte{x.A, x.R, x.G, x.B})
11787 BgColor color.NRGBA
11790 SunFogTint color.NRGBA
11791 MoonFogTint color.NRGBA
11794 //mt:if %s.Type == "skybox"
11797 //mt:if %s.Type == "regular"
11798 DaySky, DayHorizon,
11799 DawnSky, DawnHorizon,
11800 NightSky, NightHorizon,
11803 w.Write([]byte{x.A, x.R, x.G, x.B})
11807 BgColor color.NRGBA
11810 SunFogTint color.NRGBA
11811 MoonFogTint color.NRGBA
11814 //mt:if %s.Type == "skybox"
11817 //mt:if %s.Type == "regular"
11818 DaySky, DayHorizon,
11819 DawnSky, DawnHorizon,
11820 NightSky, NightHorizon,
11822 }))(obj)).NightHorizon
11823 w.Write([]byte{x.A, x.R, x.G, x.B})
11827 BgColor color.NRGBA
11830 SunFogTint color.NRGBA
11831 MoonFogTint color.NRGBA
11834 //mt:if %s.Type == "skybox"
11837 //mt:if %s.Type == "regular"
11838 DaySky, DayHorizon,
11839 DawnSky, DawnHorizon,
11840 NightSky, NightHorizon,
11843 w.Write([]byte{x.A, x.R, x.G, x.B})
11848 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11850 p := &(*(*(struct {
11851 BgColor color.NRGBA
11854 SunFogTint color.NRGBA
11855 MoonFogTint color.NRGBA
11858 //mt:if %s.Type == "skybox"
11861 //mt:if %s.Type == "regular"
11862 DaySky, DayHorizon,
11863 DawnSky, DawnHorizon,
11864 NightSky, NightHorizon,
11867 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11869 var local192 []uint8
11870 var local193 uint16
11875 (local192) = make([]uint8, local193)
11877 _, err := io.ReadFull(r, (local192)[:])
11881 BgColor color.NRGBA
11884 SunFogTint color.NRGBA
11885 MoonFogTint color.NRGBA
11888 //mt:if %s.Type == "skybox"
11891 //mt:if %s.Type == "regular"
11892 DaySky, DayHorizon,
11893 DawnSky, DawnHorizon,
11894 NightSky, NightHorizon,
11896 }))(obj)).Type) = string(local192)
11898 p := &(*(*(struct {
11899 BgColor color.NRGBA
11902 SunFogTint color.NRGBA
11903 MoonFogTint color.NRGBA
11906 //mt:if %s.Type == "skybox"
11909 //mt:if %s.Type == "regular"
11910 DaySky, DayHorizon,
11911 DawnSky, DawnHorizon,
11912 NightSky, NightHorizon,
11915 switch n := read8(r); n {
11921 chk(fmt.Errorf("invalid bool: %d", n))
11925 p := &(*(*(struct {
11926 BgColor color.NRGBA
11929 SunFogTint color.NRGBA
11930 MoonFogTint color.NRGBA
11933 //mt:if %s.Type == "skybox"
11936 //mt:if %s.Type == "regular"
11937 DaySky, DayHorizon,
11938 DawnSky, DawnHorizon,
11939 NightSky, NightHorizon,
11941 }))(obj)).SunFogTint
11942 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11945 p := &(*(*(struct {
11946 BgColor color.NRGBA
11949 SunFogTint color.NRGBA
11950 MoonFogTint color.NRGBA
11953 //mt:if %s.Type == "skybox"
11956 //mt:if %s.Type == "regular"
11957 DaySky, DayHorizon,
11958 DawnSky, DawnHorizon,
11959 NightSky, NightHorizon,
11961 }))(obj)).MoonFogTint
11962 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11964 var local194 []uint8
11965 var local195 uint16
11970 (local194) = make([]uint8, local195)
11972 _, err := io.ReadFull(r, (local194)[:])
11976 BgColor color.NRGBA
11979 SunFogTint color.NRGBA
11980 MoonFogTint color.NRGBA
11983 //mt:if %s.Type == "skybox"
11986 //mt:if %s.Type == "regular"
11987 DaySky, DayHorizon,
11988 DawnSky, DawnHorizon,
11989 NightSky, NightHorizon,
11991 }))(obj)).FogTintType) = string(local194)
11993 BgColor color.NRGBA
11996 SunFogTint color.NRGBA
11997 MoonFogTint color.NRGBA
12000 //mt:if %s.Type == "skybox"
12003 //mt:if %s.Type == "regular"
12004 DaySky, DayHorizon,
12005 DawnSky, DawnHorizon,
12006 NightSky, NightHorizon,
12008 }))(obj)).Type == "skybox" {
12009 var local196 uint16
12015 BgColor color.NRGBA
12018 SunFogTint color.NRGBA
12019 MoonFogTint color.NRGBA
12022 //mt:if %s.Type == "skybox"
12025 //mt:if %s.Type == "regular"
12026 DaySky, DayHorizon,
12027 DawnSky, DawnHorizon,
12028 NightSky, NightHorizon,
12030 }))(obj)).Textures) = make([]Texture, local196)
12031 for local197 := range (*(*(struct {
12032 BgColor color.NRGBA
12035 SunFogTint color.NRGBA
12036 MoonFogTint color.NRGBA
12039 //mt:if %s.Type == "skybox"
12042 //mt:if %s.Type == "regular"
12043 DaySky, DayHorizon,
12044 DawnSky, DawnHorizon,
12045 NightSky, NightHorizon,
12047 }))(obj)).Textures {
12048 if err := pcall(func() {
12050 BgColor color.NRGBA
12053 SunFogTint color.NRGBA
12054 MoonFogTint color.NRGBA
12057 //mt:if %s.Type == "skybox"
12060 //mt:if %s.Type == "regular"
12061 DaySky, DayHorizon,
12062 DawnSky, DawnHorizon,
12063 NightSky, NightHorizon,
12065 }))(obj)).Textures)[local197]).deserialize(r)
12070 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12075 BgColor color.NRGBA
12078 SunFogTint color.NRGBA
12079 MoonFogTint color.NRGBA
12082 //mt:if %s.Type == "skybox"
12085 //mt:if %s.Type == "regular"
12086 DaySky, DayHorizon,
12087 DawnSky, DawnHorizon,
12088 NightSky, NightHorizon,
12090 }))(obj)).Type == "regular" {
12092 p := &(*(*(struct {
12093 BgColor color.NRGBA
12096 SunFogTint color.NRGBA
12097 MoonFogTint color.NRGBA
12100 //mt:if %s.Type == "skybox"
12103 //mt:if %s.Type == "regular"
12104 DaySky, DayHorizon,
12105 DawnSky, DawnHorizon,
12106 NightSky, NightHorizon,
12109 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12112 p := &(*(*(struct {
12113 BgColor color.NRGBA
12116 SunFogTint color.NRGBA
12117 MoonFogTint color.NRGBA
12120 //mt:if %s.Type == "skybox"
12123 //mt:if %s.Type == "regular"
12124 DaySky, DayHorizon,
12125 DawnSky, DawnHorizon,
12126 NightSky, NightHorizon,
12128 }))(obj)).DayHorizon
12129 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12132 p := &(*(*(struct {
12133 BgColor color.NRGBA
12136 SunFogTint color.NRGBA
12137 MoonFogTint color.NRGBA
12140 //mt:if %s.Type == "skybox"
12143 //mt:if %s.Type == "regular"
12144 DaySky, DayHorizon,
12145 DawnSky, DawnHorizon,
12146 NightSky, NightHorizon,
12149 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12152 p := &(*(*(struct {
12153 BgColor color.NRGBA
12156 SunFogTint color.NRGBA
12157 MoonFogTint color.NRGBA
12160 //mt:if %s.Type == "skybox"
12163 //mt:if %s.Type == "regular"
12164 DaySky, DayHorizon,
12165 DawnSky, DawnHorizon,
12166 NightSky, NightHorizon,
12168 }))(obj)).DawnHorizon
12169 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12172 p := &(*(*(struct {
12173 BgColor color.NRGBA
12176 SunFogTint color.NRGBA
12177 MoonFogTint color.NRGBA
12180 //mt:if %s.Type == "skybox"
12183 //mt:if %s.Type == "regular"
12184 DaySky, DayHorizon,
12185 DawnSky, DawnHorizon,
12186 NightSky, NightHorizon,
12189 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12192 p := &(*(*(struct {
12193 BgColor color.NRGBA
12196 SunFogTint color.NRGBA
12197 MoonFogTint color.NRGBA
12200 //mt:if %s.Type == "skybox"
12203 //mt:if %s.Type == "regular"
12204 DaySky, DayHorizon,
12205 DawnSky, DawnHorizon,
12206 NightSky, NightHorizon,
12208 }))(obj)).NightHorizon
12209 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12212 p := &(*(*(struct {
12213 BgColor color.NRGBA
12216 SunFogTint color.NRGBA
12217 MoonFogTint color.NRGBA
12220 //mt:if %s.Type == "skybox"
12223 //mt:if %s.Type == "regular"
12224 DaySky, DayHorizon,
12225 DawnSky, DawnHorizon,
12226 NightSky, NightHorizon,
12229 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12234 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
12251 write16(w, uint16(x))
12255 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
12257 p := &(*(*(struct {
12261 switch n := read8(r); n {
12267 chk(fmt.Errorf("invalid bool: %d", n))
12271 p := &(*(*(struct {
12279 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
12280 for local198 := range (*(*(struct {
12281 Idle, Walk, Dig, WalkDig [2]int32
12285 x := ((*(*(struct {
12286 Idle, Walk, Dig, WalkDig [2]int32
12288 }))(obj)).Idle)[local198]
12289 write32(w, uint32(x))
12292 for local199 := range (*(*(struct {
12293 Idle, Walk, Dig, WalkDig [2]int32
12297 x := ((*(*(struct {
12298 Idle, Walk, Dig, WalkDig [2]int32
12300 }))(obj)).Walk)[local199]
12301 write32(w, uint32(x))
12304 for local200 := range (*(*(struct {
12305 Idle, Walk, Dig, WalkDig [2]int32
12309 x := ((*(*(struct {
12310 Idle, Walk, Dig, WalkDig [2]int32
12312 }))(obj)).Dig)[local200]
12313 write32(w, uint32(x))
12316 for local201 := range (*(*(struct {
12317 Idle, Walk, Dig, WalkDig [2]int32
12319 }))(obj)).WalkDig {
12321 x := ((*(*(struct {
12322 Idle, Walk, Dig, WalkDig [2]int32
12324 }))(obj)).WalkDig)[local201]
12325 write32(w, uint32(x))
12330 Idle, Walk, Dig, WalkDig [2]int32
12333 write32(w, math.Float32bits(x))
12337 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
12338 for local202 := range (*(*(struct {
12339 Idle, Walk, Dig, WalkDig [2]int32
12343 p := &((*(*(struct {
12344 Idle, Walk, Dig, WalkDig [2]int32
12346 }))(obj)).Idle)[local202]
12347 *p = int32(read32(r))
12350 for local203 := range (*(*(struct {
12351 Idle, Walk, Dig, WalkDig [2]int32
12355 p := &((*(*(struct {
12356 Idle, Walk, Dig, WalkDig [2]int32
12358 }))(obj)).Walk)[local203]
12359 *p = int32(read32(r))
12362 for local204 := range (*(*(struct {
12363 Idle, Walk, Dig, WalkDig [2]int32
12367 p := &((*(*(struct {
12368 Idle, Walk, Dig, WalkDig [2]int32
12370 }))(obj)).Dig)[local204]
12371 *p = int32(read32(r))
12374 for local205 := range (*(*(struct {
12375 Idle, Walk, Dig, WalkDig [2]int32
12377 }))(obj)).WalkDig {
12379 p := &((*(*(struct {
12380 Idle, Walk, Dig, WalkDig [2]int32
12382 }))(obj)).WalkDig)[local205]
12383 *p = int32(read32(r))
12387 p := &(*(*(struct {
12388 Idle, Walk, Dig, WalkDig [2]int32
12391 *p = math.Float32frombits(read32(r))
12395 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
12396 if err := pcall(func() {
12399 }))(obj)).First).serialize(w)
12404 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12406 if err := pcall(func() {
12409 }))(obj)).Third).serialize(w)
12414 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12418 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
12419 if err := pcall(func() {
12422 }))(obj)).First).deserialize(r)
12427 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12429 if err := pcall(func() {
12432 }))(obj)).Third).deserialize(r)
12437 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12441 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12442 if err := pcall(func() {
12444 ID ParticleSpawnerID
12445 }))(obj)).ID).serialize(w)
12450 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12454 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12455 if err := pcall(func() {
12457 ID ParticleSpawnerID
12458 }))(obj)).ID).deserialize(r)
12463 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12467 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12471 DiffuseColor color.NRGBA
12472 AmbientColor color.NRGBA
12477 write32(w, math.Float32bits(x))
12482 DiffuseColor color.NRGBA
12483 AmbientColor color.NRGBA
12487 }))(obj)).DiffuseColor
12488 w.Write([]byte{x.A, x.R, x.G, x.B})
12493 DiffuseColor color.NRGBA
12494 AmbientColor color.NRGBA
12498 }))(obj)).AmbientColor
12499 w.Write([]byte{x.A, x.R, x.G, x.B})
12504 DiffuseColor color.NRGBA
12505 AmbientColor color.NRGBA
12510 write32(w, math.Float32bits(x))
12515 DiffuseColor color.NRGBA
12516 AmbientColor color.NRGBA
12520 }))(obj)).Thickness
12521 write32(w, math.Float32bits(x))
12523 for local206 := range (*(*(struct {
12525 DiffuseColor color.NRGBA
12526 AmbientColor color.NRGBA
12532 x := ((*(*(struct {
12534 DiffuseColor color.NRGBA
12535 AmbientColor color.NRGBA
12539 }))(obj)).Speed)[local206]
12540 write32(w, math.Float32bits(x))
12545 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12547 p := &(*(*(struct {
12549 DiffuseColor color.NRGBA
12550 AmbientColor color.NRGBA
12555 *p = math.Float32frombits(read32(r))
12558 p := &(*(*(struct {
12560 DiffuseColor color.NRGBA
12561 AmbientColor color.NRGBA
12565 }))(obj)).DiffuseColor
12566 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12569 p := &(*(*(struct {
12571 DiffuseColor color.NRGBA
12572 AmbientColor color.NRGBA
12576 }))(obj)).AmbientColor
12577 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12580 p := &(*(*(struct {
12582 DiffuseColor color.NRGBA
12583 AmbientColor color.NRGBA
12588 *p = math.Float32frombits(read32(r))
12591 p := &(*(*(struct {
12593 DiffuseColor color.NRGBA
12594 AmbientColor color.NRGBA
12598 }))(obj)).Thickness
12599 *p = math.Float32frombits(read32(r))
12601 for local207 := range (*(*(struct {
12603 DiffuseColor color.NRGBA
12604 AmbientColor color.NRGBA
12610 p := &((*(*(struct {
12612 DiffuseColor color.NRGBA
12613 AmbientColor color.NRGBA
12617 }))(obj)).Speed)[local207]
12618 *p = math.Float32frombits(read32(r))
12623 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12624 if err := pcall(func() {
12629 }))(obj)).ID).serialize(w)
12634 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12642 write32(w, math.Float32bits(x))
12650 write32(w, math.Float32bits(x))
12654 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12655 if err := pcall(func() {
12660 }))(obj)).ID).deserialize(r)
12665 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12668 p := &(*(*(struct {
12673 *p = math.Float32frombits(read32(r))
12676 p := &(*(*(struct {
12681 *p = math.Float32frombits(read32(r))
12685 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12686 if err := pcall(func() {
12688 Type PlayerListUpdateType
12690 }))(obj)).Type).serialize(w)
12695 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12697 if len(((*(*(struct {
12698 Type PlayerListUpdateType
12700 }))(obj)).Players)) > math.MaxUint16 {
12704 x := uint16(len(((*(*(struct {
12705 Type PlayerListUpdateType
12707 }))(obj)).Players)))
12708 write16(w, uint16(x))
12710 for local208 := range (*(*(struct {
12711 Type PlayerListUpdateType
12713 }))(obj)).Players {
12714 if len(([]byte(((*(*(struct {
12715 Type PlayerListUpdateType
12717 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12721 x := uint16(len(([]byte(((*(*(struct {
12722 Type PlayerListUpdateType
12724 }))(obj)).Players)[local208]))))
12725 write16(w, uint16(x))
12728 _, err := w.Write(([]byte(((*(*(struct {
12729 Type PlayerListUpdateType
12731 }))(obj)).Players)[local208]))[:])
12737 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12738 if err := pcall(func() {
12740 Type PlayerListUpdateType
12742 }))(obj)).Type).deserialize(r)
12747 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12749 var local209 uint16
12755 Type PlayerListUpdateType
12757 }))(obj)).Players) = make([]string, local209)
12758 for local210 := range (*(*(struct {
12759 Type PlayerListUpdateType
12761 }))(obj)).Players {
12762 var local211 []uint8
12763 var local212 uint16
12768 (local211) = make([]uint8, local212)
12770 _, err := io.ReadFull(r, (local211)[:])
12774 Type PlayerListUpdateType
12776 }))(obj)).Players)[local210]) = string(local211)
12780 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12781 if len(([]byte((*(*(struct {
12785 }))(obj)).Channel))) > math.MaxUint16 {
12789 x := uint16(len(([]byte((*(*(struct {
12793 }))(obj)).Channel))))
12794 write16(w, uint16(x))
12797 _, err := w.Write(([]byte((*(*(struct {
12801 }))(obj)).Channel))[:])
12804 if len(([]byte((*(*(struct {
12808 }))(obj)).Sender))) > math.MaxUint16 {
12812 x := uint16(len(([]byte((*(*(struct {
12816 }))(obj)).Sender))))
12817 write16(w, uint16(x))
12820 _, err := w.Write(([]byte((*(*(struct {
12824 }))(obj)).Sender))[:])
12827 if len(([]byte((*(*(struct {
12831 }))(obj)).Msg))) > math.MaxUint16 {
12835 x := uint16(len(([]byte((*(*(struct {
12840 write16(w, uint16(x))
12843 _, err := w.Write(([]byte((*(*(struct {
12847 }))(obj)).Msg))[:])
12852 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12853 var local213 []uint8
12854 var local214 uint16
12859 (local213) = make([]uint8, local214)
12861 _, err := io.ReadFull(r, (local213)[:])
12868 }))(obj)).Channel) = string(local213)
12869 var local215 []uint8
12870 var local216 uint16
12875 (local215) = make([]uint8, local216)
12877 _, err := io.ReadFull(r, (local215)[:])
12884 }))(obj)).Sender) = string(local215)
12885 var local217 []uint8
12886 var local218 uint16
12891 (local217) = make([]uint8, local218)
12893 _, err := io.ReadFull(r, (local217)[:])
12900 }))(obj)).Msg) = string(local217)
12903 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12904 if err := pcall(func() {
12908 }))(obj)).Signal).serialize(w)
12913 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12915 if len(([]byte((*(*(struct {
12918 }))(obj)).Channel))) > math.MaxUint16 {
12922 x := uint16(len(([]byte((*(*(struct {
12925 }))(obj)).Channel))))
12926 write16(w, uint16(x))
12929 _, err := w.Write(([]byte((*(*(struct {
12932 }))(obj)).Channel))[:])
12937 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12938 if err := pcall(func() {
12942 }))(obj)).Signal).deserialize(r)
12947 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12949 var local219 []uint8
12950 var local220 uint16
12955 (local219) = make([]uint8, local220)
12957 _, err := io.ReadFull(r, (local219)[:])
12963 }))(obj)).Channel) = string(local219)
12966 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12969 w := new(bytes.Buffer)
12973 Changed map[[3]int16]*NodeMeta
12976 w := zlib.NewWriter(w)
12981 if len(x) > math.MaxUint16 {
12984 write16(w, uint16(len(x)))
12985 keys := make([][3]int16, 0, len(x))
12986 for key := range x {
12987 keys = append(keys, key)
12989 sort.Slice(keys, func(i, j int) bool {
12990 p, q := keys[i], keys[j]
13001 for _, key := range keys {
13002 for _, n := range key {
13003 write16(w, uint16(n))
13005 chk(serialize(w, x[key]))
13014 if len((buf.Bytes())) > math.MaxUint32 {
13018 x := uint32(len((buf.Bytes())))
13019 write32(w, uint32(x))
13022 _, err := w.Write((buf.Bytes())[:])
13029 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
13036 r := &io.LimitedReader{R: r, N: int64(n)}
13038 p := &(*(*(struct {
13040 Changed map[[3]int16]*NodeMeta
13043 r, err := zlib.NewReader(byteReader{r})
13045 switch ver := read8(r); ver {
13050 *p = make(map[[3]int16]*NodeMeta, n)
13053 for i := range pos {
13054 pos[i] = int16(read16(r))
13056 nm := new(NodeMeta)
13057 chk(deserialize(r, nm))
13061 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
13067 chk(fmt.Errorf("%d bytes of trailing data", r.N))
13072 func (obj *ToCltSunParams) serialize(w io.Writer) {
13088 if err := pcall(func() {
13096 }))(obj)).Texture).serialize(w)
13101 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13103 if err := pcall(func() {
13111 }))(obj)).ToneMap).serialize(w)
13116 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13118 if err := pcall(func() {
13126 }))(obj)).Rise).serialize(w)
13131 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13157 write32(w, math.Float32bits(x))
13161 func (obj *ToCltSunParams) deserialize(r io.Reader) {
13163 p := &(*(*(struct {
13171 switch n := read8(r); n {
13177 chk(fmt.Errorf("invalid bool: %d", n))
13180 if err := pcall(func() {
13188 }))(obj)).Texture).deserialize(r)
13193 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13195 if err := pcall(func() {
13203 }))(obj)).ToneMap).deserialize(r)
13208 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13210 if err := pcall(func() {
13218 }))(obj)).Rise).deserialize(r)
13223 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13226 p := &(*(*(struct {
13234 switch n := read8(r); n {
13240 chk(fmt.Errorf("invalid bool: %d", n))
13244 p := &(*(*(struct {
13252 *p = math.Float32frombits(read32(r))
13256 func (obj *ToCltMoonParams) serialize(w io.Writer) {
13270 if err := pcall(func() {
13276 }))(obj)).Texture).serialize(w)
13281 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13283 if err := pcall(func() {
13289 }))(obj)).ToneMap).serialize(w)
13294 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13303 write32(w, math.Float32bits(x))
13307 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
13309 p := &(*(*(struct {
13315 switch n := read8(r); n {
13321 chk(fmt.Errorf("invalid bool: %d", n))
13324 if err := pcall(func() {
13330 }))(obj)).Texture).deserialize(r)
13335 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13337 if err := pcall(func() {
13343 }))(obj)).ToneMap).deserialize(r)
13348 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13351 p := &(*(*(struct {
13357 *p = math.Float32frombits(read32(r))
13361 func (obj *ToCltStarParams) serialize(w io.Writer) {
13382 write32(w, uint32(x))
13391 w.Write([]byte{x.A, x.R, x.G, x.B})
13400 write32(w, math.Float32bits(x))
13404 func (obj *ToCltStarParams) deserialize(r io.Reader) {
13406 p := &(*(*(struct {
13412 switch n := read8(r); n {
13418 chk(fmt.Errorf("invalid bool: %d", n))
13422 p := &(*(*(struct {
13431 p := &(*(*(struct {
13437 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13440 p := &(*(*(struct {
13446 *p = math.Float32frombits(read32(r))
13450 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13451 if len(((*(*(struct {
13453 }))(obj)).Salt)) > math.MaxUint16 {
13457 x := uint16(len(((*(*(struct {
13460 write16(w, uint16(x))
13463 _, err := w.Write(((*(*(struct {
13465 }))(obj)).Salt)[:])
13468 if len(((*(*(struct {
13470 }))(obj)).B)) > math.MaxUint16 {
13474 x := uint16(len(((*(*(struct {
13477 write16(w, uint16(x))
13480 _, err := w.Write(((*(*(struct {
13487 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13488 var local221 uint16
13495 }))(obj)).Salt) = make([]byte, local221)
13497 _, err := io.ReadFull(r, ((*(*(struct {
13499 }))(obj)).Salt)[:])
13502 var local222 uint16
13509 }))(obj)).B) = make([]byte, local222)
13511 _, err := io.ReadFull(r, ((*(*(struct {
13518 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13519 if len(([]byte((*(*(struct {
13521 }))(obj)).Prepend))) > math.MaxUint16 {
13525 x := uint16(len(([]byte((*(*(struct {
13527 }))(obj)).Prepend))))
13528 write16(w, uint16(x))
13531 _, err := w.Write(([]byte((*(*(struct {
13533 }))(obj)).Prepend))[:])
13538 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13539 var local223 []uint8
13540 var local224 uint16
13545 (local223) = make([]uint8, local224)
13547 _, err := io.ReadFull(r, (local223)[:])
13552 }))(obj)).Prepend) = string(local223)
13555 func (obj *AOCmdProps) serialize(w io.Writer) {
13556 if err := pcall(func() {
13559 }))(obj)).Props).serialize(w)
13564 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13568 func (obj *AOCmdProps) deserialize(r io.Reader) {
13569 if err := pcall(func() {
13572 }))(obj)).Props).deserialize(r)
13577 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13581 func (obj *AOCmdPos) serialize(w io.Writer) {
13582 if err := pcall(func() {
13585 }))(obj)).Pos).serialize(w)
13590 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13594 func (obj *AOCmdPos) deserialize(r io.Reader) {
13595 if err := pcall(func() {
13598 }))(obj)).Pos).deserialize(r)
13603 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13607 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13608 if err := pcall(func() {
13610 Mod Texture // suffix
13611 }))(obj)).Mod).serialize(w)
13616 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13620 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13621 if err := pcall(func() {
13623 Mod Texture // suffix
13624 }))(obj)).Mod).deserialize(r)
13629 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13633 func (obj *AOCmdSprite) serialize(w io.Writer) {
13634 if err := pcall(func() {
13637 }))(obj)).Sprite).serialize(w)
13642 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13646 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13647 if err := pcall(func() {
13650 }))(obj)).Sprite).deserialize(r)
13655 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13659 func (obj *AOCmdHP) serialize(w io.Writer) {
13664 write16(w, uint16(x))
13668 func (obj *AOCmdHP) deserialize(r io.Reader) {
13670 p := &(*(*(struct {
13677 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13678 if len(((*(*(struct {
13680 }))(obj)).Armor)) > math.MaxUint16 {
13684 x := uint16(len(((*(*(struct {
13687 write16(w, uint16(x))
13689 for local225 := range (*(*(struct {
13692 if err := pcall(func() {
13695 }))(obj)).Armor)[local225]).serialize(w)
13700 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13705 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13706 var local226 uint16
13713 }))(obj)).Armor) = make([]Group, local226)
13714 for local227 := range (*(*(struct {
13717 if err := pcall(func() {
13720 }))(obj)).Armor)[local227]).deserialize(r)
13725 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13730 func (obj *AOCmdAnim) serialize(w io.Writer) {
13731 if err := pcall(func() {
13734 }))(obj)).Anim).serialize(w)
13739 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13743 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13744 if err := pcall(func() {
13747 }))(obj)).Anim).deserialize(r)
13752 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13756 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13757 if len(([]byte((*(*(struct {
13760 }))(obj)).Bone))) > math.MaxUint16 {
13764 x := uint16(len(([]byte((*(*(struct {
13768 write16(w, uint16(x))
13771 _, err := w.Write(([]byte((*(*(struct {
13774 }))(obj)).Bone))[:])
13777 if err := pcall(func() {
13781 }))(obj)).Pos).serialize(w)
13786 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13790 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13791 var local228 []uint8
13792 var local229 uint16
13797 (local228) = make([]uint8, local229)
13799 _, err := io.ReadFull(r, (local228)[:])
13805 }))(obj)).Bone) = string(local228)
13806 if err := pcall(func() {
13810 }))(obj)).Pos).deserialize(r)
13815 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13819 func (obj *AOCmdAttach) serialize(w io.Writer) {
13820 if err := pcall(func() {
13823 }))(obj)).Attach).serialize(w)
13828 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13832 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13833 if err := pcall(func() {
13836 }))(obj)).Attach).deserialize(r)
13841 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13845 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13846 if err := pcall(func() {
13848 Phys AOPhysOverride
13849 }))(obj)).Phys).serialize(w)
13854 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13858 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13859 if err := pcall(func() {
13861 Phys AOPhysOverride
13862 }))(obj)).Phys).deserialize(r)
13867 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13871 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13872 if err := pcall(func() {
13875 }))(obj)).ID).serialize(w)
13880 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13883 local230 := genericCAO
13884 if err := pcall(func() {
13885 (local230).serialize(w)
13890 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13895 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13896 if err := pcall(func() {
13899 }))(obj)).ID).deserialize(r)
13904 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13907 var local231 aoType
13908 local232 := genericCAO
13909 if err := pcall(func() {
13910 (local231).deserialize(r)
13915 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13917 if local231 != local232 {
13918 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13923 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13928 write32(w, math.Float32bits(x))
13932 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13934 p := &(*(*(struct {
13937 *p = math.Float32frombits(read32(r))
13941 func (obj *NodeMeta) serialize(w io.Writer) {
13942 if len(((*(*(struct {
13944 Fields []NodeMetaField
13947 }))(obj)).Fields)) > math.MaxUint32 {
13951 x := uint32(len(((*(*(struct {
13953 Fields []NodeMetaField
13956 }))(obj)).Fields)))
13957 write32(w, uint32(x))
13959 for local233 := range (*(*(struct {
13961 Fields []NodeMetaField
13965 if err := pcall(func() {
13968 Fields []NodeMetaField
13971 }))(obj)).Fields)[local233]).serialize(w)
13976 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
13981 Fields []NodeMetaField
13984 }))(obj)).Inv).Serialize(w))
13987 func (obj *NodeMeta) deserialize(r io.Reader) {
13988 var local234 uint32
13995 Fields []NodeMetaField
13998 }))(obj)).Fields) = make([]NodeMetaField, local234)
13999 for local235 := range (*(*(struct {
14001 Fields []NodeMetaField
14005 if err := pcall(func() {
14008 Fields []NodeMetaField
14011 }))(obj)).Fields)[local235]).deserialize(r)
14016 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
14021 Fields []NodeMetaField
14024 }))(obj)).Inv).Deserialize(r))
14027 func (obj *MinimapMode) serialize(w io.Writer) {
14028 if err := pcall(func() {
14035 }))(obj)).Type).serialize(w)
14040 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
14042 if len(([]byte((*(*(struct {
14048 }))(obj)).Label))) > math.MaxUint16 {
14052 x := uint16(len(([]byte((*(*(struct {
14058 }))(obj)).Label))))
14059 write16(w, uint16(x))
14062 _, err := w.Write(([]byte((*(*(struct {
14068 }))(obj)).Label))[:])
14079 write16(w, uint16(x))
14081 if err := pcall(func() {
14088 }))(obj)).Texture).serialize(w)
14093 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
14103 write16(w, uint16(x))
14107 func (obj *MinimapMode) deserialize(r io.Reader) {
14108 if err := pcall(func() {
14115 }))(obj)).Type).deserialize(r)
14120 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
14122 var local236 []uint8
14123 var local237 uint16
14128 (local236) = make([]uint8, local237)
14130 _, err := io.ReadFull(r, (local236)[:])
14139 }))(obj)).Label) = string(local236)
14141 p := &(*(*(struct {
14150 if err := pcall(func() {
14157 }))(obj)).Texture).deserialize(r)
14162 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
14165 p := &(*(*(struct {
14176 func (obj *NodeDef) serialize(w io.Writer) {
14177 if err := pcall(func() {
14190 //mt:const uint8(6)
14192 OverlayTiles [6]TileDef
14193 //mt:const uint8(6)
14194 SpecialTiles [6]TileDef
14201 ConnectTo []Content
14202 InsideTint color.NRGBA
14203 Level uint8 // Must be < 128.
14205 Translucent bool // Sunlight is scattered and becomes normal light.
14206 Transparent bool // Sunlight isn't scattered.
14219 LiquidType LiquidType
14222 Viscosity uint8 // 0-7
14228 DrawBox, ColBox, SelBox NodeBox
14230 FootstepSnd, DiggingSnd, DugSnd SoundDef
14240 }))(obj)).Param0).serialize(w)
14245 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
14249 w := new(bytes.Buffer)
14251 local238 := uint8(13)
14254 write8(w, uint8(x))
14257 if len(([]byte((*(*(struct {
14269 //mt:const uint8(6)
14271 OverlayTiles [6]TileDef
14272 //mt:const uint8(6)
14273 SpecialTiles [6]TileDef
14280 ConnectTo []Content
14281 InsideTint color.NRGBA
14282 Level uint8 // Must be < 128.
14284 Translucent bool // Sunlight is scattered and becomes normal light.
14285 Transparent bool // Sunlight isn't scattered.
14298 LiquidType LiquidType
14301 Viscosity uint8 // 0-7
14307 DrawBox, ColBox, SelBox NodeBox
14309 FootstepSnd, DiggingSnd, DugSnd SoundDef
14319 }))(obj)).Name))) > math.MaxUint16 {
14323 x := uint16(len(([]byte((*(*(struct {
14335 //mt:const uint8(6)
14337 OverlayTiles [6]TileDef
14338 //mt:const uint8(6)
14339 SpecialTiles [6]TileDef
14346 ConnectTo []Content
14347 InsideTint color.NRGBA
14348 Level uint8 // Must be < 128.
14350 Translucent bool // Sunlight is scattered and becomes normal light.
14351 Transparent bool // Sunlight isn't scattered.
14364 LiquidType LiquidType
14367 Viscosity uint8 // 0-7
14373 DrawBox, ColBox, SelBox NodeBox
14375 FootstepSnd, DiggingSnd, DugSnd SoundDef
14386 write16(w, uint16(x))
14389 _, err := w.Write(([]byte((*(*(struct {
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)).Name))[:])
14454 if len(((*(*(struct {
14466 //mt:const uint8(6)
14468 OverlayTiles [6]TileDef
14469 //mt:const uint8(6)
14470 SpecialTiles [6]TileDef
14477 ConnectTo []Content
14478 InsideTint color.NRGBA
14479 Level uint8 // Must be < 128.
14481 Translucent bool // Sunlight is scattered and becomes normal light.
14482 Transparent bool // Sunlight isn't scattered.
14495 LiquidType LiquidType
14498 Viscosity uint8 // 0-7
14504 DrawBox, ColBox, SelBox NodeBox
14506 FootstepSnd, DiggingSnd, DugSnd SoundDef
14516 }))(obj)).Groups)) > math.MaxUint16 {
14520 x := uint16(len(((*(*(struct {
14532 //mt:const uint8(6)
14534 OverlayTiles [6]TileDef
14535 //mt:const uint8(6)
14536 SpecialTiles [6]TileDef
14543 ConnectTo []Content
14544 InsideTint color.NRGBA
14545 Level uint8 // Must be < 128.
14547 Translucent bool // Sunlight is scattered and becomes normal light.
14548 Transparent bool // Sunlight isn't scattered.
14561 LiquidType LiquidType
14564 Viscosity uint8 // 0-7
14570 DrawBox, ColBox, SelBox NodeBox
14572 FootstepSnd, DiggingSnd, DugSnd SoundDef
14582 }))(obj)).Groups)))
14583 write16(w, uint16(x))
14585 for local239 := range (*(*(struct {
14597 //mt:const uint8(6)
14599 OverlayTiles [6]TileDef
14600 //mt:const uint8(6)
14601 SpecialTiles [6]TileDef
14608 ConnectTo []Content
14609 InsideTint color.NRGBA
14610 Level uint8 // Must be < 128.
14612 Translucent bool // Sunlight is scattered and becomes normal light.
14613 Transparent bool // Sunlight isn't scattered.
14626 LiquidType LiquidType
14629 Viscosity uint8 // 0-7
14635 DrawBox, ColBox, SelBox NodeBox
14637 FootstepSnd, DiggingSnd, DugSnd SoundDef
14648 if err := pcall(func() {
14661 //mt:const uint8(6)
14663 OverlayTiles [6]TileDef
14664 //mt:const uint8(6)
14665 SpecialTiles [6]TileDef
14672 ConnectTo []Content
14673 InsideTint color.NRGBA
14674 Level uint8 // Must be < 128.
14676 Translucent bool // Sunlight is scattered and becomes normal light.
14677 Transparent bool // Sunlight isn't scattered.
14690 LiquidType LiquidType
14693 Viscosity uint8 // 0-7
14699 DrawBox, ColBox, SelBox NodeBox
14701 FootstepSnd, DiggingSnd, DugSnd SoundDef
14711 }))(obj)).Groups)[local239]).serialize(w)
14716 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
14719 if err := pcall(func() {
14732 //mt:const uint8(6)
14734 OverlayTiles [6]TileDef
14735 //mt:const uint8(6)
14736 SpecialTiles [6]TileDef
14743 ConnectTo []Content
14744 InsideTint color.NRGBA
14745 Level uint8 // Must be < 128.
14747 Translucent bool // Sunlight is scattered and becomes normal light.
14748 Transparent bool // Sunlight isn't scattered.
14761 LiquidType LiquidType
14764 Viscosity uint8 // 0-7
14770 DrawBox, ColBox, SelBox NodeBox
14772 FootstepSnd, DiggingSnd, DugSnd SoundDef
14782 }))(obj)).P1Type).serialize(w)
14787 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
14789 if err := pcall(func() {
14802 //mt:const uint8(6)
14804 OverlayTiles [6]TileDef
14805 //mt:const uint8(6)
14806 SpecialTiles [6]TileDef
14813 ConnectTo []Content
14814 InsideTint color.NRGBA
14815 Level uint8 // Must be < 128.
14817 Translucent bool // Sunlight is scattered and becomes normal light.
14818 Transparent bool // Sunlight isn't scattered.
14831 LiquidType LiquidType
14834 Viscosity uint8 // 0-7
14840 DrawBox, ColBox, SelBox NodeBox
14842 FootstepSnd, DiggingSnd, DugSnd SoundDef
14852 }))(obj)).P2Type).serialize(w)
14857 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
14859 if err := pcall(func() {
14872 //mt:const uint8(6)
14874 OverlayTiles [6]TileDef
14875 //mt:const uint8(6)
14876 SpecialTiles [6]TileDef
14883 ConnectTo []Content
14884 InsideTint color.NRGBA
14885 Level uint8 // Must be < 128.
14887 Translucent bool // Sunlight is scattered and becomes normal light.
14888 Transparent bool // Sunlight isn't scattered.
14901 LiquidType LiquidType
14904 Viscosity uint8 // 0-7
14910 DrawBox, ColBox, SelBox NodeBox
14912 FootstepSnd, DiggingSnd, DugSnd SoundDef
14922 }))(obj)).DrawType).serialize(w)
14927 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
14929 if len(([]byte((*(*(struct {
14941 //mt:const uint8(6)
14943 OverlayTiles [6]TileDef
14944 //mt:const uint8(6)
14945 SpecialTiles [6]TileDef
14952 ConnectTo []Content
14953 InsideTint color.NRGBA
14954 Level uint8 // Must be < 128.
14956 Translucent bool // Sunlight is scattered and becomes normal light.
14957 Transparent bool // Sunlight isn't scattered.
14970 LiquidType LiquidType
14973 Viscosity uint8 // 0-7
14979 DrawBox, ColBox, SelBox NodeBox
14981 FootstepSnd, DiggingSnd, DugSnd SoundDef
14991 }))(obj)).Mesh))) > math.MaxUint16 {
14995 x := uint16(len(([]byte((*(*(struct {
15007 //mt:const uint8(6)
15009 OverlayTiles [6]TileDef
15010 //mt:const uint8(6)
15011 SpecialTiles [6]TileDef
15018 ConnectTo []Content
15019 InsideTint color.NRGBA
15020 Level uint8 // Must be < 128.
15022 Translucent bool // Sunlight is scattered and becomes normal light.
15023 Transparent bool // Sunlight isn't scattered.
15036 LiquidType LiquidType
15039 Viscosity uint8 // 0-7
15045 DrawBox, ColBox, SelBox NodeBox
15047 FootstepSnd, DiggingSnd, DugSnd SoundDef
15058 write16(w, uint16(x))
15061 _, err := w.Write(([]byte((*(*(struct {
15073 //mt:const uint8(6)
15075 OverlayTiles [6]TileDef
15076 //mt:const uint8(6)
15077 SpecialTiles [6]TileDef
15084 ConnectTo []Content
15085 InsideTint color.NRGBA
15086 Level uint8 // Must be < 128.
15088 Translucent bool // Sunlight is scattered and becomes normal light.
15089 Transparent bool // Sunlight isn't scattered.
15102 LiquidType LiquidType
15105 Viscosity uint8 // 0-7
15111 DrawBox, ColBox, SelBox NodeBox
15113 FootstepSnd, DiggingSnd, DugSnd SoundDef
15123 }))(obj)).Mesh))[:])
15139 //mt:const uint8(6)
15141 OverlayTiles [6]TileDef
15142 //mt:const uint8(6)
15143 SpecialTiles [6]TileDef
15150 ConnectTo []Content
15151 InsideTint color.NRGBA
15152 Level uint8 // Must be < 128.
15154 Translucent bool // Sunlight is scattered and becomes normal light.
15155 Transparent bool // Sunlight isn't scattered.
15168 LiquidType LiquidType
15171 Viscosity uint8 // 0-7
15177 DrawBox, ColBox, SelBox NodeBox
15179 FootstepSnd, DiggingSnd, DugSnd SoundDef
15190 write32(w, math.Float32bits(x))
15193 local240 := uint8(6)
15196 write8(w, uint8(x))
15199 for local241 := range (*(*(struct {
15211 //mt:const uint8(6)
15213 OverlayTiles [6]TileDef
15214 //mt:const uint8(6)
15215 SpecialTiles [6]TileDef
15222 ConnectTo []Content
15223 InsideTint color.NRGBA
15224 Level uint8 // Must be < 128.
15226 Translucent bool // Sunlight is scattered and becomes normal light.
15227 Transparent bool // Sunlight isn't scattered.
15240 LiquidType LiquidType
15243 Viscosity uint8 // 0-7
15249 DrawBox, ColBox, SelBox NodeBox
15251 FootstepSnd, DiggingSnd, DugSnd SoundDef
15262 if err := pcall(func() {
15275 //mt:const uint8(6)
15277 OverlayTiles [6]TileDef
15278 //mt:const uint8(6)
15279 SpecialTiles [6]TileDef
15286 ConnectTo []Content
15287 InsideTint color.NRGBA
15288 Level uint8 // Must be < 128.
15290 Translucent bool // Sunlight is scattered and becomes normal light.
15291 Transparent bool // Sunlight isn't scattered.
15304 LiquidType LiquidType
15307 Viscosity uint8 // 0-7
15313 DrawBox, ColBox, SelBox NodeBox
15315 FootstepSnd, DiggingSnd, DugSnd SoundDef
15325 }))(obj)).Tiles)[local241]).serialize(w)
15330 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15333 for local242 := range (*(*(struct {
15345 //mt:const uint8(6)
15347 OverlayTiles [6]TileDef
15348 //mt:const uint8(6)
15349 SpecialTiles [6]TileDef
15356 ConnectTo []Content
15357 InsideTint color.NRGBA
15358 Level uint8 // Must be < 128.
15360 Translucent bool // Sunlight is scattered and becomes normal light.
15361 Transparent bool // Sunlight isn't scattered.
15374 LiquidType LiquidType
15377 Viscosity uint8 // 0-7
15383 DrawBox, ColBox, SelBox NodeBox
15385 FootstepSnd, DiggingSnd, DugSnd SoundDef
15395 }))(obj)).OverlayTiles {
15396 if err := pcall(func() {
15409 //mt:const uint8(6)
15411 OverlayTiles [6]TileDef
15412 //mt:const uint8(6)
15413 SpecialTiles [6]TileDef
15420 ConnectTo []Content
15421 InsideTint color.NRGBA
15422 Level uint8 // Must be < 128.
15424 Translucent bool // Sunlight is scattered and becomes normal light.
15425 Transparent bool // Sunlight isn't scattered.
15438 LiquidType LiquidType
15441 Viscosity uint8 // 0-7
15447 DrawBox, ColBox, SelBox NodeBox
15449 FootstepSnd, DiggingSnd, DugSnd SoundDef
15459 }))(obj)).OverlayTiles)[local242]).serialize(w)
15464 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15468 local243 := uint8(6)
15471 write8(w, uint8(x))
15474 for local244 := range (*(*(struct {
15486 //mt:const uint8(6)
15488 OverlayTiles [6]TileDef
15489 //mt:const uint8(6)
15490 SpecialTiles [6]TileDef
15497 ConnectTo []Content
15498 InsideTint color.NRGBA
15499 Level uint8 // Must be < 128.
15501 Translucent bool // Sunlight is scattered and becomes normal light.
15502 Transparent bool // Sunlight isn't scattered.
15515 LiquidType LiquidType
15518 Viscosity uint8 // 0-7
15524 DrawBox, ColBox, SelBox NodeBox
15526 FootstepSnd, DiggingSnd, DugSnd SoundDef
15536 }))(obj)).SpecialTiles {
15537 if err := pcall(func() {
15550 //mt:const uint8(6)
15552 OverlayTiles [6]TileDef
15553 //mt:const uint8(6)
15554 SpecialTiles [6]TileDef
15561 ConnectTo []Content
15562 InsideTint color.NRGBA
15563 Level uint8 // Must be < 128.
15565 Translucent bool // Sunlight is scattered and becomes normal light.
15566 Transparent bool // Sunlight isn't scattered.
15579 LiquidType LiquidType
15582 Viscosity uint8 // 0-7
15588 DrawBox, ColBox, SelBox NodeBox
15590 FootstepSnd, DiggingSnd, DugSnd SoundDef
15600 }))(obj)).SpecialTiles)[local244]).serialize(w)
15605 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15621 //mt:const uint8(6)
15623 OverlayTiles [6]TileDef
15624 //mt:const uint8(6)
15625 SpecialTiles [6]TileDef
15632 ConnectTo []Content
15633 InsideTint color.NRGBA
15634 Level uint8 // Must be < 128.
15636 Translucent bool // Sunlight is scattered and becomes normal light.
15637 Transparent bool // Sunlight isn't scattered.
15650 LiquidType LiquidType
15653 Viscosity uint8 // 0-7
15659 DrawBox, ColBox, SelBox NodeBox
15661 FootstepSnd, DiggingSnd, DugSnd SoundDef
15672 w.Write([]byte{x.A, x.R, x.G, x.B})
15674 if err := pcall(func() {
15687 //mt:const uint8(6)
15689 OverlayTiles [6]TileDef
15690 //mt:const uint8(6)
15691 SpecialTiles [6]TileDef
15698 ConnectTo []Content
15699 InsideTint color.NRGBA
15700 Level uint8 // Must be < 128.
15702 Translucent bool // Sunlight is scattered and becomes normal light.
15703 Transparent bool // Sunlight isn't scattered.
15716 LiquidType LiquidType
15719 Viscosity uint8 // 0-7
15725 DrawBox, ColBox, SelBox NodeBox
15727 FootstepSnd, DiggingSnd, DugSnd SoundDef
15737 }))(obj)).Palette).serialize(w)
15742 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
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)).Waving).serialize(w)
15812 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
15827 //mt:const uint8(6)
15829 OverlayTiles [6]TileDef
15830 //mt:const uint8(6)
15831 SpecialTiles [6]TileDef
15838 ConnectTo []Content
15839 InsideTint color.NRGBA
15840 Level uint8 // Must be < 128.
15842 Translucent bool // Sunlight is scattered and becomes normal light.
15843 Transparent bool // Sunlight isn't scattered.
15856 LiquidType LiquidType
15859 Viscosity uint8 // 0-7
15865 DrawBox, ColBox, SelBox NodeBox
15867 FootstepSnd, DiggingSnd, DugSnd SoundDef
15877 }))(obj)).ConnectSides
15878 write8(w, uint8(x))
15880 if len(((*(*(struct {
15892 //mt:const uint8(6)
15894 OverlayTiles [6]TileDef
15895 //mt:const uint8(6)
15896 SpecialTiles [6]TileDef
15903 ConnectTo []Content
15904 InsideTint color.NRGBA
15905 Level uint8 // Must be < 128.
15907 Translucent bool // Sunlight is scattered and becomes normal light.
15908 Transparent bool // Sunlight isn't scattered.
15921 LiquidType LiquidType
15924 Viscosity uint8 // 0-7
15930 DrawBox, ColBox, SelBox NodeBox
15932 FootstepSnd, DiggingSnd, DugSnd SoundDef
15942 }))(obj)).ConnectTo)) > math.MaxUint16 {
15946 x := uint16(len(((*(*(struct {
15958 //mt:const uint8(6)
15960 OverlayTiles [6]TileDef
15961 //mt:const uint8(6)
15962 SpecialTiles [6]TileDef
15969 ConnectTo []Content
15970 InsideTint color.NRGBA
15971 Level uint8 // Must be < 128.
15973 Translucent bool // Sunlight is scattered and becomes normal light.
15974 Transparent bool // Sunlight isn't scattered.
15987 LiquidType LiquidType
15990 Viscosity uint8 // 0-7
15996 DrawBox, ColBox, SelBox NodeBox
15998 FootstepSnd, DiggingSnd, DugSnd SoundDef
16008 }))(obj)).ConnectTo)))
16009 write16(w, uint16(x))
16011 for local245 := range (*(*(struct {
16023 //mt:const uint8(6)
16025 OverlayTiles [6]TileDef
16026 //mt:const uint8(6)
16027 SpecialTiles [6]TileDef
16034 ConnectTo []Content
16035 InsideTint color.NRGBA
16036 Level uint8 // Must be < 128.
16038 Translucent bool // Sunlight is scattered and becomes normal light.
16039 Transparent bool // Sunlight isn't scattered.
16052 LiquidType LiquidType
16055 Viscosity uint8 // 0-7
16061 DrawBox, ColBox, SelBox NodeBox
16063 FootstepSnd, DiggingSnd, DugSnd SoundDef
16073 }))(obj)).ConnectTo {
16074 if err := pcall(func() {
16087 //mt:const uint8(6)
16089 OverlayTiles [6]TileDef
16090 //mt:const uint8(6)
16091 SpecialTiles [6]TileDef
16098 ConnectTo []Content
16099 InsideTint color.NRGBA
16100 Level uint8 // Must be < 128.
16102 Translucent bool // Sunlight is scattered and becomes normal light.
16103 Transparent bool // Sunlight isn't scattered.
16116 LiquidType LiquidType
16119 Viscosity uint8 // 0-7
16125 DrawBox, ColBox, SelBox NodeBox
16127 FootstepSnd, DiggingSnd, DugSnd SoundDef
16137 }))(obj)).ConnectTo)[local245]).serialize(w)
16142 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
16158 //mt:const uint8(6)
16160 OverlayTiles [6]TileDef
16161 //mt:const uint8(6)
16162 SpecialTiles [6]TileDef
16169 ConnectTo []Content
16170 InsideTint color.NRGBA
16171 Level uint8 // Must be < 128.
16173 Translucent bool // Sunlight is scattered and becomes normal light.
16174 Transparent bool // Sunlight isn't scattered.
16187 LiquidType LiquidType
16190 Viscosity uint8 // 0-7
16196 DrawBox, ColBox, SelBox NodeBox
16198 FootstepSnd, DiggingSnd, DugSnd SoundDef
16208 }))(obj)).InsideTint
16209 w.Write([]byte{x.A, x.R, x.G, x.B})
16224 //mt:const uint8(6)
16226 OverlayTiles [6]TileDef
16227 //mt:const uint8(6)
16228 SpecialTiles [6]TileDef
16235 ConnectTo []Content
16236 InsideTint color.NRGBA
16237 Level uint8 // Must be < 128.
16239 Translucent bool // Sunlight is scattered and becomes normal light.
16240 Transparent bool // Sunlight isn't scattered.
16253 LiquidType LiquidType
16256 Viscosity uint8 // 0-7
16262 DrawBox, ColBox, SelBox NodeBox
16264 FootstepSnd, DiggingSnd, DugSnd SoundDef
16275 write8(w, uint8(x))
16290 //mt:const uint8(6)
16292 OverlayTiles [6]TileDef
16293 //mt:const uint8(6)
16294 SpecialTiles [6]TileDef
16301 ConnectTo []Content
16302 InsideTint color.NRGBA
16303 Level uint8 // Must be < 128.
16305 Translucent bool // Sunlight is scattered and becomes normal light.
16306 Transparent bool // Sunlight isn't scattered.
16319 LiquidType LiquidType
16322 Viscosity uint8 // 0-7
16328 DrawBox, ColBox, SelBox NodeBox
16330 FootstepSnd, DiggingSnd, DugSnd SoundDef
16340 }))(obj)).Translucent
16360 //mt:const uint8(6)
16362 OverlayTiles [6]TileDef
16363 //mt:const uint8(6)
16364 SpecialTiles [6]TileDef
16371 ConnectTo []Content
16372 InsideTint color.NRGBA
16373 Level uint8 // Must be < 128.
16375 Translucent bool // Sunlight is scattered and becomes normal light.
16376 Transparent bool // Sunlight isn't scattered.
16389 LiquidType LiquidType
16392 Viscosity uint8 // 0-7
16398 DrawBox, ColBox, SelBox NodeBox
16400 FootstepSnd, DiggingSnd, DugSnd SoundDef
16410 }))(obj)).Transparent
16430 //mt:const uint8(6)
16432 OverlayTiles [6]TileDef
16433 //mt:const uint8(6)
16434 SpecialTiles [6]TileDef
16441 ConnectTo []Content
16442 InsideTint color.NRGBA
16443 Level uint8 // Must be < 128.
16445 Translucent bool // Sunlight is scattered and becomes normal light.
16446 Transparent bool // Sunlight isn't scattered.
16459 LiquidType LiquidType
16462 Viscosity uint8 // 0-7
16468 DrawBox, ColBox, SelBox NodeBox
16470 FootstepSnd, DiggingSnd, DugSnd SoundDef
16481 write8(w, uint8(x))
16496 //mt:const uint8(6)
16498 OverlayTiles [6]TileDef
16499 //mt:const uint8(6)
16500 SpecialTiles [6]TileDef
16507 ConnectTo []Content
16508 InsideTint color.NRGBA
16509 Level uint8 // Must be < 128.
16511 Translucent bool // Sunlight is scattered and becomes normal light.
16512 Transparent bool // Sunlight isn't scattered.
16525 LiquidType LiquidType
16528 Viscosity uint8 // 0-7
16534 DrawBox, ColBox, SelBox NodeBox
16536 FootstepSnd, DiggingSnd, DugSnd SoundDef
16546 }))(obj)).GndContent
16566 //mt:const uint8(6)
16568 OverlayTiles [6]TileDef
16569 //mt:const uint8(6)
16570 SpecialTiles [6]TileDef
16577 ConnectTo []Content
16578 InsideTint color.NRGBA
16579 Level uint8 // Must be < 128.
16581 Translucent bool // Sunlight is scattered and becomes normal light.
16582 Transparent bool // Sunlight isn't scattered.
16595 LiquidType LiquidType
16598 Viscosity uint8 // 0-7
16604 DrawBox, ColBox, SelBox NodeBox
16606 FootstepSnd, DiggingSnd, DugSnd SoundDef
16636 //mt:const uint8(6)
16638 OverlayTiles [6]TileDef
16639 //mt:const uint8(6)
16640 SpecialTiles [6]TileDef
16647 ConnectTo []Content
16648 InsideTint color.NRGBA
16649 Level uint8 // Must be < 128.
16651 Translucent bool // Sunlight is scattered and becomes normal light.
16652 Transparent bool // Sunlight isn't scattered.
16665 LiquidType LiquidType
16668 Viscosity uint8 // 0-7
16674 DrawBox, ColBox, SelBox NodeBox
16676 FootstepSnd, DiggingSnd, DugSnd SoundDef
16686 }))(obj)).Pointable
16706 //mt:const uint8(6)
16708 OverlayTiles [6]TileDef
16709 //mt:const uint8(6)
16710 SpecialTiles [6]TileDef
16717 ConnectTo []Content
16718 InsideTint color.NRGBA
16719 Level uint8 // Must be < 128.
16721 Translucent bool // Sunlight is scattered and becomes normal light.
16722 Transparent bool // Sunlight isn't scattered.
16735 LiquidType LiquidType
16738 Viscosity uint8 // 0-7
16744 DrawBox, ColBox, SelBox NodeBox
16746 FootstepSnd, DiggingSnd, DugSnd SoundDef
16776 //mt:const uint8(6)
16778 OverlayTiles [6]TileDef
16779 //mt:const uint8(6)
16780 SpecialTiles [6]TileDef
16787 ConnectTo []Content
16788 InsideTint color.NRGBA
16789 Level uint8 // Must be < 128.
16791 Translucent bool // Sunlight is scattered and becomes normal light.
16792 Transparent bool // Sunlight isn't scattered.
16805 LiquidType LiquidType
16808 Viscosity uint8 // 0-7
16814 DrawBox, ColBox, SelBox NodeBox
16816 FootstepSnd, DiggingSnd, DugSnd SoundDef
16826 }))(obj)).Climbable
16846 //mt:const uint8(6)
16848 OverlayTiles [6]TileDef
16849 //mt:const uint8(6)
16850 SpecialTiles [6]TileDef
16857 ConnectTo []Content
16858 InsideTint color.NRGBA
16859 Level uint8 // Must be < 128.
16861 Translucent bool // Sunlight is scattered and becomes normal light.
16862 Transparent bool // Sunlight isn't scattered.
16875 LiquidType LiquidType
16878 Viscosity uint8 // 0-7
16884 DrawBox, ColBox, SelBox NodeBox
16886 FootstepSnd, DiggingSnd, DugSnd SoundDef
16896 }))(obj)).Replaceable
16916 //mt:const uint8(6)
16918 OverlayTiles [6]TileDef
16919 //mt:const uint8(6)
16920 SpecialTiles [6]TileDef
16927 ConnectTo []Content
16928 InsideTint color.NRGBA
16929 Level uint8 // Must be < 128.
16931 Translucent bool // Sunlight is scattered and becomes normal light.
16932 Transparent bool // Sunlight isn't scattered.
16945 LiquidType LiquidType
16948 Viscosity uint8 // 0-7
16954 DrawBox, ColBox, SelBox NodeBox
16956 FootstepSnd, DiggingSnd, DugSnd SoundDef
16966 }))(obj)).OnRightClick
16986 //mt:const uint8(6)
16988 OverlayTiles [6]TileDef
16989 //mt:const uint8(6)
16990 SpecialTiles [6]TileDef
16997 ConnectTo []Content
16998 InsideTint color.NRGBA
16999 Level uint8 // Must be < 128.
17001 Translucent bool // Sunlight is scattered and becomes normal light.
17002 Transparent bool // Sunlight isn't scattered.
17015 LiquidType LiquidType
17018 Viscosity uint8 // 0-7
17024 DrawBox, ColBox, SelBox NodeBox
17026 FootstepSnd, DiggingSnd, DugSnd SoundDef
17036 }))(obj)).DmgPerSec
17037 write32(w, uint32(x))
17039 if err := pcall(func() {
17052 //mt:const uint8(6)
17054 OverlayTiles [6]TileDef
17055 //mt:const uint8(6)
17056 SpecialTiles [6]TileDef
17063 ConnectTo []Content
17064 InsideTint color.NRGBA
17065 Level uint8 // Must be < 128.
17067 Translucent bool // Sunlight is scattered and becomes normal light.
17068 Transparent bool // Sunlight isn't scattered.
17081 LiquidType LiquidType
17084 Viscosity uint8 // 0-7
17090 DrawBox, ColBox, SelBox NodeBox
17092 FootstepSnd, DiggingSnd, DugSnd SoundDef
17102 }))(obj)).LiquidType).serialize(w)
17107 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
17109 if len(([]byte((*(*(struct {
17121 //mt:const uint8(6)
17123 OverlayTiles [6]TileDef
17124 //mt:const uint8(6)
17125 SpecialTiles [6]TileDef
17132 ConnectTo []Content
17133 InsideTint color.NRGBA
17134 Level uint8 // Must be < 128.
17136 Translucent bool // Sunlight is scattered and becomes normal light.
17137 Transparent bool // Sunlight isn't scattered.
17150 LiquidType LiquidType
17153 Viscosity uint8 // 0-7
17159 DrawBox, ColBox, SelBox NodeBox
17161 FootstepSnd, DiggingSnd, DugSnd SoundDef
17171 }))(obj)).FlowingAlt))) > math.MaxUint16 {
17175 x := uint16(len(([]byte((*(*(struct {
17187 //mt:const uint8(6)
17189 OverlayTiles [6]TileDef
17190 //mt:const uint8(6)
17191 SpecialTiles [6]TileDef
17198 ConnectTo []Content
17199 InsideTint color.NRGBA
17200 Level uint8 // Must be < 128.
17202 Translucent bool // Sunlight is scattered and becomes normal light.
17203 Transparent bool // Sunlight isn't scattered.
17216 LiquidType LiquidType
17219 Viscosity uint8 // 0-7
17225 DrawBox, ColBox, SelBox NodeBox
17227 FootstepSnd, DiggingSnd, DugSnd SoundDef
17237 }))(obj)).FlowingAlt))))
17238 write16(w, uint16(x))
17241 _, err := w.Write(([]byte((*(*(struct {
17253 //mt:const uint8(6)
17255 OverlayTiles [6]TileDef
17256 //mt:const uint8(6)
17257 SpecialTiles [6]TileDef
17264 ConnectTo []Content
17265 InsideTint color.NRGBA
17266 Level uint8 // Must be < 128.
17268 Translucent bool // Sunlight is scattered and becomes normal light.
17269 Transparent bool // Sunlight isn't scattered.
17282 LiquidType LiquidType
17285 Viscosity uint8 // 0-7
17291 DrawBox, ColBox, SelBox NodeBox
17293 FootstepSnd, DiggingSnd, DugSnd SoundDef
17303 }))(obj)).FlowingAlt))[:])
17306 if len(([]byte((*(*(struct {
17318 //mt:const uint8(6)
17320 OverlayTiles [6]TileDef
17321 //mt:const uint8(6)
17322 SpecialTiles [6]TileDef
17329 ConnectTo []Content
17330 InsideTint color.NRGBA
17331 Level uint8 // Must be < 128.
17333 Translucent bool // Sunlight is scattered and becomes normal light.
17334 Transparent bool // Sunlight isn't scattered.
17347 LiquidType LiquidType
17350 Viscosity uint8 // 0-7
17356 DrawBox, ColBox, SelBox NodeBox
17358 FootstepSnd, DiggingSnd, DugSnd SoundDef
17368 }))(obj)).SrcAlt))) > math.MaxUint16 {
17372 x := uint16(len(([]byte((*(*(struct {
17384 //mt:const uint8(6)
17386 OverlayTiles [6]TileDef
17387 //mt:const uint8(6)
17388 SpecialTiles [6]TileDef
17395 ConnectTo []Content
17396 InsideTint color.NRGBA
17397 Level uint8 // Must be < 128.
17399 Translucent bool // Sunlight is scattered and becomes normal light.
17400 Transparent bool // Sunlight isn't scattered.
17413 LiquidType LiquidType
17416 Viscosity uint8 // 0-7
17422 DrawBox, ColBox, SelBox NodeBox
17424 FootstepSnd, DiggingSnd, DugSnd SoundDef
17434 }))(obj)).SrcAlt))))
17435 write16(w, uint16(x))
17438 _, err := w.Write(([]byte((*(*(struct {
17450 //mt:const uint8(6)
17452 OverlayTiles [6]TileDef
17453 //mt:const uint8(6)
17454 SpecialTiles [6]TileDef
17461 ConnectTo []Content
17462 InsideTint color.NRGBA
17463 Level uint8 // Must be < 128.
17465 Translucent bool // Sunlight is scattered and becomes normal light.
17466 Transparent bool // Sunlight isn't scattered.
17479 LiquidType LiquidType
17482 Viscosity uint8 // 0-7
17488 DrawBox, ColBox, SelBox NodeBox
17490 FootstepSnd, DiggingSnd, DugSnd SoundDef
17500 }))(obj)).SrcAlt))[:])
17516 //mt:const uint8(6)
17518 OverlayTiles [6]TileDef
17519 //mt:const uint8(6)
17520 SpecialTiles [6]TileDef
17527 ConnectTo []Content
17528 InsideTint color.NRGBA
17529 Level uint8 // Must be < 128.
17531 Translucent bool // Sunlight is scattered and becomes normal light.
17532 Transparent bool // Sunlight isn't scattered.
17545 LiquidType LiquidType
17548 Viscosity uint8 // 0-7
17554 DrawBox, ColBox, SelBox NodeBox
17556 FootstepSnd, DiggingSnd, DugSnd SoundDef
17566 }))(obj)).Viscosity
17567 write8(w, uint8(x))
17582 //mt:const uint8(6)
17584 OverlayTiles [6]TileDef
17585 //mt:const uint8(6)
17586 SpecialTiles [6]TileDef
17593 ConnectTo []Content
17594 InsideTint color.NRGBA
17595 Level uint8 // Must be < 128.
17597 Translucent bool // Sunlight is scattered and becomes normal light.
17598 Transparent bool // Sunlight isn't scattered.
17611 LiquidType LiquidType
17614 Viscosity uint8 // 0-7
17620 DrawBox, ColBox, SelBox NodeBox
17622 FootstepSnd, DiggingSnd, DugSnd SoundDef
17632 }))(obj)).LiqRenewable
17652 //mt:const uint8(6)
17654 OverlayTiles [6]TileDef
17655 //mt:const uint8(6)
17656 SpecialTiles [6]TileDef
17663 ConnectTo []Content
17664 InsideTint color.NRGBA
17665 Level uint8 // Must be < 128.
17667 Translucent bool // Sunlight is scattered and becomes normal light.
17668 Transparent bool // Sunlight isn't scattered.
17681 LiquidType LiquidType
17684 Viscosity uint8 // 0-7
17690 DrawBox, ColBox, SelBox NodeBox
17692 FootstepSnd, DiggingSnd, DugSnd SoundDef
17702 }))(obj)).FlowRange
17703 write8(w, uint8(x))
17718 //mt:const uint8(6)
17720 OverlayTiles [6]TileDef
17721 //mt:const uint8(6)
17722 SpecialTiles [6]TileDef
17729 ConnectTo []Content
17730 InsideTint color.NRGBA
17731 Level uint8 // Must be < 128.
17733 Translucent bool // Sunlight is scattered and becomes normal light.
17734 Transparent bool // Sunlight isn't scattered.
17747 LiquidType LiquidType
17750 Viscosity uint8 // 0-7
17756 DrawBox, ColBox, SelBox NodeBox
17758 FootstepSnd, DiggingSnd, DugSnd SoundDef
17769 write8(w, uint8(x))
17784 //mt:const uint8(6)
17786 OverlayTiles [6]TileDef
17787 //mt:const uint8(6)
17788 SpecialTiles [6]TileDef
17795 ConnectTo []Content
17796 InsideTint color.NRGBA
17797 Level uint8 // Must be < 128.
17799 Translucent bool // Sunlight is scattered and becomes normal light.
17800 Transparent bool // Sunlight isn't scattered.
17813 LiquidType LiquidType
17816 Viscosity uint8 // 0-7
17822 DrawBox, ColBox, SelBox NodeBox
17824 FootstepSnd, DiggingSnd, DugSnd SoundDef
17834 }))(obj)).Floodable
17841 if err := pcall(func() {
17854 //mt:const uint8(6)
17856 OverlayTiles [6]TileDef
17857 //mt:const uint8(6)
17858 SpecialTiles [6]TileDef
17865 ConnectTo []Content
17866 InsideTint color.NRGBA
17867 Level uint8 // Must be < 128.
17869 Translucent bool // Sunlight is scattered and becomes normal light.
17870 Transparent bool // Sunlight isn't scattered.
17883 LiquidType LiquidType
17886 Viscosity uint8 // 0-7
17892 DrawBox, ColBox, SelBox NodeBox
17894 FootstepSnd, DiggingSnd, DugSnd SoundDef
17904 }))(obj)).DrawBox).serialize(w)
17909 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17911 if err := pcall(func() {
17924 //mt:const uint8(6)
17926 OverlayTiles [6]TileDef
17927 //mt:const uint8(6)
17928 SpecialTiles [6]TileDef
17935 ConnectTo []Content
17936 InsideTint color.NRGBA
17937 Level uint8 // Must be < 128.
17939 Translucent bool // Sunlight is scattered and becomes normal light.
17940 Transparent bool // Sunlight isn't scattered.
17953 LiquidType LiquidType
17956 Viscosity uint8 // 0-7
17962 DrawBox, ColBox, SelBox NodeBox
17964 FootstepSnd, DiggingSnd, DugSnd SoundDef
17974 }))(obj)).ColBox).serialize(w)
17979 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17981 if err := pcall(func() {
17994 //mt:const uint8(6)
17996 OverlayTiles [6]TileDef
17997 //mt:const uint8(6)
17998 SpecialTiles [6]TileDef
18005 ConnectTo []Content
18006 InsideTint color.NRGBA
18007 Level uint8 // Must be < 128.
18009 Translucent bool // Sunlight is scattered and becomes normal light.
18010 Transparent bool // Sunlight isn't scattered.
18023 LiquidType LiquidType
18026 Viscosity uint8 // 0-7
18032 DrawBox, ColBox, SelBox NodeBox
18034 FootstepSnd, DiggingSnd, DugSnd SoundDef
18044 }))(obj)).SelBox).serialize(w)
18049 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
18051 if err := pcall(func() {
18064 //mt:const uint8(6)
18066 OverlayTiles [6]TileDef
18067 //mt:const uint8(6)
18068 SpecialTiles [6]TileDef
18075 ConnectTo []Content
18076 InsideTint color.NRGBA
18077 Level uint8 // Must be < 128.
18079 Translucent bool // Sunlight is scattered and becomes normal light.
18080 Transparent bool // Sunlight isn't scattered.
18093 LiquidType LiquidType
18096 Viscosity uint8 // 0-7
18102 DrawBox, ColBox, SelBox NodeBox
18104 FootstepSnd, DiggingSnd, DugSnd SoundDef
18114 }))(obj)).FootstepSnd).serialize(w)
18119 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
18121 if err := pcall(func() {
18134 //mt:const uint8(6)
18136 OverlayTiles [6]TileDef
18137 //mt:const uint8(6)
18138 SpecialTiles [6]TileDef
18145 ConnectTo []Content
18146 InsideTint color.NRGBA
18147 Level uint8 // Must be < 128.
18149 Translucent bool // Sunlight is scattered and becomes normal light.
18150 Transparent bool // Sunlight isn't scattered.
18163 LiquidType LiquidType
18166 Viscosity uint8 // 0-7
18172 DrawBox, ColBox, SelBox NodeBox
18174 FootstepSnd, DiggingSnd, DugSnd SoundDef
18184 }))(obj)).DiggingSnd).serialize(w)
18189 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
18191 if err := pcall(func() {
18204 //mt:const uint8(6)
18206 OverlayTiles [6]TileDef
18207 //mt:const uint8(6)
18208 SpecialTiles [6]TileDef
18215 ConnectTo []Content
18216 InsideTint color.NRGBA
18217 Level uint8 // Must be < 128.
18219 Translucent bool // Sunlight is scattered and becomes normal light.
18220 Transparent bool // Sunlight isn't scattered.
18233 LiquidType LiquidType
18236 Viscosity uint8 // 0-7
18242 DrawBox, ColBox, SelBox NodeBox
18244 FootstepSnd, DiggingSnd, DugSnd SoundDef
18254 }))(obj)).DugSnd).serialize(w)
18259 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
18274 //mt:const uint8(6)
18276 OverlayTiles [6]TileDef
18277 //mt:const uint8(6)
18278 SpecialTiles [6]TileDef
18285 ConnectTo []Content
18286 InsideTint color.NRGBA
18287 Level uint8 // Must be < 128.
18289 Translucent bool // Sunlight is scattered and becomes normal light.
18290 Transparent bool // Sunlight isn't scattered.
18303 LiquidType LiquidType
18306 Viscosity uint8 // 0-7
18312 DrawBox, ColBox, SelBox NodeBox
18314 FootstepSnd, DiggingSnd, DugSnd SoundDef
18324 }))(obj)).LegacyFaceDir
18344 //mt:const uint8(6)
18346 OverlayTiles [6]TileDef
18347 //mt:const uint8(6)
18348 SpecialTiles [6]TileDef
18355 ConnectTo []Content
18356 InsideTint color.NRGBA
18357 Level uint8 // Must be < 128.
18359 Translucent bool // Sunlight is scattered and becomes normal light.
18360 Transparent bool // Sunlight isn't scattered.
18373 LiquidType LiquidType
18376 Viscosity uint8 // 0-7
18382 DrawBox, ColBox, SelBox NodeBox
18384 FootstepSnd, DiggingSnd, DugSnd SoundDef
18394 }))(obj)).LegacyMounted
18401 if len(([]byte((*(*(struct {
18413 //mt:const uint8(6)
18415 OverlayTiles [6]TileDef
18416 //mt:const uint8(6)
18417 SpecialTiles [6]TileDef
18424 ConnectTo []Content
18425 InsideTint color.NRGBA
18426 Level uint8 // Must be < 128.
18428 Translucent bool // Sunlight is scattered and becomes normal light.
18429 Transparent bool // Sunlight isn't scattered.
18442 LiquidType LiquidType
18445 Viscosity uint8 // 0-7
18451 DrawBox, ColBox, SelBox NodeBox
18453 FootstepSnd, DiggingSnd, DugSnd SoundDef
18463 }))(obj)).DigPredict))) > math.MaxUint16 {
18467 x := uint16(len(([]byte((*(*(struct {
18479 //mt:const uint8(6)
18481 OverlayTiles [6]TileDef
18482 //mt:const uint8(6)
18483 SpecialTiles [6]TileDef
18490 ConnectTo []Content
18491 InsideTint color.NRGBA
18492 Level uint8 // Must be < 128.
18494 Translucent bool // Sunlight is scattered and becomes normal light.
18495 Transparent bool // Sunlight isn't scattered.
18508 LiquidType LiquidType
18511 Viscosity uint8 // 0-7
18517 DrawBox, ColBox, SelBox NodeBox
18519 FootstepSnd, DiggingSnd, DugSnd SoundDef
18529 }))(obj)).DigPredict))))
18530 write16(w, uint16(x))
18533 _, err := w.Write(([]byte((*(*(struct {
18545 //mt:const uint8(6)
18547 OverlayTiles [6]TileDef
18548 //mt:const uint8(6)
18549 SpecialTiles [6]TileDef
18556 ConnectTo []Content
18557 InsideTint color.NRGBA
18558 Level uint8 // Must be < 128.
18560 Translucent bool // Sunlight is scattered and becomes normal light.
18561 Transparent bool // Sunlight isn't scattered.
18574 LiquidType LiquidType
18577 Viscosity uint8 // 0-7
18583 DrawBox, ColBox, SelBox NodeBox
18585 FootstepSnd, DiggingSnd, DugSnd SoundDef
18595 }))(obj)).DigPredict))[:])
18611 //mt:const uint8(6)
18613 OverlayTiles [6]TileDef
18614 //mt:const uint8(6)
18615 SpecialTiles [6]TileDef
18622 ConnectTo []Content
18623 InsideTint color.NRGBA
18624 Level uint8 // Must be < 128.
18626 Translucent bool // Sunlight is scattered and becomes normal light.
18627 Transparent bool // Sunlight isn't scattered.
18640 LiquidType LiquidType
18643 Viscosity uint8 // 0-7
18649 DrawBox, ColBox, SelBox NodeBox
18651 FootstepSnd, DiggingSnd, DugSnd SoundDef
18662 write8(w, uint8(x))
18664 if err := pcall(func() {
18677 //mt:const uint8(6)
18679 OverlayTiles [6]TileDef
18680 //mt:const uint8(6)
18681 SpecialTiles [6]TileDef
18688 ConnectTo []Content
18689 InsideTint color.NRGBA
18690 Level uint8 // Must be < 128.
18692 Translucent bool // Sunlight is scattered and becomes normal light.
18693 Transparent bool // Sunlight isn't scattered.
18706 LiquidType LiquidType
18709 Viscosity uint8 // 0-7
18715 DrawBox, ColBox, SelBox NodeBox
18717 FootstepSnd, DiggingSnd, DugSnd SoundDef
18727 }))(obj)).AlphaUse).serialize(w)
18732 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
18737 if len((buf.Bytes())) > math.MaxUint16 {
18741 x := uint16(len((buf.Bytes())))
18742 write16(w, uint16(x))
18745 _, err := w.Write((buf.Bytes())[:])
18752 func (obj *NodeDef) deserialize(r io.Reader) {
18753 if err := pcall(func() {
18766 //mt:const uint8(6)
18768 OverlayTiles [6]TileDef
18769 //mt:const uint8(6)
18770 SpecialTiles [6]TileDef
18777 ConnectTo []Content
18778 InsideTint color.NRGBA
18779 Level uint8 // Must be < 128.
18781 Translucent bool // Sunlight is scattered and becomes normal light.
18782 Transparent bool // Sunlight isn't scattered.
18795 LiquidType LiquidType
18798 Viscosity uint8 // 0-7
18804 DrawBox, ColBox, SelBox NodeBox
18806 FootstepSnd, DiggingSnd, DugSnd SoundDef
18816 }))(obj)).Param0).deserialize(r)
18821 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
18829 r := &io.LimitedReader{R: r, N: int64(n)}
18832 local247 := uint8(13)
18837 if local246 != local247 {
18838 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
18841 var local248 []uint8
18842 var local249 uint16
18847 (local248) = make([]uint8, local249)
18849 _, err := io.ReadFull(r, (local248)[:])
18864 //mt:const uint8(6)
18866 OverlayTiles [6]TileDef
18867 //mt:const uint8(6)
18868 SpecialTiles [6]TileDef
18875 ConnectTo []Content
18876 InsideTint color.NRGBA
18877 Level uint8 // Must be < 128.
18879 Translucent bool // Sunlight is scattered and becomes normal light.
18880 Transparent bool // Sunlight isn't scattered.
18893 LiquidType LiquidType
18896 Viscosity uint8 // 0-7
18902 DrawBox, ColBox, SelBox NodeBox
18904 FootstepSnd, DiggingSnd, DugSnd SoundDef
18914 }))(obj)).Name) = string(local248)
18915 var local250 uint16
18932 //mt:const uint8(6)
18934 OverlayTiles [6]TileDef
18935 //mt:const uint8(6)
18936 SpecialTiles [6]TileDef
18943 ConnectTo []Content
18944 InsideTint color.NRGBA
18945 Level uint8 // Must be < 128.
18947 Translucent bool // Sunlight is scattered and becomes normal light.
18948 Transparent bool // Sunlight isn't scattered.
18961 LiquidType LiquidType
18964 Viscosity uint8 // 0-7
18970 DrawBox, ColBox, SelBox NodeBox
18972 FootstepSnd, DiggingSnd, DugSnd SoundDef
18982 }))(obj)).Groups) = make([]Group, local250)
18983 for local251 := range (*(*(struct {
18995 //mt:const uint8(6)
18997 OverlayTiles [6]TileDef
18998 //mt:const uint8(6)
18999 SpecialTiles [6]TileDef
19006 ConnectTo []Content
19007 InsideTint color.NRGBA
19008 Level uint8 // Must be < 128.
19010 Translucent bool // Sunlight is scattered and becomes normal light.
19011 Transparent bool // Sunlight isn't scattered.
19024 LiquidType LiquidType
19027 Viscosity uint8 // 0-7
19033 DrawBox, ColBox, SelBox NodeBox
19035 FootstepSnd, DiggingSnd, DugSnd SoundDef
19046 if err := pcall(func() {
19059 //mt:const uint8(6)
19061 OverlayTiles [6]TileDef
19062 //mt:const uint8(6)
19063 SpecialTiles [6]TileDef
19070 ConnectTo []Content
19071 InsideTint color.NRGBA
19072 Level uint8 // Must be < 128.
19074 Translucent bool // Sunlight is scattered and becomes normal light.
19075 Transparent bool // Sunlight isn't scattered.
19088 LiquidType LiquidType
19091 Viscosity uint8 // 0-7
19097 DrawBox, ColBox, SelBox NodeBox
19099 FootstepSnd, DiggingSnd, DugSnd SoundDef
19109 }))(obj)).Groups)[local251]).deserialize(r)
19114 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
19117 if err := pcall(func() {
19130 //mt:const uint8(6)
19132 OverlayTiles [6]TileDef
19133 //mt:const uint8(6)
19134 SpecialTiles [6]TileDef
19141 ConnectTo []Content
19142 InsideTint color.NRGBA
19143 Level uint8 // Must be < 128.
19145 Translucent bool // Sunlight is scattered and becomes normal light.
19146 Transparent bool // Sunlight isn't scattered.
19159 LiquidType LiquidType
19162 Viscosity uint8 // 0-7
19168 DrawBox, ColBox, SelBox NodeBox
19170 FootstepSnd, DiggingSnd, DugSnd SoundDef
19180 }))(obj)).P1Type).deserialize(r)
19185 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
19187 if err := pcall(func() {
19200 //mt:const uint8(6)
19202 OverlayTiles [6]TileDef
19203 //mt:const uint8(6)
19204 SpecialTiles [6]TileDef
19211 ConnectTo []Content
19212 InsideTint color.NRGBA
19213 Level uint8 // Must be < 128.
19215 Translucent bool // Sunlight is scattered and becomes normal light.
19216 Transparent bool // Sunlight isn't scattered.
19229 LiquidType LiquidType
19232 Viscosity uint8 // 0-7
19238 DrawBox, ColBox, SelBox NodeBox
19240 FootstepSnd, DiggingSnd, DugSnd SoundDef
19250 }))(obj)).P2Type).deserialize(r)
19255 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
19257 if err := pcall(func() {
19270 //mt:const uint8(6)
19272 OverlayTiles [6]TileDef
19273 //mt:const uint8(6)
19274 SpecialTiles [6]TileDef
19281 ConnectTo []Content
19282 InsideTint color.NRGBA
19283 Level uint8 // Must be < 128.
19285 Translucent bool // Sunlight is scattered and becomes normal light.
19286 Transparent bool // Sunlight isn't scattered.
19299 LiquidType LiquidType
19302 Viscosity uint8 // 0-7
19308 DrawBox, ColBox, SelBox NodeBox
19310 FootstepSnd, DiggingSnd, DugSnd SoundDef
19320 }))(obj)).DrawType).deserialize(r)
19325 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
19327 var local252 []uint8
19328 var local253 uint16
19333 (local252) = make([]uint8, local253)
19335 _, err := io.ReadFull(r, (local252)[:])
19350 //mt:const uint8(6)
19352 OverlayTiles [6]TileDef
19353 //mt:const uint8(6)
19354 SpecialTiles [6]TileDef
19361 ConnectTo []Content
19362 InsideTint color.NRGBA
19363 Level uint8 // Must be < 128.
19365 Translucent bool // Sunlight is scattered and becomes normal light.
19366 Transparent bool // Sunlight isn't scattered.
19379 LiquidType LiquidType
19382 Viscosity uint8 // 0-7
19388 DrawBox, ColBox, SelBox NodeBox
19390 FootstepSnd, DiggingSnd, DugSnd SoundDef
19400 }))(obj)).Mesh) = string(local252)
19402 p := &(*(*(struct {
19414 //mt:const uint8(6)
19416 OverlayTiles [6]TileDef
19417 //mt:const uint8(6)
19418 SpecialTiles [6]TileDef
19425 ConnectTo []Content
19426 InsideTint color.NRGBA
19427 Level uint8 // Must be < 128.
19429 Translucent bool // Sunlight is scattered and becomes normal light.
19430 Transparent bool // Sunlight isn't scattered.
19443 LiquidType LiquidType
19446 Viscosity uint8 // 0-7
19452 DrawBox, ColBox, SelBox NodeBox
19454 FootstepSnd, DiggingSnd, DugSnd SoundDef
19465 *p = math.Float32frombits(read32(r))
19469 local255 := uint8(6)
19474 if local254 != local255 {
19475 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19478 for local256 := range (*(*(struct {
19490 //mt:const uint8(6)
19492 OverlayTiles [6]TileDef
19493 //mt:const uint8(6)
19494 SpecialTiles [6]TileDef
19501 ConnectTo []Content
19502 InsideTint color.NRGBA
19503 Level uint8 // Must be < 128.
19505 Translucent bool // Sunlight is scattered and becomes normal light.
19506 Transparent bool // Sunlight isn't scattered.
19519 LiquidType LiquidType
19522 Viscosity uint8 // 0-7
19528 DrawBox, ColBox, SelBox NodeBox
19530 FootstepSnd, DiggingSnd, DugSnd SoundDef
19541 if err := pcall(func() {
19554 //mt:const uint8(6)
19556 OverlayTiles [6]TileDef
19557 //mt:const uint8(6)
19558 SpecialTiles [6]TileDef
19565 ConnectTo []Content
19566 InsideTint color.NRGBA
19567 Level uint8 // Must be < 128.
19569 Translucent bool // Sunlight is scattered and becomes normal light.
19570 Transparent bool // Sunlight isn't scattered.
19583 LiquidType LiquidType
19586 Viscosity uint8 // 0-7
19592 DrawBox, ColBox, SelBox NodeBox
19594 FootstepSnd, DiggingSnd, DugSnd SoundDef
19604 }))(obj)).Tiles)[local256]).deserialize(r)
19609 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19612 for local257 := range (*(*(struct {
19624 //mt:const uint8(6)
19626 OverlayTiles [6]TileDef
19627 //mt:const uint8(6)
19628 SpecialTiles [6]TileDef
19635 ConnectTo []Content
19636 InsideTint color.NRGBA
19637 Level uint8 // Must be < 128.
19639 Translucent bool // Sunlight is scattered and becomes normal light.
19640 Transparent bool // Sunlight isn't scattered.
19653 LiquidType LiquidType
19656 Viscosity uint8 // 0-7
19662 DrawBox, ColBox, SelBox NodeBox
19664 FootstepSnd, DiggingSnd, DugSnd SoundDef
19674 }))(obj)).OverlayTiles {
19675 if err := pcall(func() {
19688 //mt:const uint8(6)
19690 OverlayTiles [6]TileDef
19691 //mt:const uint8(6)
19692 SpecialTiles [6]TileDef
19699 ConnectTo []Content
19700 InsideTint color.NRGBA
19701 Level uint8 // Must be < 128.
19703 Translucent bool // Sunlight is scattered and becomes normal light.
19704 Transparent bool // Sunlight isn't scattered.
19717 LiquidType LiquidType
19720 Viscosity uint8 // 0-7
19726 DrawBox, ColBox, SelBox NodeBox
19728 FootstepSnd, DiggingSnd, DugSnd SoundDef
19738 }))(obj)).OverlayTiles)[local257]).deserialize(r)
19743 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19748 local259 := uint8(6)
19753 if local258 != local259 {
19754 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
19757 for local260 := range (*(*(struct {
19769 //mt:const uint8(6)
19771 OverlayTiles [6]TileDef
19772 //mt:const uint8(6)
19773 SpecialTiles [6]TileDef
19780 ConnectTo []Content
19781 InsideTint color.NRGBA
19782 Level uint8 // Must be < 128.
19784 Translucent bool // Sunlight is scattered and becomes normal light.
19785 Transparent bool // Sunlight isn't scattered.
19798 LiquidType LiquidType
19801 Viscosity uint8 // 0-7
19807 DrawBox, ColBox, SelBox NodeBox
19809 FootstepSnd, DiggingSnd, DugSnd SoundDef
19819 }))(obj)).SpecialTiles {
19820 if err := pcall(func() {
19833 //mt:const uint8(6)
19835 OverlayTiles [6]TileDef
19836 //mt:const uint8(6)
19837 SpecialTiles [6]TileDef
19844 ConnectTo []Content
19845 InsideTint color.NRGBA
19846 Level uint8 // Must be < 128.
19848 Translucent bool // Sunlight is scattered and becomes normal light.
19849 Transparent bool // Sunlight isn't scattered.
19862 LiquidType LiquidType
19865 Viscosity uint8 // 0-7
19871 DrawBox, ColBox, SelBox NodeBox
19873 FootstepSnd, DiggingSnd, DugSnd SoundDef
19883 }))(obj)).SpecialTiles)[local260]).deserialize(r)
19888 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19892 p := &(*(*(struct {
19904 //mt:const uint8(6)
19906 OverlayTiles [6]TileDef
19907 //mt:const uint8(6)
19908 SpecialTiles [6]TileDef
19915 ConnectTo []Content
19916 InsideTint color.NRGBA
19917 Level uint8 // Must be < 128.
19919 Translucent bool // Sunlight is scattered and becomes normal light.
19920 Transparent bool // Sunlight isn't scattered.
19933 LiquidType LiquidType
19936 Viscosity uint8 // 0-7
19942 DrawBox, ColBox, SelBox NodeBox
19944 FootstepSnd, DiggingSnd, DugSnd SoundDef
19955 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19957 if err := pcall(func() {
19970 //mt:const uint8(6)
19972 OverlayTiles [6]TileDef
19973 //mt:const uint8(6)
19974 SpecialTiles [6]TileDef
19981 ConnectTo []Content
19982 InsideTint color.NRGBA
19983 Level uint8 // Must be < 128.
19985 Translucent bool // Sunlight is scattered and becomes normal light.
19986 Transparent bool // Sunlight isn't scattered.
19999 LiquidType LiquidType
20002 Viscosity uint8 // 0-7
20008 DrawBox, ColBox, SelBox NodeBox
20010 FootstepSnd, DiggingSnd, DugSnd SoundDef
20020 }))(obj)).Palette).deserialize(r)
20025 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
20027 if err := pcall(func() {
20040 //mt:const uint8(6)
20042 OverlayTiles [6]TileDef
20043 //mt:const uint8(6)
20044 SpecialTiles [6]TileDef
20051 ConnectTo []Content
20052 InsideTint color.NRGBA
20053 Level uint8 // Must be < 128.
20055 Translucent bool // Sunlight is scattered and becomes normal light.
20056 Transparent bool // Sunlight isn't scattered.
20069 LiquidType LiquidType
20072 Viscosity uint8 // 0-7
20078 DrawBox, ColBox, SelBox NodeBox
20080 FootstepSnd, DiggingSnd, DugSnd SoundDef
20090 }))(obj)).Waving).deserialize(r)
20095 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
20098 p := &(*(*(struct {
20110 //mt:const uint8(6)
20112 OverlayTiles [6]TileDef
20113 //mt:const uint8(6)
20114 SpecialTiles [6]TileDef
20121 ConnectTo []Content
20122 InsideTint color.NRGBA
20123 Level uint8 // Must be < 128.
20125 Translucent bool // Sunlight is scattered and becomes normal light.
20126 Transparent bool // Sunlight isn't scattered.
20139 LiquidType LiquidType
20142 Viscosity uint8 // 0-7
20148 DrawBox, ColBox, SelBox NodeBox
20150 FootstepSnd, DiggingSnd, DugSnd SoundDef
20160 }))(obj)).ConnectSides
20163 var local261 uint16
20180 //mt:const uint8(6)
20182 OverlayTiles [6]TileDef
20183 //mt:const uint8(6)
20184 SpecialTiles [6]TileDef
20191 ConnectTo []Content
20192 InsideTint color.NRGBA
20193 Level uint8 // Must be < 128.
20195 Translucent bool // Sunlight is scattered and becomes normal light.
20196 Transparent bool // Sunlight isn't scattered.
20209 LiquidType LiquidType
20212 Viscosity uint8 // 0-7
20218 DrawBox, ColBox, SelBox NodeBox
20220 FootstepSnd, DiggingSnd, DugSnd SoundDef
20230 }))(obj)).ConnectTo) = make([]Content, local261)
20231 for local262 := range (*(*(struct {
20243 //mt:const uint8(6)
20245 OverlayTiles [6]TileDef
20246 //mt:const uint8(6)
20247 SpecialTiles [6]TileDef
20254 ConnectTo []Content
20255 InsideTint color.NRGBA
20256 Level uint8 // Must be < 128.
20258 Translucent bool // Sunlight is scattered and becomes normal light.
20259 Transparent bool // Sunlight isn't scattered.
20272 LiquidType LiquidType
20275 Viscosity uint8 // 0-7
20281 DrawBox, ColBox, SelBox NodeBox
20283 FootstepSnd, DiggingSnd, DugSnd SoundDef
20293 }))(obj)).ConnectTo {
20294 if err := pcall(func() {
20307 //mt:const uint8(6)
20309 OverlayTiles [6]TileDef
20310 //mt:const uint8(6)
20311 SpecialTiles [6]TileDef
20318 ConnectTo []Content
20319 InsideTint color.NRGBA
20320 Level uint8 // Must be < 128.
20322 Translucent bool // Sunlight is scattered and becomes normal light.
20323 Transparent bool // Sunlight isn't scattered.
20336 LiquidType LiquidType
20339 Viscosity uint8 // 0-7
20345 DrawBox, ColBox, SelBox NodeBox
20347 FootstepSnd, DiggingSnd, DugSnd SoundDef
20357 }))(obj)).ConnectTo)[local262]).deserialize(r)
20362 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
20366 p := &(*(*(struct {
20378 //mt:const uint8(6)
20380 OverlayTiles [6]TileDef
20381 //mt:const uint8(6)
20382 SpecialTiles [6]TileDef
20389 ConnectTo []Content
20390 InsideTint color.NRGBA
20391 Level uint8 // Must be < 128.
20393 Translucent bool // Sunlight is scattered and becomes normal light.
20394 Transparent bool // Sunlight isn't scattered.
20407 LiquidType LiquidType
20410 Viscosity uint8 // 0-7
20416 DrawBox, ColBox, SelBox NodeBox
20418 FootstepSnd, DiggingSnd, DugSnd SoundDef
20428 }))(obj)).InsideTint
20429 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20432 p := &(*(*(struct {
20444 //mt:const uint8(6)
20446 OverlayTiles [6]TileDef
20447 //mt:const uint8(6)
20448 SpecialTiles [6]TileDef
20455 ConnectTo []Content
20456 InsideTint color.NRGBA
20457 Level uint8 // Must be < 128.
20459 Translucent bool // Sunlight is scattered and becomes normal light.
20460 Transparent bool // Sunlight isn't scattered.
20473 LiquidType LiquidType
20476 Viscosity uint8 // 0-7
20482 DrawBox, ColBox, SelBox NodeBox
20484 FootstepSnd, DiggingSnd, DugSnd SoundDef
20498 p := &(*(*(struct {
20510 //mt:const uint8(6)
20512 OverlayTiles [6]TileDef
20513 //mt:const uint8(6)
20514 SpecialTiles [6]TileDef
20521 ConnectTo []Content
20522 InsideTint color.NRGBA
20523 Level uint8 // Must be < 128.
20525 Translucent bool // Sunlight is scattered and becomes normal light.
20526 Transparent bool // Sunlight isn't scattered.
20539 LiquidType LiquidType
20542 Viscosity uint8 // 0-7
20548 DrawBox, ColBox, SelBox NodeBox
20550 FootstepSnd, DiggingSnd, DugSnd SoundDef
20560 }))(obj)).Translucent
20561 switch n := read8(r); n {
20567 chk(fmt.Errorf("invalid bool: %d", n))
20571 p := &(*(*(struct {
20583 //mt:const uint8(6)
20585 OverlayTiles [6]TileDef
20586 //mt:const uint8(6)
20587 SpecialTiles [6]TileDef
20594 ConnectTo []Content
20595 InsideTint color.NRGBA
20596 Level uint8 // Must be < 128.
20598 Translucent bool // Sunlight is scattered and becomes normal light.
20599 Transparent bool // Sunlight isn't scattered.
20612 LiquidType LiquidType
20615 Viscosity uint8 // 0-7
20621 DrawBox, ColBox, SelBox NodeBox
20623 FootstepSnd, DiggingSnd, DugSnd SoundDef
20633 }))(obj)).Transparent
20634 switch n := read8(r); n {
20640 chk(fmt.Errorf("invalid bool: %d", n))
20644 p := &(*(*(struct {
20656 //mt:const uint8(6)
20658 OverlayTiles [6]TileDef
20659 //mt:const uint8(6)
20660 SpecialTiles [6]TileDef
20667 ConnectTo []Content
20668 InsideTint color.NRGBA
20669 Level uint8 // Must be < 128.
20671 Translucent bool // Sunlight is scattered and becomes normal light.
20672 Transparent bool // Sunlight isn't scattered.
20685 LiquidType LiquidType
20688 Viscosity uint8 // 0-7
20694 DrawBox, ColBox, SelBox NodeBox
20696 FootstepSnd, DiggingSnd, DugSnd SoundDef
20710 p := &(*(*(struct {
20722 //mt:const uint8(6)
20724 OverlayTiles [6]TileDef
20725 //mt:const uint8(6)
20726 SpecialTiles [6]TileDef
20733 ConnectTo []Content
20734 InsideTint color.NRGBA
20735 Level uint8 // Must be < 128.
20737 Translucent bool // Sunlight is scattered and becomes normal light.
20738 Transparent bool // Sunlight isn't scattered.
20751 LiquidType LiquidType
20754 Viscosity uint8 // 0-7
20760 DrawBox, ColBox, SelBox NodeBox
20762 FootstepSnd, DiggingSnd, DugSnd SoundDef
20772 }))(obj)).GndContent
20773 switch n := read8(r); n {
20779 chk(fmt.Errorf("invalid bool: %d", n))
20783 p := &(*(*(struct {
20795 //mt:const uint8(6)
20797 OverlayTiles [6]TileDef
20798 //mt:const uint8(6)
20799 SpecialTiles [6]TileDef
20806 ConnectTo []Content
20807 InsideTint color.NRGBA
20808 Level uint8 // Must be < 128.
20810 Translucent bool // Sunlight is scattered and becomes normal light.
20811 Transparent bool // Sunlight isn't scattered.
20824 LiquidType LiquidType
20827 Viscosity uint8 // 0-7
20833 DrawBox, ColBox, SelBox NodeBox
20835 FootstepSnd, DiggingSnd, DugSnd SoundDef
20846 switch n := read8(r); n {
20852 chk(fmt.Errorf("invalid bool: %d", n))
20856 p := &(*(*(struct {
20868 //mt:const uint8(6)
20870 OverlayTiles [6]TileDef
20871 //mt:const uint8(6)
20872 SpecialTiles [6]TileDef
20879 ConnectTo []Content
20880 InsideTint color.NRGBA
20881 Level uint8 // Must be < 128.
20883 Translucent bool // Sunlight is scattered and becomes normal light.
20884 Transparent bool // Sunlight isn't scattered.
20897 LiquidType LiquidType
20900 Viscosity uint8 // 0-7
20906 DrawBox, ColBox, SelBox NodeBox
20908 FootstepSnd, DiggingSnd, DugSnd SoundDef
20918 }))(obj)).Pointable
20919 switch n := read8(r); n {
20925 chk(fmt.Errorf("invalid bool: %d", n))
20929 p := &(*(*(struct {
20941 //mt:const uint8(6)
20943 OverlayTiles [6]TileDef
20944 //mt:const uint8(6)
20945 SpecialTiles [6]TileDef
20952 ConnectTo []Content
20953 InsideTint color.NRGBA
20954 Level uint8 // Must be < 128.
20956 Translucent bool // Sunlight is scattered and becomes normal light.
20957 Transparent bool // Sunlight isn't scattered.
20970 LiquidType LiquidType
20973 Viscosity uint8 // 0-7
20979 DrawBox, ColBox, SelBox NodeBox
20981 FootstepSnd, DiggingSnd, DugSnd SoundDef
20992 switch n := read8(r); n {
20998 chk(fmt.Errorf("invalid bool: %d", n))
21002 p := &(*(*(struct {
21014 //mt:const uint8(6)
21016 OverlayTiles [6]TileDef
21017 //mt:const uint8(6)
21018 SpecialTiles [6]TileDef
21025 ConnectTo []Content
21026 InsideTint color.NRGBA
21027 Level uint8 // Must be < 128.
21029 Translucent bool // Sunlight is scattered and becomes normal light.
21030 Transparent bool // Sunlight isn't scattered.
21043 LiquidType LiquidType
21046 Viscosity uint8 // 0-7
21052 DrawBox, ColBox, SelBox NodeBox
21054 FootstepSnd, DiggingSnd, DugSnd SoundDef
21064 }))(obj)).Climbable
21065 switch n := read8(r); n {
21071 chk(fmt.Errorf("invalid bool: %d", n))
21075 p := &(*(*(struct {
21087 //mt:const uint8(6)
21089 OverlayTiles [6]TileDef
21090 //mt:const uint8(6)
21091 SpecialTiles [6]TileDef
21098 ConnectTo []Content
21099 InsideTint color.NRGBA
21100 Level uint8 // Must be < 128.
21102 Translucent bool // Sunlight is scattered and becomes normal light.
21103 Transparent bool // Sunlight isn't scattered.
21116 LiquidType LiquidType
21119 Viscosity uint8 // 0-7
21125 DrawBox, ColBox, SelBox NodeBox
21127 FootstepSnd, DiggingSnd, DugSnd SoundDef
21137 }))(obj)).Replaceable
21138 switch n := read8(r); n {
21144 chk(fmt.Errorf("invalid bool: %d", n))
21148 p := &(*(*(struct {
21160 //mt:const uint8(6)
21162 OverlayTiles [6]TileDef
21163 //mt:const uint8(6)
21164 SpecialTiles [6]TileDef
21171 ConnectTo []Content
21172 InsideTint color.NRGBA
21173 Level uint8 // Must be < 128.
21175 Translucent bool // Sunlight is scattered and becomes normal light.
21176 Transparent bool // Sunlight isn't scattered.
21189 LiquidType LiquidType
21192 Viscosity uint8 // 0-7
21198 DrawBox, ColBox, SelBox NodeBox
21200 FootstepSnd, DiggingSnd, DugSnd SoundDef
21210 }))(obj)).OnRightClick
21211 switch n := read8(r); n {
21217 chk(fmt.Errorf("invalid bool: %d", n))
21221 p := &(*(*(struct {
21233 //mt:const uint8(6)
21235 OverlayTiles [6]TileDef
21236 //mt:const uint8(6)
21237 SpecialTiles [6]TileDef
21244 ConnectTo []Content
21245 InsideTint color.NRGBA
21246 Level uint8 // Must be < 128.
21248 Translucent bool // Sunlight is scattered and becomes normal light.
21249 Transparent bool // Sunlight isn't scattered.
21262 LiquidType LiquidType
21265 Viscosity uint8 // 0-7
21271 DrawBox, ColBox, SelBox NodeBox
21273 FootstepSnd, DiggingSnd, DugSnd SoundDef
21283 }))(obj)).DmgPerSec
21284 *p = int32(read32(r))
21286 if err := pcall(func() {
21299 //mt:const uint8(6)
21301 OverlayTiles [6]TileDef
21302 //mt:const uint8(6)
21303 SpecialTiles [6]TileDef
21310 ConnectTo []Content
21311 InsideTint color.NRGBA
21312 Level uint8 // Must be < 128.
21314 Translucent bool // Sunlight is scattered and becomes normal light.
21315 Transparent bool // Sunlight isn't scattered.
21328 LiquidType LiquidType
21331 Viscosity uint8 // 0-7
21337 DrawBox, ColBox, SelBox NodeBox
21339 FootstepSnd, DiggingSnd, DugSnd SoundDef
21349 }))(obj)).LiquidType).deserialize(r)
21354 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
21356 var local263 []uint8
21357 var local264 uint16
21362 (local263) = make([]uint8, local264)
21364 _, err := io.ReadFull(r, (local263)[:])
21379 //mt:const uint8(6)
21381 OverlayTiles [6]TileDef
21382 //mt:const uint8(6)
21383 SpecialTiles [6]TileDef
21390 ConnectTo []Content
21391 InsideTint color.NRGBA
21392 Level uint8 // Must be < 128.
21394 Translucent bool // Sunlight is scattered and becomes normal light.
21395 Transparent bool // Sunlight isn't scattered.
21408 LiquidType LiquidType
21411 Viscosity uint8 // 0-7
21417 DrawBox, ColBox, SelBox NodeBox
21419 FootstepSnd, DiggingSnd, DugSnd SoundDef
21429 }))(obj)).FlowingAlt) = string(local263)
21430 var local265 []uint8
21431 var local266 uint16
21436 (local265) = make([]uint8, local266)
21438 _, err := io.ReadFull(r, (local265)[:])
21453 //mt:const uint8(6)
21455 OverlayTiles [6]TileDef
21456 //mt:const uint8(6)
21457 SpecialTiles [6]TileDef
21464 ConnectTo []Content
21465 InsideTint color.NRGBA
21466 Level uint8 // Must be < 128.
21468 Translucent bool // Sunlight is scattered and becomes normal light.
21469 Transparent bool // Sunlight isn't scattered.
21482 LiquidType LiquidType
21485 Viscosity uint8 // 0-7
21491 DrawBox, ColBox, SelBox NodeBox
21493 FootstepSnd, DiggingSnd, DugSnd SoundDef
21503 }))(obj)).SrcAlt) = string(local265)
21505 p := &(*(*(struct {
21517 //mt:const uint8(6)
21519 OverlayTiles [6]TileDef
21520 //mt:const uint8(6)
21521 SpecialTiles [6]TileDef
21528 ConnectTo []Content
21529 InsideTint color.NRGBA
21530 Level uint8 // Must be < 128.
21532 Translucent bool // Sunlight is scattered and becomes normal light.
21533 Transparent bool // Sunlight isn't scattered.
21546 LiquidType LiquidType
21549 Viscosity uint8 // 0-7
21555 DrawBox, ColBox, SelBox NodeBox
21557 FootstepSnd, DiggingSnd, DugSnd SoundDef
21567 }))(obj)).Viscosity
21571 p := &(*(*(struct {
21583 //mt:const uint8(6)
21585 OverlayTiles [6]TileDef
21586 //mt:const uint8(6)
21587 SpecialTiles [6]TileDef
21594 ConnectTo []Content
21595 InsideTint color.NRGBA
21596 Level uint8 // Must be < 128.
21598 Translucent bool // Sunlight is scattered and becomes normal light.
21599 Transparent bool // Sunlight isn't scattered.
21612 LiquidType LiquidType
21615 Viscosity uint8 // 0-7
21621 DrawBox, ColBox, SelBox NodeBox
21623 FootstepSnd, DiggingSnd, DugSnd SoundDef
21633 }))(obj)).LiqRenewable
21634 switch n := read8(r); n {
21640 chk(fmt.Errorf("invalid bool: %d", n))
21644 p := &(*(*(struct {
21656 //mt:const uint8(6)
21658 OverlayTiles [6]TileDef
21659 //mt:const uint8(6)
21660 SpecialTiles [6]TileDef
21667 ConnectTo []Content
21668 InsideTint color.NRGBA
21669 Level uint8 // Must be < 128.
21671 Translucent bool // Sunlight is scattered and becomes normal light.
21672 Transparent bool // Sunlight isn't scattered.
21685 LiquidType LiquidType
21688 Viscosity uint8 // 0-7
21694 DrawBox, ColBox, SelBox NodeBox
21696 FootstepSnd, DiggingSnd, DugSnd SoundDef
21706 }))(obj)).FlowRange
21710 p := &(*(*(struct {
21722 //mt:const uint8(6)
21724 OverlayTiles [6]TileDef
21725 //mt:const uint8(6)
21726 SpecialTiles [6]TileDef
21733 ConnectTo []Content
21734 InsideTint color.NRGBA
21735 Level uint8 // Must be < 128.
21737 Translucent bool // Sunlight is scattered and becomes normal light.
21738 Transparent bool // Sunlight isn't scattered.
21751 LiquidType LiquidType
21754 Viscosity uint8 // 0-7
21760 DrawBox, ColBox, SelBox NodeBox
21762 FootstepSnd, DiggingSnd, DugSnd SoundDef
21776 p := &(*(*(struct {
21788 //mt:const uint8(6)
21790 OverlayTiles [6]TileDef
21791 //mt:const uint8(6)
21792 SpecialTiles [6]TileDef
21799 ConnectTo []Content
21800 InsideTint color.NRGBA
21801 Level uint8 // Must be < 128.
21803 Translucent bool // Sunlight is scattered and becomes normal light.
21804 Transparent bool // Sunlight isn't scattered.
21817 LiquidType LiquidType
21820 Viscosity uint8 // 0-7
21826 DrawBox, ColBox, SelBox NodeBox
21828 FootstepSnd, DiggingSnd, DugSnd SoundDef
21838 }))(obj)).Floodable
21839 switch n := read8(r); n {
21845 chk(fmt.Errorf("invalid bool: %d", n))
21848 if err := pcall(func() {
21861 //mt:const uint8(6)
21863 OverlayTiles [6]TileDef
21864 //mt:const uint8(6)
21865 SpecialTiles [6]TileDef
21872 ConnectTo []Content
21873 InsideTint color.NRGBA
21874 Level uint8 // Must be < 128.
21876 Translucent bool // Sunlight is scattered and becomes normal light.
21877 Transparent bool // Sunlight isn't scattered.
21890 LiquidType LiquidType
21893 Viscosity uint8 // 0-7
21899 DrawBox, ColBox, SelBox NodeBox
21901 FootstepSnd, DiggingSnd, DugSnd SoundDef
21911 }))(obj)).DrawBox).deserialize(r)
21916 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21918 if err := pcall(func() {
21931 //mt:const uint8(6)
21933 OverlayTiles [6]TileDef
21934 //mt:const uint8(6)
21935 SpecialTiles [6]TileDef
21942 ConnectTo []Content
21943 InsideTint color.NRGBA
21944 Level uint8 // Must be < 128.
21946 Translucent bool // Sunlight is scattered and becomes normal light.
21947 Transparent bool // Sunlight isn't scattered.
21960 LiquidType LiquidType
21963 Viscosity uint8 // 0-7
21969 DrawBox, ColBox, SelBox NodeBox
21971 FootstepSnd, DiggingSnd, DugSnd SoundDef
21981 }))(obj)).ColBox).deserialize(r)
21986 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21988 if err := pcall(func() {
22001 //mt:const uint8(6)
22003 OverlayTiles [6]TileDef
22004 //mt:const uint8(6)
22005 SpecialTiles [6]TileDef
22012 ConnectTo []Content
22013 InsideTint color.NRGBA
22014 Level uint8 // Must be < 128.
22016 Translucent bool // Sunlight is scattered and becomes normal light.
22017 Transparent bool // Sunlight isn't scattered.
22030 LiquidType LiquidType
22033 Viscosity uint8 // 0-7
22039 DrawBox, ColBox, SelBox NodeBox
22041 FootstepSnd, DiggingSnd, DugSnd SoundDef
22051 }))(obj)).SelBox).deserialize(r)
22056 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
22058 if err := pcall(func() {
22071 //mt:const uint8(6)
22073 OverlayTiles [6]TileDef
22074 //mt:const uint8(6)
22075 SpecialTiles [6]TileDef
22082 ConnectTo []Content
22083 InsideTint color.NRGBA
22084 Level uint8 // Must be < 128.
22086 Translucent bool // Sunlight is scattered and becomes normal light.
22087 Transparent bool // Sunlight isn't scattered.
22100 LiquidType LiquidType
22103 Viscosity uint8 // 0-7
22109 DrawBox, ColBox, SelBox NodeBox
22111 FootstepSnd, DiggingSnd, DugSnd SoundDef
22121 }))(obj)).FootstepSnd).deserialize(r)
22126 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
22128 if err := pcall(func() {
22141 //mt:const uint8(6)
22143 OverlayTiles [6]TileDef
22144 //mt:const uint8(6)
22145 SpecialTiles [6]TileDef
22152 ConnectTo []Content
22153 InsideTint color.NRGBA
22154 Level uint8 // Must be < 128.
22156 Translucent bool // Sunlight is scattered and becomes normal light.
22157 Transparent bool // Sunlight isn't scattered.
22170 LiquidType LiquidType
22173 Viscosity uint8 // 0-7
22179 DrawBox, ColBox, SelBox NodeBox
22181 FootstepSnd, DiggingSnd, DugSnd SoundDef
22191 }))(obj)).DiggingSnd).deserialize(r)
22196 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
22198 if err := pcall(func() {
22211 //mt:const uint8(6)
22213 OverlayTiles [6]TileDef
22214 //mt:const uint8(6)
22215 SpecialTiles [6]TileDef
22222 ConnectTo []Content
22223 InsideTint color.NRGBA
22224 Level uint8 // Must be < 128.
22226 Translucent bool // Sunlight is scattered and becomes normal light.
22227 Transparent bool // Sunlight isn't scattered.
22240 LiquidType LiquidType
22243 Viscosity uint8 // 0-7
22249 DrawBox, ColBox, SelBox NodeBox
22251 FootstepSnd, DiggingSnd, DugSnd SoundDef
22261 }))(obj)).DugSnd).deserialize(r)
22266 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
22269 p := &(*(*(struct {
22281 //mt:const uint8(6)
22283 OverlayTiles [6]TileDef
22284 //mt:const uint8(6)
22285 SpecialTiles [6]TileDef
22292 ConnectTo []Content
22293 InsideTint color.NRGBA
22294 Level uint8 // Must be < 128.
22296 Translucent bool // Sunlight is scattered and becomes normal light.
22297 Transparent bool // Sunlight isn't scattered.
22310 LiquidType LiquidType
22313 Viscosity uint8 // 0-7
22319 DrawBox, ColBox, SelBox NodeBox
22321 FootstepSnd, DiggingSnd, DugSnd SoundDef
22331 }))(obj)).LegacyFaceDir
22332 switch n := read8(r); n {
22338 chk(fmt.Errorf("invalid bool: %d", n))
22342 p := &(*(*(struct {
22354 //mt:const uint8(6)
22356 OverlayTiles [6]TileDef
22357 //mt:const uint8(6)
22358 SpecialTiles [6]TileDef
22365 ConnectTo []Content
22366 InsideTint color.NRGBA
22367 Level uint8 // Must be < 128.
22369 Translucent bool // Sunlight is scattered and becomes normal light.
22370 Transparent bool // Sunlight isn't scattered.
22383 LiquidType LiquidType
22386 Viscosity uint8 // 0-7
22392 DrawBox, ColBox, SelBox NodeBox
22394 FootstepSnd, DiggingSnd, DugSnd SoundDef
22404 }))(obj)).LegacyMounted
22405 switch n := read8(r); n {
22411 chk(fmt.Errorf("invalid bool: %d", n))
22414 var local267 []uint8
22415 var local268 uint16
22420 (local267) = make([]uint8, local268)
22422 _, err := io.ReadFull(r, (local267)[:])
22437 //mt:const uint8(6)
22439 OverlayTiles [6]TileDef
22440 //mt:const uint8(6)
22441 SpecialTiles [6]TileDef
22448 ConnectTo []Content
22449 InsideTint color.NRGBA
22450 Level uint8 // Must be < 128.
22452 Translucent bool // Sunlight is scattered and becomes normal light.
22453 Transparent bool // Sunlight isn't scattered.
22466 LiquidType LiquidType
22469 Viscosity uint8 // 0-7
22475 DrawBox, ColBox, SelBox NodeBox
22477 FootstepSnd, DiggingSnd, DugSnd SoundDef
22487 }))(obj)).DigPredict) = string(local267)
22489 p := &(*(*(struct {
22501 //mt:const uint8(6)
22503 OverlayTiles [6]TileDef
22504 //mt:const uint8(6)
22505 SpecialTiles [6]TileDef
22512 ConnectTo []Content
22513 InsideTint color.NRGBA
22514 Level uint8 // Must be < 128.
22516 Translucent bool // Sunlight is scattered and becomes normal light.
22517 Transparent bool // Sunlight isn't scattered.
22530 LiquidType LiquidType
22533 Viscosity uint8 // 0-7
22539 DrawBox, ColBox, SelBox NodeBox
22541 FootstepSnd, DiggingSnd, DugSnd SoundDef
22554 if err := pcall(func() {
22567 //mt:const uint8(6)
22569 OverlayTiles [6]TileDef
22570 //mt:const uint8(6)
22571 SpecialTiles [6]TileDef
22578 ConnectTo []Content
22579 InsideTint color.NRGBA
22580 Level uint8 // Must be < 128.
22582 Translucent bool // Sunlight is scattered and becomes normal light.
22583 Transparent bool // Sunlight isn't scattered.
22596 LiquidType LiquidType
22599 Viscosity uint8 // 0-7
22605 DrawBox, ColBox, SelBox NodeBox
22607 FootstepSnd, DiggingSnd, DugSnd SoundDef
22617 }))(obj)).AlphaUse).deserialize(r)
22622 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
22625 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22630 func (obj *PointedNode) serialize(w io.Writer) {
22631 for local269 := range (*(*(struct {
22632 Under, Above [3]int16
22635 x := ((*(*(struct {
22636 Under, Above [3]int16
22637 }))(obj)).Under)[local269]
22638 write16(w, uint16(x))
22641 for local270 := range (*(*(struct {
22642 Under, Above [3]int16
22645 x := ((*(*(struct {
22646 Under, Above [3]int16
22647 }))(obj)).Above)[local270]
22648 write16(w, uint16(x))
22653 func (obj *PointedNode) deserialize(r io.Reader) {
22654 for local271 := range (*(*(struct {
22655 Under, Above [3]int16
22658 p := &((*(*(struct {
22659 Under, Above [3]int16
22660 }))(obj)).Under)[local271]
22661 *p = int16(read16(r))
22664 for local272 := range (*(*(struct {
22665 Under, Above [3]int16
22668 p := &((*(*(struct {
22669 Under, Above [3]int16
22670 }))(obj)).Above)[local272]
22671 *p = int16(read16(r))
22676 func (obj *PointedAO) serialize(w io.Writer) {
22677 if err := pcall(func() {
22680 }))(obj)).ID).serialize(w)
22685 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22689 func (obj *PointedAO) deserialize(r io.Reader) {
22690 if err := pcall(func() {
22693 }))(obj)).ID).deserialize(r)
22698 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22702 func (obj *CompressionModes) serialize(w io.Writer) {
22704 x := *(*(uint16))(obj)
22705 write16(w, uint16(x))
22709 func (obj *CompressionModes) deserialize(r io.Reader) {
22711 p := &*(*(uint16))(obj)
22716 func (obj *PlayerPos) serialize(w io.Writer) {
22717 for local273 := range (*(*(struct {
22718 Pos100, Vel100 [3]int32
22719 Pitch100, Yaw100 int32
22722 WantedRange uint8 // in MapBlks.
22725 x := ((*(*(struct {
22726 Pos100, Vel100 [3]int32
22727 Pitch100, Yaw100 int32
22730 WantedRange uint8 // in MapBlks.
22731 }))(obj)).Pos100)[local273]
22732 write32(w, uint32(x))
22735 for local274 := range (*(*(struct {
22736 Pos100, Vel100 [3]int32
22737 Pitch100, Yaw100 int32
22740 WantedRange uint8 // in MapBlks.
22743 x := ((*(*(struct {
22744 Pos100, Vel100 [3]int32
22745 Pitch100, Yaw100 int32
22748 WantedRange uint8 // in MapBlks.
22749 }))(obj)).Vel100)[local274]
22750 write32(w, uint32(x))
22755 Pos100, Vel100 [3]int32
22756 Pitch100, Yaw100 int32
22759 WantedRange uint8 // in MapBlks.
22761 write32(w, uint32(x))
22765 Pos100, Vel100 [3]int32
22766 Pitch100, Yaw100 int32
22769 WantedRange uint8 // in MapBlks.
22771 write32(w, uint32(x))
22773 if err := pcall(func() {
22775 Pos100, Vel100 [3]int32
22776 Pitch100, Yaw100 int32
22779 WantedRange uint8 // in MapBlks.
22780 }))(obj)).Keys).serialize(w)
22785 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22789 Pos100, Vel100 [3]int32
22790 Pitch100, Yaw100 int32
22793 WantedRange uint8 // in MapBlks.
22795 write8(w, uint8(x))
22799 Pos100, Vel100 [3]int32
22800 Pitch100, Yaw100 int32
22803 WantedRange uint8 // in MapBlks.
22804 }))(obj)).WantedRange
22805 write8(w, uint8(x))
22809 func (obj *PlayerPos) deserialize(r io.Reader) {
22810 for local275 := range (*(*(struct {
22811 Pos100, Vel100 [3]int32
22812 Pitch100, Yaw100 int32
22815 WantedRange uint8 // in MapBlks.
22818 p := &((*(*(struct {
22819 Pos100, Vel100 [3]int32
22820 Pitch100, Yaw100 int32
22823 WantedRange uint8 // in MapBlks.
22824 }))(obj)).Pos100)[local275]
22825 *p = int32(read32(r))
22828 for local276 := range (*(*(struct {
22829 Pos100, Vel100 [3]int32
22830 Pitch100, Yaw100 int32
22833 WantedRange uint8 // in MapBlks.
22836 p := &((*(*(struct {
22837 Pos100, Vel100 [3]int32
22838 Pitch100, Yaw100 int32
22841 WantedRange uint8 // in MapBlks.
22842 }))(obj)).Vel100)[local276]
22843 *p = int32(read32(r))
22847 p := &(*(*(struct {
22848 Pos100, Vel100 [3]int32
22849 Pitch100, Yaw100 int32
22852 WantedRange uint8 // in MapBlks.
22854 *p = int32(read32(r))
22857 p := &(*(*(struct {
22858 Pos100, Vel100 [3]int32
22859 Pitch100, Yaw100 int32
22862 WantedRange uint8 // in MapBlks.
22864 *p = int32(read32(r))
22866 if err := pcall(func() {
22868 Pos100, Vel100 [3]int32
22869 Pitch100, Yaw100 int32
22872 WantedRange uint8 // in MapBlks.
22873 }))(obj)).Keys).deserialize(r)
22878 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22881 p := &(*(*(struct {
22882 Pos100, Vel100 [3]int32
22883 Pitch100, Yaw100 int32
22886 WantedRange uint8 // in MapBlks.
22891 p := &(*(*(struct {
22892 Pos100, Vel100 [3]int32
22893 Pitch100, Yaw100 int32
22896 WantedRange uint8 // in MapBlks.
22897 }))(obj)).WantedRange
22902 func (obj *Interaction) serialize(w io.Writer) {
22904 x := *(*(uint8))(obj)
22905 write8(w, uint8(x))
22909 func (obj *Interaction) deserialize(r io.Reader) {
22911 p := &*(*(uint8))(obj)
22916 func (obj *SoundID) serialize(w io.Writer) {
22918 x := *(*(int32))(obj)
22919 write32(w, uint32(x))
22923 func (obj *SoundID) deserialize(r io.Reader) {
22925 p := &*(*(int32))(obj)
22926 *p = int32(read32(r))
22930 func (obj *Field) serialize(w io.Writer) {
22931 if len(([]byte((*(*(struct {
22936 }))(obj)).Name))) > math.MaxUint16 {
22940 x := uint16(len(([]byte((*(*(struct {
22946 write16(w, uint16(x))
22949 _, err := w.Write(([]byte((*(*(struct {
22954 }))(obj)).Name))[:])
22957 if len(([]byte((*(*(struct {
22962 }))(obj)).Value))) > math.MaxUint32 {
22966 x := uint32(len(([]byte((*(*(struct {
22971 }))(obj)).Value))))
22972 write32(w, uint32(x))
22975 _, err := w.Write(([]byte((*(*(struct {
22980 }))(obj)).Value))[:])
22985 func (obj *Field) deserialize(r io.Reader) {
22986 var local277 []uint8
22987 var local278 uint16
22992 (local277) = make([]uint8, local278)
22994 _, err := io.ReadFull(r, (local277)[:])
23002 }))(obj)).Name) = string(local277)
23003 var local279 []uint8
23004 var local280 uint32
23009 (local279) = make([]uint8, local280)
23011 _, err := io.ReadFull(r, (local279)[:])
23019 }))(obj)).Value) = string(local279)
23022 func (obj *AuthMethods) serialize(w io.Writer) {
23024 x := *(*(uint32))(obj)
23025 write32(w, uint32(x))
23029 func (obj *AuthMethods) deserialize(r io.Reader) {
23031 p := &*(*(uint32))(obj)
23036 func (obj *Pos) serialize(w io.Writer) {
23037 if err := pcall(func() {
23038 (*(*(Vec))(obj)).serialize(w)
23043 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
23047 func (obj *Pos) deserialize(r io.Reader) {
23048 if err := pcall(func() {
23049 (*(*(Vec))(obj)).deserialize(r)
23054 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
23058 func (obj *KickReason) serialize(w io.Writer) {
23060 x := *(*(uint8))(obj)
23061 write8(w, uint8(x))
23065 func (obj *KickReason) deserialize(r io.Reader) {
23067 p := &*(*(uint8))(obj)
23072 func (obj *MapBlk) serialize(w io.Writer) {
23073 if err := pcall(func() {
23076 LitFrom LitFromBlks
23079 Param0 [4096]Content
23083 NodeMetas map[uint16]*NodeMeta
23084 }))(obj)).Flags).serialize(w)
23089 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
23091 if err := pcall(func() {
23094 LitFrom LitFromBlks
23097 Param0 [4096]Content
23101 NodeMetas map[uint16]*NodeMeta
23102 }))(obj)).LitFrom).serialize(w)
23107 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
23110 local281 := uint8(2) // Size of param0 in bytes.
23113 write8(w, uint8(x))
23117 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23120 write8(w, uint8(x))
23124 w, err := zstd.NewWriter(w)
23126 for local283 := range (*(*(struct {
23128 LitFrom LitFromBlks
23131 Param0 [4096]Content
23135 NodeMetas map[uint16]*NodeMeta
23137 if err := pcall(func() {
23140 LitFrom LitFromBlks
23143 Param0 [4096]Content
23147 NodeMetas map[uint16]*NodeMeta
23148 }))(obj)).Param0)[local283]).serialize(w)
23153 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23157 _, err := w.Write(((*(*(struct {
23159 LitFrom LitFromBlks
23162 Param0 [4096]Content
23166 NodeMetas map[uint16]*NodeMeta
23167 }))(obj)).Param1)[:])
23171 _, err := w.Write(((*(*(struct {
23173 LitFrom LitFromBlks
23176 Param0 [4096]Content
23180 NodeMetas map[uint16]*NodeMeta
23181 }))(obj)).Param2)[:])
23189 LitFrom LitFromBlks
23192 Param0 [4096]Content
23196 NodeMetas map[uint16]*NodeMeta
23197 }))(obj)).NodeMetas
23199 w := zlib.NewWriter(w)
23204 // len(map[uint16]...) always < math.MaxUint16
23205 write16(w, uint16(len(x)))
23206 keys := make([]uint16, 0, len(x))
23207 for key := range x {
23208 keys = append(keys, key)
23210 sort.Slice(keys, func(i, j int) bool {
23211 i2pos := func(i int) [3]int16 {
23212 return Blkpos2Pos([3]int16{}, keys[i])
23214 p, q := i2pos(i), i2pos(j)
23225 for _, key := range keys {
23227 chk(serialize(w, x[key]))
23234 local284 := uint8(2) // version
23237 write8(w, uint8(x))
23242 func (obj *MapBlk) deserialize(r io.Reader) {
23243 if err := pcall(func() {
23246 LitFrom LitFromBlks
23249 Param0 [4096]Content
23253 NodeMetas map[uint16]*NodeMeta
23254 }))(obj)).Flags).deserialize(r)
23259 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
23261 if err := pcall(func() {
23264 LitFrom LitFromBlks
23267 Param0 [4096]Content
23271 NodeMetas map[uint16]*NodeMeta
23272 }))(obj)).LitFrom).deserialize(r)
23277 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
23281 local286 := uint8(2) // Size of param0 in bytes.
23286 if local285 != local286 {
23287 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local285))
23292 local288 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23297 if local287 != local288 {
23298 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local287))
23302 r, err := zstd.NewReader(byteReader{r})
23304 for local289 := range (*(*(struct {
23306 LitFrom LitFromBlks
23309 Param0 [4096]Content
23313 NodeMetas map[uint16]*NodeMeta
23315 if err := pcall(func() {
23318 LitFrom LitFromBlks
23321 Param0 [4096]Content
23325 NodeMetas map[uint16]*NodeMeta
23326 }))(obj)).Param0)[local289]).deserialize(r)
23331 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23335 _, err := io.ReadFull(r, ((*(*(struct {
23337 LitFrom LitFromBlks
23340 Param0 [4096]Content
23344 NodeMetas map[uint16]*NodeMeta
23345 }))(obj)).Param1)[:])
23349 _, err := io.ReadFull(r, ((*(*(struct {
23351 LitFrom LitFromBlks
23354 Param0 [4096]Content
23358 NodeMetas map[uint16]*NodeMeta
23359 }))(obj)).Param2)[:])
23365 p := &(*(*(struct {
23367 LitFrom LitFromBlks
23370 Param0 [4096]Content
23374 NodeMetas map[uint16]*NodeMeta
23375 }))(obj)).NodeMetas
23377 r, err := zlib.NewReader(byteReader{r})
23379 switch ver := read8(r); ver {
23384 *p = make(map[uint16]*NodeMeta, n)
23387 nm := new(NodeMeta)
23388 chk(deserialize(r, nm))
23392 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
23399 local291 := uint8(2) // version
23404 if local290 != local291 {
23405 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local290))
23410 func (obj *Node) serialize(w io.Writer) {
23411 if err := pcall(func() {
23414 Param1, Param2 uint8
23415 }))(obj)).Param0).serialize(w)
23420 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23425 Param1, Param2 uint8
23427 write8(w, uint8(x))
23432 Param1, Param2 uint8
23434 write8(w, uint8(x))
23438 func (obj *Node) deserialize(r io.Reader) {
23439 if err := pcall(func() {
23442 Param1, Param2 uint8
23443 }))(obj)).Param0).deserialize(r)
23448 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23451 p := &(*(*(struct {
23453 Param1, Param2 uint8
23458 p := &(*(*(struct {
23460 Param1, Param2 uint8
23466 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23468 x := *(*(uint64))(obj)
23469 write64(w, uint64(x))
23473 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23475 p := &*(*(uint64))(obj)
23480 func (obj *Vec) serialize(w io.Writer) {
23481 for local292 := range *(*([3]float32))(obj) {
23483 x := (*(*([3]float32))(obj))[local292]
23484 write32(w, math.Float32bits(x))
23489 func (obj *Vec) deserialize(r io.Reader) {
23490 for local293 := range *(*([3]float32))(obj) {
23492 p := &(*(*([3]float32))(obj))[local293]
23493 *p = math.Float32frombits(read32(r))
23498 func (obj *ChatMsgType) serialize(w io.Writer) {
23500 x := *(*(uint8))(obj)
23501 write8(w, uint8(x))
23505 func (obj *ChatMsgType) deserialize(r io.Reader) {
23507 p := &*(*(uint8))(obj)
23512 func (obj *AOID) serialize(w io.Writer) {
23514 x := *(*(uint16))(obj)
23515 write16(w, uint16(x))
23519 func (obj *AOID) deserialize(r io.Reader) {
23521 p := &*(*(uint16))(obj)
23526 func (obj *AOAdd) serialize(w io.Writer) {
23527 if err := pcall(func() {
23530 //mt:const genericCAO
23532 InitData AOInitData
23533 }))(obj)).ID).serialize(w)
23538 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23541 local294 := genericCAO
23542 if err := pcall(func() {
23543 (local294).serialize(w)
23548 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23553 w := new(bytes.Buffer)
23554 if err := pcall(func() {
23557 //mt:const genericCAO
23559 InitData AOInitData
23560 }))(obj)).InitData).serialize(w)
23565 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23570 if len((buf.Bytes())) > math.MaxUint32 {
23574 x := uint32(len((buf.Bytes())))
23575 write32(w, uint32(x))
23578 _, err := w.Write((buf.Bytes())[:])
23585 func (obj *AOAdd) deserialize(r io.Reader) {
23586 if err := pcall(func() {
23589 //mt:const genericCAO
23591 InitData AOInitData
23592 }))(obj)).ID).deserialize(r)
23597 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23600 var local295 aoType
23601 local296 := genericCAO
23602 if err := pcall(func() {
23603 (local295).deserialize(r)
23608 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23610 if local295 != local296 {
23611 chk(fmt.Errorf("const %v: %v", "genericCAO", local295))
23620 r := &io.LimitedReader{R: r, N: int64(n)}
23621 if err := pcall(func() {
23624 //mt:const genericCAO
23626 InitData AOInitData
23627 }))(obj)).InitData).deserialize(r)
23632 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23635 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23640 func (obj *IDAOMsg) serialize(w io.Writer) {
23641 if err := pcall(func() {
23646 }))(obj)).ID).serialize(w)
23651 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23655 w := new(bytes.Buffer)
23667 if len((buf.Bytes())) > math.MaxUint16 {
23671 x := uint16(len((buf.Bytes())))
23672 write16(w, uint16(x))
23675 _, err := w.Write((buf.Bytes())[:])
23682 func (obj *IDAOMsg) deserialize(r io.Reader) {
23683 if err := pcall(func() {
23688 }))(obj)).ID).deserialize(r)
23693 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23701 r := &io.LimitedReader{R: r, N: int64(n)}
23703 p := &(*(*(struct {
23710 *p, err = readAOMsg(r)
23715 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23720 func (obj *ItemDef) serialize(w io.Writer) {
23723 w := new(bytes.Buffer)
23725 local297 := uint8(6)
23728 write8(w, uint8(x))
23731 if err := pcall(func() {
23737 InvImg, WieldImg Texture
23738 WieldScale [3]float32
23743 CanPointLiquids bool
23749 PlacePredict string
23751 PlaceSnd, PlaceFailSnd SoundDef
23755 // Set index in Palette with "palette_index" item meta field,
23756 // this overrides Color.
23760 // Texture overlays.
23761 InvOverlay, WieldOverlay Texture
23764 }))(obj)).Type).serialize(w)
23769 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
23771 if len(([]byte((*(*(struct {
23776 InvImg, WieldImg Texture
23777 WieldScale [3]float32
23782 CanPointLiquids bool
23788 PlacePredict string
23790 PlaceSnd, PlaceFailSnd SoundDef
23794 // Set index in Palette with "palette_index" item meta field,
23795 // this overrides Color.
23799 // Texture overlays.
23800 InvOverlay, WieldOverlay Texture
23803 }))(obj)).Name))) > math.MaxUint16 {
23807 x := uint16(len(([]byte((*(*(struct {
23812 InvImg, WieldImg Texture
23813 WieldScale [3]float32
23818 CanPointLiquids bool
23824 PlacePredict string
23826 PlaceSnd, PlaceFailSnd SoundDef
23830 // Set index in Palette with "palette_index" item meta field,
23831 // this overrides Color.
23835 // Texture overlays.
23836 InvOverlay, WieldOverlay Texture
23840 write16(w, uint16(x))
23843 _, err := w.Write(([]byte((*(*(struct {
23848 InvImg, WieldImg Texture
23849 WieldScale [3]float32
23854 CanPointLiquids bool
23860 PlacePredict string
23862 PlaceSnd, PlaceFailSnd SoundDef
23866 // Set index in Palette with "palette_index" item meta field,
23867 // this overrides Color.
23871 // Texture overlays.
23872 InvOverlay, WieldOverlay Texture
23875 }))(obj)).Name))[:])
23878 if len(([]byte((*(*(struct {
23883 InvImg, WieldImg Texture
23884 WieldScale [3]float32
23889 CanPointLiquids bool
23895 PlacePredict string
23897 PlaceSnd, PlaceFailSnd SoundDef
23901 // Set index in Palette with "palette_index" item meta field,
23902 // this overrides Color.
23906 // Texture overlays.
23907 InvOverlay, WieldOverlay Texture
23910 }))(obj)).Desc))) > math.MaxUint16 {
23914 x := uint16(len(([]byte((*(*(struct {
23919 InvImg, WieldImg Texture
23920 WieldScale [3]float32
23925 CanPointLiquids bool
23931 PlacePredict string
23933 PlaceSnd, PlaceFailSnd SoundDef
23937 // Set index in Palette with "palette_index" item meta field,
23938 // this overrides Color.
23942 // Texture overlays.
23943 InvOverlay, WieldOverlay Texture
23947 write16(w, uint16(x))
23950 _, err := w.Write(([]byte((*(*(struct {
23955 InvImg, WieldImg Texture
23956 WieldScale [3]float32
23961 CanPointLiquids bool
23967 PlacePredict string
23969 PlaceSnd, PlaceFailSnd SoundDef
23973 // Set index in Palette with "palette_index" item meta field,
23974 // this overrides Color.
23978 // Texture overlays.
23979 InvOverlay, WieldOverlay Texture
23982 }))(obj)).Desc))[:])
23985 if err := pcall(func() {
23991 InvImg, WieldImg Texture
23992 WieldScale [3]float32
23997 CanPointLiquids bool
24003 PlacePredict string
24005 PlaceSnd, PlaceFailSnd SoundDef
24009 // Set index in Palette with "palette_index" item meta field,
24010 // this overrides Color.
24014 // Texture overlays.
24015 InvOverlay, WieldOverlay Texture
24018 }))(obj)).InvImg).serialize(w)
24023 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24025 if err := pcall(func() {
24031 InvImg, WieldImg Texture
24032 WieldScale [3]float32
24037 CanPointLiquids bool
24043 PlacePredict string
24045 PlaceSnd, PlaceFailSnd SoundDef
24049 // Set index in Palette with "palette_index" item meta field,
24050 // this overrides Color.
24054 // Texture overlays.
24055 InvOverlay, WieldOverlay Texture
24058 }))(obj)).WieldImg).serialize(w)
24063 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24065 for local298 := range (*(*(struct {
24070 InvImg, WieldImg Texture
24071 WieldScale [3]float32
24076 CanPointLiquids bool
24082 PlacePredict string
24084 PlaceSnd, PlaceFailSnd SoundDef
24088 // Set index in Palette with "palette_index" item meta field,
24089 // this overrides Color.
24093 // Texture overlays.
24094 InvOverlay, WieldOverlay Texture
24097 }))(obj)).WieldScale {
24099 x := ((*(*(struct {
24104 InvImg, WieldImg Texture
24105 WieldScale [3]float32
24110 CanPointLiquids bool
24116 PlacePredict string
24118 PlaceSnd, PlaceFailSnd SoundDef
24122 // Set index in Palette with "palette_index" item meta field,
24123 // this overrides Color.
24127 // Texture overlays.
24128 InvOverlay, WieldOverlay Texture
24131 }))(obj)).WieldScale)[local298]
24132 write32(w, math.Float32bits(x))
24141 InvImg, WieldImg Texture
24142 WieldScale [3]float32
24147 CanPointLiquids bool
24153 PlacePredict string
24155 PlaceSnd, PlaceFailSnd SoundDef
24159 // Set index in Palette with "palette_index" item meta field,
24160 // this overrides Color.
24164 // Texture overlays.
24165 InvOverlay, WieldOverlay Texture
24169 write16(w, uint16(x))
24177 InvImg, WieldImg Texture
24178 WieldScale [3]float32
24183 CanPointLiquids bool
24189 PlacePredict string
24191 PlaceSnd, PlaceFailSnd SoundDef
24195 // Set index in Palette with "palette_index" item meta field,
24196 // this overrides Color.
24200 // Texture overlays.
24201 InvOverlay, WieldOverlay Texture
24217 InvImg, WieldImg Texture
24218 WieldScale [3]float32
24223 CanPointLiquids bool
24229 PlacePredict string
24231 PlaceSnd, PlaceFailSnd SoundDef
24235 // Set index in Palette with "palette_index" item meta field,
24236 // this overrides Color.
24240 // Texture overlays.
24241 InvOverlay, WieldOverlay Texture
24244 }))(obj)).CanPointLiquids
24251 if err := pcall(func() {
24257 InvImg, WieldImg Texture
24258 WieldScale [3]float32
24263 CanPointLiquids bool
24269 PlacePredict string
24271 PlaceSnd, PlaceFailSnd SoundDef
24275 // Set index in Palette with "palette_index" item meta field,
24276 // this overrides Color.
24280 // Texture overlays.
24281 InvOverlay, WieldOverlay Texture
24284 }))(obj)).ToolCaps).serialize(w)
24289 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
24291 if len(((*(*(struct {
24296 InvImg, WieldImg Texture
24297 WieldScale [3]float32
24302 CanPointLiquids bool
24308 PlacePredict string
24310 PlaceSnd, PlaceFailSnd SoundDef
24314 // Set index in Palette with "palette_index" item meta field,
24315 // this overrides Color.
24319 // Texture overlays.
24320 InvOverlay, WieldOverlay Texture
24323 }))(obj)).Groups)) > math.MaxUint16 {
24327 x := uint16(len(((*(*(struct {
24332 InvImg, WieldImg Texture
24333 WieldScale [3]float32
24338 CanPointLiquids bool
24344 PlacePredict string
24346 PlaceSnd, PlaceFailSnd SoundDef
24350 // Set index in Palette with "palette_index" item meta field,
24351 // this overrides Color.
24355 // Texture overlays.
24356 InvOverlay, WieldOverlay Texture
24359 }))(obj)).Groups)))
24360 write16(w, uint16(x))
24362 for local299 := range (*(*(struct {
24367 InvImg, WieldImg Texture
24368 WieldScale [3]float32
24373 CanPointLiquids bool
24379 PlacePredict string
24381 PlaceSnd, PlaceFailSnd SoundDef
24385 // Set index in Palette with "palette_index" item meta field,
24386 // this overrides Color.
24390 // Texture overlays.
24391 InvOverlay, WieldOverlay Texture
24395 if err := pcall(func() {
24401 InvImg, WieldImg Texture
24402 WieldScale [3]float32
24407 CanPointLiquids bool
24413 PlacePredict string
24415 PlaceSnd, PlaceFailSnd SoundDef
24419 // Set index in Palette with "palette_index" item meta field,
24420 // this overrides Color.
24424 // Texture overlays.
24425 InvOverlay, WieldOverlay Texture
24428 }))(obj)).Groups)[local299]).serialize(w)
24433 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
24436 if len(([]byte((*(*(struct {
24441 InvImg, WieldImg Texture
24442 WieldScale [3]float32
24447 CanPointLiquids bool
24453 PlacePredict string
24455 PlaceSnd, PlaceFailSnd SoundDef
24459 // Set index in Palette with "palette_index" item meta field,
24460 // this overrides Color.
24464 // Texture overlays.
24465 InvOverlay, WieldOverlay Texture
24468 }))(obj)).PlacePredict))) > math.MaxUint16 {
24472 x := uint16(len(([]byte((*(*(struct {
24477 InvImg, WieldImg Texture
24478 WieldScale [3]float32
24483 CanPointLiquids bool
24489 PlacePredict string
24491 PlaceSnd, PlaceFailSnd SoundDef
24495 // Set index in Palette with "palette_index" item meta field,
24496 // this overrides Color.
24500 // Texture overlays.
24501 InvOverlay, WieldOverlay Texture
24504 }))(obj)).PlacePredict))))
24505 write16(w, uint16(x))
24508 _, err := w.Write(([]byte((*(*(struct {
24513 InvImg, WieldImg Texture
24514 WieldScale [3]float32
24519 CanPointLiquids bool
24525 PlacePredict string
24527 PlaceSnd, PlaceFailSnd SoundDef
24531 // Set index in Palette with "palette_index" item meta field,
24532 // this overrides Color.
24536 // Texture overlays.
24537 InvOverlay, WieldOverlay Texture
24540 }))(obj)).PlacePredict))[:])
24543 if err := pcall(func() {
24549 InvImg, WieldImg Texture
24550 WieldScale [3]float32
24555 CanPointLiquids bool
24561 PlacePredict string
24563 PlaceSnd, PlaceFailSnd SoundDef
24567 // Set index in Palette with "palette_index" item meta field,
24568 // this overrides Color.
24572 // Texture overlays.
24573 InvOverlay, WieldOverlay Texture
24576 }))(obj)).PlaceSnd).serialize(w)
24581 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24583 if err := pcall(func() {
24589 InvImg, WieldImg Texture
24590 WieldScale [3]float32
24595 CanPointLiquids bool
24601 PlacePredict string
24603 PlaceSnd, PlaceFailSnd SoundDef
24607 // Set index in Palette with "palette_index" item meta field,
24608 // this overrides Color.
24612 // Texture overlays.
24613 InvOverlay, WieldOverlay Texture
24616 }))(obj)).PlaceFailSnd).serialize(w)
24621 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24629 InvImg, WieldImg Texture
24630 WieldScale [3]float32
24635 CanPointLiquids bool
24641 PlacePredict string
24643 PlaceSnd, PlaceFailSnd SoundDef
24647 // Set index in Palette with "palette_index" item meta field,
24648 // this overrides Color.
24652 // Texture overlays.
24653 InvOverlay, WieldOverlay Texture
24656 }))(obj)).PointRange
24657 write32(w, math.Float32bits(x))
24659 if err := pcall(func() {
24665 InvImg, WieldImg Texture
24666 WieldScale [3]float32
24671 CanPointLiquids bool
24677 PlacePredict string
24679 PlaceSnd, PlaceFailSnd SoundDef
24683 // Set index in Palette with "palette_index" item meta field,
24684 // this overrides Color.
24688 // Texture overlays.
24689 InvOverlay, WieldOverlay Texture
24692 }))(obj)).Palette).serialize(w)
24697 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24705 InvImg, WieldImg Texture
24706 WieldScale [3]float32
24711 CanPointLiquids bool
24717 PlacePredict string
24719 PlaceSnd, PlaceFailSnd SoundDef
24723 // Set index in Palette with "palette_index" item meta field,
24724 // this overrides Color.
24728 // Texture overlays.
24729 InvOverlay, WieldOverlay Texture
24733 w.Write([]byte{x.A, x.R, x.G, x.B})
24735 if err := pcall(func() {
24741 InvImg, WieldImg Texture
24742 WieldScale [3]float32
24747 CanPointLiquids bool
24753 PlacePredict string
24755 PlaceSnd, PlaceFailSnd SoundDef
24759 // Set index in Palette with "palette_index" item meta field,
24760 // this overrides Color.
24764 // Texture overlays.
24765 InvOverlay, WieldOverlay Texture
24768 }))(obj)).InvOverlay).serialize(w)
24773 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24775 if err := pcall(func() {
24781 InvImg, WieldImg Texture
24782 WieldScale [3]float32
24787 CanPointLiquids bool
24793 PlacePredict string
24795 PlaceSnd, PlaceFailSnd SoundDef
24799 // Set index in Palette with "palette_index" item meta field,
24800 // this overrides Color.
24804 // Texture overlays.
24805 InvOverlay, WieldOverlay Texture
24808 }))(obj)).WieldOverlay).serialize(w)
24813 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24815 if len(([]byte((*(*(struct {
24820 InvImg, WieldImg Texture
24821 WieldScale [3]float32
24826 CanPointLiquids bool
24832 PlacePredict string
24834 PlaceSnd, PlaceFailSnd SoundDef
24838 // Set index in Palette with "palette_index" item meta field,
24839 // this overrides Color.
24843 // Texture overlays.
24844 InvOverlay, WieldOverlay Texture
24847 }))(obj)).ShortDesc))) > math.MaxUint16 {
24851 x := uint16(len(([]byte((*(*(struct {
24856 InvImg, WieldImg Texture
24857 WieldScale [3]float32
24862 CanPointLiquids bool
24868 PlacePredict string
24870 PlaceSnd, PlaceFailSnd SoundDef
24874 // Set index in Palette with "palette_index" item meta field,
24875 // this overrides Color.
24879 // Texture overlays.
24880 InvOverlay, WieldOverlay Texture
24883 }))(obj)).ShortDesc))))
24884 write16(w, uint16(x))
24887 _, err := w.Write(([]byte((*(*(struct {
24892 InvImg, WieldImg Texture
24893 WieldScale [3]float32
24898 CanPointLiquids bool
24904 PlacePredict string
24906 PlaceSnd, PlaceFailSnd SoundDef
24910 // Set index in Palette with "palette_index" item meta field,
24911 // this overrides Color.
24915 // Texture overlays.
24916 InvOverlay, WieldOverlay Texture
24919 }))(obj)).ShortDesc))[:])
24925 if len((buf.Bytes())) > math.MaxUint16 {
24929 x := uint16(len((buf.Bytes())))
24930 write16(w, uint16(x))
24933 _, err := w.Write((buf.Bytes())[:])
24940 func (obj *ItemDef) deserialize(r io.Reader) {
24947 r := &io.LimitedReader{R: r, N: int64(n)}
24950 local301 := uint8(6)
24955 if local300 != local301 {
24956 chk(fmt.Errorf("const %v: %v", "uint8(6)", local300))
24959 if err := pcall(func() {
24965 InvImg, WieldImg Texture
24966 WieldScale [3]float32
24971 CanPointLiquids bool
24977 PlacePredict string
24979 PlaceSnd, PlaceFailSnd SoundDef
24983 // Set index in Palette with "palette_index" item meta field,
24984 // this overrides Color.
24988 // Texture overlays.
24989 InvOverlay, WieldOverlay Texture
24992 }))(obj)).Type).deserialize(r)
24997 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
24999 var local302 []uint8
25000 var local303 uint16
25005 (local302) = make([]uint8, local303)
25007 _, err := io.ReadFull(r, (local302)[:])
25015 InvImg, WieldImg Texture
25016 WieldScale [3]float32
25021 CanPointLiquids bool
25027 PlacePredict string
25029 PlaceSnd, PlaceFailSnd SoundDef
25033 // Set index in Palette with "palette_index" item meta field,
25034 // this overrides Color.
25038 // Texture overlays.
25039 InvOverlay, WieldOverlay Texture
25042 }))(obj)).Name) = string(local302)
25043 var local304 []uint8
25044 var local305 uint16
25049 (local304) = make([]uint8, local305)
25051 _, err := io.ReadFull(r, (local304)[:])
25059 InvImg, WieldImg Texture
25060 WieldScale [3]float32
25065 CanPointLiquids bool
25071 PlacePredict string
25073 PlaceSnd, PlaceFailSnd SoundDef
25077 // Set index in Palette with "palette_index" item meta field,
25078 // this overrides Color.
25082 // Texture overlays.
25083 InvOverlay, WieldOverlay Texture
25086 }))(obj)).Desc) = string(local304)
25087 if err := pcall(func() {
25093 InvImg, WieldImg Texture
25094 WieldScale [3]float32
25099 CanPointLiquids bool
25105 PlacePredict string
25107 PlaceSnd, PlaceFailSnd SoundDef
25111 // Set index in Palette with "palette_index" item meta field,
25112 // this overrides Color.
25116 // Texture overlays.
25117 InvOverlay, WieldOverlay Texture
25120 }))(obj)).InvImg).deserialize(r)
25125 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25127 if err := pcall(func() {
25133 InvImg, WieldImg Texture
25134 WieldScale [3]float32
25139 CanPointLiquids bool
25145 PlacePredict string
25147 PlaceSnd, PlaceFailSnd SoundDef
25151 // Set index in Palette with "palette_index" item meta field,
25152 // this overrides Color.
25156 // Texture overlays.
25157 InvOverlay, WieldOverlay Texture
25160 }))(obj)).WieldImg).deserialize(r)
25165 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25167 for local306 := range (*(*(struct {
25172 InvImg, WieldImg Texture
25173 WieldScale [3]float32
25178 CanPointLiquids bool
25184 PlacePredict string
25186 PlaceSnd, PlaceFailSnd SoundDef
25190 // Set index in Palette with "palette_index" item meta field,
25191 // this overrides Color.
25195 // Texture overlays.
25196 InvOverlay, WieldOverlay Texture
25199 }))(obj)).WieldScale {
25201 p := &((*(*(struct {
25206 InvImg, WieldImg Texture
25207 WieldScale [3]float32
25212 CanPointLiquids bool
25218 PlacePredict string
25220 PlaceSnd, PlaceFailSnd SoundDef
25224 // Set index in Palette with "palette_index" item meta field,
25225 // this overrides Color.
25229 // Texture overlays.
25230 InvOverlay, WieldOverlay Texture
25233 }))(obj)).WieldScale)[local306]
25234 *p = math.Float32frombits(read32(r))
25238 p := &(*(*(struct {
25243 InvImg, WieldImg Texture
25244 WieldScale [3]float32
25249 CanPointLiquids bool
25255 PlacePredict string
25257 PlaceSnd, PlaceFailSnd SoundDef
25261 // Set index in Palette with "palette_index" item meta field,
25262 // this overrides Color.
25266 // Texture overlays.
25267 InvOverlay, WieldOverlay Texture
25274 p := &(*(*(struct {
25279 InvImg, WieldImg Texture
25280 WieldScale [3]float32
25285 CanPointLiquids bool
25291 PlacePredict string
25293 PlaceSnd, PlaceFailSnd SoundDef
25297 // Set index in Palette with "palette_index" item meta field,
25298 // this overrides Color.
25302 // Texture overlays.
25303 InvOverlay, WieldOverlay Texture
25307 switch n := read8(r); n {
25313 chk(fmt.Errorf("invalid bool: %d", n))
25317 p := &(*(*(struct {
25322 InvImg, WieldImg Texture
25323 WieldScale [3]float32
25328 CanPointLiquids bool
25334 PlacePredict string
25336 PlaceSnd, PlaceFailSnd SoundDef
25340 // Set index in Palette with "palette_index" item meta field,
25341 // this overrides Color.
25345 // Texture overlays.
25346 InvOverlay, WieldOverlay Texture
25349 }))(obj)).CanPointLiquids
25350 switch n := read8(r); n {
25356 chk(fmt.Errorf("invalid bool: %d", n))
25359 if err := pcall(func() {
25365 InvImg, WieldImg Texture
25366 WieldScale [3]float32
25371 CanPointLiquids bool
25377 PlacePredict string
25379 PlaceSnd, PlaceFailSnd SoundDef
25383 // Set index in Palette with "palette_index" item meta field,
25384 // this overrides Color.
25388 // Texture overlays.
25389 InvOverlay, WieldOverlay Texture
25392 }))(obj)).ToolCaps).deserialize(r)
25397 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
25399 var local307 uint16
25409 InvImg, WieldImg Texture
25410 WieldScale [3]float32
25415 CanPointLiquids bool
25421 PlacePredict string
25423 PlaceSnd, PlaceFailSnd SoundDef
25427 // Set index in Palette with "palette_index" item meta field,
25428 // this overrides Color.
25432 // Texture overlays.
25433 InvOverlay, WieldOverlay Texture
25436 }))(obj)).Groups) = make([]Group, local307)
25437 for local308 := range (*(*(struct {
25442 InvImg, WieldImg Texture
25443 WieldScale [3]float32
25448 CanPointLiquids bool
25454 PlacePredict string
25456 PlaceSnd, PlaceFailSnd SoundDef
25460 // Set index in Palette with "palette_index" item meta field,
25461 // this overrides Color.
25465 // Texture overlays.
25466 InvOverlay, WieldOverlay Texture
25470 if err := pcall(func() {
25476 InvImg, WieldImg Texture
25477 WieldScale [3]float32
25482 CanPointLiquids bool
25488 PlacePredict string
25490 PlaceSnd, PlaceFailSnd SoundDef
25494 // Set index in Palette with "palette_index" item meta field,
25495 // this overrides Color.
25499 // Texture overlays.
25500 InvOverlay, WieldOverlay Texture
25503 }))(obj)).Groups)[local308]).deserialize(r)
25508 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
25511 var local309 []uint8
25512 var local310 uint16
25517 (local309) = make([]uint8, local310)
25519 _, err := io.ReadFull(r, (local309)[:])
25527 InvImg, WieldImg Texture
25528 WieldScale [3]float32
25533 CanPointLiquids bool
25539 PlacePredict string
25541 PlaceSnd, PlaceFailSnd SoundDef
25545 // Set index in Palette with "palette_index" item meta field,
25546 // this overrides Color.
25550 // Texture overlays.
25551 InvOverlay, WieldOverlay Texture
25554 }))(obj)).PlacePredict) = string(local309)
25555 if err := pcall(func() {
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)).PlaceSnd).deserialize(r)
25593 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25595 if err := pcall(func() {
25601 InvImg, WieldImg Texture
25602 WieldScale [3]float32
25607 CanPointLiquids bool
25613 PlacePredict string
25615 PlaceSnd, PlaceFailSnd SoundDef
25619 // Set index in Palette with "palette_index" item meta field,
25620 // this overrides Color.
25624 // Texture overlays.
25625 InvOverlay, WieldOverlay Texture
25628 }))(obj)).PlaceFailSnd).deserialize(r)
25633 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25636 p := &(*(*(struct {
25641 InvImg, WieldImg Texture
25642 WieldScale [3]float32
25647 CanPointLiquids bool
25653 PlacePredict string
25655 PlaceSnd, PlaceFailSnd SoundDef
25659 // Set index in Palette with "palette_index" item meta field,
25660 // this overrides Color.
25664 // Texture overlays.
25665 InvOverlay, WieldOverlay Texture
25668 }))(obj)).PointRange
25669 *p = math.Float32frombits(read32(r))
25671 if err := pcall(func() {
25677 InvImg, WieldImg Texture
25678 WieldScale [3]float32
25683 CanPointLiquids bool
25689 PlacePredict string
25691 PlaceSnd, PlaceFailSnd SoundDef
25695 // Set index in Palette with "palette_index" item meta field,
25696 // this overrides Color.
25700 // Texture overlays.
25701 InvOverlay, WieldOverlay Texture
25704 }))(obj)).Palette).deserialize(r)
25709 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25712 p := &(*(*(struct {
25717 InvImg, WieldImg Texture
25718 WieldScale [3]float32
25723 CanPointLiquids bool
25729 PlacePredict string
25731 PlaceSnd, PlaceFailSnd SoundDef
25735 // Set index in Palette with "palette_index" item meta field,
25736 // this overrides Color.
25740 // Texture overlays.
25741 InvOverlay, WieldOverlay Texture
25745 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25747 if err := pcall(func() {
25753 InvImg, WieldImg Texture
25754 WieldScale [3]float32
25759 CanPointLiquids bool
25765 PlacePredict string
25767 PlaceSnd, PlaceFailSnd SoundDef
25771 // Set index in Palette with "palette_index" item meta field,
25772 // this overrides Color.
25776 // Texture overlays.
25777 InvOverlay, WieldOverlay Texture
25780 }))(obj)).InvOverlay).deserialize(r)
25785 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25787 if err := pcall(func() {
25793 InvImg, WieldImg Texture
25794 WieldScale [3]float32
25799 CanPointLiquids bool
25805 PlacePredict string
25807 PlaceSnd, PlaceFailSnd SoundDef
25811 // Set index in Palette with "palette_index" item meta field,
25812 // this overrides Color.
25816 // Texture overlays.
25817 InvOverlay, WieldOverlay Texture
25820 }))(obj)).WieldOverlay).deserialize(r)
25825 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25827 var local311 []uint8
25828 var local312 uint16
25833 (local311) = make([]uint8, local312)
25835 _, err := io.ReadFull(r, (local311)[:])
25843 InvImg, WieldImg Texture
25844 WieldScale [3]float32
25849 CanPointLiquids bool
25855 PlacePredict string
25857 PlaceSnd, PlaceFailSnd SoundDef
25861 // Set index in Palette with "palette_index" item meta field,
25862 // this overrides Color.
25866 // Texture overlays.
25867 InvOverlay, WieldOverlay Texture
25870 }))(obj)).ShortDesc) = string(local311)
25872 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25877 func (obj *SoundSrcType) serialize(w io.Writer) {
25879 x := *(*(uint8))(obj)
25880 write8(w, uint8(x))
25884 func (obj *SoundSrcType) deserialize(r io.Reader) {
25886 p := &*(*(uint8))(obj)
25891 func (obj *TileAnim) serialize(w io.Writer) {
25892 if err := pcall(func() {
25896 //mt:if %s.Type == SpriteSheetAnim
25897 AspectRatio [2]uint8
25899 //mt:if %s.Type == VerticalFrameAnim
25902 //mt:if %s.Type != NoAnim
25903 Duration float32 // in seconds
25905 }))(obj)).Type).serialize(w)
25910 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
25915 //mt:if %s.Type == SpriteSheetAnim
25916 AspectRatio [2]uint8
25918 //mt:if %s.Type == VerticalFrameAnim
25921 //mt:if %s.Type != NoAnim
25922 Duration float32 // in seconds
25924 }))(obj)).Type < maxAnim) {
25925 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25930 //mt:if %s.Type == SpriteSheetAnim
25931 AspectRatio [2]uint8
25933 //mt:if %s.Type == VerticalFrameAnim
25936 //mt:if %s.Type != NoAnim
25937 Duration float32 // in seconds
25939 }))(obj)).Type == SpriteSheetAnim {
25941 _, err := w.Write(((*(*(struct {
25944 //mt:if %s.Type == SpriteSheetAnim
25945 AspectRatio [2]uint8
25947 //mt:if %s.Type == VerticalFrameAnim
25950 //mt:if %s.Type != NoAnim
25951 Duration float32 // in seconds
25953 }))(obj)).AspectRatio)[:])
25960 //mt:if %s.Type == SpriteSheetAnim
25961 AspectRatio [2]uint8
25963 //mt:if %s.Type == VerticalFrameAnim
25966 //mt:if %s.Type != NoAnim
25967 Duration float32 // in seconds
25969 }))(obj)).Type == VerticalFrameAnim {
25970 for local313 := range (*(*(struct {
25973 //mt:if %s.Type == SpriteSheetAnim
25974 AspectRatio [2]uint8
25976 //mt:if %s.Type == VerticalFrameAnim
25979 //mt:if %s.Type != NoAnim
25980 Duration float32 // in seconds
25982 }))(obj)).NFrames {
25984 x := ((*(*(struct {
25987 //mt:if %s.Type == SpriteSheetAnim
25988 AspectRatio [2]uint8
25990 //mt:if %s.Type == VerticalFrameAnim
25993 //mt:if %s.Type != NoAnim
25994 Duration float32 // in seconds
25996 }))(obj)).NFrames)[local313]
25997 write16(w, uint16(x))
26004 //mt:if %s.Type == SpriteSheetAnim
26005 AspectRatio [2]uint8
26007 //mt:if %s.Type == VerticalFrameAnim
26010 //mt:if %s.Type != NoAnim
26011 Duration float32 // in seconds
26013 }))(obj)).Type != NoAnim {
26018 //mt:if %s.Type == SpriteSheetAnim
26019 AspectRatio [2]uint8
26021 //mt:if %s.Type == VerticalFrameAnim
26024 //mt:if %s.Type != NoAnim
26025 Duration float32 // in seconds
26028 write32(w, math.Float32bits(x))
26033 func (obj *TileAnim) deserialize(r io.Reader) {
26034 if err := pcall(func() {
26038 //mt:if %s.Type == SpriteSheetAnim
26039 AspectRatio [2]uint8
26041 //mt:if %s.Type == VerticalFrameAnim
26044 //mt:if %s.Type != NoAnim
26045 Duration float32 // in seconds
26047 }))(obj)).Type).deserialize(r)
26052 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
26057 //mt:if %s.Type == SpriteSheetAnim
26058 AspectRatio [2]uint8
26060 //mt:if %s.Type == VerticalFrameAnim
26063 //mt:if %s.Type != NoAnim
26064 Duration float32 // in seconds
26066 }))(obj)).Type < maxAnim) {
26067 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26072 //mt:if %s.Type == SpriteSheetAnim
26073 AspectRatio [2]uint8
26075 //mt:if %s.Type == VerticalFrameAnim
26078 //mt:if %s.Type != NoAnim
26079 Duration float32 // in seconds
26081 }))(obj)).Type == SpriteSheetAnim {
26083 _, err := io.ReadFull(r, ((*(*(struct {
26086 //mt:if %s.Type == SpriteSheetAnim
26087 AspectRatio [2]uint8
26089 //mt:if %s.Type == VerticalFrameAnim
26092 //mt:if %s.Type != NoAnim
26093 Duration float32 // in seconds
26095 }))(obj)).AspectRatio)[:])
26102 //mt:if %s.Type == SpriteSheetAnim
26103 AspectRatio [2]uint8
26105 //mt:if %s.Type == VerticalFrameAnim
26108 //mt:if %s.Type != NoAnim
26109 Duration float32 // in seconds
26111 }))(obj)).Type == VerticalFrameAnim {
26112 for local314 := range (*(*(struct {
26115 //mt:if %s.Type == SpriteSheetAnim
26116 AspectRatio [2]uint8
26118 //mt:if %s.Type == VerticalFrameAnim
26121 //mt:if %s.Type != NoAnim
26122 Duration float32 // in seconds
26124 }))(obj)).NFrames {
26126 p := &((*(*(struct {
26129 //mt:if %s.Type == SpriteSheetAnim
26130 AspectRatio [2]uint8
26132 //mt:if %s.Type == VerticalFrameAnim
26135 //mt:if %s.Type != NoAnim
26136 Duration float32 // in seconds
26138 }))(obj)).NFrames)[local314]
26146 //mt:if %s.Type == SpriteSheetAnim
26147 AspectRatio [2]uint8
26149 //mt:if %s.Type == VerticalFrameAnim
26152 //mt:if %s.Type != NoAnim
26153 Duration float32 // in seconds
26155 }))(obj)).Type != NoAnim {
26157 p := &(*(*(struct {
26160 //mt:if %s.Type == SpriteSheetAnim
26161 AspectRatio [2]uint8
26163 //mt:if %s.Type == VerticalFrameAnim
26166 //mt:if %s.Type != NoAnim
26167 Duration float32 // in seconds
26170 *p = math.Float32frombits(read32(r))
26175 func (obj *Content) serialize(w io.Writer) {
26177 x := *(*(uint16))(obj)
26178 write16(w, uint16(x))
26182 func (obj *Content) deserialize(r io.Reader) {
26184 p := &*(*(uint16))(obj)
26189 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
26191 x := *(*(uint32))(obj)
26192 write32(w, uint32(x))
26196 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
26198 p := &*(*(uint32))(obj)
26203 func (obj *HUDID) serialize(w io.Writer) {
26205 x := *(*(uint32))(obj)
26206 write32(w, uint32(x))
26210 func (obj *HUDID) deserialize(r io.Reader) {
26212 p := &*(*(uint32))(obj)
26217 func (obj *HUD) serialize(w io.Writer) {
26218 if err := pcall(func() {
26236 }))(obj)).Type).serialize(w)
26241 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
26243 for local315 := range (*(*(struct {
26262 x := ((*(*(struct {
26279 }))(obj)).Pos)[local315]
26280 write32(w, math.Float32bits(x))
26283 if len(([]byte((*(*(struct {
26300 }))(obj)).Name))) > math.MaxUint16 {
26304 x := uint16(len(([]byte((*(*(struct {
26322 write16(w, uint16(x))
26325 _, err := w.Write(([]byte((*(*(struct {
26342 }))(obj)).Name))[:])
26345 for local316 := range (*(*(struct {
26364 x := ((*(*(struct {
26381 }))(obj)).Scale)[local316]
26382 write32(w, math.Float32bits(x))
26385 if len(([]byte((*(*(struct {
26402 }))(obj)).Text))) > math.MaxUint16 {
26406 x := uint16(len(([]byte((*(*(struct {
26424 write16(w, uint16(x))
26427 _, err := w.Write(([]byte((*(*(struct {
26444 }))(obj)).Text))[:])
26466 write32(w, uint32(x))
26487 write32(w, uint32(x))
26508 write32(w, uint32(x))
26510 for local317 := range (*(*(struct {
26529 x := ((*(*(struct {
26546 }))(obj)).Align)[local317]
26547 write32(w, math.Float32bits(x))
26550 for local318 := range (*(*(struct {
26569 x := ((*(*(struct {
26586 }))(obj)).Offset)[local318]
26587 write32(w, math.Float32bits(x))
26590 if err := pcall(func() {
26608 }))(obj)).WorldPos).serialize(w)
26613 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
26615 for local319 := range (*(*(struct {
26634 x := ((*(*(struct {
26651 }))(obj)).Size)[local319]
26652 write32(w, uint32(x))
26674 write16(w, uint16(x))
26676 if len(([]byte((*(*(struct {
26693 }))(obj)).Text2))) > math.MaxUint16 {
26697 x := uint16(len(([]byte((*(*(struct {
26714 }))(obj)).Text2))))
26715 write16(w, uint16(x))
26718 _, err := w.Write(([]byte((*(*(struct {
26735 }))(obj)).Text2))[:])
26757 write32(w, uint32(x))
26761 func (obj *HUD) deserialize(r io.Reader) {
26762 if err := pcall(func() {
26780 }))(obj)).Type).deserialize(r)
26785 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
26787 for local320 := range (*(*(struct {
26806 p := &((*(*(struct {
26823 }))(obj)).Pos)[local320]
26824 *p = math.Float32frombits(read32(r))
26827 var local321 []uint8
26828 var local322 uint16
26833 (local321) = make([]uint8, local322)
26835 _, err := io.ReadFull(r, (local321)[:])
26855 }))(obj)).Name) = string(local321)
26856 for local323 := range (*(*(struct {
26875 p := &((*(*(struct {
26892 }))(obj)).Scale)[local323]
26893 *p = math.Float32frombits(read32(r))
26896 var local324 []uint8
26897 var local325 uint16
26902 (local324) = make([]uint8, local325)
26904 _, err := io.ReadFull(r, (local324)[:])
26924 }))(obj)).Text) = string(local324)
26926 p := &(*(*(struct {
26947 p := &(*(*(struct {
26968 p := &(*(*(struct {
26988 for local326 := range (*(*(struct {
27007 p := &((*(*(struct {
27024 }))(obj)).Align)[local326]
27025 *p = math.Float32frombits(read32(r))
27028 for local327 := range (*(*(struct {
27047 p := &((*(*(struct {
27064 }))(obj)).Offset)[local327]
27065 *p = math.Float32frombits(read32(r))
27068 if err := pcall(func() {
27086 }))(obj)).WorldPos).deserialize(r)
27091 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
27093 for local328 := range (*(*(struct {
27112 p := &((*(*(struct {
27129 }))(obj)).Size)[local328]
27130 *p = int32(read32(r))
27134 p := &(*(*(struct {
27152 *p = int16(read16(r))
27154 var local329 []uint8
27155 var local330 uint16
27160 (local329) = make([]uint8, local330)
27162 _, err := io.ReadFull(r, (local329)[:])
27182 }))(obj)).Text2) = string(local329)
27184 p := &(*(*(struct {
27206 func (obj *HUDField) serialize(w io.Writer) {
27208 x := *(*(uint8))(obj)
27209 write8(w, uint8(x))
27213 func (obj *HUDField) deserialize(r io.Reader) {
27215 p := &*(*(uint8))(obj)
27220 func (obj *HUDStyleFlags) serialize(w io.Writer) {
27222 x := *(*(uint32))(obj)
27223 write32(w, uint32(x))
27227 func (obj *HUDStyleFlags) deserialize(r io.Reader) {
27229 p := &*(*(uint32))(obj)
27234 func (obj *HUDFlags) serialize(w io.Writer) {
27236 x := *(*(uint32))(obj)
27237 write32(w, uint32(x))
27241 func (obj *HUDFlags) deserialize(r io.Reader) {
27243 p := &*(*(uint32))(obj)
27248 func (obj *HotbarParam) serialize(w io.Writer) {
27250 x := *(*(uint16))(obj)
27251 write16(w, uint16(x))
27255 func (obj *HotbarParam) deserialize(r io.Reader) {
27257 p := &*(*(uint16))(obj)
27262 func (obj *Texture) serialize(w io.Writer) {
27263 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
27267 x := uint16(len(([]byte(*(*(string))(obj)))))
27268 write16(w, uint16(x))
27271 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
27276 func (obj *Texture) deserialize(r io.Reader) {
27277 var local331 []uint8
27278 var local332 uint16
27283 (local331) = make([]uint8, local332)
27285 _, err := io.ReadFull(r, (local331)[:])
27288 (*(*(string))(obj)) = string(local331)
27291 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
27293 x := *(*(uint8))(obj)
27294 write8(w, uint8(x))
27298 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
27300 p := &*(*(uint8))(obj)
27305 func (obj *ModChanSig) serialize(w io.Writer) {
27307 x := *(*(uint8))(obj)
27308 write8(w, uint8(x))
27312 func (obj *ModChanSig) deserialize(r io.Reader) {
27314 p := &*(*(uint8))(obj)
27319 func (obj *AOProps) serialize(w io.Writer) {
27321 local333 := uint8(4)
27324 write8(w, uint8(x))
27329 MaxHP uint16 // Player only.
27330 CollideWithNodes bool
27331 Weight float32 // deprecated
27335 VisualSize [3]float32
27337 SpriteSheetSize [2]int16 // in sprites.
27338 SpritePos [2]int16 // in sprite sheet.
27340 MakeFootstepSnds bool
27341 RotateSpeed float32 // in radians per second.
27343 Colors []color.NRGBA
27344 CollideWithAOs bool
27347 FaceRotateDirOff float32 // in degrees.
27350 NametagColor color.NRGBA
27351 FaceRotateSpeed float32 // in degrees per second.
27355 MaxBreath uint16 // Player only.
27356 EyeHeight float32 // Player only.
27357 ZoomFOV float32 // in degrees. Player only.
27358 UseTextureAlpha bool
27359 DmgTextureMod Texture // suffix
27362 NametagBG color.NRGBA
27364 write16(w, uint16(x))
27368 MaxHP uint16 // Player only.
27369 CollideWithNodes bool
27370 Weight float32 // deprecated
27374 VisualSize [3]float32
27376 SpriteSheetSize [2]int16 // in sprites.
27377 SpritePos [2]int16 // in sprite sheet.
27379 MakeFootstepSnds bool
27380 RotateSpeed float32 // in radians per second.
27382 Colors []color.NRGBA
27383 CollideWithAOs bool
27386 FaceRotateDirOff float32 // in degrees.
27389 NametagColor color.NRGBA
27390 FaceRotateSpeed float32 // in degrees per second.
27394 MaxBreath uint16 // Player only.
27395 EyeHeight float32 // Player only.
27396 ZoomFOV float32 // in degrees. Player only.
27397 UseTextureAlpha bool
27398 DmgTextureMod Texture // suffix
27401 NametagBG color.NRGBA
27402 }))(obj)).CollideWithNodes
27411 MaxHP uint16 // Player only.
27412 CollideWithNodes bool
27413 Weight float32 // deprecated
27417 VisualSize [3]float32
27419 SpriteSheetSize [2]int16 // in sprites.
27420 SpritePos [2]int16 // in sprite sheet.
27422 MakeFootstepSnds bool
27423 RotateSpeed float32 // in radians per second.
27425 Colors []color.NRGBA
27426 CollideWithAOs bool
27429 FaceRotateDirOff float32 // in degrees.
27432 NametagColor color.NRGBA
27433 FaceRotateSpeed float32 // in degrees per second.
27437 MaxBreath uint16 // Player only.
27438 EyeHeight float32 // Player only.
27439 ZoomFOV float32 // in degrees. Player only.
27440 UseTextureAlpha bool
27441 DmgTextureMod Texture // suffix
27444 NametagBG color.NRGBA
27446 write32(w, math.Float32bits(x))
27448 if err := pcall(func() {
27450 MaxHP uint16 // Player only.
27451 CollideWithNodes bool
27452 Weight float32 // deprecated
27456 VisualSize [3]float32
27458 SpriteSheetSize [2]int16 // in sprites.
27459 SpritePos [2]int16 // in sprite sheet.
27461 MakeFootstepSnds bool
27462 RotateSpeed float32 // in radians per second.
27464 Colors []color.NRGBA
27465 CollideWithAOs bool
27468 FaceRotateDirOff float32 // in degrees.
27471 NametagColor color.NRGBA
27472 FaceRotateSpeed float32 // in degrees per second.
27476 MaxBreath uint16 // Player only.
27477 EyeHeight float32 // Player only.
27478 ZoomFOV float32 // in degrees. Player only.
27479 UseTextureAlpha bool
27480 DmgTextureMod Texture // suffix
27483 NametagBG color.NRGBA
27484 }))(obj)).ColBox).serialize(w)
27489 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
27491 if err := pcall(func() {
27493 MaxHP uint16 // Player only.
27494 CollideWithNodes bool
27495 Weight float32 // deprecated
27499 VisualSize [3]float32
27501 SpriteSheetSize [2]int16 // in sprites.
27502 SpritePos [2]int16 // in sprite sheet.
27504 MakeFootstepSnds bool
27505 RotateSpeed float32 // in radians per second.
27507 Colors []color.NRGBA
27508 CollideWithAOs bool
27511 FaceRotateDirOff float32 // in degrees.
27514 NametagColor color.NRGBA
27515 FaceRotateSpeed float32 // in degrees per second.
27519 MaxBreath uint16 // Player only.
27520 EyeHeight float32 // Player only.
27521 ZoomFOV float32 // in degrees. Player only.
27522 UseTextureAlpha bool
27523 DmgTextureMod Texture // suffix
27526 NametagBG color.NRGBA
27527 }))(obj)).SelBox).serialize(w)
27532 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
27536 MaxHP uint16 // Player only.
27537 CollideWithNodes bool
27538 Weight float32 // deprecated
27542 VisualSize [3]float32
27544 SpriteSheetSize [2]int16 // in sprites.
27545 SpritePos [2]int16 // in sprite sheet.
27547 MakeFootstepSnds bool
27548 RotateSpeed float32 // in radians per second.
27550 Colors []color.NRGBA
27551 CollideWithAOs bool
27554 FaceRotateDirOff float32 // in degrees.
27557 NametagColor color.NRGBA
27558 FaceRotateSpeed float32 // in degrees per second.
27562 MaxBreath uint16 // Player only.
27563 EyeHeight float32 // Player only.
27564 ZoomFOV float32 // in degrees. Player only.
27565 UseTextureAlpha bool
27566 DmgTextureMod Texture // suffix
27569 NametagBG color.NRGBA
27570 }))(obj)).Pointable
27577 if len(([]byte((*(*(struct {
27578 MaxHP uint16 // Player only.
27579 CollideWithNodes bool
27580 Weight float32 // deprecated
27584 VisualSize [3]float32
27586 SpriteSheetSize [2]int16 // in sprites.
27587 SpritePos [2]int16 // in sprite sheet.
27589 MakeFootstepSnds bool
27590 RotateSpeed float32 // in radians per second.
27592 Colors []color.NRGBA
27593 CollideWithAOs bool
27596 FaceRotateDirOff float32 // in degrees.
27599 NametagColor color.NRGBA
27600 FaceRotateSpeed float32 // in degrees per second.
27604 MaxBreath uint16 // Player only.
27605 EyeHeight float32 // Player only.
27606 ZoomFOV float32 // in degrees. Player only.
27607 UseTextureAlpha bool
27608 DmgTextureMod Texture // suffix
27611 NametagBG color.NRGBA
27612 }))(obj)).Visual))) > math.MaxUint16 {
27616 x := uint16(len(([]byte((*(*(struct {
27617 MaxHP uint16 // Player only.
27618 CollideWithNodes bool
27619 Weight float32 // deprecated
27623 VisualSize [3]float32
27625 SpriteSheetSize [2]int16 // in sprites.
27626 SpritePos [2]int16 // in sprite sheet.
27628 MakeFootstepSnds bool
27629 RotateSpeed float32 // in radians per second.
27631 Colors []color.NRGBA
27632 CollideWithAOs bool
27635 FaceRotateDirOff float32 // in degrees.
27638 NametagColor color.NRGBA
27639 FaceRotateSpeed float32 // in degrees per second.
27643 MaxBreath uint16 // Player only.
27644 EyeHeight float32 // Player only.
27645 ZoomFOV float32 // in degrees. Player only.
27646 UseTextureAlpha bool
27647 DmgTextureMod Texture // suffix
27650 NametagBG color.NRGBA
27651 }))(obj)).Visual))))
27652 write16(w, uint16(x))
27655 _, err := w.Write(([]byte((*(*(struct {
27656 MaxHP uint16 // Player only.
27657 CollideWithNodes bool
27658 Weight float32 // deprecated
27662 VisualSize [3]float32
27664 SpriteSheetSize [2]int16 // in sprites.
27665 SpritePos [2]int16 // in sprite sheet.
27667 MakeFootstepSnds bool
27668 RotateSpeed float32 // in radians per second.
27670 Colors []color.NRGBA
27671 CollideWithAOs bool
27674 FaceRotateDirOff float32 // in degrees.
27677 NametagColor color.NRGBA
27678 FaceRotateSpeed float32 // in degrees per second.
27682 MaxBreath uint16 // Player only.
27683 EyeHeight float32 // Player only.
27684 ZoomFOV float32 // in degrees. Player only.
27685 UseTextureAlpha bool
27686 DmgTextureMod Texture // suffix
27689 NametagBG color.NRGBA
27690 }))(obj)).Visual))[:])
27693 for local334 := range (*(*(struct {
27694 MaxHP uint16 // Player only.
27695 CollideWithNodes bool
27696 Weight float32 // deprecated
27700 VisualSize [3]float32
27702 SpriteSheetSize [2]int16 // in sprites.
27703 SpritePos [2]int16 // in sprite sheet.
27705 MakeFootstepSnds bool
27706 RotateSpeed float32 // in radians per second.
27708 Colors []color.NRGBA
27709 CollideWithAOs bool
27712 FaceRotateDirOff float32 // in degrees.
27715 NametagColor color.NRGBA
27716 FaceRotateSpeed float32 // in degrees per second.
27720 MaxBreath uint16 // Player only.
27721 EyeHeight float32 // Player only.
27722 ZoomFOV float32 // in degrees. Player only.
27723 UseTextureAlpha bool
27724 DmgTextureMod Texture // suffix
27727 NametagBG color.NRGBA
27728 }))(obj)).VisualSize {
27730 x := ((*(*(struct {
27731 MaxHP uint16 // Player only.
27732 CollideWithNodes bool
27733 Weight float32 // deprecated
27737 VisualSize [3]float32
27739 SpriteSheetSize [2]int16 // in sprites.
27740 SpritePos [2]int16 // in sprite sheet.
27742 MakeFootstepSnds bool
27743 RotateSpeed float32 // in radians per second.
27745 Colors []color.NRGBA
27746 CollideWithAOs bool
27749 FaceRotateDirOff float32 // in degrees.
27752 NametagColor color.NRGBA
27753 FaceRotateSpeed float32 // in degrees per second.
27757 MaxBreath uint16 // Player only.
27758 EyeHeight float32 // Player only.
27759 ZoomFOV float32 // in degrees. Player only.
27760 UseTextureAlpha bool
27761 DmgTextureMod Texture // suffix
27764 NametagBG color.NRGBA
27765 }))(obj)).VisualSize)[local334]
27766 write32(w, math.Float32bits(x))
27769 if len(((*(*(struct {
27770 MaxHP uint16 // Player only.
27771 CollideWithNodes bool
27772 Weight float32 // deprecated
27776 VisualSize [3]float32
27778 SpriteSheetSize [2]int16 // in sprites.
27779 SpritePos [2]int16 // in sprite sheet.
27781 MakeFootstepSnds bool
27782 RotateSpeed float32 // in radians per second.
27784 Colors []color.NRGBA
27785 CollideWithAOs bool
27788 FaceRotateDirOff float32 // in degrees.
27791 NametagColor color.NRGBA
27792 FaceRotateSpeed float32 // in degrees per second.
27796 MaxBreath uint16 // Player only.
27797 EyeHeight float32 // Player only.
27798 ZoomFOV float32 // in degrees. Player only.
27799 UseTextureAlpha bool
27800 DmgTextureMod Texture // suffix
27803 NametagBG color.NRGBA
27804 }))(obj)).Textures)) > math.MaxUint16 {
27808 x := uint16(len(((*(*(struct {
27809 MaxHP uint16 // Player only.
27810 CollideWithNodes bool
27811 Weight float32 // deprecated
27815 VisualSize [3]float32
27817 SpriteSheetSize [2]int16 // in sprites.
27818 SpritePos [2]int16 // in sprite sheet.
27820 MakeFootstepSnds bool
27821 RotateSpeed float32 // in radians per second.
27823 Colors []color.NRGBA
27824 CollideWithAOs bool
27827 FaceRotateDirOff float32 // in degrees.
27830 NametagColor color.NRGBA
27831 FaceRotateSpeed float32 // in degrees per second.
27835 MaxBreath uint16 // Player only.
27836 EyeHeight float32 // Player only.
27837 ZoomFOV float32 // in degrees. Player only.
27838 UseTextureAlpha bool
27839 DmgTextureMod Texture // suffix
27842 NametagBG color.NRGBA
27843 }))(obj)).Textures)))
27844 write16(w, uint16(x))
27846 for local335 := range (*(*(struct {
27847 MaxHP uint16 // Player only.
27848 CollideWithNodes bool
27849 Weight float32 // deprecated
27853 VisualSize [3]float32
27855 SpriteSheetSize [2]int16 // in sprites.
27856 SpritePos [2]int16 // in sprite sheet.
27858 MakeFootstepSnds bool
27859 RotateSpeed float32 // in radians per second.
27861 Colors []color.NRGBA
27862 CollideWithAOs bool
27865 FaceRotateDirOff float32 // in degrees.
27868 NametagColor color.NRGBA
27869 FaceRotateSpeed float32 // in degrees per second.
27873 MaxBreath uint16 // Player only.
27874 EyeHeight float32 // Player only.
27875 ZoomFOV float32 // in degrees. Player only.
27876 UseTextureAlpha bool
27877 DmgTextureMod Texture // suffix
27880 NametagBG color.NRGBA
27881 }))(obj)).Textures {
27882 if err := pcall(func() {
27884 MaxHP uint16 // Player only.
27885 CollideWithNodes bool
27886 Weight float32 // deprecated
27890 VisualSize [3]float32
27892 SpriteSheetSize [2]int16 // in sprites.
27893 SpritePos [2]int16 // in sprite sheet.
27895 MakeFootstepSnds bool
27896 RotateSpeed float32 // in radians per second.
27898 Colors []color.NRGBA
27899 CollideWithAOs bool
27902 FaceRotateDirOff float32 // in degrees.
27905 NametagColor color.NRGBA
27906 FaceRotateSpeed float32 // in degrees per second.
27910 MaxBreath uint16 // Player only.
27911 EyeHeight float32 // Player only.
27912 ZoomFOV float32 // in degrees. Player only.
27913 UseTextureAlpha bool
27914 DmgTextureMod Texture // suffix
27917 NametagBG color.NRGBA
27918 }))(obj)).Textures)[local335]).serialize(w)
27923 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
27926 for local336 := range (*(*(struct {
27927 MaxHP uint16 // Player only.
27928 CollideWithNodes bool
27929 Weight float32 // deprecated
27933 VisualSize [3]float32
27935 SpriteSheetSize [2]int16 // in sprites.
27936 SpritePos [2]int16 // in sprite sheet.
27938 MakeFootstepSnds bool
27939 RotateSpeed float32 // in radians per second.
27941 Colors []color.NRGBA
27942 CollideWithAOs bool
27945 FaceRotateDirOff float32 // in degrees.
27948 NametagColor color.NRGBA
27949 FaceRotateSpeed float32 // in degrees per second.
27953 MaxBreath uint16 // Player only.
27954 EyeHeight float32 // Player only.
27955 ZoomFOV float32 // in degrees. Player only.
27956 UseTextureAlpha bool
27957 DmgTextureMod Texture // suffix
27960 NametagBG color.NRGBA
27961 }))(obj)).SpriteSheetSize {
27963 x := ((*(*(struct {
27964 MaxHP uint16 // Player only.
27965 CollideWithNodes bool
27966 Weight float32 // deprecated
27970 VisualSize [3]float32
27972 SpriteSheetSize [2]int16 // in sprites.
27973 SpritePos [2]int16 // in sprite sheet.
27975 MakeFootstepSnds bool
27976 RotateSpeed float32 // in radians per second.
27978 Colors []color.NRGBA
27979 CollideWithAOs bool
27982 FaceRotateDirOff float32 // in degrees.
27985 NametagColor color.NRGBA
27986 FaceRotateSpeed float32 // in degrees per second.
27990 MaxBreath uint16 // Player only.
27991 EyeHeight float32 // Player only.
27992 ZoomFOV float32 // in degrees. Player only.
27993 UseTextureAlpha bool
27994 DmgTextureMod Texture // suffix
27997 NametagBG color.NRGBA
27998 }))(obj)).SpriteSheetSize)[local336]
27999 write16(w, uint16(x))
28002 for local337 := range (*(*(struct {
28003 MaxHP uint16 // Player only.
28004 CollideWithNodes bool
28005 Weight float32 // deprecated
28009 VisualSize [3]float32
28011 SpriteSheetSize [2]int16 // in sprites.
28012 SpritePos [2]int16 // in sprite sheet.
28014 MakeFootstepSnds bool
28015 RotateSpeed float32 // in radians per second.
28017 Colors []color.NRGBA
28018 CollideWithAOs bool
28021 FaceRotateDirOff float32 // in degrees.
28024 NametagColor color.NRGBA
28025 FaceRotateSpeed float32 // in degrees per second.
28029 MaxBreath uint16 // Player only.
28030 EyeHeight float32 // Player only.
28031 ZoomFOV float32 // in degrees. Player only.
28032 UseTextureAlpha bool
28033 DmgTextureMod Texture // suffix
28036 NametagBG color.NRGBA
28037 }))(obj)).SpritePos {
28039 x := ((*(*(struct {
28040 MaxHP uint16 // Player only.
28041 CollideWithNodes bool
28042 Weight float32 // deprecated
28046 VisualSize [3]float32
28048 SpriteSheetSize [2]int16 // in sprites.
28049 SpritePos [2]int16 // in sprite sheet.
28051 MakeFootstepSnds bool
28052 RotateSpeed float32 // in radians per second.
28054 Colors []color.NRGBA
28055 CollideWithAOs bool
28058 FaceRotateDirOff float32 // in degrees.
28061 NametagColor color.NRGBA
28062 FaceRotateSpeed float32 // in degrees per second.
28066 MaxBreath uint16 // Player only.
28067 EyeHeight float32 // Player only.
28068 ZoomFOV float32 // in degrees. Player only.
28069 UseTextureAlpha bool
28070 DmgTextureMod Texture // suffix
28073 NametagBG color.NRGBA
28074 }))(obj)).SpritePos)[local337]
28075 write16(w, uint16(x))
28080 MaxHP uint16 // Player only.
28081 CollideWithNodes bool
28082 Weight float32 // deprecated
28086 VisualSize [3]float32
28088 SpriteSheetSize [2]int16 // in sprites.
28089 SpritePos [2]int16 // in sprite sheet.
28091 MakeFootstepSnds bool
28092 RotateSpeed float32 // in radians per second.
28094 Colors []color.NRGBA
28095 CollideWithAOs bool
28098 FaceRotateDirOff float32 // in degrees.
28101 NametagColor color.NRGBA
28102 FaceRotateSpeed float32 // in degrees per second.
28106 MaxBreath uint16 // Player only.
28107 EyeHeight float32 // Player only.
28108 ZoomFOV float32 // in degrees. Player only.
28109 UseTextureAlpha bool
28110 DmgTextureMod Texture // suffix
28113 NametagBG color.NRGBA
28123 MaxHP uint16 // Player only.
28124 CollideWithNodes bool
28125 Weight float32 // deprecated
28129 VisualSize [3]float32
28131 SpriteSheetSize [2]int16 // in sprites.
28132 SpritePos [2]int16 // in sprite sheet.
28134 MakeFootstepSnds bool
28135 RotateSpeed float32 // in radians per second.
28137 Colors []color.NRGBA
28138 CollideWithAOs bool
28141 FaceRotateDirOff float32 // in degrees.
28144 NametagColor color.NRGBA
28145 FaceRotateSpeed float32 // in degrees per second.
28149 MaxBreath uint16 // Player only.
28150 EyeHeight float32 // Player only.
28151 ZoomFOV float32 // in degrees. Player only.
28152 UseTextureAlpha bool
28153 DmgTextureMod Texture // suffix
28156 NametagBG color.NRGBA
28157 }))(obj)).MakeFootstepSnds
28166 MaxHP uint16 // Player only.
28167 CollideWithNodes bool
28168 Weight float32 // deprecated
28172 VisualSize [3]float32
28174 SpriteSheetSize [2]int16 // in sprites.
28175 SpritePos [2]int16 // in sprite sheet.
28177 MakeFootstepSnds bool
28178 RotateSpeed float32 // in radians per second.
28180 Colors []color.NRGBA
28181 CollideWithAOs bool
28184 FaceRotateDirOff float32 // in degrees.
28187 NametagColor color.NRGBA
28188 FaceRotateSpeed float32 // in degrees per second.
28192 MaxBreath uint16 // Player only.
28193 EyeHeight float32 // Player only.
28194 ZoomFOV float32 // in degrees. Player only.
28195 UseTextureAlpha bool
28196 DmgTextureMod Texture // suffix
28199 NametagBG color.NRGBA
28200 }))(obj)).RotateSpeed
28201 write32(w, math.Float32bits(x))
28203 if len(([]byte((*(*(struct {
28204 MaxHP uint16 // Player only.
28205 CollideWithNodes bool
28206 Weight float32 // deprecated
28210 VisualSize [3]float32
28212 SpriteSheetSize [2]int16 // in sprites.
28213 SpritePos [2]int16 // in sprite sheet.
28215 MakeFootstepSnds bool
28216 RotateSpeed float32 // in radians per second.
28218 Colors []color.NRGBA
28219 CollideWithAOs bool
28222 FaceRotateDirOff float32 // in degrees.
28225 NametagColor color.NRGBA
28226 FaceRotateSpeed float32 // in degrees per second.
28230 MaxBreath uint16 // Player only.
28231 EyeHeight float32 // Player only.
28232 ZoomFOV float32 // in degrees. Player only.
28233 UseTextureAlpha bool
28234 DmgTextureMod Texture // suffix
28237 NametagBG color.NRGBA
28238 }))(obj)).Mesh))) > math.MaxUint16 {
28242 x := uint16(len(([]byte((*(*(struct {
28243 MaxHP uint16 // Player only.
28244 CollideWithNodes bool
28245 Weight float32 // deprecated
28249 VisualSize [3]float32
28251 SpriteSheetSize [2]int16 // in sprites.
28252 SpritePos [2]int16 // in sprite sheet.
28254 MakeFootstepSnds bool
28255 RotateSpeed float32 // in radians per second.
28257 Colors []color.NRGBA
28258 CollideWithAOs bool
28261 FaceRotateDirOff float32 // in degrees.
28264 NametagColor color.NRGBA
28265 FaceRotateSpeed float32 // in degrees per second.
28269 MaxBreath uint16 // Player only.
28270 EyeHeight float32 // Player only.
28271 ZoomFOV float32 // in degrees. Player only.
28272 UseTextureAlpha bool
28273 DmgTextureMod Texture // suffix
28276 NametagBG color.NRGBA
28278 write16(w, uint16(x))
28281 _, err := w.Write(([]byte((*(*(struct {
28282 MaxHP uint16 // Player only.
28283 CollideWithNodes bool
28284 Weight float32 // deprecated
28288 VisualSize [3]float32
28290 SpriteSheetSize [2]int16 // in sprites.
28291 SpritePos [2]int16 // in sprite sheet.
28293 MakeFootstepSnds bool
28294 RotateSpeed float32 // in radians per second.
28296 Colors []color.NRGBA
28297 CollideWithAOs bool
28300 FaceRotateDirOff float32 // in degrees.
28303 NametagColor color.NRGBA
28304 FaceRotateSpeed float32 // in degrees per second.
28308 MaxBreath uint16 // Player only.
28309 EyeHeight float32 // Player only.
28310 ZoomFOV float32 // in degrees. Player only.
28311 UseTextureAlpha bool
28312 DmgTextureMod Texture // suffix
28315 NametagBG color.NRGBA
28316 }))(obj)).Mesh))[:])
28319 if len(((*(*(struct {
28320 MaxHP uint16 // Player only.
28321 CollideWithNodes bool
28322 Weight float32 // deprecated
28326 VisualSize [3]float32
28328 SpriteSheetSize [2]int16 // in sprites.
28329 SpritePos [2]int16 // in sprite sheet.
28331 MakeFootstepSnds bool
28332 RotateSpeed float32 // in radians per second.
28334 Colors []color.NRGBA
28335 CollideWithAOs bool
28338 FaceRotateDirOff float32 // in degrees.
28341 NametagColor color.NRGBA
28342 FaceRotateSpeed float32 // in degrees per second.
28346 MaxBreath uint16 // Player only.
28347 EyeHeight float32 // Player only.
28348 ZoomFOV float32 // in degrees. Player only.
28349 UseTextureAlpha bool
28350 DmgTextureMod Texture // suffix
28353 NametagBG color.NRGBA
28354 }))(obj)).Colors)) > math.MaxUint16 {
28358 x := uint16(len(((*(*(struct {
28359 MaxHP uint16 // Player only.
28360 CollideWithNodes bool
28361 Weight float32 // deprecated
28365 VisualSize [3]float32
28367 SpriteSheetSize [2]int16 // in sprites.
28368 SpritePos [2]int16 // in sprite sheet.
28370 MakeFootstepSnds bool
28371 RotateSpeed float32 // in radians per second.
28373 Colors []color.NRGBA
28374 CollideWithAOs bool
28377 FaceRotateDirOff float32 // in degrees.
28380 NametagColor color.NRGBA
28381 FaceRotateSpeed float32 // in degrees per second.
28385 MaxBreath uint16 // Player only.
28386 EyeHeight float32 // Player only.
28387 ZoomFOV float32 // in degrees. Player only.
28388 UseTextureAlpha bool
28389 DmgTextureMod Texture // suffix
28392 NametagBG color.NRGBA
28393 }))(obj)).Colors)))
28394 write16(w, uint16(x))
28396 for local338 := range (*(*(struct {
28397 MaxHP uint16 // Player only.
28398 CollideWithNodes bool
28399 Weight float32 // deprecated
28403 VisualSize [3]float32
28405 SpriteSheetSize [2]int16 // in sprites.
28406 SpritePos [2]int16 // in sprite sheet.
28408 MakeFootstepSnds bool
28409 RotateSpeed float32 // in radians per second.
28411 Colors []color.NRGBA
28412 CollideWithAOs bool
28415 FaceRotateDirOff float32 // in degrees.
28418 NametagColor color.NRGBA
28419 FaceRotateSpeed float32 // in degrees per second.
28423 MaxBreath uint16 // Player only.
28424 EyeHeight float32 // Player only.
28425 ZoomFOV float32 // in degrees. Player only.
28426 UseTextureAlpha bool
28427 DmgTextureMod Texture // suffix
28430 NametagBG color.NRGBA
28433 x := ((*(*(struct {
28434 MaxHP uint16 // Player only.
28435 CollideWithNodes bool
28436 Weight float32 // deprecated
28440 VisualSize [3]float32
28442 SpriteSheetSize [2]int16 // in sprites.
28443 SpritePos [2]int16 // in sprite sheet.
28445 MakeFootstepSnds bool
28446 RotateSpeed float32 // in radians per second.
28448 Colors []color.NRGBA
28449 CollideWithAOs bool
28452 FaceRotateDirOff float32 // in degrees.
28455 NametagColor color.NRGBA
28456 FaceRotateSpeed float32 // in degrees per second.
28460 MaxBreath uint16 // Player only.
28461 EyeHeight float32 // Player only.
28462 ZoomFOV float32 // in degrees. Player only.
28463 UseTextureAlpha bool
28464 DmgTextureMod Texture // suffix
28467 NametagBG color.NRGBA
28468 }))(obj)).Colors)[local338]
28469 w.Write([]byte{x.A, x.R, x.G, x.B})
28474 MaxHP uint16 // Player only.
28475 CollideWithNodes bool
28476 Weight float32 // deprecated
28480 VisualSize [3]float32
28482 SpriteSheetSize [2]int16 // in sprites.
28483 SpritePos [2]int16 // in sprite sheet.
28485 MakeFootstepSnds bool
28486 RotateSpeed float32 // in radians per second.
28488 Colors []color.NRGBA
28489 CollideWithAOs bool
28492 FaceRotateDirOff float32 // in degrees.
28495 NametagColor color.NRGBA
28496 FaceRotateSpeed float32 // in degrees per second.
28500 MaxBreath uint16 // Player only.
28501 EyeHeight float32 // Player only.
28502 ZoomFOV float32 // in degrees. Player only.
28503 UseTextureAlpha bool
28504 DmgTextureMod Texture // suffix
28507 NametagBG color.NRGBA
28508 }))(obj)).CollideWithAOs
28517 MaxHP uint16 // Player only.
28518 CollideWithNodes bool
28519 Weight float32 // deprecated
28523 VisualSize [3]float32
28525 SpriteSheetSize [2]int16 // in sprites.
28526 SpritePos [2]int16 // in sprite sheet.
28528 MakeFootstepSnds bool
28529 RotateSpeed float32 // in radians per second.
28531 Colors []color.NRGBA
28532 CollideWithAOs bool
28535 FaceRotateDirOff float32 // in degrees.
28538 NametagColor color.NRGBA
28539 FaceRotateSpeed float32 // in degrees per second.
28543 MaxBreath uint16 // Player only.
28544 EyeHeight float32 // Player only.
28545 ZoomFOV float32 // in degrees. Player only.
28546 UseTextureAlpha bool
28547 DmgTextureMod Texture // suffix
28550 NametagBG color.NRGBA
28551 }))(obj)).StepHeight
28552 write32(w, math.Float32bits(x))
28556 MaxHP uint16 // Player only.
28557 CollideWithNodes bool
28558 Weight float32 // deprecated
28562 VisualSize [3]float32
28564 SpriteSheetSize [2]int16 // in sprites.
28565 SpritePos [2]int16 // in sprite sheet.
28567 MakeFootstepSnds bool
28568 RotateSpeed float32 // in radians per second.
28570 Colors []color.NRGBA
28571 CollideWithAOs bool
28574 FaceRotateDirOff float32 // in degrees.
28577 NametagColor color.NRGBA
28578 FaceRotateSpeed float32 // in degrees per second.
28582 MaxBreath uint16 // Player only.
28583 EyeHeight float32 // Player only.
28584 ZoomFOV float32 // in degrees. Player only.
28585 UseTextureAlpha bool
28586 DmgTextureMod Texture // suffix
28589 NametagBG color.NRGBA
28590 }))(obj)).FaceRotateDir
28599 MaxHP uint16 // Player only.
28600 CollideWithNodes bool
28601 Weight float32 // deprecated
28605 VisualSize [3]float32
28607 SpriteSheetSize [2]int16 // in sprites.
28608 SpritePos [2]int16 // in sprite sheet.
28610 MakeFootstepSnds bool
28611 RotateSpeed float32 // in radians per second.
28613 Colors []color.NRGBA
28614 CollideWithAOs bool
28617 FaceRotateDirOff float32 // in degrees.
28620 NametagColor color.NRGBA
28621 FaceRotateSpeed float32 // in degrees per second.
28625 MaxBreath uint16 // Player only.
28626 EyeHeight float32 // Player only.
28627 ZoomFOV float32 // in degrees. Player only.
28628 UseTextureAlpha bool
28629 DmgTextureMod Texture // suffix
28632 NametagBG color.NRGBA
28633 }))(obj)).FaceRotateDirOff
28634 write32(w, math.Float32bits(x))
28638 MaxHP uint16 // Player only.
28639 CollideWithNodes bool
28640 Weight float32 // deprecated
28644 VisualSize [3]float32
28646 SpriteSheetSize [2]int16 // in sprites.
28647 SpritePos [2]int16 // in sprite sheet.
28649 MakeFootstepSnds bool
28650 RotateSpeed float32 // in radians per second.
28652 Colors []color.NRGBA
28653 CollideWithAOs bool
28656 FaceRotateDirOff float32 // in degrees.
28659 NametagColor color.NRGBA
28660 FaceRotateSpeed float32 // in degrees per second.
28664 MaxBreath uint16 // Player only.
28665 EyeHeight float32 // Player only.
28666 ZoomFOV float32 // in degrees. Player only.
28667 UseTextureAlpha bool
28668 DmgTextureMod Texture // suffix
28671 NametagBG color.NRGBA
28672 }))(obj)).BackfaceCull
28679 if len(([]byte((*(*(struct {
28680 MaxHP uint16 // Player only.
28681 CollideWithNodes bool
28682 Weight float32 // deprecated
28686 VisualSize [3]float32
28688 SpriteSheetSize [2]int16 // in sprites.
28689 SpritePos [2]int16 // in sprite sheet.
28691 MakeFootstepSnds bool
28692 RotateSpeed float32 // in radians per second.
28694 Colors []color.NRGBA
28695 CollideWithAOs bool
28698 FaceRotateDirOff float32 // in degrees.
28701 NametagColor color.NRGBA
28702 FaceRotateSpeed float32 // in degrees per second.
28706 MaxBreath uint16 // Player only.
28707 EyeHeight float32 // Player only.
28708 ZoomFOV float32 // in degrees. Player only.
28709 UseTextureAlpha bool
28710 DmgTextureMod Texture // suffix
28713 NametagBG color.NRGBA
28714 }))(obj)).Nametag))) > math.MaxUint16 {
28718 x := uint16(len(([]byte((*(*(struct {
28719 MaxHP uint16 // Player only.
28720 CollideWithNodes bool
28721 Weight float32 // deprecated
28725 VisualSize [3]float32
28727 SpriteSheetSize [2]int16 // in sprites.
28728 SpritePos [2]int16 // in sprite sheet.
28730 MakeFootstepSnds bool
28731 RotateSpeed float32 // in radians per second.
28733 Colors []color.NRGBA
28734 CollideWithAOs bool
28737 FaceRotateDirOff float32 // in degrees.
28740 NametagColor color.NRGBA
28741 FaceRotateSpeed float32 // in degrees per second.
28745 MaxBreath uint16 // Player only.
28746 EyeHeight float32 // Player only.
28747 ZoomFOV float32 // in degrees. Player only.
28748 UseTextureAlpha bool
28749 DmgTextureMod Texture // suffix
28752 NametagBG color.NRGBA
28753 }))(obj)).Nametag))))
28754 write16(w, uint16(x))
28757 _, err := w.Write(([]byte((*(*(struct {
28758 MaxHP uint16 // Player only.
28759 CollideWithNodes bool
28760 Weight float32 // deprecated
28764 VisualSize [3]float32
28766 SpriteSheetSize [2]int16 // in sprites.
28767 SpritePos [2]int16 // in sprite sheet.
28769 MakeFootstepSnds bool
28770 RotateSpeed float32 // in radians per second.
28772 Colors []color.NRGBA
28773 CollideWithAOs bool
28776 FaceRotateDirOff float32 // in degrees.
28779 NametagColor color.NRGBA
28780 FaceRotateSpeed float32 // in degrees per second.
28784 MaxBreath uint16 // Player only.
28785 EyeHeight float32 // Player only.
28786 ZoomFOV float32 // in degrees. Player only.
28787 UseTextureAlpha bool
28788 DmgTextureMod Texture // suffix
28791 NametagBG color.NRGBA
28792 }))(obj)).Nametag))[:])
28797 MaxHP uint16 // Player only.
28798 CollideWithNodes bool
28799 Weight float32 // deprecated
28803 VisualSize [3]float32
28805 SpriteSheetSize [2]int16 // in sprites.
28806 SpritePos [2]int16 // in sprite sheet.
28808 MakeFootstepSnds bool
28809 RotateSpeed float32 // in radians per second.
28811 Colors []color.NRGBA
28812 CollideWithAOs bool
28815 FaceRotateDirOff float32 // in degrees.
28818 NametagColor color.NRGBA
28819 FaceRotateSpeed float32 // in degrees per second.
28823 MaxBreath uint16 // Player only.
28824 EyeHeight float32 // Player only.
28825 ZoomFOV float32 // in degrees. Player only.
28826 UseTextureAlpha bool
28827 DmgTextureMod Texture // suffix
28830 NametagBG color.NRGBA
28831 }))(obj)).NametagColor
28832 w.Write([]byte{x.A, x.R, x.G, x.B})
28836 MaxHP uint16 // Player only.
28837 CollideWithNodes bool
28838 Weight float32 // deprecated
28842 VisualSize [3]float32
28844 SpriteSheetSize [2]int16 // in sprites.
28845 SpritePos [2]int16 // in sprite sheet.
28847 MakeFootstepSnds bool
28848 RotateSpeed float32 // in radians per second.
28850 Colors []color.NRGBA
28851 CollideWithAOs bool
28854 FaceRotateDirOff float32 // in degrees.
28857 NametagColor color.NRGBA
28858 FaceRotateSpeed float32 // in degrees per second.
28862 MaxBreath uint16 // Player only.
28863 EyeHeight float32 // Player only.
28864 ZoomFOV float32 // in degrees. Player only.
28865 UseTextureAlpha bool
28866 DmgTextureMod Texture // suffix
28869 NametagBG color.NRGBA
28870 }))(obj)).FaceRotateSpeed
28871 write32(w, math.Float32bits(x))
28873 if len(([]byte((*(*(struct {
28874 MaxHP uint16 // Player only.
28875 CollideWithNodes bool
28876 Weight float32 // deprecated
28880 VisualSize [3]float32
28882 SpriteSheetSize [2]int16 // in sprites.
28883 SpritePos [2]int16 // in sprite sheet.
28885 MakeFootstepSnds bool
28886 RotateSpeed float32 // in radians per second.
28888 Colors []color.NRGBA
28889 CollideWithAOs bool
28892 FaceRotateDirOff float32 // in degrees.
28895 NametagColor color.NRGBA
28896 FaceRotateSpeed float32 // in degrees per second.
28900 MaxBreath uint16 // Player only.
28901 EyeHeight float32 // Player only.
28902 ZoomFOV float32 // in degrees. Player only.
28903 UseTextureAlpha bool
28904 DmgTextureMod Texture // suffix
28907 NametagBG color.NRGBA
28908 }))(obj)).Infotext))) > math.MaxUint16 {
28912 x := uint16(len(([]byte((*(*(struct {
28913 MaxHP uint16 // Player only.
28914 CollideWithNodes bool
28915 Weight float32 // deprecated
28919 VisualSize [3]float32
28921 SpriteSheetSize [2]int16 // in sprites.
28922 SpritePos [2]int16 // in sprite sheet.
28924 MakeFootstepSnds bool
28925 RotateSpeed float32 // in radians per second.
28927 Colors []color.NRGBA
28928 CollideWithAOs bool
28931 FaceRotateDirOff float32 // in degrees.
28934 NametagColor color.NRGBA
28935 FaceRotateSpeed float32 // in degrees per second.
28939 MaxBreath uint16 // Player only.
28940 EyeHeight float32 // Player only.
28941 ZoomFOV float32 // in degrees. Player only.
28942 UseTextureAlpha bool
28943 DmgTextureMod Texture // suffix
28946 NametagBG color.NRGBA
28947 }))(obj)).Infotext))))
28948 write16(w, uint16(x))
28951 _, err := w.Write(([]byte((*(*(struct {
28952 MaxHP uint16 // Player only.
28953 CollideWithNodes bool
28954 Weight float32 // deprecated
28958 VisualSize [3]float32
28960 SpriteSheetSize [2]int16 // in sprites.
28961 SpritePos [2]int16 // in sprite sheet.
28963 MakeFootstepSnds bool
28964 RotateSpeed float32 // in radians per second.
28966 Colors []color.NRGBA
28967 CollideWithAOs bool
28970 FaceRotateDirOff float32 // in degrees.
28973 NametagColor color.NRGBA
28974 FaceRotateSpeed float32 // in degrees per second.
28978 MaxBreath uint16 // Player only.
28979 EyeHeight float32 // Player only.
28980 ZoomFOV float32 // in degrees. Player only.
28981 UseTextureAlpha bool
28982 DmgTextureMod Texture // suffix
28985 NametagBG color.NRGBA
28986 }))(obj)).Infotext))[:])
28989 if len(([]byte((*(*(struct {
28990 MaxHP uint16 // Player only.
28991 CollideWithNodes bool
28992 Weight float32 // deprecated
28996 VisualSize [3]float32
28998 SpriteSheetSize [2]int16 // in sprites.
28999 SpritePos [2]int16 // in sprite sheet.
29001 MakeFootstepSnds bool
29002 RotateSpeed float32 // in radians per second.
29004 Colors []color.NRGBA
29005 CollideWithAOs bool
29008 FaceRotateDirOff float32 // in degrees.
29011 NametagColor color.NRGBA
29012 FaceRotateSpeed float32 // in degrees per second.
29016 MaxBreath uint16 // Player only.
29017 EyeHeight float32 // Player only.
29018 ZoomFOV float32 // in degrees. Player only.
29019 UseTextureAlpha bool
29020 DmgTextureMod Texture // suffix
29023 NametagBG color.NRGBA
29024 }))(obj)).Itemstring))) > math.MaxUint16 {
29028 x := uint16(len(([]byte((*(*(struct {
29029 MaxHP uint16 // Player only.
29030 CollideWithNodes bool
29031 Weight float32 // deprecated
29035 VisualSize [3]float32
29037 SpriteSheetSize [2]int16 // in sprites.
29038 SpritePos [2]int16 // in sprite sheet.
29040 MakeFootstepSnds bool
29041 RotateSpeed float32 // in radians per second.
29043 Colors []color.NRGBA
29044 CollideWithAOs bool
29047 FaceRotateDirOff float32 // in degrees.
29050 NametagColor color.NRGBA
29051 FaceRotateSpeed float32 // in degrees per second.
29055 MaxBreath uint16 // Player only.
29056 EyeHeight float32 // Player only.
29057 ZoomFOV float32 // in degrees. Player only.
29058 UseTextureAlpha bool
29059 DmgTextureMod Texture // suffix
29062 NametagBG color.NRGBA
29063 }))(obj)).Itemstring))))
29064 write16(w, uint16(x))
29067 _, err := w.Write(([]byte((*(*(struct {
29068 MaxHP uint16 // Player only.
29069 CollideWithNodes bool
29070 Weight float32 // deprecated
29074 VisualSize [3]float32
29076 SpriteSheetSize [2]int16 // in sprites.
29077 SpritePos [2]int16 // in sprite sheet.
29079 MakeFootstepSnds bool
29080 RotateSpeed float32 // in radians per second.
29082 Colors []color.NRGBA
29083 CollideWithAOs bool
29086 FaceRotateDirOff float32 // in degrees.
29089 NametagColor color.NRGBA
29090 FaceRotateSpeed float32 // in degrees per second.
29094 MaxBreath uint16 // Player only.
29095 EyeHeight float32 // Player only.
29096 ZoomFOV float32 // in degrees. Player only.
29097 UseTextureAlpha bool
29098 DmgTextureMod Texture // suffix
29101 NametagBG color.NRGBA
29102 }))(obj)).Itemstring))[:])
29107 MaxHP uint16 // Player only.
29108 CollideWithNodes bool
29109 Weight float32 // deprecated
29113 VisualSize [3]float32
29115 SpriteSheetSize [2]int16 // in sprites.
29116 SpritePos [2]int16 // in sprite sheet.
29118 MakeFootstepSnds bool
29119 RotateSpeed float32 // in radians per second.
29121 Colors []color.NRGBA
29122 CollideWithAOs bool
29125 FaceRotateDirOff float32 // in degrees.
29128 NametagColor color.NRGBA
29129 FaceRotateSpeed float32 // in degrees per second.
29133 MaxBreath uint16 // Player only.
29134 EyeHeight float32 // Player only.
29135 ZoomFOV float32 // in degrees. Player only.
29136 UseTextureAlpha bool
29137 DmgTextureMod Texture // suffix
29140 NametagBG color.NRGBA
29142 write8(w, uint8(x))
29146 MaxHP uint16 // Player only.
29147 CollideWithNodes bool
29148 Weight float32 // deprecated
29152 VisualSize [3]float32
29154 SpriteSheetSize [2]int16 // in sprites.
29155 SpritePos [2]int16 // in sprite sheet.
29157 MakeFootstepSnds bool
29158 RotateSpeed float32 // in radians per second.
29160 Colors []color.NRGBA
29161 CollideWithAOs bool
29164 FaceRotateDirOff float32 // in degrees.
29167 NametagColor color.NRGBA
29168 FaceRotateSpeed float32 // in degrees per second.
29172 MaxBreath uint16 // Player only.
29173 EyeHeight float32 // Player only.
29174 ZoomFOV float32 // in degrees. Player only.
29175 UseTextureAlpha bool
29176 DmgTextureMod Texture // suffix
29179 NametagBG color.NRGBA
29180 }))(obj)).MaxBreath
29181 write16(w, uint16(x))
29185 MaxHP uint16 // Player only.
29186 CollideWithNodes bool
29187 Weight float32 // deprecated
29191 VisualSize [3]float32
29193 SpriteSheetSize [2]int16 // in sprites.
29194 SpritePos [2]int16 // in sprite sheet.
29196 MakeFootstepSnds bool
29197 RotateSpeed float32 // in radians per second.
29199 Colors []color.NRGBA
29200 CollideWithAOs bool
29203 FaceRotateDirOff float32 // in degrees.
29206 NametagColor color.NRGBA
29207 FaceRotateSpeed float32 // in degrees per second.
29211 MaxBreath uint16 // Player only.
29212 EyeHeight float32 // Player only.
29213 ZoomFOV float32 // in degrees. Player only.
29214 UseTextureAlpha bool
29215 DmgTextureMod Texture // suffix
29218 NametagBG color.NRGBA
29219 }))(obj)).EyeHeight
29220 write32(w, math.Float32bits(x))
29224 MaxHP uint16 // Player only.
29225 CollideWithNodes bool
29226 Weight float32 // deprecated
29230 VisualSize [3]float32
29232 SpriteSheetSize [2]int16 // in sprites.
29233 SpritePos [2]int16 // in sprite sheet.
29235 MakeFootstepSnds bool
29236 RotateSpeed float32 // in radians per second.
29238 Colors []color.NRGBA
29239 CollideWithAOs bool
29242 FaceRotateDirOff float32 // in degrees.
29245 NametagColor color.NRGBA
29246 FaceRotateSpeed float32 // in degrees per second.
29250 MaxBreath uint16 // Player only.
29251 EyeHeight float32 // Player only.
29252 ZoomFOV float32 // in degrees. Player only.
29253 UseTextureAlpha bool
29254 DmgTextureMod Texture // suffix
29257 NametagBG color.NRGBA
29259 write32(w, math.Float32bits(x))
29263 MaxHP uint16 // Player only.
29264 CollideWithNodes bool
29265 Weight float32 // deprecated
29269 VisualSize [3]float32
29271 SpriteSheetSize [2]int16 // in sprites.
29272 SpritePos [2]int16 // in sprite sheet.
29274 MakeFootstepSnds bool
29275 RotateSpeed float32 // in radians per second.
29277 Colors []color.NRGBA
29278 CollideWithAOs bool
29281 FaceRotateDirOff float32 // in degrees.
29284 NametagColor color.NRGBA
29285 FaceRotateSpeed float32 // in degrees per second.
29289 MaxBreath uint16 // Player only.
29290 EyeHeight float32 // Player only.
29291 ZoomFOV float32 // in degrees. Player only.
29292 UseTextureAlpha bool
29293 DmgTextureMod Texture // suffix
29296 NametagBG color.NRGBA
29297 }))(obj)).UseTextureAlpha
29304 if err := pcall(func() {
29306 MaxHP uint16 // Player only.
29307 CollideWithNodes bool
29308 Weight float32 // deprecated
29312 VisualSize [3]float32
29314 SpriteSheetSize [2]int16 // in sprites.
29315 SpritePos [2]int16 // in sprite sheet.
29317 MakeFootstepSnds bool
29318 RotateSpeed float32 // in radians per second.
29320 Colors []color.NRGBA
29321 CollideWithAOs bool
29324 FaceRotateDirOff float32 // in degrees.
29327 NametagColor color.NRGBA
29328 FaceRotateSpeed float32 // in degrees per second.
29332 MaxBreath uint16 // Player only.
29333 EyeHeight float32 // Player only.
29334 ZoomFOV float32 // in degrees. Player only.
29335 UseTextureAlpha bool
29336 DmgTextureMod Texture // suffix
29339 NametagBG color.NRGBA
29340 }))(obj)).DmgTextureMod).serialize(w)
29345 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
29349 MaxHP uint16 // Player only.
29350 CollideWithNodes bool
29351 Weight float32 // deprecated
29355 VisualSize [3]float32
29357 SpriteSheetSize [2]int16 // in sprites.
29358 SpritePos [2]int16 // in sprite sheet.
29360 MakeFootstepSnds bool
29361 RotateSpeed float32 // in radians per second.
29363 Colors []color.NRGBA
29364 CollideWithAOs bool
29367 FaceRotateDirOff float32 // in degrees.
29370 NametagColor color.NRGBA
29371 FaceRotateSpeed float32 // in degrees per second.
29375 MaxBreath uint16 // Player only.
29376 EyeHeight float32 // Player only.
29377 ZoomFOV float32 // in degrees. Player only.
29378 UseTextureAlpha bool
29379 DmgTextureMod Texture // suffix
29382 NametagBG color.NRGBA
29392 MaxHP uint16 // Player only.
29393 CollideWithNodes bool
29394 Weight float32 // deprecated
29398 VisualSize [3]float32
29400 SpriteSheetSize [2]int16 // in sprites.
29401 SpritePos [2]int16 // in sprite sheet.
29403 MakeFootstepSnds bool
29404 RotateSpeed float32 // in radians per second.
29406 Colors []color.NRGBA
29407 CollideWithAOs bool
29410 FaceRotateDirOff float32 // in degrees.
29413 NametagColor color.NRGBA
29414 FaceRotateSpeed float32 // in degrees per second.
29418 MaxBreath uint16 // Player only.
29419 EyeHeight float32 // Player only.
29420 ZoomFOV float32 // in degrees. Player only.
29421 UseTextureAlpha bool
29422 DmgTextureMod Texture // suffix
29425 NametagBG color.NRGBA
29426 }))(obj)).ShowOnMinimap
29435 MaxHP uint16 // Player only.
29436 CollideWithNodes bool
29437 Weight float32 // deprecated
29441 VisualSize [3]float32
29443 SpriteSheetSize [2]int16 // in sprites.
29444 SpritePos [2]int16 // in sprite sheet.
29446 MakeFootstepSnds bool
29447 RotateSpeed float32 // in radians per second.
29449 Colors []color.NRGBA
29450 CollideWithAOs bool
29453 FaceRotateDirOff float32 // in degrees.
29456 NametagColor color.NRGBA
29457 FaceRotateSpeed float32 // in degrees per second.
29461 MaxBreath uint16 // Player only.
29462 EyeHeight float32 // Player only.
29463 ZoomFOV float32 // in degrees. Player only.
29464 UseTextureAlpha bool
29465 DmgTextureMod Texture // suffix
29468 NametagBG color.NRGBA
29469 }))(obj)).NametagBG
29470 w.Write([]byte{x.A, x.R, x.G, x.B})
29474 func (obj *AOProps) deserialize(r io.Reader) {
29477 local340 := uint8(4)
29482 if local339 != local340 {
29483 chk(fmt.Errorf("const %v: %v", "uint8(4)", local339))
29487 p := &(*(*(struct {
29488 MaxHP uint16 // Player only.
29489 CollideWithNodes bool
29490 Weight float32 // deprecated
29494 VisualSize [3]float32
29496 SpriteSheetSize [2]int16 // in sprites.
29497 SpritePos [2]int16 // in sprite sheet.
29499 MakeFootstepSnds bool
29500 RotateSpeed float32 // in radians per second.
29502 Colors []color.NRGBA
29503 CollideWithAOs bool
29506 FaceRotateDirOff float32 // in degrees.
29509 NametagColor color.NRGBA
29510 FaceRotateSpeed float32 // in degrees per second.
29514 MaxBreath uint16 // Player only.
29515 EyeHeight float32 // Player only.
29516 ZoomFOV float32 // in degrees. Player only.
29517 UseTextureAlpha bool
29518 DmgTextureMod Texture // suffix
29521 NametagBG color.NRGBA
29526 p := &(*(*(struct {
29527 MaxHP uint16 // Player only.
29528 CollideWithNodes bool
29529 Weight float32 // deprecated
29533 VisualSize [3]float32
29535 SpriteSheetSize [2]int16 // in sprites.
29536 SpritePos [2]int16 // in sprite sheet.
29538 MakeFootstepSnds bool
29539 RotateSpeed float32 // in radians per second.
29541 Colors []color.NRGBA
29542 CollideWithAOs bool
29545 FaceRotateDirOff float32 // in degrees.
29548 NametagColor color.NRGBA
29549 FaceRotateSpeed float32 // in degrees per second.
29553 MaxBreath uint16 // Player only.
29554 EyeHeight float32 // Player only.
29555 ZoomFOV float32 // in degrees. Player only.
29556 UseTextureAlpha bool
29557 DmgTextureMod Texture // suffix
29560 NametagBG color.NRGBA
29561 }))(obj)).CollideWithNodes
29562 switch n := read8(r); n {
29568 chk(fmt.Errorf("invalid bool: %d", n))
29572 p := &(*(*(struct {
29573 MaxHP uint16 // Player only.
29574 CollideWithNodes bool
29575 Weight float32 // deprecated
29579 VisualSize [3]float32
29581 SpriteSheetSize [2]int16 // in sprites.
29582 SpritePos [2]int16 // in sprite sheet.
29584 MakeFootstepSnds bool
29585 RotateSpeed float32 // in radians per second.
29587 Colors []color.NRGBA
29588 CollideWithAOs bool
29591 FaceRotateDirOff float32 // in degrees.
29594 NametagColor color.NRGBA
29595 FaceRotateSpeed float32 // in degrees per second.
29599 MaxBreath uint16 // Player only.
29600 EyeHeight float32 // Player only.
29601 ZoomFOV float32 // in degrees. Player only.
29602 UseTextureAlpha bool
29603 DmgTextureMod Texture // suffix
29606 NametagBG color.NRGBA
29608 *p = math.Float32frombits(read32(r))
29610 if err := pcall(func() {
29612 MaxHP uint16 // Player only.
29613 CollideWithNodes bool
29614 Weight float32 // deprecated
29618 VisualSize [3]float32
29620 SpriteSheetSize [2]int16 // in sprites.
29621 SpritePos [2]int16 // in sprite sheet.
29623 MakeFootstepSnds bool
29624 RotateSpeed float32 // in radians per second.
29626 Colors []color.NRGBA
29627 CollideWithAOs bool
29630 FaceRotateDirOff float32 // in degrees.
29633 NametagColor color.NRGBA
29634 FaceRotateSpeed float32 // in degrees per second.
29638 MaxBreath uint16 // Player only.
29639 EyeHeight float32 // Player only.
29640 ZoomFOV float32 // in degrees. Player only.
29641 UseTextureAlpha bool
29642 DmgTextureMod Texture // suffix
29645 NametagBG color.NRGBA
29646 }))(obj)).ColBox).deserialize(r)
29651 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29653 if err := pcall(func() {
29655 MaxHP uint16 // Player only.
29656 CollideWithNodes bool
29657 Weight float32 // deprecated
29661 VisualSize [3]float32
29663 SpriteSheetSize [2]int16 // in sprites.
29664 SpritePos [2]int16 // in sprite sheet.
29666 MakeFootstepSnds bool
29667 RotateSpeed float32 // in radians per second.
29669 Colors []color.NRGBA
29670 CollideWithAOs bool
29673 FaceRotateDirOff float32 // in degrees.
29676 NametagColor color.NRGBA
29677 FaceRotateSpeed float32 // in degrees per second.
29681 MaxBreath uint16 // Player only.
29682 EyeHeight float32 // Player only.
29683 ZoomFOV float32 // in degrees. Player only.
29684 UseTextureAlpha bool
29685 DmgTextureMod Texture // suffix
29688 NametagBG color.NRGBA
29689 }))(obj)).SelBox).deserialize(r)
29694 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29697 p := &(*(*(struct {
29698 MaxHP uint16 // Player only.
29699 CollideWithNodes bool
29700 Weight float32 // deprecated
29704 VisualSize [3]float32
29706 SpriteSheetSize [2]int16 // in sprites.
29707 SpritePos [2]int16 // in sprite sheet.
29709 MakeFootstepSnds bool
29710 RotateSpeed float32 // in radians per second.
29712 Colors []color.NRGBA
29713 CollideWithAOs bool
29716 FaceRotateDirOff float32 // in degrees.
29719 NametagColor color.NRGBA
29720 FaceRotateSpeed float32 // in degrees per second.
29724 MaxBreath uint16 // Player only.
29725 EyeHeight float32 // Player only.
29726 ZoomFOV float32 // in degrees. Player only.
29727 UseTextureAlpha bool
29728 DmgTextureMod Texture // suffix
29731 NametagBG color.NRGBA
29732 }))(obj)).Pointable
29733 switch n := read8(r); n {
29739 chk(fmt.Errorf("invalid bool: %d", n))
29742 var local341 []uint8
29743 var local342 uint16
29748 (local341) = make([]uint8, local342)
29750 _, err := io.ReadFull(r, (local341)[:])
29754 MaxHP uint16 // Player only.
29755 CollideWithNodes bool
29756 Weight float32 // deprecated
29760 VisualSize [3]float32
29762 SpriteSheetSize [2]int16 // in sprites.
29763 SpritePos [2]int16 // in sprite sheet.
29765 MakeFootstepSnds bool
29766 RotateSpeed float32 // in radians per second.
29768 Colors []color.NRGBA
29769 CollideWithAOs bool
29772 FaceRotateDirOff float32 // in degrees.
29775 NametagColor color.NRGBA
29776 FaceRotateSpeed float32 // in degrees per second.
29780 MaxBreath uint16 // Player only.
29781 EyeHeight float32 // Player only.
29782 ZoomFOV float32 // in degrees. Player only.
29783 UseTextureAlpha bool
29784 DmgTextureMod Texture // suffix
29787 NametagBG color.NRGBA
29788 }))(obj)).Visual) = string(local341)
29789 for local343 := range (*(*(struct {
29790 MaxHP uint16 // Player only.
29791 CollideWithNodes bool
29792 Weight float32 // deprecated
29796 VisualSize [3]float32
29798 SpriteSheetSize [2]int16 // in sprites.
29799 SpritePos [2]int16 // in sprite sheet.
29801 MakeFootstepSnds bool
29802 RotateSpeed float32 // in radians per second.
29804 Colors []color.NRGBA
29805 CollideWithAOs bool
29808 FaceRotateDirOff float32 // in degrees.
29811 NametagColor color.NRGBA
29812 FaceRotateSpeed float32 // in degrees per second.
29816 MaxBreath uint16 // Player only.
29817 EyeHeight float32 // Player only.
29818 ZoomFOV float32 // in degrees. Player only.
29819 UseTextureAlpha bool
29820 DmgTextureMod Texture // suffix
29823 NametagBG color.NRGBA
29824 }))(obj)).VisualSize {
29826 p := &((*(*(struct {
29827 MaxHP uint16 // Player only.
29828 CollideWithNodes bool
29829 Weight float32 // deprecated
29833 VisualSize [3]float32
29835 SpriteSheetSize [2]int16 // in sprites.
29836 SpritePos [2]int16 // in sprite sheet.
29838 MakeFootstepSnds bool
29839 RotateSpeed float32 // in radians per second.
29841 Colors []color.NRGBA
29842 CollideWithAOs bool
29845 FaceRotateDirOff float32 // in degrees.
29848 NametagColor color.NRGBA
29849 FaceRotateSpeed float32 // in degrees per second.
29853 MaxBreath uint16 // Player only.
29854 EyeHeight float32 // Player only.
29855 ZoomFOV float32 // in degrees. Player only.
29856 UseTextureAlpha bool
29857 DmgTextureMod Texture // suffix
29860 NametagBG color.NRGBA
29861 }))(obj)).VisualSize)[local343]
29862 *p = math.Float32frombits(read32(r))
29865 var local344 uint16
29871 MaxHP uint16 // Player only.
29872 CollideWithNodes bool
29873 Weight float32 // deprecated
29877 VisualSize [3]float32
29879 SpriteSheetSize [2]int16 // in sprites.
29880 SpritePos [2]int16 // in sprite sheet.
29882 MakeFootstepSnds bool
29883 RotateSpeed float32 // in radians per second.
29885 Colors []color.NRGBA
29886 CollideWithAOs bool
29889 FaceRotateDirOff float32 // in degrees.
29892 NametagColor color.NRGBA
29893 FaceRotateSpeed float32 // in degrees per second.
29897 MaxBreath uint16 // Player only.
29898 EyeHeight float32 // Player only.
29899 ZoomFOV float32 // in degrees. Player only.
29900 UseTextureAlpha bool
29901 DmgTextureMod Texture // suffix
29904 NametagBG color.NRGBA
29905 }))(obj)).Textures) = make([]Texture, local344)
29906 for local345 := range (*(*(struct {
29907 MaxHP uint16 // Player only.
29908 CollideWithNodes bool
29909 Weight float32 // deprecated
29913 VisualSize [3]float32
29915 SpriteSheetSize [2]int16 // in sprites.
29916 SpritePos [2]int16 // in sprite sheet.
29918 MakeFootstepSnds bool
29919 RotateSpeed float32 // in radians per second.
29921 Colors []color.NRGBA
29922 CollideWithAOs bool
29925 FaceRotateDirOff float32 // in degrees.
29928 NametagColor color.NRGBA
29929 FaceRotateSpeed float32 // in degrees per second.
29933 MaxBreath uint16 // Player only.
29934 EyeHeight float32 // Player only.
29935 ZoomFOV float32 // in degrees. Player only.
29936 UseTextureAlpha bool
29937 DmgTextureMod Texture // suffix
29940 NametagBG color.NRGBA
29941 }))(obj)).Textures {
29942 if err := pcall(func() {
29944 MaxHP uint16 // Player only.
29945 CollideWithNodes bool
29946 Weight float32 // deprecated
29950 VisualSize [3]float32
29952 SpriteSheetSize [2]int16 // in sprites.
29953 SpritePos [2]int16 // in sprite sheet.
29955 MakeFootstepSnds bool
29956 RotateSpeed float32 // in radians per second.
29958 Colors []color.NRGBA
29959 CollideWithAOs bool
29962 FaceRotateDirOff float32 // in degrees.
29965 NametagColor color.NRGBA
29966 FaceRotateSpeed float32 // in degrees per second.
29970 MaxBreath uint16 // Player only.
29971 EyeHeight float32 // Player only.
29972 ZoomFOV float32 // in degrees. Player only.
29973 UseTextureAlpha bool
29974 DmgTextureMod Texture // suffix
29977 NametagBG color.NRGBA
29978 }))(obj)).Textures)[local345]).deserialize(r)
29983 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
29986 for local346 := range (*(*(struct {
29987 MaxHP uint16 // Player only.
29988 CollideWithNodes bool
29989 Weight float32 // deprecated
29993 VisualSize [3]float32
29995 SpriteSheetSize [2]int16 // in sprites.
29996 SpritePos [2]int16 // in sprite sheet.
29998 MakeFootstepSnds bool
29999 RotateSpeed float32 // in radians per second.
30001 Colors []color.NRGBA
30002 CollideWithAOs bool
30005 FaceRotateDirOff float32 // in degrees.
30008 NametagColor color.NRGBA
30009 FaceRotateSpeed float32 // in degrees per second.
30013 MaxBreath uint16 // Player only.
30014 EyeHeight float32 // Player only.
30015 ZoomFOV float32 // in degrees. Player only.
30016 UseTextureAlpha bool
30017 DmgTextureMod Texture // suffix
30020 NametagBG color.NRGBA
30021 }))(obj)).SpriteSheetSize {
30023 p := &((*(*(struct {
30024 MaxHP uint16 // Player only.
30025 CollideWithNodes bool
30026 Weight float32 // deprecated
30030 VisualSize [3]float32
30032 SpriteSheetSize [2]int16 // in sprites.
30033 SpritePos [2]int16 // in sprite sheet.
30035 MakeFootstepSnds bool
30036 RotateSpeed float32 // in radians per second.
30038 Colors []color.NRGBA
30039 CollideWithAOs bool
30042 FaceRotateDirOff float32 // in degrees.
30045 NametagColor color.NRGBA
30046 FaceRotateSpeed float32 // in degrees per second.
30050 MaxBreath uint16 // Player only.
30051 EyeHeight float32 // Player only.
30052 ZoomFOV float32 // in degrees. Player only.
30053 UseTextureAlpha bool
30054 DmgTextureMod Texture // suffix
30057 NametagBG color.NRGBA
30058 }))(obj)).SpriteSheetSize)[local346]
30059 *p = int16(read16(r))
30062 for local347 := range (*(*(struct {
30063 MaxHP uint16 // Player only.
30064 CollideWithNodes bool
30065 Weight float32 // deprecated
30069 VisualSize [3]float32
30071 SpriteSheetSize [2]int16 // in sprites.
30072 SpritePos [2]int16 // in sprite sheet.
30074 MakeFootstepSnds bool
30075 RotateSpeed float32 // in radians per second.
30077 Colors []color.NRGBA
30078 CollideWithAOs bool
30081 FaceRotateDirOff float32 // in degrees.
30084 NametagColor color.NRGBA
30085 FaceRotateSpeed float32 // in degrees per second.
30089 MaxBreath uint16 // Player only.
30090 EyeHeight float32 // Player only.
30091 ZoomFOV float32 // in degrees. Player only.
30092 UseTextureAlpha bool
30093 DmgTextureMod Texture // suffix
30096 NametagBG color.NRGBA
30097 }))(obj)).SpritePos {
30099 p := &((*(*(struct {
30100 MaxHP uint16 // Player only.
30101 CollideWithNodes bool
30102 Weight float32 // deprecated
30106 VisualSize [3]float32
30108 SpriteSheetSize [2]int16 // in sprites.
30109 SpritePos [2]int16 // in sprite sheet.
30111 MakeFootstepSnds bool
30112 RotateSpeed float32 // in radians per second.
30114 Colors []color.NRGBA
30115 CollideWithAOs bool
30118 FaceRotateDirOff float32 // in degrees.
30121 NametagColor color.NRGBA
30122 FaceRotateSpeed float32 // in degrees per second.
30126 MaxBreath uint16 // Player only.
30127 EyeHeight float32 // Player only.
30128 ZoomFOV float32 // in degrees. Player only.
30129 UseTextureAlpha bool
30130 DmgTextureMod Texture // suffix
30133 NametagBG color.NRGBA
30134 }))(obj)).SpritePos)[local347]
30135 *p = int16(read16(r))
30139 p := &(*(*(struct {
30140 MaxHP uint16 // Player only.
30141 CollideWithNodes bool
30142 Weight float32 // deprecated
30146 VisualSize [3]float32
30148 SpriteSheetSize [2]int16 // in sprites.
30149 SpritePos [2]int16 // in sprite sheet.
30151 MakeFootstepSnds bool
30152 RotateSpeed float32 // in radians per second.
30154 Colors []color.NRGBA
30155 CollideWithAOs bool
30158 FaceRotateDirOff float32 // in degrees.
30161 NametagColor color.NRGBA
30162 FaceRotateSpeed float32 // in degrees per second.
30166 MaxBreath uint16 // Player only.
30167 EyeHeight float32 // Player only.
30168 ZoomFOV float32 // in degrees. Player only.
30169 UseTextureAlpha bool
30170 DmgTextureMod Texture // suffix
30173 NametagBG color.NRGBA
30175 switch n := read8(r); n {
30181 chk(fmt.Errorf("invalid bool: %d", n))
30185 p := &(*(*(struct {
30186 MaxHP uint16 // Player only.
30187 CollideWithNodes bool
30188 Weight float32 // deprecated
30192 VisualSize [3]float32
30194 SpriteSheetSize [2]int16 // in sprites.
30195 SpritePos [2]int16 // in sprite sheet.
30197 MakeFootstepSnds bool
30198 RotateSpeed float32 // in radians per second.
30200 Colors []color.NRGBA
30201 CollideWithAOs bool
30204 FaceRotateDirOff float32 // in degrees.
30207 NametagColor color.NRGBA
30208 FaceRotateSpeed float32 // in degrees per second.
30212 MaxBreath uint16 // Player only.
30213 EyeHeight float32 // Player only.
30214 ZoomFOV float32 // in degrees. Player only.
30215 UseTextureAlpha bool
30216 DmgTextureMod Texture // suffix
30219 NametagBG color.NRGBA
30220 }))(obj)).MakeFootstepSnds
30221 switch n := read8(r); n {
30227 chk(fmt.Errorf("invalid bool: %d", n))
30231 p := &(*(*(struct {
30232 MaxHP uint16 // Player only.
30233 CollideWithNodes bool
30234 Weight float32 // deprecated
30238 VisualSize [3]float32
30240 SpriteSheetSize [2]int16 // in sprites.
30241 SpritePos [2]int16 // in sprite sheet.
30243 MakeFootstepSnds bool
30244 RotateSpeed float32 // in radians per second.
30246 Colors []color.NRGBA
30247 CollideWithAOs bool
30250 FaceRotateDirOff float32 // in degrees.
30253 NametagColor color.NRGBA
30254 FaceRotateSpeed float32 // in degrees per second.
30258 MaxBreath uint16 // Player only.
30259 EyeHeight float32 // Player only.
30260 ZoomFOV float32 // in degrees. Player only.
30261 UseTextureAlpha bool
30262 DmgTextureMod Texture // suffix
30265 NametagBG color.NRGBA
30266 }))(obj)).RotateSpeed
30267 *p = math.Float32frombits(read32(r))
30269 var local348 []uint8
30270 var local349 uint16
30275 (local348) = make([]uint8, local349)
30277 _, err := io.ReadFull(r, (local348)[:])
30281 MaxHP uint16 // Player only.
30282 CollideWithNodes bool
30283 Weight float32 // deprecated
30287 VisualSize [3]float32
30289 SpriteSheetSize [2]int16 // in sprites.
30290 SpritePos [2]int16 // in sprite sheet.
30292 MakeFootstepSnds bool
30293 RotateSpeed float32 // in radians per second.
30295 Colors []color.NRGBA
30296 CollideWithAOs bool
30299 FaceRotateDirOff float32 // in degrees.
30302 NametagColor color.NRGBA
30303 FaceRotateSpeed float32 // in degrees per second.
30307 MaxBreath uint16 // Player only.
30308 EyeHeight float32 // Player only.
30309 ZoomFOV float32 // in degrees. Player only.
30310 UseTextureAlpha bool
30311 DmgTextureMod Texture // suffix
30314 NametagBG color.NRGBA
30315 }))(obj)).Mesh) = string(local348)
30316 var local350 uint16
30322 MaxHP uint16 // Player only.
30323 CollideWithNodes bool
30324 Weight float32 // deprecated
30328 VisualSize [3]float32
30330 SpriteSheetSize [2]int16 // in sprites.
30331 SpritePos [2]int16 // in sprite sheet.
30333 MakeFootstepSnds bool
30334 RotateSpeed float32 // in radians per second.
30336 Colors []color.NRGBA
30337 CollideWithAOs bool
30340 FaceRotateDirOff float32 // in degrees.
30343 NametagColor color.NRGBA
30344 FaceRotateSpeed float32 // in degrees per second.
30348 MaxBreath uint16 // Player only.
30349 EyeHeight float32 // Player only.
30350 ZoomFOV float32 // in degrees. Player only.
30351 UseTextureAlpha bool
30352 DmgTextureMod Texture // suffix
30355 NametagBG color.NRGBA
30356 }))(obj)).Colors) = make([]color.NRGBA, local350)
30357 for local351 := range (*(*(struct {
30358 MaxHP uint16 // Player only.
30359 CollideWithNodes bool
30360 Weight float32 // deprecated
30364 VisualSize [3]float32
30366 SpriteSheetSize [2]int16 // in sprites.
30367 SpritePos [2]int16 // in sprite sheet.
30369 MakeFootstepSnds bool
30370 RotateSpeed float32 // in radians per second.
30372 Colors []color.NRGBA
30373 CollideWithAOs bool
30376 FaceRotateDirOff float32 // in degrees.
30379 NametagColor color.NRGBA
30380 FaceRotateSpeed float32 // in degrees per second.
30384 MaxBreath uint16 // Player only.
30385 EyeHeight float32 // Player only.
30386 ZoomFOV float32 // in degrees. Player only.
30387 UseTextureAlpha bool
30388 DmgTextureMod Texture // suffix
30391 NametagBG color.NRGBA
30394 p := &((*(*(struct {
30395 MaxHP uint16 // Player only.
30396 CollideWithNodes bool
30397 Weight float32 // deprecated
30401 VisualSize [3]float32
30403 SpriteSheetSize [2]int16 // in sprites.
30404 SpritePos [2]int16 // in sprite sheet.
30406 MakeFootstepSnds bool
30407 RotateSpeed float32 // in radians per second.
30409 Colors []color.NRGBA
30410 CollideWithAOs bool
30413 FaceRotateDirOff float32 // in degrees.
30416 NametagColor color.NRGBA
30417 FaceRotateSpeed float32 // in degrees per second.
30421 MaxBreath uint16 // Player only.
30422 EyeHeight float32 // Player only.
30423 ZoomFOV float32 // in degrees. Player only.
30424 UseTextureAlpha bool
30425 DmgTextureMod Texture // suffix
30428 NametagBG color.NRGBA
30429 }))(obj)).Colors)[local351]
30430 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30434 p := &(*(*(struct {
30435 MaxHP uint16 // Player only.
30436 CollideWithNodes bool
30437 Weight float32 // deprecated
30441 VisualSize [3]float32
30443 SpriteSheetSize [2]int16 // in sprites.
30444 SpritePos [2]int16 // in sprite sheet.
30446 MakeFootstepSnds bool
30447 RotateSpeed float32 // in radians per second.
30449 Colors []color.NRGBA
30450 CollideWithAOs bool
30453 FaceRotateDirOff float32 // in degrees.
30456 NametagColor color.NRGBA
30457 FaceRotateSpeed float32 // in degrees per second.
30461 MaxBreath uint16 // Player only.
30462 EyeHeight float32 // Player only.
30463 ZoomFOV float32 // in degrees. Player only.
30464 UseTextureAlpha bool
30465 DmgTextureMod Texture // suffix
30468 NametagBG color.NRGBA
30469 }))(obj)).CollideWithAOs
30470 switch n := read8(r); n {
30476 chk(fmt.Errorf("invalid bool: %d", n))
30480 p := &(*(*(struct {
30481 MaxHP uint16 // Player only.
30482 CollideWithNodes bool
30483 Weight float32 // deprecated
30487 VisualSize [3]float32
30489 SpriteSheetSize [2]int16 // in sprites.
30490 SpritePos [2]int16 // in sprite sheet.
30492 MakeFootstepSnds bool
30493 RotateSpeed float32 // in radians per second.
30495 Colors []color.NRGBA
30496 CollideWithAOs bool
30499 FaceRotateDirOff float32 // in degrees.
30502 NametagColor color.NRGBA
30503 FaceRotateSpeed float32 // in degrees per second.
30507 MaxBreath uint16 // Player only.
30508 EyeHeight float32 // Player only.
30509 ZoomFOV float32 // in degrees. Player only.
30510 UseTextureAlpha bool
30511 DmgTextureMod Texture // suffix
30514 NametagBG color.NRGBA
30515 }))(obj)).StepHeight
30516 *p = math.Float32frombits(read32(r))
30519 p := &(*(*(struct {
30520 MaxHP uint16 // Player only.
30521 CollideWithNodes bool
30522 Weight float32 // deprecated
30526 VisualSize [3]float32
30528 SpriteSheetSize [2]int16 // in sprites.
30529 SpritePos [2]int16 // in sprite sheet.
30531 MakeFootstepSnds bool
30532 RotateSpeed float32 // in radians per second.
30534 Colors []color.NRGBA
30535 CollideWithAOs bool
30538 FaceRotateDirOff float32 // in degrees.
30541 NametagColor color.NRGBA
30542 FaceRotateSpeed float32 // in degrees per second.
30546 MaxBreath uint16 // Player only.
30547 EyeHeight float32 // Player only.
30548 ZoomFOV float32 // in degrees. Player only.
30549 UseTextureAlpha bool
30550 DmgTextureMod Texture // suffix
30553 NametagBG color.NRGBA
30554 }))(obj)).FaceRotateDir
30555 switch n := read8(r); n {
30561 chk(fmt.Errorf("invalid bool: %d", n))
30565 p := &(*(*(struct {
30566 MaxHP uint16 // Player only.
30567 CollideWithNodes bool
30568 Weight float32 // deprecated
30572 VisualSize [3]float32
30574 SpriteSheetSize [2]int16 // in sprites.
30575 SpritePos [2]int16 // in sprite sheet.
30577 MakeFootstepSnds bool
30578 RotateSpeed float32 // in radians per second.
30580 Colors []color.NRGBA
30581 CollideWithAOs bool
30584 FaceRotateDirOff float32 // in degrees.
30587 NametagColor color.NRGBA
30588 FaceRotateSpeed float32 // in degrees per second.
30592 MaxBreath uint16 // Player only.
30593 EyeHeight float32 // Player only.
30594 ZoomFOV float32 // in degrees. Player only.
30595 UseTextureAlpha bool
30596 DmgTextureMod Texture // suffix
30599 NametagBG color.NRGBA
30600 }))(obj)).FaceRotateDirOff
30601 *p = math.Float32frombits(read32(r))
30604 p := &(*(*(struct {
30605 MaxHP uint16 // Player only.
30606 CollideWithNodes bool
30607 Weight float32 // deprecated
30611 VisualSize [3]float32
30613 SpriteSheetSize [2]int16 // in sprites.
30614 SpritePos [2]int16 // in sprite sheet.
30616 MakeFootstepSnds bool
30617 RotateSpeed float32 // in radians per second.
30619 Colors []color.NRGBA
30620 CollideWithAOs bool
30623 FaceRotateDirOff float32 // in degrees.
30626 NametagColor color.NRGBA
30627 FaceRotateSpeed float32 // in degrees per second.
30631 MaxBreath uint16 // Player only.
30632 EyeHeight float32 // Player only.
30633 ZoomFOV float32 // in degrees. Player only.
30634 UseTextureAlpha bool
30635 DmgTextureMod Texture // suffix
30638 NametagBG color.NRGBA
30639 }))(obj)).BackfaceCull
30640 switch n := read8(r); n {
30646 chk(fmt.Errorf("invalid bool: %d", n))
30649 var local352 []uint8
30650 var local353 uint16
30655 (local352) = make([]uint8, local353)
30657 _, err := io.ReadFull(r, (local352)[:])
30661 MaxHP uint16 // Player only.
30662 CollideWithNodes bool
30663 Weight float32 // deprecated
30667 VisualSize [3]float32
30669 SpriteSheetSize [2]int16 // in sprites.
30670 SpritePos [2]int16 // in sprite sheet.
30672 MakeFootstepSnds bool
30673 RotateSpeed float32 // in radians per second.
30675 Colors []color.NRGBA
30676 CollideWithAOs bool
30679 FaceRotateDirOff float32 // in degrees.
30682 NametagColor color.NRGBA
30683 FaceRotateSpeed float32 // in degrees per second.
30687 MaxBreath uint16 // Player only.
30688 EyeHeight float32 // Player only.
30689 ZoomFOV float32 // in degrees. Player only.
30690 UseTextureAlpha bool
30691 DmgTextureMod Texture // suffix
30694 NametagBG color.NRGBA
30695 }))(obj)).Nametag) = string(local352)
30697 p := &(*(*(struct {
30698 MaxHP uint16 // Player only.
30699 CollideWithNodes bool
30700 Weight float32 // deprecated
30704 VisualSize [3]float32
30706 SpriteSheetSize [2]int16 // in sprites.
30707 SpritePos [2]int16 // in sprite sheet.
30709 MakeFootstepSnds bool
30710 RotateSpeed float32 // in radians per second.
30712 Colors []color.NRGBA
30713 CollideWithAOs bool
30716 FaceRotateDirOff float32 // in degrees.
30719 NametagColor color.NRGBA
30720 FaceRotateSpeed float32 // in degrees per second.
30724 MaxBreath uint16 // Player only.
30725 EyeHeight float32 // Player only.
30726 ZoomFOV float32 // in degrees. Player only.
30727 UseTextureAlpha bool
30728 DmgTextureMod Texture // suffix
30731 NametagBG color.NRGBA
30732 }))(obj)).NametagColor
30733 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30736 p := &(*(*(struct {
30737 MaxHP uint16 // Player only.
30738 CollideWithNodes bool
30739 Weight float32 // deprecated
30743 VisualSize [3]float32
30745 SpriteSheetSize [2]int16 // in sprites.
30746 SpritePos [2]int16 // in sprite sheet.
30748 MakeFootstepSnds bool
30749 RotateSpeed float32 // in radians per second.
30751 Colors []color.NRGBA
30752 CollideWithAOs bool
30755 FaceRotateDirOff float32 // in degrees.
30758 NametagColor color.NRGBA
30759 FaceRotateSpeed float32 // in degrees per second.
30763 MaxBreath uint16 // Player only.
30764 EyeHeight float32 // Player only.
30765 ZoomFOV float32 // in degrees. Player only.
30766 UseTextureAlpha bool
30767 DmgTextureMod Texture // suffix
30770 NametagBG color.NRGBA
30771 }))(obj)).FaceRotateSpeed
30772 *p = math.Float32frombits(read32(r))
30774 var local354 []uint8
30775 var local355 uint16
30780 (local354) = make([]uint8, local355)
30782 _, err := io.ReadFull(r, (local354)[:])
30786 MaxHP uint16 // Player only.
30787 CollideWithNodes bool
30788 Weight float32 // deprecated
30792 VisualSize [3]float32
30794 SpriteSheetSize [2]int16 // in sprites.
30795 SpritePos [2]int16 // in sprite sheet.
30797 MakeFootstepSnds bool
30798 RotateSpeed float32 // in radians per second.
30800 Colors []color.NRGBA
30801 CollideWithAOs bool
30804 FaceRotateDirOff float32 // in degrees.
30807 NametagColor color.NRGBA
30808 FaceRotateSpeed float32 // in degrees per second.
30812 MaxBreath uint16 // Player only.
30813 EyeHeight float32 // Player only.
30814 ZoomFOV float32 // in degrees. Player only.
30815 UseTextureAlpha bool
30816 DmgTextureMod Texture // suffix
30819 NametagBG color.NRGBA
30820 }))(obj)).Infotext) = string(local354)
30821 var local356 []uint8
30822 var local357 uint16
30827 (local356) = make([]uint8, local357)
30829 _, err := io.ReadFull(r, (local356)[:])
30833 MaxHP uint16 // Player only.
30834 CollideWithNodes bool
30835 Weight float32 // deprecated
30839 VisualSize [3]float32
30841 SpriteSheetSize [2]int16 // in sprites.
30842 SpritePos [2]int16 // in sprite sheet.
30844 MakeFootstepSnds bool
30845 RotateSpeed float32 // in radians per second.
30847 Colors []color.NRGBA
30848 CollideWithAOs bool
30851 FaceRotateDirOff float32 // in degrees.
30854 NametagColor color.NRGBA
30855 FaceRotateSpeed float32 // in degrees per second.
30859 MaxBreath uint16 // Player only.
30860 EyeHeight float32 // Player only.
30861 ZoomFOV float32 // in degrees. Player only.
30862 UseTextureAlpha bool
30863 DmgTextureMod Texture // suffix
30866 NametagBG color.NRGBA
30867 }))(obj)).Itemstring) = string(local356)
30869 p := &(*(*(struct {
30870 MaxHP uint16 // Player only.
30871 CollideWithNodes bool
30872 Weight float32 // deprecated
30876 VisualSize [3]float32
30878 SpriteSheetSize [2]int16 // in sprites.
30879 SpritePos [2]int16 // in sprite sheet.
30881 MakeFootstepSnds bool
30882 RotateSpeed float32 // in radians per second.
30884 Colors []color.NRGBA
30885 CollideWithAOs bool
30888 FaceRotateDirOff float32 // in degrees.
30891 NametagColor color.NRGBA
30892 FaceRotateSpeed float32 // in degrees per second.
30896 MaxBreath uint16 // Player only.
30897 EyeHeight float32 // Player only.
30898 ZoomFOV float32 // in degrees. Player only.
30899 UseTextureAlpha bool
30900 DmgTextureMod Texture // suffix
30903 NametagBG color.NRGBA
30905 *p = int8(read8(r))
30908 p := &(*(*(struct {
30909 MaxHP uint16 // Player only.
30910 CollideWithNodes bool
30911 Weight float32 // deprecated
30915 VisualSize [3]float32
30917 SpriteSheetSize [2]int16 // in sprites.
30918 SpritePos [2]int16 // in sprite sheet.
30920 MakeFootstepSnds bool
30921 RotateSpeed float32 // in radians per second.
30923 Colors []color.NRGBA
30924 CollideWithAOs bool
30927 FaceRotateDirOff float32 // in degrees.
30930 NametagColor color.NRGBA
30931 FaceRotateSpeed float32 // in degrees per second.
30935 MaxBreath uint16 // Player only.
30936 EyeHeight float32 // Player only.
30937 ZoomFOV float32 // in degrees. Player only.
30938 UseTextureAlpha bool
30939 DmgTextureMod Texture // suffix
30942 NametagBG color.NRGBA
30943 }))(obj)).MaxBreath
30947 p := &(*(*(struct {
30948 MaxHP uint16 // Player only.
30949 CollideWithNodes bool
30950 Weight float32 // deprecated
30954 VisualSize [3]float32
30956 SpriteSheetSize [2]int16 // in sprites.
30957 SpritePos [2]int16 // in sprite sheet.
30959 MakeFootstepSnds bool
30960 RotateSpeed float32 // in radians per second.
30962 Colors []color.NRGBA
30963 CollideWithAOs bool
30966 FaceRotateDirOff float32 // in degrees.
30969 NametagColor color.NRGBA
30970 FaceRotateSpeed float32 // in degrees per second.
30974 MaxBreath uint16 // Player only.
30975 EyeHeight float32 // Player only.
30976 ZoomFOV float32 // in degrees. Player only.
30977 UseTextureAlpha bool
30978 DmgTextureMod Texture // suffix
30981 NametagBG color.NRGBA
30982 }))(obj)).EyeHeight
30983 *p = math.Float32frombits(read32(r))
30986 p := &(*(*(struct {
30987 MaxHP uint16 // Player only.
30988 CollideWithNodes bool
30989 Weight float32 // deprecated
30993 VisualSize [3]float32
30995 SpriteSheetSize [2]int16 // in sprites.
30996 SpritePos [2]int16 // in sprite sheet.
30998 MakeFootstepSnds bool
30999 RotateSpeed float32 // in radians per second.
31001 Colors []color.NRGBA
31002 CollideWithAOs bool
31005 FaceRotateDirOff float32 // in degrees.
31008 NametagColor color.NRGBA
31009 FaceRotateSpeed float32 // in degrees per second.
31013 MaxBreath uint16 // Player only.
31014 EyeHeight float32 // Player only.
31015 ZoomFOV float32 // in degrees. Player only.
31016 UseTextureAlpha bool
31017 DmgTextureMod Texture // suffix
31020 NametagBG color.NRGBA
31022 *p = math.Float32frombits(read32(r))
31025 p := &(*(*(struct {
31026 MaxHP uint16 // Player only.
31027 CollideWithNodes bool
31028 Weight float32 // deprecated
31032 VisualSize [3]float32
31034 SpriteSheetSize [2]int16 // in sprites.
31035 SpritePos [2]int16 // in sprite sheet.
31037 MakeFootstepSnds bool
31038 RotateSpeed float32 // in radians per second.
31040 Colors []color.NRGBA
31041 CollideWithAOs bool
31044 FaceRotateDirOff float32 // in degrees.
31047 NametagColor color.NRGBA
31048 FaceRotateSpeed float32 // in degrees per second.
31052 MaxBreath uint16 // Player only.
31053 EyeHeight float32 // Player only.
31054 ZoomFOV float32 // in degrees. Player only.
31055 UseTextureAlpha bool
31056 DmgTextureMod Texture // suffix
31059 NametagBG color.NRGBA
31060 }))(obj)).UseTextureAlpha
31061 switch n := read8(r); n {
31067 chk(fmt.Errorf("invalid bool: %d", n))
31070 if err := pcall(func() {
31072 MaxHP uint16 // Player only.
31073 CollideWithNodes bool
31074 Weight float32 // deprecated
31078 VisualSize [3]float32
31080 SpriteSheetSize [2]int16 // in sprites.
31081 SpritePos [2]int16 // in sprite sheet.
31083 MakeFootstepSnds bool
31084 RotateSpeed float32 // in radians per second.
31086 Colors []color.NRGBA
31087 CollideWithAOs bool
31090 FaceRotateDirOff float32 // in degrees.
31093 NametagColor color.NRGBA
31094 FaceRotateSpeed float32 // in degrees per second.
31098 MaxBreath uint16 // Player only.
31099 EyeHeight float32 // Player only.
31100 ZoomFOV float32 // in degrees. Player only.
31101 UseTextureAlpha bool
31102 DmgTextureMod Texture // suffix
31105 NametagBG color.NRGBA
31106 }))(obj)).DmgTextureMod).deserialize(r)
31111 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
31114 p := &(*(*(struct {
31115 MaxHP uint16 // Player only.
31116 CollideWithNodes bool
31117 Weight float32 // deprecated
31121 VisualSize [3]float32
31123 SpriteSheetSize [2]int16 // in sprites.
31124 SpritePos [2]int16 // in sprite sheet.
31126 MakeFootstepSnds bool
31127 RotateSpeed float32 // in radians per second.
31129 Colors []color.NRGBA
31130 CollideWithAOs bool
31133 FaceRotateDirOff float32 // in degrees.
31136 NametagColor color.NRGBA
31137 FaceRotateSpeed float32 // in degrees per second.
31141 MaxBreath uint16 // Player only.
31142 EyeHeight float32 // Player only.
31143 ZoomFOV float32 // in degrees. Player only.
31144 UseTextureAlpha bool
31145 DmgTextureMod Texture // suffix
31148 NametagBG color.NRGBA
31150 switch n := read8(r); n {
31156 chk(fmt.Errorf("invalid bool: %d", n))
31160 p := &(*(*(struct {
31161 MaxHP uint16 // Player only.
31162 CollideWithNodes bool
31163 Weight float32 // deprecated
31167 VisualSize [3]float32
31169 SpriteSheetSize [2]int16 // in sprites.
31170 SpritePos [2]int16 // in sprite sheet.
31172 MakeFootstepSnds bool
31173 RotateSpeed float32 // in radians per second.
31175 Colors []color.NRGBA
31176 CollideWithAOs bool
31179 FaceRotateDirOff float32 // in degrees.
31182 NametagColor color.NRGBA
31183 FaceRotateSpeed float32 // in degrees per second.
31187 MaxBreath uint16 // Player only.
31188 EyeHeight float32 // Player only.
31189 ZoomFOV float32 // in degrees. Player only.
31190 UseTextureAlpha bool
31191 DmgTextureMod Texture // suffix
31194 NametagBG color.NRGBA
31195 }))(obj)).ShowOnMinimap
31196 switch n := read8(r); n {
31202 chk(fmt.Errorf("invalid bool: %d", n))
31206 p := &(*(*(struct {
31207 MaxHP uint16 // Player only.
31208 CollideWithNodes bool
31209 Weight float32 // deprecated
31213 VisualSize [3]float32
31215 SpriteSheetSize [2]int16 // in sprites.
31216 SpritePos [2]int16 // in sprite sheet.
31218 MakeFootstepSnds bool
31219 RotateSpeed float32 // in radians per second.
31221 Colors []color.NRGBA
31222 CollideWithAOs bool
31225 FaceRotateDirOff float32 // in degrees.
31228 NametagColor color.NRGBA
31229 FaceRotateSpeed float32 // in degrees per second.
31233 MaxBreath uint16 // Player only.
31234 EyeHeight float32 // Player only.
31235 ZoomFOV float32 // in degrees. Player only.
31236 UseTextureAlpha bool
31237 DmgTextureMod Texture // suffix
31240 NametagBG color.NRGBA
31241 }))(obj)).NametagBG
31242 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31246 func (obj *AOPos) serialize(w io.Writer) {
31247 if err := pcall(func() {
31255 UpdateInterval float32
31256 }))(obj)).Pos).serialize(w)
31261 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
31263 if err := pcall(func() {
31271 UpdateInterval float32
31272 }))(obj)).Vel).serialize(w)
31277 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31279 if err := pcall(func() {
31287 UpdateInterval float32
31288 }))(obj)).Acc).serialize(w)
31293 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31295 for local358 := range (*(*(struct {
31302 UpdateInterval float32
31305 x := ((*(*(struct {
31312 UpdateInterval float32
31313 }))(obj)).Rot)[local358]
31314 write32(w, math.Float32bits(x))
31325 UpdateInterval float32
31326 }))(obj)).Interpolate
31341 UpdateInterval float32
31357 UpdateInterval float32
31358 }))(obj)).UpdateInterval
31359 write32(w, math.Float32bits(x))
31363 func (obj *AOPos) deserialize(r io.Reader) {
31364 if err := pcall(func() {
31372 UpdateInterval float32
31373 }))(obj)).Pos).deserialize(r)
31378 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
31380 if err := pcall(func() {
31388 UpdateInterval float32
31389 }))(obj)).Vel).deserialize(r)
31394 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31396 if err := pcall(func() {
31404 UpdateInterval float32
31405 }))(obj)).Acc).deserialize(r)
31410 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31412 for local359 := range (*(*(struct {
31419 UpdateInterval float32
31422 p := &((*(*(struct {
31429 UpdateInterval float32
31430 }))(obj)).Rot)[local359]
31431 *p = math.Float32frombits(read32(r))
31435 p := &(*(*(struct {
31442 UpdateInterval float32
31443 }))(obj)).Interpolate
31444 switch n := read8(r); n {
31450 chk(fmt.Errorf("invalid bool: %d", n))
31454 p := &(*(*(struct {
31461 UpdateInterval float32
31463 switch n := read8(r); n {
31469 chk(fmt.Errorf("invalid bool: %d", n))
31473 p := &(*(*(struct {
31480 UpdateInterval float32
31481 }))(obj)).UpdateInterval
31482 *p = math.Float32frombits(read32(r))
31486 func (obj *AOSprite) serialize(w io.Writer) {
31487 for local360 := range (*(*(struct {
31490 FrameDuration float32
31491 ViewAngleFrames bool
31494 x := ((*(*(struct {
31497 FrameDuration float32
31498 ViewAngleFrames bool
31499 }))(obj)).Frame0)[local360]
31500 write16(w, uint16(x))
31507 FrameDuration float32
31508 ViewAngleFrames bool
31510 write16(w, uint16(x))
31516 FrameDuration float32
31517 ViewAngleFrames bool
31518 }))(obj)).FrameDuration
31519 write32(w, math.Float32bits(x))
31525 FrameDuration float32
31526 ViewAngleFrames bool
31527 }))(obj)).ViewAngleFrames
31536 func (obj *AOSprite) deserialize(r io.Reader) {
31537 for local361 := range (*(*(struct {
31540 FrameDuration float32
31541 ViewAngleFrames bool
31544 p := &((*(*(struct {
31547 FrameDuration float32
31548 ViewAngleFrames bool
31549 }))(obj)).Frame0)[local361]
31550 *p = int16(read16(r))
31554 p := &(*(*(struct {
31557 FrameDuration float32
31558 ViewAngleFrames bool
31563 p := &(*(*(struct {
31566 FrameDuration float32
31567 ViewAngleFrames bool
31568 }))(obj)).FrameDuration
31569 *p = math.Float32frombits(read32(r))
31572 p := &(*(*(struct {
31575 FrameDuration float32
31576 ViewAngleFrames bool
31577 }))(obj)).ViewAngleFrames
31578 switch n := read8(r); n {
31584 chk(fmt.Errorf("invalid bool: %d", n))
31589 func (obj *Group) serialize(w io.Writer) {
31590 if len(([]byte((*(*(struct {
31593 }))(obj)).Name))) > math.MaxUint16 {
31597 x := uint16(len(([]byte((*(*(struct {
31601 write16(w, uint16(x))
31604 _, err := w.Write(([]byte((*(*(struct {
31607 }))(obj)).Name))[:])
31615 write16(w, uint16(x))
31619 func (obj *Group) deserialize(r io.Reader) {
31620 var local362 []uint8
31621 var local363 uint16
31626 (local362) = make([]uint8, local363)
31628 _, err := io.ReadFull(r, (local362)[:])
31634 }))(obj)).Name) = string(local362)
31636 p := &(*(*(struct {
31640 *p = int16(read16(r))
31644 func (obj *AOAnim) serialize(w io.Writer) {
31645 for local364 := range (*(*(struct {
31652 x := ((*(*(struct {
31657 }))(obj)).Frames)[local364]
31658 write32(w, uint32(x))
31668 write32(w, math.Float32bits(x))
31677 write32(w, math.Float32bits(x))
31694 func (obj *AOAnim) deserialize(r io.Reader) {
31695 for local365 := range (*(*(struct {
31702 p := &((*(*(struct {
31707 }))(obj)).Frames)[local365]
31708 *p = int32(read32(r))
31712 p := &(*(*(struct {
31718 *p = math.Float32frombits(read32(r))
31721 p := &(*(*(struct {
31727 *p = math.Float32frombits(read32(r))
31730 p := &(*(*(struct {
31736 switch n := read8(r); n {
31742 chk(fmt.Errorf("invalid bool: %d", n))
31747 func (obj *AOBonePos) serialize(w io.Writer) {
31748 if err := pcall(func() {
31752 }))(obj)).Pos).serialize(w)
31757 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31759 for local366 := range (*(*(struct {
31764 x := ((*(*(struct {
31767 }))(obj)).Rot)[local366]
31768 write32(w, math.Float32bits(x))
31773 func (obj *AOBonePos) deserialize(r io.Reader) {
31774 if err := pcall(func() {
31778 }))(obj)).Pos).deserialize(r)
31783 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31785 for local367 := range (*(*(struct {
31790 p := &((*(*(struct {
31793 }))(obj)).Rot)[local367]
31794 *p = math.Float32frombits(read32(r))
31799 func (obj *AOAttach) serialize(w io.Writer) {
31800 if err := pcall(func() {
31807 }))(obj)).ParentID).serialize(w)
31812 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31814 if len(([]byte((*(*(struct {
31820 }))(obj)).Bone))) > math.MaxUint16 {
31824 x := uint16(len(([]byte((*(*(struct {
31831 write16(w, uint16(x))
31834 _, err := w.Write(([]byte((*(*(struct {
31840 }))(obj)).Bone))[:])
31843 if err := pcall(func() {
31850 }))(obj)).Pos).serialize(w)
31855 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31857 for local368 := range (*(*(struct {
31865 x := ((*(*(struct {
31871 }))(obj)).Rot)[local368]
31872 write32(w, math.Float32bits(x))
31882 }))(obj)).ForceVisible
31891 func (obj *AOAttach) deserialize(r io.Reader) {
31892 if err := pcall(func() {
31899 }))(obj)).ParentID).deserialize(r)
31904 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31906 var local369 []uint8
31907 var local370 uint16
31912 (local369) = make([]uint8, local370)
31914 _, err := io.ReadFull(r, (local369)[:])
31923 }))(obj)).Bone) = string(local369)
31924 if err := pcall(func() {
31931 }))(obj)).Pos).deserialize(r)
31936 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31938 for local371 := range (*(*(struct {
31946 p := &((*(*(struct {
31952 }))(obj)).Rot)[local371]
31953 *p = math.Float32frombits(read32(r))
31957 p := &(*(*(struct {
31963 }))(obj)).ForceVisible
31964 switch n := read8(r); n {
31970 chk(fmt.Errorf("invalid bool: %d", n))
31975 func (obj *AOPhysOverride) serialize(w io.Writer) {
31978 Walk, Jump, Gravity float32
31981 NoSneak, NoSneakGlitch, OldSneak bool
31983 write32(w, math.Float32bits(x))
31987 Walk, Jump, Gravity float32
31990 NoSneak, NoSneakGlitch, OldSneak bool
31992 write32(w, math.Float32bits(x))
31996 Walk, Jump, Gravity float32
31999 NoSneak, NoSneakGlitch, OldSneak bool
32001 write32(w, math.Float32bits(x))
32005 Walk, Jump, Gravity float32
32008 NoSneak, NoSneakGlitch, OldSneak bool
32018 Walk, Jump, Gravity float32
32021 NoSneak, NoSneakGlitch, OldSneak bool
32022 }))(obj)).NoSneakGlitch
32031 Walk, Jump, Gravity float32
32034 NoSneak, NoSneakGlitch, OldSneak bool
32044 func (obj *AOPhysOverride) deserialize(r io.Reader) {
32046 p := &(*(*(struct {
32047 Walk, Jump, Gravity float32
32050 NoSneak, NoSneakGlitch, OldSneak bool
32052 *p = math.Float32frombits(read32(r))
32055 p := &(*(*(struct {
32056 Walk, Jump, Gravity float32
32059 NoSneak, NoSneakGlitch, OldSneak bool
32061 *p = math.Float32frombits(read32(r))
32064 p := &(*(*(struct {
32065 Walk, Jump, Gravity float32
32068 NoSneak, NoSneakGlitch, OldSneak bool
32070 *p = math.Float32frombits(read32(r))
32073 p := &(*(*(struct {
32074 Walk, Jump, Gravity float32
32077 NoSneak, NoSneakGlitch, OldSneak bool
32079 switch n := read8(r); n {
32085 chk(fmt.Errorf("invalid bool: %d", n))
32089 p := &(*(*(struct {
32090 Walk, Jump, Gravity float32
32093 NoSneak, NoSneakGlitch, OldSneak bool
32094 }))(obj)).NoSneakGlitch
32095 switch n := read8(r); n {
32101 chk(fmt.Errorf("invalid bool: %d", n))
32105 p := &(*(*(struct {
32106 Walk, Jump, Gravity float32
32109 NoSneak, NoSneakGlitch, OldSneak bool
32111 switch n := read8(r); n {
32117 chk(fmt.Errorf("invalid bool: %d", n))
32122 func (obj *aoType) serialize(w io.Writer) {
32124 x := *(*(uint8))(obj)
32125 write8(w, uint8(x))
32129 func (obj *aoType) deserialize(r io.Reader) {
32131 p := &*(*(uint8))(obj)
32136 func (obj *NodeMetaField) serialize(w io.Writer) {
32137 if err := pcall(func() {
32141 }))(obj)).Field).serialize(w)
32146 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
32161 func (obj *NodeMetaField) deserialize(r io.Reader) {
32162 if err := pcall(func() {
32166 }))(obj)).Field).deserialize(r)
32171 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
32174 p := &(*(*(struct {
32178 switch n := read8(r); n {
32184 chk(fmt.Errorf("invalid bool: %d", n))
32189 func (obj *MinimapType) serialize(w io.Writer) {
32191 x := *(*(uint16))(obj)
32192 write16(w, uint16(x))
32196 func (obj *MinimapType) deserialize(r io.Reader) {
32198 p := &*(*(uint16))(obj)
32203 func (obj *Param1Type) serialize(w io.Writer) {
32205 x := *(*(uint8))(obj)
32206 write8(w, uint8(x))
32210 func (obj *Param1Type) deserialize(r io.Reader) {
32212 p := &*(*(uint8))(obj)
32217 func (obj *Param2Type) serialize(w io.Writer) {
32219 x := *(*(uint8))(obj)
32220 write8(w, uint8(x))
32224 func (obj *Param2Type) deserialize(r io.Reader) {
32226 p := &*(*(uint8))(obj)
32231 func (obj *DrawType) serialize(w io.Writer) {
32233 x := *(*(uint8))(obj)
32234 write8(w, uint8(x))
32238 func (obj *DrawType) deserialize(r io.Reader) {
32240 p := &*(*(uint8))(obj)
32245 func (obj *TileDef) serialize(w io.Writer) {
32247 local372 := uint8(6)
32250 write8(w, uint8(x))
32253 if err := pcall(func() {
32259 //mt:if %s.Flags&TileColor != 0
32262 //mt:if %s.Flags&TileScale != 0
32265 //mt:if %s.Flags&TileAlign != 0
32267 }))(obj)).Texture).serialize(w)
32272 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
32274 if err := pcall(func() {
32280 //mt:if %s.Flags&TileColor != 0
32283 //mt:if %s.Flags&TileScale != 0
32286 //mt:if %s.Flags&TileAlign != 0
32288 }))(obj)).Anim).serialize(w)
32293 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
32295 if err := pcall(func() {
32301 //mt:if %s.Flags&TileColor != 0
32304 //mt:if %s.Flags&TileScale != 0
32307 //mt:if %s.Flags&TileAlign != 0
32309 }))(obj)).Flags).serialize(w)
32314 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
32321 //mt:if %s.Flags&TileColor != 0
32324 //mt:if %s.Flags&TileScale != 0
32327 //mt:if %s.Flags&TileAlign != 0
32329 }))(obj)).Flags&TileColor != 0 {
32336 //mt:if %s.Flags&TileColor != 0
32339 //mt:if %s.Flags&TileScale != 0
32342 //mt:if %s.Flags&TileAlign != 0
32345 write8(w, uint8(x))
32353 //mt:if %s.Flags&TileColor != 0
32356 //mt:if %s.Flags&TileScale != 0
32359 //mt:if %s.Flags&TileAlign != 0
32362 write8(w, uint8(x))
32370 //mt:if %s.Flags&TileColor != 0
32373 //mt:if %s.Flags&TileScale != 0
32376 //mt:if %s.Flags&TileAlign != 0
32379 write8(w, uint8(x))
32387 //mt:if %s.Flags&TileColor != 0
32390 //mt:if %s.Flags&TileScale != 0
32393 //mt:if %s.Flags&TileAlign != 0
32395 }))(obj)).Flags&TileScale != 0 {
32402 //mt:if %s.Flags&TileColor != 0
32405 //mt:if %s.Flags&TileScale != 0
32408 //mt:if %s.Flags&TileAlign != 0
32411 write8(w, uint8(x))
32419 //mt:if %s.Flags&TileColor != 0
32422 //mt:if %s.Flags&TileScale != 0
32425 //mt:if %s.Flags&TileAlign != 0
32427 }))(obj)).Flags&TileAlign != 0 {
32428 if err := pcall(func() {
32434 //mt:if %s.Flags&TileColor != 0
32437 //mt:if %s.Flags&TileScale != 0
32440 //mt:if %s.Flags&TileAlign != 0
32442 }))(obj)).Align).serialize(w)
32447 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
32452 func (obj *TileDef) deserialize(r io.Reader) {
32455 local374 := uint8(6)
32460 if local373 != local374 {
32461 chk(fmt.Errorf("const %v: %v", "uint8(6)", local373))
32464 if err := pcall(func() {
32470 //mt:if %s.Flags&TileColor != 0
32473 //mt:if %s.Flags&TileScale != 0
32476 //mt:if %s.Flags&TileAlign != 0
32478 }))(obj)).Texture).deserialize(r)
32483 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
32485 if err := pcall(func() {
32491 //mt:if %s.Flags&TileColor != 0
32494 //mt:if %s.Flags&TileScale != 0
32497 //mt:if %s.Flags&TileAlign != 0
32499 }))(obj)).Anim).deserialize(r)
32504 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
32506 if err := pcall(func() {
32512 //mt:if %s.Flags&TileColor != 0
32515 //mt:if %s.Flags&TileScale != 0
32518 //mt:if %s.Flags&TileAlign != 0
32520 }))(obj)).Flags).deserialize(r)
32525 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
32532 //mt:if %s.Flags&TileColor != 0
32535 //mt:if %s.Flags&TileScale != 0
32538 //mt:if %s.Flags&TileAlign != 0
32540 }))(obj)).Flags&TileColor != 0 {
32542 p := &(*(*(struct {
32547 //mt:if %s.Flags&TileColor != 0
32550 //mt:if %s.Flags&TileScale != 0
32553 //mt:if %s.Flags&TileAlign != 0
32559 p := &(*(*(struct {
32564 //mt:if %s.Flags&TileColor != 0
32567 //mt:if %s.Flags&TileScale != 0
32570 //mt:if %s.Flags&TileAlign != 0
32576 p := &(*(*(struct {
32581 //mt:if %s.Flags&TileColor != 0
32584 //mt:if %s.Flags&TileScale != 0
32587 //mt:if %s.Flags&TileAlign != 0
32598 //mt:if %s.Flags&TileColor != 0
32601 //mt:if %s.Flags&TileScale != 0
32604 //mt:if %s.Flags&TileAlign != 0
32606 }))(obj)).Flags&TileScale != 0 {
32608 p := &(*(*(struct {
32613 //mt:if %s.Flags&TileColor != 0
32616 //mt:if %s.Flags&TileScale != 0
32619 //mt:if %s.Flags&TileAlign != 0
32630 //mt:if %s.Flags&TileColor != 0
32633 //mt:if %s.Flags&TileScale != 0
32636 //mt:if %s.Flags&TileAlign != 0
32638 }))(obj)).Flags&TileAlign != 0 {
32639 if err := pcall(func() {
32645 //mt:if %s.Flags&TileColor != 0
32648 //mt:if %s.Flags&TileScale != 0
32651 //mt:if %s.Flags&TileAlign != 0
32653 }))(obj)).Align).deserialize(r)
32658 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
32663 func (obj *WaveType) serialize(w io.Writer) {
32665 x := *(*(uint8))(obj)
32666 write8(w, uint8(x))
32670 func (obj *WaveType) deserialize(r io.Reader) {
32672 p := &*(*(uint8))(obj)
32677 func (obj *LiquidType) serialize(w io.Writer) {
32679 x := *(*(uint8))(obj)
32680 write8(w, uint8(x))
32684 func (obj *LiquidType) deserialize(r io.Reader) {
32686 p := &*(*(uint8))(obj)
32691 func (obj *NodeBox) serialize(w io.Writer) {
32693 local375 := uint8(6)
32696 write8(w, uint8(x))
32699 if err := pcall(func() {
32703 //mt:if %s.Type == MountedBox
32704 WallTop, WallBot, WallSides Box
32706 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32709 //mt:if %s.Type == ConnectedBox
32710 ConnDirs, DiscoDirs DirBoxes
32711 DiscoAll, DiscoSides []Box
32712 }))(obj)).Type).serialize(w)
32717 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
32722 //mt:if %s.Type == MountedBox
32723 WallTop, WallBot, WallSides Box
32725 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32728 //mt:if %s.Type == ConnectedBox
32729 ConnDirs, DiscoDirs DirBoxes
32730 DiscoAll, DiscoSides []Box
32731 }))(obj)).Type < maxBox) {
32732 chk(errors.New("assertion failed: %s.Type < maxBox"))
32737 //mt:if %s.Type == MountedBox
32738 WallTop, WallBot, WallSides Box
32740 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32743 //mt:if %s.Type == ConnectedBox
32744 ConnDirs, DiscoDirs DirBoxes
32745 DiscoAll, DiscoSides []Box
32746 }))(obj)).Type == MountedBox {
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)).WallTop).serialize(w)
32765 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32767 if err := pcall(func() {
32771 //mt:if %s.Type == MountedBox
32772 WallTop, WallBot, WallSides Box
32774 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32777 //mt:if %s.Type == ConnectedBox
32778 ConnDirs, DiscoDirs DirBoxes
32779 DiscoAll, DiscoSides []Box
32780 }))(obj)).WallBot).serialize(w)
32785 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32787 if err := pcall(func() {
32791 //mt:if %s.Type == MountedBox
32792 WallTop, WallBot, WallSides Box
32794 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32797 //mt:if %s.Type == ConnectedBox
32798 ConnDirs, DiscoDirs DirBoxes
32799 DiscoAll, DiscoSides []Box
32800 }))(obj)).WallSides).serialize(w)
32805 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32808 if t := (*(*(struct {
32811 //mt:if %s.Type == MountedBox
32812 WallTop, WallBot, WallSides Box
32814 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32817 //mt:if %s.Type == ConnectedBox
32818 ConnDirs, DiscoDirs DirBoxes
32819 DiscoAll, DiscoSides []Box
32820 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32821 if len(((*(*(struct {
32824 //mt:if %s.Type == MountedBox
32825 WallTop, WallBot, WallSides Box
32827 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32830 //mt:if %s.Type == ConnectedBox
32831 ConnDirs, DiscoDirs DirBoxes
32832 DiscoAll, DiscoSides []Box
32833 }))(obj)).Fixed)) > math.MaxUint16 {
32837 x := uint16(len(((*(*(struct {
32840 //mt:if %s.Type == MountedBox
32841 WallTop, WallBot, WallSides Box
32843 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32846 //mt:if %s.Type == ConnectedBox
32847 ConnDirs, DiscoDirs DirBoxes
32848 DiscoAll, DiscoSides []Box
32850 write16(w, uint16(x))
32852 for local376 := range (*(*(struct {
32855 //mt:if %s.Type == MountedBox
32856 WallTop, WallBot, WallSides Box
32858 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32861 //mt:if %s.Type == ConnectedBox
32862 ConnDirs, DiscoDirs DirBoxes
32863 DiscoAll, DiscoSides []Box
32865 if err := pcall(func() {
32869 //mt:if %s.Type == MountedBox
32870 WallTop, WallBot, WallSides Box
32872 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32875 //mt:if %s.Type == ConnectedBox
32876 ConnDirs, DiscoDirs DirBoxes
32877 DiscoAll, DiscoSides []Box
32878 }))(obj)).Fixed)[local376]).serialize(w)
32883 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
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
32899 }))(obj)).Type == ConnectedBox {
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)).ConnDirs).serialize(w)
32918 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32920 if err := pcall(func() {
32924 //mt:if %s.Type == MountedBox
32925 WallTop, WallBot, WallSides Box
32927 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32930 //mt:if %s.Type == ConnectedBox
32931 ConnDirs, DiscoDirs DirBoxes
32932 DiscoAll, DiscoSides []Box
32933 }))(obj)).DiscoDirs).serialize(w)
32938 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32940 if len(((*(*(struct {
32943 //mt:if %s.Type == MountedBox
32944 WallTop, WallBot, WallSides Box
32946 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32949 //mt:if %s.Type == ConnectedBox
32950 ConnDirs, DiscoDirs DirBoxes
32951 DiscoAll, DiscoSides []Box
32952 }))(obj)).DiscoAll)) > math.MaxUint16 {
32956 x := uint16(len(((*(*(struct {
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)).DiscoAll)))
32969 write16(w, uint16(x))
32971 for local377 := range (*(*(struct {
32974 //mt:if %s.Type == MountedBox
32975 WallTop, WallBot, WallSides Box
32977 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32980 //mt:if %s.Type == ConnectedBox
32981 ConnDirs, DiscoDirs DirBoxes
32982 DiscoAll, DiscoSides []Box
32983 }))(obj)).DiscoAll {
32984 if err := pcall(func() {
32988 //mt:if %s.Type == MountedBox
32989 WallTop, WallBot, WallSides Box
32991 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32994 //mt:if %s.Type == ConnectedBox
32995 ConnDirs, DiscoDirs DirBoxes
32996 DiscoAll, DiscoSides []Box
32997 }))(obj)).DiscoAll)[local377]).serialize(w)
33002 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33005 if len(((*(*(struct {
33008 //mt:if %s.Type == MountedBox
33009 WallTop, WallBot, WallSides Box
33011 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33014 //mt:if %s.Type == ConnectedBox
33015 ConnDirs, DiscoDirs DirBoxes
33016 DiscoAll, DiscoSides []Box
33017 }))(obj)).DiscoSides)) > math.MaxUint16 {
33021 x := uint16(len(((*(*(struct {
33024 //mt:if %s.Type == MountedBox
33025 WallTop, WallBot, WallSides Box
33027 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33030 //mt:if %s.Type == ConnectedBox
33031 ConnDirs, DiscoDirs DirBoxes
33032 DiscoAll, DiscoSides []Box
33033 }))(obj)).DiscoSides)))
33034 write16(w, uint16(x))
33036 for local378 := range (*(*(struct {
33039 //mt:if %s.Type == MountedBox
33040 WallTop, WallBot, WallSides Box
33042 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33045 //mt:if %s.Type == ConnectedBox
33046 ConnDirs, DiscoDirs DirBoxes
33047 DiscoAll, DiscoSides []Box
33048 }))(obj)).DiscoSides {
33049 if err := pcall(func() {
33053 //mt:if %s.Type == MountedBox
33054 WallTop, WallBot, WallSides Box
33056 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33059 //mt:if %s.Type == ConnectedBox
33060 ConnDirs, DiscoDirs DirBoxes
33061 DiscoAll, DiscoSides []Box
33062 }))(obj)).DiscoSides)[local378]).serialize(w)
33067 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33073 func (obj *NodeBox) deserialize(r io.Reader) {
33076 local380 := uint8(6)
33081 if local379 != local380 {
33082 chk(fmt.Errorf("const %v: %v", "uint8(6)", local379))
33085 if err := pcall(func() {
33089 //mt:if %s.Type == MountedBox
33090 WallTop, WallBot, WallSides Box
33092 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33095 //mt:if %s.Type == ConnectedBox
33096 ConnDirs, DiscoDirs DirBoxes
33097 DiscoAll, DiscoSides []Box
33098 }))(obj)).Type).deserialize(r)
33103 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
33108 //mt:if %s.Type == MountedBox
33109 WallTop, WallBot, WallSides Box
33111 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33114 //mt:if %s.Type == ConnectedBox
33115 ConnDirs, DiscoDirs DirBoxes
33116 DiscoAll, DiscoSides []Box
33117 }))(obj)).Type < maxBox) {
33118 chk(errors.New("assertion failed: %s.Type < maxBox"))
33123 //mt:if %s.Type == MountedBox
33124 WallTop, WallBot, WallSides Box
33126 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33129 //mt:if %s.Type == ConnectedBox
33130 ConnDirs, DiscoDirs DirBoxes
33131 DiscoAll, DiscoSides []Box
33132 }))(obj)).Type == MountedBox {
33133 if err := pcall(func() {
33137 //mt:if %s.Type == MountedBox
33138 WallTop, WallBot, WallSides Box
33140 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33143 //mt:if %s.Type == ConnectedBox
33144 ConnDirs, DiscoDirs DirBoxes
33145 DiscoAll, DiscoSides []Box
33146 }))(obj)).WallTop).deserialize(r)
33151 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33153 if err := pcall(func() {
33157 //mt:if %s.Type == MountedBox
33158 WallTop, WallBot, WallSides Box
33160 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33163 //mt:if %s.Type == ConnectedBox
33164 ConnDirs, DiscoDirs DirBoxes
33165 DiscoAll, DiscoSides []Box
33166 }))(obj)).WallBot).deserialize(r)
33171 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33173 if err := pcall(func() {
33177 //mt:if %s.Type == MountedBox
33178 WallTop, WallBot, WallSides Box
33180 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33183 //mt:if %s.Type == ConnectedBox
33184 ConnDirs, DiscoDirs DirBoxes
33185 DiscoAll, DiscoSides []Box
33186 }))(obj)).WallSides).deserialize(r)
33191 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33194 if t := (*(*(struct {
33197 //mt:if %s.Type == MountedBox
33198 WallTop, WallBot, WallSides Box
33200 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33203 //mt:if %s.Type == ConnectedBox
33204 ConnDirs, DiscoDirs DirBoxes
33205 DiscoAll, DiscoSides []Box
33206 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33207 var local381 uint16
33215 //mt:if %s.Type == MountedBox
33216 WallTop, WallBot, WallSides Box
33218 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33221 //mt:if %s.Type == ConnectedBox
33222 ConnDirs, DiscoDirs DirBoxes
33223 DiscoAll, DiscoSides []Box
33224 }))(obj)).Fixed) = make([]Box, local381)
33225 for local382 := range (*(*(struct {
33228 //mt:if %s.Type == MountedBox
33229 WallTop, WallBot, WallSides Box
33231 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33234 //mt:if %s.Type == ConnectedBox
33235 ConnDirs, DiscoDirs DirBoxes
33236 DiscoAll, DiscoSides []Box
33238 if err := pcall(func() {
33242 //mt:if %s.Type == MountedBox
33243 WallTop, WallBot, WallSides Box
33245 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33248 //mt:if %s.Type == ConnectedBox
33249 ConnDirs, DiscoDirs DirBoxes
33250 DiscoAll, DiscoSides []Box
33251 }))(obj)).Fixed)[local382]).deserialize(r)
33256 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33263 //mt:if %s.Type == MountedBox
33264 WallTop, WallBot, WallSides Box
33266 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33269 //mt:if %s.Type == ConnectedBox
33270 ConnDirs, DiscoDirs DirBoxes
33271 DiscoAll, DiscoSides []Box
33272 }))(obj)).Type == ConnectedBox {
33273 if err := pcall(func() {
33277 //mt:if %s.Type == MountedBox
33278 WallTop, WallBot, WallSides Box
33280 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33283 //mt:if %s.Type == ConnectedBox
33284 ConnDirs, DiscoDirs DirBoxes
33285 DiscoAll, DiscoSides []Box
33286 }))(obj)).ConnDirs).deserialize(r)
33291 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
33293 if err := pcall(func() {
33297 //mt:if %s.Type == MountedBox
33298 WallTop, WallBot, WallSides Box
33300 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33303 //mt:if %s.Type == ConnectedBox
33304 ConnDirs, DiscoDirs DirBoxes
33305 DiscoAll, DiscoSides []Box
33306 }))(obj)).DiscoDirs).deserialize(r)
33311 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
33313 var local383 uint16
33321 //mt:if %s.Type == MountedBox
33322 WallTop, WallBot, WallSides Box
33324 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33327 //mt:if %s.Type == ConnectedBox
33328 ConnDirs, DiscoDirs DirBoxes
33329 DiscoAll, DiscoSides []Box
33330 }))(obj)).DiscoAll) = make([]Box, local383)
33331 for local384 := range (*(*(struct {
33334 //mt:if %s.Type == MountedBox
33335 WallTop, WallBot, WallSides Box
33337 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33340 //mt:if %s.Type == ConnectedBox
33341 ConnDirs, DiscoDirs DirBoxes
33342 DiscoAll, DiscoSides []Box
33343 }))(obj)).DiscoAll {
33344 if err := pcall(func() {
33348 //mt:if %s.Type == MountedBox
33349 WallTop, WallBot, WallSides Box
33351 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33354 //mt:if %s.Type == ConnectedBox
33355 ConnDirs, DiscoDirs DirBoxes
33356 DiscoAll, DiscoSides []Box
33357 }))(obj)).DiscoAll)[local384]).deserialize(r)
33362 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33365 var local385 uint16
33373 //mt:if %s.Type == MountedBox
33374 WallTop, WallBot, WallSides Box
33376 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33379 //mt:if %s.Type == ConnectedBox
33380 ConnDirs, DiscoDirs DirBoxes
33381 DiscoAll, DiscoSides []Box
33382 }))(obj)).DiscoSides) = make([]Box, local385)
33383 for local386 := range (*(*(struct {
33386 //mt:if %s.Type == MountedBox
33387 WallTop, WallBot, WallSides Box
33389 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33392 //mt:if %s.Type == ConnectedBox
33393 ConnDirs, DiscoDirs DirBoxes
33394 DiscoAll, DiscoSides []Box
33395 }))(obj)).DiscoSides {
33396 if err := pcall(func() {
33400 //mt:if %s.Type == MountedBox
33401 WallTop, WallBot, WallSides Box
33403 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33406 //mt:if %s.Type == ConnectedBox
33407 ConnDirs, DiscoDirs DirBoxes
33408 DiscoAll, DiscoSides []Box
33409 }))(obj)).DiscoSides)[local386]).deserialize(r)
33414 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
33420 func (obj *SoundDef) serialize(w io.Writer) {
33421 if len(([]byte((*(*(struct {
33423 Gain, Pitch, Fade float32
33424 }))(obj)).Name))) > math.MaxUint16 {
33428 x := uint16(len(([]byte((*(*(struct {
33430 Gain, Pitch, Fade float32
33432 write16(w, uint16(x))
33435 _, err := w.Write(([]byte((*(*(struct {
33437 Gain, Pitch, Fade float32
33438 }))(obj)).Name))[:])
33444 Gain, Pitch, Fade float32
33446 write32(w, math.Float32bits(x))
33451 Gain, Pitch, Fade float32
33453 write32(w, math.Float32bits(x))
33458 Gain, Pitch, Fade float32
33460 write32(w, math.Float32bits(x))
33464 func (obj *SoundDef) deserialize(r io.Reader) {
33465 var local387 []uint8
33466 var local388 uint16
33471 (local387) = make([]uint8, local388)
33473 _, err := io.ReadFull(r, (local387)[:])
33478 Gain, Pitch, Fade float32
33479 }))(obj)).Name) = string(local387)
33481 p := &(*(*(struct {
33483 Gain, Pitch, Fade float32
33485 *p = math.Float32frombits(read32(r))
33488 p := &(*(*(struct {
33490 Gain, Pitch, Fade float32
33492 *p = math.Float32frombits(read32(r))
33495 p := &(*(*(struct {
33497 Gain, Pitch, Fade float32
33499 *p = math.Float32frombits(read32(r))
33503 func (obj *AlphaUse) serialize(w io.Writer) {
33505 x := *(*(uint8))(obj)
33506 write8(w, uint8(x))
33510 func (obj *AlphaUse) deserialize(r io.Reader) {
33512 p := &*(*(uint8))(obj)
33517 func (obj *Keys) serialize(w io.Writer) {
33519 x := *(*(uint32))(obj)
33520 write32(w, uint32(x))
33524 func (obj *Keys) deserialize(r io.Reader) {
33526 p := &*(*(uint32))(obj)
33531 func (obj *MapBlkFlags) serialize(w io.Writer) {
33533 x := *(*(uint8))(obj)
33534 write8(w, uint8(x))
33538 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33540 p := &*(*(uint8))(obj)
33545 func (obj *LitFromBlks) serialize(w io.Writer) {
33547 x := *(*(uint16))(obj)
33548 write16(w, uint16(x))
33552 func (obj *LitFromBlks) deserialize(r io.Reader) {
33554 p := &*(*(uint16))(obj)
33559 func (obj *AOInitData) serialize(w io.Writer) {
33561 local389 := uint8(1)
33564 write8(w, uint8(x))
33567 if len(([]byte((*(*(struct {
33580 // See (de)serialize.fmt.
33582 }))(obj)).Name))) > math.MaxUint16 {
33586 x := uint16(len(([]byte((*(*(struct {
33599 // See (de)serialize.fmt.
33602 write16(w, uint16(x))
33605 _, err := w.Write(([]byte((*(*(struct {
33618 // See (de)serialize.fmt.
33620 }))(obj)).Name))[:])
33637 // See (de)serialize.fmt.
33646 if err := pcall(func() {
33660 // See (de)serialize.fmt.
33662 }))(obj)).ID).serialize(w)
33667 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33669 if err := pcall(func() {
33683 // See (de)serialize.fmt.
33685 }))(obj)).Pos).serialize(w)
33690 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33692 for local390 := range (*(*(struct {
33705 // See (de)serialize.fmt.
33709 x := ((*(*(struct {
33722 // See (de)serialize.fmt.
33724 }))(obj)).Rot)[local390]
33725 write32(w, math.Float32bits(x))
33742 // See (de)serialize.fmt.
33745 write16(w, uint16(x))
33761 // See (de)serialize.fmt.
33764 { // For AOInitData.Msgs.
33765 if len(x) > math.MaxUint8 {
33768 write8(w, uint8(len(x)))
33769 for _, msg := range x {
33771 chk(writeAOMsg(&b, msg))
33772 if b.Len() > math.MaxUint32 {
33775 write32(w, uint32(b.Len()))
33776 _, err := b.WriteTo(w)
33783 func (obj *AOInitData) deserialize(r io.Reader) {
33786 local392 := uint8(1)
33791 if local391 != local392 {
33792 chk(fmt.Errorf("const %v: %v", "uint8(1)", local391))
33795 var local393 []uint8
33796 var local394 uint16
33801 (local393) = make([]uint8, local394)
33803 _, err := io.ReadFull(r, (local393)[:])
33819 // See (de)serialize.fmt.
33821 }))(obj)).Name) = string(local393)
33823 p := &(*(*(struct {
33836 // See (de)serialize.fmt.
33839 switch n := read8(r); n {
33845 chk(fmt.Errorf("invalid bool: %d", n))
33848 if err := pcall(func() {
33862 // See (de)serialize.fmt.
33864 }))(obj)).ID).deserialize(r)
33869 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33871 if err := pcall(func() {
33885 // See (de)serialize.fmt.
33887 }))(obj)).Pos).deserialize(r)
33892 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33894 for local395 := range (*(*(struct {
33907 // See (de)serialize.fmt.
33911 p := &((*(*(struct {
33924 // See (de)serialize.fmt.
33926 }))(obj)).Rot)[local395]
33927 *p = math.Float32frombits(read32(r))
33931 p := &(*(*(struct {
33944 // See (de)serialize.fmt.
33950 p := &(*(*(struct {
33963 // See (de)serialize.fmt.
33966 { // For AOInitData.Msgs.
33967 *p = make([]AOMsg, read8(r))
33968 for i := range *p {
33969 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33970 msg, err := readAOMsg(r)
33974 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33981 func (obj *ItemType) serialize(w io.Writer) {
33983 x := *(*(uint8))(obj)
33984 write8(w, uint8(x))
33988 func (obj *ItemType) deserialize(r io.Reader) {
33990 p := &*(*(uint8))(obj)
33995 func (obj *ToolCaps) serialize(w io.Writer) {
33996 if _ = (*(*(struct {
33997 //mt:if _ = %s; false
34000 AttackCooldown float32
34004 GroupCaps []ToolGroupCap
34014 //mt:if _ = %s; false
34017 AttackCooldown float32
34021 GroupCaps []ToolGroupCap
34038 w := new(bytes.Buffer)
34040 if r.N > 0 { (*(*(struct {
34041 //mt:if _ = %s; false
34044 AttackCooldown float32
34048 GroupCaps []ToolGroupCap
34055 }))(obj)).NonNil = true}; /**/{
34057 //mt:if _ = %s; false
34060 AttackCooldown float32
34064 GroupCaps []ToolGroupCap
34073 local396 := uint8(5)
34076 write8(w, uint8(x))
34081 //mt:if _ = %s; false
34084 AttackCooldown float32
34088 GroupCaps []ToolGroupCap
34095 }))(obj)).AttackCooldown
34096 write32(w, math.Float32bits(x))
34100 //mt:if _ = %s; false
34103 AttackCooldown float32
34107 GroupCaps []ToolGroupCap
34114 }))(obj)).MaxDropLvl
34115 write16(w, uint16(x))
34117 if len(((*(*(struct {
34118 //mt:if _ = %s; false
34121 AttackCooldown float32
34125 GroupCaps []ToolGroupCap
34132 }))(obj)).GroupCaps)) > math.MaxUint32 {
34136 x := uint32(len(((*(*(struct {
34137 //mt:if _ = %s; false
34140 AttackCooldown float32
34144 GroupCaps []ToolGroupCap
34151 }))(obj)).GroupCaps)))
34152 write32(w, uint32(x))
34154 for local397 := range (*(*(struct {
34155 //mt:if _ = %s; false
34158 AttackCooldown float32
34162 GroupCaps []ToolGroupCap
34169 }))(obj)).GroupCaps {
34170 if err := pcall(func() {
34172 //mt:if _ = %s; false
34175 AttackCooldown float32
34179 GroupCaps []ToolGroupCap
34186 }))(obj)).GroupCaps)[local397]).serialize(w)
34191 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
34194 if len(((*(*(struct {
34195 //mt:if _ = %s; false
34198 AttackCooldown float32
34202 GroupCaps []ToolGroupCap
34209 }))(obj)).DmgGroups)) > math.MaxUint32 {
34213 x := uint32(len(((*(*(struct {
34214 //mt:if _ = %s; false
34217 AttackCooldown float32
34221 GroupCaps []ToolGroupCap
34228 }))(obj)).DmgGroups)))
34229 write32(w, uint32(x))
34231 for local398 := range (*(*(struct {
34232 //mt:if _ = %s; false
34235 AttackCooldown float32
34239 GroupCaps []ToolGroupCap
34246 }))(obj)).DmgGroups {
34247 if err := pcall(func() {
34249 //mt:if _ = %s; false
34252 AttackCooldown float32
34256 GroupCaps []ToolGroupCap
34263 }))(obj)).DmgGroups)[local398]).serialize(w)
34268 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
34272 x := uint16((*(*(struct {
34273 //mt:if _ = %s; false
34276 AttackCooldown float32
34280 GroupCaps []ToolGroupCap
34287 }))(obj)).PunchUses)
34288 write16(w, uint16(x))
34295 if len((buf.Bytes())) > math.MaxUint16 {
34299 x := uint16(len((buf.Bytes())))
34300 write16(w, uint16(x))
34303 _, err := w.Write((buf.Bytes())[:])
34310 func (obj *ToolCaps) deserialize(r io.Reader) {
34311 if _ = (*(*(struct {
34312 //mt:if _ = %s; false
34315 AttackCooldown float32
34319 GroupCaps []ToolGroupCap
34328 p := &(*(*(struct {
34329 //mt:if _ = %s; false
34332 AttackCooldown float32
34336 GroupCaps []ToolGroupCap
34344 switch n := read8(r); n {
34350 chk(fmt.Errorf("invalid bool: %d", n))
34360 r := &io.LimitedReader{R: r, N: int64(n)}
34363 //mt:if _ = %s; false
34366 AttackCooldown float32
34370 GroupCaps []ToolGroupCap
34377 }))(obj)).NonNil = true
34381 //mt:if _ = %s; false
34384 AttackCooldown float32
34388 GroupCaps []ToolGroupCap
34398 local400 := uint8(5)
34403 if local399 != local400 {
34404 chk(fmt.Errorf("const %v: %v", "uint8(5)", local399))
34408 p := &(*(*(struct {
34409 //mt:if _ = %s; false
34412 AttackCooldown float32
34416 GroupCaps []ToolGroupCap
34423 }))(obj)).AttackCooldown
34424 *p = math.Float32frombits(read32(r))
34427 p := &(*(*(struct {
34428 //mt:if _ = %s; false
34431 AttackCooldown float32
34435 GroupCaps []ToolGroupCap
34442 }))(obj)).MaxDropLvl
34443 *p = int16(read16(r))
34445 var local401 uint32
34451 //mt:if _ = %s; false
34454 AttackCooldown float32
34458 GroupCaps []ToolGroupCap
34465 }))(obj)).GroupCaps) = make([]ToolGroupCap, local401)
34466 for local402 := range (*(*(struct {
34467 //mt:if _ = %s; false
34470 AttackCooldown float32
34474 GroupCaps []ToolGroupCap
34481 }))(obj)).GroupCaps {
34482 if err := pcall(func() {
34484 //mt:if _ = %s; false
34487 AttackCooldown float32
34491 GroupCaps []ToolGroupCap
34498 }))(obj)).GroupCaps)[local402]).deserialize(r)
34503 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
34506 var local403 uint32
34512 //mt:if _ = %s; false
34515 AttackCooldown float32
34519 GroupCaps []ToolGroupCap
34526 }))(obj)).DmgGroups) = make([]Group, local403)
34527 for local404 := range (*(*(struct {
34528 //mt:if _ = %s; false
34531 AttackCooldown float32
34535 GroupCaps []ToolGroupCap
34542 }))(obj)).DmgGroups {
34543 if err := pcall(func() {
34545 //mt:if _ = %s; false
34548 AttackCooldown float32
34552 GroupCaps []ToolGroupCap
34559 }))(obj)).DmgGroups)[local404]).deserialize(r)
34564 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
34567 var local405 uint16
34573 //mt:if _ = %s; false
34576 AttackCooldown float32
34580 GroupCaps []ToolGroupCap
34587 }))(obj)).PunchUses = int32(local405)
34591 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34596 func (obj *AnimType) serialize(w io.Writer) {
34598 x := *(*(uint8))(obj)
34599 write8(w, uint8(x))
34603 func (obj *AnimType) deserialize(r io.Reader) {
34605 p := &*(*(uint8))(obj)
34610 func (obj *HUDType) serialize(w io.Writer) {
34612 x := *(*(uint8))(obj)
34613 write8(w, uint8(x))
34617 func (obj *HUDType) deserialize(r io.Reader) {
34619 p := &*(*(uint8))(obj)
34624 func (obj *Box) serialize(w io.Writer) {
34625 for local406 := range *(*([2]Vec))(obj) {
34626 if err := pcall(func() {
34627 ((*(*([2]Vec))(obj))[local406]).serialize(w)
34632 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34637 func (obj *Box) deserialize(r io.Reader) {
34638 for local407 := range *(*([2]Vec))(obj) {
34639 if err := pcall(func() {
34640 ((*(*([2]Vec))(obj))[local407]).deserialize(r)
34645 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34650 func (obj *TileFlags) serialize(w io.Writer) {
34652 x := *(*(uint16))(obj)
34653 write16(w, uint16(x))
34657 func (obj *TileFlags) deserialize(r io.Reader) {
34659 p := &*(*(uint16))(obj)
34664 func (obj *AlignType) serialize(w io.Writer) {
34666 x := *(*(uint8))(obj)
34667 write8(w, uint8(x))
34671 func (obj *AlignType) deserialize(r io.Reader) {
34673 p := &*(*(uint8))(obj)
34678 func (obj *NodeBoxType) serialize(w io.Writer) {
34680 x := *(*(uint8))(obj)
34681 write8(w, uint8(x))
34685 func (obj *NodeBoxType) deserialize(r io.Reader) {
34687 p := &*(*(uint8))(obj)
34692 func (obj *DirBoxes) serialize(w io.Writer) {
34693 if len(((*(*(struct {
34695 Front, Left, Back, Right []Box
34696 }))(obj)).Top)) > math.MaxUint16 {
34700 x := uint16(len(((*(*(struct {
34702 Front, Left, Back, Right []Box
34704 write16(w, uint16(x))
34706 for local408 := range (*(*(struct {
34708 Front, Left, Back, Right []Box
34710 if err := pcall(func() {
34713 Front, Left, Back, Right []Box
34714 }))(obj)).Top)[local408]).serialize(w)
34719 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34722 if len(((*(*(struct {
34724 Front, Left, Back, Right []Box
34725 }))(obj)).Bot)) > math.MaxUint16 {
34729 x := uint16(len(((*(*(struct {
34731 Front, Left, Back, Right []Box
34733 write16(w, uint16(x))
34735 for local409 := range (*(*(struct {
34737 Front, Left, Back, Right []Box
34739 if err := pcall(func() {
34742 Front, Left, Back, Right []Box
34743 }))(obj)).Bot)[local409]).serialize(w)
34748 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34751 if len(((*(*(struct {
34753 Front, Left, Back, Right []Box
34754 }))(obj)).Front)) > math.MaxUint16 {
34758 x := uint16(len(((*(*(struct {
34760 Front, Left, Back, Right []Box
34762 write16(w, uint16(x))
34764 for local410 := range (*(*(struct {
34766 Front, Left, Back, Right []Box
34768 if err := pcall(func() {
34771 Front, Left, Back, Right []Box
34772 }))(obj)).Front)[local410]).serialize(w)
34777 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34780 if len(((*(*(struct {
34782 Front, Left, Back, Right []Box
34783 }))(obj)).Left)) > math.MaxUint16 {
34787 x := uint16(len(((*(*(struct {
34789 Front, Left, Back, Right []Box
34791 write16(w, uint16(x))
34793 for local411 := range (*(*(struct {
34795 Front, Left, Back, Right []Box
34797 if err := pcall(func() {
34800 Front, Left, Back, Right []Box
34801 }))(obj)).Left)[local411]).serialize(w)
34806 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34809 if len(((*(*(struct {
34811 Front, Left, Back, Right []Box
34812 }))(obj)).Back)) > math.MaxUint16 {
34816 x := uint16(len(((*(*(struct {
34818 Front, Left, Back, Right []Box
34820 write16(w, uint16(x))
34822 for local412 := range (*(*(struct {
34824 Front, Left, Back, Right []Box
34826 if err := pcall(func() {
34829 Front, Left, Back, Right []Box
34830 }))(obj)).Back)[local412]).serialize(w)
34835 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34838 if len(((*(*(struct {
34840 Front, Left, Back, Right []Box
34841 }))(obj)).Right)) > math.MaxUint16 {
34845 x := uint16(len(((*(*(struct {
34847 Front, Left, Back, Right []Box
34849 write16(w, uint16(x))
34851 for local413 := range (*(*(struct {
34853 Front, Left, Back, Right []Box
34855 if err := pcall(func() {
34858 Front, Left, Back, Right []Box
34859 }))(obj)).Right)[local413]).serialize(w)
34864 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34869 func (obj *DirBoxes) deserialize(r io.Reader) {
34870 var local414 uint16
34877 Front, Left, Back, Right []Box
34878 }))(obj)).Top) = make([]Box, local414)
34879 for local415 := range (*(*(struct {
34881 Front, Left, Back, Right []Box
34883 if err := pcall(func() {
34886 Front, Left, Back, Right []Box
34887 }))(obj)).Top)[local415]).deserialize(r)
34892 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34895 var local416 uint16
34902 Front, Left, Back, Right []Box
34903 }))(obj)).Bot) = make([]Box, local416)
34904 for local417 := range (*(*(struct {
34906 Front, Left, Back, Right []Box
34908 if err := pcall(func() {
34911 Front, Left, Back, Right []Box
34912 }))(obj)).Bot)[local417]).deserialize(r)
34917 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34920 var local418 uint16
34927 Front, Left, Back, Right []Box
34928 }))(obj)).Front) = make([]Box, local418)
34929 for local419 := range (*(*(struct {
34931 Front, Left, Back, Right []Box
34933 if err := pcall(func() {
34936 Front, Left, Back, Right []Box
34937 }))(obj)).Front)[local419]).deserialize(r)
34942 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34945 var local420 uint16
34952 Front, Left, Back, Right []Box
34953 }))(obj)).Left) = make([]Box, local420)
34954 for local421 := range (*(*(struct {
34956 Front, Left, Back, Right []Box
34958 if err := pcall(func() {
34961 Front, Left, Back, Right []Box
34962 }))(obj)).Left)[local421]).deserialize(r)
34967 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34970 var local422 uint16
34977 Front, Left, Back, Right []Box
34978 }))(obj)).Back) = make([]Box, local422)
34979 for local423 := range (*(*(struct {
34981 Front, Left, Back, Right []Box
34983 if err := pcall(func() {
34986 Front, Left, Back, Right []Box
34987 }))(obj)).Back)[local423]).deserialize(r)
34992 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34995 var local424 uint16
35002 Front, Left, Back, Right []Box
35003 }))(obj)).Right) = make([]Box, local424)
35004 for local425 := range (*(*(struct {
35006 Front, Left, Back, Right []Box
35008 if err := pcall(func() {
35011 Front, Left, Back, Right []Box
35012 }))(obj)).Right)[local425]).deserialize(r)
35017 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
35022 func (obj *ToolGroupCap) serialize(w io.Writer) {
35023 if len(([]byte((*(*(struct {
35033 }))(obj)).Name))) > math.MaxUint16 {
35037 x := uint16(len(([]byte((*(*(struct {
35048 write16(w, uint16(x))
35051 _, err := w.Write(([]byte((*(*(struct {
35061 }))(obj)).Name))[:])
35065 x := int16((*(*(struct {
35076 write16(w, uint16(x))
35090 write16(w, uint16(x))
35092 if len(((*(*(struct {
35102 }))(obj)).Times)) > math.MaxUint32 {
35106 x := uint32(len(((*(*(struct {
35117 write32(w, uint32(x))
35119 for local426 := range (*(*(struct {
35130 if err := pcall(func() {
35141 }))(obj)).Times)[local426]).serialize(w)
35146 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
35151 func (obj *ToolGroupCap) deserialize(r io.Reader) {
35152 var local427 []uint8
35153 var local428 uint16
35158 (local427) = make([]uint8, local428)
35160 _, err := io.ReadFull(r, (local427)[:])
35173 }))(obj)).Name) = string(local427)
35177 *p = int16(read16(r))
35189 }))(obj)).Uses = int32(local429)
35191 p := &(*(*(struct {
35202 *p = int16(read16(r))
35204 var local430 uint32
35219 }))(obj)).Times) = make([]DigTime, local430)
35220 for local431 := range (*(*(struct {
35231 if err := pcall(func() {
35242 }))(obj)).Times)[local431]).deserialize(r)
35247 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
35252 func (obj *DigTime) serialize(w io.Writer) {
35258 write16(w, uint16(x))
35265 write32(w, math.Float32bits(x))
35269 func (obj *DigTime) deserialize(r io.Reader) {
35271 p := &(*(*(struct {
35275 *p = int16(read16(r))
35278 p := &(*(*(struct {
35282 *p = math.Float32frombits(read32(r))