Elin Decompiled Documentation EA 23.295 Stable Patch 2
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>()
 
Dictionary< string, string > fuzzyAlias = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
 

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 409 of file SourceElement.cs.

410 {
411 if (map.ContainsKey(id))
412 {
413 return;
414 }
415 Row row = EClass.sources.elements.alias[idOrg];
416 Dictionary<string, System.Reflection.FieldInfo> rowFields = row.GetRowFields();
417 Row row2 = new Row();
418 foreach (System.Reflection.FieldInfo value in rowFields.Values)
419 {
420 value.SetValue(row2, value.GetValue(row));
421 }
422 row2.id = id;
423 row2.idMold = row.id;
424 row2.alias = row.alias + ele.alias.Remove(0, 3);
425 row2.aliasRef = ele.alias;
426 row2.aliasParent = ele.aliasParent;
427 row2.chance = row.chance * ele.chance / 100;
428 row2.LV = row.LV;
429 row2.OnImportData(EClass.sources.elements);
430 rows.Add(row2);
431 }
Definition: EClass.cs:6
static SourceManager sources
Definition: EClass.cs:43
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 287 of file SourceElement.cs.

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

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 377 of file SourceElement.cs.

378 {
380 map.Clear();
381 alias.Clear();
382 foreach (Row row in rows)
383 {
384 map[row.id] = row;
385 alias[row.GetAlias] = row;
386 }
387 int num = 50000;
388 int num2 = 0;
389 for (int i = 910; i < 927; i++)
390 {
391 Row ele = EClass.sources.elements.map[i];
392 AddRow(ele, num + num2 + 100, "ball_");
393 AddRow(ele, num + num2 + 200, "breathe_");
394 AddRow(ele, num + num2 + 300, "bolt_");
395 AddRow(ele, num + num2 + 400, "hand_");
396 AddRow(ele, num + num2 + 500, "arrow_");
397 AddRow(ele, num + num2 + 600, "funnel_");
398 AddRow(ele, num + num2 + 700, "miasma_");
399 AddRow(ele, num + num2 + 800, "weapon_");
400 AddRow(ele, num + num2 + 900, "puddle_");
401 AddRow(ele, num + num2 + 1000, "sword_");
402 AddRow(ele, num + num2 + 1100, "bit_");
403 AddRow(ele, num + num2 + 1200, "flare_");
404 num2++;
405 }
406 initialized = false;
407 }
Definition: Core.cs:14
static Core SetCurrent(Core _current=null)
Definition: Core.cs:590
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 355 of file SourceElement.cs.

356 {
357 hobbies.Clear();
358 foreach (Row row in rows)
359 {
360 if (row.id >= 100 && row.id < 400)
361 {
362 hobbies.Add(row);
363 }
364 row.isAttribute = row.category == "attribute";
365 row.isPrimaryAttribute = row.isAttribute && row.tag.Contains("primary");
366 row.isSkill = row.category == "skill";
367 row.isSpell = row.categorySub == "spell";
368 row.isTrait = row.tag.Contains("trait");
369 }
370 fuzzyAlias.Clear();
371 foreach (string key in alias.Keys)
372 {
373 fuzzyAlias[key] = key;
374 }
375 }
List< Row > hobbies
Dictionary< string, string > fuzzyAlias

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

◆ SetRow()

override void SourceElement.SetRow ( Row  r)
inline

Definition at line 350 of file SourceElement.cs.

351 {
352 map[r.id] = r;
353 }

References SourceElement.Row.id.

Member Data Documentation

◆ fuzzyAlias

Dictionary<string, string> SourceElement.fuzzyAlias = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)

Definition at line 283 of file SourceElement.cs.

Referenced by Core.GetElement(), and OnInit().

◆ hobbies

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

Definition at line 280 of file SourceElement.cs.

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

Property Documentation

◆ ImportFields

override string [] SourceElement.ImportFields
get

Definition at line 285 of file SourceElement.cs.


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