style: 清理代码注释和格式
This commit is contained in:
@@ -60,7 +60,6 @@ type PVPRankInfo struct {
|
||||
type NoteReadyToFightInfo struct {
|
||||
//MAXPET uint32 `struc:"skip"` // 最大精灵数 struc:"skip"`
|
||||
// 战斗类型ID(与野怪战斗为3,与人战斗为1,前端似乎未使用)
|
||||
// @UInt long
|
||||
Status uint32 `fieldDesc:"战斗类型ID 但前端好像没有用到 与野怪战斗为3,与人战斗似乎是1" `
|
||||
//Mode uint32 `struc:"skip"`
|
||||
// 我方信息
|
||||
@@ -80,7 +79,7 @@ type NoteReadyToFightInfo struct {
|
||||
OpponentPetList []ReadyFightPetInfo `fieldDesc:"敌方的精灵信息 如果是野怪 那么再给客户端发送这个包体时就提前生成好了这只精灵的PetInfo,然后把从PetInfo中把部分信息写入到这个敌方的精灵信息中再发送这个包结构体" serialize:"lengthFirst,lengthType=uint16,type=structArray"`
|
||||
}
|
||||
type FightUserInfo struct {
|
||||
// 用户ID(野怪为0),@UInt long
|
||||
// 用户ID(野怪为0)
|
||||
UserID uint32 `fieldDesc:"userID 如果为野怪则为0" `
|
||||
|
||||
// 玩家名称(野怪为UTF-8的'-',固定16字节)
|
||||
@@ -90,37 +89,36 @@ type FightUserInfo struct {
|
||||
|
||||
// ReadyFightPetInfo 准备战斗的精灵信息结构体,ReadyFightPetInfo类
|
||||
type ReadyFightPetInfo struct {
|
||||
// 精灵ID,@UInt long
|
||||
// 精灵ID
|
||||
ID uint32 `fieldDesc:"精灵ID" `
|
||||
|
||||
// 精灵等级,@UInt long
|
||||
// 精灵等级
|
||||
Level uint32 `fieldDesc:"精灵等级" `
|
||||
|
||||
// 精灵当前HP,@UInt long
|
||||
// 精灵当前HP
|
||||
Hp uint32 `fieldDesc:"精灵HP" `
|
||||
|
||||
// 精灵最大HP,@UInt long
|
||||
// 精灵最大HP
|
||||
MaxHp uint32 `fieldDesc:"最大HP" `
|
||||
SkillListLen uint32 `struc:"sizeof=SkillList"`
|
||||
// 技能信息列表(固定4个元素,技能ID和剩余PP,无技能则为0)
|
||||
// List<SkillInfo>,初始化容量为4
|
||||
SkillList []SkillInfo `fieldDesc:"技能信息 技能ID跟剩余PP 固定32字节 没有给0" serialize:"fixedLength=4,type=structArray"`
|
||||
|
||||
// 精灵捕获时间,@UInt long
|
||||
// 精灵捕获时间
|
||||
CatchTime uint32 `fieldDesc:"精灵捕获时间" `
|
||||
|
||||
// 捕捉地图(固定给0),@UInt long
|
||||
// 捕捉地图(固定给0)
|
||||
CatchMap uint32 `fieldDesc:"捕捉地图 给0" `
|
||||
|
||||
// 固定给0,@UInt long
|
||||
// 固定给0
|
||||
CatchRect uint32 `fieldDesc:"给0" `
|
||||
|
||||
// 固定给0,@UInt long
|
||||
CatchLevel uint32 `fieldDesc:"给0" `
|
||||
SkinID uint32 `fieldDesc:"精灵皮肤ID" `
|
||||
// 是否闪光(@UInt long → uint32,0=否,1=是)
|
||||
ShinyLen uint32 `json:"-" struc:"sizeof=ShinyInfo"`
|
||||
ShinyInfo []data.GlowFilter `json:"ShinyInfo,omitempty"`
|
||||
// 固定给0
|
||||
CatchLevel uint32 `fieldDesc:"给0" `
|
||||
SkinID uint32 `fieldDesc:"精灵皮肤ID" `
|
||||
ShinyLen uint32 `json:"-" struc:"sizeof=ShinyInfo"`
|
||||
ShinyInfo []data.GlowFilter `json:"ShinyInfo,omitempty"`
|
||||
}
|
||||
type FightOverInfo struct {
|
||||
//0 正常结束
|
||||
|
||||
Reference in New Issue
Block a user