refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范 - 更新 SkillInfo 结构体,增加技能等级字段 - 删除未使用的 LoginUserInfo 和 ServerInfo 结构体 - 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
44
common/core/info/user/MoreUserInfoOutboundInfo.java
Normal file
44
common/core/info/user/MoreUserInfoOutboundInfo.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package org.nieo.seerproject.common.net.info.user;
|
||||
|
||||
import lombok.Builder;
|
||||
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;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_More_UserInfo)
|
||||
public class MoreUserInfoOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userID;
|
||||
@FieldDescription("昵称 补齐16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nick;
|
||||
@FieldDescription("注册时间 时间戳 按秒")
|
||||
private @UInt long registerTime;
|
||||
@FieldDescription("所有精灵数量")
|
||||
private @UInt long petAllNum;
|
||||
@FieldDescription("精灵最大等级")
|
||||
private @UInt long petMaxLev;
|
||||
@FieldDescription("spt boos成就 20字节 以任务状态完成 3为击败该boss, 目前spt只有12个, 剩下的长度以3填充")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 20)
|
||||
@Builder.Default
|
||||
private byte[] bossAchievement = new byte[20];
|
||||
@FieldDescription("教官成绩")
|
||||
private @UInt long graduationCount;
|
||||
@FieldDescription("精灵王胜场")
|
||||
private @UInt long monKingWin;
|
||||
@FieldDescription("大乱斗胜场")
|
||||
private @UInt long messWin;
|
||||
@FieldDescription("勇者之塔层数")
|
||||
private @UInt long maxStage;
|
||||
@FieldDescription("星际擂台胜场")
|
||||
private @UInt long maxArenaWins;
|
||||
}
|
||||
Reference in New Issue
Block a user