export-table-pulgin-csharp 1.0.42 → 1.0.43
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/ExportCSPlugin.js +21 -4
- package/dist/launch.d.ts +1 -0
- package/dist/launch.js +5 -0
- package/dist/launch.js.map +1 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-unit.cs +94 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-unit/350/241/250.cs +276 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/270/223/345/256/266/350/257/204/344/273/267.cs +210 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/270/273/351/242/230/344/277/241/346/201/257/350/241/250.cs +285 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/270/273/351/242/230/345/257/271/345/272/224unit.cs +93 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/273/273/345/212/241/345/260/217/347/273/223.cs +141 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/273/273/345/212/241/350/241/250.cs +151 -0
- package/dist//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250-/344/273/273/345/212/241/350/247/246/345/217/221/350/241/250.cs +111 -0
- package/package.json +25 -25
- package/quicktable//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250.xlsx +0 -0
- package/src/ExportCSPlugin.ts +20 -4
- package/src//350/257/276/347/250/213/344/277/241/346/201/257/350/241/250.xlsx +0 -0
- package/test/dist/SceneConfig.cs +55 -112
- package/test/dist/SceneConfig.csharp +0 -0
- package/test/dist/SceneConfig.csx +55 -0
- package/test/dist/Sheet2.csharp +0 -0
- package/test/dist/table.csharp +0 -0
- package/test/{testCS.bat → test.bat} +0 -0
- 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 -15
- 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 +0 -226
- 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 +0 -26
- 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 -15
- 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 +0 -115
- 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 +0 -26
- 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 -15
- 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 +0 -88
- 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 +0 -26
- 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 -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 +0 -291
- 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 +0 -26
- package/test/dist/SceneConfig-SceneConfig.asset +0 -15
- package/test/dist/SceneConfig-SceneConfigLoader.cs +0 -26
- package/test/dist/SceneConfig-Sheet2.asset +0 -15
- package/test/dist/SceneConfig-Sheet2Loader.cs +0 -26
- package/test/dist//345/257/271/350/257/235/350/241/250-/345/257/271/350/257/235/350/241/250.asset +0 -15
- package/test/dist//345/257/271/350/257/235/350/241/250-/345/257/271/350/257/235/350/241/250.cs +0 -453
- package/test/dist//345/257/271/350/257/235/350/241/250-/345/257/271/350/257/235/350/241/250Loader.cs +0 -26
- 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.asset +0 -15
- 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 +0 -364
- 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/274Loader.cs +0 -26
- package/test/src/EGBL/344/273/273/345/212/241/351/205/215/347/275/256.xlsx +0 -0
- package/test/src//345/257/271/350/257/235/350/241/250.xlsx +0 -0
- package/test/src//350/277/207/345/234/272/345/274/225/345/257/274.xlsx +0 -0
- package/test/testUJson.bat +0 -1
|
@@ -0,0 +1,285 @@
|
|
|
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 主题信息表(1000, "玩转大百科", "玩转大百科系列,涵盖6大百科主题探索,掌握100+核心知识点,不但能边玩边掌握百科知识,还能培养科学思维,提升自主学习能力。", "img_them_03.png", "", "unit_icon_seabed_square.png", "玩转大百科", new string[]{"探究力", "理解力"}, 0, 0, ""),
|
|
11
|
+
new 主题信息表(2000, "少年航天员", "《少年航天员》是以宇宙探索为背景的3D科学体验,你将依次到达空间站、月球、行星、星系......完成一场宏大的宇宙冒险。你不仅能到达生活中无法到达的地外空间,还能体验失重、超重等特殊体验。通过沉浸式的学习,获得天文、数理、生命科学等领域的知识,学习科学家的思考方式。快来一起加入冒险,成为一名少年航天员吧!", "img_them_02.png", "", "unit_icon_jurassic_square.png", "少年航天员", new string[]{"抗挫力", "合作力"}, 0, 0, ""),
|
|
12
|
+
new 主题信息表(3000, "宋朝探案笔记", "真相只有一个", "img_them_06.png", "", "unit_icon_seabed_square.png", "宋朝探案笔记", new string[]{"思考力", "分析力"}, 0, 0, ""),
|
|
13
|
+
new 主题信息表(4000, "趣味编程世界", "来学习编程吧", "img_them_02.png", "", "unit_icon_jurassic_square.png", "趣味编程世界", new string[]{"编程思维", "观察力"}, 0, 1, "2022-08-30 12:00:00"),
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
public 主题信息表() { }
|
|
17
|
+
public 主题信息表(int curriculum_id, string curriculum_name, string curriculum_description, string worldIconPath, string video, string listIconPath, string curriculum_type, string[] powerTags, double unlock_type, double activity_type, string activity_end_type)
|
|
18
|
+
{
|
|
19
|
+
this.CurriculumId = curriculum_id;
|
|
20
|
+
this.CurriculumName = curriculum_name;
|
|
21
|
+
this.CurriculumDescription = curriculum_description;
|
|
22
|
+
this.WorldIconPath = worldIconPath;
|
|
23
|
+
this.Video = video;
|
|
24
|
+
this.ListIconPath = listIconPath;
|
|
25
|
+
this.CurriculumType = curriculum_type;
|
|
26
|
+
this.PowerTags = powerTags;
|
|
27
|
+
this.UnlockType = unlock_type;
|
|
28
|
+
this.ActivityType = activity_type;
|
|
29
|
+
this.ActivityEndType = activity_end_type;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public virtual 主题信息表 MergeFrom(主题信息表 source)
|
|
33
|
+
{
|
|
34
|
+
this.CurriculumId = source.CurriculumId;
|
|
35
|
+
this.CurriculumName = source.CurriculumName;
|
|
36
|
+
this.CurriculumDescription = source.CurriculumDescription;
|
|
37
|
+
this.WorldIconPath = source.WorldIconPath;
|
|
38
|
+
this.Video = source.Video;
|
|
39
|
+
this.ListIconPath = source.ListIconPath;
|
|
40
|
+
this.CurriculumType = source.CurriculumType;
|
|
41
|
+
this.PowerTags = source.PowerTags;
|
|
42
|
+
this.UnlockType = source.UnlockType;
|
|
43
|
+
this.ActivityType = source.ActivityType;
|
|
44
|
+
this.ActivityEndType = source.ActivityEndType;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public virtual 主题信息表 Clone()
|
|
49
|
+
{
|
|
50
|
+
var config = new 主题信息表();
|
|
51
|
+
config.MergeFrom(this);
|
|
52
|
+
return config;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/// <summary>
|
|
57
|
+
/// 主题id
|
|
58
|
+
/// </summary>
|
|
59
|
+
public int CurriculumId;
|
|
60
|
+
/// <summary>
|
|
61
|
+
/// 主题名称
|
|
62
|
+
/// </summary>
|
|
63
|
+
public string CurriculumName;
|
|
64
|
+
/// <summary>
|
|
65
|
+
/// 教授内容描述tips
|
|
66
|
+
/// </summary>
|
|
67
|
+
public string CurriculumDescription;
|
|
68
|
+
/// <summary>
|
|
69
|
+
/// 课程Icon
|
|
70
|
+
/// </summary>
|
|
71
|
+
public string WorldIconPath;
|
|
72
|
+
/// <summary>
|
|
73
|
+
/// 系列视频
|
|
74
|
+
/// </summary>
|
|
75
|
+
public string Video;
|
|
76
|
+
/// <summary>
|
|
77
|
+
/// 列表icon
|
|
78
|
+
/// </summary>
|
|
79
|
+
public string ListIconPath;
|
|
80
|
+
/// <summary>
|
|
81
|
+
/// 主题类型
|
|
82
|
+
/// </summary>
|
|
83
|
+
public string CurriculumType;
|
|
84
|
+
/// <summary>
|
|
85
|
+
/// 能力提升
|
|
86
|
+
/// </summary>
|
|
87
|
+
public string[] PowerTags;
|
|
88
|
+
/// <summary>
|
|
89
|
+
/// 解锁条件
|
|
90
|
+
/// </summary>
|
|
91
|
+
public double UnlockType;
|
|
92
|
+
/// <summary>
|
|
93
|
+
/// 活动类型
|
|
94
|
+
/// </summary>
|
|
95
|
+
public double ActivityType;
|
|
96
|
+
/// <summary>
|
|
97
|
+
/// 活动结束时间
|
|
98
|
+
/// </summary>
|
|
99
|
+
public string ActivityEndType;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
#region get字段
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
#endregion
|
|
115
|
+
|
|
116
|
+
#region uid map
|
|
117
|
+
protected static Dictionary<int, 主题信息表> _tempDictByCurriculumId;
|
|
118
|
+
public static 主题信息表 GetConfigByCurriculumId(int CurriculumId)
|
|
119
|
+
{
|
|
120
|
+
if (_tempDictByCurriculumId == null)
|
|
121
|
+
{
|
|
122
|
+
_tempDictByCurriculumId = new Dictionary<int, 主题信息表>();
|
|
123
|
+
Configs.ForEach(c =>
|
|
124
|
+
{
|
|
125
|
+
_tempDictByCurriculumId.Add(c.CurriculumId, c);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return _tempDictByCurriculumId.GetValueOrDefault(CurriculumId);
|
|
129
|
+
}
|
|
130
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByCurriculumName = new Dictionary<string, 主题信息表[]>();
|
|
131
|
+
public static 主题信息表[] GetConfigsByCurriculumName(string CurriculumName)
|
|
132
|
+
{
|
|
133
|
+
if (_tempRecordsDictByCurriculumName.ContainsKey(CurriculumName))
|
|
134
|
+
{
|
|
135
|
+
return _tempRecordsDictByCurriculumName.GetValueOrDefault(CurriculumName);
|
|
136
|
+
}
|
|
137
|
+
else
|
|
138
|
+
{
|
|
139
|
+
var records = Configs.Where(c => c.CurriculumName == CurriculumName).ToArray();
|
|
140
|
+
_tempRecordsDictByCurriculumName.Add(CurriculumName, records);
|
|
141
|
+
return records;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByCurriculumDescription = new Dictionary<string, 主题信息表[]>();
|
|
145
|
+
public static 主题信息表[] GetConfigsByCurriculumDescription(string CurriculumDescription)
|
|
146
|
+
{
|
|
147
|
+
if (_tempRecordsDictByCurriculumDescription.ContainsKey(CurriculumDescription))
|
|
148
|
+
{
|
|
149
|
+
return _tempRecordsDictByCurriculumDescription.GetValueOrDefault(CurriculumDescription);
|
|
150
|
+
}
|
|
151
|
+
else
|
|
152
|
+
{
|
|
153
|
+
var records = Configs.Where(c => c.CurriculumDescription == CurriculumDescription).ToArray();
|
|
154
|
+
_tempRecordsDictByCurriculumDescription.Add(CurriculumDescription, records);
|
|
155
|
+
return records;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByWorldIconPath = new Dictionary<string, 主题信息表[]>();
|
|
159
|
+
public static 主题信息表[] GetConfigsByWorldIconPath(string WorldIconPath)
|
|
160
|
+
{
|
|
161
|
+
if (_tempRecordsDictByWorldIconPath.ContainsKey(WorldIconPath))
|
|
162
|
+
{
|
|
163
|
+
return _tempRecordsDictByWorldIconPath.GetValueOrDefault(WorldIconPath);
|
|
164
|
+
}
|
|
165
|
+
else
|
|
166
|
+
{
|
|
167
|
+
var records = Configs.Where(c => c.WorldIconPath == WorldIconPath).ToArray();
|
|
168
|
+
_tempRecordsDictByWorldIconPath.Add(WorldIconPath, records);
|
|
169
|
+
return records;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByVideo = new Dictionary<string, 主题信息表[]>();
|
|
173
|
+
public static 主题信息表[] GetConfigsByVideo(string Video)
|
|
174
|
+
{
|
|
175
|
+
if (_tempRecordsDictByVideo.ContainsKey(Video))
|
|
176
|
+
{
|
|
177
|
+
return _tempRecordsDictByVideo.GetValueOrDefault(Video);
|
|
178
|
+
}
|
|
179
|
+
else
|
|
180
|
+
{
|
|
181
|
+
var records = Configs.Where(c => c.Video == Video).ToArray();
|
|
182
|
+
_tempRecordsDictByVideo.Add(Video, records);
|
|
183
|
+
return records;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByListIconPath = new Dictionary<string, 主题信息表[]>();
|
|
187
|
+
public static 主题信息表[] GetConfigsByListIconPath(string ListIconPath)
|
|
188
|
+
{
|
|
189
|
+
if (_tempRecordsDictByListIconPath.ContainsKey(ListIconPath))
|
|
190
|
+
{
|
|
191
|
+
return _tempRecordsDictByListIconPath.GetValueOrDefault(ListIconPath);
|
|
192
|
+
}
|
|
193
|
+
else
|
|
194
|
+
{
|
|
195
|
+
var records = Configs.Where(c => c.ListIconPath == ListIconPath).ToArray();
|
|
196
|
+
_tempRecordsDictByListIconPath.Add(ListIconPath, records);
|
|
197
|
+
return records;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByCurriculumType = new Dictionary<string, 主题信息表[]>();
|
|
201
|
+
public static 主题信息表[] GetConfigsByCurriculumType(string CurriculumType)
|
|
202
|
+
{
|
|
203
|
+
if (_tempRecordsDictByCurriculumType.ContainsKey(CurriculumType))
|
|
204
|
+
{
|
|
205
|
+
return _tempRecordsDictByCurriculumType.GetValueOrDefault(CurriculumType);
|
|
206
|
+
}
|
|
207
|
+
else
|
|
208
|
+
{
|
|
209
|
+
var records = Configs.Where(c => c.CurriculumType == CurriculumType).ToArray();
|
|
210
|
+
_tempRecordsDictByCurriculumType.Add(CurriculumType, records);
|
|
211
|
+
return records;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
protected static Dictionary<double, 主题信息表[]> _tempRecordsDictByUnlockType = new Dictionary<double, 主题信息表[]>();
|
|
216
|
+
public static 主题信息表[] GetConfigsByUnlockType(double UnlockType)
|
|
217
|
+
{
|
|
218
|
+
if (_tempRecordsDictByUnlockType.ContainsKey(UnlockType))
|
|
219
|
+
{
|
|
220
|
+
return _tempRecordsDictByUnlockType.GetValueOrDefault(UnlockType);
|
|
221
|
+
}
|
|
222
|
+
else
|
|
223
|
+
{
|
|
224
|
+
var records = Configs.Where(c => c.UnlockType == UnlockType).ToArray();
|
|
225
|
+
_tempRecordsDictByUnlockType.Add(UnlockType, records);
|
|
226
|
+
return records;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
protected static Dictionary<double, 主题信息表[]> _tempRecordsDictByActivityType = new Dictionary<double, 主题信息表[]>();
|
|
230
|
+
public static 主题信息表[] GetConfigsByActivityType(double ActivityType)
|
|
231
|
+
{
|
|
232
|
+
if (_tempRecordsDictByActivityType.ContainsKey(ActivityType))
|
|
233
|
+
{
|
|
234
|
+
return _tempRecordsDictByActivityType.GetValueOrDefault(ActivityType);
|
|
235
|
+
}
|
|
236
|
+
else
|
|
237
|
+
{
|
|
238
|
+
var records = Configs.Where(c => c.ActivityType == ActivityType).ToArray();
|
|
239
|
+
_tempRecordsDictByActivityType.Add(ActivityType, records);
|
|
240
|
+
return records;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
protected static Dictionary<string, 主题信息表[]> _tempRecordsDictByActivityEndType = new Dictionary<string, 主题信息表[]>();
|
|
244
|
+
public static 主题信息表[] GetConfigsByActivityEndType(string ActivityEndType)
|
|
245
|
+
{
|
|
246
|
+
if (_tempRecordsDictByActivityEndType.ContainsKey(ActivityEndType))
|
|
247
|
+
{
|
|
248
|
+
return _tempRecordsDictByActivityEndType.GetValueOrDefault(ActivityEndType);
|
|
249
|
+
}
|
|
250
|
+
else
|
|
251
|
+
{
|
|
252
|
+
var records = Configs.Where(c => c.ActivityEndType == ActivityEndType).ToArray();
|
|
253
|
+
_tempRecordsDictByActivityEndType.Add(ActivityEndType, records);
|
|
254
|
+
return records;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
#endregion uid map
|
|
259
|
+
|
|
260
|
+
#region 生成fk.get/set
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
#endregion 生成fk.get/set
|
|
284
|
+
}
|
|
285
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.Linq;
|
|
4
|
+
|
|
5
|
+
namespace MEEC.ExportedConfigs{
|
|
6
|
+
public partial class 主题对应unit {
|
|
7
|
+
|
|
8
|
+
public static List<主题对应unit> Configs = new List<主题对应unit>()
|
|
9
|
+
{
|
|
10
|
+
new 主题对应unit(1000, new int[]{1001, 1002, 1003}),
|
|
11
|
+
new 主题对应unit(2000, new int[]{2001}),
|
|
12
|
+
new 主题对应unit(3000, new int[]{3001}),
|
|
13
|
+
new 主题对应unit(4000, new int[]{4001, 4002, 4003}),
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
public 主题对应unit() { }
|
|
17
|
+
public 主题对应unit(int curriculum_id, int[] unit_id)
|
|
18
|
+
{
|
|
19
|
+
this.CurriculumId = curriculum_id;
|
|
20
|
+
this.UnitId = unit_id;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public virtual 主题对应unit MergeFrom(主题对应unit source)
|
|
24
|
+
{
|
|
25
|
+
this.CurriculumId = source.CurriculumId;
|
|
26
|
+
this.UnitId = source.UnitId;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public virtual 主题对应unit Clone()
|
|
31
|
+
{
|
|
32
|
+
var config = new 主题对应unit();
|
|
33
|
+
config.MergeFrom(this);
|
|
34
|
+
return config;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/// <summary>
|
|
39
|
+
/// 主题id
|
|
40
|
+
/// </summary>
|
|
41
|
+
public int CurriculumId;
|
|
42
|
+
/// <summary>
|
|
43
|
+
/// unit_id
|
|
44
|
+
/// </summary>
|
|
45
|
+
public int[] UnitId;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
#region get字段
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
#endregion
|
|
52
|
+
|
|
53
|
+
#region uid map
|
|
54
|
+
protected static Dictionary<int, 主题对应unit> _tempDictByCurriculumId;
|
|
55
|
+
public static 主题对应unit GetConfigByCurriculumId(int CurriculumId)
|
|
56
|
+
{
|
|
57
|
+
if (_tempDictByCurriculumId == null)
|
|
58
|
+
{
|
|
59
|
+
_tempDictByCurriculumId = new Dictionary<int, 主题对应unit>();
|
|
60
|
+
Configs.ForEach(c =>
|
|
61
|
+
{
|
|
62
|
+
_tempDictByCurriculumId.Add(c.CurriculumId, c);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return _tempDictByCurriculumId.GetValueOrDefault(CurriculumId);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#endregion uid map
|
|
70
|
+
|
|
71
|
+
#region 生成fk.get/set
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
protected Unit[] _fkUnitId=null;
|
|
76
|
+
/**
|
|
77
|
+
* unit_id
|
|
78
|
+
**/
|
|
79
|
+
public virtual Unit[] UnitIdDataList{
|
|
80
|
+
get{
|
|
81
|
+
if(this._fkUnitId==null){
|
|
82
|
+
if(null==this.UnitId){
|
|
83
|
+
this._fkUnitId = new Unit[0];
|
|
84
|
+
}else{
|
|
85
|
+
this._fkUnitId=MEEC.ExportedConfigs.Unit.Configs.FindAll(a=>a.UnitId!=null && this.UnitId!.Contains(a.UnitId)).ToArray();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return this._fkUnitId;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
#endregion 生成fk.get/set
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
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 任务小结(1001, "云朵博物馆", "知识点1", "第二个知识点1"),
|
|
11
|
+
new 任务小结(1002, "消化道历险记", "知识点2", "第二个知识点2"),
|
|
12
|
+
new 任务小结(1003, "人体警卫员", "知识点3", "第二个知识点3"),
|
|
13
|
+
new 任务小结(2001, "航天服大修理", "微重力是空间站内的一种特殊环境,当重力很小的时候,人和物会处于漂浮状态。", "航天服由头盔和躯干组成,躯干部分由多层材料制成,内部为棉质舒适层,中间由橡胶制成气密层,外部由特种纤维制成防护层,头盔面罩则由纯金制成。"),
|
|
14
|
+
new 任务小结(3001, "古籍失窃之谜", "知识点5", "第二个知识点5"),
|
|
15
|
+
new 任务小结(4001, "block101-动物放生", "知识点6", "第二个知识点6"),
|
|
16
|
+
new 任务小结(4002, "block101-熊猫救援", "知识点7", "第二个知识点7"),
|
|
17
|
+
new 任务小结(4003, "block101-稀有矿产", "知识点8", "第二个知识点8"),
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
public 任务小结() { }
|
|
21
|
+
public 任务小结(int unit_id, string unit_name, string knowledge1, string knowledge2)
|
|
22
|
+
{
|
|
23
|
+
this.UnitId = unit_id;
|
|
24
|
+
this.UnitName = unit_name;
|
|
25
|
+
this.Knowledge1 = knowledge1;
|
|
26
|
+
this.Knowledge2 = knowledge2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public virtual 任务小结 MergeFrom(任务小结 source)
|
|
30
|
+
{
|
|
31
|
+
this.UnitId = source.UnitId;
|
|
32
|
+
this.UnitName = source.UnitName;
|
|
33
|
+
this.Knowledge1 = source.Knowledge1;
|
|
34
|
+
this.Knowledge2 = source.Knowledge2;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public virtual 任务小结 Clone()
|
|
39
|
+
{
|
|
40
|
+
var config = new 任务小结();
|
|
41
|
+
config.MergeFrom(this);
|
|
42
|
+
return config;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/// <summary>
|
|
47
|
+
/// unit_id
|
|
48
|
+
/// </summary>
|
|
49
|
+
public int UnitId;
|
|
50
|
+
/// <summary>
|
|
51
|
+
/// 名称
|
|
52
|
+
/// </summary>
|
|
53
|
+
public string UnitName;
|
|
54
|
+
/// <summary>
|
|
55
|
+
/// 知识点1
|
|
56
|
+
/// </summary>
|
|
57
|
+
public string Knowledge1;
|
|
58
|
+
/// <summary>
|
|
59
|
+
/// 知识点2
|
|
60
|
+
/// </summary>
|
|
61
|
+
public string Knowledge2;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#region get字段
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#endregion
|
|
70
|
+
|
|
71
|
+
#region uid map
|
|
72
|
+
protected static Dictionary<int, 任务小结> _tempDictByUnitId;
|
|
73
|
+
public static 任务小结 GetConfigByUnitId(int UnitId)
|
|
74
|
+
{
|
|
75
|
+
if (_tempDictByUnitId == null)
|
|
76
|
+
{
|
|
77
|
+
_tempDictByUnitId = new Dictionary<int, 任务小结>();
|
|
78
|
+
Configs.ForEach(c =>
|
|
79
|
+
{
|
|
80
|
+
_tempDictByUnitId.Add(c.UnitId, c);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return _tempDictByUnitId.GetValueOrDefault(UnitId);
|
|
84
|
+
}
|
|
85
|
+
protected static Dictionary<string, 任务小结[]> _tempRecordsDictByUnitName = new Dictionary<string, 任务小结[]>();
|
|
86
|
+
public static 任务小结[] GetConfigsByUnitName(string UnitName)
|
|
87
|
+
{
|
|
88
|
+
if (_tempRecordsDictByUnitName.ContainsKey(UnitName))
|
|
89
|
+
{
|
|
90
|
+
return _tempRecordsDictByUnitName.GetValueOrDefault(UnitName);
|
|
91
|
+
}
|
|
92
|
+
else
|
|
93
|
+
{
|
|
94
|
+
var records = Configs.Where(c => c.UnitName == UnitName).ToArray();
|
|
95
|
+
_tempRecordsDictByUnitName.Add(UnitName, records);
|
|
96
|
+
return records;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
protected static Dictionary<string, 任务小结[]> _tempRecordsDictByKnowledge1 = new Dictionary<string, 任务小结[]>();
|
|
100
|
+
public static 任务小结[] GetConfigsByKnowledge1(string Knowledge1)
|
|
101
|
+
{
|
|
102
|
+
if (_tempRecordsDictByKnowledge1.ContainsKey(Knowledge1))
|
|
103
|
+
{
|
|
104
|
+
return _tempRecordsDictByKnowledge1.GetValueOrDefault(Knowledge1);
|
|
105
|
+
}
|
|
106
|
+
else
|
|
107
|
+
{
|
|
108
|
+
var records = Configs.Where(c => c.Knowledge1 == Knowledge1).ToArray();
|
|
109
|
+
_tempRecordsDictByKnowledge1.Add(Knowledge1, records);
|
|
110
|
+
return records;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
protected static Dictionary<string, 任务小结[]> _tempRecordsDictByKnowledge2 = new Dictionary<string, 任务小结[]>();
|
|
114
|
+
public static 任务小结[] GetConfigsByKnowledge2(string Knowledge2)
|
|
115
|
+
{
|
|
116
|
+
if (_tempRecordsDictByKnowledge2.ContainsKey(Knowledge2))
|
|
117
|
+
{
|
|
118
|
+
return _tempRecordsDictByKnowledge2.GetValueOrDefault(Knowledge2);
|
|
119
|
+
}
|
|
120
|
+
else
|
|
121
|
+
{
|
|
122
|
+
var records = Configs.Where(c => c.Knowledge2 == Knowledge2).ToArray();
|
|
123
|
+
_tempRecordsDictByKnowledge2.Add(Knowledge2, records);
|
|
124
|
+
return records;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
#endregion uid map
|
|
129
|
+
|
|
130
|
+
#region 生成fk.get/set
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
#endregion 生成fk.get/set
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 任务表(10001, "无人机升空", "10001", true, "Mars/unit1"),
|
|
11
|
+
new 任务表(10002, "火箭着陆", "10001", true, "Mars/unit2"),
|
|
12
|
+
new 任务表(10003, "祝融经过", "10001", true, "Mars/unit3"),
|
|
13
|
+
new 任务表(10004, "运输车经过", "10001", true, "Mars/unit4"),
|
|
14
|
+
new 任务表(10005, "祝融自拍", "10001", true, "Mars/unit5"),
|
|
15
|
+
new 任务表(11001, "认识独角鲸", "10002", true, "shenhai_1"),
|
|
16
|
+
new 任务表(11002, "认识尖吻鲛", "10002", true, "shenhai_1"),
|
|
17
|
+
new 任务表(11003, "认识尖牙鱼", "10002", true, "shenhai_2"),
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
public 任务表() { }
|
|
21
|
+
public 任务表(int task_id, string task_name, string belong_unit_id, bool can_repeat, string map_id)
|
|
22
|
+
{
|
|
23
|
+
this.TaskId = task_id;
|
|
24
|
+
this.TaskName = task_name;
|
|
25
|
+
this.BelongUnitId = belong_unit_id;
|
|
26
|
+
this.CanRepeat = can_repeat;
|
|
27
|
+
this.MapId = map_id;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public virtual 任务表 MergeFrom(任务表 source)
|
|
31
|
+
{
|
|
32
|
+
this.TaskId = source.TaskId;
|
|
33
|
+
this.TaskName = source.TaskName;
|
|
34
|
+
this.BelongUnitId = source.BelongUnitId;
|
|
35
|
+
this.CanRepeat = source.CanRepeat;
|
|
36
|
+
this.MapId = source.MapId;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public virtual 任务表 Clone()
|
|
41
|
+
{
|
|
42
|
+
var config = new 任务表();
|
|
43
|
+
config.MergeFrom(this);
|
|
44
|
+
return config;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/// <summary>
|
|
49
|
+
/// 任务id
|
|
50
|
+
/// </summary>
|
|
51
|
+
public int TaskId;
|
|
52
|
+
/// <summary>
|
|
53
|
+
/// 名称
|
|
54
|
+
/// </summary>
|
|
55
|
+
public string TaskName;
|
|
56
|
+
/// <summary>
|
|
57
|
+
/// 所属unit
|
|
58
|
+
/// </summary>
|
|
59
|
+
public string BelongUnitId;
|
|
60
|
+
/// <summary>
|
|
61
|
+
/// 是否可重复完成
|
|
62
|
+
/// </summary>
|
|
63
|
+
public bool CanRepeat;
|
|
64
|
+
/// <summary>
|
|
65
|
+
/// 地图
|
|
66
|
+
/// </summary>
|
|
67
|
+
public string MapId;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
#region get字段
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
#endregion
|
|
77
|
+
|
|
78
|
+
#region uid map
|
|
79
|
+
protected static Dictionary<int, 任务表> _tempDictByTaskId;
|
|
80
|
+
public static 任务表 GetConfigByTaskId(int TaskId)
|
|
81
|
+
{
|
|
82
|
+
if (_tempDictByTaskId == null)
|
|
83
|
+
{
|
|
84
|
+
_tempDictByTaskId = new Dictionary<int, 任务表>();
|
|
85
|
+
Configs.ForEach(c =>
|
|
86
|
+
{
|
|
87
|
+
_tempDictByTaskId.Add(c.TaskId, c);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return _tempDictByTaskId.GetValueOrDefault(TaskId);
|
|
91
|
+
}
|
|
92
|
+
protected static Dictionary<string, 任务表[]> _tempRecordsDictByTaskName = new Dictionary<string, 任务表[]>();
|
|
93
|
+
public static 任务表[] GetConfigsByTaskName(string TaskName)
|
|
94
|
+
{
|
|
95
|
+
if (_tempRecordsDictByTaskName.ContainsKey(TaskName))
|
|
96
|
+
{
|
|
97
|
+
return _tempRecordsDictByTaskName.GetValueOrDefault(TaskName);
|
|
98
|
+
}
|
|
99
|
+
else
|
|
100
|
+
{
|
|
101
|
+
var records = Configs.Where(c => c.TaskName == TaskName).ToArray();
|
|
102
|
+
_tempRecordsDictByTaskName.Add(TaskName, records);
|
|
103
|
+
return records;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
protected static Dictionary<string, 任务表[]> _tempRecordsDictByBelongUnitId = new Dictionary<string, 任务表[]>();
|
|
107
|
+
public static 任务表[] GetConfigsByBelongUnitId(string BelongUnitId)
|
|
108
|
+
{
|
|
109
|
+
if (_tempRecordsDictByBelongUnitId.ContainsKey(BelongUnitId))
|
|
110
|
+
{
|
|
111
|
+
return _tempRecordsDictByBelongUnitId.GetValueOrDefault(BelongUnitId);
|
|
112
|
+
}
|
|
113
|
+
else
|
|
114
|
+
{
|
|
115
|
+
var records = Configs.Where(c => c.BelongUnitId == BelongUnitId).ToArray();
|
|
116
|
+
_tempRecordsDictByBelongUnitId.Add(BelongUnitId, records);
|
|
117
|
+
return records;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
protected static Dictionary<string, 任务表[]> _tempRecordsDictByMapId = new Dictionary<string, 任务表[]>();
|
|
122
|
+
public static 任务表[] GetConfigsByMapId(string MapId)
|
|
123
|
+
{
|
|
124
|
+
if (_tempRecordsDictByMapId.ContainsKey(MapId))
|
|
125
|
+
{
|
|
126
|
+
return _tempRecordsDictByMapId.GetValueOrDefault(MapId);
|
|
127
|
+
}
|
|
128
|
+
else
|
|
129
|
+
{
|
|
130
|
+
var records = Configs.Where(c => c.MapId == MapId).ToArray();
|
|
131
|
+
_tempRecordsDictByMapId.Add(MapId, records);
|
|
132
|
+
return records;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
#endregion uid map
|
|
137
|
+
|
|
138
|
+
#region 生成fk.get/set
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
#endregion 生成fk.get/set
|
|
150
|
+
}
|
|
151
|
+
}
|