Elin Decompiled Documentation EA 23.200 Stable
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 395 of file SourceElement.cs.

396 {
397 if (Application.isEditor || !map.ContainsKey(id))
398 {
399 Row row = EClass.sources.elements.alias[idOrg];
400 System.Reflection.FieldInfo[] fields = row.GetType().GetFields();
401 Row row2 = new Row();
402 System.Reflection.FieldInfo[] array = fields;
403 foreach (System.Reflection.FieldInfo fieldInfo in array)
404 {
405 row2.SetField(fieldInfo.Name, row.GetField<object>(fieldInfo.Name));
406 }
407 row2.id = id;
408 row2.idMold = row.id;
409 row2.alias = row.alias + ele.alias.Remove(0, 3);
410 row2.aliasRef = ele.alias;
411 row2.aliasParent = ele.aliasParent;
412 row2.chance = row.chance * ele.chance / 100;
413 row2.LV = row.LV;
414 row2.OnImportData(EClass.sources.elements);
415 rows.Add(row2);
416 }
417 }
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 284 of file SourceElement.cs.

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

369 {
371 foreach (Row row in rows)
372 {
373 map[row.id] = row;
374 alias[row.GetAlias] = row;
375 }
376 int num = 50000;
377 int num2 = 0;
378 for (int i = 910; i < 927; i++)
379 {
380 Row ele = EClass.sources.elements.map[i];
381 AddRow(ele, num + num2 + 100, "ball_");
382 AddRow(ele, num + num2 + 200, "breathe_");
383 AddRow(ele, num + num2 + 300, "bolt_");
384 AddRow(ele, num + num2 + 400, "hand_");
385 AddRow(ele, num + num2 + 500, "arrow_");
386 AddRow(ele, num + num2 + 600, "funnel_");
387 AddRow(ele, num + num2 + 700, "miasma_");
388 AddRow(ele, num + num2 + 800, "weapon_");
389 AddRow(ele, num + num2 + 900, "puddle_");
390 AddRow(ele, num + num2 + 1000, "sword_");
391 num2++;
392 }
393 }
Definition: Core.cs:14
static Core SetCurrent(Core _current=null)
Definition: Core.cs:586
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 352 of file SourceElement.cs.

353 {
354 foreach (Row row in rows)
355 {
356 if (row.id >= 100 && row.id < 400)
357 {
358 hobbies.Add(row);
359 }
360 row.isAttribute = row.category == "attribute";
361 row.isPrimaryAttribute = row.isAttribute && row.tag.Contains("primary");
362 row.isSkill = row.category == "skill";
363 row.isSpell = row.categorySub == "spell";
364 row.isTrait = row.tag.Contains("trait");
365 }
366 }
List< Row > hobbies

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

◆ SetRow()

override void SourceElement.SetRow ( Row  r)
inline

Definition at line 347 of file SourceElement.cs.

348 {
349 map[r.id] = r;
350 }

References SourceElement.Row.id.

Member Data Documentation

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


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