You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/StompyRobot/SRDebugger/Scripts/SROptions.Attributes.cs

39 lines
883 B
C#

using System;
namespace SRDebugger
{
[AttributeUsage(AttributeTargets.Property)]
public 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 class IncrementAttribute : Attribute
{
public readonly double Increment;
public IncrementAttribute(double increment)
{
Increment = increment;
}
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)]
public class SortAttribute : Attribute
{
public readonly int SortPriority;
public SortAttribute(int priority)
{
SortPriority = priority;
}
}
}