--- /dev/null
+// Code generated by "stringer -type AlignType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NoAlign-0]
+ _ = x[WorldAlign-1]
+ _ = x[UserAlign-2]
+}
+
+const _AlignType_name = "NoAlignWorldAlignUserAlign"
+
+var _AlignType_index = [...]uint8{0, 7, 17, 26}
+
+func (i AlignType) String() string {
+ if i >= AlignType(len(_AlignType_index)-1) {
+ return "AlignType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _AlignType_name[_AlignType_index[i]:_AlignType_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -type AlphaUse"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[Blend-0]
+ _ = x[Mask-1]
+ _ = x[Opaque-2]
+ _ = x[Legacy-3]
+}
+
+const _AlphaUse_name = "BlendMaskOpaqueLegacy"
+
+var _AlphaUse_index = [...]uint8{0, 5, 9, 15, 21}
+
+func (i AlphaUse) String() string {
+ if i >= AlphaUse(len(_AlphaUse_index)-1) {
+ return "AlphaUse(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _AlphaUse_name[_AlphaUse_index[i]:_AlphaUse_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -linecomment -type AnimType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NoAnim-0]
+ _ = x[VerticalFrameAnim-1]
+ _ = x[SpriteSheetAnim-2]
+ _ = x[maxAnim-3]
+}
+
+const _AnimType_name = "nonevertical framesprite sheetmaxAnim"
+
+var _AnimType_index = [...]uint8{0, 4, 18, 30, 37}
+
+func (i AnimType) String() string {
+ if i >= AnimType(len(_AnimType_index)-1) {
+ return "AnimType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _AnimType_name[_AnimType_index[i]:_AnimType_index[i+1]]
+}
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Speed float32
}
-//go:generate ./cmdno.sh aocmds AOCmd ao uint8 AOMsg newAOMsg
-
type AOMsg interface {
aoCmdNo() uint8
}
+//go:generate ./cmdno.sh aocmds AOCmd ao uint8 AOMsg newAOMsg
+
func writeAOMsg(w io.Writer, msg AOMsg) error {
if _, err := w.Write([]byte{msg.aoCmdNo()}); err != nil {
return err
-// Code generated by cmdno.sh. DO NOT EDIT.
+// Code generated by cmdno.sh; DO NOT EDIT.
package mt
SRP
FirstSRP
)
+
+//go:generate stringer -type AuthMethods
--- /dev/null
+// Code generated by "stringer -type AuthMethods"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[LegacyPasswd-1]
+ _ = x[SRP-2]
+ _ = x[FirstSRP-4]
+}
+
+const (
+ _AuthMethods_name_0 = "LegacyPasswdSRP"
+ _AuthMethods_name_1 = "FirstSRP"
+)
+
+var (
+ _AuthMethods_index_0 = [...]uint8{0, 12, 15}
+)
+
+func (i AuthMethods) String() string {
+ switch {
+ case 1 <= i && i <= 2:
+ i -= 1
+ return _AuthMethods_name_0[_AuthMethods_index_0[i]:_AuthMethods_index_0[i+1]]
+ case i == 4:
+ return _AuthMethods_name_1
+ default:
+ return "AuthMethods(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+}
--- /dev/null
+// Code generated by "stringer -linecomment -type ChatMsgType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[RawMsg-0]
+ _ = x[NormalMsg-1]
+ _ = x[AnnounceMsg-2]
+ _ = x[SysMsg-3]
+ _ = x[maxMsg-4]
+}
+
+const _ChatMsgType_name = "rawnormalannouncesysmaxMsg"
+
+var _ChatMsgType_index = [...]uint8{0, 3, 9, 17, 20, 26}
+
+func (i ChatMsgType) String() string {
+ if i >= ChatMsgType(len(_ChatMsgType_index)-1) {
+ return "ChatMsgType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _ChatMsgType_name[_ChatMsgType_index[i]:_ChatMsgType_index[i+1]]
+}
-// Code generated by cmd.sh. DO NOT EDIT.
+// Code generated by cmd.sh; DO NOT EDIT.
package mt
#!/bin/sh
(
- echo // Code generated by cmd.sh. DO NOT EDIT.
+ echo '// Code generated by cmd.sh; DO NOT EDIT.'
echo
echo package mt
echo
#!/bin/sh
(
- echo // Code generated by cmdno.sh. DO NOT EDIT.
+ echo '// Code generated by cmdno.sh; DO NOT EDIT.'
echo
echo package mt
echo
NoDir
)
+//go:generate stringer -type Dir
+
// Opposite returns the Dir's opposite.
// NoDir is its own opposite.
func (d Dir) Opposite() Dir {
--- /dev/null
+// Code generated by "stringer -type Dir"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[East-0]
+ _ = x[Above-1]
+ _ = x[North-2]
+ _ = x[South-3]
+ _ = x[Below-4]
+ _ = x[West-5]
+ _ = x[NoDir-6]
+}
+
+const _Dir_name = "EastAboveNorthSouthBelowWestNoDir"
+
+var _Dir_index = [...]uint8{0, 4, 9, 14, 19, 24, 28, 33}
+
+func (i Dir) String() string {
+ if i >= Dir(len(_Dir_index)-1) {
+ return "Dir(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Dir_name[_Dir_index[i]:_Dir_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -trimprefix Draw -type DrawType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[DrawCube-0]
+ _ = x[DrawNothing-1]
+ _ = x[DrawLiquid-2]
+ _ = x[DrawFlowing-3]
+ _ = x[DrawLikeGlass-4]
+ _ = x[DrawAllFaces-5]
+ _ = x[DrawAllFacesOpt-6]
+ _ = x[DrawTorch-7]
+ _ = x[DrawSign-8]
+ _ = x[DrawPlant-9]
+ _ = x[DrawFence-10]
+ _ = x[DrawRail-11]
+ _ = x[DrawNodeBox-12]
+ _ = x[DrawGlassFrame-13]
+ _ = x[DrawFire-14]
+ _ = x[DrawGlassFrameOpt-15]
+ _ = x[DrawMesh-16]
+ _ = x[DrawRootedPlant-17]
+}
+
+const _DrawType_name = "CubeNothingLiquidFlowingLikeGlassAllFacesAllFacesOptTorchSignPlantFenceRailNodeBoxGlassFrameFireGlassFrameOptMeshRootedPlant"
+
+var _DrawType_index = [...]uint8{0, 4, 11, 17, 24, 33, 41, 52, 57, 61, 66, 71, 75, 82, 92, 96, 109, 113, 124}
+
+func (i DrawType) String() string {
+ if i >= DrawType(len(_DrawType_index)-1) {
+ return "DrawType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _DrawType_name[_DrawType_index[i]:_DrawType_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -trimprefix Hotbar -type HotbarParam"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[HotbarSize-1]
+ _ = x[HotbarImg-2]
+ _ = x[HotbarSelImg-3]
+}
+
+const _HotbarParam_name = "SizeImgSelImg"
+
+var _HotbarParam_index = [...]uint8{0, 4, 7, 13}
+
+func (i HotbarParam) String() string {
+ i -= 1
+ if i >= HotbarParam(len(_HotbarParam_index)-1) {
+ return "HotbarParam(" + strconv.FormatInt(int64(i+1), 10) + ")"
+ }
+ return _HotbarParam_name[_HotbarParam_index[i]:_HotbarParam_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -trimprefix HUD -type HUDField"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[HUDPos-0]
+ _ = x[HUDName-1]
+ _ = x[HUDScale-2]
+ _ = x[HUDText-3]
+ _ = x[HUDNumber-4]
+ _ = x[HUDItem-5]
+ _ = x[HUDDir-6]
+ _ = x[HUDAlign-7]
+ _ = x[HUDOffset-8]
+ _ = x[HUDWorldPos-9]
+ _ = x[HUDSize-10]
+ _ = x[HUDZIndex-11]
+ _ = x[HUDText2-12]
+ _ = x[hudMax-13]
+}
+
+const _HUDField_name = "PosNameScaleTextNumberItemDirAlignOffsetWorldPosSizeZIndexText2hudMax"
+
+var _HUDField_index = [...]uint8{0, 3, 7, 12, 16, 22, 26, 29, 34, 40, 48, 52, 58, 63, 69}
+
+func (i HUDField) String() string {
+ if i >= HUDField(len(_HUDField_index)-1) {
+ return "HUDField(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _HUDField_name[_HUDField_index[i]:_HUDField_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -type HUDType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[ImgHUD-0]
+ _ = x[TextHUD-1]
+ _ = x[StatbarHUD-2]
+ _ = x[InvHUD-3]
+ _ = x[WaypointHUD-4]
+ _ = x[ImgWaypointHUD-5]
+}
+
+const _HUDType_name = "ImgHUDTextHUDStatbarHUDInvHUDWaypointHUDImgWaypointHUD"
+
+var _HUDType_index = [...]uint8{0, 6, 13, 23, 29, 40, 54}
+
+func (i HUDType) String() string {
+ if i >= HUDType(len(_HUDType_index)-1) {
+ return "HUDType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _HUDType_name[_HUDType_index[i]:_HUDType_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -type Interaction"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[Dig-0]
+ _ = x[StopDigging-1]
+ _ = x[Dug-2]
+ _ = x[Place-3]
+ _ = x[Use-4]
+ _ = x[Activate-5]
+}
+
+const _Interaction_name = "DigStopDiggingDugPlaceUseActivate"
+
+var _Interaction_index = [...]uint8{0, 3, 14, 17, 22, 25, 33}
+
+func (i Interaction) String() string {
+ if i >= Interaction(len(_Interaction_index)-1) {
+ return "Interaction(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Interaction_name[_Interaction_index[i]:_Interaction_index[i+1]]
+}
ToolItem
)
+//go:generate stringer -type ItemType
+
// An ItemDef defines the properties of an item.
type ItemDef struct {
//mt:lenhdr 16
--- /dev/null
+// Code generated by "stringer -type ItemType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NodeItem-1]
+ _ = x[CraftItem-2]
+ _ = x[ToolItem-3]
+}
+
+const _ItemType_name = "NodeItemCraftItemToolItem"
+
+var _ItemType_index = [...]uint8{0, 8, 17, 25}
+
+func (i ItemType) String() string {
+ i -= 1
+ if i >= ItemType(len(_ItemType_index)-1) {
+ return "ItemType(" + strconv.FormatInt(int64(i+1), 10) + ")"
+ }
+ return _ItemType_name[_ItemType_index[i]:_ItemType_index[i+1]]
+}
Day LightBank = iota
Night
)
+
+//go:generate stringer -type LightBank
--- /dev/null
+// Code generated by "stringer -type LightBank"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[Day-0]
+ _ = x[Night-1]
+}
+
+const _LightBank_name = "DayNight"
+
+var _LightBank_index = [...]uint8{0, 3, 8}
+
+func (i LightBank) String() string {
+ if i >= LightBank(len(_LightBank_index)-1) {
+ return "LightBank(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _LightBank_name[_LightBank_index[i]:_LightBank_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -type LiquidType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NotALiquid-0]
+ _ = x[FlowingLiquid-1]
+ _ = x[LiquidSrc-2]
+}
+
+const _LiquidType_name = "NotALiquidFlowingLiquidLiquidSrc"
+
+var _LiquidType_index = [...]uint8{0, 10, 23, 32}
+
+func (i LiquidType) String() string {
+ if i >= LiquidType(len(_LiquidType_index)-1) {
+ return "LiquidType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _LiquidType_name[_LiquidType_index[i]:_LiquidType_index[i+1]]
+}
type MinimapType uint16
const (
- NoMinimap MinimapType = iota
- SurfaceMinimap
- RadarMinimap
- TextureMinimap
+ NoMinimap MinimapType = iota // none
+ SurfaceMinimap // surface
+ RadarMinimap // radar
+ TextureMinimap // texture
)
+//go:generate stringer -linecomment -type MinimapType
+
type MinimapMode struct {
Type MinimapType
Label string
--- /dev/null
+// Code generated by "stringer -linecomment -type MinimapType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NoMinimap-0]
+ _ = x[SurfaceMinimap-1]
+ _ = x[RadarMinimap-2]
+ _ = x[TextureMinimap-3]
+}
+
+const _MinimapType_name = "nonesurfaceradartexture"
+
+var _MinimapType_index = [...]uint8{0, 4, 11, 16, 23}
+
+func (i MinimapType) String() string {
+ if i >= MinimapType(len(_MinimapType_index)-1) {
+ return "MinimapType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _MinimapType_name[_MinimapType_index[i]:_MinimapType_index[i+1]]
+}
#!/bin/sh
(
- echo // Code generated by mkpktinfos.sh. DO NOT EDIT.
+ echo '// Code generated by mkpktinfos.sh; DO NOT EDIT.'
echo
echo package mt
echo
rm -f serialize.go
(
- echo // Code generated by mkserialize.sh. DO NOT EDIT.
+ echo '// Code generated by mkserialize.sh; DO NOT EDIT.'
echo
internal/mkserialize/mkserialize | goimports
) >>serialize.go.tmp &&
--- /dev/null
+// Code generated by "stringer -type ModChanSig"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[JoinOK-0]
+ _ = x[JoinFail-1]
+ _ = x[LeaveOK-2]
+ _ = x[LeaveFail-3]
+ _ = x[NotRegistered-4]
+ _ = x[SetState-5]
+}
+
+const _ModChanSig_name = "JoinOKJoinFailLeaveOKLeaveFailNotRegisteredSetState"
+
+var _ModChanSig_index = [...]uint8{0, 6, 14, 21, 30, 43, 51}
+
+func (i ModChanSig) String() string {
+ if i >= ModChanSig(len(_ModChanSig_index)-1) {
+ return "ModChanSig(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _ModChanSig_name[_ModChanSig_index[i]:_ModChanSig_index[i+1]]
+}
type NodeBoxType uint8
const (
- CubeBox NodeBoxType = iota
- FixedBox
- MountedBox
- LeveledBox
- ConnectedBox
+ CubeBox NodeBoxType = iota // Cube
+ FixedBox // Fixed
+ MountedBox // Mounted
+ LeveledBox // Leveled
+ ConnectedBox // Connected
maxBox
)
+//go:generate stringer -linecomment -type NodeBoxType
+
type DirBoxes struct {
Top, Bot []Box
Front, Left, Back, Right []Box
--- /dev/null
+// Code generated by "stringer -linecomment -type NodeBoxType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[CubeBox-0]
+ _ = x[FixedBox-1]
+ _ = x[MountedBox-2]
+ _ = x[LeveledBox-3]
+ _ = x[ConnectedBox-4]
+ _ = x[maxBox-5]
+}
+
+const _NodeBoxType_name = "CubeFixedMountedLeveledConnectedmaxBox"
+
+var _NodeBoxType_index = [...]uint8{0, 4, 9, 16, 23, 32, 38}
+
+func (i NodeBoxType) String() string {
+ if i >= NodeBoxType(len(_NodeBoxType_index)-1) {
+ return "NodeBoxType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _NodeBoxType_name[_NodeBoxType_index[i]:_NodeBoxType_index[i+1]]
+}
P1Light
)
+//go:generate stringer -trimprefix P1 -type Param1Type
+
type Param2Type uint8
const (
P2GlassLikeLevel
)
+//go:generate stringer -trimprefix P2 -type Param2Type
+
// A DrawType specifies how a node is drawn.
type DrawType uint8
DrawRootedPlant
)
+//go:generate stringer -trimprefix Draw -type DrawType
+
type WaveType uint8
const (
LiquidWaving // Wave up and down.
)
+//go:generate stringer -type WaveType
+
type LiquidType uint8
const (
LiquidSrc
)
+//go:generate stringer -type LiquidType
+
// AlphaUse specifies how the alpha channel of a texture is used.
type AlphaUse uint8
Legacy
)
+//go:generate stringer -type AlphaUse
+
type NodeDef struct {
Param0 Content
--- /dev/null
+// Code generated by "stringer -trimprefix P1 -type Param1Type"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[P1Nothing-0]
+ _ = x[P1Light-1]
+}
+
+const _Param1Type_name = "NothingLight"
+
+var _Param1Type_index = [...]uint8{0, 7, 12}
+
+func (i Param1Type) String() string {
+ if i >= Param1Type(len(_Param1Type_index)-1) {
+ return "Param1Type(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Param1Type_name[_Param1Type_index[i]:_Param1Type_index[i+1]]
+}
--- /dev/null
+// Code generated by "stringer -trimprefix P2 -type Param2Type"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[P2Nibble-0]
+ _ = x[P2Byte-1]
+ _ = x[P2Flowing-2]
+ _ = x[P2FaceDir-3]
+ _ = x[P2Mounted-4]
+ _ = x[P2Leveled-5]
+ _ = x[P2Rotation-6]
+ _ = x[P2Mesh-7]
+ _ = x[P2Color-8]
+ _ = x[P2ColorFaceDir-9]
+ _ = x[P2ColorMounted-10]
+ _ = x[P2GlassLikeLevel-11]
+}
+
+const _Param2Type_name = "NibbleByteFlowingFaceDirMountedLeveledRotationMeshColorColorFaceDirColorMountedGlassLikeLevel"
+
+var _Param2Type_index = [...]uint8{0, 6, 10, 17, 24, 31, 38, 46, 50, 55, 67, 79, 93}
+
+func (i Param2Type) String() string {
+ if i >= Param2Type(len(_Param2Type_index)-1) {
+ return "Param2Type(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Param2Type_name[_Param2Type_index[i]:_Param2Type_index[i+1]]
+}
-// Code generated by mkpktinfos.sh. DO NOT EDIT.
+// Code generated by mkpktinfos.sh; DO NOT EDIT.
package mt
--- /dev/null
+// Code generated by "stringer -linecomment -type PlayerListUpdateType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[InitPlayers-0]
+ _ = x[AddPlayers-1]
+ _ = x[RemovePlayers-2]
+}
+
+const _PlayerListUpdateType_name = "initaddremove"
+
+var _PlayerListUpdateType_index = [...]uint8{0, 4, 7, 13}
+
+func (i PlayerListUpdateType) String() string {
+ if i >= PlayerListUpdateType(len(_PlayerListUpdateType_index)-1) {
+ return "PlayerListUpdateType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _PlayerListUpdateType_name[_PlayerListUpdateType_index[i]:_PlayerListUpdateType_index[i+1]]
+}
PointedThing chk(writePointedThing(w, x))
-[]AOMsg { // For AOInitData.Msgs
+[]AOMsg { // For AOInitData.Msgs.
if len(x) > math.MaxUint8 {
chk(ErrTooLong)
}
}
}
-[]NodeDef { // For ToCltNodeDefs.Defs
+[]NodeDef { // For ToCltNodeDefs.Defs.
if len(x) > math.MaxUint16 {
chk(ErrTooLong)
}
-// Code generated by mkserialize.sh. DO NOT EDIT.
+// Code generated by mkserialize.sh; DO NOT EDIT.
package mt
// See (de)serialize.fmt.
Defs []NodeDef
}))(obj)).Defs
- { // For ToCltNodeDefs.Defs
+ { // For ToCltNodeDefs.Defs.
if len(x) > math.MaxUint16 {
chk(ErrTooLong)
}
// See (de)serialize.fmt.
Msgs []AOMsg
}))(obj)).Msgs
- { // For AOInitData.Msgs
+ { // For AOInitData.Msgs.
if len(x) > math.MaxUint8 {
chk(ErrTooLong)
}
((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if !((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
//mt:if %s.Type != NoAnim
Duration float32 // in seconds
- }))(obj)).Type == SpritesheetAnim {
+ }))(obj)).Type == SpriteSheetAnim {
{
_, err := w.Write(((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
for local319 := range (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
x := ((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
x := (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if !((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
//mt:if %s.Type != NoAnim
Duration float32 // in seconds
- }))(obj)).Type == SpritesheetAnim {
+ }))(obj)).Type == SpriteSheetAnim {
{
_, err := io.ReadFull(r, ((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
for local320 := range (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
p := &((*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
if (*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
p := &(*(*(struct {
Type AnimType
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:if %s.Type == VerticalFrameAnim
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritesheetSize {
+ }))(obj)).SpriteSheetSize {
{
x := ((*(*(struct {
MaxHP uint16 // Player only.
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritesheetSize)[local326]
+ }))(obj)).SpriteSheetSize)[local326]
write16(w, uint16(x))
}
}
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritesheetSize {
+ }))(obj)).SpriteSheetSize {
{
p := &((*(*(struct {
MaxHP uint16 // Player only.
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Shaded bool
ShowOnMinimap bool
NametagBG color.NRGBA
- }))(obj)).SpritesheetSize)[local335]
+ }))(obj)).SpriteSheetSize)[local335]
*p = int16(read16(r))
}
}
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
Visual string
VisualSize [3]float32
Textures []Texture
- SpritesheetSize [2]int16 // in sprites.
+ SpriteSheetSize [2]int16 // in sprites.
SpritePos [2]int16 // in sprite sheet.
Visible bool
MakeFootstepSnds bool
type SoundSrcType uint8
const (
- NoSrc SoundSrcType = iota
- PosSrc
- AOSrc
+ NoSrc SoundSrcType = iota // nowhere
+ PosSrc // pos
+ AOSrc // ao
)
+//go:generate stringer -linecomment -type SoundSrcType
+
type SoundDef struct {
Name string
Gain, Pitch, Fade float32
--- /dev/null
+// Code generated by "stringer -linecomment -type SoundSrcType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NoSrc-0]
+ _ = x[PosSrc-1]
+ _ = x[AOSrc-2]
+}
+
+const _SoundSrcType_name = "nowhereposao"
+
+var _SoundSrcType_index = [...]uint8{0, 7, 10, 12}
+
+func (i SoundSrcType) String() string {
+ if i >= SoundSrcType(len(_SoundSrcType_index)-1) {
+ return "SoundSrcType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _SoundSrcType_name[_SoundSrcType_index[i]:_SoundSrcType_index[i+1]]
+}
type AnimType uint8
const (
- NoAnim AnimType = iota
- VerticalFrameAnim
- SpritesheetAnim
+ NoAnim AnimType = iota // none
+ VerticalFrameAnim // vertical frame
+ SpriteSheetAnim // sprite sheet
maxAnim
)
+//go:generate stringer -linecomment -type AnimType
+
type TileAnim struct {
Type AnimType
//mt:assert %s.Type < maxAnim
- //mt:if %s.Type == SpritesheetAnim
+ //mt:if %s.Type == SpriteSheetAnim
AspectRatio [2]uint8
//mt:end
UserAlign
)
+//go:generate stringer -type AlignType
+
type TileFlags uint16
const (
TileAlign
)
+//go:generate stringer -type TileFlags
+
type TileDef struct {
//mt:const uint8(6)
--- /dev/null
+// Code generated by "stringer -type TileFlags"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[TileBackfaceCull-1]
+ _ = x[TileAbleH-2]
+ _ = x[TileAbleV-4]
+ _ = x[TileColor-8]
+ _ = x[TileScale-16]
+ _ = x[TileAlign-32]
+}
+
+const (
+ _TileFlags_name_0 = "TileBackfaceCullTileAbleH"
+ _TileFlags_name_1 = "TileAbleV"
+ _TileFlags_name_2 = "TileColor"
+ _TileFlags_name_3 = "TileScale"
+ _TileFlags_name_4 = "TileAlign"
+)
+
+var (
+ _TileFlags_index_0 = [...]uint8{0, 16, 25}
+)
+
+func (i TileFlags) String() string {
+ switch {
+ case 1 <= i && i <= 2:
+ i -= 1
+ return _TileFlags_name_0[_TileFlags_index_0[i]:_TileFlags_index_0[i+1]]
+ case i == 4:
+ return _TileFlags_name_1
+ case i == 8:
+ return _TileFlags_name_2
+ case i == 16:
+ return _TileFlags_name_3
+ case i == 32:
+ return _TileFlags_name_4
+ default:
+ return "TileFlags(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+}
-//go:generate ./cmdno.sh tocltcmds ToClt toClt uint16 Cmd newToCltCmd
-
package mt
import (
toCltCmdNo() uint16
}
+//go:generate ./cmdno.sh tocltcmds ToClt toClt uint16 Cmd newToCltCmd
+
// ToCltHello is sent as a response to ToSrvInit.
// The client responds to ToCltHello by authenticating.
type ToCltHello struct {
type ChatMsgType uint8
const (
- RawMsg ChatMsgType = iota
- NormalMsg
- AnnounceMsg
- SysMsg
+ RawMsg ChatMsgType = iota // raw
+ NormalMsg // normal
+ AnnounceMsg // announce
+ SysMsg // sys
maxMsg
)
-func (t ChatMsgType) String() string {
- if t >= maxMsg {
- return fmt.Sprintf("ChatMsgType(%d)", t)
- }
-
- return [...]string{
- "raw",
- "normal",
- "announce",
- "sys",
- }[t]
-}
+//go:generate stringer -linecomment -type ChatMsgType
// ToCltAORmAdd tells the client that AOs have been removed from and/or added to
// the AOs that it can see.
ImgWaypointHUD
)
+//go:generate stringer -type HUDType
+
// ToCltRmHUD tells the client to remove a HUD.
type ToCltRmHUD struct {
ID HUDID
hudMax
)
+//go:generate stringer -trimprefix HUD -type HUDField
+
// ToCltHUDFlags tells the client to update its HUD flags.
type ToCltHUDFlags struct {
// &^= Mask
HotbarSelImg
)
+//go:generate stringer -trimprefix Hotbar -type HotbarParam
+
// ToCltBreath tells the client how much breath it has.
type ToCltBreath struct {
Breath uint16
type PlayerListUpdateType uint8
const (
- InitPlayers PlayerListUpdateType = iota
- AddPlayers
- RemovePlayers
+ InitPlayers PlayerListUpdateType = iota // init
+ AddPlayers // add
+ RemovePlayers // remove
)
+//go:generate stringer -linecomment -type PlayerListUpdateType
+
// ToCltModChanMsg tells the client it has been sent a message on a mod channel.
type ToCltModChanMsg struct {
Channel string
SetState
)
+//go:generate stringer -type ModChanSig
+
// ToCltModChanMsg is sent when node metadata near the client changes.
type ToCltNodeMetasChanged struct {
//mt:lenhdr 32
-// Code generated by cmdno.sh. DO NOT EDIT.
+// Code generated by cmdno.sh; DO NOT EDIT.
package mt
-//go:generate ./cmdno.sh tosrvcmds ToSrv toSrv uint16 Cmd newToSrvCmd
-
package mt
type ToSrvCmd interface {
toSrvCmdNo() uint16
}
+//go:generate ./cmdno.sh tosrvcmds ToSrv toSrv uint16 Cmd newToSrvCmd
+
// ToSrvNil is the first packet sent in a connection.
type ToSrvNil struct{}
Activate // Right click air.
)
+//go:generate stringer -type Interaction
+
// ToSrvRemovedSounds tells the server that the client has finished playing
// the sounds with the given IDs.
type ToSrvRemovedSounds struct {
-// Code generated by cmdno.sh. DO NOT EDIT.
+// Code generated by cmdno.sh; DO NOT EDIT.
package mt
--- /dev/null
+// Code generated by "stringer -type WaveType"; DO NOT EDIT.
+
+package mt
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[NotWaving-0]
+ _ = x[PlantWaving-1]
+ _ = x[LeafWaving-2]
+ _ = x[LiquidWaving-3]
+}
+
+const _WaveType_name = "NotWavingPlantWavingLeafWavingLiquidWaving"
+
+var _WaveType_index = [...]uint8{0, 9, 20, 30, 42}
+
+func (i WaveType) String() string {
+ if i >= WaveType(len(_WaveType_index)-1) {
+ return "WaveType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _WaveType_name[_WaveType_index[i]:_WaveType_index[i+1]]
+}