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;
104 foreach (
Row row3
in rows)
109 foreach (KeyValuePair<string, System.Reflection.FieldInfo>
item in rowFields)
111 item.Deconstruct(out key, out var value);
113 System.Reflection.FieldInfo fieldInfo = value;
114 if (!(text ==
"parse"))
116 fieldInfo.SetValue(row, fieldInfo.GetValue(obj));
129 if (row3.
value != -1)
131 row.value = row3.
value;
141 if (!row3.
tiles.IsEmpty())
143 row.tiles = row3.
tiles;
145 if (!row3.
skins.IsEmpty())
147 row.skins = row3.
skins;
149 if (!row3.
name.IsEmpty())
151 row.name = row3.
name;
157 if (!row3.
detail.IsEmpty())
165 if (!row3.
unit.IsEmpty())
167 row.unit = row3.
unit;
173 if (!row3.
vals.IsEmpty())
175 row.vals = row3.
vals;
181 if (!row3.
defMat.IsEmpty())
185 if (!row3.
trait.IsEmpty())
187 row.trait = row3.
trait;
197 if (!row3.
tag.IsEmpty())
202 if (!row3.
parse.IsEmpty())
210 row.idExtra = row3.
parse[0];
214 string[] parse = row3.
parse;
215 for (
int i = 0; i < parse.Length; i++)
217 string[] array = parse[i].Split(
'/');
221 row.electricity = array[1].ToInt();
224 row._idRenderData = array[1];
227 row._tileType = array[1];
230 row.anime = ((array.Length <= 4) ? ((array.Length <= 3) ?
new int[2]
249 string[] array2 = array[1].Split(
'|');
250 row.skins =
new int[array2.Length];
251 for (
int j = 0; j < array2.Length; j++)
253 row.skins[j] = array2[j].ToInt();
258 row.altTiles =
new int[1] { array[1].ToInt() };
259 row.ignoreAltFix =
true;
262 row.naming = array[1];
265 row.idActorEx = array[1];
268 row.idSound = array[1];
281 int[] second =
new int[2]
286 row.elements = row.elements.Concat(second).ToArray();
static SourceManager sources
Dictionary< string, FieldInfo > GetRowFields()
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()
Dictionary< string, Row > _rows
bool ContainsKey(TKey key)