12 id = SourceData.GetString(0),
13 uid = SourceData.GetInt(1),
14 name_JP = SourceData.GetString(2),
15 name = SourceData.GetString(3),
16 _parent = SourceData.GetString(4),
17 recipeCat = SourceData.GetString(5),
18 slot = Core.GetElement(SourceData.GetStr(6,
false)),
19 skill = Core.GetElement(SourceData.GetStr(7,
false)),
20 maxStack = SourceData.GetInt(8),
21 tileDummy = SourceData.GetInt(9),
22 installOne = SourceData.GetBool(10),
23 ignoreBless = SourceData.GetInt(11),
24 tag = SourceData.GetStringArray(12),
25 idThing = SourceData.GetString(13),
26 recycle = SourceData.GetStringArray(14),
27 costSP = SourceData.GetInt(15),
28 gift = SourceData.GetInt(16),
29 deliver = SourceData.GetInt(17),
30 offer = SourceData.GetInt(18),
31 ticket = SourceData.GetInt(19),
32 sortVal = SourceData.GetInt(20),
33 flag = SourceData.GetInt(21)
44 public override void OnInit()
52 if (!row2._parent.IsEmpty())
56 row3.children.Add(row2);
63 public class Row : SourceData.BaseRow
67 public override bool UseAlias
77 public override string GetAlias
86 public bool IsChildOf(
string id)
88 return this.IsChildOf(
EClass.sources.categories.map[
id]);
94 return r ==
this || (this.parent !=
null && this.parent.IsChildOf(r));
98 public bool IsChildOf(
int _uid)
100 return this.uid == _uid || (this.parent !=
null && this.parent.IsChildOf(_uid));
104 public bool Contatin(
int _uid)
106 if (this.uid == _uid)
110 using (List<
SourceCategory.
Row>.Enumerator enumerator = this.children.GetEnumerator())
112 while (enumerator.MoveNext())
114 if (enumerator.Current.Contatin(_uid))
126 if (this.parent ==
null)
130 return this.parent.GetRoot();
136 if (this.parent ==
null || this.parent.parent ==
null)
140 return this.parent.GetSecondRoot();
144 public string GetIdThing()
146 if (!this.idThing.IsEmpty())
150 return this.parent.GetIdThing();
160 public string name_JP;
166 public string _parent;
169 public string recipeCat;
181 public int tileDummy;
184 public bool installOne;
187 public int ignoreBless;
193 public string idThing;
196 public string[] recycle;
228 public string name_L;