Class CommandAttribute
Marks the associated method as a command, allowing it to be loaded by the QuantumConsoleProcessor. This means it will be usable as a command from a Quantum Console.
Inheritance
CommandAttribute
Assembly: QFSW.QC.dll
Syntax
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
public sealed class CommandAttribute : Attribute
Constructors
Declaration
public CommandAttribute(string aliasOverride, MonoTargetType targetType, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms)
Parameters
Declaration
public CommandAttribute(string aliasOverride = "", Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms, MonoTargetType targetType = MonoTargetType.Single)
Parameters
Declaration
public CommandAttribute(string aliasOverride, string description, MonoTargetType targetType, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms)
Parameters
Declaration
public CommandAttribute(string aliasOverride, string description, Platform supportedPlatforms = Platform.OSXEditor | Platform.OSXPlayer | Platform.WindowsPlayer | Platform.OSXWebPlayer | Platform.OSXDashboardPlayer | Platform.WindowsWebPlayer | Platform.WindowsEditor | Platform.IPhonePlayer | Platform.PS3 | Platform.XBOX360 | Platform.Android | Platform.NaCl | Platform.LinuxPlayer | Platform.FlashPlayer | Platform.LinuxEditor | Platform.WebGLPlayer | Platform.MetroPlayerX86 | Platform.WSAPlayerX86 | Platform.MetroPlayerX64 | Platform.WSAPlayerX64 | Platform.MetroPlayerARM | Platform.WSAPlayerARM | Platform.WP8Player | Platform.BlackBerryPlayer | Platform.TizenPlayer | Platform.PSP2 | Platform.PS4 | Platform.PSM | Platform.XboxOne | Platform.SamsungTVPlayer | Platform.WiiU | Platform.tvOS | Platform.Switch | Platform.Lumin | Platform.AllPlatforms | Platform.EditorPlatforms | Platform.BuildPlatforms | Platform.MobilePlatforms, MonoTargetType targetType = MonoTargetType.Single)
Parameters
Fields
Alias
Declaration
public readonly string Alias
Field Value
Description
Declaration
public readonly string Description
Field Value
MonoTarget
Declaration
public readonly MonoTargetType MonoTarget
Field Value
Declaration
public readonly Platform SupportedPlatforms
Field Value
Valid
Declaration
public readonly bool Valid
Field Value
Extension Methods