Elin Decompiled Documentation EA 23.179 Nightly
Loading...
Searching...
No Matches
SourceFood Class Reference
Inheritance diagram for SourceFood:
SourceThingV SourceDataString< SourceThingV.Row >

Classes

class  Row2
 

Public Member Functions

override Row CreateRow ()
 
override void SetRow (Row r)
 
override void Reset ()
 
override void OnImportRow (Row _r, SourceThing.Row c)
 
- Public Member Functions inherited from SourceThingV
override Row CreateRow ()
 
override void SetRow (Row r)
 
override void RestorePref ()
 
override void ValidatePref ()
 
override void Reset ()
 
override void OnAfterImportData ()
 
virtual void OnImportRow (Row _r, SourceThing.Row c)
 
- Public Member Functions inherited from SourceDataString< SourceThingV.Row >
override T GetRow (string id)
 

Additional Inherited Members

- Properties inherited from SourceThingV
override string[] ImportFields [get]
 

Detailed Description

Definition at line 4 of file SourceFood.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceFood.CreateRow ( )
inline

Definition at line 52 of file SourceFood.cs.

53 {
54 return new Row2
55 {
56 id = SourceData.GetString(0),
57 _origin = SourceData.GetString(1),
58 name_JP = SourceData.GetString(2),
59 unit_JP = SourceData.GetString(3),
60 name = SourceData.GetString(4),
61 unit = SourceData.GetString(5),
62 name2_JP = SourceData.GetStringArray(6),
63 name2 = SourceData.GetStringArray(7),
64 unknown_JP = SourceData.GetString(8),
65 unknown = SourceData.GetString(9),
66 tiles = SourceData.GetIntArray(10),
67 parse = SourceData.GetStringArray(11),
68 vals = SourceData.GetStringArray(12),
69 trait = SourceData.GetStringArray(13),
70 elements = Core.ParseElements(SourceData.GetStr(14)),
71 idTaste = SourceData.GetString(16),
72 TST = SourceData.GetInt(17),
73 NUT = SourceData.GetInt(18),
74 STR = SourceData.GetInt(19),
75 STR2 = SourceData.GetInt(20),
76 END = SourceData.GetInt(21),
77 END2 = SourceData.GetInt(22),
78 DEX = SourceData.GetInt(23),
79 DEX2 = SourceData.GetInt(24),
80 PER = SourceData.GetInt(25),
81 PER2 = SourceData.GetInt(26),
82 LER = SourceData.GetInt(27),
83 LER2 = SourceData.GetInt(28),
84 WIL = SourceData.GetInt(29),
85 WIL2 = SourceData.GetInt(30),
86 MAG = SourceData.GetInt(31),
87 MAG2 = SourceData.GetInt(32),
88 CHA = SourceData.GetInt(33),
89 CHA2 = SourceData.GetInt(34),
90 LV = SourceData.GetInt(36),
91 chance = SourceData.GetInt(37),
92 value = SourceData.GetInt(38),
93 weight = SourceData.GetInt(39),
94 recipeKey = SourceData.GetStringArray(40),
95 factory = SourceData.GetStringArray(41),
96 components = SourceData.GetStringArray(42),
97 defMat = SourceData.GetString(43),
98 category = SourceData.GetString(44),
99 tag = SourceData.GetStringArray(45),
100 detail_JP = SourceData.GetString(46),
101 detail = SourceData.GetString(47)
102 };
103 }
Definition: Core.cs:14
static int[] ParseElements(string str)
Definition: Core.cs:721
static string[] GetStringArray(int id)
Definition: SourceData.cs:741
static string GetString(int id)
Definition: SourceData.cs:746
static int GetInt(int id)
Definition: SourceData.cs:711
static string GetStr(int id, bool useDefault=false)
Definition: SourceData.cs:751
static int[] GetIntArray(int id)
Definition: SourceData.cs:736

References SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetIntArray(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and Core.ParseElements().

◆ OnImportRow()

override void SourceFood.OnImportRow ( Row  _r,
SourceThing::Row  c 
)
inlinevirtual

Reimplemented from SourceThingV.

Definition at line 116 of file SourceFood.cs.

117 {
118 List<int> list = new List<int>(c.elements);
119 Row2 row = _r as Row2;
120 Add(10, row.NUT);
121 Parse(row.STR, 70, row.STR2, 440);
122 Parse(row.END, 71, row.END2, 441);
123 Parse(row.DEX, 72, row.DEX2, 442);
124 Parse(row.PER, 73, row.PER2, 443);
125 Parse(row.LER, 74, row.LER2, 444);
126 Parse(row.WIL, 75, row.WIL2, 445);
127 Parse(row.MAG, 76, row.MAG2, 446);
128 Parse(row.CHA, 77, row.CHA2, 447);
129 for (int i = 0; i < row.elements.Length; i += 2)
130 {
131 Add(_r.elements[i], row.elements[i + 1]);
132 }
133 c.elements = list.ToArray();
134 c.name2 = row.name2;
135 c.name2_JP = row.name2_JP;
136 c.unknown = row.unknown;
137 c.unknown_JP = row.unknown_JP;
138 if (!row.unit_JP.IsEmpty())
139 {
140 c.unit_JP = row.unit_JP;
141 }
142 void Add(int ele, int a)
143 {
144 list.Add(ele);
145 list.Add(a);
146 }
147 void Parse(int raw, int ele, int raw2, int ele2)
148 {
149 if (raw != 0)
150 {
151 Add(ele, raw);
152 }
153 if (raw2 != 0)
154 {
155 Add(ele2, raw2);
156 }
157 }
158 }
list. Add(item3)
int[] elements
Definition: CardRow.cs:21

References Add(), SourceFood.Row2.CHA, SourceFood.Row2.CHA2, SourceFood.Row2.DEX, SourceFood.Row2.DEX2, CardRow.elements, SourceFood.Row2.END, SourceFood.Row2.END2, SourceFood.Row2.LER, SourceFood.Row2.LER2, SourceFood.Row2.MAG, SourceFood.Row2.MAG2, CardRow.name2, CardRow.name2_JP, SourceFood.Row2.NUT, SourceFood.Row2.PER, SourceFood.Row2.PER2, SourceFood.Row2.STR, SourceFood.Row2.STR2, SourceThing.Row.unit_JP, SourceThing.Row.unknown, SourceThing.Row.unknown_JP, SourceFood.Row2.WIL, and SourceFood.Row2.WIL2.

◆ Reset()

override void SourceFood.Reset ( )
inline

Definition at line 110 of file SourceFood.cs.

111 {
112 base.Reset();
113 EClass.sources.things.Reset();
114 }
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
SourceThing things

References EClass.sources, and SourceManager.things.

◆ SetRow()

override void SourceFood.SetRow ( Row  r)
inline

Definition at line 105 of file SourceFood.cs.

106 {
107 map[r.id] = r;
108 }

References CardRow.id.


The documentation for this class was generated from the following file: