// Copyright © Gamesmiths Guild.
using Godot;
using Godot.Collections;
namespace Gamesmiths.Forge.Godot.Resources.Statescript;
///
/// Resource representing a single graph variable definition, including name, type, initial value, and whether it is an
/// array variable.
///
[Tool]
public partial class StatescriptGraphVariable : Resource
{
///
/// Gets or sets the name of this variable.
///
[Export]
public string VariableName { get; set; } = string.Empty;
///
/// Gets or sets the type of this variable.
///
[Export]
public StatescriptVariableType VariableType { get; set; } = StatescriptVariableType.Int;
///
/// Gets or sets a value indicating whether this is an array variable.
///
[Export]
public bool IsArray { get; set; }
///
/// Gets or sets the initial value of this variable, stored as a Godot variant.
/// For non-array variables, this is a single value. Ignored when is true.
///
[Export]
public Variant InitialValue { get; set; }
///
/// Gets or sets the initial values for array variables.
/// Each element is stored as a Godot variant. Only used when is true.
///
[Export]
public Array InitialArrayValues { get; set; } = [];
}