Elin Decompiled Documentation EA 23.310 Nightly Patch 1
Loading...
Searching...
No Matches
SourceGlobalTile Class Reference
Inheritance diagram for SourceGlobalTile:
SourceDataInt< SourceGlobalTile.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 ()
 
override void OnInit ()
 
- Public Member Functions inherited from SourceDataInt< SourceGlobalTile.Row >
override T GetRow (string id)
 

Public Attributes

Dictionary< int, RowtileAlias = new Dictionary<int, Row>()
 

Static Public Attributes

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

Detailed Description

Definition at line 4 of file SourceGlobalTile.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceGlobalTile.CreateRow ( )
inline

Definition at line 80 of file SourceGlobalTile.cs.

81 {
82 return new Row
83 {
84 id = SourceData.GetInt(0),
85 alias = SourceData.GetString(1),
86 name_JP = SourceData.GetString(2),
87 name = SourceData.GetString(3),
88 tiles = SourceData.GetIntArray(4),
89 floor = SourceData.GetInt(5),
90 zoneProfile = SourceData.GetString(6),
92 dangerLv = SourceData.GetInt(8),
93 trait = SourceData.GetStringArray(9),
94 idBiome = SourceData.GetString(10),
95 attribs = SourceData.GetIntArray(11),
96 detail_JP = SourceData.GetString(12),
97 detail = SourceData.GetString(13)
98 };
99 }
static string[] GetStringArray(int id)
Definition: SourceData.cs:983
static string GetString(int id)
Definition: SourceData.cs:988
static int GetInt(int id)
Definition: SourceData.cs:953
static int[] GetIntArray(int id)
Definition: SourceData.cs:978

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

◆ CreateRowByMapping()

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

Definition at line 101 of file SourceGlobalTile.cs.

102 {
103 return new Row
104 {
105 id = SourceData.GetInt(mapping["id"]),
106 alias = SourceData.GetString(mapping["alias"]),
107 name_JP = SourceData.GetString(mapping["name_JP"]),
108 name = SourceData.GetString(mapping["name"]),
109 tiles = SourceData.GetIntArray(mapping["tiles"]),
110 floor = SourceData.GetInt(mapping["floor"]),
111 zoneProfile = SourceData.GetString(mapping["zoneProfile"]),
112 tag = SourceData.GetStringArray(mapping["tag"]),
113 dangerLv = SourceData.GetInt(mapping["dangerLv"]),
114 trait = SourceData.GetStringArray(mapping["trait"]),
115 idBiome = SourceData.GetString(mapping["idBiome"]),
116 attribs = SourceData.GetIntArray(mapping["attribs"]),
117 detail_JP = SourceData.GetString(mapping["detail_JP"]),
118 detail = SourceData.GetString(mapping["detail"])
119 };
120 }

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

◆ GetRowMapping()

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

Definition at line 127 of file SourceGlobalTile.cs.

128 {
129 return RowMapping;
130 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 132 of file SourceGlobalTile.cs.

133 {
134 return TypeMapping;
135 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ OnInit()

override void SourceGlobalTile.OnInit ( )
inline

Definition at line 137 of file SourceGlobalTile.cs.

138 {
139 foreach (Row row in rows)
140 {
141 int[] tiles = row.tiles;
142 foreach (int key in tiles)
143 {
144 tileAlias[key] = row;
145 }
146 }
147 }
Dictionary< int, Row > tileAlias

References tileAlias, and SourceGlobalTile.Row.tiles.

◆ SetRow()

override void SourceGlobalTile.SetRow ( Row  r)
inline

Definition at line 122 of file SourceGlobalTile.cs.

123 {
124 map[r.id] = r;
125 }

References SourceGlobalTile.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceGlobalTile.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["alias"] = 1,
["name_JP"] = 2,
["name"] = 3,
["tiles"] = 4,
["floor"] = 5,
["zoneProfile"] = 6,
["tag"] = 7,
["dangerLv"] = 8,
["trait"] = 9,
["idBiome"] = 10,
["attribs"] = 11,
["detail_JP"] = 12,
["detail"] = 13
}

Definition at line 42 of file SourceGlobalTile.cs.

Referenced by GetRowMapping().

◆ tileAlias

Dictionary<int, Row> SourceGlobalTile.tileAlias = new Dictionary<int, Row>()

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceGlobalTile.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "int",
["alias"] = "string",
["name_JP"] = "string",
["name"] = "string",
["tiles"] = "int[]",
["floor"] = "int",
["zoneProfile"] = "string",
["tag"] = "string[]",
["dangerLv"] = "int",
["trait"] = "string[]",
["idBiome"] = "string",
["attribs"] = "int[]",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 60 of file SourceGlobalTile.cs.

Referenced by GetTypeMapping().


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