summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/GlobalTable.cs
blob: 58d5609034c0db6a4ceb3b5e985fd715956ecedc (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
using System;
using System.Collections.Generic;

namespace XUtliPoolLib
{
	public class GlobalTable : CVSReader
	{
		public Dictionary<uint, string> Table = new Dictionary<uint, string>();

		public class RowData
		{
			public string Name;

			public string Value;
		}

		protected override void ReadLine(XBinaryReader reader)
		{
			uint key = 0u;
			string value = "";
			base.Read<uint>(reader, ref key, CVSReader.uintParse);
			this.columnno = 0;
			base.Read<string>(reader, ref value, CVSReader.stringParse);
			this.columnno = 1;
			this.Table[key] = value;
			this.columnno = -1;
		}

		protected override void OnClear(int lineCount)
		{
			this.Table.Clear();
		}
	}
}