rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Attributes/CommandPlatformAttribute.cs

16 lines
594 B
C#
Raw Permalink Normal View History

2023-08-22 15:41:12 +03:00
using System;
namespace QFSW.QC
{
/// <summary>Determines which platforms the command is available on. Supersedes platform availability determined in the [Command].</summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class CommandPlatformAttribute : Attribute
{
public readonly Platform SupportedPlatforms;
public CommandPlatformAttribute(Platform supportedPlatforms)
{
SupportedPlatforms = supportedPlatforms;
}
}
}