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

Classes

class  Row
 

Public Member Functions

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

Detailed Description

Definition at line 4 of file SourceCategory.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceCategory.CreateRow ( )
inline

Definition at line 141 of file SourceCategory.cs.

142 {
143 return new Row
144 {
145 id = SourceData.GetString(0),
146 uid = SourceData.GetInt(1),
147 name_JP = SourceData.GetString(2),
148 name = SourceData.GetString(3),
149 _parent = SourceData.GetString(4),
150 recipeCat = SourceData.GetString(5),
151 slot = Core.GetElement(SourceData.GetStr(6)),
152 skill = Core.GetElement(SourceData.GetStr(7)),
153 maxStack = SourceData.GetInt(8),
154 tileDummy = SourceData.GetInt(9),
155 installOne = SourceData.GetBool(10),
156 ignoreBless = SourceData.GetInt(11),
157 tag = SourceData.GetStringArray(12),
158 idThing = SourceData.GetString(13),
159 recycle = SourceData.GetStringArray(14),
160 costSP = SourceData.GetInt(15),
161 gift = SourceData.GetInt(16),
162 deliver = SourceData.GetInt(17),
163 offer = SourceData.GetInt(18),
164 ticket = SourceData.GetInt(19),
165 sortVal = SourceData.GetInt(20),
166 flag = SourceData.GetInt(21)
167 };
168 }
@ gift
Definition: Core.cs:14
static int GetElement(string id)
Definition: Core.cs:731
static string[] GetStringArray(int id)
Definition: SourceData.cs:741
static string GetString(int id)
Definition: SourceData.cs:746
static bool GetBool(int id)
Definition: SourceData.cs:716
static int GetInt(int id)
Definition: SourceData.cs:711
static string GetStr(int id, bool useDefault=false)
Definition: SourceData.cs:751

References SourceData< T, T2 >.GetBool(), Core.GetElement(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and gift.

◆ OnInit()

override void SourceCategory.OnInit ( )
inline

Definition at line 175 of file SourceCategory.cs.

176 {
177 foreach (Row row in rows)
178 {
179 row.children = new List<Row>();
180 }
181 foreach (Row row2 in rows)
182 {
183 if (!row2._parent.IsEmpty())
184 {
185 (row2.parent = map[row2._parent]).children.Add(row2);
186 }
187 }
188 }

References SourceCategory.Row._parent.

◆ SetRow()

override void SourceCategory.SetRow ( Row  r)
inline

Definition at line 170 of file SourceCategory.cs.

171 {
172 map[r.id] = r;
173 }

References SourceCategory.Row.id.


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