ClientMsgProtobuf

constructor(clazz: Class<out AbstractMessage>, msg: IPacketMsg)

Initializes a new instance of the ClientMsgProtobuf class. This is a client send constructor.

Parameters

clazz

the type of the body

msg

The network message type this client message represents.


constructor(clazz: Class<out AbstractMessage>, msg: IPacketMsg, payloadReserve: Int)

Initializes a new instance of the ClientMsgProtobuf class. This is a client send constructor.

Parameters

clazz

the type of the body

msg

The network message type this client message represents.

payloadReserve

The number of bytes to initialize the payload capacity to.


constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg)

Initializes a new instance of the ClientMsgProtobuf class. This is a client send constructor.

Parameters

clazz

the type of the body

eMsg

The network message type this client message represents.


constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, payloadReserve: Int)

Initializes a new instance of the ClientMsgProtobuf class. This is a client send constructor.

Parameters

clazz

the type of the body

eMsg

The network message type this client message represents.

payloadReserve

The number of bytes to initialize the payload capacity to.


constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, msg: MsgBase<MsgHdrProtoBuf>)

Initializes a new instance of the ClientMsgProtobuf class. This is a reply constructor.

Parameters

clazz

the type of the body

eMsg

The network message type this client message represents.

msg

The message that this instance is a reply for.


constructor(clazz: Class<out AbstractMessage>, eMsg: EMsg, msg: MsgBase<MsgHdrProtoBuf>, payloadReserve: Int)

Initializes a new instance of the ClientMsgProtobuf class. This is a reply constructor.

Parameters

clazz

the type of the body

eMsg

The network message type this client message represents.

msg

The message that this instance is a reply for.

payloadReserve

The number of bytes to initialize the payload capacity to.