Refactor Check settings change

Refactor Check Detection Tick value
Fix sometimes Detection Tick not update
This commit is contained in:
ChsBuffer
2021-01-18 00:59:51 +08:00
parent 004b84ceda
commit 99752d7a44
6 changed files with 38 additions and 32 deletions

20
Netch/Models/Range.cs Normal file
View File

@@ -0,0 +1,20 @@
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;
}
}
}