Factories for templates and objects, Sztl parsing

This commit is contained in:
2025-11-30 21:16:33 -06:00
parent a892d982da
commit 069adb5ff5
10 changed files with 421 additions and 15 deletions

View File

@@ -1,14 +1,24 @@
using System.Collections.Generic;
using SessionZero.Data.Sztl;
using Tomlyn.Model;
namespace SessionZero.Data;
public class SzTemplate
{
public string TemplateType { get; set; }
public string Id { get; set; }
public string Name { get; set; }
public string DataType { get; set; }
public string Uuid { get; set; }
public string Version { get; set; }
public List<string> CompatibleSystems { get; set; }
public string Description { get; set; }
public Dictionary<string, SztlField> Fields { get; set; } = new();
public Dictionary<string, SztlFieldGroup> SubGroups { get; set; } = new();
public virtual void ParseAdditionalMetaData(TomlTable table)
{
}
}