Example #1
0
        protected virtual void ConsoleTune(ConsoleCommandResult result, int clientId, ref object data)
        {
            var name  = (string)result[0];
            var param = Tuning.Contains(name) ? Tuning[name] : null;

            if (param == null)
            {
                Console.Print(OutputLevel.Standard, "tuning", "No such tuning parameter");
                return;
            }

            if (result.ArgumentsCount == 2)
            {
                param.FloatValue = (int)result[1];
                SendTuningParams(-1);
            }

            Console.Print(OutputLevel.Standard, "tuning", $"{name} = {param.FloatValue}");
        }