msg

package
v0.0.0-...-466c206 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgCode_name = map[int32]string{
		0:  "USER_ENTRY_CMD",
		1:  "USER_ENTRY_RESULT",
		2:  "WHO_ELSE_IS_HERE_CMD",
		3:  "WHO_ELSE_IS_HERE_RESULT",
		4:  "USER_MOVE_TO_CMD",
		5:  "USER_MOVE_TO_RESULT",
		6:  "USER_QUIT_RESULT",
		7:  "USER_STOP_CMD",
		8:  "USER_STOP_RESULT",
		9:  "USER_ATTK_CMD",
		10: "USER_ATTK_RESULT",
		11: "USER_SUBTRACT_HP_RESULT",
		12: "USER_DIE_RESULT",
		13: "USER_LOGIN_CMD",
		14: "USER_LOGIN_RESULT",
		15: "SELECT_HERO_CMD",
		16: "SELECT_HERO_RESULT",
		17: "GET_RANK_CMD",
		18: "GET_RANK_RESULT",
	}
	MsgCode_value = map[string]int32{
		"USER_ENTRY_CMD":          0,
		"USER_ENTRY_RESULT":       1,
		"WHO_ELSE_IS_HERE_CMD":    2,
		"WHO_ELSE_IS_HERE_RESULT": 3,
		"USER_MOVE_TO_CMD":        4,
		"USER_MOVE_TO_RESULT":     5,
		"USER_QUIT_RESULT":        6,
		"USER_STOP_CMD":           7,
		"USER_STOP_RESULT":        8,
		"USER_ATTK_CMD":           9,
		"USER_ATTK_RESULT":        10,
		"USER_SUBTRACT_HP_RESULT": 11,
		"USER_DIE_RESULT":         12,
		"USER_LOGIN_CMD":          13,
		"USER_LOGIN_RESULT":       14,
		"SELECT_HERO_CMD":         15,
		"SELECT_HERO_RESULT":      16,
		"GET_RANK_CMD":            17,
		"GET_RANK_RESULT":         18,
	}
)

Enum value maps for MsgCode.

View Source
var File_GameMsgProtocol_proto protoreflect.FileDescriptor

Functions

func InitMsg

func InitMsg()

Types

type GetRankCmd

type GetRankCmd struct {
	// contains filtered or unexported fields
}

获取排行榜 ///////////////////////////////////////////////////////////////////// 指令

func (*GetRankCmd) Descriptor deprecated

func (*GetRankCmd) Descriptor() ([]byte, []int)

Deprecated: Use GetRankCmd.ProtoReflect.Descriptor instead.

func (*GetRankCmd) ProtoMessage

func (*GetRankCmd) ProtoMessage()

func (*GetRankCmd) ProtoReflect

func (x *GetRankCmd) ProtoReflect() protoreflect.Message

func (*GetRankCmd) Reset

func (x *GetRankCmd) Reset()

func (*GetRankCmd) String

func (x *GetRankCmd) String() string

type GetRankResult

