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

Member Function Documentation

◆ CreateRow()

override Row SourceCollectible.CreateRow ( )
inline

Definition at line 72 of file SourceCollectible.cs.

73 {
74 return new Row
75 {
76 id = SourceData.GetString(0),
77 name_JP = SourceData.GetString(1),
78 name = SourceData.GetString(2),
79 rarity = SourceData.GetInt(3),
80 prefab = SourceData.GetString(4),
81 num = SourceData.GetInt(5),
82 filter = SourceData.GetString(6),
84 sound = SourceData.GetString(8),
85 detail_JP = SourceData.GetString(9),
86 detail = SourceData.GetString(10)
87 };
88 }
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 SourceCollectible.CreateRowByMapping ( IReadOnlyDictionary< string, int >  mapping)
inline

Definition at line 90 of file SourceCollectible.cs.

91 {
92 return new Row
93 {
94 id = SourceData.GetString(mapping["id"]),
95 name_JP = SourceData.GetString(mapping["name_JP"]),
96 name = SourceData.GetString(mapping["name"]),
97 rarity = SourceData.GetInt(mapping["rarity"]),
98 prefab = SourceData.GetString(mapping["prefab"]),
99 num = SourceData.GetInt(mapping["num"]),
100 filter = SourceData.GetString(mapping["filter"]),
101 tag = SourceData.GetStringArray(mapping["tag"]),
102 sound = SourceData.GetString(mapping["sound"]),
103 detail_JP = SourceData.GetString(mapping["detail_JP"]),
104 detail = SourceData.GetString(mapping["detail"])
105 };
106 }

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

◆ GetRowMapping()

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

Definition at line 113 of file SourceCollectible.cs.

114 {
115 return RowMapping;
116 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 118 of file SourceCollectible.cs.

119 {
120 return TypeMapping;
121 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ SetRow()

override void SourceCollectible.SetRow ( Row  r)
inline

Definition at line 108 of file SourceCollectible.cs.

109 {
110 map[r.id] = r;
111 }

References SourceCollectible.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceCollectible.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["name_JP"] = 1,
["name"] = 2,
["rarity"] = 3,
["prefab"] = 4,
["num"] = 5,
["filter"] = 6,
["tag"] = 7,
["sound"] = 8,
["detail_JP"] = 9,
["detail"] = 10
}

Definition at line 42 of file SourceCollectible.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceCollectible.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["name_JP"] = "string",
["name"] = "string",
["rarity"] = "int",
["prefab"] = "string",
["num"] = "int",
["filter"] = "string",
["tag"] = "string[]",
["sound"] = "string",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 57 of file SourceCollectible.cs.

Referenced by GetTypeMapping().


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