Class PreflightHost
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
What StartPreflight needs from its server.
public sealed record PreflightHost : IEquatable<PreflightHost>
- Inheritance
-
PreflightHost
- Implements
- Inherited Members
Constructors
PreflightHost(Func<string>, Action<string>, Action, Func<IEnumerable<string>, IProgress<string>, Task>)
What StartPreflight needs from its server.
public PreflightHost(Func<string> Name, Action<string> Say, Action ConfigChanged, Func<IEnumerable<string>, IProgress<string>, Task> InstallMissing)
Parameters
NameFunc<string>The server's display name, for dialogs.
SayAction<string>Writes a line in the server's console.
ConfigChangedActionTells the app the config was changed here, so it is saved.
InstallMissingFunc<IEnumerable<string>, IProgress<string>, Task>Installs the named mods and plugins, reporting progress.
Properties
ConfigChanged
Tells the app the config was changed here, so it is saved.
public Action ConfigChanged { get; init; }
Property Value
InstallMissing
Installs the named mods and plugins, reporting progress.
public Func<IEnumerable<string>, IProgress<string>, Task> InstallMissing { get; init; }
Property Value
Name
The server's display name, for dialogs.
public Func<string> Name { get; init; }
Property Value
Say
Writes a line in the server's console.
public Action<string> Say { get; init; }