mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Refactor Check settings change
Refactor Check Detection Tick value Fix sometimes Detection Tick not update
This commit is contained in:
20
Netch/Models/Range.cs
Normal file
20
Netch/Models/Range.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user