mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-06-30 16:23:41 -04:00
Reorganize all observatory core projects into monorepo (#25)
* chore: move all observatory repos to core * only save journal folder on change, don't constantly re-check during monitoring * chore: monorepo project changes * chore: monorepo migration
This commit is contained in:
60
ObservatoryFramework/Attributes.cs
Normal file
60
ObservatoryFramework/Attributes.cs
Normal file
@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Observatory.Framework
|
||||
{
|
||||
public class SettingDisplayName : Attribute
|
||||
{
|
||||
private string name;
|
||||
|
||||
public SettingDisplayName(string name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get => name;
|
||||
set => name = value;
|
||||
}
|
||||
}
|
||||
|
||||
public class SettingIgnore : Attribute
|
||||
{ }
|
||||
|
||||
public class SettingNumericUseSlider : Attribute
|
||||
{ }
|
||||
|
||||
public class SettingNumericBounds : Attribute
|
||||
{
|
||||
private double minimum;
|
||||
private double maximum;
|
||||
private double increment;
|
||||
|
||||
public SettingNumericBounds(double minimum, double maximum, double increment = 1.0)
|
||||
{
|
||||
this.minimum = minimum;
|
||||
this.maximum = maximum;
|
||||
this.increment = increment;
|
||||
}
|
||||
|
||||
public double Minimum
|
||||
{
|
||||
get => minimum;
|
||||
set => minimum = value;
|
||||
}
|
||||
public double Maximum
|
||||
{
|
||||
get => maximum;
|
||||
set => maximum = value;
|
||||
}
|
||||
public double Increment
|
||||
{
|
||||
get => increment;
|
||||
set => increment = value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user