Class MetadataFileAttribute
- Namespace
- Uncreated.Warfare.Interaction.Commands
- Assembly
- Uncreated.Warfare.dll
Define the name of the static method that returns help metadata about a command.
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
[BaseTypeRequired(typeof(ICommand))]
public sealed class MetadataFileAttribute : Attribute
- Inheritance
-
MetadataFileAttribute
- Inherited Members
Constructors
MetadataFileAttribute(string?)
public MetadataFileAttribute(string? fileName = null)
Parameters
fileNamestring
Properties
FileName
Automatically retreived file name of the command. Should be in a folder with the same name as the assembly name.
public string? FileName { get; }
Property Value
ResourcePathOverride
Override the raw value used to retreive the embedded resource.
public string? ResourcePathOverride { get; set; }
Property Value
Remarks
Example: "EmbeddedResource.Commands.BlankCommand.meta.yml"