summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs
blob: 3eac2e834f50dc958ce2c796950aed94c608d7d2 (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
using System;

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

		public class RowData
		{
			public int GuildLevel;

			public uint GuildExpNeed;

			public int PokerTimes;

			public int GuildSign;

			public int GuildWelfare;

			public int GuildStore;

			public int GuildSkill;

			public uint GuildDragon;

			public int GuildActivity;

			public uint StudySkillTimes;

			public int GuildArena;

			public int GuildChallenge;

			public int GuildJokerMatch;

			public int GuildSalay;

			public int GuildMine;

			public int GuildTerritory;

			public uint JZSchoolRoleMax;

			public uint JZSchoolTotalMax;

			public uint JZHallRoleMax;

			public uint JZHallTotalmax;

			public uint JZSalaryOpen;

			public uint JZSaleOpen;

			public int CrossGVG;
		}

		public GuildConfigTable.RowData GetByGuildLevel(int key)
		{
			bool flag = this.Table == null || this.Table.Length == 0;
			GuildConfigTable.RowData result;
			if (flag)
			{
				result = null;
			}
			else
			{
				for (int i = 0; i < this.Table.Length; i++)
				{
					bool flag2 = this.Table[i].GuildLevel == key;
					if (flag2)
					{
						return this.Table[i];
					}
				}
				result = null;
			}
			return result;
		}

		protected override void ReadLine(XBinaryReader reader)
		{
			GuildConfigTable.RowData rowData = new GuildConfigTable.RowData();
			base.Read<int>(reader, ref rowData.GuildLevel, CVSReader.intParse);
			this.columnno = 0;
			base.Read<uint>(reader, ref rowData.GuildExpNeed, CVSReader.uintParse);
			this.columnno = 1;
			base.Read<int>(reader, ref rowData.PokerTimes, CVSReader.intParse);
			this.columnno = 3;
			base.Read<int>(reader, ref rowData.GuildSign, CVSReader.intParse);
			this.columnno = 5;
			base.Read<int>(reader, ref rowData.GuildWelfare, CVSReader.intParse);
			this.columnno = 6;
			base.Read<int>(reader, ref rowData.GuildStore, CVSReader.intParse);
			this.columnno = 7;
			base.Read<int>(reader, ref rowData.GuildSkill, CVSReader.intParse);
			this.columnno = 8;
			base.Read<uint>(reader, ref rowData.GuildDragon, CVSReader.uintParse);
			this.columnno = 13;
			base.Read<int>(reader, ref rowData.GuildActivity, CVSReader.intParse);
			this.columnno = 15;
			base.Read<uint>(reader, ref rowData.StudySkillTimes, CVSReader.uintParse);
			this.columnno = 21;
			base.Read<int>(reader, ref rowData.GuildArena, CVSReader.intParse);
			this.columnno = 23;
			base.Read<int>(reader, ref rowData.GuildChallenge, CVSReader.intParse);
			this.columnno = 26;
			base.Read<int>(reader, ref rowData.GuildJokerMatch, CVSReader.intParse);
			this.columnno = 27;
			base.Read<int>(reader, ref rowData.GuildSalay, CVSReader.intParse);
			this.columnno = 28;
			base.Read<int>(reader, ref rowData.GuildMine, CVSReader.intParse);
			this.columnno = 29;
			base.Read<int>(reader, ref rowData.GuildTerritory, CVSReader.intParse);
			this.columnno = 30;
			base.Read<uint>(reader, ref rowData.JZSchoolRoleMax, CVSReader.uintParse);
			this.columnno = 31;
			base.Read<uint>(reader, ref rowData.JZSchoolTotalMax, CVSReader.uintParse);
			this.columnno = 32;
			base.Read<uint>(reader, ref rowData.JZHallRoleMax, CVSReader.uintParse);
			this.columnno = 33;
			base.Read<uint>(reader, ref rowData.JZHallTotalmax, CVSReader.uintParse);
			this.columnno = 34;
			base.Read<uint>(reader, ref rowData.JZSalaryOpen, CVSReader.uintParse);
			this.columnno = 35;
			base.Read<uint>(reader, ref rowData.JZSaleOpen, CVSReader.uintParse);
			this.columnno = 36;
			base.Read<int>(reader, ref rowData.CrossGVG, CVSReader.intParse);
			this.columnno = 37;
			this.Table[this.lineno] = rowData;
			this.columnno = -1;
		}

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