Elin Modding Docs Doc
Loading...
Searching...
No Matches
RenderDataLiquid.cs
1using System;
2
3// Token: 0x0200019D RID: 413
5{
6 // Token: 0x06000BE6 RID: 3046 RVA: 0x0004943C File Offset: 0x0004763C
7 public override void Draw(RenderParam p)
8 {
9 MeshBatch meshBatch = this.pass.batches[this.pass.batchIdx];
10 meshBatch.matrices[this.pass.idx].m03 = p.x + this.offset.x;
11 meshBatch.matrices[this.pass.idx].m13 = p.y + this.offset.y;
12 meshBatch.matrices[this.pass.idx].m23 = p.z + ((this.effectType == RenderDataLiquid.EffectType.Liquid && p.liquidLv <= 10) ? this.puddleZ : this.offset.z);
13 meshBatch.tiles[this.pass.idx] = p.tile;
14 meshBatch.colors[this.pass.idx] = p.color;
15 meshBatch.matColors[this.pass.idx] = p.matColor;
16 this.pass.idx++;
17 if (this.pass.idx == this.pass.batchSize)
18 {
19 this.pass.NextBatch();
20 }
21 }
22
23 // Token: 0x06000BE7 RID: 3047 RVA: 0x00049582 File Offset: 0x00047782
24 private void OnValidate()
25 {
26 this._offset = this.offset;
27 }
28
29 // Token: 0x04000ADC RID: 2780
30 public RenderDataLiquid.EffectType effectType;
31
32 // Token: 0x04000ADD RID: 2781
33 public float puddleZ;
34
35 // Token: 0x0200088A RID: 2186
36 public enum EffectType
37 {
38 // Token: 0x0400247F RID: 9343
39 Liquid,
40 // Token: 0x04002480 RID: 9344
41 Bubble
42 }
43}