Elin Decompiled Documentation EA 23.319 Nightly Patch 1
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 129 of file SourceZone.cs.

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

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

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 196 of file SourceZone.cs.

197 {
198 return RowMapping;
199 }
static readonly IReadOnlyDictionary< string, int > RowMapping
Definition: SourceZone.cs:71

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 201 of file SourceZone.cs.

202 {
203 return TypeMapping;
204 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
Definition: SourceZone.cs:99

References TypeMapping.

◆ SetRow()

override void SourceZone.SetRow ( Row  r)
inline

Definition at line 191 of file SourceZone.cs.

192 {
193 map[r.id] = r;
194 }

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,
["cost"] = 15,
["dev"] = 16,
["image"] = 17,
["pos"] = 18,
["questTag"] = 19,
["textFlavor_JP"] = 20,
["textFlavor"] = 21,
["detail_JP"] = 22,
["detail"] = 23
}

Definition at line 71 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[]",
["cost"] = "int",
["dev"] = "int",
["image"] = "string",
["pos"] = "int[]",
["questTag"] = "string[]",
["textFlavor_JP"] = "string",
["textFlavor"] = "string",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 99 of file SourceZone.cs.

Referenced by GetTypeMapping().

Property Documentation

◆ ImportFields

override string [] SourceZone.ImportFields
get

Definition at line 127 of file SourceZone.cs.


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