Elin Decompiled Documentation EA 23.315 Nightly
Loading...
Searching...
No Matches
LangGeneral Class Reference
Inheritance diagram for LangGeneral:
SourceLang< LangGeneral.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 SourceLang< LangGeneral.Row >
override T GetRow (string id)
 
string Get (string id)
 
string TryGetId (string id, string id2)
 
string Parse (string idLang, string val1, string val2=null, string val3=null, string val4=null)
 

Static Public Attributes

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

Additional Inherited Members

- Properties inherited from SourceLang< LangGeneral.Row >
override bool AllowHotInitialization [get]
 

Detailed Description

Definition at line 4 of file LangGeneral.cs.

Member Function Documentation

◆ CreateRow()

override Row LangGeneral.CreateRow ( )
inline

Definition at line 32 of file LangGeneral.cs.

33 {
34 return new Row
35 {
36 id = SourceData.GetString(0),
37 filter = SourceData.GetString(1),
38 text_JP = SourceData.GetString(2),
39 text = SourceData.GetString(3)
40 };
41 }
static string GetString(int id)
Definition: SourceData.cs:1016

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

◆ CreateRowByMapping()

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

Definition at line 43 of file LangGeneral.cs.

44 {
45 return new Row
46 {
47 id = SourceData.GetString(mapping["id"]),
48 filter = SourceData.GetString(mapping["filter"]),
49 text_JP = SourceData.GetString(mapping["text_JP"]),
50 text = SourceData.GetString(mapping["text"])
51 };
52 }

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

◆ GetRowMapping()

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

Definition at line 59 of file LangGeneral.cs.

60 {
61 return RowMapping;
62 }
static readonly IReadOnlyDictionary< string, int > RowMapping
Definition: LangGeneral.cs:16

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 64 of file LangGeneral.cs.

65 {
66 return TypeMapping;
67 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
Definition: LangGeneral.cs:24

References TypeMapping.

◆ SetRow()

override void LangGeneral.SetRow ( Row  r)
inline

Definition at line 54 of file LangGeneral.cs.

55 {
56 map[r.id] = r;
57 }

References LangRow.id.

Member Data Documentation

◆ RowMapping

readonly IReadOnlyDictionary<string, int> LangGeneral.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["filter"] = 1,
["text_JP"] = 2,
["text"] = 3
}

Definition at line 16 of file LangGeneral.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> LangGeneral.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "str",
["filter"] = "str",
["text_JP"] = "str",
["text"] = "str"
}

Definition at line 24 of file LangGeneral.cs.

Referenced by GetTypeMapping().


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