|
| static readonly IReadOnlyDictionary< string, int > | RowMapping |
| |
| static readonly IReadOnlyDictionary< string, string > | TypeMapping |
| |
Definition at line 4 of file SourceCategory.cs.
◆ CreateRow()
| override Row SourceCategory.CreateRow |
( |
| ) |
|
|
inline |
Definition at line 193 of file SourceCategory.cs.
194 {
195 return new Row
196 {
219 };
220 }
static int GetElement(string id)
static string[] GetStringArray(int id)
static string GetString(int id)
static bool GetBool(int id)
static int GetInt(int id)
static string GetStr(int id, bool useDefault=false)
References SourceData< T, T2 >.GetBool(), Core.GetElement(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and gift.
◆ CreateRowByMapping()
| override Row SourceCategory.CreateRowByMapping |
( |
IReadOnlyDictionary< string, int > |
mapping | ) |
|
|
inline |
Definition at line 222 of file SourceCategory.cs.
223 {
224 return new Row
225 {
248 };
249 }
References SourceData< T, T2 >.GetBool(), Core.GetElement(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), SourceData< T, T2 >.GetString(), SourceData< T, T2 >.GetStringArray(), and gift.
◆ GetRowMapping()
| override IReadOnlyDictionary< string, int > SourceCategory.GetRowMapping |
( |
| ) |
|
|
inline |
◆ GetTypeMapping()
| override IReadOnlyDictionary< string, string > SourceCategory.GetTypeMapping |
( |
| ) |
|
|
inline |
◆ OnInit()
| override void SourceCategory.OnInit |
( |
| ) |
|
|
inline |
Definition at line 266 of file SourceCategory.cs.
267 {
268 foreach (Row row in rows)
269 {
270 row.children = new List<Row>();
271 }
272 foreach (Row row2 in rows)
273 {
274 if (!row2._parent.IsEmpty())
275 {
276 (row2.parent = map[row2._parent]).children.Add(row2);
277 }
278 }
279 }
References SourceCategory.Row._parent.
◆ SetRow()
| override void SourceCategory.SetRow |
( |
Row |
r | ) |
|
|
inline |
◆ RowMapping
| readonly IReadOnlyDictionary<string, int> SourceCategory.RowMapping |
|
static |
Initial value:= new Dictionary<string, int>
{
["id"] = 0,
["uid"] = 1,
["name_JP"] = 2,
["name"] = 3,
["_parent"] = 4,
["recipeCat"] = 5,
["slot"] = 6,
["skill"] = 7,
["maxStack"] = 8,
["tileDummy"] = 9,
["installOne"] = 10,
["ignoreBless"] = 11,
["tag"] = 12,
["idThing"] = 13,
["recycle"] = 14,
["costSP"] = 15,
["gift"] = 16,
["deliver"] = 17,
["offer"] = 18,
["ticket"] = 19,
["sortVal"] = 20,
["flag"] = 21
}
Definition at line 141 of file SourceCategory.cs.
Referenced by GetRowMapping().
◆ TypeMapping
| readonly IReadOnlyDictionary<string, string> SourceCategory.TypeMapping |
|
static |
Initial value:= new Dictionary<string, string>
{
["id"] = "string",
["uid"] = "int",
["name_JP"] = "string",
["name"] = "string",
["_parent"] = "string",
["recipeCat"] = "string",
["slot"] = "element_id",
["skill"] = "element_id",
["maxStack"] = "int",
["tileDummy"] = "int",
["installOne"] = "bool",
["ignoreBless"] = "int",
["tag"] = "string[]",
["idThing"] = "string",
["recycle"] = "string[]",
["costSP"] = "int",
["gift"] = "int",
["deliver"] = "int",
["offer"] = "int",
["ticket"] = "int",
["sortVal"] = "int",
["flag"] = "int"
}
Definition at line 167 of file SourceCategory.cs.
Referenced by GetTypeMapping().
The documentation for this class was generated from the following file: