refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范 - 更新 SkillInfo 结构体,增加技能等级字段 - 删除未使用的 LoginUserInfo 和 ServerInfo 结构体 - 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
57
common/core/info/user/SimUserInfoOutboundInfo.java
Normal file
57
common/core/info/user/SimUserInfoOutboundInfo.java
Normal file
@@ -0,0 +1,57 @@
|
||||
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.info.item.PeopleItemInfo;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_Sim_UserInfo)
|
||||
public class SimUserInfoOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userid;
|
||||
@FieldDescription("昵称 16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nick;
|
||||
@FieldDescription("rgb颜色")
|
||||
private @UInt long color;
|
||||
@FieldDescription("纹理 0")
|
||||
private @UInt long texture;
|
||||
@FieldDescription("默认值 1 位置")
|
||||
private @UInt long vip;
|
||||
@FieldDescription("默认值0 未知")
|
||||
private @UInt long status;
|
||||
@FieldDescription("地图类型 进入地图包传入的字段")
|
||||
private @UInt long mapType;
|
||||
@FieldDescription("地图id")
|
||||
private @UInt long mapID;
|
||||
@FieldDescription("能不能做教官")
|
||||
private @UInt long isCanBeTeacher;
|
||||
@FieldDescription("教官id")
|
||||
private @UInt long teacherID;
|
||||
@FieldDescription("学生id")
|
||||
private @UInt long studentID;
|
||||
@FieldDescription("教官成绩")
|
||||
private @UInt long graduationCount;
|
||||
@FieldDescription("vip等级 8")
|
||||
private @UInt long vipLevel;
|
||||
@FieldDescription("战队id")
|
||||
private @UInt long teamId;
|
||||
@FieldDescription("有没有跟随的精灵")
|
||||
private @UInt long isShow;
|
||||
@FieldDescription("穿戴装备")
|
||||
@Builder.Default
|
||||
private List<PeopleItemInfo> clothes = new ArrayList<>();
|
||||
}
|
||||
Reference in New Issue
Block a user