Files
netch/Netch/Models/Range.cs
ChsBuffer 99752d7a44 Refactor Check settings change
Refactor Check Detection Tick value
Fix sometimes Detection Tick not update
2021-01-18 01:01:07 +08:00

20 lines
355 B
C#

namespace Netch.Models
{
public readonly struct Range
{
public int Start { get; }
public int End { get; }
public Range(int start, int end)
{
Start = start;
End = end;
}
public bool InRange(int num)
{
return Start <= num && num <= End;
}
}
}