Class BotLaunchOptions
- Namespace
- Unity.Multiplayer.Core
What Parse(IReadOnlyList<string>) found on a launch line.
public sealed class BotLaunchOptions
- Inheritance
-
BotLaunchOptions
- Inherited Members
Constructors
BotLaunchOptions(string, string, string, string, double, IReadOnlyList<string>)
Creates options.
public BotLaunchOptions(string role, string joinCode, string joinCodeFile, string scenario, double timeoutSeconds, IReadOnlyList<string> errors = null)
Parameters
rolestringjoinCodestringjoinCodeFilestringscenariostringtimeoutSecondsdoubleerrorsIReadOnlyList<string>
Properties
Errors
One message per unreadable argument, or a bot with nothing to join by. Never null.
public IReadOnlyList<string> Errors { get; }
Property Value
IsBot
True when -bot was given.
public bool IsBot { get; }
Property Value
IsValid
True when Errors is empty.
public bool IsValid { get; }
Property Value
JoinCode
The code to join by (-joincode), or null.
public string JoinCode { get; }
Property Value
JoinCodeFile
The join-code file (-joincodefile): read by a bot, written by a server. Null when absent.
public string JoinCodeFile { get; }
Property Value
Role
The bot's role (-bot), or null when this process is not a bot.
public string Role { get; }
Property Value
Scenario
The scenario (-scenario), or null.
public string Scenario { get; }
Property Value
TimeoutSeconds
Seconds a bot's run may take (-bottimeout).
public double TimeoutSeconds { get; }