summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/BuffTable.cs
blob: 733f312db563d2117b18be2865229902218ae776 (plain)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
using System;

namespace XUtliPoolLib
{
	public class BuffTable : CVSReader
	{
		public BuffTable.RowData[] Table = null;

		public class RowData
		{
			public int BuffID;

			public byte BuffLevel;

			public float BuffDuration;

			public SeqListRef<float> BuffChangeAttribute;

			public byte[] BuffState;

			public byte BuffMergeType;

			public short TargetType;

			public string BuffIcon;

			public SeqListRef<float> BuffDOT;

			public string BuffFx;

			public string BuffDoodadFx;

			public string BuffName;

			public byte BuffTriggerCond;

			public float BuffTriggerRate;

			public string[] BuffTriggerParam;

			public SeqListRef<int> BuffTriggerBuff;

			public float CostModify;

			public float BuffTriggerCD;

			public SeqListRef<int> AuraAddBuffID;

			public bool BuffIsVisible;

			public string BuffEffectFx;

			public float[] AuraParams;

			public SeqListRef<float> DamageReduce;

			public bool DontShowText;

			public short[] EffectGroup;

			public SeqListRef<int> BuffDOTValueFromCaster;

			public SeqRef<float> ChangeDamage;

			public byte BuffClearType;

			public byte[] ClearTypes;

			public float DamageReflection;

			public uint MobID;

			public SeqRef<float> BuffHP;

			public byte StackMaxCount;

			public short ChangeFightGroup;

			public byte BuffTriggerCount;

			public SeqRef<float> LifeSteal;

			public SeqListRef<string> ReduceSkillCD;

			public int StateParam;

			public bool IsGlobalTrigger;

			public byte[] Tags;

			public string BuffSpriteFx;

			public string MiniMapIcon;

			public string BuffTriggerSkill;

			public SeqListRef<string> ChangeSkillDamage;

			public byte[] SceneEffect;

			public SeqListRef<float> TargetLifeAddAttack;

			public SeqRef<string> AIEvent;

			public string[] RelevantSkills;

			public bool IsTriggerImm;

			public float[] Manipulate;

			public SeqListRef<string> SkillsReplace;

			public SeqListRef<float> SelfLifeAddAttack;

			public SeqListRef<float> ChangeCastDamageByDistance;

			public short Kill;
		}

