public static ANNThoughtProcess Load(string stream) { DATA_STRUCTS.TPDataStruct data = new DATA_STRUCTS.TPDataStruct(); data = JsonUtility.FromJson<DATA_STRUCTS.TPDataStruct>(stream); ANNThoughtProcess tp = new ANNThoughtProcess(); data.Write(ref tp); return tp; }
public static DATA_STRUCTS.TPDataStruct LoadData(string stream) { DATA_STRUCTS.TPDataStruct data = new DATA_STRUCTS.TPDataStruct(); data = JsonUtility.FromJson<DATA_STRUCTS.TPDataStruct>(stream); return data; }
public static string ToStream(ANNThoughtProcess tp) { DATA_STRUCTS.TPDataStruct data = new DATA_STRUCTS.TPDataStruct(); data.Read(tp); return JsonUtility.ToJson(data); }