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

Member Function Documentation

◆ CreateRow()

override Row SourceZone.CreateRow ( )
inline

Definition at line 133 of file SourceZone.cs.

134 {
135 return new Row
136 {
137 id = SourceData.GetString(0),
138 parent = SourceData.GetString(1),
139 name_JP = SourceData.GetString(2),
140 name = SourceData.GetString(3),
141 type = SourceData.GetString(4),
142 LV = SourceData.GetInt(5),
143 chance = SourceData.GetInt(6),
144 faction = SourceData.GetString(7),
145 value = SourceData.GetInt(8),
146 idProfile = SourceData.GetString(9),
147 idFile = SourceData.GetStringArray(10),
148 idBiome = SourceData.GetString(11),
149 idGen = SourceData.GetString(12),
150 idPlaylist = SourceData.GetString(13),
151 tag = SourceData.GetStringArray(14),
152 costSkyTravel = SourceData.GetInt(15),
153 cost = SourceData.GetInt(16),
154 dev = SourceData.GetInt(17),
155 image = SourceData.GetString(18),
156 pos = SourceData.GetIntArray(19),
157 questTag = SourceData.GetStringArray(20),
158 textFlavor_JP = SourceData.GetString(21),
159 textFlavor = SourceData.GetString(22),
160 detail_JP = SourceData.GetString(23),
161 detail = SourceData.GetString(24)
162 };
163 }
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
static int[] GetIntArray(int id)
Definition: SourceData.cs:1006

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

◆ CreateRowByMapping()

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

Definition at line 165 of file SourceZone.cs.

166 {
167 return new Row
168 {
169 id = SourceData.GetString(mapping["id"]),
170 parent = SourceData.GetString(mapping["parent"]),
171 name_JP = SourceData.GetString(mapping["name_JP"]),
172 name = SourceData.GetString(mapping["name"]),
173 type = SourceData.GetString(mapping["type"]),
174 LV = SourceData.GetInt(mapping["LV"]),
175 chance = SourceData.GetInt(mapping["chance"]),
176 faction = SourceData.GetString(mapping["faction"]),
177 value = SourceData.GetInt(mapping["value"]),
178 idProfile = SourceData.GetString(mapping["idProfile"]),
179 idFile = SourceData.GetStringArray(mapping["idFile"]),
180 idBiome = SourceData.GetString(mapping["idBiome"]),
181 idGen = SourceData.GetString(mapping["idGen"]),
182 idPlaylist = SourceData.GetString(mapping["idPlaylist"]),
183 tag = SourceData.GetStringArray(mapping["tag"]),
184 costSkyTravel = SourceData.GetInt(mapping["costSkyTravel"]),
185 cost = SourceData.GetInt(mapping["cost"]),
186 dev = SourceData.GetInt(mapping["dev"]),
187 image = SourceData.GetString(mapping["image"]),
188 pos = SourceData.GetIntArray(mapping["pos"]),
189 questTag = SourceData.GetStringArray(mapping["questTag"]),
190 textFlavor_JP = SourceData.GetString(mapping["textFlavor_JP"]),
191 textFlavor = SourceData.GetString(mapping["textFlavor"]),
192 detail_JP = SourceData.GetString(mapping["detail_JP"]),
193 detail = SourceData.GetString(mapping["detail"])
194 };
195 }

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

◆ GetRowMapping()

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

Definition at line 202 of file SourceZone.cs.

203 {
204 return RowMapping;
205 }
static readonly IReadOnlyDictionary< string, int > RowMapping
Definition: SourceZone.cs:73

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 207 of file SourceZone.cs.

208 {
209 return TypeMapping;
210 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
Definition: SourceZone.cs:102

References TypeMapping.

◆ SetRow()

override void SourceZone.SetRow ( Row  r)
inline

Definition at line 197 of file SourceZone.cs.

198 {
199 map[r.id] = r;
200 }

References SourceZone.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceZone.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["parent"] = 1,
["name_JP"] = 2,
["name"] = 3,
["type"] = 4,
["LV"] = 5,
["chance"] = 6,
["faction"] = 7,
["value"] = 8,
["idProfile"] = 9,
["idFile"] = 10,
["idBiome"] = 11,
["idGen"] = 12,
["idPlaylist"] = 13,
["tag"] = 14,
["costSkyTravel"] = 15,
["cost"] = 16,
["dev"] = 17,
["image"] = 18,
["pos"] = 19,
["questTag"] = 20,
["textFlavor_JP"] = 21,
["textFlavor"] = 22,
["detail_JP"] = 23,
["detail"] = 24
}

Definition at line 73 of file SourceZone.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceZone.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["parent"] = "string",
["name_JP"] = "string",
["name"] = "string",
["type"] = "string",
["LV"] = "int",
["chance"] = "int",
["faction"] = "string",
["value"] = "int",
["idProfile"] = "string",
["idFile"] = "string[]",
["idBiome"] = "string",
["idGen"] = "string",
["idPlaylist"] = "string",
["tag"] = "string[]",
["costSkyTravel"] = "int",
["cost"] = "int",
["dev"] = "int",
["image"] = "string",
["pos"] = "int[]",
["questTag"] = "string[]",
["textFlavor_JP"] = "string",
["textFlavor"] = "string",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 102 of file SourceZone.cs.

Referenced by GetTypeMapping().

Property Documentation

◆ ImportFields

override string [] SourceZone.ImportFields
get

Definition at line 131 of file SourceZone.cs.


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