style: 清理代码注释和格式

This commit is contained in:
xinian
2026-04-04 05:12:30 +08:00
committed by cnb
parent 31d274dd9d
commit b62b4af628
31 changed files with 863 additions and 195 deletions

View File

@@ -73,23 +73,23 @@ type RPCFightStartinfo struct {
// FightPetInfo 战斗精灵信息结构体FightPetInfo类
type FightPetInfo struct {
// 用户ID野怪为0@UInt long
// 用户ID野怪为0
UserID uint32 `fieldDesc:"用户ID 野怪为0" `
// 当前对战精灵ID@UInt long
// 当前对战精灵ID
ID uint32 `fieldDesc:"当前对战精灵ID" `
Name string `struc:"[16]byte"`
// 精灵的捕获时间@UInt long
// 精灵的捕获时间
CatchTime uint32 `fieldDesc:"精灵的捕获时间" `
// 当前HP@UInt long
// 当前HP
Hp uint32 `fieldDesc:"当前HP" `
// 最大HP@UInt long
// 最大HP
MaxHp uint32 `fieldDesc:"最大HP" `
// 当前等级@UInt long
// 当前等级
Level uint32 `fieldDesc:"当前等级" `
// 精灵是否能捕捉1为能捕捉0为不能捕捉
@@ -180,18 +180,12 @@ type EnumPetStatus = byte
// 精灵的能力提升
type PropDict struct {
// 攻击(@UInt long → uint32
Attack int8
// 防御(@UInt long → uint32
Defence int8
// 特攻(@UInt long → uint32
SpecialAttack int8
// 特防(@UInt long → uint32
Attack int8
Defence int8
SpecialAttack int8
SpecialDefence int8
// 速度(@UInt long → uint32
Speed int8
// 命中(@UInt long → uint32
Speed int8
Accuracy int8
}
@@ -204,7 +198,6 @@ type NoteUseSkillOutboundInfo struct {
}
type FightStartOutboundInfo struct {
// @UInt long类型
IsCanAuto uint32 `fieldDesc:"是否自动 默认给0 怀疑是自动战斗器使用的" `
// 当前战斗精灵信息1前端通过userid判断是否为我方
@@ -215,7 +208,7 @@ type FightStartOutboundInfo struct {
}
type S2C_2404 struct {
// 用户ID野怪为0@UInt long
// 用户ID野怪为0
UserID uint32 `fieldDesc:"userID 如果为野怪则为0" `
}
type S2C_50005 struct {