API Reference
Class
CommandProvider
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
- The group name.
- commands System.Func<System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.PaletteCommand>>
- Returns the commands.
Methods
public IEnumerable<PaletteCommand> GetCommands() #Returns:
IEnumerable<PaletteCommand>The commands; called when the palette opens.
Returns
The commands.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?