// External public static void Send(IInPackable inPacket, NetDeliveryMethod inDeliveryMethod) { var newMessage = _client.CreateMessage(); inPacket.PackInto(newMessage); _client.SendMessage(newMessage, inDeliveryMethod); }
public static void Send(IInPackable inPacket, EDataPacketTypes inMsgType, NetConnection inTargetConnection, NetDeliveryMethod inDeliveryMethod) { var newMsg = _server.CreateMessage(inPacket.GetPacketSize()); newMsg.Write((byte)inMsgType); inPacket.PackInto(newMsg); _server.SendMessage(newMsg, inTargetConnection, inDeliveryMethod); }