Skip to content

Commit b6fd095

Browse files
committed
A few more renames
1 parent 1610c55 commit b6fd095

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

Packages/icosa-api-client-unity/Editor/Importer/IcosaImporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public class ImportRequest
292292
public EditTimeImportOptions options;
293293

294294
/// <summary>
295-
/// The polyAsset that we are importing. This contains the metadata for the imported asset,
295+
/// The icosaAsset that we are importing. This contains the metadata for the imported asset,
296296
/// such as the title and author name.
297297
/// </summary>
298298
public IcosaAsset IcosaAsset;

Packages/icosa-api-client-unity/Editor/PtUtils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class PtUtils
2626
/// <summary>
2727
/// Name of the Poly Toolkit manifest file.
2828
/// </summary>
29-
private const string MANIFEST_FILE_NAME = "poly_toolkit_manifest.dat";
29+
private const string MANIFEST_FILE_NAME = "icosa_toolkit_manifest.dat";
3030

3131
/// <summary>
3232
/// Poly Toolkit base path (normally Assets/PolyToolkit, unless the user moved it).
@@ -118,13 +118,13 @@ public static string GetPtBaseLocalPath()
118118
if (basePath != null) return basePath;
119119
// Get the root path of the project. Something like C:\Foo\Bar\MyUnityProject
120120
string rootPath = Path.GetDirectoryName(Application.dataPath);
121-
// Find the poly_toolkit_manifest.data file. That marks the installation path of Poly Toolkit.
121+
// Find the icosa_toolkit_manifest.data file. That marks the installation path of Poly Toolkit.
122122
string[] matches = Directory.GetFiles(Path.Combine(Application.dataPath, "../Packages"), MANIFEST_FILE_NAME,
123123
SearchOption.AllDirectories);
124124
if (matches == null || matches.Length == 0)
125125
{
126126
throw new System.Exception(
127-
"Could not find base directory for Poly Toolkit (poly_toolkit_manifest.data missing).");
127+
"Could not find base directory for Icosa API Client (icosa_toolkit_manifest.data missing).");
128128
}
129129
else if (matches.Length > 1)
130130
{

Packages/icosa-api-client-unity/Runtime/Internal/api_clients/poly_client/IcosaClient.cs renamed to Packages/icosa-api-client-unity/Runtime/Internal/api_clients/icosa_client/IcosaClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public static IcosaStatus ParseReturnedAssets(string response, out IcosaListAsse
305305
return IcosaStatus.Success();
306306
}
307307

308-
List<IcosaAsset> polyAssets = new List<IcosaAsset>();
308+
List<IcosaAsset> icosaAssets = new List<IcosaAsset>();
309309
foreach (JToken asset in assets)
310310
{
311311
IcosaAsset icosaAsset;
@@ -326,7 +326,7 @@ public static IcosaStatus ParseReturnedAssets(string response, out IcosaListAsse
326326
IcosaStatus parseStatus = ParseAsset(jObjectAsset, out icosaAsset);
327327
if (parseStatus.ok)
328328
{
329-
polyAssets.Add(icosaAsset);
329+
icosaAssets.Add(icosaAsset);
330330
}
331331
else
332332
{
@@ -337,7 +337,7 @@ public static IcosaStatus ParseReturnedAssets(string response, out IcosaListAsse
337337
var totalSize = results["totalSize"] != null ? int.Parse(results["totalSize"].ToString()) : 0;
338338
var nextPageToken = results["nextPageToken"] != null ? results["nextPageToken"].ToString() : null;
339339
icosaListAssetsResult =
340-
new IcosaListAssetsResult(IcosaStatus.Success(), totalSize, polyAssets, nextPageToken);
340+
new IcosaListAssetsResult(IcosaStatus.Success(), totalSize, icosaAssets, nextPageToken);
341341
return IcosaStatus.Success();
342342
}
343343

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Poly Toolkit for Unity
2-
# Manifest file. Do not modify or delete.
3-
# Among other things, this file indicates where Poly Toolkit is installed
4-
# in your folder hierarchy.
1+
# Poly Toolkit for Unity
2+
# Manifest file. Do not modify or delete.
3+
# Among other things, this file indicates where Poly Toolkit is installed
4+
# in your folder hierarchy.

0 commit comments

Comments
 (0)