public RequestLoadAssetFromMemory(string assetName, byte[] bytes, object[] userObjects = null)
 {
     AssetName = assetName;
     UserData  = userObjects;
     Bytes     = bytes;
     Uri       = "";
     RequestManager.AddRequest(this);
 }
Beispiel #2
0
        /// <summary>
        /// Download large file request
        /// </summary>
        /// <param name="uris"></param>
        /// <param name="downLoadPath">Local download path</param>
        /// <param name="onLoadingUpdate"></param>
        /// <param name="loader">Text, to show progress</param>
        /// <param name="stringFormat">String format for progress {0}:File name {1}:Downloaded bytes {2}: File length</param>
        public RequestDownLoad(List <string> uris, string downLoadPath, LoaderAdapter.ProgressUpdate onLoadingUpdate,
                               BaseLoader loader = null, string stringFormat = null)
        {
            Uri              = uris.ToString();
            _uris            = uris;
            _loader          = loader;
            _stringFormat    = stringFormat;
            _downLoadPath    = downLoadPath;
            _onLoadingUpdate = onLoadingUpdate;
            OnUpdate        += Update;

            Response = new ResponseDownLoad
            {
                LocalFilesPathes = new List <string>(), DownLoadedData = new Dictionary <string, List <byte> >()
            };
            RequestManager.AddRequest(this);
        }
Beispiel #3
0
        public RequestDownLoad(string uri, string downLoadPath, BaseLoader loader = null,
                               string stringFormat = null)
        {
            Uri   = uri;
            _uris = new List <string> {
                uri
            };
            _loader       = loader;
            _stringFormat = stringFormat;
            _downLoadPath = downLoadPath;
            OnUpdate     += Update;

            Response = new ResponseDownLoad
            {
                LocalFilesPathes = new List <string>(), DownLoadedData = new Dictionary <string, List <byte> >()
            };
            RequestManager.AddRequest(this);
        }
Beispiel #4
0
 public RequestUri(string uri, object[] userData = null)
 {
     Uri      = uri;
     UserData = userData;
     RequestManager.AddRequest(this);
 }
Beispiel #5
0
 public RequestFileRead(string fileName, object[] userData = null)
 {
     Uri      = fileName;
     UserData = userData;
     RequestManager.AddRequest(this);
 }
Beispiel #6
0
 public RequestTread(ActionVoid action)
 {
     OnAction = action;
     RequestManager.AddRequest(this);
     Uri = "Action";
 }
Beispiel #7
0
 public RequestLoadAssembly(byte[] bytes)
 {
     UserData = new object[] { bytes };
     RequestManager.AddRequest(this);
     Uri = "Compiler";
 }