Beispiel #1
0
        public void StoreFile(FileSaveButton button)
        {
            StorageNodeGrahp container = new StorageNodeGrahp();

            container.Fill();
            button.dataString = JsonUtility.ToJson(container, false);
        }
Beispiel #2
0
        public void LoadFile(string url, string content)
        {
            Clear();
            StorageNodeGrahp container = JsonUtility.FromJson <StorageNodeGrahp>(content);

            StartCoroutine(container.Restore(this));
        }
Beispiel #3
0
        public void ShareFile()
        {
            StorageNodeGrahp container = new StorageNodeGrahp();

            container.Fill();

            StartCoroutine(shareFileModal.Show(FileUtils.CompressGZipBase64(JsonUtility.ToJson(container, false))));
        }
Beispiel #4
0
        public void DbgSave()
        {
#if false
            StorageNodeGrahp container = new StorageNodeGrahp();
            container.Fill();
            string str = JsonUtility.ToJson(container, true);
            print(str);
            System.IO.File.WriteAllText(@"D:\Data\tmp\circuit.rrsc.json", str);
            FileUtils.StoreGZipFile(@"D:\Data\tmp\circuit.rrsc.gz", str);
            FileUtils.StoreDeflateFile(@"D:\Data\tmp\circuit.rrsc.deflate", str);
#endif
        }