export-table-pulgin-csharp 1.0.35 → 1.0.36

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.
Files changed (34) hide show
  1. package/dist/ExportUnityCSJsonPlugin.d.ts.map +1 -1
  2. package/dist/ExportUnityCSJsonPlugin.js +7 -6
  3. package/package.json +1 -1
  4. package/src/ExportUnityCSJsonPlugin.ts +7 -5
  5. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/345/210/227/350/241/250.asset +0 -0
  6. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-/344/273/273/345/212/241/345/210/227/350/241/250.cs +1 -1
  7. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/345/210/227/350/241/250Loader.cs +2 -3
  8. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/345/245/226/345/212/261.asset +0 -0
  9. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-/344/273/273/345/212/241/345/245/226/345/212/261.cs +1 -1
  10. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/345/245/226/345/212/261Loader.cs +2 -3
  11. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/346/227/266/351/231/220.asset +0 -0
  12. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-/344/273/273/345/212/241/346/227/266/351/231/220.cs +1 -1
  13. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/346/227/266/351/231/220Loader.cs +2 -3
  14. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/350/247/246/345/217/221/347/272/246/346/235/237/351/205/215/350/241/250.asset +0 -0
  15. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-/344/273/273/345/212/241/350/247/246/345/217/221/347/272/246/346/235/237/351/205/215/350/241/250.cs +1 -1
  16. package/test/dist/{ → EGBL/344/273/273/345/212/241/351/205/215/347/275/256-}/344/273/273/345/212/241/350/247/246/345/217/221/347/272/246/346/235/237/351/205/215/350/241/250Loader.cs +2 -3
  17. package/test/dist/{SceneConfig.asset → SceneConfig-SceneConfig.asset} +0 -0
  18. package/test/dist/{SceneConfigLoader.cs → SceneConfig-SceneConfigLoader.cs} +2 -3
  19. package/test/dist/{Sheet2.asset → SceneConfig-Sheet2.asset} +0 -0
  20. package/test/dist/SceneConfig-Sheet2.cs +1 -1
  21. package/test/dist/{Sheet2Loader.cs → SceneConfig-Sheet2Loader.cs} +2 -3
  22. package/test/dist/SceneConfig.cs +1 -1
  23. package/test/dist//345/257/271/350/257/235/350/241/{250.asset → 250-/345/257/271/350/257/235/350/241/250.asset} +0 -0
  24. package/test/dist//345/257/271/350/257/235/350/241/250-/345/257/271/350/257/235/350/241/250.cs +1 -1
  25. package/test/dist//345/257/271/350/257/235/350/241/{250Loader.cs → 250-/345/257/271/350/257/235/350/241/250Loader.cs} +2 -3
  26. package/test/dist//350/277/207/345/234/272/345/274/225/345/257/{274.asset → 274-/350/277/207/345/234/272/345/274/225/345/257/274.asset} +0 -0
  27. package/test/dist//350/277/207/345/234/272/345/274/225/345/257/274-/350/277/207/345/234/272/345/274/225/345/257/274.cs +364 -0
  28. package/test/dist//350/277/207/345/234/272/345/274/225/345/257/{274Loader.cs → 274-/350/277/207/345/234/272/345/274/225/345/257/274Loader.cs} +2 -3
  29. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-TaskConfig.cs +0 -135
  30. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-TaskRewards.cs +0 -68
  31. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-TaskTriggerConfig.cs +0 -145
  32. package/test/dist/EGBL/344/273/273/345/212/241/351/205/215/347/275/256-TimeLimit.cs +0 -55
  33. package/test/dist/ExcelConfigJson 1.asset +0 -15
  34. package/test/dist/ExcelConfigJson.asset +0 -15
