From 660833beaeca3760fc44d1a2089c419854e759cd Mon Sep 17 00:00:00 2001
From: baletiballo <75846481+baletiballo@users.noreply.github.com>
Date: Thu, 23 Jan 2025 17:15:21 +0100
Subject: [PATCH] Made scrolls JSON serializable

WHY do they implement a JSONsavable Interface, only to throw 'NotImplementedException' on mandatory members they would otherwise not need?
---
 Assets/Scripts/MMTServer/CommunicationProtocoll/Endpoints.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/MMTServer/CommunicationProtocoll/Endpoints.cs b/Assets/Scripts/MMTServer/CommunicationProtocoll/Endpoints.cs
index c38425fc..f9367385 100644
--- a/Assets/Scripts/MMTServer/CommunicationProtocoll/Endpoints.cs
+++ b/Assets/Scripts/MMTServer/CommunicationProtocoll/Endpoints.cs
@@ -305,8 +305,8 @@ public class Scroll: IJSONsavable<Scroll>
         public List<MMTFact> acquiredFacts;
 
 #region IJSONsavable<Scroll>
-        public string name { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
-        public string path { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
+        public string name { get => ScrollReference; set => throw new System.NotImplementedException(); }
+        public string path { get => null; set => throw new System.NotImplementedException(); }
 
         Scroll IJSONsavable<Scroll>._IJPostProcess(Scroll payload)
         {
-- 
GitLab