示例#1
0
 public ImageLoader(ILoadStrategy loadStrategy, LocalFileLoader localFileLoader) : base(loadStrategy, localFileLoader)
 {
     loadStrategy.Folder     = "/ImageCache/";
     loadStrategy.FileEncode = www => www.texture.EncodeToPNG();
     if (!Directory.Exists(loadStrategy.Path))
     {
         Directory.CreateDirectory(loadStrategy.Path);
     }
 }
示例#2
0
 public LocalPriorLoadStrategy(LocalFileLoader localFileLoader, RemoteFileLoader remoteFileLoade)
 {
     this.localFileLoader  = localFileLoader;
     this.remoteFileLoader = remoteFileLoade;
     Folder = "/Cache/";
     if (!Directory.Exists(path))
     {
         Directory.CreateDirectory(path);
     }
 }
 public LocalPriorLoadStrategy(LocalFileLoader localFileLoader, RemoteFileLoader remoteFileLoade)
 {
     this.localFileLoader  = localFileLoader;
     this.remoteFileLoader = remoteFileLoade;
     Folder = "/Cache/";
 }
示例#4
0
 protected Loader(ILoadStrategy loadStrategy, LocalFileLoader localFileLoader)
 {
     this.loadStrategy    = loadStrategy;
     this.localFileLoader = localFileLoader;
 }
示例#5
0
 public ImageLoader(ILoadStrategy loadStrategy, LocalFileLoader localFileLoader) : base(loadStrategy, localFileLoader)
 {
     loadStrategy.Folder = "/ImageCache/";
 }