export-table-pulgin-csharp 1.1.152 → 1.1.153
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":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"ExportLiteDBUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportLiteDBUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AASxJ,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAiDzE;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,iBAczD;AACD,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,iBAmB5E;AAED,qBAAa,uBAAwB,SAAQ,UAAU;IACtD,IAAI,SAAgB;IACpB,IAAI,EAAE,MAAM,EAAE,CAAkB;IAEhC,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAoB9B,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAqD1C"}
|
|
@@ -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,CA2DnE;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,CA2DnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAqGzE;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;CA4C3C"}
|
|
@@ -113,17 +113,14 @@ namespace ${exportNamespace}
|
|
|
113
113
|
public static async Task Load()
|
|
114
114
|
{
|
|
115
115
|
var loadUrl = LoadUrl;
|
|
116
|
-
var
|
|
117
|
-
if (
|
|
116
|
+
var configLiteral = await ConfigAssetLoader.LoadAssetAsync(loadUrl);
|
|
117
|
+
if (configLiteral != null)
|
|
118
118
|
{
|
|
119
119
|
Debug.Log($"解析配表: {loadUrl}");
|
|
120
|
-
var obj = new TempA()
|
|
121
|
-
{
|
|
122
|
-
a=${RowClass}.Configs,
|
|
123
|
-
};
|
|
124
120
|
try
|
|
125
121
|
{
|
|
126
|
-
JsonUtility.FromJsonOverwrite("{\\"a\\":"+
|
|
122
|
+
// JsonUtility.FromJsonOverwrite("{\\"a\\":"+configLiteral+"}", obj);
|
|
123
|
+
ConfigAssetLoader.LoadConfigs(configLiteral, Configs);
|
|
127
124
|
}
|
|
128
125
|
catch(System.Exception ex)
|
|
129
126
|
{
|
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@ import * as fs from "fs-extra"
|
|
|
4
4
|
import { GetUsingJsonToolNamespace, TryConvValue, convMemberName, firstLetterUpper } from "./CSParseTool";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import * as cp from "child_process"
|
|
7
|
-
import program from "commander"
|
|
8
7
|
import { exportUJson } from "./ExportUnityCSJsonPlugin";
|
|
9
8
|
|
|
10
9
|
var isSkipIndexLoader0 = process.argv.findIndex(v => v == "--SkipIndexLoader") >= 0
|
|
@@ -109,17 +109,14 @@ namespace ${exportNamespace}
|
|
|
109
109
|
public static async Task Load()
|
|
110
110
|
{
|
|
111
111
|
var loadUrl = LoadUrl;
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
112
|
+
var configLiteral = await ConfigAssetLoader.LoadAssetAsync(loadUrl);
|
|
113
|
+
if (configLiteral != null)
|
|
114
114
|
{
|
|
115
115
|
Debug.Log($"解析配表: {loadUrl}");
|
|
116
|
-
var obj = new TempA()
|
|
117
|
-
{
|
|
118
|
-
a=${RowClass}.Configs,
|
|
119
|
-
};
|
|
120
116
|
try
|
|
121
117
|
{
|
|
122
|
-
JsonUtility.FromJsonOverwrite("{\\"a\\":"+
|
|
118
|
+
// JsonUtility.FromJsonOverwrite("{\\"a\\":"+configLiteral+"}", obj);
|
|
119
|
+
ConfigAssetLoader.LoadConfigs(configLiteral, Configs);
|
|
123
120
|
}
|
|
124
121
|
catch(System.Exception ex)
|
|
125
122
|
{
|