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); } }
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/"; }
protected Loader(ILoadStrategy loadStrategy, LocalFileLoader localFileLoader) { this.loadStrategy = loadStrategy; this.localFileLoader = localFileLoader; }
public ImageLoader(ILoadStrategy loadStrategy, LocalFileLoader localFileLoader) : base(loadStrategy, localFileLoader) { loadStrategy.Folder = "/ImageCache/"; }