export-table-pulgin-csharp 1.1.173 → 1.1.175
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.
package/dist/CSProtoParser.js
CHANGED
|
@@ -77,7 +77,7 @@ class CSProtoParser {
|
|
|
77
77
|
let classMeta = new ClassInfo();
|
|
78
78
|
let curClass = null;
|
|
79
79
|
let codeLines = content.split("\n");
|
|
80
|
-
let classMapperRegex =
|
|
80
|
+
let classMapperRegex = /\/\/\!Mapper\((\w+)\)/;
|
|
81
81
|
let messageRegex = /message (\w+)/;
|
|
82
82
|
let enumRegex = /enum (\w+)/;
|
|
83
83
|
let structEndRegex = /^\}/;
|
|
@@ -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;AAQxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+DnE;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;AAQxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+DnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAwJzE;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"}
|
|
@@ -181,7 +181,11 @@ namespace ${exportNamespace}
|
|
|
181
181
|
{
|
|
182
182
|
try
|
|
183
183
|
{
|
|
184
|
-
System.IO.File.
|
|
184
|
+
var content0 = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
|
|
185
|
+
if (content0 != configLiteral)
|
|
186
|
+
{
|
|
187
|
+
System.IO.File.WriteAllText(loadUrl, configLiteral, System.Text.Encoding.UTF8);
|
|
188
|
+
}
|
|
185
189
|
}
|
|
186
190
|
catch (System.Exception exception)
|
|
187
191
|
{
|
package/package.json
CHANGED
package/src/CSProtoParser.ts
CHANGED
|
@@ -57,7 +57,7 @@ export class CSProtoParser {
|
|
|
57
57
|
let classMeta = new ClassInfo()
|
|
58
58
|
let curClass: ClassInfo | null = null
|
|
59
59
|
let codeLines = content.split("\n")
|
|
60
|
-
let classMapperRegex =
|
|
60
|
+
let classMapperRegex = /\/\/\!Mapper\((\w+)\)/
|
|
61
61
|
let messageRegex = /message (\w+)/
|
|
62
62
|
let enumRegex = /enum (\w+)/
|
|
63
63
|
let structEndRegex = /^\}/
|
|
@@ -205,7 +205,11 @@ namespace ${exportNamespace}
|
|
|
205
205
|
{
|
|
206
206
|
try
|
|
207
207
|
{
|
|
208
|
-
System.IO.File.
|
|
208
|
+
var content0 = System.IO.File.ReadAllText(loadUrl, System.Text.Encoding.UTF8);
|
|
209
|
+
if (content0 != configLiteral)
|
|
210
|
+
{
|
|
211
|
+
System.IO.File.WriteAllText(loadUrl, configLiteral, System.Text.Encoding.UTF8);
|
|
212
|
+
}
|
|
209
213
|
}
|
|
210
214
|
catch (System.Exception exception)
|
|
211
215
|
{
|