Elin Decompiled Documentation EA 23.319 Nightly Patch 1
Loading...
Searching...
No Matches
SourceResearch Class Reference
Inheritance diagram for SourceResearch:
SourceDataString< SourceResearch.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< SourceResearch.Row >
override T GetRow (string id)
 

Static Public Attributes

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

Detailed Description

Definition at line 4 of file SourceResearch.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceResearch.CreateRow ( )
inline

Definition at line 80 of file SourceResearch.cs.

81 {
82 return new Row
83 {
84 id = SourceData.GetString(0),
85 name_JP = SourceData.GetString(1),
86 name = SourceData.GetString(2),
89 tech = SourceData.GetInt(5),
90 req = SourceData.GetString(6),
91 type = SourceData.GetString(7),
92 expMod = SourceData.GetInt(8),
93 maxLv = SourceData.GetInt(9),
94 reward = SourceData.GetString(10),
95 detail_JP = SourceData.GetString(11),
96 detail = SourceData.GetString(12)
97 };
98 }
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

References SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), money, and resource.

◆ CreateRowByMapping()

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

Definition at line 100 of file SourceResearch.cs.

101 {
102 return new Row
103 {
104 id = SourceData.GetString(mapping["id"]),
105 name_JP = SourceData.GetString(mapping["name_JP"]),
106 name = SourceData.GetString(mapping["name"]),
107 resource = SourceData.GetStringArray(mapping["resource"]),
108 money = SourceData.GetInt(mapping["money"]),
109 tech = SourceData.GetInt(mapping["tech"]),
110 req = SourceData.GetString(mapping["req"]),
111 type = SourceData.GetString(mapping["type"]),
112 expMod = SourceData.GetInt(mapping["expMod"]),
113 maxLv = SourceData.GetInt(mapping["maxLv"]),
114 reward = SourceData.GetString(mapping["reward"]),
115 detail_JP = SourceData.GetString(mapping["detail_JP"]),
116 detail = SourceData.GetString(mapping["detail"])
117 };
118 }

References SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), money, and resource.

◆ GetRowMapping()

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

Definition at line 125 of file SourceResearch.cs.

126 {
127 return RowMapping;
128 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 130 of file SourceResearch.cs.

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

References TypeMapping.

◆ SetRow()

override void SourceResearch.SetRow ( Row  r)
inline

Definition at line 120 of file SourceResearch.cs.

121 {
122 map[r.id] = r;
123 }

References SourceResearch.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceResearch.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["name_JP"] = 1,
["name"] = 2,
["resource"] = 3,
["money"] = 4,
["tech"] = 5,
["req"] = 6,
["type"] = 7,
["expMod"] = 8,
["maxLv"] = 9,
["reward"] = 10,
["detail_JP"] = 11,
["detail"] = 12
}

Definition at line 46 of file SourceResearch.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceResearch.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["name_JP"] = "string",
["name"] = "string",
["resource"] = "string[]",
["money"] = "int",
["tech"] = "int",
["req"] = "string",
["type"] = "string",
["expMod"] = "int",
["maxLv"] = "int",
["reward"] = "string",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 63 of file SourceResearch.cs.

Referenced by GetTypeMapping().


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