Project_WL/Assets/ThirdParty/StompyRobot/SRDebugger/Scripts/SROptions.Attributes.cs

73 lines
1.4 KiB
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using System;
public partial class SROptions
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class NumberRangeAttribute : Attribute
{
public readonly double Max;
public readonly double Min;
public NumberRangeAttribute(double min, double max)
{
Min = min;
Max = max;
}
}
[AttributeUsage(AttributeTargets.Property)]
public sealed class IncrementAttribute : Attribute
{
public readonly double Increment;
public IncrementAttribute(double increment)
{
Increment = increment;
}
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)]
public sealed class SortAttribute : Attribute
{
public readonly int SortPriority;
public SortAttribute(int priority)
{
SortPriority = priority;
}
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)]
public sealed class DisplayNameAttribute : Attribute
{
public readonly string Name;
public DisplayNameAttribute(string name)
{
Name = name;
}
}
}
#if NETFX_CORE
namespace System.ComponentModel
{
[AttributeUsage(AttributeTargets.All)]
public sealed class CategoryAttribute : Attribute
{
public readonly string Category;
public CategoryAttribute(string category)
{
Category = category;
}
}
}
#endif