Ejemplo n.º 1
0
 public Version(string uuid, string name, bool isBeta, ICommonVersionCommands commands)
 {
     this.UUID            = uuid;
     this.Name            = name;
     this.IsBeta          = isBeta;
     this.DownloadCommand = commands.DownloadCommand;
     this.LaunchCommand   = commands.LaunchCommand;
     this.RemoveCommand   = commands.RemoveCommand;
 }
 public Version(string name, string directory, ICommonVersionCommands commands)
 {
     this.UUID            = UNKNOWN_UUID;
     this.Name            = name;
     this.VersionType     = VersionType.Imported;
     this.DownloadCommand = commands.DownloadCommand;
     this.LaunchCommand   = commands.LaunchCommand;
     this.RemoveCommand   = commands.RemoveCommand;
     this.GameDirectory   = directory;
 }
 public Version(string uuid, string name, VersionType versionType, bool isNew, ICommonVersionCommands commands)
 {
     this.UUID            = uuid;
     this.Name            = name;
     this.VersionType     = versionType;
     this.IsNew           = isNew;
     this.DownloadCommand = commands.DownloadCommand;
     this.LaunchCommand   = commands.LaunchCommand;
     this.RemoveCommand   = commands.RemoveCommand;
     this.GameDirectory   = (versionType == VersionType.Preview ? "Minecraft-Preview-" : "Minecraft-") + Name;
 }