		protected override void ReadLine(XBinaryReader reader)
		{
			BuffTable.RowData rowData = new BuffTable.RowData();
			base.Read<int>(reader, ref rowData.BuffID, CVSReader.intParse);
			this.columnno = 0;
			base.Read<byte>(reader, ref rowData.BuffLevel, CVSReader.byteParse);
			this.columnno = 1;
			base.Read<float>(reader, ref rowData.BuffDuration, CVSReader.floatParse);
			this.columnno = 2;
			rowData.BuffChangeAttribute.Read(reader, this.m_DataHandler);
			this.columnno = 3;
			base.ReadArray<byte>(reader, ref rowData.BuffState, CVSReader.byteParse);
			this.columnno = 4;
			base.Read<byte>(reader, ref rowData.BuffMergeType, CVSReader.byteParse);
			this.columnno = 5;
			base.Read<short>(reader, ref rowData.TargetType, CVSReader.shortParse);
			this.columnno = 6;
			base.Read<string>(reader, ref rowData.BuffIcon, CVSReader.stringParse);
			this.columnno = 7;
			rowData.BuffDOT.Read(reader, this.m_DataHandler);
			this.columnno = 8;
			base.Read<string>(reader, ref rowData.BuffFx, CVSReader.stringParse);
			this.columnno = 9;
			base.Read<string>(reader, ref rowData.BuffDoodadFx, CVSReader.stringParse);
			this.columnno = 10;
			base.Read<string>(reader, ref rowData.BuffName, CVSReader.stringParse);
			this.columnno = 11;
			base.Read<byte>(reader, ref rowData.BuffTriggerCond, CVSReader.byteParse);
			this.columnno = 12;
			base.Read<float>(reader, ref rowData.BuffTriggerRate, CVSReader.floatParse);
			this.columnno = 13;
			base.ReadArray<string>(reader, ref rowData.BuffTriggerParam, CVSReader.stringParse);
			this.columnno = 14;
			rowData.BuffTriggerBuff.Read(reader, this.m_DataHandler);
			this.columnno = 15;
			base.Read<float>(reader, ref rowData.CostModify, CVSReader.floatParse);
			this.columnno = 16;
			base.Read<float>(reader, ref rowData.BuffTriggerCD, CVSReader.floatParse);
			this.columnno = 18;
			rowData.AuraAddBuffID.Read(reader, this.m_DataHandler);
			this.columnno = 19;
			base.Read<bool>(reader, ref rowData.BuffIsVisible, CVSReader.boolParse);
			this.columnno = 20;
			base.Read<string>(reader, ref rowData.BuffEffectFx, CVSReader.stringParse);
			this.columnno = 21;
			base.ReadArray<float>(reader, ref rowData.AuraParams, CVSReader.floatParse);
			this.columnno = 22;
			rowData.DamageReduce.Read(reader, this.m_DataHandler);
			this.columnno = 23;
			base.Read<bool>(reader, ref rowData.DontShowText, CVSReader.boolParse);
			this.columnno = 24;
			base.ReadArray<short>(reader, ref rowData.EffectGroup, CVSReader.shortParse);
			this.columnno = 25;
			rowData.BuffDOTValueFromCaster.Read(reader, this.m_DataHandler);
			this.columnno = 26;
			rowData.ChangeDamage.Read(reader, this.m_DataHandler);
			this.columnno = 27;
			base.Read<byte>(reader, ref rowData.BuffClearType, CVSReader.byteParse);
			this.columnno = 28;
			base.ReadArray<byte>(reader, ref rowData.ClearTypes, CVSReader.byteParse);
			this.columnno = 29;
			base.Read<float>(reader, ref rowData.DamageReflection, CVSReader.floatParse);
			this.columnno = 30;
			base.Read<uint>(reader, ref rowData.MobID, CVSReader.uintParse);
			this.columnno = 31;
			rowData.BuffHP.Read(reader, this.m_DataHandler);
			this.columnno = 32;
			base.Read<byte>(reader, ref rowData.StackMaxCount, CVSReader.byteParse);
			this.columnno = 33;
			base.Read<short>(reader, ref rowData.ChangeFightGroup, CVSReader.shortParse);
			this.columnno = 34;
			base.Read<byte>(reader, ref rowData.BuffTriggerCount, CVSReader.byteParse);
			this.columnno = 35;
			rowData.LifeSteal.Read(reader, this.m_DataHandler);
			this.columnno = 36;
			rowData.ReduceSkillCD.Read(reader, this.m_DataHandler);
			this.columnno = 37;
			base.Read<int>(reader, ref rowData.StateParam, CVSReader.intParse);
			this.columnno = 38;
			base.Read<bool>(reader, ref rowData.IsGlobalTrigger, CVSReader.boolParse);
			this.columnno = 39;
			base.ReadArray<byte>(reader, ref rowData.Tags, CVSReader.byteParse);
			this.columnno = 40;
			base.Read<string>(reader, ref rowData.BuffSpriteFx, CVSReader.stringParse);
			this.columnno = 41;
			base.Read<string>(reader, ref rowData.MiniMapIcon, CVSReader.stringParse);
			this.columnno = 42;
			base.Read<string>(reader, ref rowData.BuffTriggerSkill, CVSReader.stringParse);
			this.columnno = 43;
			rowData.ChangeSkillDamage.Read(reader, this.m_DataHandler);
			this.columnno = 44;
			base.ReadArray<byte>(reader, ref rowData.SceneEffect, CVSReader.byteParse);
			this.columnno = 45;
			rowData.TargetLifeAddAttack.Read(reader, this.m_DataHandler);
			this.columnno = 46;
			rowData.AIEvent.Read(reader, this.m_DataHandler);
			this.columnno = 47;
			base.ReadArray<string>(reader, ref rowData.RelevantSkills, CVSReader.stringParse);
			this.columnno = 48;
			base.Read<bool>(reader, ref rowData.IsTriggerImm, CVSReader.boolParse);
			this.columnno = 49;
			base.ReadArray<float>(reader, ref rowData.Manipulate, CVSReader.floatParse);
			this.columnno = 50;
			rowData.SkillsReplace.Read(reader, this.m_DataHandler);
			this.columnno = 51;
			rowData.SelfLifeAddAttack.Read(reader, this.m_DataHandler);
			this.columnno = 52;
			rowData.ChangeCastDamageByDistance.Read(reader, this.m_DataHandler);
			this.columnno = 53;
			base.Read<short>(reader, ref rowData.Kill, CVSReader.shortParse);
			this.columnno = 54;
			this.Table[this.lineno] = rowData;
			this.columnno = -1;
		}

		protected override void OnClear(int lineCount)
		{
			bool flag = lineCount > 0;
			if (flag)
			{
				this.Table = new BuffTable.RowData[lineCount];
			}
			else
			{
				this.Table = null;
			}
		}
	}
}