Table of Contents

Class ExistingServerForm

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

What the user settled on in the create dialog for a folder that already holds a server.

public sealed record ExistingServerForm : IEquatable<ExistingServerForm>
Inheritance
ExistingServerForm
Implements
Inherited Members

Remarks

Type, GameVersion and JarFile are what was picked by hand, and count only where the folder itself said nothing: what was detected always wins. Memory is Automatic unless the user asked for the two numbers, which the detection fills in either way.

Constructors

ExistingServerForm(string, string, ServerType, string?, string?, int, int, string, bool, bool, bool, bool, MemoryMode)

What the user settled on in the create dialog for a folder that already holds a server.

public ExistingServerForm(string Name, string Folder, ServerType Type, string? GameVersion, string? JarFile, int MinRamGb, int MaxRamGb, string JavaPath, bool Playit, bool Crossplay, bool MultiVersion, bool Hydraulic, MemoryMode Memory = MemoryMode.Automatic)

Parameters

Name string
Folder string
Type ServerType
GameVersion string
JarFile string
MinRamGb int
MaxRamGb int
JavaPath string
Playit bool
Crossplay bool
MultiVersion bool
Hydraulic bool
Memory MemoryMode

Remarks

Type, GameVersion and JarFile are what was picked by hand, and count only where the folder itself said nothing: what was detected always wins. Memory is Automatic unless the user asked for the two numbers, which the detection fills in either way.

Properties

Crossplay

public bool Crossplay { get; init; }

Property Value

bool

Folder

public string Folder { get; init; }

Property Value

string

GameVersion

public string? GameVersion { get; init; }

Property Value

string

Hydraulic

public bool Hydraulic { get; init; }

Property Value

bool

JarFile

public string? JarFile { get; init; }

Property Value

string

JavaPath

public string JavaPath { get; init; }

Property Value

string

MaxRamGb

public int MaxRamGb { get; init; }

Property Value

int

Memory

public MemoryMode Memory { get; init; }

Property Value

MemoryMode

MinRamGb

public int MinRamGb { get; init; }

Property Value

int

MultiVersion

public bool MultiVersion { get; init; }

Property Value

bool

Name

public string Name { get; init; }

Property Value

string

Playit

public bool Playit { get; init; }

Property Value

bool

Type

public ServerType Type { get; init; }

Property Value

ServerType