export-table-pulgin-csharp 1.1.144 → 1.1.146
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;
|
|
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;AAQxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA8GzE;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"}
|
|
@@ -28,6 +28,7 @@ const export_table_lib_1 = require("export-table-lib");
|
|
|
28
28
|
const fs = __importStar(require("fs-extra"));
|
|
29
29
|
const CSParseTool_1 = require("./CSParseTool");
|
|
30
30
|
var isSkipIndexLoader0 = process.argv.findIndex(v => v == "--SkipIndexLoader") >= 0;
|
|
31
|
+
var isEnableMMPB = process.argv.findIndex(v => v == "--EnableMMPB") >= 0;
|
|
31
32
|
let firstLetterUpper = export_table_lib_1.makeFirstLetterUpper;
|
|
32
33
|
function exportUJson(paras) {
|
|
33
34
|
let { datas, fields, name, objects, table, } = paras;
|
|
@@ -126,6 +127,7 @@ function exportUJsonLoader(paras) {
|
|
|
126
127
|
}
|
|
127
128
|
let RowClass = firstLetterUpper(name);
|
|
128
129
|
var fullName = `${table.workbookName}-${name}`;
|
|
130
|
+
var mmpMark = isEnableMMPB ? "[MemoryPack.MemoryPackable]" : "";
|
|
129
131
|
// !!!必须开头没有空格
|
|
130
132
|
let temp = `
|
|
131
133
|
using System.Collections.Generic;
|
|
@@ -135,6 +137,7 @@ using ${jsonToolNamespace};
|
|
|
135
137
|
|
|
136
138
|
namespace ${exportNamespace}
|
|
137
139
|
{
|
|
140
|
+
${mmpMark}
|
|
138
141
|
public partial class ${RowClass}
|
|
139
142
|
{
|
|
140
143
|
#if UNITY_EDITOR && ENABLE_CONFIG_LOG
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import * as fs from "fs-extra"
|
|
|
4
4
|
import { TryConvValue, convMemberName } from "./CSParseTool";
|
|
5
5
|
|
|
6
6
|
var isSkipIndexLoader0 = process.argv.findIndex(v => v == "--SkipIndexLoader") >= 0
|
|
7
|
+
var isEnableMMPB = process.argv.findIndex(v => v == "--EnableMMPB") >= 0
|
|
7
8
|
|
|
8
9
|
let firstLetterUpper = makeFirstLetterUpper;
|
|
9
10
|
export function exportUJson(paras: HandleSheetParams): string | null {
|
|
@@ -121,6 +122,7 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
|
|
|
121
122
|
|
|
122
123
|
let RowClass = firstLetterUpper(name)
|
|
123
124
|
var fullName = `${table.workbookName}-${name}`
|
|
125
|
+
var mmpMark = isEnableMMPB ? "[MemoryPack.MemoryPackable]" : "";
|
|
124
126
|
// !!!必须开头没有空格
|
|
125
127
|
let temp = `
|
|
126
128
|
using System.Collections.Generic;
|
|
@@ -130,6 +132,7 @@ using ${jsonToolNamespace};
|
|
|
130
132
|
|
|
131
133
|
namespace ${exportNamespace}
|
|
132
134
|
{
|
|
135
|
+
${mmpMark}
|
|
133
136
|
public partial class ${RowClass}
|
|
134
137
|
{
|
|
135
138
|
#if UNITY_EDITOR && ENABLE_CONFIG_LOG
|