@@ -1 +1 @@
1
- {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAkC,MAAM,kBAAkB,CAAA;AAGlI,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA6BnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+BzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAiBpC"}
1
+ {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAkC,MAAM,kBAAkB,CAAA;AAGlI,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA6BnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAgCzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAkBpC"}
@@ -50,7 +50,8 @@ MonoBehaviour:
50
50
  }
51
51
  exports.exportUJson = exportUJson;
52
52
  function exportUJsonLoader(paras) {
53
- let { datas, fields, name, objects, } = paras;
53
+ let { datas, fields, name, objects, table, } = paras;
54
+ var fullName = `${table.workbookName}-${name}`;
54
55
  // !!!必须开头没有空格
55
56
  let temp = `
56
57
  using lang.json;
@@ -62,9 +63,8 @@ namespace MEEC.ExportedConfigs
62
63
  {
63
64
  static ${name}()
64
65
  {
65
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/${name}.asset").WaitForCompletion();
66
- var jsonText = configJson.JsonText;
67
- var jsonObjs = JSON.parse<${name}[]>(jsonText);
66
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/${fullName}.asset").WaitForCompletion();
67
+ var jsonObjs = JSON.parse<${name}[]>(configJson.JsonText);
68
68
  var configs = ${name}.Configs;
69
69
  configs.Clear();
70
70
  configs.AddRange(jsonObjs);
@@ -82,17 +82,18 @@ class ExportUJsonPlugin extends export_table_lib_1.PluginBase {
82
82
  this.tags = ["ujson"];
83
83
  }
84
84
  handleSheet(paras) {
85
+ var fullName = `${paras.table.workbookName}-${paras.name}`;
85
86
  {
86
87
  let content1 = exportUJsonLoader(paras);
87
88
  if (content1 != null) {
88
- let savePath = new export_table_lib_1.OutFilePath(paras.outPath, paras.table.name, "Loader.cs").fullPath;
89
+ let savePath = new export_table_lib_1.OutFilePath(paras.outPath, fullName, "Loader.cs").fullPath;
89
90
  fs.outputFileSync(savePath, content1, "utf-8");
90
91
  }
91
92
  }
92
93
  {
93
94
  let content2 = exportUJson(paras);
94
95
  if (content2 != null) {
95
- let savePath = new export_table_lib_1.OutFilePath(paras.outPath, paras.table.name, ".asset").fullPath;
96
+ let savePath = new export_table_lib_1.OutFilePath(paras.outPath, fullName, ".asset").fullPath;
96
97
  fs.outputFileSync(savePath, content2, "utf-8");
97
98
  }
98
99
  return content2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -39,8 +39,10 @@ export function exportUJsonLoader(paras: HandleSheetParams): string | null {
39
39
  fields,
40
40
  name,
41
41
  objects,
42
+ table,
42
43
  } = paras;
43
44
 
45
+ var fullName = `${table.workbookName}-${name}`
44
46
  // !!!必须开头没有空格
45
47
  let temp = `
46
48
  using lang.json;
@@ -52,9 +54,8 @@ namespace MEEC.ExportedConfigs
52
54
  {
53
55
  static ${name}()
54
56
  {
55
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/${name}.asset").WaitForCompletion();
56
- var jsonText = configJson.JsonText;
57
- var jsonObjs = JSON.parse<${name}[]>(jsonText);
57
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/${fullName}.asset").WaitForCompletion();
58
+ var jsonObjs = JSON.parse<${name}[]>(configJson.JsonText);
58
59
  var configs = ${name}.Configs;
59
60
  configs.Clear();
60
61
  configs.AddRange(jsonObjs);
@@ -71,17 +72,18 @@ export class ExportUJsonPlugin extends PluginBase {
71
72
  tags: string[] = ["ujson"]
72
73
 
73
74
  handleSheet(paras: HandleSheetParams) {
75
+ var fullName = `${paras.table.workbookName}-${paras.name}`
74
76
  {
75
77
  let content1 = exportUJsonLoader(paras)
76
78
  if (content1 != null) {
77
- let savePath = new OutFilePath(paras.outPath, paras.table.name, "Loader.cs").fullPath
79
+ let savePath = new OutFilePath(paras.outPath, fullName, "Loader.cs").fullPath
78
80
  fs.outputFileSync(savePath, content1, "utf-8")
79
81
  }
80
82
  }
81
83
  {
82
84
  let content2 = exportUJson(paras)
83
85
  if (content2 != null) {
84
- let savePath = new OutFilePath(paras.outPath, paras.table.name, ".asset").fullPath
86
+ let savePath = new OutFilePath(paras.outPath, fullName, ".asset").fullPath
85
87
  fs.outputFileSync(savePath, content2, "utf-8")
86
88
  }
87
89
  return content2
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class 任务列表 {
6
+ public partial class 任务列表 {
7
7
 
8
8
  public static List<任务列表> Configs = new List<任务列表>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 任务列表()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/任务列表.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<任务列表[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/EGBL任务配置-任务列表.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<任务列表[]>(configJson.JsonText);
14
13
  var configs = 任务列表.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class 任务奖励 {
6
+ public partial class 任务奖励 {
7
7
 
8
8
  public static List<任务奖励> Configs = new List<任务奖励>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 任务奖励()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/任务奖励.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<任务奖励[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/EGBL任务配置-任务奖励.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<任务奖励[]>(configJson.JsonText);
14
13
  var configs = 任务奖励.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class 任务时限 {
6
+ public partial class 任务时限 {
7
7
 
8
8
  public static List<任务时限> Configs = new List<任务时限>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 任务时限()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/任务时限.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<任务时限[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/EGBL任务配置-任务时限.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<任务时限[]>(configJson.JsonText);
14
13
  var configs = 任务时限.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class 任务触发约束配表 {
6
+ public partial class 任务触发约束配表 {
7
7
 
8
8
  public static List<任务触发约束配表> Configs = new List<任务触发约束配表>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 任务触发约束配表()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/任务触发约束配表.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<任务触发约束配表[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/EGBL任务配置-任务触发约束配表.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<任务触发约束配表[]>(configJson.JsonText);
14
13
  var configs = 任务触发约束配表.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static SceneConfig()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/SceneConfig.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<SceneConfig[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/SceneConfig-SceneConfig.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<SceneConfig[]>(configJson.JsonText);
14
13
  var configs = SceneConfig.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class Sheet2 {
6
+ public partial class Sheet2 {
7
7
 
8
8
  public static List<Sheet2> Configs = new List<Sheet2>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static Sheet2()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/Sheet2.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<Sheet2[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/SceneConfig-Sheet2.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<Sheet2[]>(configJson.JsonText);
14
13
  var configs = Sheet2.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class SceneConfig {
6
+ public partial class SceneConfig {
7
7
 
8
8
  public static List<SceneConfig> Configs = new List<SceneConfig>()
9
9
  {
@@ -3,7 +3,7 @@ using System.Collections.Generic;
3
3
  using System.Linq;
4
4
 
5
5
  namespace MEEC.ExportedConfigs{
6
- public class 对话表 {
6
+ public partial class 对话表 {
7
7
 
8
8
  public static List<对话表> Configs = new List<对话表>()
9
9
  {
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 对话表()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/对话表.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<对话表[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/对话表-对话表.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<对话表[]>(configJson.JsonText);
14
13
  var configs = 对话表.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -0,0 +1,364 @@
1
+
2
+ using System.Collections.Generic;
3
+ using System.Linq;
4
+
5
+ namespace MEEC.ExportedConfigs{
6
+ public partial class 过场引导 {
7
+
8
+ public static List<过场引导> Configs = new List<过场引导>()
9
+ {
10
+ new 过场引导(10100, 10100, "魔盒爷爷", "Morning, sir!", "Morning, sir!", "40100001"),
11
+ new 过场引导(10200, 10200, "魔盒爷爷", "Good morning to you, too, kid! So glad you came!", "Good morning to you, too, kid! So glad you came!", "40100003"),
12
+ new 过场引导(10300, 10300, "魔盒爷爷", "I heard you have troubles(麻烦).", "I heard you have troubles(麻烦).", "40100004"),
13
+ new 过场引导(10400, 10400, "魔盒爷爷", "Indeed(的确). And this time the troubles are strange.", "Indeed(的确). And this time the troubles are strange.", "40100006"),
14
+ new 过场引导(10500, 10500, "魔盒爷爷", "How strange?", "How strange?", "40100007"),
15
+ new 过场引导(10600, 10600, "魔盒爷爷", "You remember finding my animals from before? ", "You remember finding my animals from before? ", "40100009"),
16
+ new 过场引导(20100, 20100, "魔盒爷爷", "Now they are too big or too small!", "Now they are too big or too small!", "40100010"),
17
+ new 过场引导(20200, 20200, "魔盒爷爷", "Too big or too small?", "Too big or too small?", "40100012"),
18
+ new 过场引导(20300, 20300, "魔盒爷爷", "Yeah! Take the chickens for an example(比如说)", "Yeah! Take the chickens for an example(比如说)", "40100013"),
19
+ new 过场引导(2040001, 20400, "魔盒爷爷", "I checked the magic book.", "我查阅了魔法书.", "2040001"),
20
+ new 过场引导(2040002, 20400, "魔盒爷爷", "Making magic potions also requires golden feathers.", "制作神奇药水还需要金色的羽毛.", "2040002"),
21
+ new 过场引导(2040003, 20400, "魔盒爷爷", "The farmer may have them.", "农场主那里可能有.", "2040003"),
22
+ new 过场引导(2040004, 20400, "魔盒爷爷", "but his farm has been a little chaotic recently.", "不过他的农场最近因为嗡嗡怪的作乱有点混乱.", "2040004"),
23
+ new 过场引导(2040005, 20400, "魔盒爷爷", "due to the disturbance of buzzing monster.", "不过他的农场最近因为嗡嗡怪的作乱有点混乱.", "2040005"),
24
+ new 过场引导(2040006, 20400, "魔盒爷爷", "Go and have a look first.", "你们先去看看情况吧.", "2040006"),
25
+ new 过场引导(20500, 20500, "魔盒爷爷", "Huge chickens?!", "Huge chickens?!", "40100016"),
26
+ new 过场引导(20600, 20600, "魔盒爷爷", "I have to see this!", "I have to see this!", "40100018"),
27
+ new 过场引导(30100, 30100, "魔盒爷爷", "Yes, please! Find a way to return them to normal!", "Yes, please! Find a way to return them to normal!", "40100019"),
28
+ new 过场引导(30200, 30200, "魔盒爷爷", "As always", "As always", "40100021"),
29
+ new 过场引导(30300, 30300, "魔盒爷爷", "I'm on it, sir.", "I'm on it, sir.", "40100023"),
30
+ new 过场引导(30400, 30400, "魔盒爷爷", "Bless you!", "Bless you!", "40100024"),
31
+ new 过场引导(30500, 30500, "魔盒爷爷", "Bless you!", "Bless you!", "40100025"),
32
+ new 过场引导(30600, 30600, "魔盒爷爷", "Bless you!", "Bless you!", "40100026"),
33
+ new 过场引导(40100, 40100, "魔盒爷爷", "Bless you!", "Bless you!", "40100027"),
34
+ new 过场引导(40200, 40200, "魔盒爷爷", "Bless you!", "Bless you!", "40100028"),
35
+ new 过场引导(40300, 40300, "魔盒爷爷", "Bless you!", "Bless you!", "40100029"),
36
+ new 过场引导(40400, 40400, "魔盒爷爷", "Bless you!", "Bless you!", "40100030"),
37
+ new 过场引导(40500, 40500, "魔盒爷爷", "Bless you!", "Bless you!", "40100031"),
38
+ new 过场引导(40600, 40600, "魔盒爷爷", "Bless you!", "Bless you!", "40100032"),
39
+ new 过场引导(50100, 50100, "魔盒爷爷", "Bless you!", "Bless you!", "40100033"),
40
+ new 过场引导(50200, 50200, "魔盒爷爷", "Bless you!", "Bless you!", "40100034"),
41
+ new 过场引导(50300, 50300, "魔盒爷爷", "Bless you!", "Bless you!", "40100035"),
42
+ new 过场引导(50400, 50400, "魔盒爷爷", "Bless you!", "Bless you!", "40100036"),
43
+ new 过场引导(50500, 50500, "魔盒爷爷", "Bless you!", "Bless you!", "40100037"),
44
+ new 过场引导(50600, 50600, "魔盒爷爷", "Bless you!", "Bless you!", "40100038"),
45
+ new 过场引导(60100, 60100, "魔盒爷爷", "Bless you!", "Bless you!", "40100039"),
46
+ new 过场引导(60200, 60200, "魔盒爷爷", "Bless you!", "Bless you!", "40100040"),
47
+ new 过场引导(60300, 60300, "魔盒爷爷", "Bless you!", "Bless you!", "40100041"),
48
+ new 过场引导(60400, 60400, "魔盒爷爷", "Bless you!", "Bless you!", "40100042"),
49
+ new 过场引导(60500, 60500, "魔盒爷爷", "Bless you!", "Bless you!", "40100043"),
50
+ new 过场引导(60600, 60600, "魔盒爷爷", "Bless you!", "Bless you!", "40100044"),
51
+ new 过场引导(70100, 70100, "魔盒爷爷", "Bless you!", "Bless you!", "40100045"),
52
+ new 过场引导(70200, 70200, "魔盒爷爷", "Bless you!", "Bless you!", "40100046"),
53
+ new 过场引导(70300, 70300, "魔盒爷爷", "Bless you!", "Bless you!", "40100047"),
54
+ new 过场引导(70400, 70400, "魔盒爷爷", "Bless you!", "Bless you!", "40100048"),
55
+ new 过场引导(70500, 70500, "魔盒爷爷", "Bless you!", "Bless you!", "40100049"),
56
+ new 过场引导(70600, 70600, "魔盒爷爷", "Bless you!", "Bless you!", "40100050"),
57
+ new 过场引导(80100, 80100, "魔盒爷爷", "Bless you!", "Bless you!", "40100051"),
58
+ new 过场引导(80200, 80200, "魔盒爷爷", "Bless you!", "Bless you!", "40100052"),
59
+ new 过场引导(80300, 80300, "魔盒爷爷", "Bless you!", "Bless you!", "40100053"),
60
+ new 过场引导(80400, 80400, "魔盒爷爷", "Bless you!", "Bless you!", "40100054"),
61
+ new 过场引导(80500, 80500, "魔盒爷爷", "Bless you!", "Bless you!", "40100055"),
62
+ new 过场引导(80600, 80600, "魔盒爷爷", "Bless you!", "Bless you!", "40100056"),
63
+ new 过场引导(90100, 90100, "魔盒爷爷", "Bless you!", "Bless you!", "40100057"),
64
+ new 过场引导(90200, 90200, "魔盒爷爷", "Bless you!", "Bless you!", "40100058"),
65
+ new 过场引导(90300, 90300, "魔盒爷爷", "Bless you!", "Bless you!", "40100059"),
66
+ new 过场引导(90400, 90400, "魔盒爷爷", "Bless you!", "Bless you!", "40100060"),
67
+ new 过场引导(90500, 90500, "魔盒爷爷", "Bless you!", "Bless you!", "40100061"),
68
+ new 过场引导(90600, 90600, "魔盒爷爷", "Bless you!", "Bless you!", "40100062"),
69
+ new 过场引导(100100, 100100, "魔盒爷爷", "Bless you!", "Bless you!", "40100063"),
70
+ new 过场引导(100200, 100200, "魔盒爷爷", "Bless you!", "Bless you!", "40100064"),
71
+ new 过场引导(100300, 100300, "魔盒爷爷", "Bless you!", "Bless you!", "40100065"),
72
+ new 过场引导(100400, 100400, "魔盒爷爷", "Bless you!", "Bless you!", "40100066"),
73
+ new 过场引导(100500, 100500, "魔盒爷爷", "Bless you!", "Bless you!", "40100067"),
74
+ new 过场引导(100600, 100600, "魔盒爷爷", "Bless you!", "Bless you!", "40100068"),
75
+ new 过场引导(10101, 10101, "魔盒爷爷", "Bless you!", "Bless you!", "40100068"),
76
+ new 过场引导(10102, 10102, "魔盒爷爷", "Bless you!", "Bless you!", "40100069"),
77
+ new 过场引导(10201, 10201, "魔盒爷爷", "Bless you!", "Bless you!", "40100070"),
78
+ new 过场引导(10202, 10202, "魔盒爷爷", "Bless you!", "Bless you!", "40100071"),
79
+ new 过场引导(10301, 10301, "魔盒爷爷", "Bless you!", "Bless you!", "40100072"),
80
+ new 过场引导(10302, 10302, "魔盒爷爷", "Bless you!", "Bless you!", "40100073"),
81
+ new 过场引导(10401, 10401, "魔盒爷爷", "Bless you!", "Bless you!", "40100074"),
82
+ new 过场引导(10402, 10402, "魔盒爷爷", "Bless you!", "Bless you!", "40100075"),
83
+ new 过场引导(10501, 10501, "魔盒爷爷", "Bless you!", "Bless you!", "40100076"),
84
+ new 过场引导(10502, 10502, "魔盒爷爷", "Bless you!", "Bless you!", "40100077"),
85
+ new 过场引导(10601, 10601, "魔盒爷爷", "Bless you!", "Bless you!", "40100078"),
86
+ new 过场引导(10602, 10602, "魔盒爷爷", "Bless you!", "Bless you!", "40100079"),
87
+ new 过场引导(20101, 20101, "魔盒爷爷", "Bless you!", "Bless you!", "40100080"),
88
+ new 过场引导(20102, 20102, "魔盒爷爷", "Bless you!", "Bless you!", "40100081"),
89
+ new 过场引导(20201, 20201, "魔盒爷爷", "Bless you!", "Bless you!", "40100082"),
90
+ new 过场引导(20202, 20202, "魔盒爷爷", "Bless you!", "Bless you!", "40100083"),
91
+ new 过场引导(20301, 20301, "魔盒爷爷", "Bless you!", "Bless you!", "40100084"),
92
+ new 过场引导(20302, 20302, "魔盒爷爷", "Bless you!", "Bless you!", "40100085"),
93
+ new 过场引导(20401, 20401, "魔盒爷爷", "Bless you!", "Bless you!", "40100086"),
94
+ new 过场引导(20402, 20402, "魔盒爷爷", "Bless you!", "Bless you!", "40100087"),
95
+ new 过场引导(20501, 20501, "魔盒爷爷", "Bless you!", "Bless you!", "40100088"),
96
+ new 过场引导(20502, 20502, "魔盒爷爷", "Bless you!", "Bless you!", "40100089"),
97
+ new 过场引导(20601, 20601, "魔盒爷爷", "Bless you!", "Bless you!", "40100090"),
98
+ new 过场引导(20602, 20602, "魔盒爷爷", "Bless you!", "Bless you!", "40100091"),
99
+ new 过场引导(30101, 30101, "魔盒爷爷", "Bless you!", "Bless you!", "40100092"),
100
+ new 过场引导(30102, 30102, "魔盒爷爷", "Bless you!", "Bless you!", "40100093"),
101
+ new 过场引导(30201, 30201, "魔盒爷爷", "Bless you!", "Bless you!", "40100094"),
102
+ new 过场引导(30202, 30202, "魔盒爷爷", "Bless you!", "Bless you!", "40100095"),
103
+ new 过场引导(30301, 30301, "魔盒爷爷", "Bless you!", "Bless you!", "40100096"),
104
+ new 过场引导(30302, 30302, "魔盒爷爷", "Bless you!", "Bless you!", "40100097"),
105
+ new 过场引导(30401, 30401, "魔盒爷爷", "Bless you!", "Bless you!", "40100098"),
106
+ new 过场引导(30402, 30402, "魔盒爷爷", "Bless you!", "Bless you!", "40100099"),
107
+ new 过场引导(30501, 30501, "魔盒爷爷", "Bless you!", "Bless you!", "40100100"),
108
+ new 过场引导(30502, 30502, "魔盒爷爷", "Bless you!", "Bless you!", "40100101"),
109
+ new 过场引导(30601, 30601, "魔盒爷爷", "Bless you!", "Bless you!", "40100102"),
110
+ new 过场引导(30602, 30602, "魔盒爷爷", "Bless you!", "Bless you!", "40100103"),
111
+ new 过场引导(40101, 40101, "魔盒爷爷", "Bless you!", "Bless you!", "40100104"),
112
+ new 过场引导(40102, 40102, "魔盒爷爷", "Bless you!", "Bless you!", "40100105"),
113
+ new 过场引导(40201, 40201, "魔盒爷爷", "Bless you!", "Bless you!", "40100106"),
114
+ new 过场引导(40202, 40202, "魔盒爷爷", "Bless you!", "Bless you!", "40100107"),
115
+ new 过场引导(40301, 40301, "魔盒爷爷", "Bless you!", "Bless you!", "40100108"),
116
+ new 过场引导(40302, 40302, "魔盒爷爷", "Bless you!", "Bless you!", "40100109"),
117
+ new 过场引导(40401, 40401, "魔盒爷爷", "Bless you!", "Bless you!", "40100110"),
118
+ new 过场引导(40402, 40402, "魔盒爷爷", "Bless you!", "Bless you!", "40100111"),
119
+ new 过场引导(40501, 40501, "魔盒爷爷", "Bless you!", "Bless you!", "40100112"),
120
+ new 过场引导(40502, 40502, "魔盒爷爷", "Bless you!", "Bless you!", "40100113"),
121
+ new 过场引导(40601, 40601, "魔盒爷爷", "Bless you!", "Bless you!", "40100114"),
122
+ new 过场引导(40602, 40602, "魔盒爷爷", "Bless you!", "Bless you!", "40100115"),
123
+ new 过场引导(50101, 50101, "魔盒爷爷", "Bless you!", "Bless you!", "40100116"),
124
+ new 过场引导(50102, 50102, "魔盒爷爷", "Bless you!", "Bless you!", "40100117"),
125
+ new 过场引导(50201, 50201, "魔盒爷爷", "Bless you!", "Bless you!", "40100118"),
126
+ new 过场引导(50202, 50202, "魔盒爷爷", "Bless you!", "Bless you!", "40100119"),
127
+ new 过场引导(50301, 50301, "魔盒爷爷", "Bless you!", "Bless you!", "40100120"),
128
+ new 过场引导(50302, 50302, "魔盒爷爷", "Bless you!", "Bless you!", "40100121"),
129
+ new 过场引导(50401, 50401, "魔盒爷爷", "Bless you!", "Bless you!", "40100122"),
130
+ new 过场引导(50402, 50402, "魔盒爷爷", "Bless you!", "Bless you!", "40100123"),
131
+ new 过场引导(50501, 50501, "魔盒爷爷", "Bless you!", "Bless you!", "40100124"),
132
+ new 过场引导(50502, 50502, "魔盒爷爷", "Bless you!", "Bless you!", "40100125"),
133
+ new 过场引导(50601, 50601, "魔盒爷爷", "Bless you!", "Bless you!", "40100126"),
134
+ new 过场引导(50602, 50602, "魔盒爷爷", "Bless you!", "Bless you!", "40100127"),
135
+ new 过场引导(60101, 60101, "魔盒爷爷", "Bless you!", "Bless you!", "40100128"),
136
+ new 过场引导(60102, 60102, "魔盒爷爷", "Bless you!", "Bless you!", "40100129"),
137
+ new 过场引导(60201, 60201, "魔盒爷爷", "Bless you!", "Bless you!", "40100130"),
138
+ new 过场引导(60202, 60202, "魔盒爷爷", "Bless you!", "Bless you!", "40100131"),
139
+ new 过场引导(60301, 60301, "魔盒爷爷", "Bless you!", "Bless you!", "40100132"),
140
+ new 过场引导(60302, 60302, "魔盒爷爷", "Bless you!", "Bless you!", "40100133"),
141
+ new 过场引导(60401, 60401, "魔盒爷爷", "Bless you!", "Bless you!", "40100134"),
142
+ new 过场引导(60402, 60402, "魔盒爷爷", "Bless you!", "Bless you!", "40100135"),
143
+ new 过场引导(60501, 60501, "魔盒爷爷", "Bless you!", "Bless you!", "40100136"),
144
+ new 过场引导(60502, 60502, "魔盒爷爷", "Bless you!", "Bless you!", "40100137"),
145
+ new 过场引导(60601, 60601, "魔盒爷爷", "Bless you!", "Bless you!", "40100138"),
146
+ new 过场引导(60602, 60602, "魔盒爷爷", "Bless you!", "Bless you!", "40100139"),
147
+ new 过场引导(70101, 70101, "魔盒爷爷", "Bless you!", "Bless you!", "40100140"),
148
+ new 过场引导(70102, 70102, "魔盒爷爷", "Bless you!", "Bless you!", "40100141"),
149
+ new 过场引导(70201, 70201, "魔盒爷爷", "Bless you!", "Bless you!", "40100142"),
150
+ new 过场引导(70202, 70202, "魔盒爷爷", "Bless you!", "Bless you!", "40100143"),
151
+ new 过场引导(70301, 70301, "魔盒爷爷", "Bless you!", "Bless you!", "40100144"),
152
+ new 过场引导(70302, 70302, "魔盒爷爷", "Bless you!", "Bless you!", "40100145"),
153
+ new 过场引导(70401, 70401, "魔盒爷爷", "Bless you!", "Bless you!", "40100146"),
154
+ new 过场引导(70402, 70402, "魔盒爷爷", "Bless you!", "Bless you!", "40100147"),
155
+ new 过场引导(70501, 70501, "魔盒爷爷", "Bless you!", "Bless you!", "40100148"),
156
+ new 过场引导(70502, 70502, "魔盒爷爷", "Bless you!", "Bless you!", "40100149"),
157
+ new 过场引导(70601, 70601, "魔盒爷爷", "Bless you!", "Bless you!", "40100150"),
158
+ new 过场引导(70602, 70602, "魔盒爷爷", "Bless you!", "Bless you!", "40100151"),
159
+ new 过场引导(80101, 80101, "魔盒爷爷", "Bless you!", "Bless you!", "40100152"),
160
+ new 过场引导(80102, 80102, "魔盒爷爷", "Bless you!", "Bless you!", "40100153"),
161
+ new 过场引导(80201, 80201, "魔盒爷爷", "Bless you!", "Bless you!", "40100154"),
162
+ new 过场引导(80202, 80202, "魔盒爷爷", "Bless you!", "Bless you!", "40100155"),
163
+ new 过场引导(80301, 80301, "魔盒爷爷", "Bless you!", "Bless you!", "40100156"),
164
+ new 过场引导(80302, 80302, "魔盒爷爷", "Bless you!", "Bless you!", "40100157"),
165
+ new 过场引导(80401, 80401, "魔盒爷爷", "Bless you!", "Bless you!", "40100158"),
166
+ new 过场引导(80402, 80402, "魔盒爷爷", "Bless you!", "Bless you!", "40100159"),
167
+ new 过场引导(80501, 80501, "魔盒爷爷", "Bless you!", "Bless you!", "40100160"),
168
+ new 过场引导(80502, 80502, "魔盒爷爷", "Bless you!", "Bless you!", "40100161"),
169
+ new 过场引导(80601, 80601, "魔盒爷爷", "Bless you!", "Bless you!", "40100162"),
170
+ new 过场引导(80602, 80602, "魔盒爷爷", "Bless you!", "Bless you!", "40100163"),
171
+ new 过场引导(90101, 90101, "魔盒爷爷", "Bless you!", "Bless you!", "40100164"),
172
+ new 过场引导(90102, 90102, "魔盒爷爷", "Bless you!", "Bless you!", "40100165"),
173
+ new 过场引导(90201, 90201, "魔盒爷爷", "Bless you!", "Bless you!", "40100166"),
174
+ new 过场引导(90202, 90202, "魔盒爷爷", "Bless you!", "Bless you!", "40100167"),
175
+ new 过场引导(90301, 90301, "魔盒爷爷", "Bless you!", "Bless you!", "40100168"),
176
+ new 过场引导(90302, 90302, "魔盒爷爷", "Bless you!", "Bless you!", "40100169"),
177
+ new 过场引导(90401, 90401, "魔盒爷爷", "Bless you!", "Bless you!", "40100170"),
178
+ new 过场引导(90402, 90402, "魔盒爷爷", "Bless you!", "Bless you!", "40100171"),
179
+ new 过场引导(90501, 90501, "魔盒爷爷", "Bless you!", "Bless you!", "40100172"),
180
+ new 过场引导(90502, 90502, "魔盒爷爷", "Bless you!", "Bless you!", "40100173"),
181
+ new 过场引导(90601, 90601, "魔盒爷爷", "Bless you!", "Bless you!", "40100174"),
182
+ new 过场引导(90602, 90602, "魔盒爷爷", "Bless you!", "Bless you!", "40100175"),
183
+ new 过场引导(100101, 100101, "魔盒爷爷", "Bless you!", "Bless you!", "40100176"),
184
+ new 过场引导(100102, 100102, "魔盒爷爷", "Bless you!", "Bless you!", "40100177"),
185
+ new 过场引导(100201, 100201, "魔盒爷爷", "Bless you!", "Bless you!", "40100178"),
186
+ new 过场引导(100202, 100202, "魔盒爷爷", "Bless you!", "Bless you!", "40100179"),
187
+ new 过场引导(100301, 100301, "魔盒爷爷", "Bless you!", "Bless you!", "40100180"),
188
+ new 过场引导(100302, 100302, "魔盒爷爷", "Bless you!", "Bless you!", "40100181"),
189
+ new 过场引导(100401, 100401, "魔盒爷爷", "Bless you!", "Bless you!", "40100182"),
190
+ new 过场引导(100402, 100402, "魔盒爷爷", "Bless you!", "Bless you!", "40100183"),
191
+ new 过场引导(100501, 100501, "魔盒爷爷", "Bless you!", "Bless you!", "40100184"),
192
+ new 过场引导(100502, 100502, "魔盒爷爷", "Bless you!", "Bless you!", "40100185"),
193
+ new 过场引导(100601, 100601, "魔盒爷爷", "Bless you!", "Bless you!", "40100186"),
194
+ new 过场引导(100602, 100602, "魔盒爷爷", "Bless you!", "Bless you!", "40100187"),
195
+ };
196
+
197
+ public 过场引导() { }
198
+ public 过场引导(int id, double group_id, string speaker_name, string sentence, string sentence_zh_CN, string sound)
199
+ {
200
+ this.Id = id;
201
+ this.GroupId = group_id;
202
+ this.SpeakerName = speaker_name;
203
+ this.Sentence = sentence;
204
+ this.SentenceZhCN = sentence_zh_CN;
205
+ this.Sound = sound;
206
+ }
207
+
208
+ public virtual 过场引导 MergeFrom(过场引导 source)
209
+ {
210
+ this.Id = source.Id;
211
+ this.GroupId = source.GroupId;
212
+ this.SpeakerName = source.SpeakerName;
213
+ this.Sentence = source.Sentence;
214
+ this.SentenceZhCN = source.SentenceZhCN;
215
+ this.Sound = source.Sound;
216
+ return this;
217
+ }
218
+
219
+ public virtual 过场引导 Clone()
220
+ {
221
+ var config = new 过场引导();
222
+ config.MergeFrom(this);
223
+ return config;
224
+ }
225
+
226
+
227
+ /// <summary>
228
+ /// 对话ID
229
+ /// </summary>
230
+ public int Id;
231
+ /// <summary>
232
+ /// 组id
233
+ /// </summary>
234
+ public double GroupId;
235
+ /// <summary>
236
+ /// 说话人
237
+ /// </summary>
238
+ public string SpeakerName;
239
+ /// <summary>
240
+ /// 语句
241
+ /// </summary>
242
+ public string Sentence;
243
+ /// <summary>
244
+ /// 中文语句
245
+ /// </summary>
246
+ public string SentenceZhCN;
247
+ /// <summary>
248
+ /// 音频
249
+ /// </summary>
250
+ public string Sound;
251
+
252
+
253
+ #region get字段
254
+
255
+
256
+
257
+
258
+
259
+
260
+ #endregion
261
+
262
+ #region uid map
263
+ protected static Dictionary<int, 过场引导> _tempDictById;
264
+ public static 过场引导 GetConfigById(int Id)
265
+ {
266
+ if (_tempDictById == null)
267
+ {
268
+ _tempDictById = new Dictionary<int, 过场引导>();
269
+ Configs.ForEach(c =>
270
+ {
271
+ _tempDictById.Add(c.Id, c);
272
+ });
273
+ }
274
+ return _tempDictById.GetValueOrDefault(Id);
275
+ }
276
+ protected static Dictionary<double, 过场引导[]> _tempRecordsDictByGroupId = new Dictionary<double, 过场引导[]>();
277
+ public static 过场引导[] GetConfigsByGroupId(double GroupId)
278
+ {
279
+ if (_tempRecordsDictByGroupId.ContainsKey(GroupId))
280
+ {
281
+ return _tempRecordsDictByGroupId.GetValueOrDefault(GroupId);
282
+ }
283
+ else
284
+ {
285
+ var records = Configs.Where(c => c.GroupId == GroupId).ToArray();
286
+ _tempRecordsDictByGroupId.Add(GroupId, records);
287
+ return records;
288
+ }
289
+ }
290
+ protected static Dictionary<string, 过场引导[]> _tempRecordsDictBySpeakerName = new Dictionary<string, 过场引导[]>();
291
+ public static 过场引导[] GetConfigsBySpeakerName(string SpeakerName)
292
+ {
293
+ if (_tempRecordsDictBySpeakerName.ContainsKey(SpeakerName))
294
+ {
295
+ return _tempRecordsDictBySpeakerName.GetValueOrDefault(SpeakerName);
296
+ }
297
+ else
298
+ {
299
+ var records = Configs.Where(c => c.SpeakerName == SpeakerName).ToArray();
300
+ _tempRecordsDictBySpeakerName.Add(SpeakerName, records);
301
+ return records;
302
+ }
303
+ }
304
+ protected static Dictionary<string, 过场引导[]> _tempRecordsDictBySentence = new Dictionary<string, 过场引导[]>();
305
+ public static 过场引导[] GetConfigsBySentence(string Sentence)
306
+ {
307
+ if (_tempRecordsDictBySentence.ContainsKey(Sentence))
308
+ {
309
+ return _tempRecordsDictBySentence.GetValueOrDefault(Sentence);
310
+ }
311
+ else
312
+ {
313
+ var records = Configs.Where(c => c.Sentence == Sentence).ToArray();
314
+ _tempRecordsDictBySentence.Add(Sentence, records);
315
+ return records;
316
+ }
317
+ }
318
+ protected static Dictionary<string, 过场引导[]> _tempRecordsDictBySentenceZhCN = new Dictionary<string, 过场引导[]>();
319
+ public static 过场引导[] GetConfigsBySentenceZhCN(string SentenceZhCN)
320
+ {
321
+ if (_tempRecordsDictBySentenceZhCN.ContainsKey(SentenceZhCN))
322
+ {
323
+ return _tempRecordsDictBySentenceZhCN.GetValueOrDefault(SentenceZhCN);
324
+ }
325
+ else
326
+ {
327
+ var records = Configs.Where(c => c.SentenceZhCN == SentenceZhCN).ToArray();
328
+ _tempRecordsDictBySentenceZhCN.Add(SentenceZhCN, records);
329
+ return records;
330
+ }
331
+ }
332
+ protected static Dictionary<string, 过场引导[]> _tempRecordsDictBySound = new Dictionary<string, 过场引导[]>();
333
+ public static 过场引导[] GetConfigsBySound(string Sound)
334
+ {
335
+ if (_tempRecordsDictBySound.ContainsKey(Sound))
336
+ {
337
+ return _tempRecordsDictBySound.GetValueOrDefault(Sound);
338
+ }
339
+ else
340
+ {
341
+ var records = Configs.Where(c => c.Sound == Sound).ToArray();
342
+ _tempRecordsDictBySound.Add(Sound, records);
343
+ return records;
344
+ }
345
+ }
346
+
347
+ #endregion uid map
348
+
349
+ #region 生成fk.get/set
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+ #endregion 生成fk.get/set
363
+ }
364
+ }
@@ -8,9 +8,8 @@ namespace MEEC.ExportedConfigs
8
8
  {
9
9
  static 过场引导()
10
10
  {
11
- var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/过场引导.asset").WaitForCompletion();
12
- var jsonText = configJson.JsonText;
13
- var jsonObjs = JSON.parse<过场引导[]>(jsonText);
11
+ var configJson = Addressables.LoadAssetAsync<ExcelConfigJson>("Assets/Bundles/GameConfig/Auto/过场引导-过场引导.asset").WaitForCompletion();
12
+ var jsonObjs = JSON.parse<过场引导[]>(configJson.JsonText);
14
13
  var configs = 过场引导.Configs;
15
14
  configs.Clear();
16
15
  configs.AddRange(jsonObjs);
@@ -1,135 +0,0 @@
1
-
2
- using System.Collections.Generic;
3
- using System.Linq;
4
-
5
- public class TaskConfig {
6
-
7
- public static List<TaskConfig> Configs = new List<TaskConfig>()
8
- {
9
- new TaskConfig(50000, "口腔", new double[]{}, new int[]{}, "", "", "`/tp @e[type=npc,c=1,tag=消化NPC] 24 47 -171`", ""),
10
- new TaskConfig(50010, "食道和胃", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成口腔关卡`,`/give @p myitem:xhdlxj_modle_kouqiang`"),
11
- new TaskConfig(50020, "小肠", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成食道&胃关卡`,`/give @p myitem:xhdlxj_modle_shiguan`,`/give @p myitem:xhdlxj_modle_wei`"),
12
- new TaskConfig(50030, "大肠", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成小肠关卡`"),
13
- new TaskConfig(50040, "消化拼图", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成大肠关卡`,`/give @p myitem:xhdlxj_modle_xiaochang`,`/give @p myitem:xhdlxj_modle_dachang`"),
14
- new TaskConfig(50050, "恭喜完成", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成课程内容`"),
15
- };
16
-
17
- public TaskConfig() { }
18
- public TaskConfig(int id, string name, double[] subTasks, int[] taskRewards, string 任务类型, string 任务标签, string startCmds, string succeedCmds)
19
- {
20
- this.Id = id;
21
- this.Name = name;
22
- this.SubTasks = subTasks;
23
- this.TaskRewards = taskRewards;
24
- this.任务类型 = 任务类型;
25
- this.任务标签 = 任务标签;
26
- this.StartCmds = startCmds;
27
- this.SucceedCmds = succeedCmds;
28
- }
29
-
30
- public virtual TaskConfig MergeFrom(TaskConfig source)
31
- {
32
- this.Id = source.Id;
33
- this.Name = source.Name;
34
- this.SubTasks = source.SubTasks;
35
- this.TaskRewards = source.TaskRewards;
36
- this.任务类型 = source.任务类型;
37
- this.任务标签 = source.任务标签;
38
- this.StartCmds = source.StartCmds;
39
- this.SucceedCmds = source.SucceedCmds;
40
- return this;
41
- }
42
-
43
- public virtual TaskConfig Clone()
44
- {
45
- var config = new TaskConfig();
46
- config.MergeFrom(this);
47
- return config;
48
- }
49
-
50
-
51
- /// <summary>
52
- /// 任务ID
53
- /// </summary>
54
- public int Id;
55
- /// <summary>
56
- /// 任务名称
57
- /// </summary>
58
- public string Name;
59
- /// <summary>
60
- /// 子任务
61
- /// </summary>
62
- public double[] SubTasks;
63
- /// <summary>
64
- /// 奖励物品
65
- /// wilwin wilwin:
66
- /// 可配置多个,符号 ";" 号分割
67
- /// 1001;1002;1003
68
- /// </summary>
69
- public int[] TaskRewards;
70
- /// <summary>
71
- /// 任务类型(客户端展示分类)
72
- /// </summary>
73
- public string 任务类型;
74
- /// <summary>
75
- /// 任务标签(客户端展示)
76
- /// </summary>
77
- public string 任务标签;
78
- /// <summary>
79
- /// 任务开始执行命令
80
- /// </summary>
81
- public string StartCmds;
82
- /// <summary>
83
- /// 任务成功执行命令
84
- /// </summary>
85
- public string SucceedCmds;
86
-
87
-
88
- #region get字段
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- #endregion
98
-
99
- #region 生成fk.get/set
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- protected TaskRewards[] _fkTaskRewards=null;
108
- /**
109
- * 奖励物品
110
- wilwin wilwin:
111
- 可配置多个,符号 ";" 号分割
112
- 1001;1002;1003
113
- **/
114
- public virtual TaskRewards[] TaskRewardsDataList{
115
- get{
116
- if(this._fkTaskRewards==null){
117
- if(null==this.TaskRewards){
118
- this._fkTaskRewards = new TaskRewards[0];
119
- }else{
120
- this._fkTaskRewards=global::TaskRewards.Configs.FindAll(a=>a.Id!=null && this.TaskRewards!.Contains(a.Id)).ToArray();
121
- }
122
- }
123
- return this._fkTaskRewards;
124
- }
125
- }
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- #endregion 生成fk.get/set
135
- }
@@ -1,68 +0,0 @@
1
-
2
- using System.Collections.Generic;
3
- using System.Linq;
4
-
5
- public class TaskRewards {
6
-
7
- public static List<TaskRewards> Configs = new List<TaskRewards>()
8
- {
9
- new TaskRewards(1001, "apple", 1),
10
- new TaskRewards(1002, "apple", 1),
11
- new TaskRewards(1003, "apple", 1),
12
- new TaskRewards(1004, "apple", 1),
13
- new TaskRewards(1005, "apple", 1),
14
- };
15
-
16
- public TaskRewards() { }
17
- public TaskRewards(int id, string props1, double count1)
18
- {
19
- this.Id = id;
20
- this.Props1 = props1;
21
- this.Count1 = count1;
22
- }
23
-
24
- public virtual TaskRewards MergeFrom(TaskRewards source)
25
- {
26
- this.Id = source.Id;
27
- this.Props1 = source.Props1;
28
- this.Count1 = source.Count1;
29
- return this;
30
- }
31
-
32
- public virtual TaskRewards Clone()
33
- {
34
- var config = new TaskRewards();
35
- config.MergeFrom(this);
36
- return config;
37
- }
38
-
39
-
40
- /// <summary>
41
- /// 奖励ID
42
- /// </summary>
43
- public int Id;
44
- /// <summary>
45
- /// 道具1
46
- /// </summary>
47
- public string Props1;
48
- /// <summary>
49
- /// 数量1
50
- /// </summary>
51
- public double Count1;
52
-
53
-
54
- #region get字段
55
-
56
-
57
-
58
- #endregion
59
-
60
- #region 生成fk.get/set
61
-
62
-
63
-
64
-
65
-
66
-
67
- #endregion 生成fk.get/set
68
- }
@@ -1,145 +0,0 @@
1
-
2
- using System.Collections.Generic;
3
- using System.Linq;
4
-
5
- public class TaskTriggerConfig {
6
-
7
- public static List<TaskTriggerConfig> Configs = new List<TaskTriggerConfig>()
8
- {
9
- new TaskTriggerConfig(1, 50000, false, "", 0, "", 0, "", 0, "任务时限", 1001),
10
- new TaskTriggerConfig(2, 50010, true, "前置任务", 50000, "", 0, "", 0, "任务时限", 1001),
11
- new TaskTriggerConfig(7, 50020, true, "前置任务", 50010, "", 0, "", 0, "任务时限", 1001),
12
- new TaskTriggerConfig(8, 50030, true, "前置任务", 50020, "", 0, "", 0, "任务时限", 1001),
13
- new TaskTriggerConfig(9, 50040, true, "前置任务", 50030, "", 0, "", 0, "任务时限", 1001),
14
- new TaskTriggerConfig(10, 50050, true, "前置任务", 50040, "", 0, "", 0, "任务时限", 1001),
15
- };
16
-
17
- public TaskTriggerConfig() { }
18
- public TaskTriggerConfig(int id, double taskId, bool autoAccept, string cond1, double para1, string cond2, double para2, string cond3, double para3, string limit1, double limitPara1)
19
- {
20
- this.Id = id;
21
- this.TaskId = taskId;
22
- this.AutoAccept = autoAccept;
23
- this.Cond1 = cond1;
24
- this.Para1 = para1;
25
- this.Cond2 = cond2;
26
- this.Para2 = para2;
27
- this.Cond3 = cond3;
28
- this.Para3 = para3;
29
- this.Limit1 = limit1;
30
- this.LimitPara1 = limitPara1;
31
- }
32
-
33
- public virtual TaskTriggerConfig MergeFrom(TaskTriggerConfig source)
34
- {
35
- this.Id = source.Id;
36
- this.TaskId = source.TaskId;
37
- this.AutoAccept = source.AutoAccept;
38
- this.Cond1 = source.Cond1;
39
- this.Para1 = source.Para1;
40
- this.Cond2 = source.Cond2;
41
- this.Para2 = source.Para2;
42
- this.Cond3 = source.Cond3;
43
- this.Para3 = source.Para3;
44
- this.Limit1 = source.Limit1;
45
- this.LimitPara1 = source.LimitPara1;
46
- return this;
47
- }
48
-
49
- public virtual TaskTriggerConfig Clone()
50
- {
51
- var config = new TaskTriggerConfig();
52
- config.MergeFrom(this);
53
- return config;
54
- }
55
-
56
-
57
- /// <summary>
58
- /// id
59
- /// </summary>
60
- public int Id;
61
- /// <summary>
62
- /// 任务ID
63
- /// </summary>
64
- public double TaskId;
65
- /// <summary>
66
- /// 是否自动领取
67
- /// </summary>
68
- public bool AutoAccept;
69
- /// <summary>
70
- /// 条件1
71
- /// wilwin wilwin:
72
- /// q3wrjhqihruq
73
- /// ]qwklhqwlkqw
74
- /// qweklq
75
- /// </summary>
76
- public string Cond1;
77
- /// <summary>
78
- /// 条件1参数
79
- /// </summary>
80
- public double Para1;
81
- /// <summary>
82
- /// 条件2
83
- /// </summary>
84
- public string Cond2;
85
- /// <summary>
86
- /// 条件2参数
87
- /// </summary>
88
- public double Para2;
89
- /// <summary>
90
- /// 条件3
91
- /// </summary>
92
- public string Cond3;
93
- /// <summary>
94
- /// 条件3参数
95
- /// </summary>
96
- public double Para3;
97
- /// <summary>
98
- /// 约束1
99
- /// </summary>
100
- public string Limit1;
101
- /// <summary>
102
- /// 约束1参数
103
- /// </summary>
104
- public double LimitPara1;
105
-
106
-
107
- #region get字段
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- #endregion
120
-
121
- #region 生成fk.get/set
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- #endregion 生成fk.get/set
145
- }
@@ -1,55 +0,0 @@
1
-
2
- using System.Collections.Generic;
3
- using System.Linq;
4
-
5
- public class TimeLimit {
6
-
7
- public static List<TimeLimit> Configs = new List<TimeLimit>()
8
- {
9
- new TimeLimit(1001, 24),
10
- };
11
-
12
- public TimeLimit() { }
13
- public TimeLimit(int id, double duration)
14
- {
15
- this.Id = id;
16
- this.Duration = duration;
17
- }
18
-
19
- public virtual TimeLimit MergeFrom(TimeLimit source)
20
- {
21
- this.Id = source.Id;
22
- this.Duration = source.Duration;
23
- return this;
24
- }
25
-
26
- public virtual TimeLimit Clone()
27
- {
28
- var config = new TimeLimit();
29
- config.MergeFrom(this);
30
- return config;
31
- }
32
-
33
-
34
- /// <summary>
35
- /// id
36
- /// </summary>
37
- public int Id;
38
- /// <summary>
39
- /// 最大时限
40
- /// </summary>
41
- public double Duration;
42
-
43
-
44
- #region get字段
45
-
46
-
47
- #endregion
48
-
49
- #region 生成fk.get/set
50
-
51
-
52
-
53
-
54
- #endregion 生成fk.get/set
55
- }
@@ -1,15 +0,0 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!114 &11400000
4
- MonoBehaviour:
5
- m_ObjectHideFlags: 0
6
- m_CorrespondingSourceObject: {fileID: 0}
7
- m_PrefabInstance: {fileID: 0}
8
- m_PrefabAsset: {fileID: 0}
9
- m_GameObject: {fileID: 0}
10
- m_Enabled: 1
11
- m_EditorHideFlags: 0
12
- m_Script: {fileID: 11500000, guid: 496f60086c072a8479a6e0b948efb5e8, type: 3}
13
- m_Name: ExcelConfigJson 1
14
- m_EditorClassIdentifier:
15
- JsonText: "we\n \n \"''AA"
@@ -1,15 +0,0 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!114 &11400000
4
- MonoBehaviour:
5
- m_ObjectHideFlags: 0
6
- m_CorrespondingSourceObject: {fileID: 0}
7
- m_PrefabInstance: {fileID: 0}
8
- m_PrefabAsset: {fileID: 0}
9
- m_GameObject: {fileID: 0}
10
- m_Enabled: 1
11
- m_EditorHideFlags: 0
12
- m_Script: {fileID: 11500000, guid: 496f60086c072a8479a6e0b948efb5e8, type: 3}
13
- m_Name: ExcelConfigJson
14
- m_EditorClassIdentifier:
15
- JsonText: "we\n \n \"''AA"