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

Member Function Documentation

◆ CreateRow()

override Row SourceCalc.CreateRow ( )
inline

Definition at line 38 of file SourceCalc.cs.

39 {
40 return new Row
41 {
42 id = SourceData.GetString(0),
43 num = SourceData.GetString(2),
44 sides = SourceData.GetString(3),
45 bonus = SourceData.GetString(4)
46 };
47 }
static string GetString(int id)
Definition: SourceData.cs:1016

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

◆ CreateRowByMapping()

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

Definition at line 49 of file SourceCalc.cs.

50 {
51 return new Row
52 {
53 id = SourceData.GetString(mapping["id"]),
54 num = SourceData.GetString(mapping["num"]),
55 sides = SourceData.GetString(mapping["sides"]),
56 bonus = SourceData.GetString(mapping["bonus"])
57 };
58 }

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

◆ GetRowMapping()

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

Definition at line 65 of file SourceCalc.cs.

66 {
67 return RowMapping;
68 }
static readonly IReadOnlyDictionary< string, int > RowMapping
Definition: SourceCalc.cs:22

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 70 of file SourceCalc.cs.

71 {
72 return TypeMapping;
73 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
Definition: SourceCalc.cs:30

References TypeMapping.

◆ SetRow()

override void SourceCalc.SetRow ( Row  r)
inline

Definition at line 60 of file SourceCalc.cs.

61 {
62 map[r.id] = r;
63 }

References SourceCalc.Row.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceCalc.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["num"] = 2,
["sides"] = 3,
["bonus"] = 4
}

Definition at line 22 of file SourceCalc.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceCalc.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "string",
["num"] = "string",
["sides"] = "string",
["bonus"] = "string"
}

Definition at line 30 of file SourceCalc.cs.

Referenced by GetTypeMapping().


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