export-table-pulgin-csharp 1.1.83 → 1.1.84

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;AAMxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+CnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAiFzE;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;AAMxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+CnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuFzE;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"}
@@ -68,6 +68,11 @@ function exportUJson(paras) {
68
68
  exports.exportUJson = exportUJson;
69
69
  function exportUJsonLoader(paras) {
70
70
  let { datas, fields, name, objects, table, exportNamespace, } = paras;
71
+ let jsonToolNamespaceIndex = process.argv.findIndex(v => v == "--JsonToolNamespace");
72
+ let jsonToolNamespace = "lang.json";
73
+ if (jsonToolNamespaceIndex >= 0 && process.argv.length > jsonToolNamespaceIndex + 1) {
74
+ jsonToolNamespace = process.argv[jsonToolNamespaceIndex + 1];
75
+ }
71
76
  let RowClass = firstLetterUpper(name);
72
77
  var fullName = `${table.workbookName}-${name}`;
73
78
  // !!!必须开头没有空格
@@ -75,7 +80,7 @@ function exportUJsonLoader(paras) {
75
80
  using UnityEngine.AddressableAssets;
76
81
  using System.Threading.Tasks;
77
82
  using UnityEngine;
78
- using lang.json;
83
+ using ${jsonToolNamespace};
79
84
 
80
85
  namespace ${exportNamespace}
81
86
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.83",
3
+ "version": "1.1.84",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -64,6 +64,12 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
64
64
  exportNamespace,
65
65
  } = paras;
66
66
 
67
+ let jsonToolNamespaceIndex = process.argv.findIndex(v => v == "--JsonToolNamespace")
68
+ let jsonToolNamespace = "lang.json";
69
+ if(jsonToolNamespaceIndex>=0 && process.argv.length>jsonToolNamespaceIndex+1){
70
+ jsonToolNamespace = process.argv[jsonToolNamespaceIndex+1]
71
+ }
72
+
67
73
  let RowClass = firstLetterUpper(name)
68
74
  var fullName = `${table.workbookName}-${name}`
69
75
  // !!!必须开头没有空格
@@ -71,7 +77,7 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
71
77
  using UnityEngine.AddressableAssets;
72
78
  using System.Threading.Tasks;
73
79
  using UnityEngine;
74
- using lang.json;
80
+ using ${jsonToolNamespace};
75
81
 
76
82
  namespace ${exportNamespace}
77
83
  {