Elin Modding Docs Doc
Loading...
Searching...
No Matches
SourceCellEffect.cs
1using System;
2
3// Token: 0x02000014 RID: 20
4public class SourceCellEffect : SourceDataInt<SourceCellEffect.Row>
5{
6 // Token: 0x060000E8 RID: 232 RVA: 0x00009A38 File Offset: 0x00007C38
7 public override SourceCellEffect.Row CreateRow()
8 {
9 return new SourceCellEffect.Row
10 {
11 id = SourceData.GetInt(0),
12 alias = SourceData.GetString(1),
13 name_JP = SourceData.GetString(2),
14 name = SourceData.GetString(3),
15 sort = SourceData.GetInt(4),
16 _tileType = SourceData.GetString(5),
17 _idRenderData = SourceData.GetString(6),
18 tiles = SourceData.GetIntArray(7),
19 anime = SourceData.GetIntArray(8),
20 colorMod = SourceData.GetInt(9),
21 value = SourceData.GetInt(10),
22 recipeKey = SourceData.GetStringArray(11),
23 factory = SourceData.GetStringArray(12),
24 components = SourceData.GetStringArray(13),
25 defMat = SourceData.GetString(14),
26 category = SourceData.GetString(15),
27 tag = SourceData.GetStringArray(16),
28 detail_JP = SourceData.GetString(17),
29 detail = SourceData.GetString(18)
30 };
31 }
32
33 // Token: 0x060000E9 RID: 233 RVA: 0x00009B38 File Offset: 0x00007D38
34 public override void SetRow(SourceCellEffect.Row r)
35 {
36 this.map[r.id] = r;
37 }
38
39 // Token: 0x060000EA RID: 234 RVA: 0x00009B4C File Offset: 0x00007D4C
40 public override void OnAfterImportData()
41 {
42 int num = 0;
43 foreach (SourceCellEffect.Row row in this.rows)
44 {
45 if (row.sort != 0)
46 {
47 num = row.sort;
48 }
49 row.sort = num;
50 num++;
51 }
52 this.rows.Sort((SourceCellEffect.Row a, SourceCellEffect.Row b) => a.id - b.id);
53 }
54
55 // Token: 0x060000EB RID: 235 RVA: 0x00009BE0 File Offset: 0x00007DE0
56 public override void OnInit()
57 {
58 SourceCellEffect.FallbackRenderData = ResourceCache.Load<RenderData>("Scene/Render/Data/liquid");
59 Cell.effectList = this.rows;
60 foreach (SourceCellEffect.Row row in this.rows)
61 {
62 row.Init();
63 }
64 }
65
66 // Token: 0x040000D2 RID: 210
67 public static RenderData FallbackRenderData;
68
69 // Token: 0x02000794 RID: 1940
70 [Serializable]
71 public class Row : TileRow
72 {
73 // Token: 0x170010C7 RID: 4295
74 // (get) Token: 0x06003712 RID: 14098 RVA: 0x0012A338 File Offset: 0x00128538
75 public override bool UseAlias
76 {
77 get
78 {
79 return true;
80 }
81 }
82
83 // Token: 0x170010C8 RID: 4296
84 // (get) Token: 0x06003713 RID: 14099 RVA: 0x0012A33B File Offset: 0x0012853B
85 public override string GetAlias
86 {
87 get
88 {
89 return this.alias;
90 }
91 }
92
93 // Token: 0x170010C9 RID: 4297
94 // (get) Token: 0x06003714 RID: 14100 RVA: 0x0012A343 File Offset: 0x00128543
95 public override string RecipeID
96 {
97 get
98 {
99 return "l" + this.id.ToString();
100 }
101 }
102
103 // Token: 0x170010CA RID: 4298
104 // (get) Token: 0x06003715 RID: 14101 RVA: 0x0012A35A File Offset: 0x0012855A
105 public override RenderData defaultRenderData
106 {
107 get
108 {
109 return SourceCellEffect.FallbackRenderData;
110 }
111 }
112
113 // Token: 0x06003716 RID: 14102 RVA: 0x0012A361 File Offset: 0x00128561
114 public override int GetTile(SourceMaterial.Row mat, int dir = 0)
115 {
116 return this._tiles[0] + 3;
117 }
118
119 // Token: 0x04001F25 RID: 7973
120 public int[] anime;
121 }
122}