adding saving to Datapacks and datasets

This commit is contained in:
2025-11-30 22:26:14 -06:00
parent 5efc807590
commit b40878a489
6 changed files with 153 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace SessionZero.Data;
@@ -10,4 +12,10 @@ public class DatapackMetadata
public required string Version { get; set; }
public required string[] CompatibleSystems { get; set; }
public string Uuid { get; set; } = string.Empty;
public override string ToString()
{
return JsonSerializer.Serialize(this, new JsonSerializerOptions { WriteIndented = true });
}
}