Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceCellEffect Class Reference
Inheritance diagram for SourceCellEffect:
SourceDataInt< SourceCellEffect.Row >

Classes

class  Row
 

Public Member Functions

override Row CreateRow ()
 
override void SetRow (Row r)
 
override void OnAfterImportData ()
 
override void OnInit ()
 
- Public Member Functions inherited from SourceDataInt< SourceCellEffect.Row >
override T GetRow (string id)
 

Static Public Attributes

static RenderData FallbackRenderData
 

Detailed Description

Definition at line 3 of file SourceCellEffect.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceCellEffect.CreateRow ( )
inline

Definition at line 26 of file SourceCellEffect.cs.

27 {
28 return new Row
29 {
30 id = SourceData.GetInt(0),
31 alias = SourceData.GetString(1),
32 name_JP = SourceData.GetString(2),
33 name = SourceData.GetString(3),
34 sort = SourceData.GetInt(4),
35 _tileType = SourceData.GetString(5),
36 _idRenderData = SourceData.GetString(6),
37 tiles = SourceData.GetIntArray(7),
38 anime = SourceData.GetIntArray(8),
39 colorMod = SourceData.GetInt(9),
40 value = SourceData.GetInt(10),
41 recipeKey = SourceData.GetStringArray(11),
42 factory = SourceData.GetStringArray(12),
43 components = SourceData.GetStringArray(13),
44 defMat = SourceData.GetString(14),
45 category = SourceData.GetString(15),
46 tag = SourceData.GetStringArray(16),
47 detail_JP = SourceData.GetString(17),
48 detail = SourceData.GetString(18)
49 };
50 }
static string[] GetStringArray(int id)
Definition: SourceData.cs:741
static string GetString(int id)
Definition: SourceData.cs:746
static int GetInt(int id)
Definition: SourceData.cs:711
static int[] GetIntArray(int id)
Definition: SourceData.cs:736

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

◆ OnAfterImportData()

override void SourceCellEffect.OnAfterImportData ( )
inline

Definition at line 57 of file SourceCellEffect.cs.

58 {
59 int num = 0;
60 foreach (Row row in rows)
61 {
62 if (row.sort != 0)
63 {
64 num = row.sort;
65 }
66 row.sort = num;
67 num++;
68 }
69 rows.Sort((Row a, Row b) => a.id - b.id);
70 }

References TileRow.id, and RenderRow.sort.

◆ OnInit()

override void SourceCellEffect.OnInit ( )
inline

Definition at line 72 of file SourceCellEffect.cs.

73 {
74 FallbackRenderData = ResourceCache.Load<RenderData>("Scene/Render/Data/liquid");
75 Cell.effectList = rows;
76 foreach (Row row in rows)
77 {
78 row.Init();
79 }
80 }
void Init()
Definition: RenderData.cs:94
static RenderData FallbackRenderData

References FallbackRenderData, and TileRow.Init().

◆ SetRow()

override void SourceCellEffect.SetRow ( Row  r)
inline

Definition at line 52 of file SourceCellEffect.cs.

53 {
54 map[r.id] = r;
55 }

References TileRow.id.

Member Data Documentation

◆ FallbackRenderData

RenderData SourceCellEffect.FallbackRenderData
static

Definition at line 24 of file SourceCellEffect.cs.

Referenced by OnInit().


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