1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| using System.Collections.Generic;
| public partial class ADAwardConfig : ConfigBase<int, ADAwardConfig>
| {
| private static Dictionary<Int2, ADAwardConfig> idDict = new Dictionary<Int2, ADAwardConfig>();
| protected override void OnConfigParseCompleted()
| {
|
| idDict[new Int2(ADAwardType, ADAwardValue)] = this;
| }
|
| public static bool TryGetADIDByTypeValue(int type, int value, out ADAwardConfig config)
| {
| if (idDict.TryGetValue(new Int2(type, value), out config))
| {
| return true;
| }
| return false;
| }
| }
|
|