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

Classes

class  Row
 

Public Member Functions

override Row CreateRow ()
 
override void SetRow (Row r)
 
override void OnInit ()
 
override void OnAfterImportData ()
 
void AddRow (Row ele, int id, string idOrg)
 
- Public Member Functions inherited from SourceDataInt< SourceElement.Row >
override T GetRow (string id)
 

Public Attributes

List< Rowhobbies = new List<Row>()
 

Properties

override string[] ImportFields [get]
 

Detailed Description

Definition at line 7 of file SourceElement.cs.

Member Function Documentation

◆ AddRow()

void SourceElement.AddRow ( Row  ele,
int  id,
string  idOrg 
)
inline

Definition at line 387 of file SourceElement.cs.

388 {
389 Row row = EClass.sources.elements.alias[idOrg];
390 System.Reflection.FieldInfo[] fields = row.GetType().GetFields();
391 Row row2 = new Row();
392 System.Reflection.FieldInfo[] array = fields;
393 foreach (System.Reflection.FieldInfo fieldInfo in array)
394 {
395 row2.SetField(fieldInfo.Name, row.GetField<object>(fieldInfo.Name));
396 }
397 row2.id = id;
398 row2.idMold = row.id;
399 row2.alias = row.alias + ele.alias.Remove(0, 3);
400 row2.aliasRef = ele.alias;
401 row2.aliasParent = ele.aliasParent;
402 row2.chance = row.chance * ele.chance / 100;
403 row2.LV = row.LV;
404 row2.OnImportData(EClass.sources.elements);
405 rows.Add(row2);
406 }
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
SourceElement elements

References SourceElement.Row.alias, SourceElement.Row.aliasParent, SourceManager.elements, SourceElement.Row.id, SourceElement.Row.LV, and EClass.sources.

Referenced by OnAfterImportData().

◆ CreateRow()

override Row SourceElement.CreateRow ( )
inline

Definition at line 277 of file SourceElement.cs.

278 {
279 return new Row
280 {
281 id = SourceData.GetInt(0),
282 alias = SourceData.GetString(1),
283 name_JP = SourceData.GetString(2),
284 name = SourceData.GetString(3),
285 altname_JP = SourceData.GetString(4),
286 altname = SourceData.GetString(5),
287 aliasParent = SourceData.GetString(6),
288 aliasRef = SourceData.GetString(7),
289 aliasMtp = SourceData.GetString(8),
290 parentFactor = SourceData.GetFloat(9),
291 lvFactor = SourceData.GetInt(10),
292 encFactor = SourceData.GetInt(11),
293 encSlot = SourceData.GetString(12),
294 mtp = SourceData.GetInt(13),
295 LV = SourceData.GetInt(14),
296 chance = SourceData.GetInt(15),
297 value = SourceData.GetInt(16),
298 cost = SourceData.GetIntArray(17),
299 geneSlot = SourceData.GetInt(18),
300 sort = SourceData.GetInt(19),
301 target = SourceData.GetString(20),
302 proc = SourceData.GetStringArray(21),
303 type = SourceData.GetString(22),
304 group = SourceData.GetString(23),
305 category = SourceData.GetString(24),
306 categorySub = SourceData.GetString(25),
307 abilityType = SourceData.GetStringArray(26),
308 tag = SourceData.GetStringArray(27),
309 thing = SourceData.GetString(28),
310 eleP = SourceData.GetInt(29),
311 cooldown = SourceData.GetInt(30),
312 charge = SourceData.GetInt(31),
313 radius = SourceData.GetFloat(32),
314 max = SourceData.GetInt(33),
315 req = SourceData.GetStringArray(34),
316 idTrainer = SourceData.GetString(35),
317 partySkill = SourceData.GetInt(36),
318 tagTrainer = SourceData.GetString(37),
319 levelBonus_JP = SourceData.GetString(38),
320 levelBonus = SourceData.GetString(39),
321 foodEffect = SourceData.GetStringArray(40),
322 langAct = SourceData.GetStringArray(42),
323 detail_JP = SourceData.GetString(43),
324 detail = SourceData.GetString(44),
325 textPhase_JP = SourceData.GetString(45),
326 textPhase = SourceData.GetString(46),
327 textExtra_JP = SourceData.GetString(47),
328 textExtra = SourceData.GetString(48),
329 textInc_JP = SourceData.GetString(49),
330 textInc = SourceData.GetString(50),
331 textDec_JP = SourceData.GetString(51),
332 textDec = SourceData.GetString(52),
333 textAlt_JP = SourceData.GetStringArray(53),
334 textAlt = SourceData.GetStringArray(54),
335 adjective_JP = SourceData.GetStringArray(55),
336 adjective = SourceData.GetStringArray(56)
337 };
338 }
static float GetFloat(int id)
Definition: SourceData.cs:726
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 int[] GetIntArray(int id)
Definition: SourceData.cs:736

References SourceData< T, T2 >.GetFloat(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetIntArray(), SourceData< T, T2 >.GetString(), and SourceData< T, T2 >.GetStringArray().

◆ OnAfterImportData()

override void SourceElement.OnAfterImportData ( )
inline

Definition at line 361 of file SourceElement.cs.

362 {
364 foreach (Row row in rows)
365 {
366 map[row.id] = row;
367 alias[row.GetAlias] = row;
368 }
369 int num = 50000;
370 int num2 = 0;
371 for (int i = 910; i < 927; i++)
372 {
373 Row ele = EClass.sources.elements.map[i];
374 AddRow(ele, num + num2 + 100, "ball_");
375 AddRow(ele, num + num2 + 200, "breathe_");
376 AddRow(ele, num + num2 + 300, "bolt_");
377 AddRow(ele, num + num2 + 400, "hand_");
378 AddRow(ele, num + num2 + 500, "arrow_");
379 AddRow(ele, num + num2 + 600, "funnel_");
380 AddRow(ele, num + num2 + 700, "miasma_");
381 AddRow(ele, num + num2 + 800, "weapon_");
382 AddRow(ele, num + num2 + 900, "puddle_");
383 num2++;
384 }
385 }
Definition: Core.cs:14
static Core SetCurrent(Core _current=null)
Definition: Core.cs:579
void AddRow(Row ele, int id, string idOrg)

References AddRow(), SourceManager.elements, SourceElement.Row.GetAlias, SourceElement.Row.id, Core.SetCurrent(), and EClass.sources.

◆ OnInit()

override void SourceElement.OnInit ( )
inline

Definition at line 345 of file SourceElement.cs.

346 {
347 foreach (Row row in rows)
348 {
349 if (row.id >= 100 && row.id < 400)
350 {
351 hobbies.Add(row);
352 }
353 row.isAttribute = row.category == "attribute";
354 row.isPrimaryAttribute = row.isAttribute && row.tag.Contains("primary");
355 row.isSkill = row.category == "skill";
356 row.isSpell = row.categorySub == "spell";
357 row.isTrait = row.tag.Contains("trait");
358 }
359 }
List< Row > hobbies

References hobbies, SourceElement.Row.id, and SourceElement.Row.tag.

◆ SetRow()

override void SourceElement.SetRow ( Row  r)
inline

Definition at line 340 of file SourceElement.cs.

341 {
342 map[r.id] = r;
343 }

References SourceElement.Row.id.

Member Data Documentation

◆ hobbies

List<Row> SourceElement.hobbies = new List<Row>()

Definition at line 273 of file SourceElement.cs.

Referenced by Biography.Generate(), and OnInit().

Property Documentation

◆ ImportFields

override string [] SourceElement.ImportFields
get

Definition at line 275 of file SourceElement.cs.


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