refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范 - 更新 SkillInfo 结构体,增加技能等级字段 - 删除未使用的 LoginUserInfo 和 ServerInfo 结构体 - 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
29
common/core/info/pet/bag/PetReleaseOutboundInfo.java
Normal file
29
common/core/info/pet/bag/PetReleaseOutboundInfo.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package org.nieo.seerproject.common.net.info.pet.bag;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
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.info.pet.PetInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Release)
|
||||
public class PetReleaseOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("暂定0")
|
||||
private @UInt long homeEnergy;
|
||||
@FieldDescription("精灵生成时间")
|
||||
private @UInt long firstPetTime;
|
||||
// @FieldDescription("0为放入仓库,1为放入背包")
|
||||
// private @UInt long flag;
|
||||
// petInfo 最大长度应该为1
|
||||
// 当flag为0时,放回仓库;当flag为1时,放回背包
|
||||
// 即:List长度为0时,表示放回仓库;长度为1时,表示放回背包
|
||||
@FieldDescription("精灵信息")
|
||||
private List<PetInfo> petInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user