Table of Contents

Class EcsHostBuilderCommandsExtensions

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

Extension methods for configuring the command system in the ECS host builder.

public static class EcsHostBuilderCommandsExtensions
Inheritance
EcsHostBuilderCommandsExtensions
Inherited Members

Methods

UseCommands(IEcsHostBuilder)

Configures the host to use both player and console command processing.

public static IEcsHostBuilder UseCommands(this IEcsHostBuilder hostBuilder)

Parameters

hostBuilder IEcsHostBuilder

Returns

IEcsHostBuilder

The ECS host builder for chaining.

UseConsoleCommands(IEcsHostBuilder, Action<ConsoleCommandServiceOptions>?)

Configures the host to use console command processing.

public static IEcsHostBuilder UseConsoleCommands(this IEcsHostBuilder hostBuilder, Action<ConsoleCommandServiceOptions>? configure = null)

Parameters

hostBuilder IEcsHostBuilder
configure Action<ConsoleCommandServiceOptions>

An optional action to configure console command service options.

Returns

IEcsHostBuilder

The ECS host builder for chaining.

UsePlayerCommands(IEcsHostBuilder, Action<PlayerCommandServiceOptions>?)

Configures the host to use player command processing.

public static IEcsHostBuilder UsePlayerCommands(this IEcsHostBuilder hostBuilder, Action<PlayerCommandServiceOptions>? configure = null)

Parameters

hostBuilder IEcsHostBuilder
configure Action<PlayerCommandServiceOptions>

An optional action to configure player command service options.

Returns

IEcsHostBuilder

The ECS host builder for chaining.