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

Classes

class  Row
 

Public Member Functions

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

Public Attributes

List< RowlistHobbies = new List<Row>()
 
List< RowlistWorks = new List<Row>()
 

Detailed Description

Definition at line 4 of file SourceHobby.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceHobby.CreateRow ( )
inline

Definition at line 66 of file SourceHobby.cs.

67 {
68 return new Row
69 {
70 id = SourceData.GetInt(0),
71 alias = SourceData.GetString(1),
72 type = SourceData.GetString(2),
73 name_JP = SourceData.GetString(3),
74 name = SourceData.GetString(4),
75 ai = SourceData.GetString(5),
76 talk = SourceData.GetString(6),
77 area = SourceData.GetString(7),
78 destTrait = SourceData.GetString(8),
79 workTag = SourceData.GetString(9),
80 expedition = SourceData.GetString(10),
81 resources = SourceData.GetIntArray(11),
82 randomRange = SourceData.GetInt(12),
83 modifiers = SourceData.GetStringArray(13),
84 tax = SourceData.GetInt(14),
85 things = SourceData.GetStringArray(15),
86 elements = Core.ParseElements(SourceData.GetStr(16)),
87 skill = SourceData.GetString(17),
88 detail_JP = SourceData.GetString(18),
89 detail = SourceData.GetString(19)
90 };
91 }
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 SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetIntArray(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and Core.ParseElements().

◆ OnInit()

override void SourceHobby.OnInit ( )
inline

Definition at line 98 of file SourceHobby.cs.

99 {
100 foreach (Row row in rows)
101 {
102 switch (row.type)
103 {
104 case "Hobby":
105 listHobbies.Add(row);
106 break;
107 case "Work":
108 listWorks.Add(row);
109 break;
110 case "Both":
111 listHobbies.Add(row);
112 listWorks.Add(row);
113 break;
114 }
115 }
116 }
List< Row > listWorks
Definition: SourceHobby.cs:64
List< Row > listHobbies
Definition: SourceHobby.cs:61

References listHobbies, listWorks, and SourceHobby.Row.type.

◆ SetRow()

override void SourceHobby.SetRow ( Row  r)
inline

Definition at line 93 of file SourceHobby.cs.

94 {
95 map[r.id] = r;
96 }

References SourceHobby.Row.id.

Member Data Documentation

◆ listHobbies

List<Row> SourceHobby.listHobbies = new List<Row>()

Definition at line 61 of file SourceHobby.cs.

Referenced by OnInit(), and Chara.RerollHobby().

◆ listWorks

List<Row> SourceHobby.listWorks = new List<Row>()

Definition at line 64 of file SourceHobby.cs.

Referenced by OnInit(), and Chara.RerollHobby().


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