lcy
2 天以前 0bafb22817eadd51d0cf54d34e320e833a0fcd97
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;
    }
}