Example #1
0
        public static PacketOutStream response_int(int[] arrs)
        {
            PacketOutStream packet = new PacketOutStream();

            packet.writeShort((short)PacketOpcode.SERVER.RESPONSE_INT);
            packet.writeInt(arrs.Length);
            foreach (int s in arrs)
            {
                packet.writeInt(s);
            }
            return(packet);
        }
Example #2
0
        public static PacketOutStream response_string(string[] arrs)
        {
            PacketOutStream packet = new PacketOutStream();

            packet.writeShort((short)PacketOpcode.SERVER.RESPONSE_STRING);
            packet.writeInt(arrs.Length);
            foreach (string s in arrs)
            {
                packet.writeString(s);
            }
            return(packet);
        }