Exemplo n.º 1
0
    // External
    public static void Send(IInPackable inPacket, NetDeliveryMethod inDeliveryMethod)
    {
        var newMessage = _client.CreateMessage();

        inPacket.PackInto(newMessage);
        _client.SendMessage(newMessage, inDeliveryMethod);
    }
Exemplo n.º 2
0
        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);
        }