示例#1
0
 public static List <TerrainDescriptionQuery> LoadQueriesFromFile(string path)
 {
     return
         (TerrainDescriptionQueryListJson.LoadFrom(
              JsonUtility.FromJson <TerrainDescriptionQueryListJson>(File.ReadAllText(path))));
 }
示例#2
0
 public static List <TerrainDescriptionQuery> LoadFrom(TerrainDescriptionQueryListJson list)
 {
     return(list.AllQueries.Select(c => SerializableTerrainDescriptionQuery.LoadFrom(c)).ToList());
 }
示例#3
0
 public void SaveQueriesToFile(string path)
 {
     Debug.Log("count is " + _allQueries.Count);
     File.WriteAllText(path, JsonUtility.ToJson(TerrainDescriptionQueryListJson.CreateFrom(_allQueries)));
 }