17 lines
482 B
C#
17 lines
482 B
C#
using Vintagestory.API.Common;
|
|
|
|
namespace OrekiWoofsBees.Common.Configs;
|
|
|
|
public static class ParserExtensions
|
|
{
|
|
public static FloatArgParser OptionalFloatRange(string argName, float min, float max)
|
|
{
|
|
return new FloatArgParser(argName, min, max, isMandatoryArg: false);
|
|
}
|
|
|
|
public static DoubleArgParser OptionalDoubleRange(string argName, double min, double max)
|
|
{
|
|
return new DoubleArgParser(argName, min, max, isMandatoryArg: false);
|
|
}
|
|
}
|