Class OptionDocs

Namespace
Pixie.Options
Assembly
Pixie.dll

Represents documentation attached to an option.

public sealed class OptionDocs
Inheritance
OptionDocs
Inherited Members

Constructors

OptionDocs(string, Block, IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>)

Creates documentation for an option.

public OptionDocs(string category, Block description, IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>> parameters)

Parameters

category string

The option's category.

description Block

A description of what the option does.

parameters IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>

A list of parameters for each option form.

OptionDocs(string, Block, IReadOnlyList<OptionForm>, IReadOnlyList<OptionParameter>)

Creates documentation for an option.

public OptionDocs(string category, Block description, IReadOnlyList<OptionForm> forms, IReadOnlyList<OptionParameter> parameters)

Parameters

category string

The option's category.

description Block

A description of what the option does.

forms IReadOnlyList<OptionForm>

A list of forms for the option.

parameters IReadOnlyList<OptionParameter>

A common list of parameters for all option forms.

Fields

DefaultCategory

Gets the default option category.

public const string DefaultCategory = "Overall options"

Field Value

string

Properties

Category

Gets the category of options this option belongs to.

public string Category { get; }

Property Value

string

A category.

Description

Gets a description of what the option does.

public Block Description { get; }

Property Value

Block

A description.

Parameters

Gets a dictionary that maps each option form to a list of parameter docs for that form.

public IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>> Parameters { get; }

Property Value

IReadOnlyDictionary<OptionForm, IReadOnlyList<OptionParameter>>

A list of parameters.

Methods

GetParameters(OptionForm)

Gets the parameter documentation for a particular option form.

public IReadOnlyList<OptionParameter> GetParameters(OptionForm form)

Parameters

form OptionForm

The form to get documentation for.

Returns

IReadOnlyList<OptionParameter>

A list of parameter docs, one for each parameter.