Example #1
0
 public void LoadLocalTextureAsync(string path, LoadTextureCallback callback, ProgressCallback progress = null)
 {
     throw new NotImplementedException();
 }
Example #2
0
 public static void LoadLocalTextureAsync(this IUsesCloudDataStorage user, string path, LoadTextureCallback callback,
                                          ProgressCallback progress = null)
 {
     user.provider.LoadLocalTextureAsync(path, callback, progress);
 }
Example #3
0
 public TextureRequest(LoadTextureCallback callback, ProgressCallback progress = null) : base(progress)
 {
     m_Callback = callback;
 }
Example #4
0
 public static void CloudLoadTextureAsync(this IUsesCloudDataStorage user, string key, LoadTextureCallback callback,
                                          ProgressCallback progress = null)
 {
     user.provider.CloudLoadTextureAsync(key, callback, progress);
 }
Example #5
0
 /// <summary>
 /// Load a texture asynchronously from local storage
 /// </summary>
 /// <param name="user">The functionality user</param>
 /// <param name="path">Path to the texture. </param>
 /// <param name="callback">A callback which returns whether the operation was successful, as well as the
 /// response payload if it was. If the operation failed, the byte array will contain the error string</param>
 /// <param name="progress">Called every frame while the request is in progress with two 0-1 values indicating
 /// upload and download progress, respectively</param>
 /// <param name="timeout">The timeout duration (in seconds) for this request</param>
 /// <returns>A handle to the request which can be used to cancel it</returns>
 public static RequestHandle LoadLocalTextureAsync(this IUsesCloudStorage user, string path, LoadTextureCallback callback,
                                                   ProgressCallback progress = null, int timeout = CloudStorageDefaults.DefaultTimeout)
 {
     return(user.provider.LoadLocalTextureAsync(path, callback, progress, timeout));
 }