示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 public static string ToStream(ANNThoughtProcess tp)
 {
     DATA_STRUCTS.TPDataStruct data = new DATA_STRUCTS.TPDataStruct();
     data.Read(tp);
     return JsonUtility.ToJson(data);
 }