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
7316 }))(obj)).ID).serialize(w)
7321 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
7323 if err := pcall(func() {
7329 //mt:if %s.Field == HUDPos
7332 //mt:if %s.Field == HUDName
7335 //mt:if %s.Field == HUDScale
7338 //mt:if %s.Field == HUDText
7341 //mt:if %s.Field == HUDNumber
7344 //mt:if %s.Field == HUDItem
7347 //mt:if %s.Field == HUDDir
7350 //mt:if %s.Field == HUDAlign
7353 //mt:if %s.Field == HUDOffset
7356 //mt:if %s.Field == HUDWorldPos
7359 //mt:if %s.Field == HUDSize
7362 //mt:if %s.Field == HUDZIndex
7365 //mt:if %s.Field == HUDText2
7367 }))(obj)).Field).serialize(w)
7372 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
7379 //mt:if %s.Field == HUDPos
7382 //mt:if %s.Field == HUDName
7385 //mt:if %s.Field == HUDScale
7388 //mt:if %s.Field == HUDText
7391 //mt:if %s.Field == HUDNumber
7394 //mt:if %s.Field == HUDItem
7397 //mt:if %s.Field == HUDDir
7400 //mt:if %s.Field == HUDAlign
7403 //mt:if %s.Field == HUDOffset
7406 //mt:if %s.Field == HUDWorldPos
7409 //mt:if %s.Field == HUDSize
7412 //mt:if %s.Field == HUDZIndex
7415 //mt:if %s.Field == HUDText2
7417 }))(obj)).Field < hudMax) {
7418 chk(errors.New("assertion failed: %s.Field < hudMax"))
7425 //mt:if %s.Field == HUDPos
7428 //mt:if %s.Field == HUDName
7431 //mt:if %s.Field == HUDScale
7434 //mt:if %s.Field == HUDText
7437 //mt:if %s.Field == HUDNumber
7440 //mt:if %s.Field == HUDItem
7443 //mt:if %s.Field == HUDDir
7446 //mt:if %s.Field == HUDAlign
7449 //mt:if %s.Field == HUDOffset
7452 //mt:if %s.Field == HUDWorldPos
7455 //mt:if %s.Field == HUDSize
7458 //mt:if %s.Field == HUDZIndex
7461 //mt:if %s.Field == HUDText2
7463 }))(obj)).Field == HUDPos {
7464 for local172 := range (*(*(struct {
7469 //mt:if %s.Field == HUDPos
7472 //mt:if %s.Field == HUDName
7475 //mt:if %s.Field == HUDScale
7478 //mt:if %s.Field == HUDText
7481 //mt:if %s.Field == HUDNumber
7484 //mt:if %s.Field == HUDItem
7487 //mt:if %s.Field == HUDDir
7490 //mt:if %s.Field == HUDAlign
7493 //mt:if %s.Field == HUDOffset
7496 //mt:if %s.Field == HUDWorldPos
7499 //mt:if %s.Field == HUDSize
7502 //mt:if %s.Field == HUDZIndex
7505 //mt:if %s.Field == HUDText2
7514 //mt:if %s.Field == HUDPos
7517 //mt:if %s.Field == HUDName
7520 //mt:if %s.Field == HUDScale
7523 //mt:if %s.Field == HUDText
7526 //mt:if %s.Field == HUDNumber
7529 //mt:if %s.Field == HUDItem
7532 //mt:if %s.Field == HUDDir
7535 //mt:if %s.Field == HUDAlign
7538 //mt:if %s.Field == HUDOffset
7541 //mt:if %s.Field == HUDWorldPos
7544 //mt:if %s.Field == HUDSize
7547 //mt:if %s.Field == HUDZIndex
7550 //mt:if %s.Field == HUDText2
7552 }))(obj)).Pos)[local172]
7553 write32(w, math.Float32bits(x))
7562 //mt:if %s.Field == HUDPos
7565 //mt:if %s.Field == HUDName
7568 //mt:if %s.Field == HUDScale
7571 //mt:if %s.Field == HUDText
7574 //mt:if %s.Field == HUDNumber
7577 //mt:if %s.Field == HUDItem
7580 //mt:if %s.Field == HUDDir
7583 //mt:if %s.Field == HUDAlign
7586 //mt:if %s.Field == HUDOffset
7589 //mt:if %s.Field == HUDWorldPos
7592 //mt:if %s.Field == HUDSize
7595 //mt:if %s.Field == HUDZIndex
7598 //mt:if %s.Field == HUDText2
7600 }))(obj)).Field == HUDName {
7601 if len(([]byte((*(*(struct {
7606 //mt:if %s.Field == HUDPos
7609 //mt:if %s.Field == HUDName
7612 //mt:if %s.Field == HUDScale
7615 //mt:if %s.Field == HUDText
7618 //mt:if %s.Field == HUDNumber
7621 //mt:if %s.Field == HUDItem
7624 //mt:if %s.Field == HUDDir
7627 //mt:if %s.Field == HUDAlign
7630 //mt:if %s.Field == HUDOffset
7633 //mt:if %s.Field == HUDWorldPos
7636 //mt:if %s.Field == HUDSize
7639 //mt:if %s.Field == HUDZIndex
7642 //mt:if %s.Field == HUDText2
7644 }))(obj)).Name))) > math.MaxUint16 {
7648 x := uint16(len(([]byte((*(*(struct {
7653 //mt:if %s.Field == HUDPos
7656 //mt:if %s.Field == HUDName
7659 //mt:if %s.Field == HUDScale
7662 //mt:if %s.Field == HUDText
7665 //mt:if %s.Field == HUDNumber
7668 //mt:if %s.Field == HUDItem
7671 //mt:if %s.Field == HUDDir
7674 //mt:if %s.Field == HUDAlign
7677 //mt:if %s.Field == HUDOffset
7680 //mt:if %s.Field == HUDWorldPos
7683 //mt:if %s.Field == HUDSize
7686 //mt:if %s.Field == HUDZIndex
7689 //mt:if %s.Field == HUDText2
7692 write16(w, uint16(x))
7695 _, err := w.Write(([]byte((*(*(struct {
7700 //mt:if %s.Field == HUDPos
7703 //mt:if %s.Field == HUDName
7706 //mt:if %s.Field == HUDScale
7709 //mt:if %s.Field == HUDText
7712 //mt:if %s.Field == HUDNumber
7715 //mt:if %s.Field == HUDItem
7718 //mt:if %s.Field == HUDDir
7721 //mt:if %s.Field == HUDAlign
7724 //mt:if %s.Field == HUDOffset
7727 //mt:if %s.Field == HUDWorldPos
7730 //mt:if %s.Field == HUDSize
7733 //mt:if %s.Field == HUDZIndex
7736 //mt:if %s.Field == HUDText2
7738 }))(obj)).Name))[:])
7747 //mt:if %s.Field == HUDPos
7750 //mt:if %s.Field == HUDName
7753 //mt:if %s.Field == HUDScale
7756 //mt:if %s.Field == HUDText
7759 //mt:if %s.Field == HUDNumber
7762 //mt:if %s.Field == HUDItem
7765 //mt:if %s.Field == HUDDir
7768 //mt:if %s.Field == HUDAlign
7771 //mt:if %s.Field == HUDOffset
7774 //mt:if %s.Field == HUDWorldPos
7777 //mt:if %s.Field == HUDSize
7780 //mt:if %s.Field == HUDZIndex
7783 //mt:if %s.Field == HUDText2
7785 }))(obj)).Field == HUDScale {
7786 for local173 := range (*(*(struct {
7791 //mt:if %s.Field == HUDPos
7794 //mt:if %s.Field == HUDName
7797 //mt:if %s.Field == HUDScale
7800 //mt:if %s.Field == HUDText
7803 //mt:if %s.Field == HUDNumber
7806 //mt:if %s.Field == HUDItem
7809 //mt:if %s.Field == HUDDir
7812 //mt:if %s.Field == HUDAlign
7815 //mt:if %s.Field == HUDOffset
7818 //mt:if %s.Field == HUDWorldPos
7821 //mt:if %s.Field == HUDSize
7824 //mt:if %s.Field == HUDZIndex
7827 //mt:if %s.Field == HUDText2
7836 //mt:if %s.Field == HUDPos
7839 //mt:if %s.Field == HUDName
7842 //mt:if %s.Field == HUDScale
7845 //mt:if %s.Field == HUDText
7848 //mt:if %s.Field == HUDNumber
7851 //mt:if %s.Field == HUDItem
7854 //mt:if %s.Field == HUDDir
7857 //mt:if %s.Field == HUDAlign
7860 //mt:if %s.Field == HUDOffset
7863 //mt:if %s.Field == HUDWorldPos
7866 //mt:if %s.Field == HUDSize
7869 //mt:if %s.Field == HUDZIndex
7872 //mt:if %s.Field == HUDText2
7874 }))(obj)).Scale)[local173]
7875 write32(w, math.Float32bits(x))
7884 //mt:if %s.Field == HUDPos
7887 //mt:if %s.Field == HUDName
7890 //mt:if %s.Field == HUDScale
7893 //mt:if %s.Field == HUDText
7896 //mt:if %s.Field == HUDNumber
7899 //mt:if %s.Field == HUDItem
7902 //mt:if %s.Field == HUDDir
7905 //mt:if %s.Field == HUDAlign
7908 //mt:if %s.Field == HUDOffset
7911 //mt:if %s.Field == HUDWorldPos
7914 //mt:if %s.Field == HUDSize
7917 //mt:if %s.Field == HUDZIndex
7920 //mt:if %s.Field == HUDText2
7922 }))(obj)).Field == HUDText {
7923 if len(([]byte((*(*(struct {
7928 //mt:if %s.Field == HUDPos
7931 //mt:if %s.Field == HUDName
7934 //mt:if %s.Field == HUDScale
7937 //mt:if %s.Field == HUDText
7940 //mt:if %s.Field == HUDNumber
7943 //mt:if %s.Field == HUDItem
7946 //mt:if %s.Field == HUDDir
7949 //mt:if %s.Field == HUDAlign
7952 //mt:if %s.Field == HUDOffset
7955 //mt:if %s.Field == HUDWorldPos
7958 //mt:if %s.Field == HUDSize
7961 //mt:if %s.Field == HUDZIndex
7964 //mt:if %s.Field == HUDText2
7966 }))(obj)).Text))) > math.MaxUint16 {
7970 x := uint16(len(([]byte((*(*(struct {
7975 //mt:if %s.Field == HUDPos
7978 //mt:if %s.Field == HUDName
7981 //mt:if %s.Field == HUDScale
7984 //mt:if %s.Field == HUDText
7987 //mt:if %s.Field == HUDNumber
7990 //mt:if %s.Field == HUDItem
7993 //mt:if %s.Field == HUDDir
7996 //mt:if %s.Field == HUDAlign
7999 //mt:if %s.Field == HUDOffset
8002 //mt:if %s.Field == HUDWorldPos
8005 //mt:if %s.Field == HUDSize
8008 //mt:if %s.Field == HUDZIndex
8011 //mt:if %s.Field == HUDText2
8014 write16(w, uint16(x))
8017 _, err := w.Write(([]byte((*(*(struct {
8022 //mt:if %s.Field == HUDPos
8025 //mt:if %s.Field == HUDName
8028 //mt:if %s.Field == HUDScale
8031 //mt:if %s.Field == HUDText
8034 //mt:if %s.Field == HUDNumber
8037 //mt:if %s.Field == HUDItem
8040 //mt:if %s.Field == HUDDir
8043 //mt:if %s.Field == HUDAlign
8046 //mt:if %s.Field == HUDOffset
8049 //mt:if %s.Field == HUDWorldPos
8052 //mt:if %s.Field == HUDSize
8055 //mt:if %s.Field == HUDZIndex
8058 //mt:if %s.Field == HUDText2
8060 }))(obj)).Text))[:])
8069 //mt:if %s.Field == HUDPos
8072 //mt:if %s.Field == HUDName
8075 //mt:if %s.Field == HUDScale
8078 //mt:if %s.Field == HUDText
8081 //mt:if %s.Field == HUDNumber
8084 //mt:if %s.Field == HUDItem
8087 //mt:if %s.Field == HUDDir
8090 //mt:if %s.Field == HUDAlign
8093 //mt:if %s.Field == HUDOffset
8096 //mt:if %s.Field == HUDWorldPos
8099 //mt:if %s.Field == HUDSize
8102 //mt:if %s.Field == HUDZIndex
8105 //mt:if %s.Field == HUDText2
8107 }))(obj)).Field == HUDNumber {
8114 //mt:if %s.Field == HUDPos
8117 //mt:if %s.Field == HUDName
8120 //mt:if %s.Field == HUDScale
8123 //mt:if %s.Field == HUDText
8126 //mt:if %s.Field == HUDNumber
8129 //mt:if %s.Field == HUDItem
8132 //mt:if %s.Field == HUDDir
8135 //mt:if %s.Field == HUDAlign
8138 //mt:if %s.Field == HUDOffset
8141 //mt:if %s.Field == HUDWorldPos
8144 //mt:if %s.Field == HUDSize
8147 //mt:if %s.Field == HUDZIndex
8150 //mt:if %s.Field == HUDText2
8153 write32(w, uint32(x))
8161 //mt:if %s.Field == HUDPos
8164 //mt:if %s.Field == HUDName
8167 //mt:if %s.Field == HUDScale
8170 //mt:if %s.Field == HUDText
8173 //mt:if %s.Field == HUDNumber
8176 //mt:if %s.Field == HUDItem
8179 //mt:if %s.Field == HUDDir
8182 //mt:if %s.Field == HUDAlign
8185 //mt:if %s.Field == HUDOffset
8188 //mt:if %s.Field == HUDWorldPos
8191 //mt:if %s.Field == HUDSize
8194 //mt:if %s.Field == HUDZIndex
8197 //mt:if %s.Field == HUDText2
8199 }))(obj)).Field == HUDItem {
8206 //mt:if %s.Field == HUDPos
8209 //mt:if %s.Field == HUDName
8212 //mt:if %s.Field == HUDScale
8215 //mt:if %s.Field == HUDText
8218 //mt:if %s.Field == HUDNumber
8221 //mt:if %s.Field == HUDItem
8224 //mt:if %s.Field == HUDDir
8227 //mt:if %s.Field == HUDAlign
8230 //mt:if %s.Field == HUDOffset
8233 //mt:if %s.Field == HUDWorldPos
8236 //mt:if %s.Field == HUDSize
8239 //mt:if %s.Field == HUDZIndex
8242 //mt:if %s.Field == HUDText2
8245 write32(w, uint32(x))
8253 //mt:if %s.Field == HUDPos
8256 //mt:if %s.Field == HUDName
8259 //mt:if %s.Field == HUDScale
8262 //mt:if %s.Field == HUDText
8265 //mt:if %s.Field == HUDNumber
8268 //mt:if %s.Field == HUDItem
8271 //mt:if %s.Field == HUDDir
8274 //mt:if %s.Field == HUDAlign
8277 //mt:if %s.Field == HUDOffset
8280 //mt:if %s.Field == HUDWorldPos
8283 //mt:if %s.Field == HUDSize
8286 //mt:if %s.Field == HUDZIndex
8289 //mt:if %s.Field == HUDText2
8291 }))(obj)).Field == HUDDir {
8298 //mt:if %s.Field == HUDPos
8301 //mt:if %s.Field == HUDName
8304 //mt:if %s.Field == HUDScale
8307 //mt:if %s.Field == HUDText
8310 //mt:if %s.Field == HUDNumber
8313 //mt:if %s.Field == HUDItem
8316 //mt:if %s.Field == HUDDir
8319 //mt:if %s.Field == HUDAlign
8322 //mt:if %s.Field == HUDOffset
8325 //mt:if %s.Field == HUDWorldPos
8328 //mt:if %s.Field == HUDSize
8331 //mt:if %s.Field == HUDZIndex
8334 //mt:if %s.Field == HUDText2
8337 write32(w, uint32(x))
8345 //mt:if %s.Field == HUDPos
8348 //mt:if %s.Field == HUDName
8351 //mt:if %s.Field == HUDScale
8354 //mt:if %s.Field == HUDText
8357 //mt:if %s.Field == HUDNumber
8360 //mt:if %s.Field == HUDItem
8363 //mt:if %s.Field == HUDDir
8366 //mt:if %s.Field == HUDAlign
8369 //mt:if %s.Field == HUDOffset
8372 //mt:if %s.Field == HUDWorldPos
8375 //mt:if %s.Field == HUDSize
8378 //mt:if %s.Field == HUDZIndex
8381 //mt:if %s.Field == HUDText2
8383 }))(obj)).Field == HUDAlign {
8384 for local174 := range (*(*(struct {
8389 //mt:if %s.Field == HUDPos
8392 //mt:if %s.Field == HUDName
8395 //mt:if %s.Field == HUDScale
8398 //mt:if %s.Field == HUDText
8401 //mt:if %s.Field == HUDNumber
8404 //mt:if %s.Field == HUDItem
8407 //mt:if %s.Field == HUDDir
8410 //mt:if %s.Field == HUDAlign
8413 //mt:if %s.Field == HUDOffset
8416 //mt:if %s.Field == HUDWorldPos
8419 //mt:if %s.Field == HUDSize
8422 //mt:if %s.Field == HUDZIndex
8425 //mt:if %s.Field == HUDText2
8434 //mt:if %s.Field == HUDPos
8437 //mt:if %s.Field == HUDName
8440 //mt:if %s.Field == HUDScale
8443 //mt:if %s.Field == HUDText
8446 //mt:if %s.Field == HUDNumber
8449 //mt:if %s.Field == HUDItem
8452 //mt:if %s.Field == HUDDir
8455 //mt:if %s.Field == HUDAlign
8458 //mt:if %s.Field == HUDOffset
8461 //mt:if %s.Field == HUDWorldPos
8464 //mt:if %s.Field == HUDSize
8467 //mt:if %s.Field == HUDZIndex
8470 //mt:if %s.Field == HUDText2
8472 }))(obj)).Align)[local174]
8473 write32(w, math.Float32bits(x))
8482 //mt:if %s.Field == HUDPos
8485 //mt:if %s.Field == HUDName
8488 //mt:if %s.Field == HUDScale
8491 //mt:if %s.Field == HUDText
8494 //mt:if %s.Field == HUDNumber
8497 //mt:if %s.Field == HUDItem
8500 //mt:if %s.Field == HUDDir
8503 //mt:if %s.Field == HUDAlign
8506 //mt:if %s.Field == HUDOffset
8509 //mt:if %s.Field == HUDWorldPos
8512 //mt:if %s.Field == HUDSize
8515 //mt:if %s.Field == HUDZIndex
8518 //mt:if %s.Field == HUDText2
8520 }))(obj)).Field == HUDOffset {
8521 for local175 := range (*(*(struct {
8526 //mt:if %s.Field == HUDPos
8529 //mt:if %s.Field == HUDName
8532 //mt:if %s.Field == HUDScale
8535 //mt:if %s.Field == HUDText
8538 //mt:if %s.Field == HUDNumber
8541 //mt:if %s.Field == HUDItem
8544 //mt:if %s.Field == HUDDir
8547 //mt:if %s.Field == HUDAlign
8550 //mt:if %s.Field == HUDOffset
8553 //mt:if %s.Field == HUDWorldPos
8556 //mt:if %s.Field == HUDSize
8559 //mt:if %s.Field == HUDZIndex
8562 //mt:if %s.Field == HUDText2
8571 //mt:if %s.Field == HUDPos
8574 //mt:if %s.Field == HUDName
8577 //mt:if %s.Field == HUDScale
8580 //mt:if %s.Field == HUDText
8583 //mt:if %s.Field == HUDNumber
8586 //mt:if %s.Field == HUDItem
8589 //mt:if %s.Field == HUDDir
8592 //mt:if %s.Field == HUDAlign
8595 //mt:if %s.Field == HUDOffset
8598 //mt:if %s.Field == HUDWorldPos
8601 //mt:if %s.Field == HUDSize
8604 //mt:if %s.Field == HUDZIndex
8607 //mt:if %s.Field == HUDText2
8609 }))(obj)).Offset)[local175]
8610 write32(w, math.Float32bits(x))
8619 //mt:if %s.Field == HUDPos
8622 //mt:if %s.Field == HUDName
8625 //mt:if %s.Field == HUDScale
8628 //mt:if %s.Field == HUDText
8631 //mt:if %s.Field == HUDNumber
8634 //mt:if %s.Field == HUDItem
8637 //mt:if %s.Field == HUDDir
8640 //mt:if %s.Field == HUDAlign
8643 //mt:if %s.Field == HUDOffset
8646 //mt:if %s.Field == HUDWorldPos
8649 //mt:if %s.Field == HUDSize
8652 //mt:if %s.Field == HUDZIndex
8655 //mt:if %s.Field == HUDText2
8657 }))(obj)).Field == HUDWorldPos {
8658 if err := pcall(func() {
8664 //mt:if %s.Field == HUDPos
8667 //mt:if %s.Field == HUDName
8670 //mt:if %s.Field == HUDScale
8673 //mt:if %s.Field == HUDText
8676 //mt:if %s.Field == HUDNumber
8679 //mt:if %s.Field == HUDItem
8682 //mt:if %s.Field == HUDDir
8685 //mt:if %s.Field == HUDAlign
8688 //mt:if %s.Field == HUDOffset
8691 //mt:if %s.Field == HUDWorldPos
8694 //mt:if %s.Field == HUDSize
8697 //mt:if %s.Field == HUDZIndex
8700 //mt:if %s.Field == HUDText2
8702 }))(obj)).WorldPos).serialize(w)
8707 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
8715 //mt:if %s.Field == HUDPos
8718 //mt:if %s.Field == HUDName
8721 //mt:if %s.Field == HUDScale
8724 //mt:if %s.Field == HUDText
8727 //mt:if %s.Field == HUDNumber
8730 //mt:if %s.Field == HUDItem
8733 //mt:if %s.Field == HUDDir
8736 //mt:if %s.Field == HUDAlign
8739 //mt:if %s.Field == HUDOffset
8742 //mt:if %s.Field == HUDWorldPos
8745 //mt:if %s.Field == HUDSize
8748 //mt:if %s.Field == HUDZIndex
8751 //mt:if %s.Field == HUDText2
8753 }))(obj)).Field == HUDSize {
8754 for local176 := range (*(*(struct {
8759 //mt:if %s.Field == HUDPos
8762 //mt:if %s.Field == HUDName
8765 //mt:if %s.Field == HUDScale
8768 //mt:if %s.Field == HUDText
8771 //mt:if %s.Field == HUDNumber
8774 //mt:if %s.Field == HUDItem
8777 //mt:if %s.Field == HUDDir
8780 //mt:if %s.Field == HUDAlign
8783 //mt:if %s.Field == HUDOffset
8786 //mt:if %s.Field == HUDWorldPos
8789 //mt:if %s.Field == HUDSize
8792 //mt:if %s.Field == HUDZIndex
8795 //mt:if %s.Field == HUDText2
8804 //mt:if %s.Field == HUDPos
8807 //mt:if %s.Field == HUDName
8810 //mt:if %s.Field == HUDScale
8813 //mt:if %s.Field == HUDText
8816 //mt:if %s.Field == HUDNumber
8819 //mt:if %s.Field == HUDItem
8822 //mt:if %s.Field == HUDDir
8825 //mt:if %s.Field == HUDAlign
8828 //mt:if %s.Field == HUDOffset
8831 //mt:if %s.Field == HUDWorldPos
8834 //mt:if %s.Field == HUDSize
8837 //mt:if %s.Field == HUDZIndex
8840 //mt:if %s.Field == HUDText2
8842 }))(obj)).Size)[local176]
8843 write32(w, uint32(x))
8852 //mt:if %s.Field == HUDPos
8855 //mt:if %s.Field == HUDName
8858 //mt:if %s.Field == HUDScale
8861 //mt:if %s.Field == HUDText
8864 //mt:if %s.Field == HUDNumber
8867 //mt:if %s.Field == HUDItem
8870 //mt:if %s.Field == HUDDir
8873 //mt:if %s.Field == HUDAlign
8876 //mt:if %s.Field == HUDOffset
8879 //mt:if %s.Field == HUDWorldPos
8882 //mt:if %s.Field == HUDSize
8885 //mt:if %s.Field == HUDZIndex
8888 //mt:if %s.Field == HUDText2
8890 }))(obj)).Field == HUDZIndex {
8897 //mt:if %s.Field == HUDPos
8900 //mt:if %s.Field == HUDName
8903 //mt:if %s.Field == HUDScale
8906 //mt:if %s.Field == HUDText
8909 //mt:if %s.Field == HUDNumber
8912 //mt:if %s.Field == HUDItem
8915 //mt:if %s.Field == HUDDir
8918 //mt:if %s.Field == HUDAlign
8921 //mt:if %s.Field == HUDOffset
8924 //mt:if %s.Field == HUDWorldPos
8927 //mt:if %s.Field == HUDSize
8930 //mt:if %s.Field == HUDZIndex
8933 //mt:if %s.Field == HUDText2
8936 write32(w, uint32(x))
8944 //mt:if %s.Field == HUDPos
8947 //mt:if %s.Field == HUDName
8950 //mt:if %s.Field == HUDScale
8953 //mt:if %s.Field == HUDText
8956 //mt:if %s.Field == HUDNumber
8959 //mt:if %s.Field == HUDItem
8962 //mt:if %s.Field == HUDDir
8965 //mt:if %s.Field == HUDAlign
8968 //mt:if %s.Field == HUDOffset
8971 //mt:if %s.Field == HUDWorldPos
8974 //mt:if %s.Field == HUDSize
8977 //mt:if %s.Field == HUDZIndex
8980 //mt:if %s.Field == HUDText2
8982 }))(obj)).Field == HUDText2 {
8983 if len(([]byte((*(*(struct {
8988 //mt:if %s.Field == HUDPos
8991 //mt:if %s.Field == HUDName
8994 //mt:if %s.Field == HUDScale
8997 //mt:if %s.Field == HUDText
9000 //mt:if %s.Field == HUDNumber
9003 //mt:if %s.Field == HUDItem
9006 //mt:if %s.Field == HUDDir
9009 //mt:if %s.Field == HUDAlign
9012 //mt:if %s.Field == HUDOffset
9015 //mt:if %s.Field == HUDWorldPos
9018 //mt:if %s.Field == HUDSize
9021 //mt:if %s.Field == HUDZIndex
9024 //mt:if %s.Field == HUDText2
9026 }))(obj)).Text2))) > math.MaxUint16 {
9030 x := uint16(len(([]byte((*(*(struct {
9035 //mt:if %s.Field == HUDPos
9038 //mt:if %s.Field == HUDName
9041 //mt:if %s.Field == HUDScale
9044 //mt:if %s.Field == HUDText
9047 //mt:if %s.Field == HUDNumber
9050 //mt:if %s.Field == HUDItem
9053 //mt:if %s.Field == HUDDir
9056 //mt:if %s.Field == HUDAlign
9059 //mt:if %s.Field == HUDOffset
9062 //mt:if %s.Field == HUDWorldPos
9065 //mt:if %s.Field == HUDSize
9068 //mt:if %s.Field == HUDZIndex
9071 //mt:if %s.Field == HUDText2
9074 write16(w, uint16(x))
9077 _, err := w.Write(([]byte((*(*(struct {
9082 //mt:if %s.Field == HUDPos
9085 //mt:if %s.Field == HUDName
9088 //mt:if %s.Field == HUDScale
9091 //mt:if %s.Field == HUDText
9094 //mt:if %s.Field == HUDNumber
9097 //mt:if %s.Field == HUDItem
9100 //mt:if %s.Field == HUDDir
9103 //mt:if %s.Field == HUDAlign
9106 //mt:if %s.Field == HUDOffset
9109 //mt:if %s.Field == HUDWorldPos
9112 //mt:if %s.Field == HUDSize
9115 //mt:if %s.Field == HUDZIndex
9118 //mt:if %s.Field == HUDText2
9120 }))(obj)).Text2))[:])
9126 func (obj *ToCltChangeHUD) deserialize(r io.Reader) {
9127 if err := pcall(func() {
9133 //mt:if %s.Field == HUDPos
9136 //mt:if %s.Field == HUDName
9139 //mt:if %s.Field == HUDScale
9142 //mt:if %s.Field == HUDText
9145 //mt:if %s.Field == HUDNumber
9148 //mt:if %s.Field == HUDItem
9151 //mt:if %s.Field == HUDDir
9154 //mt:if %s.Field == HUDAlign
9157 //mt:if %s.Field == HUDOffset
9160 //mt:if %s.Field == HUDWorldPos
9163 //mt:if %s.Field == HUDSize
9166 //mt:if %s.Field == HUDZIndex
9169 //mt:if %s.Field == HUDText2
9171 }))(obj)).ID).deserialize(r)
9176 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDID", err))
9178 if err := pcall(func() {
9184 //mt:if %s.Field == HUDPos
9187 //mt:if %s.Field == HUDName
9190 //mt:if %s.Field == HUDScale
9193 //mt:if %s.Field == HUDText
9196 //mt:if %s.Field == HUDNumber
9199 //mt:if %s.Field == HUDItem
9202 //mt:if %s.Field == HUDDir
9205 //mt:if %s.Field == HUDAlign
9208 //mt:if %s.Field == HUDOffset
9211 //mt:if %s.Field == HUDWorldPos
9214 //mt:if %s.Field == HUDSize
9217 //mt:if %s.Field == HUDZIndex
9220 //mt:if %s.Field == HUDText2
9222 }))(obj)).Field).deserialize(r)
9227 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDField", err))
9234 //mt:if %s.Field == HUDPos
9237 //mt:if %s.Field == HUDName
9240 //mt:if %s.Field == HUDScale
9243 //mt:if %s.Field == HUDText
9246 //mt:if %s.Field == HUDNumber
9249 //mt:if %s.Field == HUDItem
9252 //mt:if %s.Field == HUDDir
9255 //mt:if %s.Field == HUDAlign
9258 //mt:if %s.Field == HUDOffset
9261 //mt:if %s.Field == HUDWorldPos
9264 //mt:if %s.Field == HUDSize
9267 //mt:if %s.Field == HUDZIndex
9270 //mt:if %s.Field == HUDText2
9272 }))(obj)).Field < hudMax) {
9273 chk(errors.New("assertion failed: %s.Field < hudMax"))
9280 //mt:if %s.Field == HUDPos
9283 //mt:if %s.Field == HUDName
9286 //mt:if %s.Field == HUDScale
9289 //mt:if %s.Field == HUDText
9292 //mt:if %s.Field == HUDNumber
9295 //mt:if %s.Field == HUDItem
9298 //mt:if %s.Field == HUDDir
9301 //mt:if %s.Field == HUDAlign
9304 //mt:if %s.Field == HUDOffset
9307 //mt:if %s.Field == HUDWorldPos
9310 //mt:if %s.Field == HUDSize
9313 //mt:if %s.Field == HUDZIndex
9316 //mt:if %s.Field == HUDText2
9318 }))(obj)).Field == HUDPos {
9319 for local177 := range (*(*(struct {
9324 //mt:if %s.Field == HUDPos
9327 //mt:if %s.Field == HUDName
9330 //mt:if %s.Field == HUDScale
9333 //mt:if %s.Field == HUDText
9336 //mt:if %s.Field == HUDNumber
9339 //mt:if %s.Field == HUDItem
9342 //mt:if %s.Field == HUDDir
9345 //mt:if %s.Field == HUDAlign
9348 //mt:if %s.Field == HUDOffset
9351 //mt:if %s.Field == HUDWorldPos
9354 //mt:if %s.Field == HUDSize
9357 //mt:if %s.Field == HUDZIndex
9360 //mt:if %s.Field == HUDText2
9364 p := &((*(*(struct {
9369 //mt:if %s.Field == HUDPos
9372 //mt:if %s.Field == HUDName
9375 //mt:if %s.Field == HUDScale
9378 //mt:if %s.Field == HUDText
9381 //mt:if %s.Field == HUDNumber
9384 //mt:if %s.Field == HUDItem
9387 //mt:if %s.Field == HUDDir
9390 //mt:if %s.Field == HUDAlign
9393 //mt:if %s.Field == HUDOffset
9396 //mt:if %s.Field == HUDWorldPos
9399 //mt:if %s.Field == HUDSize
9402 //mt:if %s.Field == HUDZIndex
9405 //mt:if %s.Field == HUDText2
9407 }))(obj)).Pos)[local177]
9408 *p = math.Float32frombits(read32(r))
9417 //mt:if %s.Field == HUDPos
9420 //mt:if %s.Field == HUDName
9423 //mt:if %s.Field == HUDScale
9426 //mt:if %s.Field == HUDText
9429 //mt:if %s.Field == HUDNumber
9432 //mt:if %s.Field == HUDItem
9435 //mt:if %s.Field == HUDDir
9438 //mt:if %s.Field == HUDAlign
9441 //mt:if %s.Field == HUDOffset
9444 //mt:if %s.Field == HUDWorldPos
9447 //mt:if %s.Field == HUDSize
9450 //mt:if %s.Field == HUDZIndex
9453 //mt:if %s.Field == HUDText2
9455 }))(obj)).Field == HUDName {
9456 var local178 []uint8
9462 (local178) = make([]uint8, local179)
9464 _, err := io.ReadFull(r, (local178)[:])
9472 //mt:if %s.Field == HUDPos
9475 //mt:if %s.Field == HUDName
9478 //mt:if %s.Field == HUDScale
9481 //mt:if %s.Field == HUDText
9484 //mt:if %s.Field == HUDNumber
9487 //mt:if %s.Field == HUDItem
9490 //mt:if %s.Field == HUDDir
9493 //mt:if %s.Field == HUDAlign
9496 //mt:if %s.Field == HUDOffset
9499 //mt:if %s.Field == HUDWorldPos
9502 //mt:if %s.Field == HUDSize
9505 //mt:if %s.Field == HUDZIndex
9508 //mt:if %s.Field == HUDText2
9510 }))(obj)).Name) = string(local178)
9517 //mt:if %s.Field == HUDPos
9520 //mt:if %s.Field == HUDName
9523 //mt:if %s.Field == HUDScale
9526 //mt:if %s.Field == HUDText
9529 //mt:if %s.Field == HUDNumber
9532 //mt:if %s.Field == HUDItem
9535 //mt:if %s.Field == HUDDir
9538 //mt:if %s.Field == HUDAlign
9541 //mt:if %s.Field == HUDOffset
9544 //mt:if %s.Field == HUDWorldPos
9547 //mt:if %s.Field == HUDSize
9550 //mt:if %s.Field == HUDZIndex
9553 //mt:if %s.Field == HUDText2
9555 }))(obj)).Field == HUDScale {
9556 for local180 := range (*(*(struct {
9561 //mt:if %s.Field == HUDPos
9564 //mt:if %s.Field == HUDName
9567 //mt:if %s.Field == HUDScale
9570 //mt:if %s.Field == HUDText
9573 //mt:if %s.Field == HUDNumber
9576 //mt:if %s.Field == HUDItem
9579 //mt:if %s.Field == HUDDir
9582 //mt:if %s.Field == HUDAlign
9585 //mt:if %s.Field == HUDOffset
9588 //mt:if %s.Field == HUDWorldPos
9591 //mt:if %s.Field == HUDSize
9594 //mt:if %s.Field == HUDZIndex
9597 //mt:if %s.Field == HUDText2
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
9644 }))(obj)).Scale)[local180]
9645 *p = math.Float32frombits(read32(r))
9654 //mt:if %s.Field == HUDPos
9657 //mt:if %s.Field == HUDName
9660 //mt:if %s.Field == HUDScale
9663 //mt:if %s.Field == HUDText
9666 //mt:if %s.Field == HUDNumber
9669 //mt:if %s.Field == HUDItem
9672 //mt:if %s.Field == HUDDir
9675 //mt:if %s.Field == HUDAlign
9678 //mt:if %s.Field == HUDOffset
9681 //mt:if %s.Field == HUDWorldPos
9684 //mt:if %s.Field == HUDSize
9687 //mt:if %s.Field == HUDZIndex
9690 //mt:if %s.Field == HUDText2
9692 }))(obj)).Field == HUDText {
9693 var local181 []uint8
9699 (local181) = make([]uint8, local182)
9701 _, err := io.ReadFull(r, (local181)[:])
9709 //mt:if %s.Field == HUDPos
9712 //mt:if %s.Field == HUDName
9715 //mt:if %s.Field == HUDScale
9718 //mt:if %s.Field == HUDText
9721 //mt:if %s.Field == HUDNumber
9724 //mt:if %s.Field == HUDItem
9727 //mt:if %s.Field == HUDDir
9730 //mt:if %s.Field == HUDAlign
9733 //mt:if %s.Field == HUDOffset
9736 //mt:if %s.Field == HUDWorldPos
9739 //mt:if %s.Field == HUDSize
9742 //mt:if %s.Field == HUDZIndex
9745 //mt:if %s.Field == HUDText2
9747 }))(obj)).Text) = string(local181)
9754 //mt:if %s.Field == HUDPos
9757 //mt:if %s.Field == HUDName
9760 //mt:if %s.Field == HUDScale
9763 //mt:if %s.Field == HUDText
9766 //mt:if %s.Field == HUDNumber
9769 //mt:if %s.Field == HUDItem
9772 //mt:if %s.Field == HUDDir
9775 //mt:if %s.Field == HUDAlign
9778 //mt:if %s.Field == HUDOffset
9781 //mt:if %s.Field == HUDWorldPos
9784 //mt:if %s.Field == HUDSize
9787 //mt:if %s.Field == HUDZIndex
9790 //mt:if %s.Field == HUDText2
9792 }))(obj)).Field == HUDNumber {
9799 //mt:if %s.Field == HUDPos
9802 //mt:if %s.Field == HUDName
9805 //mt:if %s.Field == HUDScale
9808 //mt:if %s.Field == HUDText
9811 //mt:if %s.Field == HUDNumber
9814 //mt:if %s.Field == HUDItem
9817 //mt:if %s.Field == HUDDir
9820 //mt:if %s.Field == HUDAlign
9823 //mt:if %s.Field == HUDOffset
9826 //mt:if %s.Field == HUDWorldPos
9829 //mt:if %s.Field == HUDSize
9832 //mt:if %s.Field == HUDZIndex
9835 //mt:if %s.Field == HUDText2
9846 //mt:if %s.Field == HUDPos
9849 //mt:if %s.Field == HUDName
9852 //mt:if %s.Field == HUDScale
9855 //mt:if %s.Field == HUDText
9858 //mt:if %s.Field == HUDNumber
9861 //mt:if %s.Field == HUDItem
9864 //mt:if %s.Field == HUDDir
9867 //mt:if %s.Field == HUDAlign
9870 //mt:if %s.Field == HUDOffset
9873 //mt:if %s.Field == HUDWorldPos
9876 //mt:if %s.Field == HUDSize
9879 //mt:if %s.Field == HUDZIndex
9882 //mt:if %s.Field == HUDText2
9884 }))(obj)).Field == HUDItem {
9891 //mt:if %s.Field == HUDPos
9894 //mt:if %s.Field == HUDName
9897 //mt:if %s.Field == HUDScale
9900 //mt:if %s.Field == HUDText
9903 //mt:if %s.Field == HUDNumber
9906 //mt:if %s.Field == HUDItem
9909 //mt:if %s.Field == HUDDir
9912 //mt:if %s.Field == HUDAlign
9915 //mt:if %s.Field == HUDOffset
9918 //mt:if %s.Field == HUDWorldPos
9921 //mt:if %s.Field == HUDSize
9924 //mt:if %s.Field == HUDZIndex
9927 //mt:if %s.Field == HUDText2
9938 //mt:if %s.Field == HUDPos
9941 //mt:if %s.Field == HUDName
9944 //mt:if %s.Field == HUDScale
9947 //mt:if %s.Field == HUDText
9950 //mt:if %s.Field == HUDNumber
9953 //mt:if %s.Field == HUDItem
9956 //mt:if %s.Field == HUDDir
9959 //mt:if %s.Field == HUDAlign
9962 //mt:if %s.Field == HUDOffset
9965 //mt:if %s.Field == HUDWorldPos
9968 //mt:if %s.Field == HUDSize
9971 //mt:if %s.Field == HUDZIndex
9974 //mt:if %s.Field == HUDText2
9976 }))(obj)).Field == HUDDir {
9983 //mt:if %s.Field == HUDPos
9986 //mt:if %s.Field == HUDName
9989 //mt:if %s.Field == HUDScale
9992 //mt:if %s.Field == HUDText
9995 //mt:if %s.Field == HUDNumber
9998 //mt:if %s.Field == HUDItem
10001 //mt:if %s.Field == HUDDir
10004 //mt:if %s.Field == HUDAlign
10007 //mt:if %s.Field == HUDOffset
10010 //mt:if %s.Field == HUDWorldPos
10013 //mt:if %s.Field == HUDSize
10016 //mt:if %s.Field == HUDZIndex
10019 //mt:if %s.Field == HUDText2
10030 //mt:if %s.Field == HUDPos
10033 //mt:if %s.Field == HUDName
10036 //mt:if %s.Field == HUDScale
10039 //mt:if %s.Field == HUDText
10042 //mt:if %s.Field == HUDNumber
10045 //mt:if %s.Field == HUDItem
10048 //mt:if %s.Field == HUDDir
10051 //mt:if %s.Field == HUDAlign
10054 //mt:if %s.Field == HUDOffset
10057 //mt:if %s.Field == HUDWorldPos
10060 //mt:if %s.Field == HUDSize
10063 //mt:if %s.Field == HUDZIndex
10066 //mt:if %s.Field == HUDText2
10068 }))(obj)).Field == HUDAlign {
10069 for local183 := range (*(*(struct {
10074 //mt:if %s.Field == HUDPos
10077 //mt:if %s.Field == HUDName
10080 //mt:if %s.Field == HUDScale
10083 //mt:if %s.Field == HUDText
10086 //mt:if %s.Field == HUDNumber
10089 //mt:if %s.Field == HUDItem
10092 //mt:if %s.Field == HUDDir
10095 //mt:if %s.Field == HUDAlign
10098 //mt:if %s.Field == HUDOffset
10101 //mt:if %s.Field == HUDWorldPos
10104 //mt:if %s.Field == HUDSize
10107 //mt:if %s.Field == HUDZIndex
10110 //mt:if %s.Field == HUDText2
10114 p := &((*(*(struct {
10119 //mt:if %s.Field == HUDPos
10122 //mt:if %s.Field == HUDName
10125 //mt:if %s.Field == HUDScale
10128 //mt:if %s.Field == HUDText
10131 //mt:if %s.Field == HUDNumber
10134 //mt:if %s.Field == HUDItem
10137 //mt:if %s.Field == HUDDir
10140 //mt:if %s.Field == HUDAlign
10143 //mt:if %s.Field == HUDOffset
10146 //mt:if %s.Field == HUDWorldPos
10149 //mt:if %s.Field == HUDSize
10152 //mt:if %s.Field == HUDZIndex
10155 //mt:if %s.Field == HUDText2
10157 }))(obj)).Align)[local183]
10158 *p = math.Float32frombits(read32(r))
10167 //mt:if %s.Field == HUDPos
10170 //mt:if %s.Field == HUDName
10173 //mt:if %s.Field == HUDScale
10176 //mt:if %s.Field == HUDText
10179 //mt:if %s.Field == HUDNumber
10182 //mt:if %s.Field == HUDItem
10185 //mt:if %s.Field == HUDDir
10188 //mt:if %s.Field == HUDAlign
10191 //mt:if %s.Field == HUDOffset
10194 //mt:if %s.Field == HUDWorldPos
10197 //mt:if %s.Field == HUDSize
10200 //mt:if %s.Field == HUDZIndex
10203 //mt:if %s.Field == HUDText2
10205 }))(obj)).Field == HUDOffset {
10206 for local184 := range (*(*(struct {
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
10251 p := &((*(*(struct {
10256 //mt:if %s.Field == HUDPos
10259 //mt:if %s.Field == HUDName
10262 //mt:if %s.Field == HUDScale
10265 //mt:if %s.Field == HUDText
10268 //mt:if %s.Field == HUDNumber
10271 //mt:if %s.Field == HUDItem
10274 //mt:if %s.Field == HUDDir
10277 //mt:if %s.Field == HUDAlign
10280 //mt:if %s.Field == HUDOffset
10283 //mt:if %s.Field == HUDWorldPos
10286 //mt:if %s.Field == HUDSize
10289 //mt:if %s.Field == HUDZIndex
10292 //mt:if %s.Field == HUDText2
10294 }))(obj)).Offset)[local184]
10295 *p = math.Float32frombits(read32(r))
10304 //mt:if %s.Field == HUDPos
10307 //mt:if %s.Field == HUDName
10310 //mt:if %s.Field == HUDScale
10313 //mt:if %s.Field == HUDText
10316 //mt:if %s.Field == HUDNumber
10319 //mt:if %s.Field == HUDItem
10322 //mt:if %s.Field == HUDDir
10325 //mt:if %s.Field == HUDAlign
10328 //mt:if %s.Field == HUDOffset
10331 //mt:if %s.Field == HUDWorldPos
10334 //mt:if %s.Field == HUDSize
10337 //mt:if %s.Field == HUDZIndex
10340 //mt:if %s.Field == HUDText2
10342 }))(obj)).Field == HUDWorldPos {
10343 if err := pcall(func() {
10349 //mt:if %s.Field == HUDPos
10352 //mt:if %s.Field == HUDName
10355 //mt:if %s.Field == HUDScale
10358 //mt:if %s.Field == HUDText
10361 //mt:if %s.Field == HUDNumber
10364 //mt:if %s.Field == HUDItem
10367 //mt:if %s.Field == HUDDir
10370 //mt:if %s.Field == HUDAlign
10373 //mt:if %s.Field == HUDOffset
10376 //mt:if %s.Field == HUDWorldPos
10379 //mt:if %s.Field == HUDSize
10382 //mt:if %s.Field == HUDZIndex
10385 //mt:if %s.Field == HUDText2
10387 }))(obj)).WorldPos).deserialize(r)
10392 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
10400 //mt:if %s.Field == HUDPos
10403 //mt:if %s.Field == HUDName
10406 //mt:if %s.Field == HUDScale
10409 //mt:if %s.Field == HUDText
10412 //mt:if %s.Field == HUDNumber
10415 //mt:if %s.Field == HUDItem
10418 //mt:if %s.Field == HUDDir
10421 //mt:if %s.Field == HUDAlign
10424 //mt:if %s.Field == HUDOffset
10427 //mt:if %s.Field == HUDWorldPos
10430 //mt:if %s.Field == HUDSize
10433 //mt:if %s.Field == HUDZIndex
10436 //mt:if %s.Field == HUDText2
10438 }))(obj)).Field == HUDSize {
10439 for local185 := range (*(*(struct {
10444 //mt:if %s.Field == HUDPos
10447 //mt:if %s.Field == HUDName
10450 //mt:if %s.Field == HUDScale
10453 //mt:if %s.Field == HUDText
10456 //mt:if %s.Field == HUDNumber
10459 //mt:if %s.Field == HUDItem
10462 //mt:if %s.Field == HUDDir
10465 //mt:if %s.Field == HUDAlign
10468 //mt:if %s.Field == HUDOffset
10471 //mt:if %s.Field == HUDWorldPos
10474 //mt:if %s.Field == HUDSize
10477 //mt:if %s.Field == HUDZIndex
10480 //mt:if %s.Field == HUDText2
10484 p := &((*(*(struct {
10489 //mt:if %s.Field == HUDPos
10492 //mt:if %s.Field == HUDName
10495 //mt:if %s.Field == HUDScale
10498 //mt:if %s.Field == HUDText
10501 //mt:if %s.Field == HUDNumber
10504 //mt:if %s.Field == HUDItem
10507 //mt:if %s.Field == HUDDir
10510 //mt:if %s.Field == HUDAlign
10513 //mt:if %s.Field == HUDOffset
10516 //mt:if %s.Field == HUDWorldPos
10519 //mt:if %s.Field == HUDSize
10522 //mt:if %s.Field == HUDZIndex
10525 //mt:if %s.Field == HUDText2
10527 }))(obj)).Size)[local185]
10528 *p = int32(read32(r))
10537 //mt:if %s.Field == HUDPos
10540 //mt:if %s.Field == HUDName
10543 //mt:if %s.Field == HUDScale
10546 //mt:if %s.Field == HUDText
10549 //mt:if %s.Field == HUDNumber
10552 //mt:if %s.Field == HUDItem
10555 //mt:if %s.Field == HUDDir
10558 //mt:if %s.Field == HUDAlign
10561 //mt:if %s.Field == HUDOffset
10564 //mt:if %s.Field == HUDWorldPos
10567 //mt:if %s.Field == HUDSize
10570 //mt:if %s.Field == HUDZIndex
10573 //mt:if %s.Field == HUDText2
10575 }))(obj)).Field == HUDZIndex {
10577 p := &(*(*(struct {
10582 //mt:if %s.Field == HUDPos
10585 //mt:if %s.Field == HUDName
10588 //mt:if %s.Field == HUDScale
10591 //mt:if %s.Field == HUDText
10594 //mt:if %s.Field == HUDNumber
10597 //mt:if %s.Field == HUDItem
10600 //mt:if %s.Field == HUDDir
10603 //mt:if %s.Field == HUDAlign
10606 //mt:if %s.Field == HUDOffset
10609 //mt:if %s.Field == HUDWorldPos
10612 //mt:if %s.Field == HUDSize
10615 //mt:if %s.Field == HUDZIndex
10618 //mt:if %s.Field == HUDText2
10621 *p = int32(read32(r))
10629 //mt:if %s.Field == HUDPos
10632 //mt:if %s.Field == HUDName
10635 //mt:if %s.Field == HUDScale
10638 //mt:if %s.Field == HUDText
10641 //mt:if %s.Field == HUDNumber
10644 //mt:if %s.Field == HUDItem
10647 //mt:if %s.Field == HUDDir
10650 //mt:if %s.Field == HUDAlign
10653 //mt:if %s.Field == HUDOffset
10656 //mt:if %s.Field == HUDWorldPos
10659 //mt:if %s.Field == HUDSize
10662 //mt:if %s.Field == HUDZIndex
10665 //mt:if %s.Field == HUDText2
10667 }))(obj)).Field == HUDText2 {
10668 var local186 []uint8
10669 var local187 uint16
10674 (local186) = make([]uint8, local187)
10676 _, err := io.ReadFull(r, (local186)[:])
10684 //mt:if %s.Field == HUDPos
10687 //mt:if %s.Field == HUDName
10690 //mt:if %s.Field == HUDScale
10693 //mt:if %s.Field == HUDText
10696 //mt:if %s.Field == HUDNumber
10699 //mt:if %s.Field == HUDItem
10702 //mt:if %s.Field == HUDDir
10705 //mt:if %s.Field == HUDAlign
10708 //mt:if %s.Field == HUDOffset
10711 //mt:if %s.Field == HUDWorldPos
10714 //mt:if %s.Field == HUDSize
10717 //mt:if %s.Field == HUDZIndex
10720 //mt:if %s.Field == HUDText2
10722 }))(obj)).Text2) = string(local186)
10726 func (obj *ToCltHUDFlags) serialize(w io.Writer) {
10727 if err := pcall(func() {
10731 Flags, Mask HUDFlags
10732 }))(obj)).Flags).serialize(w)
10737 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10739 if err := pcall(func() {
10743 Flags, Mask HUDFlags
10744 }))(obj)).Mask).serialize(w)
10749 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10753 func (obj *ToCltHUDFlags) deserialize(r io.Reader) {
10754 if err := pcall(func() {
10758 Flags, Mask HUDFlags
10759 }))(obj)).Flags).deserialize(r)
10764 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10766 if err := pcall(func() {
10770 Flags, Mask HUDFlags
10771 }))(obj)).Mask).deserialize(r)
10776 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDFlags", err))
10780 func (obj *ToCltSetHotbarParam) serialize(w io.Writer) {
10781 if err := pcall(func() {
10785 //mt:if %s.Param == HotbarSize
10786 //mt:const uint16(4) // Size of Size field.
10789 //mt:if %s.Param != HotbarSize
10791 }))(obj)).Param).serialize(w)
10796 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
10801 //mt:if %s.Param == HotbarSize
10802 //mt:const uint16(4) // Size of Size field.
10805 //mt:if %s.Param != HotbarSize
10807 }))(obj)).Param == HotbarSize {
10809 local188 := uint16(4) // Size of Size field.
10812 write16(w, uint16(x))
10819 //mt:if %s.Param == HotbarSize
10820 //mt:const uint16(4) // Size of Size field.
10823 //mt:if %s.Param != HotbarSize
10826 write32(w, uint32(x))
10832 //mt:if %s.Param == HotbarSize
10833 //mt:const uint16(4) // Size of Size field.
10836 //mt:if %s.Param != HotbarSize
10838 }))(obj)).Param != HotbarSize {
10839 if err := pcall(func() {
10843 //mt:if %s.Param == HotbarSize
10844 //mt:const uint16(4) // Size of Size field.
10847 //mt:if %s.Param != HotbarSize
10849 }))(obj)).Img).serialize(w)
10854 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
10859 func (obj *ToCltSetHotbarParam) deserialize(r io.Reader) {
10860 if err := pcall(func() {
10864 //mt:if %s.Param == HotbarSize
10865 //mt:const uint16(4) // Size of Size field.
10868 //mt:if %s.Param != HotbarSize
10870 }))(obj)).Param).deserialize(r)
10875 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HotbarParam", err))
10880 //mt:if %s.Param == HotbarSize
10881 //mt:const uint16(4) // Size of Size field.
10884 //mt:if %s.Param != HotbarSize
10886 }))(obj)).Param == HotbarSize {
10888 var local189 uint16
10889 local190 := uint16(4) // Size of Size field.
10894 if local189 != local190 {
10895 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
10899 p := &(*(*(struct {
10902 //mt:if %s.Param == HotbarSize
10903 //mt:const uint16(4) // Size of Size field.
10906 //mt:if %s.Param != HotbarSize
10909 *p = int32(read32(r))
10915 //mt:if %s.Param == HotbarSize
10916 //mt:const uint16(4) // Size of Size field.
10919 //mt:if %s.Param != HotbarSize
10921 }))(obj)).Param != HotbarSize {
10922 if err := pcall(func() {
10926 //mt:if %s.Param == HotbarSize
10927 //mt:const uint16(4) // Size of Size field.
10930 //mt:if %s.Param != HotbarSize
10932 }))(obj)).Img).deserialize(r)
10937 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
10942 func (obj *ToCltBreath) serialize(w io.Writer) {
10947 write16(w, uint16(x))
10951 func (obj *ToCltBreath) deserialize(r io.Reader) {
10953 p := &(*(*(struct {
10960 func (obj *ToCltSkyParams) serialize(w io.Writer) {
10963 BgColor color.NRGBA
10966 SunFogTint color.NRGBA
10967 MoonFogTint color.NRGBA
10970 //mt:if %s.Type == "skybox"
10973 //mt:if %s.Type == "regular"
10974 DaySky, DayHorizon,
10975 DawnSky, DawnHorizon,
10976 NightSky, NightHorizon,
10979 w.Write([]byte{x.A, x.R, x.G, x.B})
10981 if len(([]byte((*(*(struct {
10982 BgColor color.NRGBA
10985 SunFogTint color.NRGBA
10986 MoonFogTint color.NRGBA
10989 //mt:if %s.Type == "skybox"
10992 //mt:if %s.Type == "regular"
10993 DaySky, DayHorizon,
10994 DawnSky, DawnHorizon,
10995 NightSky, NightHorizon,
10997 }))(obj)).Type))) > math.MaxUint16 {
11001 x := uint16(len(([]byte((*(*(struct {
11002 BgColor color.NRGBA
11005 SunFogTint color.NRGBA
11006 MoonFogTint color.NRGBA
11009 //mt:if %s.Type == "skybox"
11012 //mt:if %s.Type == "regular"
11013 DaySky, DayHorizon,
11014 DawnSky, DawnHorizon,
11015 NightSky, NightHorizon,
11018 write16(w, uint16(x))
11021 _, err := w.Write(([]byte((*(*(struct {
11022 BgColor color.NRGBA
11025 SunFogTint color.NRGBA
11026 MoonFogTint color.NRGBA
11029 //mt:if %s.Type == "skybox"
11032 //mt:if %s.Type == "regular"
11033 DaySky, DayHorizon,
11034 DawnSky, DawnHorizon,
11035 NightSky, NightHorizon,
11037 }))(obj)).Type))[:])
11042 BgColor color.NRGBA
11045 SunFogTint color.NRGBA
11046 MoonFogTint color.NRGBA
11049 //mt:if %s.Type == "skybox"
11052 //mt:if %s.Type == "regular"
11053 DaySky, DayHorizon,
11054 DawnSky, DawnHorizon,
11055 NightSky, NightHorizon,
11066 BgColor color.NRGBA
11069 SunFogTint color.NRGBA
11070 MoonFogTint color.NRGBA
11073 //mt:if %s.Type == "skybox"
11076 //mt:if %s.Type == "regular"
11077 DaySky, DayHorizon,
11078 DawnSky, DawnHorizon,
11079 NightSky, NightHorizon,
11081 }))(obj)).SunFogTint
11082 w.Write([]byte{x.A, x.R, x.G, x.B})
11086 BgColor color.NRGBA
11089 SunFogTint color.NRGBA
11090 MoonFogTint color.NRGBA
11093 //mt:if %s.Type == "skybox"
11096 //mt:if %s.Type == "regular"
11097 DaySky, DayHorizon,
11098 DawnSky, DawnHorizon,
11099 NightSky, NightHorizon,
11101 }))(obj)).MoonFogTint
11102 w.Write([]byte{x.A, x.R, x.G, x.B})
11104 if len(([]byte((*(*(struct {
11105 BgColor color.NRGBA
11108 SunFogTint color.NRGBA
11109 MoonFogTint color.NRGBA
11112 //mt:if %s.Type == "skybox"
11115 //mt:if %s.Type == "regular"
11116 DaySky, DayHorizon,
11117 DawnSky, DawnHorizon,
11118 NightSky, NightHorizon,
11120 }))(obj)).FogTintType))) > math.MaxUint16 {
11124 x := uint16(len(([]byte((*(*(struct {
11125 BgColor color.NRGBA
11128 SunFogTint color.NRGBA
11129 MoonFogTint color.NRGBA
11132 //mt:if %s.Type == "skybox"
11135 //mt:if %s.Type == "regular"
11136 DaySky, DayHorizon,
11137 DawnSky, DawnHorizon,
11138 NightSky, NightHorizon,
11140 }))(obj)).FogTintType))))
11141 write16(w, uint16(x))
11144 _, err := w.Write(([]byte((*(*(struct {
11145 BgColor color.NRGBA
11148 SunFogTint color.NRGBA
11149 MoonFogTint color.NRGBA
11152 //mt:if %s.Type == "skybox"
11155 //mt:if %s.Type == "regular"
11156 DaySky, DayHorizon,
11157 DawnSky, DawnHorizon,
11158 NightSky, NightHorizon,
11160 }))(obj)).FogTintType))[:])
11164 BgColor color.NRGBA
11167 SunFogTint color.NRGBA
11168 MoonFogTint color.NRGBA
11171 //mt:if %s.Type == "skybox"
11174 //mt:if %s.Type == "regular"
11175 DaySky, DayHorizon,
11176 DawnSky, DawnHorizon,
11177 NightSky, NightHorizon,
11179 }))(obj)).Type == "skybox" {
11180 if len(((*(*(struct {
11181 BgColor color.NRGBA
11184 SunFogTint color.NRGBA
11185 MoonFogTint color.NRGBA
11188 //mt:if %s.Type == "skybox"
11191 //mt:if %s.Type == "regular"
11192 DaySky, DayHorizon,
11193 DawnSky, DawnHorizon,
11194 NightSky, NightHorizon,
11196 }))(obj)).Textures)) > math.MaxUint16 {
11200 x := uint16(len(((*(*(struct {
11201 BgColor color.NRGBA
11204 SunFogTint color.NRGBA
11205 MoonFogTint color.NRGBA
11208 //mt:if %s.Type == "skybox"
11211 //mt:if %s.Type == "regular"
11212 DaySky, DayHorizon,
11213 DawnSky, DawnHorizon,
11214 NightSky, NightHorizon,
11216 }))(obj)).Textures)))
11217 write16(w, uint16(x))
11219 for local191 := range (*(*(struct {
11220 BgColor color.NRGBA
11223 SunFogTint color.NRGBA
11224 MoonFogTint color.NRGBA
11227 //mt:if %s.Type == "skybox"
11230 //mt:if %s.Type == "regular"
11231 DaySky, DayHorizon,
11232 DawnSky, DawnHorizon,
11233 NightSky, NightHorizon,
11235 }))(obj)).Textures {
11236 if err := pcall(func() {
11238 BgColor color.NRGBA
11241 SunFogTint color.NRGBA
11242 MoonFogTint color.NRGBA
11245 //mt:if %s.Type == "skybox"
11248 //mt:if %s.Type == "regular"
11249 DaySky, DayHorizon,
11250 DawnSky, DawnHorizon,
11251 NightSky, NightHorizon,
11253 }))(obj)).Textures)[local191]).serialize(w)
11258 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11263 BgColor color.NRGBA
11266 SunFogTint color.NRGBA
11267 MoonFogTint color.NRGBA
11270 //mt:if %s.Type == "skybox"
11273 //mt:if %s.Type == "regular"
11274 DaySky, DayHorizon,
11275 DawnSky, DawnHorizon,
11276 NightSky, NightHorizon,
11278 }))(obj)).Type == "regular" {
11281 BgColor color.NRGBA
11284 SunFogTint color.NRGBA
11285 MoonFogTint color.NRGBA
11288 //mt:if %s.Type == "skybox"
11291 //mt:if %s.Type == "regular"
11292 DaySky, DayHorizon,
11293 DawnSky, DawnHorizon,
11294 NightSky, NightHorizon,
11297 w.Write([]byte{x.A, x.R, x.G, x.B})
11301 BgColor color.NRGBA
11304 SunFogTint color.NRGBA
11305 MoonFogTint color.NRGBA
11308 //mt:if %s.Type == "skybox"
11311 //mt:if %s.Type == "regular"
11312 DaySky, DayHorizon,
11313 DawnSky, DawnHorizon,
11314 NightSky, NightHorizon,
11316 }))(obj)).DayHorizon
11317 w.Write([]byte{x.A, x.R, x.G, x.B})
11321 BgColor color.NRGBA
11324 SunFogTint color.NRGBA
11325 MoonFogTint color.NRGBA
11328 //mt:if %s.Type == "skybox"
11331 //mt:if %s.Type == "regular"
11332 DaySky, DayHorizon,
11333 DawnSky, DawnHorizon,
11334 NightSky, NightHorizon,
11337 w.Write([]byte{x.A, x.R, x.G, x.B})
11341 BgColor color.NRGBA
11344 SunFogTint color.NRGBA
11345 MoonFogTint color.NRGBA
11348 //mt:if %s.Type == "skybox"
11351 //mt:if %s.Type == "regular"
11352 DaySky, DayHorizon,
11353 DawnSky, DawnHorizon,
11354 NightSky, NightHorizon,
11356 }))(obj)).DawnHorizon
11357 w.Write([]byte{x.A, x.R, x.G, x.B})
11361 BgColor color.NRGBA
11364 SunFogTint color.NRGBA
11365 MoonFogTint color.NRGBA
11368 //mt:if %s.Type == "skybox"
11371 //mt:if %s.Type == "regular"
11372 DaySky, DayHorizon,
11373 DawnSky, DawnHorizon,
11374 NightSky, NightHorizon,
11377 w.Write([]byte{x.A, x.R, x.G, x.B})
11381 BgColor color.NRGBA
11384 SunFogTint color.NRGBA
11385 MoonFogTint color.NRGBA
11388 //mt:if %s.Type == "skybox"
11391 //mt:if %s.Type == "regular"
11392 DaySky, DayHorizon,
11393 DawnSky, DawnHorizon,
11394 NightSky, NightHorizon,
11396 }))(obj)).NightHorizon
11397 w.Write([]byte{x.A, x.R, x.G, x.B})
11401 BgColor color.NRGBA
11404 SunFogTint color.NRGBA
11405 MoonFogTint color.NRGBA
11408 //mt:if %s.Type == "skybox"
11411 //mt:if %s.Type == "regular"
11412 DaySky, DayHorizon,
11413 DawnSky, DawnHorizon,
11414 NightSky, NightHorizon,
11417 w.Write([]byte{x.A, x.R, x.G, x.B})
11422 func (obj *ToCltSkyParams) deserialize(r io.Reader) {
11424 p := &(*(*(struct {
11425 BgColor color.NRGBA
11428 SunFogTint color.NRGBA
11429 MoonFogTint color.NRGBA
11432 //mt:if %s.Type == "skybox"
11435 //mt:if %s.Type == "regular"
11436 DaySky, DayHorizon,
11437 DawnSky, DawnHorizon,
11438 NightSky, NightHorizon,
11441 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11443 var local192 []uint8
11444 var local193 uint16
11449 (local192) = make([]uint8, local193)
11451 _, err := io.ReadFull(r, (local192)[:])
11455 BgColor color.NRGBA
11458 SunFogTint color.NRGBA
11459 MoonFogTint color.NRGBA
11462 //mt:if %s.Type == "skybox"
11465 //mt:if %s.Type == "regular"
11466 DaySky, DayHorizon,
11467 DawnSky, DawnHorizon,
11468 NightSky, NightHorizon,
11470 }))(obj)).Type) = string(local192)
11472 p := &(*(*(struct {
11473 BgColor color.NRGBA
11476 SunFogTint color.NRGBA
11477 MoonFogTint color.NRGBA
11480 //mt:if %s.Type == "skybox"
11483 //mt:if %s.Type == "regular"
11484 DaySky, DayHorizon,
11485 DawnSky, DawnHorizon,
11486 NightSky, NightHorizon,
11489 switch n := read8(r); n {
11495 chk(fmt.Errorf("invalid bool: %d", n))
11499 p := &(*(*(struct {
11500 BgColor color.NRGBA
11503 SunFogTint color.NRGBA
11504 MoonFogTint color.NRGBA
11507 //mt:if %s.Type == "skybox"
11510 //mt:if %s.Type == "regular"
11511 DaySky, DayHorizon,
11512 DawnSky, DawnHorizon,
11513 NightSky, NightHorizon,
11515 }))(obj)).SunFogTint
11516 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11519 p := &(*(*(struct {
11520 BgColor color.NRGBA
11523 SunFogTint color.NRGBA
11524 MoonFogTint color.NRGBA
11527 //mt:if %s.Type == "skybox"
11530 //mt:if %s.Type == "regular"
11531 DaySky, DayHorizon,
11532 DawnSky, DawnHorizon,
11533 NightSky, NightHorizon,
11535 }))(obj)).MoonFogTint
11536 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11538 var local194 []uint8
11539 var local195 uint16
11544 (local194) = make([]uint8, local195)
11546 _, err := io.ReadFull(r, (local194)[:])
11550 BgColor color.NRGBA
11553 SunFogTint color.NRGBA
11554 MoonFogTint color.NRGBA
11557 //mt:if %s.Type == "skybox"
11560 //mt:if %s.Type == "regular"
11561 DaySky, DayHorizon,
11562 DawnSky, DawnHorizon,
11563 NightSky, NightHorizon,
11565 }))(obj)).FogTintType) = string(local194)
11567 BgColor color.NRGBA
11570 SunFogTint color.NRGBA
11571 MoonFogTint color.NRGBA
11574 //mt:if %s.Type == "skybox"
11577 //mt:if %s.Type == "regular"
11578 DaySky, DayHorizon,
11579 DawnSky, DawnHorizon,
11580 NightSky, NightHorizon,
11582 }))(obj)).Type == "skybox" {
11583 var local196 uint16
11589 BgColor color.NRGBA
11592 SunFogTint color.NRGBA
11593 MoonFogTint color.NRGBA
11596 //mt:if %s.Type == "skybox"
11599 //mt:if %s.Type == "regular"
11600 DaySky, DayHorizon,
11601 DawnSky, DawnHorizon,
11602 NightSky, NightHorizon,
11604 }))(obj)).Textures) = make([]Texture, local196)
11605 for local197 := range (*(*(struct {
11606 BgColor color.NRGBA
11609 SunFogTint color.NRGBA
11610 MoonFogTint color.NRGBA
11613 //mt:if %s.Type == "skybox"
11616 //mt:if %s.Type == "regular"
11617 DaySky, DayHorizon,
11618 DawnSky, DawnHorizon,
11619 NightSky, NightHorizon,
11621 }))(obj)).Textures {
11622 if err := pcall(func() {
11624 BgColor color.NRGBA
11627 SunFogTint color.NRGBA
11628 MoonFogTint color.NRGBA
11631 //mt:if %s.Type == "skybox"
11634 //mt:if %s.Type == "regular"
11635 DaySky, DayHorizon,
11636 DawnSky, DawnHorizon,
11637 NightSky, NightHorizon,
11639 }))(obj)).Textures)[local197]).deserialize(r)
11644 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
11649 BgColor color.NRGBA
11652 SunFogTint color.NRGBA
11653 MoonFogTint color.NRGBA
11656 //mt:if %s.Type == "skybox"
11659 //mt:if %s.Type == "regular"
11660 DaySky, DayHorizon,
11661 DawnSky, DawnHorizon,
11662 NightSky, NightHorizon,
11664 }))(obj)).Type == "regular" {
11666 p := &(*(*(struct {
11667 BgColor color.NRGBA
11670 SunFogTint color.NRGBA
11671 MoonFogTint color.NRGBA
11674 //mt:if %s.Type == "skybox"
11677 //mt:if %s.Type == "regular"
11678 DaySky, DayHorizon,
11679 DawnSky, DawnHorizon,
11680 NightSky, NightHorizon,
11683 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11686 p := &(*(*(struct {
11687 BgColor color.NRGBA
11690 SunFogTint color.NRGBA
11691 MoonFogTint color.NRGBA
11694 //mt:if %s.Type == "skybox"
11697 //mt:if %s.Type == "regular"
11698 DaySky, DayHorizon,
11699 DawnSky, DawnHorizon,
11700 NightSky, NightHorizon,
11702 }))(obj)).DayHorizon
11703 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11706 p := &(*(*(struct {
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 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11726 p := &(*(*(struct {
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)).DawnHorizon
11743 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11746 p := &(*(*(struct {
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 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11766 p := &(*(*(struct {
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)).NightHorizon
11783 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11786 p := &(*(*(struct {
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 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11808 func (obj *ToCltOverrideDayNightRatio) serialize(w io.Writer) {
11825 write16(w, uint16(x))
11829 func (obj *ToCltOverrideDayNightRatio) deserialize(r io.Reader) {
11831 p := &(*(*(struct {
11835 switch n := read8(r); n {
11841 chk(fmt.Errorf("invalid bool: %d", n))
11845 p := &(*(*(struct {
11853 func (obj *ToCltLocalPlayerAnim) serialize(w io.Writer) {
11854 for local198 := range (*(*(struct {
11855 Idle, Walk, Dig, WalkDig [2]int32
11859 x := ((*(*(struct {
11860 Idle, Walk, Dig, WalkDig [2]int32
11862 }))(obj)).Idle)[local198]
11863 write32(w, uint32(x))
11866 for local199 := range (*(*(struct {
11867 Idle, Walk, Dig, WalkDig [2]int32
11871 x := ((*(*(struct {
11872 Idle, Walk, Dig, WalkDig [2]int32
11874 }))(obj)).Walk)[local199]
11875 write32(w, uint32(x))
11878 for local200 := range (*(*(struct {
11879 Idle, Walk, Dig, WalkDig [2]int32
11883 x := ((*(*(struct {
11884 Idle, Walk, Dig, WalkDig [2]int32
11886 }))(obj)).Dig)[local200]
11887 write32(w, uint32(x))
11890 for local201 := range (*(*(struct {
11891 Idle, Walk, Dig, WalkDig [2]int32
11893 }))(obj)).WalkDig {
11895 x := ((*(*(struct {
11896 Idle, Walk, Dig, WalkDig [2]int32
11898 }))(obj)).WalkDig)[local201]
11899 write32(w, uint32(x))
11904 Idle, Walk, Dig, WalkDig [2]int32
11907 write32(w, math.Float32bits(x))
11911 func (obj *ToCltLocalPlayerAnim) deserialize(r io.Reader) {
11912 for local202 := range (*(*(struct {
11913 Idle, Walk, Dig, WalkDig [2]int32
11917 p := &((*(*(struct {
11918 Idle, Walk, Dig, WalkDig [2]int32
11920 }))(obj)).Idle)[local202]
11921 *p = int32(read32(r))
11924 for local203 := range (*(*(struct {
11925 Idle, Walk, Dig, WalkDig [2]int32
11929 p := &((*(*(struct {
11930 Idle, Walk, Dig, WalkDig [2]int32
11932 }))(obj)).Walk)[local203]
11933 *p = int32(read32(r))
11936 for local204 := range (*(*(struct {
11937 Idle, Walk, Dig, WalkDig [2]int32
11941 p := &((*(*(struct {
11942 Idle, Walk, Dig, WalkDig [2]int32
11944 }))(obj)).Dig)[local204]
11945 *p = int32(read32(r))
11948 for local205 := range (*(*(struct {
11949 Idle, Walk, Dig, WalkDig [2]int32
11951 }))(obj)).WalkDig {
11953 p := &((*(*(struct {
11954 Idle, Walk, Dig, WalkDig [2]int32
11956 }))(obj)).WalkDig)[local205]
11957 *p = int32(read32(r))
11961 p := &(*(*(struct {
11962 Idle, Walk, Dig, WalkDig [2]int32
11965 *p = math.Float32frombits(read32(r))
11969 func (obj *ToCltEyeOffset) serialize(w io.Writer) {
11970 if err := pcall(func() {
11973 }))(obj)).First).serialize(w)
11978 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
11980 if err := pcall(func() {
11983 }))(obj)).Third).serialize(w)
11988 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
11992 func (obj *ToCltEyeOffset) deserialize(r io.Reader) {
11993 if err := pcall(func() {
11996 }))(obj)).First).deserialize(r)
12001 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12003 if err := pcall(func() {
12006 }))(obj)).Third).deserialize(r)
12011 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
12015 func (obj *ToCltDelParticleSpawner) serialize(w io.Writer) {
12016 if err := pcall(func() {
12018 ID ParticleSpawnerID
12019 }))(obj)).ID).serialize(w)
12024 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12028 func (obj *ToCltDelParticleSpawner) deserialize(r io.Reader) {
12029 if err := pcall(func() {
12031 ID ParticleSpawnerID
12032 }))(obj)).ID).deserialize(r)
12037 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ParticleSpawnerID", err))
12041 func (obj *ToCltCloudParams) serialize(w io.Writer) {
12045 DiffuseColor color.NRGBA
12046 AmbientColor color.NRGBA
12051 write32(w, math.Float32bits(x))
12056 DiffuseColor color.NRGBA
12057 AmbientColor color.NRGBA
12061 }))(obj)).DiffuseColor
12062 w.Write([]byte{x.A, x.R, x.G, x.B})
12067 DiffuseColor color.NRGBA
12068 AmbientColor color.NRGBA
12072 }))(obj)).AmbientColor
12073 w.Write([]byte{x.A, x.R, x.G, x.B})
12078 DiffuseColor color.NRGBA
12079 AmbientColor color.NRGBA
12084 write32(w, math.Float32bits(x))
12089 DiffuseColor color.NRGBA
12090 AmbientColor color.NRGBA
12094 }))(obj)).Thickness
12095 write32(w, math.Float32bits(x))
12097 for local206 := range (*(*(struct {
12099 DiffuseColor color.NRGBA
12100 AmbientColor color.NRGBA
12106 x := ((*(*(struct {
12108 DiffuseColor color.NRGBA
12109 AmbientColor color.NRGBA
12113 }))(obj)).Speed)[local206]
12114 write32(w, math.Float32bits(x))
12119 func (obj *ToCltCloudParams) deserialize(r io.Reader) {
12121 p := &(*(*(struct {
12123 DiffuseColor color.NRGBA
12124 AmbientColor color.NRGBA
12129 *p = math.Float32frombits(read32(r))
12132 p := &(*(*(struct {
12134 DiffuseColor color.NRGBA
12135 AmbientColor color.NRGBA
12139 }))(obj)).DiffuseColor
12140 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12143 p := &(*(*(struct {
12145 DiffuseColor color.NRGBA
12146 AmbientColor color.NRGBA
12150 }))(obj)).AmbientColor
12151 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12154 p := &(*(*(struct {
12156 DiffuseColor color.NRGBA
12157 AmbientColor color.NRGBA
12162 *p = math.Float32frombits(read32(r))
12165 p := &(*(*(struct {
12167 DiffuseColor color.NRGBA
12168 AmbientColor color.NRGBA
12172 }))(obj)).Thickness
12173 *p = math.Float32frombits(read32(r))
12175 for local207 := range (*(*(struct {
12177 DiffuseColor color.NRGBA
12178 AmbientColor color.NRGBA
12184 p := &((*(*(struct {
12186 DiffuseColor color.NRGBA
12187 AmbientColor color.NRGBA
12191 }))(obj)).Speed)[local207]
12192 *p = math.Float32frombits(read32(r))
12197 func (obj *ToCltFadeSound) serialize(w io.Writer) {
12198 if err := pcall(func() {
12203 }))(obj)).ID).serialize(w)
12208 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12216 write32(w, math.Float32bits(x))
12224 write32(w, math.Float32bits(x))
12228 func (obj *ToCltFadeSound) deserialize(r io.Reader) {
12229 if err := pcall(func() {
12234 }))(obj)).ID).deserialize(r)
12239 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundID", err))
12242 p := &(*(*(struct {
12247 *p = math.Float32frombits(read32(r))
12250 p := &(*(*(struct {
12255 *p = math.Float32frombits(read32(r))
12259 func (obj *ToCltUpdatePlayerList) serialize(w io.Writer) {
12260 if err := pcall(func() {
12262 Type PlayerListUpdateType
12264 }))(obj)).Type).serialize(w)
12269 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12271 if len(((*(*(struct {
12272 Type PlayerListUpdateType
12274 }))(obj)).Players)) > math.MaxUint16 {
12278 x := uint16(len(((*(*(struct {
12279 Type PlayerListUpdateType
12281 }))(obj)).Players)))
12282 write16(w, uint16(x))
12284 for local208 := range (*(*(struct {
12285 Type PlayerListUpdateType
12287 }))(obj)).Players {
12288 if len(([]byte(((*(*(struct {
12289 Type PlayerListUpdateType
12291 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12295 x := uint16(len(([]byte(((*(*(struct {
12296 Type PlayerListUpdateType
12298 }))(obj)).Players)[local208]))))
12299 write16(w, uint16(x))
12302 _, err := w.Write(([]byte(((*(*(struct {
12303 Type PlayerListUpdateType
12305 }))(obj)).Players)[local208]))[:])
12311 func (obj *ToCltUpdatePlayerList) deserialize(r io.Reader) {
12312 if err := pcall(func() {
12314 Type PlayerListUpdateType
12316 }))(obj)).Type).deserialize(r)
12321 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.PlayerListUpdateType", err))
12323 var local209 uint16
12329 Type PlayerListUpdateType
12331 }))(obj)).Players) = make([]string, local209)
12332 for local210 := range (*(*(struct {
12333 Type PlayerListUpdateType
12335 }))(obj)).Players {
12336 var local211 []uint8
12337 var local212 uint16
12342 (local211) = make([]uint8, local212)
12344 _, err := io.ReadFull(r, (local211)[:])
12348 Type PlayerListUpdateType
12350 }))(obj)).Players)[local210]) = string(local211)
12354 func (obj *ToCltModChanMsg) serialize(w io.Writer) {
12355 if len(([]byte((*(*(struct {
12359 }))(obj)).Channel))) > math.MaxUint16 {
12363 x := uint16(len(([]byte((*(*(struct {
12367 }))(obj)).Channel))))
12368 write16(w, uint16(x))
12371 _, err := w.Write(([]byte((*(*(struct {
12375 }))(obj)).Channel))[:])
12378 if len(([]byte((*(*(struct {
12382 }))(obj)).Sender))) > math.MaxUint16 {
12386 x := uint16(len(([]byte((*(*(struct {
12390 }))(obj)).Sender))))
12391 write16(w, uint16(x))
12394 _, err := w.Write(([]byte((*(*(struct {
12398 }))(obj)).Sender))[:])
12401 if len(([]byte((*(*(struct {
12405 }))(obj)).Msg))) > math.MaxUint16 {
12409 x := uint16(len(([]byte((*(*(struct {
12414 write16(w, uint16(x))
12417 _, err := w.Write(([]byte((*(*(struct {
12421 }))(obj)).Msg))[:])
12426 func (obj *ToCltModChanMsg) deserialize(r io.Reader) {
12427 var local213 []uint8
12428 var local214 uint16
12433 (local213) = make([]uint8, local214)
12435 _, err := io.ReadFull(r, (local213)[:])
12442 }))(obj)).Channel) = string(local213)
12443 var local215 []uint8
12444 var local216 uint16
12449 (local215) = make([]uint8, local216)
12451 _, err := io.ReadFull(r, (local215)[:])
12458 }))(obj)).Sender) = string(local215)
12459 var local217 []uint8
12460 var local218 uint16
12465 (local217) = make([]uint8, local218)
12467 _, err := io.ReadFull(r, (local217)[:])
12474 }))(obj)).Msg) = string(local217)
12477 func (obj *ToCltModChanSig) serialize(w io.Writer) {
12478 if err := pcall(func() {
12482 }))(obj)).Signal).serialize(w)
12487 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12489 if len(([]byte((*(*(struct {
12492 }))(obj)).Channel))) > math.MaxUint16 {
12496 x := uint16(len(([]byte((*(*(struct {
12499 }))(obj)).Channel))))
12500 write16(w, uint16(x))
12503 _, err := w.Write(([]byte((*(*(struct {
12506 }))(obj)).Channel))[:])
12511 func (obj *ToCltModChanSig) deserialize(r io.Reader) {
12512 if err := pcall(func() {
12516 }))(obj)).Signal).deserialize(r)
12521 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ModChanSig", err))
12523 var local219 []uint8
12524 var local220 uint16
12529 (local219) = make([]uint8, local220)
12531 _, err := io.ReadFull(r, (local219)[:])
12537 }))(obj)).Channel) = string(local219)
12540 func (obj *ToCltNodeMetasChanged) serialize(w io.Writer) {
12543 w := new(bytes.Buffer)
12547 Changed map[[3]int16]*NodeMeta
12550 w := zlib.NewWriter(w)
12555 if len(x) > math.MaxUint16 {
12558 write16(w, uint16(len(x)))
12559 keys := make([][3]int16, 0, len(x))
12560 for key := range x {
12561 keys = append(keys, key)
12563 sort.Slice(keys, func(i, j int) bool {
12564 p, q := keys[i], keys[j]
12575 for _, key := range keys {
12576 for _, n := range key {
12577 write16(w, uint16(n))
12579 chk(serialize(w, x[key]))
12588 if len((buf.Bytes())) > math.MaxUint32 {
12592 x := uint32(len((buf.Bytes())))
12593 write32(w, uint32(x))
12596 _, err := w.Write((buf.Bytes())[:])
12603 func (obj *ToCltNodeMetasChanged) deserialize(r io.Reader) {
12610 r := &io.LimitedReader{R: r, N: int64(n)}
12612 p := &(*(*(struct {
12614 Changed map[[3]int16]*NodeMeta
12617 r, err := zlib.NewReader(byteReader{r})
12619 switch ver := read8(r); ver {
12624 *p = make(map[[3]int16]*NodeMeta, n)
12627 for i := range pos {
12628 pos[i] = int16(read16(r))
12630 nm := new(NodeMeta)
12631 chk(deserialize(r, nm))
12635 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
12641 chk(fmt.Errorf("%d bytes of trailing data", r.N))
12646 func (obj *ToCltSunParams) serialize(w io.Writer) {
12662 if err := pcall(func() {
12670 }))(obj)).Texture).serialize(w)
12675 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12677 if err := pcall(func() {
12685 }))(obj)).ToneMap).serialize(w)
12690 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12692 if err := pcall(func() {
12700 }))(obj)).Rise).serialize(w)
12705 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12731 write32(w, math.Float32bits(x))
12735 func (obj *ToCltSunParams) deserialize(r io.Reader) {
12737 p := &(*(*(struct {
12745 switch n := read8(r); n {
12751 chk(fmt.Errorf("invalid bool: %d", n))
12754 if err := pcall(func() {
12762 }))(obj)).Texture).deserialize(r)
12767 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12769 if err := pcall(func() {
12777 }))(obj)).ToneMap).deserialize(r)
12782 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12784 if err := pcall(func() {
12792 }))(obj)).Rise).deserialize(r)
12797 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12800 p := &(*(*(struct {
12808 switch n := read8(r); n {
12814 chk(fmt.Errorf("invalid bool: %d", n))
12818 p := &(*(*(struct {
12826 *p = math.Float32frombits(read32(r))
12830 func (obj *ToCltMoonParams) serialize(w io.Writer) {
12844 if err := pcall(func() {
12850 }))(obj)).Texture).serialize(w)
12855 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12857 if err := pcall(func() {
12863 }))(obj)).ToneMap).serialize(w)
12868 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12877 write32(w, math.Float32bits(x))
12881 func (obj *ToCltMoonParams) deserialize(r io.Reader) {
12883 p := &(*(*(struct {
12889 switch n := read8(r); n {
12895 chk(fmt.Errorf("invalid bool: %d", n))
12898 if err := pcall(func() {
12904 }))(obj)).Texture).deserialize(r)
12909 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12911 if err := pcall(func() {
12917 }))(obj)).ToneMap).deserialize(r)
12922 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
12925 p := &(*(*(struct {
12931 *p = math.Float32frombits(read32(r))
12935 func (obj *ToCltStarParams) serialize(w io.Writer) {
12956 write32(w, uint32(x))
12965 w.Write([]byte{x.A, x.R, x.G, x.B})
12974 write32(w, math.Float32bits(x))
12978 func (obj *ToCltStarParams) deserialize(r io.Reader) {
12980 p := &(*(*(struct {
12986 switch n := read8(r); n {
12992 chk(fmt.Errorf("invalid bool: %d", n))
12996 p := &(*(*(struct {
13005 p := &(*(*(struct {
13011 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13014 p := &(*(*(struct {
13020 *p = math.Float32frombits(read32(r))
13024 func (obj *ToCltSRPBytesSaltB) serialize(w io.Writer) {
13025 if len(((*(*(struct {
13027 }))(obj)).Salt)) > math.MaxUint16 {
13031 x := uint16(len(((*(*(struct {
13034 write16(w, uint16(x))
13037 _, err := w.Write(((*(*(struct {
13039 }))(obj)).Salt)[:])
13042 if len(((*(*(struct {
13044 }))(obj)).B)) > math.MaxUint16 {
13048 x := uint16(len(((*(*(struct {
13051 write16(w, uint16(x))
13054 _, err := w.Write(((*(*(struct {
13061 func (obj *ToCltSRPBytesSaltB) deserialize(r io.Reader) {
13062 var local221 uint16
13069 }))(obj)).Salt) = make([]byte, local221)
13071 _, err := io.ReadFull(r, ((*(*(struct {
13073 }))(obj)).Salt)[:])
13076 var local222 uint16
13083 }))(obj)).B) = make([]byte, local222)
13085 _, err := io.ReadFull(r, ((*(*(struct {
13092 func (obj *ToCltFormspecPrepend) serialize(w io.Writer) {
13093 if len(([]byte((*(*(struct {
13095 }))(obj)).Prepend))) > math.MaxUint16 {
13099 x := uint16(len(([]byte((*(*(struct {
13101 }))(obj)).Prepend))))
13102 write16(w, uint16(x))
13105 _, err := w.Write(([]byte((*(*(struct {
13107 }))(obj)).Prepend))[:])
13112 func (obj *ToCltFormspecPrepend) deserialize(r io.Reader) {
13113 var local223 []uint8
13114 var local224 uint16
13119 (local223) = make([]uint8, local224)
13121 _, err := io.ReadFull(r, (local223)[:])
13126 }))(obj)).Prepend) = string(local223)
13129 func (obj *AOCmdProps) serialize(w io.Writer) {
13130 if err := pcall(func() {
13133 }))(obj)).Props).serialize(w)
13138 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13142 func (obj *AOCmdProps) deserialize(r io.Reader) {
13143 if err := pcall(func() {
13146 }))(obj)).Props).deserialize(r)
13151 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOProps", err))
13155 func (obj *AOCmdPos) serialize(w io.Writer) {
13156 if err := pcall(func() {
13159 }))(obj)).Pos).serialize(w)
13164 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13168 func (obj *AOCmdPos) deserialize(r io.Reader) {
13169 if err := pcall(func() {
13172 }))(obj)).Pos).deserialize(r)
13177 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPos", err))
13181 func (obj *AOCmdTextureMod) serialize(w io.Writer) {
13182 if err := pcall(func() {
13184 Mod Texture // suffix
13185 }))(obj)).Mod).serialize(w)
13190 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13194 func (obj *AOCmdTextureMod) deserialize(r io.Reader) {
13195 if err := pcall(func() {
13197 Mod Texture // suffix
13198 }))(obj)).Mod).deserialize(r)
13203 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13207 func (obj *AOCmdSprite) serialize(w io.Writer) {
13208 if err := pcall(func() {
13211 }))(obj)).Sprite).serialize(w)
13216 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13220 func (obj *AOCmdSprite) deserialize(r io.Reader) {
13221 if err := pcall(func() {
13224 }))(obj)).Sprite).deserialize(r)
13229 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOSprite", err))
13233 func (obj *AOCmdHP) serialize(w io.Writer) {
13238 write16(w, uint16(x))
13242 func (obj *AOCmdHP) deserialize(r io.Reader) {
13244 p := &(*(*(struct {
13251 func (obj *AOCmdArmorGroups) serialize(w io.Writer) {
13252 if len(((*(*(struct {
13254 }))(obj)).Armor)) > math.MaxUint16 {
13258 x := uint16(len(((*(*(struct {
13261 write16(w, uint16(x))
13263 for local225 := range (*(*(struct {
13266 if err := pcall(func() {
13269 }))(obj)).Armor)[local225]).serialize(w)
13274 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13279 func (obj *AOCmdArmorGroups) deserialize(r io.Reader) {
13280 var local226 uint16
13287 }))(obj)).Armor) = make([]Group, local226)
13288 for local227 := range (*(*(struct {
13291 if err := pcall(func() {
13294 }))(obj)).Armor)[local227]).deserialize(r)
13299 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
13304 func (obj *AOCmdAnim) serialize(w io.Writer) {
13305 if err := pcall(func() {
13308 }))(obj)).Anim).serialize(w)
13313 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13317 func (obj *AOCmdAnim) deserialize(r io.Reader) {
13318 if err := pcall(func() {
13321 }))(obj)).Anim).deserialize(r)
13326 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAnim", err))
13330 func (obj *AOCmdBonePos) serialize(w io.Writer) {
13331 if len(([]byte((*(*(struct {
13334 }))(obj)).Bone))) > math.MaxUint16 {
13338 x := uint16(len(([]byte((*(*(struct {
13342 write16(w, uint16(x))
13345 _, err := w.Write(([]byte((*(*(struct {
13348 }))(obj)).Bone))[:])
13351 if err := pcall(func() {
13355 }))(obj)).Pos).serialize(w)
13360 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13364 func (obj *AOCmdBonePos) deserialize(r io.Reader) {
13365 var local228 []uint8
13366 var local229 uint16
13371 (local228) = make([]uint8, local229)
13373 _, err := io.ReadFull(r, (local228)[:])
13379 }))(obj)).Bone) = string(local228)
13380 if err := pcall(func() {
13384 }))(obj)).Pos).deserialize(r)
13389 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOBonePos", err))
13393 func (obj *AOCmdAttach) serialize(w io.Writer) {
13394 if err := pcall(func() {
13397 }))(obj)).Attach).serialize(w)
13402 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13406 func (obj *AOCmdAttach) deserialize(r io.Reader) {
13407 if err := pcall(func() {
13410 }))(obj)).Attach).deserialize(r)
13415 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOAttach", err))
13419 func (obj *AOCmdPhysOverride) serialize(w io.Writer) {
13420 if err := pcall(func() {
13422 Phys AOPhysOverride
13423 }))(obj)).Phys).serialize(w)
13428 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13432 func (obj *AOCmdPhysOverride) deserialize(r io.Reader) {
13433 if err := pcall(func() {
13435 Phys AOPhysOverride
13436 }))(obj)).Phys).deserialize(r)
13441 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOPhysOverride", err))
13445 func (obj *AOCmdSpawnInfant) serialize(w io.Writer) {
13446 if err := pcall(func() {
13449 }))(obj)).ID).serialize(w)
13454 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13457 local230 := genericCAO
13458 if err := pcall(func() {
13459 (local230).serialize(w)
13464 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13469 func (obj *AOCmdSpawnInfant) deserialize(r io.Reader) {
13470 if err := pcall(func() {
13473 }))(obj)).ID).deserialize(r)
13478 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
13481 var local231 aoType
13482 local232 := genericCAO
13483 if err := pcall(func() {
13484 (local231).deserialize(r)
13489 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
13491 if local231 != local232 {
13492 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13497 func (obj *AOCmdAnimSpeed) serialize(w io.Writer) {
13502 write32(w, math.Float32bits(x))
13506 func (obj *AOCmdAnimSpeed) deserialize(r io.Reader) {
13508 p := &(*(*(struct {
13511 *p = math.Float32frombits(read32(r))
13515 func (obj *NodeMeta) serialize(w io.Writer) {
13516 if len(((*(*(struct {
13518 Fields []NodeMetaField
13521 }))(obj)).Fields)) > math.MaxUint32 {
13525 x := uint32(len(((*(*(struct {
13527 Fields []NodeMetaField
13530 }))(obj)).Fields)))
13531 write32(w, uint32(x))
13533 for local233 := range (*(*(struct {
13535 Fields []NodeMetaField
13539 if err := pcall(func() {
13542 Fields []NodeMetaField
13545 }))(obj)).Fields)[local233]).serialize(w)
13550 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
13555 Fields []NodeMetaField
13558 }))(obj)).Inv).Serialize(w))
13561 func (obj *NodeMeta) deserialize(r io.Reader) {
13562 var local234 uint32
13569 Fields []NodeMetaField
13572 }))(obj)).Fields) = make([]NodeMetaField, local234)
13573 for local235 := range (*(*(struct {
13575 Fields []NodeMetaField
13579 if err := pcall(func() {
13582 Fields []NodeMetaField
13585 }))(obj)).Fields)[local235]).deserialize(r)
13590 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeMetaField", err))
13595 Fields []NodeMetaField
13598 }))(obj)).Inv).Deserialize(r))
13601 func (obj *MinimapMode) serialize(w io.Writer) {
13602 if err := pcall(func() {
13609 }))(obj)).Type).serialize(w)
13614 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
13616 if len(([]byte((*(*(struct {
13622 }))(obj)).Label))) > math.MaxUint16 {
13626 x := uint16(len(([]byte((*(*(struct {
13632 }))(obj)).Label))))
13633 write16(w, uint16(x))
13636 _, err := w.Write(([]byte((*(*(struct {
13642 }))(obj)).Label))[:])
13653 write16(w, uint16(x))
13655 if err := pcall(func() {
13662 }))(obj)).Texture).serialize(w)
13667 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13677 write16(w, uint16(x))
13681 func (obj *MinimapMode) deserialize(r io.Reader) {
13682 if err := pcall(func() {
13689 }))(obj)).Type).deserialize(r)
13694 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MinimapType", err))
13696 var local236 []uint8
13697 var local237 uint16
13702 (local236) = make([]uint8, local237)
13704 _, err := io.ReadFull(r, (local236)[:])
13713 }))(obj)).Label) = string(local236)
13715 p := &(*(*(struct {
13724 if err := pcall(func() {
13731 }))(obj)).Texture).deserialize(r)
13736 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
13739 p := &(*(*(struct {
13750 func (obj *NodeDef) serialize(w io.Writer) {
13751 if err := pcall(func() {
13764 //mt:const uint8(6)
13766 OverlayTiles [6]TileDef
13767 //mt:const uint8(6)
13768 SpecialTiles [6]TileDef
13775 ConnectTo []Content
13776 InsideTint color.NRGBA
13777 Level uint8 // Must be < 128.
13779 Translucent bool // Sunlight is scattered and becomes normal light.
13780 Transparent bool // Sunlight isn't scattered.
13793 LiquidType LiquidType
13796 Viscosity uint8 // 0-7
13802 DrawBox, ColBox, SelBox NodeBox
13804 FootstepSnd, DiggingSnd, DugSnd SoundDef
13814 }))(obj)).Param0).serialize(w)
13819 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
13823 w := new(bytes.Buffer)
13825 local238 := uint8(13)
13828 write8(w, uint8(x))
13831 if len(([]byte((*(*(struct {
13843 //mt:const uint8(6)
13845 OverlayTiles [6]TileDef
13846 //mt:const uint8(6)
13847 SpecialTiles [6]TileDef
13854 ConnectTo []Content
13855 InsideTint color.NRGBA
13856 Level uint8 // Must be < 128.
13858 Translucent bool // Sunlight is scattered and becomes normal light.
13859 Transparent bool // Sunlight isn't scattered.
13872 LiquidType LiquidType
13875 Viscosity uint8 // 0-7
13881 DrawBox, ColBox, SelBox NodeBox
13883 FootstepSnd, DiggingSnd, DugSnd SoundDef
13893 }))(obj)).Name))) > math.MaxUint16 {
13897 x := uint16(len(([]byte((*(*(struct {
13909 //mt:const uint8(6)
13911 OverlayTiles [6]TileDef
13912 //mt:const uint8(6)
13913 SpecialTiles [6]TileDef
13920 ConnectTo []Content
13921 InsideTint color.NRGBA
13922 Level uint8 // Must be < 128.
13924 Translucent bool // Sunlight is scattered and becomes normal light.
13925 Transparent bool // Sunlight isn't scattered.
13938 LiquidType LiquidType
13941 Viscosity uint8 // 0-7
13947 DrawBox, ColBox, SelBox NodeBox
13949 FootstepSnd, DiggingSnd, DugSnd SoundDef
13960 write16(w, uint16(x))
13963 _, err := w.Write(([]byte((*(*(struct {
13975 //mt:const uint8(6)
13977 OverlayTiles [6]TileDef
13978 //mt:const uint8(6)
13979 SpecialTiles [6]TileDef
13986 ConnectTo []Content
13987 InsideTint color.NRGBA
13988 Level uint8 // Must be < 128.
13990 Translucent bool // Sunlight is scattered and becomes normal light.
13991 Transparent bool // Sunlight isn't scattered.
14004 LiquidType LiquidType
14007 Viscosity uint8 // 0-7
14013 DrawBox, ColBox, SelBox NodeBox
14015 FootstepSnd, DiggingSnd, DugSnd SoundDef
14025 }))(obj)).Name))[:])
14028 if len(((*(*(struct {
14040 //mt:const uint8(6)
14042 OverlayTiles [6]TileDef
14043 //mt:const uint8(6)
14044 SpecialTiles [6]TileDef
14051 ConnectTo []Content
14052 InsideTint color.NRGBA
14053 Level uint8 // Must be < 128.
14055 Translucent bool // Sunlight is scattered and becomes normal light.
14056 Transparent bool // Sunlight isn't scattered.
14069 LiquidType LiquidType
14072 Viscosity uint8 // 0-7
14078 DrawBox, ColBox, SelBox NodeBox
14080 FootstepSnd, DiggingSnd, DugSnd SoundDef
14090 }))(obj)).Groups)) > math.MaxUint16 {
14094 x := uint16(len(((*(*(struct {
14106 //mt:const uint8(6)
14108 OverlayTiles [6]TileDef
14109 //mt:const uint8(6)
14110 SpecialTiles [6]TileDef
14117 ConnectTo []Content
14118 InsideTint color.NRGBA
14119 Level uint8 // Must be < 128.
14121 Translucent bool // Sunlight is scattered and becomes normal light.
14122 Transparent bool // Sunlight isn't scattered.
14135 LiquidType LiquidType
14138 Viscosity uint8 // 0-7
14144 DrawBox, ColBox, SelBox NodeBox
14146 FootstepSnd, DiggingSnd, DugSnd SoundDef
14156 }))(obj)).Groups)))
14157 write16(w, uint16(x))
14159 for local239 := range (*(*(struct {
14171 //mt:const uint8(6)
14173 OverlayTiles [6]TileDef
14174 //mt:const uint8(6)
14175 SpecialTiles [6]TileDef
14182 ConnectTo []Content
14183 InsideTint color.NRGBA
14184 Level uint8 // Must be < 128.
14186 Translucent bool // Sunlight is scattered and becomes normal light.
14187 Transparent bool // Sunlight isn't scattered.
14200 LiquidType LiquidType
14203 Viscosity uint8 // 0-7
14209 DrawBox, ColBox, SelBox NodeBox
14211 FootstepSnd, DiggingSnd, DugSnd SoundDef
14222 if err := pcall(func() {
14235 //mt:const uint8(6)
14237 OverlayTiles [6]TileDef
14238 //mt:const uint8(6)
14239 SpecialTiles [6]TileDef
14246 ConnectTo []Content
14247 InsideTint color.NRGBA
14248 Level uint8 // Must be < 128.
14250 Translucent bool // Sunlight is scattered and becomes normal light.
14251 Transparent bool // Sunlight isn't scattered.
14264 LiquidType LiquidType
14267 Viscosity uint8 // 0-7
14273 DrawBox, ColBox, SelBox NodeBox
14275 FootstepSnd, DiggingSnd, DugSnd SoundDef
14285 }))(obj)).Groups)[local239]).serialize(w)
14290 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
14293 if err := pcall(func() {
14306 //mt:const uint8(6)
14308 OverlayTiles [6]TileDef
14309 //mt:const uint8(6)
14310 SpecialTiles [6]TileDef
14317 ConnectTo []Content
14318 InsideTint color.NRGBA
14319 Level uint8 // Must be < 128.
14321 Translucent bool // Sunlight is scattered and becomes normal light.
14322 Transparent bool // Sunlight isn't scattered.
14335 LiquidType LiquidType
14338 Viscosity uint8 // 0-7
14344 DrawBox, ColBox, SelBox NodeBox
14346 FootstepSnd, DiggingSnd, DugSnd SoundDef
14356 }))(obj)).P1Type).serialize(w)
14361 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
14363 if err := pcall(func() {
14376 //mt:const uint8(6)
14378 OverlayTiles [6]TileDef
14379 //mt:const uint8(6)
14380 SpecialTiles [6]TileDef
14387 ConnectTo []Content
14388 InsideTint color.NRGBA
14389 Level uint8 // Must be < 128.
14391 Translucent bool // Sunlight is scattered and becomes normal light.
14392 Transparent bool // Sunlight isn't scattered.
14405 LiquidType LiquidType
14408 Viscosity uint8 // 0-7
14414 DrawBox, ColBox, SelBox NodeBox
14416 FootstepSnd, DiggingSnd, DugSnd SoundDef
14426 }))(obj)).P2Type).serialize(w)
14431 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
14433 if err := pcall(func() {
14446 //mt:const uint8(6)
14448 OverlayTiles [6]TileDef
14449 //mt:const uint8(6)
14450 SpecialTiles [6]TileDef
14457 ConnectTo []Content
14458 InsideTint color.NRGBA
14459 Level uint8 // Must be < 128.
14461 Translucent bool // Sunlight is scattered and becomes normal light.
14462 Transparent bool // Sunlight isn't scattered.
14475 LiquidType LiquidType
14478 Viscosity uint8 // 0-7
14484 DrawBox, ColBox, SelBox NodeBox
14486 FootstepSnd, DiggingSnd, DugSnd SoundDef
14496 }))(obj)).DrawType).serialize(w)
14501 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
14503 if len(([]byte((*(*(struct {
14515 //mt:const uint8(6)
14517 OverlayTiles [6]TileDef
14518 //mt:const uint8(6)
14519 SpecialTiles [6]TileDef
14526 ConnectTo []Content
14527 InsideTint color.NRGBA
14528 Level uint8 // Must be < 128.
14530 Translucent bool // Sunlight is scattered and becomes normal light.
14531 Transparent bool // Sunlight isn't scattered.
14544 LiquidType LiquidType
14547 Viscosity uint8 // 0-7
14553 DrawBox, ColBox, SelBox NodeBox
14555 FootstepSnd, DiggingSnd, DugSnd SoundDef
14565 }))(obj)).Mesh))) > math.MaxUint16 {
14569 x := uint16(len(([]byte((*(*(struct {
14581 //mt:const uint8(6)
14583 OverlayTiles [6]TileDef
14584 //mt:const uint8(6)
14585 SpecialTiles [6]TileDef
14592 ConnectTo []Content
14593 InsideTint color.NRGBA
14594 Level uint8 // Must be < 128.
14596 Translucent bool // Sunlight is scattered and becomes normal light.
14597 Transparent bool // Sunlight isn't scattered.
14610 LiquidType LiquidType
14613 Viscosity uint8 // 0-7
14619 DrawBox, ColBox, SelBox NodeBox
14621 FootstepSnd, DiggingSnd, DugSnd SoundDef
14632 write16(w, uint16(x))
14635 _, err := w.Write(([]byte((*(*(struct {
14647 //mt:const uint8(6)
14649 OverlayTiles [6]TileDef
14650 //mt:const uint8(6)
14651 SpecialTiles [6]TileDef
14658 ConnectTo []Content
14659 InsideTint color.NRGBA
14660 Level uint8 // Must be < 128.
14662 Translucent bool // Sunlight is scattered and becomes normal light.
14663 Transparent bool // Sunlight isn't scattered.
14676 LiquidType LiquidType
14679 Viscosity uint8 // 0-7
14685 DrawBox, ColBox, SelBox NodeBox
14687 FootstepSnd, DiggingSnd, DugSnd SoundDef
14697 }))(obj)).Mesh))[:])
14713 //mt:const uint8(6)
14715 OverlayTiles [6]TileDef
14716 //mt:const uint8(6)
14717 SpecialTiles [6]TileDef
14724 ConnectTo []Content
14725 InsideTint color.NRGBA
14726 Level uint8 // Must be < 128.
14728 Translucent bool // Sunlight is scattered and becomes normal light.
14729 Transparent bool // Sunlight isn't scattered.
14742 LiquidType LiquidType
14745 Viscosity uint8 // 0-7
14751 DrawBox, ColBox, SelBox NodeBox
14753 FootstepSnd, DiggingSnd, DugSnd SoundDef
14764 write32(w, math.Float32bits(x))
14767 local240 := uint8(6)
14770 write8(w, uint8(x))
14773 for local241 := range (*(*(struct {
14785 //mt:const uint8(6)
14787 OverlayTiles [6]TileDef
14788 //mt:const uint8(6)
14789 SpecialTiles [6]TileDef
14796 ConnectTo []Content
14797 InsideTint color.NRGBA
14798 Level uint8 // Must be < 128.
14800 Translucent bool // Sunlight is scattered and becomes normal light.
14801 Transparent bool // Sunlight isn't scattered.
14814 LiquidType LiquidType
14817 Viscosity uint8 // 0-7
14823 DrawBox, ColBox, SelBox NodeBox
14825 FootstepSnd, DiggingSnd, DugSnd SoundDef
14836 if err := pcall(func() {
14849 //mt:const uint8(6)
14851 OverlayTiles [6]TileDef
14852 //mt:const uint8(6)
14853 SpecialTiles [6]TileDef
14860 ConnectTo []Content
14861 InsideTint color.NRGBA
14862 Level uint8 // Must be < 128.
14864 Translucent bool // Sunlight is scattered and becomes normal light.
14865 Transparent bool // Sunlight isn't scattered.
14878 LiquidType LiquidType
14881 Viscosity uint8 // 0-7
14887 DrawBox, ColBox, SelBox NodeBox
14889 FootstepSnd, DiggingSnd, DugSnd SoundDef
14899 }))(obj)).Tiles)[local241]).serialize(w)
14904 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
14907 for local242 := range (*(*(struct {
14919 //mt:const uint8(6)
14921 OverlayTiles [6]TileDef
14922 //mt:const uint8(6)
14923 SpecialTiles [6]TileDef
14930 ConnectTo []Content
14931 InsideTint color.NRGBA
14932 Level uint8 // Must be < 128.
14934 Translucent bool // Sunlight is scattered and becomes normal light.
14935 Transparent bool // Sunlight isn't scattered.
14948 LiquidType LiquidType
14951 Viscosity uint8 // 0-7
14957 DrawBox, ColBox, SelBox NodeBox
14959 FootstepSnd, DiggingSnd, DugSnd SoundDef
14969 }))(obj)).OverlayTiles {
14970 if err := pcall(func() {
14983 //mt:const uint8(6)
14985 OverlayTiles [6]TileDef
14986 //mt:const uint8(6)
14987 SpecialTiles [6]TileDef
14994 ConnectTo []Content
14995 InsideTint color.NRGBA
14996 Level uint8 // Must be < 128.
14998 Translucent bool // Sunlight is scattered and becomes normal light.
14999 Transparent bool // Sunlight isn't scattered.
15012 LiquidType LiquidType
15015 Viscosity uint8 // 0-7
15021 DrawBox, ColBox, SelBox NodeBox
15023 FootstepSnd, DiggingSnd, DugSnd SoundDef
15033 }))(obj)).OverlayTiles)[local242]).serialize(w)
15038 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15042 local243 := uint8(6)
15045 write8(w, uint8(x))
15048 for local244 := range (*(*(struct {
15060 //mt:const uint8(6)
15062 OverlayTiles [6]TileDef
15063 //mt:const uint8(6)
15064 SpecialTiles [6]TileDef
15071 ConnectTo []Content
15072 InsideTint color.NRGBA
15073 Level uint8 // Must be < 128.
15075 Translucent bool // Sunlight is scattered and becomes normal light.
15076 Transparent bool // Sunlight isn't scattered.
15089 LiquidType LiquidType
15092 Viscosity uint8 // 0-7
15098 DrawBox, ColBox, SelBox NodeBox
15100 FootstepSnd, DiggingSnd, DugSnd SoundDef
15110 }))(obj)).SpecialTiles {
15111 if err := pcall(func() {
15124 //mt:const uint8(6)
15126 OverlayTiles [6]TileDef
15127 //mt:const uint8(6)
15128 SpecialTiles [6]TileDef
15135 ConnectTo []Content
15136 InsideTint color.NRGBA
15137 Level uint8 // Must be < 128.
15139 Translucent bool // Sunlight is scattered and becomes normal light.
15140 Transparent bool // Sunlight isn't scattered.
15153 LiquidType LiquidType
15156 Viscosity uint8 // 0-7
15162 DrawBox, ColBox, SelBox NodeBox
15164 FootstepSnd, DiggingSnd, DugSnd SoundDef
15174 }))(obj)).SpecialTiles)[local244]).serialize(w)
15179 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
15195 //mt:const uint8(6)
15197 OverlayTiles [6]TileDef
15198 //mt:const uint8(6)
15199 SpecialTiles [6]TileDef
15206 ConnectTo []Content
15207 InsideTint color.NRGBA
15208 Level uint8 // Must be < 128.
15210 Translucent bool // Sunlight is scattered and becomes normal light.
15211 Transparent bool // Sunlight isn't scattered.
15224 LiquidType LiquidType
15227 Viscosity uint8 // 0-7
15233 DrawBox, ColBox, SelBox NodeBox
15235 FootstepSnd, DiggingSnd, DugSnd SoundDef
15246 w.Write([]byte{x.A, x.R, x.G, x.B})
15248 if err := pcall(func() {
15261 //mt:const uint8(6)
15263 OverlayTiles [6]TileDef
15264 //mt:const uint8(6)
15265 SpecialTiles [6]TileDef
15272 ConnectTo []Content
15273 InsideTint color.NRGBA
15274 Level uint8 // Must be < 128.
15276 Translucent bool // Sunlight is scattered and becomes normal light.
15277 Transparent bool // Sunlight isn't scattered.
15290 LiquidType LiquidType
15293 Viscosity uint8 // 0-7
15299 DrawBox, ColBox, SelBox NodeBox
15301 FootstepSnd, DiggingSnd, DugSnd SoundDef
15311 }))(obj)).Palette).serialize(w)
15316 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
15318 if err := pcall(func() {
15331 //mt:const uint8(6)
15333 OverlayTiles [6]TileDef
15334 //mt:const uint8(6)
15335 SpecialTiles [6]TileDef
15342 ConnectTo []Content
15343 InsideTint color.NRGBA
15344 Level uint8 // Must be < 128.
15346 Translucent bool // Sunlight is scattered and becomes normal light.
15347 Transparent bool // Sunlight isn't scattered.
15360 LiquidType LiquidType
15363 Viscosity uint8 // 0-7
15369 DrawBox, ColBox, SelBox NodeBox
15371 FootstepSnd, DiggingSnd, DugSnd SoundDef
15381 }))(obj)).Waving).serialize(w)
15386 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
15401 //mt:const uint8(6)
15403 OverlayTiles [6]TileDef
15404 //mt:const uint8(6)
15405 SpecialTiles [6]TileDef
15412 ConnectTo []Content
15413 InsideTint color.NRGBA
15414 Level uint8 // Must be < 128.
15416 Translucent bool // Sunlight is scattered and becomes normal light.
15417 Transparent bool // Sunlight isn't scattered.
15430 LiquidType LiquidType
15433 Viscosity uint8 // 0-7
15439 DrawBox, ColBox, SelBox NodeBox
15441 FootstepSnd, DiggingSnd, DugSnd SoundDef
15451 }))(obj)).ConnectSides
15452 write8(w, uint8(x))
15454 if len(((*(*(struct {
15466 //mt:const uint8(6)
15468 OverlayTiles [6]TileDef
15469 //mt:const uint8(6)
15470 SpecialTiles [6]TileDef
15477 ConnectTo []Content
15478 InsideTint color.NRGBA
15479 Level uint8 // Must be < 128.
15481 Translucent bool // Sunlight is scattered and becomes normal light.
15482 Transparent bool // Sunlight isn't scattered.
15495 LiquidType LiquidType
15498 Viscosity uint8 // 0-7
15504 DrawBox, ColBox, SelBox NodeBox
15506 FootstepSnd, DiggingSnd, DugSnd SoundDef
15516 }))(obj)).ConnectTo)) > math.MaxUint16 {
15520 x := uint16(len(((*(*(struct {
15532 //mt:const uint8(6)
15534 OverlayTiles [6]TileDef
15535 //mt:const uint8(6)
15536 SpecialTiles [6]TileDef
15543 ConnectTo []Content
15544 InsideTint color.NRGBA
15545 Level uint8 // Must be < 128.
15547 Translucent bool // Sunlight is scattered and becomes normal light.
15548 Transparent bool // Sunlight isn't scattered.
15561 LiquidType LiquidType
15564 Viscosity uint8 // 0-7
15570 DrawBox, ColBox, SelBox NodeBox
15572 FootstepSnd, DiggingSnd, DugSnd SoundDef
15582 }))(obj)).ConnectTo)))
15583 write16(w, uint16(x))
15585 for local245 := range (*(*(struct {
15597 //mt:const uint8(6)
15599 OverlayTiles [6]TileDef
15600 //mt:const uint8(6)
15601 SpecialTiles [6]TileDef
15608 ConnectTo []Content
15609 InsideTint color.NRGBA
15610 Level uint8 // Must be < 128.
15612 Translucent bool // Sunlight is scattered and becomes normal light.
15613 Transparent bool // Sunlight isn't scattered.
15626 LiquidType LiquidType
15629 Viscosity uint8 // 0-7
15635 DrawBox, ColBox, SelBox NodeBox
15637 FootstepSnd, DiggingSnd, DugSnd SoundDef
15647 }))(obj)).ConnectTo {
15648 if err := pcall(func() {
15661 //mt:const uint8(6)
15663 OverlayTiles [6]TileDef
15664 //mt:const uint8(6)
15665 SpecialTiles [6]TileDef
15672 ConnectTo []Content
15673 InsideTint color.NRGBA
15674 Level uint8 // Must be < 128.
15676 Translucent bool // Sunlight is scattered and becomes normal light.
15677 Transparent bool // Sunlight isn't scattered.
15690 LiquidType LiquidType
15693 Viscosity uint8 // 0-7
15699 DrawBox, ColBox, SelBox NodeBox
15701 FootstepSnd, DiggingSnd, DugSnd SoundDef
15711 }))(obj)).ConnectTo)[local245]).serialize(w)
15716 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
15732 //mt:const uint8(6)
15734 OverlayTiles [6]TileDef
15735 //mt:const uint8(6)
15736 SpecialTiles [6]TileDef
15743 ConnectTo []Content
15744 InsideTint color.NRGBA
15745 Level uint8 // Must be < 128.
15747 Translucent bool // Sunlight is scattered and becomes normal light.
15748 Transparent bool // Sunlight isn't scattered.
15761 LiquidType LiquidType
15764 Viscosity uint8 // 0-7
15770 DrawBox, ColBox, SelBox NodeBox
15772 FootstepSnd, DiggingSnd, DugSnd SoundDef
15782 }))(obj)).InsideTint
15783 w.Write([]byte{x.A, x.R, x.G, x.B})
15798 //mt:const uint8(6)
15800 OverlayTiles [6]TileDef
15801 //mt:const uint8(6)
15802 SpecialTiles [6]TileDef
15809 ConnectTo []Content
15810 InsideTint color.NRGBA
15811 Level uint8 // Must be < 128.
15813 Translucent bool // Sunlight is scattered and becomes normal light.
15814 Transparent bool // Sunlight isn't scattered.
15827 LiquidType LiquidType
15830 Viscosity uint8 // 0-7
15836 DrawBox, ColBox, SelBox NodeBox
15838 FootstepSnd, DiggingSnd, DugSnd SoundDef
15849 write8(w, uint8(x))
15864 //mt:const uint8(6)
15866 OverlayTiles [6]TileDef
15867 //mt:const uint8(6)
15868 SpecialTiles [6]TileDef
15875 ConnectTo []Content
15876 InsideTint color.NRGBA
15877 Level uint8 // Must be < 128.
15879 Translucent bool // Sunlight is scattered and becomes normal light.
15880 Transparent bool // Sunlight isn't scattered.
15893 LiquidType LiquidType
15896 Viscosity uint8 // 0-7
15902 DrawBox, ColBox, SelBox NodeBox
15904 FootstepSnd, DiggingSnd, DugSnd SoundDef
15914 }))(obj)).Translucent
15934 //mt:const uint8(6)
15936 OverlayTiles [6]TileDef
15937 //mt:const uint8(6)
15938 SpecialTiles [6]TileDef
15945 ConnectTo []Content
15946 InsideTint color.NRGBA
15947 Level uint8 // Must be < 128.
15949 Translucent bool // Sunlight is scattered and becomes normal light.
15950 Transparent bool // Sunlight isn't scattered.
15963 LiquidType LiquidType
15966 Viscosity uint8 // 0-7
15972 DrawBox, ColBox, SelBox NodeBox
15974 FootstepSnd, DiggingSnd, DugSnd SoundDef
15984 }))(obj)).Transparent
16004 //mt:const uint8(6)
16006 OverlayTiles [6]TileDef
16007 //mt:const uint8(6)
16008 SpecialTiles [6]TileDef
16015 ConnectTo []Content
16016 InsideTint color.NRGBA
16017 Level uint8 // Must be < 128.
16019 Translucent bool // Sunlight is scattered and becomes normal light.
16020 Transparent bool // Sunlight isn't scattered.
16033 LiquidType LiquidType
16036 Viscosity uint8 // 0-7
16042 DrawBox, ColBox, SelBox NodeBox
16044 FootstepSnd, DiggingSnd, DugSnd SoundDef
16055 write8(w, uint8(x))
16070 //mt:const uint8(6)
16072 OverlayTiles [6]TileDef
16073 //mt:const uint8(6)
16074 SpecialTiles [6]TileDef
16081 ConnectTo []Content
16082 InsideTint color.NRGBA
16083 Level uint8 // Must be < 128.
16085 Translucent bool // Sunlight is scattered and becomes normal light.
16086 Transparent bool // Sunlight isn't scattered.
16099 LiquidType LiquidType
16102 Viscosity uint8 // 0-7
16108 DrawBox, ColBox, SelBox NodeBox
16110 FootstepSnd, DiggingSnd, DugSnd SoundDef
16120 }))(obj)).GndContent
16140 //mt:const uint8(6)
16142 OverlayTiles [6]TileDef
16143 //mt:const uint8(6)
16144 SpecialTiles [6]TileDef
16151 ConnectTo []Content
16152 InsideTint color.NRGBA
16153 Level uint8 // Must be < 128.
16155 Translucent bool // Sunlight is scattered and becomes normal light.
16156 Transparent bool // Sunlight isn't scattered.
16169 LiquidType LiquidType
16172 Viscosity uint8 // 0-7
16178 DrawBox, ColBox, SelBox NodeBox
16180 FootstepSnd, DiggingSnd, DugSnd SoundDef
16210 //mt:const uint8(6)
16212 OverlayTiles [6]TileDef
16213 //mt:const uint8(6)
16214 SpecialTiles [6]TileDef
16221 ConnectTo []Content
16222 InsideTint color.NRGBA
16223 Level uint8 // Must be < 128.
16225 Translucent bool // Sunlight is scattered and becomes normal light.
16226 Transparent bool // Sunlight isn't scattered.
16239 LiquidType LiquidType
16242 Viscosity uint8 // 0-7
16248 DrawBox, ColBox, SelBox NodeBox
16250 FootstepSnd, DiggingSnd, DugSnd SoundDef
16260 }))(obj)).Pointable
16280 //mt:const uint8(6)
16282 OverlayTiles [6]TileDef
16283 //mt:const uint8(6)
16284 SpecialTiles [6]TileDef
16291 ConnectTo []Content
16292 InsideTint color.NRGBA
16293 Level uint8 // Must be < 128.
16295 Translucent bool // Sunlight is scattered and becomes normal light.
16296 Transparent bool // Sunlight isn't scattered.
16309 LiquidType LiquidType
16312 Viscosity uint8 // 0-7
16318 DrawBox, ColBox, SelBox NodeBox
16320 FootstepSnd, DiggingSnd, DugSnd SoundDef
16350 //mt:const uint8(6)
16352 OverlayTiles [6]TileDef
16353 //mt:const uint8(6)
16354 SpecialTiles [6]TileDef
16361 ConnectTo []Content
16362 InsideTint color.NRGBA
16363 Level uint8 // Must be < 128.
16365 Translucent bool // Sunlight is scattered and becomes normal light.
16366 Transparent bool // Sunlight isn't scattered.
16379 LiquidType LiquidType
16382 Viscosity uint8 // 0-7
16388 DrawBox, ColBox, SelBox NodeBox
16390 FootstepSnd, DiggingSnd, DugSnd SoundDef
16400 }))(obj)).Climbable
16420 //mt:const uint8(6)
16422 OverlayTiles [6]TileDef
16423 //mt:const uint8(6)
16424 SpecialTiles [6]TileDef
16431 ConnectTo []Content
16432 InsideTint color.NRGBA
16433 Level uint8 // Must be < 128.
16435 Translucent bool // Sunlight is scattered and becomes normal light.
16436 Transparent bool // Sunlight isn't scattered.
16449 LiquidType LiquidType
16452 Viscosity uint8 // 0-7
16458 DrawBox, ColBox, SelBox NodeBox
16460 FootstepSnd, DiggingSnd, DugSnd SoundDef
16470 }))(obj)).Replaceable
16490 //mt:const uint8(6)
16492 OverlayTiles [6]TileDef
16493 //mt:const uint8(6)
16494 SpecialTiles [6]TileDef
16501 ConnectTo []Content
16502 InsideTint color.NRGBA
16503 Level uint8 // Must be < 128.
16505 Translucent bool // Sunlight is scattered and becomes normal light.
16506 Transparent bool // Sunlight isn't scattered.
16519 LiquidType LiquidType
16522 Viscosity uint8 // 0-7
16528 DrawBox, ColBox, SelBox NodeBox
16530 FootstepSnd, DiggingSnd, DugSnd SoundDef
16540 }))(obj)).OnRightClick
16560 //mt:const uint8(6)
16562 OverlayTiles [6]TileDef
16563 //mt:const uint8(6)
16564 SpecialTiles [6]TileDef
16571 ConnectTo []Content
16572 InsideTint color.NRGBA
16573 Level uint8 // Must be < 128.
16575 Translucent bool // Sunlight is scattered and becomes normal light.
16576 Transparent bool // Sunlight isn't scattered.
16589 LiquidType LiquidType
16592 Viscosity uint8 // 0-7
16598 DrawBox, ColBox, SelBox NodeBox
16600 FootstepSnd, DiggingSnd, DugSnd SoundDef
16610 }))(obj)).DmgPerSec
16611 write32(w, uint32(x))
16613 if err := pcall(func() {
16626 //mt:const uint8(6)
16628 OverlayTiles [6]TileDef
16629 //mt:const uint8(6)
16630 SpecialTiles [6]TileDef
16637 ConnectTo []Content
16638 InsideTint color.NRGBA
16639 Level uint8 // Must be < 128.
16641 Translucent bool // Sunlight is scattered and becomes normal light.
16642 Transparent bool // Sunlight isn't scattered.
16655 LiquidType LiquidType
16658 Viscosity uint8 // 0-7
16664 DrawBox, ColBox, SelBox NodeBox
16666 FootstepSnd, DiggingSnd, DugSnd SoundDef
16676 }))(obj)).LiquidType).serialize(w)
16681 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
16683 if len(([]byte((*(*(struct {
16695 //mt:const uint8(6)
16697 OverlayTiles [6]TileDef
16698 //mt:const uint8(6)
16699 SpecialTiles [6]TileDef
16706 ConnectTo []Content
16707 InsideTint color.NRGBA
16708 Level uint8 // Must be < 128.
16710 Translucent bool // Sunlight is scattered and becomes normal light.
16711 Transparent bool // Sunlight isn't scattered.
16724 LiquidType LiquidType
16727 Viscosity uint8 // 0-7
16733 DrawBox, ColBox, SelBox NodeBox
16735 FootstepSnd, DiggingSnd, DugSnd SoundDef
16745 }))(obj)).FlowingAlt))) > math.MaxUint16 {
16749 x := uint16(len(([]byte((*(*(struct {
16761 //mt:const uint8(6)
16763 OverlayTiles [6]TileDef
16764 //mt:const uint8(6)
16765 SpecialTiles [6]TileDef
16772 ConnectTo []Content
16773 InsideTint color.NRGBA
16774 Level uint8 // Must be < 128.
16776 Translucent bool // Sunlight is scattered and becomes normal light.
16777 Transparent bool // Sunlight isn't scattered.
16790 LiquidType LiquidType
16793 Viscosity uint8 // 0-7
16799 DrawBox, ColBox, SelBox NodeBox
16801 FootstepSnd, DiggingSnd, DugSnd SoundDef
16811 }))(obj)).FlowingAlt))))
16812 write16(w, uint16(x))
16815 _, err := w.Write(([]byte((*(*(struct {
16827 //mt:const uint8(6)
16829 OverlayTiles [6]TileDef
16830 //mt:const uint8(6)
16831 SpecialTiles [6]TileDef
16838 ConnectTo []Content
16839 InsideTint color.NRGBA
16840 Level uint8 // Must be < 128.
16842 Translucent bool // Sunlight is scattered and becomes normal light.
16843 Transparent bool // Sunlight isn't scattered.
16856 LiquidType LiquidType
16859 Viscosity uint8 // 0-7
16865 DrawBox, ColBox, SelBox NodeBox
16867 FootstepSnd, DiggingSnd, DugSnd SoundDef
16877 }))(obj)).FlowingAlt))[:])
16880 if len(([]byte((*(*(struct {
16892 //mt:const uint8(6)
16894 OverlayTiles [6]TileDef
16895 //mt:const uint8(6)
16896 SpecialTiles [6]TileDef
16903 ConnectTo []Content
16904 InsideTint color.NRGBA
16905 Level uint8 // Must be < 128.
16907 Translucent bool // Sunlight is scattered and becomes normal light.
16908 Transparent bool // Sunlight isn't scattered.
16921 LiquidType LiquidType
16924 Viscosity uint8 // 0-7
16930 DrawBox, ColBox, SelBox NodeBox
16932 FootstepSnd, DiggingSnd, DugSnd SoundDef
16942 }))(obj)).SrcAlt))) > math.MaxUint16 {
16946 x := uint16(len(([]byte((*(*(struct {
16958 //mt:const uint8(6)
16960 OverlayTiles [6]TileDef
16961 //mt:const uint8(6)
16962 SpecialTiles [6]TileDef
16969 ConnectTo []Content
16970 InsideTint color.NRGBA
16971 Level uint8 // Must be < 128.
16973 Translucent bool // Sunlight is scattered and becomes normal light.
16974 Transparent bool // Sunlight isn't scattered.
16987 LiquidType LiquidType
16990 Viscosity uint8 // 0-7
16996 DrawBox, ColBox, SelBox NodeBox
16998 FootstepSnd, DiggingSnd, DugSnd SoundDef
17008 }))(obj)).SrcAlt))))
17009 write16(w, uint16(x))
17012 _, err := w.Write(([]byte((*(*(struct {
17024 //mt:const uint8(6)
17026 OverlayTiles [6]TileDef
17027 //mt:const uint8(6)
17028 SpecialTiles [6]TileDef
17035 ConnectTo []Content
17036 InsideTint color.NRGBA
17037 Level uint8 // Must be < 128.
17039 Translucent bool // Sunlight is scattered and becomes normal light.
17040 Transparent bool // Sunlight isn't scattered.
17053 LiquidType LiquidType
17056 Viscosity uint8 // 0-7
17062 DrawBox, ColBox, SelBox NodeBox
17064 FootstepSnd, DiggingSnd, DugSnd SoundDef
17074 }))(obj)).SrcAlt))[:])
17090 //mt:const uint8(6)
17092 OverlayTiles [6]TileDef
17093 //mt:const uint8(6)
17094 SpecialTiles [6]TileDef
17101 ConnectTo []Content
17102 InsideTint color.NRGBA
17103 Level uint8 // Must be < 128.
17105 Translucent bool // Sunlight is scattered and becomes normal light.
17106 Transparent bool // Sunlight isn't scattered.
17119 LiquidType LiquidType
17122 Viscosity uint8 // 0-7
17128 DrawBox, ColBox, SelBox NodeBox
17130 FootstepSnd, DiggingSnd, DugSnd SoundDef
17140 }))(obj)).Viscosity
17141 write8(w, uint8(x))
17156 //mt:const uint8(6)
17158 OverlayTiles [6]TileDef
17159 //mt:const uint8(6)
17160 SpecialTiles [6]TileDef
17167 ConnectTo []Content
17168 InsideTint color.NRGBA
17169 Level uint8 // Must be < 128.
17171 Translucent bool // Sunlight is scattered and becomes normal light.
17172 Transparent bool // Sunlight isn't scattered.
17185 LiquidType LiquidType
17188 Viscosity uint8 // 0-7
17194 DrawBox, ColBox, SelBox NodeBox
17196 FootstepSnd, DiggingSnd, DugSnd SoundDef
17206 }))(obj)).LiqRenewable
17226 //mt:const uint8(6)
17228 OverlayTiles [6]TileDef
17229 //mt:const uint8(6)
17230 SpecialTiles [6]TileDef
17237 ConnectTo []Content
17238 InsideTint color.NRGBA
17239 Level uint8 // Must be < 128.
17241 Translucent bool // Sunlight is scattered and becomes normal light.
17242 Transparent bool // Sunlight isn't scattered.
17255 LiquidType LiquidType
17258 Viscosity uint8 // 0-7
17264 DrawBox, ColBox, SelBox NodeBox
17266 FootstepSnd, DiggingSnd, DugSnd SoundDef
17276 }))(obj)).FlowRange
17277 write8(w, uint8(x))
17292 //mt:const uint8(6)
17294 OverlayTiles [6]TileDef
17295 //mt:const uint8(6)
17296 SpecialTiles [6]TileDef
17303 ConnectTo []Content
17304 InsideTint color.NRGBA
17305 Level uint8 // Must be < 128.
17307 Translucent bool // Sunlight is scattered and becomes normal light.
17308 Transparent bool // Sunlight isn't scattered.
17321 LiquidType LiquidType
17324 Viscosity uint8 // 0-7
17330 DrawBox, ColBox, SelBox NodeBox
17332 FootstepSnd, DiggingSnd, DugSnd SoundDef
17343 write8(w, uint8(x))
17358 //mt:const uint8(6)
17360 OverlayTiles [6]TileDef
17361 //mt:const uint8(6)
17362 SpecialTiles [6]TileDef
17369 ConnectTo []Content
17370 InsideTint color.NRGBA
17371 Level uint8 // Must be < 128.
17373 Translucent bool // Sunlight is scattered and becomes normal light.
17374 Transparent bool // Sunlight isn't scattered.
17387 LiquidType LiquidType
17390 Viscosity uint8 // 0-7
17396 DrawBox, ColBox, SelBox NodeBox
17398 FootstepSnd, DiggingSnd, DugSnd SoundDef
17408 }))(obj)).Floodable
17415 if err := pcall(func() {
17428 //mt:const uint8(6)
17430 OverlayTiles [6]TileDef
17431 //mt:const uint8(6)
17432 SpecialTiles [6]TileDef
17439 ConnectTo []Content
17440 InsideTint color.NRGBA
17441 Level uint8 // Must be < 128.
17443 Translucent bool // Sunlight is scattered and becomes normal light.
17444 Transparent bool // Sunlight isn't scattered.
17457 LiquidType LiquidType
17460 Viscosity uint8 // 0-7
17466 DrawBox, ColBox, SelBox NodeBox
17468 FootstepSnd, DiggingSnd, DugSnd SoundDef
17478 }))(obj)).DrawBox).serialize(w)
17483 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17485 if err := pcall(func() {
17498 //mt:const uint8(6)
17500 OverlayTiles [6]TileDef
17501 //mt:const uint8(6)
17502 SpecialTiles [6]TileDef
17509 ConnectTo []Content
17510 InsideTint color.NRGBA
17511 Level uint8 // Must be < 128.
17513 Translucent bool // Sunlight is scattered and becomes normal light.
17514 Transparent bool // Sunlight isn't scattered.
17527 LiquidType LiquidType
17530 Viscosity uint8 // 0-7
17536 DrawBox, ColBox, SelBox NodeBox
17538 FootstepSnd, DiggingSnd, DugSnd SoundDef
17548 }))(obj)).ColBox).serialize(w)
17553 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17555 if err := pcall(func() {
17568 //mt:const uint8(6)
17570 OverlayTiles [6]TileDef
17571 //mt:const uint8(6)
17572 SpecialTiles [6]TileDef
17579 ConnectTo []Content
17580 InsideTint color.NRGBA
17581 Level uint8 // Must be < 128.
17583 Translucent bool // Sunlight is scattered and becomes normal light.
17584 Transparent bool // Sunlight isn't scattered.
17597 LiquidType LiquidType
17600 Viscosity uint8 // 0-7
17606 DrawBox, ColBox, SelBox NodeBox
17608 FootstepSnd, DiggingSnd, DugSnd SoundDef
17618 }))(obj)).SelBox).serialize(w)
17623 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
17625 if err := pcall(func() {
17638 //mt:const uint8(6)
17640 OverlayTiles [6]TileDef
17641 //mt:const uint8(6)
17642 SpecialTiles [6]TileDef
17649 ConnectTo []Content
17650 InsideTint color.NRGBA
17651 Level uint8 // Must be < 128.
17653 Translucent bool // Sunlight is scattered and becomes normal light.
17654 Transparent bool // Sunlight isn't scattered.
17667 LiquidType LiquidType
17670 Viscosity uint8 // 0-7
17676 DrawBox, ColBox, SelBox NodeBox
17678 FootstepSnd, DiggingSnd, DugSnd SoundDef
17688 }))(obj)).FootstepSnd).serialize(w)
17693 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17695 if err := pcall(func() {
17708 //mt:const uint8(6)
17710 OverlayTiles [6]TileDef
17711 //mt:const uint8(6)
17712 SpecialTiles [6]TileDef
17719 ConnectTo []Content
17720 InsideTint color.NRGBA
17721 Level uint8 // Must be < 128.
17723 Translucent bool // Sunlight is scattered and becomes normal light.
17724 Transparent bool // Sunlight isn't scattered.
17737 LiquidType LiquidType
17740 Viscosity uint8 // 0-7
17746 DrawBox, ColBox, SelBox NodeBox
17748 FootstepSnd, DiggingSnd, DugSnd SoundDef
17758 }))(obj)).DiggingSnd).serialize(w)
17763 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17765 if err := pcall(func() {
17778 //mt:const uint8(6)
17780 OverlayTiles [6]TileDef
17781 //mt:const uint8(6)
17782 SpecialTiles [6]TileDef
17789 ConnectTo []Content
17790 InsideTint color.NRGBA
17791 Level uint8 // Must be < 128.
17793 Translucent bool // Sunlight is scattered and becomes normal light.
17794 Transparent bool // Sunlight isn't scattered.
17807 LiquidType LiquidType
17810 Viscosity uint8 // 0-7
17816 DrawBox, ColBox, SelBox NodeBox
17818 FootstepSnd, DiggingSnd, DugSnd SoundDef
17828 }))(obj)).DugSnd).serialize(w)
17833 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
17848 //mt:const uint8(6)
17850 OverlayTiles [6]TileDef
17851 //mt:const uint8(6)
17852 SpecialTiles [6]TileDef
17859 ConnectTo []Content
17860 InsideTint color.NRGBA
17861 Level uint8 // Must be < 128.
17863 Translucent bool // Sunlight is scattered and becomes normal light.
17864 Transparent bool // Sunlight isn't scattered.
17877 LiquidType LiquidType
17880 Viscosity uint8 // 0-7
17886 DrawBox, ColBox, SelBox NodeBox
17888 FootstepSnd, DiggingSnd, DugSnd SoundDef
17898 }))(obj)).LegacyFaceDir
17918 //mt:const uint8(6)
17920 OverlayTiles [6]TileDef
17921 //mt:const uint8(6)
17922 SpecialTiles [6]TileDef
17929 ConnectTo []Content
17930 InsideTint color.NRGBA
17931 Level uint8 // Must be < 128.
17933 Translucent bool // Sunlight is scattered and becomes normal light.
17934 Transparent bool // Sunlight isn't scattered.
17947 LiquidType LiquidType
17950 Viscosity uint8 // 0-7
17956 DrawBox, ColBox, SelBox NodeBox
17958 FootstepSnd, DiggingSnd, DugSnd SoundDef
17968 }))(obj)).LegacyMounted
17975 if len(([]byte((*(*(struct {
17987 //mt:const uint8(6)
17989 OverlayTiles [6]TileDef
17990 //mt:const uint8(6)
17991 SpecialTiles [6]TileDef
17998 ConnectTo []Content
17999 InsideTint color.NRGBA
18000 Level uint8 // Must be < 128.
18002 Translucent bool // Sunlight is scattered and becomes normal light.
18003 Transparent bool // Sunlight isn't scattered.
18016 LiquidType LiquidType
18019 Viscosity uint8 // 0-7
18025 DrawBox, ColBox, SelBox NodeBox
18027 FootstepSnd, DiggingSnd, DugSnd SoundDef
18037 }))(obj)).DigPredict))) > math.MaxUint16 {
18041 x := uint16(len(([]byte((*(*(struct {
18053 //mt:const uint8(6)
18055 OverlayTiles [6]TileDef
18056 //mt:const uint8(6)
18057 SpecialTiles [6]TileDef
18064 ConnectTo []Content
18065 InsideTint color.NRGBA
18066 Level uint8 // Must be < 128.
18068 Translucent bool // Sunlight is scattered and becomes normal light.
18069 Transparent bool // Sunlight isn't scattered.
18082 LiquidType LiquidType
18085 Viscosity uint8 // 0-7
18091 DrawBox, ColBox, SelBox NodeBox
18093 FootstepSnd, DiggingSnd, DugSnd SoundDef
18103 }))(obj)).DigPredict))))
18104 write16(w, uint16(x))
18107 _, err := w.Write(([]byte((*(*(struct {
18119 //mt:const uint8(6)
18121 OverlayTiles [6]TileDef
18122 //mt:const uint8(6)
18123 SpecialTiles [6]TileDef
18130 ConnectTo []Content
18131 InsideTint color.NRGBA
18132 Level uint8 // Must be < 128.
18134 Translucent bool // Sunlight is scattered and becomes normal light.
18135 Transparent bool // Sunlight isn't scattered.
18148 LiquidType LiquidType
18151 Viscosity uint8 // 0-7
18157 DrawBox, ColBox, SelBox NodeBox
18159 FootstepSnd, DiggingSnd, DugSnd SoundDef
18169 }))(obj)).DigPredict))[:])
18185 //mt:const uint8(6)
18187 OverlayTiles [6]TileDef
18188 //mt:const uint8(6)
18189 SpecialTiles [6]TileDef
18196 ConnectTo []Content
18197 InsideTint color.NRGBA
18198 Level uint8 // Must be < 128.
18200 Translucent bool // Sunlight is scattered and becomes normal light.
18201 Transparent bool // Sunlight isn't scattered.
18214 LiquidType LiquidType
18217 Viscosity uint8 // 0-7
18223 DrawBox, ColBox, SelBox NodeBox
18225 FootstepSnd, DiggingSnd, DugSnd SoundDef
18236 write8(w, uint8(x))
18238 if err := pcall(func() {
18251 //mt:const uint8(6)
18253 OverlayTiles [6]TileDef
18254 //mt:const uint8(6)
18255 SpecialTiles [6]TileDef
18262 ConnectTo []Content
18263 InsideTint color.NRGBA
18264 Level uint8 // Must be < 128.
18266 Translucent bool // Sunlight is scattered and becomes normal light.
18267 Transparent bool // Sunlight isn't scattered.
18280 LiquidType LiquidType
18283 Viscosity uint8 // 0-7
18289 DrawBox, ColBox, SelBox NodeBox
18291 FootstepSnd, DiggingSnd, DugSnd SoundDef
18301 }))(obj)).AlphaUse).serialize(w)
18306 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
18311 if len((buf.Bytes())) > math.MaxUint16 {
18315 x := uint16(len((buf.Bytes())))
18316 write16(w, uint16(x))
18319 _, err := w.Write((buf.Bytes())[:])
18326 func (obj *NodeDef) deserialize(r io.Reader) {
18327 if err := pcall(func() {
18340 //mt:const uint8(6)
18342 OverlayTiles [6]TileDef
18343 //mt:const uint8(6)
18344 SpecialTiles [6]TileDef
18351 ConnectTo []Content
18352 InsideTint color.NRGBA
18353 Level uint8 // Must be < 128.
18355 Translucent bool // Sunlight is scattered and becomes normal light.
18356 Transparent bool // Sunlight isn't scattered.
18369 LiquidType LiquidType
18372 Viscosity uint8 // 0-7
18378 DrawBox, ColBox, SelBox NodeBox
18380 FootstepSnd, DiggingSnd, DugSnd SoundDef
18390 }))(obj)).Param0).deserialize(r)
18395 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
18403 r := &io.LimitedReader{R: r, N: int64(n)}
18406 local247 := uint8(13)
18411 if local246 != local247 {
18412 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
18415 var local248 []uint8
18416 var local249 uint16
18421 (local248) = make([]uint8, local249)
18423 _, err := io.ReadFull(r, (local248)[:])
18438 //mt:const uint8(6)
18440 OverlayTiles [6]TileDef
18441 //mt:const uint8(6)
18442 SpecialTiles [6]TileDef
18449 ConnectTo []Content
18450 InsideTint color.NRGBA
18451 Level uint8 // Must be < 128.
18453 Translucent bool // Sunlight is scattered and becomes normal light.
18454 Transparent bool // Sunlight isn't scattered.
18467 LiquidType LiquidType
18470 Viscosity uint8 // 0-7
18476 DrawBox, ColBox, SelBox NodeBox
18478 FootstepSnd, DiggingSnd, DugSnd SoundDef
18488 }))(obj)).Name) = string(local248)
18489 var local250 uint16
18506 //mt:const uint8(6)
18508 OverlayTiles [6]TileDef
18509 //mt:const uint8(6)
18510 SpecialTiles [6]TileDef
18517 ConnectTo []Content
18518 InsideTint color.NRGBA
18519 Level uint8 // Must be < 128.
18521 Translucent bool // Sunlight is scattered and becomes normal light.
18522 Transparent bool // Sunlight isn't scattered.
18535 LiquidType LiquidType
18538 Viscosity uint8 // 0-7
18544 DrawBox, ColBox, SelBox NodeBox
18546 FootstepSnd, DiggingSnd, DugSnd SoundDef
18556 }))(obj)).Groups) = make([]Group, local250)
18557 for local251 := range (*(*(struct {
18569 //mt:const uint8(6)
18571 OverlayTiles [6]TileDef
18572 //mt:const uint8(6)
18573 SpecialTiles [6]TileDef
18580 ConnectTo []Content
18581 InsideTint color.NRGBA
18582 Level uint8 // Must be < 128.
18584 Translucent bool // Sunlight is scattered and becomes normal light.
18585 Transparent bool // Sunlight isn't scattered.
18598 LiquidType LiquidType
18601 Viscosity uint8 // 0-7
18607 DrawBox, ColBox, SelBox NodeBox
18609 FootstepSnd, DiggingSnd, DugSnd SoundDef
18620 if err := pcall(func() {
18633 //mt:const uint8(6)
18635 OverlayTiles [6]TileDef
18636 //mt:const uint8(6)
18637 SpecialTiles [6]TileDef
18644 ConnectTo []Content
18645 InsideTint color.NRGBA
18646 Level uint8 // Must be < 128.
18648 Translucent bool // Sunlight is scattered and becomes normal light.
18649 Transparent bool // Sunlight isn't scattered.
18662 LiquidType LiquidType
18665 Viscosity uint8 // 0-7
18671 DrawBox, ColBox, SelBox NodeBox
18673 FootstepSnd, DiggingSnd, DugSnd SoundDef
18683 }))(obj)).Groups)[local251]).deserialize(r)
18688 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
18691 if err := pcall(func() {
18704 //mt:const uint8(6)
18706 OverlayTiles [6]TileDef
18707 //mt:const uint8(6)
18708 SpecialTiles [6]TileDef
18715 ConnectTo []Content
18716 InsideTint color.NRGBA
18717 Level uint8 // Must be < 128.
18719 Translucent bool // Sunlight is scattered and becomes normal light.
18720 Transparent bool // Sunlight isn't scattered.
18733 LiquidType LiquidType
18736 Viscosity uint8 // 0-7
18742 DrawBox, ColBox, SelBox NodeBox
18744 FootstepSnd, DiggingSnd, DugSnd SoundDef
18754 }))(obj)).P1Type).deserialize(r)
18759 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param1Type", err))
18761 if err := pcall(func() {
18774 //mt:const uint8(6)
18776 OverlayTiles [6]TileDef
18777 //mt:const uint8(6)
18778 SpecialTiles [6]TileDef
18785 ConnectTo []Content
18786 InsideTint color.NRGBA
18787 Level uint8 // Must be < 128.
18789 Translucent bool // Sunlight is scattered and becomes normal light.
18790 Transparent bool // Sunlight isn't scattered.
18803 LiquidType LiquidType
18806 Viscosity uint8 // 0-7
18812 DrawBox, ColBox, SelBox NodeBox
18814 FootstepSnd, DiggingSnd, DugSnd SoundDef
18824 }))(obj)).P2Type).deserialize(r)
18829 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Param2Type", err))
18831 if err := pcall(func() {
18844 //mt:const uint8(6)
18846 OverlayTiles [6]TileDef
18847 //mt:const uint8(6)
18848 SpecialTiles [6]TileDef
18855 ConnectTo []Content
18856 InsideTint color.NRGBA
18857 Level uint8 // Must be < 128.
18859 Translucent bool // Sunlight is scattered and becomes normal light.
18860 Transparent bool // Sunlight isn't scattered.
18873 LiquidType LiquidType
18876 Viscosity uint8 // 0-7
18882 DrawBox, ColBox, SelBox NodeBox
18884 FootstepSnd, DiggingSnd, DugSnd SoundDef
18894 }))(obj)).DrawType).deserialize(r)
18899 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DrawType", err))
18901 var local252 []uint8
18902 var local253 uint16
18907 (local252) = make([]uint8, local253)
18909 _, err := io.ReadFull(r, (local252)[:])
18924 //mt:const uint8(6)
18926 OverlayTiles [6]TileDef
18927 //mt:const uint8(6)
18928 SpecialTiles [6]TileDef
18935 ConnectTo []Content
18936 InsideTint color.NRGBA
18937 Level uint8 // Must be < 128.
18939 Translucent bool // Sunlight is scattered and becomes normal light.
18940 Transparent bool // Sunlight isn't scattered.
18953 LiquidType LiquidType
18956 Viscosity uint8 // 0-7
18962 DrawBox, ColBox, SelBox NodeBox
18964 FootstepSnd, DiggingSnd, DugSnd SoundDef
18974 }))(obj)).Mesh) = string(local252)
18976 p := &(*(*(struct {
18988 //mt:const uint8(6)
18990 OverlayTiles [6]TileDef
18991 //mt:const uint8(6)
18992 SpecialTiles [6]TileDef
18999 ConnectTo []Content
19000 InsideTint color.NRGBA
19001 Level uint8 // Must be < 128.
19003 Translucent bool // Sunlight is scattered and becomes normal light.
19004 Transparent bool // Sunlight isn't scattered.
19017 LiquidType LiquidType
19020 Viscosity uint8 // 0-7
19026 DrawBox, ColBox, SelBox NodeBox
19028 FootstepSnd, DiggingSnd, DugSnd SoundDef
19039 *p = math.Float32frombits(read32(r))
19043 local255 := uint8(6)
19048 if local254 != local255 {
19049 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19052 for local256 := range (*(*(struct {
19064 //mt:const uint8(6)
19066 OverlayTiles [6]TileDef
19067 //mt:const uint8(6)
19068 SpecialTiles [6]TileDef
19075 ConnectTo []Content
19076 InsideTint color.NRGBA
19077 Level uint8 // Must be < 128.
19079 Translucent bool // Sunlight is scattered and becomes normal light.
19080 Transparent bool // Sunlight isn't scattered.
19093 LiquidType LiquidType
19096 Viscosity uint8 // 0-7
19102 DrawBox, ColBox, SelBox NodeBox
19104 FootstepSnd, DiggingSnd, DugSnd SoundDef
19115 if err := pcall(func() {
19128 //mt:const uint8(6)
19130 OverlayTiles [6]TileDef
19131 //mt:const uint8(6)
19132 SpecialTiles [6]TileDef
19139 ConnectTo []Content
19140 InsideTint color.NRGBA
19141 Level uint8 // Must be < 128.
19143 Translucent bool // Sunlight is scattered and becomes normal light.
19144 Transparent bool // Sunlight isn't scattered.
19157 LiquidType LiquidType
19160 Viscosity uint8 // 0-7
19166 DrawBox, ColBox, SelBox NodeBox
19168 FootstepSnd, DiggingSnd, DugSnd SoundDef
19178 }))(obj)).Tiles)[local256]).deserialize(r)
19183 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19186 for local257 := range (*(*(struct {
19198 //mt:const uint8(6)
19200 OverlayTiles [6]TileDef
19201 //mt:const uint8(6)
19202 SpecialTiles [6]TileDef
19209 ConnectTo []Content
19210 InsideTint color.NRGBA
19211 Level uint8 // Must be < 128.
19213 Translucent bool // Sunlight is scattered and becomes normal light.
19214 Transparent bool // Sunlight isn't scattered.
19227 LiquidType LiquidType
19230 Viscosity uint8 // 0-7
19236 DrawBox, ColBox, SelBox NodeBox
19238 FootstepSnd, DiggingSnd, DugSnd SoundDef
19248 }))(obj)).OverlayTiles {
19249 if err := pcall(func() {
19262 //mt:const uint8(6)
19264 OverlayTiles [6]TileDef
19265 //mt:const uint8(6)
19266 SpecialTiles [6]TileDef
19273 ConnectTo []Content
19274 InsideTint color.NRGBA
19275 Level uint8 // Must be < 128.
19277 Translucent bool // Sunlight is scattered and becomes normal light.
19278 Transparent bool // Sunlight isn't scattered.
19291 LiquidType LiquidType
19294 Viscosity uint8 // 0-7
19300 DrawBox, ColBox, SelBox NodeBox
19302 FootstepSnd, DiggingSnd, DugSnd SoundDef
19312 }))(obj)).OverlayTiles)[local257]).deserialize(r)
19317 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19322 local259 := uint8(6)
19327 if local258 != local259 {
19328 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
19331 for local260 := range (*(*(struct {
19343 //mt:const uint8(6)
19345 OverlayTiles [6]TileDef
19346 //mt:const uint8(6)
19347 SpecialTiles [6]TileDef
19354 ConnectTo []Content
19355 InsideTint color.NRGBA
19356 Level uint8 // Must be < 128.
19358 Translucent bool // Sunlight is scattered and becomes normal light.
19359 Transparent bool // Sunlight isn't scattered.
19372 LiquidType LiquidType
19375 Viscosity uint8 // 0-7
19381 DrawBox, ColBox, SelBox NodeBox
19383 FootstepSnd, DiggingSnd, DugSnd SoundDef
19393 }))(obj)).SpecialTiles {
19394 if err := pcall(func() {
19407 //mt:const uint8(6)
19409 OverlayTiles [6]TileDef
19410 //mt:const uint8(6)
19411 SpecialTiles [6]TileDef
19418 ConnectTo []Content
19419 InsideTint color.NRGBA
19420 Level uint8 // Must be < 128.
19422 Translucent bool // Sunlight is scattered and becomes normal light.
19423 Transparent bool // Sunlight isn't scattered.
19436 LiquidType LiquidType
19439 Viscosity uint8 // 0-7
19445 DrawBox, ColBox, SelBox NodeBox
19447 FootstepSnd, DiggingSnd, DugSnd SoundDef
19457 }))(obj)).SpecialTiles)[local260]).deserialize(r)
19462 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileDef", err))
19466 p := &(*(*(struct {
19478 //mt:const uint8(6)
19480 OverlayTiles [6]TileDef
19481 //mt:const uint8(6)
19482 SpecialTiles [6]TileDef
19489 ConnectTo []Content
19490 InsideTint color.NRGBA
19491 Level uint8 // Must be < 128.
19493 Translucent bool // Sunlight is scattered and becomes normal light.
19494 Transparent bool // Sunlight isn't scattered.
19507 LiquidType LiquidType
19510 Viscosity uint8 // 0-7
19516 DrawBox, ColBox, SelBox NodeBox
19518 FootstepSnd, DiggingSnd, DugSnd SoundDef
19529 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
19531 if err := pcall(func() {
19544 //mt:const uint8(6)
19546 OverlayTiles [6]TileDef
19547 //mt:const uint8(6)
19548 SpecialTiles [6]TileDef
19555 ConnectTo []Content
19556 InsideTint color.NRGBA
19557 Level uint8 // Must be < 128.
19559 Translucent bool // Sunlight is scattered and becomes normal light.
19560 Transparent bool // Sunlight isn't scattered.
19573 LiquidType LiquidType
19576 Viscosity uint8 // 0-7
19582 DrawBox, ColBox, SelBox NodeBox
19584 FootstepSnd, DiggingSnd, DugSnd SoundDef
19594 }))(obj)).Palette).deserialize(r)
19599 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
19601 if err := pcall(func() {
19614 //mt:const uint8(6)
19616 OverlayTiles [6]TileDef
19617 //mt:const uint8(6)
19618 SpecialTiles [6]TileDef
19625 ConnectTo []Content
19626 InsideTint color.NRGBA
19627 Level uint8 // Must be < 128.
19629 Translucent bool // Sunlight is scattered and becomes normal light.
19630 Transparent bool // Sunlight isn't scattered.
19643 LiquidType LiquidType
19646 Viscosity uint8 // 0-7
19652 DrawBox, ColBox, SelBox NodeBox
19654 FootstepSnd, DiggingSnd, DugSnd SoundDef
19664 }))(obj)).Waving).deserialize(r)
19669 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.WaveType", err))
19672 p := &(*(*(struct {
19684 //mt:const uint8(6)
19686 OverlayTiles [6]TileDef
19687 //mt:const uint8(6)
19688 SpecialTiles [6]TileDef
19695 ConnectTo []Content
19696 InsideTint color.NRGBA
19697 Level uint8 // Must be < 128.
19699 Translucent bool // Sunlight is scattered and becomes normal light.
19700 Transparent bool // Sunlight isn't scattered.
19713 LiquidType LiquidType
19716 Viscosity uint8 // 0-7
19722 DrawBox, ColBox, SelBox NodeBox
19724 FootstepSnd, DiggingSnd, DugSnd SoundDef
19734 }))(obj)).ConnectSides
19737 var local261 uint16
19754 //mt:const uint8(6)
19756 OverlayTiles [6]TileDef
19757 //mt:const uint8(6)
19758 SpecialTiles [6]TileDef
19765 ConnectTo []Content
19766 InsideTint color.NRGBA
19767 Level uint8 // Must be < 128.
19769 Translucent bool // Sunlight is scattered and becomes normal light.
19770 Transparent bool // Sunlight isn't scattered.
19783 LiquidType LiquidType
19786 Viscosity uint8 // 0-7
19792 DrawBox, ColBox, SelBox NodeBox
19794 FootstepSnd, DiggingSnd, DugSnd SoundDef
19804 }))(obj)).ConnectTo) = make([]Content, local261)
19805 for local262 := range (*(*(struct {
19817 //mt:const uint8(6)
19819 OverlayTiles [6]TileDef
19820 //mt:const uint8(6)
19821 SpecialTiles [6]TileDef
19828 ConnectTo []Content
19829 InsideTint color.NRGBA
19830 Level uint8 // Must be < 128.
19832 Translucent bool // Sunlight is scattered and becomes normal light.
19833 Transparent bool // Sunlight isn't scattered.
19846 LiquidType LiquidType
19849 Viscosity uint8 // 0-7
19855 DrawBox, ColBox, SelBox NodeBox
19857 FootstepSnd, DiggingSnd, DugSnd SoundDef
19867 }))(obj)).ConnectTo {
19868 if err := pcall(func() {
19881 //mt:const uint8(6)
19883 OverlayTiles [6]TileDef
19884 //mt:const uint8(6)
19885 SpecialTiles [6]TileDef
19892 ConnectTo []Content
19893 InsideTint color.NRGBA
19894 Level uint8 // Must be < 128.
19896 Translucent bool // Sunlight is scattered and becomes normal light.
19897 Transparent bool // Sunlight isn't scattered.
19910 LiquidType LiquidType
19913 Viscosity uint8 // 0-7
19919 DrawBox, ColBox, SelBox NodeBox
19921 FootstepSnd, DiggingSnd, DugSnd SoundDef
19931 }))(obj)).ConnectTo)[local262]).deserialize(r)
19936 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
19940 p := &(*(*(struct {
19952 //mt:const uint8(6)
19954 OverlayTiles [6]TileDef
19955 //mt:const uint8(6)
19956 SpecialTiles [6]TileDef
19963 ConnectTo []Content
19964 InsideTint color.NRGBA
19965 Level uint8 // Must be < 128.
19967 Translucent bool // Sunlight is scattered and becomes normal light.
19968 Transparent bool // Sunlight isn't scattered.
19981 LiquidType LiquidType
19984 Viscosity uint8 // 0-7
19990 DrawBox, ColBox, SelBox NodeBox
19992 FootstepSnd, DiggingSnd, DugSnd SoundDef
20002 }))(obj)).InsideTint
20003 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20006 p := &(*(*(struct {
20018 //mt:const uint8(6)
20020 OverlayTiles [6]TileDef
20021 //mt:const uint8(6)
20022 SpecialTiles [6]TileDef
20029 ConnectTo []Content
20030 InsideTint color.NRGBA
20031 Level uint8 // Must be < 128.
20033 Translucent bool // Sunlight is scattered and becomes normal light.
20034 Transparent bool // Sunlight isn't scattered.
20047 LiquidType LiquidType
20050 Viscosity uint8 // 0-7
20056 DrawBox, ColBox, SelBox NodeBox
20058 FootstepSnd, DiggingSnd, DugSnd SoundDef
20072 p := &(*(*(struct {
20084 //mt:const uint8(6)
20086 OverlayTiles [6]TileDef
20087 //mt:const uint8(6)
20088 SpecialTiles [6]TileDef
20095 ConnectTo []Content
20096 InsideTint color.NRGBA
20097 Level uint8 // Must be < 128.
20099 Translucent bool // Sunlight is scattered and becomes normal light.
20100 Transparent bool // Sunlight isn't scattered.
20113 LiquidType LiquidType
20116 Viscosity uint8 // 0-7
20122 DrawBox, ColBox, SelBox NodeBox
20124 FootstepSnd, DiggingSnd, DugSnd SoundDef
20134 }))(obj)).Translucent
20135 switch n := read8(r); n {
20141 chk(fmt.Errorf("invalid bool: %d", n))
20145 p := &(*(*(struct {
20157 //mt:const uint8(6)
20159 OverlayTiles [6]TileDef
20160 //mt:const uint8(6)
20161 SpecialTiles [6]TileDef
20168 ConnectTo []Content
20169 InsideTint color.NRGBA
20170 Level uint8 // Must be < 128.
20172 Translucent bool // Sunlight is scattered and becomes normal light.
20173 Transparent bool // Sunlight isn't scattered.
20186 LiquidType LiquidType
20189 Viscosity uint8 // 0-7
20195 DrawBox, ColBox, SelBox NodeBox
20197 FootstepSnd, DiggingSnd, DugSnd SoundDef
20207 }))(obj)).Transparent
20208 switch n := read8(r); n {
20214 chk(fmt.Errorf("invalid bool: %d", n))
20218 p := &(*(*(struct {
20230 //mt:const uint8(6)
20232 OverlayTiles [6]TileDef
20233 //mt:const uint8(6)
20234 SpecialTiles [6]TileDef
20241 ConnectTo []Content
20242 InsideTint color.NRGBA
20243 Level uint8 // Must be < 128.
20245 Translucent bool // Sunlight is scattered and becomes normal light.
20246 Transparent bool // Sunlight isn't scattered.
20259 LiquidType LiquidType
20262 Viscosity uint8 // 0-7
20268 DrawBox, ColBox, SelBox NodeBox
20270 FootstepSnd, DiggingSnd, DugSnd SoundDef
20284 p := &(*(*(struct {
20296 //mt:const uint8(6)
20298 OverlayTiles [6]TileDef
20299 //mt:const uint8(6)
20300 SpecialTiles [6]TileDef
20307 ConnectTo []Content
20308 InsideTint color.NRGBA
20309 Level uint8 // Must be < 128.
20311 Translucent bool // Sunlight is scattered and becomes normal light.
20312 Transparent bool // Sunlight isn't scattered.
20325 LiquidType LiquidType
20328 Viscosity uint8 // 0-7
20334 DrawBox, ColBox, SelBox NodeBox
20336 FootstepSnd, DiggingSnd, DugSnd SoundDef
20346 }))(obj)).GndContent
20347 switch n := read8(r); n {
20353 chk(fmt.Errorf("invalid bool: %d", n))
20357 p := &(*(*(struct {
20369 //mt:const uint8(6)
20371 OverlayTiles [6]TileDef
20372 //mt:const uint8(6)
20373 SpecialTiles [6]TileDef
20380 ConnectTo []Content
20381 InsideTint color.NRGBA
20382 Level uint8 // Must be < 128.
20384 Translucent bool // Sunlight is scattered and becomes normal light.
20385 Transparent bool // Sunlight isn't scattered.
20398 LiquidType LiquidType
20401 Viscosity uint8 // 0-7
20407 DrawBox, ColBox, SelBox NodeBox
20409 FootstepSnd, DiggingSnd, DugSnd SoundDef
20420 switch n := read8(r); n {
20426 chk(fmt.Errorf("invalid bool: %d", n))
20430 p := &(*(*(struct {
20442 //mt:const uint8(6)
20444 OverlayTiles [6]TileDef
20445 //mt:const uint8(6)
20446 SpecialTiles [6]TileDef
20453 ConnectTo []Content
20454 InsideTint color.NRGBA
20455 Level uint8 // Must be < 128.
20457 Translucent bool // Sunlight is scattered and becomes normal light.
20458 Transparent bool // Sunlight isn't scattered.
20471 LiquidType LiquidType
20474 Viscosity uint8 // 0-7
20480 DrawBox, ColBox, SelBox NodeBox
20482 FootstepSnd, DiggingSnd, DugSnd SoundDef
20492 }))(obj)).Pointable
20493 switch n := read8(r); n {
20499 chk(fmt.Errorf("invalid bool: %d", n))
20503 p := &(*(*(struct {
20515 //mt:const uint8(6)
20517 OverlayTiles [6]TileDef
20518 //mt:const uint8(6)
20519 SpecialTiles [6]TileDef
20526 ConnectTo []Content
20527 InsideTint color.NRGBA
20528 Level uint8 // Must be < 128.
20530 Translucent bool // Sunlight is scattered and becomes normal light.
20531 Transparent bool // Sunlight isn't scattered.
20544 LiquidType LiquidType
20547 Viscosity uint8 // 0-7
20553 DrawBox, ColBox, SelBox NodeBox
20555 FootstepSnd, DiggingSnd, DugSnd SoundDef
20566 switch n := read8(r); n {
20572 chk(fmt.Errorf("invalid bool: %d", n))
20576 p := &(*(*(struct {
20588 //mt:const uint8(6)
20590 OverlayTiles [6]TileDef
20591 //mt:const uint8(6)
20592 SpecialTiles [6]TileDef
20599 ConnectTo []Content
20600 InsideTint color.NRGBA
20601 Level uint8 // Must be < 128.
20603 Translucent bool // Sunlight is scattered and becomes normal light.
20604 Transparent bool // Sunlight isn't scattered.
20617 LiquidType LiquidType
20620 Viscosity uint8 // 0-7
20626 DrawBox, ColBox, SelBox NodeBox
20628 FootstepSnd, DiggingSnd, DugSnd SoundDef
20638 }))(obj)).Climbable
20639 switch n := read8(r); n {
20645 chk(fmt.Errorf("invalid bool: %d", n))
20649 p := &(*(*(struct {
20661 //mt:const uint8(6)
20663 OverlayTiles [6]TileDef
20664 //mt:const uint8(6)
20665 SpecialTiles [6]TileDef
20672 ConnectTo []Content
20673 InsideTint color.NRGBA
20674 Level uint8 // Must be < 128.
20676 Translucent bool // Sunlight is scattered and becomes normal light.
20677 Transparent bool // Sunlight isn't scattered.
20690 LiquidType LiquidType
20693 Viscosity uint8 // 0-7
20699 DrawBox, ColBox, SelBox NodeBox
20701 FootstepSnd, DiggingSnd, DugSnd SoundDef
20711 }))(obj)).Replaceable
20712 switch n := read8(r); n {
20718 chk(fmt.Errorf("invalid bool: %d", n))
20722 p := &(*(*(struct {
20734 //mt:const uint8(6)
20736 OverlayTiles [6]TileDef
20737 //mt:const uint8(6)
20738 SpecialTiles [6]TileDef
20745 ConnectTo []Content
20746 InsideTint color.NRGBA
20747 Level uint8 // Must be < 128.
20749 Translucent bool // Sunlight is scattered and becomes normal light.
20750 Transparent bool // Sunlight isn't scattered.
20763 LiquidType LiquidType
20766 Viscosity uint8 // 0-7
20772 DrawBox, ColBox, SelBox NodeBox
20774 FootstepSnd, DiggingSnd, DugSnd SoundDef
20784 }))(obj)).OnRightClick
20785 switch n := read8(r); n {
20791 chk(fmt.Errorf("invalid bool: %d", n))
20795 p := &(*(*(struct {
20807 //mt:const uint8(6)
20809 OverlayTiles [6]TileDef
20810 //mt:const uint8(6)
20811 SpecialTiles [6]TileDef
20818 ConnectTo []Content
20819 InsideTint color.NRGBA
20820 Level uint8 // Must be < 128.
20822 Translucent bool // Sunlight is scattered and becomes normal light.
20823 Transparent bool // Sunlight isn't scattered.
20836 LiquidType LiquidType
20839 Viscosity uint8 // 0-7
20845 DrawBox, ColBox, SelBox NodeBox
20847 FootstepSnd, DiggingSnd, DugSnd SoundDef
20857 }))(obj)).DmgPerSec
20858 *p = int32(read32(r))
20860 if err := pcall(func() {
20873 //mt:const uint8(6)
20875 OverlayTiles [6]TileDef
20876 //mt:const uint8(6)
20877 SpecialTiles [6]TileDef
20884 ConnectTo []Content
20885 InsideTint color.NRGBA
20886 Level uint8 // Must be < 128.
20888 Translucent bool // Sunlight is scattered and becomes normal light.
20889 Transparent bool // Sunlight isn't scattered.
20902 LiquidType LiquidType
20905 Viscosity uint8 // 0-7
20911 DrawBox, ColBox, SelBox NodeBox
20913 FootstepSnd, DiggingSnd, DugSnd SoundDef
20923 }))(obj)).LiquidType).deserialize(r)
20928 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LiquidType", err))
20930 var local263 []uint8
20931 var local264 uint16
20936 (local263) = make([]uint8, local264)
20938 _, err := io.ReadFull(r, (local263)[:])
20953 //mt:const uint8(6)
20955 OverlayTiles [6]TileDef
20956 //mt:const uint8(6)
20957 SpecialTiles [6]TileDef
20964 ConnectTo []Content
20965 InsideTint color.NRGBA
20966 Level uint8 // Must be < 128.
20968 Translucent bool // Sunlight is scattered and becomes normal light.
20969 Transparent bool // Sunlight isn't scattered.
20982 LiquidType LiquidType
20985 Viscosity uint8 // 0-7
20991 DrawBox, ColBox, SelBox NodeBox
20993 FootstepSnd, DiggingSnd, DugSnd SoundDef
21003 }))(obj)).FlowingAlt) = string(local263)
21004 var local265 []uint8
21005 var local266 uint16
21010 (local265) = make([]uint8, local266)
21012 _, err := io.ReadFull(r, (local265)[:])
21027 //mt:const uint8(6)
21029 OverlayTiles [6]TileDef
21030 //mt:const uint8(6)
21031 SpecialTiles [6]TileDef
21038 ConnectTo []Content
21039 InsideTint color.NRGBA
21040 Level uint8 // Must be < 128.
21042 Translucent bool // Sunlight is scattered and becomes normal light.
21043 Transparent bool // Sunlight isn't scattered.
21056 LiquidType LiquidType
21059 Viscosity uint8 // 0-7
21065 DrawBox, ColBox, SelBox NodeBox
21067 FootstepSnd, DiggingSnd, DugSnd SoundDef
21077 }))(obj)).SrcAlt) = string(local265)
21079 p := &(*(*(struct {
21091 //mt:const uint8(6)
21093 OverlayTiles [6]TileDef
21094 //mt:const uint8(6)
21095 SpecialTiles [6]TileDef
21102 ConnectTo []Content
21103 InsideTint color.NRGBA
21104 Level uint8 // Must be < 128.
21106 Translucent bool // Sunlight is scattered and becomes normal light.
21107 Transparent bool // Sunlight isn't scattered.
21120 LiquidType LiquidType
21123 Viscosity uint8 // 0-7
21129 DrawBox, ColBox, SelBox NodeBox
21131 FootstepSnd, DiggingSnd, DugSnd SoundDef
21141 }))(obj)).Viscosity
21145 p := &(*(*(struct {
21157 //mt:const uint8(6)
21159 OverlayTiles [6]TileDef
21160 //mt:const uint8(6)
21161 SpecialTiles [6]TileDef
21168 ConnectTo []Content
21169 InsideTint color.NRGBA
21170 Level uint8 // Must be < 128.
21172 Translucent bool // Sunlight is scattered and becomes normal light.
21173 Transparent bool // Sunlight isn't scattered.
21186 LiquidType LiquidType
21189 Viscosity uint8 // 0-7
21195 DrawBox, ColBox, SelBox NodeBox
21197 FootstepSnd, DiggingSnd, DugSnd SoundDef
21207 }))(obj)).LiqRenewable
21208 switch n := read8(r); n {
21214 chk(fmt.Errorf("invalid bool: %d", n))
21218 p := &(*(*(struct {
21230 //mt:const uint8(6)
21232 OverlayTiles [6]TileDef
21233 //mt:const uint8(6)
21234 SpecialTiles [6]TileDef
21241 ConnectTo []Content
21242 InsideTint color.NRGBA
21243 Level uint8 // Must be < 128.
21245 Translucent bool // Sunlight is scattered and becomes normal light.
21246 Transparent bool // Sunlight isn't scattered.
21259 LiquidType LiquidType
21262 Viscosity uint8 // 0-7
21268 DrawBox, ColBox, SelBox NodeBox
21270 FootstepSnd, DiggingSnd, DugSnd SoundDef
21280 }))(obj)).FlowRange
21284 p := &(*(*(struct {
21296 //mt:const uint8(6)
21298 OverlayTiles [6]TileDef
21299 //mt:const uint8(6)
21300 SpecialTiles [6]TileDef
21307 ConnectTo []Content
21308 InsideTint color.NRGBA
21309 Level uint8 // Must be < 128.
21311 Translucent bool // Sunlight is scattered and becomes normal light.
21312 Transparent bool // Sunlight isn't scattered.
21325 LiquidType LiquidType
21328 Viscosity uint8 // 0-7
21334 DrawBox, ColBox, SelBox NodeBox
21336 FootstepSnd, DiggingSnd, DugSnd SoundDef
21350 p := &(*(*(struct {
21362 //mt:const uint8(6)
21364 OverlayTiles [6]TileDef
21365 //mt:const uint8(6)
21366 SpecialTiles [6]TileDef
21373 ConnectTo []Content
21374 InsideTint color.NRGBA
21375 Level uint8 // Must be < 128.
21377 Translucent bool // Sunlight is scattered and becomes normal light.
21378 Transparent bool // Sunlight isn't scattered.
21391 LiquidType LiquidType
21394 Viscosity uint8 // 0-7
21400 DrawBox, ColBox, SelBox NodeBox
21402 FootstepSnd, DiggingSnd, DugSnd SoundDef
21412 }))(obj)).Floodable
21413 switch n := read8(r); n {
21419 chk(fmt.Errorf("invalid bool: %d", n))
21422 if err := pcall(func() {
21435 //mt:const uint8(6)
21437 OverlayTiles [6]TileDef
21438 //mt:const uint8(6)
21439 SpecialTiles [6]TileDef
21446 ConnectTo []Content
21447 InsideTint color.NRGBA
21448 Level uint8 // Must be < 128.
21450 Translucent bool // Sunlight is scattered and becomes normal light.
21451 Transparent bool // Sunlight isn't scattered.
21464 LiquidType LiquidType
21467 Viscosity uint8 // 0-7
21473 DrawBox, ColBox, SelBox NodeBox
21475 FootstepSnd, DiggingSnd, DugSnd SoundDef
21485 }))(obj)).DrawBox).deserialize(r)
21490 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21492 if err := pcall(func() {
21505 //mt:const uint8(6)
21507 OverlayTiles [6]TileDef
21508 //mt:const uint8(6)
21509 SpecialTiles [6]TileDef
21516 ConnectTo []Content
21517 InsideTint color.NRGBA
21518 Level uint8 // Must be < 128.
21520 Translucent bool // Sunlight is scattered and becomes normal light.
21521 Transparent bool // Sunlight isn't scattered.
21534 LiquidType LiquidType
21537 Viscosity uint8 // 0-7
21543 DrawBox, ColBox, SelBox NodeBox
21545 FootstepSnd, DiggingSnd, DugSnd SoundDef
21555 }))(obj)).ColBox).deserialize(r)
21560 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21562 if err := pcall(func() {
21575 //mt:const uint8(6)
21577 OverlayTiles [6]TileDef
21578 //mt:const uint8(6)
21579 SpecialTiles [6]TileDef
21586 ConnectTo []Content
21587 InsideTint color.NRGBA
21588 Level uint8 // Must be < 128.
21590 Translucent bool // Sunlight is scattered and becomes normal light.
21591 Transparent bool // Sunlight isn't scattered.
21604 LiquidType LiquidType
21607 Viscosity uint8 // 0-7
21613 DrawBox, ColBox, SelBox NodeBox
21615 FootstepSnd, DiggingSnd, DugSnd SoundDef
21625 }))(obj)).SelBox).deserialize(r)
21630 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBox", err))
21632 if err := pcall(func() {
21645 //mt:const uint8(6)
21647 OverlayTiles [6]TileDef
21648 //mt:const uint8(6)
21649 SpecialTiles [6]TileDef
21656 ConnectTo []Content
21657 InsideTint color.NRGBA
21658 Level uint8 // Must be < 128.
21660 Translucent bool // Sunlight is scattered and becomes normal light.
21661 Transparent bool // Sunlight isn't scattered.
21674 LiquidType LiquidType
21677 Viscosity uint8 // 0-7
21683 DrawBox, ColBox, SelBox NodeBox
21685 FootstepSnd, DiggingSnd, DugSnd SoundDef
21695 }))(obj)).FootstepSnd).deserialize(r)
21700 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21702 if err := pcall(func() {
21715 //mt:const uint8(6)
21717 OverlayTiles [6]TileDef
21718 //mt:const uint8(6)
21719 SpecialTiles [6]TileDef
21726 ConnectTo []Content
21727 InsideTint color.NRGBA
21728 Level uint8 // Must be < 128.
21730 Translucent bool // Sunlight is scattered and becomes normal light.
21731 Transparent bool // Sunlight isn't scattered.
21744 LiquidType LiquidType
21747 Viscosity uint8 // 0-7
21753 DrawBox, ColBox, SelBox NodeBox
21755 FootstepSnd, DiggingSnd, DugSnd SoundDef
21765 }))(obj)).DiggingSnd).deserialize(r)
21770 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21772 if err := pcall(func() {
21785 //mt:const uint8(6)
21787 OverlayTiles [6]TileDef
21788 //mt:const uint8(6)
21789 SpecialTiles [6]TileDef
21796 ConnectTo []Content
21797 InsideTint color.NRGBA
21798 Level uint8 // Must be < 128.
21800 Translucent bool // Sunlight is scattered and becomes normal light.
21801 Transparent bool // Sunlight isn't scattered.
21814 LiquidType LiquidType
21817 Viscosity uint8 // 0-7
21823 DrawBox, ColBox, SelBox NodeBox
21825 FootstepSnd, DiggingSnd, DugSnd SoundDef
21835 }))(obj)).DugSnd).deserialize(r)
21840 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
21843 p := &(*(*(struct {
21855 //mt:const uint8(6)
21857 OverlayTiles [6]TileDef
21858 //mt:const uint8(6)
21859 SpecialTiles [6]TileDef
21866 ConnectTo []Content
21867 InsideTint color.NRGBA
21868 Level uint8 // Must be < 128.
21870 Translucent bool // Sunlight is scattered and becomes normal light.
21871 Transparent bool // Sunlight isn't scattered.
21884 LiquidType LiquidType
21887 Viscosity uint8 // 0-7
21893 DrawBox, ColBox, SelBox NodeBox
21895 FootstepSnd, DiggingSnd, DugSnd SoundDef
21905 }))(obj)).LegacyFaceDir
21906 switch n := read8(r); n {
21912 chk(fmt.Errorf("invalid bool: %d", n))
21916 p := &(*(*(struct {
21928 //mt:const uint8(6)
21930 OverlayTiles [6]TileDef
21931 //mt:const uint8(6)
21932 SpecialTiles [6]TileDef
21939 ConnectTo []Content
21940 InsideTint color.NRGBA
21941 Level uint8 // Must be < 128.
21943 Translucent bool // Sunlight is scattered and becomes normal light.
21944 Transparent bool // Sunlight isn't scattered.
21957 LiquidType LiquidType
21960 Viscosity uint8 // 0-7
21966 DrawBox, ColBox, SelBox NodeBox
21968 FootstepSnd, DiggingSnd, DugSnd SoundDef
21978 }))(obj)).LegacyMounted
21979 switch n := read8(r); n {
21985 chk(fmt.Errorf("invalid bool: %d", n))
21988 var local267 []uint8
21989 var local268 uint16
21994 (local267) = make([]uint8, local268)
21996 _, err := io.ReadFull(r, (local267)[:])
22011 //mt:const uint8(6)
22013 OverlayTiles [6]TileDef
22014 //mt:const uint8(6)
22015 SpecialTiles [6]TileDef
22022 ConnectTo []Content
22023 InsideTint color.NRGBA
22024 Level uint8 // Must be < 128.
22026 Translucent bool // Sunlight is scattered and becomes normal light.
22027 Transparent bool // Sunlight isn't scattered.
22040 LiquidType LiquidType
22043 Viscosity uint8 // 0-7
22049 DrawBox, ColBox, SelBox NodeBox
22051 FootstepSnd, DiggingSnd, DugSnd SoundDef
22061 }))(obj)).DigPredict) = string(local267)
22063 p := &(*(*(struct {
22075 //mt:const uint8(6)
22077 OverlayTiles [6]TileDef
22078 //mt:const uint8(6)
22079 SpecialTiles [6]TileDef
22086 ConnectTo []Content
22087 InsideTint color.NRGBA
22088 Level uint8 // Must be < 128.
22090 Translucent bool // Sunlight is scattered and becomes normal light.
22091 Transparent bool // Sunlight isn't scattered.
22104 LiquidType LiquidType
22107 Viscosity uint8 // 0-7
22113 DrawBox, ColBox, SelBox NodeBox
22115 FootstepSnd, DiggingSnd, DugSnd SoundDef
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)).AlphaUse).deserialize(r)
22196 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlphaUse", err))
22199 chk(fmt.Errorf("%d bytes of trailing data", r.N))
22204 func (obj *PointedNode) serialize(w io.Writer) {
22205 for local269 := range (*(*(struct {
22206 Under, Above [3]int16
22209 x := ((*(*(struct {
22210 Under, Above [3]int16
22211 }))(obj)).Under)[local269]
22212 write16(w, uint16(x))
22215 for local270 := range (*(*(struct {
22216 Under, Above [3]int16
22219 x := ((*(*(struct {
22220 Under, Above [3]int16
22221 }))(obj)).Above)[local270]
22222 write16(w, uint16(x))
22227 func (obj *PointedNode) deserialize(r io.Reader) {
22228 for local271 := range (*(*(struct {
22229 Under, Above [3]int16
22232 p := &((*(*(struct {
22233 Under, Above [3]int16
22234 }))(obj)).Under)[local271]
22235 *p = int16(read16(r))
22238 for local272 := range (*(*(struct {
22239 Under, Above [3]int16
22242 p := &((*(*(struct {
22243 Under, Above [3]int16
22244 }))(obj)).Above)[local272]
22245 *p = int16(read16(r))
22250 func (obj *PointedAO) serialize(w io.Writer) {
22251 if err := pcall(func() {
22254 }))(obj)).ID).serialize(w)
22259 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22263 func (obj *PointedAO) deserialize(r io.Reader) {
22264 if err := pcall(func() {
22267 }))(obj)).ID).deserialize(r)
22272 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
22276 func (obj *CompressionModes) serialize(w io.Writer) {
22278 x := *(*(uint16))(obj)
22279 write16(w, uint16(x))
22283 func (obj *CompressionModes) deserialize(r io.Reader) {
22285 p := &*(*(uint16))(obj)
22290 func (obj *PlayerPos) serialize(w io.Writer) {
22291 for local273 := range (*(*(struct {
22292 Pos100, Vel100 [3]int32
22293 Pitch100, Yaw100 int32
22296 WantedRange uint8 // in MapBlks.
22299 x := ((*(*(struct {
22300 Pos100, Vel100 [3]int32
22301 Pitch100, Yaw100 int32
22304 WantedRange uint8 // in MapBlks.
22305 }))(obj)).Pos100)[local273]
22306 write32(w, uint32(x))
22309 for local274 := range (*(*(struct {
22310 Pos100, Vel100 [3]int32
22311 Pitch100, Yaw100 int32
22314 WantedRange uint8 // in MapBlks.
22317 x := ((*(*(struct {
22318 Pos100, Vel100 [3]int32
22319 Pitch100, Yaw100 int32
22322 WantedRange uint8 // in MapBlks.
22323 }))(obj)).Vel100)[local274]
22324 write32(w, uint32(x))
22329 Pos100, Vel100 [3]int32
22330 Pitch100, Yaw100 int32
22333 WantedRange uint8 // in MapBlks.
22335 write32(w, uint32(x))
22339 Pos100, Vel100 [3]int32
22340 Pitch100, Yaw100 int32
22343 WantedRange uint8 // in MapBlks.
22345 write32(w, uint32(x))
22347 if err := pcall(func() {
22349 Pos100, Vel100 [3]int32
22350 Pitch100, Yaw100 int32
22353 WantedRange uint8 // in MapBlks.
22354 }))(obj)).Keys).serialize(w)
22359 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22363 Pos100, Vel100 [3]int32
22364 Pitch100, Yaw100 int32
22367 WantedRange uint8 // in MapBlks.
22369 write8(w, uint8(x))
22373 Pos100, Vel100 [3]int32
22374 Pitch100, Yaw100 int32
22377 WantedRange uint8 // in MapBlks.
22378 }))(obj)).WantedRange
22379 write8(w, uint8(x))
22383 func (obj *PlayerPos) deserialize(r io.Reader) {
22384 for local275 := range (*(*(struct {
22385 Pos100, Vel100 [3]int32
22386 Pitch100, Yaw100 int32
22389 WantedRange uint8 // in MapBlks.
22392 p := &((*(*(struct {
22393 Pos100, Vel100 [3]int32
22394 Pitch100, Yaw100 int32
22397 WantedRange uint8 // in MapBlks.
22398 }))(obj)).Pos100)[local275]
22399 *p = int32(read32(r))
22402 for local276 := range (*(*(struct {
22403 Pos100, Vel100 [3]int32
22404 Pitch100, Yaw100 int32
22407 WantedRange uint8 // in MapBlks.
22410 p := &((*(*(struct {
22411 Pos100, Vel100 [3]int32
22412 Pitch100, Yaw100 int32
22415 WantedRange uint8 // in MapBlks.
22416 }))(obj)).Vel100)[local276]
22417 *p = int32(read32(r))
22421 p := &(*(*(struct {
22422 Pos100, Vel100 [3]int32
22423 Pitch100, Yaw100 int32
22426 WantedRange uint8 // in MapBlks.
22428 *p = int32(read32(r))
22431 p := &(*(*(struct {
22432 Pos100, Vel100 [3]int32
22433 Pitch100, Yaw100 int32
22436 WantedRange uint8 // in MapBlks.
22438 *p = int32(read32(r))
22440 if err := pcall(func() {
22442 Pos100, Vel100 [3]int32
22443 Pitch100, Yaw100 int32
22446 WantedRange uint8 // in MapBlks.
22447 }))(obj)).Keys).deserialize(r)
22452 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Keys", err))
22455 p := &(*(*(struct {
22456 Pos100, Vel100 [3]int32
22457 Pitch100, Yaw100 int32
22460 WantedRange uint8 // in MapBlks.
22465 p := &(*(*(struct {
22466 Pos100, Vel100 [3]int32
22467 Pitch100, Yaw100 int32
22470 WantedRange uint8 // in MapBlks.
22471 }))(obj)).WantedRange
22476 func (obj *Interaction) serialize(w io.Writer) {
22478 x := *(*(uint8))(obj)
22479 write8(w, uint8(x))
22483 func (obj *Interaction) deserialize(r io.Reader) {
22485 p := &*(*(uint8))(obj)
22490 func (obj *SoundID) serialize(w io.Writer) {
22492 x := *(*(int32))(obj)
22493 write32(w, uint32(x))
22497 func (obj *SoundID) deserialize(r io.Reader) {
22499 p := &*(*(int32))(obj)
22500 *p = int32(read32(r))
22504 func (obj *Field) serialize(w io.Writer) {
22505 if len(([]byte((*(*(struct {
22510 }))(obj)).Name))) > math.MaxUint16 {
22514 x := uint16(len(([]byte((*(*(struct {
22520 write16(w, uint16(x))
22523 _, err := w.Write(([]byte((*(*(struct {
22528 }))(obj)).Name))[:])
22531 if len(([]byte((*(*(struct {
22536 }))(obj)).Value))) > math.MaxUint32 {
22540 x := uint32(len(([]byte((*(*(struct {
22545 }))(obj)).Value))))
22546 write32(w, uint32(x))
22549 _, err := w.Write(([]byte((*(*(struct {
22554 }))(obj)).Value))[:])
22559 func (obj *Field) deserialize(r io.Reader) {
22560 var local277 []uint8
22561 var local278 uint16
22566 (local277) = make([]uint8, local278)
22568 _, err := io.ReadFull(r, (local277)[:])
22576 }))(obj)).Name) = string(local277)
22577 var local279 []uint8
22578 var local280 uint32
22583 (local279) = make([]uint8, local280)
22585 _, err := io.ReadFull(r, (local279)[:])
22593 }))(obj)).Value) = string(local279)
22596 func (obj *AuthMethods) serialize(w io.Writer) {
22598 x := *(*(uint32))(obj)
22599 write32(w, uint32(x))
22603 func (obj *AuthMethods) deserialize(r io.Reader) {
22605 p := &*(*(uint32))(obj)
22610 func (obj *Pos) serialize(w io.Writer) {
22611 if err := pcall(func() {
22612 (*(*(Vec))(obj)).serialize(w)
22617 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
22621 func (obj *Pos) deserialize(r io.Reader) {
22622 if err := pcall(func() {
22623 (*(*(Vec))(obj)).deserialize(r)
22628 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
22632 func (obj *KickReason) serialize(w io.Writer) {
22634 x := *(*(uint8))(obj)
22635 write8(w, uint8(x))
22639 func (obj *KickReason) deserialize(r io.Reader) {
22641 p := &*(*(uint8))(obj)
22646 func (obj *MapBlk) serialize(w io.Writer) {
22647 if err := pcall(func() {
22650 LitFrom LitFromBlks
22653 Param0 [4096]Content
22657 NodeMetas map[uint16]*NodeMeta
22658 }))(obj)).Flags).serialize(w)
22663 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
22665 if err := pcall(func() {
22668 LitFrom LitFromBlks
22671 Param0 [4096]Content
22675 NodeMetas map[uint16]*NodeMeta
22676 }))(obj)).LitFrom).serialize(w)
22681 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
22684 local281 := uint8(2) // Size of param0 in bytes.
22687 write8(w, uint8(x))
22691 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22694 write8(w, uint8(x))
22698 w, err := zstd.NewWriter(w)
22700 for local283 := range (*(*(struct {
22702 LitFrom LitFromBlks
22705 Param0 [4096]Content
22709 NodeMetas map[uint16]*NodeMeta
22711 if err := pcall(func() {
22714 LitFrom LitFromBlks
22717 Param0 [4096]Content
22721 NodeMetas map[uint16]*NodeMeta
22722 }))(obj)).Param0)[local283]).serialize(w)
22727 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
22731 _, err := w.Write(((*(*(struct {
22733 LitFrom LitFromBlks
22736 Param0 [4096]Content
22740 NodeMetas map[uint16]*NodeMeta
22741 }))(obj)).Param1)[:])
22745 _, err := w.Write(((*(*(struct {
22747 LitFrom LitFromBlks
22750 Param0 [4096]Content
22754 NodeMetas map[uint16]*NodeMeta
22755 }))(obj)).Param2)[:])
22763 LitFrom LitFromBlks
22766 Param0 [4096]Content
22770 NodeMetas map[uint16]*NodeMeta
22771 }))(obj)).NodeMetas
22773 w := zlib.NewWriter(w)
22778 // len(map[uint16]...) always < math.MaxUint16
22779 write16(w, uint16(len(x)))
22780 keys := make([]uint16, 0, len(x))
22781 for key := range x {
22782 keys = append(keys, key)
22784 sort.Slice(keys, func(i, j int) bool {
22785 i2pos := func(i int) [3]int16 {
22786 return Blkpos2Pos([3]int16{}, keys[i])
22788 p, q := i2pos(i), i2pos(j)
22799 for _, key := range keys {
22801 chk(serialize(w, x[key]))
22808 local284 := uint8(2) // version
22811 write8(w, uint8(x))
22816 func (obj *MapBlk) deserialize(r io.Reader) {
22817 if err := pcall(func() {
22820 LitFrom LitFromBlks
22823 Param0 [4096]Content
22827 NodeMetas map[uint16]*NodeMeta
22828 }))(obj)).Flags).deserialize(r)
22833 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.MapBlkFlags", err))
22835 if err := pcall(func() {
22838 LitFrom LitFromBlks
22841 Param0 [4096]Content
22845 NodeMetas map[uint16]*NodeMeta
22846 }))(obj)).LitFrom).deserialize(r)
22851 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.LitFromBlks", err))
22855 local286 := uint8(2) // Size of param0 in bytes.
22860 if local285 != local286 {
22861 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local285))
22866 local288 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
22871 if local287 != local288 {
22872 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local287))
22876 r, err := zstd.NewReader(byteReader{r})
22878 for local289 := range (*(*(struct {
22880 LitFrom LitFromBlks
22883 Param0 [4096]Content
22887 NodeMetas map[uint16]*NodeMeta
22889 if err := pcall(func() {
22892 LitFrom LitFromBlks
22895 Param0 [4096]Content
22899 NodeMetas map[uint16]*NodeMeta
22900 }))(obj)).Param0)[local289]).deserialize(r)
22905 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
22909 _, err := io.ReadFull(r, ((*(*(struct {
22911 LitFrom LitFromBlks
22914 Param0 [4096]Content
22918 NodeMetas map[uint16]*NodeMeta
22919 }))(obj)).Param1)[:])
22923 _, err := io.ReadFull(r, ((*(*(struct {
22925 LitFrom LitFromBlks
22928 Param0 [4096]Content
22932 NodeMetas map[uint16]*NodeMeta
22933 }))(obj)).Param2)[:])
22939 p := &(*(*(struct {
22941 LitFrom LitFromBlks
22944 Param0 [4096]Content
22948 NodeMetas map[uint16]*NodeMeta
22949 }))(obj)).NodeMetas
22951 r, err := zlib.NewReader(byteReader{r})
22953 switch ver := read8(r); ver {
22958 *p = make(map[uint16]*NodeMeta, n)
22961 nm := new(NodeMeta)
22962 chk(deserialize(r, nm))
22966 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
22973 local291 := uint8(2) // version
22978 if local290 != local291 {
22979 chk(fmt.Errorf("const %v: %v", "uint8(2) // version", local290))
22984 func (obj *Node) serialize(w io.Writer) {
22985 if err := pcall(func() {
22988 Param1, Param2 uint8
22989 }))(obj)).Param0).serialize(w)
22994 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
22999 Param1, Param2 uint8
23001 write8(w, uint8(x))
23006 Param1, Param2 uint8
23008 write8(w, uint8(x))
23012 func (obj *Node) deserialize(r io.Reader) {
23013 if err := pcall(func() {
23016 Param1, Param2 uint8
23017 }))(obj)).Param0).deserialize(r)
23022 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Content", err))
23025 p := &(*(*(struct {
23027 Param1, Param2 uint8
23032 p := &(*(*(struct {
23034 Param1, Param2 uint8
23040 func (obj *CSMRestrictionFlags) serialize(w io.Writer) {
23042 x := *(*(uint64))(obj)
23043 write64(w, uint64(x))
23047 func (obj *CSMRestrictionFlags) deserialize(r io.Reader) {
23049 p := &*(*(uint64))(obj)
23054 func (obj *Vec) serialize(w io.Writer) {
23055 for local292 := range *(*([3]float32))(obj) {
23057 x := (*(*([3]float32))(obj))[local292]
23058 write32(w, math.Float32bits(x))
23063 func (obj *Vec) deserialize(r io.Reader) {
23064 for local293 := range *(*([3]float32))(obj) {
23066 p := &(*(*([3]float32))(obj))[local293]
23067 *p = math.Float32frombits(read32(r))
23072 func (obj *ChatMsgType) serialize(w io.Writer) {
23074 x := *(*(uint8))(obj)
23075 write8(w, uint8(x))
23079 func (obj *ChatMsgType) deserialize(r io.Reader) {
23081 p := &*(*(uint8))(obj)
23086 func (obj *AOID) serialize(w io.Writer) {
23088 x := *(*(uint16))(obj)
23089 write16(w, uint16(x))
23093 func (obj *AOID) deserialize(r io.Reader) {
23095 p := &*(*(uint16))(obj)
23100 func (obj *AOAdd) serialize(w io.Writer) {
23101 if err := pcall(func() {
23104 //mt:const genericCAO
23106 InitData AOInitData
23107 }))(obj)).ID).serialize(w)
23112 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23115 local294 := genericCAO
23116 if err := pcall(func() {
23117 (local294).serialize(w)
23122 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23127 w := new(bytes.Buffer)
23128 if err := pcall(func() {
23131 //mt:const genericCAO
23133 InitData AOInitData
23134 }))(obj)).InitData).serialize(w)
23139 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23144 if len((buf.Bytes())) > math.MaxUint32 {
23148 x := uint32(len((buf.Bytes())))
23149 write32(w, uint32(x))
23152 _, err := w.Write((buf.Bytes())[:])
23159 func (obj *AOAdd) deserialize(r io.Reader) {
23160 if err := pcall(func() {
23163 //mt:const genericCAO
23165 InitData AOInitData
23166 }))(obj)).ID).deserialize(r)
23171 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23174 var local295 aoType
23175 local296 := genericCAO
23176 if err := pcall(func() {
23177 (local295).deserialize(r)
23182 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.aoType", err))
23184 if local295 != local296 {
23185 chk(fmt.Errorf("const %v: %v", "genericCAO", local295))
23194 r := &io.LimitedReader{R: r, N: int64(n)}
23195 if err := pcall(func() {
23198 //mt:const genericCAO
23200 InitData AOInitData
23201 }))(obj)).InitData).deserialize(r)
23206 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOInitData", err))
23209 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23214 func (obj *IDAOMsg) serialize(w io.Writer) {
23215 if err := pcall(func() {
23220 }))(obj)).ID).serialize(w)
23225 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23229 w := new(bytes.Buffer)
23241 if len((buf.Bytes())) > math.MaxUint16 {
23245 x := uint16(len((buf.Bytes())))
23246 write16(w, uint16(x))
23249 _, err := w.Write((buf.Bytes())[:])
23256 func (obj *IDAOMsg) deserialize(r io.Reader) {
23257 if err := pcall(func() {
23262 }))(obj)).ID).deserialize(r)
23267 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
23275 r := &io.LimitedReader{R: r, N: int64(n)}
23277 p := &(*(*(struct {
23284 *p, err = readAOMsg(r)
23289 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23294 func (obj *ItemDef) serialize(w io.Writer) {
23297 w := new(bytes.Buffer)
23299 local297 := uint8(6)
23302 write8(w, uint8(x))
23305 if err := pcall(func() {
23311 InvImg, WieldImg Texture
23312 WieldScale [3]float32
23317 CanPointLiquids bool
23323 PlacePredict string
23325 PlaceSnd, PlaceFailSnd SoundDef
23329 // Set index in Palette with "palette_index" item meta field,
23330 // this overrides Color.
23334 // Texture overlays.
23335 InvOverlay, WieldOverlay Texture
23338 }))(obj)).Type).serialize(w)
23343 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
23345 if len(([]byte((*(*(struct {
23350 InvImg, WieldImg Texture
23351 WieldScale [3]float32
23356 CanPointLiquids bool
23362 PlacePredict string
23364 PlaceSnd, PlaceFailSnd SoundDef
23368 // Set index in Palette with "palette_index" item meta field,
23369 // this overrides Color.
23373 // Texture overlays.
23374 InvOverlay, WieldOverlay Texture
23377 }))(obj)).Name))) > math.MaxUint16 {
23381 x := uint16(len(([]byte((*(*(struct {
23386 InvImg, WieldImg Texture
23387 WieldScale [3]float32
23392 CanPointLiquids bool
23398 PlacePredict string
23400 PlaceSnd, PlaceFailSnd SoundDef
23404 // Set index in Palette with "palette_index" item meta field,
23405 // this overrides Color.
23409 // Texture overlays.
23410 InvOverlay, WieldOverlay Texture
23414 write16(w, uint16(x))
23417 _, err := w.Write(([]byte((*(*(struct {
23422 InvImg, WieldImg Texture
23423 WieldScale [3]float32
23428 CanPointLiquids bool
23434 PlacePredict string
23436 PlaceSnd, PlaceFailSnd SoundDef
23440 // Set index in Palette with "palette_index" item meta field,
23441 // this overrides Color.
23445 // Texture overlays.
23446 InvOverlay, WieldOverlay Texture
23449 }))(obj)).Name))[:])
23452 if len(([]byte((*(*(struct {
23457 InvImg, WieldImg Texture
23458 WieldScale [3]float32
23463 CanPointLiquids bool
23469 PlacePredict string
23471 PlaceSnd, PlaceFailSnd SoundDef
23475 // Set index in Palette with "palette_index" item meta field,
23476 // this overrides Color.
23480 // Texture overlays.
23481 InvOverlay, WieldOverlay Texture
23484 }))(obj)).Desc))) > math.MaxUint16 {
23488 x := uint16(len(([]byte((*(*(struct {
23493 InvImg, WieldImg Texture
23494 WieldScale [3]float32
23499 CanPointLiquids bool
23505 PlacePredict string
23507 PlaceSnd, PlaceFailSnd SoundDef
23511 // Set index in Palette with "palette_index" item meta field,
23512 // this overrides Color.
23516 // Texture overlays.
23517 InvOverlay, WieldOverlay Texture
23521 write16(w, uint16(x))
23524 _, err := w.Write(([]byte((*(*(struct {
23529 InvImg, WieldImg Texture
23530 WieldScale [3]float32
23535 CanPointLiquids bool
23541 PlacePredict string
23543 PlaceSnd, PlaceFailSnd SoundDef
23547 // Set index in Palette with "palette_index" item meta field,
23548 // this overrides Color.
23552 // Texture overlays.
23553 InvOverlay, WieldOverlay Texture
23556 }))(obj)).Desc))[:])
23559 if err := pcall(func() {
23565 InvImg, WieldImg Texture
23566 WieldScale [3]float32
23571 CanPointLiquids bool
23577 PlacePredict string
23579 PlaceSnd, PlaceFailSnd SoundDef
23583 // Set index in Palette with "palette_index" item meta field,
23584 // this overrides Color.
23588 // Texture overlays.
23589 InvOverlay, WieldOverlay Texture
23592 }))(obj)).InvImg).serialize(w)
23597 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
23599 if err := pcall(func() {
23605 InvImg, WieldImg Texture
23606 WieldScale [3]float32
23611 CanPointLiquids bool
23617 PlacePredict string
23619 PlaceSnd, PlaceFailSnd SoundDef
23623 // Set index in Palette with "palette_index" item meta field,
23624 // this overrides Color.
23628 // Texture overlays.
23629 InvOverlay, WieldOverlay Texture
23632 }))(obj)).WieldImg).serialize(w)
23637 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
23639 for local298 := range (*(*(struct {
23644 InvImg, WieldImg Texture
23645 WieldScale [3]float32
23650 CanPointLiquids bool
23656 PlacePredict string
23658 PlaceSnd, PlaceFailSnd SoundDef
23662 // Set index in Palette with "palette_index" item meta field,
23663 // this overrides Color.
23667 // Texture overlays.
23668 InvOverlay, WieldOverlay Texture
23671 }))(obj)).WieldScale {
23673 x := ((*(*(struct {
23678 InvImg, WieldImg Texture
23679 WieldScale [3]float32
23684 CanPointLiquids bool
23690 PlacePredict string
23692 PlaceSnd, PlaceFailSnd SoundDef
23696 // Set index in Palette with "palette_index" item meta field,
23697 // this overrides Color.
23701 // Texture overlays.
23702 InvOverlay, WieldOverlay Texture
23705 }))(obj)).WieldScale)[local298]
23706 write32(w, math.Float32bits(x))
23715 InvImg, WieldImg Texture
23716 WieldScale [3]float32
23721 CanPointLiquids bool
23727 PlacePredict string
23729 PlaceSnd, PlaceFailSnd SoundDef
23733 // Set index in Palette with "palette_index" item meta field,
23734 // this overrides Color.
23738 // Texture overlays.
23739 InvOverlay, WieldOverlay Texture
23743 write16(w, uint16(x))
23751 InvImg, WieldImg Texture
23752 WieldScale [3]float32
23757 CanPointLiquids bool
23763 PlacePredict string
23765 PlaceSnd, PlaceFailSnd SoundDef
23769 // Set index in Palette with "palette_index" item meta field,
23770 // this overrides Color.
23774 // Texture overlays.
23775 InvOverlay, WieldOverlay Texture
23791 InvImg, WieldImg Texture
23792 WieldScale [3]float32
23797 CanPointLiquids bool
23803 PlacePredict string
23805 PlaceSnd, PlaceFailSnd SoundDef
23809 // Set index in Palette with "palette_index" item meta field,
23810 // this overrides Color.
23814 // Texture overlays.
23815 InvOverlay, WieldOverlay Texture
23818 }))(obj)).CanPointLiquids
23825 if err := pcall(func() {
23831 InvImg, WieldImg Texture
23832 WieldScale [3]float32
23837 CanPointLiquids bool
23843 PlacePredict string
23845 PlaceSnd, PlaceFailSnd SoundDef
23849 // Set index in Palette with "palette_index" item meta field,
23850 // this overrides Color.
23854 // Texture overlays.
23855 InvOverlay, WieldOverlay Texture
23858 }))(obj)).ToolCaps).serialize(w)
23863 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
23865 if len(((*(*(struct {
23870 InvImg, WieldImg Texture
23871 WieldScale [3]float32
23876 CanPointLiquids bool
23882 PlacePredict string
23884 PlaceSnd, PlaceFailSnd SoundDef
23888 // Set index in Palette with "palette_index" item meta field,
23889 // this overrides Color.
23893 // Texture overlays.
23894 InvOverlay, WieldOverlay Texture
23897 }))(obj)).Groups)) > math.MaxUint16 {
23901 x := uint16(len(((*(*(struct {
23906 InvImg, WieldImg Texture
23907 WieldScale [3]float32
23912 CanPointLiquids bool
23918 PlacePredict string
23920 PlaceSnd, PlaceFailSnd SoundDef
23924 // Set index in Palette with "palette_index" item meta field,
23925 // this overrides Color.
23929 // Texture overlays.
23930 InvOverlay, WieldOverlay Texture
23933 }))(obj)).Groups)))
23934 write16(w, uint16(x))
23936 for local299 := range (*(*(struct {
23941 InvImg, WieldImg Texture
23942 WieldScale [3]float32
23947 CanPointLiquids bool
23953 PlacePredict string
23955 PlaceSnd, PlaceFailSnd SoundDef
23959 // Set index in Palette with "palette_index" item meta field,
23960 // this overrides Color.
23964 // Texture overlays.
23965 InvOverlay, WieldOverlay Texture
23969 if err := pcall(func() {
23975 InvImg, WieldImg Texture
23976 WieldScale [3]float32
23981 CanPointLiquids bool
23987 PlacePredict string
23989 PlaceSnd, PlaceFailSnd SoundDef
23993 // Set index in Palette with "palette_index" item meta field,
23994 // this overrides Color.
23998 // Texture overlays.
23999 InvOverlay, WieldOverlay Texture
24002 }))(obj)).Groups)[local299]).serialize(w)
24007 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
24010 if len(([]byte((*(*(struct {
24015 InvImg, WieldImg Texture
24016 WieldScale [3]float32
24021 CanPointLiquids bool
24027 PlacePredict string
24029 PlaceSnd, PlaceFailSnd SoundDef
24033 // Set index in Palette with "palette_index" item meta field,
24034 // this overrides Color.
24038 // Texture overlays.
24039 InvOverlay, WieldOverlay Texture
24042 }))(obj)).PlacePredict))) > math.MaxUint16 {
24046 x := uint16(len(([]byte((*(*(struct {
24051 InvImg, WieldImg Texture
24052 WieldScale [3]float32
24057 CanPointLiquids bool
24063 PlacePredict string
24065 PlaceSnd, PlaceFailSnd SoundDef
24069 // Set index in Palette with "palette_index" item meta field,
24070 // this overrides Color.
24074 // Texture overlays.
24075 InvOverlay, WieldOverlay Texture
24078 }))(obj)).PlacePredict))))
24079 write16(w, uint16(x))
24082 _, err := w.Write(([]byte((*(*(struct {
24087 InvImg, WieldImg Texture
24088 WieldScale [3]float32
24093 CanPointLiquids bool
24099 PlacePredict string
24101 PlaceSnd, PlaceFailSnd SoundDef
24105 // Set index in Palette with "palette_index" item meta field,
24106 // this overrides Color.
24110 // Texture overlays.
24111 InvOverlay, WieldOverlay Texture
24114 }))(obj)).PlacePredict))[:])
24117 if err := pcall(func() {
24123 InvImg, WieldImg Texture
24124 WieldScale [3]float32
24129 CanPointLiquids bool
24135 PlacePredict string
24137 PlaceSnd, PlaceFailSnd SoundDef
24141 // Set index in Palette with "palette_index" item meta field,
24142 // this overrides Color.
24146 // Texture overlays.
24147 InvOverlay, WieldOverlay Texture
24150 }))(obj)).PlaceSnd).serialize(w)
24155 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24157 if err := pcall(func() {
24163 InvImg, WieldImg Texture
24164 WieldScale [3]float32
24169 CanPointLiquids bool
24175 PlacePredict string
24177 PlaceSnd, PlaceFailSnd SoundDef
24181 // Set index in Palette with "palette_index" item meta field,
24182 // this overrides Color.
24186 // Texture overlays.
24187 InvOverlay, WieldOverlay Texture
24190 }))(obj)).PlaceFailSnd).serialize(w)
24195 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
24203 InvImg, WieldImg Texture
24204 WieldScale [3]float32
24209 CanPointLiquids bool
24215 PlacePredict string
24217 PlaceSnd, PlaceFailSnd SoundDef
24221 // Set index in Palette with "palette_index" item meta field,
24222 // this overrides Color.
24226 // Texture overlays.
24227 InvOverlay, WieldOverlay Texture
24230 }))(obj)).PointRange
24231 write32(w, math.Float32bits(x))
24233 if err := pcall(func() {
24239 InvImg, WieldImg Texture
24240 WieldScale [3]float32
24245 CanPointLiquids bool
24251 PlacePredict string
24253 PlaceSnd, PlaceFailSnd SoundDef
24257 // Set index in Palette with "palette_index" item meta field,
24258 // this overrides Color.
24262 // Texture overlays.
24263 InvOverlay, WieldOverlay Texture
24266 }))(obj)).Palette).serialize(w)
24271 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24279 InvImg, WieldImg Texture
24280 WieldScale [3]float32
24285 CanPointLiquids bool
24291 PlacePredict string
24293 PlaceSnd, PlaceFailSnd SoundDef
24297 // Set index in Palette with "palette_index" item meta field,
24298 // this overrides Color.
24302 // Texture overlays.
24303 InvOverlay, WieldOverlay Texture
24307 w.Write([]byte{x.A, x.R, x.G, x.B})
24309 if err := pcall(func() {
24315 InvImg, WieldImg Texture
24316 WieldScale [3]float32
24321 CanPointLiquids bool
24327 PlacePredict string
24329 PlaceSnd, PlaceFailSnd SoundDef
24333 // Set index in Palette with "palette_index" item meta field,
24334 // this overrides Color.
24338 // Texture overlays.
24339 InvOverlay, WieldOverlay Texture
24342 }))(obj)).InvOverlay).serialize(w)
24347 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24349 if err := pcall(func() {
24355 InvImg, WieldImg Texture
24356 WieldScale [3]float32
24361 CanPointLiquids bool
24367 PlacePredict string
24369 PlaceSnd, PlaceFailSnd SoundDef
24373 // Set index in Palette with "palette_index" item meta field,
24374 // this overrides Color.
24378 // Texture overlays.
24379 InvOverlay, WieldOverlay Texture
24382 }))(obj)).WieldOverlay).serialize(w)
24387 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24389 if len(([]byte((*(*(struct {
24394 InvImg, WieldImg Texture
24395 WieldScale [3]float32
24400 CanPointLiquids bool
24406 PlacePredict string
24408 PlaceSnd, PlaceFailSnd SoundDef
24412 // Set index in Palette with "palette_index" item meta field,
24413 // this overrides Color.
24417 // Texture overlays.
24418 InvOverlay, WieldOverlay Texture
24421 }))(obj)).ShortDesc))) > math.MaxUint16 {
24425 x := uint16(len(([]byte((*(*(struct {
24430 InvImg, WieldImg Texture
24431 WieldScale [3]float32
24436 CanPointLiquids bool
24442 PlacePredict string
24444 PlaceSnd, PlaceFailSnd SoundDef
24448 // Set index in Palette with "palette_index" item meta field,
24449 // this overrides Color.
24453 // Texture overlays.
24454 InvOverlay, WieldOverlay Texture
24457 }))(obj)).ShortDesc))))
24458 write16(w, uint16(x))
24461 _, err := w.Write(([]byte((*(*(struct {
24466 InvImg, WieldImg Texture
24467 WieldScale [3]float32
24472 CanPointLiquids bool
24478 PlacePredict string
24480 PlaceSnd, PlaceFailSnd SoundDef
24484 // Set index in Palette with "palette_index" item meta field,
24485 // this overrides Color.
24489 // Texture overlays.
24490 InvOverlay, WieldOverlay Texture
24493 }))(obj)).ShortDesc))[:])
24499 if len((buf.Bytes())) > math.MaxUint16 {
24503 x := uint16(len((buf.Bytes())))
24504 write16(w, uint16(x))
24507 _, err := w.Write((buf.Bytes())[:])
24514 func (obj *ItemDef) deserialize(r io.Reader) {
24521 r := &io.LimitedReader{R: r, N: int64(n)}
24524 local301 := uint8(6)
24529 if local300 != local301 {
24530 chk(fmt.Errorf("const %v: %v", "uint8(6)", local300))
24533 if err := pcall(func() {
24539 InvImg, WieldImg Texture
24540 WieldScale [3]float32
24545 CanPointLiquids bool
24551 PlacePredict string
24553 PlaceSnd, PlaceFailSnd SoundDef
24557 // Set index in Palette with "palette_index" item meta field,
24558 // this overrides Color.
24562 // Texture overlays.
24563 InvOverlay, WieldOverlay Texture
24566 }))(obj)).Type).deserialize(r)
24571 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ItemType", err))
24573 var local302 []uint8
24574 var local303 uint16
24579 (local302) = make([]uint8, local303)
24581 _, err := io.ReadFull(r, (local302)[:])
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)).Name) = string(local302)
24617 var local304 []uint8
24618 var local305 uint16
24623 (local304) = make([]uint8, local305)
24625 _, err := io.ReadFull(r, (local304)[:])
24633 InvImg, WieldImg Texture
24634 WieldScale [3]float32
24639 CanPointLiquids bool
24645 PlacePredict string
24647 PlaceSnd, PlaceFailSnd SoundDef
24651 // Set index in Palette with "palette_index" item meta field,
24652 // this overrides Color.
24656 // Texture overlays.
24657 InvOverlay, WieldOverlay Texture
24660 }))(obj)).Desc) = string(local304)
24661 if err := pcall(func() {
24667 InvImg, WieldImg Texture
24668 WieldScale [3]float32
24673 CanPointLiquids bool
24679 PlacePredict string
24681 PlaceSnd, PlaceFailSnd SoundDef
24685 // Set index in Palette with "palette_index" item meta field,
24686 // this overrides Color.
24690 // Texture overlays.
24691 InvOverlay, WieldOverlay Texture
24694 }))(obj)).InvImg).deserialize(r)
24699 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24701 if err := pcall(func() {
24707 InvImg, WieldImg Texture
24708 WieldScale [3]float32
24713 CanPointLiquids bool
24719 PlacePredict string
24721 PlaceSnd, PlaceFailSnd SoundDef
24725 // Set index in Palette with "palette_index" item meta field,
24726 // this overrides Color.
24730 // Texture overlays.
24731 InvOverlay, WieldOverlay Texture
24734 }))(obj)).WieldImg).deserialize(r)
24739 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
24741 for local306 := range (*(*(struct {
24746 InvImg, WieldImg Texture
24747 WieldScale [3]float32
24752 CanPointLiquids bool
24758 PlacePredict string
24760 PlaceSnd, PlaceFailSnd SoundDef
24764 // Set index in Palette with "palette_index" item meta field,
24765 // this overrides Color.
24769 // Texture overlays.
24770 InvOverlay, WieldOverlay Texture
24773 }))(obj)).WieldScale {
24775 p := &((*(*(struct {
24780 InvImg, WieldImg Texture
24781 WieldScale [3]float32
24786 CanPointLiquids bool
24792 PlacePredict string
24794 PlaceSnd, PlaceFailSnd SoundDef
24798 // Set index in Palette with "palette_index" item meta field,
24799 // this overrides Color.
24803 // Texture overlays.
24804 InvOverlay, WieldOverlay Texture
24807 }))(obj)).WieldScale)[local306]
24808 *p = math.Float32frombits(read32(r))
24812 p := &(*(*(struct {
24817 InvImg, WieldImg Texture
24818 WieldScale [3]float32
24823 CanPointLiquids bool
24829 PlacePredict string
24831 PlaceSnd, PlaceFailSnd SoundDef
24835 // Set index in Palette with "palette_index" item meta field,
24836 // this overrides Color.
24840 // Texture overlays.
24841 InvOverlay, WieldOverlay Texture
24848 p := &(*(*(struct {
24853 InvImg, WieldImg Texture
24854 WieldScale [3]float32
24859 CanPointLiquids bool
24865 PlacePredict string
24867 PlaceSnd, PlaceFailSnd SoundDef
24871 // Set index in Palette with "palette_index" item meta field,
24872 // this overrides Color.
24876 // Texture overlays.
24877 InvOverlay, WieldOverlay Texture
24881 switch n := read8(r); n {
24887 chk(fmt.Errorf("invalid bool: %d", n))
24891 p := &(*(*(struct {
24896 InvImg, WieldImg Texture
24897 WieldScale [3]float32
24902 CanPointLiquids bool
24908 PlacePredict string
24910 PlaceSnd, PlaceFailSnd SoundDef
24914 // Set index in Palette with "palette_index" item meta field,
24915 // this overrides Color.
24919 // Texture overlays.
24920 InvOverlay, WieldOverlay Texture
24923 }))(obj)).CanPointLiquids
24924 switch n := read8(r); n {
24930 chk(fmt.Errorf("invalid bool: %d", n))
24933 if err := pcall(func() {
24939 InvImg, WieldImg Texture
24940 WieldScale [3]float32
24945 CanPointLiquids bool
24951 PlacePredict string
24953 PlaceSnd, PlaceFailSnd SoundDef
24957 // Set index in Palette with "palette_index" item meta field,
24958 // this overrides Color.
24962 // Texture overlays.
24963 InvOverlay, WieldOverlay Texture
24966 }))(obj)).ToolCaps).deserialize(r)
24971 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolCaps", err))
24973 var local307 uint16
24983 InvImg, WieldImg Texture
24984 WieldScale [3]float32
24989 CanPointLiquids bool
24995 PlacePredict string
24997 PlaceSnd, PlaceFailSnd SoundDef
25001 // Set index in Palette with "palette_index" item meta field,
25002 // this overrides Color.
25006 // Texture overlays.
25007 InvOverlay, WieldOverlay Texture
25010 }))(obj)).Groups) = make([]Group, local307)
25011 for local308 := range (*(*(struct {
25016 InvImg, WieldImg Texture
25017 WieldScale [3]float32
25022 CanPointLiquids bool
25028 PlacePredict string
25030 PlaceSnd, PlaceFailSnd SoundDef
25034 // Set index in Palette with "palette_index" item meta field,
25035 // this overrides Color.
25039 // Texture overlays.
25040 InvOverlay, WieldOverlay Texture
25044 if err := pcall(func() {
25050 InvImg, WieldImg Texture
25051 WieldScale [3]float32
25056 CanPointLiquids bool
25062 PlacePredict string
25064 PlaceSnd, PlaceFailSnd SoundDef
25068 // Set index in Palette with "palette_index" item meta field,
25069 // this overrides Color.
25073 // Texture overlays.
25074 InvOverlay, WieldOverlay Texture
25077 }))(obj)).Groups)[local308]).deserialize(r)
25082 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
25085 var local309 []uint8
25086 var local310 uint16
25091 (local309) = make([]uint8, local310)
25093 _, err := io.ReadFull(r, (local309)[:])
25101 InvImg, WieldImg Texture
25102 WieldScale [3]float32
25107 CanPointLiquids bool
25113 PlacePredict string
25115 PlaceSnd, PlaceFailSnd SoundDef
25119 // Set index in Palette with "palette_index" item meta field,
25120 // this overrides Color.
25124 // Texture overlays.
25125 InvOverlay, WieldOverlay Texture
25128 }))(obj)).PlacePredict) = string(local309)
25129 if err := pcall(func() {
25135 InvImg, WieldImg Texture
25136 WieldScale [3]float32
25141 CanPointLiquids bool
25147 PlacePredict string
25149 PlaceSnd, PlaceFailSnd SoundDef
25153 // Set index in Palette with "palette_index" item meta field,
25154 // this overrides Color.
25158 // Texture overlays.
25159 InvOverlay, WieldOverlay Texture
25162 }))(obj)).PlaceSnd).deserialize(r)
25167 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25169 if err := pcall(func() {
25175 InvImg, WieldImg Texture
25176 WieldScale [3]float32
25181 CanPointLiquids bool
25187 PlacePredict string
25189 PlaceSnd, PlaceFailSnd SoundDef
25193 // Set index in Palette with "palette_index" item meta field,
25194 // this overrides Color.
25198 // Texture overlays.
25199 InvOverlay, WieldOverlay Texture
25202 }))(obj)).PlaceFailSnd).deserialize(r)
25207 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.SoundDef", err))
25210 p := &(*(*(struct {
25215 InvImg, WieldImg Texture
25216 WieldScale [3]float32
25221 CanPointLiquids bool
25227 PlacePredict string
25229 PlaceSnd, PlaceFailSnd SoundDef
25233 // Set index in Palette with "palette_index" item meta field,
25234 // this overrides Color.
25238 // Texture overlays.
25239 InvOverlay, WieldOverlay Texture
25242 }))(obj)).PointRange
25243 *p = math.Float32frombits(read32(r))
25245 if err := pcall(func() {
25251 InvImg, WieldImg Texture
25252 WieldScale [3]float32
25257 CanPointLiquids bool
25263 PlacePredict string
25265 PlaceSnd, PlaceFailSnd SoundDef
25269 // Set index in Palette with "palette_index" item meta field,
25270 // this overrides Color.
25274 // Texture overlays.
25275 InvOverlay, WieldOverlay Texture
25278 }))(obj)).Palette).deserialize(r)
25283 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25286 p := &(*(*(struct {
25291 InvImg, WieldImg Texture
25292 WieldScale [3]float32
25297 CanPointLiquids bool
25303 PlacePredict string
25305 PlaceSnd, PlaceFailSnd SoundDef
25309 // Set index in Palette with "palette_index" item meta field,
25310 // this overrides Color.
25314 // Texture overlays.
25315 InvOverlay, WieldOverlay Texture
25319 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
25321 if err := pcall(func() {
25327 InvImg, WieldImg Texture
25328 WieldScale [3]float32
25333 CanPointLiquids bool
25339 PlacePredict string
25341 PlaceSnd, PlaceFailSnd SoundDef
25345 // Set index in Palette with "palette_index" item meta field,
25346 // this overrides Color.
25350 // Texture overlays.
25351 InvOverlay, WieldOverlay Texture
25354 }))(obj)).InvOverlay).deserialize(r)
25359 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25361 if err := pcall(func() {
25367 InvImg, WieldImg Texture
25368 WieldScale [3]float32
25373 CanPointLiquids bool
25379 PlacePredict string
25381 PlaceSnd, PlaceFailSnd SoundDef
25385 // Set index in Palette with "palette_index" item meta field,
25386 // this overrides Color.
25390 // Texture overlays.
25391 InvOverlay, WieldOverlay Texture
25394 }))(obj)).WieldOverlay).deserialize(r)
25399 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
25401 var local311 []uint8
25402 var local312 uint16
25407 (local311) = make([]uint8, local312)
25409 _, err := io.ReadFull(r, (local311)[:])
25417 InvImg, WieldImg Texture
25418 WieldScale [3]float32
25423 CanPointLiquids bool
25429 PlacePredict string
25431 PlaceSnd, PlaceFailSnd SoundDef
25435 // Set index in Palette with "palette_index" item meta field,
25436 // this overrides Color.
25440 // Texture overlays.
25441 InvOverlay, WieldOverlay Texture
25444 }))(obj)).ShortDesc) = string(local311)
25446 chk(fmt.Errorf("%d bytes of trailing data", r.N))
25451 func (obj *SoundSrcType) serialize(w io.Writer) {
25453 x := *(*(uint8))(obj)
25454 write8(w, uint8(x))
25458 func (obj *SoundSrcType) deserialize(r io.Reader) {
25460 p := &*(*(uint8))(obj)
25465 func (obj *TileAnim) serialize(w io.Writer) {
25466 if err := pcall(func() {
25470 //mt:if %s.Type == SpriteSheetAnim
25471 AspectRatio [2]uint8
25473 //mt:if %s.Type == VerticalFrameAnim
25476 //mt:if %s.Type != NoAnim
25477 Duration float32 // in seconds
25479 }))(obj)).Type).serialize(w)
25484 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
25489 //mt:if %s.Type == SpriteSheetAnim
25490 AspectRatio [2]uint8
25492 //mt:if %s.Type == VerticalFrameAnim
25495 //mt:if %s.Type != NoAnim
25496 Duration float32 // in seconds
25498 }))(obj)).Type < maxAnim) {
25499 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25504 //mt:if %s.Type == SpriteSheetAnim
25505 AspectRatio [2]uint8
25507 //mt:if %s.Type == VerticalFrameAnim
25510 //mt:if %s.Type != NoAnim
25511 Duration float32 // in seconds
25513 }))(obj)).Type == SpriteSheetAnim {
25515 _, err := w.Write(((*(*(struct {
25518 //mt:if %s.Type == SpriteSheetAnim
25519 AspectRatio [2]uint8
25521 //mt:if %s.Type == VerticalFrameAnim
25524 //mt:if %s.Type != NoAnim
25525 Duration float32 // in seconds
25527 }))(obj)).AspectRatio)[:])
25534 //mt:if %s.Type == SpriteSheetAnim
25535 AspectRatio [2]uint8
25537 //mt:if %s.Type == VerticalFrameAnim
25540 //mt:if %s.Type != NoAnim
25541 Duration float32 // in seconds
25543 }))(obj)).Type == VerticalFrameAnim {
25544 for local313 := range (*(*(struct {
25547 //mt:if %s.Type == SpriteSheetAnim
25548 AspectRatio [2]uint8
25550 //mt:if %s.Type == VerticalFrameAnim
25553 //mt:if %s.Type != NoAnim
25554 Duration float32 // in seconds
25556 }))(obj)).NFrames {
25558 x := ((*(*(struct {
25561 //mt:if %s.Type == SpriteSheetAnim
25562 AspectRatio [2]uint8
25564 //mt:if %s.Type == VerticalFrameAnim
25567 //mt:if %s.Type != NoAnim
25568 Duration float32 // in seconds
25570 }))(obj)).NFrames)[local313]
25571 write16(w, uint16(x))
25578 //mt:if %s.Type == SpriteSheetAnim
25579 AspectRatio [2]uint8
25581 //mt:if %s.Type == VerticalFrameAnim
25584 //mt:if %s.Type != NoAnim
25585 Duration float32 // in seconds
25587 }))(obj)).Type != NoAnim {
25592 //mt:if %s.Type == SpriteSheetAnim
25593 AspectRatio [2]uint8
25595 //mt:if %s.Type == VerticalFrameAnim
25598 //mt:if %s.Type != NoAnim
25599 Duration float32 // in seconds
25602 write32(w, math.Float32bits(x))
25607 func (obj *TileAnim) deserialize(r io.Reader) {
25608 if err := pcall(func() {
25612 //mt:if %s.Type == SpriteSheetAnim
25613 AspectRatio [2]uint8
25615 //mt:if %s.Type == VerticalFrameAnim
25618 //mt:if %s.Type != NoAnim
25619 Duration float32 // in seconds
25621 }))(obj)).Type).deserialize(r)
25626 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AnimType", err))
25631 //mt:if %s.Type == SpriteSheetAnim
25632 AspectRatio [2]uint8
25634 //mt:if %s.Type == VerticalFrameAnim
25637 //mt:if %s.Type != NoAnim
25638 Duration float32 // in seconds
25640 }))(obj)).Type < maxAnim) {
25641 chk(errors.New("assertion failed: %s.Type < maxAnim"))
25646 //mt:if %s.Type == SpriteSheetAnim
25647 AspectRatio [2]uint8
25649 //mt:if %s.Type == VerticalFrameAnim
25652 //mt:if %s.Type != NoAnim
25653 Duration float32 // in seconds
25655 }))(obj)).Type == SpriteSheetAnim {
25657 _, err := io.ReadFull(r, ((*(*(struct {
25660 //mt:if %s.Type == SpriteSheetAnim
25661 AspectRatio [2]uint8
25663 //mt:if %s.Type == VerticalFrameAnim
25666 //mt:if %s.Type != NoAnim
25667 Duration float32 // in seconds
25669 }))(obj)).AspectRatio)[:])
25676 //mt:if %s.Type == SpriteSheetAnim
25677 AspectRatio [2]uint8
25679 //mt:if %s.Type == VerticalFrameAnim
25682 //mt:if %s.Type != NoAnim
25683 Duration float32 // in seconds
25685 }))(obj)).Type == VerticalFrameAnim {
25686 for local314 := range (*(*(struct {
25689 //mt:if %s.Type == SpriteSheetAnim
25690 AspectRatio [2]uint8
25692 //mt:if %s.Type == VerticalFrameAnim
25695 //mt:if %s.Type != NoAnim
25696 Duration float32 // in seconds
25698 }))(obj)).NFrames {
25700 p := &((*(*(struct {
25703 //mt:if %s.Type == SpriteSheetAnim
25704 AspectRatio [2]uint8
25706 //mt:if %s.Type == VerticalFrameAnim
25709 //mt:if %s.Type != NoAnim
25710 Duration float32 // in seconds
25712 }))(obj)).NFrames)[local314]
25720 //mt:if %s.Type == SpriteSheetAnim
25721 AspectRatio [2]uint8
25723 //mt:if %s.Type == VerticalFrameAnim
25726 //mt:if %s.Type != NoAnim
25727 Duration float32 // in seconds
25729 }))(obj)).Type != NoAnim {
25731 p := &(*(*(struct {
25734 //mt:if %s.Type == SpriteSheetAnim
25735 AspectRatio [2]uint8
25737 //mt:if %s.Type == VerticalFrameAnim
25740 //mt:if %s.Type != NoAnim
25741 Duration float32 // in seconds
25744 *p = math.Float32frombits(read32(r))
25749 func (obj *Content) serialize(w io.Writer) {
25751 x := *(*(uint16))(obj)
25752 write16(w, uint16(x))
25756 func (obj *Content) deserialize(r io.Reader) {
25758 p := &*(*(uint16))(obj)
25763 func (obj *ParticleSpawnerID) serialize(w io.Writer) {
25765 x := *(*(uint32))(obj)
25766 write32(w, uint32(x))
25770 func (obj *ParticleSpawnerID) deserialize(r io.Reader) {
25772 p := &*(*(uint32))(obj)
25777 func (obj *HUDID) serialize(w io.Writer) {
25779 x := *(*(uint32))(obj)
25780 write32(w, uint32(x))
25784 func (obj *HUDID) deserialize(r io.Reader) {
25786 p := &*(*(uint32))(obj)
25791 func (obj *HUD) serialize(w io.Writer) {
25792 if err := pcall(func() {
25809 }))(obj)).Type).serialize(w)
25814 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
25816 for local315 := range (*(*(struct {
25834 x := ((*(*(struct {
25850 }))(obj)).Pos)[local315]
25851 write32(w, math.Float32bits(x))
25854 if len(([]byte((*(*(struct {
25870 }))(obj)).Name))) > math.MaxUint16 {
25874 x := uint16(len(([]byte((*(*(struct {
25891 write16(w, uint16(x))
25894 _, err := w.Write(([]byte((*(*(struct {
25910 }))(obj)).Name))[:])
25913 for local316 := range (*(*(struct {
25931 x := ((*(*(struct {
25947 }))(obj)).Scale)[local316]
25948 write32(w, math.Float32bits(x))
25951 if len(([]byte((*(*(struct {
25967 }))(obj)).Text))) > math.MaxUint16 {
25971 x := uint16(len(([]byte((*(*(struct {
25988 write16(w, uint16(x))
25991 _, err := w.Write(([]byte((*(*(struct {
26007 }))(obj)).Text))[:])
26028 write32(w, uint32(x))
26048 write32(w, uint32(x))
26068 write32(w, uint32(x))
26070 for local317 := range (*(*(struct {
26088 x := ((*(*(struct {
26104 }))(obj)).Align)[local317]
26105 write32(w, math.Float32bits(x))
26108 for local318 := range (*(*(struct {
26126 x := ((*(*(struct {
26142 }))(obj)).Offset)[local318]
26143 write32(w, math.Float32bits(x))
26146 if err := pcall(func() {
26163 }))(obj)).WorldPos).serialize(w)
26168 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
26170 for local319 := range (*(*(struct {
26188 x := ((*(*(struct {
26204 }))(obj)).Size)[local319]
26205 write32(w, uint32(x))
26226 write16(w, uint16(x))
26228 if len(([]byte((*(*(struct {
26244 }))(obj)).Text2))) > math.MaxUint16 {
26248 x := uint16(len(([]byte((*(*(struct {
26264 }))(obj)).Text2))))
26265 write16(w, uint16(x))
26268 _, err := w.Write(([]byte((*(*(struct {
26284 }))(obj)).Text2))[:])
26289 func (obj *HUD) deserialize(r io.Reader) {
26290 if err := pcall(func() {
26307 }))(obj)).Type).deserialize(r)
26312 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.HUDType", err))
26314 for local320 := range (*(*(struct {
26332 p := &((*(*(struct {
26348 }))(obj)).Pos)[local320]
26349 *p = math.Float32frombits(read32(r))
26352 var local321 []uint8
26353 var local322 uint16
26358 (local321) = make([]uint8, local322)
26360 _, err := io.ReadFull(r, (local321)[:])
26379 }))(obj)).Name) = string(local321)
26380 for local323 := range (*(*(struct {
26398 p := &((*(*(struct {
26414 }))(obj)).Scale)[local323]
26415 *p = math.Float32frombits(read32(r))
26418 var local324 []uint8
26419 var local325 uint16
26424 (local324) = make([]uint8, local325)
26426 _, err := io.ReadFull(r, (local324)[:])
26445 }))(obj)).Text) = string(local324)
26447 p := &(*(*(struct {
26467 p := &(*(*(struct {
26487 p := &(*(*(struct {
26506 for local326 := range (*(*(struct {
26524 p := &((*(*(struct {
26540 }))(obj)).Align)[local326]
26541 *p = math.Float32frombits(read32(r))
26544 for local327 := range (*(*(struct {
26562 p := &((*(*(struct {
26578 }))(obj)).Offset)[local327]
26579 *p = math.Float32frombits(read32(r))
26582 if err := pcall(func() {
26599 }))(obj)).WorldPos).deserialize(r)
26604 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
26606 for local328 := range (*(*(struct {
26624 p := &((*(*(struct {
26640 }))(obj)).Size)[local328]
26641 *p = int32(read32(r))
26645 p := &(*(*(struct {
26662 *p = int16(read16(r))
26664 var local329 []uint8
26665 var local330 uint16
26670 (local329) = make([]uint8, local330)
26672 _, err := io.ReadFull(r, (local329)[:])
26691 }))(obj)).Text2) = string(local329)
26694 func (obj *HUDField) serialize(w io.Writer) {
26696 x := *(*(uint8))(obj)
26697 write8(w, uint8(x))
26701 func (obj *HUDField) deserialize(r io.Reader) {
26703 p := &*(*(uint8))(obj)
26708 func (obj *HUDFlags) serialize(w io.Writer) {
26710 x := *(*(uint32))(obj)
26711 write32(w, uint32(x))
26715 func (obj *HUDFlags) deserialize(r io.Reader) {
26717 p := &*(*(uint32))(obj)
26722 func (obj *HotbarParam) serialize(w io.Writer) {
26724 x := *(*(uint16))(obj)
26725 write16(w, uint16(x))
26729 func (obj *HotbarParam) deserialize(r io.Reader) {
26731 p := &*(*(uint16))(obj)
26736 func (obj *Texture) serialize(w io.Writer) {
26737 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
26741 x := uint16(len(([]byte(*(*(string))(obj)))))
26742 write16(w, uint16(x))
26745 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
26750 func (obj *Texture) deserialize(r io.Reader) {
26751 var local331 []uint8
26752 var local332 uint16
26757 (local331) = make([]uint8, local332)
26759 _, err := io.ReadFull(r, (local331)[:])
26762 (*(*(string))(obj)) = string(local331)
26765 func (obj *PlayerListUpdateType) serialize(w io.Writer) {
26767 x := *(*(uint8))(obj)
26768 write8(w, uint8(x))
26772 func (obj *PlayerListUpdateType) deserialize(r io.Reader) {
26774 p := &*(*(uint8))(obj)
26779 func (obj *ModChanSig) serialize(w io.Writer) {
26781 x := *(*(uint8))(obj)
26782 write8(w, uint8(x))
26786 func (obj *ModChanSig) deserialize(r io.Reader) {
26788 p := &*(*(uint8))(obj)
26793 func (obj *AOProps) serialize(w io.Writer) {
26795 local333 := uint8(4)
26798 write8(w, uint8(x))
26803 MaxHP uint16 // Player only.
26804 CollideWithNodes bool
26805 Weight float32 // deprecated
26809 VisualSize [3]float32
26811 SpriteSheetSize [2]int16 // in sprites.
26812 SpritePos [2]int16 // in sprite sheet.
26814 MakeFootstepSnds bool
26815 RotateSpeed float32 // in radians per second.
26817 Colors []color.NRGBA
26818 CollideWithAOs bool
26821 FaceRotateDirOff float32 // in degrees.
26824 NametagColor color.NRGBA
26825 FaceRotateSpeed float32 // in degrees per second.
26829 MaxBreath uint16 // Player only.
26830 EyeHeight float32 // Player only.
26831 ZoomFOV float32 // in degrees. Player only.
26832 UseTextureAlpha bool
26833 DmgTextureMod Texture // suffix
26836 NametagBG color.NRGBA
26838 write16(w, uint16(x))
26842 MaxHP uint16 // Player only.
26843 CollideWithNodes bool
26844 Weight float32 // deprecated
26848 VisualSize [3]float32
26850 SpriteSheetSize [2]int16 // in sprites.
26851 SpritePos [2]int16 // in sprite sheet.
26853 MakeFootstepSnds bool
26854 RotateSpeed float32 // in radians per second.
26856 Colors []color.NRGBA
26857 CollideWithAOs bool
26860 FaceRotateDirOff float32 // in degrees.
26863 NametagColor color.NRGBA
26864 FaceRotateSpeed float32 // in degrees per second.
26868 MaxBreath uint16 // Player only.
26869 EyeHeight float32 // Player only.
26870 ZoomFOV float32 // in degrees. Player only.
26871 UseTextureAlpha bool
26872 DmgTextureMod Texture // suffix
26875 NametagBG color.NRGBA
26876 }))(obj)).CollideWithNodes
26885 MaxHP uint16 // Player only.
26886 CollideWithNodes bool
26887 Weight float32 // deprecated
26891 VisualSize [3]float32
26893 SpriteSheetSize [2]int16 // in sprites.
26894 SpritePos [2]int16 // in sprite sheet.
26896 MakeFootstepSnds bool
26897 RotateSpeed float32 // in radians per second.
26899 Colors []color.NRGBA
26900 CollideWithAOs bool
26903 FaceRotateDirOff float32 // in degrees.
26906 NametagColor color.NRGBA
26907 FaceRotateSpeed float32 // in degrees per second.
26911 MaxBreath uint16 // Player only.
26912 EyeHeight float32 // Player only.
26913 ZoomFOV float32 // in degrees. Player only.
26914 UseTextureAlpha bool
26915 DmgTextureMod Texture // suffix
26918 NametagBG color.NRGBA
26920 write32(w, math.Float32bits(x))
26922 if err := pcall(func() {
26924 MaxHP uint16 // Player only.
26925 CollideWithNodes bool
26926 Weight float32 // deprecated
26930 VisualSize [3]float32
26932 SpriteSheetSize [2]int16 // in sprites.
26933 SpritePos [2]int16 // in sprite sheet.
26935 MakeFootstepSnds bool
26936 RotateSpeed float32 // in radians per second.
26938 Colors []color.NRGBA
26939 CollideWithAOs bool
26942 FaceRotateDirOff float32 // in degrees.
26945 NametagColor color.NRGBA
26946 FaceRotateSpeed float32 // in degrees per second.
26950 MaxBreath uint16 // Player only.
26951 EyeHeight float32 // Player only.
26952 ZoomFOV float32 // in degrees. Player only.
26953 UseTextureAlpha bool
26954 DmgTextureMod Texture // suffix
26957 NametagBG color.NRGBA
26958 }))(obj)).ColBox).serialize(w)
26963 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
26965 if err := pcall(func() {
26967 MaxHP uint16 // Player only.
26968 CollideWithNodes bool
26969 Weight float32 // deprecated
26973 VisualSize [3]float32
26975 SpriteSheetSize [2]int16 // in sprites.
26976 SpritePos [2]int16 // in sprite sheet.
26978 MakeFootstepSnds bool
26979 RotateSpeed float32 // in radians per second.
26981 Colors []color.NRGBA
26982 CollideWithAOs bool
26985 FaceRotateDirOff float32 // in degrees.
26988 NametagColor color.NRGBA
26989 FaceRotateSpeed float32 // in degrees per second.
26993 MaxBreath uint16 // Player only.
26994 EyeHeight float32 // Player only.
26995 ZoomFOV float32 // in degrees. Player only.
26996 UseTextureAlpha bool
26997 DmgTextureMod Texture // suffix
27000 NametagBG color.NRGBA
27001 }))(obj)).SelBox).serialize(w)
27006 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
27010 MaxHP uint16 // Player only.
27011 CollideWithNodes bool
27012 Weight float32 // deprecated
27016 VisualSize [3]float32
27018 SpriteSheetSize [2]int16 // in sprites.
27019 SpritePos [2]int16 // in sprite sheet.
27021 MakeFootstepSnds bool
27022 RotateSpeed float32 // in radians per second.
27024 Colors []color.NRGBA
27025 CollideWithAOs bool
27028 FaceRotateDirOff float32 // in degrees.
27031 NametagColor color.NRGBA
27032 FaceRotateSpeed float32 // in degrees per second.
27036 MaxBreath uint16 // Player only.
27037 EyeHeight float32 // Player only.
27038 ZoomFOV float32 // in degrees. Player only.
27039 UseTextureAlpha bool
27040 DmgTextureMod Texture // suffix
27043 NametagBG color.NRGBA
27044 }))(obj)).Pointable
27051 if len(([]byte((*(*(struct {
27052 MaxHP uint16 // Player only.
27053 CollideWithNodes bool
27054 Weight float32 // deprecated
27058 VisualSize [3]float32
27060 SpriteSheetSize [2]int16 // in sprites.
27061 SpritePos [2]int16 // in sprite sheet.
27063 MakeFootstepSnds bool
27064 RotateSpeed float32 // in radians per second.
27066 Colors []color.NRGBA
27067 CollideWithAOs bool
27070 FaceRotateDirOff float32 // in degrees.
27073 NametagColor color.NRGBA
27074 FaceRotateSpeed float32 // in degrees per second.
27078 MaxBreath uint16 // Player only.
27079 EyeHeight float32 // Player only.
27080 ZoomFOV float32 // in degrees. Player only.
27081 UseTextureAlpha bool
27082 DmgTextureMod Texture // suffix
27085 NametagBG color.NRGBA
27086 }))(obj)).Visual))) > math.MaxUint16 {
27090 x := uint16(len(([]byte((*(*(struct {
27091 MaxHP uint16 // Player only.
27092 CollideWithNodes bool
27093 Weight float32 // deprecated
27097 VisualSize [3]float32
27099 SpriteSheetSize [2]int16 // in sprites.
27100 SpritePos [2]int16 // in sprite sheet.
27102 MakeFootstepSnds bool
27103 RotateSpeed float32 // in radians per second.
27105 Colors []color.NRGBA
27106 CollideWithAOs bool
27109 FaceRotateDirOff float32 // in degrees.
27112 NametagColor color.NRGBA
27113 FaceRotateSpeed float32 // in degrees per second.
27117 MaxBreath uint16 // Player only.
27118 EyeHeight float32 // Player only.
27119 ZoomFOV float32 // in degrees. Player only.
27120 UseTextureAlpha bool
27121 DmgTextureMod Texture // suffix
27124 NametagBG color.NRGBA
27125 }))(obj)).Visual))))
27126 write16(w, uint16(x))
27129 _, err := w.Write(([]byte((*(*(struct {
27130 MaxHP uint16 // Player only.
27131 CollideWithNodes bool
27132 Weight float32 // deprecated
27136 VisualSize [3]float32
27138 SpriteSheetSize [2]int16 // in sprites.
27139 SpritePos [2]int16 // in sprite sheet.
27141 MakeFootstepSnds bool
27142 RotateSpeed float32 // in radians per second.
27144 Colors []color.NRGBA
27145 CollideWithAOs bool
27148 FaceRotateDirOff float32 // in degrees.
27151 NametagColor color.NRGBA
27152 FaceRotateSpeed float32 // in degrees per second.
27156 MaxBreath uint16 // Player only.
27157 EyeHeight float32 // Player only.
27158 ZoomFOV float32 // in degrees. Player only.
27159 UseTextureAlpha bool
27160 DmgTextureMod Texture // suffix
27163 NametagBG color.NRGBA
27164 }))(obj)).Visual))[:])
27167 for local334 := range (*(*(struct {
27168 MaxHP uint16 // Player only.
27169 CollideWithNodes bool
27170 Weight float32 // deprecated
27174 VisualSize [3]float32
27176 SpriteSheetSize [2]int16 // in sprites.
27177 SpritePos [2]int16 // in sprite sheet.
27179 MakeFootstepSnds bool
27180 RotateSpeed float32 // in radians per second.
27182 Colors []color.NRGBA
27183 CollideWithAOs bool
27186 FaceRotateDirOff float32 // in degrees.
27189 NametagColor color.NRGBA
27190 FaceRotateSpeed float32 // in degrees per second.
27194 MaxBreath uint16 // Player only.
27195 EyeHeight float32 // Player only.
27196 ZoomFOV float32 // in degrees. Player only.
27197 UseTextureAlpha bool
27198 DmgTextureMod Texture // suffix
27201 NametagBG color.NRGBA
27202 }))(obj)).VisualSize {
27204 x := ((*(*(struct {
27205 MaxHP uint16 // Player only.
27206 CollideWithNodes bool
27207 Weight float32 // deprecated
27211 VisualSize [3]float32
27213 SpriteSheetSize [2]int16 // in sprites.
27214 SpritePos [2]int16 // in sprite sheet.
27216 MakeFootstepSnds bool
27217 RotateSpeed float32 // in radians per second.
27219 Colors []color.NRGBA
27220 CollideWithAOs bool
27223 FaceRotateDirOff float32 // in degrees.
27226 NametagColor color.NRGBA
27227 FaceRotateSpeed float32 // in degrees per second.
27231 MaxBreath uint16 // Player only.
27232 EyeHeight float32 // Player only.
27233 ZoomFOV float32 // in degrees. Player only.
27234 UseTextureAlpha bool
27235 DmgTextureMod Texture // suffix
27238 NametagBG color.NRGBA
27239 }))(obj)).VisualSize)[local334]
27240 write32(w, math.Float32bits(x))
27243 if len(((*(*(struct {
27244 MaxHP uint16 // Player only.
27245 CollideWithNodes bool
27246 Weight float32 // deprecated
27250 VisualSize [3]float32
27252 SpriteSheetSize [2]int16 // in sprites.
27253 SpritePos [2]int16 // in sprite sheet.
27255 MakeFootstepSnds bool
27256 RotateSpeed float32 // in radians per second.
27258 Colors []color.NRGBA
27259 CollideWithAOs bool
27262 FaceRotateDirOff float32 // in degrees.
27265 NametagColor color.NRGBA
27266 FaceRotateSpeed float32 // in degrees per second.
27270 MaxBreath uint16 // Player only.
27271 EyeHeight float32 // Player only.
27272 ZoomFOV float32 // in degrees. Player only.
27273 UseTextureAlpha bool
27274 DmgTextureMod Texture // suffix
27277 NametagBG color.NRGBA
27278 }))(obj)).Textures)) > math.MaxUint16 {
27282 x := uint16(len(((*(*(struct {
27283 MaxHP uint16 // Player only.
27284 CollideWithNodes bool
27285 Weight float32 // deprecated
27289 VisualSize [3]float32
27291 SpriteSheetSize [2]int16 // in sprites.
27292 SpritePos [2]int16 // in sprite sheet.
27294 MakeFootstepSnds bool
27295 RotateSpeed float32 // in radians per second.
27297 Colors []color.NRGBA
27298 CollideWithAOs bool
27301 FaceRotateDirOff float32 // in degrees.
27304 NametagColor color.NRGBA
27305 FaceRotateSpeed float32 // in degrees per second.
27309 MaxBreath uint16 // Player only.
27310 EyeHeight float32 // Player only.
27311 ZoomFOV float32 // in degrees. Player only.
27312 UseTextureAlpha bool
27313 DmgTextureMod Texture // suffix
27316 NametagBG color.NRGBA
27317 }))(obj)).Textures)))
27318 write16(w, uint16(x))
27320 for local335 := range (*(*(struct {
27321 MaxHP uint16 // Player only.
27322 CollideWithNodes bool
27323 Weight float32 // deprecated
27327 VisualSize [3]float32
27329 SpriteSheetSize [2]int16 // in sprites.
27330 SpritePos [2]int16 // in sprite sheet.
27332 MakeFootstepSnds bool
27333 RotateSpeed float32 // in radians per second.
27335 Colors []color.NRGBA
27336 CollideWithAOs bool
27339 FaceRotateDirOff float32 // in degrees.
27342 NametagColor color.NRGBA
27343 FaceRotateSpeed float32 // in degrees per second.
27347 MaxBreath uint16 // Player only.
27348 EyeHeight float32 // Player only.
27349 ZoomFOV float32 // in degrees. Player only.
27350 UseTextureAlpha bool
27351 DmgTextureMod Texture // suffix
27354 NametagBG color.NRGBA
27355 }))(obj)).Textures {
27356 if err := pcall(func() {
27358 MaxHP uint16 // Player only.
27359 CollideWithNodes bool
27360 Weight float32 // deprecated
27364 VisualSize [3]float32
27366 SpriteSheetSize [2]int16 // in sprites.
27367 SpritePos [2]int16 // in sprite sheet.
27369 MakeFootstepSnds bool
27370 RotateSpeed float32 // in radians per second.
27372 Colors []color.NRGBA
27373 CollideWithAOs bool
27376 FaceRotateDirOff float32 // in degrees.
27379 NametagColor color.NRGBA
27380 FaceRotateSpeed float32 // in degrees per second.
27384 MaxBreath uint16 // Player only.
27385 EyeHeight float32 // Player only.
27386 ZoomFOV float32 // in degrees. Player only.
27387 UseTextureAlpha bool
27388 DmgTextureMod Texture // suffix
27391 NametagBG color.NRGBA
27392 }))(obj)).Textures)[local335]).serialize(w)
27397 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
27400 for local336 := range (*(*(struct {
27401 MaxHP uint16 // Player only.
27402 CollideWithNodes bool
27403 Weight float32 // deprecated
27407 VisualSize [3]float32
27409 SpriteSheetSize [2]int16 // in sprites.
27410 SpritePos [2]int16 // in sprite sheet.
27412 MakeFootstepSnds bool
27413 RotateSpeed float32 // in radians per second.
27415 Colors []color.NRGBA
27416 CollideWithAOs bool
27419 FaceRotateDirOff float32 // in degrees.
27422 NametagColor color.NRGBA
27423 FaceRotateSpeed float32 // in degrees per second.
27427 MaxBreath uint16 // Player only.
27428 EyeHeight float32 // Player only.
27429 ZoomFOV float32 // in degrees. Player only.
27430 UseTextureAlpha bool
27431 DmgTextureMod Texture // suffix
27434 NametagBG color.NRGBA
27435 }))(obj)).SpriteSheetSize {
27437 x := ((*(*(struct {
27438 MaxHP uint16 // Player only.
27439 CollideWithNodes bool
27440 Weight float32 // deprecated
27444 VisualSize [3]float32
27446 SpriteSheetSize [2]int16 // in sprites.
27447 SpritePos [2]int16 // in sprite sheet.
27449 MakeFootstepSnds bool
27450 RotateSpeed float32 // in radians per second.
27452 Colors []color.NRGBA
27453 CollideWithAOs bool
27456 FaceRotateDirOff float32 // in degrees.
27459 NametagColor color.NRGBA
27460 FaceRotateSpeed float32 // in degrees per second.
27464 MaxBreath uint16 // Player only.
27465 EyeHeight float32 // Player only.
27466 ZoomFOV float32 // in degrees. Player only.
27467 UseTextureAlpha bool
27468 DmgTextureMod Texture // suffix
27471 NametagBG color.NRGBA
27472 }))(obj)).SpriteSheetSize)[local336]
27473 write16(w, uint16(x))
27476 for local337 := range (*(*(struct {
27477 MaxHP uint16 // Player only.
27478 CollideWithNodes bool
27479 Weight float32 // deprecated
27483 VisualSize [3]float32
27485 SpriteSheetSize [2]int16 // in sprites.
27486 SpritePos [2]int16 // in sprite sheet.
27488 MakeFootstepSnds bool
27489 RotateSpeed float32 // in radians per second.
27491 Colors []color.NRGBA
27492 CollideWithAOs bool
27495 FaceRotateDirOff float32 // in degrees.
27498 NametagColor color.NRGBA
27499 FaceRotateSpeed float32 // in degrees per second.
27503 MaxBreath uint16 // Player only.
27504 EyeHeight float32 // Player only.
27505 ZoomFOV float32 // in degrees. Player only.
27506 UseTextureAlpha bool
27507 DmgTextureMod Texture // suffix
27510 NametagBG color.NRGBA
27511 }))(obj)).SpritePos {
27513 x := ((*(*(struct {
27514 MaxHP uint16 // Player only.
27515 CollideWithNodes bool
27516 Weight float32 // deprecated
27520 VisualSize [3]float32
27522 SpriteSheetSize [2]int16 // in sprites.
27523 SpritePos [2]int16 // in sprite sheet.
27525 MakeFootstepSnds bool
27526 RotateSpeed float32 // in radians per second.
27528 Colors []color.NRGBA
27529 CollideWithAOs bool
27532 FaceRotateDirOff float32 // in degrees.
27535 NametagColor color.NRGBA
27536 FaceRotateSpeed float32 // in degrees per second.
27540 MaxBreath uint16 // Player only.
27541 EyeHeight float32 // Player only.
27542 ZoomFOV float32 // in degrees. Player only.
27543 UseTextureAlpha bool
27544 DmgTextureMod Texture // suffix
27547 NametagBG color.NRGBA
27548 }))(obj)).SpritePos)[local337]
27549 write16(w, uint16(x))
27554 MaxHP uint16 // Player only.
27555 CollideWithNodes bool
27556 Weight float32 // deprecated
27560 VisualSize [3]float32
27562 SpriteSheetSize [2]int16 // in sprites.
27563 SpritePos [2]int16 // in sprite sheet.
27565 MakeFootstepSnds bool
27566 RotateSpeed float32 // in radians per second.
27568 Colors []color.NRGBA
27569 CollideWithAOs bool
27572 FaceRotateDirOff float32 // in degrees.
27575 NametagColor color.NRGBA
27576 FaceRotateSpeed float32 // in degrees per second.
27580 MaxBreath uint16 // Player only.
27581 EyeHeight float32 // Player only.
27582 ZoomFOV float32 // in degrees. Player only.
27583 UseTextureAlpha bool
27584 DmgTextureMod Texture // suffix
27587 NametagBG color.NRGBA
27597 MaxHP uint16 // Player only.
27598 CollideWithNodes bool
27599 Weight float32 // deprecated
27603 VisualSize [3]float32
27605 SpriteSheetSize [2]int16 // in sprites.
27606 SpritePos [2]int16 // in sprite sheet.
27608 MakeFootstepSnds bool
27609 RotateSpeed float32 // in radians per second.
27611 Colors []color.NRGBA
27612 CollideWithAOs bool
27615 FaceRotateDirOff float32 // in degrees.
27618 NametagColor color.NRGBA
27619 FaceRotateSpeed float32 // in degrees per second.
27623 MaxBreath uint16 // Player only.
27624 EyeHeight float32 // Player only.
27625 ZoomFOV float32 // in degrees. Player only.
27626 UseTextureAlpha bool
27627 DmgTextureMod Texture // suffix
27630 NametagBG color.NRGBA
27631 }))(obj)).MakeFootstepSnds
27640 MaxHP uint16 // Player only.
27641 CollideWithNodes bool
27642 Weight float32 // deprecated
27646 VisualSize [3]float32
27648 SpriteSheetSize [2]int16 // in sprites.
27649 SpritePos [2]int16 // in sprite sheet.
27651 MakeFootstepSnds bool
27652 RotateSpeed float32 // in radians per second.
27654 Colors []color.NRGBA
27655 CollideWithAOs bool
27658 FaceRotateDirOff float32 // in degrees.
27661 NametagColor color.NRGBA
27662 FaceRotateSpeed float32 // in degrees per second.
27666 MaxBreath uint16 // Player only.
27667 EyeHeight float32 // Player only.
27668 ZoomFOV float32 // in degrees. Player only.
27669 UseTextureAlpha bool
27670 DmgTextureMod Texture // suffix
27673 NametagBG color.NRGBA
27674 }))(obj)).RotateSpeed
27675 write32(w, math.Float32bits(x))
27677 if len(([]byte((*(*(struct {
27678 MaxHP uint16 // Player only.
27679 CollideWithNodes bool
27680 Weight float32 // deprecated
27684 VisualSize [3]float32
27686 SpriteSheetSize [2]int16 // in sprites.
27687 SpritePos [2]int16 // in sprite sheet.
27689 MakeFootstepSnds bool
27690 RotateSpeed float32 // in radians per second.
27692 Colors []color.NRGBA
27693 CollideWithAOs bool
27696 FaceRotateDirOff float32 // in degrees.
27699 NametagColor color.NRGBA
27700 FaceRotateSpeed float32 // in degrees per second.
27704 MaxBreath uint16 // Player only.
27705 EyeHeight float32 // Player only.
27706 ZoomFOV float32 // in degrees. Player only.
27707 UseTextureAlpha bool
27708 DmgTextureMod Texture // suffix
27711 NametagBG color.NRGBA
27712 }))(obj)).Mesh))) > math.MaxUint16 {
27716 x := uint16(len(([]byte((*(*(struct {
27717 MaxHP uint16 // Player only.
27718 CollideWithNodes bool
27719 Weight float32 // deprecated
27723 VisualSize [3]float32
27725 SpriteSheetSize [2]int16 // in sprites.
27726 SpritePos [2]int16 // in sprite sheet.
27728 MakeFootstepSnds bool
27729 RotateSpeed float32 // in radians per second.
27731 Colors []color.NRGBA
27732 CollideWithAOs bool
27735 FaceRotateDirOff float32 // in degrees.
27738 NametagColor color.NRGBA
27739 FaceRotateSpeed float32 // in degrees per second.
27743 MaxBreath uint16 // Player only.
27744 EyeHeight float32 // Player only.
27745 ZoomFOV float32 // in degrees. Player only.
27746 UseTextureAlpha bool
27747 DmgTextureMod Texture // suffix
27750 NametagBG color.NRGBA
27752 write16(w, uint16(x))
27755 _, err := w.Write(([]byte((*(*(struct {
27756 MaxHP uint16 // Player only.
27757 CollideWithNodes bool
27758 Weight float32 // deprecated
27762 VisualSize [3]float32
27764 SpriteSheetSize [2]int16 // in sprites.
27765 SpritePos [2]int16 // in sprite sheet.
27767 MakeFootstepSnds bool
27768 RotateSpeed float32 // in radians per second.
27770 Colors []color.NRGBA
27771 CollideWithAOs bool
27774 FaceRotateDirOff float32 // in degrees.
27777 NametagColor color.NRGBA
27778 FaceRotateSpeed float32 // in degrees per second.
27782 MaxBreath uint16 // Player only.
27783 EyeHeight float32 // Player only.
27784 ZoomFOV float32 // in degrees. Player only.
27785 UseTextureAlpha bool
27786 DmgTextureMod Texture // suffix
27789 NametagBG color.NRGBA
27790 }))(obj)).Mesh))[:])
27793 if len(((*(*(struct {
27794 MaxHP uint16 // Player only.
27795 CollideWithNodes bool
27796 Weight float32 // deprecated
27800 VisualSize [3]float32
27802 SpriteSheetSize [2]int16 // in sprites.
27803 SpritePos [2]int16 // in sprite sheet.
27805 MakeFootstepSnds bool
27806 RotateSpeed float32 // in radians per second.
27808 Colors []color.NRGBA
27809 CollideWithAOs bool
27812 FaceRotateDirOff float32 // in degrees.
27815 NametagColor color.NRGBA
27816 FaceRotateSpeed float32 // in degrees per second.
27820 MaxBreath uint16 // Player only.
27821 EyeHeight float32 // Player only.
27822 ZoomFOV float32 // in degrees. Player only.
27823 UseTextureAlpha bool
27824 DmgTextureMod Texture // suffix
27827 NametagBG color.NRGBA
27828 }))(obj)).Colors)) > math.MaxUint16 {
27832 x := uint16(len(((*(*(struct {
27833 MaxHP uint16 // Player only.
27834 CollideWithNodes bool
27835 Weight float32 // deprecated
27839 VisualSize [3]float32
27841 SpriteSheetSize [2]int16 // in sprites.
27842 SpritePos [2]int16 // in sprite sheet.
27844 MakeFootstepSnds bool
27845 RotateSpeed float32 // in radians per second.
27847 Colors []color.NRGBA
27848 CollideWithAOs bool
27851 FaceRotateDirOff float32 // in degrees.
27854 NametagColor color.NRGBA
27855 FaceRotateSpeed float32 // in degrees per second.
27859 MaxBreath uint16 // Player only.
27860 EyeHeight float32 // Player only.
27861 ZoomFOV float32 // in degrees. Player only.
27862 UseTextureAlpha bool
27863 DmgTextureMod Texture // suffix
27866 NametagBG color.NRGBA
27867 }))(obj)).Colors)))
27868 write16(w, uint16(x))
27870 for local338 := range (*(*(struct {
27871 MaxHP uint16 // Player only.
27872 CollideWithNodes bool
27873 Weight float32 // deprecated
27877 VisualSize [3]float32
27879 SpriteSheetSize [2]int16 // in sprites.
27880 SpritePos [2]int16 // in sprite sheet.
27882 MakeFootstepSnds bool
27883 RotateSpeed float32 // in radians per second.
27885 Colors []color.NRGBA
27886 CollideWithAOs bool
27889 FaceRotateDirOff float32 // in degrees.
27892 NametagColor color.NRGBA
27893 FaceRotateSpeed float32 // in degrees per second.
27897 MaxBreath uint16 // Player only.
27898 EyeHeight float32 // Player only.
27899 ZoomFOV float32 // in degrees. Player only.
27900 UseTextureAlpha bool
27901 DmgTextureMod Texture // suffix
27904 NametagBG color.NRGBA
27907 x := ((*(*(struct {
27908 MaxHP uint16 // Player only.
27909 CollideWithNodes bool
27910 Weight float32 // deprecated
27914 VisualSize [3]float32
27916 SpriteSheetSize [2]int16 // in sprites.
27917 SpritePos [2]int16 // in sprite sheet.
27919 MakeFootstepSnds bool
27920 RotateSpeed float32 // in radians per second.
27922 Colors []color.NRGBA
27923 CollideWithAOs bool
27926 FaceRotateDirOff float32 // in degrees.
27929 NametagColor color.NRGBA
27930 FaceRotateSpeed float32 // in degrees per second.
27934 MaxBreath uint16 // Player only.
27935 EyeHeight float32 // Player only.
27936 ZoomFOV float32 // in degrees. Player only.
27937 UseTextureAlpha bool
27938 DmgTextureMod Texture // suffix
27941 NametagBG color.NRGBA
27942 }))(obj)).Colors)[local338]
27943 w.Write([]byte{x.A, x.R, x.G, x.B})
27948 MaxHP uint16 // Player only.
27949 CollideWithNodes bool
27950 Weight float32 // deprecated
27954 VisualSize [3]float32
27956 SpriteSheetSize [2]int16 // in sprites.
27957 SpritePos [2]int16 // in sprite sheet.
27959 MakeFootstepSnds bool
27960 RotateSpeed float32 // in radians per second.
27962 Colors []color.NRGBA
27963 CollideWithAOs bool
27966 FaceRotateDirOff float32 // in degrees.
27969 NametagColor color.NRGBA
27970 FaceRotateSpeed float32 // in degrees per second.
27974 MaxBreath uint16 // Player only.
27975 EyeHeight float32 // Player only.
27976 ZoomFOV float32 // in degrees. Player only.
27977 UseTextureAlpha bool
27978 DmgTextureMod Texture // suffix
27981 NametagBG color.NRGBA
27982 }))(obj)).CollideWithAOs
27991 MaxHP uint16 // Player only.
27992 CollideWithNodes bool
27993 Weight float32 // deprecated
27997 VisualSize [3]float32
27999 SpriteSheetSize [2]int16 // in sprites.
28000 SpritePos [2]int16 // in sprite sheet.
28002 MakeFootstepSnds bool
28003 RotateSpeed float32 // in radians per second.
28005 Colors []color.NRGBA
28006 CollideWithAOs bool
28009 FaceRotateDirOff float32 // in degrees.
28012 NametagColor color.NRGBA
28013 FaceRotateSpeed float32 // in degrees per second.
28017 MaxBreath uint16 // Player only.
28018 EyeHeight float32 // Player only.
28019 ZoomFOV float32 // in degrees. Player only.
28020 UseTextureAlpha bool
28021 DmgTextureMod Texture // suffix
28024 NametagBG color.NRGBA
28025 }))(obj)).StepHeight
28026 write32(w, math.Float32bits(x))
28030 MaxHP uint16 // Player only.
28031 CollideWithNodes bool
28032 Weight float32 // deprecated
28036 VisualSize [3]float32
28038 SpriteSheetSize [2]int16 // in sprites.
28039 SpritePos [2]int16 // in sprite sheet.
28041 MakeFootstepSnds bool
28042 RotateSpeed float32 // in radians per second.
28044 Colors []color.NRGBA
28045 CollideWithAOs bool
28048 FaceRotateDirOff float32 // in degrees.
28051 NametagColor color.NRGBA
28052 FaceRotateSpeed float32 // in degrees per second.
28056 MaxBreath uint16 // Player only.
28057 EyeHeight float32 // Player only.
28058 ZoomFOV float32 // in degrees. Player only.
28059 UseTextureAlpha bool
28060 DmgTextureMod Texture // suffix
28063 NametagBG color.NRGBA
28064 }))(obj)).FaceRotateDir
28073 MaxHP uint16 // Player only.
28074 CollideWithNodes bool
28075 Weight float32 // deprecated
28079 VisualSize [3]float32
28081 SpriteSheetSize [2]int16 // in sprites.
28082 SpritePos [2]int16 // in sprite sheet.
28084 MakeFootstepSnds bool
28085 RotateSpeed float32 // in radians per second.
28087 Colors []color.NRGBA
28088 CollideWithAOs bool
28091 FaceRotateDirOff float32 // in degrees.
28094 NametagColor color.NRGBA
28095 FaceRotateSpeed float32 // in degrees per second.
28099 MaxBreath uint16 // Player only.
28100 EyeHeight float32 // Player only.
28101 ZoomFOV float32 // in degrees. Player only.
28102 UseTextureAlpha bool
28103 DmgTextureMod Texture // suffix
28106 NametagBG color.NRGBA
28107 }))(obj)).FaceRotateDirOff
28108 write32(w, math.Float32bits(x))
28112 MaxHP uint16 // Player only.
28113 CollideWithNodes bool
28114 Weight float32 // deprecated
28118 VisualSize [3]float32
28120 SpriteSheetSize [2]int16 // in sprites.
28121 SpritePos [2]int16 // in sprite sheet.
28123 MakeFootstepSnds bool
28124 RotateSpeed float32 // in radians per second.
28126 Colors []color.NRGBA
28127 CollideWithAOs bool
28130 FaceRotateDirOff float32 // in degrees.
28133 NametagColor color.NRGBA
28134 FaceRotateSpeed float32 // in degrees per second.
28138 MaxBreath uint16 // Player only.
28139 EyeHeight float32 // Player only.
28140 ZoomFOV float32 // in degrees. Player only.
28141 UseTextureAlpha bool
28142 DmgTextureMod Texture // suffix
28145 NametagBG color.NRGBA
28146 }))(obj)).BackfaceCull
28153 if len(([]byte((*(*(struct {
28154 MaxHP uint16 // Player only.
28155 CollideWithNodes bool
28156 Weight float32 // deprecated
28160 VisualSize [3]float32
28162 SpriteSheetSize [2]int16 // in sprites.
28163 SpritePos [2]int16 // in sprite sheet.
28165 MakeFootstepSnds bool
28166 RotateSpeed float32 // in radians per second.
28168 Colors []color.NRGBA
28169 CollideWithAOs bool
28172 FaceRotateDirOff float32 // in degrees.
28175 NametagColor color.NRGBA
28176 FaceRotateSpeed float32 // in degrees per second.
28180 MaxBreath uint16 // Player only.
28181 EyeHeight float32 // Player only.
28182 ZoomFOV float32 // in degrees. Player only.
28183 UseTextureAlpha bool
28184 DmgTextureMod Texture // suffix
28187 NametagBG color.NRGBA
28188 }))(obj)).Nametag))) > math.MaxUint16 {
28192 x := uint16(len(([]byte((*(*(struct {
28193 MaxHP uint16 // Player only.
28194 CollideWithNodes bool
28195 Weight float32 // deprecated
28199 VisualSize [3]float32
28201 SpriteSheetSize [2]int16 // in sprites.
28202 SpritePos [2]int16 // in sprite sheet.
28204 MakeFootstepSnds bool
28205 RotateSpeed float32 // in radians per second.
28207 Colors []color.NRGBA
28208 CollideWithAOs bool
28211 FaceRotateDirOff float32 // in degrees.
28214 NametagColor color.NRGBA
28215 FaceRotateSpeed float32 // in degrees per second.
28219 MaxBreath uint16 // Player only.
28220 EyeHeight float32 // Player only.
28221 ZoomFOV float32 // in degrees. Player only.
28222 UseTextureAlpha bool
28223 DmgTextureMod Texture // suffix
28226 NametagBG color.NRGBA
28227 }))(obj)).Nametag))))
28228 write16(w, uint16(x))
28231 _, err := w.Write(([]byte((*(*(struct {
28232 MaxHP uint16 // Player only.
28233 CollideWithNodes bool
28234 Weight float32 // deprecated
28238 VisualSize [3]float32
28240 SpriteSheetSize [2]int16 // in sprites.
28241 SpritePos [2]int16 // in sprite sheet.
28243 MakeFootstepSnds bool
28244 RotateSpeed float32 // in radians per second.
28246 Colors []color.NRGBA
28247 CollideWithAOs bool
28250 FaceRotateDirOff float32 // in degrees.
28253 NametagColor color.NRGBA
28254 FaceRotateSpeed float32 // in degrees per second.
28258 MaxBreath uint16 // Player only.
28259 EyeHeight float32 // Player only.
28260 ZoomFOV float32 // in degrees. Player only.
28261 UseTextureAlpha bool
28262 DmgTextureMod Texture // suffix
28265 NametagBG color.NRGBA
28266 }))(obj)).Nametag))[:])
28271 MaxHP uint16 // Player only.
28272 CollideWithNodes bool
28273 Weight float32 // deprecated
28277 VisualSize [3]float32
28279 SpriteSheetSize [2]int16 // in sprites.
28280 SpritePos [2]int16 // in sprite sheet.
28282 MakeFootstepSnds bool
28283 RotateSpeed float32 // in radians per second.
28285 Colors []color.NRGBA
28286 CollideWithAOs bool
28289 FaceRotateDirOff float32 // in degrees.
28292 NametagColor color.NRGBA
28293 FaceRotateSpeed float32 // in degrees per second.
28297 MaxBreath uint16 // Player only.
28298 EyeHeight float32 // Player only.
28299 ZoomFOV float32 // in degrees. Player only.
28300 UseTextureAlpha bool
28301 DmgTextureMod Texture // suffix
28304 NametagBG color.NRGBA
28305 }))(obj)).NametagColor
28306 w.Write([]byte{x.A, x.R, x.G, x.B})
28310 MaxHP uint16 // Player only.
28311 CollideWithNodes bool
28312 Weight float32 // deprecated
28316 VisualSize [3]float32
28318 SpriteSheetSize [2]int16 // in sprites.
28319 SpritePos [2]int16 // in sprite sheet.
28321 MakeFootstepSnds bool
28322 RotateSpeed float32 // in radians per second.
28324 Colors []color.NRGBA
28325 CollideWithAOs bool
28328 FaceRotateDirOff float32 // in degrees.
28331 NametagColor color.NRGBA
28332 FaceRotateSpeed float32 // in degrees per second.
28336 MaxBreath uint16 // Player only.
28337 EyeHeight float32 // Player only.
28338 ZoomFOV float32 // in degrees. Player only.
28339 UseTextureAlpha bool
28340 DmgTextureMod Texture // suffix
28343 NametagBG color.NRGBA
28344 }))(obj)).FaceRotateSpeed
28345 write32(w, math.Float32bits(x))
28347 if len(([]byte((*(*(struct {
28348 MaxHP uint16 // Player only.
28349 CollideWithNodes bool
28350 Weight float32 // deprecated
28354 VisualSize [3]float32
28356 SpriteSheetSize [2]int16 // in sprites.
28357 SpritePos [2]int16 // in sprite sheet.
28359 MakeFootstepSnds bool
28360 RotateSpeed float32 // in radians per second.
28362 Colors []color.NRGBA
28363 CollideWithAOs bool
28366 FaceRotateDirOff float32 // in degrees.
28369 NametagColor color.NRGBA
28370 FaceRotateSpeed float32 // in degrees per second.
28374 MaxBreath uint16 // Player only.
28375 EyeHeight float32 // Player only.
28376 ZoomFOV float32 // in degrees. Player only.
28377 UseTextureAlpha bool
28378 DmgTextureMod Texture // suffix
28381 NametagBG color.NRGBA
28382 }))(obj)).Infotext))) > math.MaxUint16 {
28386 x := uint16(len(([]byte((*(*(struct {
28387 MaxHP uint16 // Player only.
28388 CollideWithNodes bool
28389 Weight float32 // deprecated
28393 VisualSize [3]float32
28395 SpriteSheetSize [2]int16 // in sprites.
28396 SpritePos [2]int16 // in sprite sheet.
28398 MakeFootstepSnds bool
28399 RotateSpeed float32 // in radians per second.
28401 Colors []color.NRGBA
28402 CollideWithAOs bool
28405 FaceRotateDirOff float32 // in degrees.
28408 NametagColor color.NRGBA
28409 FaceRotateSpeed float32 // in degrees per second.
28413 MaxBreath uint16 // Player only.
28414 EyeHeight float32 // Player only.
28415 ZoomFOV float32 // in degrees. Player only.
28416 UseTextureAlpha bool
28417 DmgTextureMod Texture // suffix
28420 NametagBG color.NRGBA
28421 }))(obj)).Infotext))))
28422 write16(w, uint16(x))
28425 _, err := w.Write(([]byte((*(*(struct {
28426 MaxHP uint16 // Player only.
28427 CollideWithNodes bool
28428 Weight float32 // deprecated
28432 VisualSize [3]float32
28434 SpriteSheetSize [2]int16 // in sprites.
28435 SpritePos [2]int16 // in sprite sheet.
28437 MakeFootstepSnds bool
28438 RotateSpeed float32 // in radians per second.
28440 Colors []color.NRGBA
28441 CollideWithAOs bool
28444 FaceRotateDirOff float32 // in degrees.
28447 NametagColor color.NRGBA
28448 FaceRotateSpeed float32 // in degrees per second.
28452 MaxBreath uint16 // Player only.
28453 EyeHeight float32 // Player only.
28454 ZoomFOV float32 // in degrees. Player only.
28455 UseTextureAlpha bool
28456 DmgTextureMod Texture // suffix
28459 NametagBG color.NRGBA
28460 }))(obj)).Infotext))[:])
28463 if len(([]byte((*(*(struct {
28464 MaxHP uint16 // Player only.
28465 CollideWithNodes bool
28466 Weight float32 // deprecated
28470 VisualSize [3]float32
28472 SpriteSheetSize [2]int16 // in sprites.
28473 SpritePos [2]int16 // in sprite sheet.
28475 MakeFootstepSnds bool
28476 RotateSpeed float32 // in radians per second.
28478 Colors []color.NRGBA
28479 CollideWithAOs bool
28482 FaceRotateDirOff float32 // in degrees.
28485 NametagColor color.NRGBA
28486 FaceRotateSpeed float32 // in degrees per second.
28490 MaxBreath uint16 // Player only.
28491 EyeHeight float32 // Player only.
28492 ZoomFOV float32 // in degrees. Player only.
28493 UseTextureAlpha bool
28494 DmgTextureMod Texture // suffix
28497 NametagBG color.NRGBA
28498 }))(obj)).Itemstring))) > math.MaxUint16 {
28502 x := uint16(len(([]byte((*(*(struct {
28503 MaxHP uint16 // Player only.
28504 CollideWithNodes bool
28505 Weight float32 // deprecated
28509 VisualSize [3]float32
28511 SpriteSheetSize [2]int16 // in sprites.
28512 SpritePos [2]int16 // in sprite sheet.
28514 MakeFootstepSnds bool
28515 RotateSpeed float32 // in radians per second.
28517 Colors []color.NRGBA
28518 CollideWithAOs bool
28521 FaceRotateDirOff float32 // in degrees.
28524 NametagColor color.NRGBA
28525 FaceRotateSpeed float32 // in degrees per second.
28529 MaxBreath uint16 // Player only.
28530 EyeHeight float32 // Player only.
28531 ZoomFOV float32 // in degrees. Player only.
28532 UseTextureAlpha bool
28533 DmgTextureMod Texture // suffix
28536 NametagBG color.NRGBA
28537 }))(obj)).Itemstring))))
28538 write16(w, uint16(x))
28541 _, err := w.Write(([]byte((*(*(struct {
28542 MaxHP uint16 // Player only.
28543 CollideWithNodes bool
28544 Weight float32 // deprecated
28548 VisualSize [3]float32
28550 SpriteSheetSize [2]int16 // in sprites.
28551 SpritePos [2]int16 // in sprite sheet.
28553 MakeFootstepSnds bool
28554 RotateSpeed float32 // in radians per second.
28556 Colors []color.NRGBA
28557 CollideWithAOs bool
28560 FaceRotateDirOff float32 // in degrees.
28563 NametagColor color.NRGBA
28564 FaceRotateSpeed float32 // in degrees per second.
28568 MaxBreath uint16 // Player only.
28569 EyeHeight float32 // Player only.
28570 ZoomFOV float32 // in degrees. Player only.
28571 UseTextureAlpha bool
28572 DmgTextureMod Texture // suffix
28575 NametagBG color.NRGBA
28576 }))(obj)).Itemstring))[:])
28581 MaxHP uint16 // Player only.
28582 CollideWithNodes bool
28583 Weight float32 // deprecated
28587 VisualSize [3]float32
28589 SpriteSheetSize [2]int16 // in sprites.
28590 SpritePos [2]int16 // in sprite sheet.
28592 MakeFootstepSnds bool
28593 RotateSpeed float32 // in radians per second.
28595 Colors []color.NRGBA
28596 CollideWithAOs bool
28599 FaceRotateDirOff float32 // in degrees.
28602 NametagColor color.NRGBA
28603 FaceRotateSpeed float32 // in degrees per second.
28607 MaxBreath uint16 // Player only.
28608 EyeHeight float32 // Player only.
28609 ZoomFOV float32 // in degrees. Player only.
28610 UseTextureAlpha bool
28611 DmgTextureMod Texture // suffix
28614 NametagBG color.NRGBA
28616 write8(w, uint8(x))
28620 MaxHP uint16 // Player only.
28621 CollideWithNodes bool
28622 Weight float32 // deprecated
28626 VisualSize [3]float32
28628 SpriteSheetSize [2]int16 // in sprites.
28629 SpritePos [2]int16 // in sprite sheet.
28631 MakeFootstepSnds bool
28632 RotateSpeed float32 // in radians per second.
28634 Colors []color.NRGBA
28635 CollideWithAOs bool
28638 FaceRotateDirOff float32 // in degrees.
28641 NametagColor color.NRGBA
28642 FaceRotateSpeed float32 // in degrees per second.
28646 MaxBreath uint16 // Player only.
28647 EyeHeight float32 // Player only.
28648 ZoomFOV float32 // in degrees. Player only.
28649 UseTextureAlpha bool
28650 DmgTextureMod Texture // suffix
28653 NametagBG color.NRGBA
28654 }))(obj)).MaxBreath
28655 write16(w, uint16(x))
28659 MaxHP uint16 // Player only.
28660 CollideWithNodes bool
28661 Weight float32 // deprecated
28665 VisualSize [3]float32
28667 SpriteSheetSize [2]int16 // in sprites.
28668 SpritePos [2]int16 // in sprite sheet.
28670 MakeFootstepSnds bool
28671 RotateSpeed float32 // in radians per second.
28673 Colors []color.NRGBA
28674 CollideWithAOs bool
28677 FaceRotateDirOff float32 // in degrees.
28680 NametagColor color.NRGBA
28681 FaceRotateSpeed float32 // in degrees per second.
28685 MaxBreath uint16 // Player only.
28686 EyeHeight float32 // Player only.
28687 ZoomFOV float32 // in degrees. Player only.
28688 UseTextureAlpha bool
28689 DmgTextureMod Texture // suffix
28692 NametagBG color.NRGBA
28693 }))(obj)).EyeHeight
28694 write32(w, math.Float32bits(x))
28698 MaxHP uint16 // Player only.
28699 CollideWithNodes bool
28700 Weight float32 // deprecated
28704 VisualSize [3]float32
28706 SpriteSheetSize [2]int16 // in sprites.
28707 SpritePos [2]int16 // in sprite sheet.
28709 MakeFootstepSnds bool
28710 RotateSpeed float32 // in radians per second.
28712 Colors []color.NRGBA
28713 CollideWithAOs bool
28716 FaceRotateDirOff float32 // in degrees.
28719 NametagColor color.NRGBA
28720 FaceRotateSpeed float32 // in degrees per second.
28724 MaxBreath uint16 // Player only.
28725 EyeHeight float32 // Player only.
28726 ZoomFOV float32 // in degrees. Player only.
28727 UseTextureAlpha bool
28728 DmgTextureMod Texture // suffix
28731 NametagBG color.NRGBA
28733 write32(w, math.Float32bits(x))
28737 MaxHP uint16 // Player only.
28738 CollideWithNodes bool
28739 Weight float32 // deprecated
28743 VisualSize [3]float32
28745 SpriteSheetSize [2]int16 // in sprites.
28746 SpritePos [2]int16 // in sprite sheet.
28748 MakeFootstepSnds bool
28749 RotateSpeed float32 // in radians per second.
28751 Colors []color.NRGBA
28752 CollideWithAOs bool
28755 FaceRotateDirOff float32 // in degrees.
28758 NametagColor color.NRGBA
28759 FaceRotateSpeed float32 // in degrees per second.
28763 MaxBreath uint16 // Player only.
28764 EyeHeight float32 // Player only.
28765 ZoomFOV float32 // in degrees. Player only.
28766 UseTextureAlpha bool
28767 DmgTextureMod Texture // suffix
28770 NametagBG color.NRGBA
28771 }))(obj)).UseTextureAlpha
28778 if err := pcall(func() {
28780 MaxHP uint16 // Player only.
28781 CollideWithNodes bool
28782 Weight float32 // deprecated
28786 VisualSize [3]float32
28788 SpriteSheetSize [2]int16 // in sprites.
28789 SpritePos [2]int16 // in sprite sheet.
28791 MakeFootstepSnds bool
28792 RotateSpeed float32 // in radians per second.
28794 Colors []color.NRGBA
28795 CollideWithAOs bool
28798 FaceRotateDirOff float32 // in degrees.
28801 NametagColor color.NRGBA
28802 FaceRotateSpeed float32 // in degrees per second.
28806 MaxBreath uint16 // Player only.
28807 EyeHeight float32 // Player only.
28808 ZoomFOV float32 // in degrees. Player only.
28809 UseTextureAlpha bool
28810 DmgTextureMod Texture // suffix
28813 NametagBG color.NRGBA
28814 }))(obj)).DmgTextureMod).serialize(w)
28819 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
28823 MaxHP uint16 // Player only.
28824 CollideWithNodes bool
28825 Weight float32 // deprecated
28829 VisualSize [3]float32
28831 SpriteSheetSize [2]int16 // in sprites.
28832 SpritePos [2]int16 // in sprite sheet.
28834 MakeFootstepSnds bool
28835 RotateSpeed float32 // in radians per second.
28837 Colors []color.NRGBA
28838 CollideWithAOs bool
28841 FaceRotateDirOff float32 // in degrees.
28844 NametagColor color.NRGBA
28845 FaceRotateSpeed float32 // in degrees per second.
28849 MaxBreath uint16 // Player only.
28850 EyeHeight float32 // Player only.
28851 ZoomFOV float32 // in degrees. Player only.
28852 UseTextureAlpha bool
28853 DmgTextureMod Texture // suffix
28856 NametagBG color.NRGBA
28866 MaxHP uint16 // Player only.
28867 CollideWithNodes bool
28868 Weight float32 // deprecated
28872 VisualSize [3]float32
28874 SpriteSheetSize [2]int16 // in sprites.
28875 SpritePos [2]int16 // in sprite sheet.
28877 MakeFootstepSnds bool
28878 RotateSpeed float32 // in radians per second.
28880 Colors []color.NRGBA
28881 CollideWithAOs bool
28884 FaceRotateDirOff float32 // in degrees.
28887 NametagColor color.NRGBA
28888 FaceRotateSpeed float32 // in degrees per second.
28892 MaxBreath uint16 // Player only.
28893 EyeHeight float32 // Player only.
28894 ZoomFOV float32 // in degrees. Player only.
28895 UseTextureAlpha bool
28896 DmgTextureMod Texture // suffix
28899 NametagBG color.NRGBA
28900 }))(obj)).ShowOnMinimap
28909 MaxHP uint16 // Player only.
28910 CollideWithNodes bool
28911 Weight float32 // deprecated
28915 VisualSize [3]float32
28917 SpriteSheetSize [2]int16 // in sprites.
28918 SpritePos [2]int16 // in sprite sheet.
28920 MakeFootstepSnds bool
28921 RotateSpeed float32 // in radians per second.
28923 Colors []color.NRGBA
28924 CollideWithAOs bool
28927 FaceRotateDirOff float32 // in degrees.
28930 NametagColor color.NRGBA
28931 FaceRotateSpeed float32 // in degrees per second.
28935 MaxBreath uint16 // Player only.
28936 EyeHeight float32 // Player only.
28937 ZoomFOV float32 // in degrees. Player only.
28938 UseTextureAlpha bool
28939 DmgTextureMod Texture // suffix
28942 NametagBG color.NRGBA
28943 }))(obj)).NametagBG
28944 w.Write([]byte{x.A, x.R, x.G, x.B})
28948 func (obj *AOProps) deserialize(r io.Reader) {
28951 local340 := uint8(4)
28956 if local339 != local340 {
28957 chk(fmt.Errorf("const %v: %v", "uint8(4)", local339))
28961 p := &(*(*(struct {
28962 MaxHP uint16 // Player only.
28963 CollideWithNodes bool
28964 Weight float32 // deprecated
28968 VisualSize [3]float32
28970 SpriteSheetSize [2]int16 // in sprites.
28971 SpritePos [2]int16 // in sprite sheet.
28973 MakeFootstepSnds bool
28974 RotateSpeed float32 // in radians per second.
28976 Colors []color.NRGBA
28977 CollideWithAOs bool
28980 FaceRotateDirOff float32 // in degrees.
28983 NametagColor color.NRGBA
28984 FaceRotateSpeed float32 // in degrees per second.
28988 MaxBreath uint16 // Player only.
28989 EyeHeight float32 // Player only.
28990 ZoomFOV float32 // in degrees. Player only.
28991 UseTextureAlpha bool
28992 DmgTextureMod Texture // suffix
28995 NametagBG color.NRGBA
29000 p := &(*(*(struct {
29001 MaxHP uint16 // Player only.
29002 CollideWithNodes bool
29003 Weight float32 // deprecated
29007 VisualSize [3]float32
29009 SpriteSheetSize [2]int16 // in sprites.
29010 SpritePos [2]int16 // in sprite sheet.
29012 MakeFootstepSnds bool
29013 RotateSpeed float32 // in radians per second.
29015 Colors []color.NRGBA
29016 CollideWithAOs bool
29019 FaceRotateDirOff float32 // in degrees.
29022 NametagColor color.NRGBA
29023 FaceRotateSpeed float32 // in degrees per second.
29027 MaxBreath uint16 // Player only.
29028 EyeHeight float32 // Player only.
29029 ZoomFOV float32 // in degrees. Player only.
29030 UseTextureAlpha bool
29031 DmgTextureMod Texture // suffix
29034 NametagBG color.NRGBA
29035 }))(obj)).CollideWithNodes
29036 switch n := read8(r); n {
29042 chk(fmt.Errorf("invalid bool: %d", n))
29046 p := &(*(*(struct {
29047 MaxHP uint16 // Player only.
29048 CollideWithNodes bool
29049 Weight float32 // deprecated
29053 VisualSize [3]float32
29055 SpriteSheetSize [2]int16 // in sprites.
29056 SpritePos [2]int16 // in sprite sheet.
29058 MakeFootstepSnds bool
29059 RotateSpeed float32 // in radians per second.
29061 Colors []color.NRGBA
29062 CollideWithAOs bool
29065 FaceRotateDirOff float32 // in degrees.
29068 NametagColor color.NRGBA
29069 FaceRotateSpeed float32 // in degrees per second.
29073 MaxBreath uint16 // Player only.
29074 EyeHeight float32 // Player only.
29075 ZoomFOV float32 // in degrees. Player only.
29076 UseTextureAlpha bool
29077 DmgTextureMod Texture // suffix
29080 NametagBG color.NRGBA
29082 *p = math.Float32frombits(read32(r))
29084 if err := pcall(func() {
29086 MaxHP uint16 // Player only.
29087 CollideWithNodes bool
29088 Weight float32 // deprecated
29092 VisualSize [3]float32
29094 SpriteSheetSize [2]int16 // in sprites.
29095 SpritePos [2]int16 // in sprite sheet.
29097 MakeFootstepSnds bool
29098 RotateSpeed float32 // in radians per second.
29100 Colors []color.NRGBA
29101 CollideWithAOs bool
29104 FaceRotateDirOff float32 // in degrees.
29107 NametagColor color.NRGBA
29108 FaceRotateSpeed float32 // in degrees per second.
29112 MaxBreath uint16 // Player only.
29113 EyeHeight float32 // Player only.
29114 ZoomFOV float32 // in degrees. Player only.
29115 UseTextureAlpha bool
29116 DmgTextureMod Texture // suffix
29119 NametagBG color.NRGBA
29120 }))(obj)).ColBox).deserialize(r)
29125 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29127 if err := pcall(func() {
29129 MaxHP uint16 // Player only.
29130 CollideWithNodes bool
29131 Weight float32 // deprecated
29135 VisualSize [3]float32
29137 SpriteSheetSize [2]int16 // in sprites.
29138 SpritePos [2]int16 // in sprite sheet.
29140 MakeFootstepSnds bool
29141 RotateSpeed float32 // in radians per second.
29143 Colors []color.NRGBA
29144 CollideWithAOs bool
29147 FaceRotateDirOff float32 // in degrees.
29150 NametagColor color.NRGBA
29151 FaceRotateSpeed float32 // in degrees per second.
29155 MaxBreath uint16 // Player only.
29156 EyeHeight float32 // Player only.
29157 ZoomFOV float32 // in degrees. Player only.
29158 UseTextureAlpha bool
29159 DmgTextureMod Texture // suffix
29162 NametagBG color.NRGBA
29163 }))(obj)).SelBox).deserialize(r)
29168 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
29171 p := &(*(*(struct {
29172 MaxHP uint16 // Player only.
29173 CollideWithNodes bool
29174 Weight float32 // deprecated
29178 VisualSize [3]float32
29180 SpriteSheetSize [2]int16 // in sprites.
29181 SpritePos [2]int16 // in sprite sheet.
29183 MakeFootstepSnds bool
29184 RotateSpeed float32 // in radians per second.
29186 Colors []color.NRGBA
29187 CollideWithAOs bool
29190 FaceRotateDirOff float32 // in degrees.
29193 NametagColor color.NRGBA
29194 FaceRotateSpeed float32 // in degrees per second.
29198 MaxBreath uint16 // Player only.
29199 EyeHeight float32 // Player only.
29200 ZoomFOV float32 // in degrees. Player only.
29201 UseTextureAlpha bool
29202 DmgTextureMod Texture // suffix
29205 NametagBG color.NRGBA
29206 }))(obj)).Pointable
29207 switch n := read8(r); n {
29213 chk(fmt.Errorf("invalid bool: %d", n))
29216 var local341 []uint8
29217 var local342 uint16
29222 (local341) = make([]uint8, local342)
29224 _, err := io.ReadFull(r, (local341)[:])
29228 MaxHP uint16 // Player only.
29229 CollideWithNodes bool
29230 Weight float32 // deprecated
29234 VisualSize [3]float32
29236 SpriteSheetSize [2]int16 // in sprites.
29237 SpritePos [2]int16 // in sprite sheet.
29239 MakeFootstepSnds bool
29240 RotateSpeed float32 // in radians per second.
29242 Colors []color.NRGBA
29243 CollideWithAOs bool
29246 FaceRotateDirOff float32 // in degrees.
29249 NametagColor color.NRGBA
29250 FaceRotateSpeed float32 // in degrees per second.
29254 MaxBreath uint16 // Player only.
29255 EyeHeight float32 // Player only.
29256 ZoomFOV float32 // in degrees. Player only.
29257 UseTextureAlpha bool
29258 DmgTextureMod Texture // suffix
29261 NametagBG color.NRGBA
29262 }))(obj)).Visual) = string(local341)
29263 for local343 := range (*(*(struct {
29264 MaxHP uint16 // Player only.
29265 CollideWithNodes bool
29266 Weight float32 // deprecated
29270 VisualSize [3]float32
29272 SpriteSheetSize [2]int16 // in sprites.
29273 SpritePos [2]int16 // in sprite sheet.
29275 MakeFootstepSnds bool
29276 RotateSpeed float32 // in radians per second.
29278 Colors []color.NRGBA
29279 CollideWithAOs bool
29282 FaceRotateDirOff float32 // in degrees.
29285 NametagColor color.NRGBA
29286 FaceRotateSpeed float32 // in degrees per second.
29290 MaxBreath uint16 // Player only.
29291 EyeHeight float32 // Player only.
29292 ZoomFOV float32 // in degrees. Player only.
29293 UseTextureAlpha bool
29294 DmgTextureMod Texture // suffix
29297 NametagBG color.NRGBA
29298 }))(obj)).VisualSize {
29300 p := &((*(*(struct {
29301 MaxHP uint16 // Player only.
29302 CollideWithNodes bool
29303 Weight float32 // deprecated
29307 VisualSize [3]float32
29309 SpriteSheetSize [2]int16 // in sprites.
29310 SpritePos [2]int16 // in sprite sheet.
29312 MakeFootstepSnds bool
29313 RotateSpeed float32 // in radians per second.
29315 Colors []color.NRGBA
29316 CollideWithAOs bool
29319 FaceRotateDirOff float32 // in degrees.
29322 NametagColor color.NRGBA
29323 FaceRotateSpeed float32 // in degrees per second.
29327 MaxBreath uint16 // Player only.
29328 EyeHeight float32 // Player only.
29329 ZoomFOV float32 // in degrees. Player only.
29330 UseTextureAlpha bool
29331 DmgTextureMod Texture // suffix
29334 NametagBG color.NRGBA
29335 }))(obj)).VisualSize)[local343]
29336 *p = math.Float32frombits(read32(r))
29339 var local344 uint16
29345 MaxHP uint16 // Player only.
29346 CollideWithNodes bool
29347 Weight float32 // deprecated
29351 VisualSize [3]float32
29353 SpriteSheetSize [2]int16 // in sprites.
29354 SpritePos [2]int16 // in sprite sheet.
29356 MakeFootstepSnds bool
29357 RotateSpeed float32 // in radians per second.
29359 Colors []color.NRGBA
29360 CollideWithAOs bool
29363 FaceRotateDirOff float32 // in degrees.
29366 NametagColor color.NRGBA
29367 FaceRotateSpeed float32 // in degrees per second.
29371 MaxBreath uint16 // Player only.
29372 EyeHeight float32 // Player only.
29373 ZoomFOV float32 // in degrees. Player only.
29374 UseTextureAlpha bool
29375 DmgTextureMod Texture // suffix
29378 NametagBG color.NRGBA
29379 }))(obj)).Textures) = make([]Texture, local344)
29380 for local345 := range (*(*(struct {
29381 MaxHP uint16 // Player only.
29382 CollideWithNodes bool
29383 Weight float32 // deprecated
29387 VisualSize [3]float32
29389 SpriteSheetSize [2]int16 // in sprites.
29390 SpritePos [2]int16 // in sprite sheet.
29392 MakeFootstepSnds bool
29393 RotateSpeed float32 // in radians per second.
29395 Colors []color.NRGBA
29396 CollideWithAOs bool
29399 FaceRotateDirOff float32 // in degrees.
29402 NametagColor color.NRGBA
29403 FaceRotateSpeed float32 // in degrees per second.
29407 MaxBreath uint16 // Player only.
29408 EyeHeight float32 // Player only.
29409 ZoomFOV float32 // in degrees. Player only.
29410 UseTextureAlpha bool
29411 DmgTextureMod Texture // suffix
29414 NametagBG color.NRGBA
29415 }))(obj)).Textures {
29416 if err := pcall(func() {
29418 MaxHP uint16 // Player only.
29419 CollideWithNodes bool
29420 Weight float32 // deprecated
29424 VisualSize [3]float32
29426 SpriteSheetSize [2]int16 // in sprites.
29427 SpritePos [2]int16 // in sprite sheet.
29429 MakeFootstepSnds bool
29430 RotateSpeed float32 // in radians per second.
29432 Colors []color.NRGBA
29433 CollideWithAOs bool
29436 FaceRotateDirOff float32 // in degrees.
29439 NametagColor color.NRGBA
29440 FaceRotateSpeed float32 // in degrees per second.
29444 MaxBreath uint16 // Player only.
29445 EyeHeight float32 // Player only.
29446 ZoomFOV float32 // in degrees. Player only.
29447 UseTextureAlpha bool
29448 DmgTextureMod Texture // suffix
29451 NametagBG color.NRGBA
29452 }))(obj)).Textures)[local345]).deserialize(r)
29457 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
29460 for local346 := range (*(*(struct {
29461 MaxHP uint16 // Player only.
29462 CollideWithNodes bool
29463 Weight float32 // deprecated
29467 VisualSize [3]float32
29469 SpriteSheetSize [2]int16 // in sprites.
29470 SpritePos [2]int16 // in sprite sheet.
29472 MakeFootstepSnds bool
29473 RotateSpeed float32 // in radians per second.
29475 Colors []color.NRGBA
29476 CollideWithAOs bool
29479 FaceRotateDirOff float32 // in degrees.
29482 NametagColor color.NRGBA
29483 FaceRotateSpeed float32 // in degrees per second.
29487 MaxBreath uint16 // Player only.
29488 EyeHeight float32 // Player only.
29489 ZoomFOV float32 // in degrees. Player only.
29490 UseTextureAlpha bool
29491 DmgTextureMod Texture // suffix
29494 NametagBG color.NRGBA
29495 }))(obj)).SpriteSheetSize {
29497 p := &((*(*(struct {
29498 MaxHP uint16 // Player only.
29499 CollideWithNodes bool
29500 Weight float32 // deprecated
29504 VisualSize [3]float32
29506 SpriteSheetSize [2]int16 // in sprites.
29507 SpritePos [2]int16 // in sprite sheet.
29509 MakeFootstepSnds bool
29510 RotateSpeed float32 // in radians per second.
29512 Colors []color.NRGBA
29513 CollideWithAOs bool
29516 FaceRotateDirOff float32 // in degrees.
29519 NametagColor color.NRGBA
29520 FaceRotateSpeed float32 // in degrees per second.
29524 MaxBreath uint16 // Player only.
29525 EyeHeight float32 // Player only.
29526 ZoomFOV float32 // in degrees. Player only.
29527 UseTextureAlpha bool
29528 DmgTextureMod Texture // suffix
29531 NametagBG color.NRGBA
29532 }))(obj)).SpriteSheetSize)[local346]
29533 *p = int16(read16(r))
29536 for local347 := range (*(*(struct {
29537 MaxHP uint16 // Player only.
29538 CollideWithNodes bool
29539 Weight float32 // deprecated
29543 VisualSize [3]float32
29545 SpriteSheetSize [2]int16 // in sprites.
29546 SpritePos [2]int16 // in sprite sheet.
29548 MakeFootstepSnds bool
29549 RotateSpeed float32 // in radians per second.
29551 Colors []color.NRGBA
29552 CollideWithAOs bool
29555 FaceRotateDirOff float32 // in degrees.
29558 NametagColor color.NRGBA
29559 FaceRotateSpeed float32 // in degrees per second.
29563 MaxBreath uint16 // Player only.
29564 EyeHeight float32 // Player only.
29565 ZoomFOV float32 // in degrees. Player only.
29566 UseTextureAlpha bool
29567 DmgTextureMod Texture // suffix
29570 NametagBG color.NRGBA
29571 }))(obj)).SpritePos {
29573 p := &((*(*(struct {
29574 MaxHP uint16 // Player only.
29575 CollideWithNodes bool
29576 Weight float32 // deprecated
29580 VisualSize [3]float32
29582 SpriteSheetSize [2]int16 // in sprites.
29583 SpritePos [2]int16 // in sprite sheet.
29585 MakeFootstepSnds bool
29586 RotateSpeed float32 // in radians per second.
29588 Colors []color.NRGBA
29589 CollideWithAOs bool
29592 FaceRotateDirOff float32 // in degrees.
29595 NametagColor color.NRGBA
29596 FaceRotateSpeed float32 // in degrees per second.
29600 MaxBreath uint16 // Player only.
29601 EyeHeight float32 // Player only.
29602 ZoomFOV float32 // in degrees. Player only.
29603 UseTextureAlpha bool
29604 DmgTextureMod Texture // suffix
29607 NametagBG color.NRGBA
29608 }))(obj)).SpritePos)[local347]
29609 *p = int16(read16(r))
29613 p := &(*(*(struct {
29614 MaxHP uint16 // Player only.
29615 CollideWithNodes bool
29616 Weight float32 // deprecated
29620 VisualSize [3]float32
29622 SpriteSheetSize [2]int16 // in sprites.
29623 SpritePos [2]int16 // in sprite sheet.
29625 MakeFootstepSnds bool
29626 RotateSpeed float32 // in radians per second.
29628 Colors []color.NRGBA
29629 CollideWithAOs bool
29632 FaceRotateDirOff float32 // in degrees.
29635 NametagColor color.NRGBA
29636 FaceRotateSpeed float32 // in degrees per second.
29640 MaxBreath uint16 // Player only.
29641 EyeHeight float32 // Player only.
29642 ZoomFOV float32 // in degrees. Player only.
29643 UseTextureAlpha bool
29644 DmgTextureMod Texture // suffix
29647 NametagBG color.NRGBA
29649 switch n := read8(r); n {
29655 chk(fmt.Errorf("invalid bool: %d", n))
29659 p := &(*(*(struct {
29660 MaxHP uint16 // Player only.
29661 CollideWithNodes bool
29662 Weight float32 // deprecated
29666 VisualSize [3]float32
29668 SpriteSheetSize [2]int16 // in sprites.
29669 SpritePos [2]int16 // in sprite sheet.
29671 MakeFootstepSnds bool
29672 RotateSpeed float32 // in radians per second.
29674 Colors []color.NRGBA
29675 CollideWithAOs bool
29678 FaceRotateDirOff float32 // in degrees.
29681 NametagColor color.NRGBA
29682 FaceRotateSpeed float32 // in degrees per second.
29686 MaxBreath uint16 // Player only.
29687 EyeHeight float32 // Player only.
29688 ZoomFOV float32 // in degrees. Player only.
29689 UseTextureAlpha bool
29690 DmgTextureMod Texture // suffix
29693 NametagBG color.NRGBA
29694 }))(obj)).MakeFootstepSnds
29695 switch n := read8(r); n {
29701 chk(fmt.Errorf("invalid bool: %d", n))
29705 p := &(*(*(struct {
29706 MaxHP uint16 // Player only.
29707 CollideWithNodes bool
29708 Weight float32 // deprecated
29712 VisualSize [3]float32
29714 SpriteSheetSize [2]int16 // in sprites.
29715 SpritePos [2]int16 // in sprite sheet.
29717 MakeFootstepSnds bool
29718 RotateSpeed float32 // in radians per second.
29720 Colors []color.NRGBA
29721 CollideWithAOs bool
29724 FaceRotateDirOff float32 // in degrees.
29727 NametagColor color.NRGBA
29728 FaceRotateSpeed float32 // in degrees per second.
29732 MaxBreath uint16 // Player only.
29733 EyeHeight float32 // Player only.
29734 ZoomFOV float32 // in degrees. Player only.
29735 UseTextureAlpha bool
29736 DmgTextureMod Texture // suffix
29739 NametagBG color.NRGBA
29740 }))(obj)).RotateSpeed
29741 *p = math.Float32frombits(read32(r))
29743 var local348 []uint8
29744 var local349 uint16
29749 (local348) = make([]uint8, local349)
29751 _, err := io.ReadFull(r, (local348)[:])
29755 MaxHP uint16 // Player only.
29756 CollideWithNodes bool
29757 Weight float32 // deprecated
29761 VisualSize [3]float32
29763 SpriteSheetSize [2]int16 // in sprites.
29764 SpritePos [2]int16 // in sprite sheet.
29766 MakeFootstepSnds bool
29767 RotateSpeed float32 // in radians per second.
29769 Colors []color.NRGBA
29770 CollideWithAOs bool
29773 FaceRotateDirOff float32 // in degrees.
29776 NametagColor color.NRGBA
29777 FaceRotateSpeed float32 // in degrees per second.
29781 MaxBreath uint16 // Player only.
29782 EyeHeight float32 // Player only.
29783 ZoomFOV float32 // in degrees. Player only.
29784 UseTextureAlpha bool
29785 DmgTextureMod Texture // suffix
29788 NametagBG color.NRGBA
29789 }))(obj)).Mesh) = string(local348)
29790 var local350 uint16
29796 MaxHP uint16 // Player only.
29797 CollideWithNodes bool
29798 Weight float32 // deprecated
29802 VisualSize [3]float32
29804 SpriteSheetSize [2]int16 // in sprites.
29805 SpritePos [2]int16 // in sprite sheet.
29807 MakeFootstepSnds bool
29808 RotateSpeed float32 // in radians per second.
29810 Colors []color.NRGBA
29811 CollideWithAOs bool
29814 FaceRotateDirOff float32 // in degrees.
29817 NametagColor color.NRGBA
29818 FaceRotateSpeed float32 // in degrees per second.
29822 MaxBreath uint16 // Player only.
29823 EyeHeight float32 // Player only.
29824 ZoomFOV float32 // in degrees. Player only.
29825 UseTextureAlpha bool
29826 DmgTextureMod Texture // suffix
29829 NametagBG color.NRGBA
29830 }))(obj)).Colors) = make([]color.NRGBA, local350)
29831 for local351 := range (*(*(struct {
29832 MaxHP uint16 // Player only.
29833 CollideWithNodes bool
29834 Weight float32 // deprecated
29838 VisualSize [3]float32
29840 SpriteSheetSize [2]int16 // in sprites.
29841 SpritePos [2]int16 // in sprite sheet.
29843 MakeFootstepSnds bool
29844 RotateSpeed float32 // in radians per second.
29846 Colors []color.NRGBA
29847 CollideWithAOs bool
29850 FaceRotateDirOff float32 // in degrees.
29853 NametagColor color.NRGBA
29854 FaceRotateSpeed float32 // in degrees per second.
29858 MaxBreath uint16 // Player only.
29859 EyeHeight float32 // Player only.
29860 ZoomFOV float32 // in degrees. Player only.
29861 UseTextureAlpha bool
29862 DmgTextureMod Texture // suffix
29865 NametagBG color.NRGBA
29868 p := &((*(*(struct {
29869 MaxHP uint16 // Player only.
29870 CollideWithNodes bool
29871 Weight float32 // deprecated
29875 VisualSize [3]float32
29877 SpriteSheetSize [2]int16 // in sprites.
29878 SpritePos [2]int16 // in sprite sheet.
29880 MakeFootstepSnds bool
29881 RotateSpeed float32 // in radians per second.
29883 Colors []color.NRGBA
29884 CollideWithAOs bool
29887 FaceRotateDirOff float32 // in degrees.
29890 NametagColor color.NRGBA
29891 FaceRotateSpeed float32 // in degrees per second.
29895 MaxBreath uint16 // Player only.
29896 EyeHeight float32 // Player only.
29897 ZoomFOV float32 // in degrees. Player only.
29898 UseTextureAlpha bool
29899 DmgTextureMod Texture // suffix
29902 NametagBG color.NRGBA
29903 }))(obj)).Colors)[local351]
29904 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
29908 p := &(*(*(struct {
29909 MaxHP uint16 // Player only.
29910 CollideWithNodes bool
29911 Weight float32 // deprecated
29915 VisualSize [3]float32
29917 SpriteSheetSize [2]int16 // in sprites.
29918 SpritePos [2]int16 // in sprite sheet.
29920 MakeFootstepSnds bool
29921 RotateSpeed float32 // in radians per second.
29923 Colors []color.NRGBA
29924 CollideWithAOs bool
29927 FaceRotateDirOff float32 // in degrees.
29930 NametagColor color.NRGBA
29931 FaceRotateSpeed float32 // in degrees per second.
29935 MaxBreath uint16 // Player only.
29936 EyeHeight float32 // Player only.
29937 ZoomFOV float32 // in degrees. Player only.
29938 UseTextureAlpha bool
29939 DmgTextureMod Texture // suffix
29942 NametagBG color.NRGBA
29943 }))(obj)).CollideWithAOs
29944 switch n := read8(r); n {
29950 chk(fmt.Errorf("invalid bool: %d", n))
29954 p := &(*(*(struct {
29955 MaxHP uint16 // Player only.
29956 CollideWithNodes bool
29957 Weight float32 // deprecated
29961 VisualSize [3]float32
29963 SpriteSheetSize [2]int16 // in sprites.
29964 SpritePos [2]int16 // in sprite sheet.
29966 MakeFootstepSnds bool
29967 RotateSpeed float32 // in radians per second.
29969 Colors []color.NRGBA
29970 CollideWithAOs bool
29973 FaceRotateDirOff float32 // in degrees.
29976 NametagColor color.NRGBA
29977 FaceRotateSpeed float32 // in degrees per second.
29981 MaxBreath uint16 // Player only.
29982 EyeHeight float32 // Player only.
29983 ZoomFOV float32 // in degrees. Player only.
29984 UseTextureAlpha bool
29985 DmgTextureMod Texture // suffix
29988 NametagBG color.NRGBA
29989 }))(obj)).StepHeight
29990 *p = math.Float32frombits(read32(r))
29993 p := &(*(*(struct {
29994 MaxHP uint16 // Player only.
29995 CollideWithNodes bool
29996 Weight float32 // deprecated
30000 VisualSize [3]float32
30002 SpriteSheetSize [2]int16 // in sprites.
30003 SpritePos [2]int16 // in sprite sheet.
30005 MakeFootstepSnds bool
30006 RotateSpeed float32 // in radians per second.
30008 Colors []color.NRGBA
30009 CollideWithAOs bool
30012 FaceRotateDirOff float32 // in degrees.
30015 NametagColor color.NRGBA
30016 FaceRotateSpeed float32 // in degrees per second.
30020 MaxBreath uint16 // Player only.
30021 EyeHeight float32 // Player only.
30022 ZoomFOV float32 // in degrees. Player only.
30023 UseTextureAlpha bool
30024 DmgTextureMod Texture // suffix
30027 NametagBG color.NRGBA
30028 }))(obj)).FaceRotateDir
30029 switch n := read8(r); n {
30035 chk(fmt.Errorf("invalid bool: %d", n))
30039 p := &(*(*(struct {
30040 MaxHP uint16 // Player only.
30041 CollideWithNodes bool
30042 Weight float32 // deprecated
30046 VisualSize [3]float32
30048 SpriteSheetSize [2]int16 // in sprites.
30049 SpritePos [2]int16 // in sprite sheet.
30051 MakeFootstepSnds bool
30052 RotateSpeed float32 // in radians per second.
30054 Colors []color.NRGBA
30055 CollideWithAOs bool
30058 FaceRotateDirOff float32 // in degrees.
30061 NametagColor color.NRGBA
30062 FaceRotateSpeed float32 // in degrees per second.
30066 MaxBreath uint16 // Player only.
30067 EyeHeight float32 // Player only.
30068 ZoomFOV float32 // in degrees. Player only.
30069 UseTextureAlpha bool
30070 DmgTextureMod Texture // suffix
30073 NametagBG color.NRGBA
30074 }))(obj)).FaceRotateDirOff
30075 *p = math.Float32frombits(read32(r))
30078 p := &(*(*(struct {
30079 MaxHP uint16 // Player only.
30080 CollideWithNodes bool
30081 Weight float32 // deprecated
30085 VisualSize [3]float32
30087 SpriteSheetSize [2]int16 // in sprites.
30088 SpritePos [2]int16 // in sprite sheet.
30090 MakeFootstepSnds bool
30091 RotateSpeed float32 // in radians per second.
30093 Colors []color.NRGBA
30094 CollideWithAOs bool
30097 FaceRotateDirOff float32 // in degrees.
30100 NametagColor color.NRGBA
30101 FaceRotateSpeed float32 // in degrees per second.
30105 MaxBreath uint16 // Player only.
30106 EyeHeight float32 // Player only.
30107 ZoomFOV float32 // in degrees. Player only.
30108 UseTextureAlpha bool
30109 DmgTextureMod Texture // suffix
30112 NametagBG color.NRGBA
30113 }))(obj)).BackfaceCull
30114 switch n := read8(r); n {
30120 chk(fmt.Errorf("invalid bool: %d", n))
30123 var local352 []uint8
30124 var local353 uint16
30129 (local352) = make([]uint8, local353)
30131 _, err := io.ReadFull(r, (local352)[:])
30135 MaxHP uint16 // Player only.
30136 CollideWithNodes bool
30137 Weight float32 // deprecated
30141 VisualSize [3]float32
30143 SpriteSheetSize [2]int16 // in sprites.
30144 SpritePos [2]int16 // in sprite sheet.
30146 MakeFootstepSnds bool
30147 RotateSpeed float32 // in radians per second.
30149 Colors []color.NRGBA
30150 CollideWithAOs bool
30153 FaceRotateDirOff float32 // in degrees.
30156 NametagColor color.NRGBA
30157 FaceRotateSpeed float32 // in degrees per second.
30161 MaxBreath uint16 // Player only.
30162 EyeHeight float32 // Player only.
30163 ZoomFOV float32 // in degrees. Player only.
30164 UseTextureAlpha bool
30165 DmgTextureMod Texture // suffix
30168 NametagBG color.NRGBA
30169 }))(obj)).Nametag) = string(local352)
30171 p := &(*(*(struct {
30172 MaxHP uint16 // Player only.
30173 CollideWithNodes bool
30174 Weight float32 // deprecated
30178 VisualSize [3]float32
30180 SpriteSheetSize [2]int16 // in sprites.
30181 SpritePos [2]int16 // in sprite sheet.
30183 MakeFootstepSnds bool
30184 RotateSpeed float32 // in radians per second.
30186 Colors []color.NRGBA
30187 CollideWithAOs bool
30190 FaceRotateDirOff float32 // in degrees.
30193 NametagColor color.NRGBA
30194 FaceRotateSpeed float32 // in degrees per second.
30198 MaxBreath uint16 // Player only.
30199 EyeHeight float32 // Player only.
30200 ZoomFOV float32 // in degrees. Player only.
30201 UseTextureAlpha bool
30202 DmgTextureMod Texture // suffix
30205 NametagBG color.NRGBA
30206 }))(obj)).NametagColor
30207 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30210 p := &(*(*(struct {
30211 MaxHP uint16 // Player only.
30212 CollideWithNodes bool
30213 Weight float32 // deprecated
30217 VisualSize [3]float32
30219 SpriteSheetSize [2]int16 // in sprites.
30220 SpritePos [2]int16 // in sprite sheet.
30222 MakeFootstepSnds bool
30223 RotateSpeed float32 // in radians per second.
30225 Colors []color.NRGBA
30226 CollideWithAOs bool
30229 FaceRotateDirOff float32 // in degrees.
30232 NametagColor color.NRGBA
30233 FaceRotateSpeed float32 // in degrees per second.
30237 MaxBreath uint16 // Player only.
30238 EyeHeight float32 // Player only.
30239 ZoomFOV float32 // in degrees. Player only.
30240 UseTextureAlpha bool
30241 DmgTextureMod Texture // suffix
30244 NametagBG color.NRGBA
30245 }))(obj)).FaceRotateSpeed
30246 *p = math.Float32frombits(read32(r))
30248 var local354 []uint8
30249 var local355 uint16
30254 (local354) = make([]uint8, local355)
30256 _, err := io.ReadFull(r, (local354)[:])
30260 MaxHP uint16 // Player only.
30261 CollideWithNodes bool
30262 Weight float32 // deprecated
30266 VisualSize [3]float32
30268 SpriteSheetSize [2]int16 // in sprites.
30269 SpritePos [2]int16 // in sprite sheet.
30271 MakeFootstepSnds bool
30272 RotateSpeed float32 // in radians per second.
30274 Colors []color.NRGBA
30275 CollideWithAOs bool
30278 FaceRotateDirOff float32 // in degrees.
30281 NametagColor color.NRGBA
30282 FaceRotateSpeed float32 // in degrees per second.
30286 MaxBreath uint16 // Player only.
30287 EyeHeight float32 // Player only.
30288 ZoomFOV float32 // in degrees. Player only.
30289 UseTextureAlpha bool
30290 DmgTextureMod Texture // suffix
30293 NametagBG color.NRGBA
30294 }))(obj)).Infotext) = string(local354)
30295 var local356 []uint8
30296 var local357 uint16
30301 (local356) = make([]uint8, local357)
30303 _, err := io.ReadFull(r, (local356)[:])
30307 MaxHP uint16 // Player only.
30308 CollideWithNodes bool
30309 Weight float32 // deprecated
30313 VisualSize [3]float32
30315 SpriteSheetSize [2]int16 // in sprites.
30316 SpritePos [2]int16 // in sprite sheet.
30318 MakeFootstepSnds bool
30319 RotateSpeed float32 // in radians per second.
30321 Colors []color.NRGBA
30322 CollideWithAOs bool
30325 FaceRotateDirOff float32 // in degrees.
30328 NametagColor color.NRGBA
30329 FaceRotateSpeed float32 // in degrees per second.
30333 MaxBreath uint16 // Player only.
30334 EyeHeight float32 // Player only.
30335 ZoomFOV float32 // in degrees. Player only.
30336 UseTextureAlpha bool
30337 DmgTextureMod Texture // suffix
30340 NametagBG color.NRGBA
30341 }))(obj)).Itemstring) = string(local356)
30343 p := &(*(*(struct {
30344 MaxHP uint16 // Player only.
30345 CollideWithNodes bool
30346 Weight float32 // deprecated
30350 VisualSize [3]float32
30352 SpriteSheetSize [2]int16 // in sprites.
30353 SpritePos [2]int16 // in sprite sheet.
30355 MakeFootstepSnds bool
30356 RotateSpeed float32 // in radians per second.
30358 Colors []color.NRGBA
30359 CollideWithAOs bool
30362 FaceRotateDirOff float32 // in degrees.
30365 NametagColor color.NRGBA
30366 FaceRotateSpeed float32 // in degrees per second.
30370 MaxBreath uint16 // Player only.
30371 EyeHeight float32 // Player only.
30372 ZoomFOV float32 // in degrees. Player only.
30373 UseTextureAlpha bool
30374 DmgTextureMod Texture // suffix
30377 NametagBG color.NRGBA
30379 *p = int8(read8(r))
30382 p := &(*(*(struct {
30383 MaxHP uint16 // Player only.
30384 CollideWithNodes bool
30385 Weight float32 // deprecated
30389 VisualSize [3]float32
30391 SpriteSheetSize [2]int16 // in sprites.
30392 SpritePos [2]int16 // in sprite sheet.
30394 MakeFootstepSnds bool
30395 RotateSpeed float32 // in radians per second.
30397 Colors []color.NRGBA
30398 CollideWithAOs bool
30401 FaceRotateDirOff float32 // in degrees.
30404 NametagColor color.NRGBA
30405 FaceRotateSpeed float32 // in degrees per second.
30409 MaxBreath uint16 // Player only.
30410 EyeHeight float32 // Player only.
30411 ZoomFOV float32 // in degrees. Player only.
30412 UseTextureAlpha bool
30413 DmgTextureMod Texture // suffix
30416 NametagBG color.NRGBA
30417 }))(obj)).MaxBreath
30421 p := &(*(*(struct {
30422 MaxHP uint16 // Player only.
30423 CollideWithNodes bool
30424 Weight float32 // deprecated
30428 VisualSize [3]float32
30430 SpriteSheetSize [2]int16 // in sprites.
30431 SpritePos [2]int16 // in sprite sheet.
30433 MakeFootstepSnds bool
30434 RotateSpeed float32 // in radians per second.
30436 Colors []color.NRGBA
30437 CollideWithAOs bool
30440 FaceRotateDirOff float32 // in degrees.
30443 NametagColor color.NRGBA
30444 FaceRotateSpeed float32 // in degrees per second.
30448 MaxBreath uint16 // Player only.
30449 EyeHeight float32 // Player only.
30450 ZoomFOV float32 // in degrees. Player only.
30451 UseTextureAlpha bool
30452 DmgTextureMod Texture // suffix
30455 NametagBG color.NRGBA
30456 }))(obj)).EyeHeight
30457 *p = math.Float32frombits(read32(r))
30460 p := &(*(*(struct {
30461 MaxHP uint16 // Player only.
30462 CollideWithNodes bool
30463 Weight float32 // deprecated
30467 VisualSize [3]float32
30469 SpriteSheetSize [2]int16 // in sprites.
30470 SpritePos [2]int16 // in sprite sheet.
30472 MakeFootstepSnds bool
30473 RotateSpeed float32 // in radians per second.
30475 Colors []color.NRGBA
30476 CollideWithAOs bool
30479 FaceRotateDirOff float32 // in degrees.
30482 NametagColor color.NRGBA
30483 FaceRotateSpeed float32 // in degrees per second.
30487 MaxBreath uint16 // Player only.
30488 EyeHeight float32 // Player only.
30489 ZoomFOV float32 // in degrees. Player only.
30490 UseTextureAlpha bool
30491 DmgTextureMod Texture // suffix
30494 NametagBG color.NRGBA
30496 *p = math.Float32frombits(read32(r))
30499 p := &(*(*(struct {
30500 MaxHP uint16 // Player only.
30501 CollideWithNodes bool
30502 Weight float32 // deprecated
30506 VisualSize [3]float32
30508 SpriteSheetSize [2]int16 // in sprites.
30509 SpritePos [2]int16 // in sprite sheet.
30511 MakeFootstepSnds bool
30512 RotateSpeed float32 // in radians per second.
30514 Colors []color.NRGBA
30515 CollideWithAOs bool
30518 FaceRotateDirOff float32 // in degrees.
30521 NametagColor color.NRGBA
30522 FaceRotateSpeed float32 // in degrees per second.
30526 MaxBreath uint16 // Player only.
30527 EyeHeight float32 // Player only.
30528 ZoomFOV float32 // in degrees. Player only.
30529 UseTextureAlpha bool
30530 DmgTextureMod Texture // suffix
30533 NametagBG color.NRGBA
30534 }))(obj)).UseTextureAlpha
30535 switch n := read8(r); n {
30541 chk(fmt.Errorf("invalid bool: %d", n))
30544 if err := pcall(func() {
30546 MaxHP uint16 // Player only.
30547 CollideWithNodes bool
30548 Weight float32 // deprecated
30552 VisualSize [3]float32
30554 SpriteSheetSize [2]int16 // in sprites.
30555 SpritePos [2]int16 // in sprite sheet.
30557 MakeFootstepSnds bool
30558 RotateSpeed float32 // in radians per second.
30560 Colors []color.NRGBA
30561 CollideWithAOs bool
30564 FaceRotateDirOff float32 // in degrees.
30567 NametagColor color.NRGBA
30568 FaceRotateSpeed float32 // in degrees per second.
30572 MaxBreath uint16 // Player only.
30573 EyeHeight float32 // Player only.
30574 ZoomFOV float32 // in degrees. Player only.
30575 UseTextureAlpha bool
30576 DmgTextureMod Texture // suffix
30579 NametagBG color.NRGBA
30580 }))(obj)).DmgTextureMod).deserialize(r)
30585 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
30588 p := &(*(*(struct {
30589 MaxHP uint16 // Player only.
30590 CollideWithNodes bool
30591 Weight float32 // deprecated
30595 VisualSize [3]float32
30597 SpriteSheetSize [2]int16 // in sprites.
30598 SpritePos [2]int16 // in sprite sheet.
30600 MakeFootstepSnds bool
30601 RotateSpeed float32 // in radians per second.
30603 Colors []color.NRGBA
30604 CollideWithAOs bool
30607 FaceRotateDirOff float32 // in degrees.
30610 NametagColor color.NRGBA
30611 FaceRotateSpeed float32 // in degrees per second.
30615 MaxBreath uint16 // Player only.
30616 EyeHeight float32 // Player only.
30617 ZoomFOV float32 // in degrees. Player only.
30618 UseTextureAlpha bool
30619 DmgTextureMod Texture // suffix
30622 NametagBG color.NRGBA
30624 switch n := read8(r); n {
30630 chk(fmt.Errorf("invalid bool: %d", n))
30634 p := &(*(*(struct {
30635 MaxHP uint16 // Player only.
30636 CollideWithNodes bool
30637 Weight float32 // deprecated
30641 VisualSize [3]float32
30643 SpriteSheetSize [2]int16 // in sprites.
30644 SpritePos [2]int16 // in sprite sheet.
30646 MakeFootstepSnds bool
30647 RotateSpeed float32 // in radians per second.
30649 Colors []color.NRGBA
30650 CollideWithAOs bool
30653 FaceRotateDirOff float32 // in degrees.
30656 NametagColor color.NRGBA
30657 FaceRotateSpeed float32 // in degrees per second.
30661 MaxBreath uint16 // Player only.
30662 EyeHeight float32 // Player only.
30663 ZoomFOV float32 // in degrees. Player only.
30664 UseTextureAlpha bool
30665 DmgTextureMod Texture // suffix
30668 NametagBG color.NRGBA
30669 }))(obj)).ShowOnMinimap
30670 switch n := read8(r); n {
30676 chk(fmt.Errorf("invalid bool: %d", n))
30680 p := &(*(*(struct {
30681 MaxHP uint16 // Player only.
30682 CollideWithNodes bool
30683 Weight float32 // deprecated
30687 VisualSize [3]float32
30689 SpriteSheetSize [2]int16 // in sprites.
30690 SpritePos [2]int16 // in sprite sheet.
30692 MakeFootstepSnds bool
30693 RotateSpeed float32 // in radians per second.
30695 Colors []color.NRGBA
30696 CollideWithAOs bool
30699 FaceRotateDirOff float32 // in degrees.
30702 NametagColor color.NRGBA
30703 FaceRotateSpeed float32 // in degrees per second.
30707 MaxBreath uint16 // Player only.
30708 EyeHeight float32 // Player only.
30709 ZoomFOV float32 // in degrees. Player only.
30710 UseTextureAlpha bool
30711 DmgTextureMod Texture // suffix
30714 NametagBG color.NRGBA
30715 }))(obj)).NametagBG
30716 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
30720 func (obj *AOPos) serialize(w io.Writer) {
30721 if err := pcall(func() {
30729 UpdateInterval float32
30730 }))(obj)).Pos).serialize(w)
30735 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
30737 if err := pcall(func() {
30745 UpdateInterval float32
30746 }))(obj)).Vel).serialize(w)
30751 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30753 if err := pcall(func() {
30761 UpdateInterval float32
30762 }))(obj)).Acc).serialize(w)
30767 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30769 for local358 := range (*(*(struct {
30776 UpdateInterval float32
30779 x := ((*(*(struct {
30786 UpdateInterval float32
30787 }))(obj)).Rot)[local358]
30788 write32(w, math.Float32bits(x))
30799 UpdateInterval float32
30800 }))(obj)).Interpolate
30815 UpdateInterval float32
30831 UpdateInterval float32
30832 }))(obj)).UpdateInterval
30833 write32(w, math.Float32bits(x))
30837 func (obj *AOPos) deserialize(r io.Reader) {
30838 if err := pcall(func() {
30846 UpdateInterval float32
30847 }))(obj)).Pos).deserialize(r)
30852 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
30854 if err := pcall(func() {
30862 UpdateInterval float32
30863 }))(obj)).Vel).deserialize(r)
30868 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30870 if err := pcall(func() {
30878 UpdateInterval float32
30879 }))(obj)).Acc).deserialize(r)
30884 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
30886 for local359 := range (*(*(struct {
30893 UpdateInterval float32
30896 p := &((*(*(struct {
30903 UpdateInterval float32
30904 }))(obj)).Rot)[local359]
30905 *p = math.Float32frombits(read32(r))
30909 p := &(*(*(struct {
30916 UpdateInterval float32
30917 }))(obj)).Interpolate
30918 switch n := read8(r); n {
30924 chk(fmt.Errorf("invalid bool: %d", n))
30928 p := &(*(*(struct {
30935 UpdateInterval float32
30937 switch n := read8(r); n {
30943 chk(fmt.Errorf("invalid bool: %d", n))
30947 p := &(*(*(struct {
30954 UpdateInterval float32
30955 }))(obj)).UpdateInterval
30956 *p = math.Float32frombits(read32(r))
30960 func (obj *AOSprite) serialize(w io.Writer) {
30961 for local360 := range (*(*(struct {
30964 FrameDuration float32
30965 ViewAngleFrames bool
30968 x := ((*(*(struct {
30971 FrameDuration float32
30972 ViewAngleFrames bool
30973 }))(obj)).Frame0)[local360]
30974 write16(w, uint16(x))
30981 FrameDuration float32
30982 ViewAngleFrames bool
30984 write16(w, uint16(x))
30990 FrameDuration float32
30991 ViewAngleFrames bool
30992 }))(obj)).FrameDuration
30993 write32(w, math.Float32bits(x))
30999 FrameDuration float32
31000 ViewAngleFrames bool
31001 }))(obj)).ViewAngleFrames
31010 func (obj *AOSprite) deserialize(r io.Reader) {
31011 for local361 := range (*(*(struct {
31014 FrameDuration float32
31015 ViewAngleFrames bool
31018 p := &((*(*(struct {
31021 FrameDuration float32
31022 ViewAngleFrames bool
31023 }))(obj)).Frame0)[local361]
31024 *p = int16(read16(r))
31028 p := &(*(*(struct {
31031 FrameDuration float32
31032 ViewAngleFrames bool
31037 p := &(*(*(struct {
31040 FrameDuration float32
31041 ViewAngleFrames bool
31042 }))(obj)).FrameDuration
31043 *p = math.Float32frombits(read32(r))
31046 p := &(*(*(struct {
31049 FrameDuration float32
31050 ViewAngleFrames bool
31051 }))(obj)).ViewAngleFrames
31052 switch n := read8(r); n {
31058 chk(fmt.Errorf("invalid bool: %d", n))
31063 func (obj *Group) serialize(w io.Writer) {
31064 if len(([]byte((*(*(struct {
31067 }))(obj)).Name))) > math.MaxUint16 {
31071 x := uint16(len(([]byte((*(*(struct {
31075 write16(w, uint16(x))
31078 _, err := w.Write(([]byte((*(*(struct {
31081 }))(obj)).Name))[:])
31089 write16(w, uint16(x))
31093 func (obj *Group) deserialize(r io.Reader) {
31094 var local362 []uint8
31095 var local363 uint16
31100 (local362) = make([]uint8, local363)
31102 _, err := io.ReadFull(r, (local362)[:])
31108 }))(obj)).Name) = string(local362)
31110 p := &(*(*(struct {
31114 *p = int16(read16(r))
31118 func (obj *AOAnim) serialize(w io.Writer) {
31119 for local364 := range (*(*(struct {
31126 x := ((*(*(struct {
31131 }))(obj)).Frames)[local364]
31132 write32(w, uint32(x))
31142 write32(w, math.Float32bits(x))
31151 write32(w, math.Float32bits(x))
31168 func (obj *AOAnim) deserialize(r io.Reader) {
31169 for local365 := range (*(*(struct {
31176 p := &((*(*(struct {
31181 }))(obj)).Frames)[local365]
31182 *p = int32(read32(r))
31186 p := &(*(*(struct {
31192 *p = math.Float32frombits(read32(r))
31195 p := &(*(*(struct {
31201 *p = math.Float32frombits(read32(r))
31204 p := &(*(*(struct {
31210 switch n := read8(r); n {
31216 chk(fmt.Errorf("invalid bool: %d", n))
31221 func (obj *AOBonePos) serialize(w io.Writer) {
31222 if err := pcall(func() {
31226 }))(obj)).Pos).serialize(w)
31231 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31233 for local366 := range (*(*(struct {
31238 x := ((*(*(struct {
31241 }))(obj)).Rot)[local366]
31242 write32(w, math.Float32bits(x))
31247 func (obj *AOBonePos) deserialize(r io.Reader) {
31248 if err := pcall(func() {
31252 }))(obj)).Pos).deserialize(r)
31257 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31259 for local367 := range (*(*(struct {
31264 p := &((*(*(struct {
31267 }))(obj)).Rot)[local367]
31268 *p = math.Float32frombits(read32(r))
31273 func (obj *AOAttach) serialize(w io.Writer) {
31274 if err := pcall(func() {
31281 }))(obj)).ParentID).serialize(w)
31286 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31288 if len(([]byte((*(*(struct {
31294 }))(obj)).Bone))) > math.MaxUint16 {
31298 x := uint16(len(([]byte((*(*(struct {
31305 write16(w, uint16(x))
31308 _, err := w.Write(([]byte((*(*(struct {
31314 }))(obj)).Bone))[:])
31317 if err := pcall(func() {
31324 }))(obj)).Pos).serialize(w)
31329 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31331 for local368 := range (*(*(struct {
31339 x := ((*(*(struct {
31345 }))(obj)).Rot)[local368]
31346 write32(w, math.Float32bits(x))
31356 }))(obj)).ForceVisible
31365 func (obj *AOAttach) deserialize(r io.Reader) {
31366 if err := pcall(func() {
31373 }))(obj)).ParentID).deserialize(r)
31378 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
31380 var local369 []uint8
31381 var local370 uint16
31386 (local369) = make([]uint8, local370)
31388 _, err := io.ReadFull(r, (local369)[:])
31397 }))(obj)).Bone) = string(local369)
31398 if err := pcall(func() {
31405 }))(obj)).Pos).deserialize(r)
31410 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
31412 for local371 := range (*(*(struct {
31420 p := &((*(*(struct {
31426 }))(obj)).Rot)[local371]
31427 *p = math.Float32frombits(read32(r))
31431 p := &(*(*(struct {
31437 }))(obj)).ForceVisible
31438 switch n := read8(r); n {
31444 chk(fmt.Errorf("invalid bool: %d", n))
31449 func (obj *AOPhysOverride) serialize(w io.Writer) {
31452 Walk, Jump, Gravity float32
31455 NoSneak, NoSneakGlitch, OldSneak bool
31457 write32(w, math.Float32bits(x))
31461 Walk, Jump, Gravity float32
31464 NoSneak, NoSneakGlitch, OldSneak bool
31466 write32(w, math.Float32bits(x))
31470 Walk, Jump, Gravity float32
31473 NoSneak, NoSneakGlitch, OldSneak bool
31475 write32(w, math.Float32bits(x))
31479 Walk, Jump, Gravity float32
31482 NoSneak, NoSneakGlitch, OldSneak bool
31492 Walk, Jump, Gravity float32
31495 NoSneak, NoSneakGlitch, OldSneak bool
31496 }))(obj)).NoSneakGlitch
31505 Walk, Jump, Gravity float32
31508 NoSneak, NoSneakGlitch, OldSneak bool
31518 func (obj *AOPhysOverride) deserialize(r io.Reader) {
31520 p := &(*(*(struct {
31521 Walk, Jump, Gravity float32
31524 NoSneak, NoSneakGlitch, OldSneak bool
31526 *p = math.Float32frombits(read32(r))
31529 p := &(*(*(struct {
31530 Walk, Jump, Gravity float32
31533 NoSneak, NoSneakGlitch, OldSneak bool
31535 *p = math.Float32frombits(read32(r))
31538 p := &(*(*(struct {
31539 Walk, Jump, Gravity float32
31542 NoSneak, NoSneakGlitch, OldSneak bool
31544 *p = math.Float32frombits(read32(r))
31547 p := &(*(*(struct {
31548 Walk, Jump, Gravity float32
31551 NoSneak, NoSneakGlitch, OldSneak bool
31553 switch n := read8(r); n {
31559 chk(fmt.Errorf("invalid bool: %d", n))
31563 p := &(*(*(struct {
31564 Walk, Jump, Gravity float32
31567 NoSneak, NoSneakGlitch, OldSneak bool
31568 }))(obj)).NoSneakGlitch
31569 switch n := read8(r); n {
31575 chk(fmt.Errorf("invalid bool: %d", n))
31579 p := &(*(*(struct {
31580 Walk, Jump, Gravity float32
31583 NoSneak, NoSneakGlitch, OldSneak bool
31585 switch n := read8(r); n {
31591 chk(fmt.Errorf("invalid bool: %d", n))
31596 func (obj *aoType) serialize(w io.Writer) {
31598 x := *(*(uint8))(obj)
31599 write8(w, uint8(x))
31603 func (obj *aoType) deserialize(r io.Reader) {
31605 p := &*(*(uint8))(obj)
31610 func (obj *NodeMetaField) serialize(w io.Writer) {
31611 if err := pcall(func() {
31615 }))(obj)).Field).serialize(w)
31620 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
31635 func (obj *NodeMetaField) deserialize(r io.Reader) {
31636 if err := pcall(func() {
31640 }))(obj)).Field).deserialize(r)
31645 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Field", err))
31648 p := &(*(*(struct {
31652 switch n := read8(r); n {
31658 chk(fmt.Errorf("invalid bool: %d", n))
31663 func (obj *MinimapType) serialize(w io.Writer) {
31665 x := *(*(uint16))(obj)
31666 write16(w, uint16(x))
31670 func (obj *MinimapType) deserialize(r io.Reader) {
31672 p := &*(*(uint16))(obj)
31677 func (obj *Param1Type) serialize(w io.Writer) {
31679 x := *(*(uint8))(obj)
31680 write8(w, uint8(x))
31684 func (obj *Param1Type) deserialize(r io.Reader) {
31686 p := &*(*(uint8))(obj)
31691 func (obj *Param2Type) serialize(w io.Writer) {
31693 x := *(*(uint8))(obj)
31694 write8(w, uint8(x))
31698 func (obj *Param2Type) deserialize(r io.Reader) {
31700 p := &*(*(uint8))(obj)
31705 func (obj *DrawType) serialize(w io.Writer) {
31707 x := *(*(uint8))(obj)
31708 write8(w, uint8(x))
31712 func (obj *DrawType) deserialize(r io.Reader) {
31714 p := &*(*(uint8))(obj)
31719 func (obj *TileDef) serialize(w io.Writer) {
31721 local372 := uint8(6)
31724 write8(w, uint8(x))
31727 if err := pcall(func() {
31733 //mt:if %s.Flags&TileColor != 0
31736 //mt:if %s.Flags&TileScale != 0
31739 //mt:if %s.Flags&TileAlign != 0
31741 }))(obj)).Texture).serialize(w)
31746 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
31748 if err := pcall(func() {
31754 //mt:if %s.Flags&TileColor != 0
31757 //mt:if %s.Flags&TileScale != 0
31760 //mt:if %s.Flags&TileAlign != 0
31762 }))(obj)).Anim).serialize(w)
31767 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
31769 if err := pcall(func() {
31775 //mt:if %s.Flags&TileColor != 0
31778 //mt:if %s.Flags&TileScale != 0
31781 //mt:if %s.Flags&TileAlign != 0
31783 }))(obj)).Flags).serialize(w)
31788 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
31795 //mt:if %s.Flags&TileColor != 0
31798 //mt:if %s.Flags&TileScale != 0
31801 //mt:if %s.Flags&TileAlign != 0
31803 }))(obj)).Flags&TileColor != 0 {
31810 //mt:if %s.Flags&TileColor != 0
31813 //mt:if %s.Flags&TileScale != 0
31816 //mt:if %s.Flags&TileAlign != 0
31819 write8(w, uint8(x))
31827 //mt:if %s.Flags&TileColor != 0
31830 //mt:if %s.Flags&TileScale != 0
31833 //mt:if %s.Flags&TileAlign != 0
31836 write8(w, uint8(x))
31844 //mt:if %s.Flags&TileColor != 0
31847 //mt:if %s.Flags&TileScale != 0
31850 //mt:if %s.Flags&TileAlign != 0
31853 write8(w, uint8(x))
31861 //mt:if %s.Flags&TileColor != 0
31864 //mt:if %s.Flags&TileScale != 0
31867 //mt:if %s.Flags&TileAlign != 0
31869 }))(obj)).Flags&TileScale != 0 {
31876 //mt:if %s.Flags&TileColor != 0
31879 //mt:if %s.Flags&TileScale != 0
31882 //mt:if %s.Flags&TileAlign != 0
31885 write8(w, uint8(x))
31893 //mt:if %s.Flags&TileColor != 0
31896 //mt:if %s.Flags&TileScale != 0
31899 //mt:if %s.Flags&TileAlign != 0
31901 }))(obj)).Flags&TileAlign != 0 {
31902 if err := pcall(func() {
31908 //mt:if %s.Flags&TileColor != 0
31911 //mt:if %s.Flags&TileScale != 0
31914 //mt:if %s.Flags&TileAlign != 0
31916 }))(obj)).Align).serialize(w)
31921 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
31926 func (obj *TileDef) deserialize(r io.Reader) {
31929 local374 := uint8(6)
31934 if local373 != local374 {
31935 chk(fmt.Errorf("const %v: %v", "uint8(6)", local373))
31938 if err := pcall(func() {
31944 //mt:if %s.Flags&TileColor != 0
31947 //mt:if %s.Flags&TileScale != 0
31950 //mt:if %s.Flags&TileAlign != 0
31952 }))(obj)).Texture).deserialize(r)
31957 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Texture", err))
31959 if err := pcall(func() {
31965 //mt:if %s.Flags&TileColor != 0
31968 //mt:if %s.Flags&TileScale != 0
31971 //mt:if %s.Flags&TileAlign != 0
31973 }))(obj)).Anim).deserialize(r)
31978 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileAnim", err))
31980 if err := pcall(func() {
31986 //mt:if %s.Flags&TileColor != 0
31989 //mt:if %s.Flags&TileScale != 0
31992 //mt:if %s.Flags&TileAlign != 0
31994 }))(obj)).Flags).deserialize(r)
31999 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.TileFlags", err))
32006 //mt:if %s.Flags&TileColor != 0
32009 //mt:if %s.Flags&TileScale != 0
32012 //mt:if %s.Flags&TileAlign != 0
32014 }))(obj)).Flags&TileColor != 0 {
32016 p := &(*(*(struct {
32021 //mt:if %s.Flags&TileColor != 0
32024 //mt:if %s.Flags&TileScale != 0
32027 //mt:if %s.Flags&TileAlign != 0
32033 p := &(*(*(struct {
32038 //mt:if %s.Flags&TileColor != 0
32041 //mt:if %s.Flags&TileScale != 0
32044 //mt:if %s.Flags&TileAlign != 0
32050 p := &(*(*(struct {
32055 //mt:if %s.Flags&TileColor != 0
32058 //mt:if %s.Flags&TileScale != 0
32061 //mt:if %s.Flags&TileAlign != 0
32072 //mt:if %s.Flags&TileColor != 0
32075 //mt:if %s.Flags&TileScale != 0
32078 //mt:if %s.Flags&TileAlign != 0
32080 }))(obj)).Flags&TileScale != 0 {
32082 p := &(*(*(struct {
32087 //mt:if %s.Flags&TileColor != 0
32090 //mt:if %s.Flags&TileScale != 0
32093 //mt:if %s.Flags&TileAlign != 0
32104 //mt:if %s.Flags&TileColor != 0
32107 //mt:if %s.Flags&TileScale != 0
32110 //mt:if %s.Flags&TileAlign != 0
32112 }))(obj)).Flags&TileAlign != 0 {
32113 if err := pcall(func() {
32119 //mt:if %s.Flags&TileColor != 0
32122 //mt:if %s.Flags&TileScale != 0
32125 //mt:if %s.Flags&TileAlign != 0
32127 }))(obj)).Align).deserialize(r)
32132 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AlignType", err))
32137 func (obj *WaveType) serialize(w io.Writer) {
32139 x := *(*(uint8))(obj)
32140 write8(w, uint8(x))
32144 func (obj *WaveType) deserialize(r io.Reader) {
32146 p := &*(*(uint8))(obj)
32151 func (obj *LiquidType) serialize(w io.Writer) {
32153 x := *(*(uint8))(obj)
32154 write8(w, uint8(x))
32158 func (obj *LiquidType) deserialize(r io.Reader) {
32160 p := &*(*(uint8))(obj)
32165 func (obj *NodeBox) serialize(w io.Writer) {
32167 local375 := uint8(6)
32170 write8(w, uint8(x))
32173 if err := pcall(func() {
32177 //mt:if %s.Type == MountedBox
32178 WallTop, WallBot, WallSides Box
32180 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32183 //mt:if %s.Type == ConnectedBox
32184 ConnDirs, DiscoDirs DirBoxes
32185 DiscoAll, DiscoSides []Box
32186 }))(obj)).Type).serialize(w)
32191 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
32196 //mt:if %s.Type == MountedBox
32197 WallTop, WallBot, WallSides Box
32199 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32202 //mt:if %s.Type == ConnectedBox
32203 ConnDirs, DiscoDirs DirBoxes
32204 DiscoAll, DiscoSides []Box
32205 }))(obj)).Type < maxBox) {
32206 chk(errors.New("assertion failed: %s.Type < maxBox"))
32211 //mt:if %s.Type == MountedBox
32212 WallTop, WallBot, WallSides Box
32214 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32217 //mt:if %s.Type == ConnectedBox
32218 ConnDirs, DiscoDirs DirBoxes
32219 DiscoAll, DiscoSides []Box
32220 }))(obj)).Type == MountedBox {
32221 if err := pcall(func() {
32225 //mt:if %s.Type == MountedBox
32226 WallTop, WallBot, WallSides Box
32228 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32231 //mt:if %s.Type == ConnectedBox
32232 ConnDirs, DiscoDirs DirBoxes
32233 DiscoAll, DiscoSides []Box
32234 }))(obj)).WallTop).serialize(w)
32239 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32241 if err := pcall(func() {
32245 //mt:if %s.Type == MountedBox
32246 WallTop, WallBot, WallSides Box
32248 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32251 //mt:if %s.Type == ConnectedBox
32252 ConnDirs, DiscoDirs DirBoxes
32253 DiscoAll, DiscoSides []Box
32254 }))(obj)).WallBot).serialize(w)
32259 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32261 if err := pcall(func() {
32265 //mt:if %s.Type == MountedBox
32266 WallTop, WallBot, WallSides Box
32268 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32271 //mt:if %s.Type == ConnectedBox
32272 ConnDirs, DiscoDirs DirBoxes
32273 DiscoAll, DiscoSides []Box
32274 }))(obj)).WallSides).serialize(w)
32279 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32282 if t := (*(*(struct {
32285 //mt:if %s.Type == MountedBox
32286 WallTop, WallBot, WallSides Box
32288 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32291 //mt:if %s.Type == ConnectedBox
32292 ConnDirs, DiscoDirs DirBoxes
32293 DiscoAll, DiscoSides []Box
32294 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32295 if len(((*(*(struct {
32298 //mt:if %s.Type == MountedBox
32299 WallTop, WallBot, WallSides Box
32301 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32304 //mt:if %s.Type == ConnectedBox
32305 ConnDirs, DiscoDirs DirBoxes
32306 DiscoAll, DiscoSides []Box
32307 }))(obj)).Fixed)) > math.MaxUint16 {
32311 x := uint16(len(((*(*(struct {
32314 //mt:if %s.Type == MountedBox
32315 WallTop, WallBot, WallSides Box
32317 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32320 //mt:if %s.Type == ConnectedBox
32321 ConnDirs, DiscoDirs DirBoxes
32322 DiscoAll, DiscoSides []Box
32324 write16(w, uint16(x))
32326 for local376 := range (*(*(struct {
32329 //mt:if %s.Type == MountedBox
32330 WallTop, WallBot, WallSides Box
32332 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32335 //mt:if %s.Type == ConnectedBox
32336 ConnDirs, DiscoDirs DirBoxes
32337 DiscoAll, DiscoSides []Box
32339 if err := pcall(func() {
32343 //mt:if %s.Type == MountedBox
32344 WallTop, WallBot, WallSides Box
32346 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32349 //mt:if %s.Type == ConnectedBox
32350 ConnDirs, DiscoDirs DirBoxes
32351 DiscoAll, DiscoSides []Box
32352 }))(obj)).Fixed)[local376]).serialize(w)
32357 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32364 //mt:if %s.Type == MountedBox
32365 WallTop, WallBot, WallSides Box
32367 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32370 //mt:if %s.Type == ConnectedBox
32371 ConnDirs, DiscoDirs DirBoxes
32372 DiscoAll, DiscoSides []Box
32373 }))(obj)).Type == ConnectedBox {
32374 if err := pcall(func() {
32378 //mt:if %s.Type == MountedBox
32379 WallTop, WallBot, WallSides Box
32381 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32384 //mt:if %s.Type == ConnectedBox
32385 ConnDirs, DiscoDirs DirBoxes
32386 DiscoAll, DiscoSides []Box
32387 }))(obj)).ConnDirs).serialize(w)
32392 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32394 if err := pcall(func() {
32398 //mt:if %s.Type == MountedBox
32399 WallTop, WallBot, WallSides Box
32401 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32404 //mt:if %s.Type == ConnectedBox
32405 ConnDirs, DiscoDirs DirBoxes
32406 DiscoAll, DiscoSides []Box
32407 }))(obj)).DiscoDirs).serialize(w)
32412 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32414 if len(((*(*(struct {
32417 //mt:if %s.Type == MountedBox
32418 WallTop, WallBot, WallSides Box
32420 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32423 //mt:if %s.Type == ConnectedBox
32424 ConnDirs, DiscoDirs DirBoxes
32425 DiscoAll, DiscoSides []Box
32426 }))(obj)).DiscoAll)) > math.MaxUint16 {
32430 x := uint16(len(((*(*(struct {
32433 //mt:if %s.Type == MountedBox
32434 WallTop, WallBot, WallSides Box
32436 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32439 //mt:if %s.Type == ConnectedBox
32440 ConnDirs, DiscoDirs DirBoxes
32441 DiscoAll, DiscoSides []Box
32442 }))(obj)).DiscoAll)))
32443 write16(w, uint16(x))
32445 for local377 := range (*(*(struct {
32448 //mt:if %s.Type == MountedBox
32449 WallTop, WallBot, WallSides Box
32451 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32454 //mt:if %s.Type == ConnectedBox
32455 ConnDirs, DiscoDirs DirBoxes
32456 DiscoAll, DiscoSides []Box
32457 }))(obj)).DiscoAll {
32458 if err := pcall(func() {
32462 //mt:if %s.Type == MountedBox
32463 WallTop, WallBot, WallSides Box
32465 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32468 //mt:if %s.Type == ConnectedBox
32469 ConnDirs, DiscoDirs DirBoxes
32470 DiscoAll, DiscoSides []Box
32471 }))(obj)).DiscoAll)[local377]).serialize(w)
32476 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32479 if len(((*(*(struct {
32482 //mt:if %s.Type == MountedBox
32483 WallTop, WallBot, WallSides Box
32485 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32488 //mt:if %s.Type == ConnectedBox
32489 ConnDirs, DiscoDirs DirBoxes
32490 DiscoAll, DiscoSides []Box
32491 }))(obj)).DiscoSides)) > math.MaxUint16 {
32495 x := uint16(len(((*(*(struct {
32498 //mt:if %s.Type == MountedBox
32499 WallTop, WallBot, WallSides Box
32501 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32504 //mt:if %s.Type == ConnectedBox
32505 ConnDirs, DiscoDirs DirBoxes
32506 DiscoAll, DiscoSides []Box
32507 }))(obj)).DiscoSides)))
32508 write16(w, uint16(x))
32510 for local378 := range (*(*(struct {
32513 //mt:if %s.Type == MountedBox
32514 WallTop, WallBot, WallSides Box
32516 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32519 //mt:if %s.Type == ConnectedBox
32520 ConnDirs, DiscoDirs DirBoxes
32521 DiscoAll, DiscoSides []Box
32522 }))(obj)).DiscoSides {
32523 if err := pcall(func() {
32527 //mt:if %s.Type == MountedBox
32528 WallTop, WallBot, WallSides Box
32530 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32533 //mt:if %s.Type == ConnectedBox
32534 ConnDirs, DiscoDirs DirBoxes
32535 DiscoAll, DiscoSides []Box
32536 }))(obj)).DiscoSides)[local378]).serialize(w)
32541 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32547 func (obj *NodeBox) deserialize(r io.Reader) {
32550 local380 := uint8(6)
32555 if local379 != local380 {
32556 chk(fmt.Errorf("const %v: %v", "uint8(6)", local379))
32559 if err := pcall(func() {
32563 //mt:if %s.Type == MountedBox
32564 WallTop, WallBot, WallSides Box
32566 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32569 //mt:if %s.Type == ConnectedBox
32570 ConnDirs, DiscoDirs DirBoxes
32571 DiscoAll, DiscoSides []Box
32572 }))(obj)).Type).deserialize(r)
32577 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.NodeBoxType", err))
32582 //mt:if %s.Type == MountedBox
32583 WallTop, WallBot, WallSides Box
32585 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32588 //mt:if %s.Type == ConnectedBox
32589 ConnDirs, DiscoDirs DirBoxes
32590 DiscoAll, DiscoSides []Box
32591 }))(obj)).Type < maxBox) {
32592 chk(errors.New("assertion failed: %s.Type < maxBox"))
32597 //mt:if %s.Type == MountedBox
32598 WallTop, WallBot, WallSides Box
32600 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32603 //mt:if %s.Type == ConnectedBox
32604 ConnDirs, DiscoDirs DirBoxes
32605 DiscoAll, DiscoSides []Box
32606 }))(obj)).Type == MountedBox {
32607 if err := pcall(func() {
32611 //mt:if %s.Type == MountedBox
32612 WallTop, WallBot, WallSides Box
32614 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32617 //mt:if %s.Type == ConnectedBox
32618 ConnDirs, DiscoDirs DirBoxes
32619 DiscoAll, DiscoSides []Box
32620 }))(obj)).WallTop).deserialize(r)
32625 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32627 if err := pcall(func() {
32631 //mt:if %s.Type == MountedBox
32632 WallTop, WallBot, WallSides Box
32634 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32637 //mt:if %s.Type == ConnectedBox
32638 ConnDirs, DiscoDirs DirBoxes
32639 DiscoAll, DiscoSides []Box
32640 }))(obj)).WallBot).deserialize(r)
32645 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32647 if err := pcall(func() {
32651 //mt:if %s.Type == MountedBox
32652 WallTop, WallBot, WallSides Box
32654 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32657 //mt:if %s.Type == ConnectedBox
32658 ConnDirs, DiscoDirs DirBoxes
32659 DiscoAll, DiscoSides []Box
32660 }))(obj)).WallSides).deserialize(r)
32665 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32668 if t := (*(*(struct {
32671 //mt:if %s.Type == MountedBox
32672 WallTop, WallBot, WallSides Box
32674 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32677 //mt:if %s.Type == ConnectedBox
32678 ConnDirs, DiscoDirs DirBoxes
32679 DiscoAll, DiscoSides []Box
32680 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
32681 var local381 uint16
32689 //mt:if %s.Type == MountedBox
32690 WallTop, WallBot, WallSides Box
32692 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32695 //mt:if %s.Type == ConnectedBox
32696 ConnDirs, DiscoDirs DirBoxes
32697 DiscoAll, DiscoSides []Box
32698 }))(obj)).Fixed) = make([]Box, local381)
32699 for local382 := range (*(*(struct {
32702 //mt:if %s.Type == MountedBox
32703 WallTop, WallBot, WallSides Box
32705 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32708 //mt:if %s.Type == ConnectedBox
32709 ConnDirs, DiscoDirs DirBoxes
32710 DiscoAll, DiscoSides []Box
32712 if err := pcall(func() {
32716 //mt:if %s.Type == MountedBox
32717 WallTop, WallBot, WallSides Box
32719 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32722 //mt:if %s.Type == ConnectedBox
32723 ConnDirs, DiscoDirs DirBoxes
32724 DiscoAll, DiscoSides []Box
32725 }))(obj)).Fixed)[local382]).deserialize(r)
32730 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
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 == ConnectedBox {
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)).ConnDirs).deserialize(r)
32765 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", 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)).DiscoDirs).deserialize(r)
32785 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DirBoxes", err))
32787 var local383 uint16
32795 //mt:if %s.Type == MountedBox
32796 WallTop, WallBot, WallSides Box
32798 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32801 //mt:if %s.Type == ConnectedBox
32802 ConnDirs, DiscoDirs DirBoxes
32803 DiscoAll, DiscoSides []Box
32804 }))(obj)).DiscoAll) = make([]Box, local383)
32805 for local384 := range (*(*(struct {
32808 //mt:if %s.Type == MountedBox
32809 WallTop, WallBot, WallSides Box
32811 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32814 //mt:if %s.Type == ConnectedBox
32815 ConnDirs, DiscoDirs DirBoxes
32816 DiscoAll, DiscoSides []Box
32817 }))(obj)).DiscoAll {
32818 if err := pcall(func() {
32822 //mt:if %s.Type == MountedBox
32823 WallTop, WallBot, WallSides Box
32825 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32828 //mt:if %s.Type == ConnectedBox
32829 ConnDirs, DiscoDirs DirBoxes
32830 DiscoAll, DiscoSides []Box
32831 }))(obj)).DiscoAll)[local384]).deserialize(r)
32836 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32839 var local385 uint16
32847 //mt:if %s.Type == MountedBox
32848 WallTop, WallBot, WallSides Box
32850 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32853 //mt:if %s.Type == ConnectedBox
32854 ConnDirs, DiscoDirs DirBoxes
32855 DiscoAll, DiscoSides []Box
32856 }))(obj)).DiscoSides) = make([]Box, local385)
32857 for local386 := range (*(*(struct {
32860 //mt:if %s.Type == MountedBox
32861 WallTop, WallBot, WallSides Box
32863 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32866 //mt:if %s.Type == ConnectedBox
32867 ConnDirs, DiscoDirs DirBoxes
32868 DiscoAll, DiscoSides []Box
32869 }))(obj)).DiscoSides {
32870 if err := pcall(func() {
32874 //mt:if %s.Type == MountedBox
32875 WallTop, WallBot, WallSides Box
32877 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
32880 //mt:if %s.Type == ConnectedBox
32881 ConnDirs, DiscoDirs DirBoxes
32882 DiscoAll, DiscoSides []Box
32883 }))(obj)).DiscoSides)[local386]).deserialize(r)
32888 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
32894 func (obj *SoundDef) serialize(w io.Writer) {
32895 if len(([]byte((*(*(struct {
32897 Gain, Pitch, Fade float32
32898 }))(obj)).Name))) > math.MaxUint16 {
32902 x := uint16(len(([]byte((*(*(struct {
32904 Gain, Pitch, Fade float32
32906 write16(w, uint16(x))
32909 _, err := w.Write(([]byte((*(*(struct {
32911 Gain, Pitch, Fade float32
32912 }))(obj)).Name))[:])
32918 Gain, Pitch, Fade float32
32920 write32(w, math.Float32bits(x))
32925 Gain, Pitch, Fade float32
32927 write32(w, math.Float32bits(x))
32932 Gain, Pitch, Fade float32
32934 write32(w, math.Float32bits(x))
32938 func (obj *SoundDef) deserialize(r io.Reader) {
32939 var local387 []uint8
32940 var local388 uint16
32945 (local387) = make([]uint8, local388)
32947 _, err := io.ReadFull(r, (local387)[:])
32952 Gain, Pitch, Fade float32
32953 }))(obj)).Name) = string(local387)
32955 p := &(*(*(struct {
32957 Gain, Pitch, Fade float32
32959 *p = math.Float32frombits(read32(r))
32962 p := &(*(*(struct {
32964 Gain, Pitch, Fade float32
32966 *p = math.Float32frombits(read32(r))
32969 p := &(*(*(struct {
32971 Gain, Pitch, Fade float32
32973 *p = math.Float32frombits(read32(r))
32977 func (obj *AlphaUse) serialize(w io.Writer) {
32979 x := *(*(uint8))(obj)
32980 write8(w, uint8(x))
32984 func (obj *AlphaUse) deserialize(r io.Reader) {
32986 p := &*(*(uint8))(obj)
32991 func (obj *Keys) serialize(w io.Writer) {
32993 x := *(*(uint32))(obj)
32994 write32(w, uint32(x))
32998 func (obj *Keys) deserialize(r io.Reader) {
33000 p := &*(*(uint32))(obj)
33005 func (obj *MapBlkFlags) serialize(w io.Writer) {
33007 x := *(*(uint8))(obj)
33008 write8(w, uint8(x))
33012 func (obj *MapBlkFlags) deserialize(r io.Reader) {
33014 p := &*(*(uint8))(obj)
33019 func (obj *LitFromBlks) serialize(w io.Writer) {
33021 x := *(*(uint16))(obj)
33022 write16(w, uint16(x))
33026 func (obj *LitFromBlks) deserialize(r io.Reader) {
33028 p := &*(*(uint16))(obj)
33033 func (obj *AOInitData) serialize(w io.Writer) {
33035 local389 := uint8(1)
33038 write8(w, uint8(x))
33041 if len(([]byte((*(*(struct {
33054 // See (de)serialize.fmt.
33056 }))(obj)).Name))) > math.MaxUint16 {
33060 x := uint16(len(([]byte((*(*(struct {
33073 // See (de)serialize.fmt.
33076 write16(w, uint16(x))
33079 _, err := w.Write(([]byte((*(*(struct {
33092 // See (de)serialize.fmt.
33094 }))(obj)).Name))[:])
33111 // See (de)serialize.fmt.
33120 if err := pcall(func() {
33134 // See (de)serialize.fmt.
33136 }))(obj)).ID).serialize(w)
33141 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33143 if err := pcall(func() {
33157 // See (de)serialize.fmt.
33159 }))(obj)).Pos).serialize(w)
33164 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33166 for local390 := range (*(*(struct {
33179 // See (de)serialize.fmt.
33183 x := ((*(*(struct {
33196 // See (de)serialize.fmt.
33198 }))(obj)).Rot)[local390]
33199 write32(w, math.Float32bits(x))
33216 // See (de)serialize.fmt.
33219 write16(w, uint16(x))
33235 // See (de)serialize.fmt.
33238 { // For AOInitData.Msgs.
33239 if len(x) > math.MaxUint8 {
33242 write8(w, uint8(len(x)))
33243 for _, msg := range x {
33245 chk(writeAOMsg(&b, msg))
33246 if b.Len() > math.MaxUint32 {
33249 write32(w, uint32(b.Len()))
33250 _, err := b.WriteTo(w)
33257 func (obj *AOInitData) deserialize(r io.Reader) {
33260 local392 := uint8(1)
33265 if local391 != local392 {
33266 chk(fmt.Errorf("const %v: %v", "uint8(1)", local391))
33269 var local393 []uint8
33270 var local394 uint16
33275 (local393) = make([]uint8, local394)
33277 _, err := io.ReadFull(r, (local393)[:])
33293 // See (de)serialize.fmt.
33295 }))(obj)).Name) = string(local393)
33297 p := &(*(*(struct {
33310 // See (de)serialize.fmt.
33313 switch n := read8(r); n {
33319 chk(fmt.Errorf("invalid bool: %d", n))
33322 if err := pcall(func() {
33336 // See (de)serialize.fmt.
33338 }))(obj)).ID).deserialize(r)
33343 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.AOID", err))
33345 if err := pcall(func() {
33359 // See (de)serialize.fmt.
33361 }))(obj)).Pos).deserialize(r)
33366 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Pos", err))
33368 for local395 := range (*(*(struct {
33381 // See (de)serialize.fmt.
33385 p := &((*(*(struct {
33398 // See (de)serialize.fmt.
33400 }))(obj)).Rot)[local395]
33401 *p = math.Float32frombits(read32(r))
33405 p := &(*(*(struct {
33418 // See (de)serialize.fmt.
33424 p := &(*(*(struct {
33437 // See (de)serialize.fmt.
33440 { // For AOInitData.Msgs.
33441 *p = make([]AOMsg, read8(r))
33442 for i := range *p {
33443 r := &io.LimitedReader{R: r, N: int64(read32(r))}
33444 msg, err := readAOMsg(r)
33448 chk(fmt.Errorf("%d bytes of trailing data", r.N))
33455 func (obj *ItemType) serialize(w io.Writer) {
33457 x := *(*(uint8))(obj)
33458 write8(w, uint8(x))
33462 func (obj *ItemType) deserialize(r io.Reader) {
33464 p := &*(*(uint8))(obj)
33469 func (obj *ToolCaps) serialize(w io.Writer) {
33470 if _ = (*(*(struct {
33471 //mt:if _ = %s; false
33474 AttackCooldown float32
33478 GroupCaps []ToolGroupCap
33488 //mt:if _ = %s; false
33491 AttackCooldown float32
33495 GroupCaps []ToolGroupCap
33512 w := new(bytes.Buffer)
33514 if r.N > 0 { (*(*(struct {
33515 //mt:if _ = %s; false
33518 AttackCooldown float32
33522 GroupCaps []ToolGroupCap
33529 }))(obj)).NonNil = true}; /**/{
33531 //mt:if _ = %s; false
33534 AttackCooldown float32
33538 GroupCaps []ToolGroupCap
33547 local396 := uint8(5)
33550 write8(w, uint8(x))
33555 //mt:if _ = %s; false
33558 AttackCooldown float32
33562 GroupCaps []ToolGroupCap
33569 }))(obj)).AttackCooldown
33570 write32(w, math.Float32bits(x))
33574 //mt:if _ = %s; false
33577 AttackCooldown float32
33581 GroupCaps []ToolGroupCap
33588 }))(obj)).MaxDropLvl
33589 write16(w, uint16(x))
33591 if len(((*(*(struct {
33592 //mt:if _ = %s; false
33595 AttackCooldown float32
33599 GroupCaps []ToolGroupCap
33606 }))(obj)).GroupCaps)) > math.MaxUint32 {
33610 x := uint32(len(((*(*(struct {
33611 //mt:if _ = %s; false
33614 AttackCooldown float32
33618 GroupCaps []ToolGroupCap
33625 }))(obj)).GroupCaps)))
33626 write32(w, uint32(x))
33628 for local397 := range (*(*(struct {
33629 //mt:if _ = %s; false
33632 AttackCooldown float32
33636 GroupCaps []ToolGroupCap
33643 }))(obj)).GroupCaps {
33644 if err := pcall(func() {
33646 //mt:if _ = %s; false
33649 AttackCooldown float32
33653 GroupCaps []ToolGroupCap
33660 }))(obj)).GroupCaps)[local397]).serialize(w)
33665 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
33668 if len(((*(*(struct {
33669 //mt:if _ = %s; false
33672 AttackCooldown float32
33676 GroupCaps []ToolGroupCap
33683 }))(obj)).DmgGroups)) > math.MaxUint32 {
33687 x := uint32(len(((*(*(struct {
33688 //mt:if _ = %s; false
33691 AttackCooldown float32
33695 GroupCaps []ToolGroupCap
33702 }))(obj)).DmgGroups)))
33703 write32(w, uint32(x))
33705 for local398 := range (*(*(struct {
33706 //mt:if _ = %s; false
33709 AttackCooldown float32
33713 GroupCaps []ToolGroupCap
33720 }))(obj)).DmgGroups {
33721 if err := pcall(func() {
33723 //mt:if _ = %s; false
33726 AttackCooldown float32
33730 GroupCaps []ToolGroupCap
33737 }))(obj)).DmgGroups)[local398]).serialize(w)
33742 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
33746 x := uint16((*(*(struct {
33747 //mt:if _ = %s; false
33750 AttackCooldown float32
33754 GroupCaps []ToolGroupCap
33761 }))(obj)).PunchUses)
33762 write16(w, uint16(x))
33769 if len((buf.Bytes())) > math.MaxUint16 {
33773 x := uint16(len((buf.Bytes())))
33774 write16(w, uint16(x))
33777 _, err := w.Write((buf.Bytes())[:])
33784 func (obj *ToolCaps) deserialize(r io.Reader) {
33785 if _ = (*(*(struct {
33786 //mt:if _ = %s; false
33789 AttackCooldown float32
33793 GroupCaps []ToolGroupCap
33802 p := &(*(*(struct {
33803 //mt:if _ = %s; false
33806 AttackCooldown float32
33810 GroupCaps []ToolGroupCap
33818 switch n := read8(r); n {
33824 chk(fmt.Errorf("invalid bool: %d", n))
33834 r := &io.LimitedReader{R: r, N: int64(n)}
33837 //mt:if _ = %s; false
33840 AttackCooldown float32
33844 GroupCaps []ToolGroupCap
33851 }))(obj)).NonNil = true
33855 //mt:if _ = %s; false
33858 AttackCooldown float32
33862 GroupCaps []ToolGroupCap
33872 local400 := uint8(5)
33877 if local399 != local400 {
33878 chk(fmt.Errorf("const %v: %v", "uint8(5)", local399))
33882 p := &(*(*(struct {
33883 //mt:if _ = %s; false
33886 AttackCooldown float32
33890 GroupCaps []ToolGroupCap
33897 }))(obj)).AttackCooldown
33898 *p = math.Float32frombits(read32(r))
33901 p := &(*(*(struct {
33902 //mt:if _ = %s; false
33905 AttackCooldown float32
33909 GroupCaps []ToolGroupCap
33916 }))(obj)).MaxDropLvl
33917 *p = int16(read16(r))
33919 var local401 uint32
33925 //mt:if _ = %s; false
33928 AttackCooldown float32
33932 GroupCaps []ToolGroupCap
33939 }))(obj)).GroupCaps) = make([]ToolGroupCap, local401)
33940 for local402 := range (*(*(struct {
33941 //mt:if _ = %s; false
33944 AttackCooldown float32
33948 GroupCaps []ToolGroupCap
33955 }))(obj)).GroupCaps {
33956 if err := pcall(func() {
33958 //mt:if _ = %s; false
33961 AttackCooldown float32
33965 GroupCaps []ToolGroupCap
33972 }))(obj)).GroupCaps)[local402]).deserialize(r)
33977 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.ToolGroupCap", err))
33980 var local403 uint32
33986 //mt:if _ = %s; false
33989 AttackCooldown float32
33993 GroupCaps []ToolGroupCap
34000 }))(obj)).DmgGroups) = make([]Group, local403)
34001 for local404 := range (*(*(struct {
34002 //mt:if _ = %s; false
34005 AttackCooldown float32
34009 GroupCaps []ToolGroupCap
34016 }))(obj)).DmgGroups {
34017 if err := pcall(func() {
34019 //mt:if _ = %s; false
34022 AttackCooldown float32
34026 GroupCaps []ToolGroupCap
34033 }))(obj)).DmgGroups)[local404]).deserialize(r)
34038 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Group", err))
34041 var local405 uint16
34047 //mt:if _ = %s; false
34050 AttackCooldown float32
34054 GroupCaps []ToolGroupCap
34061 }))(obj)).PunchUses = int32(local405)
34065 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34070 func (obj *AnimType) serialize(w io.Writer) {
34072 x := *(*(uint8))(obj)
34073 write8(w, uint8(x))
34077 func (obj *AnimType) deserialize(r io.Reader) {
34079 p := &*(*(uint8))(obj)
34084 func (obj *HUDType) serialize(w io.Writer) {
34086 x := *(*(uint8))(obj)
34087 write8(w, uint8(x))
34091 func (obj *HUDType) deserialize(r io.Reader) {
34093 p := &*(*(uint8))(obj)
34098 func (obj *Box) serialize(w io.Writer) {
34099 for local406 := range *(*([2]Vec))(obj) {
34100 if err := pcall(func() {
34101 ((*(*([2]Vec))(obj))[local406]).serialize(w)
34106 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34111 func (obj *Box) deserialize(r io.Reader) {
34112 for local407 := range *(*([2]Vec))(obj) {
34113 if err := pcall(func() {
34114 ((*(*([2]Vec))(obj))[local407]).deserialize(r)
34119 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Vec", err))
34124 func (obj *TileFlags) serialize(w io.Writer) {
34126 x := *(*(uint16))(obj)
34127 write16(w, uint16(x))
34131 func (obj *TileFlags) deserialize(r io.Reader) {
34133 p := &*(*(uint16))(obj)
34138 func (obj *AlignType) serialize(w io.Writer) {
34140 x := *(*(uint8))(obj)
34141 write8(w, uint8(x))
34145 func (obj *AlignType) deserialize(r io.Reader) {
34147 p := &*(*(uint8))(obj)
34152 func (obj *NodeBoxType) serialize(w io.Writer) {
34154 x := *(*(uint8))(obj)
34155 write8(w, uint8(x))
34159 func (obj *NodeBoxType) deserialize(r io.Reader) {
34161 p := &*(*(uint8))(obj)
34166 func (obj *DirBoxes) serialize(w io.Writer) {
34167 if len(((*(*(struct {
34169 Front, Left, Back, Right []Box
34170 }))(obj)).Top)) > math.MaxUint16 {
34174 x := uint16(len(((*(*(struct {
34176 Front, Left, Back, Right []Box
34178 write16(w, uint16(x))
34180 for local408 := range (*(*(struct {
34182 Front, Left, Back, Right []Box
34184 if err := pcall(func() {
34187 Front, Left, Back, Right []Box
34188 }))(obj)).Top)[local408]).serialize(w)
34193 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34196 if len(((*(*(struct {
34198 Front, Left, Back, Right []Box
34199 }))(obj)).Bot)) > math.MaxUint16 {
34203 x := uint16(len(((*(*(struct {
34205 Front, Left, Back, Right []Box
34207 write16(w, uint16(x))
34209 for local409 := range (*(*(struct {
34211 Front, Left, Back, Right []Box
34213 if err := pcall(func() {
34216 Front, Left, Back, Right []Box
34217 }))(obj)).Bot)[local409]).serialize(w)
34222 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34225 if len(((*(*(struct {
34227 Front, Left, Back, Right []Box
34228 }))(obj)).Front)) > math.MaxUint16 {
34232 x := uint16(len(((*(*(struct {
34234 Front, Left, Back, Right []Box
34236 write16(w, uint16(x))
34238 for local410 := range (*(*(struct {
34240 Front, Left, Back, Right []Box
34242 if err := pcall(func() {
34245 Front, Left, Back, Right []Box
34246 }))(obj)).Front)[local410]).serialize(w)
34251 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34254 if len(((*(*(struct {
34256 Front, Left, Back, Right []Box
34257 }))(obj)).Left)) > math.MaxUint16 {
34261 x := uint16(len(((*(*(struct {
34263 Front, Left, Back, Right []Box
34265 write16(w, uint16(x))
34267 for local411 := range (*(*(struct {
34269 Front, Left, Back, Right []Box
34271 if err := pcall(func() {
34274 Front, Left, Back, Right []Box
34275 }))(obj)).Left)[local411]).serialize(w)
34280 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34283 if len(((*(*(struct {
34285 Front, Left, Back, Right []Box
34286 }))(obj)).Back)) > math.MaxUint16 {
34290 x := uint16(len(((*(*(struct {
34292 Front, Left, Back, Right []Box
34294 write16(w, uint16(x))
34296 for local412 := range (*(*(struct {
34298 Front, Left, Back, Right []Box
34300 if err := pcall(func() {
34303 Front, Left, Back, Right []Box
34304 }))(obj)).Back)[local412]).serialize(w)
34309 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34312 if len(((*(*(struct {
34314 Front, Left, Back, Right []Box
34315 }))(obj)).Right)) > math.MaxUint16 {
34319 x := uint16(len(((*(*(struct {
34321 Front, Left, Back, Right []Box
34323 write16(w, uint16(x))
34325 for local413 := range (*(*(struct {
34327 Front, Left, Back, Right []Box
34329 if err := pcall(func() {
34332 Front, Left, Back, Right []Box
34333 }))(obj)).Right)[local413]).serialize(w)
34338 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34343 func (obj *DirBoxes) deserialize(r io.Reader) {
34344 var local414 uint16
34351 Front, Left, Back, Right []Box
34352 }))(obj)).Top) = make([]Box, local414)
34353 for local415 := range (*(*(struct {
34355 Front, Left, Back, Right []Box
34357 if err := pcall(func() {
34360 Front, Left, Back, Right []Box
34361 }))(obj)).Top)[local415]).deserialize(r)
34366 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34369 var local416 uint16
34376 Front, Left, Back, Right []Box
34377 }))(obj)).Bot) = make([]Box, local416)
34378 for local417 := range (*(*(struct {
34380 Front, Left, Back, Right []Box
34382 if err := pcall(func() {
34385 Front, Left, Back, Right []Box
34386 }))(obj)).Bot)[local417]).deserialize(r)
34391 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34394 var local418 uint16
34401 Front, Left, Back, Right []Box
34402 }))(obj)).Front) = make([]Box, local418)
34403 for local419 := range (*(*(struct {
34405 Front, Left, Back, Right []Box
34407 if err := pcall(func() {
34410 Front, Left, Back, Right []Box
34411 }))(obj)).Front)[local419]).deserialize(r)
34416 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34419 var local420 uint16
34426 Front, Left, Back, Right []Box
34427 }))(obj)).Left) = make([]Box, local420)
34428 for local421 := range (*(*(struct {
34430 Front, Left, Back, Right []Box
34432 if err := pcall(func() {
34435 Front, Left, Back, Right []Box
34436 }))(obj)).Left)[local421]).deserialize(r)
34441 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34444 var local422 uint16
34451 Front, Left, Back, Right []Box
34452 }))(obj)).Back) = make([]Box, local422)
34453 for local423 := range (*(*(struct {
34455 Front, Left, Back, Right []Box
34457 if err := pcall(func() {
34460 Front, Left, Back, Right []Box
34461 }))(obj)).Back)[local423]).deserialize(r)
34466 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34469 var local424 uint16
34476 Front, Left, Back, Right []Box
34477 }))(obj)).Right) = make([]Box, local424)
34478 for local425 := range (*(*(struct {
34480 Front, Left, Back, Right []Box
34482 if err := pcall(func() {
34485 Front, Left, Back, Right []Box
34486 }))(obj)).Right)[local425]).deserialize(r)
34491 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.Box", err))
34496 func (obj *ToolGroupCap) serialize(w io.Writer) {
34497 if len(([]byte((*(*(struct {
34507 }))(obj)).Name))) > math.MaxUint16 {
34511 x := uint16(len(([]byte((*(*(struct {
34522 write16(w, uint16(x))
34525 _, err := w.Write(([]byte((*(*(struct {
34535 }))(obj)).Name))[:])
34539 x := int16((*(*(struct {
34550 write16(w, uint16(x))
34564 write16(w, uint16(x))
34566 if len(((*(*(struct {
34576 }))(obj)).Times)) > math.MaxUint32 {
34580 x := uint32(len(((*(*(struct {
34591 write32(w, uint32(x))
34593 for local426 := range (*(*(struct {
34604 if err := pcall(func() {
34615 }))(obj)).Times)[local426]).serialize(w)
34620 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
34625 func (obj *ToolGroupCap) deserialize(r io.Reader) {
34626 var local427 []uint8
34627 var local428 uint16
34632 (local427) = make([]uint8, local428)
34634 _, err := io.ReadFull(r, (local427)[:])
34647 }))(obj)).Name) = string(local427)
34651 *p = int16(read16(r))
34663 }))(obj)).Uses = int32(local429)
34665 p := &(*(*(struct {
34676 *p = int16(read16(r))
34678 var local430 uint32
34693 }))(obj)).Times) = make([]DigTime, local430)
34694 for local431 := range (*(*(struct {
34705 if err := pcall(func() {
34716 }))(obj)).Times)[local431]).deserialize(r)
34721 chk(fmt.Errorf("%s: %w", "github.com/Minetest-j45/mt.DigTime", err))
34726 func (obj *DigTime) serialize(w io.Writer) {
34732 write16(w, uint16(x))
34739 write32(w, math.Float32bits(x))
34743 func (obj *DigTime) deserialize(r io.Reader) {
34745 p := &(*(*(struct {
34749 *p = int16(read16(r))
34752 p := &(*(*(struct {
34756 *p = math.Float32frombits(read32(r))