mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
18 lines
412 B
C#
18 lines
412 B
C#
using System;
|
|
|
|
namespace GlitchyEngine.Editor;
|
|
|
|
public sealed class RangeAttribute : Attribute
|
|
{
|
|
public double Min { get; set; }
|
|
public double Max { get; set; }
|
|
|
|
public RangeAttribute(double min, double max)
|
|
{
|
|
if (max < min)
|
|
throw new ArgumentOutOfRangeException(nameof(max), $"{nameof(max)} must be larger than {nameof(min)}.");
|
|
|
|
Min = min;
|
|
Max = max;
|
|
}
|
|
} |