39 lines
		
	
	
		
			921 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			921 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;
 | |
|         }
 | |
|     }
 | |
| } |