refactor(common): 重构宠物相关信息结构
- 修改 PetInfo 和 PetEffectInfo 结构体,统一字段命名规范 - 更新 SkillInfo 结构体,增加技能等级字段 - 删除未使用的 LoginUserInfo 和 ServerInfo 结构体 - 引入 google/uuid 包,用于后续可能的唯一标识生成
This commit is contained in:
28
common/core/info/nono/NonoFollowOrHomeOutboundInfo.java
Normal file
28
common/core/info/nono/NonoFollowOrHomeOutboundInfo.java
Normal file
@@ -0,0 +1,28 @@
|
||||
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.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Nono_Follow_Or_Home)
|
||||
public class NonoFollowOrHomeOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userID;
|
||||
@FieldDescription("设置的值与下面的flag变量相同")
|
||||
private @UInt long superStage;
|
||||
@FieldDescription("1为跟随 0为收回 且如果为收回 那么后续结构不需要发送, 不序列化")
|
||||
private @UInt long flag;
|
||||
@FieldDescription("nono名字 补到16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nonoNick;
|
||||
@FieldDescription("nono颜色 rpg")
|
||||
private @UInt long color;
|
||||
@FieldDescription("能量值 前端显示除以1000后的值")
|
||||
private @UInt long power;
|
||||
}
|
||||
Reference in New Issue
Block a user