예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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);
            }
        }