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

role string
joinCode string
joinCodeFile string
scenario string
timeoutSeconds double
errors IReadOnlyList<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

IReadOnlyList<string>

IsBot

True when -bot was given.

public bool IsBot { get; }

Property Value

bool

IsValid

True when Errors is empty.

public bool IsValid { get; }

Property Value

bool

JoinCode

The code to join by (-joincode), or null.

public string JoinCode { get; }

Property Value

string

JoinCodeFile

The join-code file (-joincodefile): read by a bot, written by a server. Null when absent.

public string JoinCodeFile { get; }

Property Value

string

Role

The bot's role (-bot), or null when this process is not a bot.

public string Role { get; }

Property Value

string

Scenario

The scenario (-scenario), or null.

public string Scenario { get; }

Property Value

string

TimeoutSeconds

Seconds a bot's run may take (-bottimeout).

public double TimeoutSeconds { get; }

Property Value

double