hch
1 天以前 89fa96e505af9fe7baf676591222bfdb23b48262
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
using System.Collections.Generic;
 
// 通用的读config方法
public partial class PhantasmPavilionManager : GameSystemManager<PhantasmPavilionManager>
{
    public bool Has(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return false;
        return handler.HasTableKey(id);
    }
    public List<int> GetTableKeys(PhantasmPavilionType type)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return new List<int>();
        return handler.GetKeyList();
    }
    public string GetName(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return string.Empty;
        if (!Has(type, id))
            return string.Empty;
        return handler.GetName(id);
    }
    public int GetExpireMinutes(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetExpireMinutes(id);
    }
 
    public int GetUnlockWay(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetUnlockWay(id);
    }
 
    public int GetUnlockValue(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetUnlockValue(id);
    }
 
    public int GetUnlockNeedCnt(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetUnlockNeedCnt(id);
    }
 
    public int GetUpNeedCnt(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetUpNeedCnt(id);
    }
    public int GetStarMax(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetStarMax(id);
    }
 
    public int[] GetAttrIDList(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return null;
        if (!Has(type, id))
            return null;
        return handler.GetAttrIDList(id);
    }
    public int[] GetInitAttrValueList(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return null;
        if (!Has(type, id))
            return null;
        return handler.GetInitAttrValueList(id);
    }
 
    public int[] GetAttrPerStarAddList(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return null;
        if (!Has(type, id))
            return null;
        return handler.GetAttrPerStarAddList(id);
    }
 
    public int GetResourceType(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return 0;
        if (!Has(type, id))
            return 0;
        return handler.GetResourceType(id);
    }
 
    public string GetResourceValue(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return string.Empty;
        if (!Has(type, id))
            return string.Empty;
        return handler.GetResourceValue(id);
    }
 
    public string GetGetWayString(PhantasmPavilionType type, int id)
    {
        if (!TryGetHandlerValue(type, out var handler))
            return string.Empty;
        if (!Has(type, id))
            return string.Empty;
        return handler.GetGetWayString(id);
    }
}