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
|
using System;
using System.Collections.Generic;
namespace XUtliPoolLib
{
public class ActionAudio : CVSReader
{
public Dictionary<string, ActionAudio.RowData> Table = new Dictionary<string, ActionAudio.RowData>();
public class RowData
{
public string Prefab;
public string[] Idle;
public string[] Move;
public string[] Jump;
public string[] Fall;
public string[] Charge;
public string[] Freeze;
public string[] Behit;
public string[] Death;
public string[] BehitFly;
public string[] BehitRoll;
public string[] BehitSuperArmor;
}
public ActionAudio.RowData GetByPrefab(string key)
{
bool flag = this.Table.Count == 0;
ActionAudio.RowData result;
if (flag)
{
result = null;
}
else
{
ActionAudio.RowData rowData = null;
this.Table.TryGetValue(key, out rowData);
result = rowData;
}
return result;
}
protected override void ReadLine(XBinaryReader reader)
{
ActionAudio.RowData rowData = new ActionAudio.RowData();
base.Read<string>(reader, ref rowData.Prefab, CVSReader.stringParse);
this.columnno = 0;
base.ReadArray<string>(reader, ref rowData.Idle, CVSReader.stringParse);
this.columnno = 1;
base.ReadArray<string>(reader, ref rowData.Move, CVSReader.stringParse);
this.columnno = 2;
base.ReadArray<string>(reader, ref rowData.Jump, CVSReader.stringParse);
this.columnno = 3;
base.ReadArray<string>(reader, ref rowData.Fall, CVSReader.stringParse);
this.columnno = 4;
base.ReadArray<string>(reader, ref rowData.Charge, CVSReader.stringParse);
this.columnno = 6;
base.ReadArray<string>(reader, ref rowData.Freeze, CVSReader.stringParse);
this.columnno = 7;
base.ReadArray<string>(reader, ref rowData.Behit, CVSReader.stringParse);
this.columnno = 8;
base.ReadArray<string>(reader, ref rowData.Death, CVSReader.stringParse);
this.columnno = 9;
base.ReadArray<string>(reader, ref rowData.BehitFly, CVSReader.stringParse);
this.columnno = 10;
base.ReadArray<string>(reader, ref rowData.BehitRoll, CVSReader.stringParse);
this.columnno = 11;
base.ReadArray<string>(reader, ref rowData.BehitSuperArmor, CVSReader.stringParse);
this.columnno = 12;
this.Table[rowData.Prefab] = rowData;
this.columnno = -1;
}
protected override void OnClear(int lineCount)
{
this.Table.Clear();
}
}
}
|