diff options
Diffstat (limited to 'UVtools.Core/Scripting/ScriptBaseInput.cs')
-rw-r--r-- | UVtools.Core/Scripting/ScriptBaseInput.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/UVtools.Core/Scripting/ScriptBaseInput.cs b/UVtools.Core/Scripting/ScriptBaseInput.cs new file mode 100644 index 0000000..b7f78ff --- /dev/null +++ b/UVtools.Core/Scripting/ScriptBaseInput.cs @@ -0,0 +1,36 @@ +/* + * GNU AFFERO GENERAL PUBLIC LICENSE + * Version 3, 19 November 2007 + * Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. + */ + +namespace UVtools.Core.Scripting +{ + public abstract class ScriptBaseInput + { + /// <summary> + /// Gets the input label + /// </summary> + public string Label { get; init; } + + /// <summary> + /// Gets the hover tooltip for this input + /// </summary> + public string ToolTip { get; init; } + + /// <summary> + /// Gets the value representative unit name + /// </summary> + public string Unit { get; init; } + } + + public abstract class ScriptBaseInput<T> : ScriptBaseInput + { + /// <summary> + /// Gets or sets the value for this input + /// </summary> + public T Value { get; set; } + } +} |