refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范 - 更新 SkillInfo 结构体,增加技能等级字段 - 删除未使用的 LoginUserInfo 和 ServerInfo 结构体 - 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
32
common/core/info/battle/ChangePetInfo.java
Normal file
32
common/core/info/battle/ChangePetInfo.java
Normal file
@@ -0,0 +1,32 @@
|
||||
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 ChangePetInfo {
|
||||
@FieldDescription("米米号 野怪0")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("切换上场的精灵编号")
|
||||
private @UInt long petId;
|
||||
@FieldDescription("精灵名字 16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String petName;
|
||||
@FieldDescription("切换上场的等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("切换上场的生命")
|
||||
private @UInt long hp;
|
||||
@FieldDescription("切换上场的最大生命")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("切换上场的捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
Reference in New Issue
Block a user