supervisor-simulator/scripts/Data/Import/CsvImportConfig.cs

24 lines
530 B
C#

using Godot;
[GlobalClass]
public partial class CsvImportConfig : Resource
{
[Export(PropertyHint.File, "*.csv")]
public string CsvPath { get; set; } = "";
[Export(PropertyHint.Dir)]
public string OutputDir { get; set; } = "res://resources/data";
[Export]
public Resource ResourceTemplate { get; set; }
[Export]
public string IdColumn { get; set; } = "id";
[Export(PropertyHint.File, "*.tres,*.res")]
public string IndexOutputPath { get; set; } = "";
[Export]
public string ArrayDelimiter { get; set; } = ";";
}