Pull up data field in metadata.

This commit is contained in:
2022-11-17 23:31:44 +08:00
parent 5cdf10874e
commit 678e145271
4 changed files with 11 additions and 10 deletions

View File

@@ -18,14 +18,11 @@ namespace Cryville.Crtr {
[JsonRequired]
public string @base;
[JsonRequired]
public string pdt;
[JsonIgnore]
public PdtRuleset Root { get; private set; }
public void LoadPdt(DirectoryInfo dir) {
using (StreamReader pdtreader = new StreamReader(dir.FullName + "/" + pdt + ".pdt", Encoding.UTF8)) {
using (StreamReader pdtreader = new StreamReader(dir.FullName + "/" + data + ".pdt", Encoding.UTF8)) {
var src = pdtreader.ReadToEnd();
Root = new RulesetInterpreter(src, null).Interpret();
}