summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/StringTable.cs
blob: f0480f358c23d2fc47e7d56bcb0bcfe698c2d21b (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 StringTable : CVSReader
	{
		public Dictionary<uint, string> Table = new Dictionary<uint, string>();

		public class RowData
		{
			public string Enum;

			public string Text;
		}

		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();
		}
	}
}