refactor(info): 删除多余的信息结构体文件
- 移除了多个未使用的 Java 和 Go 信息结构体文件 - 优化了项目结构,减少了冗余代码 - 这些文件可能是早期开发阶段的遗留代码,现在已不再需要
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
package info
|
||||
|
||||
/*
|
||||
* CrossDomainInfo 跨域请求消息对象, 仅作为标记, 无任何意义
|
||||
*/
|
||||
var Instance = &crossDomainInfo{}
|
||||
|
||||
type crossDomainInfo struct{}
|
||||
|
||||
func NewCrossDomainInfo() *crossDomainInfo {
|
||||
return Instance
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
* 跨域请求消息对象, 仅作为标记, 无任何意义
|
||||
*/
|
||||
public class CrossDomainInfo {
|
||||
@SuppressWarnings("InstantiationOfUtilityClass")
|
||||
public static final @Nonnull CrossDomainInfo INSTANCE = new CrossDomainInfo();
|
||||
|
||||
private CrossDomainInfo() {}
|
||||
}
|
||||
21
common/core/info/LoginSidInfo.go
Normal file
21
common/core/info/LoginSidInfo.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package info
|
||||
|
||||
func (h InfoCodec) In_1001(data []byte) any { //EnumCommandID//todo c2s数据
|
||||
|
||||
//fmt.Printf(" 处理命令: %s, 数据长度: %d\n", len(data))
|
||||
return NewLoginSidInfo()
|
||||
}
|
||||
func (h InfoCodec) Out_1001(data []byte) { //EnumCommandID//TODO s2c数据
|
||||
|
||||
//fmt.Printf(" 处理命令: %s, 数据长度: %d\n", len(data))
|
||||
}
|
||||
|
||||
// LoginSidInfo 登录携带的凭证结构体
|
||||
type LoginSidInfo struct {
|
||||
Sid []byte `struc:"[16]byte"` // 登录会话ID,固定长度16字节
|
||||
}
|
||||
|
||||
// NewLoginSidInfo 创建一个新的登录凭证实例
|
||||
func NewLoginSidInfo() LoginSidInfo {
|
||||
return LoginSidInfo{}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Catch_Monster)
|
||||
public class CatchMonsterInboundInfo implements InboundMessage {
|
||||
@FieldDescription("胶囊id")
|
||||
private @UInt long capsuleId;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Catch_Monster)
|
||||
public class CatchMonsterOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("宠物编号")
|
||||
private @UInt long petId;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Challenge_Boss)
|
||||
public class ChallengeBossInboundInfo implements InboundMessage {
|
||||
@FieldDescription("boss的序号 从0开始")
|
||||
private @UInt long bossId;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Change_Pet)
|
||||
public class ChangePetInboundInfo implements InboundMessage {
|
||||
@FieldDescription("捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ChangePetInfo {
|
||||
@FieldDescription("米米号 野怪0")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("切换上场的精灵编号")
|
||||
private @UInt long petId;
|
||||
@FieldDescription("精灵名字 16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String petName;
|
||||
@FieldDescription("切换上场的等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("切换上场的生命")
|
||||
private @UInt long hp;
|
||||
@FieldDescription("切换上场的最大生命")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("切换上场的捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Change_Pet)
|
||||
public class ChangePetOutboundInfo implements OutboundMessage {
|
||||
private ChangePetInfo info;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Fight_NPC_Monster)
|
||||
public class FightNpcMonsterInboundInfo implements InboundMessage {
|
||||
@FieldDescription("地图刷新怪物结构体对应的序号 1 - 9 的位置序号")
|
||||
private @UInt long number;
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class FightOverInfo {
|
||||
@FieldDescription("固定值0")
|
||||
private @UInt long reason;
|
||||
@FieldDescription("胜者的米米号 野怪为0")
|
||||
private @UInt long winnerId;
|
||||
@FieldDescription("20个字节 保留字段 填0")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 20)
|
||||
@Builder.Default
|
||||
private byte [] reserved = new byte[20];
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Fight_Over)
|
||||
public class FightOverOutboundInfo implements OutboundMessage {
|
||||
private FightOverInfo overInfo;
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class FightPetInfo {
|
||||
@FieldDescription("用户ID 野怪为0")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("当前对战精灵ID")
|
||||
private @UInt long petId;
|
||||
@FieldDescription("空的16字节byte")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String petName;
|
||||
@FieldDescription("精灵的捕获时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("当前HP")
|
||||
private @UInt long hp;
|
||||
@FieldDescription("最大HP")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("当前等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("精灵是否能捕捉. 1为能捕捉 0为不能捕捉")
|
||||
private @UInt long catchable;
|
||||
@FieldDescription("这里实际上应该是6个单字节byte, 内容为buff等级 攻击 速度 特攻 防御 特防 命中等." +
|
||||
"但具体顺序未知可能需要测试. 具体数值为1-6等级")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 6)
|
||||
private byte [] battleLV;
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
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;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Note_Start_Fight)
|
||||
public class FightStartOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("是否自动 默认给0 怀疑是自动战斗器使用的")
|
||||
private @UInt long isCanAuto;
|
||||
@FieldDescription("当前战斗精灵的信息 可能不准.看前端代码是以userid来判断哪个结构体是我方的")
|
||||
private FightPetInfo info1;
|
||||
@FieldDescription("当前战斗精灵的信息 可能不准.看前端代码是以userid来判断哪个结构体是我方的")
|
||||
private FightPetInfo info2;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class FightUserInfo {
|
||||
public static final @Nonnull FightUserInfo NPC_MONSTER = new FightUserInfo(0, "-");
|
||||
|
||||
@FieldDescription("userID 如果为野怪则为0")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("玩家名称 野怪为一个utf8的'-' 都为16字节byte ")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nickname;
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class NoteReadyToFightInfo {
|
||||
@FieldDescription("战斗类型ID 但前端好像没有用到 与野怪战斗为3,与人战斗似乎是1")
|
||||
private @UInt long fightId;
|
||||
@FieldDescription("我方信息")
|
||||
private FightUserInfo ourInfo;
|
||||
@FieldDescription("我方携带精灵的信息")
|
||||
@Builder.Default
|
||||
private List<ReadyFightPetInfo> ourPetList = new ArrayList<>();
|
||||
@FieldDescription("对方信息")
|
||||
private FightUserInfo opponentInfo;
|
||||
@FieldDescription("敌方的精灵信息 如果是野怪 那么再给客户端发送这个包体时就提前生成好了这只精灵的PetInfo," +
|
||||
"然后把从PetInfo中把部分信息写入到这个敌方的精灵信息中再发送这个包结构体")
|
||||
@Builder.Default
|
||||
private List<ReadyFightPetInfo> opponentPetList = new ArrayList<>();
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Note_ReadyTo_Fight)
|
||||
public class NoteReadyToFightOutboundInfo implements OutboundMessage {
|
||||
private NoteReadyToFightInfo data;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
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.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Note_Use_Skill)
|
||||
public class NoteUseSkillOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("本轮先手的精灵在释放技能结束后的状态")
|
||||
private AttackValue firstAttackInfo;
|
||||
@FieldDescription("本轮后手的精灵在释放技能结束后的状态")
|
||||
private AttackValue secondAttackInfo;
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.info.pet.skill.SkillInfo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ReadyFightPetInfo {
|
||||
@FieldDescription("精灵ID")
|
||||
private @UInt long id;
|
||||
@FieldDescription("精灵等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("精灵HP")
|
||||
private @UInt long hp;
|
||||
@FieldDescription("最大HP")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("技能信息 技能ID跟剩余PP 固定32字节 没有给0")
|
||||
@Builder.Default
|
||||
private List<SkillInfo> skillList = new ArrayList<>(4);
|
||||
@FieldDescription("精灵捕获时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("捕捉地图 给0")
|
||||
private @UInt long catchMap;
|
||||
@FieldDescription("给0")
|
||||
private @UInt long catchRect;
|
||||
@FieldDescription("给0")
|
||||
private @UInt long catchLevel;
|
||||
@FieldDescription("精灵皮肤ID")
|
||||
private @UInt long skinId;
|
||||
@FieldDescription("精灵是否闪光")
|
||||
private @UInt long shiny;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Ready_To_Fight)
|
||||
public class ReadyToFightInboundInfo implements InboundMessage {
|
||||
public static final @Nonnull ReadyToFightInboundInfo INSTANCE = new ReadyToFightInboundInfo();
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Use_Skill)
|
||||
public class UseSkillInboundInfo implements InboundMessage {
|
||||
@FieldDescription("技能id")
|
||||
private @UInt long skillId;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.battle;
|
||||
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Use_Skill)
|
||||
public class UseSkillOutboundInfo implements OutboundMessage {
|
||||
public static final UseSkillOutboundInfo INSTANCE = new UseSkillOutboundInfo();
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.chat;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Chat)
|
||||
public class ChatInboundInfo implements InboundMessage {
|
||||
@FieldDescription("填充 默认值为0")
|
||||
private @UInt long reserve;
|
||||
@FieldDescription("消息内容, 结束符为utf-8的数字0")
|
||||
private String message;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.chat;
|
||||
|
||||
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;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Chat)
|
||||
public class ChatOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("发送人的米米号")
|
||||
private @UInt long senderId;
|
||||
@FieldDescription("发送人的昵称 16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String senderNickname;
|
||||
@FieldDescription("可能是私聊用的 公屏发送时为0")
|
||||
private @UInt long toId;
|
||||
@FieldDescription("这里的内容没有结束符")
|
||||
private String message;
|
||||
}
|
||||
9
common/core/info/codec.go
Normal file
9
common/core/info/codec.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package info
|
||||
|
||||
//实现自动InfoCodec
|
||||
type InfoCodec struct {
|
||||
}
|
||||
|
||||
func NewInfoCodec() *InfoCodec {
|
||||
return &InfoCodec{}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@SuperBuilder
|
||||
@Data
|
||||
public class ItemInfo {
|
||||
@FieldDescription("发放物品ID")
|
||||
private @UInt long itemId;
|
||||
@FieldDescription("发放物品的数量")
|
||||
private @UInt long itemCount;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Item_List)
|
||||
public class ItemListInboundInfo implements InboundMessage {
|
||||
@FieldDescription("查询物品id的开始")
|
||||
private @UInt long param1;
|
||||
@FieldDescription("查询物品id的结尾")
|
||||
private @UInt long param2;
|
||||
@FieldDescription("默认值2")
|
||||
private @UInt long param3;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Item_List)
|
||||
public class ItemListOutboundInfo implements OutboundMessage {
|
||||
private List<SingleItemInfo> itemList;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
public class PeopleItemInfo {
|
||||
@FieldDescription("装备id")
|
||||
public @UInt long id;
|
||||
@FieldDescription("未知默认1")
|
||||
@Builder.Default
|
||||
public @UInt long level = 1;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@SuperBuilder
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_Boss_Monster)
|
||||
public class SendItemOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("奖金ID?未知作用.写0")
|
||||
private @UInt long bonusId;
|
||||
@FieldDescription("可能是发放精灵时候用到的ID 发放物品给0")
|
||||
private @UInt long petId;
|
||||
@FieldDescription("可能是发放精灵时候对应的捕获时间 发放物品给0")
|
||||
private @UInt long captureTime;
|
||||
@FieldDescription("发放物品的数组.但只会给一个物品 发放多个物品只能重复发送这个包")
|
||||
private List<ItemInfo> itemList;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.item;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
public class SingleItemInfo {
|
||||
@FieldDescription("物品Id")
|
||||
private @UInt long itemId;
|
||||
@FieldDescription("物品数量")
|
||||
private @UInt long itemCnt;
|
||||
@FieldDescription("固定值360000")
|
||||
private @UInt long leftTime;
|
||||
@FieldDescription("固定值0")
|
||||
private @UInt long itemLevel;
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
package login
|
||||
|
||||
// CommendSvrInfo 初始连接请求信息结构体
|
||||
type CommendSvrInfo struct {
|
||||
MaxOnlineID uint64 // 最大连接数
|
||||
IsVip uint64 // 建议为0
|
||||
ServerList []ServerInfo // 服务器具体信息
|
||||
Reversed int // 保留字段
|
||||
}
|
||||
|
||||
func NewCommendSvrInfo() *CommendSvrInfo {
|
||||
return &CommendSvrInfo{
|
||||
IsVip: 0,
|
||||
ServerList: make([]ServerInfo, 0),
|
||||
Reversed: 0,
|
||||
}
|
||||
}
|
||||
package login
|
||||
|
||||
// CommendSvrInfo 初始连接请求信息结构体
|
||||
type CommendSvrInfo struct {
|
||||
MaxOnlineID uint32 // 最大连接数
|
||||
IsVip uint32 // 建议为0
|
||||
ServerList []ServerInfo // 服务器具体信息
|
||||
Reversed uint32 // 保留字段
|
||||
}
|
||||
|
||||
func NewCommendSvrInfo() *CommendSvrInfo {
|
||||
return &CommendSvrInfo{
|
||||
IsVip: 0,
|
||||
ServerList: make([]ServerInfo, 0),
|
||||
Reversed: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.login;
|
||||
|
||||
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 java.util.List;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@FieldDescription("初始连接请求信息")
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Commend_OnLine)
|
||||
public class CommendSvrInfo implements OutboundMessage {
|
||||
@FieldDescription("最大连接数")
|
||||
private @UInt long maxOnlineID;
|
||||
@FieldDescription("建议为0")
|
||||
private @UInt long isVip;
|
||||
@FieldDescription("服务器具体信息")
|
||||
private List<ServerInfo> serverList;
|
||||
private int reversed;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package login
|
||||
|
||||
// LoginSidInfo 登录携带的凭证结构体
|
||||
type LoginSidInfo struct {
|
||||
Sid [16]byte // 登录会话ID,固定长度16字节
|
||||
}
|
||||
|
||||
// NewLoginSidInfo 创建一个新的登录凭证实例
|
||||
func NewLoginSidInfo() *LoginSidInfo {
|
||||
return &LoginSidInfo{}
|
||||
}
|
||||
|
||||
// SetSid 设置登录会话ID
|
||||
func (l *LoginSidInfo) SetSid(sid []byte) {
|
||||
copy(l.Sid[:], sid)
|
||||
}
|
||||
|
||||
// GetSid 获取登录会话ID
|
||||
func (l *LoginSidInfo) GetSid() []byte {
|
||||
return l.Sid[:]
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.login;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
|
||||
@Data
|
||||
@FieldDescription("登录携带的凭证")
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Login_In)
|
||||
public class LoginSidInfo implements InboundMessage {
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private byte[] sid;
|
||||
}
|
||||
@@ -1,172 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.login;
|
||||
|
||||
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.info.item.PeopleItemInfo;
|
||||
import org.nieo.seerproject.common.net.info.pet.PetInfo;
|
||||
import org.nieo.seerproject.common.net.info.team.TeamInfo;
|
||||
import org.nieo.seerproject.common.net.info.team.TeamPKInfo;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
import org.nieo.seerproject.common.structs.Point;
|
||||
import org.nieo.seerproject.common.util.ArrayUtilities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Data
|
||||
@AutoCodec
|
||||
@FieldDescription("登录信息")
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Login_In)
|
||||
public class LoginUserInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号 通过sid拿到")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("注册时间(按秒的时间戳)")
|
||||
private @UInt long registerTime;
|
||||
@FieldDescription("16字节昵称")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nick;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UShort int vip;
|
||||
@FieldDescription("暂时不明建议先给固定值15")
|
||||
private @UShort int viped = 15;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UInt long dsFlag;
|
||||
@FieldDescription("机器人人物颜色 00 rgb")
|
||||
private @UInt long color;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UInt long texture;
|
||||
@FieldDescription("暂时不明建议先给固定值3000")
|
||||
private @UInt long energy = 3000;
|
||||
@FieldDescription("赛尔豆")
|
||||
private @UInt long coins;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UInt long fightBadge;
|
||||
@FieldDescription("上线的地图id")
|
||||
private @UInt long mapID;
|
||||
@FieldDescription("上线的坐标 2个uint")
|
||||
private Point pos = new Point();
|
||||
@FieldDescription("已经消耗掉的时间(秒为单位)")
|
||||
private @UInt long timeToday;
|
||||
@FieldDescription("总电池限制(秒为单位)")
|
||||
private @UInt long timeLimit;
|
||||
@FieldDescription("暂时不明感觉是某种活动建议先给固定值0(只能0或1)")
|
||||
private byte isClothHalfDay;
|
||||
@FieldDescription("暂时不明感觉是某种活动建议先给固定值0(只能0或1)")
|
||||
private byte isRoomHalfDay;
|
||||
@FieldDescription("暂时不明感觉是某种活动建议先给固定值0(只能0或1)")
|
||||
private byte iFortressHalfDay;
|
||||
@FieldDescription("暂时不明感觉是某种活动建议先给固定值0(只能0或1)")
|
||||
private byte isHQHalfDay;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UInt long loginCount;
|
||||
@FieldDescription("邀请活动建议先给固定值0")
|
||||
private @UInt long inviter;
|
||||
@FieldDescription("邀请活动建议先给固定值0")
|
||||
private @UInt long newInviteeCount;
|
||||
@FieldDescription("超no等级建议固定8")
|
||||
private @UInt long vipLevel = 8;
|
||||
@FieldDescription("超no的vip值建议固定80000")
|
||||
private @UInt long vipValue = 80000;
|
||||
@FieldDescription("超no的外形等级建议固定1(暂定)")
|
||||
private @UInt long vipStage = 1;
|
||||
@FieldDescription("nono是否自动充电 建议固定1")
|
||||
private @UInt long autoCharge = 1;
|
||||
@FieldDescription("超no的结束时间建议尽可能大")
|
||||
private @UInt long vipEndTime = Integer.MAX_VALUE;
|
||||
@FieldDescription("邀请活动建议先给固定值0")
|
||||
private @UInt long freshManBonus;
|
||||
@FieldDescription("超no芯片列表*(80字节)")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 80)
|
||||
private byte[] nonoChipList = new byte[80];
|
||||
@FieldDescription("50字节,默认值为3")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 50)
|
||||
private byte[] dailyResArr
|
||||
= ArrayUtilities.generateByteArrayWithInitialValueAndLength((byte) 3, 50);
|
||||
@FieldDescription("教官id")
|
||||
private @UInt long teacherID;
|
||||
@FieldDescription("学员id")
|
||||
private @UInt long studentID;
|
||||
@FieldDescription("毕业人数")
|
||||
private @UInt long graduationCount;
|
||||
@FieldDescription("默认值为0")
|
||||
private @UInt long maxPuniLv;
|
||||
@FieldDescription("精灵的最高等级")
|
||||
private @UInt long petMaxLevel;
|
||||
@FieldDescription("所有的精灵的数量")
|
||||
private @UInt long allPetNumber;
|
||||
@FieldDescription("精灵王之战胜场")
|
||||
private @UInt long monKingWin;
|
||||
@FieldDescription("勇者之塔当前到达的层数")
|
||||
private @UInt long currentStage;
|
||||
@FieldDescription("试炼之塔最大胜利的层数")
|
||||
private @UInt long maxStage;
|
||||
@FieldDescription("试炼之塔当前到达的层数")
|
||||
private @UInt long currentFreshStage;
|
||||
@FieldDescription("试炼之塔最大胜利的层数")
|
||||
private @UInt long maxFreshStage;
|
||||
@FieldDescription("星际擂台连胜")
|
||||
private @UInt long maxArenaWins;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long twoTimes;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long threeTimes;
|
||||
@FieldDescription("是否自动战斗(未知默认值0)")
|
||||
private @UInt long autoFight;
|
||||
@FieldDescription("自动战斗剩余的场次(未知默认值0)")
|
||||
private @UInt long autoFightTime;
|
||||
@FieldDescription("能量吸收仪剩余次数(未知待定默认值0)")
|
||||
private @UInt long energyTime;
|
||||
@FieldDescription("学习力吸收仪剩余次数(未知待定默认值0)")
|
||||
private @UInt long learnTimes;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long monBattleMedal;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long recordCount;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long obtainTm;
|
||||
@FieldDescription("当前在孵化的元神珠id")
|
||||
private @UInt long soulBeadItemID;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long expireTm;
|
||||
@FieldDescription("未知默认0")
|
||||
private @UInt long fuseTimes;
|
||||
@FieldDescription("玩家有没有nono")
|
||||
private @UInt long hasNono = 1;
|
||||
@FieldDescription("玩家有没有超能nono")
|
||||
private @UInt long superNono = 1;
|
||||
@FieldDescription("默认值-1")
|
||||
private @UInt long nonoState = 0xFFFFFFFFL;
|
||||
@FieldDescription("nono的颜色")
|
||||
private @UInt long nonoColor;
|
||||
@FieldDescription("nono的名字 必须要补齐到16位")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nonoNick = "nono";
|
||||
@FieldDescription("猜测为战队信息24字节")
|
||||
private TeamInfo teamInfo = new TeamInfo();
|
||||
@FieldDescription("8字节")
|
||||
private TeamPKInfo teamPkInfo = new TeamPKInfo();
|
||||
@FieldDescription("1字节 无内容")
|
||||
private byte reserved;
|
||||
@FieldDescription("默认值为0")
|
||||
private @UInt long badge;
|
||||
@FieldDescription("未知(27字节,默认值为3)")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 27)
|
||||
private byte[] reserved1
|
||||
= ArrayUtilities.generateByteArrayWithInitialValueAndLength((byte) 3, 27);
|
||||
@FieldDescription("任务状态数组(500字节,3为已经完成,建议默认值为3)")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 500)
|
||||
private byte[] taskList
|
||||
= ArrayUtilities.generateByteArrayWithInitialValueAndLength((byte) 3, 500);
|
||||
@FieldDescription("精灵背包内的信息由于特性精灵的存在精灵背包不定长 如果有特性占199字节 如果没特性 一个精灵占175字节")
|
||||
private List<PetInfo> petList = new ArrayList<>();
|
||||
@FieldDescription("穿戴装备 8字节")
|
||||
private List<PeopleItemInfo> clothes = new ArrayList<>();
|
||||
}
|
||||
@@ -1,41 +1,35 @@
|
||||
package login
|
||||
|
||||
// ServerInfo 服务器信息结构体
|
||||
type ServerInfo struct {
|
||||
// 连接ID, 即服务器序号
|
||||
OnlineID uint32
|
||||
// 当前服务器玩家在线数量, 供SWF显示
|
||||
UserCnt uint32
|
||||
// 服务器IP, 16字节UTF-8, 不足16补齐到16
|
||||
IP string `serialize:"fixed:16"` // 定长模式:16字节
|
||||
// 端口
|
||||
Port uint16
|
||||
// 好友在线的个数
|
||||
Friends uint32
|
||||
}
|
||||
|
||||
// NewServerInfo 创建新的服务器信息实例
|
||||
func NewServerInfo() *ServerInfo {
|
||||
return &ServerInfo{
|
||||
OnlineID: 0,
|
||||
UserCnt: 0,
|
||||
IP: "",
|
||||
Port: 0,
|
||||
Friends: 0,
|
||||
}
|
||||
}
|
||||
|
||||
// // SetIP 设置IP地址并自动填充到16字节
|
||||
// func (s *ServerInfo) SetIP(ip string) {
|
||||
// copy(s.IP[:], ip)
|
||||
// if len(ip) < 16 {
|
||||
// for i := len(ip); i < 16; i++ {
|
||||
// s.IP[i] = 0 // 用0填充剩余字节
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// // GetIP 获取IP地址(去除填充的0)
|
||||
// func (s *ServerInfo) GetIP() string {
|
||||
// return strings.TrimRight(string(s.IP[:]), "\x00")
|
||||
// }
|
||||
package login
|
||||
|
||||
// ServerInfo 服务器信息结构体
|
||||
type ServerInfo struct {
|
||||
// 连接ID, 即服务器序号
|
||||
OnlineID uint32
|
||||
// 当前服务器玩家在线数量, 供SWF显示
|
||||
UserCnt uint32
|
||||
// 服务器IP, 16字节UTF-8, 不足16补齐到16
|
||||
IP string `struc:"[16]byte"` // 定长模式:16字节
|
||||
// 端口
|
||||
Port uint16
|
||||
// 好友在线的个数
|
||||
Friends uint32
|
||||
}
|
||||
|
||||
// NewServerInfo 创建新的服务器信息实例
|
||||
func NewServerInfo() *ServerInfo {
|
||||
return &ServerInfo{}
|
||||
}
|
||||
|
||||
// // SetIP 设置IP地址并自动填充到16字节
|
||||
// func (s *ServerInfo) SetIP(ip string) {
|
||||
// copy(s.IP[:], ip)
|
||||
// if len(ip) < 16 {
|
||||
// for i := len(ip); i < 16; i++ {
|
||||
// s.IP[i] = 0 // 用0填充剩余字节
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// // GetIP 获取IP地址(去除填充的0)
|
||||
// func (s *ServerInfo) GetIP() string {
|
||||
// return strings.TrimRight(string(s.IP[:]), "\x00")
|
||||
// }
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.login;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UShort;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@FieldDescription("服务器信息")
|
||||
public class ServerInfo {
|
||||
@FieldDescription("连接ID, 即服务器序号")
|
||||
private @UInt long onlineId;
|
||||
@FieldDescription("当前服务器玩家在线数量, 供SWF显示")
|
||||
private @UInt long userCnt;
|
||||
@FieldDescription("服务器IP, 16字节UTF-8, 不足16补齐到16")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String ip;
|
||||
@FieldDescription("端口")
|
||||
private @UShort int port;
|
||||
@FieldDescription("好友在线的个数")
|
||||
private @UInt long friends;
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.login;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@FieldDescription("SID")
|
||||
@InboundMessageType(MessageCommandIDRegistry.Commend_OnLine)
|
||||
public class SidInfo implements InboundMessage {
|
||||
private byte [] sid;
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.mail;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Mail_Get_Unread)
|
||||
public class MailUnreadInboundInfo implements InboundMessage {
|
||||
public static final @Nonnull MailUnreadInboundInfo INSTANCE = new MailUnreadInboundInfo();
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.mail;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Mail_Get_Unread)
|
||||
public class MailUnreadOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("未读邮件的数量")
|
||||
private @UInt long mailNumber;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Leave_Map)
|
||||
public class LeaveMapInboundInfo implements InboundMessage {
|
||||
public static final LeaveMapInboundInfo INSTANCE = new LeaveMapInboundInfo();
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Leave_Map)
|
||||
public class LeaveMapOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userId;
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.List_Map_Player)
|
||||
public class ListMapPlayerInboundInfo implements InboundMessage {
|
||||
public static final @Nonnull ListMapPlayerInboundInfo INSTANCE = new ListMapPlayerInboundInfo();
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.List_Map_Player)
|
||||
public class ListMapPlayerOutboundInfo implements OutboundMessage {
|
||||
private List<PeopleInfo> mapPlayerInfo = new ArrayList<>();
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Map_Hot)
|
||||
public class MapHotInboundInfo implements InboundMessage {
|
||||
public static final @Nonnull MapHotInboundInfo INSTANCE = new MapHotInboundInfo();
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MapHotInfo {
|
||||
@FieldDescription("地图ID")
|
||||
private @UInt long mapId;
|
||||
@FieldDescription("地图里有多少人")
|
||||
private @UInt long count;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Map_Hot)
|
||||
public class MapHotOutboundInfo implements OutboundMessage {
|
||||
private List<MapHotInfo> hotInfos = new ArrayList<>();
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.MessageName;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.structs.Point;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Enter_Map)
|
||||
@MessageName("EnterMapInboundInfo")
|
||||
public class MapInfo implements InboundMessage {
|
||||
@FieldDescription("地图类型")
|
||||
private @UInt long mapType;
|
||||
@FieldDescription("地图ID")
|
||||
private @UInt long mapId;
|
||||
@FieldDescription("8字节, 人物地图坐标")
|
||||
private Point pos = new Point();
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Map_Ogre_List)
|
||||
public class MapOgreListOutboundInfo implements OutboundMessage {
|
||||
private @UInt long petId1;
|
||||
private @UInt long petId2;
|
||||
private @UInt long petId3;
|
||||
private @UInt long petId4;
|
||||
private @UInt long petId5;
|
||||
private @UInt long petId6;
|
||||
private @UInt long petId7;
|
||||
private @UInt long petId8;
|
||||
private @UInt long petId9;
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.MessageName;
|
||||
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.info.item.PeopleItemInfo;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
import org.nieo.seerproject.common.structs.Point;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Enter_Map)
|
||||
@MessageName("EnterMapOutboundInfo")
|
||||
public class PeopleInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("16字节昵称")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private String nick;
|
||||
@FieldDescription("机器人人物颜色 00 rgb")
|
||||
private @UInt long color;
|
||||
@FieldDescription("固定值0")
|
||||
private @UInt long texture;
|
||||
@FieldDescription("暂时不明建议先给固定值0")
|
||||
private @UShort int vip;
|
||||
@FieldDescription("暂时不明建议先给固定值15")
|
||||
private @UShort int viped = 15;
|
||||
@FieldDescription("暂时不明建议先给固定值1")
|
||||
private @UInt long vipStage;
|
||||
@FieldDescription("人物状态 =0 步行 !=0 飞行")
|
||||
private @UInt long actionType;
|
||||
@FieldDescription("上线的地图id")
|
||||
private Point pos = new Point();
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long action;
|
||||
@FieldDescription("暂时不明给2")
|
||||
private @UInt long direction = 2;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long changeShape;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long spiritTime;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long spiritID;
|
||||
@FieldDescription("宠物ID暂时无法测试, 给0")
|
||||
private @UInt long petDV;
|
||||
@FieldDescription("宠物闪光暂时无法测试, 给0")
|
||||
private @UInt long petShiny;
|
||||
@FieldDescription("宠物皮肤暂时无法测试, 给0")
|
||||
private @UInt long petSkin;
|
||||
@FieldDescription("填充字符")
|
||||
private @UInt long reserved;
|
||||
@FieldDescription("填充字符")
|
||||
private @UInt long reserved1;
|
||||
@FieldDescription("填充字符")
|
||||
private @UInt long reserved2;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long fightFlag;
|
||||
@FieldDescription("教官ID")
|
||||
private @UInt long teacherID;
|
||||
@FieldDescription("学员ID")
|
||||
private @UInt long studentID;
|
||||
@FieldDescription("nono状态 固定值-1")
|
||||
private @UInt long nonoState = 0xFFFFFFFFL;
|
||||
@FieldDescription("nono颜色 00 FF FF FF")
|
||||
private @UInt long nonoColor;
|
||||
@FieldDescription("是不是超能nono 固定值1")
|
||||
private @UInt long superNono = 1;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long playerForm;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long transTime;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long teamid;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long teamCoreCount;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private @UInt long teamisShow;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private short logoBg;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private short logoIcon;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private short logoColor;
|
||||
@FieldDescription("暂时不明给0")
|
||||
private short txtColor;
|
||||
@FieldDescription("4字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 4)
|
||||
private byte[] logoWord = new byte[4];
|
||||
@FieldDescription("穿戴装备的信息")
|
||||
private List<PeopleItemInfo> clothes = new ArrayList<>();
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.structs.Point;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.People_Walk)
|
||||
public class PeopleWalkInboundInfo implements InboundMessage {
|
||||
@FieldDescription("0为走,1为飞行模式")
|
||||
private @UInt long flag;
|
||||
@FieldDescription("直接给坐标x,y")
|
||||
private Point point = new Point();
|
||||
@FieldDescription("暂定 占位字符2")
|
||||
private String reverse2;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.map;
|
||||
|
||||
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.structs.Point;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.People_Walk)
|
||||
public class PeopleWalkOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("0为走,1为飞行模式")
|
||||
public @UInt long flag;
|
||||
@FieldDescription("走动的人的米米号")
|
||||
public @UInt long userID;
|
||||
@FieldDescription("直接给坐标x,y")
|
||||
public Point point = new Point();
|
||||
@FieldDescription("这个字段同C2S_People_Walk中的reserve2")
|
||||
public String reserve2;
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.structs.Point;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Aimat)
|
||||
public class AimatInboundInfo implements InboundMessage {
|
||||
@FieldDescription("物品id 射击激光 物品id为0")
|
||||
private @UInt long itemId;
|
||||
@FieldDescription("射击类型 未知 给0")
|
||||
private @UInt long shootType;
|
||||
@FieldDescription("射击的坐标 x y")
|
||||
@Builder.Default
|
||||
private Point point = new Point();
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
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.structs.Point;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Aimat)
|
||||
public class AimatOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("射出子弹的人 米米号")
|
||||
private @UInt long userId;
|
||||
@FieldDescription("物品id 射击激光 物品id为0")
|
||||
private @UInt long itemId;
|
||||
@FieldDescription("射击类型 未知 给0")
|
||||
private @UInt long shootType;
|
||||
@FieldDescription("射击的坐标 x y")
|
||||
@Builder.Default
|
||||
private Point point = new Point();
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CateInfo {
|
||||
@FieldDescription("物品id")
|
||||
private @UInt long id;
|
||||
@FieldDescription("数量")
|
||||
private @UInt long count;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DayTalkInfo {
|
||||
@FieldDescription("要序列list数量字段 只序列数量 结构体数据给null")
|
||||
@Builder.Default
|
||||
private List<CateInfo> cateList = new ArrayList<>();
|
||||
@FieldDescription("实际发放奖励使用的是outlist")
|
||||
@Builder.Default
|
||||
private List<CateInfo> outList = new ArrayList<>();
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Get_Quadruple_Exe_Time)
|
||||
public class GetQuadrupleExeTimeInboundInfo implements InboundMessage {
|
||||
@FieldDescription("标志若标志为1 则返回已经使用的四倍时间")
|
||||
private @UInt long flag;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
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;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_Quadruple_Exe_Time)
|
||||
public class GetQuadrupleExeTimeOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("返回已经使用的四倍时间, 以秒为单位")
|
||||
private @UInt long quadrupleExeTime;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
@InboundMessageType(MessageCommandIDRegistry.System_Time)
|
||||
public class SystemTimeInboundInfo implements InboundMessage {
|
||||
public static final @Nonnull SystemTimeInboundInfo INSTANCE = new SystemTimeInboundInfo();
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.System_Time)
|
||||
public class SystemTimeOutboundInfo implements OutboundMessage {
|
||||
private @UInt long systemTime = Instant.now().getEpochSecond();
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Talk_Cate)
|
||||
public class TalkCateInboundInfo implements InboundMessage {
|
||||
@FieldDescription("奖品的type, 即ID")
|
||||
private @UInt long id;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
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.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Talk_Cate)
|
||||
public class TalkCateOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("返回的奖品信息")
|
||||
private DayTalkInfo dayTalkInfo;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@InboundMessageType(MessageCommandIDRegistry.Talk_Count)
|
||||
public class TalkCountInboundInfo implements InboundMessage {
|
||||
@FieldDescription("奖品的Type, 即ID")
|
||||
private @UInt long id;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.misc;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
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;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Talk_Count)
|
||||
public class TalkCountOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("已领取奖励的次数")
|
||||
private @UInt long giftCount;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.nono;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Nono_Follow_Or_Home)
|
||||
public class NonoFollowOrHomeInboundInfo implements InboundMessage {
|
||||
@FieldDescription("1为跟随 0为收回 且如果为收回 那么后续结构不需要发送")
|
||||
private @UInt long flag;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
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;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.nono;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Nono_Info)
|
||||
public class NonoInboundInfo implements InboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long userId;
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
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;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
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.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_Pet_Info)
|
||||
public class GetPetInfoOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("精灵信息")
|
||||
private PetInfo petInfo;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Cure)
|
||||
public class PetCureInboundInfo implements InboundMessage {
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Cure)
|
||||
public class PetCureOutboundInfo implements OutboundMessage {
|
||||
}
|
||||
@@ -1,28 +1,21 @@
|
||||
package pet
|
||||
|
||||
// SkillInfo 临时技能信息结构体(实际项目应补充完整定义)
|
||||
type SkillInfo struct {
|
||||
SkillId uint32 // 技能ID
|
||||
Level uint32 // 技能等级
|
||||
}
|
||||
package pet
|
||||
|
||||
// PetEffectInfo 宠物特性信息
|
||||
type PetEffectInfo struct {
|
||||
// ItemId 特性晶片对应的物品id
|
||||
ItemId uint64
|
||||
// Status 默认为1
|
||||
Status byte
|
||||
// LeftCount 未知默认为0
|
||||
LeftCount byte
|
||||
// EffectId 特性id
|
||||
EffectId uint16
|
||||
// Reserve1 保留字段1
|
||||
Reserve1 byte
|
||||
// Reserve2 保留字段2无作用
|
||||
Reserve2 byte
|
||||
// Reserve3 保留字段3
|
||||
Reserve3 byte
|
||||
// Reserve4 保留字段4(13字节)
|
||||
Reserve4 [13]byte
|
||||
}
|
||||
package pet
|
||||
|
||||
// PetEffectInfo 宠物特性信息
|
||||
type PetEffectInfo struct {
|
||||
// ItemId 特性晶片对应的物品id
|
||||
ItemId uint64
|
||||
// Status 默认为1
|
||||
Status byte
|
||||
// LeftCount 未知默认为0
|
||||
LeftCount byte
|
||||
// EffectId 特性id
|
||||
EffectId uint16
|
||||
// Reserve1 保留字段1
|
||||
Reserve1 byte
|
||||
// Reserve2 保留字段2无作用
|
||||
Reserve2 byte
|
||||
// Reserve3 保留字段3
|
||||
Reserve3 byte
|
||||
// Reserve4 保留字段4(13字节)
|
||||
Reserve4 [13]byte
|
||||
}
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UShort;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
public class PetEffectInfo {
|
||||
@FieldDescription("特性晶片对应的物品id")
|
||||
public @UInt long itemID;
|
||||
@FieldDescription("默认为1")
|
||||
@Builder.Default
|
||||
public byte status = 1;
|
||||
@FieldDescription("未知默认为0")
|
||||
public byte leftCount;
|
||||
@FieldDescription("特性id")
|
||||
public @UShort int effectID;
|
||||
@FieldDescription("保留字段1")
|
||||
public byte reserve1;
|
||||
@FieldDescription("保留字段2无作用")
|
||||
public byte reserve2;
|
||||
@FieldDescription("保留字段3")
|
||||
public byte reserve3;
|
||||
@FieldDescription("保留字段4 占13字节")
|
||||
@Builder.Default
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 13)
|
||||
public byte[] reserve4 = new byte[13];
|
||||
}
|
||||
@@ -1,69 +1,73 @@
|
||||
package pet
|
||||
|
||||
import (
|
||||
"common/core/info/pet/skill"
|
||||
)
|
||||
|
||||
// PetInfo 宠物基本信息
|
||||
type PetInfo struct {
|
||||
// Id 精灵编号
|
||||
Id uint64
|
||||
// Name 名字,长度为16字节
|
||||
Name [16]byte
|
||||
// Dv 个体值
|
||||
Dv uint64
|
||||
// Nature 性格
|
||||
Nature uint64
|
||||
// Level 等级
|
||||
Level uint64
|
||||
// Exp 当前等级已获得的经验
|
||||
Exp uint64
|
||||
// LvExp 当前等级所需的经验
|
||||
LvExp uint64
|
||||
// NextLvExp 升到下一级的经验
|
||||
NextLvExp uint64
|
||||
// Hp 当前生命
|
||||
Hp uint64
|
||||
// MaxHp 最大生命
|
||||
MaxHp uint64
|
||||
// Attack 攻击
|
||||
Attack uint64
|
||||
// Defence 防御
|
||||
Defence uint64
|
||||
// SpecialAttack 特攻
|
||||
SpecialAttack uint64
|
||||
// SpecialDefence 特防
|
||||
SpecialDefence uint64
|
||||
// Speed 速度
|
||||
Speed uint64
|
||||
// EvHp 生命学习力
|
||||
EvHp uint64
|
||||
// EvAttack 攻击学习力
|
||||
EvAttack uint64
|
||||
// EvDefence 防御学习力
|
||||
EvDefence uint64
|
||||
// EvSpecialAttack 特攻学习力
|
||||
EvSpecialAttack uint64
|
||||
// EvSpecialDefense 特防学习力
|
||||
EvSpecialDefense uint64
|
||||
// EvSpeed 速度学习力
|
||||
EvSpeed uint64
|
||||
// SkillSize 技能个数
|
||||
SkillSize uint64
|
||||
// SkillList 技能信息列表
|
||||
SkillList []skill.SkillInfo
|
||||
// CatchTime 捕捉时间
|
||||
CatchTime uint64
|
||||
// CatchMap 捕捉地图
|
||||
CatchMap uint64
|
||||
// CatchRect 未知默认为0
|
||||
CatchRect uint64
|
||||
// CatchLevel 捕获等级默认为0
|
||||
CatchLevel uint64
|
||||
// EffectInfo 特性列表
|
||||
EffectInfo []PetEffectInfo
|
||||
// SkinID 皮肤id默认为0
|
||||
SkinID uint64
|
||||
// Shiny 是否为闪
|
||||
Shiny uint64
|
||||
}
|
||||
package pet
|
||||
|
||||
import (
|
||||
"blazing/common/core/info/pet/skill"
|
||||
)
|
||||
|
||||
// PetInfo 宠物基本信息
|
||||
type PetInfo struct {
|
||||
// Id 精灵编号
|
||||
Id uint64
|
||||
// Name 名字,长度为16字节
|
||||
Name [16]byte
|
||||
// Dv 个体值
|
||||
Dv uint64
|
||||
// Nature 性格
|
||||
Nature uint64
|
||||
// Level 等级
|
||||
Level uint64
|
||||
// Exp 当前等级已获得的经验
|
||||
Exp uint64
|
||||
// LvExp 当前等级所需的经验
|
||||
LvExp uint64
|
||||
// NextLvExp 升到下一级的经验
|
||||
NextLvExp uint64
|
||||
// Hp 当前生命
|
||||
Hp uint64
|
||||
// MaxHp 最大生命
|
||||
MaxHp uint64
|
||||
// Attack 攻击
|
||||
Attack uint64
|
||||
// Defence 防御
|
||||
Defence uint64
|
||||
// SpecialAttack 特攻
|
||||
SpecialAttack uint64
|
||||
// SpecialDefence 特防
|
||||
SpecialDefence uint64
|
||||
// Speed 速度
|
||||
Speed uint64
|
||||
// EvHp 生命学习力
|
||||
EvHp uint64
|
||||
// EvAttack 攻击学习力
|
||||
EvAttack uint64
|
||||
// EvDefence 防御学习力
|
||||
EvDefence uint64
|
||||
// EvSpecialAttack 特攻学习力
|
||||
EvSpecialAttack uint64
|
||||
// EvSpecialDefense 特防学习力
|
||||
EvSpecialDefense uint64
|
||||
// EvSpeed 速度学习力
|
||||
EvSpeed uint64
|
||||
// SkillSize 技能个数
|
||||
SkillSize uint64
|
||||
// SkillList 技能信息列表
|
||||
SkillList []skill.SkillInfo
|
||||
// CatchTime 捕捉时间
|
||||
CatchTime uint64
|
||||
// CatchMap 捕捉地图
|
||||
CatchMap uint64
|
||||
// CatchRect 未知默认为0
|
||||
CatchRect uint64
|
||||
// CatchLevel 捕获等级默认为0
|
||||
CatchLevel uint64
|
||||
// EffectInfo 特性列表
|
||||
EffectInfo []PetEffectInfo
|
||||
// SkinID 皮肤id默认为0
|
||||
SkinID uint64
|
||||
// Shiny 是否为闪
|
||||
Shiny uint64
|
||||
}
|
||||
|
||||
func NewPetInfo() *PetInfo {
|
||||
return &PetInfo{}
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.ArraySerialize;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.info.pet.skill.SkillInfo;
|
||||
import org.nieo.seerproject.common.net.serialize.ArraySerializeType;
|
||||
import org.nieo.seerproject.common.net.serialize.LengthFieldType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PetInfo {
|
||||
@FieldDescription("精灵编号")
|
||||
private @UInt long id;
|
||||
@FieldDescription("名字 默认为全0 但要补齐到16字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 16)
|
||||
private byte[] name = new byte[16];
|
||||
@FieldDescription("个体值")
|
||||
private @UInt long dv;
|
||||
@FieldDescription("性格")
|
||||
private @UInt long nature;
|
||||
@FieldDescription("等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("当前等级已经获得的经验 2538")
|
||||
private @UInt long exp;
|
||||
@FieldDescription("当前等级所需的经验")
|
||||
private @UInt long lvExp;
|
||||
@FieldDescription("升到下一级的经验")
|
||||
private @UInt long nextLvExp;
|
||||
@FieldDescription("当前生命")
|
||||
private @UInt long hp;
|
||||
@FieldDescription("最大生命")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("攻击")
|
||||
private @UInt long attack;
|
||||
@FieldDescription("防御")
|
||||
private @UInt long defence;
|
||||
@FieldDescription("特攻")
|
||||
private @UInt long specialAttack;
|
||||
@FieldDescription("特防")
|
||||
private @UInt long specialDefence;
|
||||
@FieldDescription("速度")
|
||||
private @UInt long speed;
|
||||
@FieldDescription("生命学习力")
|
||||
private @UInt long evHp;
|
||||
@FieldDescription("攻击学习力")
|
||||
private @UInt long evAttack;
|
||||
@FieldDescription("防御学习力")
|
||||
private @UInt long evDefence;
|
||||
@FieldDescription("特攻学习力")
|
||||
private @UInt long evSpecialAttack;
|
||||
@FieldDescription("特防学习力")
|
||||
private @UInt long evSpecialDefense;
|
||||
@FieldDescription("速度学习力")
|
||||
private @UInt long evSpeed;
|
||||
@FieldDescription("技能个数")
|
||||
private @UInt long skillSize;
|
||||
@FieldDescription("32字节 技能信息 必须插入4条skillInfo,若技能信息为空则要赋值成0")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 8)
|
||||
private List<SkillInfo> skillList;
|
||||
@FieldDescription("捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("捕捉地图")
|
||||
private @UInt long catchMap;
|
||||
@FieldDescription("未知默认为0")
|
||||
private @UInt long catchRect;
|
||||
@FieldDescription("捕获等级 默认为0")
|
||||
private @UInt long catchLevel;
|
||||
@FieldDescription("特性列表, 长度在头部以UShort存储")
|
||||
@ArraySerialize(value = ArraySerializeType.LENGTH_FIRST, lengthType = LengthFieldType.UNSIGNED_SHORT)
|
||||
private List<PetEffectInfo> effectInfo = new ArrayList<>();
|
||||
@FieldDescription("皮肤id默认为0")
|
||||
private @UInt long skinID;
|
||||
@FieldDescription("是不是闪")
|
||||
private @UInt long shiny;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_One_Cure)
|
||||
public class PetOneCureInboundInfo implements InboundMessage {
|
||||
@FieldDescription("精灵捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
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;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_One_Cure)
|
||||
public class PetOneCureOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("精灵捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Set_Exp)
|
||||
public class PetSetExpInboundInfo implements InboundMessage {
|
||||
@FieldDescription("精灵获取时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("分配经验")
|
||||
private @UInt long exp;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
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.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@Builder
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Set_Exp)
|
||||
public class PetSetExpOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("剩余累计经验")
|
||||
private @UInt long exp;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@SuperBuilder
|
||||
public class PetShortInfo{
|
||||
|
||||
@FieldDescription("精灵类型ID")
|
||||
private @UInt long typeId;
|
||||
@FieldDescription("精灵生成时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("当前等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("精灵皮肤ID")
|
||||
private @UInt long skinId;
|
||||
@FieldDescription("是否为闪光")
|
||||
private @UInt long isShiny;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Show)
|
||||
public class PetShowInboundInfo implements InboundMessage {
|
||||
private @UInt long catchTime;
|
||||
private @UInt long flag;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
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;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Show)
|
||||
public class PetShowOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("米米号")
|
||||
private @UInt long UserID;
|
||||
@FieldDescription("精灵获得的时间")
|
||||
private @UInt long CatchTime;
|
||||
@FieldDescription("精灵编号")
|
||||
private @UInt long PetID;
|
||||
@FieldDescription("1为显示 0为收回")
|
||||
private @UInt long flag;
|
||||
@FieldDescription("个体")
|
||||
private @UInt long dv;
|
||||
@FieldDescription("闪")
|
||||
private @UInt long shiny;
|
||||
@FieldDescription("皮肤id")
|
||||
private @UInt long skinID;
|
||||
@FieldDescription("填充字段")
|
||||
private @UInt long reserved;
|
||||
@FieldDescription("填充字段")
|
||||
private @UInt long reserved1;
|
||||
@FieldDescription("填充字段")
|
||||
private @UInt long reserved2;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.info.pet.skill.ChangeSkillInfo;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Skill_Switch)
|
||||
public class PetSkillSwitchInboundInfo implements InboundMessage {
|
||||
private ChangeSkillInfo skillInfo;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@Builder
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Skill_Switch)
|
||||
public class PetSkillSwitchOutboundInfo implements OutboundMessage {
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.info.pet.skill.ChangeSkillInfo;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Study_Skill)
|
||||
public class PetStudySkillInboundInfo implements InboundMessage {
|
||||
private ChangeSkillInfo skillInfo;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Study_Skill)
|
||||
public class PetStudySkillOutboundInfo implements OutboundMessage {
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
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 java.util.List;
|
||||
|
||||
@AutoCodec
|
||||
@SuperBuilder
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Note_Update_Prop)
|
||||
public class PetUpdateOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("未知字段,默认为0")
|
||||
private @UInt long addition;
|
||||
@FieldDescription("更新数据")
|
||||
private List<UpdatePropInfo> data;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Room)
|
||||
public class RoomPetInfoInboundInfo implements InboundMessage {
|
||||
|
||||
@FieldDescription("精灵所属主人的用户ID")
|
||||
private @UInt long ownerID;
|
||||
|
||||
@FieldDescription("精灵的捕获时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
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;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Room)
|
||||
public class RoomPetInfoOutboundInfo implements OutboundMessage {
|
||||
|
||||
@FieldDescription("精灵所属主人的用户ID")
|
||||
private @UInt long ownerID; // 与前端发送过来的包数据相同
|
||||
|
||||
@FieldDescription("精灵的捕获时间")
|
||||
private @UInt long catchTime; // 与前端发送过来的包数据相同
|
||||
|
||||
@FieldDescription("精灵的类别ID")
|
||||
public @UInt long id;
|
||||
|
||||
@FieldDescription("精灵的性格id")
|
||||
public @UInt long nature;
|
||||
|
||||
@FieldDescription("精灵的等级")
|
||||
public @UInt long lv;
|
||||
|
||||
@FieldDescription("精灵的HP")
|
||||
public @UInt long hp;
|
||||
|
||||
@FieldDescription("精灵的攻击")
|
||||
public @UInt long atk;
|
||||
|
||||
@FieldDescription("精灵的防御")
|
||||
public @UInt long def;
|
||||
|
||||
@FieldDescription("精灵的特攻")
|
||||
public @UInt long spatk;
|
||||
|
||||
@FieldDescription("精灵的特防")
|
||||
public @UInt long spdef;
|
||||
|
||||
@FieldDescription("精灵的速度")
|
||||
public @UInt long speed;
|
||||
|
||||
@FieldDescription("填充字节")
|
||||
@ArraySerialize(value = ArraySerializeType.FIXED_LENGTH, fixedLength = 55)
|
||||
public byte[] reserved = new byte[55];
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@SuperBuilder
|
||||
public class UpdatePropInfo {
|
||||
@FieldDescription("精灵的捕获时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("精灵id")
|
||||
private @UInt long id;
|
||||
@FieldDescription("精灵等级")
|
||||
private @UInt long level;
|
||||
@FieldDescription("已获得的总经验")
|
||||
private @UInt long exp;
|
||||
@FieldDescription("升到下一级所需总经验")
|
||||
private @UInt long currentLevelExp;
|
||||
@FieldDescription("到下一级升级所需的经验")
|
||||
private @UInt long nextLvExp;
|
||||
@FieldDescription("最大血量")
|
||||
private @UInt long maxHp;
|
||||
@FieldDescription("攻击")
|
||||
private @UInt long attack;
|
||||
@FieldDescription("防御")
|
||||
private @UInt long defence;
|
||||
@FieldDescription("特攻")
|
||||
private @UInt long sa;
|
||||
@FieldDescription("特防")
|
||||
private @UInt long sd;
|
||||
@FieldDescription("速度")
|
||||
private @UInt long sp;
|
||||
@FieldDescription("hp学习力")
|
||||
private @UInt long ev_hp;
|
||||
@FieldDescription("攻击学习力")
|
||||
private @UInt long ev_a;
|
||||
@FieldDescription("防御学习力")
|
||||
private @UInt long ev_d;
|
||||
@FieldDescription("特攻学习力")
|
||||
private @UInt long ev_sa;
|
||||
@FieldDescription("特防学习力")
|
||||
private @UInt long ev_sd;
|
||||
@FieldDescription("速度学习力")
|
||||
private @UInt long ev_sp;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@SuperBuilder
|
||||
@Data
|
||||
public class UpdateSkillInfo {
|
||||
@FieldDescription("精灵获得时间")
|
||||
private @UInt long petCatchTime;
|
||||
@FieldDescription("能直接放到精灵技能列表里的技能数量, 若没有剩余空闲技能格子则为0, 上限为3")
|
||||
private @UInt long activeSkillNum;
|
||||
@FieldDescription("填充格子后精灵还能学习的技能个数, 若学习技能数量小于剩余格子数则为0")
|
||||
private @UInt long unActiveSkillNum;
|
||||
@FieldDescription("精灵升级后新学习的技能id列表")
|
||||
private List<@UInt Integer> skillArray;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.nieo.seerproject.common.annotations.FieldDescription;
|
||||
import org.nieo.seerproject.common.annotations.OutboundMessageType;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Note_Update_Skill)
|
||||
public class UpdateSkillOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("更新技能数据")
|
||||
private List<UpdateSkillInfo> infoArray;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package org.nieo.seerproject.common.net.info.pet.bag;
|
||||
|
||||
import lombok.Data;
|
||||
import org.nieo.seerproject.common.annotations.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Get_Pet_List)
|
||||
public class GetPetListInboundEmpty implements InboundMessage {
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
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.net.MessageCommandIDRegistry;
|
||||
import org.nieo.seerproject.common.net.OutboundMessage;
|
||||
import org.nieo.seerproject.common.net.info.pet.PetShortInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Get_Pet_List)
|
||||
public class GetPetListOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("精灵摘要信息列表")
|
||||
private List<PetShortInfo> petShortInfo;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
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.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Default)
|
||||
public class PetDefaultInboundInfo implements InboundMessage {
|
||||
@FieldDescription("精灵捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
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;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@OutboundMessageType(MessageCommandIDRegistry.Pet_Default)
|
||||
public class PetDefaultOutboundInfo implements OutboundMessage {
|
||||
@FieldDescription("0: 首发设置失败,1: 首发设置成功")
|
||||
private @UInt long isDefault;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
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.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@AutoCodec
|
||||
@Data
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Release)
|
||||
public class PetReleaseInboundInfo implements InboundMessage {
|
||||
@FieldDescription("精灵生成时间")
|
||||
private @UInt long catchTime;
|
||||
@FieldDescription("0为放入仓库,1为放入背包")
|
||||
private @UInt long flag;
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
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;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
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.InboundMessageType;
|
||||
import org.nieo.seerproject.common.annotations.serialize.AutoCodec;
|
||||
import org.nieo.seerproject.common.annotations.serialize.UInt;
|
||||
import org.nieo.seerproject.common.net.InboundMessage;
|
||||
import org.nieo.seerproject.common.net.MessageCommandIDRegistry;
|
||||
|
||||
@Data
|
||||
@AutoCodec
|
||||
@InboundMessageType(MessageCommandIDRegistry.Pet_Rowei)
|
||||
public class PetRoweiInboundInfo implements InboundMessage {
|
||||
|
||||
@FieldDescription("精灵类型ID")
|
||||
private @UInt long typeId;
|
||||
|
||||
@FieldDescription("精灵捕捉时间")
|
||||
private @UInt long catchTime;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user