type GetRankResult struct {

	// 排名条目
	RankItem []*GetRankResult_RankItem `protobuf:"bytes,1,rep,name=rankItem,proto3" json:"rankItem,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*GetRankResult) Descriptor deprecated

func (*GetRankResult) Descriptor() ([]byte, []int)

Deprecated: Use GetRankResult.ProtoReflect.Descriptor instead.

func (*GetRankResult) GetRankItem

func (x *GetRankResult) GetRankItem() []*GetRankResult_RankItem

func (*GetRankResult) ProtoMessage

func (*GetRankResult) ProtoMessage()

func (*GetRankResult) ProtoReflect

func (x *GetRankResult) ProtoReflect() protoreflect.Message

func (*GetRankResult) Reset

func (x *GetRankResult) Reset()

func (*GetRankResult) String

func (x *GetRankResult) String() string

type GetRankResult_RankItem

type GetRankResult_RankItem struct {

	// 排名 Id
	RankId uint32 `protobuf:"varint,1,opt,name=rankId,proto3" json:"rankId,omitempty"`
	// 用户 Id
	UserId uint32 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// 用户名称
	UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"`
	// 英雄形象
	HeroAvatar string `protobuf:"bytes,4,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// 胜利次数
	Win uint32 `protobuf:"varint,5,opt,name=win,proto3" json:"win,omitempty"`
	// contains filtered or unexported fields
}

用户信息

func (*GetRankResult_RankItem) Descriptor deprecated

func (*GetRankResult_RankItem) Descriptor() ([]byte, []int)

Deprecated: Use GetRankResult_RankItem.ProtoReflect.Descriptor instead.

func (*GetRankResult_RankItem) GetHeroAvatar

func (x *GetRankResult_RankItem) GetHeroAvatar() string

func (*GetRankResult_RankItem) GetRankId

func (x *GetRankResult_RankItem) GetRankId() uint32

func (*GetRankResult_RankItem) GetUserId

func (x *GetRankResult_RankItem) GetUserId() uint32

func (*GetRankResult_RankItem) GetUserName

func (x *GetRankResult_RankItem) GetUserName() string

func (*GetRankResult_RankItem) GetWin

func (x *GetRankResult_RankItem) GetWin() uint32

func (*GetRankResult_RankItem) ProtoMessage

func (*GetRankResult_RankItem) ProtoMessage()

func (*GetRankResult_RankItem) ProtoReflect

func (x *GetRankResult_RankItem) ProtoReflect() protoreflect.Message

func (*GetRankResult_RankItem) Reset

func (x *GetRankResult_RankItem) Reset()

func (*GetRankResult_RankItem) String

func (x *GetRankResult_RankItem) String() string

type MsgCode

type MsgCode int32

消息代号

const (
	MsgCode_USER_ENTRY_CMD          MsgCode = 0
	MsgCode_USER_ENTRY_RESULT       MsgCode = 1
	MsgCode_WHO_ELSE_IS_HERE_CMD    MsgCode = 2
	MsgCode_WHO_ELSE_IS_HERE_RESULT MsgCode = 3
	MsgCode_USER_MOVE_TO_CMD        MsgCode = 4
	MsgCode_USER_MOVE_TO_RESULT     MsgCode = 5
	MsgCode_USER_QUIT_RESULT        MsgCode = 6
	MsgCode_USER_STOP_CMD           MsgCode = 7
	MsgCode_USER_STOP_RESULT        MsgCode = 8
	MsgCode_USER_ATTK_CMD           MsgCode = 9
	MsgCode_USER_ATTK_RESULT        MsgCode = 10
	MsgCode_USER_SUBTRACT_HP_RESULT MsgCode = 11
	MsgCode_USER_DIE_RESULT         MsgCode = 12
	MsgCode_USER_LOGIN_CMD          MsgCode = 13
	MsgCode_USER_LOGIN_RESULT       MsgCode = 14
	MsgCode_SELECT_HERO_CMD         MsgCode = 15
	MsgCode_SELECT_HERO_RESULT      MsgCode = 16
	MsgCode_GET_RANK_CMD            MsgCode = 17
	MsgCode_GET_RANK_RESULT         MsgCode = 18
)

func (MsgCode) Descriptor

func (MsgCode) Descriptor() protoreflect.EnumDescriptor

func (MsgCode) Enum

func (x MsgCode) Enum() *MsgCode

func (MsgCode) EnumDescriptor deprecated

func (MsgCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use MsgCode.Descriptor instead.

func (MsgCode) Number

func (x MsgCode) Number() protoreflect.EnumNumber

func (MsgCode) String

func (x MsgCode) String() string

func (MsgCode) Type

func (MsgCode) Type() protoreflect.EnumType

type SelectHeroCmd

type SelectHeroCmd struct {

	// 英雄形象
	HeroAvatar string `protobuf:"bytes,1,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// contains filtered or unexported fields
}

