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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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/dragonfireclient/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 {
2096 }))(obj)).Blkpos)[local62]
2097 write16(w, uint16(x))
2101 w, err := zstd.NewWriter(w)
2103 if err := pcall(func() {
2108 }))(obj)).Blk).Serialize(w)
2113 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2119 func (obj *ToCltBlkData) Deserialize(r io.Reader) {
2120 for local63 := range (*(*(struct {
2126 p := &((*(*(struct {
2130 }))(obj)).Blkpos)[local63]
2131 *p = int16(read16(r))
2135 r, err := zstd.NewReader(byteReader{r})
2137 if err := pcall(func() {
2142 }))(obj)).Blk).Deserialize(r)
2147 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlk", err))
2153 func (obj *ToCltAddNode) Serialize(w io.Writer) {
2154 for local64 := range (*(*(struct {
2164 }))(obj)).Pos)[local64]
2165 write16(w, uint16(x))
2168 if err := pcall(func() {
2173 }))(obj)).Node).Serialize(w)
2178 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2194 func (obj *ToCltAddNode) Deserialize(r io.Reader) {
2195 for local65 := range (*(*(struct {
2201 p := &((*(*(struct {
2205 }))(obj)).Pos)[local65]
2206 *p = int16(read16(r))
2209 if err := pcall(func() {
2214 }))(obj)).Node).Deserialize(r)
2219 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Node", err))
2227 switch n := read8(r); n {
2233 chk(fmt.Errorf("invalid bool: %d", n))
2238 func (obj *ToCltRemoveNode) Serialize(w io.Writer) {
2239 for local66 := range (*(*(struct {
2245 }))(obj)).Pos)[local66]
2246 write16(w, uint16(x))
2251 func (obj *ToCltRemoveNode) Deserialize(r io.Reader) {
2252 for local67 := range (*(*(struct {
2256 p := &((*(*(struct {
2258 }))(obj)).Pos)[local67]
2259 *p = int16(read16(r))
2264 func (obj *ToCltInv) Serialize(w io.Writer) {
2266 _, err := w.Write(([]byte((*(*(struct {
2274 func (obj *ToCltInv) Deserialize(r io.Reader) {
2278 (local68), err = io.ReadAll(r)
2284 }))(obj)).Inv) = string(local68)
2287 func (obj *ToCltTimeOfDay) Serialize(w io.Writer) {
2290 Time uint16 // %24000
2291 Speed float32 // Speed times faster than real time
2293 write16(w, uint16(x))
2297 Time uint16 // %24000
2298 Speed float32 // Speed times faster than real time
2300 write32(w, math.Float32bits(x))
2304 func (obj *ToCltTimeOfDay) Deserialize(r io.Reader) {
2307 Time uint16 // %24000
2308 Speed float32 // Speed times faster than real time
2314 Time uint16 // %24000
2315 Speed float32 // Speed times faster than real time
2317 *p = math.Float32frombits(read32(r))
2321 func (obj *ToCltCSMRestrictionFlags) Serialize(w io.Writer) {
2322 if err := pcall(func() {
2324 Flags CSMRestrictionFlags
2326 // MapRange is the maximum distance from the player CSMs can read the map
2327 // if Flags&LimitMapRange != 0.
2329 }))(obj)).Flags).Serialize(w)
2334 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2338 Flags CSMRestrictionFlags
2340 // MapRange is the maximum distance from the player CSMs can read the map
2341 // if Flags&LimitMapRange != 0.
2344 write32(w, uint32(x))
2348 func (obj *ToCltCSMRestrictionFlags) Deserialize(r io.Reader) {
2349 if err := pcall(func() {
2351 Flags CSMRestrictionFlags
2353 // MapRange is the maximum distance from the player CSMs can read the map
2354 // if Flags&LimitMapRange != 0.
2356 }))(obj)).Flags).Deserialize(r)
2361 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.CSMRestrictionFlags", err))
2365 Flags CSMRestrictionFlags
2367 // MapRange is the maximum distance from the player CSMs can read the map
2368 // if Flags&LimitMapRange != 0.
2375 func (obj *ToCltAddPlayerVel) Serialize(w io.Writer) {
2376 if err := pcall(func() {
2379 }))(obj)).Vel).Serialize(w)
2384 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2388 func (obj *ToCltAddPlayerVel) Deserialize(r io.Reader) {
2389 if err := pcall(func() {
2392 }))(obj)).Vel).Deserialize(r)
2397 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
2401 func (obj *ToCltMediaPush) Serialize(w io.Writer) {
2402 if len(([]byte((*(*(struct {
2405 CallbackToken uint32
2407 }))(obj)).RawHash))) > math.MaxUint16 {
2411 x := uint16(len(([]byte((*(*(struct {
2414 CallbackToken uint32
2416 }))(obj)).RawHash))))
2417 write16(w, uint16(x))
2420 _, err := w.Write(([]byte((*(*(struct {
2423 CallbackToken uint32
2425 }))(obj)).RawHash))[:])
2428 if len(([]byte((*(*(struct {
2431 CallbackToken uint32
2433 }))(obj)).Filename))) > math.MaxUint16 {
2437 x := uint16(len(([]byte((*(*(struct {
2440 CallbackToken uint32
2442 }))(obj)).Filename))))
2443 write16(w, uint16(x))
2446 _, err := w.Write(([]byte((*(*(struct {
2449 CallbackToken uint32
2451 }))(obj)).Filename))[:])
2458 CallbackToken uint32
2460 }))(obj)).CallbackToken
2461 write32(w, uint32(x))
2467 CallbackToken uint32
2469 }))(obj)).ShouldCache
2478 func (obj *ToCltMediaPush) Deserialize(r io.Reader) {
2485 (local69) = make([]uint8, local70)
2487 _, err := io.ReadFull(r, (local69)[:])
2493 CallbackToken uint32
2495 }))(obj)).RawHash) = string(local69)
2502 (local71) = make([]uint8, local72)
2504 _, err := io.ReadFull(r, (local71)[:])
2510 CallbackToken uint32
2512 }))(obj)).Filename) = string(local71)
2517 CallbackToken uint32
2519 }))(obj)).CallbackToken
2526 CallbackToken uint32
2528 }))(obj)).ShouldCache
2529 switch n := read8(r); n {
2535 chk(fmt.Errorf("invalid bool: %d", n))
2540 func (obj *ToCltChatMsg) Serialize(w io.Writer) {
2548 if err := pcall(func() {
2555 Timestamp int64 // Unix time.
2556 }))(obj)).Type).Serialize(w)
2561 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2563 local74 := utf16.Encode([]rune((*(*(struct {
2569 Timestamp int64 // Unix time.
2571 if len((local74)) > math.MaxUint16 {
2575 x := uint16(len((local74)))
2576 write16(w, uint16(x))
2578 for local75 := range local74 {
2580 x := (local74)[local75]
2581 write16(w, uint16(x))
2584 local76 := utf16.Encode([]rune((*(*(struct {
2590 Timestamp int64 // Unix time.
2592 if len((local76)) > math.MaxUint16 {
2596 x := uint16(len((local76)))
2597 write16(w, uint16(x))
2599 for local77 := range local76 {
2601 x := (local76)[local77]
2602 write16(w, uint16(x))
2612 Timestamp int64 // Unix time.
2614 write64(w, uint64(x))
2618 func (obj *ToCltChatMsg) Deserialize(r io.Reader) {
2626 if local78 != local79 {
2627 chk(fmt.Errorf("const %v: %v", "uint8(1)", local78))
2630 if err := pcall(func() {
2637 Timestamp int64 // Unix time.
2638 }))(obj)).Type).Deserialize(r)
2643 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ChatMsgType", err))
2645 var local80 []uint16
2651 (local80) = make([]uint16, local81)
2652 for local82 := range local80 {
2654 p := &(local80)[local82]
2664 Timestamp int64 // Unix time.
2665 }))(obj)).Sender = string(utf16.Decode(local80))
2666 var local83 []uint16
2672 (local83) = make([]uint16, local84)
2673 for local85 := range local83 {
2675 p := &(local83)[local85]
2685 Timestamp int64 // Unix time.
2686 }))(obj)).Text = string(utf16.Decode(local83))
2694 Timestamp int64 // Unix time.
2696 *p = int64(read64(r))
2700 func (obj *ToCltAORmAdd) Serialize(w io.Writer) {
2701 if len(((*(*(struct {
2704 }))(obj)).Remove)) > math.MaxUint16 {
2708 x := uint16(len(((*(*(struct {
2712 write16(w, uint16(x))
2714 for local86 := range (*(*(struct {
2718 if err := pcall(func() {
2722 }))(obj)).Remove)[local86]).Serialize(w)
2727 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2730 if len(((*(*(struct {
2733 }))(obj)).Add)) > math.MaxUint16 {
2737 x := uint16(len(((*(*(struct {
2741 write16(w, uint16(x))
2743 for local87 := range (*(*(struct {
2747 if err := pcall(func() {
2751 }))(obj)).Add)[local87]).Serialize(w)
2756 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2761 func (obj *ToCltAORmAdd) Deserialize(r io.Reader) {
2770 }))(obj)).Remove) = make([]AOID, local88)
2771 for local89 := range (*(*(struct {
2775 if err := pcall(func() {
2779 }))(obj)).Remove)[local89]).Deserialize(r)
2784 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
2795 }))(obj)).Add) = make([]AOAdd, local90)
2796 for local91 := range (*(*(struct {
2800 if err := pcall(func() {
2804 }))(obj)).Add)[local91]).Deserialize(r)
2809 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAdd", err))
2814 func (obj *ToCltAOMsgs) Serialize(w io.Writer) {
2815 for local92 := range (*(*(struct {
2819 if err := pcall(func() {
2823 }))(obj)).Msgs)[local92]).Serialize(w)
2828 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2833 func (obj *ToCltAOMsgs) Deserialize(r io.Reader) {
2836 err := pcall(func() {
2837 if err := pcall(func() {
2838 (local93).Deserialize(r)
2843 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.IDAOMsg", err))
2852 }))(obj)).Msgs) = append(((*(*(struct {
2855 }))(obj)).Msgs), local93)
2860 func (obj *ToCltHP) Serialize(w io.Writer) {
2867 write16(w, uint16(x))
2869 if err := pcall(func() {
2875 }))(obj)).DamageEffect
2882 }); err != nil && err != io.EOF {
2887 func (obj *ToCltHP) Deserialize(r io.Reader) {
2896 if err := pcall(func() {
2902 }))(obj)).DamageEffect
2903 switch n := read8(r); n {
2909 chk(fmt.Errorf("invalid bool: %d", n))
2912 }); err != nil && err != io.EOF {
2917 func (obj *ToCltMovePlayer) Serialize(w io.Writer) {
2918 if err := pcall(func() {
2922 }))(obj)).Pos).Serialize(w)
2927 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2934 write32(w, math.Float32bits(x))
2941 write32(w, math.Float32bits(x))
2945 func (obj *ToCltMovePlayer) Deserialize(r io.Reader) {
2946 if err := pcall(func() {
2950 }))(obj)).Pos).Deserialize(r)
2955 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
2962 *p = math.Float32frombits(read32(r))
2969 *p = math.Float32frombits(read32(r))
2973 func (obj *ToCltLegacyKick) Serialize(w io.Writer) {
2974 local94 := utf16.Encode([]rune((*(*(struct {
2978 if len((local94)) > math.MaxUint16 {
2982 x := uint16(len((local94)))
2983 write16(w, uint16(x))
2985 for local95 := range local94 {
2987 x := (local94)[local95]
2988 write16(w, uint16(x))
2993 func (obj *ToCltLegacyKick) Deserialize(r io.Reader) {
2994 var local96 []uint16
3000 (local96) = make([]uint16, local97)
3001 for local98 := range local96 {
3003 p := &(local96)[local98]
3010 }))(obj)).Reason = string(utf16.Decode(local96))
3013 func (obj *ToCltFOV) Serialize(w io.Writer) {
3018 TransitionTime float32
3020 write32(w, math.Float32bits(x))
3026 TransitionTime float32
3027 }))(obj)).Multiplier
3038 TransitionTime float32
3039 }))(obj)).TransitionTime
3040 write32(w, math.Float32bits(x))
3044 func (obj *ToCltFOV) Deserialize(r io.Reader) {
3049 TransitionTime float32
3051 *p = math.Float32frombits(read32(r))
3057 TransitionTime float32
3058 }))(obj)).Multiplier
3059 switch n := read8(r); n {
3065 chk(fmt.Errorf("invalid bool: %d", n))
3072 TransitionTime float32
3073 }))(obj)).TransitionTime
3074 *p = math.Float32frombits(read32(r))
3078 func (obj *ToCltDeathScreen) Serialize(w io.Writer) {
3090 if err := pcall(func() {
3094 }))(obj)).PointAt).Serialize(w)
3099 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3103 func (obj *ToCltDeathScreen) Deserialize(r io.Reader) {
3109 switch n := read8(r); n {
3115 chk(fmt.Errorf("invalid bool: %d", n))
3118 if err := pcall(func() {
3122 }))(obj)).PointAt).Deserialize(r)
3127 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
3131 func (obj *ToCltMedia) Serialize(w io.Writer) {
3134 // N is the total number of ToCltMedia packets.
3135 // I is the index of this packet.
3146 write16(w, uint16(x))
3150 // N is the total number of ToCltMedia packets.
3151 // I is the index of this packet.
3162 write16(w, uint16(x))
3164 if len(((*(*(struct {
3165 // N is the total number of ToCltMedia packets.
3166 // I is the index of this packet.
3176 }))(obj)).Files)) > math.MaxUint32 {
3180 x := uint32(len(((*(*(struct {
3181 // N is the total number of ToCltMedia packets.
3182 // I is the index of this packet.
3193 write32(w, uint32(x))
3195 for local99 := range (*(*(struct {
3196 // N is the total number of ToCltMedia packets.
3197 // I is the index of this packet.
3208 if len(([]byte((((*(*(struct {
3209 // N is the total number of ToCltMedia packets.
3210 // I is the index of this packet.
3220 }))(obj)).Files)[local99]).Name))) > math.MaxUint16 {
3224 x := uint16(len(([]byte((((*(*(struct {
3225 // N is the total number of ToCltMedia packets.
3226 // I is the index of this packet.
3236 }))(obj)).Files)[local99]).Name))))
3237 write16(w, uint16(x))
3240 _, err := w.Write(([]byte((((*(*(struct {
3241 // N is the total number of ToCltMedia packets.
3242 // I is the index of this packet.
3252 }))(obj)).Files)[local99]).Name))[:])
3255 if len(((((*(*(struct {
3256 // N is the total number of ToCltMedia packets.
3257 // I is the index of this packet.
3267 }))(obj)).Files)[local99]).Data)) > math.MaxUint32 {
3271 x := uint32(len(((((*(*(struct {
3272 // N is the total number of ToCltMedia packets.
3273 // I is the index of this packet.
3283 }))(obj)).Files)[local99]).Data)))
3284 write32(w, uint32(x))
3287 _, err := w.Write(((((*(*(struct {
3288 // N is the total number of ToCltMedia packets.
3289 // I is the index of this packet.
3299 }))(obj)).Files)[local99]).Data)[:])
3305 func (obj *ToCltMedia) Deserialize(r io.Reader) {
3308 // N is the total number of ToCltMedia packets.
3309 // I is the index of this packet.
3324 // N is the total number of ToCltMedia packets.
3325 // I is the index of this packet.
3344 // N is the total number of ToCltMedia packets.
3345 // I is the index of this packet.
3355 }))(obj)).Files) = make([]struct {
3359 for local101 := range (*(*(struct {
3360 // N is the total number of ToCltMedia packets.
3361 // I is the index of this packet.
3372 var local102 []uint8
3378 (local102) = make([]uint8, local103)
3380 _, err := io.ReadFull(r, (local102)[:])
3384 // N is the total number of ToCltMedia packets.
3385 // I is the index of this packet.
3395 }))(obj)).Files)[local101]).Name) = string(local102)
3402 // N is the total number of ToCltMedia packets.
3403 // I is the index of this packet.
3413 }))(obj)).Files)[local101]).Data) = make([]byte, local104)
3415 _, err := io.ReadFull(r, ((((*(*(struct {
3416 // N is the total number of ToCltMedia packets.
3417 // I is the index of this packet.
3427 }))(obj)).Files)[local101]).Data)[:])
3433 func (obj *ToCltNodeDefs) Serialize(w io.Writer) {
3436 w := new(bytes.Buffer)
3438 w := zlib.NewWriter(w)
3440 local105 := uint8(1)
3449 // See (de)serialize.fmt.
3452 { // For ToCltNodeDefs.Defs.
3453 if len(x) > math.MaxUint16 {
3456 write16(w, uint16(len(x)))
3461 if b.Len() > math.MaxUint32 {
3464 write32(w, uint32(b.Len()))
3465 _, err := b.WriteTo(w)
3474 if len((buf.Bytes())) > math.MaxUint32 {
3478 x := uint32(len((buf.Bytes())))
3479 write32(w, uint32(x))
3482 _, err := w.Write((buf.Bytes())[:])
3489 func (obj *ToCltNodeDefs) Deserialize(r io.Reader) {
3496 r := &io.LimitedReader{R: r, N: int64(n)}
3498 r, err := zlib.NewReader(byteReader{r})
3502 local107 := uint8(1)
3507 if local106 != local107 {
3508 chk(fmt.Errorf("const %v: %v", "uint8(1)", local106))
3514 // See (de)serialize.fmt.
3517 { // For ToCltNodeDefs.Defs.
3518 *p = make([]NodeDef, read16(r))
3519 r := &io.LimitedReader{R: r, N: int64(read32(r))}
3521 (*p)[i].Deserialize(r)
3524 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3531 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3536 func (obj *ToCltAnnounceMedia) Serialize(w io.Writer) {
3537 if len(((*(*(struct {
3543 }))(obj)).Files)) > math.MaxUint16 {
3547 x := uint16(len(((*(*(struct {
3554 write16(w, uint16(x))
3556 for local108 := range (*(*(struct {
3563 if len(([]byte((((*(*(struct {
3569 }))(obj)).Files)[local108]).Name))) > math.MaxUint16 {
3573 x := uint16(len(([]byte((((*(*(struct {
3579 }))(obj)).Files)[local108]).Name))))
3580 write16(w, uint16(x))
3583 _, err := w.Write(([]byte((((*(*(struct {
3589 }))(obj)).Files)[local108]).Name))[:])
3592 if len(([]byte((((*(*(struct {
3598 }))(obj)).Files)[local108]).Base64SHA1))) > math.MaxUint16 {
3602 x := uint16(len(([]byte((((*(*(struct {
3608 }))(obj)).Files)[local108]).Base64SHA1))))
3609 write16(w, uint16(x))
3612 _, err := w.Write(([]byte((((*(*(struct {
3618 }))(obj)).Files)[local108]).Base64SHA1))[:])
3622 if len(([]byte((*(*(struct {
3628 }))(obj)).URL))) > math.MaxUint16 {
3632 x := uint16(len(([]byte((*(*(struct {
3639 write16(w, uint16(x))
3642 _, err := w.Write(([]byte((*(*(struct {
3653 func (obj *ToCltAnnounceMedia) Deserialize(r io.Reader) {
3665 }))(obj)).Files) = make([]struct {
3669 for local110 := range (*(*(struct {
3676 var local111 []uint8
3682 (local111) = make([]uint8, local112)
3684 _, err := io.ReadFull(r, (local111)[:])
3693 }))(obj)).Files)[local110]).Name) = string(local111)
3694 var local113 []uint8
3700 (local113) = make([]uint8, local114)
3702 _, err := io.ReadFull(r, (local113)[:])
3711 }))(obj)).Files)[local110]).Base64SHA1) = string(local113)
3713 var local115 []uint8
3719 (local115) = make([]uint8, local116)
3721 _, err := io.ReadFull(r, (local115)[:])
3730 }))(obj)).URL) = string(local115)
3733 func (obj *ToCltItemDefs) Serialize(w io.Writer) {
3736 w := new(bytes.Buffer)
3738 w := zlib.NewWriter(w)
3740 local117 := uint8(0)
3746 if len(((*(*(struct {
3748 Aliases []struct{ Alias, Orig string }
3749 }))(obj)).Defs)) > math.MaxUint16 {
3753 x := uint16(len(((*(*(struct {
3755 Aliases []struct{ Alias, Orig string }
3757 write16(w, uint16(x))
3759 for local118 := range (*(*(struct {
3761 Aliases []struct{ Alias, Orig string }
3763 if err := pcall(func() {
3766 Aliases []struct{ Alias, Orig string }
3767 }))(obj)).Defs)[local118]).Serialize(w)
3772 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3775 if len(((*(*(struct {
3777 Aliases []struct{ Alias, Orig string }
3778 }))(obj)).Aliases)) > math.MaxUint16 {
3782 x := uint16(len(((*(*(struct {
3784 Aliases []struct{ Alias, Orig string }
3785 }))(obj)).Aliases)))
3786 write16(w, uint16(x))
3788 for local119 := range (*(*(struct {
3790 Aliases []struct{ Alias, Orig string }
3792 if len(([]byte((((*(*(struct {
3794 Aliases []struct{ Alias, Orig string }
3795 }))(obj)).Aliases)[local119]).Alias))) > math.MaxUint16 {
3799 x := uint16(len(([]byte((((*(*(struct {
3801 Aliases []struct{ Alias, Orig string }
3802 }))(obj)).Aliases)[local119]).Alias))))
3803 write16(w, uint16(x))
3806 _, err := w.Write(([]byte((((*(*(struct {
3808 Aliases []struct{ Alias, Orig string }
3809 }))(obj)).Aliases)[local119]).Alias))[:])
3812 if len(([]byte((((*(*(struct {
3814 Aliases []struct{ Alias, Orig string }
3815 }))(obj)).Aliases)[local119]).Orig))) > math.MaxUint16 {
3819 x := uint16(len(([]byte((((*(*(struct {
3821 Aliases []struct{ Alias, Orig string }
3822 }))(obj)).Aliases)[local119]).Orig))))
3823 write16(w, uint16(x))
3826 _, err := w.Write(([]byte((((*(*(struct {
3828 Aliases []struct{ Alias, Orig string }
3829 }))(obj)).Aliases)[local119]).Orig))[:])
3838 if len((buf.Bytes())) > math.MaxUint32 {
3842 x := uint32(len((buf.Bytes())))
3843 write32(w, uint32(x))
3846 _, err := w.Write((buf.Bytes())[:])
3853 func (obj *ToCltItemDefs) Deserialize(r io.Reader) {
3860 r := &io.LimitedReader{R: r, N: int64(n)}
3862 r, err := zlib.NewReader(byteReader{r})
3866 local121 := uint8(0)
3871 if local120 != local121 {
3872 chk(fmt.Errorf("const %v: %v", "uint8(0)", local120))
3882 Aliases []struct{ Alias, Orig string }
3883 }))(obj)).Defs) = make([]ItemDef, local122)
3884 for local123 := range (*(*(struct {
3886 Aliases []struct{ Alias, Orig string }
3888 if err := pcall(func() {
3891 Aliases []struct{ Alias, Orig string }
3892 }))(obj)).Defs)[local123]).Deserialize(r)
3897 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemDef", err))
3907 Aliases []struct{ Alias, Orig string }
3908 }))(obj)).Aliases) = make([]struct {
3912 for local125 := range (*(*(struct {
3914 Aliases []struct{ Alias, Orig string }
3916 var local126 []uint8
3922 (local126) = make([]uint8, local127)
3924 _, err := io.ReadFull(r, (local126)[:])
3929 Aliases []struct{ Alias, Orig string }
3930 }))(obj)).Aliases)[local125]).Alias) = string(local126)
3931 var local128 []uint8
3937 (local128) = make([]uint8, local129)
3939 _, err := io.ReadFull(r, (local128)[:])
3944 Aliases []struct{ Alias, Orig string }
3945 }))(obj)).Aliases)[local125]).Orig) = string(local128)
3950 chk(fmt.Errorf("%d bytes of trailing data", r.N))
3955 func (obj *ToCltPlaySound) Serialize(w io.Writer) {
3956 if err := pcall(func() {
3961 SrcType SoundSrcType
3968 }))(obj)).ID).Serialize(w)
3973 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
3975 if len(([]byte((*(*(struct {
3979 SrcType SoundSrcType
3986 }))(obj)).Name))) > math.MaxUint16 {
3990 x := uint16(len(([]byte((*(*(struct {
3994 SrcType SoundSrcType
4002 write16(w, uint16(x))
4005 _, err := w.Write(([]byte((*(*(struct {
4009 SrcType SoundSrcType
4016 }))(obj)).Name))[:])
4024 SrcType SoundSrcType
4032 write32(w, math.Float32bits(x))
4034 if err := pcall(func() {
4039 SrcType SoundSrcType
4046 }))(obj)).SrcType).Serialize(w)
4051 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
4053 if err := pcall(func() {
4058 SrcType SoundSrcType
4065 }))(obj)).Pos).Serialize(w)
4070 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4072 if err := pcall(func() {
4077 SrcType SoundSrcType
4084 }))(obj)).SrcAOID).Serialize(w)
4089 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4096 SrcType SoundSrcType
4115 SrcType SoundSrcType
4123 write32(w, math.Float32bits(x))
4130 SrcType SoundSrcType
4138 write32(w, math.Float32bits(x))
4145 SrcType SoundSrcType
4161 func (obj *ToCltPlaySound) Deserialize(r io.Reader) {
4162 if err := pcall(func() {
4167 SrcType SoundSrcType
4174 }))(obj)).ID).Deserialize(r)
4179 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4181 var local130 []uint8
4187 (local130) = make([]uint8, local131)
4189 _, err := io.ReadFull(r, (local130)[:])
4196 SrcType SoundSrcType
4203 }))(obj)).Name) = string(local130)
4209 SrcType SoundSrcType
4217 *p = math.Float32frombits(read32(r))
4219 if err := pcall(func() {
4224 SrcType SoundSrcType
4231 }))(obj)).SrcType).Deserialize(r)
4236 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundSrcType", err))
4238 if err := pcall(func() {
4243 SrcType SoundSrcType
4250 }))(obj)).Pos).Deserialize(r)
4255 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
4257 if err := pcall(func() {
4262 SrcType SoundSrcType
4269 }))(obj)).SrcAOID).Deserialize(r)
4274 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
4281 SrcType SoundSrcType
4289 switch n := read8(r); n {
4295 chk(fmt.Errorf("invalid bool: %d", n))
4303 SrcType SoundSrcType
4311 *p = math.Float32frombits(read32(r))
4318 SrcType SoundSrcType
4326 *p = math.Float32frombits(read32(r))
4333 SrcType SoundSrcType
4341 switch n := read8(r); n {
4347 chk(fmt.Errorf("invalid bool: %d", n))
4352 func (obj *ToCltStopSound) Serialize(w io.Writer) {
4353 if err := pcall(func() {
4356 }))(obj)).ID).Serialize(w)
4361 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4365 func (obj *ToCltStopSound) Deserialize(r io.Reader) {
4366 if err := pcall(func() {
4369 }))(obj)).ID).Deserialize(r)
4374 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
4378 func (obj *ToCltPrivs) Serialize(w io.Writer) {
4379 if len(((*(*(struct {
4381 }))(obj)).Privs)) > math.MaxUint16 {
4385 x := uint16(len(((*(*(struct {
4388 write16(w, uint16(x))
4390 for local132 := range (*(*(struct {
4393 if len(([]byte(((*(*(struct {
4395 }))(obj)).Privs)[local132]))) > math.MaxUint16 {
4399 x := uint16(len(([]byte(((*(*(struct {
4401 }))(obj)).Privs)[local132]))))
4402 write16(w, uint16(x))
4405 _, err := w.Write(([]byte(((*(*(struct {
4407 }))(obj)).Privs)[local132]))[:])
4413 func (obj *ToCltPrivs) Deserialize(r io.Reader) {
4421 }))(obj)).Privs) = make([]string, local133)
4422 for local134 := range (*(*(struct {
4425 var local135 []uint8
4431 (local135) = make([]uint8, local136)
4433 _, err := io.ReadFull(r, (local135)[:])
4438 }))(obj)).Privs)[local134]) = string(local135)
4442 func (obj *ToCltInvFormspec) Serialize(w io.Writer) {
4443 if len(([]byte((*(*(struct {
4446 }))(obj)).Formspec))) > math.MaxUint32 {
4450 x := uint32(len(([]byte((*(*(struct {
4453 }))(obj)).Formspec))))
4454 write32(w, uint32(x))
4457 _, err := w.Write(([]byte((*(*(struct {
4460 }))(obj)).Formspec))[:])
4465 func (obj *ToCltInvFormspec) Deserialize(r io.Reader) {
4466 var local137 []uint8
4472 (local137) = make([]uint8, local138)
4474 _, err := io.ReadFull(r, (local137)[:])
4480 }))(obj)).Formspec) = string(local137)
4483 func (obj *ToCltDetachedInv) Serialize(w io.Writer) {
4484 if len(([]byte((*(*(struct {
4487 Len uint16 // deprecated
4491 }))(obj)).Name))) > math.MaxUint16 {
4495 x := uint16(len(([]byte((*(*(struct {
4498 Len uint16 // deprecated
4503 write16(w, uint16(x))
4506 _, err := w.Write(([]byte((*(*(struct {
4509 Len uint16 // deprecated
4513 }))(obj)).Name))[:])
4520 Len uint16 // deprecated
4535 Len uint16 // deprecated
4540 write16(w, uint16(x))
4543 _, err := w.Write(([]byte((*(*(struct {
4546 Len uint16 // deprecated
4555 func (obj *ToCltDetachedInv) Deserialize(r io.Reader) {
4556 var local139 []uint8
4562 (local139) = make([]uint8, local140)
4564 _, err := io.ReadFull(r, (local139)[:])
4570 Len uint16 // deprecated
4574 }))(obj)).Name) = string(local139)
4579 Len uint16 // deprecated
4584 switch n := read8(r); n {
4590 chk(fmt.Errorf("invalid bool: %d", n))
4597 Len uint16 // deprecated
4604 var local141 []uint8
4607 (local141), err = io.ReadAll(r)
4613 Len uint16 // deprecated
4617 }))(obj)).Inv) = string(local141)
4620 func (obj *ToCltShowFormspec) Serialize(w io.Writer) {
4621 if len(([]byte((*(*(struct {
4626 }))(obj)).Formspec))) > math.MaxUint32 {
4630 x := uint32(len(([]byte((*(*(struct {
4635 }))(obj)).Formspec))))
4636 write32(w, uint32(x))
4639 _, err := w.Write(([]byte((*(*(struct {
4644 }))(obj)).Formspec))[:])
4647 if len(([]byte((*(*(struct {
4652 }))(obj)).Formname))) > math.MaxUint16 {
4656 x := uint16(len(([]byte((*(*(struct {
4661 }))(obj)).Formname))))
4662 write16(w, uint16(x))
4665 _, err := w.Write(([]byte((*(*(struct {
4670 }))(obj)).Formname))[:])
4675 func (obj *ToCltShowFormspec) Deserialize(r io.Reader) {
4676 var local142 []uint8
4682 (local142) = make([]uint8, local143)
4684 _, err := io.ReadFull(r, (local142)[:])
4692 }))(obj)).Formspec) = string(local142)
4693 var local144 []uint8
4699 (local144) = make([]uint8, local145)
4701 _, err := io.ReadFull(r, (local144)[:])
4709 }))(obj)).Formname) = string(local144)
4712 func (obj *ToCltMovement) Serialize(w io.Writer) {
4715 DefaultAccel, AirAccel, FastAccel,
4716 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4717 Fluidity, Smoothing, Sink,
4719 }))(obj)).DefaultAccel
4720 write32(w, math.Float32bits(x))
4724 DefaultAccel, AirAccel, FastAccel,
4725 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4726 Fluidity, Smoothing, Sink,
4729 write32(w, math.Float32bits(x))
4733 DefaultAccel, AirAccel, FastAccel,
4734 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4735 Fluidity, Smoothing, Sink,
4738 write32(w, math.Float32bits(x))
4742 DefaultAccel, AirAccel, FastAccel,
4743 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4744 Fluidity, Smoothing, Sink,
4747 write32(w, math.Float32bits(x))
4751 DefaultAccel, AirAccel, FastAccel,
4752 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4753 Fluidity, Smoothing, Sink,
4755 }))(obj)).CrouchSpeed
4756 write32(w, math.Float32bits(x))
4760 DefaultAccel, AirAccel, FastAccel,
4761 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4762 Fluidity, Smoothing, Sink,
4765 write32(w, math.Float32bits(x))
4769 DefaultAccel, AirAccel, FastAccel,
4770 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4771 Fluidity, Smoothing, Sink,
4773 }))(obj)).ClimbSpeed
4774 write32(w, math.Float32bits(x))
4778 DefaultAccel, AirAccel, FastAccel,
4779 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4780 Fluidity, Smoothing, Sink,
4783 write32(w, math.Float32bits(x))
4787 DefaultAccel, AirAccel, FastAccel,
4788 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4789 Fluidity, Smoothing, Sink,
4792 write32(w, math.Float32bits(x))
4796 DefaultAccel, AirAccel, FastAccel,
4797 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4798 Fluidity, Smoothing, Sink,
4801 write32(w, math.Float32bits(x))
4805 DefaultAccel, AirAccel, FastAccel,
4806 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4807 Fluidity, Smoothing, Sink,
4810 write32(w, math.Float32bits(x))
4814 DefaultAccel, AirAccel, FastAccel,
4815 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4816 Fluidity, Smoothing, Sink,
4819 write32(w, math.Float32bits(x))
4823 func (obj *ToCltMovement) Deserialize(r io.Reader) {
4826 DefaultAccel, AirAccel, FastAccel,
4827 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4828 Fluidity, Smoothing, Sink,
4830 }))(obj)).DefaultAccel
4831 *p = math.Float32frombits(read32(r))
4835 DefaultAccel, AirAccel, FastAccel,
4836 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4837 Fluidity, Smoothing, Sink,
4840 *p = math.Float32frombits(read32(r))
4844 DefaultAccel, AirAccel, FastAccel,
4845 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4846 Fluidity, Smoothing, Sink,
4849 *p = math.Float32frombits(read32(r))
4853 DefaultAccel, AirAccel, FastAccel,
4854 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4855 Fluidity, Smoothing, Sink,
4858 *p = math.Float32frombits(read32(r))
4862 DefaultAccel, AirAccel, FastAccel,
4863 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4864 Fluidity, Smoothing, Sink,
4866 }))(obj)).CrouchSpeed
4867 *p = math.Float32frombits(read32(r))
4871 DefaultAccel, AirAccel, FastAccel,
4872 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4873 Fluidity, Smoothing, Sink,
4876 *p = math.Float32frombits(read32(r))
4880 DefaultAccel, AirAccel, FastAccel,
4881 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4882 Fluidity, Smoothing, Sink,
4884 }))(obj)).ClimbSpeed
4885 *p = math.Float32frombits(read32(r))
4889 DefaultAccel, AirAccel, FastAccel,
4890 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4891 Fluidity, Smoothing, Sink,
4894 *p = math.Float32frombits(read32(r))
4898 DefaultAccel, AirAccel, FastAccel,
4899 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4900 Fluidity, Smoothing, Sink,
4903 *p = math.Float32frombits(read32(r))
4907 DefaultAccel, AirAccel, FastAccel,
4908 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4909 Fluidity, Smoothing, Sink,
4912 *p = math.Float32frombits(read32(r))
4916 DefaultAccel, AirAccel, FastAccel,
4917 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4918 Fluidity, Smoothing, Sink,
4921 *p = math.Float32frombits(read32(r))
4925 DefaultAccel, AirAccel, FastAccel,
4926 WalkSpeed, CrouchSpeed, FastSpeed, ClimbSpeed, JumpSpeed,
4927 Fluidity, Smoothing, Sink,
4930 *p = math.Float32frombits(read32(r))
4934 func (obj *ToCltSpawnParticle) Serialize(w io.Writer) {
4935 for local146 := range (*(*(struct {
4936 Pos, Vel, Acc [3]float32
4937 ExpirationTime float32 // in seconds.
4955 Pos, Vel, Acc [3]float32
4956 ExpirationTime float32 // in seconds.
4971 }))(obj)).Pos)[local146]
4972 write32(w, math.Float32bits(x))
4975 for local147 := range (*(*(struct {
4976 Pos, Vel, Acc [3]float32
4977 ExpirationTime float32 // in seconds.
4995 Pos, Vel, Acc [3]float32
4996 ExpirationTime float32 // in seconds.
5011 }))(obj)).Vel)[local147]
5012 write32(w, math.Float32bits(x))
5015 for local148 := range (*(*(struct {
5016 Pos, Vel, Acc [3]float32
5017 ExpirationTime float32 // in seconds.
5035 Pos, Vel, Acc [3]float32
5036 ExpirationTime float32 // in seconds.
5051 }))(obj)).Acc)[local148]
5052 write32(w, math.Float32bits(x))
5057 Pos, Vel, Acc [3]float32
5058 ExpirationTime float32 // in seconds.
5073 }))(obj)).ExpirationTime
5074 write32(w, math.Float32bits(x))
5078 Pos, Vel, Acc [3]float32
5079 ExpirationTime float32 // in seconds.
5095 write32(w, math.Float32bits(x))
5099 Pos, Vel, Acc [3]float32
5100 ExpirationTime float32 // in seconds.
5122 if len(([]byte(*(*string)(&((*(*(struct {
5123 Pos, Vel, Acc [3]float32
5124 ExpirationTime float32 // in seconds.
5139 }))(obj)).Texture))))) > math.MaxUint32 {
5143 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
5144 Pos, Vel, Acc [3]float32
5145 ExpirationTime float32 // in seconds.
5160 }))(obj)).Texture))))))
5161 write32(w, uint32(x))
5164 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
5165 Pos, Vel, Acc [3]float32
5166 ExpirationTime float32 // in seconds.
5181 }))(obj)).Texture))))[:])
5186 Pos, Vel, Acc [3]float32
5187 ExpirationTime float32 // in seconds.
5211 Pos, Vel, Acc [3]float32
5212 ExpirationTime float32 // in seconds.
5227 }))(obj)).CollisionRm
5234 if err := pcall(func() {
5236 Pos, Vel, Acc [3]float32
5237 ExpirationTime float32 // in seconds.
5252 }))(obj)).AnimParams).Serialize(w)
5257 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5261 Pos, Vel, Acc [3]float32
5262 ExpirationTime float32 // in seconds.
5282 Pos, Vel, Acc [3]float32
5283 ExpirationTime float32 // in seconds.
5298 }))(obj)).AOCollision
5305 if err := pcall(func() {
5307 Pos, Vel, Acc [3]float32
5308 ExpirationTime float32 // in seconds.
5323 }))(obj)).NodeParam0).Serialize(w)
5328 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5332 Pos, Vel, Acc [3]float32
5333 ExpirationTime float32 // in seconds.
5348 }))(obj)).NodeParam2
5353 Pos, Vel, Acc [3]float32
5354 ExpirationTime float32 // in seconds.
5374 func (obj *ToCltSpawnParticle) Deserialize(r io.Reader) {
5375 for local149 := range (*(*(struct {
5376 Pos, Vel, Acc [3]float32
5377 ExpirationTime float32 // in seconds.
5394 p := &((*(*(struct {
5395 Pos, Vel, Acc [3]float32
5396 ExpirationTime float32 // in seconds.
5411 }))(obj)).Pos)[local149]
5412 *p = math.Float32frombits(read32(r))
5415 for local150 := range (*(*(struct {
5416 Pos, Vel, Acc [3]float32
5417 ExpirationTime float32 // in seconds.
5434 p := &((*(*(struct {
5435 Pos, Vel, Acc [3]float32
5436 ExpirationTime float32 // in seconds.
5451 }))(obj)).Vel)[local150]
5452 *p = math.Float32frombits(read32(r))
5455 for local151 := range (*(*(struct {
5456 Pos, Vel, Acc [3]float32
5457 ExpirationTime float32 // in seconds.
5474 p := &((*(*(struct {
5475 Pos, Vel, Acc [3]float32
5476 ExpirationTime float32 // in seconds.
5491 }))(obj)).Acc)[local151]
5492 *p = math.Float32frombits(read32(r))
5497 Pos, Vel, Acc [3]float32
5498 ExpirationTime float32 // in seconds.
5513 }))(obj)).ExpirationTime
5514 *p = math.Float32frombits(read32(r))
5518 Pos, Vel, Acc [3]float32
5519 ExpirationTime float32 // in seconds.
5535 *p = math.Float32frombits(read32(r))
5539 Pos, Vel, Acc [3]float32
5540 ExpirationTime float32 // in seconds.
5556 switch n := read8(r); n {
5562 chk(fmt.Errorf("invalid bool: %d", n))
5565 var local152 []uint8
5571 (local152) = make([]uint8, local153)
5573 _, err := io.ReadFull(r, (local152)[:])
5576 (*(*string)(&((*(*(struct {
5577 Pos, Vel, Acc [3]float32
5578 ExpirationTime float32 // in seconds.
5593 }))(obj)).Texture))) = string(local152)
5596 Pos, Vel, Acc [3]float32
5597 ExpirationTime float32 // in seconds.
5613 switch n := read8(r); n {
5619 chk(fmt.Errorf("invalid bool: %d", n))
5624 Pos, Vel, Acc [3]float32
5625 ExpirationTime float32 // in seconds.
5640 }))(obj)).CollisionRm
5641 switch n := read8(r); n {
5647 chk(fmt.Errorf("invalid bool: %d", n))
5650 if err := pcall(func() {
5652 Pos, Vel, Acc [3]float32
5653 ExpirationTime float32 // in seconds.
5668 }))(obj)).AnimParams).Deserialize(r)
5673 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
5677 Pos, Vel, Acc [3]float32
5678 ExpirationTime float32 // in seconds.
5698 Pos, Vel, Acc [3]float32
5699 ExpirationTime float32 // in seconds.
5714 }))(obj)).AOCollision
5715 switch n := read8(r); n {
5721 chk(fmt.Errorf("invalid bool: %d", n))
5724 if err := pcall(func() {
5726 Pos, Vel, Acc [3]float32
5727 ExpirationTime float32 // in seconds.
5742 }))(obj)).NodeParam0).Deserialize(r)
5747 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
5751 Pos, Vel, Acc [3]float32
5752 ExpirationTime float32 // in seconds.
5767 }))(obj)).NodeParam2
5772 Pos, Vel, Acc [3]float32
5773 ExpirationTime float32 // in seconds.
5793 func (obj *ToCltAddParticleSpawner) Serialize(w io.Writer) {
5798 Pos, Vel, Acc [2][3]float32
5799 ExpirationTime [2]float32 // in seconds.
5806 ID ParticleSpawnerID
5817 write16(w, uint16(x))
5823 Pos, Vel, Acc [2][3]float32
5824 ExpirationTime [2]float32 // in seconds.
5831 ID ParticleSpawnerID
5842 write32(w, math.Float32bits(x))
5844 for local154 := range (*(*(struct {
5847 Pos, Vel, Acc [2][3]float32
5848 ExpirationTime [2]float32 // in seconds.
5855 ID ParticleSpawnerID
5866 for local155 := range ((*(*(struct {
5869 Pos, Vel, Acc [2][3]float32
5870 ExpirationTime [2]float32 // in seconds.
5877 ID ParticleSpawnerID
5887 }))(obj)).Pos)[local154] {
5889 x := (((*(*(struct {
5892 Pos, Vel, Acc [2][3]float32
5893 ExpirationTime [2]float32 // in seconds.
5900 ID ParticleSpawnerID
5910 }))(obj)).Pos)[local154])[local155]
5911 write32(w, math.Float32bits(x))
5915 for local156 := range (*(*(struct {
5918 Pos, Vel, Acc [2][3]float32
5919 ExpirationTime [2]float32 // in seconds.
5926 ID ParticleSpawnerID
5937 for local157 := range ((*(*(struct {
5940 Pos, Vel, Acc [2][3]float32
5941 ExpirationTime [2]float32 // in seconds.
5948 ID ParticleSpawnerID
5958 }))(obj)).Vel)[local156] {
5960 x := (((*(*(struct {
5963 Pos, Vel, Acc [2][3]float32
5964 ExpirationTime [2]float32 // in seconds.
5971 ID ParticleSpawnerID
5981 }))(obj)).Vel)[local156])[local157]
5982 write32(w, math.Float32bits(x))
5986 for local158 := range (*(*(struct {
5989 Pos, Vel, Acc [2][3]float32
5990 ExpirationTime [2]float32 // in seconds.
5997 ID ParticleSpawnerID
6008 for local159 := range ((*(*(struct {
6011 Pos, Vel, Acc [2][3]float32
6012 ExpirationTime [2]float32 // in seconds.
6019 ID ParticleSpawnerID
6029 }))(obj)).Acc)[local158] {
6031 x := (((*(*(struct {
6034 Pos, Vel, Acc [2][3]float32
6035 ExpirationTime [2]float32 // in seconds.
6042 ID ParticleSpawnerID
6052 }))(obj)).Acc)[local158])[local159]
6053 write32(w, math.Float32bits(x))
6057 for local160 := range (*(*(struct {
6060 Pos, Vel, Acc [2][3]float32
6061 ExpirationTime [2]float32 // in seconds.
6068 ID ParticleSpawnerID
6078 }))(obj)).ExpirationTime {
6083 Pos, Vel, Acc [2][3]float32
6084 ExpirationTime [2]float32 // in seconds.
6091 ID ParticleSpawnerID
6101 }))(obj)).ExpirationTime)[local160]
6102 write32(w, math.Float32bits(x))
6105 for local161 := range (*(*(struct {
6108 Pos, Vel, Acc [2][3]float32
6109 ExpirationTime [2]float32 // in seconds.
6116 ID ParticleSpawnerID
6131 Pos, Vel, Acc [2][3]float32
6132 ExpirationTime [2]float32 // in seconds.
6139 ID ParticleSpawnerID
6149 }))(obj)).Size)[local161]
6150 write32(w, math.Float32bits(x))
6157 Pos, Vel, Acc [2][3]float32
6158 ExpirationTime [2]float32 // in seconds.
6165 ID ParticleSpawnerID
6182 if len(([]byte(*(*string)(&((*(*(struct {
6185 Pos, Vel, Acc [2][3]float32
6186 ExpirationTime [2]float32 // in seconds.
6193 ID ParticleSpawnerID
6203 }))(obj)).Texture))))) > math.MaxUint32 {
6207 x := uint32(len(([]byte(*(*string)(&((*(*(struct {
6210 Pos, Vel, Acc [2][3]float32
6211 ExpirationTime [2]float32 // in seconds.
6218 ID ParticleSpawnerID
6228 }))(obj)).Texture))))))
6229 write32(w, uint32(x))
6232 _, err := w.Write(([]byte(*(*string)(&((*(*(struct {
6235 Pos, Vel, Acc [2][3]float32
6236 ExpirationTime [2]float32 // in seconds.
6243 ID ParticleSpawnerID
6253 }))(obj)).Texture))))[:])
6256 if err := pcall(func() {
6260 Pos, Vel, Acc [2][3]float32
6261 ExpirationTime [2]float32 // in seconds.
6268 ID ParticleSpawnerID
6278 }))(obj)).ID).Serialize(w)
6283 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6289 Pos, Vel, Acc [2][3]float32
6290 ExpirationTime [2]float32 // in seconds.
6297 ID ParticleSpawnerID
6318 Pos, Vel, Acc [2][3]float32
6319 ExpirationTime [2]float32 // in seconds.
6326 ID ParticleSpawnerID
6336 }))(obj)).CollisionRm
6343 if err := pcall(func() {
6347 Pos, Vel, Acc [2][3]float32
6348 ExpirationTime [2]float32 // in seconds.
6355 ID ParticleSpawnerID
6365 }))(obj)).AttachedAOID).Serialize(w)
6370 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
6372 if err := pcall(func() {
6376 Pos, Vel, Acc [2][3]float32
6377 ExpirationTime [2]float32 // in seconds.
6384 ID ParticleSpawnerID
6394 }))(obj)).AnimParams).Serialize(w)
6399 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
6405 Pos, Vel, Acc [2][3]float32
6406 ExpirationTime [2]float32 // in seconds.
6413 ID ParticleSpawnerID
6430 Pos, Vel, Acc [2][3]float32
6431 ExpirationTime [2]float32 // in seconds.
6438 ID ParticleSpawnerID
6448 }))(obj)).AOCollision
6455 if err := pcall(func() {
6459 Pos, Vel, Acc [2][3]float32
6460 ExpirationTime [2]float32 // in seconds.
6467 ID ParticleSpawnerID
6477 }))(obj)).NodeParam0).Serialize(w)
6482 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
6488 Pos, Vel, Acc [2][3]float32
6489 ExpirationTime [2]float32 // in seconds.
6496 ID ParticleSpawnerID
6506 }))(obj)).NodeParam2
6513 Pos, Vel, Acc [2][3]float32
6514 ExpirationTime [2]float32 // in seconds.
6521 ID ParticleSpawnerID
6536 func (obj *ToCltAddParticleSpawner) Deserialize(r io.Reader) {
6541 Pos, Vel, Acc [2][3]float32
6542 ExpirationTime [2]float32 // in seconds.
6549 ID ParticleSpawnerID
6566 Pos, Vel, Acc [2][3]float32
6567 ExpirationTime [2]float32 // in seconds.
6574 ID ParticleSpawnerID
6585 *p = math.Float32frombits(read32(r))
6587 for local162 := range (*(*(struct {
6590 Pos, Vel, Acc [2][3]float32
6591 ExpirationTime [2]float32 // in seconds.
6598 ID ParticleSpawnerID
6609 for local163 := range ((*(*(struct {
6612 Pos, Vel, Acc [2][3]float32
6613 ExpirationTime [2]float32 // in seconds.
6620 ID ParticleSpawnerID
6630 }))(obj)).Pos)[local162] {
6632 p := &(((*(*(struct {
6635 Pos, Vel, Acc [2][3]float32
6636 ExpirationTime [2]float32 // in seconds.
6643 ID ParticleSpawnerID
6653 }))(obj)).Pos)[local162])[local163]
6654 *p = math.Float32frombits(read32(r))
6658 for local164 := range (*(*(struct {
6661 Pos, Vel, Acc [2][3]float32
6662 ExpirationTime [2]float32 // in seconds.
6669 ID ParticleSpawnerID
6680 for local165 := range ((*(*(struct {
6683 Pos, Vel, Acc [2][3]float32
6684 ExpirationTime [2]float32 // in seconds.
6691 ID ParticleSpawnerID
6701 }))(obj)).Vel)[local164] {
6703 p := &(((*(*(struct {
6706 Pos, Vel, Acc [2][3]float32
6707 ExpirationTime [2]float32 // in seconds.
6714 ID ParticleSpawnerID
6724 }))(obj)).Vel)[local164])[local165]
6725 *p = math.Float32frombits(read32(r))
6729 for local166 := range (*(*(struct {
6732 Pos, Vel, Acc [2][3]float32
6733 ExpirationTime [2]float32 // in seconds.
6740 ID ParticleSpawnerID
6751 for local167 := range ((*(*(struct {
6754 Pos, Vel, Acc [2][3]float32
6755 ExpirationTime [2]float32 // in seconds.
6762 ID ParticleSpawnerID
6772 }))(obj)).Acc)[local166] {
6774 p := &(((*(*(struct {
6777 Pos, Vel, Acc [2][3]float32
6778 ExpirationTime [2]float32 // in seconds.
6785 ID ParticleSpawnerID
6795 }))(obj)).Acc)[local166])[local167]
6796 *p = math.Float32frombits(read32(r))
6800 for local168 := range (*(*(struct {
6803 Pos, Vel, Acc [2][3]float32
6804 ExpirationTime [2]float32 // in seconds.
6811 ID ParticleSpawnerID
6821 }))(obj)).ExpirationTime {
6823 p := &((*(*(struct {
6826 Pos, Vel, Acc [2][3]float32
6827 ExpirationTime [2]float32 // in seconds.
6834 ID ParticleSpawnerID
6844 }))(obj)).ExpirationTime)[local168]
6845 *p = math.Float32frombits(read32(r))
6848 for local169 := range (*(*(struct {
6851 Pos, Vel, Acc [2][3]float32
6852 ExpirationTime [2]float32 // in seconds.
6859 ID ParticleSpawnerID
6871 p := &((*(*(struct {
6874 Pos, Vel, Acc [2][3]float32
6875 ExpirationTime [2]float32 // in seconds.
6882 ID ParticleSpawnerID
6892 }))(obj)).Size)[local169]
6893 *p = math.Float32frombits(read32(r))
6900 Pos, Vel, Acc [2][3]float32
6901 ExpirationTime [2]float32 // in seconds.
6908 ID ParticleSpawnerID
6919 switch n := read8(r); n {
6925 chk(fmt.Errorf("invalid bool: %d", n))
6928 var local170 []uint8
6934 (local170) = make([]uint8, local171)
6936 _, err := io.ReadFull(r, (local170)[:])
6939 (*(*string)(&((*(*(struct {
6942 Pos, Vel, Acc [2][3]float32
6943 ExpirationTime [2]float32 // in seconds.
6950 ID ParticleSpawnerID
6960 }))(obj)).Texture))) = string(local170)
6961 if err := pcall(func() {
6965 Pos, Vel, Acc [2][3]float32
6966 ExpirationTime [2]float32 // in seconds.
6973 ID ParticleSpawnerID
6983 }))(obj)).ID).Deserialize(r)
6988 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
6994 Pos, Vel, Acc [2][3]float32
6995 ExpirationTime [2]float32 // in seconds.
7002 ID ParticleSpawnerID
7013 switch n := read8(r); n {
7019 chk(fmt.Errorf("invalid bool: %d", n))
7026 Pos, Vel, Acc [2][3]float32
7027 ExpirationTime [2]float32 // in seconds.
7034 ID ParticleSpawnerID
7044 }))(obj)).CollisionRm
7045 switch n := read8(r); n {
7051 chk(fmt.Errorf("invalid bool: %d", n))
7054 if err := pcall(func() {
7058 Pos, Vel, Acc [2][3]float32
7059 ExpirationTime [2]float32 // in seconds.
7066 ID ParticleSpawnerID
7076 }))(obj)).AttachedAOID).Deserialize(r)
7081 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
7083 if err := pcall(func() {
7087 Pos, Vel, Acc [2][3]float32
7088 ExpirationTime [2]float32 // in seconds.
7095 ID ParticleSpawnerID
7105 }))(obj)).AnimParams).Deserialize(r)
7110 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
7116 Pos, Vel, Acc [2][3]float32
7117 ExpirationTime [2]float32 // in seconds.
7124 ID ParticleSpawnerID
7141 Pos, Vel, Acc [2][3]float32
7142 ExpirationTime [2]float32 // in seconds.
7149 ID ParticleSpawnerID
7159 }))(obj)).AOCollision
7160 switch n := read8(r); n {
7166 chk(fmt.Errorf("invalid bool: %d", n))
7169 if err := pcall(func() {
7173 Pos, Vel, Acc [2][3]float32
7174 ExpirationTime [2]float32 // in seconds.
7181 ID ParticleSpawnerID
7191 }))(obj)).NodeParam0).Deserialize(r)
7196 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
7202 Pos, Vel, Acc [2][3]float32
7203 ExpirationTime [2]float32 // in seconds.
7210 ID ParticleSpawnerID
7220 }))(obj)).NodeParam2
7227 Pos, Vel, Acc [2][3]float32
7228 ExpirationTime [2]float32 // in seconds.
7235 ID ParticleSpawnerID
7250 func (obj *ToCltAddHUD) Serialize(w io.Writer) {
7251 if err := pcall(func() {
7255 }))(obj)).ID).Serialize(w)
7260 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7262 if err := pcall(func() {
7266 }))(obj)).HUD).Serialize(w)
7271 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7275 func (obj *ToCltAddHUD) Deserialize(r io.Reader) {
7276 if err := pcall(func() {
7280 }))(obj)).ID).Deserialize(r)
7285 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7287 if err := pcall(func() {
7291 }))(obj)).HUD).Deserialize(r)
7296 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUD", err))
7300 func (obj *ToCltRmHUD) Serialize(w io.Writer) {
7301 if err := pcall(func() {
7304 }))(obj)).ID).Serialize(w)
7309 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7313 func (obj *ToCltRmHUD) Deserialize(r io.Reader) {
7314 if err := pcall(func() {
7317 }))(obj)).ID).Deserialize(r)
7322 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7326 func (obj *ToCltChangeHUD) Serialize(w io.Writer) {
7327 if err := pcall(func() {
7333 //mt:if %s.Field == HUDPos
7336 //mt:if %s.Field == HUDName
7339 //mt:if %s.Field == HUDScale
7342 //mt:if %s.Field == HUDText
7345 //mt:if %s.Field == HUDNumber
7348 //mt:if %s.Field == HUDItem
7351 //mt:if %s.Field == HUDDir
7354 //mt:if %s.Field == HUDAlign
7357 //mt:if %s.Field == HUDOffset
7360 //mt:if %s.Field == HUDWorldPos
7363 //mt:if %s.Field == HUDSize
7366 //mt:if %s.Field == HUDZIndex
7369 //mt:if %s.Field == HUDText2
7372 //mt:if %s.Field == HUDStyle
7374 }))(obj)).ID).Serialize(w)
7379 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
7381 if err := pcall(func() {
7387 //mt:if %s.Field == HUDPos
7390 //mt:if %s.Field == HUDName
7393 //mt:if %s.Field == HUDScale
7396 //mt:if %s.Field == HUDText
7399 //mt:if %s.Field == HUDNumber
7402 //mt:if %s.Field == HUDItem
7405 //mt:if %s.Field == HUDDir
7408 //mt:if %s.Field == HUDAlign
7411 //mt:if %s.Field == HUDOffset
7414 //mt:if %s.Field == HUDWorldPos
7417 //mt:if %s.Field == HUDSize
7420 //mt:if %s.Field == HUDZIndex
7423 //mt:if %s.Field == HUDText2
7426 //mt:if %s.Field == HUDStyle
7428 }))(obj)).Field).Serialize(w)
7433 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
7440 //mt:if %s.Field == HUDPos
7443 //mt:if %s.Field == HUDName
7446 //mt:if %s.Field == HUDScale
7449 //mt:if %s.Field == HUDText
7452 //mt:if %s.Field == HUDNumber
7455 //mt:if %s.Field == HUDItem
7458 //mt:if %s.Field == HUDDir
7461 //mt:if %s.Field == HUDAlign
7464 //mt:if %s.Field == HUDOffset
7467 //mt:if %s.Field == HUDWorldPos
7470 //mt:if %s.Field == HUDSize
7473 //mt:if %s.Field == HUDZIndex
7476 //mt:if %s.Field == HUDText2
7479 //mt:if %s.Field == HUDStyle
7481 }))(obj)).Field < hudMax) {
7482 chk(errors.New("assertion failed: %s.Field < hudMax"))
7489 //mt:if %s.Field == HUDPos
7492 //mt:if %s.Field == HUDName
7495 //mt:if %s.Field == HUDScale
7498 //mt:if %s.Field == HUDText
7501 //mt:if %s.Field == HUDNumber
7504 //mt:if %s.Field == HUDItem
7507 //mt:if %s.Field == HUDDir
7510 //mt:if %s.Field == HUDAlign
7513 //mt:if %s.Field == HUDOffset
7516 //mt:if %s.Field == HUDWorldPos
7519 //mt:if %s.Field == HUDSize
7522 //mt:if %s.Field == HUDZIndex
7525 //mt:if %s.Field == HUDText2
7528 //mt:if %s.Field == HUDStyle
7530 }))(obj)).Field == HUDPos {
7531 for local172 := range (*(*(struct {
7536 //mt:if %s.Field == HUDPos
7539 //mt:if %s.Field == HUDName
7542 //mt:if %s.Field == HUDScale
7545 //mt:if %s.Field == HUDText
7548 //mt:if %s.Field == HUDNumber
7551 //mt:if %s.Field == HUDItem
7554 //mt:if %s.Field == HUDDir
7557 //mt:if %s.Field == HUDAlign
7560 //mt:if %s.Field == HUDOffset
7563 //mt:if %s.Field == HUDWorldPos
7566 //mt:if %s.Field == HUDSize
7569 //mt:if %s.Field == HUDZIndex
7572 //mt:if %s.Field == HUDText2
7575 //mt:if %s.Field == HUDStyle
7584 //mt:if %s.Field == HUDPos
7587 //mt:if %s.Field == HUDName
7590 //mt:if %s.Field == HUDScale
7593 //mt:if %s.Field == HUDText
7596 //mt:if %s.Field == HUDNumber
7599 //mt:if %s.Field == HUDItem
7602 //mt:if %s.Field == HUDDir
7605 //mt:if %s.Field == HUDAlign
7608 //mt:if %s.Field == HUDOffset
7611 //mt:if %s.Field == HUDWorldPos
7614 //mt:if %s.Field == HUDSize
7617 //mt:if %s.Field == HUDZIndex
7620 //mt:if %s.Field == HUDText2
7623 //mt:if %s.Field == HUDStyle
7625 }))(obj)).Pos)[local172]
7626 write32(w, math.Float32bits(x))
7635 //mt:if %s.Field == HUDPos
7638 //mt:if %s.Field == HUDName
7641 //mt:if %s.Field == HUDScale
7644 //mt:if %s.Field == HUDText
7647 //mt:if %s.Field == HUDNumber
7650 //mt:if %s.Field == HUDItem
7653 //mt:if %s.Field == HUDDir
7656 //mt:if %s.Field == HUDAlign
7659 //mt:if %s.Field == HUDOffset
7662 //mt:if %s.Field == HUDWorldPos
7665 //mt:if %s.Field == HUDSize
7668 //mt:if %s.Field == HUDZIndex
7671 //mt:if %s.Field == HUDText2
7674 //mt:if %s.Field == HUDStyle
7676 }))(obj)).Field == HUDName {
7677 if len(([]byte((*(*(struct {
7682 //mt:if %s.Field == HUDPos
7685 //mt:if %s.Field == HUDName
7688 //mt:if %s.Field == HUDScale
7691 //mt:if %s.Field == HUDText
7694 //mt:if %s.Field == HUDNumber
7697 //mt:if %s.Field == HUDItem
7700 //mt:if %s.Field == HUDDir
7703 //mt:if %s.Field == HUDAlign
7706 //mt:if %s.Field == HUDOffset
7709 //mt:if %s.Field == HUDWorldPos
7712 //mt:if %s.Field == HUDSize
7715 //mt:if %s.Field == HUDZIndex
7718 //mt:if %s.Field == HUDText2
7721 //mt:if %s.Field == HUDStyle
7723 }))(obj)).Name))) > math.MaxUint16 {
7727 x := uint16(len(([]byte((*(*(struct {
7732 //mt:if %s.Field == HUDPos
7735 //mt:if %s.Field == HUDName
7738 //mt:if %s.Field == HUDScale
7741 //mt:if %s.Field == HUDText
7744 //mt:if %s.Field == HUDNumber
7747 //mt:if %s.Field == HUDItem
7750 //mt:if %s.Field == HUDDir
7753 //mt:if %s.Field == HUDAlign
7756 //mt:if %s.Field == HUDOffset
7759 //mt:if %s.Field == HUDWorldPos
7762 //mt:if %s.Field == HUDSize
7765 //mt:if %s.Field == HUDZIndex
7768 //mt:if %s.Field == HUDText2
7771 //mt:if %s.Field == HUDStyle
7774 write16(w, uint16(x))
7777 _, err := w.Write(([]byte((*(*(struct {
7782 //mt:if %s.Field == HUDPos
7785 //mt:if %s.Field == HUDName
7788 //mt:if %s.Field == HUDScale
7791 //mt:if %s.Field == HUDText
7794 //mt:if %s.Field == HUDNumber
7797 //mt:if %s.Field == HUDItem
7800 //mt:if %s.Field == HUDDir
7803 //mt:if %s.Field == HUDAlign
7806 //mt:if %s.Field == HUDOffset
7809 //mt:if %s.Field == HUDWorldPos
7812 //mt:if %s.Field == HUDSize
7815 //mt:if %s.Field == HUDZIndex
7818 //mt:if %s.Field == HUDText2
7821 //mt:if %s.Field == HUDStyle
7823 }))(obj)).Name))[:])
7832 //mt:if %s.Field == HUDPos
7835 //mt:if %s.Field == HUDName
7838 //mt:if %s.Field == HUDScale
7841 //mt:if %s.Field == HUDText
7844 //mt:if %s.Field == HUDNumber
7847 //mt:if %s.Field == HUDItem
7850 //mt:if %s.Field == HUDDir
7853 //mt:if %s.Field == HUDAlign
7856 //mt:if %s.Field == HUDOffset
7859 //mt:if %s.Field == HUDWorldPos
7862 //mt:if %s.Field == HUDSize
7865 //mt:if %s.Field == HUDZIndex
7868 //mt:if %s.Field == HUDText2
7871 //mt:if %s.Field == HUDStyle
7873 }))(obj)).Field == HUDScale {
7874 for local173 := range (*(*(struct {
7879 //mt:if %s.Field == HUDPos
7882 //mt:if %s.Field == HUDName
7885 //mt:if %s.Field == HUDScale
7888 //mt:if %s.Field == HUDText
7891 //mt:if %s.Field == HUDNumber
7894 //mt:if %s.Field == HUDItem
7897 //mt:if %s.Field == HUDDir
7900 //mt:if %s.Field == HUDAlign
7903 //mt:if %s.Field == HUDOffset
7906 //mt:if %s.Field == HUDWorldPos
7909 //mt:if %s.Field == HUDSize
7912 //mt:if %s.Field == HUDZIndex
7915 //mt:if %s.Field == HUDText2
7918 //mt:if %s.Field == HUDStyle
7927 //mt:if %s.Field == HUDPos
7930 //mt:if %s.Field == HUDName
7933 //mt:if %s.Field == HUDScale
7936 //mt:if %s.Field == HUDText
7939 //mt:if %s.Field == HUDNumber
7942 //mt:if %s.Field == HUDItem
7945 //mt:if %s.Field == HUDDir
7948 //mt:if %s.Field == HUDAlign
7951 //mt:if %s.Field == HUDOffset
7954 //mt:if %s.Field == HUDWorldPos
7957 //mt:if %s.Field == HUDSize
7960 //mt:if %s.Field == HUDZIndex
7963 //mt:if %s.Field == HUDText2
7966 //mt:if %s.Field == HUDStyle
7968 }))(obj)).Scale)[local173]
7969 write32(w, math.Float32bits(x))
7978 //mt:if %s.Field == HUDPos
7981 //mt:if %s.Field == HUDName
7984 //mt:if %s.Field == HUDScale
7987 //mt:if %s.Field == HUDText
7990 //mt:if %s.Field == HUDNumber
7993 //mt:if %s.Field == HUDItem
7996 //mt:if %s.Field == HUDDir
7999 //mt:if %s.Field == HUDAlign
8002 //mt:if %s.Field == HUDOffset
8005 //mt:if %s.Field == HUDWorldPos
8008 //mt:if %s.Field == HUDSize
8011 //mt:if %s.Field == HUDZIndex
8014 //mt:if %s.Field == HUDText2
8017 //mt:if %s.Field == HUDStyle
8019 }))(obj)).Field == HUDText {
8020 if len(([]byte((*(*(struct {
8025 //mt:if %s.Field == HUDPos
8028 //mt:if %s.Field == HUDName
8031 //mt:if %s.Field == HUDScale
8034 //mt:if %s.Field == HUDText
8037 //mt:if %s.Field == HUDNumber
8040 //mt:if %s.Field == HUDItem
8043 //mt:if %s.Field == HUDDir
8046 //mt:if %s.Field == HUDAlign
8049 //mt:if %s.Field == HUDOffset
8052 //mt:if %s.Field == HUDWorldPos
8055 //mt:if %s.Field == HUDSize
8058 //mt:if %s.Field == HUDZIndex
8061 //mt:if %s.Field == HUDText2
8064 //mt:if %s.Field == HUDStyle
8066 }))(obj)).Text))) > math.MaxUint16 {
8070 x := uint16(len(([]byte((*(*(struct {
8075 //mt:if %s.Field == HUDPos
8078 //mt:if %s.Field == HUDName
8081 //mt:if %s.Field == HUDScale
8084 //mt:if %s.Field == HUDText
8087 //mt:if %s.Field == HUDNumber
8090 //mt:if %s.Field == HUDItem
8093 //mt:if %s.Field == HUDDir
8096 //mt:if %s.Field == HUDAlign
8099 //mt:if %s.Field == HUDOffset
8102 //mt:if %s.Field == HUDWorldPos
8105 //mt:if %s.Field == HUDSize
8108 //mt:if %s.Field == HUDZIndex
8111 //mt:if %s.Field == HUDText2
8114 //mt:if %s.Field == HUDStyle
8117 write16(w, uint16(x))
8120 _, err := w.Write(([]byte((*(*(struct {
8125 //mt:if %s.Field == HUDPos
8128 //mt:if %s.Field == HUDName
8131 //mt:if %s.Field == HUDScale
8134 //mt:if %s.Field == HUDText
8137 //mt:if %s.Field == HUDNumber
8140 //mt:if %s.Field == HUDItem
8143 //mt:if %s.Field == HUDDir
8146 //mt:if %s.Field == HUDAlign
8149 //mt:if %s.Field == HUDOffset
8152 //mt:if %s.Field == HUDWorldPos
8155 //mt:if %s.Field == HUDSize
8158 //mt:if %s.Field == HUDZIndex
8161 //mt:if %s.Field == HUDText2
8164 //mt:if %s.Field == HUDStyle
8166 }))(obj)).Text))[:])
8175 //mt:if %s.Field == HUDPos
8178 //mt:if %s.Field == HUDName
8181 //mt:if %s.Field == HUDScale
8184 //mt:if %s.Field == HUDText
8187 //mt:if %s.Field == HUDNumber
8190 //mt:if %s.Field == HUDItem
8193 //mt:if %s.Field == HUDDir
8196 //mt:if %s.Field == HUDAlign
8199 //mt:if %s.Field == HUDOffset
8202 //mt:if %s.Field == HUDWorldPos
8205 //mt:if %s.Field == HUDSize
8208 //mt:if %s.Field == HUDZIndex
8211 //mt:if %s.Field == HUDText2
8214 //mt:if %s.Field == HUDStyle
8216 }))(obj)).Field == HUDNumber {
8223 //mt:if %s.Field == HUDPos
8226 //mt:if %s.Field == HUDName
8229 //mt:if %s.Field == HUDScale
8232 //mt:if %s.Field == HUDText
8235 //mt:if %s.Field == HUDNumber
8238 //mt:if %s.Field == HUDItem
8241 //mt:if %s.Field == HUDDir
8244 //mt:if %s.Field == HUDAlign
8247 //mt:if %s.Field == HUDOffset
8250 //mt:if %s.Field == HUDWorldPos
8253 //mt:if %s.Field == HUDSize
8256 //mt:if %s.Field == HUDZIndex
8259 //mt:if %s.Field == HUDText2
8262 //mt:if %s.Field == HUDStyle
8265 write32(w, uint32(x))
8273 //mt:if %s.Field == HUDPos
8276 //mt:if %s.Field == HUDName
8279 //mt:if %s.Field == HUDScale
8282 //mt:if %s.Field == HUDText
8285 //mt:if %s.Field == HUDNumber
8288 //mt:if %s.Field == HUDItem
8291 //mt:if %s.Field == HUDDir
8294 //mt:if %s.Field == HUDAlign
8297 //mt:if %s.Field == HUDOffset
8300 //mt:if %s.Field == HUDWorldPos
8303 //mt:if %s.Field == HUDSize
8306 //mt:if %s.Field == HUDZIndex
8309 //mt:if %s.Field == HUDText2
8312 //mt:if %s.Field == HUDStyle
8314 }))(obj)).Field == HUDItem {
8321 //mt:if %s.Field == HUDPos
8324 //mt:if %s.Field == HUDName
8327 //mt:if %s.Field == HUDScale
8330 //mt:if %s.Field == HUDText
8333 //mt:if %s.Field == HUDNumber
8336 //mt:if %s.Field == HUDItem
8339 //mt:if %s.Field == HUDDir
8342 //mt:if %s.Field == HUDAlign
8345 //mt:if %s.Field == HUDOffset
8348 //mt:if %s.Field == HUDWorldPos
8351 //mt:if %s.Field == HUDSize
8354 //mt:if %s.Field == HUDZIndex
8357 //mt:if %s.Field == HUDText2
8360 //mt:if %s.Field == HUDStyle
8363 write32(w, uint32(x))
8371 //mt:if %s.Field == HUDPos
8374 //mt:if %s.Field == HUDName
8377 //mt:if %s.Field == HUDScale
8380 //mt:if %s.Field == HUDText
8383 //mt:if %s.Field == HUDNumber
8386 //mt:if %s.Field == HUDItem
8389 //mt:if %s.Field == HUDDir
8392 //mt:if %s.Field == HUDAlign
8395 //mt:if %s.Field == HUDOffset
8398 //mt:if %s.Field == HUDWorldPos
8401 //mt:if %s.Field == HUDSize
8404 //mt:if %s.Field == HUDZIndex
8407 //mt:if %s.Field == HUDText2
8410 //mt:if %s.Field == HUDStyle
8412 }))(obj)).Field == HUDDir {
8419 //mt:if %s.Field == HUDPos
8422 //mt:if %s.Field == HUDName
8425 //mt:if %s.Field == HUDScale
8428 //mt:if %s.Field == HUDText
8431 //mt:if %s.Field == HUDNumber
8434 //mt:if %s.Field == HUDItem
8437 //mt:if %s.Field == HUDDir
8440 //mt:if %s.Field == HUDAlign
8443 //mt:if %s.Field == HUDOffset
8446 //mt:if %s.Field == HUDWorldPos
8449 //mt:if %s.Field == HUDSize
8452 //mt:if %s.Field == HUDZIndex
8455 //mt:if %s.Field == HUDText2
8458 //mt:if %s.Field == HUDStyle
8461 write32(w, uint32(x))
8469 //mt:if %s.Field == HUDPos
8472 //mt:if %s.Field == HUDName
8475 //mt:if %s.Field == HUDScale
8478 //mt:if %s.Field == HUDText
8481 //mt:if %s.Field == HUDNumber
8484 //mt:if %s.Field == HUDItem
8487 //mt:if %s.Field == HUDDir
8490 //mt:if %s.Field == HUDAlign
8493 //mt:if %s.Field == HUDOffset
8496 //mt:if %s.Field == HUDWorldPos
8499 //mt:if %s.Field == HUDSize
8502 //mt:if %s.Field == HUDZIndex
8505 //mt:if %s.Field == HUDText2
8508 //mt:if %s.Field == HUDStyle
8510 }))(obj)).Field == HUDAlign {
8511 for local174 := range (*(*(struct {
8516 //mt:if %s.Field == HUDPos
8519 //mt:if %s.Field == HUDName
8522 //mt:if %s.Field == HUDScale
8525 //mt:if %s.Field == HUDText
8528 //mt:if %s.Field == HUDNumber
8531 //mt:if %s.Field == HUDItem
8534 //mt:if %s.Field == HUDDir
8537 //mt:if %s.Field == HUDAlign
8540 //mt:if %s.Field == HUDOffset
8543 //mt:if %s.Field == HUDWorldPos
8546 //mt:if %s.Field == HUDSize
8549 //mt:if %s.Field == HUDZIndex
8552 //mt:if %s.Field == HUDText2
8555 //mt:if %s.Field == HUDStyle
8564 //mt:if %s.Field == HUDPos
8567 //mt:if %s.Field == HUDName
8570 //mt:if %s.Field == HUDScale
8573 //mt:if %s.Field == HUDText
8576 //mt:if %s.Field == HUDNumber
8579 //mt:if %s.Field == HUDItem
8582 //mt:if %s.Field == HUDDir
8585 //mt:if %s.Field == HUDAlign
8588 //mt:if %s.Field == HUDOffset
8591 //mt:if %s.Field == HUDWorldPos
8594 //mt:if %s.Field == HUDSize
8597 //mt:if %s.Field == HUDZIndex
8600 //mt:if %s.Field == HUDText2
8603 //mt:if %s.Field == HUDStyle
8605 }))(obj)).Align)[local174]
8606 write32(w, math.Float32bits(x))
8615 //mt:if %s.Field == HUDPos
8618 //mt:if %s.Field == HUDName
8621 //mt:if %s.Field == HUDScale
8624 //mt:if %s.Field == HUDText
8627 //mt:if %s.Field == HUDNumber
8630 //mt:if %s.Field == HUDItem
8633 //mt:if %s.Field == HUDDir
8636 //mt:if %s.Field == HUDAlign
8639 //mt:if %s.Field == HUDOffset
8642 //mt:if %s.Field == HUDWorldPos
8645 //mt:if %s.Field == HUDSize
8648 //mt:if %s.Field == HUDZIndex
8651 //mt:if %s.Field == HUDText2
8654 //mt:if %s.Field == HUDStyle
8656 }))(obj)).Field == HUDOffset {
8657 for local175 := range (*(*(struct {
8662 //mt:if %s.Field == HUDPos
8665 //mt:if %s.Field == HUDName
8668 //mt:if %s.Field == HUDScale
8671 //mt:if %s.Field == HUDText
8674 //mt:if %s.Field == HUDNumber
8677 //mt:if %s.Field == HUDItem
8680 //mt:if %s.Field == HUDDir
8683 //mt:if %s.Field == HUDAlign
8686 //mt:if %s.Field == HUDOffset
8689 //mt:if %s.Field == HUDWorldPos
8692 //mt:if %s.Field == HUDSize
8695 //mt:if %s.Field == HUDZIndex
8698 //mt:if %s.Field == HUDText2
8701 //mt:if %s.Field == HUDStyle
8710 //mt:if %s.Field == HUDPos
8713 //mt:if %s.Field == HUDName
8716 //mt:if %s.Field == HUDScale
8719 //mt:if %s.Field == HUDText
8722 //mt:if %s.Field == HUDNumber
8725 //mt:if %s.Field == HUDItem
8728 //mt:if %s.Field == HUDDir
8731 //mt:if %s.Field == HUDAlign
8734 //mt:if %s.Field == HUDOffset
8737 //mt:if %s.Field == HUDWorldPos
8740 //mt:if %s.Field == HUDSize
8743 //mt:if %s.Field == HUDZIndex
8746 //mt:if %s.Field == HUDText2
8749 //mt:if %s.Field == HUDStyle
8751 }))(obj)).Offset)[local175]
8752 write32(w, math.Float32bits(x))
8761 //mt:if %s.Field == HUDPos
8764 //mt:if %s.Field == HUDName
8767 //mt:if %s.Field == HUDScale
8770 //mt:if %s.Field == HUDText
8773 //mt:if %s.Field == HUDNumber
8776 //mt:if %s.Field == HUDItem
8779 //mt:if %s.Field == HUDDir
8782 //mt:if %s.Field == HUDAlign
8785 //mt:if %s.Field == HUDOffset
8788 //mt:if %s.Field == HUDWorldPos
8791 //mt:if %s.Field == HUDSize
8794 //mt:if %s.Field == HUDZIndex
8797 //mt:if %s.Field == HUDText2
8800 //mt:if %s.Field == HUDStyle
8802 }))(obj)).Field == HUDWorldPos {
8803 if err := pcall(func() {
8809 //mt:if %s.Field == HUDPos
8812 //mt:if %s.Field == HUDName
8815 //mt:if %s.Field == HUDScale
8818 //mt:if %s.Field == HUDText
8821 //mt:if %s.Field == HUDNumber
8824 //mt:if %s.Field == HUDItem
8827 //mt:if %s.Field == HUDDir
8830 //mt:if %s.Field == HUDAlign
8833 //mt:if %s.Field == HUDOffset
8836 //mt:if %s.Field == HUDWorldPos
8839 //mt:if %s.Field == HUDSize
8842 //mt:if %s.Field == HUDZIndex
8845 //mt:if %s.Field == HUDText2
8848 //mt:if %s.Field == HUDStyle
8850 }))(obj)).WorldPos).Serialize(w)
8855 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
8863 //mt:if %s.Field == HUDPos
8866 //mt:if %s.Field == HUDName
8869 //mt:if %s.Field == HUDScale
8872 //mt:if %s.Field == HUDText
8875 //mt:if %s.Field == HUDNumber
8878 //mt:if %s.Field == HUDItem
8881 //mt:if %s.Field == HUDDir
8884 //mt:if %s.Field == HUDAlign
8887 //mt:if %s.Field == HUDOffset
8890 //mt:if %s.Field == HUDWorldPos
8893 //mt:if %s.Field == HUDSize
8896 //mt:if %s.Field == HUDZIndex
8899 //mt:if %s.Field == HUDText2
8902 //mt:if %s.Field == HUDStyle
8904 }))(obj)).Field == HUDSize {
8905 for local176 := range (*(*(struct {
8910 //mt:if %s.Field == HUDPos
8913 //mt:if %s.Field == HUDName
8916 //mt:if %s.Field == HUDScale
8919 //mt:if %s.Field == HUDText
8922 //mt:if %s.Field == HUDNumber
8925 //mt:if %s.Field == HUDItem
8928 //mt:if %s.Field == HUDDir
8931 //mt:if %s.Field == HUDAlign
8934 //mt:if %s.Field == HUDOffset
8937 //mt:if %s.Field == HUDWorldPos
8940 //mt:if %s.Field == HUDSize
8943 //mt:if %s.Field == HUDZIndex
8946 //mt:if %s.Field == HUDText2
8949 //mt:if %s.Field == HUDStyle
8958 //mt:if %s.Field == HUDPos
8961 //mt:if %s.Field == HUDName
8964 //mt:if %s.Field == HUDScale
8967 //mt:if %s.Field == HUDText
8970 //mt:if %s.Field == HUDNumber
8973 //mt:if %s.Field == HUDItem
8976 //mt:if %s.Field == HUDDir
8979 //mt:if %s.Field == HUDAlign
8982 //mt:if %s.Field == HUDOffset
8985 //mt:if %s.Field == HUDWorldPos
8988 //mt:if %s.Field == HUDSize
8991 //mt:if %s.Field == HUDZIndex
8994 //mt:if %s.Field == HUDText2
8997 //mt:if %s.Field == HUDStyle
8999 }))(obj)).Size)[local176]
9000 write32(w, uint32(x))
9009 //mt:if %s.Field == HUDPos
9012 //mt:if %s.Field == HUDName
9015 //mt:if %s.Field == HUDScale
9018 //mt:if %s.Field == HUDText
9021 //mt:if %s.Field == HUDNumber
9024 //mt:if %s.Field == HUDItem
9027 //mt:if %s.Field == HUDDir
9030 //mt:if %s.Field == HUDAlign
9033 //mt:if %s.Field == HUDOffset
9036 //mt:if %s.Field == HUDWorldPos
9039 //mt:if %s.Field == HUDSize
9042 //mt:if %s.Field == HUDZIndex
9045 //mt:if %s.Field == HUDText2
9048 //mt:if %s.Field == HUDStyle
9050 }))(obj)).Field == HUDZIndex {
9057 //mt:if %s.Field == HUDPos
9060 //mt:if %s.Field == HUDName
9063 //mt:if %s.Field == HUDScale
9066 //mt:if %s.Field == HUDText
9069 //mt:if %s.Field == HUDNumber
9072 //mt:if %s.Field == HUDItem
9075 //mt:if %s.Field == HUDDir
9078 //mt:if %s.Field == HUDAlign
9081 //mt:if %s.Field == HUDOffset
9084 //mt:if %s.Field == HUDWorldPos
9087 //mt:if %s.Field == HUDSize
9090 //mt:if %s.Field == HUDZIndex
9093 //mt:if %s.Field == HUDText2
9096 //mt:if %s.Field == HUDStyle
9099 write32(w, uint32(x))
9107 //mt:if %s.Field == HUDPos
9110 //mt:if %s.Field == HUDName
9113 //mt:if %s.Field == HUDScale
9116 //mt:if %s.Field == HUDText
9119 //mt:if %s.Field == HUDNumber
9122 //mt:if %s.Field == HUDItem
9125 //mt:if %s.Field == HUDDir
9128 //mt:if %s.Field == HUDAlign
9131 //mt:if %s.Field == HUDOffset
9134 //mt:if %s.Field == HUDWorldPos
9137 //mt:if %s.Field == HUDSize
9140 //mt:if %s.Field == HUDZIndex
9143 //mt:if %s.Field == HUDText2
9146 //mt:if %s.Field == HUDStyle
9148 }))(obj)).Field == HUDText2 {
9149 if len(([]byte((*(*(struct {
9154 //mt:if %s.Field == HUDPos
9157 //mt:if %s.Field == HUDName
9160 //mt:if %s.Field == HUDScale
9163 //mt:if %s.Field == HUDText
9166 //mt:if %s.Field == HUDNumber
9169 //mt:if %s.Field == HUDItem
9172 //mt:if %s.Field == HUDDir
9175 //mt:if %s.Field == HUDAlign
9178 //mt:if %s.Field == HUDOffset
9181 //mt:if %s.Field == HUDWorldPos
9184 //mt:if %s.Field == HUDSize
9187 //mt:if %s.Field == HUDZIndex
9190 //mt:if %s.Field == HUDText2
9193 //mt:if %s.Field == HUDStyle
9195 }))(obj)).Text2))) > math.MaxUint16 {
9199 x := uint16(len(([]byte((*(*(struct {
9204 //mt:if %s.Field == HUDPos
9207 //mt:if %s.Field == HUDName
9210 //mt:if %s.Field == HUDScale
9213 //mt:if %s.Field == HUDText
9216 //mt:if %s.Field == HUDNumber
9219 //mt:if %s.Field == HUDItem
9222 //mt:if %s.Field == HUDDir
9225 //mt:if %s.Field == HUDAlign
9228 //mt:if %s.Field == HUDOffset
9231 //mt:if %s.Field == HUDWorldPos
9234 //mt:if %s.Field == HUDSize
9237 //mt:if %s.Field == HUDZIndex
9240 //mt:if %s.Field == HUDText2
9243 //mt:if %s.Field == HUDStyle
9246 write16(w, uint16(x))
9249 _, err := w.Write(([]byte((*(*(struct {
9254 //mt:if %s.Field == HUDPos
9257 //mt:if %s.Field == HUDName
9260 //mt:if %s.Field == HUDScale
9263 //mt:if %s.Field == HUDText
9266 //mt:if %s.Field == HUDNumber
9269 //mt:if %s.Field == HUDItem
9272 //mt:if %s.Field == HUDDir
9275 //mt:if %s.Field == HUDAlign
9278 //mt:if %s.Field == HUDOffset
9281 //mt:if %s.Field == HUDWorldPos
9284 //mt:if %s.Field == HUDSize
9287 //mt:if %s.Field == HUDZIndex
9290 //mt:if %s.Field == HUDText2
9293 //mt:if %s.Field == HUDStyle
9295 }))(obj)).Text2))[:])
9304 //mt:if %s.Field == HUDPos
9307 //mt:if %s.Field == HUDName
9310 //mt:if %s.Field == HUDScale
9313 //mt:if %s.Field == HUDText
9316 //mt:if %s.Field == HUDNumber
9319 //mt:if %s.Field == HUDItem
9322 //mt:if %s.Field == HUDDir
9325 //mt:if %s.Field == HUDAlign
9328 //mt:if %s.Field == HUDOffset
9331 //mt:if %s.Field == HUDWorldPos
9334 //mt:if %s.Field == HUDSize
9337 //mt:if %s.Field == HUDZIndex
9340 //mt:if %s.Field == HUDText2
9343 //mt:if %s.Field == HUDStyle
9345 }))(obj)).Field == HUDStyle {
9346 if err := pcall(func() {
9352 //mt:if %s.Field == HUDPos
9355 //mt:if %s.Field == HUDName
9358 //mt:if %s.Field == HUDScale
9361 //mt:if %s.Field == HUDText
9364 //mt:if %s.Field == HUDNumber
9367 //mt:if %s.Field == HUDItem
9370 //mt:if %s.Field == HUDDir
9373 //mt:if %s.Field == HUDAlign
9376 //mt:if %s.Field == HUDOffset
9379 //mt:if %s.Field == HUDWorldPos
9382 //mt:if %s.Field == HUDSize
9385 //mt:if %s.Field == HUDZIndex
9388 //mt:if %s.Field == HUDText2
9391 //mt:if %s.Field == HUDStyle
9393 }))(obj)).Style).Serialize(w)
9398 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
9403 func (obj *ToCltChangeHUD) Deserialize(r io.Reader) {
9404 if err := pcall(func() {
9410 //mt:if %s.Field == HUDPos
9413 //mt:if %s.Field == HUDName
9416 //mt:if %s.Field == HUDScale
9419 //mt:if %s.Field == HUDText
9422 //mt:if %s.Field == HUDNumber
9425 //mt:if %s.Field == HUDItem
9428 //mt:if %s.Field == HUDDir
9431 //mt:if %s.Field == HUDAlign
9434 //mt:if %s.Field == HUDOffset
9437 //mt:if %s.Field == HUDWorldPos
9440 //mt:if %s.Field == HUDSize
9443 //mt:if %s.Field == HUDZIndex
9446 //mt:if %s.Field == HUDText2
9449 //mt:if %s.Field == HUDStyle
9451 }))(obj)).ID).Deserialize(r)
9456 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDID", err))
9458 if err := pcall(func() {
9464 //mt:if %s.Field == HUDPos
9467 //mt:if %s.Field == HUDName
9470 //mt:if %s.Field == HUDScale
9473 //mt:if %s.Field == HUDText
9476 //mt:if %s.Field == HUDNumber
9479 //mt:if %s.Field == HUDItem
9482 //mt:if %s.Field == HUDDir
9485 //mt:if %s.Field == HUDAlign
9488 //mt:if %s.Field == HUDOffset
9491 //mt:if %s.Field == HUDWorldPos
9494 //mt:if %s.Field == HUDSize
9497 //mt:if %s.Field == HUDZIndex
9500 //mt:if %s.Field == HUDText2
9503 //mt:if %s.Field == HUDStyle
9505 }))(obj)).Field).Deserialize(r)
9510 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDField", err))
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
9556 //mt:if %s.Field == HUDStyle
9558 }))(obj)).Field < hudMax) {
9559 chk(errors.New("assertion failed: %s.Field < hudMax"))
9566 //mt:if %s.Field == HUDPos
9569 //mt:if %s.Field == HUDName
9572 //mt:if %s.Field == HUDScale
9575 //mt:if %s.Field == HUDText
9578 //mt:if %s.Field == HUDNumber
9581 //mt:if %s.Field == HUDItem
9584 //mt:if %s.Field == HUDDir
9587 //mt:if %s.Field == HUDAlign
9590 //mt:if %s.Field == HUDOffset
9593 //mt:if %s.Field == HUDWorldPos
9596 //mt:if %s.Field == HUDSize
9599 //mt:if %s.Field == HUDZIndex
9602 //mt:if %s.Field == HUDText2
9605 //mt:if %s.Field == HUDStyle
9607 }))(obj)).Field == HUDPos {
9608 for local177 := range (*(*(struct {
9613 //mt:if %s.Field == HUDPos
9616 //mt:if %s.Field == HUDName
9619 //mt:if %s.Field == HUDScale
9622 //mt:if %s.Field == HUDText
9625 //mt:if %s.Field == HUDNumber
9628 //mt:if %s.Field == HUDItem
9631 //mt:if %s.Field == HUDDir
9634 //mt:if %s.Field == HUDAlign
9637 //mt:if %s.Field == HUDOffset
9640 //mt:if %s.Field == HUDWorldPos
9643 //mt:if %s.Field == HUDSize
9646 //mt:if %s.Field == HUDZIndex
9649 //mt:if %s.Field == HUDText2
9652 //mt:if %s.Field == HUDStyle
9656 p := &((*(*(struct {
9661 //mt:if %s.Field == HUDPos
9664 //mt:if %s.Field == HUDName
9667 //mt:if %s.Field == HUDScale
9670 //mt:if %s.Field == HUDText
9673 //mt:if %s.Field == HUDNumber
9676 //mt:if %s.Field == HUDItem
9679 //mt:if %s.Field == HUDDir
9682 //mt:if %s.Field == HUDAlign
9685 //mt:if %s.Field == HUDOffset
9688 //mt:if %s.Field == HUDWorldPos
9691 //mt:if %s.Field == HUDSize
9694 //mt:if %s.Field == HUDZIndex
9697 //mt:if %s.Field == HUDText2
9700 //mt:if %s.Field == HUDStyle
9702 }))(obj)).Pos)[local177]
9703 *p = math.Float32frombits(read32(r))
9712 //mt:if %s.Field == HUDPos
9715 //mt:if %s.Field == HUDName
9718 //mt:if %s.Field == HUDScale
9721 //mt:if %s.Field == HUDText
9724 //mt:if %s.Field == HUDNumber
9727 //mt:if %s.Field == HUDItem
9730 //mt:if %s.Field == HUDDir
9733 //mt:if %s.Field == HUDAlign
9736 //mt:if %s.Field == HUDOffset
9739 //mt:if %s.Field == HUDWorldPos
9742 //mt:if %s.Field == HUDSize
9745 //mt:if %s.Field == HUDZIndex
9748 //mt:if %s.Field == HUDText2
9751 //mt:if %s.Field == HUDStyle
9753 }))(obj)).Field == HUDName {
9754 var local178 []uint8
9760 (local178) = make([]uint8, local179)
9762 _, err := io.ReadFull(r, (local178)[:])
9770 //mt:if %s.Field == HUDPos
9773 //mt:if %s.Field == HUDName
9776 //mt:if %s.Field == HUDScale
9779 //mt:if %s.Field == HUDText
9782 //mt:if %s.Field == HUDNumber
9785 //mt:if %s.Field == HUDItem
9788 //mt:if %s.Field == HUDDir
9791 //mt:if %s.Field == HUDAlign
9794 //mt:if %s.Field == HUDOffset
9797 //mt:if %s.Field == HUDWorldPos
9800 //mt:if %s.Field == HUDSize
9803 //mt:if %s.Field == HUDZIndex
9806 //mt:if %s.Field == HUDText2
9809 //mt:if %s.Field == HUDStyle
9811 }))(obj)).Name) = string(local178)
9818 //mt:if %s.Field == HUDPos
9821 //mt:if %s.Field == HUDName
9824 //mt:if %s.Field == HUDScale
9827 //mt:if %s.Field == HUDText
9830 //mt:if %s.Field == HUDNumber
9833 //mt:if %s.Field == HUDItem
9836 //mt:if %s.Field == HUDDir
9839 //mt:if %s.Field == HUDAlign
9842 //mt:if %s.Field == HUDOffset
9845 //mt:if %s.Field == HUDWorldPos
9848 //mt:if %s.Field == HUDSize
9851 //mt:if %s.Field == HUDZIndex
9854 //mt:if %s.Field == HUDText2
9857 //mt:if %s.Field == HUDStyle
9859 }))(obj)).Field == HUDScale {
9860 for local180 := range (*(*(struct {
9865 //mt:if %s.Field == HUDPos
9868 //mt:if %s.Field == HUDName
9871 //mt:if %s.Field == HUDScale
9874 //mt:if %s.Field == HUDText
9877 //mt:if %s.Field == HUDNumber
9880 //mt:if %s.Field == HUDItem
9883 //mt:if %s.Field == HUDDir
9886 //mt:if %s.Field == HUDAlign
9889 //mt:if %s.Field == HUDOffset
9892 //mt:if %s.Field == HUDWorldPos
9895 //mt:if %s.Field == HUDSize
9898 //mt:if %s.Field == HUDZIndex
9901 //mt:if %s.Field == HUDText2
9904 //mt:if %s.Field == HUDStyle
9908 p := &((*(*(struct {
9913 //mt:if %s.Field == HUDPos
9916 //mt:if %s.Field == HUDName
9919 //mt:if %s.Field == HUDScale
9922 //mt:if %s.Field == HUDText
9925 //mt:if %s.Field == HUDNumber
9928 //mt:if %s.Field == HUDItem
9931 //mt:if %s.Field == HUDDir
9934 //mt:if %s.Field == HUDAlign
9937 //mt:if %s.Field == HUDOffset
9940 //mt:if %s.Field == HUDWorldPos
9943 //mt:if %s.Field == HUDSize
9946 //mt:if %s.Field == HUDZIndex
9949 //mt:if %s.Field == HUDText2
9952 //mt:if %s.Field == HUDStyle
9954 }))(obj)).Scale)[local180]
9955 *p = math.Float32frombits(read32(r))
9964 //mt:if %s.Field == HUDPos
9967 //mt:if %s.Field == HUDName
9970 //mt:if %s.Field == HUDScale
9973 //mt:if %s.Field == HUDText
9976 //mt:if %s.Field == HUDNumber
9979 //mt:if %s.Field == HUDItem
9982 //mt:if %s.Field == HUDDir
9985 //mt:if %s.Field == HUDAlign
9988 //mt:if %s.Field == HUDOffset
9991 //mt:if %s.Field == HUDWorldPos
9994 //mt:if %s.Field == HUDSize
9997 //mt:if %s.Field == HUDZIndex
10000 //mt:if %s.Field == HUDText2
10003 //mt:if %s.Field == HUDStyle
10004 Style HUDStyleFlags
10005 }))(obj)).Field == HUDText {
10006 var local181 []uint8
10007 var local182 uint16
10012 (local181) = make([]uint8, local182)
10014 _, err := io.ReadFull(r, (local181)[:])
10022 //mt:if %s.Field == HUDPos
10025 //mt:if %s.Field == HUDName
10028 //mt:if %s.Field == HUDScale
10031 //mt:if %s.Field == HUDText
10034 //mt:if %s.Field == HUDNumber
10037 //mt:if %s.Field == HUDItem
10040 //mt:if %s.Field == HUDDir
10043 //mt:if %s.Field == HUDAlign
10046 //mt:if %s.Field == HUDOffset
10049 //mt:if %s.Field == HUDWorldPos
10052 //mt:if %s.Field == HUDSize
10055 //mt:if %s.Field == HUDZIndex
10058 //mt:if %s.Field == HUDText2
10061 //mt:if %s.Field == HUDStyle
10062 Style HUDStyleFlags
10063 }))(obj)).Text) = string(local181)
10070 //mt:if %s.Field == HUDPos
10073 //mt:if %s.Field == HUDName
10076 //mt:if %s.Field == HUDScale
10079 //mt:if %s.Field == HUDText
10082 //mt:if %s.Field == HUDNumber
10085 //mt:if %s.Field == HUDItem
10088 //mt:if %s.Field == HUDDir
10091 //mt:if %s.Field == HUDAlign
10094 //mt:if %s.Field == HUDOffset
10097 //mt:if %s.Field == HUDWorldPos
10100 //mt:if %s.Field == HUDSize
10103 //mt:if %s.Field == HUDZIndex
10106 //mt:if %s.Field == HUDText2
10109 //mt:if %s.Field == HUDStyle
10110 Style HUDStyleFlags
10111 }))(obj)).Field == HUDNumber {
10113 p := &(*(*(struct {
10118 //mt:if %s.Field == HUDPos
10121 //mt:if %s.Field == HUDName
10124 //mt:if %s.Field == HUDScale
10127 //mt:if %s.Field == HUDText
10130 //mt:if %s.Field == HUDNumber
10133 //mt:if %s.Field == HUDItem
10136 //mt:if %s.Field == HUDDir
10139 //mt:if %s.Field == HUDAlign
10142 //mt:if %s.Field == HUDOffset
10145 //mt:if %s.Field == HUDWorldPos
10148 //mt:if %s.Field == HUDSize
10151 //mt:if %s.Field == HUDZIndex
10154 //mt:if %s.Field == HUDText2
10157 //mt:if %s.Field == HUDStyle
10158 Style HUDStyleFlags
10168 //mt:if %s.Field == HUDPos
10171 //mt:if %s.Field == HUDName
10174 //mt:if %s.Field == HUDScale
10177 //mt:if %s.Field == HUDText
10180 //mt:if %s.Field == HUDNumber
10183 //mt:if %s.Field == HUDItem
10186 //mt:if %s.Field == HUDDir
10189 //mt:if %s.Field == HUDAlign
10192 //mt:if %s.Field == HUDOffset
10195 //mt:if %s.Field == HUDWorldPos
10198 //mt:if %s.Field == HUDSize
10201 //mt:if %s.Field == HUDZIndex
10204 //mt:if %s.Field == HUDText2
10207 //mt:if %s.Field == HUDStyle
10208 Style HUDStyleFlags
10209 }))(obj)).Field == HUDItem {
10211 p := &(*(*(struct {
10216 //mt:if %s.Field == HUDPos
10219 //mt:if %s.Field == HUDName
10222 //mt:if %s.Field == HUDScale
10225 //mt:if %s.Field == HUDText
10228 //mt:if %s.Field == HUDNumber
10231 //mt:if %s.Field == HUDItem
10234 //mt:if %s.Field == HUDDir
10237 //mt:if %s.Field == HUDAlign
10240 //mt:if %s.Field == HUDOffset
10243 //mt:if %s.Field == HUDWorldPos
10246 //mt:if %s.Field == HUDSize
10249 //mt:if %s.Field == HUDZIndex
10252 //mt:if %s.Field == HUDText2
10255 //mt:if %s.Field == HUDStyle
10256 Style HUDStyleFlags
10266 //mt:if %s.Field == HUDPos
10269 //mt:if %s.Field == HUDName
10272 //mt:if %s.Field == HUDScale
10275 //mt:if %s.Field == HUDText
10278 //mt:if %s.Field == HUDNumber
10281 //mt:if %s.Field == HUDItem
10284 //mt:if %s.Field == HUDDir
10287 //mt:if %s.Field == HUDAlign
10290 //mt:if %s.Field == HUDOffset
10293 //mt:if %s.Field == HUDWorldPos
10296 //mt:if %s.Field == HUDSize
10299 //mt:if %s.Field == HUDZIndex
10302 //mt:if %s.Field == HUDText2
10305 //mt:if %s.Field == HUDStyle
10306 Style HUDStyleFlags
10307 }))(obj)).Field == HUDDir {
10309 p := &(*(*(struct {
10314 //mt:if %s.Field == HUDPos
10317 //mt:if %s.Field == HUDName
10320 //mt:if %s.Field == HUDScale
10323 //mt:if %s.Field == HUDText
10326 //mt:if %s.Field == HUDNumber
10329 //mt:if %s.Field == HUDItem
10332 //mt:if %s.Field == HUDDir
10335 //mt:if %s.Field == HUDAlign
10338 //mt:if %s.Field == HUDOffset
10341 //mt:if %s.Field == HUDWorldPos
10344 //mt:if %s.Field == HUDSize
10347 //mt:if %s.Field == HUDZIndex
10350 //mt:if %s.Field == HUDText2
10353 //mt:if %s.Field == HUDStyle
10354 Style HUDStyleFlags
10364 //mt:if %s.Field == HUDPos
10367 //mt:if %s.Field == HUDName
10370 //mt:if %s.Field == HUDScale
10373 //mt:if %s.Field == HUDText
10376 //mt:if %s.Field == HUDNumber
10379 //mt:if %s.Field == HUDItem
10382 //mt:if %s.Field == HUDDir
10385 //mt:if %s.Field == HUDAlign
10388 //mt:if %s.Field == HUDOffset
10391 //mt:if %s.Field == HUDWorldPos
10394 //mt:if %s.Field == HUDSize
10397 //mt:if %s.Field == HUDZIndex
10400 //mt:if %s.Field == HUDText2
10403 //mt:if %s.Field == HUDStyle
10404 Style HUDStyleFlags
10405 }))(obj)).Field == HUDAlign {
10406 for local183 := range (*(*(struct {
10411 //mt:if %s.Field == HUDPos
10414 //mt:if %s.Field == HUDName
10417 //mt:if %s.Field == HUDScale
10420 //mt:if %s.Field == HUDText
10423 //mt:if %s.Field == HUDNumber
10426 //mt:if %s.Field == HUDItem
10429 //mt:if %s.Field == HUDDir
10432 //mt:if %s.Field == HUDAlign
10435 //mt:if %s.Field == HUDOffset
10438 //mt:if %s.Field == HUDWorldPos
10441 //mt:if %s.Field == HUDSize
10444 //mt:if %s.Field == HUDZIndex
10447 //mt:if %s.Field == HUDText2
10450 //mt:if %s.Field == HUDStyle
10451 Style HUDStyleFlags
10454 p := &((*(*(struct {
10459 //mt:if %s.Field == HUDPos
10462 //mt:if %s.Field == HUDName
10465 //mt:if %s.Field == HUDScale
10468 //mt:if %s.Field == HUDText
10471 //mt:if %s.Field == HUDNumber
10474 //mt:if %s.Field == HUDItem
10477 //mt:if %s.Field == HUDDir
10480 //mt:if %s.Field == HUDAlign
10483 //mt:if %s.Field == HUDOffset
10486 //mt:if %s.Field == HUDWorldPos
10489 //mt:if %s.Field == HUDSize
10492 //mt:if %s.Field == HUDZIndex
10495 //mt:if %s.Field == HUDText2
10498 //mt:if %s.Field == HUDStyle
10499 Style HUDStyleFlags
10500 }))(obj)).Align)[local183]
10501 *p = math.Float32frombits(read32(r))
10510 //mt:if %s.Field == HUDPos
10513 //mt:if %s.Field == HUDName
10516 //mt:if %s.Field == HUDScale
10519 //mt:if %s.Field == HUDText
10522 //mt:if %s.Field == HUDNumber
10525 //mt:if %s.Field == HUDItem
10528 //mt:if %s.Field == HUDDir
10531 //mt:if %s.Field == HUDAlign
10534 //mt:if %s.Field == HUDOffset
10537 //mt:if %s.Field == HUDWorldPos
10540 //mt:if %s.Field == HUDSize
10543 //mt:if %s.Field == HUDZIndex
10546 //mt:if %s.Field == HUDText2
10549 //mt:if %s.Field == HUDStyle
10550 Style HUDStyleFlags
10551 }))(obj)).Field == HUDOffset {
10552 for local184 := range (*(*(struct {
10557 //mt:if %s.Field == HUDPos
10560 //mt:if %s.Field == HUDName
10563 //mt:if %s.Field == HUDScale
10566 //mt:if %s.Field == HUDText
10569 //mt:if %s.Field == HUDNumber
10572 //mt:if %s.Field == HUDItem
10575 //mt:if %s.Field == HUDDir
10578 //mt:if %s.Field == HUDAlign
10581 //mt:if %s.Field == HUDOffset
10584 //mt:if %s.Field == HUDWorldPos
10587 //mt:if %s.Field == HUDSize
10590 //mt:if %s.Field == HUDZIndex
10593 //mt:if %s.Field == HUDText2
10596 //mt:if %s.Field == HUDStyle
10597 Style HUDStyleFlags
10600 p := &((*(*(struct {
10605 //mt:if %s.Field == HUDPos
10608 //mt:if %s.Field == HUDName
10611 //mt:if %s.Field == HUDScale
10614 //mt:if %s.Field == HUDText
10617 //mt:if %s.Field == HUDNumber
10620 //mt:if %s.Field == HUDItem
10623 //mt:if %s.Field == HUDDir
10626 //mt:if %s.Field == HUDAlign
10629 //mt:if %s.Field == HUDOffset
10632 //mt:if %s.Field == HUDWorldPos
10635 //mt:if %s.Field == HUDSize
10638 //mt:if %s.Field == HUDZIndex
10641 //mt:if %s.Field == HUDText2
10644 //mt:if %s.Field == HUDStyle
10645 Style HUDStyleFlags
10646 }))(obj)).Offset)[local184]
10647 *p = math.Float32frombits(read32(r))
10656 //mt:if %s.Field == HUDPos
10659 //mt:if %s.Field == HUDName
10662 //mt:if %s.Field == HUDScale
10665 //mt:if %s.Field == HUDText
10668 //mt:if %s.Field == HUDNumber
10671 //mt:if %s.Field == HUDItem
10674 //mt:if %s.Field == HUDDir
10677 //mt:if %s.Field == HUDAlign
10680 //mt:if %s.Field == HUDOffset
10683 //mt:if %s.Field == HUDWorldPos
10686 //mt:if %s.Field == HUDSize
10689 //mt:if %s.Field == HUDZIndex
10692 //mt:if %s.Field == HUDText2
10695 //mt:if %s.Field == HUDStyle
10696 Style HUDStyleFlags
10697 }))(obj)).Field == HUDWorldPos {
10698 if err := pcall(func() {
10704 //mt:if %s.Field == HUDPos
10707 //mt:if %s.Field == HUDName
10710 //mt:if %s.Field == HUDScale
10713 //mt:if %s.Field == HUDText
10716 //mt:if %s.Field == HUDNumber
10719 //mt:if %s.Field == HUDItem
10722 //mt:if %s.Field == HUDDir
10725 //mt:if %s.Field == HUDAlign
10728 //mt:if %s.Field == HUDOffset
10731 //mt:if %s.Field == HUDWorldPos
10734 //mt:if %s.Field == HUDSize
10737 //mt:if %s.Field == HUDZIndex
10740 //mt:if %s.Field == HUDText2
10743 //mt:if %s.Field == HUDStyle
10744 Style HUDStyleFlags
10745 }))(obj)).WorldPos).Deserialize(r)
10750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
10758 //mt:if %s.Field == HUDPos
10761 //mt:if %s.Field == HUDName
10764 //mt:if %s.Field == HUDScale
10767 //mt:if %s.Field == HUDText
10770 //mt:if %s.Field == HUDNumber
10773 //mt:if %s.Field == HUDItem
10776 //mt:if %s.Field == HUDDir
10779 //mt:if %s.Field == HUDAlign
10782 //mt:if %s.Field == HUDOffset
10785 //mt:if %s.Field == HUDWorldPos
10788 //mt:if %s.Field == HUDSize
10791 //mt:if %s.Field == HUDZIndex
10794 //mt:if %s.Field == HUDText2
10797 //mt:if %s.Field == HUDStyle
10798 Style HUDStyleFlags
10799 }))(obj)).Field == HUDSize {
10800 for local185 := range (*(*(struct {
10805 //mt:if %s.Field == HUDPos
10808 //mt:if %s.Field == HUDName
10811 //mt:if %s.Field == HUDScale
10814 //mt:if %s.Field == HUDText
10817 //mt:if %s.Field == HUDNumber
10820 //mt:if %s.Field == HUDItem
10823 //mt:if %s.Field == HUDDir
10826 //mt:if %s.Field == HUDAlign
10829 //mt:if %s.Field == HUDOffset
10832 //mt:if %s.Field == HUDWorldPos
10835 //mt:if %s.Field == HUDSize
10838 //mt:if %s.Field == HUDZIndex
10841 //mt:if %s.Field == HUDText2
10844 //mt:if %s.Field == HUDStyle
10845 Style HUDStyleFlags
10848 p := &((*(*(struct {
10853 //mt:if %s.Field == HUDPos
10856 //mt:if %s.Field == HUDName
10859 //mt:if %s.Field == HUDScale
10862 //mt:if %s.Field == HUDText
10865 //mt:if %s.Field == HUDNumber
10868 //mt:if %s.Field == HUDItem
10871 //mt:if %s.Field == HUDDir
10874 //mt:if %s.Field == HUDAlign
10877 //mt:if %s.Field == HUDOffset
10880 //mt:if %s.Field == HUDWorldPos
10883 //mt:if %s.Field == HUDSize
10886 //mt:if %s.Field == HUDZIndex
10889 //mt:if %s.Field == HUDText2
10892 //mt:if %s.Field == HUDStyle
10893 Style HUDStyleFlags
10894 }))(obj)).Size)[local185]
10895 *p = int32(read32(r))
10904 //mt:if %s.Field == HUDPos
10907 //mt:if %s.Field == HUDName
10910 //mt:if %s.Field == HUDScale
10913 //mt:if %s.Field == HUDText
10916 //mt:if %s.Field == HUDNumber
10919 //mt:if %s.Field == HUDItem
10922 //mt:if %s.Field == HUDDir
10925 //mt:if %s.Field == HUDAlign
10928 //mt:if %s.Field == HUDOffset
10931 //mt:if %s.Field == HUDWorldPos
10934 //mt:if %s.Field == HUDSize
10937 //mt:if %s.Field == HUDZIndex
10940 //mt:if %s.Field == HUDText2
10943 //mt:if %s.Field == HUDStyle
10944 Style HUDStyleFlags
10945 }))(obj)).Field == HUDZIndex {
10947 p := &(*(*(struct {
10952 //mt:if %s.Field == HUDPos
10955 //mt:if %s.Field == HUDName
10958 //mt:if %s.Field == HUDScale
10961 //mt:if %s.Field == HUDText
10964 //mt:if %s.Field == HUDNumber
10967 //mt:if %s.Field == HUDItem
10970 //mt:if %s.Field == HUDDir
10973 //mt:if %s.Field == HUDAlign
10976 //mt:if %s.Field == HUDOffset
10979 //mt:if %s.Field == HUDWorldPos
10982 //mt:if %s.Field == HUDSize
10985 //mt:if %s.Field == HUDZIndex
10988 //mt:if %s.Field == HUDText2
10991 //mt:if %s.Field == HUDStyle
10992 Style HUDStyleFlags
10994 *p = int32(read32(r))
11002 //mt:if %s.Field == HUDPos
11005 //mt:if %s.Field == HUDName
11008 //mt:if %s.Field == HUDScale
11011 //mt:if %s.Field == HUDText
11014 //mt:if %s.Field == HUDNumber
11017 //mt:if %s.Field == HUDItem
11020 //mt:if %s.Field == HUDDir
11023 //mt:if %s.Field == HUDAlign
11026 //mt:if %s.Field == HUDOffset
11029 //mt:if %s.Field == HUDWorldPos
11032 //mt:if %s.Field == HUDSize
11035 //mt:if %s.Field == HUDZIndex
11038 //mt:if %s.Field == HUDText2
11041 //mt:if %s.Field == HUDStyle
11042 Style HUDStyleFlags
11043 }))(obj)).Field == HUDText2 {
11044 var local186 []uint8
11045 var local187 uint16
11050 (local186) = make([]uint8, local187)
11052 _, err := io.ReadFull(r, (local186)[:])
11060 //mt:if %s.Field == HUDPos
11063 //mt:if %s.Field == HUDName
11066 //mt:if %s.Field == HUDScale
11069 //mt:if %s.Field == HUDText
11072 //mt:if %s.Field == HUDNumber
11075 //mt:if %s.Field == HUDItem
11078 //mt:if %s.Field == HUDDir
11081 //mt:if %s.Field == HUDAlign
11084 //mt:if %s.Field == HUDOffset
11087 //mt:if %s.Field == HUDWorldPos
11090 //mt:if %s.Field == HUDSize
11093 //mt:if %s.Field == HUDZIndex
11096 //mt:if %s.Field == HUDText2
11099 //mt:if %s.Field == HUDStyle
11100 Style HUDStyleFlags
11101 }))(obj)).Text2) = string(local186)
11108 //mt:if %s.Field == HUDPos
11111 //mt:if %s.Field == HUDName
11114 //mt:if %s.Field == HUDScale
11117 //mt:if %s.Field == HUDText
11120 //mt:if %s.Field == HUDNumber
11123 //mt:if %s.Field == HUDItem
11126 //mt:if %s.Field == HUDDir
11129 //mt:if %s.Field == HUDAlign
11132 //mt:if %s.Field == HUDOffset
11135 //mt:if %s.Field == HUDWorldPos
11138 //mt:if %s.Field == HUDSize
11141 //mt:if %s.Field == HUDZIndex
11144 //mt:if %s.Field == HUDText2
11147 //mt:if %s.Field == HUDStyle
11148 Style HUDStyleFlags
11149 }))(obj)).Field == HUDStyle {
11150 if err := pcall(func() {
11156 //mt:if %s.Field == HUDPos
11159 //mt:if %s.Field == HUDName
11162 //mt:if %s.Field == HUDScale
11165 //mt:if %s.Field == HUDText
11168 //mt:if %s.Field == HUDNumber
11171 //mt:if %s.Field == HUDItem
11174 //mt:if %s.Field == HUDDir
11177 //mt:if %s.Field == HUDAlign
11180 //mt:if %s.Field == HUDOffset
11183 //mt:if %s.Field == HUDWorldPos
11186 //mt:if %s.Field == HUDSize
11189 //mt:if %s.Field == HUDZIndex
11192 //mt:if %s.Field == HUDText2
11195 //mt:if %s.Field == HUDStyle
11196 Style HUDStyleFlags
11197 }))(obj)).Style).Deserialize(r)
11202 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
11207 func (obj *ToCltHUDFlags) Serialize(w io.Writer) {
11208 if err := pcall(func() {
11212 Flags, Mask HUDFlags
11213 }))(obj)).Flags).Serialize(w)
11218 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11220 if err := pcall(func() {
11224 Flags, Mask HUDFlags
11225 }))(obj)).Mask).Serialize(w)
11230 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11234 func (obj *ToCltHUDFlags) Deserialize(r io.Reader) {
11235 if err := pcall(func() {
11239 Flags, Mask HUDFlags
11240 }))(obj)).Flags).Deserialize(r)
11245 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11247 if err := pcall(func() {
11251 Flags, Mask HUDFlags
11252 }))(obj)).Mask).Deserialize(r)
11257 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDFlags", err))
11261 func (obj *ToCltSetHotbarParam) Serialize(w io.Writer) {
11262 if err := pcall(func() {
11266 //mt:if %s.Param == HotbarSize
11267 //mt:const uint16(4) // Size of Size field.
11270 //mt:if %s.Param != HotbarSize
11272 }))(obj)).Param).Serialize(w)
11277 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11282 //mt:if %s.Param == HotbarSize
11283 //mt:const uint16(4) // Size of Size field.
11286 //mt:if %s.Param != HotbarSize
11288 }))(obj)).Param == HotbarSize {
11290 local188 := uint16(4) // Size of Size field.
11293 write16(w, uint16(x))
11300 //mt:if %s.Param == HotbarSize
11301 //mt:const uint16(4) // Size of Size field.
11304 //mt:if %s.Param != HotbarSize
11307 write32(w, uint32(x))
11313 //mt:if %s.Param == HotbarSize
11314 //mt:const uint16(4) // Size of Size field.
11317 //mt:if %s.Param != HotbarSize
11319 }))(obj)).Param != HotbarSize {
11320 if err := pcall(func() {
11324 //mt:if %s.Param == HotbarSize
11325 //mt:const uint16(4) // Size of Size field.
11328 //mt:if %s.Param != HotbarSize
11330 }))(obj)).Img).Serialize(w)
11335 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11340 func (obj *ToCltSetHotbarParam) Deserialize(r io.Reader) {
11341 if err := pcall(func() {
11345 //mt:if %s.Param == HotbarSize
11346 //mt:const uint16(4) // Size of Size field.
11349 //mt:if %s.Param != HotbarSize
11351 }))(obj)).Param).Deserialize(r)
11356 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HotbarParam", err))
11361 //mt:if %s.Param == HotbarSize
11362 //mt:const uint16(4) // Size of Size field.
11365 //mt:if %s.Param != HotbarSize
11367 }))(obj)).Param == HotbarSize {
11369 var local189 uint16
11370 local190 := uint16(4) // Size of Size field.
11375 if local189 != local190 {
11376 chk(fmt.Errorf("const %v: %v", "uint16(4) // Size of Size field.", local189))
11380 p := &(*(*(struct {
11383 //mt:if %s.Param == HotbarSize
11384 //mt:const uint16(4) // Size of Size field.
11387 //mt:if %s.Param != HotbarSize
11390 *p = int32(read32(r))
11396 //mt:if %s.Param == HotbarSize
11397 //mt:const uint16(4) // Size of Size field.
11400 //mt:if %s.Param != HotbarSize
11402 }))(obj)).Param != HotbarSize {
11403 if err := pcall(func() {
11407 //mt:if %s.Param == HotbarSize
11408 //mt:const uint16(4) // Size of Size field.
11411 //mt:if %s.Param != HotbarSize
11413 }))(obj)).Img).Deserialize(r)
11418 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11423 func (obj *ToCltBreath) Serialize(w io.Writer) {
11428 write16(w, uint16(x))
11432 func (obj *ToCltBreath) Deserialize(r io.Reader) {
11434 p := &(*(*(struct {
11441 func (obj *ToCltSkyParams) Serialize(w io.Writer) {
11444 BgColor color.NRGBA
11447 SunFogTint color.NRGBA
11448 MoonFogTint color.NRGBA
11451 //mt:if %s.Type == "skybox"
11454 //mt:if %s.Type == "regular"
11455 DaySky, DayHorizon,
11456 DawnSky, DawnHorizon,
11457 NightSky, NightHorizon,
11460 w.Write([]byte{x.A, x.R, x.G, x.B})
11462 if len(([]byte((*(*(struct {
11463 BgColor color.NRGBA
11466 SunFogTint color.NRGBA
11467 MoonFogTint color.NRGBA
11470 //mt:if %s.Type == "skybox"
11473 //mt:if %s.Type == "regular"
11474 DaySky, DayHorizon,
11475 DawnSky, DawnHorizon,
11476 NightSky, NightHorizon,
11478 }))(obj)).Type))) > math.MaxUint16 {
11482 x := uint16(len(([]byte((*(*(struct {
11483 BgColor color.NRGBA
11486 SunFogTint color.NRGBA
11487 MoonFogTint color.NRGBA
11490 //mt:if %s.Type == "skybox"
11493 //mt:if %s.Type == "regular"
11494 DaySky, DayHorizon,
11495 DawnSky, DawnHorizon,
11496 NightSky, NightHorizon,
11499 write16(w, uint16(x))
11502 _, err := w.Write(([]byte((*(*(struct {
11503 BgColor color.NRGBA
11506 SunFogTint color.NRGBA
11507 MoonFogTint color.NRGBA
11510 //mt:if %s.Type == "skybox"
11513 //mt:if %s.Type == "regular"
11514 DaySky, DayHorizon,
11515 DawnSky, DawnHorizon,
11516 NightSky, NightHorizon,
11518 }))(obj)).Type))[:])
11523 BgColor color.NRGBA
11526 SunFogTint color.NRGBA
11527 MoonFogTint color.NRGBA
11530 //mt:if %s.Type == "skybox"
11533 //mt:if %s.Type == "regular"
11534 DaySky, DayHorizon,
11535 DawnSky, DawnHorizon,
11536 NightSky, NightHorizon,
11547 BgColor color.NRGBA
11550 SunFogTint color.NRGBA
11551 MoonFogTint color.NRGBA
11554 //mt:if %s.Type == "skybox"
11557 //mt:if %s.Type == "regular"
11558 DaySky, DayHorizon,
11559 DawnSky, DawnHorizon,
11560 NightSky, NightHorizon,
11562 }))(obj)).SunFogTint
11563 w.Write([]byte{x.A, x.R, x.G, x.B})
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)).MoonFogTint
11583 w.Write([]byte{x.A, x.R, x.G, x.B})
11585 if len(([]byte((*(*(struct {
11586 BgColor color.NRGBA
11589 SunFogTint color.NRGBA
11590 MoonFogTint color.NRGBA
11593 //mt:if %s.Type == "skybox"
11596 //mt:if %s.Type == "regular"
11597 DaySky, DayHorizon,
11598 DawnSky, DawnHorizon,
11599 NightSky, NightHorizon,
11601 }))(obj)).FogTintType))) > math.MaxUint16 {
11605 x := uint16(len(([]byte((*(*(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)).FogTintType))))
11622 write16(w, uint16(x))
11625 _, err := w.Write(([]byte((*(*(struct {
11626 BgColor color.NRGBA
11629 SunFogTint color.NRGBA
11630 MoonFogTint color.NRGBA
11633 //mt:if %s.Type == "skybox"
11636 //mt:if %s.Type == "regular"
11637 DaySky, DayHorizon,
11638 DawnSky, DawnHorizon,
11639 NightSky, NightHorizon,
11641 }))(obj)).FogTintType))[:])
11645 BgColor color.NRGBA
11648 SunFogTint color.NRGBA
11649 MoonFogTint color.NRGBA
11652 //mt:if %s.Type == "skybox"
11655 //mt:if %s.Type == "regular"
11656 DaySky, DayHorizon,
11657 DawnSky, DawnHorizon,
11658 NightSky, NightHorizon,
11660 }))(obj)).Type == "skybox" {
11661 if len(((*(*(struct {
11662 BgColor color.NRGBA
11665 SunFogTint color.NRGBA
11666 MoonFogTint color.NRGBA
11669 //mt:if %s.Type == "skybox"
11672 //mt:if %s.Type == "regular"
11673 DaySky, DayHorizon,
11674 DawnSky, DawnHorizon,
11675 NightSky, NightHorizon,
11677 }))(obj)).Textures)) > math.MaxUint16 {
11681 x := uint16(len(((*(*(struct {
11682 BgColor color.NRGBA
11685 SunFogTint color.NRGBA
11686 MoonFogTint color.NRGBA
11689 //mt:if %s.Type == "skybox"
11692 //mt:if %s.Type == "regular"
11693 DaySky, DayHorizon,
11694 DawnSky, DawnHorizon,
11695 NightSky, NightHorizon,
11697 }))(obj)).Textures)))
11698 write16(w, uint16(x))
11700 for local191 := range (*(*(struct {
11701 BgColor color.NRGBA
11704 SunFogTint color.NRGBA
11705 MoonFogTint color.NRGBA
11708 //mt:if %s.Type == "skybox"
11711 //mt:if %s.Type == "regular"
11712 DaySky, DayHorizon,
11713 DawnSky, DawnHorizon,
11714 NightSky, NightHorizon,
11716 }))(obj)).Textures {
11717 if err := pcall(func() {
11719 BgColor color.NRGBA
11722 SunFogTint color.NRGBA
11723 MoonFogTint color.NRGBA
11726 //mt:if %s.Type == "skybox"
11729 //mt:if %s.Type == "regular"
11730 DaySky, DayHorizon,
11731 DawnSky, DawnHorizon,
11732 NightSky, NightHorizon,
11734 }))(obj)).Textures)[local191]).Serialize(w)
11739 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
11744 BgColor color.NRGBA
11747 SunFogTint color.NRGBA
11748 MoonFogTint color.NRGBA
11751 //mt:if %s.Type == "skybox"
11754 //mt:if %s.Type == "regular"
11755 DaySky, DayHorizon,
11756 DawnSky, DawnHorizon,
11757 NightSky, NightHorizon,
11759 }))(obj)).Type == "regular" {
11762 BgColor color.NRGBA
11765 SunFogTint color.NRGBA
11766 MoonFogTint color.NRGBA
11769 //mt:if %s.Type == "skybox"
11772 //mt:if %s.Type == "regular"
11773 DaySky, DayHorizon,
11774 DawnSky, DawnHorizon,
11775 NightSky, NightHorizon,
11778 w.Write([]byte{x.A, x.R, x.G, x.B})
11782 BgColor color.NRGBA
11785 SunFogTint color.NRGBA
11786 MoonFogTint color.NRGBA
11789 //mt:if %s.Type == "skybox"
11792 //mt:if %s.Type == "regular"
11793 DaySky, DayHorizon,
11794 DawnSky, DawnHorizon,
11795 NightSky, NightHorizon,
11797 }))(obj)).DayHorizon
11798 w.Write([]byte{x.A, x.R, x.G, x.B})
11802 BgColor color.NRGBA
11805 SunFogTint color.NRGBA
11806 MoonFogTint color.NRGBA
11809 //mt:if %s.Type == "skybox"
11812 //mt:if %s.Type == "regular"
11813 DaySky, DayHorizon,
11814 DawnSky, DawnHorizon,
11815 NightSky, NightHorizon,
11818 w.Write([]byte{x.A, x.R, x.G, x.B})
11822 BgColor color.NRGBA
11825 SunFogTint color.NRGBA
11826 MoonFogTint color.NRGBA
11829 //mt:if %s.Type == "skybox"
11832 //mt:if %s.Type == "regular"
11833 DaySky, DayHorizon,
11834 DawnSky, DawnHorizon,
11835 NightSky, NightHorizon,
11837 }))(obj)).DawnHorizon
11838 w.Write([]byte{x.A, x.R, x.G, x.B})
11842 BgColor color.NRGBA
11845 SunFogTint color.NRGBA
11846 MoonFogTint color.NRGBA
11849 //mt:if %s.Type == "skybox"
11852 //mt:if %s.Type == "regular"
11853 DaySky, DayHorizon,
11854 DawnSky, DawnHorizon,
11855 NightSky, NightHorizon,
11858 w.Write([]byte{x.A, x.R, x.G, x.B})
11862 BgColor color.NRGBA
11865 SunFogTint color.NRGBA
11866 MoonFogTint color.NRGBA
11869 //mt:if %s.Type == "skybox"
11872 //mt:if %s.Type == "regular"
11873 DaySky, DayHorizon,
11874 DawnSky, DawnHorizon,
11875 NightSky, NightHorizon,
11877 }))(obj)).NightHorizon
11878 w.Write([]byte{x.A, x.R, x.G, x.B})
11882 BgColor color.NRGBA
11885 SunFogTint color.NRGBA
11886 MoonFogTint color.NRGBA
11889 //mt:if %s.Type == "skybox"
11892 //mt:if %s.Type == "regular"
11893 DaySky, DayHorizon,
11894 DawnSky, DawnHorizon,
11895 NightSky, NightHorizon,
11898 w.Write([]byte{x.A, x.R, x.G, x.B})
11903 func (obj *ToCltSkyParams) Deserialize(r io.Reader) {
11905 p := &(*(*(struct {
11906 BgColor color.NRGBA
11909 SunFogTint color.NRGBA
11910 MoonFogTint color.NRGBA
11913 //mt:if %s.Type == "skybox"
11916 //mt:if %s.Type == "regular"
11917 DaySky, DayHorizon,
11918 DawnSky, DawnHorizon,
11919 NightSky, NightHorizon,
11922 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
11924 var local192 []uint8
11925 var local193 uint16
11930 (local192) = make([]uint8, local193)
11932 _, err := io.ReadFull(r, (local192)[:])
11936 BgColor color.NRGBA
11939 SunFogTint color.NRGBA
11940 MoonFogTint color.NRGBA
11943 //mt:if %s.Type == "skybox"
11946 //mt:if %s.Type == "regular"
11947 DaySky, DayHorizon,
11948 DawnSky, DawnHorizon,
11949 NightSky, NightHorizon,
11951 }))(obj)).Type) = string(local192)
11953 p := &(*(*(struct {
11954 BgColor color.NRGBA
11957 SunFogTint color.NRGBA
11958 MoonFogTint color.NRGBA
11961 //mt:if %s.Type == "skybox"
11964 //mt:if %s.Type == "regular"
11965 DaySky, DayHorizon,
11966 DawnSky, DawnHorizon,
11967 NightSky, NightHorizon,
11970 switch n := read8(r); n {
11976 chk(fmt.Errorf("invalid bool: %d", n))
11980 p := &(*(*(struct {
11981 BgColor color.NRGBA
11984 SunFogTint color.NRGBA
11985 MoonFogTint color.NRGBA
11988 //mt:if %s.Type == "skybox"
11991 //mt:if %s.Type == "regular"
11992 DaySky, DayHorizon,
11993 DawnSky, DawnHorizon,
11994 NightSky, NightHorizon,
11996 }))(obj)).SunFogTint
11997 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12000 p := &(*(*(struct {
12001 BgColor color.NRGBA
12004 SunFogTint color.NRGBA
12005 MoonFogTint color.NRGBA
12008 //mt:if %s.Type == "skybox"
12011 //mt:if %s.Type == "regular"
12012 DaySky, DayHorizon,
12013 DawnSky, DawnHorizon,
12014 NightSky, NightHorizon,
12016 }))(obj)).MoonFogTint
12017 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12019 var local194 []uint8
12020 var local195 uint16
12025 (local194) = make([]uint8, local195)
12027 _, err := io.ReadFull(r, (local194)[:])
12031 BgColor color.NRGBA
12034 SunFogTint color.NRGBA
12035 MoonFogTint color.NRGBA
12038 //mt:if %s.Type == "skybox"
12041 //mt:if %s.Type == "regular"
12042 DaySky, DayHorizon,
12043 DawnSky, DawnHorizon,
12044 NightSky, NightHorizon,
12046 }))(obj)).FogTintType) = string(local194)
12048 BgColor color.NRGBA
12051 SunFogTint color.NRGBA
12052 MoonFogTint color.NRGBA
12055 //mt:if %s.Type == "skybox"
12058 //mt:if %s.Type == "regular"
12059 DaySky, DayHorizon,
12060 DawnSky, DawnHorizon,
12061 NightSky, NightHorizon,
12063 }))(obj)).Type == "skybox" {
12064 var local196 uint16
12070 BgColor color.NRGBA
12073 SunFogTint color.NRGBA
12074 MoonFogTint color.NRGBA
12077 //mt:if %s.Type == "skybox"
12080 //mt:if %s.Type == "regular"
12081 DaySky, DayHorizon,
12082 DawnSky, DawnHorizon,
12083 NightSky, NightHorizon,
12085 }))(obj)).Textures) = make([]Texture, local196)
12086 for local197 := range (*(*(struct {
12087 BgColor color.NRGBA
12090 SunFogTint color.NRGBA
12091 MoonFogTint color.NRGBA
12094 //mt:if %s.Type == "skybox"
12097 //mt:if %s.Type == "regular"
12098 DaySky, DayHorizon,
12099 DawnSky, DawnHorizon,
12100 NightSky, NightHorizon,
12102 }))(obj)).Textures {
12103 if err := pcall(func() {
12105 BgColor color.NRGBA
12108 SunFogTint color.NRGBA
12109 MoonFogTint color.NRGBA
12112 //mt:if %s.Type == "skybox"
12115 //mt:if %s.Type == "regular"
12116 DaySky, DayHorizon,
12117 DawnSky, DawnHorizon,
12118 NightSky, NightHorizon,
12120 }))(obj)).Textures)[local197]).Deserialize(r)
12125 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
12130 BgColor color.NRGBA
12133 SunFogTint color.NRGBA
12134 MoonFogTint color.NRGBA
12137 //mt:if %s.Type == "skybox"
12140 //mt:if %s.Type == "regular"
12141 DaySky, DayHorizon,
12142 DawnSky, DawnHorizon,
12143 NightSky, NightHorizon,
12145 }))(obj)).Type == "regular" {
12147 p := &(*(*(struct {
12148 BgColor color.NRGBA
12151 SunFogTint color.NRGBA
12152 MoonFogTint color.NRGBA
12155 //mt:if %s.Type == "skybox"
12158 //mt:if %s.Type == "regular"
12159 DaySky, DayHorizon,
12160 DawnSky, DawnHorizon,
12161 NightSky, NightHorizon,
12164 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12167 p := &(*(*(struct {
12168 BgColor color.NRGBA
12171 SunFogTint color.NRGBA
12172 MoonFogTint color.NRGBA
12175 //mt:if %s.Type == "skybox"
12178 //mt:if %s.Type == "regular"
12179 DaySky, DayHorizon,
12180 DawnSky, DawnHorizon,
12181 NightSky, NightHorizon,
12183 }))(obj)).DayHorizon
12184 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12187 p := &(*(*(struct {
12188 BgColor color.NRGBA
12191 SunFogTint color.NRGBA
12192 MoonFogTint color.NRGBA
12195 //mt:if %s.Type == "skybox"
12198 //mt:if %s.Type == "regular"
12199 DaySky, DayHorizon,
12200 DawnSky, DawnHorizon,
12201 NightSky, NightHorizon,
12204 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12207 p := &(*(*(struct {
12208 BgColor color.NRGBA
12211 SunFogTint color.NRGBA
12212 MoonFogTint color.NRGBA
12215 //mt:if %s.Type == "skybox"
12218 //mt:if %s.Type == "regular"
12219 DaySky, DayHorizon,
12220 DawnSky, DawnHorizon,
12221 NightSky, NightHorizon,
12223 }))(obj)).DawnHorizon
12224 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12227 p := &(*(*(struct {
12228 BgColor color.NRGBA
12231 SunFogTint color.NRGBA
12232 MoonFogTint color.NRGBA
12235 //mt:if %s.Type == "skybox"
12238 //mt:if %s.Type == "regular"
12239 DaySky, DayHorizon,
12240 DawnSky, DawnHorizon,
12241 NightSky, NightHorizon,
12244 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12247 p := &(*(*(struct {
12248 BgColor color.NRGBA
12251 SunFogTint color.NRGBA
12252 MoonFogTint color.NRGBA
12255 //mt:if %s.Type == "skybox"
12258 //mt:if %s.Type == "regular"
12259 DaySky, DayHorizon,
12260 DawnSky, DawnHorizon,
12261 NightSky, NightHorizon,
12263 }))(obj)).NightHorizon
12264 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12267 p := &(*(*(struct {
12268 BgColor color.NRGBA
12271 SunFogTint color.NRGBA
12272 MoonFogTint color.NRGBA
12275 //mt:if %s.Type == "skybox"
12278 //mt:if %s.Type == "regular"
12279 DaySky, DayHorizon,
12280 DawnSky, DawnHorizon,
12281 NightSky, NightHorizon,
12284 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12289 func (obj *ToCltOverrideDayNightRatio) Serialize(w io.Writer) {
12306 write16(w, uint16(x))
12310 func (obj *ToCltOverrideDayNightRatio) Deserialize(r io.Reader) {
12312 p := &(*(*(struct {
12316 switch n := read8(r); n {
12322 chk(fmt.Errorf("invalid bool: %d", n))
12326 p := &(*(*(struct {
12334 func (obj *ToCltLocalPlayerAnim) Serialize(w io.Writer) {
12335 for local198 := range (*(*(struct {
12336 Idle, Walk, Dig, WalkDig [2]int32
12340 x := ((*(*(struct {
12341 Idle, Walk, Dig, WalkDig [2]int32
12343 }))(obj)).Idle)[local198]
12344 write32(w, uint32(x))
12347 for local199 := range (*(*(struct {
12348 Idle, Walk, Dig, WalkDig [2]int32
12352 x := ((*(*(struct {
12353 Idle, Walk, Dig, WalkDig [2]int32
12355 }))(obj)).Walk)[local199]
12356 write32(w, uint32(x))
12359 for local200 := range (*(*(struct {
12360 Idle, Walk, Dig, WalkDig [2]int32
12364 x := ((*(*(struct {
12365 Idle, Walk, Dig, WalkDig [2]int32
12367 }))(obj)).Dig)[local200]
12368 write32(w, uint32(x))
12371 for local201 := range (*(*(struct {
12372 Idle, Walk, Dig, WalkDig [2]int32
12374 }))(obj)).WalkDig {
12376 x := ((*(*(struct {
12377 Idle, Walk, Dig, WalkDig [2]int32
12379 }))(obj)).WalkDig)[local201]
12380 write32(w, uint32(x))
12385 Idle, Walk, Dig, WalkDig [2]int32
12388 write32(w, math.Float32bits(x))
12392 func (obj *ToCltLocalPlayerAnim) Deserialize(r io.Reader) {
12393 for local202 := range (*(*(struct {
12394 Idle, Walk, Dig, WalkDig [2]int32
12398 p := &((*(*(struct {
12399 Idle, Walk, Dig, WalkDig [2]int32
12401 }))(obj)).Idle)[local202]
12402 *p = int32(read32(r))
12405 for local203 := range (*(*(struct {
12406 Idle, Walk, Dig, WalkDig [2]int32
12410 p := &((*(*(struct {
12411 Idle, Walk, Dig, WalkDig [2]int32
12413 }))(obj)).Walk)[local203]
12414 *p = int32(read32(r))
12417 for local204 := range (*(*(struct {
12418 Idle, Walk, Dig, WalkDig [2]int32
12422 p := &((*(*(struct {
12423 Idle, Walk, Dig, WalkDig [2]int32
12425 }))(obj)).Dig)[local204]
12426 *p = int32(read32(r))
12429 for local205 := range (*(*(struct {
12430 Idle, Walk, Dig, WalkDig [2]int32
12432 }))(obj)).WalkDig {
12434 p := &((*(*(struct {
12435 Idle, Walk, Dig, WalkDig [2]int32
12437 }))(obj)).WalkDig)[local205]
12438 *p = int32(read32(r))
12442 p := &(*(*(struct {
12443 Idle, Walk, Dig, WalkDig [2]int32
12446 *p = math.Float32frombits(read32(r))
12450 func (obj *ToCltEyeOffset) Serialize(w io.Writer) {
12451 if err := pcall(func() {
12454 }))(obj)).First).Serialize(w)
12459 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12461 if err := pcall(func() {
12464 }))(obj)).Third).Serialize(w)
12469 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12473 func (obj *ToCltEyeOffset) Deserialize(r io.Reader) {
12474 if err := pcall(func() {
12477 }))(obj)).First).Deserialize(r)
12482 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12484 if err := pcall(func() {
12487 }))(obj)).Third).Deserialize(r)
12492 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
12496 func (obj *ToCltDelParticleSpawner) Serialize(w io.Writer) {
12497 if err := pcall(func() {
12499 ID ParticleSpawnerID
12500 }))(obj)).ID).Serialize(w)
12505 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12509 func (obj *ToCltDelParticleSpawner) Deserialize(r io.Reader) {
12510 if err := pcall(func() {
12512 ID ParticleSpawnerID
12513 }))(obj)).ID).Deserialize(r)
12518 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ParticleSpawnerID", err))
12522 func (obj *ToCltCloudParams) Serialize(w io.Writer) {
12526 DiffuseColor color.NRGBA
12527 AmbientColor color.NRGBA
12532 write32(w, math.Float32bits(x))
12537 DiffuseColor color.NRGBA
12538 AmbientColor color.NRGBA
12542 }))(obj)).DiffuseColor
12543 w.Write([]byte{x.A, x.R, x.G, x.B})
12548 DiffuseColor color.NRGBA
12549 AmbientColor color.NRGBA
12553 }))(obj)).AmbientColor
12554 w.Write([]byte{x.A, x.R, x.G, x.B})
12559 DiffuseColor color.NRGBA
12560 AmbientColor color.NRGBA
12565 write32(w, math.Float32bits(x))
12570 DiffuseColor color.NRGBA
12571 AmbientColor color.NRGBA
12575 }))(obj)).Thickness
12576 write32(w, math.Float32bits(x))
12578 for local206 := range (*(*(struct {
12580 DiffuseColor color.NRGBA
12581 AmbientColor color.NRGBA
12587 x := ((*(*(struct {
12589 DiffuseColor color.NRGBA
12590 AmbientColor color.NRGBA
12594 }))(obj)).Speed)[local206]
12595 write32(w, math.Float32bits(x))
12600 func (obj *ToCltCloudParams) Deserialize(r io.Reader) {
12602 p := &(*(*(struct {
12604 DiffuseColor color.NRGBA
12605 AmbientColor color.NRGBA
12610 *p = math.Float32frombits(read32(r))
12613 p := &(*(*(struct {
12615 DiffuseColor color.NRGBA
12616 AmbientColor color.NRGBA
12620 }))(obj)).DiffuseColor
12621 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12624 p := &(*(*(struct {
12626 DiffuseColor color.NRGBA
12627 AmbientColor color.NRGBA
12631 }))(obj)).AmbientColor
12632 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
12635 p := &(*(*(struct {
12637 DiffuseColor color.NRGBA
12638 AmbientColor color.NRGBA
12643 *p = math.Float32frombits(read32(r))
12646 p := &(*(*(struct {
12648 DiffuseColor color.NRGBA
12649 AmbientColor color.NRGBA
12653 }))(obj)).Thickness
12654 *p = math.Float32frombits(read32(r))
12656 for local207 := range (*(*(struct {
12658 DiffuseColor color.NRGBA
12659 AmbientColor color.NRGBA
12665 p := &((*(*(struct {
12667 DiffuseColor color.NRGBA
12668 AmbientColor color.NRGBA
12672 }))(obj)).Speed)[local207]
12673 *p = math.Float32frombits(read32(r))
12678 func (obj *ToCltFadeSound) Serialize(w io.Writer) {
12679 if err := pcall(func() {
12684 }))(obj)).ID).Serialize(w)
12689 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12697 write32(w, math.Float32bits(x))
12705 write32(w, math.Float32bits(x))
12709 func (obj *ToCltFadeSound) Deserialize(r io.Reader) {
12710 if err := pcall(func() {
12715 }))(obj)).ID).Deserialize(r)
12720 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundID", err))
12723 p := &(*(*(struct {
12728 *p = math.Float32frombits(read32(r))
12731 p := &(*(*(struct {
12736 *p = math.Float32frombits(read32(r))
12740 func (obj *ToCltUpdatePlayerList) Serialize(w io.Writer) {
12741 if err := pcall(func() {
12743 Type PlayerListUpdateType
12745 }))(obj)).Type).Serialize(w)
12750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12752 if len(((*(*(struct {
12753 Type PlayerListUpdateType
12755 }))(obj)).Players)) > math.MaxUint16 {
12759 x := uint16(len(((*(*(struct {
12760 Type PlayerListUpdateType
12762 }))(obj)).Players)))
12763 write16(w, uint16(x))
12765 for local208 := range (*(*(struct {
12766 Type PlayerListUpdateType
12768 }))(obj)).Players {
12769 if len(([]byte(((*(*(struct {
12770 Type PlayerListUpdateType
12772 }))(obj)).Players)[local208]))) > math.MaxUint16 {
12776 x := uint16(len(([]byte(((*(*(struct {
12777 Type PlayerListUpdateType
12779 }))(obj)).Players)[local208]))))
12780 write16(w, uint16(x))
12783 _, err := w.Write(([]byte(((*(*(struct {
12784 Type PlayerListUpdateType
12786 }))(obj)).Players)[local208]))[:])
12792 func (obj *ToCltUpdatePlayerList) Deserialize(r io.Reader) {
12793 if err := pcall(func() {
12795 Type PlayerListUpdateType
12797 }))(obj)).Type).Deserialize(r)
12802 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.PlayerListUpdateType", err))
12804 var local209 uint16
12810 Type PlayerListUpdateType
12812 }))(obj)).Players) = make([]string, local209)
12813 for local210 := range (*(*(struct {
12814 Type PlayerListUpdateType
12816 }))(obj)).Players {
12817 var local211 []uint8
12818 var local212 uint16
12823 (local211) = make([]uint8, local212)
12825 _, err := io.ReadFull(r, (local211)[:])
12829 Type PlayerListUpdateType
12831 }))(obj)).Players)[local210]) = string(local211)
12835 func (obj *ToCltModChanMsg) Serialize(w io.Writer) {
12836 if len(([]byte((*(*(struct {
12840 }))(obj)).Channel))) > math.MaxUint16 {
12844 x := uint16(len(([]byte((*(*(struct {
12848 }))(obj)).Channel))))
12849 write16(w, uint16(x))
12852 _, err := w.Write(([]byte((*(*(struct {
12856 }))(obj)).Channel))[:])
12859 if len(([]byte((*(*(struct {
12863 }))(obj)).Sender))) > math.MaxUint16 {
12867 x := uint16(len(([]byte((*(*(struct {
12871 }))(obj)).Sender))))
12872 write16(w, uint16(x))
12875 _, err := w.Write(([]byte((*(*(struct {
12879 }))(obj)).Sender))[:])
12882 if len(([]byte((*(*(struct {
12886 }))(obj)).Msg))) > math.MaxUint16 {
12890 x := uint16(len(([]byte((*(*(struct {
12895 write16(w, uint16(x))
12898 _, err := w.Write(([]byte((*(*(struct {
12902 }))(obj)).Msg))[:])
12907 func (obj *ToCltModChanMsg) Deserialize(r io.Reader) {
12908 var local213 []uint8
12909 var local214 uint16
12914 (local213) = make([]uint8, local214)
12916 _, err := io.ReadFull(r, (local213)[:])
12923 }))(obj)).Channel) = string(local213)
12924 var local215 []uint8
12925 var local216 uint16
12930 (local215) = make([]uint8, local216)
12932 _, err := io.ReadFull(r, (local215)[:])
12939 }))(obj)).Sender) = string(local215)
12940 var local217 []uint8
12941 var local218 uint16
12946 (local217) = make([]uint8, local218)
12948 _, err := io.ReadFull(r, (local217)[:])
12955 }))(obj)).Msg) = string(local217)
12958 func (obj *ToCltModChanSig) Serialize(w io.Writer) {
12959 if err := pcall(func() {
12963 }))(obj)).Signal).Serialize(w)
12968 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
12970 if len(([]byte((*(*(struct {
12973 }))(obj)).Channel))) > math.MaxUint16 {
12977 x := uint16(len(([]byte((*(*(struct {
12980 }))(obj)).Channel))))
12981 write16(w, uint16(x))
12984 _, err := w.Write(([]byte((*(*(struct {
12987 }))(obj)).Channel))[:])
12992 func (obj *ToCltModChanSig) Deserialize(r io.Reader) {
12993 if err := pcall(func() {
12997 }))(obj)).Signal).Deserialize(r)
13002 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ModChanSig", err))
13004 var local219 []uint8
13005 var local220 uint16
13010 (local219) = make([]uint8, local220)
13012 _, err := io.ReadFull(r, (local219)[:])
13018 }))(obj)).Channel) = string(local219)
13021 func (obj *ToCltNodeMetasChanged) Serialize(w io.Writer) {
13024 w := new(bytes.Buffer)
13028 Changed map[[3]int16]*NodeMeta
13031 w := zlib.NewWriter(w)
13036 if len(x) > math.MaxUint16 {
13039 write16(w, uint16(len(x)))
13040 keys := make([][3]int16, 0, len(x))
13041 for key := range x {
13042 keys = append(keys, key)
13044 sort.Slice(keys, func(i, j int) bool {
13045 p, q := keys[i], keys[j]
13056 for _, key := range keys {
13057 for _, n := range key {
13058 write16(w, uint16(n))
13060 chk(serialize(w, x[key]))
13069 if len((buf.Bytes())) > math.MaxUint32 {
13073 x := uint32(len((buf.Bytes())))
13074 write32(w, uint32(x))
13077 _, err := w.Write((buf.Bytes())[:])
13084 func (obj *ToCltNodeMetasChanged) Deserialize(r io.Reader) {
13091 r := &io.LimitedReader{R: r, N: int64(n)}
13093 p := &(*(*(struct {
13095 Changed map[[3]int16]*NodeMeta
13098 r, err := zlib.NewReader(byteReader{r})
13100 switch ver := read8(r); ver {
13105 *p = make(map[[3]int16]*NodeMeta, n)
13108 for i := range pos {
13109 pos[i] = int16(read16(r))
13111 nm := new(NodeMeta)
13112 chk(deserialize(r, nm))
13116 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
13122 chk(fmt.Errorf("%d bytes of trailing data", r.N))
13127 func (obj *ToCltSunParams) Serialize(w io.Writer) {
13143 if err := pcall(func() {
13151 }))(obj)).Texture).Serialize(w)
13156 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13158 if err := pcall(func() {
13166 }))(obj)).ToneMap).Serialize(w)
13171 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13173 if err := pcall(func() {
13181 }))(obj)).Rise).Serialize(w)
13186 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13212 write32(w, math.Float32bits(x))
13216 func (obj *ToCltSunParams) Deserialize(r io.Reader) {
13218 p := &(*(*(struct {
13226 switch n := read8(r); n {
13232 chk(fmt.Errorf("invalid bool: %d", n))
13235 if err := pcall(func() {
13243 }))(obj)).Texture).Deserialize(r)
13248 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13250 if err := pcall(func() {
13258 }))(obj)).ToneMap).Deserialize(r)
13263 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13265 if err := pcall(func() {
13273 }))(obj)).Rise).Deserialize(r)
13278 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13281 p := &(*(*(struct {
13289 switch n := read8(r); n {
13295 chk(fmt.Errorf("invalid bool: %d", n))
13299 p := &(*(*(struct {
13307 *p = math.Float32frombits(read32(r))
13311 func (obj *ToCltMoonParams) Serialize(w io.Writer) {
13325 if err := pcall(func() {
13331 }))(obj)).Texture).Serialize(w)
13336 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13338 if err := pcall(func() {
13344 }))(obj)).ToneMap).Serialize(w)
13349 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13358 write32(w, math.Float32bits(x))
13362 func (obj *ToCltMoonParams) Deserialize(r io.Reader) {
13364 p := &(*(*(struct {
13370 switch n := read8(r); n {
13376 chk(fmt.Errorf("invalid bool: %d", n))
13379 if err := pcall(func() {
13385 }))(obj)).Texture).Deserialize(r)
13390 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13392 if err := pcall(func() {
13398 }))(obj)).ToneMap).Deserialize(r)
13403 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13406 p := &(*(*(struct {
13412 *p = math.Float32frombits(read32(r))
13416 func (obj *ToCltStarParams) Serialize(w io.Writer) {
13437 write32(w, uint32(x))
13446 w.Write([]byte{x.A, x.R, x.G, x.B})
13455 write32(w, math.Float32bits(x))
13459 func (obj *ToCltStarParams) Deserialize(r io.Reader) {
13461 p := &(*(*(struct {
13467 switch n := read8(r); n {
13473 chk(fmt.Errorf("invalid bool: %d", n))
13477 p := &(*(*(struct {
13486 p := &(*(*(struct {
13492 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
13495 p := &(*(*(struct {
13501 *p = math.Float32frombits(read32(r))
13505 func (obj *ToCltSRPBytesSaltB) Serialize(w io.Writer) {
13506 if len(((*(*(struct {
13508 }))(obj)).Salt)) > math.MaxUint16 {
13512 x := uint16(len(((*(*(struct {
13515 write16(w, uint16(x))
13518 _, err := w.Write(((*(*(struct {
13520 }))(obj)).Salt)[:])
13523 if len(((*(*(struct {
13525 }))(obj)).B)) > math.MaxUint16 {
13529 x := uint16(len(((*(*(struct {
13532 write16(w, uint16(x))
13535 _, err := w.Write(((*(*(struct {
13542 func (obj *ToCltSRPBytesSaltB) Deserialize(r io.Reader) {
13543 var local221 uint16
13550 }))(obj)).Salt) = make([]byte, local221)
13552 _, err := io.ReadFull(r, ((*(*(struct {
13554 }))(obj)).Salt)[:])
13557 var local222 uint16
13564 }))(obj)).B) = make([]byte, local222)
13566 _, err := io.ReadFull(r, ((*(*(struct {
13573 func (obj *ToCltFormspecPrepend) Serialize(w io.Writer) {
13574 if len(([]byte((*(*(struct {
13576 }))(obj)).Prepend))) > math.MaxUint16 {
13580 x := uint16(len(([]byte((*(*(struct {
13582 }))(obj)).Prepend))))
13583 write16(w, uint16(x))
13586 _, err := w.Write(([]byte((*(*(struct {
13588 }))(obj)).Prepend))[:])
13593 func (obj *ToCltFormspecPrepend) Deserialize(r io.Reader) {
13594 var local223 []uint8
13595 var local224 uint16
13600 (local223) = make([]uint8, local224)
13602 _, err := io.ReadFull(r, (local223)[:])
13607 }))(obj)).Prepend) = string(local223)
13610 func (obj *AOCmdProps) Serialize(w io.Writer) {
13611 if err := pcall(func() {
13614 }))(obj)).Props).Serialize(w)
13619 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13623 func (obj *AOCmdProps) Deserialize(r io.Reader) {
13624 if err := pcall(func() {
13627 }))(obj)).Props).Deserialize(r)
13632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOProps", err))
13636 func (obj *AOCmdPos) Serialize(w io.Writer) {
13637 if err := pcall(func() {
13640 }))(obj)).Pos).Serialize(w)
13645 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13649 func (obj *AOCmdPos) Deserialize(r io.Reader) {
13650 if err := pcall(func() {
13653 }))(obj)).Pos).Deserialize(r)
13658 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPos", err))
13662 func (obj *AOCmdTextureMod) Serialize(w io.Writer) {
13663 if err := pcall(func() {
13665 Mod Texture // suffix
13666 }))(obj)).Mod).Serialize(w)
13671 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13675 func (obj *AOCmdTextureMod) Deserialize(r io.Reader) {
13676 if err := pcall(func() {
13678 Mod Texture // suffix
13679 }))(obj)).Mod).Deserialize(r)
13684 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
13688 func (obj *AOCmdSprite) Serialize(w io.Writer) {
13689 if err := pcall(func() {
13692 }))(obj)).Sprite).Serialize(w)
13697 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13701 func (obj *AOCmdSprite) Deserialize(r io.Reader) {
13702 if err := pcall(func() {
13705 }))(obj)).Sprite).Deserialize(r)
13710 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOSprite", err))
13714 func (obj *AOCmdHP) Serialize(w io.Writer) {
13719 write16(w, uint16(x))
13723 func (obj *AOCmdHP) Deserialize(r io.Reader) {
13725 p := &(*(*(struct {
13732 func (obj *AOCmdArmorGroups) Serialize(w io.Writer) {
13733 if len(((*(*(struct {
13735 }))(obj)).Armor)) > math.MaxUint16 {
13739 x := uint16(len(((*(*(struct {
13742 write16(w, uint16(x))
13744 for local225 := range (*(*(struct {
13747 if err := pcall(func() {
13750 }))(obj)).Armor)[local225]).Serialize(w)
13755 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13760 func (obj *AOCmdArmorGroups) Deserialize(r io.Reader) {
13761 var local226 uint16
13768 }))(obj)).Armor) = make([]Group, local226)
13769 for local227 := range (*(*(struct {
13772 if err := pcall(func() {
13775 }))(obj)).Armor)[local227]).Deserialize(r)
13780 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
13785 func (obj *AOCmdAnim) Serialize(w io.Writer) {
13786 if err := pcall(func() {
13789 }))(obj)).Anim).Serialize(w)
13794 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13798 func (obj *AOCmdAnim) Deserialize(r io.Reader) {
13799 if err := pcall(func() {
13802 }))(obj)).Anim).Deserialize(r)
13807 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAnim", err))
13811 func (obj *AOCmdBonePos) Serialize(w io.Writer) {
13812 if len(([]byte((*(*(struct {
13815 }))(obj)).Bone))) > math.MaxUint16 {
13819 x := uint16(len(([]byte((*(*(struct {
13823 write16(w, uint16(x))
13826 _, err := w.Write(([]byte((*(*(struct {
13829 }))(obj)).Bone))[:])
13832 if err := pcall(func() {
13836 }))(obj)).Pos).Serialize(w)
13841 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13845 func (obj *AOCmdBonePos) Deserialize(r io.Reader) {
13846 var local228 []uint8
13847 var local229 uint16
13852 (local228) = make([]uint8, local229)
13854 _, err := io.ReadFull(r, (local228)[:])
13860 }))(obj)).Bone) = string(local228)
13861 if err := pcall(func() {
13865 }))(obj)).Pos).Deserialize(r)
13870 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOBonePos", err))
13874 func (obj *AOCmdAttach) Serialize(w io.Writer) {
13875 if err := pcall(func() {
13878 }))(obj)).Attach).Serialize(w)
13883 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13887 func (obj *AOCmdAttach) Deserialize(r io.Reader) {
13888 if err := pcall(func() {
13891 }))(obj)).Attach).Deserialize(r)
13896 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOAttach", err))
13900 func (obj *AOCmdPhysOverride) Serialize(w io.Writer) {
13901 if err := pcall(func() {
13903 Phys AOPhysOverride
13904 }))(obj)).Phys).Serialize(w)
13909 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13913 func (obj *AOCmdPhysOverride) Deserialize(r io.Reader) {
13914 if err := pcall(func() {
13916 Phys AOPhysOverride
13917 }))(obj)).Phys).Deserialize(r)
13922 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOPhysOverride", err))
13926 func (obj *AOCmdSpawnInfant) Serialize(w io.Writer) {
13927 if err := pcall(func() {
13930 }))(obj)).ID).Serialize(w)
13935 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13938 local230 := genericCAO
13939 if err := pcall(func() {
13940 (local230).Serialize(w)
13945 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13950 func (obj *AOCmdSpawnInfant) Deserialize(r io.Reader) {
13951 if err := pcall(func() {
13954 }))(obj)).ID).Deserialize(r)
13959 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
13962 var local231 aoType
13963 local232 := genericCAO
13964 if err := pcall(func() {
13965 (local231).Deserialize(r)
13970 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
13972 if local231 != local232 {
13973 chk(fmt.Errorf("const %v: %v", "genericCAO", local231))
13978 func (obj *AOCmdAnimSpeed) Serialize(w io.Writer) {
13983 write32(w, math.Float32bits(x))
13987 func (obj *AOCmdAnimSpeed) Deserialize(r io.Reader) {
13989 p := &(*(*(struct {
13992 *p = math.Float32frombits(read32(r))
13996 func (obj *NodeMeta) Serialize(w io.Writer) {
13997 if len(((*(*(struct {
13999 Fields []NodeMetaField
14002 }))(obj)).Fields)) > math.MaxUint32 {
14006 x := uint32(len(((*(*(struct {
14008 Fields []NodeMetaField
14011 }))(obj)).Fields)))
14012 write32(w, uint32(x))
14014 for local233 := range (*(*(struct {
14016 Fields []NodeMetaField
14020 if err := pcall(func() {
14023 Fields []NodeMetaField
14026 }))(obj)).Fields)[local233]).Serialize(w)
14031 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
14036 Fields []NodeMetaField
14039 }))(obj)).Inv).Serialize(w))
14042 func (obj *NodeMeta) Deserialize(r io.Reader) {
14043 var local234 uint32
14050 Fields []NodeMetaField
14053 }))(obj)).Fields) = make([]NodeMetaField, local234)
14054 for local235 := range (*(*(struct {
14056 Fields []NodeMetaField
14060 if err := pcall(func() {
14063 Fields []NodeMetaField
14066 }))(obj)).Fields)[local235]).Deserialize(r)
14071 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeMetaField", err))
14076 Fields []NodeMetaField
14079 }))(obj)).Inv).Deserialize(r))
14082 func (obj *MinimapMode) Serialize(w io.Writer) {
14083 if err := pcall(func() {
14090 }))(obj)).Type).Serialize(w)
14095 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14097 if len(([]byte((*(*(struct {
14103 }))(obj)).Label))) > math.MaxUint16 {
14107 x := uint16(len(([]byte((*(*(struct {
14113 }))(obj)).Label))))
14114 write16(w, uint16(x))
14117 _, err := w.Write(([]byte((*(*(struct {
14123 }))(obj)).Label))[:])
14134 write16(w, uint16(x))
14136 if err := pcall(func() {
14143 }))(obj)).Texture).Serialize(w)
14148 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14158 write16(w, uint16(x))
14162 func (obj *MinimapMode) Deserialize(r io.Reader) {
14163 if err := pcall(func() {
14170 }))(obj)).Type).Deserialize(r)
14175 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MinimapType", err))
14177 var local236 []uint8
14178 var local237 uint16
14183 (local236) = make([]uint8, local237)
14185 _, err := io.ReadFull(r, (local236)[:])
14194 }))(obj)).Label) = string(local236)
14196 p := &(*(*(struct {
14205 if err := pcall(func() {
14212 }))(obj)).Texture).Deserialize(r)
14217 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
14220 p := &(*(*(struct {
14231 func (obj *NodeDef) Serialize(w io.Writer) {
14232 if err := pcall(func() {
14245 //mt:const uint8(6)
14247 OverlayTiles [6]TileDef
14248 //mt:const uint8(6)
14249 SpecialTiles [6]TileDef
14256 ConnectTo []Content
14257 InsideTint color.NRGBA
14258 Level uint8 // Must be < 128.
14260 Translucent bool // Sunlight is scattered and becomes normal light.
14261 Transparent bool // Sunlight isn't scattered.
14274 LiquidType LiquidType
14277 Viscosity uint8 // 0-7
14283 DrawBox, ColBox, SelBox NodeBox
14285 FootstepSnd, DiggingSnd, DugSnd SoundDef
14296 MoveResistance uint8
14298 LiquidMovePhysics bool
14299 }))(obj)).Param0).Serialize(w)
14304 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
14308 w := new(bytes.Buffer)
14310 local238 := uint8(13)
14313 write8(w, uint8(x))
14316 if len(([]byte((*(*(struct {
14328 //mt:const uint8(6)
14330 OverlayTiles [6]TileDef
14331 //mt:const uint8(6)
14332 SpecialTiles [6]TileDef
14339 ConnectTo []Content
14340 InsideTint color.NRGBA
14341 Level uint8 // Must be < 128.
14343 Translucent bool // Sunlight is scattered and becomes normal light.
14344 Transparent bool // Sunlight isn't scattered.
14357 LiquidType LiquidType
14360 Viscosity uint8 // 0-7
14366 DrawBox, ColBox, SelBox NodeBox
14368 FootstepSnd, DiggingSnd, DugSnd SoundDef
14379 MoveResistance uint8
14381 LiquidMovePhysics bool
14382 }))(obj)).Name))) > math.MaxUint16 {
14386 x := uint16(len(([]byte((*(*(struct {
14398 //mt:const uint8(6)
14400 OverlayTiles [6]TileDef
14401 //mt:const uint8(6)
14402 SpecialTiles [6]TileDef
14409 ConnectTo []Content
14410 InsideTint color.NRGBA
14411 Level uint8 // Must be < 128.
14413 Translucent bool // Sunlight is scattered and becomes normal light.
14414 Transparent bool // Sunlight isn't scattered.
14427 LiquidType LiquidType
14430 Viscosity uint8 // 0-7
14436 DrawBox, ColBox, SelBox NodeBox
14438 FootstepSnd, DiggingSnd, DugSnd SoundDef
14449 MoveResistance uint8
14451 LiquidMovePhysics bool
14453 write16(w, uint16(x))
14456 _, err := w.Write(([]byte((*(*(struct {
14468 //mt:const uint8(6)
14470 OverlayTiles [6]TileDef
14471 //mt:const uint8(6)
14472 SpecialTiles [6]TileDef
14479 ConnectTo []Content
14480 InsideTint color.NRGBA
14481 Level uint8 // Must be < 128.
14483 Translucent bool // Sunlight is scattered and becomes normal light.
14484 Transparent bool // Sunlight isn't scattered.
14497 LiquidType LiquidType
14500 Viscosity uint8 // 0-7
14506 DrawBox, ColBox, SelBox NodeBox
14508 FootstepSnd, DiggingSnd, DugSnd SoundDef
14519 MoveResistance uint8
14521 LiquidMovePhysics bool
14522 }))(obj)).Name))[:])
14525 if len(((*(*(struct {
14537 //mt:const uint8(6)
14539 OverlayTiles [6]TileDef
14540 //mt:const uint8(6)
14541 SpecialTiles [6]TileDef
14548 ConnectTo []Content
14549 InsideTint color.NRGBA
14550 Level uint8 // Must be < 128.
14552 Translucent bool // Sunlight is scattered and becomes normal light.
14553 Transparent bool // Sunlight isn't scattered.
14566 LiquidType LiquidType
14569 Viscosity uint8 // 0-7
14575 DrawBox, ColBox, SelBox NodeBox
14577 FootstepSnd, DiggingSnd, DugSnd SoundDef
14588 MoveResistance uint8
14590 LiquidMovePhysics bool
14591 }))(obj)).Groups)) > math.MaxUint16 {
14595 x := uint16(len(((*(*(struct {
14607 //mt:const uint8(6)
14609 OverlayTiles [6]TileDef
14610 //mt:const uint8(6)
14611 SpecialTiles [6]TileDef
14618 ConnectTo []Content
14619 InsideTint color.NRGBA
14620 Level uint8 // Must be < 128.
14622 Translucent bool // Sunlight is scattered and becomes normal light.
14623 Transparent bool // Sunlight isn't scattered.
14636 LiquidType LiquidType
14639 Viscosity uint8 // 0-7
14645 DrawBox, ColBox, SelBox NodeBox
14647 FootstepSnd, DiggingSnd, DugSnd SoundDef
14658 MoveResistance uint8
14660 LiquidMovePhysics bool
14661 }))(obj)).Groups)))
14662 write16(w, uint16(x))
14664 for local239 := range (*(*(struct {
14676 //mt:const uint8(6)
14678 OverlayTiles [6]TileDef
14679 //mt:const uint8(6)
14680 SpecialTiles [6]TileDef
14687 ConnectTo []Content
14688 InsideTint color.NRGBA
14689 Level uint8 // Must be < 128.
14691 Translucent bool // Sunlight is scattered and becomes normal light.
14692 Transparent bool // Sunlight isn't scattered.
14705 LiquidType LiquidType
14708 Viscosity uint8 // 0-7
14714 DrawBox, ColBox, SelBox NodeBox
14716 FootstepSnd, DiggingSnd, DugSnd SoundDef
14727 MoveResistance uint8
14729 LiquidMovePhysics bool
14731 if err := pcall(func() {
14744 //mt:const uint8(6)
14746 OverlayTiles [6]TileDef
14747 //mt:const uint8(6)
14748 SpecialTiles [6]TileDef
14755 ConnectTo []Content
14756 InsideTint color.NRGBA
14757 Level uint8 // Must be < 128.
14759 Translucent bool // Sunlight is scattered and becomes normal light.
14760 Transparent bool // Sunlight isn't scattered.
14773 LiquidType LiquidType
14776 Viscosity uint8 // 0-7
14782 DrawBox, ColBox, SelBox NodeBox
14784 FootstepSnd, DiggingSnd, DugSnd SoundDef
14795 MoveResistance uint8
14797 LiquidMovePhysics bool
14798 }))(obj)).Groups)[local239]).Serialize(w)
14803 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
14806 if err := pcall(func() {
14819 //mt:const uint8(6)
14821 OverlayTiles [6]TileDef
14822 //mt:const uint8(6)
14823 SpecialTiles [6]TileDef
14830 ConnectTo []Content
14831 InsideTint color.NRGBA
14832 Level uint8 // Must be < 128.
14834 Translucent bool // Sunlight is scattered and becomes normal light.
14835 Transparent bool // Sunlight isn't scattered.
14848 LiquidType LiquidType
14851 Viscosity uint8 // 0-7
14857 DrawBox, ColBox, SelBox NodeBox
14859 FootstepSnd, DiggingSnd, DugSnd SoundDef
14870 MoveResistance uint8
14872 LiquidMovePhysics bool
14873 }))(obj)).P1Type).Serialize(w)
14878 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
14880 if err := pcall(func() {
14893 //mt:const uint8(6)
14895 OverlayTiles [6]TileDef
14896 //mt:const uint8(6)
14897 SpecialTiles [6]TileDef
14904 ConnectTo []Content
14905 InsideTint color.NRGBA
14906 Level uint8 // Must be < 128.
14908 Translucent bool // Sunlight is scattered and becomes normal light.
14909 Transparent bool // Sunlight isn't scattered.
14922 LiquidType LiquidType
14925 Viscosity uint8 // 0-7
14931 DrawBox, ColBox, SelBox NodeBox
14933 FootstepSnd, DiggingSnd, DugSnd SoundDef
14944 MoveResistance uint8
14946 LiquidMovePhysics bool
14947 }))(obj)).P2Type).Serialize(w)
14952 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
14954 if err := pcall(func() {
14967 //mt:const uint8(6)
14969 OverlayTiles [6]TileDef
14970 //mt:const uint8(6)
14971 SpecialTiles [6]TileDef
14978 ConnectTo []Content
14979 InsideTint color.NRGBA
14980 Level uint8 // Must be < 128.
14982 Translucent bool // Sunlight is scattered and becomes normal light.
14983 Transparent bool // Sunlight isn't scattered.
14996 LiquidType LiquidType
14999 Viscosity uint8 // 0-7
15005 DrawBox, ColBox, SelBox NodeBox
15007 FootstepSnd, DiggingSnd, DugSnd SoundDef
15018 MoveResistance uint8
15020 LiquidMovePhysics bool
15021 }))(obj)).DrawType).Serialize(w)
15026 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
15028 if len(([]byte((*(*(struct {
15040 //mt:const uint8(6)
15042 OverlayTiles [6]TileDef
15043 //mt:const uint8(6)
15044 SpecialTiles [6]TileDef
15051 ConnectTo []Content
15052 InsideTint color.NRGBA
15053 Level uint8 // Must be < 128.
15055 Translucent bool // Sunlight is scattered and becomes normal light.
15056 Transparent bool // Sunlight isn't scattered.
15069 LiquidType LiquidType
15072 Viscosity uint8 // 0-7
15078 DrawBox, ColBox, SelBox NodeBox
15080 FootstepSnd, DiggingSnd, DugSnd SoundDef
15091 MoveResistance uint8
15093 LiquidMovePhysics bool
15094 }))(obj)).Mesh))) > math.MaxUint16 {
15098 x := uint16(len(([]byte((*(*(struct {
15110 //mt:const uint8(6)
15112 OverlayTiles [6]TileDef
15113 //mt:const uint8(6)
15114 SpecialTiles [6]TileDef
15121 ConnectTo []Content
15122 InsideTint color.NRGBA
15123 Level uint8 // Must be < 128.
15125 Translucent bool // Sunlight is scattered and becomes normal light.
15126 Transparent bool // Sunlight isn't scattered.
15139 LiquidType LiquidType
15142 Viscosity uint8 // 0-7
15148 DrawBox, ColBox, SelBox NodeBox
15150 FootstepSnd, DiggingSnd, DugSnd SoundDef
15161 MoveResistance uint8
15163 LiquidMovePhysics bool
15165 write16(w, uint16(x))
15168 _, err := w.Write(([]byte((*(*(struct {
15180 //mt:const uint8(6)
15182 OverlayTiles [6]TileDef
15183 //mt:const uint8(6)
15184 SpecialTiles [6]TileDef
15191 ConnectTo []Content
15192 InsideTint color.NRGBA
15193 Level uint8 // Must be < 128.
15195 Translucent bool // Sunlight is scattered and becomes normal light.
15196 Transparent bool // Sunlight isn't scattered.
15209 LiquidType LiquidType
15212 Viscosity uint8 // 0-7
15218 DrawBox, ColBox, SelBox NodeBox
15220 FootstepSnd, DiggingSnd, DugSnd SoundDef
15231 MoveResistance uint8
15233 LiquidMovePhysics bool
15234 }))(obj)).Mesh))[:])
15250 //mt:const uint8(6)
15252 OverlayTiles [6]TileDef
15253 //mt:const uint8(6)
15254 SpecialTiles [6]TileDef
15261 ConnectTo []Content
15262 InsideTint color.NRGBA
15263 Level uint8 // Must be < 128.
15265 Translucent bool // Sunlight is scattered and becomes normal light.
15266 Transparent bool // Sunlight isn't scattered.
15279 LiquidType LiquidType
15282 Viscosity uint8 // 0-7
15288 DrawBox, ColBox, SelBox NodeBox
15290 FootstepSnd, DiggingSnd, DugSnd SoundDef
15301 MoveResistance uint8
15303 LiquidMovePhysics bool
15305 write32(w, math.Float32bits(x))
15308 local240 := uint8(6)
15311 write8(w, uint8(x))
15314 for local241 := range (*(*(struct {
15326 //mt:const uint8(6)
15328 OverlayTiles [6]TileDef
15329 //mt:const uint8(6)
15330 SpecialTiles [6]TileDef
15337 ConnectTo []Content
15338 InsideTint color.NRGBA
15339 Level uint8 // Must be < 128.
15341 Translucent bool // Sunlight is scattered and becomes normal light.
15342 Transparent bool // Sunlight isn't scattered.
15355 LiquidType LiquidType
15358 Viscosity uint8 // 0-7
15364 DrawBox, ColBox, SelBox NodeBox
15366 FootstepSnd, DiggingSnd, DugSnd SoundDef
15377 MoveResistance uint8
15379 LiquidMovePhysics bool
15381 if err := pcall(func() {
15394 //mt:const uint8(6)
15396 OverlayTiles [6]TileDef
15397 //mt:const uint8(6)
15398 SpecialTiles [6]TileDef
15405 ConnectTo []Content
15406 InsideTint color.NRGBA
15407 Level uint8 // Must be < 128.
15409 Translucent bool // Sunlight is scattered and becomes normal light.
15410 Transparent bool // Sunlight isn't scattered.
15423 LiquidType LiquidType
15426 Viscosity uint8 // 0-7
15432 DrawBox, ColBox, SelBox NodeBox
15434 FootstepSnd, DiggingSnd, DugSnd SoundDef
15445 MoveResistance uint8
15447 LiquidMovePhysics bool
15448 }))(obj)).Tiles)[local241]).Serialize(w)
15453 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15456 for local242 := range (*(*(struct {
15468 //mt:const uint8(6)
15470 OverlayTiles [6]TileDef
15471 //mt:const uint8(6)
15472 SpecialTiles [6]TileDef
15479 ConnectTo []Content
15480 InsideTint color.NRGBA
15481 Level uint8 // Must be < 128.
15483 Translucent bool // Sunlight is scattered and becomes normal light.
15484 Transparent bool // Sunlight isn't scattered.
15497 LiquidType LiquidType
15500 Viscosity uint8 // 0-7
15506 DrawBox, ColBox, SelBox NodeBox
15508 FootstepSnd, DiggingSnd, DugSnd SoundDef
15519 MoveResistance uint8
15521 LiquidMovePhysics bool
15522 }))(obj)).OverlayTiles {
15523 if err := pcall(func() {
15536 //mt:const uint8(6)
15538 OverlayTiles [6]TileDef
15539 //mt:const uint8(6)
15540 SpecialTiles [6]TileDef
15547 ConnectTo []Content
15548 InsideTint color.NRGBA
15549 Level uint8 // Must be < 128.
15551 Translucent bool // Sunlight is scattered and becomes normal light.
15552 Transparent bool // Sunlight isn't scattered.
15565 LiquidType LiquidType
15568 Viscosity uint8 // 0-7
15574 DrawBox, ColBox, SelBox NodeBox
15576 FootstepSnd, DiggingSnd, DugSnd SoundDef
15587 MoveResistance uint8
15589 LiquidMovePhysics bool
15590 }))(obj)).OverlayTiles)[local242]).Serialize(w)
15595 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15599 local243 := uint8(6)
15602 write8(w, uint8(x))
15605 for local244 := range (*(*(struct {
15617 //mt:const uint8(6)
15619 OverlayTiles [6]TileDef
15620 //mt:const uint8(6)
15621 SpecialTiles [6]TileDef
15628 ConnectTo []Content
15629 InsideTint color.NRGBA
15630 Level uint8 // Must be < 128.
15632 Translucent bool // Sunlight is scattered and becomes normal light.
15633 Transparent bool // Sunlight isn't scattered.
15646 LiquidType LiquidType
15649 Viscosity uint8 // 0-7
15655 DrawBox, ColBox, SelBox NodeBox
15657 FootstepSnd, DiggingSnd, DugSnd SoundDef
15668 MoveResistance uint8
15670 LiquidMovePhysics bool
15671 }))(obj)).SpecialTiles {
15672 if err := pcall(func() {
15685 //mt:const uint8(6)
15687 OverlayTiles [6]TileDef
15688 //mt:const uint8(6)
15689 SpecialTiles [6]TileDef
15696 ConnectTo []Content
15697 InsideTint color.NRGBA
15698 Level uint8 // Must be < 128.
15700 Translucent bool // Sunlight is scattered and becomes normal light.
15701 Transparent bool // Sunlight isn't scattered.
15714 LiquidType LiquidType
15717 Viscosity uint8 // 0-7
15723 DrawBox, ColBox, SelBox NodeBox
15725 FootstepSnd, DiggingSnd, DugSnd SoundDef
15736 MoveResistance uint8
15738 LiquidMovePhysics bool
15739 }))(obj)).SpecialTiles)[local244]).Serialize(w)
15744 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
15760 //mt:const uint8(6)
15762 OverlayTiles [6]TileDef
15763 //mt:const uint8(6)
15764 SpecialTiles [6]TileDef
15771 ConnectTo []Content
15772 InsideTint color.NRGBA
15773 Level uint8 // Must be < 128.
15775 Translucent bool // Sunlight is scattered and becomes normal light.
15776 Transparent bool // Sunlight isn't scattered.
15789 LiquidType LiquidType
15792 Viscosity uint8 // 0-7
15798 DrawBox, ColBox, SelBox NodeBox
15800 FootstepSnd, DiggingSnd, DugSnd SoundDef
15811 MoveResistance uint8
15813 LiquidMovePhysics bool
15815 w.Write([]byte{x.A, x.R, x.G, x.B})
15817 if err := pcall(func() {
15830 //mt:const uint8(6)
15832 OverlayTiles [6]TileDef
15833 //mt:const uint8(6)
15834 SpecialTiles [6]TileDef
15841 ConnectTo []Content
15842 InsideTint color.NRGBA
15843 Level uint8 // Must be < 128.
15845 Translucent bool // Sunlight is scattered and becomes normal light.
15846 Transparent bool // Sunlight isn't scattered.
15859 LiquidType LiquidType
15862 Viscosity uint8 // 0-7
15868 DrawBox, ColBox, SelBox NodeBox
15870 FootstepSnd, DiggingSnd, DugSnd SoundDef
15881 MoveResistance uint8
15883 LiquidMovePhysics bool
15884 }))(obj)).Palette).Serialize(w)
15889 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
15891 if err := pcall(func() {
15904 //mt:const uint8(6)
15906 OverlayTiles [6]TileDef
15907 //mt:const uint8(6)
15908 SpecialTiles [6]TileDef
15915 ConnectTo []Content
15916 InsideTint color.NRGBA
15917 Level uint8 // Must be < 128.
15919 Translucent bool // Sunlight is scattered and becomes normal light.
15920 Transparent bool // Sunlight isn't scattered.
15933 LiquidType LiquidType
15936 Viscosity uint8 // 0-7
15942 DrawBox, ColBox, SelBox NodeBox
15944 FootstepSnd, DiggingSnd, DugSnd SoundDef
15955 MoveResistance uint8
15957 LiquidMovePhysics bool
15958 }))(obj)).Waving).Serialize(w)
15963 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
15978 //mt:const uint8(6)
15980 OverlayTiles [6]TileDef
15981 //mt:const uint8(6)
15982 SpecialTiles [6]TileDef
15989 ConnectTo []Content
15990 InsideTint color.NRGBA
15991 Level uint8 // Must be < 128.
15993 Translucent bool // Sunlight is scattered and becomes normal light.
15994 Transparent bool // Sunlight isn't scattered.
16007 LiquidType LiquidType
16010 Viscosity uint8 // 0-7
16016 DrawBox, ColBox, SelBox NodeBox
16018 FootstepSnd, DiggingSnd, DugSnd SoundDef
16029 MoveResistance uint8
16031 LiquidMovePhysics bool
16032 }))(obj)).ConnectSides
16033 write8(w, uint8(x))
16035 if len(((*(*(struct {
16047 //mt:const uint8(6)
16049 OverlayTiles [6]TileDef
16050 //mt:const uint8(6)
16051 SpecialTiles [6]TileDef
16058 ConnectTo []Content
16059 InsideTint color.NRGBA
16060 Level uint8 // Must be < 128.
16062 Translucent bool // Sunlight is scattered and becomes normal light.
16063 Transparent bool // Sunlight isn't scattered.
16076 LiquidType LiquidType
16079 Viscosity uint8 // 0-7
16085 DrawBox, ColBox, SelBox NodeBox
16087 FootstepSnd, DiggingSnd, DugSnd SoundDef
16098 MoveResistance uint8
16100 LiquidMovePhysics bool
16101 }))(obj)).ConnectTo)) > math.MaxUint16 {
16105 x := uint16(len(((*(*(struct {
16117 //mt:const uint8(6)
16119 OverlayTiles [6]TileDef
16120 //mt:const uint8(6)
16121 SpecialTiles [6]TileDef
16128 ConnectTo []Content
16129 InsideTint color.NRGBA
16130 Level uint8 // Must be < 128.
16132 Translucent bool // Sunlight is scattered and becomes normal light.
16133 Transparent bool // Sunlight isn't scattered.
16146 LiquidType LiquidType
16149 Viscosity uint8 // 0-7
16155 DrawBox, ColBox, SelBox NodeBox
16157 FootstepSnd, DiggingSnd, DugSnd SoundDef
16168 MoveResistance uint8
16170 LiquidMovePhysics bool
16171 }))(obj)).ConnectTo)))
16172 write16(w, uint16(x))
16174 for local245 := range (*(*(struct {
16186 //mt:const uint8(6)
16188 OverlayTiles [6]TileDef
16189 //mt:const uint8(6)
16190 SpecialTiles [6]TileDef
16197 ConnectTo []Content
16198 InsideTint color.NRGBA
16199 Level uint8 // Must be < 128.
16201 Translucent bool // Sunlight is scattered and becomes normal light.
16202 Transparent bool // Sunlight isn't scattered.
16215 LiquidType LiquidType
16218 Viscosity uint8 // 0-7
16224 DrawBox, ColBox, SelBox NodeBox
16226 FootstepSnd, DiggingSnd, DugSnd SoundDef
16237 MoveResistance uint8
16239 LiquidMovePhysics bool
16240 }))(obj)).ConnectTo {
16241 if err := pcall(func() {
16254 //mt:const uint8(6)
16256 OverlayTiles [6]TileDef
16257 //mt:const uint8(6)
16258 SpecialTiles [6]TileDef
16265 ConnectTo []Content
16266 InsideTint color.NRGBA
16267 Level uint8 // Must be < 128.
16269 Translucent bool // Sunlight is scattered and becomes normal light.
16270 Transparent bool // Sunlight isn't scattered.
16283 LiquidType LiquidType
16286 Viscosity uint8 // 0-7
16292 DrawBox, ColBox, SelBox NodeBox
16294 FootstepSnd, DiggingSnd, DugSnd SoundDef
16305 MoveResistance uint8
16307 LiquidMovePhysics bool
16308 }))(obj)).ConnectTo)[local245]).Serialize(w)
16313 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
16329 //mt:const uint8(6)
16331 OverlayTiles [6]TileDef
16332 //mt:const uint8(6)
16333 SpecialTiles [6]TileDef
16340 ConnectTo []Content
16341 InsideTint color.NRGBA
16342 Level uint8 // Must be < 128.
16344 Translucent bool // Sunlight is scattered and becomes normal light.
16345 Transparent bool // Sunlight isn't scattered.
16358 LiquidType LiquidType
16361 Viscosity uint8 // 0-7
16367 DrawBox, ColBox, SelBox NodeBox
16369 FootstepSnd, DiggingSnd, DugSnd SoundDef
16380 MoveResistance uint8
16382 LiquidMovePhysics bool
16383 }))(obj)).InsideTint
16384 w.Write([]byte{x.A, x.R, x.G, x.B})
16399 //mt:const uint8(6)
16401 OverlayTiles [6]TileDef
16402 //mt:const uint8(6)
16403 SpecialTiles [6]TileDef
16410 ConnectTo []Content
16411 InsideTint color.NRGBA
16412 Level uint8 // Must be < 128.
16414 Translucent bool // Sunlight is scattered and becomes normal light.
16415 Transparent bool // Sunlight isn't scattered.
16428 LiquidType LiquidType
16431 Viscosity uint8 // 0-7
16437 DrawBox, ColBox, SelBox NodeBox
16439 FootstepSnd, DiggingSnd, DugSnd SoundDef
16450 MoveResistance uint8
16452 LiquidMovePhysics bool
16454 write8(w, uint8(x))
16469 //mt:const uint8(6)
16471 OverlayTiles [6]TileDef
16472 //mt:const uint8(6)
16473 SpecialTiles [6]TileDef
16480 ConnectTo []Content
16481 InsideTint color.NRGBA
16482 Level uint8 // Must be < 128.
16484 Translucent bool // Sunlight is scattered and becomes normal light.
16485 Transparent bool // Sunlight isn't scattered.
16498 LiquidType LiquidType
16501 Viscosity uint8 // 0-7
16507 DrawBox, ColBox, SelBox NodeBox
16509 FootstepSnd, DiggingSnd, DugSnd SoundDef
16520 MoveResistance uint8
16522 LiquidMovePhysics bool
16523 }))(obj)).Translucent
16543 //mt:const uint8(6)
16545 OverlayTiles [6]TileDef
16546 //mt:const uint8(6)
16547 SpecialTiles [6]TileDef
16554 ConnectTo []Content
16555 InsideTint color.NRGBA
16556 Level uint8 // Must be < 128.
16558 Translucent bool // Sunlight is scattered and becomes normal light.
16559 Transparent bool // Sunlight isn't scattered.
16572 LiquidType LiquidType
16575 Viscosity uint8 // 0-7
16581 DrawBox, ColBox, SelBox NodeBox
16583 FootstepSnd, DiggingSnd, DugSnd SoundDef
16594 MoveResistance uint8
16596 LiquidMovePhysics bool
16597 }))(obj)).Transparent
16617 //mt:const uint8(6)
16619 OverlayTiles [6]TileDef
16620 //mt:const uint8(6)
16621 SpecialTiles [6]TileDef
16628 ConnectTo []Content
16629 InsideTint color.NRGBA
16630 Level uint8 // Must be < 128.
16632 Translucent bool // Sunlight is scattered and becomes normal light.
16633 Transparent bool // Sunlight isn't scattered.
16646 LiquidType LiquidType
16649 Viscosity uint8 // 0-7
16655 DrawBox, ColBox, SelBox NodeBox
16657 FootstepSnd, DiggingSnd, DugSnd SoundDef
16668 MoveResistance uint8
16670 LiquidMovePhysics bool
16672 write8(w, uint8(x))
16687 //mt:const uint8(6)
16689 OverlayTiles [6]TileDef
16690 //mt:const uint8(6)
16691 SpecialTiles [6]TileDef
16698 ConnectTo []Content
16699 InsideTint color.NRGBA
16700 Level uint8 // Must be < 128.
16702 Translucent bool // Sunlight is scattered and becomes normal light.
16703 Transparent bool // Sunlight isn't scattered.
16716 LiquidType LiquidType
16719 Viscosity uint8 // 0-7
16725 DrawBox, ColBox, SelBox NodeBox
16727 FootstepSnd, DiggingSnd, DugSnd SoundDef
16738 MoveResistance uint8
16740 LiquidMovePhysics bool
16741 }))(obj)).GndContent
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
16812 MoveResistance uint8
16814 LiquidMovePhysics bool
16835 //mt:const uint8(6)
16837 OverlayTiles [6]TileDef
16838 //mt:const uint8(6)
16839 SpecialTiles [6]TileDef
16846 ConnectTo []Content
16847 InsideTint color.NRGBA
16848 Level uint8 // Must be < 128.
16850 Translucent bool // Sunlight is scattered and becomes normal light.
16851 Transparent bool // Sunlight isn't scattered.
16864 LiquidType LiquidType
16867 Viscosity uint8 // 0-7
16873 DrawBox, ColBox, SelBox NodeBox
16875 FootstepSnd, DiggingSnd, DugSnd SoundDef
16886 MoveResistance uint8
16888 LiquidMovePhysics bool
16889 }))(obj)).Pointable
16909 //mt:const uint8(6)
16911 OverlayTiles [6]TileDef
16912 //mt:const uint8(6)
16913 SpecialTiles [6]TileDef
16920 ConnectTo []Content
16921 InsideTint color.NRGBA
16922 Level uint8 // Must be < 128.
16924 Translucent bool // Sunlight is scattered and becomes normal light.
16925 Transparent bool // Sunlight isn't scattered.
16938 LiquidType LiquidType
16941 Viscosity uint8 // 0-7
16947 DrawBox, ColBox, SelBox NodeBox
16949 FootstepSnd, DiggingSnd, DugSnd SoundDef
16960 MoveResistance uint8
16962 LiquidMovePhysics bool
16983 //mt:const uint8(6)
16985 OverlayTiles [6]TileDef
16986 //mt:const uint8(6)
16987 SpecialTiles [6]TileDef
16994 ConnectTo []Content
16995 InsideTint color.NRGBA
16996 Level uint8 // Must be < 128.
16998 Translucent bool // Sunlight is scattered and becomes normal light.
16999 Transparent bool // Sunlight isn't scattered.
17012 LiquidType LiquidType
17015 Viscosity uint8 // 0-7
17021 DrawBox, ColBox, SelBox NodeBox
17023 FootstepSnd, DiggingSnd, DugSnd SoundDef
17034 MoveResistance uint8
17036 LiquidMovePhysics bool
17037 }))(obj)).Climbable
17057 //mt:const uint8(6)
17059 OverlayTiles [6]TileDef
17060 //mt:const uint8(6)
17061 SpecialTiles [6]TileDef
17068 ConnectTo []Content
17069 InsideTint color.NRGBA
17070 Level uint8 // Must be < 128.
17072 Translucent bool // Sunlight is scattered and becomes normal light.
17073 Transparent bool // Sunlight isn't scattered.
17086 LiquidType LiquidType
17089 Viscosity uint8 // 0-7
17095 DrawBox, ColBox, SelBox NodeBox
17097 FootstepSnd, DiggingSnd, DugSnd SoundDef
17108 MoveResistance uint8
17110 LiquidMovePhysics bool
17111 }))(obj)).Replaceable
17131 //mt:const uint8(6)
17133 OverlayTiles [6]TileDef
17134 //mt:const uint8(6)
17135 SpecialTiles [6]TileDef
17142 ConnectTo []Content
17143 InsideTint color.NRGBA
17144 Level uint8 // Must be < 128.
17146 Translucent bool // Sunlight is scattered and becomes normal light.
17147 Transparent bool // Sunlight isn't scattered.
17160 LiquidType LiquidType
17163 Viscosity uint8 // 0-7
17169 DrawBox, ColBox, SelBox NodeBox
17171 FootstepSnd, DiggingSnd, DugSnd SoundDef
17182 MoveResistance uint8
17184 LiquidMovePhysics bool
17185 }))(obj)).OnRightClick
17205 //mt:const uint8(6)
17207 OverlayTiles [6]TileDef
17208 //mt:const uint8(6)
17209 SpecialTiles [6]TileDef
17216 ConnectTo []Content
17217 InsideTint color.NRGBA
17218 Level uint8 // Must be < 128.
17220 Translucent bool // Sunlight is scattered and becomes normal light.
17221 Transparent bool // Sunlight isn't scattered.
17234 LiquidType LiquidType
17237 Viscosity uint8 // 0-7
17243 DrawBox, ColBox, SelBox NodeBox
17245 FootstepSnd, DiggingSnd, DugSnd SoundDef
17256 MoveResistance uint8
17258 LiquidMovePhysics bool
17259 }))(obj)).DmgPerSec
17260 write32(w, uint32(x))
17262 if err := pcall(func() {
17275 //mt:const uint8(6)
17277 OverlayTiles [6]TileDef
17278 //mt:const uint8(6)
17279 SpecialTiles [6]TileDef
17286 ConnectTo []Content
17287 InsideTint color.NRGBA
17288 Level uint8 // Must be < 128.
17290 Translucent bool // Sunlight is scattered and becomes normal light.
17291 Transparent bool // Sunlight isn't scattered.
17304 LiquidType LiquidType
17307 Viscosity uint8 // 0-7
17313 DrawBox, ColBox, SelBox NodeBox
17315 FootstepSnd, DiggingSnd, DugSnd SoundDef
17326 MoveResistance uint8
17328 LiquidMovePhysics bool
17329 }))(obj)).LiquidType).Serialize(w)
17334 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
17336 if len(([]byte((*(*(struct {
17348 //mt:const uint8(6)
17350 OverlayTiles [6]TileDef
17351 //mt:const uint8(6)
17352 SpecialTiles [6]TileDef
17359 ConnectTo []Content
17360 InsideTint color.NRGBA
17361 Level uint8 // Must be < 128.
17363 Translucent bool // Sunlight is scattered and becomes normal light.
17364 Transparent bool // Sunlight isn't scattered.
17377 LiquidType LiquidType
17380 Viscosity uint8 // 0-7
17386 DrawBox, ColBox, SelBox NodeBox
17388 FootstepSnd, DiggingSnd, DugSnd SoundDef
17399 MoveResistance uint8
17401 LiquidMovePhysics bool
17402 }))(obj)).FlowingAlt))) > math.MaxUint16 {
17406 x := uint16(len(([]byte((*(*(struct {
17418 //mt:const uint8(6)
17420 OverlayTiles [6]TileDef
17421 //mt:const uint8(6)
17422 SpecialTiles [6]TileDef
17429 ConnectTo []Content
17430 InsideTint color.NRGBA
17431 Level uint8 // Must be < 128.
17433 Translucent bool // Sunlight is scattered and becomes normal light.
17434 Transparent bool // Sunlight isn't scattered.
17447 LiquidType LiquidType
17450 Viscosity uint8 // 0-7
17456 DrawBox, ColBox, SelBox NodeBox
17458 FootstepSnd, DiggingSnd, DugSnd SoundDef
17469 MoveResistance uint8
17471 LiquidMovePhysics bool
17472 }))(obj)).FlowingAlt))))
17473 write16(w, uint16(x))
17476 _, err := w.Write(([]byte((*(*(struct {
17488 //mt:const uint8(6)
17490 OverlayTiles [6]TileDef
17491 //mt:const uint8(6)
17492 SpecialTiles [6]TileDef
17499 ConnectTo []Content
17500 InsideTint color.NRGBA
17501 Level uint8 // Must be < 128.
17503 Translucent bool // Sunlight is scattered and becomes normal light.
17504 Transparent bool // Sunlight isn't scattered.
17517 LiquidType LiquidType
17520 Viscosity uint8 // 0-7
17526 DrawBox, ColBox, SelBox NodeBox
17528 FootstepSnd, DiggingSnd, DugSnd SoundDef
17539 MoveResistance uint8
17541 LiquidMovePhysics bool
17542 }))(obj)).FlowingAlt))[:])
17545 if len(([]byte((*(*(struct {
17557 //mt:const uint8(6)
17559 OverlayTiles [6]TileDef
17560 //mt:const uint8(6)
17561 SpecialTiles [6]TileDef
17568 ConnectTo []Content
17569 InsideTint color.NRGBA
17570 Level uint8 // Must be < 128.
17572 Translucent bool // Sunlight is scattered and becomes normal light.
17573 Transparent bool // Sunlight isn't scattered.
17586 LiquidType LiquidType
17589 Viscosity uint8 // 0-7
17595 DrawBox, ColBox, SelBox NodeBox
17597 FootstepSnd, DiggingSnd, DugSnd SoundDef
17608 MoveResistance uint8
17610 LiquidMovePhysics bool
17611 }))(obj)).SrcAlt))) > math.MaxUint16 {
17615 x := uint16(len(([]byte((*(*(struct {
17627 //mt:const uint8(6)
17629 OverlayTiles [6]TileDef
17630 //mt:const uint8(6)
17631 SpecialTiles [6]TileDef
17638 ConnectTo []Content
17639 InsideTint color.NRGBA
17640 Level uint8 // Must be < 128.
17642 Translucent bool // Sunlight is scattered and becomes normal light.
17643 Transparent bool // Sunlight isn't scattered.
17656 LiquidType LiquidType
17659 Viscosity uint8 // 0-7
17665 DrawBox, ColBox, SelBox NodeBox
17667 FootstepSnd, DiggingSnd, DugSnd SoundDef
17678 MoveResistance uint8
17680 LiquidMovePhysics bool
17681 }))(obj)).SrcAlt))))
17682 write16(w, uint16(x))
17685 _, err := w.Write(([]byte((*(*(struct {
17697 //mt:const uint8(6)
17699 OverlayTiles [6]TileDef
17700 //mt:const uint8(6)
17701 SpecialTiles [6]TileDef
17708 ConnectTo []Content
17709 InsideTint color.NRGBA
17710 Level uint8 // Must be < 128.
17712 Translucent bool // Sunlight is scattered and becomes normal light.
17713 Transparent bool // Sunlight isn't scattered.
17726 LiquidType LiquidType
17729 Viscosity uint8 // 0-7
17735 DrawBox, ColBox, SelBox NodeBox
17737 FootstepSnd, DiggingSnd, DugSnd SoundDef
17748 MoveResistance uint8
17750 LiquidMovePhysics bool
17751 }))(obj)).SrcAlt))[:])
17767 //mt:const uint8(6)
17769 OverlayTiles [6]TileDef
17770 //mt:const uint8(6)
17771 SpecialTiles [6]TileDef
17778 ConnectTo []Content
17779 InsideTint color.NRGBA
17780 Level uint8 // Must be < 128.
17782 Translucent bool // Sunlight is scattered and becomes normal light.
17783 Transparent bool // Sunlight isn't scattered.
17796 LiquidType LiquidType
17799 Viscosity uint8 // 0-7
17805 DrawBox, ColBox, SelBox NodeBox
17807 FootstepSnd, DiggingSnd, DugSnd SoundDef
17818 MoveResistance uint8
17820 LiquidMovePhysics bool
17821 }))(obj)).Viscosity
17822 write8(w, uint8(x))
17837 //mt:const uint8(6)
17839 OverlayTiles [6]TileDef
17840 //mt:const uint8(6)
17841 SpecialTiles [6]TileDef
17848 ConnectTo []Content
17849 InsideTint color.NRGBA
17850 Level uint8 // Must be < 128.
17852 Translucent bool // Sunlight is scattered and becomes normal light.
17853 Transparent bool // Sunlight isn't scattered.
17866 LiquidType LiquidType
17869 Viscosity uint8 // 0-7
17875 DrawBox, ColBox, SelBox NodeBox
17877 FootstepSnd, DiggingSnd, DugSnd SoundDef
17888 MoveResistance uint8
17890 LiquidMovePhysics bool
17891 }))(obj)).LiqRenewable
17911 //mt:const uint8(6)
17913 OverlayTiles [6]TileDef
17914 //mt:const uint8(6)
17915 SpecialTiles [6]TileDef
17922 ConnectTo []Content
17923 InsideTint color.NRGBA
17924 Level uint8 // Must be < 128.
17926 Translucent bool // Sunlight is scattered and becomes normal light.
17927 Transparent bool // Sunlight isn't scattered.
17940 LiquidType LiquidType
17943 Viscosity uint8 // 0-7
17949 DrawBox, ColBox, SelBox NodeBox
17951 FootstepSnd, DiggingSnd, DugSnd SoundDef
17962 MoveResistance uint8
17964 LiquidMovePhysics bool
17965 }))(obj)).FlowRange
17966 write8(w, uint8(x))
17981 //mt:const uint8(6)
17983 OverlayTiles [6]TileDef
17984 //mt:const uint8(6)
17985 SpecialTiles [6]TileDef
17992 ConnectTo []Content
17993 InsideTint color.NRGBA
17994 Level uint8 // Must be < 128.
17996 Translucent bool // Sunlight is scattered and becomes normal light.
17997 Transparent bool // Sunlight isn't scattered.
18010 LiquidType LiquidType
18013 Viscosity uint8 // 0-7
18019 DrawBox, ColBox, SelBox NodeBox
18021 FootstepSnd, DiggingSnd, DugSnd SoundDef
18032 MoveResistance uint8
18034 LiquidMovePhysics bool
18036 write8(w, uint8(x))
18051 //mt:const uint8(6)
18053 OverlayTiles [6]TileDef
18054 //mt:const uint8(6)
18055 SpecialTiles [6]TileDef
18062 ConnectTo []Content
18063 InsideTint color.NRGBA
18064 Level uint8 // Must be < 128.
18066 Translucent bool // Sunlight is scattered and becomes normal light.
18067 Transparent bool // Sunlight isn't scattered.
18080 LiquidType LiquidType
18083 Viscosity uint8 // 0-7
18089 DrawBox, ColBox, SelBox NodeBox
18091 FootstepSnd, DiggingSnd, DugSnd SoundDef
18102 MoveResistance uint8
18104 LiquidMovePhysics bool
18105 }))(obj)).Floodable
18112 if err := pcall(func() {
18125 //mt:const uint8(6)
18127 OverlayTiles [6]TileDef
18128 //mt:const uint8(6)
18129 SpecialTiles [6]TileDef
18136 ConnectTo []Content
18137 InsideTint color.NRGBA
18138 Level uint8 // Must be < 128.
18140 Translucent bool // Sunlight is scattered and becomes normal light.
18141 Transparent bool // Sunlight isn't scattered.
18154 LiquidType LiquidType
18157 Viscosity uint8 // 0-7
18163 DrawBox, ColBox, SelBox NodeBox
18165 FootstepSnd, DiggingSnd, DugSnd SoundDef
18176 MoveResistance uint8
18178 LiquidMovePhysics bool
18179 }))(obj)).DrawBox).Serialize(w)
18184 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18186 if err := pcall(func() {
18199 //mt:const uint8(6)
18201 OverlayTiles [6]TileDef
18202 //mt:const uint8(6)
18203 SpecialTiles [6]TileDef
18210 ConnectTo []Content
18211 InsideTint color.NRGBA
18212 Level uint8 // Must be < 128.
18214 Translucent bool // Sunlight is scattered and becomes normal light.
18215 Transparent bool // Sunlight isn't scattered.
18228 LiquidType LiquidType
18231 Viscosity uint8 // 0-7
18237 DrawBox, ColBox, SelBox NodeBox
18239 FootstepSnd, DiggingSnd, DugSnd SoundDef
18250 MoveResistance uint8
18252 LiquidMovePhysics bool
18253 }))(obj)).ColBox).Serialize(w)
18258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18260 if err := pcall(func() {
18273 //mt:const uint8(6)
18275 OverlayTiles [6]TileDef
18276 //mt:const uint8(6)
18277 SpecialTiles [6]TileDef
18284 ConnectTo []Content
18285 InsideTint color.NRGBA
18286 Level uint8 // Must be < 128.
18288 Translucent bool // Sunlight is scattered and becomes normal light.
18289 Transparent bool // Sunlight isn't scattered.
18302 LiquidType LiquidType
18305 Viscosity uint8 // 0-7
18311 DrawBox, ColBox, SelBox NodeBox
18313 FootstepSnd, DiggingSnd, DugSnd SoundDef
18324 MoveResistance uint8
18326 LiquidMovePhysics bool
18327 }))(obj)).SelBox).Serialize(w)
18332 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
18334 if err := pcall(func() {
18347 //mt:const uint8(6)
18349 OverlayTiles [6]TileDef
18350 //mt:const uint8(6)
18351 SpecialTiles [6]TileDef
18358 ConnectTo []Content
18359 InsideTint color.NRGBA
18360 Level uint8 // Must be < 128.
18362 Translucent bool // Sunlight is scattered and becomes normal light.
18363 Transparent bool // Sunlight isn't scattered.
18376 LiquidType LiquidType
18379 Viscosity uint8 // 0-7
18385 DrawBox, ColBox, SelBox NodeBox
18387 FootstepSnd, DiggingSnd, DugSnd SoundDef
18398 MoveResistance uint8
18400 LiquidMovePhysics bool
18401 }))(obj)).FootstepSnd).Serialize(w)
18406 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18408 if err := pcall(func() {
18421 //mt:const uint8(6)
18423 OverlayTiles [6]TileDef
18424 //mt:const uint8(6)
18425 SpecialTiles [6]TileDef
18432 ConnectTo []Content
18433 InsideTint color.NRGBA
18434 Level uint8 // Must be < 128.
18436 Translucent bool // Sunlight is scattered and becomes normal light.
18437 Transparent bool // Sunlight isn't scattered.
18450 LiquidType LiquidType
18453 Viscosity uint8 // 0-7
18459 DrawBox, ColBox, SelBox NodeBox
18461 FootstepSnd, DiggingSnd, DugSnd SoundDef
18472 MoveResistance uint8
18474 LiquidMovePhysics bool
18475 }))(obj)).DiggingSnd).Serialize(w)
18480 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
18482 if err := pcall(func() {
18495 //mt:const uint8(6)
18497 OverlayTiles [6]TileDef
18498 //mt:const uint8(6)
18499 SpecialTiles [6]TileDef
18506 ConnectTo []Content
18507 InsideTint color.NRGBA
18508 Level uint8 // Must be < 128.
18510 Translucent bool // Sunlight is scattered and becomes normal light.
18511 Transparent bool // Sunlight isn't scattered.
18524 LiquidType LiquidType
18527 Viscosity uint8 // 0-7
18533 DrawBox, ColBox, SelBox NodeBox
18535 FootstepSnd, DiggingSnd, DugSnd SoundDef
18546 MoveResistance uint8
18548 LiquidMovePhysics bool
18549 }))(obj)).DugSnd).Serialize(w)
18554 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
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 MoveResistance uint8
18622 LiquidMovePhysics bool
18623 }))(obj)).LegacyFaceDir
18643 //mt:const uint8(6)
18645 OverlayTiles [6]TileDef
18646 //mt:const uint8(6)
18647 SpecialTiles [6]TileDef
18654 ConnectTo []Content
18655 InsideTint color.NRGBA
18656 Level uint8 // Must be < 128.
18658 Translucent bool // Sunlight is scattered and becomes normal light.
18659 Transparent bool // Sunlight isn't scattered.
18672 LiquidType LiquidType
18675 Viscosity uint8 // 0-7
18681 DrawBox, ColBox, SelBox NodeBox
18683 FootstepSnd, DiggingSnd, DugSnd SoundDef
18694 MoveResistance uint8
18696 LiquidMovePhysics bool
18697 }))(obj)).LegacyMounted
18704 if len(([]byte((*(*(struct {
18716 //mt:const uint8(6)
18718 OverlayTiles [6]TileDef
18719 //mt:const uint8(6)
18720 SpecialTiles [6]TileDef
18727 ConnectTo []Content
18728 InsideTint color.NRGBA
18729 Level uint8 // Must be < 128.
18731 Translucent bool // Sunlight is scattered and becomes normal light.
18732 Transparent bool // Sunlight isn't scattered.
18745 LiquidType LiquidType
18748 Viscosity uint8 // 0-7
18754 DrawBox, ColBox, SelBox NodeBox
18756 FootstepSnd, DiggingSnd, DugSnd SoundDef
18767 MoveResistance uint8
18769 LiquidMovePhysics bool
18770 }))(obj)).DigPredict))) > math.MaxUint16 {
18774 x := uint16(len(([]byte((*(*(struct {
18786 //mt:const uint8(6)
18788 OverlayTiles [6]TileDef
18789 //mt:const uint8(6)
18790 SpecialTiles [6]TileDef
18797 ConnectTo []Content
18798 InsideTint color.NRGBA
18799 Level uint8 // Must be < 128.
18801 Translucent bool // Sunlight is scattered and becomes normal light.
18802 Transparent bool // Sunlight isn't scattered.
18815 LiquidType LiquidType
18818 Viscosity uint8 // 0-7
18824 DrawBox, ColBox, SelBox NodeBox
18826 FootstepSnd, DiggingSnd, DugSnd SoundDef
18837 MoveResistance uint8
18839 LiquidMovePhysics bool
18840 }))(obj)).DigPredict))))
18841 write16(w, uint16(x))
18844 _, err := w.Write(([]byte((*(*(struct {
18856 //mt:const uint8(6)
18858 OverlayTiles [6]TileDef
18859 //mt:const uint8(6)
18860 SpecialTiles [6]TileDef
18867 ConnectTo []Content
18868 InsideTint color.NRGBA
18869 Level uint8 // Must be < 128.
18871 Translucent bool // Sunlight is scattered and becomes normal light.
18872 Transparent bool // Sunlight isn't scattered.
18885 LiquidType LiquidType
18888 Viscosity uint8 // 0-7
18894 DrawBox, ColBox, SelBox NodeBox
18896 FootstepSnd, DiggingSnd, DugSnd SoundDef
18907 MoveResistance uint8
18909 LiquidMovePhysics bool
18910 }))(obj)).DigPredict))[:])
18926 //mt:const uint8(6)
18928 OverlayTiles [6]TileDef
18929 //mt:const uint8(6)
18930 SpecialTiles [6]TileDef
18937 ConnectTo []Content
18938 InsideTint color.NRGBA
18939 Level uint8 // Must be < 128.
18941 Translucent bool // Sunlight is scattered and becomes normal light.
18942 Transparent bool // Sunlight isn't scattered.
18955 LiquidType LiquidType
18958 Viscosity uint8 // 0-7
18964 DrawBox, ColBox, SelBox NodeBox
18966 FootstepSnd, DiggingSnd, DugSnd SoundDef
18977 MoveResistance uint8
18979 LiquidMovePhysics bool
18981 write8(w, uint8(x))
18983 if err := pcall(func() {
18996 //mt:const uint8(6)
18998 OverlayTiles [6]TileDef
18999 //mt:const uint8(6)
19000 SpecialTiles [6]TileDef
19007 ConnectTo []Content
19008 InsideTint color.NRGBA
19009 Level uint8 // Must be < 128.
19011 Translucent bool // Sunlight is scattered and becomes normal light.
19012 Transparent bool // Sunlight isn't scattered.
19025 LiquidType LiquidType
19028 Viscosity uint8 // 0-7
19034 DrawBox, ColBox, SelBox NodeBox
19036 FootstepSnd, DiggingSnd, DugSnd SoundDef
19047 MoveResistance uint8
19049 LiquidMovePhysics bool
19050 }))(obj)).AlphaUse).Serialize(w)
19055 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
19070 //mt:const uint8(6)
19072 OverlayTiles [6]TileDef
19073 //mt:const uint8(6)
19074 SpecialTiles [6]TileDef
19081 ConnectTo []Content
19082 InsideTint color.NRGBA
19083 Level uint8 // Must be < 128.
19085 Translucent bool // Sunlight is scattered and becomes normal light.
19086 Transparent bool // Sunlight isn't scattered.
19099 LiquidType LiquidType
19102 Viscosity uint8 // 0-7
19108 DrawBox, ColBox, SelBox NodeBox
19110 FootstepSnd, DiggingSnd, DugSnd SoundDef
19121 MoveResistance uint8
19123 LiquidMovePhysics bool
19124 }))(obj)).MoveResistance
19125 write8(w, uint8(x))
19140 //mt:const uint8(6)
19142 OverlayTiles [6]TileDef
19143 //mt:const uint8(6)
19144 SpecialTiles [6]TileDef
19151 ConnectTo []Content
19152 InsideTint color.NRGBA
19153 Level uint8 // Must be < 128.
19155 Translucent bool // Sunlight is scattered and becomes normal light.
19156 Transparent bool // Sunlight isn't scattered.
19169 LiquidType LiquidType
19172 Viscosity uint8 // 0-7
19178 DrawBox, ColBox, SelBox NodeBox
19180 FootstepSnd, DiggingSnd, DugSnd SoundDef
19191 MoveResistance uint8
19193 LiquidMovePhysics bool
19194 }))(obj)).LiquidMovePhysics
19204 if len((buf.Bytes())) > math.MaxUint16 {
19208 x := uint16(len((buf.Bytes())))
19209 write16(w, uint16(x))
19212 _, err := w.Write((buf.Bytes())[:])
19219 func (obj *NodeDef) Deserialize(r io.Reader) {
19220 if err := pcall(func() {
19233 //mt:const uint8(6)
19235 OverlayTiles [6]TileDef
19236 //mt:const uint8(6)
19237 SpecialTiles [6]TileDef
19244 ConnectTo []Content
19245 InsideTint color.NRGBA
19246 Level uint8 // Must be < 128.
19248 Translucent bool // Sunlight is scattered and becomes normal light.
19249 Transparent bool // Sunlight isn't scattered.
19262 LiquidType LiquidType
19265 Viscosity uint8 // 0-7
19271 DrawBox, ColBox, SelBox NodeBox
19273 FootstepSnd, DiggingSnd, DugSnd SoundDef
19284 MoveResistance uint8
19286 LiquidMovePhysics bool
19287 }))(obj)).Param0).Deserialize(r)
19292 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
19300 r := &io.LimitedReader{R: r, N: int64(n)}
19303 local247 := uint8(13)
19308 if local246 != local247 {
19309 chk(fmt.Errorf("const %v: %v", "uint8(13)", local246))
19312 var local248 []uint8
19313 var local249 uint16
19318 (local248) = make([]uint8, local249)
19320 _, err := io.ReadFull(r, (local248)[:])
19335 //mt:const uint8(6)
19337 OverlayTiles [6]TileDef
19338 //mt:const uint8(6)
19339 SpecialTiles [6]TileDef
19346 ConnectTo []Content
19347 InsideTint color.NRGBA
19348 Level uint8 // Must be < 128.
19350 Translucent bool // Sunlight is scattered and becomes normal light.
19351 Transparent bool // Sunlight isn't scattered.
19364 LiquidType LiquidType
19367 Viscosity uint8 // 0-7
19373 DrawBox, ColBox, SelBox NodeBox
19375 FootstepSnd, DiggingSnd, DugSnd SoundDef
19386 MoveResistance uint8
19388 LiquidMovePhysics bool
19389 }))(obj)).Name) = string(local248)
19390 var local250 uint16
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
19458 MoveResistance uint8
19460 LiquidMovePhysics bool
19461 }))(obj)).Groups) = make([]Group, local250)
19462 for local251 := range (*(*(struct {
19474 //mt:const uint8(6)
19476 OverlayTiles [6]TileDef
19477 //mt:const uint8(6)
19478 SpecialTiles [6]TileDef
19485 ConnectTo []Content
19486 InsideTint color.NRGBA
19487 Level uint8 // Must be < 128.
19489 Translucent bool // Sunlight is scattered and becomes normal light.
19490 Transparent bool // Sunlight isn't scattered.
19503 LiquidType LiquidType
19506 Viscosity uint8 // 0-7
19512 DrawBox, ColBox, SelBox NodeBox
19514 FootstepSnd, DiggingSnd, DugSnd SoundDef
19525 MoveResistance uint8
19527 LiquidMovePhysics bool
19529 if err := pcall(func() {
19542 //mt:const uint8(6)
19544 OverlayTiles [6]TileDef
19545 //mt:const uint8(6)
19546 SpecialTiles [6]TileDef
19553 ConnectTo []Content
19554 InsideTint color.NRGBA
19555 Level uint8 // Must be < 128.
19557 Translucent bool // Sunlight is scattered and becomes normal light.
19558 Transparent bool // Sunlight isn't scattered.
19571 LiquidType LiquidType
19574 Viscosity uint8 // 0-7
19580 DrawBox, ColBox, SelBox NodeBox
19582 FootstepSnd, DiggingSnd, DugSnd SoundDef
19593 MoveResistance uint8
19595 LiquidMovePhysics bool
19596 }))(obj)).Groups)[local251]).Deserialize(r)
19601 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
19604 if err := pcall(func() {
19617 //mt:const uint8(6)
19619 OverlayTiles [6]TileDef
19620 //mt:const uint8(6)
19621 SpecialTiles [6]TileDef
19628 ConnectTo []Content
19629 InsideTint color.NRGBA
19630 Level uint8 // Must be < 128.
19632 Translucent bool // Sunlight is scattered and becomes normal light.
19633 Transparent bool // Sunlight isn't scattered.
19646 LiquidType LiquidType
19649 Viscosity uint8 // 0-7
19655 DrawBox, ColBox, SelBox NodeBox
19657 FootstepSnd, DiggingSnd, DugSnd SoundDef
19668 MoveResistance uint8
19670 LiquidMovePhysics bool
19671 }))(obj)).P1Type).Deserialize(r)
19676 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param1Type", err))
19678 if err := pcall(func() {
19691 //mt:const uint8(6)
19693 OverlayTiles [6]TileDef
19694 //mt:const uint8(6)
19695 SpecialTiles [6]TileDef
19702 ConnectTo []Content
19703 InsideTint color.NRGBA
19704 Level uint8 // Must be < 128.
19706 Translucent bool // Sunlight is scattered and becomes normal light.
19707 Transparent bool // Sunlight isn't scattered.
19720 LiquidType LiquidType
19723 Viscosity uint8 // 0-7
19729 DrawBox, ColBox, SelBox NodeBox
19731 FootstepSnd, DiggingSnd, DugSnd SoundDef
19742 MoveResistance uint8
19744 LiquidMovePhysics bool
19745 }))(obj)).P2Type).Deserialize(r)
19750 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Param2Type", err))
19752 if err := pcall(func() {
19765 //mt:const uint8(6)
19767 OverlayTiles [6]TileDef
19768 //mt:const uint8(6)
19769 SpecialTiles [6]TileDef
19776 ConnectTo []Content
19777 InsideTint color.NRGBA
19778 Level uint8 // Must be < 128.
19780 Translucent bool // Sunlight is scattered and becomes normal light.
19781 Transparent bool // Sunlight isn't scattered.
19794 LiquidType LiquidType
19797 Viscosity uint8 // 0-7
19803 DrawBox, ColBox, SelBox NodeBox
19805 FootstepSnd, DiggingSnd, DugSnd SoundDef
19816 MoveResistance uint8
19818 LiquidMovePhysics bool
19819 }))(obj)).DrawType).Deserialize(r)
19824 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DrawType", err))
19826 var local252 []uint8
19827 var local253 uint16
19832 (local252) = make([]uint8, local253)
19834 _, err := io.ReadFull(r, (local252)[:])
19849 //mt:const uint8(6)
19851 OverlayTiles [6]TileDef
19852 //mt:const uint8(6)
19853 SpecialTiles [6]TileDef
19860 ConnectTo []Content
19861 InsideTint color.NRGBA
19862 Level uint8 // Must be < 128.
19864 Translucent bool // Sunlight is scattered and becomes normal light.
19865 Transparent bool // Sunlight isn't scattered.
19878 LiquidType LiquidType
19881 Viscosity uint8 // 0-7
19887 DrawBox, ColBox, SelBox NodeBox
19889 FootstepSnd, DiggingSnd, DugSnd SoundDef
19900 MoveResistance uint8
19902 LiquidMovePhysics bool
19903 }))(obj)).Mesh) = string(local252)
19905 p := &(*(*(struct {
19917 //mt:const uint8(6)
19919 OverlayTiles [6]TileDef
19920 //mt:const uint8(6)
19921 SpecialTiles [6]TileDef
19928 ConnectTo []Content
19929 InsideTint color.NRGBA
19930 Level uint8 // Must be < 128.
19932 Translucent bool // Sunlight is scattered and becomes normal light.
19933 Transparent bool // Sunlight isn't scattered.
19946 LiquidType LiquidType
19949 Viscosity uint8 // 0-7
19955 DrawBox, ColBox, SelBox NodeBox
19957 FootstepSnd, DiggingSnd, DugSnd SoundDef
19968 MoveResistance uint8
19970 LiquidMovePhysics bool
19972 *p = math.Float32frombits(read32(r))
19976 local255 := uint8(6)
19981 if local254 != local255 {
19982 chk(fmt.Errorf("const %v: %v", "uint8(6)", local254))
19985 for local256 := range (*(*(struct {
19997 //mt:const uint8(6)
19999 OverlayTiles [6]TileDef
20000 //mt:const uint8(6)
20001 SpecialTiles [6]TileDef
20008 ConnectTo []Content
20009 InsideTint color.NRGBA
20010 Level uint8 // Must be < 128.
20012 Translucent bool // Sunlight is scattered and becomes normal light.
20013 Transparent bool // Sunlight isn't scattered.
20026 LiquidType LiquidType
20029 Viscosity uint8 // 0-7
20035 DrawBox, ColBox, SelBox NodeBox
20037 FootstepSnd, DiggingSnd, DugSnd SoundDef
20048 MoveResistance uint8
20050 LiquidMovePhysics bool
20052 if err := pcall(func() {
20065 //mt:const uint8(6)
20067 OverlayTiles [6]TileDef
20068 //mt:const uint8(6)
20069 SpecialTiles [6]TileDef
20076 ConnectTo []Content
20077 InsideTint color.NRGBA
20078 Level uint8 // Must be < 128.
20080 Translucent bool // Sunlight is scattered and becomes normal light.
20081 Transparent bool // Sunlight isn't scattered.
20094 LiquidType LiquidType
20097 Viscosity uint8 // 0-7
20103 DrawBox, ColBox, SelBox NodeBox
20105 FootstepSnd, DiggingSnd, DugSnd SoundDef
20116 MoveResistance uint8
20118 LiquidMovePhysics bool
20119 }))(obj)).Tiles)[local256]).Deserialize(r)
20124 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20127 for local257 := range (*(*(struct {
20139 //mt:const uint8(6)
20141 OverlayTiles [6]TileDef
20142 //mt:const uint8(6)
20143 SpecialTiles [6]TileDef
20150 ConnectTo []Content
20151 InsideTint color.NRGBA
20152 Level uint8 // Must be < 128.
20154 Translucent bool // Sunlight is scattered and becomes normal light.
20155 Transparent bool // Sunlight isn't scattered.
20168 LiquidType LiquidType
20171 Viscosity uint8 // 0-7
20177 DrawBox, ColBox, SelBox NodeBox
20179 FootstepSnd, DiggingSnd, DugSnd SoundDef
20190 MoveResistance uint8
20192 LiquidMovePhysics bool
20193 }))(obj)).OverlayTiles {
20194 if err := pcall(func() {
20207 //mt:const uint8(6)
20209 OverlayTiles [6]TileDef
20210 //mt:const uint8(6)
20211 SpecialTiles [6]TileDef
20218 ConnectTo []Content
20219 InsideTint color.NRGBA
20220 Level uint8 // Must be < 128.
20222 Translucent bool // Sunlight is scattered and becomes normal light.
20223 Transparent bool // Sunlight isn't scattered.
20236 LiquidType LiquidType
20239 Viscosity uint8 // 0-7
20245 DrawBox, ColBox, SelBox NodeBox
20247 FootstepSnd, DiggingSnd, DugSnd SoundDef
20258 MoveResistance uint8
20260 LiquidMovePhysics bool
20261 }))(obj)).OverlayTiles)[local257]).Deserialize(r)
20266 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20271 local259 := uint8(6)
20276 if local258 != local259 {
20277 chk(fmt.Errorf("const %v: %v", "uint8(6)", local258))
20280 for local260 := range (*(*(struct {
20292 //mt:const uint8(6)
20294 OverlayTiles [6]TileDef
20295 //mt:const uint8(6)
20296 SpecialTiles [6]TileDef
20303 ConnectTo []Content
20304 InsideTint color.NRGBA
20305 Level uint8 // Must be < 128.
20307 Translucent bool // Sunlight is scattered and becomes normal light.
20308 Transparent bool // Sunlight isn't scattered.
20321 LiquidType LiquidType
20324 Viscosity uint8 // 0-7
20330 DrawBox, ColBox, SelBox NodeBox
20332 FootstepSnd, DiggingSnd, DugSnd SoundDef
20343 MoveResistance uint8
20345 LiquidMovePhysics bool
20346 }))(obj)).SpecialTiles {
20347 if err := pcall(func() {
20360 //mt:const uint8(6)
20362 OverlayTiles [6]TileDef
20363 //mt:const uint8(6)
20364 SpecialTiles [6]TileDef
20371 ConnectTo []Content
20372 InsideTint color.NRGBA
20373 Level uint8 // Must be < 128.
20375 Translucent bool // Sunlight is scattered and becomes normal light.
20376 Transparent bool // Sunlight isn't scattered.
20389 LiquidType LiquidType
20392 Viscosity uint8 // 0-7
20398 DrawBox, ColBox, SelBox NodeBox
20400 FootstepSnd, DiggingSnd, DugSnd SoundDef
20411 MoveResistance uint8
20413 LiquidMovePhysics bool
20414 }))(obj)).SpecialTiles)[local260]).Deserialize(r)
20419 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileDef", err))
20423 p := &(*(*(struct {
20435 //mt:const uint8(6)
20437 OverlayTiles [6]TileDef
20438 //mt:const uint8(6)
20439 SpecialTiles [6]TileDef
20446 ConnectTo []Content
20447 InsideTint color.NRGBA
20448 Level uint8 // Must be < 128.
20450 Translucent bool // Sunlight is scattered and becomes normal light.
20451 Transparent bool // Sunlight isn't scattered.
20464 LiquidType LiquidType
20467 Viscosity uint8 // 0-7
20473 DrawBox, ColBox, SelBox NodeBox
20475 FootstepSnd, DiggingSnd, DugSnd SoundDef
20486 MoveResistance uint8
20488 LiquidMovePhysics bool
20490 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20492 if err := pcall(func() {
20505 //mt:const uint8(6)
20507 OverlayTiles [6]TileDef
20508 //mt:const uint8(6)
20509 SpecialTiles [6]TileDef
20516 ConnectTo []Content
20517 InsideTint color.NRGBA
20518 Level uint8 // Must be < 128.
20520 Translucent bool // Sunlight is scattered and becomes normal light.
20521 Transparent bool // Sunlight isn't scattered.
20534 LiquidType LiquidType
20537 Viscosity uint8 // 0-7
20543 DrawBox, ColBox, SelBox NodeBox
20545 FootstepSnd, DiggingSnd, DugSnd SoundDef
20556 MoveResistance uint8
20558 LiquidMovePhysics bool
20559 }))(obj)).Palette).Deserialize(r)
20564 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
20566 if err := pcall(func() {
20579 //mt:const uint8(6)
20581 OverlayTiles [6]TileDef
20582 //mt:const uint8(6)
20583 SpecialTiles [6]TileDef
20590 ConnectTo []Content
20591 InsideTint color.NRGBA
20592 Level uint8 // Must be < 128.
20594 Translucent bool // Sunlight is scattered and becomes normal light.
20595 Transparent bool // Sunlight isn't scattered.
20608 LiquidType LiquidType
20611 Viscosity uint8 // 0-7
20617 DrawBox, ColBox, SelBox NodeBox
20619 FootstepSnd, DiggingSnd, DugSnd SoundDef
20630 MoveResistance uint8
20632 LiquidMovePhysics bool
20633 }))(obj)).Waving).Deserialize(r)
20638 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.WaveType", err))
20641 p := &(*(*(struct {
20653 //mt:const uint8(6)
20655 OverlayTiles [6]TileDef
20656 //mt:const uint8(6)
20657 SpecialTiles [6]TileDef
20664 ConnectTo []Content
20665 InsideTint color.NRGBA
20666 Level uint8 // Must be < 128.
20668 Translucent bool // Sunlight is scattered and becomes normal light.
20669 Transparent bool // Sunlight isn't scattered.
20682 LiquidType LiquidType
20685 Viscosity uint8 // 0-7
20691 DrawBox, ColBox, SelBox NodeBox
20693 FootstepSnd, DiggingSnd, DugSnd SoundDef
20704 MoveResistance uint8
20706 LiquidMovePhysics bool
20707 }))(obj)).ConnectSides
20710 var local261 uint16
20727 //mt:const uint8(6)
20729 OverlayTiles [6]TileDef
20730 //mt:const uint8(6)
20731 SpecialTiles [6]TileDef
20738 ConnectTo []Content
20739 InsideTint color.NRGBA
20740 Level uint8 // Must be < 128.
20742 Translucent bool // Sunlight is scattered and becomes normal light.
20743 Transparent bool // Sunlight isn't scattered.
20756 LiquidType LiquidType
20759 Viscosity uint8 // 0-7
20765 DrawBox, ColBox, SelBox NodeBox
20767 FootstepSnd, DiggingSnd, DugSnd SoundDef
20778 MoveResistance uint8
20780 LiquidMovePhysics bool
20781 }))(obj)).ConnectTo) = make([]Content, local261)
20782 for local262 := range (*(*(struct {
20794 //mt:const uint8(6)
20796 OverlayTiles [6]TileDef
20797 //mt:const uint8(6)
20798 SpecialTiles [6]TileDef
20805 ConnectTo []Content
20806 InsideTint color.NRGBA
20807 Level uint8 // Must be < 128.
20809 Translucent bool // Sunlight is scattered and becomes normal light.
20810 Transparent bool // Sunlight isn't scattered.
20823 LiquidType LiquidType
20826 Viscosity uint8 // 0-7
20832 DrawBox, ColBox, SelBox NodeBox
20834 FootstepSnd, DiggingSnd, DugSnd SoundDef
20845 MoveResistance uint8
20847 LiquidMovePhysics bool
20848 }))(obj)).ConnectTo {
20849 if err := pcall(func() {
20862 //mt:const uint8(6)
20864 OverlayTiles [6]TileDef
20865 //mt:const uint8(6)
20866 SpecialTiles [6]TileDef
20873 ConnectTo []Content
20874 InsideTint color.NRGBA
20875 Level uint8 // Must be < 128.
20877 Translucent bool // Sunlight is scattered and becomes normal light.
20878 Transparent bool // Sunlight isn't scattered.
20891 LiquidType LiquidType
20894 Viscosity uint8 // 0-7
20900 DrawBox, ColBox, SelBox NodeBox
20902 FootstepSnd, DiggingSnd, DugSnd SoundDef
20913 MoveResistance uint8
20915 LiquidMovePhysics bool
20916 }))(obj)).ConnectTo)[local262]).Deserialize(r)
20921 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
20925 p := &(*(*(struct {
20937 //mt:const uint8(6)
20939 OverlayTiles [6]TileDef
20940 //mt:const uint8(6)
20941 SpecialTiles [6]TileDef
20948 ConnectTo []Content
20949 InsideTint color.NRGBA
20950 Level uint8 // Must be < 128.
20952 Translucent bool // Sunlight is scattered and becomes normal light.
20953 Transparent bool // Sunlight isn't scattered.
20966 LiquidType LiquidType
20969 Viscosity uint8 // 0-7
20975 DrawBox, ColBox, SelBox NodeBox
20977 FootstepSnd, DiggingSnd, DugSnd SoundDef
20988 MoveResistance uint8
20990 LiquidMovePhysics bool
20991 }))(obj)).InsideTint
20992 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
20995 p := &(*(*(struct {
21007 //mt:const uint8(6)
21009 OverlayTiles [6]TileDef
21010 //mt:const uint8(6)
21011 SpecialTiles [6]TileDef
21018 ConnectTo []Content
21019 InsideTint color.NRGBA
21020 Level uint8 // Must be < 128.
21022 Translucent bool // Sunlight is scattered and becomes normal light.
21023 Transparent bool // Sunlight isn't scattered.
21036 LiquidType LiquidType
21039 Viscosity uint8 // 0-7
21045 DrawBox, ColBox, SelBox NodeBox
21047 FootstepSnd, DiggingSnd, DugSnd SoundDef
21058 MoveResistance uint8
21060 LiquidMovePhysics bool
21065 p := &(*(*(struct {
21077 //mt:const uint8(6)
21079 OverlayTiles [6]TileDef
21080 //mt:const uint8(6)
21081 SpecialTiles [6]TileDef
21088 ConnectTo []Content
21089 InsideTint color.NRGBA
21090 Level uint8 // Must be < 128.
21092 Translucent bool // Sunlight is scattered and becomes normal light.
21093 Transparent bool // Sunlight isn't scattered.
21106 LiquidType LiquidType
21109 Viscosity uint8 // 0-7
21115 DrawBox, ColBox, SelBox NodeBox
21117 FootstepSnd, DiggingSnd, DugSnd SoundDef
21128 MoveResistance uint8
21130 LiquidMovePhysics bool
21131 }))(obj)).Translucent
21132 switch n := read8(r); n {
21138 chk(fmt.Errorf("invalid bool: %d", n))
21142 p := &(*(*(struct {
21154 //mt:const uint8(6)
21156 OverlayTiles [6]TileDef
21157 //mt:const uint8(6)
21158 SpecialTiles [6]TileDef
21165 ConnectTo []Content
21166 InsideTint color.NRGBA
21167 Level uint8 // Must be < 128.
21169 Translucent bool // Sunlight is scattered and becomes normal light.
21170 Transparent bool // Sunlight isn't scattered.
21183 LiquidType LiquidType
21186 Viscosity uint8 // 0-7
21192 DrawBox, ColBox, SelBox NodeBox
21194 FootstepSnd, DiggingSnd, DugSnd SoundDef
21205 MoveResistance uint8
21207 LiquidMovePhysics bool
21208 }))(obj)).Transparent
21209 switch n := read8(r); n {
21215 chk(fmt.Errorf("invalid bool: %d", n))
21219 p := &(*(*(struct {
21231 //mt:const uint8(6)
21233 OverlayTiles [6]TileDef
21234 //mt:const uint8(6)
21235 SpecialTiles [6]TileDef
21242 ConnectTo []Content
21243 InsideTint color.NRGBA
21244 Level uint8 // Must be < 128.
21246 Translucent bool // Sunlight is scattered and becomes normal light.
21247 Transparent bool // Sunlight isn't scattered.
21260 LiquidType LiquidType
21263 Viscosity uint8 // 0-7
21269 DrawBox, ColBox, SelBox NodeBox
21271 FootstepSnd, DiggingSnd, DugSnd SoundDef
21282 MoveResistance uint8
21284 LiquidMovePhysics bool
21289 p := &(*(*(struct {
21301 //mt:const uint8(6)
21303 OverlayTiles [6]TileDef
21304 //mt:const uint8(6)
21305 SpecialTiles [6]TileDef
21312 ConnectTo []Content
21313 InsideTint color.NRGBA
21314 Level uint8 // Must be < 128.
21316 Translucent bool // Sunlight is scattered and becomes normal light.
21317 Transparent bool // Sunlight isn't scattered.
21330 LiquidType LiquidType
21333 Viscosity uint8 // 0-7
21339 DrawBox, ColBox, SelBox NodeBox
21341 FootstepSnd, DiggingSnd, DugSnd SoundDef
21352 MoveResistance uint8
21354 LiquidMovePhysics bool
21355 }))(obj)).GndContent
21356 switch n := read8(r); n {
21362 chk(fmt.Errorf("invalid bool: %d", n))
21366 p := &(*(*(struct {
21378 //mt:const uint8(6)
21380 OverlayTiles [6]TileDef
21381 //mt:const uint8(6)
21382 SpecialTiles [6]TileDef
21389 ConnectTo []Content
21390 InsideTint color.NRGBA
21391 Level uint8 // Must be < 128.
21393 Translucent bool // Sunlight is scattered and becomes normal light.
21394 Transparent bool // Sunlight isn't scattered.
21407 LiquidType LiquidType
21410 Viscosity uint8 // 0-7
21416 DrawBox, ColBox, SelBox NodeBox
21418 FootstepSnd, DiggingSnd, DugSnd SoundDef
21429 MoveResistance uint8
21431 LiquidMovePhysics bool
21433 switch n := read8(r); n {
21439 chk(fmt.Errorf("invalid bool: %d", n))
21443 p := &(*(*(struct {
21455 //mt:const uint8(6)
21457 OverlayTiles [6]TileDef
21458 //mt:const uint8(6)
21459 SpecialTiles [6]TileDef
21466 ConnectTo []Content
21467 InsideTint color.NRGBA
21468 Level uint8 // Must be < 128.
21470 Translucent bool // Sunlight is scattered and becomes normal light.
21471 Transparent bool // Sunlight isn't scattered.
21484 LiquidType LiquidType
21487 Viscosity uint8 // 0-7
21493 DrawBox, ColBox, SelBox NodeBox
21495 FootstepSnd, DiggingSnd, DugSnd SoundDef
21506 MoveResistance uint8
21508 LiquidMovePhysics bool
21509 }))(obj)).Pointable
21510 switch n := read8(r); n {
21516 chk(fmt.Errorf("invalid bool: %d", n))
21520 p := &(*(*(struct {
21532 //mt:const uint8(6)
21534 OverlayTiles [6]TileDef
21535 //mt:const uint8(6)
21536 SpecialTiles [6]TileDef
21543 ConnectTo []Content
21544 InsideTint color.NRGBA
21545 Level uint8 // Must be < 128.
21547 Translucent bool // Sunlight is scattered and becomes normal light.
21548 Transparent bool // Sunlight isn't scattered.
21561 LiquidType LiquidType
21564 Viscosity uint8 // 0-7
21570 DrawBox, ColBox, SelBox NodeBox
21572 FootstepSnd, DiggingSnd, DugSnd SoundDef
21583 MoveResistance uint8
21585 LiquidMovePhysics bool
21587 switch n := read8(r); n {
21593 chk(fmt.Errorf("invalid bool: %d", n))
21597 p := &(*(*(struct {
21609 //mt:const uint8(6)
21611 OverlayTiles [6]TileDef
21612 //mt:const uint8(6)
21613 SpecialTiles [6]TileDef
21620 ConnectTo []Content
21621 InsideTint color.NRGBA
21622 Level uint8 // Must be < 128.
21624 Translucent bool // Sunlight is scattered and becomes normal light.
21625 Transparent bool // Sunlight isn't scattered.
21638 LiquidType LiquidType
21641 Viscosity uint8 // 0-7
21647 DrawBox, ColBox, SelBox NodeBox
21649 FootstepSnd, DiggingSnd, DugSnd SoundDef
21660 MoveResistance uint8
21662 LiquidMovePhysics bool
21663 }))(obj)).Climbable
21664 switch n := read8(r); n {
21670 chk(fmt.Errorf("invalid bool: %d", n))
21674 p := &(*(*(struct {
21686 //mt:const uint8(6)
21688 OverlayTiles [6]TileDef
21689 //mt:const uint8(6)
21690 SpecialTiles [6]TileDef
21697 ConnectTo []Content
21698 InsideTint color.NRGBA
21699 Level uint8 // Must be < 128.
21701 Translucent bool // Sunlight is scattered and becomes normal light.
21702 Transparent bool // Sunlight isn't scattered.
21715 LiquidType LiquidType
21718 Viscosity uint8 // 0-7
21724 DrawBox, ColBox, SelBox NodeBox
21726 FootstepSnd, DiggingSnd, DugSnd SoundDef
21737 MoveResistance uint8
21739 LiquidMovePhysics bool
21740 }))(obj)).Replaceable
21741 switch n := read8(r); n {
21747 chk(fmt.Errorf("invalid bool: %d", n))
21751 p := &(*(*(struct {
21763 //mt:const uint8(6)
21765 OverlayTiles [6]TileDef
21766 //mt:const uint8(6)
21767 SpecialTiles [6]TileDef
21774 ConnectTo []Content
21775 InsideTint color.NRGBA
21776 Level uint8 // Must be < 128.
21778 Translucent bool // Sunlight is scattered and becomes normal light.
21779 Transparent bool // Sunlight isn't scattered.
21792 LiquidType LiquidType
21795 Viscosity uint8 // 0-7
21801 DrawBox, ColBox, SelBox NodeBox
21803 FootstepSnd, DiggingSnd, DugSnd SoundDef
21814 MoveResistance uint8
21816 LiquidMovePhysics bool
21817 }))(obj)).OnRightClick
21818 switch n := read8(r); n {
21824 chk(fmt.Errorf("invalid bool: %d", n))
21828 p := &(*(*(struct {
21840 //mt:const uint8(6)
21842 OverlayTiles [6]TileDef
21843 //mt:const uint8(6)
21844 SpecialTiles [6]TileDef
21851 ConnectTo []Content
21852 InsideTint color.NRGBA
21853 Level uint8 // Must be < 128.
21855 Translucent bool // Sunlight is scattered and becomes normal light.
21856 Transparent bool // Sunlight isn't scattered.
21869 LiquidType LiquidType
21872 Viscosity uint8 // 0-7
21878 DrawBox, ColBox, SelBox NodeBox
21880 FootstepSnd, DiggingSnd, DugSnd SoundDef
21891 MoveResistance uint8
21893 LiquidMovePhysics bool
21894 }))(obj)).DmgPerSec
21895 *p = int32(read32(r))
21897 if err := pcall(func() {
21910 //mt:const uint8(6)
21912 OverlayTiles [6]TileDef
21913 //mt:const uint8(6)
21914 SpecialTiles [6]TileDef
21921 ConnectTo []Content
21922 InsideTint color.NRGBA
21923 Level uint8 // Must be < 128.
21925 Translucent bool // Sunlight is scattered and becomes normal light.
21926 Transparent bool // Sunlight isn't scattered.
21939 LiquidType LiquidType
21942 Viscosity uint8 // 0-7
21948 DrawBox, ColBox, SelBox NodeBox
21950 FootstepSnd, DiggingSnd, DugSnd SoundDef
21961 MoveResistance uint8
21963 LiquidMovePhysics bool
21964 }))(obj)).LiquidType).Deserialize(r)
21969 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LiquidType", err))
21971 var local263 []uint8
21972 var local264 uint16
21977 (local263) = make([]uint8, local264)
21979 _, err := io.ReadFull(r, (local263)[:])
21994 //mt:const uint8(6)
21996 OverlayTiles [6]TileDef
21997 //mt:const uint8(6)
21998 SpecialTiles [6]TileDef
22005 ConnectTo []Content
22006 InsideTint color.NRGBA
22007 Level uint8 // Must be < 128.
22009 Translucent bool // Sunlight is scattered and becomes normal light.
22010 Transparent bool // Sunlight isn't scattered.
22023 LiquidType LiquidType
22026 Viscosity uint8 // 0-7
22032 DrawBox, ColBox, SelBox NodeBox
22034 FootstepSnd, DiggingSnd, DugSnd SoundDef
22045 MoveResistance uint8
22047 LiquidMovePhysics bool
22048 }))(obj)).FlowingAlt) = string(local263)
22049 var local265 []uint8
22050 var local266 uint16
22055 (local265) = make([]uint8, local266)
22057 _, err := io.ReadFull(r, (local265)[:])
22072 //mt:const uint8(6)
22074 OverlayTiles [6]TileDef
22075 //mt:const uint8(6)
22076 SpecialTiles [6]TileDef
22083 ConnectTo []Content
22084 InsideTint color.NRGBA
22085 Level uint8 // Must be < 128.
22087 Translucent bool // Sunlight is scattered and becomes normal light.
22088 Transparent bool // Sunlight isn't scattered.
22101 LiquidType LiquidType
22104 Viscosity uint8 // 0-7
22110 DrawBox, ColBox, SelBox NodeBox
22112 FootstepSnd, DiggingSnd, DugSnd SoundDef
22123 MoveResistance uint8
22125 LiquidMovePhysics bool
22126 }))(obj)).SrcAlt) = string(local265)
22128 p := &(*(*(struct {
22140 //mt:const uint8(6)
22142 OverlayTiles [6]TileDef
22143 //mt:const uint8(6)
22144 SpecialTiles [6]TileDef
22151 ConnectTo []Content
22152 InsideTint color.NRGBA
22153 Level uint8 // Must be < 128.
22155 Translucent bool // Sunlight is scattered and becomes normal light.
22156 Transparent bool // Sunlight isn't scattered.
22169 LiquidType LiquidType
22172 Viscosity uint8 // 0-7
22178 DrawBox, ColBox, SelBox NodeBox
22180 FootstepSnd, DiggingSnd, DugSnd SoundDef
22191 MoveResistance uint8
22193 LiquidMovePhysics bool
22194 }))(obj)).Viscosity
22198 p := &(*(*(struct {
22210 //mt:const uint8(6)
22212 OverlayTiles [6]TileDef
22213 //mt:const uint8(6)
22214 SpecialTiles [6]TileDef
22221 ConnectTo []Content
22222 InsideTint color.NRGBA
22223 Level uint8 // Must be < 128.
22225 Translucent bool // Sunlight is scattered and becomes normal light.
22226 Transparent bool // Sunlight isn't scattered.
22239 LiquidType LiquidType
22242 Viscosity uint8 // 0-7
22248 DrawBox, ColBox, SelBox NodeBox
22250 FootstepSnd, DiggingSnd, DugSnd SoundDef
22261 MoveResistance uint8
22263 LiquidMovePhysics bool
22264 }))(obj)).LiqRenewable
22265 switch n := read8(r); n {
22271 chk(fmt.Errorf("invalid bool: %d", n))
22275 p := &(*(*(struct {
22287 //mt:const uint8(6)
22289 OverlayTiles [6]TileDef
22290 //mt:const uint8(6)
22291 SpecialTiles [6]TileDef
22298 ConnectTo []Content
22299 InsideTint color.NRGBA
22300 Level uint8 // Must be < 128.
22302 Translucent bool // Sunlight is scattered and becomes normal light.
22303 Transparent bool // Sunlight isn't scattered.
22316 LiquidType LiquidType
22319 Viscosity uint8 // 0-7
22325 DrawBox, ColBox, SelBox NodeBox
22327 FootstepSnd, DiggingSnd, DugSnd SoundDef
22338 MoveResistance uint8
22340 LiquidMovePhysics bool
22341 }))(obj)).FlowRange
22345 p := &(*(*(struct {
22357 //mt:const uint8(6)
22359 OverlayTiles [6]TileDef
22360 //mt:const uint8(6)
22361 SpecialTiles [6]TileDef
22368 ConnectTo []Content
22369 InsideTint color.NRGBA
22370 Level uint8 // Must be < 128.
22372 Translucent bool // Sunlight is scattered and becomes normal light.
22373 Transparent bool // Sunlight isn't scattered.
22386 LiquidType LiquidType
22389 Viscosity uint8 // 0-7
22395 DrawBox, ColBox, SelBox NodeBox
22397 FootstepSnd, DiggingSnd, DugSnd SoundDef
22408 MoveResistance uint8
22410 LiquidMovePhysics bool
22415 p := &(*(*(struct {
22427 //mt:const uint8(6)
22429 OverlayTiles [6]TileDef
22430 //mt:const uint8(6)
22431 SpecialTiles [6]TileDef
22438 ConnectTo []Content
22439 InsideTint color.NRGBA
22440 Level uint8 // Must be < 128.
22442 Translucent bool // Sunlight is scattered and becomes normal light.
22443 Transparent bool // Sunlight isn't scattered.
22456 LiquidType LiquidType
22459 Viscosity uint8 // 0-7
22465 DrawBox, ColBox, SelBox NodeBox
22467 FootstepSnd, DiggingSnd, DugSnd SoundDef
22478 MoveResistance uint8
22480 LiquidMovePhysics bool
22481 }))(obj)).Floodable
22482 switch n := read8(r); n {
22488 chk(fmt.Errorf("invalid bool: %d", n))
22491 if err := pcall(func() {
22504 //mt:const uint8(6)
22506 OverlayTiles [6]TileDef
22507 //mt:const uint8(6)
22508 SpecialTiles [6]TileDef
22515 ConnectTo []Content
22516 InsideTint color.NRGBA
22517 Level uint8 // Must be < 128.
22519 Translucent bool // Sunlight is scattered and becomes normal light.
22520 Transparent bool // Sunlight isn't scattered.
22533 LiquidType LiquidType
22536 Viscosity uint8 // 0-7
22542 DrawBox, ColBox, SelBox NodeBox
22544 FootstepSnd, DiggingSnd, DugSnd SoundDef
22555 MoveResistance uint8
22557 LiquidMovePhysics bool
22558 }))(obj)).DrawBox).Deserialize(r)
22563 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22565 if err := pcall(func() {
22578 //mt:const uint8(6)
22580 OverlayTiles [6]TileDef
22581 //mt:const uint8(6)
22582 SpecialTiles [6]TileDef
22589 ConnectTo []Content
22590 InsideTint color.NRGBA
22591 Level uint8 // Must be < 128.
22593 Translucent bool // Sunlight is scattered and becomes normal light.
22594 Transparent bool // Sunlight isn't scattered.
22607 LiquidType LiquidType
22610 Viscosity uint8 // 0-7
22616 DrawBox, ColBox, SelBox NodeBox
22618 FootstepSnd, DiggingSnd, DugSnd SoundDef
22629 MoveResistance uint8
22631 LiquidMovePhysics bool
22632 }))(obj)).ColBox).Deserialize(r)
22637 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22639 if err := pcall(func() {
22652 //mt:const uint8(6)
22654 OverlayTiles [6]TileDef
22655 //mt:const uint8(6)
22656 SpecialTiles [6]TileDef
22663 ConnectTo []Content
22664 InsideTint color.NRGBA
22665 Level uint8 // Must be < 128.
22667 Translucent bool // Sunlight is scattered and becomes normal light.
22668 Transparent bool // Sunlight isn't scattered.
22681 LiquidType LiquidType
22684 Viscosity uint8 // 0-7
22690 DrawBox, ColBox, SelBox NodeBox
22692 FootstepSnd, DiggingSnd, DugSnd SoundDef
22703 MoveResistance uint8
22705 LiquidMovePhysics bool
22706 }))(obj)).SelBox).Deserialize(r)
22711 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBox", err))
22713 if err := pcall(func() {
22726 //mt:const uint8(6)
22728 OverlayTiles [6]TileDef
22729 //mt:const uint8(6)
22730 SpecialTiles [6]TileDef
22737 ConnectTo []Content
22738 InsideTint color.NRGBA
22739 Level uint8 // Must be < 128.
22741 Translucent bool // Sunlight is scattered and becomes normal light.
22742 Transparent bool // Sunlight isn't scattered.
22755 LiquidType LiquidType
22758 Viscosity uint8 // 0-7
22764 DrawBox, ColBox, SelBox NodeBox
22766 FootstepSnd, DiggingSnd, DugSnd SoundDef
22777 MoveResistance uint8
22779 LiquidMovePhysics bool
22780 }))(obj)).FootstepSnd).Deserialize(r)
22785 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22787 if err := pcall(func() {
22800 //mt:const uint8(6)
22802 OverlayTiles [6]TileDef
22803 //mt:const uint8(6)
22804 SpecialTiles [6]TileDef
22811 ConnectTo []Content
22812 InsideTint color.NRGBA
22813 Level uint8 // Must be < 128.
22815 Translucent bool // Sunlight is scattered and becomes normal light.
22816 Transparent bool // Sunlight isn't scattered.
22829 LiquidType LiquidType
22832 Viscosity uint8 // 0-7
22838 DrawBox, ColBox, SelBox NodeBox
22840 FootstepSnd, DiggingSnd, DugSnd SoundDef
22851 MoveResistance uint8
22853 LiquidMovePhysics bool
22854 }))(obj)).DiggingSnd).Deserialize(r)
22859 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22861 if err := pcall(func() {
22874 //mt:const uint8(6)
22876 OverlayTiles [6]TileDef
22877 //mt:const uint8(6)
22878 SpecialTiles [6]TileDef
22885 ConnectTo []Content
22886 InsideTint color.NRGBA
22887 Level uint8 // Must be < 128.
22889 Translucent bool // Sunlight is scattered and becomes normal light.
22890 Transparent bool // Sunlight isn't scattered.
22903 LiquidType LiquidType
22906 Viscosity uint8 // 0-7
22912 DrawBox, ColBox, SelBox NodeBox
22914 FootstepSnd, DiggingSnd, DugSnd SoundDef
22925 MoveResistance uint8
22927 LiquidMovePhysics bool
22928 }))(obj)).DugSnd).Deserialize(r)
22933 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
22936 p := &(*(*(struct {
22948 //mt:const uint8(6)
22950 OverlayTiles [6]TileDef
22951 //mt:const uint8(6)
22952 SpecialTiles [6]TileDef
22959 ConnectTo []Content
22960 InsideTint color.NRGBA
22961 Level uint8 // Must be < 128.
22963 Translucent bool // Sunlight is scattered and becomes normal light.
22964 Transparent bool // Sunlight isn't scattered.
22977 LiquidType LiquidType
22980 Viscosity uint8 // 0-7
22986 DrawBox, ColBox, SelBox NodeBox
22988 FootstepSnd, DiggingSnd, DugSnd SoundDef
22999 MoveResistance uint8
23001 LiquidMovePhysics bool
23002 }))(obj)).LegacyFaceDir
23003 switch n := read8(r); n {
23009 chk(fmt.Errorf("invalid bool: %d", n))
23013 p := &(*(*(struct {
23025 //mt:const uint8(6)
23027 OverlayTiles [6]TileDef
23028 //mt:const uint8(6)
23029 SpecialTiles [6]TileDef
23036 ConnectTo []Content
23037 InsideTint color.NRGBA
23038 Level uint8 // Must be < 128.
23040 Translucent bool // Sunlight is scattered and becomes normal light.
23041 Transparent bool // Sunlight isn't scattered.
23054 LiquidType LiquidType
23057 Viscosity uint8 // 0-7
23063 DrawBox, ColBox, SelBox NodeBox
23065 FootstepSnd, DiggingSnd, DugSnd SoundDef
23076 MoveResistance uint8
23078 LiquidMovePhysics bool
23079 }))(obj)).LegacyMounted
23080 switch n := read8(r); n {
23086 chk(fmt.Errorf("invalid bool: %d", n))
23089 var local267 []uint8
23090 var local268 uint16
23095 (local267) = make([]uint8, local268)
23097 _, err := io.ReadFull(r, (local267)[:])
23112 //mt:const uint8(6)
23114 OverlayTiles [6]TileDef
23115 //mt:const uint8(6)
23116 SpecialTiles [6]TileDef
23123 ConnectTo []Content
23124 InsideTint color.NRGBA
23125 Level uint8 // Must be < 128.
23127 Translucent bool // Sunlight is scattered and becomes normal light.
23128 Transparent bool // Sunlight isn't scattered.
23141 LiquidType LiquidType
23144 Viscosity uint8 // 0-7
23150 DrawBox, ColBox, SelBox NodeBox
23152 FootstepSnd, DiggingSnd, DugSnd SoundDef
23163 MoveResistance uint8
23165 LiquidMovePhysics bool
23166 }))(obj)).DigPredict) = string(local267)
23168 p := &(*(*(struct {
23180 //mt:const uint8(6)
23182 OverlayTiles [6]TileDef
23183 //mt:const uint8(6)
23184 SpecialTiles [6]TileDef
23191 ConnectTo []Content
23192 InsideTint color.NRGBA
23193 Level uint8 // Must be < 128.
23195 Translucent bool // Sunlight is scattered and becomes normal light.
23196 Transparent bool // Sunlight isn't scattered.
23209 LiquidType LiquidType
23212 Viscosity uint8 // 0-7
23218 DrawBox, ColBox, SelBox NodeBox
23220 FootstepSnd, DiggingSnd, DugSnd SoundDef
23231 MoveResistance uint8
23233 LiquidMovePhysics bool
23237 if err := pcall(func() {
23250 //mt:const uint8(6)
23252 OverlayTiles [6]TileDef
23253 //mt:const uint8(6)
23254 SpecialTiles [6]TileDef
23261 ConnectTo []Content
23262 InsideTint color.NRGBA
23263 Level uint8 // Must be < 128.
23265 Translucent bool // Sunlight is scattered and becomes normal light.
23266 Transparent bool // Sunlight isn't scattered.
23279 LiquidType LiquidType
23282 Viscosity uint8 // 0-7
23288 DrawBox, ColBox, SelBox NodeBox
23290 FootstepSnd, DiggingSnd, DugSnd SoundDef
23301 MoveResistance uint8
23303 LiquidMovePhysics bool
23304 }))(obj)).AlphaUse).Deserialize(r)
23309 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
23312 p := &(*(*(struct {
23324 //mt:const uint8(6)
23326 OverlayTiles [6]TileDef
23327 //mt:const uint8(6)
23328 SpecialTiles [6]TileDef
23335 ConnectTo []Content
23336 InsideTint color.NRGBA
23337 Level uint8 // Must be < 128.
23339 Translucent bool // Sunlight is scattered and becomes normal light.
23340 Transparent bool // Sunlight isn't scattered.
23353 LiquidType LiquidType
23356 Viscosity uint8 // 0-7
23362 DrawBox, ColBox, SelBox NodeBox
23364 FootstepSnd, DiggingSnd, DugSnd SoundDef
23375 MoveResistance uint8
23377 LiquidMovePhysics bool
23378 }))(obj)).MoveResistance
23382 p := &(*(*(struct {
23394 //mt:const uint8(6)
23396 OverlayTiles [6]TileDef
23397 //mt:const uint8(6)
23398 SpecialTiles [6]TileDef
23405 ConnectTo []Content
23406 InsideTint color.NRGBA
23407 Level uint8 // Must be < 128.
23409 Translucent bool // Sunlight is scattered and becomes normal light.
23410 Transparent bool // Sunlight isn't scattered.
23423 LiquidType LiquidType
23426 Viscosity uint8 // 0-7
23432 DrawBox, ColBox, SelBox NodeBox
23434 FootstepSnd, DiggingSnd, DugSnd SoundDef
23445 MoveResistance uint8
23447 LiquidMovePhysics bool
23448 }))(obj)).LiquidMovePhysics
23449 switch n := read8(r); n {
23455 chk(fmt.Errorf("invalid bool: %d", n))
23459 chk(fmt.Errorf("%d bytes of trailing data", r.N))
23464 func (obj *PointedNode) Serialize(w io.Writer) {
23465 for local269 := range (*(*(struct {
23466 Under, Above [3]int16
23469 x := ((*(*(struct {
23470 Under, Above [3]int16
23471 }))(obj)).Under)[local269]
23472 write16(w, uint16(x))
23475 for local270 := range (*(*(struct {
23476 Under, Above [3]int16
23479 x := ((*(*(struct {
23480 Under, Above [3]int16
23481 }))(obj)).Above)[local270]
23482 write16(w, uint16(x))
23487 func (obj *PointedNode) Deserialize(r io.Reader) {
23488 for local271 := range (*(*(struct {
23489 Under, Above [3]int16
23492 p := &((*(*(struct {
23493 Under, Above [3]int16
23494 }))(obj)).Under)[local271]
23495 *p = int16(read16(r))
23498 for local272 := range (*(*(struct {
23499 Under, Above [3]int16
23502 p := &((*(*(struct {
23503 Under, Above [3]int16
23504 }))(obj)).Above)[local272]
23505 *p = int16(read16(r))
23510 func (obj *PointedAO) Serialize(w io.Writer) {
23511 if err := pcall(func() {
23514 }))(obj)).ID).Serialize(w)
23519 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23523 func (obj *PointedAO) Deserialize(r io.Reader) {
23524 if err := pcall(func() {
23527 }))(obj)).ID).Deserialize(r)
23532 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
23536 func (obj *CompressionModes) Serialize(w io.Writer) {
23538 x := *(*(uint16))(obj)
23539 write16(w, uint16(x))
23543 func (obj *CompressionModes) Deserialize(r io.Reader) {
23545 p := &*(*(uint16))(obj)
23550 func (obj *PlayerPos) Serialize(w io.Writer) {
23551 for local273 := range (*(*(struct {
23552 Pos100, Vel100 [3]int32
23553 Pitch100, Yaw100 int32
23556 WantedRange uint8 // in MapBlks.
23559 x := ((*(*(struct {
23560 Pos100, Vel100 [3]int32
23561 Pitch100, Yaw100 int32
23564 WantedRange uint8 // in MapBlks.
23565 }))(obj)).Pos100)[local273]
23566 write32(w, uint32(x))
23569 for local274 := range (*(*(struct {
23570 Pos100, Vel100 [3]int32
23571 Pitch100, Yaw100 int32
23574 WantedRange uint8 // in MapBlks.
23577 x := ((*(*(struct {
23578 Pos100, Vel100 [3]int32
23579 Pitch100, Yaw100 int32
23582 WantedRange uint8 // in MapBlks.
23583 }))(obj)).Vel100)[local274]
23584 write32(w, uint32(x))
23589 Pos100, Vel100 [3]int32
23590 Pitch100, Yaw100 int32
23593 WantedRange uint8 // in MapBlks.
23595 write32(w, uint32(x))
23599 Pos100, Vel100 [3]int32
23600 Pitch100, Yaw100 int32
23603 WantedRange uint8 // in MapBlks.
23605 write32(w, uint32(x))
23607 if err := pcall(func() {
23609 Pos100, Vel100 [3]int32
23610 Pitch100, Yaw100 int32
23613 WantedRange uint8 // in MapBlks.
23614 }))(obj)).Keys).Serialize(w)
23619 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23623 Pos100, Vel100 [3]int32
23624 Pitch100, Yaw100 int32
23627 WantedRange uint8 // in MapBlks.
23629 write8(w, uint8(x))
23633 Pos100, Vel100 [3]int32
23634 Pitch100, Yaw100 int32
23637 WantedRange uint8 // in MapBlks.
23638 }))(obj)).WantedRange
23639 write8(w, uint8(x))
23643 func (obj *PlayerPos) Deserialize(r io.Reader) {
23644 for local275 := range (*(*(struct {
23645 Pos100, Vel100 [3]int32
23646 Pitch100, Yaw100 int32
23649 WantedRange uint8 // in MapBlks.
23652 p := &((*(*(struct {
23653 Pos100, Vel100 [3]int32
23654 Pitch100, Yaw100 int32
23657 WantedRange uint8 // in MapBlks.
23658 }))(obj)).Pos100)[local275]
23659 *p = int32(read32(r))
23662 for local276 := range (*(*(struct {
23663 Pos100, Vel100 [3]int32
23664 Pitch100, Yaw100 int32
23667 WantedRange uint8 // in MapBlks.
23670 p := &((*(*(struct {
23671 Pos100, Vel100 [3]int32
23672 Pitch100, Yaw100 int32
23675 WantedRange uint8 // in MapBlks.
23676 }))(obj)).Vel100)[local276]
23677 *p = int32(read32(r))
23681 p := &(*(*(struct {
23682 Pos100, Vel100 [3]int32
23683 Pitch100, Yaw100 int32
23686 WantedRange uint8 // in MapBlks.
23688 *p = int32(read32(r))
23691 p := &(*(*(struct {
23692 Pos100, Vel100 [3]int32
23693 Pitch100, Yaw100 int32
23696 WantedRange uint8 // in MapBlks.
23698 *p = int32(read32(r))
23700 if err := pcall(func() {
23702 Pos100, Vel100 [3]int32
23703 Pitch100, Yaw100 int32
23706 WantedRange uint8 // in MapBlks.
23707 }))(obj)).Keys).Deserialize(r)
23712 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Keys", err))
23715 p := &(*(*(struct {
23716 Pos100, Vel100 [3]int32
23717 Pitch100, Yaw100 int32
23720 WantedRange uint8 // in MapBlks.
23725 p := &(*(*(struct {
23726 Pos100, Vel100 [3]int32
23727 Pitch100, Yaw100 int32
23730 WantedRange uint8 // in MapBlks.
23731 }))(obj)).WantedRange
23736 func (obj *Interaction) Serialize(w io.Writer) {
23738 x := *(*(uint8))(obj)
23739 write8(w, uint8(x))
23743 func (obj *Interaction) Deserialize(r io.Reader) {
23745 p := &*(*(uint8))(obj)
23750 func (obj *SoundID) Serialize(w io.Writer) {
23752 x := *(*(int32))(obj)
23753 write32(w, uint32(x))
23757 func (obj *SoundID) Deserialize(r io.Reader) {
23759 p := &*(*(int32))(obj)
23760 *p = int32(read32(r))
23764 func (obj *Field) Serialize(w io.Writer) {
23765 if len(([]byte((*(*(struct {
23770 }))(obj)).Name))) > math.MaxUint16 {
23774 x := uint16(len(([]byte((*(*(struct {
23780 write16(w, uint16(x))
23783 _, err := w.Write(([]byte((*(*(struct {
23788 }))(obj)).Name))[:])
23791 if len(([]byte((*(*(struct {
23796 }))(obj)).Value))) > math.MaxUint32 {
23800 x := uint32(len(([]byte((*(*(struct {
23805 }))(obj)).Value))))
23806 write32(w, uint32(x))
23809 _, err := w.Write(([]byte((*(*(struct {
23814 }))(obj)).Value))[:])
23819 func (obj *Field) Deserialize(r io.Reader) {
23820 var local277 []uint8
23821 var local278 uint16
23826 (local277) = make([]uint8, local278)
23828 _, err := io.ReadFull(r, (local277)[:])
23836 }))(obj)).Name) = string(local277)
23837 var local279 []uint8
23838 var local280 uint32
23843 (local279) = make([]uint8, local280)
23845 _, err := io.ReadFull(r, (local279)[:])
23853 }))(obj)).Value) = string(local279)
23856 func (obj *AuthMethods) Serialize(w io.Writer) {
23858 x := *(*(uint32))(obj)
23859 write32(w, uint32(x))
23863 func (obj *AuthMethods) Deserialize(r io.Reader) {
23865 p := &*(*(uint32))(obj)
23870 func (obj *Pos) Serialize(w io.Writer) {
23871 if err := pcall(func() {
23872 (*(*(Vec))(obj)).Serialize(w)
23877 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23881 func (obj *Pos) Deserialize(r io.Reader) {
23882 if err := pcall(func() {
23883 (*(*(Vec))(obj)).Deserialize(r)
23888 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
23892 func (obj *KickReason) Serialize(w io.Writer) {
23894 x := *(*(uint8))(obj)
23895 write8(w, uint8(x))
23899 func (obj *KickReason) Deserialize(r io.Reader) {
23901 p := &*(*(uint8))(obj)
23906 func (obj *MapBlk) Serialize(w io.Writer) {
23907 if err := pcall(func() {
23910 LitFrom LitFromBlks
23912 Param0 [4096]Content
23916 NodeMetas map[uint16]*NodeMeta
23917 }))(obj)).Flags).Serialize(w)
23922 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
23924 if err := pcall(func() {
23927 LitFrom LitFromBlks
23929 Param0 [4096]Content
23933 NodeMetas map[uint16]*NodeMeta
23934 }))(obj)).LitFrom).Serialize(w)
23939 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
23942 local281 := uint8(2) // Size of param0 in bytes.
23945 write8(w, uint8(x))
23949 local282 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
23952 write8(w, uint8(x))
23955 for local283 := range (*(*(struct {
23957 LitFrom LitFromBlks
23959 Param0 [4096]Content
23963 NodeMetas map[uint16]*NodeMeta
23965 if err := pcall(func() {
23968 LitFrom LitFromBlks
23970 Param0 [4096]Content
23974 NodeMetas map[uint16]*NodeMeta
23975 }))(obj)).Param0)[local283]).Serialize(w)
23980 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
23984 _, err := w.Write(((*(*(struct {
23986 LitFrom LitFromBlks
23988 Param0 [4096]Content
23992 NodeMetas map[uint16]*NodeMeta
23993 }))(obj)).Param1)[:])
23997 _, err := w.Write(((*(*(struct {
23999 LitFrom LitFromBlks
24001 Param0 [4096]Content
24005 NodeMetas map[uint16]*NodeMeta
24006 }))(obj)).Param2)[:])
24012 LitFrom LitFromBlks
24014 Param0 [4096]Content
24018 NodeMetas map[uint16]*NodeMeta
24019 }))(obj)).NodeMetas
24025 // len(map[uint16]...) always < math.MaxUint16
24026 write16(w, uint16(len(x)))
24027 keys := make([]uint16, 0, len(x))
24028 for key := range x {
24029 keys = append(keys, key)
24031 sort.Slice(keys, func(i, j int) bool {
24032 i2pos := func(i int) [3]int16 {
24033 return Blkpos2Pos([3]int16{}, keys[i])
24035 p, q := i2pos(i), i2pos(j)
24046 for _, key := range keys {
24048 chk(serialize(w, x[key]))
24055 func (obj *MapBlk) Deserialize(r io.Reader) {
24056 if err := pcall(func() {
24059 LitFrom LitFromBlks
24061 Param0 [4096]Content
24065 NodeMetas map[uint16]*NodeMeta
24066 }))(obj)).Flags).Deserialize(r)
24071 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.MapBlkFlags", err))
24073 if err := pcall(func() {
24076 LitFrom LitFromBlks
24078 Param0 [4096]Content
24082 NodeMetas map[uint16]*NodeMeta
24083 }))(obj)).LitFrom).Deserialize(r)
24088 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.LitFromBlks", err))
24092 local285 := uint8(2) // Size of param0 in bytes.
24097 if local284 != local285 {
24098 chk(fmt.Errorf("const %v: %v", "uint8(2) // Size of param0 in bytes.", local284))
24103 local287 := uint8(1 + 1) // Size of param1 and param2 combined, in bytes.
24108 if local286 != local287 {
24109 chk(fmt.Errorf("const %v: %v", "uint8(1 + 1) // Size of param1 and param2 combined, in bytes.", local286))
24112 for local288 := range (*(*(struct {
24114 LitFrom LitFromBlks
24116 Param0 [4096]Content
24120 NodeMetas map[uint16]*NodeMeta
24122 if err := pcall(func() {
24125 LitFrom LitFromBlks
24127 Param0 [4096]Content
24131 NodeMetas map[uint16]*NodeMeta
24132 }))(obj)).Param0)[local288]).Deserialize(r)
24137 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24141 _, err := io.ReadFull(r, ((*(*(struct {
24143 LitFrom LitFromBlks
24145 Param0 [4096]Content
24149 NodeMetas map[uint16]*NodeMeta
24150 }))(obj)).Param1)[:])
24154 _, err := io.ReadFull(r, ((*(*(struct {
24156 LitFrom LitFromBlks
24158 Param0 [4096]Content
24162 NodeMetas map[uint16]*NodeMeta
24163 }))(obj)).Param2)[:])
24167 p := &(*(*(struct {
24169 LitFrom LitFromBlks
24171 Param0 [4096]Content
24175 NodeMetas map[uint16]*NodeMeta
24176 }))(obj)).NodeMetas
24178 switch ver := read8(r); ver {
24183 *p = make(map[uint16]*NodeMeta, n)
24186 nm := new(NodeMeta)
24187 chk(deserialize(r, nm))
24191 chk(fmt.Errorf("unsupported nodemetas version: %d", ver))
24197 func (obj *Node) Serialize(w io.Writer) {
24198 if err := pcall(func() {
24201 Param1, Param2 uint8
24202 }))(obj)).Param0).Serialize(w)
24207 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24212 Param1, Param2 uint8
24214 write8(w, uint8(x))
24219 Param1, Param2 uint8
24221 write8(w, uint8(x))
24225 func (obj *Node) Deserialize(r io.Reader) {
24226 if err := pcall(func() {
24229 Param1, Param2 uint8
24230 }))(obj)).Param0).Deserialize(r)
24235 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
24238 p := &(*(*(struct {
24240 Param1, Param2 uint8
24245 p := &(*(*(struct {
24247 Param1, Param2 uint8
24253 func (obj *CSMRestrictionFlags) Serialize(w io.Writer) {
24255 x := *(*(uint64))(obj)
24256 write64(w, uint64(x))
24260 func (obj *CSMRestrictionFlags) Deserialize(r io.Reader) {
24262 p := &*(*(uint64))(obj)
24267 func (obj *Vec) Serialize(w io.Writer) {
24268 for local289 := range *(*([3]float32))(obj) {
24270 x := (*(*([3]float32))(obj))[local289]
24271 write32(w, math.Float32bits(x))
24276 func (obj *Vec) Deserialize(r io.Reader) {
24277 for local290 := range *(*([3]float32))(obj) {
24279 p := &(*(*([3]float32))(obj))[local290]
24280 *p = math.Float32frombits(read32(r))
24285 func (obj *ChatMsgType) Serialize(w io.Writer) {
24287 x := *(*(uint8))(obj)
24288 write8(w, uint8(x))
24292 func (obj *ChatMsgType) Deserialize(r io.Reader) {
24294 p := &*(*(uint8))(obj)
24299 func (obj *AOID) Serialize(w io.Writer) {
24301 x := *(*(uint16))(obj)
24302 write16(w, uint16(x))
24306 func (obj *AOID) Deserialize(r io.Reader) {
24308 p := &*(*(uint16))(obj)
24313 func (obj *AOAdd) Serialize(w io.Writer) {
24314 if err := pcall(func() {
24317 //mt:const genericCAO
24319 InitData AOInitData
24320 }))(obj)).ID).Serialize(w)
24325 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24328 local291 := genericCAO
24329 if err := pcall(func() {
24330 (local291).Serialize(w)
24335 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24340 w := new(bytes.Buffer)
24341 if err := pcall(func() {
24344 //mt:const genericCAO
24346 InitData AOInitData
24347 }))(obj)).InitData).Serialize(w)
24352 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24357 if len((buf.Bytes())) > math.MaxUint32 {
24361 x := uint32(len((buf.Bytes())))
24362 write32(w, uint32(x))
24365 _, err := w.Write((buf.Bytes())[:])
24372 func (obj *AOAdd) Deserialize(r io.Reader) {
24373 if err := pcall(func() {
24376 //mt:const genericCAO
24378 InitData AOInitData
24379 }))(obj)).ID).Deserialize(r)
24384 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24387 var local292 aoType
24388 local293 := genericCAO
24389 if err := pcall(func() {
24390 (local292).Deserialize(r)
24395 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.aoType", err))
24397 if local292 != local293 {
24398 chk(fmt.Errorf("const %v: %v", "genericCAO", local292))
24407 r := &io.LimitedReader{R: r, N: int64(n)}
24408 if err := pcall(func() {
24411 //mt:const genericCAO
24413 InitData AOInitData
24414 }))(obj)).InitData).Deserialize(r)
24419 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOInitData", err))
24422 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24427 func (obj *IDAOMsg) Serialize(w io.Writer) {
24428 if err := pcall(func() {
24433 }))(obj)).ID).Serialize(w)
24438 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24442 w := new(bytes.Buffer)
24454 if len((buf.Bytes())) > math.MaxUint16 {
24458 x := uint16(len((buf.Bytes())))
24459 write16(w, uint16(x))
24462 _, err := w.Write((buf.Bytes())[:])
24469 func (obj *IDAOMsg) Deserialize(r io.Reader) {
24470 if err := pcall(func() {
24475 }))(obj)).ID).Deserialize(r)
24480 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
24488 r := &io.LimitedReader{R: r, N: int64(n)}
24490 p := &(*(*(struct {
24497 *p, err = readAOMsg(r)
24502 chk(fmt.Errorf("%d bytes of trailing data", r.N))
24507 func (obj *ItemDef) Serialize(w io.Writer) {
24510 w := new(bytes.Buffer)
24512 local294 := uint8(6)
24515 write8(w, uint8(x))
24518 if err := pcall(func() {
24524 InvImg, WieldImg Texture
24525 WieldScale [3]float32
24530 CanPointLiquids bool
24536 PlacePredict string
24538 PlaceSnd, PlaceFailSnd SoundDef
24542 // Set index in Palette with "palette_index" item meta field,
24543 // this overrides Color.
24547 // Texture overlays.
24548 InvOverlay, WieldOverlay Texture
24553 }))(obj)).Type).Serialize(w)
24558 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
24560 if len(([]byte((*(*(struct {
24565 InvImg, WieldImg Texture
24566 WieldScale [3]float32
24571 CanPointLiquids bool
24577 PlacePredict string
24579 PlaceSnd, PlaceFailSnd SoundDef
24583 // Set index in Palette with "palette_index" item meta field,
24584 // this overrides Color.
24588 // Texture overlays.
24589 InvOverlay, WieldOverlay Texture
24594 }))(obj)).Name))) > math.MaxUint16 {
24598 x := uint16(len(([]byte((*(*(struct {
24603 InvImg, WieldImg Texture
24604 WieldScale [3]float32
24609 CanPointLiquids bool
24615 PlacePredict string
24617 PlaceSnd, PlaceFailSnd SoundDef
24621 // Set index in Palette with "palette_index" item meta field,
24622 // this overrides Color.
24626 // Texture overlays.
24627 InvOverlay, WieldOverlay Texture
24633 write16(w, uint16(x))
24636 _, err := w.Write(([]byte((*(*(struct {
24641 InvImg, WieldImg Texture
24642 WieldScale [3]float32
24647 CanPointLiquids bool
24653 PlacePredict string
24655 PlaceSnd, PlaceFailSnd SoundDef
24659 // Set index in Palette with "palette_index" item meta field,
24660 // this overrides Color.
24664 // Texture overlays.
24665 InvOverlay, WieldOverlay Texture
24670 }))(obj)).Name))[:])
24673 if len(([]byte((*(*(struct {
24678 InvImg, WieldImg Texture
24679 WieldScale [3]float32
24684 CanPointLiquids bool
24690 PlacePredict string
24692 PlaceSnd, PlaceFailSnd SoundDef
24696 // Set index in Palette with "palette_index" item meta field,
24697 // this overrides Color.
24701 // Texture overlays.
24702 InvOverlay, WieldOverlay Texture
24707 }))(obj)).Desc))) > math.MaxUint16 {
24711 x := uint16(len(([]byte((*(*(struct {
24716 InvImg, WieldImg Texture
24717 WieldScale [3]float32
24722 CanPointLiquids bool
24728 PlacePredict string
24730 PlaceSnd, PlaceFailSnd SoundDef
24734 // Set index in Palette with "palette_index" item meta field,
24735 // this overrides Color.
24739 // Texture overlays.
24740 InvOverlay, WieldOverlay Texture
24746 write16(w, uint16(x))
24749 _, err := w.Write(([]byte((*(*(struct {
24754 InvImg, WieldImg Texture
24755 WieldScale [3]float32
24760 CanPointLiquids bool
24766 PlacePredict string
24768 PlaceSnd, PlaceFailSnd SoundDef
24772 // Set index in Palette with "palette_index" item meta field,
24773 // this overrides Color.
24777 // Texture overlays.
24778 InvOverlay, WieldOverlay Texture
24783 }))(obj)).Desc))[:])
24786 if err := pcall(func() {
24792 InvImg, WieldImg Texture
24793 WieldScale [3]float32
24798 CanPointLiquids bool
24804 PlacePredict string
24806 PlaceSnd, PlaceFailSnd SoundDef
24810 // Set index in Palette with "palette_index" item meta field,
24811 // this overrides Color.
24815 // Texture overlays.
24816 InvOverlay, WieldOverlay Texture
24821 }))(obj)).InvImg).Serialize(w)
24826 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24828 if err := pcall(func() {
24834 InvImg, WieldImg Texture
24835 WieldScale [3]float32
24840 CanPointLiquids bool
24846 PlacePredict string
24848 PlaceSnd, PlaceFailSnd SoundDef
24852 // Set index in Palette with "palette_index" item meta field,
24853 // this overrides Color.
24857 // Texture overlays.
24858 InvOverlay, WieldOverlay Texture
24863 }))(obj)).WieldImg).Serialize(w)
24868 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
24870 for local295 := range (*(*(struct {
24875 InvImg, WieldImg Texture
24876 WieldScale [3]float32
24881 CanPointLiquids bool
24887 PlacePredict string
24889 PlaceSnd, PlaceFailSnd SoundDef
24893 // Set index in Palette with "palette_index" item meta field,
24894 // this overrides Color.
24898 // Texture overlays.
24899 InvOverlay, WieldOverlay Texture
24904 }))(obj)).WieldScale {
24906 x := ((*(*(struct {
24911 InvImg, WieldImg Texture
24912 WieldScale [3]float32
24917 CanPointLiquids bool
24923 PlacePredict string
24925 PlaceSnd, PlaceFailSnd SoundDef
24929 // Set index in Palette with "palette_index" item meta field,
24930 // this overrides Color.
24934 // Texture overlays.
24935 InvOverlay, WieldOverlay Texture
24940 }))(obj)).WieldScale)[local295]
24941 write32(w, math.Float32bits(x))
24950 InvImg, WieldImg Texture
24951 WieldScale [3]float32
24956 CanPointLiquids bool
24962 PlacePredict string
24964 PlaceSnd, PlaceFailSnd SoundDef
24968 // Set index in Palette with "palette_index" item meta field,
24969 // this overrides Color.
24973 // Texture overlays.
24974 InvOverlay, WieldOverlay Texture
24980 write16(w, uint16(x))
24988 InvImg, WieldImg Texture
24989 WieldScale [3]float32
24994 CanPointLiquids bool
25000 PlacePredict string
25002 PlaceSnd, PlaceFailSnd SoundDef
25006 // Set index in Palette with "palette_index" item meta field,
25007 // this overrides Color.
25011 // Texture overlays.
25012 InvOverlay, WieldOverlay Texture
25030 InvImg, WieldImg Texture
25031 WieldScale [3]float32
25036 CanPointLiquids bool
25042 PlacePredict string
25044 PlaceSnd, PlaceFailSnd SoundDef
25048 // Set index in Palette with "palette_index" item meta field,
25049 // this overrides Color.
25053 // Texture overlays.
25054 InvOverlay, WieldOverlay Texture
25059 }))(obj)).CanPointLiquids
25066 if err := pcall(func() {
25072 InvImg, WieldImg Texture
25073 WieldScale [3]float32
25078 CanPointLiquids bool
25084 PlacePredict string
25086 PlaceSnd, PlaceFailSnd SoundDef
25090 // Set index in Palette with "palette_index" item meta field,
25091 // this overrides Color.
25095 // Texture overlays.
25096 InvOverlay, WieldOverlay Texture
25101 }))(obj)).ToolCaps).Serialize(w)
25106 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
25108 if len(((*(*(struct {
25113 InvImg, WieldImg Texture
25114 WieldScale [3]float32
25119 CanPointLiquids bool
25125 PlacePredict string
25127 PlaceSnd, PlaceFailSnd SoundDef
25131 // Set index in Palette with "palette_index" item meta field,
25132 // this overrides Color.
25136 // Texture overlays.
25137 InvOverlay, WieldOverlay Texture
25142 }))(obj)).Groups)) > math.MaxUint16 {
25146 x := uint16(len(((*(*(struct {
25151 InvImg, WieldImg Texture
25152 WieldScale [3]float32
25157 CanPointLiquids bool
25163 PlacePredict string
25165 PlaceSnd, PlaceFailSnd SoundDef
25169 // Set index in Palette with "palette_index" item meta field,
25170 // this overrides Color.
25174 // Texture overlays.
25175 InvOverlay, WieldOverlay Texture
25180 }))(obj)).Groups)))
25181 write16(w, uint16(x))
25183 for local296 := range (*(*(struct {
25188 InvImg, WieldImg Texture
25189 WieldScale [3]float32
25194 CanPointLiquids bool
25200 PlacePredict string
25202 PlaceSnd, PlaceFailSnd SoundDef
25206 // Set index in Palette with "palette_index" item meta field,
25207 // this overrides Color.
25211 // Texture overlays.
25212 InvOverlay, WieldOverlay Texture
25218 if err := pcall(func() {
25224 InvImg, WieldImg Texture
25225 WieldScale [3]float32
25230 CanPointLiquids bool
25236 PlacePredict string
25238 PlaceSnd, PlaceFailSnd SoundDef
25242 // Set index in Palette with "palette_index" item meta field,
25243 // this overrides Color.
25247 // Texture overlays.
25248 InvOverlay, WieldOverlay Texture
25253 }))(obj)).Groups)[local296]).Serialize(w)
25258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
25261 if len(([]byte((*(*(struct {
25266 InvImg, WieldImg Texture
25267 WieldScale [3]float32
25272 CanPointLiquids bool
25278 PlacePredict string
25280 PlaceSnd, PlaceFailSnd SoundDef
25284 // Set index in Palette with "palette_index" item meta field,
25285 // this overrides Color.
25289 // Texture overlays.
25290 InvOverlay, WieldOverlay Texture
25295 }))(obj)).PlacePredict))) > math.MaxUint16 {
25299 x := uint16(len(([]byte((*(*(struct {
25304 InvImg, WieldImg Texture
25305 WieldScale [3]float32
25310 CanPointLiquids bool
25316 PlacePredict string
25318 PlaceSnd, PlaceFailSnd SoundDef
25322 // Set index in Palette with "palette_index" item meta field,
25323 // this overrides Color.
25327 // Texture overlays.
25328 InvOverlay, WieldOverlay Texture
25333 }))(obj)).PlacePredict))))
25334 write16(w, uint16(x))
25337 _, err := w.Write(([]byte((*(*(struct {
25342 InvImg, WieldImg Texture
25343 WieldScale [3]float32
25348 CanPointLiquids bool
25354 PlacePredict string
25356 PlaceSnd, PlaceFailSnd SoundDef
25360 // Set index in Palette with "palette_index" item meta field,
25361 // this overrides Color.
25365 // Texture overlays.
25366 InvOverlay, WieldOverlay Texture
25371 }))(obj)).PlacePredict))[:])
25374 if err := pcall(func() {
25380 InvImg, WieldImg Texture
25381 WieldScale [3]float32
25386 CanPointLiquids bool
25392 PlacePredict string
25394 PlaceSnd, PlaceFailSnd SoundDef
25398 // Set index in Palette with "palette_index" item meta field,
25399 // this overrides Color.
25403 // Texture overlays.
25404 InvOverlay, WieldOverlay Texture
25409 }))(obj)).PlaceSnd).Serialize(w)
25414 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25416 if err := pcall(func() {
25422 InvImg, WieldImg Texture
25423 WieldScale [3]float32
25428 CanPointLiquids bool
25434 PlacePredict string
25436 PlaceSnd, PlaceFailSnd SoundDef
25440 // Set index in Palette with "palette_index" item meta field,
25441 // this overrides Color.
25445 // Texture overlays.
25446 InvOverlay, WieldOverlay Texture
25451 }))(obj)).PlaceFailSnd).Serialize(w)
25456 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
25464 InvImg, WieldImg Texture
25465 WieldScale [3]float32
25470 CanPointLiquids bool
25476 PlacePredict string
25478 PlaceSnd, PlaceFailSnd SoundDef
25482 // Set index in Palette with "palette_index" item meta field,
25483 // this overrides Color.
25487 // Texture overlays.
25488 InvOverlay, WieldOverlay Texture
25493 }))(obj)).PointRange
25494 write32(w, math.Float32bits(x))
25496 if err := pcall(func() {
25502 InvImg, WieldImg Texture
25503 WieldScale [3]float32
25508 CanPointLiquids bool
25514 PlacePredict string
25516 PlaceSnd, PlaceFailSnd SoundDef
25520 // Set index in Palette with "palette_index" item meta field,
25521 // this overrides Color.
25525 // Texture overlays.
25526 InvOverlay, WieldOverlay Texture
25531 }))(obj)).Palette).Serialize(w)
25536 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25544 InvImg, WieldImg Texture
25545 WieldScale [3]float32
25550 CanPointLiquids bool
25556 PlacePredict string
25558 PlaceSnd, PlaceFailSnd SoundDef
25562 // Set index in Palette with "palette_index" item meta field,
25563 // this overrides Color.
25567 // Texture overlays.
25568 InvOverlay, WieldOverlay Texture
25574 w.Write([]byte{x.A, x.R, x.G, x.B})
25576 if err := pcall(func() {
25582 InvImg, WieldImg Texture
25583 WieldScale [3]float32
25588 CanPointLiquids bool
25594 PlacePredict string
25596 PlaceSnd, PlaceFailSnd SoundDef
25600 // Set index in Palette with "palette_index" item meta field,
25601 // this overrides Color.
25605 // Texture overlays.
25606 InvOverlay, WieldOverlay Texture
25611 }))(obj)).InvOverlay).Serialize(w)
25616 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25618 if err := pcall(func() {
25624 InvImg, WieldImg Texture
25625 WieldScale [3]float32
25630 CanPointLiquids bool
25636 PlacePredict string
25638 PlaceSnd, PlaceFailSnd SoundDef
25642 // Set index in Palette with "palette_index" item meta field,
25643 // this overrides Color.
25647 // Texture overlays.
25648 InvOverlay, WieldOverlay Texture
25653 }))(obj)).WieldOverlay).Serialize(w)
25658 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
25660 if len(([]byte((*(*(struct {
25665 InvImg, WieldImg Texture
25666 WieldScale [3]float32
25671 CanPointLiquids bool
25677 PlacePredict string
25679 PlaceSnd, PlaceFailSnd SoundDef
25683 // Set index in Palette with "palette_index" item meta field,
25684 // this overrides Color.
25688 // Texture overlays.
25689 InvOverlay, WieldOverlay Texture
25694 }))(obj)).ShortDesc))) > math.MaxUint16 {
25698 x := uint16(len(([]byte((*(*(struct {
25703 InvImg, WieldImg Texture
25704 WieldScale [3]float32
25709 CanPointLiquids bool
25715 PlacePredict string
25717 PlaceSnd, PlaceFailSnd SoundDef
25721 // Set index in Palette with "palette_index" item meta field,
25722 // this overrides Color.
25726 // Texture overlays.
25727 InvOverlay, WieldOverlay Texture
25732 }))(obj)).ShortDesc))))
25733 write16(w, uint16(x))
25736 _, err := w.Write(([]byte((*(*(struct {
25741 InvImg, WieldImg Texture
25742 WieldScale [3]float32
25747 CanPointLiquids bool
25753 PlacePredict string
25755 PlaceSnd, PlaceFailSnd SoundDef
25759 // Set index in Palette with "palette_index" item meta field,
25760 // this overrides Color.
25764 // Texture overlays.
25765 InvOverlay, WieldOverlay Texture
25770 }))(obj)).ShortDesc))[:])
25779 InvImg, WieldImg Texture
25780 WieldScale [3]float32
25785 CanPointLiquids bool
25791 PlacePredict string
25793 PlaceSnd, PlaceFailSnd SoundDef
25797 // Set index in Palette with "palette_index" item meta field,
25798 // this overrides Color.
25802 // Texture overlays.
25803 InvOverlay, WieldOverlay Texture
25808 }))(obj)).PlaceParam2
25809 write8(w, uint8(x))
25814 if len((buf.Bytes())) > math.MaxUint16 {
25818 x := uint16(len((buf.Bytes())))
25819 write16(w, uint16(x))
25822 _, err := w.Write((buf.Bytes())[:])
25829 func (obj *ItemDef) Deserialize(r io.Reader) {
25836 r := &io.LimitedReader{R: r, N: int64(n)}
25839 local298 := uint8(6)
25844 if local297 != local298 {
25845 chk(fmt.Errorf("const %v: %v", "uint8(6)", local297))
25848 if err := pcall(func() {
25854 InvImg, WieldImg Texture
25855 WieldScale [3]float32
25860 CanPointLiquids bool
25866 PlacePredict string
25868 PlaceSnd, PlaceFailSnd SoundDef
25872 // Set index in Palette with "palette_index" item meta field,
25873 // this overrides Color.
25877 // Texture overlays.
25878 InvOverlay, WieldOverlay Texture
25883 }))(obj)).Type).Deserialize(r)
25888 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ItemType", err))
25890 var local299 []uint8
25891 var local300 uint16
25896 (local299) = make([]uint8, local300)
25898 _, err := io.ReadFull(r, (local299)[:])
25906 InvImg, WieldImg Texture
25907 WieldScale [3]float32
25912 CanPointLiquids bool
25918 PlacePredict string
25920 PlaceSnd, PlaceFailSnd SoundDef
25924 // Set index in Palette with "palette_index" item meta field,
25925 // this overrides Color.
25929 // Texture overlays.
25930 InvOverlay, WieldOverlay Texture
25935 }))(obj)).Name) = string(local299)
25936 var local301 []uint8
25937 var local302 uint16
25942 (local301) = make([]uint8, local302)
25944 _, err := io.ReadFull(r, (local301)[:])
25952 InvImg, WieldImg Texture
25953 WieldScale [3]float32
25958 CanPointLiquids bool
25964 PlacePredict string
25966 PlaceSnd, PlaceFailSnd SoundDef
25970 // Set index in Palette with "palette_index" item meta field,
25971 // this overrides Color.
25975 // Texture overlays.
25976 InvOverlay, WieldOverlay Texture
25981 }))(obj)).Desc) = string(local301)
25982 if err := pcall(func() {
25988 InvImg, WieldImg Texture
25989 WieldScale [3]float32
25994 CanPointLiquids bool
26000 PlacePredict string
26002 PlaceSnd, PlaceFailSnd SoundDef
26006 // Set index in Palette with "palette_index" item meta field,
26007 // this overrides Color.
26011 // Texture overlays.
26012 InvOverlay, WieldOverlay Texture
26017 }))(obj)).InvImg).Deserialize(r)
26022 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26024 if err := pcall(func() {
26030 InvImg, WieldImg Texture
26031 WieldScale [3]float32
26036 CanPointLiquids bool
26042 PlacePredict string
26044 PlaceSnd, PlaceFailSnd SoundDef
26048 // Set index in Palette with "palette_index" item meta field,
26049 // this overrides Color.
26053 // Texture overlays.
26054 InvOverlay, WieldOverlay Texture
26059 }))(obj)).WieldImg).Deserialize(r)
26064 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26066 for local303 := range (*(*(struct {
26071 InvImg, WieldImg Texture
26072 WieldScale [3]float32
26077 CanPointLiquids bool
26083 PlacePredict string
26085 PlaceSnd, PlaceFailSnd SoundDef
26089 // Set index in Palette with "palette_index" item meta field,
26090 // this overrides Color.
26094 // Texture overlays.
26095 InvOverlay, WieldOverlay Texture
26100 }))(obj)).WieldScale {
26102 p := &((*(*(struct {
26107 InvImg, WieldImg Texture
26108 WieldScale [3]float32
26113 CanPointLiquids bool
26119 PlacePredict string
26121 PlaceSnd, PlaceFailSnd SoundDef
26125 // Set index in Palette with "palette_index" item meta field,
26126 // this overrides Color.
26130 // Texture overlays.
26131 InvOverlay, WieldOverlay Texture
26136 }))(obj)).WieldScale)[local303]
26137 *p = math.Float32frombits(read32(r))
26141 p := &(*(*(struct {
26146 InvImg, WieldImg Texture
26147 WieldScale [3]float32
26152 CanPointLiquids bool
26158 PlacePredict string
26160 PlaceSnd, PlaceFailSnd SoundDef
26164 // Set index in Palette with "palette_index" item meta field,
26165 // this overrides Color.
26169 // Texture overlays.
26170 InvOverlay, WieldOverlay Texture
26179 p := &(*(*(struct {
26184 InvImg, WieldImg Texture
26185 WieldScale [3]float32
26190 CanPointLiquids bool
26196 PlacePredict string
26198 PlaceSnd, PlaceFailSnd SoundDef
26202 // Set index in Palette with "palette_index" item meta field,
26203 // this overrides Color.
26207 // Texture overlays.
26208 InvOverlay, WieldOverlay Texture
26214 switch n := read8(r); n {
26220 chk(fmt.Errorf("invalid bool: %d", n))
26224 p := &(*(*(struct {
26229 InvImg, WieldImg Texture
26230 WieldScale [3]float32
26235 CanPointLiquids bool
26241 PlacePredict string
26243 PlaceSnd, PlaceFailSnd SoundDef
26247 // Set index in Palette with "palette_index" item meta field,
26248 // this overrides Color.
26252 // Texture overlays.
26253 InvOverlay, WieldOverlay Texture
26258 }))(obj)).CanPointLiquids
26259 switch n := read8(r); n {
26265 chk(fmt.Errorf("invalid bool: %d", n))
26268 if err := pcall(func() {
26274 InvImg, WieldImg Texture
26275 WieldScale [3]float32
26280 CanPointLiquids bool
26286 PlacePredict string
26288 PlaceSnd, PlaceFailSnd SoundDef
26292 // Set index in Palette with "palette_index" item meta field,
26293 // this overrides Color.
26297 // Texture overlays.
26298 InvOverlay, WieldOverlay Texture
26303 }))(obj)).ToolCaps).Deserialize(r)
26308 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolCaps", err))
26310 var local304 uint16
26320 InvImg, WieldImg Texture
26321 WieldScale [3]float32
26326 CanPointLiquids bool
26332 PlacePredict string
26334 PlaceSnd, PlaceFailSnd SoundDef
26338 // Set index in Palette with "palette_index" item meta field,
26339 // this overrides Color.
26343 // Texture overlays.
26344 InvOverlay, WieldOverlay Texture
26349 }))(obj)).Groups) = make([]Group, local304)
26350 for local305 := range (*(*(struct {
26355 InvImg, WieldImg Texture
26356 WieldScale [3]float32
26361 CanPointLiquids bool
26367 PlacePredict string
26369 PlaceSnd, PlaceFailSnd SoundDef
26373 // Set index in Palette with "palette_index" item meta field,
26374 // this overrides Color.
26378 // Texture overlays.
26379 InvOverlay, WieldOverlay Texture
26385 if err := pcall(func() {
26391 InvImg, WieldImg Texture
26392 WieldScale [3]float32
26397 CanPointLiquids bool
26403 PlacePredict string
26405 PlaceSnd, PlaceFailSnd SoundDef
26409 // Set index in Palette with "palette_index" item meta field,
26410 // this overrides Color.
26414 // Texture overlays.
26415 InvOverlay, WieldOverlay Texture
26420 }))(obj)).Groups)[local305]).Deserialize(r)
26425 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
26428 var local306 []uint8
26429 var local307 uint16
26434 (local306) = make([]uint8, local307)
26436 _, err := io.ReadFull(r, (local306)[:])
26444 InvImg, WieldImg Texture
26445 WieldScale [3]float32
26450 CanPointLiquids bool
26456 PlacePredict string
26458 PlaceSnd, PlaceFailSnd SoundDef
26462 // Set index in Palette with "palette_index" item meta field,
26463 // this overrides Color.
26467 // Texture overlays.
26468 InvOverlay, WieldOverlay Texture
26473 }))(obj)).PlacePredict) = string(local306)
26474 if err := pcall(func() {
26480 InvImg, WieldImg Texture
26481 WieldScale [3]float32
26486 CanPointLiquids bool
26492 PlacePredict string
26494 PlaceSnd, PlaceFailSnd SoundDef
26498 // Set index in Palette with "palette_index" item meta field,
26499 // this overrides Color.
26503 // Texture overlays.
26504 InvOverlay, WieldOverlay Texture
26509 }))(obj)).PlaceSnd).Deserialize(r)
26514 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26516 if err := pcall(func() {
26522 InvImg, WieldImg Texture
26523 WieldScale [3]float32
26528 CanPointLiquids bool
26534 PlacePredict string
26536 PlaceSnd, PlaceFailSnd SoundDef
26540 // Set index in Palette with "palette_index" item meta field,
26541 // this overrides Color.
26545 // Texture overlays.
26546 InvOverlay, WieldOverlay Texture
26551 }))(obj)).PlaceFailSnd).Deserialize(r)
26556 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.SoundDef", err))
26559 p := &(*(*(struct {
26564 InvImg, WieldImg Texture
26565 WieldScale [3]float32
26570 CanPointLiquids bool
26576 PlacePredict string
26578 PlaceSnd, PlaceFailSnd SoundDef
26582 // Set index in Palette with "palette_index" item meta field,
26583 // this overrides Color.
26587 // Texture overlays.
26588 InvOverlay, WieldOverlay Texture
26593 }))(obj)).PointRange
26594 *p = math.Float32frombits(read32(r))
26596 if err := pcall(func() {
26602 InvImg, WieldImg Texture
26603 WieldScale [3]float32
26608 CanPointLiquids bool
26614 PlacePredict string
26616 PlaceSnd, PlaceFailSnd SoundDef
26620 // Set index in Palette with "palette_index" item meta field,
26621 // this overrides Color.
26625 // Texture overlays.
26626 InvOverlay, WieldOverlay Texture
26631 }))(obj)).Palette).Deserialize(r)
26636 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26639 p := &(*(*(struct {
26644 InvImg, WieldImg Texture
26645 WieldScale [3]float32
26650 CanPointLiquids bool
26656 PlacePredict string
26658 PlaceSnd, PlaceFailSnd SoundDef
26662 // Set index in Palette with "palette_index" item meta field,
26663 // this overrides Color.
26667 // Texture overlays.
26668 InvOverlay, WieldOverlay Texture
26674 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
26676 if err := pcall(func() {
26682 InvImg, WieldImg Texture
26683 WieldScale [3]float32
26688 CanPointLiquids bool
26694 PlacePredict string
26696 PlaceSnd, PlaceFailSnd SoundDef
26700 // Set index in Palette with "palette_index" item meta field,
26701 // this overrides Color.
26705 // Texture overlays.
26706 InvOverlay, WieldOverlay Texture
26711 }))(obj)).InvOverlay).Deserialize(r)
26716 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26718 if err := pcall(func() {
26724 InvImg, WieldImg Texture
26725 WieldScale [3]float32
26730 CanPointLiquids bool
26736 PlacePredict string
26738 PlaceSnd, PlaceFailSnd SoundDef
26742 // Set index in Palette with "palette_index" item meta field,
26743 // this overrides Color.
26747 // Texture overlays.
26748 InvOverlay, WieldOverlay Texture
26753 }))(obj)).WieldOverlay).Deserialize(r)
26758 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
26760 var local308 []uint8
26761 var local309 uint16
26766 (local308) = make([]uint8, local309)
26768 _, err := io.ReadFull(r, (local308)[:])
26776 InvImg, WieldImg Texture
26777 WieldScale [3]float32
26782 CanPointLiquids bool
26788 PlacePredict string
26790 PlaceSnd, PlaceFailSnd SoundDef
26794 // Set index in Palette with "palette_index" item meta field,
26795 // this overrides Color.
26799 // Texture overlays.
26800 InvOverlay, WieldOverlay Texture
26805 }))(obj)).ShortDesc) = string(local308)
26807 p := &(*(*(struct {
26812 InvImg, WieldImg Texture
26813 WieldScale [3]float32
26818 CanPointLiquids bool
26824 PlacePredict string
26826 PlaceSnd, PlaceFailSnd SoundDef
26830 // Set index in Palette with "palette_index" item meta field,
26831 // this overrides Color.
26835 // Texture overlays.
26836 InvOverlay, WieldOverlay Texture
26841 }))(obj)).PlaceParam2
26845 chk(fmt.Errorf("%d bytes of trailing data", r.N))
26850 func (obj *SoundSrcType) Serialize(w io.Writer) {
26852 x := *(*(uint8))(obj)
26853 write8(w, uint8(x))
26857 func (obj *SoundSrcType) Deserialize(r io.Reader) {
26859 p := &*(*(uint8))(obj)
26864 func (obj *TileAnim) Serialize(w io.Writer) {
26865 if err := pcall(func() {
26869 //mt:if %s.Type == SpriteSheetAnim
26870 AspectRatio [2]uint8
26872 //mt:if %s.Type == VerticalFrameAnim
26875 //mt:if %s.Type != NoAnim
26876 Duration float32 // in seconds
26878 }))(obj)).Type).Serialize(w)
26883 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
26888 //mt:if %s.Type == SpriteSheetAnim
26889 AspectRatio [2]uint8
26891 //mt:if %s.Type == VerticalFrameAnim
26894 //mt:if %s.Type != NoAnim
26895 Duration float32 // in seconds
26897 }))(obj)).Type < maxAnim) {
26898 chk(errors.New("assertion failed: %s.Type < maxAnim"))
26903 //mt:if %s.Type == SpriteSheetAnim
26904 AspectRatio [2]uint8
26906 //mt:if %s.Type == VerticalFrameAnim
26909 //mt:if %s.Type != NoAnim
26910 Duration float32 // in seconds
26912 }))(obj)).Type == SpriteSheetAnim {
26914 _, err := w.Write(((*(*(struct {
26917 //mt:if %s.Type == SpriteSheetAnim
26918 AspectRatio [2]uint8
26920 //mt:if %s.Type == VerticalFrameAnim
26923 //mt:if %s.Type != NoAnim
26924 Duration float32 // in seconds
26926 }))(obj)).AspectRatio)[:])
26933 //mt:if %s.Type == SpriteSheetAnim
26934 AspectRatio [2]uint8
26936 //mt:if %s.Type == VerticalFrameAnim
26939 //mt:if %s.Type != NoAnim
26940 Duration float32 // in seconds
26942 }))(obj)).Type == VerticalFrameAnim {
26943 for local310 := range (*(*(struct {
26946 //mt:if %s.Type == SpriteSheetAnim
26947 AspectRatio [2]uint8
26949 //mt:if %s.Type == VerticalFrameAnim
26952 //mt:if %s.Type != NoAnim
26953 Duration float32 // in seconds
26955 }))(obj)).NFrames {
26957 x := ((*(*(struct {
26960 //mt:if %s.Type == SpriteSheetAnim
26961 AspectRatio [2]uint8
26963 //mt:if %s.Type == VerticalFrameAnim
26966 //mt:if %s.Type != NoAnim
26967 Duration float32 // in seconds
26969 }))(obj)).NFrames)[local310]
26970 write16(w, uint16(x))
26977 //mt:if %s.Type == SpriteSheetAnim
26978 AspectRatio [2]uint8
26980 //mt:if %s.Type == VerticalFrameAnim
26983 //mt:if %s.Type != NoAnim
26984 Duration float32 // in seconds
26986 }))(obj)).Type != NoAnim {
26991 //mt:if %s.Type == SpriteSheetAnim
26992 AspectRatio [2]uint8
26994 //mt:if %s.Type == VerticalFrameAnim
26997 //mt:if %s.Type != NoAnim
26998 Duration float32 // in seconds
27001 write32(w, math.Float32bits(x))
27006 func (obj *TileAnim) Deserialize(r io.Reader) {
27007 if err := pcall(func() {
27011 //mt:if %s.Type == SpriteSheetAnim
27012 AspectRatio [2]uint8
27014 //mt:if %s.Type == VerticalFrameAnim
27017 //mt:if %s.Type != NoAnim
27018 Duration float32 // in seconds
27020 }))(obj)).Type).Deserialize(r)
27025 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AnimType", err))
27030 //mt:if %s.Type == SpriteSheetAnim
27031 AspectRatio [2]uint8
27033 //mt:if %s.Type == VerticalFrameAnim
27036 //mt:if %s.Type != NoAnim
27037 Duration float32 // in seconds
27039 }))(obj)).Type < maxAnim) {
27040 chk(errors.New("assertion failed: %s.Type < maxAnim"))
27045 //mt:if %s.Type == SpriteSheetAnim
27046 AspectRatio [2]uint8
27048 //mt:if %s.Type == VerticalFrameAnim
27051 //mt:if %s.Type != NoAnim
27052 Duration float32 // in seconds
27054 }))(obj)).Type == SpriteSheetAnim {
27056 _, err := io.ReadFull(r, ((*(*(struct {
27059 //mt:if %s.Type == SpriteSheetAnim
27060 AspectRatio [2]uint8
27062 //mt:if %s.Type == VerticalFrameAnim
27065 //mt:if %s.Type != NoAnim
27066 Duration float32 // in seconds
27068 }))(obj)).AspectRatio)[:])
27075 //mt:if %s.Type == SpriteSheetAnim
27076 AspectRatio [2]uint8
27078 //mt:if %s.Type == VerticalFrameAnim
27081 //mt:if %s.Type != NoAnim
27082 Duration float32 // in seconds
27084 }))(obj)).Type == VerticalFrameAnim {
27085 for local311 := range (*(*(struct {
27088 //mt:if %s.Type == SpriteSheetAnim
27089 AspectRatio [2]uint8
27091 //mt:if %s.Type == VerticalFrameAnim
27094 //mt:if %s.Type != NoAnim
27095 Duration float32 // in seconds
27097 }))(obj)).NFrames {
27099 p := &((*(*(struct {
27102 //mt:if %s.Type == SpriteSheetAnim
27103 AspectRatio [2]uint8
27105 //mt:if %s.Type == VerticalFrameAnim
27108 //mt:if %s.Type != NoAnim
27109 Duration float32 // in seconds
27111 }))(obj)).NFrames)[local311]
27119 //mt:if %s.Type == SpriteSheetAnim
27120 AspectRatio [2]uint8
27122 //mt:if %s.Type == VerticalFrameAnim
27125 //mt:if %s.Type != NoAnim
27126 Duration float32 // in seconds
27128 }))(obj)).Type != NoAnim {
27130 p := &(*(*(struct {
27133 //mt:if %s.Type == SpriteSheetAnim
27134 AspectRatio [2]uint8
27136 //mt:if %s.Type == VerticalFrameAnim
27139 //mt:if %s.Type != NoAnim
27140 Duration float32 // in seconds
27143 *p = math.Float32frombits(read32(r))
27148 func (obj *Content) Serialize(w io.Writer) {
27150 x := *(*(uint16))(obj)
27151 write16(w, uint16(x))
27155 func (obj *Content) Deserialize(r io.Reader) {
27157 p := &*(*(uint16))(obj)
27162 func (obj *ParticleSpawnerID) Serialize(w io.Writer) {
27164 x := *(*(uint32))(obj)
27165 write32(w, uint32(x))
27169 func (obj *ParticleSpawnerID) Deserialize(r io.Reader) {
27171 p := &*(*(uint32))(obj)
27176 func (obj *HUDID) Serialize(w io.Writer) {
27178 x := *(*(uint32))(obj)
27179 write32(w, uint32(x))
27183 func (obj *HUDID) Deserialize(r io.Reader) {
27185 p := &*(*(uint32))(obj)
27190 func (obj *HUD) Serialize(w io.Writer) {
27191 if err := pcall(func() {
27208 Style HUDStyleFlags
27209 }))(obj)).Type).Serialize(w)
27214 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27216 for local312 := range (*(*(struct {
27232 Style HUDStyleFlags
27235 x := ((*(*(struct {
27251 Style HUDStyleFlags
27252 }))(obj)).Pos)[local312]
27253 write32(w, math.Float32bits(x))
27256 if len(([]byte((*(*(struct {
27272 Style HUDStyleFlags
27273 }))(obj)).Name))) > math.MaxUint16 {
27277 x := uint16(len(([]byte((*(*(struct {
27293 Style HUDStyleFlags
27295 write16(w, uint16(x))
27298 _, err := w.Write(([]byte((*(*(struct {
27314 Style HUDStyleFlags
27315 }))(obj)).Name))[:])
27318 for local313 := range (*(*(struct {
27334 Style HUDStyleFlags
27337 x := ((*(*(struct {
27353 Style HUDStyleFlags
27354 }))(obj)).Scale)[local313]
27355 write32(w, math.Float32bits(x))
27358 if len(([]byte((*(*(struct {
27374 Style HUDStyleFlags
27375 }))(obj)).Text))) > math.MaxUint16 {
27379 x := uint16(len(([]byte((*(*(struct {
27395 Style HUDStyleFlags
27397 write16(w, uint16(x))
27400 _, err := w.Write(([]byte((*(*(struct {
27416 Style HUDStyleFlags
27417 }))(obj)).Text))[:])
27437 Style HUDStyleFlags
27439 write32(w, uint32(x))
27458 Style HUDStyleFlags
27460 write32(w, uint32(x))
27479 Style HUDStyleFlags
27481 write32(w, uint32(x))
27483 for local314 := range (*(*(struct {
27499 Style HUDStyleFlags
27502 x := ((*(*(struct {
27518 Style HUDStyleFlags
27519 }))(obj)).Align)[local314]
27520 write32(w, math.Float32bits(x))
27523 for local315 := range (*(*(struct {
27539 Style HUDStyleFlags
27542 x := ((*(*(struct {
27558 Style HUDStyleFlags
27559 }))(obj)).Offset)[local315]
27560 write32(w, math.Float32bits(x))
27563 if err := pcall(func() {
27580 Style HUDStyleFlags
27581 }))(obj)).WorldPos).Serialize(w)
27586 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
27588 for local316 := range (*(*(struct {
27604 Style HUDStyleFlags
27607 x := ((*(*(struct {
27623 Style HUDStyleFlags
27624 }))(obj)).Size)[local316]
27625 write32(w, uint32(x))
27645 Style HUDStyleFlags
27647 write16(w, uint16(x))
27649 if len(([]byte((*(*(struct {
27665 Style HUDStyleFlags
27666 }))(obj)).Text2))) > math.MaxUint16 {
27670 x := uint16(len(([]byte((*(*(struct {
27686 Style HUDStyleFlags
27687 }))(obj)).Text2))))
27688 write16(w, uint16(x))
27691 _, err := w.Write(([]byte((*(*(struct {
27707 Style HUDStyleFlags
27708 }))(obj)).Text2))[:])
27711 if err := pcall(func() {
27728 Style HUDStyleFlags
27729 }))(obj)).Style).Serialize(w)
27734 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
27738 func (obj *HUD) Deserialize(r io.Reader) {
27739 if err := pcall(func() {
27756 Style HUDStyleFlags
27757 }))(obj)).Type).Deserialize(r)
27762 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDType", err))
27764 for local317 := range (*(*(struct {
27780 Style HUDStyleFlags
27783 p := &((*(*(struct {
27799 Style HUDStyleFlags
27800 }))(obj)).Pos)[local317]
27801 *p = math.Float32frombits(read32(r))
27804 var local318 []uint8
27805 var local319 uint16
27810 (local318) = make([]uint8, local319)
27812 _, err := io.ReadFull(r, (local318)[:])
27831 Style HUDStyleFlags
27832 }))(obj)).Name) = string(local318)
27833 for local320 := range (*(*(struct {
27849 Style HUDStyleFlags
27852 p := &((*(*(struct {
27868 Style HUDStyleFlags
27869 }))(obj)).Scale)[local320]
27870 *p = math.Float32frombits(read32(r))
27873 var local321 []uint8
27874 var local322 uint16
27879 (local321) = make([]uint8, local322)
27881 _, err := io.ReadFull(r, (local321)[:])
27900 Style HUDStyleFlags
27901 }))(obj)).Text) = string(local321)
27903 p := &(*(*(struct {
27919 Style HUDStyleFlags
27924 p := &(*(*(struct {
27940 Style HUDStyleFlags
27945 p := &(*(*(struct {
27961 Style HUDStyleFlags
27965 for local323 := range (*(*(struct {
27981 Style HUDStyleFlags
27984 p := &((*(*(struct {
28000 Style HUDStyleFlags
28001 }))(obj)).Align)[local323]
28002 *p = math.Float32frombits(read32(r))
28005 for local324 := range (*(*(struct {
28021 Style HUDStyleFlags
28024 p := &((*(*(struct {
28040 Style HUDStyleFlags
28041 }))(obj)).Offset)[local324]
28042 *p = math.Float32frombits(read32(r))
28045 if err := pcall(func() {
28062 Style HUDStyleFlags
28063 }))(obj)).WorldPos).Deserialize(r)
28068 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
28070 for local325 := range (*(*(struct {
28086 Style HUDStyleFlags
28089 p := &((*(*(struct {
28105 Style HUDStyleFlags
28106 }))(obj)).Size)[local325]
28107 *p = int32(read32(r))
28111 p := &(*(*(struct {
28127 Style HUDStyleFlags
28129 *p = int16(read16(r))
28131 var local326 []uint8
28132 var local327 uint16
28137 (local326) = make([]uint8, local327)
28139 _, err := io.ReadFull(r, (local326)[:])
28158 Style HUDStyleFlags
28159 }))(obj)).Text2) = string(local326)
28160 if err := pcall(func() {
28177 Style HUDStyleFlags
28178 }))(obj)).Style).Deserialize(r)
28183 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.HUDStyleFlags", err))
28187 func (obj *HUDField) Serialize(w io.Writer) {
28189 x := *(*(uint8))(obj)
28190 write8(w, uint8(x))
28194 func (obj *HUDField) Deserialize(r io.Reader) {
28196 p := &*(*(uint8))(obj)
28201 func (obj *HUDStyleFlags) Serialize(w io.Writer) {
28203 x := *(*(uint32))(obj)
28204 write32(w, uint32(x))
28208 func (obj *HUDStyleFlags) Deserialize(r io.Reader) {
28210 p := &*(*(uint32))(obj)
28215 func (obj *HUDFlags) Serialize(w io.Writer) {
28217 x := *(*(uint32))(obj)
28218 write32(w, uint32(x))
28222 func (obj *HUDFlags) Deserialize(r io.Reader) {
28224 p := &*(*(uint32))(obj)
28229 func (obj *HotbarParam) Serialize(w io.Writer) {
28231 x := *(*(uint16))(obj)
28232 write16(w, uint16(x))
28236 func (obj *HotbarParam) Deserialize(r io.Reader) {
28238 p := &*(*(uint16))(obj)
28243 func (obj *Texture) Serialize(w io.Writer) {
28244 if len(([]byte(*(*(string))(obj)))) > math.MaxUint16 {
28248 x := uint16(len(([]byte(*(*(string))(obj)))))
28249 write16(w, uint16(x))
28252 _, err := w.Write(([]byte(*(*(string))(obj)))[:])
28257 func (obj *Texture) Deserialize(r io.Reader) {
28258 var local328 []uint8
28259 var local329 uint16
28264 (local328) = make([]uint8, local329)
28266 _, err := io.ReadFull(r, (local328)[:])
28269 (*(*(string))(obj)) = string(local328)
28272 func (obj *PlayerListUpdateType) Serialize(w io.Writer) {
28274 x := *(*(uint8))(obj)
28275 write8(w, uint8(x))
28279 func (obj *PlayerListUpdateType) Deserialize(r io.Reader) {
28281 p := &*(*(uint8))(obj)
28286 func (obj *ModChanSig) Serialize(w io.Writer) {
28288 x := *(*(uint8))(obj)
28289 write8(w, uint8(x))
28293 func (obj *ModChanSig) Deserialize(r io.Reader) {
28295 p := &*(*(uint8))(obj)
28300 func (obj *AOProps) Serialize(w io.Writer) {
28302 local330 := uint8(4)
28305 write8(w, uint8(x))
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
28345 write16(w, uint16(x))
28349 MaxHP uint16 // Player only.
28350 CollideWithNodes bool
28351 Weight float32 // deprecated
28355 VisualSize [3]float32
28357 SpriteSheetSize [2]int16 // in sprites.
28358 SpritePos [2]int16 // in sprite sheet.
28360 MakeFootstepSnds bool
28361 RotateSpeed float32 // in radians per second.
28363 Colors []color.NRGBA
28364 CollideWithAOs bool
28367 FaceRotateDirOff float32 // in degrees.
28370 NametagColor color.NRGBA
28371 FaceRotateSpeed float32 // in degrees per second.
28375 MaxBreath uint16 // Player only.
28376 EyeHeight float32 // Player only.
28377 ZoomFOV float32 // in degrees. Player only.
28378 UseTextureAlpha bool
28379 DmgTextureMod Texture // suffix
28382 NametagBG color.NRGBA
28383 }))(obj)).CollideWithNodes
28392 MaxHP uint16 // Player only.
28393 CollideWithNodes bool
28394 Weight float32 // deprecated
28398 VisualSize [3]float32
28400 SpriteSheetSize [2]int16 // in sprites.
28401 SpritePos [2]int16 // in sprite sheet.
28403 MakeFootstepSnds bool
28404 RotateSpeed float32 // in radians per second.
28406 Colors []color.NRGBA
28407 CollideWithAOs bool
28410 FaceRotateDirOff float32 // in degrees.
28413 NametagColor color.NRGBA
28414 FaceRotateSpeed float32 // in degrees per second.
28418 MaxBreath uint16 // Player only.
28419 EyeHeight float32 // Player only.
28420 ZoomFOV float32 // in degrees. Player only.
28421 UseTextureAlpha bool
28422 DmgTextureMod Texture // suffix
28425 NametagBG color.NRGBA
28427 write32(w, math.Float32bits(x))
28429 if err := pcall(func() {
28431 MaxHP uint16 // Player only.
28432 CollideWithNodes bool
28433 Weight float32 // deprecated
28437 VisualSize [3]float32
28439 SpriteSheetSize [2]int16 // in sprites.
28440 SpritePos [2]int16 // in sprite sheet.
28442 MakeFootstepSnds bool
28443 RotateSpeed float32 // in radians per second.
28445 Colors []color.NRGBA
28446 CollideWithAOs bool
28449 FaceRotateDirOff float32 // in degrees.
28452 NametagColor color.NRGBA
28453 FaceRotateSpeed float32 // in degrees per second.
28457 MaxBreath uint16 // Player only.
28458 EyeHeight float32 // Player only.
28459 ZoomFOV float32 // in degrees. Player only.
28460 UseTextureAlpha bool
28461 DmgTextureMod Texture // suffix
28464 NametagBG color.NRGBA
28465 }))(obj)).ColBox).Serialize(w)
28470 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28472 if err := pcall(func() {
28474 MaxHP uint16 // Player only.
28475 CollideWithNodes bool
28476 Weight float32 // deprecated
28480 VisualSize [3]float32
28482 SpriteSheetSize [2]int16 // in sprites.
28483 SpritePos [2]int16 // in sprite sheet.
28485 MakeFootstepSnds bool
28486 RotateSpeed float32 // in radians per second.
28488 Colors []color.NRGBA
28489 CollideWithAOs bool
28492 FaceRotateDirOff float32 // in degrees.
28495 NametagColor color.NRGBA
28496 FaceRotateSpeed float32 // in degrees per second.
28500 MaxBreath uint16 // Player only.
28501 EyeHeight float32 // Player only.
28502 ZoomFOV float32 // in degrees. Player only.
28503 UseTextureAlpha bool
28504 DmgTextureMod Texture // suffix
28507 NametagBG color.NRGBA
28508 }))(obj)).SelBox).Serialize(w)
28513 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
28517 MaxHP uint16 // Player only.
28518 CollideWithNodes bool
28519 Weight float32 // deprecated
28523 VisualSize [3]float32
28525 SpriteSheetSize [2]int16 // in sprites.
28526 SpritePos [2]int16 // in sprite sheet.
28528 MakeFootstepSnds bool
28529 RotateSpeed float32 // in radians per second.
28531 Colors []color.NRGBA
28532 CollideWithAOs bool
28535 FaceRotateDirOff float32 // in degrees.
28538 NametagColor color.NRGBA
28539 FaceRotateSpeed float32 // in degrees per second.
28543 MaxBreath uint16 // Player only.
28544 EyeHeight float32 // Player only.
28545 ZoomFOV float32 // in degrees. Player only.
28546 UseTextureAlpha bool
28547 DmgTextureMod Texture // suffix
28550 NametagBG color.NRGBA
28551 }))(obj)).Pointable
28558 if len(([]byte((*(*(struct {
28559 MaxHP uint16 // Player only.
28560 CollideWithNodes bool
28561 Weight float32 // deprecated
28565 VisualSize [3]float32
28567 SpriteSheetSize [2]int16 // in sprites.
28568 SpritePos [2]int16 // in sprite sheet.
28570 MakeFootstepSnds bool
28571 RotateSpeed float32 // in radians per second.
28573 Colors []color.NRGBA
28574 CollideWithAOs bool
28577 FaceRotateDirOff float32 // in degrees.
28580 NametagColor color.NRGBA
28581 FaceRotateSpeed float32 // in degrees per second.
28585 MaxBreath uint16 // Player only.
28586 EyeHeight float32 // Player only.
28587 ZoomFOV float32 // in degrees. Player only.
28588 UseTextureAlpha bool
28589 DmgTextureMod Texture // suffix
28592 NametagBG color.NRGBA
28593 }))(obj)).Visual))) > math.MaxUint16 {
28597 x := uint16(len(([]byte((*(*(struct {
28598 MaxHP uint16 // Player only.
28599 CollideWithNodes bool
28600 Weight float32 // deprecated
28604 VisualSize [3]float32
28606 SpriteSheetSize [2]int16 // in sprites.
28607 SpritePos [2]int16 // in sprite sheet.
28609 MakeFootstepSnds bool
28610 RotateSpeed float32 // in radians per second.
28612 Colors []color.NRGBA
28613 CollideWithAOs bool
28616 FaceRotateDirOff float32 // in degrees.
28619 NametagColor color.NRGBA
28620 FaceRotateSpeed float32 // in degrees per second.
28624 MaxBreath uint16 // Player only.
28625 EyeHeight float32 // Player only.
28626 ZoomFOV float32 // in degrees. Player only.
28627 UseTextureAlpha bool
28628 DmgTextureMod Texture // suffix
28631 NametagBG color.NRGBA
28632 }))(obj)).Visual))))
28633 write16(w, uint16(x))
28636 _, err := w.Write(([]byte((*(*(struct {
28637 MaxHP uint16 // Player only.
28638 CollideWithNodes bool
28639 Weight float32 // deprecated
28643 VisualSize [3]float32
28645 SpriteSheetSize [2]int16 // in sprites.
28646 SpritePos [2]int16 // in sprite sheet.
28648 MakeFootstepSnds bool
28649 RotateSpeed float32 // in radians per second.
28651 Colors []color.NRGBA
28652 CollideWithAOs bool
28655 FaceRotateDirOff float32 // in degrees.
28658 NametagColor color.NRGBA
28659 FaceRotateSpeed float32 // in degrees per second.
28663 MaxBreath uint16 // Player only.
28664 EyeHeight float32 // Player only.
28665 ZoomFOV float32 // in degrees. Player only.
28666 UseTextureAlpha bool
28667 DmgTextureMod Texture // suffix
28670 NametagBG color.NRGBA
28671 }))(obj)).Visual))[:])
28674 for local331 := range (*(*(struct {
28675 MaxHP uint16 // Player only.
28676 CollideWithNodes bool
28677 Weight float32 // deprecated
28681 VisualSize [3]float32
28683 SpriteSheetSize [2]int16 // in sprites.
28684 SpritePos [2]int16 // in sprite sheet.
28686 MakeFootstepSnds bool
28687 RotateSpeed float32 // in radians per second.
28689 Colors []color.NRGBA
28690 CollideWithAOs bool
28693 FaceRotateDirOff float32 // in degrees.
28696 NametagColor color.NRGBA
28697 FaceRotateSpeed float32 // in degrees per second.
28701 MaxBreath uint16 // Player only.
28702 EyeHeight float32 // Player only.
28703 ZoomFOV float32 // in degrees. Player only.
28704 UseTextureAlpha bool
28705 DmgTextureMod Texture // suffix
28708 NametagBG color.NRGBA
28709 }))(obj)).VisualSize {
28711 x := ((*(*(struct {
28712 MaxHP uint16 // Player only.
28713 CollideWithNodes bool
28714 Weight float32 // deprecated
28718 VisualSize [3]float32
28720 SpriteSheetSize [2]int16 // in sprites.
28721 SpritePos [2]int16 // in sprite sheet.
28723 MakeFootstepSnds bool
28724 RotateSpeed float32 // in radians per second.
28726 Colors []color.NRGBA
28727 CollideWithAOs bool
28730 FaceRotateDirOff float32 // in degrees.
28733 NametagColor color.NRGBA
28734 FaceRotateSpeed float32 // in degrees per second.
28738 MaxBreath uint16 // Player only.
28739 EyeHeight float32 // Player only.
28740 ZoomFOV float32 // in degrees. Player only.
28741 UseTextureAlpha bool
28742 DmgTextureMod Texture // suffix
28745 NametagBG color.NRGBA
28746 }))(obj)).VisualSize)[local331]
28747 write32(w, math.Float32bits(x))
28750 if len(((*(*(struct {
28751 MaxHP uint16 // Player only.
28752 CollideWithNodes bool
28753 Weight float32 // deprecated
28757 VisualSize [3]float32
28759 SpriteSheetSize [2]int16 // in sprites.
28760 SpritePos [2]int16 // in sprite sheet.
28762 MakeFootstepSnds bool
28763 RotateSpeed float32 // in radians per second.
28765 Colors []color.NRGBA
28766 CollideWithAOs bool
28769 FaceRotateDirOff float32 // in degrees.
28772 NametagColor color.NRGBA
28773 FaceRotateSpeed float32 // in degrees per second.
28777 MaxBreath uint16 // Player only.
28778 EyeHeight float32 // Player only.
28779 ZoomFOV float32 // in degrees. Player only.
28780 UseTextureAlpha bool
28781 DmgTextureMod Texture // suffix
28784 NametagBG color.NRGBA
28785 }))(obj)).Textures)) > math.MaxUint16 {
28789 x := uint16(len(((*(*(struct {
28790 MaxHP uint16 // Player only.
28791 CollideWithNodes bool
28792 Weight float32 // deprecated
28796 VisualSize [3]float32
28798 SpriteSheetSize [2]int16 // in sprites.
28799 SpritePos [2]int16 // in sprite sheet.
28801 MakeFootstepSnds bool
28802 RotateSpeed float32 // in radians per second.
28804 Colors []color.NRGBA
28805 CollideWithAOs bool
28808 FaceRotateDirOff float32 // in degrees.
28811 NametagColor color.NRGBA
28812 FaceRotateSpeed float32 // in degrees per second.
28816 MaxBreath uint16 // Player only.
28817 EyeHeight float32 // Player only.
28818 ZoomFOV float32 // in degrees. Player only.
28819 UseTextureAlpha bool
28820 DmgTextureMod Texture // suffix
28823 NametagBG color.NRGBA
28824 }))(obj)).Textures)))
28825 write16(w, uint16(x))
28827 for local332 := range (*(*(struct {
28828 MaxHP uint16 // Player only.
28829 CollideWithNodes bool
28830 Weight float32 // deprecated
28834 VisualSize [3]float32
28836 SpriteSheetSize [2]int16 // in sprites.
28837 SpritePos [2]int16 // in sprite sheet.
28839 MakeFootstepSnds bool
28840 RotateSpeed float32 // in radians per second.
28842 Colors []color.NRGBA
28843 CollideWithAOs bool
28846 FaceRotateDirOff float32 // in degrees.
28849 NametagColor color.NRGBA
28850 FaceRotateSpeed float32 // in degrees per second.
28854 MaxBreath uint16 // Player only.
28855 EyeHeight float32 // Player only.
28856 ZoomFOV float32 // in degrees. Player only.
28857 UseTextureAlpha bool
28858 DmgTextureMod Texture // suffix
28861 NametagBG color.NRGBA
28862 }))(obj)).Textures {
28863 if err := pcall(func() {
28865 MaxHP uint16 // Player only.
28866 CollideWithNodes bool
28867 Weight float32 // deprecated
28871 VisualSize [3]float32
28873 SpriteSheetSize [2]int16 // in sprites.
28874 SpritePos [2]int16 // in sprite sheet.
28876 MakeFootstepSnds bool
28877 RotateSpeed float32 // in radians per second.
28879 Colors []color.NRGBA
28880 CollideWithAOs bool
28883 FaceRotateDirOff float32 // in degrees.
28886 NametagColor color.NRGBA
28887 FaceRotateSpeed float32 // in degrees per second.
28891 MaxBreath uint16 // Player only.
28892 EyeHeight float32 // Player only.
28893 ZoomFOV float32 // in degrees. Player only.
28894 UseTextureAlpha bool
28895 DmgTextureMod Texture // suffix
28898 NametagBG color.NRGBA
28899 }))(obj)).Textures)[local332]).Serialize(w)
28904 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
28907 for local333 := range (*(*(struct {
28908 MaxHP uint16 // Player only.
28909 CollideWithNodes bool
28910 Weight float32 // deprecated
28914 VisualSize [3]float32
28916 SpriteSheetSize [2]int16 // in sprites.
28917 SpritePos [2]int16 // in sprite sheet.
28919 MakeFootstepSnds bool
28920 RotateSpeed float32 // in radians per second.
28922 Colors []color.NRGBA
28923 CollideWithAOs bool
28926 FaceRotateDirOff float32 // in degrees.
28929 NametagColor color.NRGBA
28930 FaceRotateSpeed float32 // in degrees per second.
28934 MaxBreath uint16 // Player only.
28935 EyeHeight float32 // Player only.
28936 ZoomFOV float32 // in degrees. Player only.
28937 UseTextureAlpha bool
28938 DmgTextureMod Texture // suffix
28941 NametagBG color.NRGBA
28942 }))(obj)).SpriteSheetSize {
28944 x := ((*(*(struct {
28945 MaxHP uint16 // Player only.
28946 CollideWithNodes bool
28947 Weight float32 // deprecated
28951 VisualSize [3]float32
28953 SpriteSheetSize [2]int16 // in sprites.
28954 SpritePos [2]int16 // in sprite sheet.
28956 MakeFootstepSnds bool
28957 RotateSpeed float32 // in radians per second.
28959 Colors []color.NRGBA
28960 CollideWithAOs bool
28963 FaceRotateDirOff float32 // in degrees.
28966 NametagColor color.NRGBA
28967 FaceRotateSpeed float32 // in degrees per second.
28971 MaxBreath uint16 // Player only.
28972 EyeHeight float32 // Player only.
28973 ZoomFOV float32 // in degrees. Player only.
28974 UseTextureAlpha bool
28975 DmgTextureMod Texture // suffix
28978 NametagBG color.NRGBA
28979 }))(obj)).SpriteSheetSize)[local333]
28980 write16(w, uint16(x))
28983 for local334 := range (*(*(struct {
28984 MaxHP uint16 // Player only.
28985 CollideWithNodes bool
28986 Weight float32 // deprecated
28990 VisualSize [3]float32
28992 SpriteSheetSize [2]int16 // in sprites.
28993 SpritePos [2]int16 // in sprite sheet.
28995 MakeFootstepSnds bool
28996 RotateSpeed float32 // in radians per second.
28998 Colors []color.NRGBA
28999 CollideWithAOs bool
29002 FaceRotateDirOff float32 // in degrees.
29005 NametagColor color.NRGBA
29006 FaceRotateSpeed float32 // in degrees per second.
29010 MaxBreath uint16 // Player only.
29011 EyeHeight float32 // Player only.
29012 ZoomFOV float32 // in degrees. Player only.
29013 UseTextureAlpha bool
29014 DmgTextureMod Texture // suffix
29017 NametagBG color.NRGBA
29018 }))(obj)).SpritePos {
29020 x := ((*(*(struct {
29021 MaxHP uint16 // Player only.
29022 CollideWithNodes bool
29023 Weight float32 // deprecated
29027 VisualSize [3]float32
29029 SpriteSheetSize [2]int16 // in sprites.
29030 SpritePos [2]int16 // in sprite sheet.
29032 MakeFootstepSnds bool
29033 RotateSpeed float32 // in radians per second.
29035 Colors []color.NRGBA
29036 CollideWithAOs bool
29039 FaceRotateDirOff float32 // in degrees.
29042 NametagColor color.NRGBA
29043 FaceRotateSpeed float32 // in degrees per second.
29047 MaxBreath uint16 // Player only.
29048 EyeHeight float32 // Player only.
29049 ZoomFOV float32 // in degrees. Player only.
29050 UseTextureAlpha bool
29051 DmgTextureMod Texture // suffix
29054 NametagBG color.NRGBA
29055 }))(obj)).SpritePos)[local334]
29056 write16(w, uint16(x))
29061 MaxHP uint16 // Player only.
29062 CollideWithNodes bool
29063 Weight float32 // deprecated
29067 VisualSize [3]float32
29069 SpriteSheetSize [2]int16 // in sprites.
29070 SpritePos [2]int16 // in sprite sheet.
29072 MakeFootstepSnds bool
29073 RotateSpeed float32 // in radians per second.
29075 Colors []color.NRGBA
29076 CollideWithAOs bool
29079 FaceRotateDirOff float32 // in degrees.
29082 NametagColor color.NRGBA
29083 FaceRotateSpeed float32 // in degrees per second.
29087 MaxBreath uint16 // Player only.
29088 EyeHeight float32 // Player only.
29089 ZoomFOV float32 // in degrees. Player only.
29090 UseTextureAlpha bool
29091 DmgTextureMod Texture // suffix
29094 NametagBG color.NRGBA
29104 MaxHP uint16 // Player only.
29105 CollideWithNodes bool
29106 Weight float32 // deprecated
29110 VisualSize [3]float32
29112 SpriteSheetSize [2]int16 // in sprites.
29113 SpritePos [2]int16 // in sprite sheet.
29115 MakeFootstepSnds bool
29116 RotateSpeed float32 // in radians per second.
29118 Colors []color.NRGBA
29119 CollideWithAOs bool
29122 FaceRotateDirOff float32 // in degrees.
29125 NametagColor color.NRGBA
29126 FaceRotateSpeed float32 // in degrees per second.
29130 MaxBreath uint16 // Player only.
29131 EyeHeight float32 // Player only.
29132 ZoomFOV float32 // in degrees. Player only.
29133 UseTextureAlpha bool
29134 DmgTextureMod Texture // suffix
29137 NametagBG color.NRGBA
29138 }))(obj)).MakeFootstepSnds
29147 MaxHP uint16 // Player only.
29148 CollideWithNodes bool
29149 Weight float32 // deprecated
29153 VisualSize [3]float32
29155 SpriteSheetSize [2]int16 // in sprites.
29156 SpritePos [2]int16 // in sprite sheet.
29158 MakeFootstepSnds bool
29159 RotateSpeed float32 // in radians per second.
29161 Colors []color.NRGBA
29162 CollideWithAOs bool
29165 FaceRotateDirOff float32 // in degrees.
29168 NametagColor color.NRGBA
29169 FaceRotateSpeed float32 // in degrees per second.
29173 MaxBreath uint16 // Player only.
29174 EyeHeight float32 // Player only.
29175 ZoomFOV float32 // in degrees. Player only.
29176 UseTextureAlpha bool
29177 DmgTextureMod Texture // suffix
29180 NametagBG color.NRGBA
29181 }))(obj)).RotateSpeed
29182 write32(w, math.Float32bits(x))
29184 if len(([]byte((*(*(struct {
29185 MaxHP uint16 // Player only.
29186 CollideWithNodes bool
29187 Weight float32 // deprecated
29191 VisualSize [3]float32
29193 SpriteSheetSize [2]int16 // in sprites.
29194 SpritePos [2]int16 // in sprite sheet.
29196 MakeFootstepSnds bool
29197 RotateSpeed float32 // in radians per second.
29199 Colors []color.NRGBA
29200 CollideWithAOs bool
29203 FaceRotateDirOff float32 // in degrees.
29206 NametagColor color.NRGBA
29207 FaceRotateSpeed float32 // in degrees per second.
29211 MaxBreath uint16 // Player only.
29212 EyeHeight float32 // Player only.
29213 ZoomFOV float32 // in degrees. Player only.
29214 UseTextureAlpha bool
29215 DmgTextureMod Texture // suffix
29218 NametagBG color.NRGBA
29219 }))(obj)).Mesh))) > math.MaxUint16 {
29223 x := uint16(len(([]byte((*(*(struct {
29224 MaxHP uint16 // Player only.
29225 CollideWithNodes bool
29226 Weight float32 // deprecated
29230 VisualSize [3]float32
29232 SpriteSheetSize [2]int16 // in sprites.
29233 SpritePos [2]int16 // in sprite sheet.
29235 MakeFootstepSnds bool
29236 RotateSpeed float32 // in radians per second.
29238 Colors []color.NRGBA
29239 CollideWithAOs bool
29242 FaceRotateDirOff float32 // in degrees.
29245 NametagColor color.NRGBA
29246 FaceRotateSpeed float32 // in degrees per second.
29250 MaxBreath uint16 // Player only.
29251 EyeHeight float32 // Player only.
29252 ZoomFOV float32 // in degrees. Player only.
29253 UseTextureAlpha bool
29254 DmgTextureMod Texture // suffix
29257 NametagBG color.NRGBA
29259 write16(w, uint16(x))
29262 _, err := w.Write(([]byte((*(*(struct {
29263 MaxHP uint16 // Player only.
29264 CollideWithNodes bool
29265 Weight float32 // deprecated
29269 VisualSize [3]float32
29271 SpriteSheetSize [2]int16 // in sprites.
29272 SpritePos [2]int16 // in sprite sheet.
29274 MakeFootstepSnds bool
29275 RotateSpeed float32 // in radians per second.
29277 Colors []color.NRGBA
29278 CollideWithAOs bool
29281 FaceRotateDirOff float32 // in degrees.
29284 NametagColor color.NRGBA
29285 FaceRotateSpeed float32 // in degrees per second.
29289 MaxBreath uint16 // Player only.
29290 EyeHeight float32 // Player only.
29291 ZoomFOV float32 // in degrees. Player only.
29292 UseTextureAlpha bool
29293 DmgTextureMod Texture // suffix
29296 NametagBG color.NRGBA
29297 }))(obj)).Mesh))[:])
29300 if len(((*(*(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)).Colors)) > math.MaxUint16 {
29339 x := uint16(len(((*(*(struct {
29340 MaxHP uint16 // Player only.
29341 CollideWithNodes bool
29342 Weight float32 // deprecated
29346 VisualSize [3]float32
29348 SpriteSheetSize [2]int16 // in sprites.
29349 SpritePos [2]int16 // in sprite sheet.
29351 MakeFootstepSnds bool
29352 RotateSpeed float32 // in radians per second.
29354 Colors []color.NRGBA
29355 CollideWithAOs bool
29358 FaceRotateDirOff float32 // in degrees.
29361 NametagColor color.NRGBA
29362 FaceRotateSpeed float32 // in degrees per second.
29366 MaxBreath uint16 // Player only.
29367 EyeHeight float32 // Player only.
29368 ZoomFOV float32 // in degrees. Player only.
29369 UseTextureAlpha bool
29370 DmgTextureMod Texture // suffix
29373 NametagBG color.NRGBA
29374 }))(obj)).Colors)))
29375 write16(w, uint16(x))
29377 for local335 := range (*(*(struct {
29378 MaxHP uint16 // Player only.
29379 CollideWithNodes bool
29380 Weight float32 // deprecated
29384 VisualSize [3]float32
29386 SpriteSheetSize [2]int16 // in sprites.
29387 SpritePos [2]int16 // in sprite sheet.
29389 MakeFootstepSnds bool
29390 RotateSpeed float32 // in radians per second.
29392 Colors []color.NRGBA
29393 CollideWithAOs bool
29396 FaceRotateDirOff float32 // in degrees.
29399 NametagColor color.NRGBA
29400 FaceRotateSpeed float32 // in degrees per second.
29404 MaxBreath uint16 // Player only.
29405 EyeHeight float32 // Player only.
29406 ZoomFOV float32 // in degrees. Player only.
29407 UseTextureAlpha bool
29408 DmgTextureMod Texture // suffix
29411 NametagBG color.NRGBA
29414 x := ((*(*(struct {
29415 MaxHP uint16 // Player only.
29416 CollideWithNodes bool
29417 Weight float32 // deprecated
29421 VisualSize [3]float32
29423 SpriteSheetSize [2]int16 // in sprites.
29424 SpritePos [2]int16 // in sprite sheet.
29426 MakeFootstepSnds bool
29427 RotateSpeed float32 // in radians per second.
29429 Colors []color.NRGBA
29430 CollideWithAOs bool
29433 FaceRotateDirOff float32 // in degrees.
29436 NametagColor color.NRGBA
29437 FaceRotateSpeed float32 // in degrees per second.
29441 MaxBreath uint16 // Player only.
29442 EyeHeight float32 // Player only.
29443 ZoomFOV float32 // in degrees. Player only.
29444 UseTextureAlpha bool
29445 DmgTextureMod Texture // suffix
29448 NametagBG color.NRGBA
29449 }))(obj)).Colors)[local335]
29450 w.Write([]byte{x.A, x.R, x.G, x.B})
29455 MaxHP uint16 // Player only.
29456 CollideWithNodes bool
29457 Weight float32 // deprecated
29461 VisualSize [3]float32
29463 SpriteSheetSize [2]int16 // in sprites.
29464 SpritePos [2]int16 // in sprite sheet.
29466 MakeFootstepSnds bool
29467 RotateSpeed float32 // in radians per second.
29469 Colors []color.NRGBA
29470 CollideWithAOs bool
29473 FaceRotateDirOff float32 // in degrees.
29476 NametagColor color.NRGBA
29477 FaceRotateSpeed float32 // in degrees per second.
29481 MaxBreath uint16 // Player only.
29482 EyeHeight float32 // Player only.
29483 ZoomFOV float32 // in degrees. Player only.
29484 UseTextureAlpha bool
29485 DmgTextureMod Texture // suffix
29488 NametagBG color.NRGBA
29489 }))(obj)).CollideWithAOs
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)).StepHeight
29533 write32(w, math.Float32bits(x))
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)).FaceRotateDir
29580 MaxHP uint16 // Player only.
29581 CollideWithNodes bool
29582 Weight float32 // deprecated
29586 VisualSize [3]float32
29588 SpriteSheetSize [2]int16 // in sprites.
29589 SpritePos [2]int16 // in sprite sheet.
29591 MakeFootstepSnds bool
29592 RotateSpeed float32 // in radians per second.
29594 Colors []color.NRGBA
29595 CollideWithAOs bool
29598 FaceRotateDirOff float32 // in degrees.
29601 NametagColor color.NRGBA
29602 FaceRotateSpeed float32 // in degrees per second.
29606 MaxBreath uint16 // Player only.
29607 EyeHeight float32 // Player only.
29608 ZoomFOV float32 // in degrees. Player only.
29609 UseTextureAlpha bool
29610 DmgTextureMod Texture // suffix
29613 NametagBG color.NRGBA
29614 }))(obj)).FaceRotateDirOff
29615 write32(w, math.Float32bits(x))
29619 MaxHP uint16 // Player only.
29620 CollideWithNodes bool
29621 Weight float32 // deprecated
29625 VisualSize [3]float32
29627 SpriteSheetSize [2]int16 // in sprites.
29628 SpritePos [2]int16 // in sprite sheet.
29630 MakeFootstepSnds bool
29631 RotateSpeed float32 // in radians per second.
29633 Colors []color.NRGBA
29634 CollideWithAOs bool
29637 FaceRotateDirOff float32 // in degrees.
29640 NametagColor color.NRGBA
29641 FaceRotateSpeed float32 // in degrees per second.
29645 MaxBreath uint16 // Player only.
29646 EyeHeight float32 // Player only.
29647 ZoomFOV float32 // in degrees. Player only.
29648 UseTextureAlpha bool
29649 DmgTextureMod Texture // suffix
29652 NametagBG color.NRGBA
29653 }))(obj)).BackfaceCull
29660 if len(([]byte((*(*(struct {
29661 MaxHP uint16 // Player only.
29662 CollideWithNodes bool
29663 Weight float32 // deprecated
29667 VisualSize [3]float32
29669 SpriteSheetSize [2]int16 // in sprites.
29670 SpritePos [2]int16 // in sprite sheet.
29672 MakeFootstepSnds bool
29673 RotateSpeed float32 // in radians per second.
29675 Colors []color.NRGBA
29676 CollideWithAOs bool
29679 FaceRotateDirOff float32 // in degrees.
29682 NametagColor color.NRGBA
29683 FaceRotateSpeed float32 // in degrees per second.
29687 MaxBreath uint16 // Player only.
29688 EyeHeight float32 // Player only.
29689 ZoomFOV float32 // in degrees. Player only.
29690 UseTextureAlpha bool
29691 DmgTextureMod Texture // suffix
29694 NametagBG color.NRGBA
29695 }))(obj)).Nametag))) > math.MaxUint16 {
29699 x := uint16(len(([]byte((*(*(struct {
29700 MaxHP uint16 // Player only.
29701 CollideWithNodes bool
29702 Weight float32 // deprecated
29706 VisualSize [3]float32
29708 SpriteSheetSize [2]int16 // in sprites.
29709 SpritePos [2]int16 // in sprite sheet.
29711 MakeFootstepSnds bool
29712 RotateSpeed float32 // in radians per second.
29714 Colors []color.NRGBA
29715 CollideWithAOs bool
29718 FaceRotateDirOff float32 // in degrees.
29721 NametagColor color.NRGBA
29722 FaceRotateSpeed float32 // in degrees per second.
29726 MaxBreath uint16 // Player only.
29727 EyeHeight float32 // Player only.
29728 ZoomFOV float32 // in degrees. Player only.
29729 UseTextureAlpha bool
29730 DmgTextureMod Texture // suffix
29733 NametagBG color.NRGBA
29734 }))(obj)).Nametag))))
29735 write16(w, uint16(x))
29738 _, err := w.Write(([]byte((*(*(struct {
29739 MaxHP uint16 // Player only.
29740 CollideWithNodes bool
29741 Weight float32 // deprecated
29745 VisualSize [3]float32
29747 SpriteSheetSize [2]int16 // in sprites.
29748 SpritePos [2]int16 // in sprite sheet.
29750 MakeFootstepSnds bool
29751 RotateSpeed float32 // in radians per second.
29753 Colors []color.NRGBA
29754 CollideWithAOs bool
29757 FaceRotateDirOff float32 // in degrees.
29760 NametagColor color.NRGBA
29761 FaceRotateSpeed float32 // in degrees per second.
29765 MaxBreath uint16 // Player only.
29766 EyeHeight float32 // Player only.
29767 ZoomFOV float32 // in degrees. Player only.
29768 UseTextureAlpha bool
29769 DmgTextureMod Texture // suffix
29772 NametagBG color.NRGBA
29773 }))(obj)).Nametag))[:])
29778 MaxHP uint16 // Player only.
29779 CollideWithNodes bool
29780 Weight float32 // deprecated
29784 VisualSize [3]float32
29786 SpriteSheetSize [2]int16 // in sprites.
29787 SpritePos [2]int16 // in sprite sheet.
29789 MakeFootstepSnds bool
29790 RotateSpeed float32 // in radians per second.
29792 Colors []color.NRGBA
29793 CollideWithAOs bool
29796 FaceRotateDirOff float32 // in degrees.
29799 NametagColor color.NRGBA
29800 FaceRotateSpeed float32 // in degrees per second.
29804 MaxBreath uint16 // Player only.
29805 EyeHeight float32 // Player only.
29806 ZoomFOV float32 // in degrees. Player only.
29807 UseTextureAlpha bool
29808 DmgTextureMod Texture // suffix
29811 NametagBG color.NRGBA
29812 }))(obj)).NametagColor
29813 w.Write([]byte{x.A, x.R, x.G, x.B})
29817 MaxHP uint16 // Player only.
29818 CollideWithNodes bool
29819 Weight float32 // deprecated
29823 VisualSize [3]float32
29825 SpriteSheetSize [2]int16 // in sprites.
29826 SpritePos [2]int16 // in sprite sheet.
29828 MakeFootstepSnds bool
29829 RotateSpeed float32 // in radians per second.
29831 Colors []color.NRGBA
29832 CollideWithAOs bool
29835 FaceRotateDirOff float32 // in degrees.
29838 NametagColor color.NRGBA
29839 FaceRotateSpeed float32 // in degrees per second.
29843 MaxBreath uint16 // Player only.
29844 EyeHeight float32 // Player only.
29845 ZoomFOV float32 // in degrees. Player only.
29846 UseTextureAlpha bool
29847 DmgTextureMod Texture // suffix
29850 NametagBG color.NRGBA
29851 }))(obj)).FaceRotateSpeed
29852 write32(w, math.Float32bits(x))
29854 if len(([]byte((*(*(struct {
29855 MaxHP uint16 // Player only.
29856 CollideWithNodes bool
29857 Weight float32 // deprecated
29861 VisualSize [3]float32
29863 SpriteSheetSize [2]int16 // in sprites.
29864 SpritePos [2]int16 // in sprite sheet.
29866 MakeFootstepSnds bool
29867 RotateSpeed float32 // in radians per second.
29869 Colors []color.NRGBA
29870 CollideWithAOs bool
29873 FaceRotateDirOff float32 // in degrees.
29876 NametagColor color.NRGBA
29877 FaceRotateSpeed float32 // in degrees per second.
29881 MaxBreath uint16 // Player only.
29882 EyeHeight float32 // Player only.
29883 ZoomFOV float32 // in degrees. Player only.
29884 UseTextureAlpha bool
29885 DmgTextureMod Texture // suffix
29888 NametagBG color.NRGBA
29889 }))(obj)).Infotext))) > math.MaxUint16 {
29893 x := uint16(len(([]byte((*(*(struct {
29894 MaxHP uint16 // Player only.
29895 CollideWithNodes bool
29896 Weight float32 // deprecated
29900 VisualSize [3]float32
29902 SpriteSheetSize [2]int16 // in sprites.
29903 SpritePos [2]int16 // in sprite sheet.
29905 MakeFootstepSnds bool
29906 RotateSpeed float32 // in radians per second.
29908 Colors []color.NRGBA
29909 CollideWithAOs bool
29912 FaceRotateDirOff float32 // in degrees.
29915 NametagColor color.NRGBA
29916 FaceRotateSpeed float32 // in degrees per second.
29920 MaxBreath uint16 // Player only.
29921 EyeHeight float32 // Player only.
29922 ZoomFOV float32 // in degrees. Player only.
29923 UseTextureAlpha bool
29924 DmgTextureMod Texture // suffix
29927 NametagBG color.NRGBA
29928 }))(obj)).Infotext))))
29929 write16(w, uint16(x))
29932 _, err := w.Write(([]byte((*(*(struct {
29933 MaxHP uint16 // Player only.
29934 CollideWithNodes bool
29935 Weight float32 // deprecated
29939 VisualSize [3]float32
29941 SpriteSheetSize [2]int16 // in sprites.
29942 SpritePos [2]int16 // in sprite sheet.
29944 MakeFootstepSnds bool
29945 RotateSpeed float32 // in radians per second.
29947 Colors []color.NRGBA
29948 CollideWithAOs bool
29951 FaceRotateDirOff float32 // in degrees.
29954 NametagColor color.NRGBA
29955 FaceRotateSpeed float32 // in degrees per second.
29959 MaxBreath uint16 // Player only.
29960 EyeHeight float32 // Player only.
29961 ZoomFOV float32 // in degrees. Player only.
29962 UseTextureAlpha bool
29963 DmgTextureMod Texture // suffix
29966 NametagBG color.NRGBA
29967 }))(obj)).Infotext))[:])
29970 if len(([]byte((*(*(struct {
29971 MaxHP uint16 // Player only.
29972 CollideWithNodes bool
29973 Weight float32 // deprecated
29977 VisualSize [3]float32
29979 SpriteSheetSize [2]int16 // in sprites.
29980 SpritePos [2]int16 // in sprite sheet.
29982 MakeFootstepSnds bool
29983 RotateSpeed float32 // in radians per second.
29985 Colors []color.NRGBA
29986 CollideWithAOs bool
29989 FaceRotateDirOff float32 // in degrees.
29992 NametagColor color.NRGBA
29993 FaceRotateSpeed float32 // in degrees per second.
29997 MaxBreath uint16 // Player only.
29998 EyeHeight float32 // Player only.
29999 ZoomFOV float32 // in degrees. Player only.
30000 UseTextureAlpha bool
30001 DmgTextureMod Texture // suffix
30004 NametagBG color.NRGBA
30005 }))(obj)).Itemstring))) > math.MaxUint16 {
30009 x := uint16(len(([]byte((*(*(struct {
30010 MaxHP uint16 // Player only.
30011 CollideWithNodes bool
30012 Weight float32 // deprecated
30016 VisualSize [3]float32
30018 SpriteSheetSize [2]int16 // in sprites.
30019 SpritePos [2]int16 // in sprite sheet.
30021 MakeFootstepSnds bool
30022 RotateSpeed float32 // in radians per second.
30024 Colors []color.NRGBA
30025 CollideWithAOs bool
30028 FaceRotateDirOff float32 // in degrees.
30031 NametagColor color.NRGBA
30032 FaceRotateSpeed float32 // in degrees per second.
30036 MaxBreath uint16 // Player only.
30037 EyeHeight float32 // Player only.
30038 ZoomFOV float32 // in degrees. Player only.
30039 UseTextureAlpha bool
30040 DmgTextureMod Texture // suffix
30043 NametagBG color.NRGBA
30044 }))(obj)).Itemstring))))
30045 write16(w, uint16(x))
30048 _, err := w.Write(([]byte((*(*(struct {
30049 MaxHP uint16 // Player only.
30050 CollideWithNodes bool
30051 Weight float32 // deprecated
30055 VisualSize [3]float32
30057 SpriteSheetSize [2]int16 // in sprites.
30058 SpritePos [2]int16 // in sprite sheet.
30060 MakeFootstepSnds bool
30061 RotateSpeed float32 // in radians per second.
30063 Colors []color.NRGBA
30064 CollideWithAOs bool
30067 FaceRotateDirOff float32 // in degrees.
30070 NametagColor color.NRGBA
30071 FaceRotateSpeed float32 // in degrees per second.
30075 MaxBreath uint16 // Player only.
30076 EyeHeight float32 // Player only.
30077 ZoomFOV float32 // in degrees. Player only.
30078 UseTextureAlpha bool
30079 DmgTextureMod Texture // suffix
30082 NametagBG color.NRGBA
30083 }))(obj)).Itemstring))[:])
30088 MaxHP uint16 // Player only.
30089 CollideWithNodes bool
30090 Weight float32 // deprecated
30094 VisualSize [3]float32
30096 SpriteSheetSize [2]int16 // in sprites.
30097 SpritePos [2]int16 // in sprite sheet.
30099 MakeFootstepSnds bool
30100 RotateSpeed float32 // in radians per second.
30102 Colors []color.NRGBA
30103 CollideWithAOs bool
30106 FaceRotateDirOff float32 // in degrees.
30109 NametagColor color.NRGBA
30110 FaceRotateSpeed float32 // in degrees per second.
30114 MaxBreath uint16 // Player only.
30115 EyeHeight float32 // Player only.
30116 ZoomFOV float32 // in degrees. Player only.
30117 UseTextureAlpha bool
30118 DmgTextureMod Texture // suffix
30121 NametagBG color.NRGBA
30123 write8(w, uint8(x))
30127 MaxHP uint16 // Player only.
30128 CollideWithNodes bool
30129 Weight float32 // deprecated
30133 VisualSize [3]float32
30135 SpriteSheetSize [2]int16 // in sprites.
30136 SpritePos [2]int16 // in sprite sheet.
30138 MakeFootstepSnds bool
30139 RotateSpeed float32 // in radians per second.
30141 Colors []color.NRGBA
30142 CollideWithAOs bool
30145 FaceRotateDirOff float32 // in degrees.
30148 NametagColor color.NRGBA
30149 FaceRotateSpeed float32 // in degrees per second.
30153 MaxBreath uint16 // Player only.
30154 EyeHeight float32 // Player only.
30155 ZoomFOV float32 // in degrees. Player only.
30156 UseTextureAlpha bool
30157 DmgTextureMod Texture // suffix
30160 NametagBG color.NRGBA
30161 }))(obj)).MaxBreath
30162 write16(w, uint16(x))
30166 MaxHP uint16 // Player only.
30167 CollideWithNodes bool
30168 Weight float32 // deprecated
30172 VisualSize [3]float32
30174 SpriteSheetSize [2]int16 // in sprites.
30175 SpritePos [2]int16 // in sprite sheet.
30177 MakeFootstepSnds bool
30178 RotateSpeed float32 // in radians per second.
30180 Colors []color.NRGBA
30181 CollideWithAOs bool
30184 FaceRotateDirOff float32 // in degrees.
30187 NametagColor color.NRGBA
30188 FaceRotateSpeed float32 // in degrees per second.
30192 MaxBreath uint16 // Player only.
30193 EyeHeight float32 // Player only.
30194 ZoomFOV float32 // in degrees. Player only.
30195 UseTextureAlpha bool
30196 DmgTextureMod Texture // suffix
30199 NametagBG color.NRGBA
30200 }))(obj)).EyeHeight
30201 write32(w, math.Float32bits(x))
30205 MaxHP uint16 // Player only.
30206 CollideWithNodes bool
30207 Weight float32 // deprecated
30211 VisualSize [3]float32
30213 SpriteSheetSize [2]int16 // in sprites.
30214 SpritePos [2]int16 // in sprite sheet.
30216 MakeFootstepSnds bool
30217 RotateSpeed float32 // in radians per second.
30219 Colors []color.NRGBA
30220 CollideWithAOs bool
30223 FaceRotateDirOff float32 // in degrees.
30226 NametagColor color.NRGBA
30227 FaceRotateSpeed float32 // in degrees per second.
30231 MaxBreath uint16 // Player only.
30232 EyeHeight float32 // Player only.
30233 ZoomFOV float32 // in degrees. Player only.
30234 UseTextureAlpha bool
30235 DmgTextureMod Texture // suffix
30238 NametagBG color.NRGBA
30240 write32(w, math.Float32bits(x))
30244 MaxHP uint16 // Player only.
30245 CollideWithNodes bool
30246 Weight float32 // deprecated
30250 VisualSize [3]float32
30252 SpriteSheetSize [2]int16 // in sprites.
30253 SpritePos [2]int16 // in sprite sheet.
30255 MakeFootstepSnds bool
30256 RotateSpeed float32 // in radians per second.
30258 Colors []color.NRGBA
30259 CollideWithAOs bool
30262 FaceRotateDirOff float32 // in degrees.
30265 NametagColor color.NRGBA
30266 FaceRotateSpeed float32 // in degrees per second.
30270 MaxBreath uint16 // Player only.
30271 EyeHeight float32 // Player only.
30272 ZoomFOV float32 // in degrees. Player only.
30273 UseTextureAlpha bool
30274 DmgTextureMod Texture // suffix
30277 NametagBG color.NRGBA
30278 }))(obj)).UseTextureAlpha
30285 if err := pcall(func() {
30287 MaxHP uint16 // Player only.
30288 CollideWithNodes bool
30289 Weight float32 // deprecated
30293 VisualSize [3]float32
30295 SpriteSheetSize [2]int16 // in sprites.
30296 SpritePos [2]int16 // in sprite sheet.
30298 MakeFootstepSnds bool
30299 RotateSpeed float32 // in radians per second.
30301 Colors []color.NRGBA
30302 CollideWithAOs bool
30305 FaceRotateDirOff float32 // in degrees.
30308 NametagColor color.NRGBA
30309 FaceRotateSpeed float32 // in degrees per second.
30313 MaxBreath uint16 // Player only.
30314 EyeHeight float32 // Player only.
30315 ZoomFOV float32 // in degrees. Player only.
30316 UseTextureAlpha bool
30317 DmgTextureMod Texture // suffix
30320 NametagBG color.NRGBA
30321 }))(obj)).DmgTextureMod).Serialize(w)
30326 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30330 MaxHP uint16 // Player only.
30331 CollideWithNodes bool
30332 Weight float32 // deprecated
30336 VisualSize [3]float32
30338 SpriteSheetSize [2]int16 // in sprites.
30339 SpritePos [2]int16 // in sprite sheet.
30341 MakeFootstepSnds bool
30342 RotateSpeed float32 // in radians per second.
30344 Colors []color.NRGBA
30345 CollideWithAOs bool
30348 FaceRotateDirOff float32 // in degrees.
30351 NametagColor color.NRGBA
30352 FaceRotateSpeed float32 // in degrees per second.
30356 MaxBreath uint16 // Player only.
30357 EyeHeight float32 // Player only.
30358 ZoomFOV float32 // in degrees. Player only.
30359 UseTextureAlpha bool
30360 DmgTextureMod Texture // suffix
30363 NametagBG color.NRGBA
30373 MaxHP uint16 // Player only.
30374 CollideWithNodes bool
30375 Weight float32 // deprecated
30379 VisualSize [3]float32
30381 SpriteSheetSize [2]int16 // in sprites.
30382 SpritePos [2]int16 // in sprite sheet.
30384 MakeFootstepSnds bool
30385 RotateSpeed float32 // in radians per second.
30387 Colors []color.NRGBA
30388 CollideWithAOs bool
30391 FaceRotateDirOff float32 // in degrees.
30394 NametagColor color.NRGBA
30395 FaceRotateSpeed float32 // in degrees per second.
30399 MaxBreath uint16 // Player only.
30400 EyeHeight float32 // Player only.
30401 ZoomFOV float32 // in degrees. Player only.
30402 UseTextureAlpha bool
30403 DmgTextureMod Texture // suffix
30406 NametagBG color.NRGBA
30407 }))(obj)).ShowOnMinimap
30416 MaxHP uint16 // Player only.
30417 CollideWithNodes bool
30418 Weight float32 // deprecated
30422 VisualSize [3]float32
30424 SpriteSheetSize [2]int16 // in sprites.
30425 SpritePos [2]int16 // in sprite sheet.
30427 MakeFootstepSnds bool
30428 RotateSpeed float32 // in radians per second.
30430 Colors []color.NRGBA
30431 CollideWithAOs bool
30434 FaceRotateDirOff float32 // in degrees.
30437 NametagColor color.NRGBA
30438 FaceRotateSpeed float32 // in degrees per second.
30442 MaxBreath uint16 // Player only.
30443 EyeHeight float32 // Player only.
30444 ZoomFOV float32 // in degrees. Player only.
30445 UseTextureAlpha bool
30446 DmgTextureMod Texture // suffix
30449 NametagBG color.NRGBA
30450 }))(obj)).NametagBG
30451 w.Write([]byte{x.A, x.R, x.G, x.B})
30455 func (obj *AOProps) Deserialize(r io.Reader) {
30458 local337 := uint8(4)
30463 if local336 != local337 {
30464 chk(fmt.Errorf("const %v: %v", "uint8(4)", local336))
30468 p := &(*(*(struct {
30469 MaxHP uint16 // Player only.
30470 CollideWithNodes bool
30471 Weight float32 // deprecated
30475 VisualSize [3]float32
30477 SpriteSheetSize [2]int16 // in sprites.
30478 SpritePos [2]int16 // in sprite sheet.
30480 MakeFootstepSnds bool
30481 RotateSpeed float32 // in radians per second.
30483 Colors []color.NRGBA
30484 CollideWithAOs bool
30487 FaceRotateDirOff float32 // in degrees.
30490 NametagColor color.NRGBA
30491 FaceRotateSpeed float32 // in degrees per second.
30495 MaxBreath uint16 // Player only.
30496 EyeHeight float32 // Player only.
30497 ZoomFOV float32 // in degrees. Player only.
30498 UseTextureAlpha bool
30499 DmgTextureMod Texture // suffix
30502 NametagBG color.NRGBA
30507 p := &(*(*(struct {
30508 MaxHP uint16 // Player only.
30509 CollideWithNodes bool
30510 Weight float32 // deprecated
30514 VisualSize [3]float32
30516 SpriteSheetSize [2]int16 // in sprites.
30517 SpritePos [2]int16 // in sprite sheet.
30519 MakeFootstepSnds bool
30520 RotateSpeed float32 // in radians per second.
30522 Colors []color.NRGBA
30523 CollideWithAOs bool
30526 FaceRotateDirOff float32 // in degrees.
30529 NametagColor color.NRGBA
30530 FaceRotateSpeed float32 // in degrees per second.
30534 MaxBreath uint16 // Player only.
30535 EyeHeight float32 // Player only.
30536 ZoomFOV float32 // in degrees. Player only.
30537 UseTextureAlpha bool
30538 DmgTextureMod Texture // suffix
30541 NametagBG color.NRGBA
30542 }))(obj)).CollideWithNodes
30543 switch n := read8(r); n {
30549 chk(fmt.Errorf("invalid bool: %d", n))
30553 p := &(*(*(struct {
30554 MaxHP uint16 // Player only.
30555 CollideWithNodes bool
30556 Weight float32 // deprecated
30560 VisualSize [3]float32
30562 SpriteSheetSize [2]int16 // in sprites.
30563 SpritePos [2]int16 // in sprite sheet.
30565 MakeFootstepSnds bool
30566 RotateSpeed float32 // in radians per second.
30568 Colors []color.NRGBA
30569 CollideWithAOs bool
30572 FaceRotateDirOff float32 // in degrees.
30575 NametagColor color.NRGBA
30576 FaceRotateSpeed float32 // in degrees per second.
30580 MaxBreath uint16 // Player only.
30581 EyeHeight float32 // Player only.
30582 ZoomFOV float32 // in degrees. Player only.
30583 UseTextureAlpha bool
30584 DmgTextureMod Texture // suffix
30587 NametagBG color.NRGBA
30589 *p = math.Float32frombits(read32(r))
30591 if err := pcall(func() {
30593 MaxHP uint16 // Player only.
30594 CollideWithNodes bool
30595 Weight float32 // deprecated
30599 VisualSize [3]float32
30601 SpriteSheetSize [2]int16 // in sprites.
30602 SpritePos [2]int16 // in sprite sheet.
30604 MakeFootstepSnds bool
30605 RotateSpeed float32 // in radians per second.
30607 Colors []color.NRGBA
30608 CollideWithAOs bool
30611 FaceRotateDirOff float32 // in degrees.
30614 NametagColor color.NRGBA
30615 FaceRotateSpeed float32 // in degrees per second.
30619 MaxBreath uint16 // Player only.
30620 EyeHeight float32 // Player only.
30621 ZoomFOV float32 // in degrees. Player only.
30622 UseTextureAlpha bool
30623 DmgTextureMod Texture // suffix
30626 NametagBG color.NRGBA
30627 }))(obj)).ColBox).Deserialize(r)
30632 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30634 if err := pcall(func() {
30636 MaxHP uint16 // Player only.
30637 CollideWithNodes bool
30638 Weight float32 // deprecated
30642 VisualSize [3]float32
30644 SpriteSheetSize [2]int16 // in sprites.
30645 SpritePos [2]int16 // in sprite sheet.
30647 MakeFootstepSnds bool
30648 RotateSpeed float32 // in radians per second.
30650 Colors []color.NRGBA
30651 CollideWithAOs bool
30654 FaceRotateDirOff float32 // in degrees.
30657 NametagColor color.NRGBA
30658 FaceRotateSpeed float32 // in degrees per second.
30662 MaxBreath uint16 // Player only.
30663 EyeHeight float32 // Player only.
30664 ZoomFOV float32 // in degrees. Player only.
30665 UseTextureAlpha bool
30666 DmgTextureMod Texture // suffix
30669 NametagBG color.NRGBA
30670 }))(obj)).SelBox).Deserialize(r)
30675 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
30678 p := &(*(*(struct {
30679 MaxHP uint16 // Player only.
30680 CollideWithNodes bool
30681 Weight float32 // deprecated
30685 VisualSize [3]float32
30687 SpriteSheetSize [2]int16 // in sprites.
30688 SpritePos [2]int16 // in sprite sheet.
30690 MakeFootstepSnds bool
30691 RotateSpeed float32 // in radians per second.
30693 Colors []color.NRGBA
30694 CollideWithAOs bool
30697 FaceRotateDirOff float32 // in degrees.
30700 NametagColor color.NRGBA
30701 FaceRotateSpeed float32 // in degrees per second.
30705 MaxBreath uint16 // Player only.
30706 EyeHeight float32 // Player only.
30707 ZoomFOV float32 // in degrees. Player only.
30708 UseTextureAlpha bool
30709 DmgTextureMod Texture // suffix
30712 NametagBG color.NRGBA
30713 }))(obj)).Pointable
30714 switch n := read8(r); n {
30720 chk(fmt.Errorf("invalid bool: %d", n))
30723 var local338 []uint8
30724 var local339 uint16
30729 (local338) = make([]uint8, local339)
30731 _, err := io.ReadFull(r, (local338)[:])
30735 MaxHP uint16 // Player only.
30736 CollideWithNodes bool
30737 Weight float32 // deprecated
30741 VisualSize [3]float32
30743 SpriteSheetSize [2]int16 // in sprites.
30744 SpritePos [2]int16 // in sprite sheet.
30746 MakeFootstepSnds bool
30747 RotateSpeed float32 // in radians per second.
30749 Colors []color.NRGBA
30750 CollideWithAOs bool
30753 FaceRotateDirOff float32 // in degrees.
30756 NametagColor color.NRGBA
30757 FaceRotateSpeed float32 // in degrees per second.
30761 MaxBreath uint16 // Player only.
30762 EyeHeight float32 // Player only.
30763 ZoomFOV float32 // in degrees. Player only.
30764 UseTextureAlpha bool
30765 DmgTextureMod Texture // suffix
30768 NametagBG color.NRGBA
30769 }))(obj)).Visual) = string(local338)
30770 for local340 := range (*(*(struct {
30771 MaxHP uint16 // Player only.
30772 CollideWithNodes bool
30773 Weight float32 // deprecated
30777 VisualSize [3]float32
30779 SpriteSheetSize [2]int16 // in sprites.
30780 SpritePos [2]int16 // in sprite sheet.
30782 MakeFootstepSnds bool
30783 RotateSpeed float32 // in radians per second.
30785 Colors []color.NRGBA
30786 CollideWithAOs bool
30789 FaceRotateDirOff float32 // in degrees.
30792 NametagColor color.NRGBA
30793 FaceRotateSpeed float32 // in degrees per second.
30797 MaxBreath uint16 // Player only.
30798 EyeHeight float32 // Player only.
30799 ZoomFOV float32 // in degrees. Player only.
30800 UseTextureAlpha bool
30801 DmgTextureMod Texture // suffix
30804 NametagBG color.NRGBA
30805 }))(obj)).VisualSize {
30807 p := &((*(*(struct {
30808 MaxHP uint16 // Player only.
30809 CollideWithNodes bool
30810 Weight float32 // deprecated
30814 VisualSize [3]float32
30816 SpriteSheetSize [2]int16 // in sprites.
30817 SpritePos [2]int16 // in sprite sheet.
30819 MakeFootstepSnds bool
30820 RotateSpeed float32 // in radians per second.
30822 Colors []color.NRGBA
30823 CollideWithAOs bool
30826 FaceRotateDirOff float32 // in degrees.
30829 NametagColor color.NRGBA
30830 FaceRotateSpeed float32 // in degrees per second.
30834 MaxBreath uint16 // Player only.
30835 EyeHeight float32 // Player only.
30836 ZoomFOV float32 // in degrees. Player only.
30837 UseTextureAlpha bool
30838 DmgTextureMod Texture // suffix
30841 NametagBG color.NRGBA
30842 }))(obj)).VisualSize)[local340]
30843 *p = math.Float32frombits(read32(r))
30846 var local341 uint16
30852 MaxHP uint16 // Player only.
30853 CollideWithNodes bool
30854 Weight float32 // deprecated
30858 VisualSize [3]float32
30860 SpriteSheetSize [2]int16 // in sprites.
30861 SpritePos [2]int16 // in sprite sheet.
30863 MakeFootstepSnds bool
30864 RotateSpeed float32 // in radians per second.
30866 Colors []color.NRGBA
30867 CollideWithAOs bool
30870 FaceRotateDirOff float32 // in degrees.
30873 NametagColor color.NRGBA
30874 FaceRotateSpeed float32 // in degrees per second.
30878 MaxBreath uint16 // Player only.
30879 EyeHeight float32 // Player only.
30880 ZoomFOV float32 // in degrees. Player only.
30881 UseTextureAlpha bool
30882 DmgTextureMod Texture // suffix
30885 NametagBG color.NRGBA
30886 }))(obj)).Textures) = make([]Texture, local341)
30887 for local342 := range (*(*(struct {
30888 MaxHP uint16 // Player only.
30889 CollideWithNodes bool
30890 Weight float32 // deprecated
30894 VisualSize [3]float32
30896 SpriteSheetSize [2]int16 // in sprites.
30897 SpritePos [2]int16 // in sprite sheet.
30899 MakeFootstepSnds bool
30900 RotateSpeed float32 // in radians per second.
30902 Colors []color.NRGBA
30903 CollideWithAOs bool
30906 FaceRotateDirOff float32 // in degrees.
30909 NametagColor color.NRGBA
30910 FaceRotateSpeed float32 // in degrees per second.
30914 MaxBreath uint16 // Player only.
30915 EyeHeight float32 // Player only.
30916 ZoomFOV float32 // in degrees. Player only.
30917 UseTextureAlpha bool
30918 DmgTextureMod Texture // suffix
30921 NametagBG color.NRGBA
30922 }))(obj)).Textures {
30923 if err := pcall(func() {
30925 MaxHP uint16 // Player only.
30926 CollideWithNodes bool
30927 Weight float32 // deprecated
30931 VisualSize [3]float32
30933 SpriteSheetSize [2]int16 // in sprites.
30934 SpritePos [2]int16 // in sprite sheet.
30936 MakeFootstepSnds bool
30937 RotateSpeed float32 // in radians per second.
30939 Colors []color.NRGBA
30940 CollideWithAOs bool
30943 FaceRotateDirOff float32 // in degrees.
30946 NametagColor color.NRGBA
30947 FaceRotateSpeed float32 // in degrees per second.
30951 MaxBreath uint16 // Player only.
30952 EyeHeight float32 // Player only.
30953 ZoomFOV float32 // in degrees. Player only.
30954 UseTextureAlpha bool
30955 DmgTextureMod Texture // suffix
30958 NametagBG color.NRGBA
30959 }))(obj)).Textures)[local342]).Deserialize(r)
30964 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
30967 for local343 := range (*(*(struct {
30968 MaxHP uint16 // Player only.
30969 CollideWithNodes bool
30970 Weight float32 // deprecated
30974 VisualSize [3]float32
30976 SpriteSheetSize [2]int16 // in sprites.
30977 SpritePos [2]int16 // in sprite sheet.
30979 MakeFootstepSnds bool
30980 RotateSpeed float32 // in radians per second.
30982 Colors []color.NRGBA
30983 CollideWithAOs bool
30986 FaceRotateDirOff float32 // in degrees.
30989 NametagColor color.NRGBA
30990 FaceRotateSpeed float32 // in degrees per second.
30994 MaxBreath uint16 // Player only.
30995 EyeHeight float32 // Player only.
30996 ZoomFOV float32 // in degrees. Player only.
30997 UseTextureAlpha bool
30998 DmgTextureMod Texture // suffix
31001 NametagBG color.NRGBA
31002 }))(obj)).SpriteSheetSize {
31004 p := &((*(*(struct {
31005 MaxHP uint16 // Player only.
31006 CollideWithNodes bool
31007 Weight float32 // deprecated
31011 VisualSize [3]float32
31013 SpriteSheetSize [2]int16 // in sprites.
31014 SpritePos [2]int16 // in sprite sheet.
31016 MakeFootstepSnds bool
31017 RotateSpeed float32 // in radians per second.
31019 Colors []color.NRGBA
31020 CollideWithAOs bool
31023 FaceRotateDirOff float32 // in degrees.
31026 NametagColor color.NRGBA
31027 FaceRotateSpeed float32 // in degrees per second.
31031 MaxBreath uint16 // Player only.
31032 EyeHeight float32 // Player only.
31033 ZoomFOV float32 // in degrees. Player only.
31034 UseTextureAlpha bool
31035 DmgTextureMod Texture // suffix
31038 NametagBG color.NRGBA
31039 }))(obj)).SpriteSheetSize)[local343]
31040 *p = int16(read16(r))
31043 for local344 := range (*(*(struct {
31044 MaxHP uint16 // Player only.
31045 CollideWithNodes bool
31046 Weight float32 // deprecated
31050 VisualSize [3]float32
31052 SpriteSheetSize [2]int16 // in sprites.
31053 SpritePos [2]int16 // in sprite sheet.
31055 MakeFootstepSnds bool
31056 RotateSpeed float32 // in radians per second.
31058 Colors []color.NRGBA
31059 CollideWithAOs bool
31062 FaceRotateDirOff float32 // in degrees.
31065 NametagColor color.NRGBA
31066 FaceRotateSpeed float32 // in degrees per second.
31070 MaxBreath uint16 // Player only.
31071 EyeHeight float32 // Player only.
31072 ZoomFOV float32 // in degrees. Player only.
31073 UseTextureAlpha bool
31074 DmgTextureMod Texture // suffix
31077 NametagBG color.NRGBA
31078 }))(obj)).SpritePos {
31080 p := &((*(*(struct {
31081 MaxHP uint16 // Player only.
31082 CollideWithNodes bool
31083 Weight float32 // deprecated
31087 VisualSize [3]float32
31089 SpriteSheetSize [2]int16 // in sprites.
31090 SpritePos [2]int16 // in sprite sheet.
31092 MakeFootstepSnds bool
31093 RotateSpeed float32 // in radians per second.
31095 Colors []color.NRGBA
31096 CollideWithAOs bool
31099 FaceRotateDirOff float32 // in degrees.
31102 NametagColor color.NRGBA
31103 FaceRotateSpeed float32 // in degrees per second.
31107 MaxBreath uint16 // Player only.
31108 EyeHeight float32 // Player only.
31109 ZoomFOV float32 // in degrees. Player only.
31110 UseTextureAlpha bool
31111 DmgTextureMod Texture // suffix
31114 NametagBG color.NRGBA
31115 }))(obj)).SpritePos)[local344]
31116 *p = int16(read16(r))
31120 p := &(*(*(struct {
31121 MaxHP uint16 // Player only.
31122 CollideWithNodes bool
31123 Weight float32 // deprecated
31127 VisualSize [3]float32
31129 SpriteSheetSize [2]int16 // in sprites.
31130 SpritePos [2]int16 // in sprite sheet.
31132 MakeFootstepSnds bool
31133 RotateSpeed float32 // in radians per second.
31135 Colors []color.NRGBA
31136 CollideWithAOs bool
31139 FaceRotateDirOff float32 // in degrees.
31142 NametagColor color.NRGBA
31143 FaceRotateSpeed float32 // in degrees per second.
31147 MaxBreath uint16 // Player only.
31148 EyeHeight float32 // Player only.
31149 ZoomFOV float32 // in degrees. Player only.
31150 UseTextureAlpha bool
31151 DmgTextureMod Texture // suffix
31154 NametagBG color.NRGBA
31156 switch n := read8(r); n {
31162 chk(fmt.Errorf("invalid bool: %d", n))
31166 p := &(*(*(struct {
31167 MaxHP uint16 // Player only.
31168 CollideWithNodes bool
31169 Weight float32 // deprecated
31173 VisualSize [3]float32
31175 SpriteSheetSize [2]int16 // in sprites.
31176 SpritePos [2]int16 // in sprite sheet.
31178 MakeFootstepSnds bool
31179 RotateSpeed float32 // in radians per second.
31181 Colors []color.NRGBA
31182 CollideWithAOs bool
31185 FaceRotateDirOff float32 // in degrees.
31188 NametagColor color.NRGBA
31189 FaceRotateSpeed float32 // in degrees per second.
31193 MaxBreath uint16 // Player only.
31194 EyeHeight float32 // Player only.
31195 ZoomFOV float32 // in degrees. Player only.
31196 UseTextureAlpha bool
31197 DmgTextureMod Texture // suffix
31200 NametagBG color.NRGBA
31201 }))(obj)).MakeFootstepSnds
31202 switch n := read8(r); n {
31208 chk(fmt.Errorf("invalid bool: %d", n))
31212 p := &(*(*(struct {
31213 MaxHP uint16 // Player only.
31214 CollideWithNodes bool
31215 Weight float32 // deprecated
31219 VisualSize [3]float32
31221 SpriteSheetSize [2]int16 // in sprites.
31222 SpritePos [2]int16 // in sprite sheet.
31224 MakeFootstepSnds bool
31225 RotateSpeed float32 // in radians per second.
31227 Colors []color.NRGBA
31228 CollideWithAOs bool
31231 FaceRotateDirOff float32 // in degrees.
31234 NametagColor color.NRGBA
31235 FaceRotateSpeed float32 // in degrees per second.
31239 MaxBreath uint16 // Player only.
31240 EyeHeight float32 // Player only.
31241 ZoomFOV float32 // in degrees. Player only.
31242 UseTextureAlpha bool
31243 DmgTextureMod Texture // suffix
31246 NametagBG color.NRGBA
31247 }))(obj)).RotateSpeed
31248 *p = math.Float32frombits(read32(r))
31250 var local345 []uint8
31251 var local346 uint16
31256 (local345) = make([]uint8, local346)
31258 _, err := io.ReadFull(r, (local345)[:])
31262 MaxHP uint16 // Player only.
31263 CollideWithNodes bool
31264 Weight float32 // deprecated
31268 VisualSize [3]float32
31270 SpriteSheetSize [2]int16 // in sprites.
31271 SpritePos [2]int16 // in sprite sheet.
31273 MakeFootstepSnds bool
31274 RotateSpeed float32 // in radians per second.
31276 Colors []color.NRGBA
31277 CollideWithAOs bool
31280 FaceRotateDirOff float32 // in degrees.
31283 NametagColor color.NRGBA
31284 FaceRotateSpeed float32 // in degrees per second.
31288 MaxBreath uint16 // Player only.
31289 EyeHeight float32 // Player only.
31290 ZoomFOV float32 // in degrees. Player only.
31291 UseTextureAlpha bool
31292 DmgTextureMod Texture // suffix
31295 NametagBG color.NRGBA
31296 }))(obj)).Mesh) = string(local345)
31297 var local347 uint16
31303 MaxHP uint16 // Player only.
31304 CollideWithNodes bool
31305 Weight float32 // deprecated
31309 VisualSize [3]float32
31311 SpriteSheetSize [2]int16 // in sprites.
31312 SpritePos [2]int16 // in sprite sheet.
31314 MakeFootstepSnds bool
31315 RotateSpeed float32 // in radians per second.
31317 Colors []color.NRGBA
31318 CollideWithAOs bool
31321 FaceRotateDirOff float32 // in degrees.
31324 NametagColor color.NRGBA
31325 FaceRotateSpeed float32 // in degrees per second.
31329 MaxBreath uint16 // Player only.
31330 EyeHeight float32 // Player only.
31331 ZoomFOV float32 // in degrees. Player only.
31332 UseTextureAlpha bool
31333 DmgTextureMod Texture // suffix
31336 NametagBG color.NRGBA
31337 }))(obj)).Colors) = make([]color.NRGBA, local347)
31338 for local348 := range (*(*(struct {
31339 MaxHP uint16 // Player only.
31340 CollideWithNodes bool
31341 Weight float32 // deprecated
31345 VisualSize [3]float32
31347 SpriteSheetSize [2]int16 // in sprites.
31348 SpritePos [2]int16 // in sprite sheet.
31350 MakeFootstepSnds bool
31351 RotateSpeed float32 // in radians per second.
31353 Colors []color.NRGBA
31354 CollideWithAOs bool
31357 FaceRotateDirOff float32 // in degrees.
31360 NametagColor color.NRGBA
31361 FaceRotateSpeed float32 // in degrees per second.
31365 MaxBreath uint16 // Player only.
31366 EyeHeight float32 // Player only.
31367 ZoomFOV float32 // in degrees. Player only.
31368 UseTextureAlpha bool
31369 DmgTextureMod Texture // suffix
31372 NametagBG color.NRGBA
31375 p := &((*(*(struct {
31376 MaxHP uint16 // Player only.
31377 CollideWithNodes bool
31378 Weight float32 // deprecated
31382 VisualSize [3]float32
31384 SpriteSheetSize [2]int16 // in sprites.
31385 SpritePos [2]int16 // in sprite sheet.
31387 MakeFootstepSnds bool
31388 RotateSpeed float32 // in radians per second.
31390 Colors []color.NRGBA
31391 CollideWithAOs bool
31394 FaceRotateDirOff float32 // in degrees.
31397 NametagColor color.NRGBA
31398 FaceRotateSpeed float32 // in degrees per second.
31402 MaxBreath uint16 // Player only.
31403 EyeHeight float32 // Player only.
31404 ZoomFOV float32 // in degrees. Player only.
31405 UseTextureAlpha bool
31406 DmgTextureMod Texture // suffix
31409 NametagBG color.NRGBA
31410 }))(obj)).Colors)[local348]
31411 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31415 p := &(*(*(struct {
31416 MaxHP uint16 // Player only.
31417 CollideWithNodes bool
31418 Weight float32 // deprecated
31422 VisualSize [3]float32
31424 SpriteSheetSize [2]int16 // in sprites.
31425 SpritePos [2]int16 // in sprite sheet.
31427 MakeFootstepSnds bool
31428 RotateSpeed float32 // in radians per second.
31430 Colors []color.NRGBA
31431 CollideWithAOs bool
31434 FaceRotateDirOff float32 // in degrees.
31437 NametagColor color.NRGBA
31438 FaceRotateSpeed float32 // in degrees per second.
31442 MaxBreath uint16 // Player only.
31443 EyeHeight float32 // Player only.
31444 ZoomFOV float32 // in degrees. Player only.
31445 UseTextureAlpha bool
31446 DmgTextureMod Texture // suffix
31449 NametagBG color.NRGBA
31450 }))(obj)).CollideWithAOs
31451 switch n := read8(r); n {
31457 chk(fmt.Errorf("invalid bool: %d", n))
31461 p := &(*(*(struct {
31462 MaxHP uint16 // Player only.
31463 CollideWithNodes bool
31464 Weight float32 // deprecated
31468 VisualSize [3]float32
31470 SpriteSheetSize [2]int16 // in sprites.
31471 SpritePos [2]int16 // in sprite sheet.
31473 MakeFootstepSnds bool
31474 RotateSpeed float32 // in radians per second.
31476 Colors []color.NRGBA
31477 CollideWithAOs bool
31480 FaceRotateDirOff float32 // in degrees.
31483 NametagColor color.NRGBA
31484 FaceRotateSpeed float32 // in degrees per second.
31488 MaxBreath uint16 // Player only.
31489 EyeHeight float32 // Player only.
31490 ZoomFOV float32 // in degrees. Player only.
31491 UseTextureAlpha bool
31492 DmgTextureMod Texture // suffix
31495 NametagBG color.NRGBA
31496 }))(obj)).StepHeight
31497 *p = math.Float32frombits(read32(r))
31500 p := &(*(*(struct {
31501 MaxHP uint16 // Player only.
31502 CollideWithNodes bool
31503 Weight float32 // deprecated
31507 VisualSize [3]float32
31509 SpriteSheetSize [2]int16 // in sprites.
31510 SpritePos [2]int16 // in sprite sheet.
31512 MakeFootstepSnds bool
31513 RotateSpeed float32 // in radians per second.
31515 Colors []color.NRGBA
31516 CollideWithAOs bool
31519 FaceRotateDirOff float32 // in degrees.
31522 NametagColor color.NRGBA
31523 FaceRotateSpeed float32 // in degrees per second.
31527 MaxBreath uint16 // Player only.
31528 EyeHeight float32 // Player only.
31529 ZoomFOV float32 // in degrees. Player only.
31530 UseTextureAlpha bool
31531 DmgTextureMod Texture // suffix
31534 NametagBG color.NRGBA
31535 }))(obj)).FaceRotateDir
31536 switch n := read8(r); n {
31542 chk(fmt.Errorf("invalid bool: %d", n))
31546 p := &(*(*(struct {
31547 MaxHP uint16 // Player only.
31548 CollideWithNodes bool
31549 Weight float32 // deprecated
31553 VisualSize [3]float32
31555 SpriteSheetSize [2]int16 // in sprites.
31556 SpritePos [2]int16 // in sprite sheet.
31558 MakeFootstepSnds bool
31559 RotateSpeed float32 // in radians per second.
31561 Colors []color.NRGBA
31562 CollideWithAOs bool
31565 FaceRotateDirOff float32 // in degrees.
31568 NametagColor color.NRGBA
31569 FaceRotateSpeed float32 // in degrees per second.
31573 MaxBreath uint16 // Player only.
31574 EyeHeight float32 // Player only.
31575 ZoomFOV float32 // in degrees. Player only.
31576 UseTextureAlpha bool
31577 DmgTextureMod Texture // suffix
31580 NametagBG color.NRGBA
31581 }))(obj)).FaceRotateDirOff
31582 *p = math.Float32frombits(read32(r))
31585 p := &(*(*(struct {
31586 MaxHP uint16 // Player only.
31587 CollideWithNodes bool
31588 Weight float32 // deprecated
31592 VisualSize [3]float32
31594 SpriteSheetSize [2]int16 // in sprites.
31595 SpritePos [2]int16 // in sprite sheet.
31597 MakeFootstepSnds bool
31598 RotateSpeed float32 // in radians per second.
31600 Colors []color.NRGBA
31601 CollideWithAOs bool
31604 FaceRotateDirOff float32 // in degrees.
31607 NametagColor color.NRGBA
31608 FaceRotateSpeed float32 // in degrees per second.
31612 MaxBreath uint16 // Player only.
31613 EyeHeight float32 // Player only.
31614 ZoomFOV float32 // in degrees. Player only.
31615 UseTextureAlpha bool
31616 DmgTextureMod Texture // suffix
31619 NametagBG color.NRGBA
31620 }))(obj)).BackfaceCull
31621 switch n := read8(r); n {
31627 chk(fmt.Errorf("invalid bool: %d", n))
31630 var local349 []uint8
31631 var local350 uint16
31636 (local349) = make([]uint8, local350)
31638 _, err := io.ReadFull(r, (local349)[:])
31642 MaxHP uint16 // Player only.
31643 CollideWithNodes bool
31644 Weight float32 // deprecated
31648 VisualSize [3]float32
31650 SpriteSheetSize [2]int16 // in sprites.
31651 SpritePos [2]int16 // in sprite sheet.
31653 MakeFootstepSnds bool
31654 RotateSpeed float32 // in radians per second.
31656 Colors []color.NRGBA
31657 CollideWithAOs bool
31660 FaceRotateDirOff float32 // in degrees.
31663 NametagColor color.NRGBA
31664 FaceRotateSpeed float32 // in degrees per second.
31668 MaxBreath uint16 // Player only.
31669 EyeHeight float32 // Player only.
31670 ZoomFOV float32 // in degrees. Player only.
31671 UseTextureAlpha bool
31672 DmgTextureMod Texture // suffix
31675 NametagBG color.NRGBA
31676 }))(obj)).Nametag) = string(local349)
31678 p := &(*(*(struct {
31679 MaxHP uint16 // Player only.
31680 CollideWithNodes bool
31681 Weight float32 // deprecated
31685 VisualSize [3]float32
31687 SpriteSheetSize [2]int16 // in sprites.
31688 SpritePos [2]int16 // in sprite sheet.
31690 MakeFootstepSnds bool
31691 RotateSpeed float32 // in radians per second.
31693 Colors []color.NRGBA
31694 CollideWithAOs bool
31697 FaceRotateDirOff float32 // in degrees.
31700 NametagColor color.NRGBA
31701 FaceRotateSpeed float32 // in degrees per second.
31705 MaxBreath uint16 // Player only.
31706 EyeHeight float32 // Player only.
31707 ZoomFOV float32 // in degrees. Player only.
31708 UseTextureAlpha bool
31709 DmgTextureMod Texture // suffix
31712 NametagBG color.NRGBA
31713 }))(obj)).NametagColor
31714 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
31717 p := &(*(*(struct {
31718 MaxHP uint16 // Player only.
31719 CollideWithNodes bool
31720 Weight float32 // deprecated
31724 VisualSize [3]float32
31726 SpriteSheetSize [2]int16 // in sprites.
31727 SpritePos [2]int16 // in sprite sheet.
31729 MakeFootstepSnds bool
31730 RotateSpeed float32 // in radians per second.
31732 Colors []color.NRGBA
31733 CollideWithAOs bool
31736 FaceRotateDirOff float32 // in degrees.
31739 NametagColor color.NRGBA
31740 FaceRotateSpeed float32 // in degrees per second.
31744 MaxBreath uint16 // Player only.
31745 EyeHeight float32 // Player only.
31746 ZoomFOV float32 // in degrees. Player only.
31747 UseTextureAlpha bool
31748 DmgTextureMod Texture // suffix
31751 NametagBG color.NRGBA
31752 }))(obj)).FaceRotateSpeed
31753 *p = math.Float32frombits(read32(r))
31755 var local351 []uint8
31756 var local352 uint16
31761 (local351) = make([]uint8, local352)
31763 _, err := io.ReadFull(r, (local351)[:])
31767 MaxHP uint16 // Player only.
31768 CollideWithNodes bool
31769 Weight float32 // deprecated
31773 VisualSize [3]float32
31775 SpriteSheetSize [2]int16 // in sprites.
31776 SpritePos [2]int16 // in sprite sheet.
31778 MakeFootstepSnds bool
31779 RotateSpeed float32 // in radians per second.
31781 Colors []color.NRGBA
31782 CollideWithAOs bool
31785 FaceRotateDirOff float32 // in degrees.
31788 NametagColor color.NRGBA
31789 FaceRotateSpeed float32 // in degrees per second.
31793 MaxBreath uint16 // Player only.
31794 EyeHeight float32 // Player only.
31795 ZoomFOV float32 // in degrees. Player only.
31796 UseTextureAlpha bool
31797 DmgTextureMod Texture // suffix
31800 NametagBG color.NRGBA
31801 }))(obj)).Infotext) = string(local351)
31802 var local353 []uint8
31803 var local354 uint16
31808 (local353) = make([]uint8, local354)
31810 _, err := io.ReadFull(r, (local353)[:])
31814 MaxHP uint16 // Player only.
31815 CollideWithNodes bool
31816 Weight float32 // deprecated
31820 VisualSize [3]float32
31822 SpriteSheetSize [2]int16 // in sprites.
31823 SpritePos [2]int16 // in sprite sheet.
31825 MakeFootstepSnds bool
31826 RotateSpeed float32 // in radians per second.
31828 Colors []color.NRGBA
31829 CollideWithAOs bool
31832 FaceRotateDirOff float32 // in degrees.
31835 NametagColor color.NRGBA
31836 FaceRotateSpeed float32 // in degrees per second.
31840 MaxBreath uint16 // Player only.
31841 EyeHeight float32 // Player only.
31842 ZoomFOV float32 // in degrees. Player only.
31843 UseTextureAlpha bool
31844 DmgTextureMod Texture // suffix
31847 NametagBG color.NRGBA
31848 }))(obj)).Itemstring) = string(local353)
31850 p := &(*(*(struct {
31851 MaxHP uint16 // Player only.
31852 CollideWithNodes bool
31853 Weight float32 // deprecated
31857 VisualSize [3]float32
31859 SpriteSheetSize [2]int16 // in sprites.
31860 SpritePos [2]int16 // in sprite sheet.
31862 MakeFootstepSnds bool
31863 RotateSpeed float32 // in radians per second.
31865 Colors []color.NRGBA
31866 CollideWithAOs bool
31869 FaceRotateDirOff float32 // in degrees.
31872 NametagColor color.NRGBA
31873 FaceRotateSpeed float32 // in degrees per second.
31877 MaxBreath uint16 // Player only.
31878 EyeHeight float32 // Player only.
31879 ZoomFOV float32 // in degrees. Player only.
31880 UseTextureAlpha bool
31881 DmgTextureMod Texture // suffix
31884 NametagBG color.NRGBA
31886 *p = int8(read8(r))
31889 p := &(*(*(struct {
31890 MaxHP uint16 // Player only.
31891 CollideWithNodes bool
31892 Weight float32 // deprecated
31896 VisualSize [3]float32
31898 SpriteSheetSize [2]int16 // in sprites.
31899 SpritePos [2]int16 // in sprite sheet.
31901 MakeFootstepSnds bool
31902 RotateSpeed float32 // in radians per second.
31904 Colors []color.NRGBA
31905 CollideWithAOs bool
31908 FaceRotateDirOff float32 // in degrees.
31911 NametagColor color.NRGBA
31912 FaceRotateSpeed float32 // in degrees per second.
31916 MaxBreath uint16 // Player only.
31917 EyeHeight float32 // Player only.
31918 ZoomFOV float32 // in degrees. Player only.
31919 UseTextureAlpha bool
31920 DmgTextureMod Texture // suffix
31923 NametagBG color.NRGBA
31924 }))(obj)).MaxBreath
31928 p := &(*(*(struct {
31929 MaxHP uint16 // Player only.
31930 CollideWithNodes bool
31931 Weight float32 // deprecated
31935 VisualSize [3]float32
31937 SpriteSheetSize [2]int16 // in sprites.
31938 SpritePos [2]int16 // in sprite sheet.
31940 MakeFootstepSnds bool
31941 RotateSpeed float32 // in radians per second.
31943 Colors []color.NRGBA
31944 CollideWithAOs bool
31947 FaceRotateDirOff float32 // in degrees.
31950 NametagColor color.NRGBA
31951 FaceRotateSpeed float32 // in degrees per second.
31955 MaxBreath uint16 // Player only.
31956 EyeHeight float32 // Player only.
31957 ZoomFOV float32 // in degrees. Player only.
31958 UseTextureAlpha bool
31959 DmgTextureMod Texture // suffix
31962 NametagBG color.NRGBA
31963 }))(obj)).EyeHeight
31964 *p = math.Float32frombits(read32(r))
31967 p := &(*(*(struct {
31968 MaxHP uint16 // Player only.
31969 CollideWithNodes bool
31970 Weight float32 // deprecated
31974 VisualSize [3]float32
31976 SpriteSheetSize [2]int16 // in sprites.
31977 SpritePos [2]int16 // in sprite sheet.
31979 MakeFootstepSnds bool
31980 RotateSpeed float32 // in radians per second.
31982 Colors []color.NRGBA
31983 CollideWithAOs bool
31986 FaceRotateDirOff float32 // in degrees.
31989 NametagColor color.NRGBA
31990 FaceRotateSpeed float32 // in degrees per second.
31994 MaxBreath uint16 // Player only.
31995 EyeHeight float32 // Player only.
31996 ZoomFOV float32 // in degrees. Player only.
31997 UseTextureAlpha bool
31998 DmgTextureMod Texture // suffix
32001 NametagBG color.NRGBA
32003 *p = math.Float32frombits(read32(r))
32006 p := &(*(*(struct {
32007 MaxHP uint16 // Player only.
32008 CollideWithNodes bool
32009 Weight float32 // deprecated
32013 VisualSize [3]float32
32015 SpriteSheetSize [2]int16 // in sprites.
32016 SpritePos [2]int16 // in sprite sheet.
32018 MakeFootstepSnds bool
32019 RotateSpeed float32 // in radians per second.
32021 Colors []color.NRGBA
32022 CollideWithAOs bool
32025 FaceRotateDirOff float32 // in degrees.
32028 NametagColor color.NRGBA
32029 FaceRotateSpeed float32 // in degrees per second.
32033 MaxBreath uint16 // Player only.
32034 EyeHeight float32 // Player only.
32035 ZoomFOV float32 // in degrees. Player only.
32036 UseTextureAlpha bool
32037 DmgTextureMod Texture // suffix
32040 NametagBG color.NRGBA
32041 }))(obj)).UseTextureAlpha
32042 switch n := read8(r); n {
32048 chk(fmt.Errorf("invalid bool: %d", n))
32051 if err := pcall(func() {
32053 MaxHP uint16 // Player only.
32054 CollideWithNodes bool
32055 Weight float32 // deprecated
32059 VisualSize [3]float32
32061 SpriteSheetSize [2]int16 // in sprites.
32062 SpritePos [2]int16 // in sprite sheet.
32064 MakeFootstepSnds bool
32065 RotateSpeed float32 // in radians per second.
32067 Colors []color.NRGBA
32068 CollideWithAOs bool
32071 FaceRotateDirOff float32 // in degrees.
32074 NametagColor color.NRGBA
32075 FaceRotateSpeed float32 // in degrees per second.
32079 MaxBreath uint16 // Player only.
32080 EyeHeight float32 // Player only.
32081 ZoomFOV float32 // in degrees. Player only.
32082 UseTextureAlpha bool
32083 DmgTextureMod Texture // suffix
32086 NametagBG color.NRGBA
32087 }))(obj)).DmgTextureMod).Deserialize(r)
32092 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
32095 p := &(*(*(struct {
32096 MaxHP uint16 // Player only.
32097 CollideWithNodes bool
32098 Weight float32 // deprecated
32102 VisualSize [3]float32
32104 SpriteSheetSize [2]int16 // in sprites.
32105 SpritePos [2]int16 // in sprite sheet.
32107 MakeFootstepSnds bool
32108 RotateSpeed float32 // in radians per second.
32110 Colors []color.NRGBA
32111 CollideWithAOs bool
32114 FaceRotateDirOff float32 // in degrees.
32117 NametagColor color.NRGBA
32118 FaceRotateSpeed float32 // in degrees per second.
32122 MaxBreath uint16 // Player only.
32123 EyeHeight float32 // Player only.
32124 ZoomFOV float32 // in degrees. Player only.
32125 UseTextureAlpha bool
32126 DmgTextureMod Texture // suffix
32129 NametagBG color.NRGBA
32131 switch n := read8(r); n {
32137 chk(fmt.Errorf("invalid bool: %d", n))
32141 p := &(*(*(struct {
32142 MaxHP uint16 // Player only.
32143 CollideWithNodes bool
32144 Weight float32 // deprecated
32148 VisualSize [3]float32
32150 SpriteSheetSize [2]int16 // in sprites.
32151 SpritePos [2]int16 // in sprite sheet.
32153 MakeFootstepSnds bool
32154 RotateSpeed float32 // in radians per second.
32156 Colors []color.NRGBA
32157 CollideWithAOs bool
32160 FaceRotateDirOff float32 // in degrees.
32163 NametagColor color.NRGBA
32164 FaceRotateSpeed float32 // in degrees per second.
32168 MaxBreath uint16 // Player only.
32169 EyeHeight float32 // Player only.
32170 ZoomFOV float32 // in degrees. Player only.
32171 UseTextureAlpha bool
32172 DmgTextureMod Texture // suffix
32175 NametagBG color.NRGBA
32176 }))(obj)).ShowOnMinimap
32177 switch n := read8(r); n {
32183 chk(fmt.Errorf("invalid bool: %d", n))
32187 p := &(*(*(struct {
32188 MaxHP uint16 // Player only.
32189 CollideWithNodes bool
32190 Weight float32 // deprecated
32194 VisualSize [3]float32
32196 SpriteSheetSize [2]int16 // in sprites.
32197 SpritePos [2]int16 // in sprite sheet.
32199 MakeFootstepSnds bool
32200 RotateSpeed float32 // in radians per second.
32202 Colors []color.NRGBA
32203 CollideWithAOs bool
32206 FaceRotateDirOff float32 // in degrees.
32209 NametagColor color.NRGBA
32210 FaceRotateSpeed float32 // in degrees per second.
32214 MaxBreath uint16 // Player only.
32215 EyeHeight float32 // Player only.
32216 ZoomFOV float32 // in degrees. Player only.
32217 UseTextureAlpha bool
32218 DmgTextureMod Texture // suffix
32221 NametagBG color.NRGBA
32222 }))(obj)).NametagBG
32223 *p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
32227 func (obj *AOPos) Serialize(w io.Writer) {
32228 if err := pcall(func() {
32236 UpdateInterval float32
32237 }))(obj)).Pos).Serialize(w)
32242 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32244 if err := pcall(func() {
32252 UpdateInterval float32
32253 }))(obj)).Vel).Serialize(w)
32258 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32260 if err := pcall(func() {
32268 UpdateInterval float32
32269 }))(obj)).Acc).Serialize(w)
32274 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32276 for local355 := range (*(*(struct {
32283 UpdateInterval float32
32286 x := ((*(*(struct {
32293 UpdateInterval float32
32294 }))(obj)).Rot)[local355]
32295 write32(w, math.Float32bits(x))
32306 UpdateInterval float32
32307 }))(obj)).Interpolate
32322 UpdateInterval float32
32338 UpdateInterval float32
32339 }))(obj)).UpdateInterval
32340 write32(w, math.Float32bits(x))
32344 func (obj *AOPos) Deserialize(r io.Reader) {
32345 if err := pcall(func() {
32353 UpdateInterval float32
32354 }))(obj)).Pos).Deserialize(r)
32359 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
32361 if err := pcall(func() {
32369 UpdateInterval float32
32370 }))(obj)).Vel).Deserialize(r)
32375 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32377 if err := pcall(func() {
32385 UpdateInterval float32
32386 }))(obj)).Acc).Deserialize(r)
32391 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32393 for local356 := range (*(*(struct {
32400 UpdateInterval float32
32403 p := &((*(*(struct {
32410 UpdateInterval float32
32411 }))(obj)).Rot)[local356]
32412 *p = math.Float32frombits(read32(r))
32416 p := &(*(*(struct {
32423 UpdateInterval float32
32424 }))(obj)).Interpolate
32425 switch n := read8(r); n {
32431 chk(fmt.Errorf("invalid bool: %d", n))
32435 p := &(*(*(struct {
32442 UpdateInterval float32
32444 switch n := read8(r); n {
32450 chk(fmt.Errorf("invalid bool: %d", n))
32454 p := &(*(*(struct {
32461 UpdateInterval float32
32462 }))(obj)).UpdateInterval
32463 *p = math.Float32frombits(read32(r))
32467 func (obj *AOSprite) Serialize(w io.Writer) {
32468 for local357 := range (*(*(struct {
32471 FrameDuration float32
32472 ViewAngleFrames bool
32475 x := ((*(*(struct {
32478 FrameDuration float32
32479 ViewAngleFrames bool
32480 }))(obj)).Frame0)[local357]
32481 write16(w, uint16(x))
32488 FrameDuration float32
32489 ViewAngleFrames bool
32491 write16(w, uint16(x))
32497 FrameDuration float32
32498 ViewAngleFrames bool
32499 }))(obj)).FrameDuration
32500 write32(w, math.Float32bits(x))
32506 FrameDuration float32
32507 ViewAngleFrames bool
32508 }))(obj)).ViewAngleFrames
32517 func (obj *AOSprite) Deserialize(r io.Reader) {
32518 for local358 := range (*(*(struct {
32521 FrameDuration float32
32522 ViewAngleFrames bool
32525 p := &((*(*(struct {
32528 FrameDuration float32
32529 ViewAngleFrames bool
32530 }))(obj)).Frame0)[local358]
32531 *p = int16(read16(r))
32535 p := &(*(*(struct {
32538 FrameDuration float32
32539 ViewAngleFrames bool
32544 p := &(*(*(struct {
32547 FrameDuration float32
32548 ViewAngleFrames bool
32549 }))(obj)).FrameDuration
32550 *p = math.Float32frombits(read32(r))
32553 p := &(*(*(struct {
32556 FrameDuration float32
32557 ViewAngleFrames bool
32558 }))(obj)).ViewAngleFrames
32559 switch n := read8(r); n {
32565 chk(fmt.Errorf("invalid bool: %d", n))
32570 func (obj *Group) Serialize(w io.Writer) {
32571 if len(([]byte((*(*(struct {
32574 }))(obj)).Name))) > math.MaxUint16 {
32578 x := uint16(len(([]byte((*(*(struct {
32582 write16(w, uint16(x))
32585 _, err := w.Write(([]byte((*(*(struct {
32588 }))(obj)).Name))[:])
32596 write16(w, uint16(x))
32600 func (obj *Group) Deserialize(r io.Reader) {
32601 var local359 []uint8
32602 var local360 uint16
32607 (local359) = make([]uint8, local360)
32609 _, err := io.ReadFull(r, (local359)[:])
32615 }))(obj)).Name) = string(local359)
32617 p := &(*(*(struct {
32621 *p = int16(read16(r))
32625 func (obj *AOAnim) Serialize(w io.Writer) {
32626 for local361 := range (*(*(struct {
32633 x := ((*(*(struct {
32638 }))(obj)).Frames)[local361]
32639 write32(w, uint32(x))
32649 write32(w, math.Float32bits(x))
32658 write32(w, math.Float32bits(x))
32675 func (obj *AOAnim) Deserialize(r io.Reader) {
32676 for local362 := range (*(*(struct {
32683 p := &((*(*(struct {
32688 }))(obj)).Frames)[local362]
32689 *p = int32(read32(r))
32693 p := &(*(*(struct {
32699 *p = math.Float32frombits(read32(r))
32702 p := &(*(*(struct {
32708 *p = math.Float32frombits(read32(r))
32711 p := &(*(*(struct {
32717 switch n := read8(r); n {
32723 chk(fmt.Errorf("invalid bool: %d", n))
32728 func (obj *AOBonePos) Serialize(w io.Writer) {
32729 if err := pcall(func() {
32733 }))(obj)).Pos).Serialize(w)
32738 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32740 for local363 := range (*(*(struct {
32745 x := ((*(*(struct {
32748 }))(obj)).Rot)[local363]
32749 write32(w, math.Float32bits(x))
32754 func (obj *AOBonePos) Deserialize(r io.Reader) {
32755 if err := pcall(func() {
32759 }))(obj)).Pos).Deserialize(r)
32764 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32766 for local364 := range (*(*(struct {
32771 p := &((*(*(struct {
32774 }))(obj)).Rot)[local364]
32775 *p = math.Float32frombits(read32(r))
32780 func (obj *AOAttach) Serialize(w io.Writer) {
32781 if err := pcall(func() {
32788 }))(obj)).ParentID).Serialize(w)
32793 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32795 if len(([]byte((*(*(struct {
32801 }))(obj)).Bone))) > math.MaxUint16 {
32805 x := uint16(len(([]byte((*(*(struct {
32812 write16(w, uint16(x))
32815 _, err := w.Write(([]byte((*(*(struct {
32821 }))(obj)).Bone))[:])
32824 if err := pcall(func() {
32831 }))(obj)).Pos).Serialize(w)
32836 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32838 for local365 := range (*(*(struct {
32846 x := ((*(*(struct {
32852 }))(obj)).Rot)[local365]
32853 write32(w, math.Float32bits(x))
32863 }))(obj)).ForceVisible
32872 func (obj *AOAttach) Deserialize(r io.Reader) {
32873 if err := pcall(func() {
32880 }))(obj)).ParentID).Deserialize(r)
32885 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
32887 var local366 []uint8
32888 var local367 uint16
32893 (local366) = make([]uint8, local367)
32895 _, err := io.ReadFull(r, (local366)[:])
32904 }))(obj)).Bone) = string(local366)
32905 if err := pcall(func() {
32912 }))(obj)).Pos).Deserialize(r)
32917 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
32919 for local368 := range (*(*(struct {
32927 p := &((*(*(struct {
32933 }))(obj)).Rot)[local368]
32934 *p = math.Float32frombits(read32(r))
32938 p := &(*(*(struct {
32944 }))(obj)).ForceVisible
32945 switch n := read8(r); n {
32951 chk(fmt.Errorf("invalid bool: %d", n))
32956 func (obj *AOPhysOverride) Serialize(w io.Writer) {
32959 Walk, Jump, Gravity float32
32962 NoSneak, NoSneakGlitch, OldSneak bool
32964 write32(w, math.Float32bits(x))
32968 Walk, Jump, Gravity float32
32971 NoSneak, NoSneakGlitch, OldSneak bool
32973 write32(w, math.Float32bits(x))
32977 Walk, Jump, Gravity float32
32980 NoSneak, NoSneakGlitch, OldSneak bool
32982 write32(w, math.Float32bits(x))
32986 Walk, Jump, Gravity float32
32989 NoSneak, NoSneakGlitch, OldSneak bool
32999 Walk, Jump, Gravity float32
33002 NoSneak, NoSneakGlitch, OldSneak bool
33003 }))(obj)).NoSneakGlitch
33012 Walk, Jump, Gravity float32
33015 NoSneak, NoSneakGlitch, OldSneak bool
33025 func (obj *AOPhysOverride) Deserialize(r io.Reader) {
33027 p := &(*(*(struct {
33028 Walk, Jump, Gravity float32
33031 NoSneak, NoSneakGlitch, OldSneak bool
33033 *p = math.Float32frombits(read32(r))
33036 p := &(*(*(struct {
33037 Walk, Jump, Gravity float32
33040 NoSneak, NoSneakGlitch, OldSneak bool
33042 *p = math.Float32frombits(read32(r))
33045 p := &(*(*(struct {
33046 Walk, Jump, Gravity float32
33049 NoSneak, NoSneakGlitch, OldSneak bool
33051 *p = math.Float32frombits(read32(r))
33054 p := &(*(*(struct {
33055 Walk, Jump, Gravity float32
33058 NoSneak, NoSneakGlitch, OldSneak bool
33060 switch n := read8(r); n {
33066 chk(fmt.Errorf("invalid bool: %d", n))
33070 p := &(*(*(struct {
33071 Walk, Jump, Gravity float32
33074 NoSneak, NoSneakGlitch, OldSneak bool
33075 }))(obj)).NoSneakGlitch
33076 switch n := read8(r); n {
33082 chk(fmt.Errorf("invalid bool: %d", n))
33086 p := &(*(*(struct {
33087 Walk, Jump, Gravity float32
33090 NoSneak, NoSneakGlitch, OldSneak bool
33092 switch n := read8(r); n {
33098 chk(fmt.Errorf("invalid bool: %d", n))
33103 func (obj *aoType) Serialize(w io.Writer) {
33105 x := *(*(uint8))(obj)
33106 write8(w, uint8(x))
33110 func (obj *aoType) Deserialize(r io.Reader) {
33112 p := &*(*(uint8))(obj)
33117 func (obj *NodeMetaField) Serialize(w io.Writer) {
33118 if err := pcall(func() {
33122 }))(obj)).Field).Serialize(w)
33127 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33142 func (obj *NodeMetaField) Deserialize(r io.Reader) {
33143 if err := pcall(func() {
33147 }))(obj)).Field).Deserialize(r)
33152 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Field", err))
33155 p := &(*(*(struct {
33159 switch n := read8(r); n {
33165 chk(fmt.Errorf("invalid bool: %d", n))
33170 func (obj *MinimapType) Serialize(w io.Writer) {
33172 x := *(*(uint16))(obj)
33173 write16(w, uint16(x))
33177 func (obj *MinimapType) Deserialize(r io.Reader) {
33179 p := &*(*(uint16))(obj)
33184 func (obj *Param1Type) Serialize(w io.Writer) {
33186 x := *(*(uint8))(obj)
33187 write8(w, uint8(x))
33191 func (obj *Param1Type) Deserialize(r io.Reader) {
33193 p := &*(*(uint8))(obj)
33198 func (obj *Param2Type) Serialize(w io.Writer) {
33200 x := *(*(uint8))(obj)
33201 write8(w, uint8(x))
33205 func (obj *Param2Type) Deserialize(r io.Reader) {
33207 p := &*(*(uint8))(obj)
33212 func (obj *DrawType) Serialize(w io.Writer) {
33214 x := *(*(uint8))(obj)
33215 write8(w, uint8(x))
33219 func (obj *DrawType) Deserialize(r io.Reader) {
33221 p := &*(*(uint8))(obj)
33226 func (obj *TileDef) Serialize(w io.Writer) {
33228 local369 := uint8(6)
33231 write8(w, uint8(x))
33234 if err := pcall(func() {
33240 //mt:if %s.Flags&TileColor != 0
33243 //mt:if %s.Flags&TileScale != 0
33246 //mt:if %s.Flags&TileAlign != 0
33248 }))(obj)).Texture).Serialize(w)
33253 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33255 if err := pcall(func() {
33261 //mt:if %s.Flags&TileColor != 0
33264 //mt:if %s.Flags&TileScale != 0
33267 //mt:if %s.Flags&TileAlign != 0
33269 }))(obj)).Anim).Serialize(w)
33274 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33276 if err := pcall(func() {
33282 //mt:if %s.Flags&TileColor != 0
33285 //mt:if %s.Flags&TileScale != 0
33288 //mt:if %s.Flags&TileAlign != 0
33290 }))(obj)).Flags).Serialize(w)
33295 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33302 //mt:if %s.Flags&TileColor != 0
33305 //mt:if %s.Flags&TileScale != 0
33308 //mt:if %s.Flags&TileAlign != 0
33310 }))(obj)).Flags&TileColor != 0 {
33317 //mt:if %s.Flags&TileColor != 0
33320 //mt:if %s.Flags&TileScale != 0
33323 //mt:if %s.Flags&TileAlign != 0
33326 write8(w, uint8(x))
33334 //mt:if %s.Flags&TileColor != 0
33337 //mt:if %s.Flags&TileScale != 0
33340 //mt:if %s.Flags&TileAlign != 0
33343 write8(w, uint8(x))
33351 //mt:if %s.Flags&TileColor != 0
33354 //mt:if %s.Flags&TileScale != 0
33357 //mt:if %s.Flags&TileAlign != 0
33360 write8(w, uint8(x))
33368 //mt:if %s.Flags&TileColor != 0
33371 //mt:if %s.Flags&TileScale != 0
33374 //mt:if %s.Flags&TileAlign != 0
33376 }))(obj)).Flags&TileScale != 0 {
33383 //mt:if %s.Flags&TileColor != 0
33386 //mt:if %s.Flags&TileScale != 0
33389 //mt:if %s.Flags&TileAlign != 0
33392 write8(w, uint8(x))
33400 //mt:if %s.Flags&TileColor != 0
33403 //mt:if %s.Flags&TileScale != 0
33406 //mt:if %s.Flags&TileAlign != 0
33408 }))(obj)).Flags&TileAlign != 0 {
33409 if err := pcall(func() {
33415 //mt:if %s.Flags&TileColor != 0
33418 //mt:if %s.Flags&TileScale != 0
33421 //mt:if %s.Flags&TileAlign != 0
33423 }))(obj)).Align).Serialize(w)
33428 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33433 func (obj *TileDef) Deserialize(r io.Reader) {
33436 local371 := uint8(6)
33441 if local370 != local371 {
33442 chk(fmt.Errorf("const %v: %v", "uint8(6)", local370))
33445 if err := pcall(func() {
33451 //mt:if %s.Flags&TileColor != 0
33454 //mt:if %s.Flags&TileScale != 0
33457 //mt:if %s.Flags&TileAlign != 0
33459 }))(obj)).Texture).Deserialize(r)
33464 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Texture", err))
33466 if err := pcall(func() {
33472 //mt:if %s.Flags&TileColor != 0
33475 //mt:if %s.Flags&TileScale != 0
33478 //mt:if %s.Flags&TileAlign != 0
33480 }))(obj)).Anim).Deserialize(r)
33485 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileAnim", err))
33487 if err := pcall(func() {
33493 //mt:if %s.Flags&TileColor != 0
33496 //mt:if %s.Flags&TileScale != 0
33499 //mt:if %s.Flags&TileAlign != 0
33501 }))(obj)).Flags).Deserialize(r)
33506 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.TileFlags", err))
33513 //mt:if %s.Flags&TileColor != 0
33516 //mt:if %s.Flags&TileScale != 0
33519 //mt:if %s.Flags&TileAlign != 0
33521 }))(obj)).Flags&TileColor != 0 {
33523 p := &(*(*(struct {
33528 //mt:if %s.Flags&TileColor != 0
33531 //mt:if %s.Flags&TileScale != 0
33534 //mt:if %s.Flags&TileAlign != 0
33540 p := &(*(*(struct {
33545 //mt:if %s.Flags&TileColor != 0
33548 //mt:if %s.Flags&TileScale != 0
33551 //mt:if %s.Flags&TileAlign != 0
33557 p := &(*(*(struct {
33562 //mt:if %s.Flags&TileColor != 0
33565 //mt:if %s.Flags&TileScale != 0
33568 //mt:if %s.Flags&TileAlign != 0
33579 //mt:if %s.Flags&TileColor != 0
33582 //mt:if %s.Flags&TileScale != 0
33585 //mt:if %s.Flags&TileAlign != 0
33587 }))(obj)).Flags&TileScale != 0 {
33589 p := &(*(*(struct {
33594 //mt:if %s.Flags&TileColor != 0
33597 //mt:if %s.Flags&TileScale != 0
33600 //mt:if %s.Flags&TileAlign != 0
33611 //mt:if %s.Flags&TileColor != 0
33614 //mt:if %s.Flags&TileScale != 0
33617 //mt:if %s.Flags&TileAlign != 0
33619 }))(obj)).Flags&TileAlign != 0 {
33620 if err := pcall(func() {
33626 //mt:if %s.Flags&TileColor != 0
33629 //mt:if %s.Flags&TileScale != 0
33632 //mt:if %s.Flags&TileAlign != 0
33634 }))(obj)).Align).Deserialize(r)
33639 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlignType", err))
33644 func (obj *WaveType) Serialize(w io.Writer) {
33646 x := *(*(uint8))(obj)
33647 write8(w, uint8(x))
33651 func (obj *WaveType) Deserialize(r io.Reader) {
33653 p := &*(*(uint8))(obj)
33658 func (obj *LiquidType) Serialize(w io.Writer) {
33660 x := *(*(uint8))(obj)
33661 write8(w, uint8(x))
33665 func (obj *LiquidType) Deserialize(r io.Reader) {
33667 p := &*(*(uint8))(obj)
33672 func (obj *NodeBox) Serialize(w io.Writer) {
33674 local372 := uint8(6)
33677 write8(w, uint8(x))
33680 if err := pcall(func() {
33684 //mt:if %s.Type == MountedBox
33685 WallTop, WallBot, WallSides Box
33687 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33690 //mt:if %s.Type == ConnectedBox
33691 ConnDirs, DiscoDirs DirBoxes
33692 DiscoAll, DiscoSides []Box
33693 }))(obj)).Type).Serialize(w)
33698 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
33703 //mt:if %s.Type == MountedBox
33704 WallTop, WallBot, WallSides Box
33706 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33709 //mt:if %s.Type == ConnectedBox
33710 ConnDirs, DiscoDirs DirBoxes
33711 DiscoAll, DiscoSides []Box
33712 }))(obj)).Type < maxBox) {
33713 chk(errors.New("assertion failed: %s.Type < maxBox"))
33718 //mt:if %s.Type == MountedBox
33719 WallTop, WallBot, WallSides Box
33721 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33724 //mt:if %s.Type == ConnectedBox
33725 ConnDirs, DiscoDirs DirBoxes
33726 DiscoAll, DiscoSides []Box
33727 }))(obj)).Type == MountedBox {
33728 if err := pcall(func() {
33732 //mt:if %s.Type == MountedBox
33733 WallTop, WallBot, WallSides Box
33735 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33738 //mt:if %s.Type == ConnectedBox
33739 ConnDirs, DiscoDirs DirBoxes
33740 DiscoAll, DiscoSides []Box
33741 }))(obj)).WallTop).Serialize(w)
33746 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33748 if err := pcall(func() {
33752 //mt:if %s.Type == MountedBox
33753 WallTop, WallBot, WallSides Box
33755 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33758 //mt:if %s.Type == ConnectedBox
33759 ConnDirs, DiscoDirs DirBoxes
33760 DiscoAll, DiscoSides []Box
33761 }))(obj)).WallBot).Serialize(w)
33766 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33768 if err := pcall(func() {
33772 //mt:if %s.Type == MountedBox
33773 WallTop, WallBot, WallSides Box
33775 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33778 //mt:if %s.Type == ConnectedBox
33779 ConnDirs, DiscoDirs DirBoxes
33780 DiscoAll, DiscoSides []Box
33781 }))(obj)).WallSides).Serialize(w)
33786 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33789 if t := (*(*(struct {
33792 //mt:if %s.Type == MountedBox
33793 WallTop, WallBot, WallSides Box
33795 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33798 //mt:if %s.Type == ConnectedBox
33799 ConnDirs, DiscoDirs DirBoxes
33800 DiscoAll, DiscoSides []Box
33801 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
33802 if len(((*(*(struct {
33805 //mt:if %s.Type == MountedBox
33806 WallTop, WallBot, WallSides Box
33808 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33811 //mt:if %s.Type == ConnectedBox
33812 ConnDirs, DiscoDirs DirBoxes
33813 DiscoAll, DiscoSides []Box
33814 }))(obj)).Fixed)) > math.MaxUint16 {
33818 x := uint16(len(((*(*(struct {
33821 //mt:if %s.Type == MountedBox
33822 WallTop, WallBot, WallSides Box
33824 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33827 //mt:if %s.Type == ConnectedBox
33828 ConnDirs, DiscoDirs DirBoxes
33829 DiscoAll, DiscoSides []Box
33831 write16(w, uint16(x))
33833 for local373 := range (*(*(struct {
33836 //mt:if %s.Type == MountedBox
33837 WallTop, WallBot, WallSides Box
33839 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33842 //mt:if %s.Type == ConnectedBox
33843 ConnDirs, DiscoDirs DirBoxes
33844 DiscoAll, DiscoSides []Box
33846 if err := pcall(func() {
33850 //mt:if %s.Type == MountedBox
33851 WallTop, WallBot, WallSides Box
33853 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33856 //mt:if %s.Type == ConnectedBox
33857 ConnDirs, DiscoDirs DirBoxes
33858 DiscoAll, DiscoSides []Box
33859 }))(obj)).Fixed)[local373]).Serialize(w)
33864 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33871 //mt:if %s.Type == MountedBox
33872 WallTop, WallBot, WallSides Box
33874 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33877 //mt:if %s.Type == ConnectedBox
33878 ConnDirs, DiscoDirs DirBoxes
33879 DiscoAll, DiscoSides []Box
33880 }))(obj)).Type == ConnectedBox {
33881 if err := pcall(func() {
33885 //mt:if %s.Type == MountedBox
33886 WallTop, WallBot, WallSides Box
33888 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33891 //mt:if %s.Type == ConnectedBox
33892 ConnDirs, DiscoDirs DirBoxes
33893 DiscoAll, DiscoSides []Box
33894 }))(obj)).ConnDirs).Serialize(w)
33899 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33901 if err := pcall(func() {
33905 //mt:if %s.Type == MountedBox
33906 WallTop, WallBot, WallSides Box
33908 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33911 //mt:if %s.Type == ConnectedBox
33912 ConnDirs, DiscoDirs DirBoxes
33913 DiscoAll, DiscoSides []Box
33914 }))(obj)).DiscoDirs).Serialize(w)
33919 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
33921 if len(((*(*(struct {
33924 //mt:if %s.Type == MountedBox
33925 WallTop, WallBot, WallSides Box
33927 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33930 //mt:if %s.Type == ConnectedBox
33931 ConnDirs, DiscoDirs DirBoxes
33932 DiscoAll, DiscoSides []Box
33933 }))(obj)).DiscoAll)) > math.MaxUint16 {
33937 x := uint16(len(((*(*(struct {
33940 //mt:if %s.Type == MountedBox
33941 WallTop, WallBot, WallSides Box
33943 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33946 //mt:if %s.Type == ConnectedBox
33947 ConnDirs, DiscoDirs DirBoxes
33948 DiscoAll, DiscoSides []Box
33949 }))(obj)).DiscoAll)))
33950 write16(w, uint16(x))
33952 for local374 := range (*(*(struct {
33955 //mt:if %s.Type == MountedBox
33956 WallTop, WallBot, WallSides Box
33958 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33961 //mt:if %s.Type == ConnectedBox
33962 ConnDirs, DiscoDirs DirBoxes
33963 DiscoAll, DiscoSides []Box
33964 }))(obj)).DiscoAll {
33965 if err := pcall(func() {
33969 //mt:if %s.Type == MountedBox
33970 WallTop, WallBot, WallSides Box
33972 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33975 //mt:if %s.Type == ConnectedBox
33976 ConnDirs, DiscoDirs DirBoxes
33977 DiscoAll, DiscoSides []Box
33978 }))(obj)).DiscoAll)[local374]).Serialize(w)
33983 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
33986 if len(((*(*(struct {
33989 //mt:if %s.Type == MountedBox
33990 WallTop, WallBot, WallSides Box
33992 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
33995 //mt:if %s.Type == ConnectedBox
33996 ConnDirs, DiscoDirs DirBoxes
33997 DiscoAll, DiscoSides []Box
33998 }))(obj)).DiscoSides)) > math.MaxUint16 {
34002 x := uint16(len(((*(*(struct {
34005 //mt:if %s.Type == MountedBox
34006 WallTop, WallBot, WallSides Box
34008 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34011 //mt:if %s.Type == ConnectedBox
34012 ConnDirs, DiscoDirs DirBoxes
34013 DiscoAll, DiscoSides []Box
34014 }))(obj)).DiscoSides)))
34015 write16(w, uint16(x))
34017 for local375 := range (*(*(struct {
34020 //mt:if %s.Type == MountedBox
34021 WallTop, WallBot, WallSides Box
34023 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34026 //mt:if %s.Type == ConnectedBox
34027 ConnDirs, DiscoDirs DirBoxes
34028 DiscoAll, DiscoSides []Box
34029 }))(obj)).DiscoSides {
34030 if err := pcall(func() {
34034 //mt:if %s.Type == MountedBox
34035 WallTop, WallBot, WallSides Box
34037 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34040 //mt:if %s.Type == ConnectedBox
34041 ConnDirs, DiscoDirs DirBoxes
34042 DiscoAll, DiscoSides []Box
34043 }))(obj)).DiscoSides)[local375]).Serialize(w)
34048 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34054 func (obj *NodeBox) Deserialize(r io.Reader) {
34057 local377 := uint8(6)
34062 if local376 != local377 {
34063 chk(fmt.Errorf("const %v: %v", "uint8(6)", local376))
34066 if err := pcall(func() {
34070 //mt:if %s.Type == MountedBox
34071 WallTop, WallBot, WallSides Box
34073 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34076 //mt:if %s.Type == ConnectedBox
34077 ConnDirs, DiscoDirs DirBoxes
34078 DiscoAll, DiscoSides []Box
34079 }))(obj)).Type).Deserialize(r)
34084 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.NodeBoxType", err))
34089 //mt:if %s.Type == MountedBox
34090 WallTop, WallBot, WallSides Box
34092 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34095 //mt:if %s.Type == ConnectedBox
34096 ConnDirs, DiscoDirs DirBoxes
34097 DiscoAll, DiscoSides []Box
34098 }))(obj)).Type < maxBox) {
34099 chk(errors.New("assertion failed: %s.Type < maxBox"))
34104 //mt:if %s.Type == MountedBox
34105 WallTop, WallBot, WallSides Box
34107 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34110 //mt:if %s.Type == ConnectedBox
34111 ConnDirs, DiscoDirs DirBoxes
34112 DiscoAll, DiscoSides []Box
34113 }))(obj)).Type == MountedBox {
34114 if err := pcall(func() {
34118 //mt:if %s.Type == MountedBox
34119 WallTop, WallBot, WallSides Box
34121 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34124 //mt:if %s.Type == ConnectedBox
34125 ConnDirs, DiscoDirs DirBoxes
34126 DiscoAll, DiscoSides []Box
34127 }))(obj)).WallTop).Deserialize(r)
34132 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34134 if err := pcall(func() {
34138 //mt:if %s.Type == MountedBox
34139 WallTop, WallBot, WallSides Box
34141 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34144 //mt:if %s.Type == ConnectedBox
34145 ConnDirs, DiscoDirs DirBoxes
34146 DiscoAll, DiscoSides []Box
34147 }))(obj)).WallBot).Deserialize(r)
34152 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34154 if err := pcall(func() {
34158 //mt:if %s.Type == MountedBox
34159 WallTop, WallBot, WallSides Box
34161 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34164 //mt:if %s.Type == ConnectedBox
34165 ConnDirs, DiscoDirs DirBoxes
34166 DiscoAll, DiscoSides []Box
34167 }))(obj)).WallSides).Deserialize(r)
34172 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34175 if t := (*(*(struct {
34178 //mt:if %s.Type == MountedBox
34179 WallTop, WallBot, WallSides Box
34181 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34184 //mt:if %s.Type == ConnectedBox
34185 ConnDirs, DiscoDirs DirBoxes
34186 DiscoAll, DiscoSides []Box
34187 }))(obj)).Type; t == FixedBox || t == LeveledBox || t == ConnectedBox {
34188 var local378 uint16
34196 //mt:if %s.Type == MountedBox
34197 WallTop, WallBot, WallSides Box
34199 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34202 //mt:if %s.Type == ConnectedBox
34203 ConnDirs, DiscoDirs DirBoxes
34204 DiscoAll, DiscoSides []Box
34205 }))(obj)).Fixed) = make([]Box, local378)
34206 for local379 := range (*(*(struct {
34209 //mt:if %s.Type == MountedBox
34210 WallTop, WallBot, WallSides Box
34212 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34215 //mt:if %s.Type == ConnectedBox
34216 ConnDirs, DiscoDirs DirBoxes
34217 DiscoAll, DiscoSides []Box
34219 if err := pcall(func() {
34223 //mt:if %s.Type == MountedBox
34224 WallTop, WallBot, WallSides Box
34226 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34229 //mt:if %s.Type == ConnectedBox
34230 ConnDirs, DiscoDirs DirBoxes
34231 DiscoAll, DiscoSides []Box
34232 }))(obj)).Fixed)[local379]).Deserialize(r)
34237 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34244 //mt:if %s.Type == MountedBox
34245 WallTop, WallBot, WallSides Box
34247 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34250 //mt:if %s.Type == ConnectedBox
34251 ConnDirs, DiscoDirs DirBoxes
34252 DiscoAll, DiscoSides []Box
34253 }))(obj)).Type == ConnectedBox {
34254 if err := pcall(func() {
34258 //mt:if %s.Type == MountedBox
34259 WallTop, WallBot, WallSides Box
34261 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34264 //mt:if %s.Type == ConnectedBox
34265 ConnDirs, DiscoDirs DirBoxes
34266 DiscoAll, DiscoSides []Box
34267 }))(obj)).ConnDirs).Deserialize(r)
34272 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34274 if err := pcall(func() {
34278 //mt:if %s.Type == MountedBox
34279 WallTop, WallBot, WallSides Box
34281 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34284 //mt:if %s.Type == ConnectedBox
34285 ConnDirs, DiscoDirs DirBoxes
34286 DiscoAll, DiscoSides []Box
34287 }))(obj)).DiscoDirs).Deserialize(r)
34292 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DirBoxes", err))
34294 var local380 uint16
34302 //mt:if %s.Type == MountedBox
34303 WallTop, WallBot, WallSides Box
34305 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34308 //mt:if %s.Type == ConnectedBox
34309 ConnDirs, DiscoDirs DirBoxes
34310 DiscoAll, DiscoSides []Box
34311 }))(obj)).DiscoAll) = make([]Box, local380)
34312 for local381 := range (*(*(struct {
34315 //mt:if %s.Type == MountedBox
34316 WallTop, WallBot, WallSides Box
34318 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34321 //mt:if %s.Type == ConnectedBox
34322 ConnDirs, DiscoDirs DirBoxes
34323 DiscoAll, DiscoSides []Box
34324 }))(obj)).DiscoAll {
34325 if err := pcall(func() {
34329 //mt:if %s.Type == MountedBox
34330 WallTop, WallBot, WallSides Box
34332 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34335 //mt:if %s.Type == ConnectedBox
34336 ConnDirs, DiscoDirs DirBoxes
34337 DiscoAll, DiscoSides []Box
34338 }))(obj)).DiscoAll)[local381]).Deserialize(r)
34343 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34346 var local382 uint16
34354 //mt:if %s.Type == MountedBox
34355 WallTop, WallBot, WallSides Box
34357 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34360 //mt:if %s.Type == ConnectedBox
34361 ConnDirs, DiscoDirs DirBoxes
34362 DiscoAll, DiscoSides []Box
34363 }))(obj)).DiscoSides) = make([]Box, local382)
34364 for local383 := range (*(*(struct {
34367 //mt:if %s.Type == MountedBox
34368 WallTop, WallBot, WallSides Box
34370 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34373 //mt:if %s.Type == ConnectedBox
34374 ConnDirs, DiscoDirs DirBoxes
34375 DiscoAll, DiscoSides []Box
34376 }))(obj)).DiscoSides {
34377 if err := pcall(func() {
34381 //mt:if %s.Type == MountedBox
34382 WallTop, WallBot, WallSides Box
34384 //mt:if t := %s.Type; t == FixedBox || t == LeveledBox || t == ConnectedBox
34387 //mt:if %s.Type == ConnectedBox
34388 ConnDirs, DiscoDirs DirBoxes
34389 DiscoAll, DiscoSides []Box
34390 }))(obj)).DiscoSides)[local383]).Deserialize(r)
34395 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
34401 func (obj *SoundDef) Serialize(w io.Writer) {
34402 if len(([]byte((*(*(struct {
34404 Gain, Pitch, Fade float32
34405 }))(obj)).Name))) > math.MaxUint16 {
34409 x := uint16(len(([]byte((*(*(struct {
34411 Gain, Pitch, Fade float32
34413 write16(w, uint16(x))
34416 _, err := w.Write(([]byte((*(*(struct {
34418 Gain, Pitch, Fade float32
34419 }))(obj)).Name))[:])
34425 Gain, Pitch, Fade float32
34427 write32(w, math.Float32bits(x))
34432 Gain, Pitch, Fade float32
34434 write32(w, math.Float32bits(x))
34439 Gain, Pitch, Fade float32
34441 write32(w, math.Float32bits(x))
34445 func (obj *SoundDef) Deserialize(r io.Reader) {
34446 var local384 []uint8
34447 var local385 uint16
34452 (local384) = make([]uint8, local385)
34454 _, err := io.ReadFull(r, (local384)[:])
34459 Gain, Pitch, Fade float32
34460 }))(obj)).Name) = string(local384)
34462 p := &(*(*(struct {
34464 Gain, Pitch, Fade float32
34466 *p = math.Float32frombits(read32(r))
34469 p := &(*(*(struct {
34471 Gain, Pitch, Fade float32
34473 *p = math.Float32frombits(read32(r))
34476 p := &(*(*(struct {
34478 Gain, Pitch, Fade float32
34480 *p = math.Float32frombits(read32(r))
34484 func (obj *AlphaUse) Serialize(w io.Writer) {
34486 x := *(*(uint8))(obj)
34487 write8(w, uint8(x))
34491 func (obj *AlphaUse) Deserialize(r io.Reader) {
34493 p := &*(*(uint8))(obj)
34498 func (obj *Keys) Serialize(w io.Writer) {
34500 x := *(*(uint32))(obj)
34501 write32(w, uint32(x))
34505 func (obj *Keys) Deserialize(r io.Reader) {
34507 p := &*(*(uint32))(obj)
34512 func (obj *MapBlkFlags) Serialize(w io.Writer) {
34514 x := *(*(uint8))(obj)
34515 write8(w, uint8(x))
34519 func (obj *MapBlkFlags) Deserialize(r io.Reader) {
34521 p := &*(*(uint8))(obj)
34526 func (obj *LitFromBlks) Serialize(w io.Writer) {
34528 x := *(*(uint16))(obj)
34529 write16(w, uint16(x))
34533 func (obj *LitFromBlks) Deserialize(r io.Reader) {
34535 p := &*(*(uint16))(obj)
34540 func (obj *AOInitData) Serialize(w io.Writer) {
34542 local386 := uint8(1)
34545 write8(w, uint8(x))
34548 if len(([]byte((*(*(struct {
34561 // See (de)serialize.fmt.
34563 }))(obj)).Name))) > math.MaxUint16 {
34567 x := uint16(len(([]byte((*(*(struct {
34580 // See (de)serialize.fmt.
34583 write16(w, uint16(x))
34586 _, err := w.Write(([]byte((*(*(struct {
34599 // See (de)serialize.fmt.
34601 }))(obj)).Name))[:])
34618 // See (de)serialize.fmt.
34627 if err := pcall(func() {
34641 // See (de)serialize.fmt.
34643 }))(obj)).ID).Serialize(w)
34648 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34650 if err := pcall(func() {
34664 // See (de)serialize.fmt.
34666 }))(obj)).Pos).Serialize(w)
34671 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34673 for local387 := range (*(*(struct {
34686 // See (de)serialize.fmt.
34690 x := ((*(*(struct {
34703 // See (de)serialize.fmt.
34705 }))(obj)).Rot)[local387]
34706 write32(w, math.Float32bits(x))
34723 // See (de)serialize.fmt.
34726 write16(w, uint16(x))
34742 // See (de)serialize.fmt.
34745 { // For AOInitData.Msgs.
34746 if len(x) > math.MaxUint8 {
34749 write8(w, uint8(len(x)))
34750 for _, msg := range x {
34752 chk(writeAOMsg(&b, msg))
34753 if b.Len() > math.MaxUint32 {
34756 write32(w, uint32(b.Len()))
34757 _, err := b.WriteTo(w)
34764 func (obj *AOInitData) Deserialize(r io.Reader) {
34767 local389 := uint8(1)
34772 if local388 != local389 {
34773 chk(fmt.Errorf("const %v: %v", "uint8(1)", local388))
34776 var local390 []uint8
34777 var local391 uint16
34782 (local390) = make([]uint8, local391)
34784 _, err := io.ReadFull(r, (local390)[:])
34800 // See (de)serialize.fmt.
34802 }))(obj)).Name) = string(local390)
34804 p := &(*(*(struct {
34817 // See (de)serialize.fmt.
34820 switch n := read8(r); n {
34826 chk(fmt.Errorf("invalid bool: %d", n))
34829 if err := pcall(func() {
34843 // See (de)serialize.fmt.
34845 }))(obj)).ID).Deserialize(r)
34850 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AOID", err))
34852 if err := pcall(func() {
34866 // See (de)serialize.fmt.
34868 }))(obj)).Pos).Deserialize(r)
34873 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Pos", err))
34875 for local392 := range (*(*(struct {
34888 // See (de)serialize.fmt.
34892 p := &((*(*(struct {
34905 // See (de)serialize.fmt.
34907 }))(obj)).Rot)[local392]
34908 *p = math.Float32frombits(read32(r))
34912 p := &(*(*(struct {
34925 // See (de)serialize.fmt.
34931 p := &(*(*(struct {
34944 // See (de)serialize.fmt.
34947 { // For AOInitData.Msgs.
34948 *p = make([]AOMsg, read8(r))
34949 for i := range *p {
34950 r := &io.LimitedReader{R: r, N: int64(read32(r))}
34951 msg, err := readAOMsg(r)
34955 chk(fmt.Errorf("%d bytes of trailing data", r.N))
34962 func (obj *ItemType) Serialize(w io.Writer) {
34964 x := *(*(uint8))(obj)
34965 write8(w, uint8(x))
34969 func (obj *ItemType) Deserialize(r io.Reader) {
34971 p := &*(*(uint8))(obj)
34976 func (obj *ToolCaps) Serialize(w io.Writer) {
34977 if _ = (*(*(struct {
34978 //mt:if _ = %s; false
34981 AttackCooldown float32
34985 GroupCaps []ToolGroupCap
34995 //mt:if _ = %s; false
34998 AttackCooldown float32
35002 GroupCaps []ToolGroupCap
35019 w := new(bytes.Buffer)
35021 if r.N > 0 { (*(*(struct {
35022 //mt:if _ = %s; false
35025 AttackCooldown float32
35029 GroupCaps []ToolGroupCap
35036 }))(obj)).NonNil = true}; /*
35039 //mt:if _ = %s; false
35042 AttackCooldown float32
35046 GroupCaps []ToolGroupCap
35055 local393 := uint8(5)
35058 write8(w, uint8(x))
35063 //mt:if _ = %s; false
35066 AttackCooldown float32
35070 GroupCaps []ToolGroupCap
35077 }))(obj)).AttackCooldown
35078 write32(w, math.Float32bits(x))
35082 //mt:if _ = %s; false
35085 AttackCooldown float32
35089 GroupCaps []ToolGroupCap
35096 }))(obj)).MaxDropLvl
35097 write16(w, uint16(x))
35099 if len(((*(*(struct {
35100 //mt:if _ = %s; false
35103 AttackCooldown float32
35107 GroupCaps []ToolGroupCap
35114 }))(obj)).GroupCaps)) > math.MaxUint32 {
35118 x := uint32(len(((*(*(struct {
35119 //mt:if _ = %s; false
35122 AttackCooldown float32
35126 GroupCaps []ToolGroupCap
35133 }))(obj)).GroupCaps)))
35134 write32(w, uint32(x))
35136 for local394 := range (*(*(struct {
35137 //mt:if _ = %s; false
35140 AttackCooldown float32
35144 GroupCaps []ToolGroupCap
35151 }))(obj)).GroupCaps {
35152 if err := pcall(func() {
35154 //mt:if _ = %s; false
35157 AttackCooldown float32
35161 GroupCaps []ToolGroupCap
35168 }))(obj)).GroupCaps)[local394]).Serialize(w)
35173 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35176 if len(((*(*(struct {
35177 //mt:if _ = %s; false
35180 AttackCooldown float32
35184 GroupCaps []ToolGroupCap
35191 }))(obj)).DmgGroups)) > math.MaxUint32 {
35195 x := uint32(len(((*(*(struct {
35196 //mt:if _ = %s; false
35199 AttackCooldown float32
35203 GroupCaps []ToolGroupCap
35210 }))(obj)).DmgGroups)))
35211 write32(w, uint32(x))
35213 for local395 := range (*(*(struct {
35214 //mt:if _ = %s; false
35217 AttackCooldown float32
35221 GroupCaps []ToolGroupCap
35228 }))(obj)).DmgGroups {
35229 if err := pcall(func() {
35231 //mt:if _ = %s; false
35234 AttackCooldown float32
35238 GroupCaps []ToolGroupCap
35245 }))(obj)).DmgGroups)[local395]).Serialize(w)
35250 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35254 x := uint16((*(*(struct {
35255 //mt:if _ = %s; false
35258 AttackCooldown float32
35262 GroupCaps []ToolGroupCap
35269 }))(obj)).PunchUses)
35270 write16(w, uint16(x))
35277 if len((buf.Bytes())) > math.MaxUint16 {
35281 x := uint16(len((buf.Bytes())))
35282 write16(w, uint16(x))
35285 _, err := w.Write((buf.Bytes())[:])
35292 func (obj *ToolCaps) Deserialize(r io.Reader) {
35293 if _ = (*(*(struct {
35294 //mt:if _ = %s; false
35297 AttackCooldown float32
35301 GroupCaps []ToolGroupCap
35310 p := &(*(*(struct {
35311 //mt:if _ = %s; false
35314 AttackCooldown float32
35318 GroupCaps []ToolGroupCap
35326 switch n := read8(r); n {
35332 chk(fmt.Errorf("invalid bool: %d", n))
35342 r := &io.LimitedReader{R: r, N: int64(n)}
35345 //mt:if _ = %s; false
35348 AttackCooldown float32
35352 GroupCaps []ToolGroupCap
35359 }))(obj)).NonNil = true
35363 //mt:if _ = %s; false
35366 AttackCooldown float32
35370 GroupCaps []ToolGroupCap
35380 local397 := uint8(5)
35385 if local396 != local397 {
35386 chk(fmt.Errorf("const %v: %v", "uint8(5)", local396))
35390 p := &(*(*(struct {
35391 //mt:if _ = %s; false
35394 AttackCooldown float32
35398 GroupCaps []ToolGroupCap
35405 }))(obj)).AttackCooldown
35406 *p = math.Float32frombits(read32(r))
35409 p := &(*(*(struct {
35410 //mt:if _ = %s; false
35413 AttackCooldown float32
35417 GroupCaps []ToolGroupCap
35424 }))(obj)).MaxDropLvl
35425 *p = int16(read16(r))
35427 var local398 uint32
35433 //mt:if _ = %s; false
35436 AttackCooldown float32
35440 GroupCaps []ToolGroupCap
35447 }))(obj)).GroupCaps) = make([]ToolGroupCap, local398)
35448 for local399 := range (*(*(struct {
35449 //mt:if _ = %s; false
35452 AttackCooldown float32
35456 GroupCaps []ToolGroupCap
35463 }))(obj)).GroupCaps {
35464 if err := pcall(func() {
35466 //mt:if _ = %s; false
35469 AttackCooldown float32
35473 GroupCaps []ToolGroupCap
35480 }))(obj)).GroupCaps)[local399]).Deserialize(r)
35485 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.ToolGroupCap", err))
35488 var local400 uint32
35494 //mt:if _ = %s; false
35497 AttackCooldown float32
35501 GroupCaps []ToolGroupCap
35508 }))(obj)).DmgGroups) = make([]Group, local400)
35509 for local401 := range (*(*(struct {
35510 //mt:if _ = %s; false
35513 AttackCooldown float32
35517 GroupCaps []ToolGroupCap
35524 }))(obj)).DmgGroups {
35525 if err := pcall(func() {
35527 //mt:if _ = %s; false
35530 AttackCooldown float32
35534 GroupCaps []ToolGroupCap
35541 }))(obj)).DmgGroups)[local401]).Deserialize(r)
35546 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Group", err))
35549 var local402 uint16
35555 //mt:if _ = %s; false
35558 AttackCooldown float32
35562 GroupCaps []ToolGroupCap
35569 }))(obj)).PunchUses = int32(local402)
35573 chk(fmt.Errorf("%d bytes of trailing data", r.N))
35578 func (obj *AnimType) Serialize(w io.Writer) {
35580 x := *(*(uint8))(obj)
35581 write8(w, uint8(x))
35585 func (obj *AnimType) Deserialize(r io.Reader) {
35587 p := &*(*(uint8))(obj)
35592 func (obj *HUDType) Serialize(w io.Writer) {
35594 x := *(*(uint8))(obj)
35595 write8(w, uint8(x))
35599 func (obj *HUDType) Deserialize(r io.Reader) {
35601 p := &*(*(uint8))(obj)
35606 func (obj *Box) Serialize(w io.Writer) {
35607 for local403 := range *(*([2]Vec))(obj) {
35608 if err := pcall(func() {
35609 ((*(*([2]Vec))(obj))[local403]).Serialize(w)
35614 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35619 func (obj *Box) Deserialize(r io.Reader) {
35620 for local404 := range *(*([2]Vec))(obj) {
35621 if err := pcall(func() {
35622 ((*(*([2]Vec))(obj))[local404]).Deserialize(r)
35627 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Vec", err))
35632 func (obj *TileFlags) Serialize(w io.Writer) {
35634 x := *(*(uint16))(obj)
35635 write16(w, uint16(x))
35639 func (obj *TileFlags) Deserialize(r io.Reader) {
35641 p := &*(*(uint16))(obj)
35646 func (obj *AlignType) Serialize(w io.Writer) {
35648 x := *(*(uint8))(obj)
35649 write8(w, uint8(x))
35653 func (obj *AlignType) Deserialize(r io.Reader) {
35655 p := &*(*(uint8))(obj)
35660 func (obj *NodeBoxType) Serialize(w io.Writer) {
35662 x := *(*(uint8))(obj)
35663 write8(w, uint8(x))
35667 func (obj *NodeBoxType) Deserialize(r io.Reader) {
35669 p := &*(*(uint8))(obj)
35674 func (obj *DirBoxes) Serialize(w io.Writer) {
35675 if len(((*(*(struct {
35677 Front, Left, Back, Right []Box
35678 }))(obj)).Top)) > math.MaxUint16 {
35682 x := uint16(len(((*(*(struct {
35684 Front, Left, Back, Right []Box
35686 write16(w, uint16(x))
35688 for local405 := range (*(*(struct {
35690 Front, Left, Back, Right []Box
35692 if err := pcall(func() {
35695 Front, Left, Back, Right []Box
35696 }))(obj)).Top)[local405]).Serialize(w)
35701 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35704 if len(((*(*(struct {
35706 Front, Left, Back, Right []Box
35707 }))(obj)).Bot)) > math.MaxUint16 {
35711 x := uint16(len(((*(*(struct {
35713 Front, Left, Back, Right []Box
35715 write16(w, uint16(x))
35717 for local406 := range (*(*(struct {
35719 Front, Left, Back, Right []Box
35721 if err := pcall(func() {
35724 Front, Left, Back, Right []Box
35725 }))(obj)).Bot)[local406]).Serialize(w)
35730 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35733 if len(((*(*(struct {
35735 Front, Left, Back, Right []Box
35736 }))(obj)).Front)) > math.MaxUint16 {
35740 x := uint16(len(((*(*(struct {
35742 Front, Left, Back, Right []Box
35744 write16(w, uint16(x))
35746 for local407 := range (*(*(struct {
35748 Front, Left, Back, Right []Box
35750 if err := pcall(func() {
35753 Front, Left, Back, Right []Box
35754 }))(obj)).Front)[local407]).Serialize(w)
35759 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35762 if len(((*(*(struct {
35764 Front, Left, Back, Right []Box
35765 }))(obj)).Left)) > math.MaxUint16 {
35769 x := uint16(len(((*(*(struct {
35771 Front, Left, Back, Right []Box
35773 write16(w, uint16(x))
35775 for local408 := range (*(*(struct {
35777 Front, Left, Back, Right []Box
35779 if err := pcall(func() {
35782 Front, Left, Back, Right []Box
35783 }))(obj)).Left)[local408]).Serialize(w)
35788 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35791 if len(((*(*(struct {
35793 Front, Left, Back, Right []Box
35794 }))(obj)).Back)) > math.MaxUint16 {
35798 x := uint16(len(((*(*(struct {
35800 Front, Left, Back, Right []Box
35802 write16(w, uint16(x))
35804 for local409 := range (*(*(struct {
35806 Front, Left, Back, Right []Box
35808 if err := pcall(func() {
35811 Front, Left, Back, Right []Box
35812 }))(obj)).Back)[local409]).Serialize(w)
35817 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35820 if len(((*(*(struct {
35822 Front, Left, Back, Right []Box
35823 }))(obj)).Right)) > math.MaxUint16 {
35827 x := uint16(len(((*(*(struct {
35829 Front, Left, Back, Right []Box
35831 write16(w, uint16(x))
35833 for local410 := range (*(*(struct {
35835 Front, Left, Back, Right []Box
35837 if err := pcall(func() {
35840 Front, Left, Back, Right []Box
35841 }))(obj)).Right)[local410]).Serialize(w)
35846 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35851 func (obj *DirBoxes) Deserialize(r io.Reader) {
35852 var local411 uint16
35859 Front, Left, Back, Right []Box
35860 }))(obj)).Top) = make([]Box, local411)
35861 for local412 := range (*(*(struct {
35863 Front, Left, Back, Right []Box
35865 if err := pcall(func() {
35868 Front, Left, Back, Right []Box
35869 }))(obj)).Top)[local412]).Deserialize(r)
35874 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35877 var local413 uint16
35884 Front, Left, Back, Right []Box
35885 }))(obj)).Bot) = make([]Box, local413)
35886 for local414 := range (*(*(struct {
35888 Front, Left, Back, Right []Box
35890 if err := pcall(func() {
35893 Front, Left, Back, Right []Box
35894 }))(obj)).Bot)[local414]).Deserialize(r)
35899 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35902 var local415 uint16
35909 Front, Left, Back, Right []Box
35910 }))(obj)).Front) = make([]Box, local415)
35911 for local416 := range (*(*(struct {
35913 Front, Left, Back, Right []Box
35915 if err := pcall(func() {
35918 Front, Left, Back, Right []Box
35919 }))(obj)).Front)[local416]).Deserialize(r)
35924 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35927 var local417 uint16
35934 Front, Left, Back, Right []Box
35935 }))(obj)).Left) = make([]Box, local417)
35936 for local418 := range (*(*(struct {
35938 Front, Left, Back, Right []Box
35940 if err := pcall(func() {
35943 Front, Left, Back, Right []Box
35944 }))(obj)).Left)[local418]).Deserialize(r)
35949 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35952 var local419 uint16
35959 Front, Left, Back, Right []Box
35960 }))(obj)).Back) = make([]Box, local419)
35961 for local420 := range (*(*(struct {
35963 Front, Left, Back, Right []Box
35965 if err := pcall(func() {
35968 Front, Left, Back, Right []Box
35969 }))(obj)).Back)[local420]).Deserialize(r)
35974 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
35977 var local421 uint16
35984 Front, Left, Back, Right []Box
35985 }))(obj)).Right) = make([]Box, local421)
35986 for local422 := range (*(*(struct {
35988 Front, Left, Back, Right []Box
35990 if err := pcall(func() {
35993 Front, Left, Back, Right []Box
35994 }))(obj)).Right)[local422]).Deserialize(r)
35999 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Box", err))
36004 func (obj *ToolGroupCap) Serialize(w io.Writer) {
36005 if len(([]byte((*(*(struct {
36015 }))(obj)).Name))) > math.MaxUint16 {
36019 x := uint16(len(([]byte((*(*(struct {
36030 write16(w, uint16(x))
36033 _, err := w.Write(([]byte((*(*(struct {
36043 }))(obj)).Name))[:])
36047 x := int16((*(*(struct {
36058 write16(w, uint16(x))
36072 write16(w, uint16(x))
36074 if len(((*(*(struct {
36084 }))(obj)).Times)) > math.MaxUint32 {
36088 x := uint32(len(((*(*(struct {
36099 write32(w, uint32(x))
36101 for local423 := range (*(*(struct {
36112 if err := pcall(func() {
36123 }))(obj)).Times)[local423]).Serialize(w)
36128 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36133 func (obj *ToolGroupCap) Deserialize(r io.Reader) {
36134 var local424 []uint8
36135 var local425 uint16
36140 (local424) = make([]uint8, local425)
36142 _, err := io.ReadFull(r, (local424)[:])
36155 }))(obj)).Name) = string(local424)
36159 *p = int16(read16(r))
36171 }))(obj)).Uses = int32(local426)
36173 p := &(*(*(struct {
36184 *p = int16(read16(r))
36186 var local427 uint32
36201 }))(obj)).Times) = make([]DigTime, local427)
36202 for local428 := range (*(*(struct {
36213 if err := pcall(func() {
36224 }))(obj)).Times)[local428]).Deserialize(r)
36229 chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.DigTime", err))
36234 func (obj *DigTime) Serialize(w io.Writer) {
36240 write16(w, uint16(x))
36247 write32(w, math.Float32bits(x))
36251 func (obj *DigTime) Deserialize(r io.Reader) {
36253 p := &(*(*(struct {
36257 *p = int16(read16(r))
36260 p := &(*(*(struct {
36264 *p = math.Float32frombits(read32(r))