Table of Contents

Class DefaultCommandHelpProvider

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

Default implementation of ICommandHelpProvider.

public class DefaultCommandHelpProvider : ICommandHelpProvider
Inheritance
DefaultCommandHelpProvider
Implements
Inherited Members

Constructors

DefaultCommandHelpProvider(ICommandRegistry)

Initializes a new instance of the DefaultCommandHelpProvider class with the specified command registry.

public DefaultCommandHelpProvider(ICommandRegistry registry)

Parameters

registry ICommandRegistry

The command registry to provide help information for.

Methods

GetAllCommands()

Gets all available commands.

public IEnumerable<CommandDefinition> GetAllCommands()

Returns

IEnumerable<CommandDefinition>

GetCommandGroups()

Gets all available command groups.

public IEnumerable<CommandGroup> GetCommandGroups()

Returns

IEnumerable<CommandGroup>

GetCommandsInGroup(CommandGroup)

Gets all commands in a specific group.

public IEnumerable<CommandDefinition> GetCommandsInGroup(CommandGroup group)

Parameters

group CommandGroup

Returns

IEnumerable<CommandDefinition>

SearchCommands(string)

Searches for commands matching a query.

public IEnumerable<CommandDefinition> SearchCommands(string query)

Parameters

query string

Returns

IEnumerable<CommandDefinition>