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

Classes

class  Row
 

Public Member Functions

override Row CreateRow ()
 
override void SetRow (Row r)
 
override void OnInit ()
 
- Public Member Functions inherited from SourceDataString< SourceRace.Row >
override T GetRow (string id)
 

Detailed Description

Definition at line 4 of file SourceRace.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceRace.CreateRow ( )
inline

Definition at line 132 of file SourceRace.cs.

133 {
134 return new Row
135 {
136 id = SourceData.GetString(0),
137 name_JP = SourceData.GetString(1),
138 name = SourceData.GetString(2),
139 playable = SourceData.GetInt(3),
140 tag = SourceData.GetStringArray(4),
141 life = SourceData.GetInt(5),
142 mana = SourceData.GetInt(6),
143 vigor = SourceData.GetInt(7),
144 DV = SourceData.GetInt(8),
145 PV = SourceData.GetInt(9),
146 PDR = SourceData.GetInt(10),
147 EDR = SourceData.GetInt(11),
148 EP = SourceData.GetInt(12),
149 STR = SourceData.GetInt(13),
150 END = SourceData.GetInt(14),
151 DEX = SourceData.GetInt(15),
152 PER = SourceData.GetInt(16),
153 LER = SourceData.GetInt(17),
154 WIL = SourceData.GetInt(18),
155 MAG = SourceData.GetInt(19),
156 CHA = SourceData.GetInt(20),
157 SPD = SourceData.GetInt(21),
158 INT = SourceData.GetInt(23),
159 martial = SourceData.GetInt(24),
160 pen = SourceData.GetInt(25),
161 elements = Core.ParseElements(SourceData.GetStr(26)),
162 skill = SourceData.GetString(27),
164 geneCap = SourceData.GetInt(29),
166 corpse = SourceData.GetStringArray(31),
167 loot = SourceData.GetStringArray(32),
168 blood = SourceData.GetInt(33),
169 meleeStyle = SourceData.GetString(34),
170 castStyle = SourceData.GetString(35),
171 EQ = SourceData.GetStringArray(36),
172 sex = SourceData.GetInt(37),
173 age = SourceData.GetIntArray(38),
174 height = SourceData.GetInt(39),
175 breeder = SourceData.GetInt(40),
178 detail_JP = SourceData.GetString(43),
179 detail = SourceData.GetString(44)
180 };
181 }
Definition: Core.cs:14
static int[] ParseElements(string str)
Definition: Core.cs:714
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 figure, food, fur, SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetIntArray(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), material, and Core.ParseElements().

◆ OnInit()

override void SourceRace.OnInit ( )
inline

Definition at line 188 of file SourceRace.cs.

189 {
190 foreach (Row row in rows)
191 {
192 Dictionary<int, int> dictionary = new Dictionary<int, int>();
193 dictionary[70] = row.STR;
194 dictionary[71] = row.END;
195 dictionary[72] = row.DEX;
196 dictionary[73] = row.PER;
197 dictionary[74] = row.LER;
198 dictionary[75] = row.WIL;
199 dictionary[76] = row.MAG;
200 dictionary[77] = row.CHA;
201 dictionary[79] = row.SPD;
202 dictionary[80] = row.INT;
203 dictionary[100] = row.martial;
204 dictionary[60] = row.life;
205 dictionary[61] = row.mana;
206 dictionary[62] = row.vigor;
207 dictionary[65] = row.PV;
208 dictionary[64] = row.DV;
209 dictionary[55] = row.PDR;
210 dictionary[56] = row.EDR;
211 dictionary[57] = row.EP;
212 dictionary[261] = 1;
213 dictionary[225] = 1;
214 dictionary[255] = 1;
215 dictionary[220] = 1;
216 dictionary[250] = 1;
217 dictionary[101] = 1;
218 dictionary[102] = 1;
219 dictionary[103] = 1;
220 dictionary[107] = 1;
221 dictionary[106] = 1;
222 dictionary[110] = 1;
223 dictionary[111] = 1;
224 dictionary[104] = 1;
225 dictionary[109] = 1;
226 dictionary[108] = 1;
227 dictionary[123] = 1;
228 dictionary[122] = 1;
229 dictionary[120] = 1;
230 dictionary[150] = 1;
231 dictionary[301] = 1;
232 dictionary[306] = 1;
233 row.elementMap = Element.GetElementMap(row.elements, dictionary);
234 row.visibleWithTelepathy = !row.IsUndead && !row.IsMachine && !row.IsHorror;
235 }
236 }
static Dictionary< int, int > GetElementMap(int[] list)
Definition: ELEMENT.cs:521

References SourceRace.Row.CHA, SourceRace.Row.DEX, SourceRace.Row.DV, SourceRace.Row.EDR, SourceRace.Row.elements, SourceRace.Row.END, SourceRace.Row.EP, Element.GetElementMap(), SourceRace.Row.INT, SourceRace.Row.IsHorror, SourceRace.Row.LER, SourceRace.Row.life, SourceRace.Row.MAG, SourceRace.Row.mana, SourceRace.Row.martial, SourceRace.Row.PDR, SourceRace.Row.PER, SourceRace.Row.PV, SourceRace.Row.SPD, SourceRace.Row.STR, SourceRace.Row.vigor, and SourceRace.Row.WIL.

◆ SetRow()

override void SourceRace.SetRow ( Row  r)
inline

Definition at line 183 of file SourceRace.cs.

184 {
185 map[r.id] = r;
186 }

References SourceRace.Row.id.


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