Class ServerStartupResult

Namespace
Unity.Multiplayer.Core
public sealed class ServerStartupResult
Inheritance
ServerStartupResult
Inherited Members

Constructors

ServerStartupResult(ServerSettings, ServerPaths, string, NetCommandLineResult, IReadOnlyList<string>, IReadOnlyList<string>)

Creates a result.

public ServerStartupResult(ServerSettings settings, ServerPaths paths, string configPath, NetCommandLineResult commandLine, IReadOnlyList<string> errors, IReadOnlyList<string> warnings)

Parameters

settings ServerSettings
paths ServerPaths
configPath string
commandLine NetCommandLineResult
errors IReadOnlyList<string>
warnings IReadOnlyList<string>

Properties

CommandLine

What the session command line held.

public NetCommandLineResult CommandLine { get; }

Property Value

NetCommandLineResult

ConfigPath

The settings file read, or null when there was none.

public string ConfigPath { get; }

Property Value

string

Errors

Every problem in any layer, and in the final settings. Never null.

public IReadOnlyList<string> Errors { get; }

Property Value

IReadOnlyList<string>

IsValid

True when Errors is empty.

public bool IsValid { get; }

Property Value

bool

Paths

The package folder, logs and saves.

public ServerPaths Paths { get; }

Property Value

ServerPaths

Settings

The package settings.

public ServerSettings Settings { get; }

Property Value

ServerSettings

Warnings

Ignored settings-file keys. Never null.

public IReadOnlyList<string> Warnings { get; }

Property Value

IReadOnlyList<string>