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

Classes

class  Row
 

Public Member Functions

override Row CreateRow ()
 
override Row CreateRowByMapping (IReadOnlyDictionary< string, int > mapping)
 
override void SetRow (Row r)
 
override IReadOnlyDictionary< string, int > GetRowMapping ()
 
override IReadOnlyDictionary< string, string > GetTypeMapping ()
 
- Public Member Functions inherited from SourceDataString< SourceReligion.Row >
override T GetRow (string id)
 

Static Public Attributes

static readonly IReadOnlyDictionary< string, int > RowMapping
 
static readonly IReadOnlyDictionary< string, string > TypeMapping
 

Properties

override string[] ImportFields [get]
 

Detailed Description

Definition at line 4 of file SourceReligion.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceReligion.CreateRow ( )
inline

Definition at line 131 of file SourceReligion.cs.

132 {
133 return new Row
134 {
135 id = SourceData.GetString(0),
136 name_JP = SourceData.GetString(1),
137 name = SourceData.GetString(2),
138 name2_JP = SourceData.GetStringArray(3),
139 name2 = SourceData.GetStringArray(4),
140 type = SourceData.GetString(5),
141 idMaterial = SourceData.GetString(6),
143 domain = SourceData.GetString(8),
144 tax = SourceData.GetInt(9),
145 relation = SourceData.GetInt(10),
146 elements = Core.ParseElements(SourceData.GetStr(11)),
147 cat_offer = SourceData.GetStringArray(12),
148 rewards = SourceData.GetStringArray(13),
149 textType_JP = SourceData.GetString(14),
150 textType = SourceData.GetString(15),
151 textAvatar = SourceData.GetString(16),
152 detail_JP = SourceData.GetString(17),
153 detail = SourceData.GetString(18),
154 textBenefit_JP = SourceData.GetString(19),
155 textBenefit = SourceData.GetString(20),
156 textPet_JP = SourceData.GetString(21),
157 textPet = SourceData.GetString(22)
158 };
159 }
Definition: Core.cs:14
static int[] ParseElements(string str)
Definition: Core.cs:726
static string[] GetStringArray(int id)
Definition: SourceData.cs:1011
static string GetString(int id)
Definition: SourceData.cs:1016
static int GetInt(int id)
Definition: SourceData.cs:981
static string GetStr(int id, bool useDefault=false)
Definition: SourceData.cs:1021

References faith, SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and Core.ParseElements().

◆ CreateRowByMapping()

override Row SourceReligion.CreateRowByMapping ( IReadOnlyDictionary< string, int >  mapping)
inline

Definition at line 161 of file SourceReligion.cs.

162 {
163 return new Row
164 {
165 id = SourceData.GetString(mapping["id"]),
166 name_JP = SourceData.GetString(mapping["name_JP"]),
167 name = SourceData.GetString(mapping["name"]),
168 name2_JP = SourceData.GetStringArray(mapping["name2_JP"]),
169 name2 = SourceData.GetStringArray(mapping["name2"]),
170 type = SourceData.GetString(mapping["type"]),
171 idMaterial = SourceData.GetString(mapping["idMaterial"]),
172 faith = SourceData.GetString(mapping["faith"]),
173 domain = SourceData.GetString(mapping["domain"]),
174 tax = SourceData.GetInt(mapping["tax"]),
175 relation = SourceData.GetInt(mapping["relation"]),
176 elements = Core.ParseElements(SourceData.GetStr(mapping["elements"])),
177 cat_offer = SourceData.GetStringArray(mapping["cat_offer"]),
178 rewards = SourceData.GetStringArray(mapping["rewards"]),
179 textType_JP = SourceData.GetString(mapping["textType_JP"]),
180 textType = SourceData.GetString(mapping["textType"]),
181 textAvatar = SourceData.GetString(mapping["textAvatar"]),
182 detail_JP = SourceData.GetString(mapping["detail_JP"]),
183 detail = SourceData.GetString(mapping["detail"]),
184 textBenefit_JP = SourceData.GetString(mapping["textBenefit_JP"]),
185 textBenefit = SourceData.GetString(mapping["textBenefit"]),
186 textPet_JP = SourceData.GetString(mapping["textPet_JP"]),
187 textPet = SourceData.GetString(mapping["textPet"])
188 };
189 }

References faith, SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and Core.ParseElements().

◆ GetRowMapping()

override IReadOnlyDictionary< string, int > SourceReligion.GetRowMapping ( )
inline

Definition at line 196 of file SourceReligion.cs.

197 {
198 return RowMapping;
199 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

override IReadOnlyDictionary< string, string > SourceReligion.GetTypeMapping ( )
inline

Definition at line 201 of file SourceReligion.cs.

202 {
203 return TypeMapping;
204 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ SetRow()

override void SourceReligion.SetRow ( Row  r)
inline

Definition at line 191 of file SourceReligion.cs.

192 {
193 map[r.id] = r;
194 }

References SourceReligion.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceReligion.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["name_JP"] = 1,
["name"] = 2,
["name2_JP"] = 3,
["name2"] = 4,
["type"] = 5,
["idMaterial"] = 6,
["faith"] = 7,
["domain"] = 8,
["tax"] = 9,
["relation"] = 10,
["elements"] = 11,
["cat_offer"] = 12,
["rewards"] = 13,
["textType_JP"] = 14,
["textType"] = 15,
["textAvatar"] = 16,
["detail_JP"] = 17,
["detail"] = 18,
["textBenefit_JP"] = 19,
["textBenefit"] = 20,
["textPet_JP"] = 21,
["textPet"] = 22
}

Definition at line 75 of file SourceReligion.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceReligion.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["name_JP"] = "string",
["name"] = "string",
["name2_JP"] = "string[]",
["name2"] = "string[]",
["type"] = "string",
["idMaterial"] = "string",
["faith"] = "string",
["domain"] = "string",
["tax"] = "int",
["relation"] = "int",
["elements"] = "elements",
["cat_offer"] = "string[]",
["rewards"] = "string[]",
["textType_JP"] = "string",
["textType"] = "string",
["textAvatar"] = "string",
["detail_JP"] = "string",
["detail"] = "string",
["textBenefit_JP"] = "string",
["textBenefit"] = "string",
["textPet_JP"] = "string",
["textPet"] = "string"
}

Definition at line 102 of file SourceReligion.cs.

Referenced by GetTypeMapping().

Property Documentation

◆ ImportFields

override string [] SourceReligion.ImportFields
get

Definition at line 129 of file SourceReligion.cs.


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