Files
bl/common/core/info/battle/ReadyFightPetInfo.java
昔念 f081150178 refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范
- 更新 SkillInfo 结构体,增加技能等级字段
- 删除未使用的 LoginUserInfo 和 ServerInfo 结构体
- 引入 google/uuid 包,用于后续可能的唯一标识生成
2025-06-22 12:32:19 +08:00

43 lines
1.2 KiB
Go

package org.nieo.seerproject.common.net.info.battle;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nieo.seerproject.common.annotations.FieldDescription;
import org.nieo.seerproject.common.annotations.serialize.UInt;
import org.nieo.seerproject.common.net.info.pet.skill.SkillInfo;
import java.util.ArrayList;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ReadyFightPetInfo {
@FieldDescription("精灵ID")
private @UInt long id;
@FieldDescription("精灵等级")
private @UInt long level;
@FieldDescription("精灵HP")
private @UInt long hp;
@FieldDescription("最大HP")
private @UInt long maxHp;
@FieldDescription("技能信息 技能ID跟剩余PP 固定32字节 没有给0")
@Builder.Default
private List<SkillInfo> skillList = new ArrayList<>(4);
@FieldDescription("精灵捕获时间")
private @UInt long catchTime;
@FieldDescription("捕捉地图 给0")
private @UInt long catchMap;
@FieldDescription("给0")
private @UInt long catchRect;
@FieldDescription("给0")
private @UInt long catchLevel;
@FieldDescription("精灵皮肤ID")
private @UInt long skinId;
@FieldDescription("精灵是否闪光")
private @UInt long shiny;
}