mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add InstallPath, DownloadPath and ModlistImage to StateContainer.
This commit is contained in:
parent
100b08a1c5
commit
d790463a27
@ -17,9 +17,18 @@ public interface IStateContainer
|
|||||||
IObservable<AbsolutePath> ModlistPathObservable { get; }
|
IObservable<AbsolutePath> ModlistPathObservable { get; }
|
||||||
AbsolutePath ModlistPath { get; set; }
|
AbsolutePath ModlistPath { get; set; }
|
||||||
|
|
||||||
|
IObservable<AbsolutePath> InstallPathObservable { get; }
|
||||||
|
AbsolutePath InstallPath { get; set; }
|
||||||
|
|
||||||
|
IObservable<AbsolutePath> DownloadPathObservable { get; }
|
||||||
|
AbsolutePath DownloadPath { get; set; }
|
||||||
|
|
||||||
IObservable<ModList?> ModlistObservable { get; }
|
IObservable<ModList?> ModlistObservable { get; }
|
||||||
ModList? Modlist { get; set; }
|
ModList? Modlist { get; set; }
|
||||||
|
|
||||||
|
IObservable<string> ModlistImageObservable { get; }
|
||||||
|
string ModlistImage { get; set; }
|
||||||
|
|
||||||
IObservable<InstallState> InstallStateObservable { get; }
|
IObservable<InstallState> InstallStateObservable { get; }
|
||||||
InstallState InstallState { get; set; }
|
InstallState InstallState { get; set; }
|
||||||
|
|
||||||
|
@ -55,6 +55,22 @@ public class StateContainer : IStateContainer
|
|||||||
set => _modlistPathObservable.Value = value;
|
set => _modlistPathObservable.Value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private readonly CustomObservable<AbsolutePath> _installPathObservable = new(AbsolutePath.Empty);
|
||||||
|
public IObservable<AbsolutePath> InstallPathObservable => _installPathObservable;
|
||||||
|
public AbsolutePath InstallPath
|
||||||
|
{
|
||||||
|
get => _installPathObservable.Value;
|
||||||
|
set => _installPathObservable.Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private readonly CustomObservable<AbsolutePath> _downloadPathObservable = new(AbsolutePath.Empty);
|
||||||
|
public IObservable<AbsolutePath> DownloadPathObservable => _downloadPathObservable;
|
||||||
|
public AbsolutePath DownloadPath
|
||||||
|
{
|
||||||
|
get => _downloadPathObservable.Value;
|
||||||
|
set => _downloadPathObservable.Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
private readonly CustomObservable<ModList?> _modlistObservable = new(null);
|
private readonly CustomObservable<ModList?> _modlistObservable = new(null);
|
||||||
public IObservable<ModList?> ModlistObservable => _modlistObservable;
|
public IObservable<ModList?> ModlistObservable => _modlistObservable;
|
||||||
public ModList? Modlist
|
public ModList? Modlist
|
||||||
@ -62,6 +78,14 @@ public class StateContainer : IStateContainer
|
|||||||
get => _modlistObservable.Value;
|
get => _modlistObservable.Value;
|
||||||
set => _modlistObservable.Value = value;
|
set => _modlistObservable.Value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private readonly CustomObservable<string> _modlistImageObservable = new(string.Empty);
|
||||||
|
public IObservable<string> ModlistImageObservable => _modlistImageObservable;
|
||||||
|
public string ModlistImage
|
||||||
|
{
|
||||||
|
get => _modlistImageObservable.Value;
|
||||||
|
set => _modlistImageObservable.Value = value;
|
||||||
|
}
|
||||||
|
|
||||||
private readonly CustomObservable<InstallState> _installStateObservable = new(InstallState.Waiting);
|
private readonly CustomObservable<InstallState> _installStateObservable = new(InstallState.Waiting);
|
||||||
public IObservable<InstallState> InstallStateObservable => _installStateObservable;
|
public IObservable<InstallState> InstallStateObservable => _installStateObservable;
|
||||||
|
Loading…
Reference in New Issue
Block a user