Skip to content
Snippets Groups Projects
Select Git revision
  • becc7da1f21306af11bc720fa35b960af4b8a55a
  • main default
  • master
  • tempAndrToMaster
4 results

Scroll.cs

Blame
  • Scroll.cs 702 B
    using System.Collections;
    using System.Collections.Generic;
    using System;
    using UnityEngine;
    
    [Serializable]
    public class Declaration
    {
        public string name;
        public string isProof;
        public string value;
        public string identifier;
        public string description;
    }
    
    
    [Serializable]
    public class Scroll
    {
        public string problemTheory;
        public string solutionTheory;
        public string label;
        public string description;
        public Declaration[] declarations;
        //public string output;
    
        public static Scroll generateFromJson(string json) {
           return JsonUtility.FromJson<Scroll>(json);
        }
    
        public string toJson() {
            return JsonUtility.ToJson(this);
        } 
    }