XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEEDToolBox

【WinUI】XFE精英危险工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFEEDToolBox.Core.Navigation;

/// <summary>The ordinary speed ratio is not an overcharge speed limit.</summary>
public static class OriginalSpeedFractionObservation
{
    public static bool IsValid(double value, bool verifiedSupercruise, bool verifiedScoInterface, int scoState)
        => double.IsFinite(value) && (Math.Abs(value) <= 16
            || value > 0 && verifiedSupercruise && verifiedScoInterface && scoState is >= 0 and <= 3);
}