Skip to content
ConsoleMonster

API Reference

Class

CommandProvider

Namespace ConsoleMonster.Interactive
Assembly ConsoleMonster
Implements
Modifiers sealed

A command provider from a function.

Inheritance

  • Object
  • CommandProvider

Constructors

public CommandProvider(String name, Func<IEnumerable<PaletteCommand>> commands) #

Creates a provider.

Parameters

name System.String requiredposition: 0
The group name.
commands System.Func<System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.PaletteCommand>> requiredposition: 1
Returns the commands.

Methods

public IEnumerable<PaletteCommand> GetCommands() #
Returns: IEnumerable<PaletteCommand>

The commands; called when the palette opens.

Returns

The commands.

Properties

public String Name { get; } #

The group name shown with its commands.