using SHJX.Service.Control.Common.Assets; namespace SHJX.Service.Control.Extends { public static class SpeedSleep { public static int Calculation(string value) { var speed = DataManagerInstance.GetSpeed(value); int sleepValue = speed.Speed switch { <= 1 => 1000, 2 => 500, 3 => 340, 4 => 260, 5 => 200, 6 => 170, 7 => 145, 8 => 130, 9 => 125, > 9 => 120 }; return sleepValue; } } }