export-table-pulgin-csharp 1.1.141 → 1.1.142
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,CA+FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,
|
|
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,CA+FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAyGzE;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"}
|
|
@@ -128,6 +128,7 @@ function exportUJsonLoader(paras) {
|
|
|
128
128
|
var fullName = `${table.workbookName}-${name}`;
|
|
129
129
|
// !!!必须开头没有空格
|
|
130
130
|
let temp = `
|
|
131
|
+
using System.Collections.Generic;
|
|
131
132
|
using System.Threading.Tasks;
|
|
132
133
|
using UnityEngine;
|
|
133
134
|
using ${jsonToolNamespace};
|
|
@@ -145,7 +146,7 @@ namespace ${exportNamespace}
|
|
|
145
146
|
[System.Serializable]
|
|
146
147
|
internal struct TempA
|
|
147
148
|
{
|
|
148
|
-
public
|
|
149
|
+
public List<${RowClass}> a;
|
|
149
150
|
}
|
|
150
151
|
public static async Task Load()
|
|
151
152
|
{
|
|
@@ -160,7 +161,7 @@ namespace ${exportNamespace}
|
|
|
160
161
|
};
|
|
161
162
|
try
|
|
162
163
|
{
|
|
163
|
-
JsonUtility.FromJsonOverwrite("{
|
|
164
|
+
JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
|
|
164
165
|
}
|
|
165
166
|
catch(System.Exception ex)
|
|
166
167
|
{
|
|
@@ -193,7 +194,7 @@ namespace ${exportNamespace}
|
|
|
193
194
|
};
|
|
194
195
|
try
|
|
195
196
|
{
|
|
196
|
-
JsonUtility.FromJsonOverwrite("{
|
|
197
|
+
JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
|
|
197
198
|
}
|
|
198
199
|
catch(System.Exception ex)
|
|
199
200
|
{
|
package/package.json
CHANGED
|
@@ -123,6 +123,7 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
|
|
|
123
123
|
var fullName = `${table.workbookName}-${name}`
|
|
124
124
|
// !!!必须开头没有空格
|
|
125
125
|
let temp = `
|
|
126
|
+
using System.Collections.Generic;
|
|
126
127
|
using System.Threading.Tasks;
|
|
127
128
|
using UnityEngine;
|
|
128
129
|
using ${jsonToolNamespace};
|
|
@@ -140,7 +141,7 @@ namespace ${exportNamespace}
|
|
|
140
141
|
[System.Serializable]
|
|
141
142
|
internal struct TempA
|
|
142
143
|
{
|
|
143
|
-
public
|
|
144
|
+
public List<${RowClass}> a;
|
|
144
145
|
}
|
|
145
146
|
public static async Task Load()
|
|
146
147
|
{
|
|
@@ -155,7 +156,7 @@ namespace ${exportNamespace}
|
|
|
155
156
|
};
|
|
156
157
|
try
|
|
157
158
|
{
|
|
158
|
-
JsonUtility.FromJsonOverwrite("{
|
|
159
|
+
JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
|
|
159
160
|
}
|
|
160
161
|
catch(System.Exception ex)
|
|
161
162
|
{
|
|
@@ -188,7 +189,7 @@ namespace ${exportNamespace}
|
|
|
188
189
|
};
|
|
189
190
|
try
|
|
190
191
|
{
|
|
191
|
-
JsonUtility.FromJsonOverwrite("{
|
|
192
|
+
JsonUtility.FromJsonOverwrite("{\\"a\\":"+configJson+"}", obj);
|
|
192
193
|
}
|
|
193
194
|
catch(System.Exception ex)
|
|
194
195
|
{
|