Class NetCommandLineResult
- Namespace
- Unity.Multiplayer.Core
What Apply(NetConfig, IReadOnlyList<string>) found.
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
topologySpecifiedboolheadlessboolerrorsIReadOnlyList<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
topologySpecifiedboolheadlessboolerrorsIReadOnlyList<string>botRolestring
Properties
BotRole
The role -bot gave this process, or null when it is not a bot.
public string BotRole { get; }
Property Value
Errors
One message per recognised argument whose value was missing or unreadable. Never null.
public IReadOnlyList<string> Errors { get; }
Property Value
Headless
True when -batchmode or -nographics was on the line.
public bool Headless { get; }
Property Value
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
IsValid
True when Errors is empty.
public bool IsValid { get; }
Property Value
TopologySpecified
True when a valid -mode was given, so the launch line chose host, server or client.
public bool TopologySpecified { get; }