39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
|
|
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;
|
||
|
|
}
|