bot is nolonger a submodule

This commit is contained in:
JunDao
2019-05-01 16:09:36 +08:00
parent 6055f2ca7b
commit 45820c10f5
12 changed files with 1447 additions and 1 deletions

36
bot/settings.go Normal file
View File

@ -0,0 +1,36 @@
package bot
// Settings of client
type Settings struct {
Locale string //地区
ViewDistance int //视距
ChatMode int //聊天模式
ChatColors bool //聊天颜色
DisplayedSkinParts uint8 //皮肤显示
MainHand int //主手
ReciveMap bool //接收地图数据
}
/*
Used by Settings.DisplayedSkinParts.
For each bits set if shows match part.
*/
const (
_ = 1 << iota
Jacket
LeftSleeve
RightSleeve
LeftPantsLeg
RightPantsLeg
Hat
)
//DefaultSettings are the default settings of client
var DefaultSettings = Settings{
Locale: "zh_CN",
ViewDistance: 15,
ChatMode: 0,
DisplayedSkinParts: Jacket | LeftSleeve | RightSleeve | LeftPantsLeg | RightPantsLeg | Hat,
MainHand: 1,
ReciveMap: true,
}