Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceFaction.cs
Go to the documentation of this file.
1using System;
2
3public class SourceFaction : SourceDataString<SourceFaction.Row>
4{
5 [Serializable]
6 public class Row : BaseRow
7 {
8 public string id;
9
10 public string name_JP;
11
12 public string name;
13
14 public string type;
15
16 public string faith;
17
18 public string domain;
19
20 public int relation;
21
22 public string textType_JP;
23
24 public string textType;
25
26 public string textAvatar;
27
28 public string detail_JP;
29
30 public string detail;
31
32 [NonSerialized]
33 public string name_L;
34
35 [NonSerialized]
36 public string detail_L;
37
38 [NonSerialized]
39 public string textType_L;
40
41 [NonSerialized]
42 public string textBenefit_L;
43
44 [NonSerialized]
45 public string textPet_L;
46
47 public override bool UseAlias => false;
48
49 public override string GetAlias => "n";
50 }
51
52 public override string[] ImportFields => new string[3] { "textType", "textBenefit", "textPet" };
53
54 public override Row CreateRow()
55 {
56 return new Row
57 {
58 id = SourceData.GetString(0),
59 name_JP = SourceData.GetString(1),
60 name = SourceData.GetString(2),
61 type = SourceData.GetString(3),
63 domain = SourceData.GetString(5),
64 relation = SourceData.GetInt(6),
65 textType_JP = SourceData.GetString(7),
66 textType = SourceData.GetString(8),
67 textAvatar = SourceData.GetString(9),
68 detail_JP = SourceData.GetString(10),
69 detail = SourceData.GetString(11)
70 };
71 }
72
73 public override void SetRow(Row r)
74 {
75 map[r.id] = r;
76 }
77}
static string GetString(int id)
Definition: SourceData.cs:746
static int GetInt(int id)
Definition: SourceData.cs:711
override bool UseAlias
override string GetAlias
override Row CreateRow()
override string[] ImportFields
override void SetRow(Row r)