Elin Decompiled Documentation EA 23.316 Nightly
Loading...
Searching...
No Matches
SourceSpawnList Class Reference
Inheritance diagram for SourceSpawnList:
SourceDataString< SourceSpawnList.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< SourceSpawnList.Row >
override T GetRow (string id)
 

Static Public Attributes

static readonly IReadOnlyDictionary< string, int > RowMapping
 
static readonly IReadOnlyDictionary< string, string > TypeMapping
 

Detailed Description

Definition at line 4 of file SourceSpawnList.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceSpawnList.CreateRow ( )
inline

Definition at line 55 of file SourceSpawnList.cs.

56 {
57 return new Row
58 {
59 id = SourceData.GetString(0),
60 parent = SourceData.GetString(2),
61 type = SourceData.GetString(3),
62 category = SourceData.GetStringArray(4),
63 idCard = SourceData.GetStringArray(5),
65 filter = SourceData.GetStringArray(7)
66 };
67 }
static string[] GetStringArray(int id)
Definition: SourceData.cs:1011
static string GetString(int id)
Definition: SourceData.cs:1016

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

◆ CreateRowByMapping()

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

Definition at line 69 of file SourceSpawnList.cs.

70 {
71 return new Row
72 {
73 id = SourceData.GetString(mapping["id"]),
74 parent = SourceData.GetString(mapping["parent"]),
75 type = SourceData.GetString(mapping["type"]),
76 category = SourceData.GetStringArray(mapping["category"]),
77 idCard = SourceData.GetStringArray(mapping["idCard"]),
78 tag = SourceData.GetStringArray(mapping["tag"]),
79 filter = SourceData.GetStringArray(mapping["filter"])
80 };
81 }

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

◆ GetRowMapping()

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

Definition at line 88 of file SourceSpawnList.cs.

89 {
90 return RowMapping;
91 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 93 of file SourceSpawnList.cs.

94 {
95 return TypeMapping;
96 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ SetRow()

override void SourceSpawnList.SetRow ( Row  r)
inline

Definition at line 83 of file SourceSpawnList.cs.

84 {
85 map[r.id] = r;
86 }

References SourceSpawnList.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceSpawnList.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["parent"] = 2,
["type"] = 3,
["category"] = 4,
["idCard"] = 5,
["tag"] = 6,
["filter"] = 7
}

Definition at line 33 of file SourceSpawnList.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceSpawnList.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["parent"] = "string",
["type"] = "string",
["category"] = "string[]",
["idCard"] = "string[]",
["tag"] = "string[]",
["filter"] = "string[]"
}

Definition at line 44 of file SourceSpawnList.cs.

Referenced by GetTypeMapping().


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