Elin Decompiled Documentation EA 23.309 Nightly Patch 1
Loading...
Searching...
No Matches
SourceCellEffect Class Reference
Inheritance diagram for SourceCellEffect:
SourceDataInt< SourceCellEffect.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 ()
 
override void OnAfterImportData ()
 
override void OnInit ()
 
- Public Member Functions inherited from SourceDataInt< SourceCellEffect.Row >
override T GetRow (string id)
 

Static Public Attributes

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

Detailed Description

Definition at line 4 of file SourceCellEffect.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceCellEffect.CreateRow ( )
inline

Definition at line 73 of file SourceCellEffect.cs.

74 {
75 return new Row
76 {
77 id = SourceData.GetInt(0),
78 alias = SourceData.GetString(1),
79 name_JP = SourceData.GetString(2),
80 name = SourceData.GetString(3),
81 sort = SourceData.GetInt(4),
82 _tileType = SourceData.GetString(5),
83 _idRenderData = SourceData.GetString(6),
84 tiles = SourceData.GetIntArray(7),
85 anime = SourceData.GetIntArray(8),
86 colorMod = SourceData.GetInt(9),
87 value = SourceData.GetInt(10),
88 recipeKey = SourceData.GetStringArray(11),
89 factory = SourceData.GetStringArray(12),
90 components = SourceData.GetStringArray(13),
91 defMat = SourceData.GetString(14),
92 category = SourceData.GetString(15),
93 tag = SourceData.GetStringArray(16),
94 detail_JP = SourceData.GetString(17),
95 detail = SourceData.GetString(18)
96 };
97 }
static string[] GetStringArray(int id)
Definition: SourceData.cs:983
static string GetString(int id)
Definition: SourceData.cs:988
static int GetInt(int id)
Definition: SourceData.cs:953
static int[] GetIntArray(int id)
Definition: SourceData.cs:978

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

◆ CreateRowByMapping()

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

Definition at line 99 of file SourceCellEffect.cs.

100 {
101 return new Row
102 {
103 id = SourceData.GetInt(mapping["id"]),
104 alias = SourceData.GetString(mapping["alias"]),
105 name_JP = SourceData.GetString(mapping["name_JP"]),
106 name = SourceData.GetString(mapping["name"]),
107 sort = SourceData.GetInt(mapping["sort"]),
108 _tileType = SourceData.GetString(mapping["_tileType"]),
109 _idRenderData = SourceData.GetString(mapping["_idRenderData"]),
110 tiles = SourceData.GetIntArray(mapping["tiles"]),
111 anime = SourceData.GetIntArray(mapping["anime"]),
112 colorMod = SourceData.GetInt(mapping["colorMod"]),
113 value = SourceData.GetInt(mapping["value"]),
114 recipeKey = SourceData.GetStringArray(mapping["recipeKey"]),
115 factory = SourceData.GetStringArray(mapping["factory"]),
116 components = SourceData.GetStringArray(mapping["components"]),
117 defMat = SourceData.GetString(mapping["defMat"]),
118 category = SourceData.GetString(mapping["category"]),
119 tag = SourceData.GetStringArray(mapping["tag"]),
120 detail_JP = SourceData.GetString(mapping["detail_JP"]),
121 detail = SourceData.GetString(mapping["detail"])
122 };
123 }

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

◆ GetRowMapping()

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

Definition at line 130 of file SourceCellEffect.cs.

131 {
132 return RowMapping;
133 }
static readonly IReadOnlyDictionary< string, int > RowMapping

References RowMapping.

◆ GetTypeMapping()

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

Definition at line 135 of file SourceCellEffect.cs.

136 {
137 return TypeMapping;
138 }
static readonly IReadOnlyDictionary< string, string > TypeMapping

References TypeMapping.

◆ OnAfterImportData()

override void SourceCellEffect.OnAfterImportData ( )
inline

Definition at line 140 of file SourceCellEffect.cs.

141 {
142 int num = 0;
143 foreach (Row row in rows)
144 {
145 if (row.sort != 0)
146 {
147 num = row.sort;
148 }
149 row.sort = num;
150 num++;
151 }
152 rows.Sort((Row a, Row b) => a.id - b.id);
153 }

References TileRow.id, and RenderRow.sort.

◆ OnInit()

override void SourceCellEffect.OnInit ( )
inline

Definition at line 155 of file SourceCellEffect.cs.

156 {
157 FallbackRenderData = ResourceCache.Load<RenderData>("Scene/Render/Data/liquid");
158 Cell.effectList = rows;
159 foreach (Row row in rows)
160 {
161 row.Init();
162 }
163 }
void Init()
Definition: RenderData.cs:95
static RenderData FallbackRenderData

References FallbackRenderData, and TileRow.Init().

◆ SetRow()

override void SourceCellEffect.SetRow ( Row  r)
inline

Definition at line 125 of file SourceCellEffect.cs.

126 {
127 map[r.id] = r;
128 }

References TileRow.id.

Member Data Documentation

◆ FallbackRenderData

RenderData SourceCellEffect.FallbackRenderData
static

Definition at line 71 of file SourceCellEffect.cs.

Referenced by OnInit().

◆ RowMapping

readonly IReadOnlyDictionary<string, int> SourceCellEffect.RowMapping
static
Initial value:
= new Dictionary<string, int>
{
["id"] = 0,
["alias"] = 1,
["name_JP"] = 2,
["name"] = 3,
["sort"] = 4,
["_tileType"] = 5,
["_idRenderData"] = 6,
["tiles"] = 7,
["anime"] = 8,
["colorMod"] = 9,
["value"] = 10,
["recipeKey"] = 11,
["factory"] = 12,
["components"] = 13,
["defMat"] = 14,
["category"] = 15,
["tag"] = 16,
["detail_JP"] = 17,
["detail"] = 18
}

Definition at line 25 of file SourceCellEffect.cs.

Referenced by GetRowMapping().

◆ TypeMapping

readonly IReadOnlyDictionary<string, string> SourceCellEffect.TypeMapping
static
Initial value:
= new Dictionary<string, string>
{
["id"] = "int",
["alias"] = "string",
["name_JP"] = "string",
["name"] = "string",
["sort"] = "int",
["_tileType"] = "string",
["_idRenderData"] = "string",
["tiles"] = "int[]",
["anime"] = "int[]",
["colorMod"] = "int",
["value"] = "int",
["recipeKey"] = "string[]",
["factory"] = "string[]",
["components"] = "string[]",
["defMat"] = "string",
["category"] = "string",
["tag"] = "string[]",
["detail_JP"] = "string",
["detail"] = "string"
}

Definition at line 48 of file SourceCellEffect.cs.

Referenced by GetTypeMapping().


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