Elin Decompiled Documentation EA 23.317 Nightly
Loading...
Searching...
No Matches
SourceFaction Class Reference
Inheritance diagram for SourceFaction:
SourceDataString< SourceFaction.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< SourceFaction.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 SourceFaction.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceFaction.CreateRow ( )
inline

Definition at line 87 of file SourceFaction.cs.

88 {
89 return new Row
90 {
91 id = SourceData.GetString(0),
92 name_JP = SourceData.GetString(1),
93 name = SourceData.GetString(2),
94 type = SourceData.GetString(3),
96 domain = SourceData.GetString(5),
97 relation = SourceData.GetInt(6),
98 textType_JP = SourceData.GetString(7),
99 textType = SourceData.GetString(8),
100 textAvatar = SourceData.GetString(9),
101 detail_JP = SourceData.GetString(10),
102 detail = SourceData.GetString(11)
103 };
104 }
static string GetString(int id)
Definition: SourceData.cs:1016
static int GetInt(int id)
Definition: SourceData.cs:981

References faith, SourceData< T, T2 >.GetInt(), and SourceData< T, T2 >.GetString().

◆ CreateRowByMapping()

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

Definition at line 106 of file SourceFaction.cs.

107 {
108 return new Row
109 {
110 id = SourceData.GetString(mapping["id"]),
111 name_JP = SourceData.GetString(mapping["name_JP"]),
112 name = SourceData.GetString(mapping["name"]),
113 type = SourceData.GetString(mapping["type"]),
114 faith = SourceData.GetString(mapping["faith"]),
115 domain = SourceData.GetString(mapping["domain"]),
116 relation = SourceData.GetInt(mapping["relation"]),
117 textType_JP = SourceData.GetString(mapping["textType_JP"]),
118 textType = SourceData.GetString(mapping["textType"]),
119 textAvatar = SourceData.GetString(mapping["textAvatar"]),
120 detail_JP = SourceData.GetString(mapping["detail_JP"]),
121 detail = SourceData.GetString(mapping["detail"])
122 };
123 }

References faith, SourceData< T, T2 >.GetInt(), and SourceData< T, T2 >.GetString().

◆ GetRowMapping()

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

Definition at line 130 of file SourceFaction.cs.

131 {
132 return RowMapping;
133 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 135 of file SourceFaction.cs.

136 {
137 return TypeMapping;
138 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ SetRow()

override void SourceFaction.SetRow ( Row  r)
inline

Definition at line 125 of file SourceFaction.cs.

126 {
127 map[r.id] = r;
128 }

References SourceFaction.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceFaction.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["name_JP"] = 1,
["name"] = 2,
["type"] = 3,
["faith"] = 4,
["domain"] = 5,
["relation"] = 6,
["textType_JP"] = 7,
["textType"] = 8,
["textAvatar"] = 9,
["detail_JP"] = 10,
["detail"] = 11
}

Definition at line 53 of file SourceFaction.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceFaction.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["name_JP"] = "string",
["name"] = "string",
["type"] = "string",
["faith"] = "string",
["domain"] = "string",
["relation"] = "int",
["textType_JP"] = "string",
["textType"] = "string",
["textAvatar"] = "string",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 69 of file SourceFaction.cs.

Referenced by GetTypeMapping().

Property Documentation

◆ ImportFields

override string [] SourceFaction.ImportFields
get

Definition at line 85 of file SourceFaction.cs.


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