13 this.AddRow(row,
false);
17 this.AddRow(row2,
true);
19 SourceChara.rowDefaultPCC =
EClass.sources.charas.map[
"chara"];
25 return this.crafters.GetOrCreate(
id, () => (this.map[
id].model.trait as
TraitCrafter) ??
Trait.SelfFactory);
29 public void AddRow(
CardRow row,
bool isChara =
false)
36 row.isChara = isChara;
37 row.elementMap =
Element.GetElementMap(row.elements);
45 if (row2._tileType.IsEmpty())
51 row2.tileType =
TileType.dict[row2._tileType];
54 if (!row._origin.IsEmpty())
56 row.origin =
EClass.sources.things.map[row._origin];
57 if (!this.firstVariations.ContainsKey(row._origin))
59 this.firstVariations[row._origin] = row;
61 row.origin.isOrigin =
true;
65 this.map[row.id] = row;
69 public List<CardRow> rows =
new List<CardRow>();
72 public Dictionary<string, CardRow> map =
new Dictionary<string, CardRow>();
75 public Dictionary<string, CardRow> firstVariations =
new Dictionary<string, CardRow>();
78 public Dictionary<string, TraitCrafter> crafters =
new Dictionary<string, TraitCrafter>();