using Godot;
using JetBrains.Annotations;
using OpenScadGraphEditor.Nodes;
namespace OpenScadGraphEditor.Library.IO
{
///
/// Saved variant of
///
public class SavedVariableDescription : Resource
{
///
/// Id of the variable.
///
[Export]
public string Id { get; set; } = "";
///
/// The name of the variable.
///
[Export]
public string Name { get; set; } = "";
///
/// Description of the variable.
///
[Export]
public string Description { get; set; } = "";
///
/// Type hint for the variable.
///
[Export]
public PortType TypeHint { get; set; } = PortType.Any;
///
/// The default value of the variable, or null if it is not set.
///
[Export]
[CanBeNull]
public string DefaultValue { get; set; }
///
/// Should the variable be shown in the customizer?
///
[Export]
public bool ShowInCustomizer { get; set; } = true;
///
/// Customizer setup for this variable.
///
[Export]
[CanBeNull]
public SavedVariableCustomizerDescription CustomizerDescription { get; set; }
}
}