BodyType - The body type of this message.public class ClientMsg<BodyType extends ISteamSerializableMessage> extends MsgBase<ExtendedClientMsgHdr>
payload| Constructor and Description |
|---|
ClientMsg(java.lang.Class<? extends BodyType> bodyType)
Initializes a new instance of the
ClientMsg class. |
ClientMsg(java.lang.Class<? extends BodyType> bodyType,
int payloadReserve)
Initializes a new instance of the
ClientMsg class. |
ClientMsg(java.lang.Class<? extends BodyType> bodyType,
IPacketMsg msg)
Initializes a new instance of the
ClientMsg class. |
ClientMsg(java.lang.Class<? extends BodyType> bodyType,
MsgBase<ExtendedClientMsgHdr> msg)
Initializes a new instance of the
ClientMsg class. |
ClientMsg(java.lang.Class<? extends BodyType> bodyType,
MsgBase<ExtendedClientMsgHdr> msg,
int payloadReserve)
Initializes a new instance of the
ClientMsg class. |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(byte[] data)
Initializes this client message by deserializing the specified data.
|
BodyType |
getBody() |
EMsg |
getMsgType()
Gets the network message type of this client message.
|
int |
getSessionID()
Gets the session id for this client message.
|
JobID |
getSourceJobID()
Gets the source job id for this client message.
|
SteamID |
getSteamID()
Gets the
SteamID for this client message. |
JobID |
getTargetJobID()
Gets the target job id for this client message.
|
boolean |
isProto()
Gets a value indicating whether this client message is protobuf backed.
|
byte[] |
serialize()
serializes this client message instance to a byte array.
|
void |
setSessionID(int sessionID)
Sets the session id for this client message.
|
void |
setSourceJobID(JobID jobID)
Sets the source job id for this client message.
|
void |
setSteamID(SteamID steamID)
Sets the
SteamID for this client message. |
void |
setTargetJobID(JobID jobID)
Sets the target job id for this client message.
|
getPayload, readByte, readBytes, readDouble, readFloat, readInt, readLong, readNullTermString, readNullTermString, readShort, seek, write, write, write, write, write, write, write, write, write, writeNullTermString, writeNullTermStringpublic ClientMsg(java.lang.Class<? extends BodyType> bodyType)
ClientMsg class.bodyType - body typepublic ClientMsg(java.lang.Class<? extends BodyType> bodyType, int payloadReserve)
ClientMsg class.bodyType - body typepayloadReserve - The number of bytes to initialize the payload capacity to.public ClientMsg(java.lang.Class<? extends BodyType> bodyType, MsgBase<ExtendedClientMsgHdr> msg)
ClientMsg class.
This a reply constructor.bodyType - body typemsg - The message that this instance is a reply for.public ClientMsg(java.lang.Class<? extends BodyType> bodyType, MsgBase<ExtendedClientMsgHdr> msg, int payloadReserve)
ClientMsg class.
This a reply constructor.bodyType - body typemsg - The message that this instance is a reply for.payloadReserve - The number of bytes to initialize the payload capacity to.public ClientMsg(java.lang.Class<? extends BodyType> bodyType, IPacketMsg msg)
ClientMsg class.
This a receive constructor.bodyType - body typemsg - The packet message to build this client message from.public boolean isProto()
IClientMsgpublic EMsg getMsgType()
IClientMsgpublic int getSessionID()
IClientMsgpublic void setSessionID(int sessionID)
IClientMsgsessionID - The session id.public SteamID getSteamID()
IClientMsgSteamID for this client message.SteamID.public void setSteamID(SteamID steamID)
IClientMsgSteamID for this client message.steamID - The SteamID.public JobID getTargetJobID()
IClientMsgpublic void setTargetJobID(JobID jobID)
IClientMsgjobID - The target job id.public JobID getSourceJobID()
IClientMsgpublic void setSourceJobID(JobID jobID)
IClientMsgjobID - The source job id.public byte[] serialize()
IClientMsgpublic void deserialize(byte[] data)
IClientMsgdata - The data representing a client message.public BodyType getBody()