Ejemplo n.º 1
0
        public void Send(PacketWriter p)
        {
            byte[] data   = p.ToArray();
            Packet packet = new Packet(data, p.Length);

            PacketSended.Raise(packet);
            if (!packet.Filter)
            {
                Send(data);
            }
        }
Ejemplo n.º 2
0
        public void Send(PacketWriter p)
        {
            byte[] data   = p.ToArray();
            Packet packet = new Packet(data, p.Length);

            if (Plugin.ProcessSendPacket(data, packet.Length))
            {
                PacketSended.Raise(packet);
                Send(data);
            }
        }
Ejemplo n.º 3
0
        public void Send(PacketWriter p)
        {
            byte[] data   = p.ToArray();
            Packet packet = new Packet(data, p.Length);

            //if (Engine.Server.IsConnected)
            //    Engine.Server.SendToPlugin(data, data.Length, p.IsDynamic, true);

            if (Plugin.ProcessSendPacket(data, packet.Length))
            {
                PacketSended.Raise(packet);
                Send(data);
            }
        }