OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class CommandContextBuilder

Inheritance
System.Object
CommandContextBuilder
Implements
ICommandContextBuilder
Namespace: OpenMod.Core.Commands
Assembly: OpenMod.Core.dll
Syntax
public class CommandContextBuilder : object, ICommandContextBuilder

Constructors

| Improve this Doc View Source

CommandContextBuilder(IOpenModStringLocalizer, ILifetimeScope)

Declaration
public CommandContextBuilder(IOpenModStringLocalizer stringLocalizer, ILifetimeScope lifetimeScope)
Parameters
Type Name Description
IOpenModStringLocalizer stringLocalizer
ILifetimeScope lifetimeScope

Methods

| Improve this Doc View Source

BuildContextTree(CommandContext, IReadOnlyCollection<ICommandRegistration>)

Declaration
public virtual CommandContext BuildContextTree(CommandContext currentContext, IReadOnlyCollection<ICommandRegistration> commandRegistrations)
Parameters
Type Name Description
CommandContext currentContext
IReadOnlyCollection<ICommandRegistration> commandRegistrations
Returns
Type Description
CommandContext
| Improve this Doc View Source

CreateContext(ICommandActor, String[], String, IReadOnlyCollection<ICommandRegistration>)

Declaration
public ICommandContext CreateContext(ICommandActor actor, string[] args, string prefix, IReadOnlyCollection<ICommandRegistration> commandRegistrations)
Parameters
Type Name Description
ICommandActor actor
System.String[] args
System.String prefix
IReadOnlyCollection<ICommandRegistration> commandRegistrations
Returns
Type Description
ICommandContext

Implements

ICommandContextBuilder

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)