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