```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

refactor(player): 移除废弃的宠物列表计数字段

移除了 PlayerInfo 结构体中不再使用的 PetListCount 字段,
该字段为旧登录协议中的精灵列表长度,现已废弃并不再使用。
```
This commit is contained in:
昔念
2026-04-04 14:00:36 +08:00
parent 8ac2833ce2
commit 7916f90992

View File

@@ -205,7 +205,6 @@ type PlayerInfo struct {
Badge uint32 `struc:"uint32" default:"0" json:"badge"` // 默认0
Reserved1 [27]byte `struc:"[27]byte" default:"3" json:"reserved1"` // 27字节默认3
TaskList [1000]byte `struc:"[1000]byte" default:"0" json:"task_list"` // 任务状态数组500字节默认3
PetListCount uint32 `struc:"skip" json:"pet_list_count"` // 旧登录协议精灵列表长度(已跳过)
PetList []PetInfo `struc:"skip" json:"pet_list"` // 精灵背包内信息(不再走旧登录包体)
BackupPetList []PetInfo `struc:"skip" json:"backup_pet_list"` // 精灵并列备用列表
ClothesCount uint32 `struc:"sizeof=Clothes" json:"clothes_count"` // 穿戴装备数量