Class NetCommandLineResult

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

Constructors

NetCommandLineResult(bool, bool, IReadOnlyList<string>)

Creates a result.

public NetCommandLineResult(bool topologySpecified, bool headless, IReadOnlyList<string> errors)

Parameters

topologySpecified bool
headless bool
errors IReadOnlyList<string>

NetCommandLineResult(bool, bool, IReadOnlyList<string>, string)

Creates a result for a launch line that may name a bot role.

public NetCommandLineResult(bool topologySpecified, bool headless, IReadOnlyList<string> errors, string botRole)

Parameters

topologySpecified bool
headless bool
errors IReadOnlyList<string>
botRole string

Properties

BotRole

The role -bot gave this process, or null when it is not a bot.

public string BotRole { get; }

Property Value

string

Errors

One message per recognised argument whose value was missing or unreadable. Never null.

public IReadOnlyList<string> Errors { get; }

Property Value

IReadOnlyList<string>

Headless

True when -batchmode or -nographics was on the line.

public bool Headless { get; }

Property Value

bool

IsBot

True when -bot <role> was on the line: a bot client the bot runner joins, never a session that starts by itself or shows menus.

public bool IsBot { get; }

Property Value

bool

IsValid

True when Errors is empty.

public bool IsValid { get; }

Property Value

bool

TopologySpecified

True when a valid -mode was given, so the launch line chose host, server or client.

public bool TopologySpecified { get; }

Property Value

bool