lcy
7 天以前 485db99b5c51a971c173664cf6e808dc8424b0a0
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;
    }
}