34 lines
579 B
C#
34 lines
579 B
C#
namespace MAX.Core.Interfaces;
|
|
|
|
public interface IPriority
|
|
{
|
|
/// <summary> 优先级(优先级越高越先执行) </summary>
|
|
int Priority { get; }
|
|
}
|
|
|
|
public static class IntPriority
|
|
{
|
|
public const int Highest = 5000;
|
|
|
|
public const int VeryHigh = 4000;
|
|
|
|
public const int Higher = 3000;
|
|
|
|
public const int High = 2000;
|
|
|
|
public const int AboveNormal = 1000;
|
|
|
|
public const int Normal = 0;
|
|
|
|
public const int BelowNormal = -1000;
|
|
|
|
public const int Low = -2000;
|
|
|
|
public const int Lower = -3000;
|
|
|
|
public const int VeryLow = -4000;
|
|
|
|
public const int Lowest = -5000;
|
|
|
|
}
|