Implemented Save and Load functionality

This commit is contained in:
Katharina Ziolkowski
2026-02-03 17:30:35 +01:00
parent b65a3bbd6d
commit ba7d550c3f
7 changed files with 99 additions and 13 deletions
@@ -8,7 +8,7 @@ public static class EntityLoadSaveUtil
{
var token = json[key];
if (token == null) throw new MalformedJsonException(json, key, "does not exist");
if (!token.HasValues) throw new MalformedJsonException(json, key, "has no value");
//if (!token.HasValues) throw new MalformedJsonException(json, key, "has no value");
if (token.Type != type) throw new MalformedJsonException(json, key, $"is not of type {type}");
}