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

Class OpenModComponentBoundCommandRegistration

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

Constructors

| Improve this Doc View Source

OpenModComponentBoundCommandRegistration(IOpenModComponent, MethodInfo)

Declaration
public OpenModComponentBoundCommandRegistration(IOpenModComponent component, MethodInfo methodInfo)
Parameters
Type Name Description
IOpenModComponent component
MethodInfo methodInfo
| Improve this Doc View Source

OpenModComponentBoundCommandRegistration(IOpenModComponent, Type)

Declaration
public OpenModComponentBoundCommandRegistration(IOpenModComponent component, Type commandType)
Parameters
Type Name Description
IOpenModComponent component
Type commandType

Properties

| Improve this Doc View Source

Aliases

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

CommandMethod

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

CommandType

Declaration
public Type? CommandType { get; }
Property Value
Type Description
System.Nullable<Type>
| 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; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Id

Declaration
public string Id { get; set; }
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; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ParentId

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

PermissionRegistrations

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

Priority

Declaration
public Priority Priority { get; set; }
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)