29 lines
1.3 KiB
Go
29 lines
1.3 KiB
Go
|
|
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;
|
||
|
|
}
|