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

Member Function Documentation

◆ CreateRow()

override Row SourceHomeResource.CreateRow ( )
inline

Definition at line 60 of file SourceHomeResource.cs.

61 {
62 return new Row
63 {
64 id = SourceData.GetString(0),
65 name_JP = SourceData.GetString(1),
66 name = SourceData.GetString(2),
67 expMod = SourceData.GetInt(3),
68 maxLv = SourceData.GetInt(4),
69 reward = SourceData.GetStringArray(5),
70 detail_JP = SourceData.GetString(6),
71 detail = SourceData.GetString(7)
72 };
73 }
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(), and SourceData< T, T2 >.GetStringArray().

◆ CreateRowByMapping()

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

Definition at line 75 of file SourceHomeResource.cs.

76 {
77 return new Row
78 {
79 id = SourceData.GetString(mapping["id"]),
80 name_JP = SourceData.GetString(mapping["name_JP"]),
81 name = SourceData.GetString(mapping["name"]),
82 expMod = SourceData.GetInt(mapping["expMod"]),
83 maxLv = SourceData.GetInt(mapping["maxLv"]),
84 reward = SourceData.GetStringArray(mapping["reward"]),
85 detail_JP = SourceData.GetString(mapping["detail_JP"]),
86 detail = SourceData.GetString(mapping["detail"])
87 };
88 }

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

◆ GetRowMapping()

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

Definition at line 95 of file SourceHomeResource.cs.

96 {
97 return RowMapping;
98 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 100 of file SourceHomeResource.cs.

101 {
102 return TypeMapping;
103 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ SetRow()

override void SourceHomeResource.SetRow ( Row  r)
inline

Definition at line 90 of file SourceHomeResource.cs.

91 {
92 map[r.id] = r;
93 }

References SourceHomeResource.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceHomeResource.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["name_JP"] = 1,
["name"] = 2,
["expMod"] = 3,
["maxLv"] = 4,
["reward"] = 5,
["detail_JP"] = 6,
["detail"] = 7
}

Definition at line 36 of file SourceHomeResource.cs.

Referenced by GetRowMapping().

◆ TypeMapping

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

Definition at line 48 of file SourceHomeResource.cs.

Referenced by GetTypeMapping().


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