Vixen
02b45cc4
csharp
public sealed class ConsoleCommandAttribute

Marks a static method as a console command.

No guide page documents this yet — the page shows what the code says about itself.

As a annotation

Valid on
Method

Remarks

The declaration [13](../../../../docs/plan/13-diagnostics.md) § Diagnostic overlays asks for. What finds them is RegisterFrom, which uses reflection and says so — see its remarks for why that is the honest shape today and what replaces it.

The method must be static and take a single ConsoleContext.

Fields and properties (2)

  • public string Name

    What is typed to run it.

  • public string Help

    One line saying what it does, shown by help.

Methods (1)

  • public ConsoleCommandAttribute(string name)

    Declares a command.

Used by (1)

  • ConsoleCommandsVixen.Engine