com.typhoon.unitysdk 1.0.98 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # 更新日志
2
- ## [1.0.98] - 2024-10-30
2
+ ## [1.0.99] - 2024-10-30
3
3
 
4
4
  ### 修复
5
+ * iniconfig 命名bug
6
+
7
+
8
+ ## [1.0.98] - 2024-10-30
9
+
10
+ ### 修复
5
11
  * 去除临时发布,避免unity2019出错
6
12
 
7
13
 
@@ -18,7 +18,7 @@ namespace TyphoonUnitySDK
18
18
  _filePath = filePath;
19
19
  }
20
20
 
21
- private void Set<T>(string key, T value, Func<T, string> func)
21
+ private void Set<T>(string inputKey, T value, Func<T, string> func)
22
22
  {
23
23
  CreateFileIfNotExists();
24
24
  var lines = File.ReadAllLines(_filePath).ToList();
@@ -34,11 +34,11 @@ namespace TyphoonUnitySDK
34
34
 
35
35
  return new { key, value };
36
36
  }).ToList();
37
- var match = items.LastOrDefault(e => e.key == key);
37
+ var match = items.LastOrDefault(e => e.key == inputKey);
38
38
  if (match == null)
39
39
  {
40
40
  //新增条目
41
- items.Add(new { key = key, value = func(value) });
41
+ items.Add(new { key = inputKey, value = func(value) });
42
42
  }
43
43
  else
44
44
  {
@@ -58,19 +58,19 @@ namespace TyphoonUnitySDK
58
58
  File.WriteAllText(_filePath, sb.ToString());
59
59
  }
60
60
 
61
- public void Set(string key, int value)
61
+ public void Set(string inputKey, int value)
62
62
  {
63
- Set(key, value, e => e.ToString());
63
+ Set(inputKey, value, e => e.ToString());
64
64
  }
65
65
 
66
- public void Set(string key, float value)
66
+ public void Set(string inputKey, float value)
67
67
  {
68
- Set(key, value, e => e.ToString());
68
+ Set(inputKey, value, e => e.ToString());
69
69
  }
70
70
 
71
- public void Set(string key, string value)
71
+ public void Set(string inputKey, string value)
72
72
  {
73
- Set(key, value, e => e.ToString());
73
+ Set(inputKey, value, e => e.ToString());
74
74
  }
75
75
 
76
76
  private string Get(string key)
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.98","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"3.2.0"}],"version_log":"## [1.0.98] - 2024-10-30\r\n\r\n### 修复\n* 去除临时发布,避免unity2019出错\r\n\r\n","major_flag":false,"write_time_stamp":1730274610000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"3.2.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.99","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"3.2.0"}],"version_log":"## [1.0.99] - 2024-10-30\r\n\r\n### 修复\n* iniconfig 命名bug\r\n\r\n","major_flag":false,"write_time_stamp":1730275028000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"3.2.0"}}