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
|
using System;
using System.Collections.Generic;
using XUtliPoolLib;
namespace XMainClient
{
internal struct XArtifactBuffInfo
{
public uint Type
{
get
{
return this.m_type;
}
}
public uint Id
{
get
{
return this.m_id;
}
}
public List<int> Values
{
get
{
return this.m_values;
}
}
public uint SortId
{
get
{
return this.m_sortId;
}
}
private uint m_type;
private uint m_id;
private uint m_sortId;
private List<int> m_values;
public void Init()
{
this.m_type = 1u;
this.m_id = 0u;
this.m_sortId = 0u;
bool flag = this.m_values == null;
if (flag)
{
this.m_values = new List<int>();
}
else
{
this.m_values.Clear();
}
}
public void SetData(uint effectId, uint type, uint id, List<int> values)
{
this.m_type = type;
this.m_id = id;
this.m_values = values;
EffectTable.RowData rowData = null;
bool flag = type == 1u;
if (flag)
{
rowData = ArtifactDocument.Doc.GetArtifactSkillEffect(effectId, id);
}
else
{
bool flag2 = type == 2u;
if (flag2)
{
rowData = ArtifactDocument.Doc.GetArtifactSkillEffect(effectId, id);
}
}
bool flag3 = rowData != null;
if (flag3)
{
this.m_sortId = (uint)rowData.SortID;
}
else
{
this.m_sortId = 0u;
XSingleton<XDebug>.singleton.AddGreenLog(string.Format("cannot find this effectTable data effectId = {0},id = {1}", effectId, id), null, null, null, null, null);
}
}
}
}
|