A game about forced loneliness, made by TACStudios
1using System; 2using Unity.VisualScripting.Dependencies.Sqlite; 3 4namespace Unity.VisualScripting 5{ 6 public sealed class UnitOptionRow 7 { 8 [AutoIncrement, PrimaryKey] 9 public int id { get; set; } 10 11 public string sourceScriptGuids { get; set; } 12 13 public string optionType { get; set; } 14 public string unitType { get; set; } 15 public string labelHuman { get; set; } 16 public string labelProgrammer { get; set; } 17 public string category { get; set; } 18 public int order { get; set; } 19 public string haystackHuman { get; set; } 20 public string haystackProgrammer { get; set; } 21 public string favoriteKey { get; set; } 22 public string tag1 { get; set; } 23 public string tag2 { get; set; } 24 public string tag3 { get; set; } 25 public string unit { get; set; } 26 27 public int controlInputCount { get; set; } 28 public int controlOutputCount { get; set; } 29 public string valueInputTypes { get; set; } 30 public string valueOutputTypes { get; set; } 31 32 public IUnitOption ToOption() 33 { 34 using (ProfilingUtility.SampleBlock("Row to option")) 35 { 36 var optionType = Codebase.DeserializeType(this.optionType); 37 38 IUnitOption option; 39 40 option = (IUnitOption)Activator.CreateInstance(optionType); 41 42 option.Deserialize(this); 43 44 return option; 45 } 46 } 47 } 48}