2using System.Collections.Generic;
4using System.Reflection;
69 dictionary[row3.id] = row3;
73 if (!row4.pref.UsePref && !row4._origin.IsEmpty())
76 row4.pref = IO.DeepCopy(row.
pref);
101 dictionary[row2.id] = row2;
103 System.Reflection.FieldInfo[] fields =
EClass.
sources.
things.rows[0].GetType().GetFields();
104 foreach (
Row row3
in rows)
108 System.Reflection.FieldInfo[] array = fields;
109 foreach (System.Reflection.FieldInfo fieldInfo in array)
111 if (!(fieldInfo.Name ==
"parse"))
113 row.SetField(fieldInfo.Name, o.GetField<
object>(fieldInfo.Name));
126 if (row3.
value != -1)
128 row.value = row3.
value;
138 if (!row3.
tiles.IsEmpty())
140 row.tiles = row3.
tiles;
142 if (!row3.
skins.IsEmpty())
144 row.skins = row3.
skins;
146 if (!row3.
name.IsEmpty())
148 row.name = row3.
name;
154 if (!row3.
detail.IsEmpty())
162 if (!row3.
unit.IsEmpty())
164 row.unit = row3.
unit;
170 if (!row3.
vals.IsEmpty())
172 row.vals = row3.
vals;
178 if (!row3.
defMat.IsEmpty())
182 if (!row3.
trait.IsEmpty())
184 row.trait = row3.
trait;
194 if (!row3.
tag.IsEmpty())
199 if (!row3.
parse.IsEmpty())
206 row.idExtra = row3.
parse[0];
210 string[] parse = row3.
parse;
211 for (
int i = 0; i < parse.Length; i++)
213 string[] array2 = parse[i].Split(
'/');
217 row._idRenderData = array2[1];
220 row._tileType = array2[1];
223 row.anime = ((array2.Length <= 4) ? ((array2.Length <= 3) ?
new int[2]
241 row.skins =
new int[1] { array2[1].ToInt() };
244 row.altTiles =
new int[1] { array2[1].ToInt() };
245 row.ignoreAltFix =
true;
248 row.naming = array2[1];
251 row.idActorEx = array2[1];
254 row.idSound = array2[1];
267 int[] second =
new int[2]
272 row.elements = row.
elements.Concat(second).ToArray();
static SourceManager sources
static string[] GetStringArray(int id)
static string GetString(int id)
static int GetInt(int id)
static int[] GetIntArray(int id)
override string[] ImportFields
override void RestorePref()
override void OnAfterImportData()
virtual void OnImportRow(Row _r, SourceThing.Row c)
override void SetRow(Row r)
override void ValidatePref()
override void OnImportData(SourceData data)
Dictionary< string, Row > _rows
bool ContainsKey(TKey key)