Elin Decompiled Documentation EA 23.319 Nightly Patch 1
Loading...
Searching...
No Matches
SourceCheck Class Reference
Inheritance diagram for SourceCheck:
SourceDataString< SourceCheck.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< SourceCheck.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 SourceCheck.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceCheck.CreateRow ( )
inline

Definition at line 62 of file SourceCheck.cs.

63 {
64 return new Row
65 {
66 id = SourceData.GetString(0),
67 element = Core.GetElement(SourceData.GetStr(1)),
68 targetElement = Core.GetElement(SourceData.GetStr(2)),
69 subFactor = SourceData.GetFloat(3),
70 targetSubFactor = SourceData.GetFloat(4),
71 baseDC = SourceData.GetInt(5),
72 critRange = SourceData.GetInt(6),
73 fumbleRange = SourceData.GetInt(7),
74 dice = SourceData.GetInt(8),
75 lvMod = SourceData.GetFloat(9)
76 };
77 }
Definition: Core.cs:14
static int GetElement(string id)
Definition: Core.cs:743
static float GetFloat(int id)
Definition: SourceData.cs:996
static string GetString(int id)
Definition: SourceData.cs:1016
static int GetInt(int id)
Definition: SourceData.cs:981
static string GetStr(int id, bool useDefault=false)
Definition: SourceData.cs:1021

References Core.GetElement(), SourceData< T, T2 >.GetFloat(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), and SourceData< T, T2 >.GetString().

◆ CreateRowByMapping()

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

Definition at line 79 of file SourceCheck.cs.

80 {
81 return new Row
82 {
83 id = SourceData.GetString(mapping["id"]),
84 element = Core.GetElement(SourceData.GetStr(mapping["element"])),
85 targetElement = Core.GetElement(SourceData.GetStr(mapping["targetElement"])),
86 subFactor = SourceData.GetFloat(mapping["subFactor"]),
87 targetSubFactor = SourceData.GetFloat(mapping["targetSubFactor"]),
88 baseDC = SourceData.GetInt(mapping["baseDC"]),
89 critRange = SourceData.GetInt(mapping["critRange"]),
90 fumbleRange = SourceData.GetInt(mapping["fumbleRange"]),
91 dice = SourceData.GetInt(mapping["dice"]),
92 lvMod = SourceData.GetFloat(mapping["lvMod"])
93 };
94 }

References Core.GetElement(), SourceData< T, T2 >.GetFloat(), SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetStr(), and SourceData< T, T2 >.GetString().

◆ GetRowMapping()

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

Definition at line 101 of file SourceCheck.cs.

102 {
103 return RowMapping;
104 }
static readonly IReadOnlyDictionary< string, int > RowMapping
Definition: SourceCheck.cs:34

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 106 of file SourceCheck.cs.

107 {
108 return TypeMapping;
109 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
Definition: SourceCheck.cs:48

References TypeMapping.

◆ SetRow()

override void SourceCheck.SetRow ( Row  r)
inline

Definition at line 96 of file SourceCheck.cs.

97 {
98 map[r.id] = r;
99 }

References SourceCheck.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceCheck.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["element"] = 1,
["targetElement"] = 2,
["subFactor"] = 3,
["targetSubFactor"] = 4,
["baseDC"] = 5,
["critRange"] = 6,
["fumbleRange"] = 7,
["dice"] = 8,
["lvMod"] = 9
}

Definition at line 34 of file SourceCheck.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceCheck.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["element"] = "element_id",
["targetElement"] = "element_id",
["subFactor"] = "float",
["targetSubFactor"] = "float",
["baseDC"] = "int",
["critRange"] = "int",
["fumbleRange"] = "int",
["dice"] = "int",
["lvMod"] = "float"
}

Definition at line 48 of file SourceCheck.cs.

Referenced by GetTypeMapping().


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