Files
bl/common/core/info/pet/RoomPetInfoOutboundInfo.java

55 lines
1.7 KiB
Go
Raw Normal View History

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];
}