MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Param0).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Name))) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Name))))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Name))[:])
chk(err)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups)) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups)))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups)[local239]).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).P1Type).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).P2Type).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrawType).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Mesh))) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Mesh))))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Mesh))[:])
chk(err)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Scale
write32(w, math.Float32bits(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Tiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Tiles)[local241]).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OverlayTiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OverlayTiles)[local242]).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SpecialTiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SpecialTiles)[local244]).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Color
w.Write([]byte{x.A, x.R, x.G, x.B})
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Palette).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Waving).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectSides
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo)) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo)))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo)[local245]).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).InsideTint
w.Write([]byte{x.A, x.R, x.G, x.B})
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Level
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Translucent
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Transparent
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LightSrc
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).GndContent
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Collides
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Pointable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Diggable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Climbable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Replaceable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OnRightClick
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DmgPerSec
write32(w, uint32(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LiquidType).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowingAlt))) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowingAlt))))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowingAlt))[:])
chk(err)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SrcAlt))) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SrcAlt))))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SrcAlt))[:])
chk(err)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Viscosity
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LiqRenewable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowRange
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrownDmg
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Floodable
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrawBox).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ColBox).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SelBox).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FootstepSnd).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DiggingSnd).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DugSnd).serialize(w)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LegacyFaceDir
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LegacyMounted
if x {
write8(w, 1)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DigPredict))) > math.MaxUint16 {
chk(ErrTooLong)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DigPredict))))
write16(w, uint16(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DigPredict))[:])
chk(err)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).MaxLvl
write8(w, uint8(x))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).AlphaUse).serialize(w)
}); err != nil {
if err == io.EOF {
chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
}
{
- buf := w
- w := ow
- if len((buf.Bytes())) > math.MaxUint16 {
- chk(ErrTooLong)
- }
- {
- x := uint16(len((buf.Bytes())))
- write16(w, uint16(x))
- }
- {
- _, err := w.Write((buf.Bytes())[:])
- chk(err)
- }
- }
- }
-}
+ x := (*(*(struct {
+ Param0 Content
-func (obj *NodeDef) deserialize(r io.Reader) {
- if err := pcall(func() {
- ((*(*(struct {
- Param0 Content
+ Name string
+ Groups []Group
- Name string
- Groups []Group
+ P1Type Param1Type
+ P2Type Param2Type
+ DrawType DrawType
- P1Type Param1Type
- P2Type Param2Type
- DrawType DrawType
+ Mesh string
+ Scale float32
+ //mt:const uint8(6)
+ Tiles [6]TileDef
+ OverlayTiles [6]TileDef
+ //mt:const uint8(6)
+ SpecialTiles [6]TileDef
- Mesh string
- Scale float32
- //mt:const uint8(6)
- Tiles [6]TileDef
- OverlayTiles [6]TileDef
- //mt:const uint8(6)
- SpecialTiles [6]TileDef
+ Color color.NRGBA
+ Palette Texture
- Color color.NRGBA
- Palette Texture
+ Waving WaveType
+ ConnectSides uint8
+ ConnectTo []Content
+ InsideTint color.NRGBA
+ Level uint8 // Must be < 128.
- Waving WaveType
- ConnectSides uint8
- ConnectTo []Content
- InsideTint color.NRGBA
- Level uint8 // Must be < 128.
+ Translucent bool // Sunlight is scattered and becomes normal light.
+ Transparent bool // Sunlight isn't scattered.
+ LightSrc uint8
- Translucent bool // Sunlight is scattered and becomes normal light.
- Transparent bool // Sunlight isn't scattered.
- LightSrc uint8
+ GndContent bool
+ Collides bool
+ Pointable bool
+ Diggable bool
+ Climbable bool
+ Replaceable bool
+ OnRightClick bool
- GndContent bool
- Collides bool
- Pointable bool
- Diggable bool
- Climbable bool
- Replaceable bool
- OnRightClick bool
+ DmgPerSec int32
- DmgPerSec int32
+ LiquidType LiquidType
+ FlowingAlt string
+ SrcAlt string
+ Viscosity uint8 // 0-7
+ LiqRenewable bool
+ FlowRange uint8
+ DrownDmg uint8
+ Floodable bool
- LiquidType LiquidType
- FlowingAlt string
- SrcAlt string
- Viscosity uint8 // 0-7
- LiqRenewable bool
- FlowRange uint8
- DrownDmg uint8
- Floodable bool
+ DrawBox, ColBox, SelBox NodeBox
- DrawBox, ColBox, SelBox NodeBox
+ FootstepSnd, DiggingSnd, DugSnd SoundDef
- FootstepSnd, DiggingSnd, DugSnd SoundDef
+ LegacyFaceDir bool
+ LegacyMounted bool
- LegacyFaceDir bool
- LegacyMounted bool
+ DigPredict string
- DigPredict string
+ MaxLvl uint8
- MaxLvl uint8
+ AlphaUse
- AlphaUse
- }))(obj)).Param0).deserialize(r)
- }); err != nil {
- if err == io.EOF {
- chk(io.EOF)
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
+ }))(obj)).MoveResistance
+ write8(w, uint8(x))
}
- chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
- }
- {
- var n uint16
+ {
+ x := (*(*(struct {
+ Param0 Content
+
+ Name string
+ Groups []Group
+
+ P1Type Param1Type
+ P2Type Param2Type
+ DrawType DrawType
+
+ Mesh string
+ Scale float32
+ //mt:const uint8(6)
+ Tiles [6]TileDef
+ OverlayTiles [6]TileDef
+ //mt:const uint8(6)
+ SpecialTiles [6]TileDef
+
+ Color color.NRGBA
+ Palette Texture
+
+ Waving WaveType
+ ConnectSides uint8
+ ConnectTo []Content
+ InsideTint color.NRGBA
+ Level uint8 // Must be < 128.
+
+ Translucent bool // Sunlight is scattered and becomes normal light.
+ Transparent bool // Sunlight isn't scattered.
+ LightSrc uint8
+
+ GndContent bool
+ Collides bool
+ Pointable bool
+ Diggable bool
+ Climbable bool
+ Replaceable bool
+ OnRightClick bool
+
+ DmgPerSec int32
+
+ LiquidType LiquidType
+ FlowingAlt string
+ SrcAlt string
+ Viscosity uint8 // 0-7
+ LiqRenewable bool
+ FlowRange uint8
+ DrownDmg uint8
+ Floodable bool
+
+ DrawBox, ColBox, SelBox NodeBox
+
+ FootstepSnd, DiggingSnd, DugSnd SoundDef
+
+ LegacyFaceDir bool
+ LegacyMounted bool
+
+ DigPredict string
+
+ MaxLvl uint8
+
+ AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
+ }))(obj)).LiquidMovePhysics
+ if x {
+ write8(w, 1)
+ } else {
+ write8(w, 0)
+ }
+ }
+ {
+ buf := w
+ w := ow
+ if len((buf.Bytes())) > math.MaxUint16 {
+ chk(ErrTooLong)
+ }
+ {
+ x := uint16(len((buf.Bytes())))
+ write16(w, uint16(x))
+ }
+ {
+ _, err := w.Write((buf.Bytes())[:])
+ chk(err)
+ }
+ }
+ }
+}
+
+func (obj *NodeDef) deserialize(r io.Reader) {
+ if err := pcall(func() {
+ ((*(*(struct {
+ Param0 Content
+
+ Name string
+ Groups []Group
+
+ P1Type Param1Type
+ P2Type Param2Type
+ DrawType DrawType
+
+ Mesh string
+ Scale float32
+ //mt:const uint8(6)
+ Tiles [6]TileDef
+ OverlayTiles [6]TileDef
+ //mt:const uint8(6)
+ SpecialTiles [6]TileDef
+
+ Color color.NRGBA
+ Palette Texture
+
+ Waving WaveType
+ ConnectSides uint8
+ ConnectTo []Content
+ InsideTint color.NRGBA
+ Level uint8 // Must be < 128.
+
+ Translucent bool // Sunlight is scattered and becomes normal light.
+ Transparent bool // Sunlight isn't scattered.
+ LightSrc uint8
+
+ GndContent bool
+ Collides bool
+ Pointable bool
+ Diggable bool
+ Climbable bool
+ Replaceable bool
+ OnRightClick bool
+
+ DmgPerSec int32
+
+ LiquidType LiquidType
+ FlowingAlt string
+ SrcAlt string
+ Viscosity uint8 // 0-7
+ LiqRenewable bool
+ FlowRange uint8
+ DrownDmg uint8
+ Floodable bool
+
+ DrawBox, ColBox, SelBox NodeBox
+
+ FootstepSnd, DiggingSnd, DugSnd SoundDef
+
+ LegacyFaceDir bool
+ LegacyMounted bool
+
+ DigPredict string
+
+ MaxLvl uint8
+
+ AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
+ }))(obj)).Param0).deserialize(r)
+ }); err != nil {
+ if err == io.EOF {
+ chk(io.EOF)
+ }
+ chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.Content", err))
+ }
+ {
+ var n uint16
{
p := &n
*p = read16(r)
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Name) = string(local248)
var local250 uint16
{
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups) = make([]Group, local250)
for local251 := range (*(*(struct {
Param0 Content
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Groups)[local251]).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).P1Type).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).P2Type).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrawType).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Mesh) = string(local252)
{
p := &(*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Scale
*p = math.Float32frombits(read32(r))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Tiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Tiles)[local256]).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OverlayTiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OverlayTiles)[local257]).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SpecialTiles {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SpecialTiles)[local260]).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Color
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Palette).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Waving).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectSides
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo) = make([]Content, local261)
for local262 := range (*(*(struct {
Param0 Content
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo {
if err := pcall(func() {
(((*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ConnectTo)[local262]).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).InsideTint
*p = color.NRGBA{A: read8(r), R: read8(r), G: read8(r), B: read8(r)}
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Level
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Translucent
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Transparent
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LightSrc
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).GndContent
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Collides
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Pointable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Diggable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Climbable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Replaceable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).OnRightClick
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DmgPerSec
*p = int32(read32(r))
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LiquidType).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowingAlt) = string(local263)
var local265 []uint8
var local266 uint16
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SrcAlt) = string(local265)
{
p := &(*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Viscosity
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LiqRenewable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FlowRange
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrownDmg
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).Floodable
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DrawBox).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).ColBox).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).SelBox).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).FootstepSnd).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DiggingSnd).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DugSnd).deserialize(r)
}); err != nil {
if err == io.EOF {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LegacyFaceDir
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).LegacyMounted
switch n := read8(r); n {
case 0:
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).DigPredict) = string(local267)
{
p := &(*(*(struct {
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).MaxLvl
*p = read8(r)
}
MaxLvl uint8
AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
}))(obj)).AlphaUse).deserialize(r)
}); err != nil {
if err == io.EOF {
}
chk(fmt.Errorf("%s: %w", "github.com/dragonfireclient/mt.AlphaUse", err))
}
+ {
+ p := &(*(*(struct {
+ Param0 Content
+
+ Name string
+ Groups []Group
+
+ P1Type Param1Type
+ P2Type Param2Type
+ DrawType DrawType
+
+ Mesh string
+ Scale float32
+ //mt:const uint8(6)
+ Tiles [6]TileDef
+ OverlayTiles [6]TileDef
+ //mt:const uint8(6)
+ SpecialTiles [6]TileDef
+
+ Color color.NRGBA
+ Palette Texture
+
+ Waving WaveType
+ ConnectSides uint8
+ ConnectTo []Content
+ InsideTint color.NRGBA
+ Level uint8 // Must be < 128.
+
+ Translucent bool // Sunlight is scattered and becomes normal light.
+ Transparent bool // Sunlight isn't scattered.
+ LightSrc uint8
+
+ GndContent bool
+ Collides bool
+ Pointable bool
+ Diggable bool
+ Climbable bool
+ Replaceable bool
+ OnRightClick bool
+
+ DmgPerSec int32
+
+ LiquidType LiquidType
+ FlowingAlt string
+ SrcAlt string
+ Viscosity uint8 // 0-7
+ LiqRenewable bool
+ FlowRange uint8
+ DrownDmg uint8
+ Floodable bool
+
+ DrawBox, ColBox, SelBox NodeBox
+
+ FootstepSnd, DiggingSnd, DugSnd SoundDef
+
+ LegacyFaceDir bool
+ LegacyMounted bool
+
+ DigPredict string
+
+ MaxLvl uint8
+
+ AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
+ }))(obj)).MoveResistance
+ *p = read8(r)
+ }
+ {
+ p := &(*(*(struct {
+ Param0 Content
+
+ Name string
+ Groups []Group
+
+ P1Type Param1Type
+ P2Type Param2Type
+ DrawType DrawType
+
+ Mesh string
+ Scale float32
+ //mt:const uint8(6)
+ Tiles [6]TileDef
+ OverlayTiles [6]TileDef
+ //mt:const uint8(6)
+ SpecialTiles [6]TileDef
+
+ Color color.NRGBA
+ Palette Texture
+
+ Waving WaveType
+ ConnectSides uint8
+ ConnectTo []Content
+ InsideTint color.NRGBA
+ Level uint8 // Must be < 128.
+
+ Translucent bool // Sunlight is scattered and becomes normal light.
+ Transparent bool // Sunlight isn't scattered.
+ LightSrc uint8
+
+ GndContent bool
+ Collides bool
+ Pointable bool
+ Diggable bool
+ Climbable bool
+ Replaceable bool
+ OnRightClick bool
+
+ DmgPerSec int32
+
+ LiquidType LiquidType
+ FlowingAlt string
+ SrcAlt string
+ Viscosity uint8 // 0-7
+ LiqRenewable bool
+ FlowRange uint8
+ DrownDmg uint8
+ Floodable bool
+
+ DrawBox, ColBox, SelBox NodeBox
+
+ FootstepSnd, DiggingSnd, DugSnd SoundDef
+
+ LegacyFaceDir bool
+ LegacyMounted bool
+
+ DigPredict string
+
+ MaxLvl uint8
+
+ AlphaUse
+
+ MoveResistance uint8
+
+ LiquidMovePhysics bool
+ }))(obj)).LiquidMovePhysics
+ switch n := read8(r); n {
+ case 0:
+ *p = false
+ case 1:
+ *p = true
+ default:
+ chk(fmt.Errorf("invalid bool: %d", n))
+ }
+ }
if r.N > 0 {
chk(fmt.Errorf("%d bytes of trailing data", r.N))
}