export-table-pulgin-csharp 1.1.117 → 1.1.119

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsFnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAiGzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
1
+ {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsFnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuGzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
@@ -133,6 +133,11 @@ namespace ${exportNamespace}
133
133
  Debug.Log("ReferConfig-${RowClass}");
134
134
  }
135
135
  #endif
136
+ [Serializable]
137
+ internal class TempA
138
+ {
139
+ public FAnnouncementTable[] a;
140
+ }
136
141
  public static async Task Load()
137
142
  {
138
143
  var loadUrl="Assets/Bundles/GameConfigs/Auto/${fullName}.json";
@@ -149,7 +154,8 @@ namespace ${exportNamespace}
149
154
  ${RowClass}[] jsonObjs;
150
155
  try
151
156
  {
152
- jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
157
+ jsonObjs = JsonUtility.FromJson<TempA>("{\\"a\\":"+configJson.text+"}").a;
158
+ //jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
153
159
  }
154
160
  catch(System.Exception ex)
155
161
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.117",
3
+ "version": "1.1.119",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {},
@@ -129,6 +129,11 @@ namespace ${exportNamespace}
129
129
  Debug.Log("ReferConfig-${RowClass}");
130
130
  }
131
131
  #endif
132
+ [Serializable]
133
+ internal class TempA
134
+ {
135
+ public FAnnouncementTable[] a;
136
+ }
132
137
  public static async Task Load()
133
138
  {
134
139
  var loadUrl="Assets/Bundles/GameConfigs/Auto/${fullName}.json";
@@ -145,7 +150,8 @@ namespace ${exportNamespace}
145
150
  ${RowClass}[] jsonObjs;
146
151
  try
147
152
  {
148
- jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
153
+ jsonObjs = JsonUtility.FromJson<TempA>("{\\"a\\":"+configJson.text+"}").a;
154
+ //jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
149
155
  }
150
156
  catch(System.Exception ex)
151
157
  {