38 lines
821 B
C#
38 lines
821 B
C#
using Godot;
|
|
using System;
|
|
using BITKit;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BITFactory;
|
|
|
|
[Serializable]
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
public class IDIS_TemplateForm:IFormField
|
|
{
|
|
[JsonProperty]
|
|
public string Name { get; set; }
|
|
[JsonProperty]
|
|
public string Type { get; set; }
|
|
[JsonProperty]
|
|
public string DefaultValue { get; set; }
|
|
[JsonProperty]
|
|
public string Category { get; set; }
|
|
public int FieldCount => 4;
|
|
public string[] FieldNames => new string[]
|
|
{
|
|
nameof(Name),
|
|
nameof(Type),
|
|
nameof(DefaultValue),
|
|
nameof(Category),
|
|
};
|
|
public string[] FieldTypes => FieldNames;
|
|
public string[] DefaultValues => FieldNames;
|
|
}
|
|
|
|
[GlobalClass]
|
|
public partial class IDIS_TemplateFormResource : FormResource
|
|
{
|
|
public override string Name { get; set; }
|
|
public override IFormField[] Fields { get; set; }
|
|
}
|