Table of Contents

Class RedirectCommandToAttribute

Namespace
Uncreated.Warfare.Interaction.Commands
Assembly
Uncreated.Warfare.dll

Allows a parent command to automatically redirect to a child command instead of running it's body or throwing help if it has none.

[AttributeUsage(AttributeTargets.Class)]
[BaseTypeRequired(typeof(ICommand))]
public sealed class RedirectCommandToAttribute : Attribute
Inheritance
RedirectCommandToAttribute
Inherited Members

Constructors

RedirectCommandToAttribute(Type)

public RedirectCommandToAttribute(Type commandType)

Parameters

commandType Type

Properties

CommandType

public Type CommandType { get; }

Property Value

Type