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

39 lines
1.4 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.ArraySerialize;
import org.nieo.seerproject.common.annotations.serialize.UInt;
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FightPetInfo {
@FieldDescription("用户ID 野怪为0")
private @UInt long userId;
@FieldDescription("当前对战精灵ID")
private @UInt long petId;
@FieldDescription("空的16字节byte")
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
private String petName;
@FieldDescription("精灵的捕获时间")
private @UInt long catchTime;
@FieldDescription("当前HP")
private @UInt long hp;
@FieldDescription("最大HP")
private @UInt long maxHp;
@FieldDescription("当前等级")
private @UInt long level;
@FieldDescription("精灵是否能捕捉. 1为能捕捉 0为不能捕捉")
private @UInt long catchable;
@FieldDescription("这里实际上应该是6个单字节byte, 内容为buff等级 攻击 速度 特攻 防御 特防 命中等." +
"但具体顺序未知可能需要测试. 具体数值为1-6等级")
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 6)
private byte [] battleLV;
}