constant

package
v0.0.0-...-5387047 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeChannel = 1
	MessageTypeRoom    = 2
)
View Source
const (
	OUTStartRoom      = 0
	OUTJoinHost       = 1
	OUTGameData       = 2
	OUTHostStop       = 3
	OUTConnectHost    = 5
	OUTItemUsing      = 100
	OUTSetInventory   = 101
	LeaveResultWindow = 4
)
View Source
const (
	Login_Success        = 0
	Login_RPC_ERROR      = 1
	Login_Already        = 2
	Login_NULL_Resp      = 3
	Login_Wrong_Info     = 4
	Login_DB_ERROR       = 5
	Login_Not_Registed   = 6
	Login_Wrong_PASSWORD = 7
)
View Source
const (
	ChatChannel      = 1
	ChatRoom         = 2
	MessageDialogBox = 10

	ReplyYes                                    = "S_REPLY_YES"
	CSO_AuthReply_BlockedIP                     = "您的IP已被屏蔽"
	CSO_AuthReply_ServerFailed                  = "登录失败,请稍候再试。"
	CSO_AuthReply_Already                       = "该账号目前已有人登录,将尝试踢出该玩家。"
	CSO_AuthReply_Already_Failed_NotFound       = "尝试踢出失败,找不到该玩家数据。"
	CSO_AuthReply_Already_Failed                = "尝试踢出失败。"
	CSO_AuthReply_Not_Registed                  = "该账号不存在。"
	CSO_AuthReply_Wrong                         = "账号密码错误,请重新输入。"
	CSO_NewCharacter_Wrong                      = "昵称错误,请重新输入。"
	CSO_NewCharacter_Failed                     = "昵称修改失败,可能是昵称有其他人注册,请重新输入。"
	CSO_Register_ServerFailed                   = "注册失败,请稍候再试。"
	CSO_Register_Success                        = "注册成功。"
	CSO_Register_Failed                         = "注册失败。"
	CSO_Warning_ROOM_JOIN_FAILED_INVALID_PASSWD = "密码错误无法进入房间"
)
View Source
const (
	HeaderLen   = 4
	MINSEQUENCE = 0
	MAXSEQUENCE = math.MaxUint8

	PacketTypeVersion          = 0
	PacketTypeReply            = 1
	PacketTypeNewCharacter     = 2
	PacketTypeLogin            = 3
	PacketTypeServerList       = 5
	PacketTypeCharacter        = 6
	PacketTypeRequestRoomList  = 7
	PacketTypeRequestChannels  = 10
	PacketTypeRoom             = 65
	PacketTypeChat             = 67
	PacketTypeHost             = 68
	PacketTypePlayerInfo       = 69
	PacketTypeUdp              = 70
	PacketTypeShop             = 72
	PacketTypeBan              = 74
	PacketTypeOption           = 76
	PacketTypeFavorite         = 77
	PacketTypeUseItem          = 78
	PacketTypeQuickJoin        = 80
	PacketTypeReport           = 83
	PacketTypeSignature        = 85
	PacketTypeQuickStart       = 86
	PacketTypeAutomatch        = 88
	PacketTypeFriend           = 89
	PacketTypeUnlock           = 90
	PacketTypeMail             = 91
	PacketTypeGZ               = 95
	PacketTypeAchievement      = 96
	PacketTypeSupply           = 102
	PacketTypeDisassemble      = 104
	PacketTypeConfigInfo       = 106
	PacketTypeUserStart        = 150
	PacketTypeRoomList         = 151
	PacketTypeInventory_Add    = 152
	PacketTypeLobby            = 153
	PacketTypeInventory_Create = 154
	PacketTypeUserInfo         = 157
	PacketTypeRegister         = 163

	UdpPacketSignature = 87
	UDPTypeClient      = 0
	UDPTypeServer      = 256
	UDPTypeSourceTV    = 512
)
View Source
const (
	//房间包表示
	OUTCreateAndJoin  = 0
	OUTPlayerJoin     = 1
	OUTPlayerLeave    = 2
	OUTSetPlayerReady = 3
	OUTUpdateSettings = 4
	OUTSetHost        = 5
	OUTSetGameResult  = 6
	OUTCountdown      = 11
	OUTsetUserTeam    = 13
	//房间status
	StatusWaiting = 0
	StatusIngame  = 1
)
View Source
const (
	UserForceUnknown          = 0
	UserForceTerrorist        = 1
	UserForceCounterTerrorist = 2
	//user status
	UserNotReady = 0
	UserIngame   = 1
	UserReady    = 2

	MaxLen_UserName = 32
	MaxLen_Password = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL