Esempio n. 1
0
 public TextureVaultItem(string ID, TextureVault.SuccessHandler onSuccess, TextureVault.ErrorHandler onError, string directory = "")
 {
     this.ID        = ID;
     this.onSuccess = onSuccess;
     this.onError   = onError;
     this.directory = directory;
 }
Esempio n. 2
0
        public void LoadTexture(string ID, TextureVault.SuccessHandler onSuccess, TextureVault.ErrorHandler onError, string directory = "")
        {
            TextureVaultItem textureVaultItem = queue.GetQueuedRequests().Where(item => item.ID == ID).First();

            if (textureVaultItem != null)
            {
                queue.DeleteRequest(textureVaultItem);
            }

            this.queue.Process(new TextureVaultItem(ID, onSuccess, onError, directory));
        }