com.typhoon.unitysdk 1.0.98 → 1.1.1

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,19 @@
1
1
  # 更新日志
2
- ## [1.0.98] - 2024-10-30
2
+ ## [1.1.1] - 2024-10-30
3
3
 
4
4
  ### 修复
5
+ * 修复iniconfig value 参数问题
6
+
7
+
8
+ ## [1.0.99] - 2024-10-30
9
+
10
+ ### 修复
11
+ * iniconfig 命名bug
12
+
13
+
14
+ ## [1.0.98] - 2024-10-30
15
+
16
+ ### 修复
5
17
  * 去除临时发布,避免unity2019出错
6
18
 
7
19
 
@@ -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();
@@ -26,19 +26,19 @@ namespace TyphoonUnitySDK
26
26
  {
27
27
  var elements = e.Split('=');
28
28
  var key = elements[0];
29
- var value = "";
29
+ var value1 = "";
30
30
  if (elements.Length > 1)
31
31
  {
32
- value = elements[1];
32
+ value1 = elements[1];
33
33
  }
34
34
 
35
- return new { key, value };
35
+ return new { key, value = value1 };
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,22 +58,22 @@ 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
- private string Get(string key)
76
+ private string Get(string inputKey)
77
77
  {
78
78
  CreateFileIfNotExists();
79
79
  var lines = File.ReadAllLines(_filePath).ToList();
@@ -89,7 +89,7 @@ namespace TyphoonUnitySDK
89
89
 
90
90
  return new { key, value };
91
91
  }).ToList();
92
- var last = items.LastOrDefault(e => e.key == key);
92
+ var last = items.LastOrDefault(e => e.key == inputKey);
93
93
  if (last == null)
94
94
  {
95
95
  return "";
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.1.1","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.1.1] - 2024-10-30\r\n\r\n### 修复\n* 修复iniconfig value 参数问题\r\n\r\n","major_flag":false,"write_time_stamp":1730275396000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"3.2.0"}}