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,52 @@
package org.nieo.seerproject.common.net.info.nono;
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.annotations.serialize.UShort;
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
import org.nieo.seerproject.common.net.OutboundMessage;
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
@Data
@AutoCodec
@OutboundMessageType(MessageCommandIDRegistry.Nono_Info)
public class NonoOutboundInfo implements OutboundMessage {
@FieldDescription("米米号")
private @UInt long userID;
@FieldDescription("未知")
private @UInt long num;
@FieldDescription("未知")
private @UInt long state;
@FieldDescription("16字节")
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
private String nick;
@FieldDescription("是不是超能nono")
private @UInt long superNono;
@FieldDescription("nono颜色 00 rgb")
private @UInt long color;
@FieldDescription("未知, 返回的实际数值要*1000")
private @UInt long power;
@FieldDescription("未知, 返回的实际数值要*1000")
private @UInt long mate;
@FieldDescription("未知")
private @UInt long iq;
@FieldDescription("未知")
private @UShort int ai;
@FieldDescription("未知, 返回的实际数值要除以1000")
private @UInt long birth;
@FieldDescription("充电时间")
private @UInt long chargeTime;
@FieldDescription("20字节")
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 20)
private byte[] func = new byte[20];
@FieldDescription("超能nono能力")
private @UInt long superEnergy;
@FieldDescription("超能nono等级")
private @UInt long superLevel;
@FieldDescription("超能nono阶段")
private @UInt long superStage;
}