lcy
9 天以前 50b767d2f294d66f22fdcdecd23dcd5f4eb8b534
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Collections.Generic;
public partial class ADAwardConfig : ConfigBase<int, ADAwardConfig>
{
    private static Dictionary<int, int> idDict = new Dictionary<int, int>();
    protected override void OnConfigParseCompleted()
    {
        idDict[ADMapID] = ADID;
    }
    public static bool TryGetADIDByADMapID(int ADMapID, out int ADID)
    {
        return idDict.TryGetValue(ADMapID, out ADID) && ADID > 0;
    }
}