export-table-pulgin-csharp 1.0.23 → 1.0.26
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/.vscode/launch.json +21 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- 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 +161 -0
- 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 +89 -0
- 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 +75 -0
- 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 +174 -0
- package/test/dist/SceneConfig-Sheet2.cs +25 -4
- package/test/dist/SceneConfig.cs +25 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
// 使用 IntelliSense 了解相关属性。
|
|
3
|
+
// 悬停以查看现有属性的描述。
|
|
4
|
+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "pwa-node",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Program",
|
|
11
|
+
"skipFiles": [
|
|
12
|
+
"<node_internals>/**"
|
|
13
|
+
],
|
|
14
|
+
"program": "E:/DATA/Projects/netease/quicktable/export-table/dist/launch.js",
|
|
15
|
+
"args": ["export", "src" ,"dist" ,"--tags" ,"csharp:cs", "--libs" ,"E:/DATA/Projects/netease/quicktable"],
|
|
16
|
+
"outFiles": [
|
|
17
|
+
"${workspaceFolder}/**/*.js"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -196,7 +196,7 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
|
|
|
196
196
|
|
|
197
197
|
#region uid map
|
|
198
198
|
${(0, export_table_lib_1.foreach)(fields, f => {
|
|
199
|
-
if (f.
|
|
199
|
+
if (f.isUnique) {
|
|
200
200
|
return `
|
|
201
201
|
protected static Dictionary<int, ${RowClass}> _tempDictBy${convMemberName(f.name)};
|
|
202
202
|
public static ${RowClass} GetConfigBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -174,7 +174,7 @@ ${foreach(fields, f => {
|
|
|
174
174
|
|
|
175
175
|
#region uid map
|
|
176
176
|
${foreach(fields, f => {
|
|
177
|
-
if (f.
|
|
177
|
+
if (f.isUnique) {
|
|
178
178
|
return `
|
|
179
179
|
protected static Dictionary<int, ${RowClass}> _tempDictBy${convMemberName(f.name)};
|
|
180
180
|
public static ${RowClass} GetConfigBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.Linq;
|
|
4
|
+
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
6
|
+
public class 任务列表 {
|
|
7
|
+
|
|
8
|
+
public static List<任务列表> Configs = new List<任务列表>()
|
|
9
|
+
{
|
|
10
|
+
new 任务列表(50000, "口腔", new double[]{}, new int[]{}, "", "", "`/tp @e[type=npc,c=1,tag=消化NPC] 24 47 -171`", ""),
|
|
11
|
+
new 任务列表(50010, "食道和胃", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成口腔关卡`,`/give @p myitem:xhdlxj_modle_kouqiang`"),
|
|
12
|
+
new 任务列表(50020, "小肠", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成食道&胃关卡`,`/give @p myitem:xhdlxj_modle_shiguan`,`/give @p myitem:xhdlxj_modle_wei`"),
|
|
13
|
+
new 任务列表(50030, "大肠", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成小肠关卡`"),
|
|
14
|
+
new 任务列表(50040, "消化拼图", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成大肠关卡`,`/give @p myitem:xhdlxj_modle_xiaochang`,`/give @p myitem:xhdlxj_modle_dachang`"),
|
|
15
|
+
new 任务列表(50050, "恭喜完成", new double[]{}, new int[]{}, "", "", "", "`/title @p title 恭喜你完成课程内容`"),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
public 任务列表() { }
|
|
19
|
+
public 任务列表(int id, string name, double[] subTasks, int[] taskRewards, string 任务类型, string 任务标签, string startCmds, string succeedCmds)
|
|
20
|
+
{
|
|
21
|
+
this.Id = id;
|
|
22
|
+
this.Name = name;
|
|
23
|
+
this.SubTasks = subTasks;
|
|
24
|
+
this.TaskRewards = taskRewards;
|
|
25
|
+
this.任务类型 = 任务类型;
|
|
26
|
+
this.任务标签 = 任务标签;
|
|
27
|
+
this.StartCmds = startCmds;
|
|
28
|
+
this.SucceedCmds = succeedCmds;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public virtual 任务列表 MergeFrom(任务列表 source)
|
|
32
|
+
{
|
|
33
|
+
this.Id = source.Id;
|
|
34
|
+
this.Name = source.Name;
|
|
35
|
+
this.SubTasks = source.SubTasks;
|
|
36
|
+
this.TaskRewards = source.TaskRewards;
|
|
37
|
+
this.任务类型 = source.任务类型;
|
|
38
|
+
this.任务标签 = source.任务标签;
|
|
39
|
+
this.StartCmds = source.StartCmds;
|
|
40
|
+
this.SucceedCmds = source.SucceedCmds;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public virtual 任务列表 Clone()
|
|
45
|
+
{
|
|
46
|
+
var config = new 任务列表();
|
|
47
|
+
config.MergeFrom(this);
|
|
48
|
+
return config;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/// <summary>
|
|
53
|
+
/// 任务ID
|
|
54
|
+
/// </summary>
|
|
55
|
+
public int Id;
|
|
56
|
+
/// <summary>
|
|
57
|
+
/// 任务名称
|
|
58
|
+
/// </summary>
|
|
59
|
+
public string Name;
|
|
60
|
+
/// <summary>
|
|
61
|
+
/// 子任务
|
|
62
|
+
/// </summary>
|
|
63
|
+
public double[] SubTasks;
|
|
64
|
+
/// <summary>
|
|
65
|
+
/// 奖励物品
|
|
66
|
+
/// wilwin wilwin:
|
|
67
|
+
/// 可配置多个,符号 ";" 号分割
|
|
68
|
+
/// 1001;1002;1003
|
|
69
|
+
/// </summary>
|
|
70
|
+
public int[] TaskRewards;
|
|
71
|
+
/// <summary>
|
|
72
|
+
/// 任务类型(客户端展示分类)
|
|
73
|
+
/// </summary>
|
|
74
|
+
public string 任务类型;
|
|
75
|
+
/// <summary>
|
|
76
|
+
/// 任务标签(客户端展示)
|
|
77
|
+
/// </summary>
|
|
78
|
+
public string 任务标签;
|
|
79
|
+
/// <summary>
|
|
80
|
+
/// 任务开始执行命令
|
|
81
|
+
/// </summary>
|
|
82
|
+
public string StartCmds;
|
|
83
|
+
/// <summary>
|
|
84
|
+
/// 任务成功执行命令
|
|
85
|
+
/// </summary>
|
|
86
|
+
public string SucceedCmds;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
#region get字段
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
#endregion
|
|
99
|
+
|
|
100
|
+
#region uid map
|
|
101
|
+
protected static Dictionary<int, 任务列表> _tempDictById;
|
|
102
|
+
public static 任务列表 GetConfigById(int Id)
|
|
103
|
+
{
|
|
104
|
+
if (_tempDictById == null)
|
|
105
|
+
{
|
|
106
|
+
_tempDictById = new Dictionary<int, 任务列表>();
|
|
107
|
+
Configs.ForEach(c =>
|
|
108
|
+
{
|
|
109
|
+
_tempDictById.Add(c.Id, c);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return _tempDictById.GetValueOrDefault(Id);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
#endregion uid map
|
|
123
|
+
|
|
124
|
+
#region 生成fk.get/set
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
protected 任务奖励[] _fkTaskRewards=null;
|
|
133
|
+
/**
|
|
134
|
+
* 奖励物品
|
|
135
|
+
wilwin wilwin:
|
|
136
|
+
可配置多个,符号 ";" 号分割
|
|
137
|
+
1001;1002;1003
|
|
138
|
+
**/
|
|
139
|
+
public virtual 任务奖励[] TaskRewardsDataList{
|
|
140
|
+
get{
|
|
141
|
+
if(this._fkTaskRewards==null){
|
|
142
|
+
if(null==this.TaskRewards){
|
|
143
|
+
this._fkTaskRewards = new 任务奖励[0];
|
|
144
|
+
}else{
|
|
145
|
+
this._fkTaskRewards=MEEC.ExportedConfigs.任务奖励.Configs.FindAll(a=>a.Id!=null && this.TaskRewards!.Contains(a.Id)).ToArray();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return this._fkTaskRewards;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
#endregion 生成fk.get/set
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.Linq;
|
|
4
|
+
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
6
|
+
public class 任务奖励 {
|
|
7
|
+
|
|
8
|
+
public static List<任务奖励> Configs = new List<任务奖励>()
|
|
9
|
+
{
|
|
10
|
+
new 任务奖励(1001, "apple", 1),
|
|
11
|
+
new 任务奖励(1002, "apple", 1),
|
|
12
|
+
new 任务奖励(1003, "apple", 1),
|
|
13
|
+
new 任务奖励(1004, "apple", 1),
|
|
14
|
+
new 任务奖励(1005, "apple", 1),
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
public 任务奖励() { }
|
|
18
|
+
public 任务奖励(int id, string props1, double count1)
|
|
19
|
+
{
|
|
20
|
+
this.Id = id;
|
|
21
|
+
this.Props1 = props1;
|
|
22
|
+
this.Count1 = count1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public virtual 任务奖励 MergeFrom(任务奖励 source)
|
|
26
|
+
{
|
|
27
|
+
this.Id = source.Id;
|
|
28
|
+
this.Props1 = source.Props1;
|
|
29
|
+
this.Count1 = source.Count1;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public virtual 任务奖励 Clone()
|
|
34
|
+
{
|
|
35
|
+
var config = new 任务奖励();
|
|
36
|
+
config.MergeFrom(this);
|
|
37
|
+
return config;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/// <summary>
|
|
42
|
+
/// 奖励ID
|
|
43
|
+
/// </summary>
|
|
44
|
+
public int Id;
|
|
45
|
+
/// <summary>
|
|
46
|
+
/// 道具1
|
|
47
|
+
/// </summary>
|
|
48
|
+
public string Props1;
|
|
49
|
+
/// <summary>
|
|
50
|
+
/// 数量1
|
|
51
|
+
/// </summary>
|
|
52
|
+
public double Count1;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
#region get字段
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
#endregion
|
|
60
|
+
|
|
61
|
+
#region uid map
|
|
62
|
+
protected static Dictionary<int, 任务奖励> _tempDictById;
|
|
63
|
+
public static 任务奖励 GetConfigById(int Id)
|
|
64
|
+
{
|
|
65
|
+
if (_tempDictById == null)
|
|
66
|
+
{
|
|
67
|
+
_tempDictById = new Dictionary<int, 任务奖励>();
|
|
68
|
+
Configs.ForEach(c =>
|
|
69
|
+
{
|
|
70
|
+
_tempDictById.Add(c.Id, c);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return _tempDictById.GetValueOrDefault(Id);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
#endregion uid map
|
|
79
|
+
|
|
80
|
+
#region 生成fk.get/set
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
#endregion 生成fk.get/set
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.Linq;
|
|
4
|
+
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
6
|
+
public class 任务时限 {
|
|
7
|
+
|
|
8
|
+
public static List<任务时限> Configs = new List<任务时限>()
|
|
9
|
+
{
|
|
10
|
+
new 任务时限(1001, 24),
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
public 任务时限() { }
|
|
14
|
+
public 任务时限(int id, double duration)
|
|
15
|
+
{
|
|
16
|
+
this.Id = id;
|
|
17
|
+
this.Duration = duration;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public virtual 任务时限 MergeFrom(任务时限 source)
|
|
21
|
+
{
|
|
22
|
+
this.Id = source.Id;
|
|
23
|
+
this.Duration = source.Duration;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public virtual 任务时限 Clone()
|
|
28
|
+
{
|
|
29
|
+
var config = new 任务时限();
|
|
30
|
+
config.MergeFrom(this);
|
|
31
|
+
return config;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/// <summary>
|
|
36
|
+
/// id
|
|
37
|
+
/// </summary>
|
|
38
|
+
public int Id;
|
|
39
|
+
/// <summary>
|
|
40
|
+
/// 最大时限
|
|
41
|
+
/// </summary>
|
|
42
|
+
public double Duration;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#region get字段
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
#endregion
|
|
49
|
+
|
|
50
|
+
#region uid map
|
|
51
|
+
protected static Dictionary<int, 任务时限> _tempDictById;
|
|
52
|
+
public static 任务时限 GetConfigById(int Id)
|
|
53
|
+
{
|
|
54
|
+
if (_tempDictById == null)
|
|
55
|
+
{
|
|
56
|
+
_tempDictById = new Dictionary<int, 任务时限>();
|
|
57
|
+
Configs.ForEach(c =>
|
|
58
|
+
{
|
|
59
|
+
_tempDictById.Add(c.Id, c);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return _tempDictById.GetValueOrDefault(Id);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
#endregion uid map
|
|
67
|
+
|
|
68
|
+
#region 生成fk.get/set
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
#endregion 生成fk.get/set
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.Linq;
|
|
4
|
+
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
6
|
+
public class 任务触发约束配表 {
|
|
7
|
+
|
|
8
|
+
public static List<任务触发约束配表> Configs = new List<任务触发约束配表>()
|
|
9
|
+
{
|
|
10
|
+
new 任务触发约束配表(1, 50000, false, "", 0, "", 0, "", 0, "任务时限", 1001),
|
|
11
|
+
new 任务触发约束配表(2, 50010, true, "前置任务", 50000, "", 0, "", 0, "任务时限", 1001),
|
|
12
|
+
new 任务触发约束配表(7, 50020, true, "前置任务", 50010, "", 0, "", 0, "任务时限", 1001),
|
|
13
|
+
new 任务触发约束配表(8, 50030, true, "前置任务", 50020, "", 0, "", 0, "任务时限", 1001),
|
|
14
|
+
new 任务触发约束配表(9, 50040, true, "前置任务", 50030, "", 0, "", 0, "任务时限", 1001),
|
|
15
|
+
new 任务触发约束配表(10, 50050, true, "前置任务", 50040, "", 0, "", 0, "任务时限", 1001),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
public 任务触发约束配表() { }
|
|
19
|
+
public 任务触发约束配表(int id, double taskId, bool autoAccept, string cond1, double para1, string cond2, double para2, string cond3, double para3, string limit1, double limitPara1)
|
|
20
|
+
{
|
|
21
|
+
this.Id = id;
|
|
22
|
+
this.TaskId = taskId;
|
|
23
|
+
this.AutoAccept = autoAccept;
|
|
24
|
+
this.Cond1 = cond1;
|
|
25
|
+
this.Para1 = para1;
|
|
26
|
+
this.Cond2 = cond2;
|
|
27
|
+
this.Para2 = para2;
|
|
28
|
+
this.Cond3 = cond3;
|
|
29
|
+
this.Para3 = para3;
|
|
30
|
+
this.Limit1 = limit1;
|
|
31
|
+
this.LimitPara1 = limitPara1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public virtual 任务触发约束配表 MergeFrom(任务触发约束配表 source)
|
|
35
|
+
{
|
|
36
|
+
this.Id = source.Id;
|
|
37
|
+
this.TaskId = source.TaskId;
|
|
38
|
+
this.AutoAccept = source.AutoAccept;
|
|
39
|
+
this.Cond1 = source.Cond1;
|
|
40
|
+
this.Para1 = source.Para1;
|
|
41
|
+
this.Cond2 = source.Cond2;
|
|
42
|
+
this.Para2 = source.Para2;
|
|
43
|
+
this.Cond3 = source.Cond3;
|
|
44
|
+
this.Para3 = source.Para3;
|
|
45
|
+
this.Limit1 = source.Limit1;
|
|
46
|
+
this.LimitPara1 = source.LimitPara1;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public virtual 任务触发约束配表 Clone()
|
|
51
|
+
{
|
|
52
|
+
var config = new 任务触发约束配表();
|
|
53
|
+
config.MergeFrom(this);
|
|
54
|
+
return config;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/// <summary>
|
|
59
|
+
/// id
|
|
60
|
+
/// </summary>
|
|
61
|
+
public int Id;
|
|
62
|
+
/// <summary>
|
|
63
|
+
/// 任务ID
|
|
64
|
+
/// </summary>
|
|
65
|
+
public double TaskId;
|
|
66
|
+
/// <summary>
|
|
67
|
+
/// 是否自动领取
|
|
68
|
+
/// </summary>
|
|
69
|
+
public bool AutoAccept;
|
|
70
|
+
/// <summary>
|
|
71
|
+
/// 条件1
|
|
72
|
+
/// wilwin wilwin:
|
|
73
|
+
/// q3wrjhqihruq
|
|
74
|
+
/// ]qwklhqwlkqw
|
|
75
|
+
/// qweklq
|
|
76
|
+
/// </summary>
|
|
77
|
+
public string Cond1;
|
|
78
|
+
/// <summary>
|
|
79
|
+
/// 条件1参数
|
|
80
|
+
/// </summary>
|
|
81
|
+
public double Para1;
|
|
82
|
+
/// <summary>
|
|
83
|
+
/// 条件2
|
|
84
|
+
/// </summary>
|
|
85
|
+
public string Cond2;
|
|
86
|
+
/// <summary>
|
|
87
|
+
/// 条件2参数
|
|
88
|
+
/// </summary>
|
|
89
|
+
public double Para2;
|
|
90
|
+
/// <summary>
|
|
91
|
+
/// 条件3
|
|
92
|
+
/// </summary>
|
|
93
|
+
public string Cond3;
|
|
94
|
+
/// <summary>
|
|
95
|
+
/// 条件3参数
|
|
96
|
+
/// </summary>
|
|
97
|
+
public double Para3;
|
|
98
|
+
/// <summary>
|
|
99
|
+
/// 约束1
|
|
100
|
+
/// </summary>
|
|
101
|
+
public string Limit1;
|
|
102
|
+
/// <summary>
|
|
103
|
+
/// 约束1参数
|
|
104
|
+
/// </summary>
|
|
105
|
+
public double LimitPara1;
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
#region get字段
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
#endregion
|
|
121
|
+
|
|
122
|
+
#region uid map
|
|
123
|
+
protected static Dictionary<int, 任务触发约束配表> _tempDictById;
|
|
124
|
+
public static 任务触发约束配表 GetConfigById(int Id)
|
|
125
|
+
{
|
|
126
|
+
if (_tempDictById == null)
|
|
127
|
+
{
|
|
128
|
+
_tempDictById = new Dictionary<int, 任务触发约束配表>();
|
|
129
|
+
Configs.ForEach(c =>
|
|
130
|
+
{
|
|
131
|
+
_tempDictById.Add(c.Id, c);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return _tempDictById.GetValueOrDefault(Id);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
#endregion uid map
|
|
148
|
+
|
|
149
|
+
#region 生成fk.get/set
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
#endregion 生成fk.get/set
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
using System.Collections.Generic;
|
|
3
3
|
using System.Linq;
|
|
4
4
|
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
5
6
|
public class Sheet2 {
|
|
6
7
|
|
|
7
8
|
public static List<Sheet2> Configs = new List<Sheet2>()
|
|
@@ -48,18 +49,38 @@ public class Sheet2 {
|
|
|
48
49
|
public double OutingBaseGold;
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
#region get字段
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
#endregion
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
#region uid map
|
|
59
|
+
protected static Dictionary<int, Sheet2> _tempDictByUid;
|
|
60
|
+
public static Sheet2 GetConfigByUid(int Uid)
|
|
61
|
+
{
|
|
62
|
+
if (_tempDictByUid == null)
|
|
63
|
+
{
|
|
64
|
+
_tempDictByUid = new Dictionary<int, Sheet2>();
|
|
65
|
+
Configs.ForEach(c =>
|
|
66
|
+
{
|
|
67
|
+
_tempDictByUid.Add(c.Uid, c);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return _tempDictByUid.GetValueOrDefault(Uid);
|
|
71
|
+
}
|
|
58
72
|
|
|
59
73
|
|
|
60
74
|
|
|
75
|
+
#endregion uid map
|
|
61
76
|
|
|
77
|
+
#region 生成fk.get/set
|
|
62
78
|
|
|
63
79
|
|
|
64
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
#endregion 生成fk.get/set
|
|
85
|
+
}
|
|
65
86
|
}
|
package/test/dist/SceneConfig.cs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
using System.Collections.Generic;
|
|
3
3
|
using System.Linq;
|
|
4
4
|
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
5
6
|
public class SceneConfig {
|
|
6
7
|
|
|
7
8
|
public static List<SceneConfig> Configs = new List<SceneConfig>()
|
|
@@ -48,18 +49,38 @@ public class SceneConfig {
|
|
|
48
49
|
public double OutingBaseGold;
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
#region get字段
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
#endregion
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
#region uid map
|
|
59
|
+
protected static Dictionary<int, SceneConfig> _tempDictByUid;
|
|
60
|
+
public static SceneConfig GetConfigByUid(int Uid)
|
|
61
|
+
{
|
|
62
|
+
if (_tempDictByUid == null)
|
|
63
|
+
{
|
|
64
|
+
_tempDictByUid = new Dictionary<int, SceneConfig>();
|
|
65
|
+
Configs.ForEach(c =>
|
|
66
|
+
{
|
|
67
|
+
_tempDictByUid.Add(c.Uid, c);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return _tempDictByUid.GetValueOrDefault(Uid);
|
|
71
|
+
}
|
|
58
72
|
|
|
59
73
|
|
|
60
74
|
|
|
75
|
+
#endregion uid map
|
|
61
76
|
|
|
77
|
+
#region 生成fk.get/set
|
|
62
78
|
|
|
63
79
|
|
|
64
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
#endregion 生成fk.get/set
|
|
85
|
+
}
|
|
65
86
|
}
|