Example #1
0
 /// <summary>
 /// Creates an <see cref="IInstallable"/> with the provided artifacts and display name.
 /// </summary>
 /// <param name="artifacts">The artifacts to install.</param>
 /// <param name="displayName">The display name of the installable.</param>
 /// <param name="gameInstaller">The installer that produced this installable.</param>
 public Installable(IEnumerable <FileSystemInfo> artifacts, string displayName, IGameInstaller gameInstaller)
 {
     this.Artifacts   = artifacts;
     this.DisplayName = displayName;
     this.Source      = gameInstaller.Name;
 }
Example #2
0
 /// <summary>
 /// Creates an <see cref="IInstallable"/> with the provided artifacts and uses
 /// the file path as a display name.
 /// </summary>
 /// <param name="artifacts">The artifacts to install.</param>
 /// <param name="source">The source file system info of the installable.</param>
 public Installable(IEnumerable <FileSystemInfo> artifacts, FileSystemInfo source, IGameInstaller gameInstaller)
     : this(artifacts, source.Name, gameInstaller)
 {
 }