1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using System.Collections.Generic;
 
public class PhantasmPavilionModelHandler : IPhantasmPavilionHandler
{
    public bool HasTableKey(int id)
    {
        return ModelConfig.HasKey(id);
    }
    public List<int> GetKeyList()
    {
        List<int> allKeys = ModelConfig.GetKeys();
        List<int> validKeys = new List<int>();
 
        for (int i = 0; i < allKeys.Count; i++)
        {
            int id = allKeys[i];
            var modelCfg = ModelConfig.Get(id);
 
            // 过滤未达到开服天数的武将和皮肤形象
            if (PhantasmPavilionManager.Instance.IsFaceOrModelVisible(modelCfg.UnlockWay, modelCfg.UnlockValue))
            {
                validKeys.Add(id);
            }
        }
        return validKeys;
    }
    public int GetResourceType(int id)
    {
        return 0;
    }
    public string GetResourceValue(int id)
    {
        return string.Empty;
    }
 
    public string GetName(int id)
    {
        return ModelConfig.Get(id).Name;
    }
    public int GetExpireMinutes(int id)
    {
        return ModelConfig.Get(id).ExpireMinutes;
    }
    public int GetUnlockWay(int id)
    {
        return ModelConfig.Get(id).UnlockWay;
    }
    public int GetUnlockValue(int id)
    {
        return ModelConfig.Get(id).UnlockValue;
    }
    public int GetUnlockNeedCnt(int id)
    {
        return ModelConfig.Get(id).UnlockNeedCnt;
    }
    public int GetUpNeedCnt(int id)
    {
        return ModelConfig.Get(id).UpNeedCnt;
    }
    public int GetStarMax(int id)
    {
        return ModelConfig.Get(id).StarMax;
    }
    public int[] GetAttrIDList(int id)
    {
        return ModelConfig.Get(id).AttrIDList;
    }
    public int[] GetInitAttrValueList(int id)
    {
        return ModelConfig.Get(id).InitAttrValueList;
    }
    public int[] GetAttrPerStarAddList(int id)
    {
        return ModelConfig.Get(id).AttrPerStarAddList;
    }
    public string GetGetWayString(int id)
    {
        return ModelConfig.Get(id).GetWayString;
    }
    public int GetSortIndex(int id)
    {
        return ModelConfig.Get(id).SortIndex;
    }
}