Files
bl/common/core/info/user/SystemMessageOutboundInfo.java

30 lines
1.2 KiB
Go
Raw Normal View History

package org.nieo.seerproject.common.net.info.user;
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.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
@Builder
@OutboundMessageType(MessageCommandIDRegistry.System_Message)
public class SystemMessageOutboundInfo implements OutboundMessage {
@FieldDescription("参数未知默认为0")
private @UShort short type;
@FieldDescription("npc的id 0无npc 1船长 7博士")
private @UShort short npc;
@FieldDescription("消息时间, 当前的时间戳")
private @UInt long msgTime;
@FieldDescription("消息体")
@ArraySerialize(value = ArraySerializeType.LENGTH_FIRST)
private String msg;
}