예제 #1
0
    ///////////////////////////////////////////////////////////////////////////
    // Overrides Below
    ///////////////////////////////////////////////////////////////////////////
    protected override List <DataRecord> ImportFromURL(List <DataRecord> Records, string path, int priority = 1)
    {
        // Beautiful Lambda here
        // Downloads the bytes and uses the ByteFunction lambda described in the passed parameter which will call the mime parser and populate the record.
        nm.AddDownload(new DownloadRequest(path, (ByteFunction)((DownloadBytes) => SetTexture(Records[0], DownloadBytes)), priority));

        // Return
        return(Records);
    }
 public void TestByteDownload(string url)
 {
     manager.AddDownload(new DownloadRequest(url, PrintBytes));
 }