adding saving to Datapacks and datasets
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user