public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer) { NetBuffer buf = new NetBuffer(); buf.WriteShort((UInt16)rCMD); buf.WriteBytes(rBuffer.ToBytes()); SocketClient.SendMessageTCP(buf); }
public override void WriteToBuffer(NetBuffer buffer) { buffer.WriteShort(value); }