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

Class RegisteredCommand

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

Constructors

| Improve this Doc View Source

RegisteredCommand(ICommandRegistration, RegisteredCommandData)

Declaration
public RegisteredCommand(ICommandRegistration baseCommandRegistration, RegisteredCommandData commandData)
Parameters
Type Name Description
ICommandRegistration baseCommandRegistration
RegisteredCommandData commandData

Properties

| Improve this Doc View Source

Aliases

Declaration
public IReadOnlyCollection<string> Aliases { get; }
Property Value
Type Description
IReadOnlyCollection<System.String>
| Improve this Doc View Source

BaseCommandRegistration

Declaration
public ICommandRegistration BaseCommandRegistration { get; }
Property Value
Type Description
ICommandRegistration
| Improve this Doc View Source

CommandData

Declaration
public RegisteredCommandData CommandData { get; }
Property Value
Type Description
RegisteredCommandData
| Improve this Doc View Source

Component

Declaration
public IOpenModComponent Component { get; }
Property Value
Type Description
IOpenModComponent
| Improve this Doc View Source

Description

Declaration
public string? Description { get; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Id

Declaration
public string Id { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsEnabled

Declaration
public bool IsEnabled { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ParentId

Declaration
public string? ParentId { get; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

PermissionRegistrations

Declaration
public IReadOnlyCollection<IPermissionRegistration> PermissionRegistrations { get; }
Property Value
Type Description
IReadOnlyCollection<IPermissionRegistration>
| Improve this Doc View Source

Priority

Declaration
public Priority Priority { get; }
Property Value
Type Description
Priority
| Improve this Doc View Source

Syntax

Declaration
public string? Syntax { get; }
Property Value
Type Description
System.Nullable<System.String>

Methods

| Improve this Doc View Source

Instantiate(IServiceProvider)

Declaration
public ICommand Instantiate(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider
Returns
Type Description
ICommand
| Improve this Doc View Source

SupportsActor(ICommandActor)

Declaration
public bool SupportsActor(ICommandActor actor)
Parameters
Type Name Description
ICommandActor actor
Returns
Type Description
System.Boolean

Implements

ICommandRegistration

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)