1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| using System.Collections;
| using System.Collections.Generic;
| using System.Text;
| namespace TableConfig
| {
| public partial class ItemPlusConfig : ConfigBase, IConfigPostProcess
| {
| private static Dictionary<string, ItemPlusConfig> t_ItemP = new Dictionary<string, ItemPlusConfig>();
|
| public void OnConfigParseCompleted()
| {
| t_ItemP.Add(StringUtility.Contact(type, level).ToString(), this);
| }
|
| public static ItemPlusConfig GetTypeAndGrade(int _type, int _level)
| {
| ItemPlusConfig itemPlus = null;
| t_ItemP.TryGetValue(StringUtility.Contact(_type, _level).ToString(), out itemPlus);
| return itemPlus;
| }
| }
|
|
| }
|
|