refactor(common): 重构宠物相关信息结构

- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范
- 更新 SkillInfo 结构体,增加技能等级字段
- 删除未使用的 LoginUserInfo 和 ServerInfo 结构体
- 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
2025-06-22 12:32:19 +08:00
parent 720294ad27
commit f081150178
139 changed files with 3065 additions and 87 deletions

View File

@@ -0,0 +1,54 @@
package org.nieo.seerproject.common.net.info.pet;
import lombok.Data;
import org.nieo.seerproject.common.annotations.FieldDescription;
import org.nieo.seerproject.common.annotations.OutboundMessageType;
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
import org.nieo.seerproject.common.annotations.serialize.UInt;
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
import org.nieo.seerproject.common.net.OutboundMessage;
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
@AutoCodec
@Data
@OutboundMessageType(MessageCommandIDRegistry.Pet_Room)
public class RoomPetInfoOutboundInfo implements OutboundMessage {
@FieldDescription("精灵所属主人的用户ID")
private @UInt long ownerID; // 与前端发送过来的包数据相同
@FieldDescription("精灵的捕获时间")
private @UInt long catchTime; // 与前端发送过来的包数据相同
@FieldDescription("精灵的类别ID")
public @UInt long id;
@FieldDescription("精灵的性格id")
public @UInt long nature;
@FieldDescription("精灵的等级")
public @UInt long lv;
@FieldDescription("精灵的HP")
public @UInt long hp;
@FieldDescription("精灵的攻击")
public @UInt long atk;
@FieldDescription("精灵的防御")
public @UInt long def;
@FieldDescription("精灵的特攻")
public @UInt long spatk;
@FieldDescription("精灵的特防")
public @UInt long spdef;
@FieldDescription("精灵的速度")
public @UInt long speed;
@FieldDescription("填充字节")
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 55)
public byte[] reserved = new byte[55];
}