260 lines
8.1 KiB
Go
260 lines
8.1 KiB
Go
package old
|
|
|
|
// MsgLevelEnterReq 进入关卡挑战
|
|
type MsgLevelEnterReq struct {
|
|
CopyType uint32 `json:"CopyType"` //副本类型proto.CopyType
|
|
IndexId uint32 `json:"IndexId"` //配置表索引(ID)
|
|
}
|
|
|
|
// MsgSceneEnterAck 通知客户端进入场景消息
|
|
type MsgSceneEnterAck struct {
|
|
SceneId uint32 `json:"SceneId"` //场景ID
|
|
}
|
|
|
|
// CopyStatus 副本状态
|
|
type CopyStatus struct {
|
|
CopyType uint32 `json:"CopyType"` //副本类型,场景表中的副本类型
|
|
IndexId uint32 `json:"IndexId"` //配置表索引(ID)
|
|
MaxDepth uint32 `json:"MaxDepth"` //深度
|
|
MaxScore int32 `json:"MaxScore"` //得分(星数)
|
|
}
|
|
|
|
// MsgCopyStatusListAck 副本状态列表
|
|
type MsgCopyStatusListAck struct {
|
|
List []*CopyStatus `json:"List,omitempty"`
|
|
}
|
|
|
|
// MsgCopyStatusChangeAck 副本状态变更
|
|
type MsgCopyStatusChangeAck struct {
|
|
*CopyStatus
|
|
}
|
|
|
|
// CopySpeedRewardStatus 副本奖励状态
|
|
type CopySpeedRewardStatus struct {
|
|
Id uint32 `json:"Id"` //奖励ID(副本类型对应不同的副本奖励表ID)
|
|
Status uint32 `json:"Status"` //奖励状态
|
|
}
|
|
|
|
// CopySpeedStatus 竞速副本
|
|
type CopySpeedStatus struct {
|
|
CopyStatus
|
|
BeginTime int64 `json:"BeginTime,omitempty"`
|
|
EndTime int64 `json:"EndTime,omitempty"`
|
|
RankIndex uint32 `json:"RankIndex"` //排名
|
|
StatusList []*CopySpeedRewardStatus `json:"StatusList"`
|
|
}
|
|
|
|
// MsgCopySpeedStatusListAck 竞速副本状态列表返回
|
|
type MsgCopySpeedStatusListAck struct {
|
|
List []*CopySpeedStatus `json:"List,omitempty"`
|
|
}
|
|
|
|
// MsgCopySpeedStatusChangeAck 副本状态变更返回
|
|
type MsgCopySpeedStatusChangeAck struct {
|
|
*CopySpeedStatus
|
|
}
|
|
|
|
// MsgCopySpeedRewardStatusChangeAck 副本状态变更返回
|
|
type MsgCopySpeedRewardStatusChangeAck struct {
|
|
StatusList []*CopySpeedRewardStatus `json:"StatusList"`
|
|
}
|
|
|
|
// ArenaPlayer 排行榜玩家信息
|
|
type ArenaPlayer struct {
|
|
PlayerId uint64 `json:"PlayerId"` //玩家ID
|
|
IsRobot bool `json:"IsRobot,omitempty"` //是否机器人
|
|
Name string `json:"Name,omitempty"` //昵称
|
|
Avatar string `json:"Avatar,omitempty"` //头像
|
|
Capacity uint64 `json:"Capacity,omitempty"` //战力
|
|
RigHead uint32 `json:"RigHead,omitempty"` //钻头部件
|
|
RigHeadStar uint32 `json:"RigHeadStar,omitempty"` //钻头部件星级
|
|
RigBody uint32 `json:"RigBody,omitempty"` //机身部件
|
|
RigBodyStar uint32 `json:"RigBodyStar,omitempty"` //机身部件星级
|
|
RigTail uint32 `json:"RigTail,omitempty"` //机尾部件
|
|
RigTailStar uint32 `json:"RigTailStar,omitempty"` //机尾部件星级
|
|
RigEquips []uint32 `json:"RigEquips,omitempty"` //装备
|
|
RigPendants []uint32 `json:"RigPendants,omitempty"` //挂件
|
|
RigAttrs []float64 `json:"RigAttrs,omitempty"` //钻机属性
|
|
CopyId uint32 `json:"CopyId,omitempty"` //副本索引ID
|
|
Duration int64 `json:"Duration,omitempty"` //战斗持续时间
|
|
MaxScore int32 `json:"MaxScore,omitempty"` //得分(星数)
|
|
MaxDepth uint32 `json:"MaxDepth,omitempty"` //深度
|
|
RankIndex uint32 `json:"RankIndex,omitempty"` //排名
|
|
}
|
|
|
|
// MsgCopySpeedRankListReq 竞速副本排名列表
|
|
type MsgCopySpeedRankListReq struct {
|
|
Id uint32 `json:"Id"` //副本索引ID(CopySpeed表Id字段)
|
|
}
|
|
|
|
// MsgCopySpeedRankListAck 竞速副本排名列表
|
|
type MsgCopySpeedRankListAck struct {
|
|
MyRank *ArenaPlayer `json:"MyRank,omitempty"` //自身排名
|
|
RankList []*ArenaPlayer `json:"RankList,omitempty"` //排名列表(100名)
|
|
}
|
|
|
|
// MsgArenaPlayerDetailReq 竞技场玩家详细信息请求
|
|
type MsgArenaPlayerDetailReq struct {
|
|
CopyType uint32 `json:"CopyType"` //副本类型proto.CopyType
|
|
CopyId uint32 `json:"CopyId"` //副本索引ID(CopySpeed表Id字段)
|
|
PlayerId uint64 `json:"PlayerId"` //玩家ID
|
|
}
|
|
|
|
// MsgArenaPlayerDetailAck 竞技场玩家详细信息返回
|
|
type MsgArenaPlayerDetailAck struct {
|
|
*ArenaPlayer
|
|
}
|
|
|
|
// MsgCopySpeedGetRewardReq 竞速副本获取奖励请求
|
|
type MsgCopySpeedGetRewardReq struct {
|
|
Id uint32 `json:"Id"` //奖励ID(CopySpeedReward表id字段) //目前仅里程奖励,且只能领取一次不再重置,积分排名奖励结算后由邮件发送,积分排名奖励每周结算。
|
|
}
|
|
|
|
// MsgCopySpeedGetRewardAck 竞速副本获取奖励返回
|
|
type MsgCopySpeedGetRewardAck struct {
|
|
*MsgRewardListAck
|
|
}
|
|
|
|
type MsgMaterialCopySweepReq struct {
|
|
CopyType uint32 `json:"CopyType"` //副本类型proto.CopyType
|
|
IndexId uint32 `json:"IndexId"` //配置表索引(ID)
|
|
Times uint32 `json:"Times"` //扫荡次数
|
|
}
|
|
|
|
type MsgMaterialCopySweepAck struct {
|
|
*MsgRewardListAck
|
|
}
|
|
|
|
type PlanetCivilization struct {
|
|
CivilizationId uint32 `json:"CivilizationId"` //文明ID
|
|
Id uint32 `json:"Id"` //文件等级ID
|
|
}
|
|
|
|
type Planet struct {
|
|
Id uint32 `json:"Id"` //星球ID
|
|
CivilizationList []*PlanetCivilization `json:"CivilizationList"` //文明列表
|
|
}
|
|
|
|
type MsgPlanetListAck struct {
|
|
List []*Planet `json:"List,omitempty"`
|
|
}
|
|
|
|
type MsgPlanetChangeAck struct {
|
|
*Planet
|
|
}
|
|
|
|
type MsgPlanetMineReq struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
}
|
|
|
|
type MsgPlanetMineAck struct {
|
|
*MsgRewardListAck
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
}
|
|
|
|
type MsgPlanetCivilizationChooseReq struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
}
|
|
|
|
type MsgPlanetCivilizationChooseAck struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
CivilizationId uint32 `json:"CivilizationId"` //文明ID
|
|
}
|
|
|
|
type MsgPlanetCivilizationBuildReq struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
ReplacedId uint32 `json:"ReplacedId"` //被替换的文明ID(如果有)
|
|
CivilizationId uint32 `json:"CivilizationId"` //文明ID
|
|
}
|
|
|
|
type MsgPlanetCivilizationUpgradeReq struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
CivilizationId uint32 `json:"CivilizationId"` //文明ID
|
|
}
|
|
|
|
type MsgPlanetCivilizationDestroyReq struct {
|
|
PlanetId uint32 `json:"PlanetId"` //星球ID
|
|
CivilizationId uint32 `json:"CivilizationId"` //文明ID
|
|
}
|
|
|
|
type PlanetRawStoneStatus struct {
|
|
Id uint32 `json:"Id"` //ID
|
|
FreeTime int64 `json:"FreeTime"` //下次免费时间
|
|
MimeCount uint32 `json:"MimeCount"` //累计次数
|
|
}
|
|
|
|
type MsgPlanetRawStoneStatusListAck struct {
|
|
List []*PlanetRawStoneStatus `json:"List,omitempty"`
|
|
}
|
|
|
|
type MsgPlanetRawStoneMineReq struct {
|
|
Id uint32 `json:"Id"` //ID
|
|
Times uint32 `json:"Times"` //开采次数
|
|
}
|
|
|
|
type MsgPlanetRawStoneMineAck struct {
|
|
*MsgRewardListAck
|
|
}
|
|
|
|
type MsgPlanetRawStoneAccrueRewardReq struct {
|
|
Id uint32 `json:"Id"` //ID
|
|
}
|
|
|
|
type MsgPlanetRawStoneAccrueRewardAck struct {
|
|
*MsgRewardListAck
|
|
}
|
|
|
|
type CopyArenaStatus struct {
|
|
CopyStatus
|
|
BeginTime int64 `json:"BeginTime"` //开始时间
|
|
EndTime int64 `json:"EndTime"` //结束时间
|
|
RankIndex uint32 `json:"RankIndex"` //排名
|
|
}
|
|
|
|
type MsgCopyArenaStatusAck struct {
|
|
*CopyArenaStatus
|
|
}
|
|
|
|
type MsgCopyArenaMatchesReq struct {
|
|
Refresh bool `json:"Refresh"` //是否刷新对手
|
|
}
|
|
|
|
type MsgCopyArenaMatchesAck struct {
|
|
Matches []*ArenaPlayer `json:"Matches"` //当前对手列表
|
|
}
|
|
|
|
type MsgCopyArenaSelectMatchReq struct {
|
|
PlayerId uint64 `json:"PlayerId"` //玩家ID
|
|
}
|
|
|
|
type MsgCopyArenaSelectMatchAck struct {
|
|
}
|
|
|
|
type MsgCopyArenaRankListReq struct {
|
|
}
|
|
|
|
type MsgCopyArenaRankListAck struct {
|
|
MyRank *ArenaPlayer `json:"MyRank,omitempty"` //自身排名
|
|
RankList []*ArenaPlayer `json:"RankList,omitempty"` //排名列表(100名)
|
|
}
|
|
|
|
type MsgCopyArenaBattleRecordListReq struct {
|
|
}
|
|
|
|
type CopyArenaBattleRecord struct {
|
|
Attack bool `json:"Attack,omitempty"` //是否是进攻方,否则防守方
|
|
PlayerId uint64 `json:"PlayerId"` //对手ID
|
|
Name string `json:"Name"` //对手昵称
|
|
Avatar string `json:"Avatar"` //对手头像
|
|
Score int32 `json:"Score"` //分数
|
|
}
|
|
|
|
type MsgCopyArenaBattleRecordListAck struct {
|
|
List []*CopyArenaBattleRecord `json:"List,omitempty"` //战斗记录列表
|
|
}
|
|
|
|
type MsgCopyMainlineRankListAck struct {
|
|
MyRank *ArenaPlayer `json:"MyRank,omitempty"` //自身排名
|
|
RankList []*ArenaPlayer `json:"RankList,omitempty"` //排名列表(100名)
|
|
}
|