Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceSpawnList.cs
Go to the documentation of this file.
1using System;
2
3public class SourceSpawnList : SourceDataString<SourceSpawnList.Row>
4{
5 [Serializable]
6 public class Row : BaseRow
7 {
8 public string id;
9
10 public string parent;
11
12 public string type;
13
14 public string[] category;
15
16 public string[] idCard;
17
18 public string[] tag;
19
20 public string[] filter;
21
22 public override bool UseAlias => false;
23
24 public override string GetAlias => "n";
25
26 public override string GetEditorListName()
27 {
28 return this.GetField<string>("id") ?? "";
29 }
30 }
31
32 public override Row CreateRow()
33 {
34 return new Row
35 {
36 id = SourceData.GetString(0),
37 parent = SourceData.GetString(2),
38 type = SourceData.GetString(3),
39 category = SourceData.GetStringArray(4),
40 idCard = SourceData.GetStringArray(5),
42 filter = SourceData.GetStringArray(7)
43 };
44 }
45
46 public override void SetRow(Row r)
47 {
48 map[r.id] = r;
49 }
50}
static string[] GetStringArray(int id)
Definition: SourceData.cs:741
static string GetString(int id)
Definition: SourceData.cs:746
override string GetAlias
override bool UseAlias
override string GetEditorListName()
override void SetRow(Row r)
override Row CreateRow()