static void Send <T>(NetworkClient client, MessageID messageID, T obj, System.UInt64 u64TargetID, System.UInt32 dwUserData) { byte[] bytes = null; Pack <T>(messageID, obj, u64TargetID, dwUserData, ref bytes); MessageSendData tab = new MessageSendData(client, bytes); m_SendPackets.Add(tab); }
static void Send(MessageSendData msg) { msg.Client.Send(msg.Bytes); }