选择英雄 ///////////////////////////////////////////////////////////////////// 指令

func (*SelectHeroCmd) Descriptor deprecated

func (*SelectHeroCmd) Descriptor() ([]byte, []int)

Deprecated: Use SelectHeroCmd.ProtoReflect.Descriptor instead.

func (*SelectHeroCmd) GetHeroAvatar

func (x *SelectHeroCmd) GetHeroAvatar() string

func (*SelectHeroCmd) ProtoMessage

func (*SelectHeroCmd) ProtoMessage()

func (*SelectHeroCmd) ProtoReflect

func (x *SelectHeroCmd) ProtoReflect() protoreflect.Message

func (*SelectHeroCmd) Reset

func (x *SelectHeroCmd) Reset()

func (*SelectHeroCmd) String

func (x *SelectHeroCmd) String() string

type SelectHeroResult

type SelectHeroResult struct {

	// 英雄形象,
	// 如果是空字符串则说明失败
	HeroAvatar string `protobuf:"bytes,1,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*SelectHeroResult) Descriptor deprecated

func (*SelectHeroResult) Descriptor() ([]byte, []int)

Deprecated: Use SelectHeroResult.ProtoReflect.Descriptor instead.

func (*SelectHeroResult) GetHeroAvatar

func (x *SelectHeroResult) GetHeroAvatar() string

func (*SelectHeroResult) ProtoMessage

func (*SelectHeroResult) ProtoMessage()

func (*SelectHeroResult) ProtoReflect

func (x *SelectHeroResult) ProtoReflect() protoreflect.Message

func (*SelectHeroResult) Reset

func (x *SelectHeroResult) Reset()

func (*SelectHeroResult) String

func (x *SelectHeroResult) String() string

type UserAttkCmd

type UserAttkCmd struct {

	// 目标用户 Id
	TargetUserId uint32 `protobuf:"varint,1,opt,name=targetUserId,proto3" json:"targetUserId,omitempty"`
	// contains filtered or unexported fields
}

用户攻击 ///////////////////////////////////////////////////////////////////// 指令

func (*UserAttkCmd) Descriptor deprecated

func (*UserAttkCmd) Descriptor() ([]byte, []int)

Deprecated: Use UserAttkCmd.ProtoReflect.Descriptor instead.

func (*UserAttkCmd) GetTargetUserId

func (x *UserAttkCmd) GetTargetUserId() uint32

func (*UserAttkCmd) ProtoMessage

func (*UserAttkCmd) ProtoMessage()

func (*UserAttkCmd) ProtoReflect

func (x *UserAttkCmd) ProtoReflect() protoreflect.Message

func (*UserAttkCmd) Reset

func (x *UserAttkCmd) Reset()

func (*UserAttkCmd) String

func (x *UserAttkCmd) String() string

type UserAttkResult

type UserAttkResult struct {

	// 发动攻击的用户 Id
	AttkUserId uint32 `protobuf:"varint,1,opt,name=attkUserId,proto3" json:"attkUserId,omitempty"`
	// 目标用户 Id
	TargetUserId uint32 `protobuf:"varint,2,opt,name=targetUserId,proto3" json:"targetUserId,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*UserAttkResult) Descriptor deprecated

func (*UserAttkResult) Descriptor() ([]byte, []int)

Deprecated: Use UserAttkResult.ProtoReflect.Descriptor instead.

func (*UserAttkResult) GetAttkUserId

func (x *UserAttkResult) GetAttkUserId() uint32

func (*UserAttkResult) GetTargetUserId

func (x *UserAttkResult) GetTargetUserId() uint32

func (*UserAttkResult) ProtoMessage

func (*UserAttkResult) ProtoMessage()

func (*UserAttkResult) ProtoReflect

func (x *UserAttkResult) ProtoReflect() protoreflect.Message

func (*UserAttkResult) Reset

func (x *UserAttkResult) Reset()

func (*UserAttkResult) String

func (x *UserAttkResult) String() string

type UserDieResult

type UserDieResult struct {

	// 目标用户 Id
	TargetUserId uint32 `protobuf:"varint,1,opt,name=targetUserId,proto3" json:"targetUserId,omitempty"`
	// contains filtered or unexported fields
}

死亡结果

func (*UserDieResult) Descriptor deprecated

func (*UserDieResult) Descriptor() ([]byte, []int)

Deprecated: Use UserDieResult.ProtoReflect.Descriptor instead.

func (*UserDieResult) GetTargetUserId

func (x *UserDieResult) GetTargetUserId() uint32

func (*UserDieResult) ProtoMessage

func (*UserDieResult) ProtoMessage()

func (*UserDieResult) ProtoReflect

func (x *UserDieResult) ProtoReflect() protoreflect.Message

func (*UserDieResult) Reset

func (x *UserDieResult) Reset()

func (*UserDieResult) String

func (x *UserDieResult) String() string

type UserEntryCmd

type UserEntryCmd struct {
	// contains filtered or unexported fields
}

用户入场 ///////////////////////////////////////////////////////////////////// 指令

func (*UserEntryCmd) Descriptor deprecated

func (*UserEntryCmd) Descriptor() ([]byte, []int)

Deprecated: Use UserEntryCmd.ProtoReflect.Descriptor instead.

func (*UserEntryCmd) ProtoMessage

func (*UserEntryCmd) ProtoMessage()

func (*UserEntryCmd) ProtoReflect

func (x *UserEntryCmd) ProtoReflect() protoreflect.Message

func (*UserEntryCmd) Reset

func (x *UserEntryCmd) Reset()

func (*UserEntryCmd) String

func (x *UserEntryCmd) String() string

type UserEntryResult

type UserEntryResult struct {

	// 用户 Id
	UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// 用户名称
	UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	// 英雄形象
	HeroAvatar string `protobuf:"bytes,3,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*UserEntryResult) Descriptor deprecated

func (*UserEntryResult) Descriptor() ([]byte, []int)

Deprecated: Use UserEntryResult.ProtoReflect.Descriptor instead.

func (*UserEntryResult) GetHeroAvatar

func (x *UserEntryResult) GetHeroAvatar() string

func (*UserEntryResult) GetUserId

func (x *UserEntryResult) GetUserId() uint32

func (*UserEntryResult) GetUserName

func (x *UserEntryResult) GetUserName() string

func (*UserEntryResult) ProtoMessage

func (*UserEntryResult) ProtoMessage()

func (*UserEntryResult) ProtoReflect

func (x *UserEntryResult) ProtoReflect() protoreflect.Message

func (*UserEntryResult) Reset

func (x *UserEntryResult) Reset()

func (*UserEntryResult) String

func (x *UserEntryResult) String() string

type UserLoginCmd

type UserLoginCmd struct {

	// 用户名称
	UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
	// 用户密码
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

用户登录 ///////////////////////////////////////////////////////////////////// 指令

func (*UserLoginCmd) Descriptor deprecated

func (*UserLoginCmd) Descriptor() ([]byte, []int)

Deprecated: Use UserLoginCmd.ProtoReflect.Descriptor instead.

func (*UserLoginCmd) GetPassword

func (x *UserLoginCmd) GetPassword() string

func (*UserLoginCmd) GetUserName

func (x *UserLoginCmd) GetUserName() string

func (*UserLoginCmd) ProtoMessage

func (*UserLoginCmd) ProtoMessage()

func (*UserLoginCmd) ProtoReflect

func (x *UserLoginCmd) ProtoReflect() protoreflect.Message

func (*UserLoginCmd) Reset

func (x *UserLoginCmd) Reset()

func (*UserLoginCmd) String

func (x *UserLoginCmd) String() string

type UserLoginResult

type UserLoginResult struct {

	// 用户 Id,
	// 如果是 -1 则说明登录失败
	UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// 用户名称
	UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	// 英雄形象
	HeroAvatar string `protobuf:"bytes,3,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*UserLoginResult) Descriptor deprecated

func (*UserLoginResult) Descriptor() ([]byte, []int)

Deprecated: Use UserLoginResult.ProtoReflect.Descriptor instead.

func (*UserLoginResult) GetHeroAvatar

func (x *UserLoginResult) GetHeroAvatar() string

func (*UserLoginResult) GetUserId

func (x *UserLoginResult) GetUserId() uint32

func (*UserLoginResult) GetUserName

func (x *UserLoginResult) GetUserName() string

func (*UserLoginResult) ProtoMessage

func (*UserLoginResult) ProtoMessage()

func (*UserLoginResult) ProtoReflect

func (x *UserLoginResult) ProtoReflect() protoreflect.Message

func (*UserLoginResult) Reset

func (x *UserLoginResult) Reset()

func (*UserLoginResult) String

func (x *UserLoginResult) String() string

type UserMoveToCmd

type UserMoveToCmd struct {

	//
	// XXX 注意: 用户移动指令中没有用户 Id,
	// 这是为什么?
	//
	// 起始位置 X
	MoveFromPosX float32 `protobuf:"fixed32,1,opt,name=moveFromPosX,proto3" json:"moveFromPosX,omitempty"`
	// 起始位置 Y
	MoveFromPosY float32 `protobuf:"fixed32,2,opt,name=moveFromPosY,proto3" json:"moveFromPosY,omitempty"`
	// 移动到位置 X
	MoveToPosX float32 `protobuf:"fixed32,3,opt,name=moveToPosX,proto3" json:"moveToPosX,omitempty"`
	// 移动到位置 Y
	MoveToPosY float32 `protobuf:"fixed32,4,opt,name=moveToPosY,proto3" json:"moveToPosY,omitempty"`
	// contains filtered or unexported fields
}

用户移动 ///////////////////////////////////////////////////////////////////// 指令

func (*UserMoveToCmd) Descriptor deprecated

func (*UserMoveToCmd) Descriptor() ([]byte, []int)

Deprecated: Use UserMoveToCmd.ProtoReflect.Descriptor instead.

func (*UserMoveToCmd) GetMoveFromPosX

func (x *UserMoveToCmd) GetMoveFromPosX() float32

func (*UserMoveToCmd) GetMoveFromPosY

func (x *UserMoveToCmd) GetMoveFromPosY() float32

func (*UserMoveToCmd) GetMoveToPosX

func (x *UserMoveToCmd) GetMoveToPosX() float32

func (*UserMoveToCmd) GetMoveToPosY

func (x *UserMoveToCmd) GetMoveToPosY() float32

func (*UserMoveToCmd) ProtoMessage

func (*UserMoveToCmd) ProtoMessage()

func (*UserMoveToCmd) ProtoReflect

func (x *UserMoveToCmd) ProtoReflect() protoreflect.Message

func (*UserMoveToCmd) Reset

func (x *UserMoveToCmd) Reset()

func (*UserMoveToCmd) String

func (x *UserMoveToCmd) String() string

type UserMoveToResult

type UserMoveToResult struct {

	// 移动用户 Id
	MoveUserId uint32 `protobuf:"varint,1,opt,name=moveUserId,proto3" json:"moveUserId,omitempty"`
	// 起始位置 X
	MoveFromPosX float32 `protobuf:"fixed32,2,opt,name=moveFromPosX,proto3" json:"moveFromPosX,omitempty"`
	// 起始位置 Y
	MoveFromPosY float32 `protobuf:"fixed32,3,opt,name=moveFromPosY,proto3" json:"moveFromPosY,omitempty"`
	// 移动到位置 X
	MoveToPosX float32 `protobuf:"fixed32,4,opt,name=moveToPosX,proto3" json:"moveToPosX,omitempty"`
	// 移动到位置 Y
	MoveToPosY float32 `protobuf:"fixed32,5,opt,name=moveToPosY,proto3" json:"moveToPosY,omitempty"`
	// 启程时间戳
	MoveStartTime uint64 `protobuf:"varint,6,opt,name=moveStartTime,proto3" json:"moveStartTime,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*UserMoveToResult) Descriptor deprecated

func (*UserMoveToResult) Descriptor() ([]byte, []int)

Deprecated: Use UserMoveToResult.ProtoReflect.Descriptor instead.

func (*UserMoveToResult) GetMoveFromPosX

func (x *UserMoveToResult) GetMoveFromPosX() float32

func (*UserMoveToResult) GetMoveFromPosY

func (x *UserMoveToResult) GetMoveFromPosY() float32

func (*UserMoveToResult) GetMoveStartTime

func (x *UserMoveToResult) GetMoveStartTime() uint64

func (*UserMoveToResult) GetMoveToPosX

func (x *UserMoveToResult) GetMoveToPosX() float32

func (*UserMoveToResult) GetMoveToPosY

func (x *UserMoveToResult) GetMoveToPosY() float32

func (*UserMoveToResult) GetMoveUserId

func (x *UserMoveToResult) GetMoveUserId() uint32

func (*UserMoveToResult) ProtoMessage

func (*UserMoveToResult) ProtoMessage()

func (*UserMoveToResult) ProtoReflect

func (x *UserMoveToResult) ProtoReflect() protoreflect.Message

func (*UserMoveToResult) Reset

func (x *UserMoveToResult) Reset()

func (*UserMoveToResult) String

func (x *UserMoveToResult) String() string

type UserQuitResult

type UserQuitResult struct {

	// 退出用户 Id
	QuitUserId uint32 `protobuf:"varint,1,opt,name=quitUserId,proto3" json:"quitUserId,omitempty"`
	// contains filtered or unexported fields
}

用户退场 /////////////////////////////////////////////////////////////////////

XXX 注意: 用户退场不需要指令, 因为是在断开服务器的时候执行

结果

func (*UserQuitResult) Descriptor deprecated

func (*UserQuitResult) Descriptor() ([]byte, []int)

Deprecated: Use UserQuitResult.ProtoReflect.Descriptor instead.

func (*UserQuitResult) GetQuitUserId

func (x *UserQuitResult) GetQuitUserId() uint32

func (*UserQuitResult) ProtoMessage

func (*UserQuitResult) ProtoMessage()

func (*UserQuitResult) ProtoReflect

func (x *UserQuitResult) ProtoReflect() protoreflect.Message

func (*UserQuitResult) Reset

func (x *UserQuitResult) Reset()

func (*UserQuitResult) String

func (x *UserQuitResult) String() string

type UserStopCmd

type UserStopCmd struct {
	// contains filtered or unexported fields
}

用户停驻 ///////////////////////////////////////////////////////////////////// 指令

func (*UserStopCmd) Descriptor deprecated

func (*UserStopCmd) Descriptor() ([]byte, []int)

Deprecated: Use UserStopCmd.ProtoReflect.Descriptor instead.

func (*UserStopCmd) ProtoMessage

func (*UserStopCmd) ProtoMessage()

func (*UserStopCmd) ProtoReflect

func (x *UserStopCmd) ProtoReflect() protoreflect.Message

func (*UserStopCmd) Reset

func (x *UserStopCmd) Reset()

func (*UserStopCmd) String

func (x *UserStopCmd) String() string

type UserStopResult

type UserStopResult struct {

	// 停驻用户 Id
	StopUserId uint32 `protobuf:"varint,1,opt,name=stopUserId,proto3" json:"stopUserId,omitempty"`
	// 停驻在位置 X
	StopAtPosX float32 `protobuf:"fixed32,2,opt,name=stopAtPosX,proto3" json:"stopAtPosX,omitempty"`
	// 停驻在位置 Y
	StopAtPosY float32 `protobuf:"fixed32,3,opt,name=stopAtPosY,proto3" json:"stopAtPosY,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*UserStopResult) Descriptor deprecated

func (*UserStopResult) Descriptor() ([]byte, []int)

Deprecated: Use UserStopResult.ProtoReflect.Descriptor instead.

func (*UserStopResult) GetStopAtPosX

func (x *UserStopResult) GetStopAtPosX() float32

func (*UserStopResult) GetStopAtPosY

func (x *UserStopResult) GetStopAtPosY() float32

func (*UserStopResult) GetStopUserId

func (x *UserStopResult) GetStopUserId() uint32

func (*UserStopResult) ProtoMessage

func (*UserStopResult) ProtoMessage()

func (*UserStopResult) ProtoReflect

func (x *UserStopResult) ProtoReflect() protoreflect.Message

func (*UserStopResult) Reset

func (x *UserStopResult) Reset()

func (*UserStopResult) String

func (x *UserStopResult) String() string

type UserSubtractHpResult

type UserSubtractHpResult struct {

	// 目标用户 Id
	TargetUserId uint32 `protobuf:"varint,1,opt,name=targetUserId,proto3" json:"targetUserId,omitempty"`
	// 减血量
	SubtractHp uint32 `protobuf:"varint,2,opt,name=subtractHp,proto3" json:"subtractHp,omitempty"`
	// contains filtered or unexported fields
}

用户减血结果

func (*UserSubtractHpResult) Descriptor deprecated

func (*UserSubtractHpResult) Descriptor() ([]byte, []int)

Deprecated: Use UserSubtractHpResult.ProtoReflect.Descriptor instead.

func (*UserSubtractHpResult) GetSubtractHp

func (x *UserSubtractHpResult) GetSubtractHp() uint32

func (*UserSubtractHpResult) GetTargetUserId

func (x *UserSubtractHpResult) GetTargetUserId() uint32

func (*UserSubtractHpResult) ProtoMessage

func (*UserSubtractHpResult) ProtoMessage()

func (*UserSubtractHpResult) ProtoReflect

func (x *UserSubtractHpResult) ProtoReflect() protoreflect.Message

func (*UserSubtractHpResult) Reset

func (x *UserSubtractHpResult) Reset()

func (*UserSubtractHpResult) String

func (x *UserSubtractHpResult) String() string

type WhoElseIsHereCmd

type WhoElseIsHereCmd struct {
	// contains filtered or unexported fields
}

还有谁在场 ///////////////////////////////////////////////////////////////////// 指令

func (*WhoElseIsHereCmd) Descriptor deprecated

func (*WhoElseIsHereCmd) Descriptor() ([]byte, []int)

Deprecated: Use WhoElseIsHereCmd.ProtoReflect.Descriptor instead.

func (*WhoElseIsHereCmd) ProtoMessage

func (*WhoElseIsHereCmd) ProtoMessage()

func (*WhoElseIsHereCmd) ProtoReflect

func (x *WhoElseIsHereCmd) ProtoReflect() protoreflect.Message

func (*WhoElseIsHereCmd) Reset

func (x *WhoElseIsHereCmd) Reset()

func (*WhoElseIsHereCmd) String

func (x *WhoElseIsHereCmd) String() string

type WhoElseIsHereResult

type WhoElseIsHereResult struct {

	// 用户信息数组
	UserInfo []*WhoElseIsHereResult_UserInfo `protobuf:"bytes,1,rep,name=userInfo,proto3" json:"userInfo,omitempty"`
	// contains filtered or unexported fields
}

结果

func (*WhoElseIsHereResult) Descriptor deprecated

func (*WhoElseIsHereResult) Descriptor() ([]byte, []int)

Deprecated: Use WhoElseIsHereResult.ProtoReflect.Descriptor instead.

func (*WhoElseIsHereResult) GetUserInfo

func (*WhoElseIsHereResult) ProtoMessage

func (*WhoElseIsHereResult) ProtoMessage()

func (*WhoElseIsHereResult) ProtoReflect

func (x *WhoElseIsHereResult) ProtoReflect() protoreflect.Message

func (*WhoElseIsHereResult) Reset

func (x *WhoElseIsHereResult) Reset()

func (*WhoElseIsHereResult) String

func (x *WhoElseIsHereResult) String() string

type WhoElseIsHereResult_UserInfo

type WhoElseIsHereResult_UserInfo struct {

	// 用户 Id
	UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// 用户名称
	UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	// 英雄形象
	HeroAvatar string `protobuf:"bytes,3,opt,name=heroAvatar,proto3" json:"heroAvatar,omitempty"`
	// 移动状态
	MoveState *WhoElseIsHereResult_UserInfo_MoveState `protobuf:"bytes,4,opt,name=moveState,proto3" json:"moveState,omitempty"`
	// contains filtered or unexported fields
}

用户信息

func (*WhoElseIsHereResult_UserInfo) Descriptor deprecated

func (*WhoElseIsHereResult_UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use WhoElseIsHereResult_UserInfo.ProtoReflect.Descriptor instead.

func (*WhoElseIsHereResult_UserInfo) GetHeroAvatar

func (x *WhoElseIsHereResult_UserInfo) GetHeroAvatar() string

func (*WhoElseIsHereResult_UserInfo) GetMoveState

func (*WhoElseIsHereResult_UserInfo) GetUserId

func (x *WhoElseIsHereResult_UserInfo) GetUserId() uint32

func (*WhoElseIsHereResult_UserInfo) GetUserName

func (x *WhoElseIsHereResult_UserInfo) GetUserName() string

func (*WhoElseIsHereResult_UserInfo) ProtoMessage

func (*WhoElseIsHereResult_UserInfo) ProtoMessage()

func (*WhoElseIsHereResult_UserInfo) ProtoReflect

func (*WhoElseIsHereResult_UserInfo) Reset

func (x *WhoElseIsHereResult_UserInfo) Reset()

func (*WhoElseIsHereResult_UserInfo) String

type WhoElseIsHereResult_UserInfo_MoveState

type WhoElseIsHereResult_UserInfo_MoveState struct {

	// 起始位置 X
	FromPosX float32 `protobuf:"fixed32,1,opt,name=fromPosX,proto3" json:"fromPosX,omitempty"`
	// 起始位置 Y
	FromPosY float32 `protobuf:"fixed32,2,opt,name=fromPosY,proto3" json:"fromPosY,omitempty"`
	// 移动到位置 X
	ToPosX float32 `protobuf:"fixed32,3,opt,name=toPosX,proto3" json:"toPosX,omitempty"`
	// 移动到位置 Y
	ToPosY float32 `protobuf:"fixed32,4,opt,name=toPosY,proto3" json:"toPosY,omitempty"`
	// 启程时间戳
	StartTime uint64 `protobuf:"varint,5,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// contains filtered or unexported fields
}

移动状态

func (*WhoElseIsHereResult_UserInfo_MoveState) Descriptor deprecated

func (*WhoElseIsHereResult_UserInfo_MoveState) Descriptor() ([]byte, []int)

Deprecated: Use WhoElseIsHereResult_UserInfo_MoveState.ProtoReflect.Descriptor instead.

func (*WhoElseIsHereResult_UserInfo_MoveState) GetFromPosX

func (*WhoElseIsHereResult_UserInfo_MoveState) GetFromPosY

func (*WhoElseIsHereResult_UserInfo_MoveState) GetStartTime

func (*WhoElseIsHereResult_UserInfo_MoveState) GetToPosX

func (*WhoElseIsHereResult_UserInfo_MoveState) GetToPosY

func (*WhoElseIsHereResult_UserInfo_MoveState) ProtoMessage

func (*WhoElseIsHereResult_UserInfo_MoveState) ProtoReflect

func (*WhoElseIsHereResult_UserInfo_MoveState) Reset

func (*WhoElseIsHereResult_UserInfo_MoveState) String

Jump to

Keyboard shortcuts

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