Elin Modding Docs Doc
Loading...
Searching...
No Matches
ScreenGuide.cs
1using System;
2using UnityEngine;
3
4// Token: 0x020001A6 RID: 422
5public class ScreenGuide : EMono
6{
7 // Token: 0x06000C28 RID: 3112 RVA: 0x0004C750 File Offset: 0x0004A950
8 public void DrawLine(Vector3 from, Vector3 to)
9 {
10 this.lr.positionCount = 2;
11 from.z = (to.z = -300f);
12 this.lr.SetPosition(0, from);
13 this.lr.SetPosition(1, to);
14 }
15
16 // Token: 0x06000C29 RID: 3113 RVA: 0x0004C799 File Offset: 0x0004A999
17 public void DrawFloor(Point pos, int tile)
18 {
19 }
20
21 // Token: 0x06000C2A RID: 3114 RVA: 0x0004C79B File Offset: 0x0004A99B
22 public void DrawBlock(Point pos, int tile)
23 {
24 }
25
26 // Token: 0x06000C2B RID: 3115 RVA: 0x0004C79D File Offset: 0x0004A99D
27 public void OnDrawPass()
28 {
29 }
30
31 // Token: 0x06000C2C RID: 3116 RVA: 0x0004C79F File Offset: 0x0004A99F
32 public void OnEndOfFrame()
33 {
34 this.lr.positionCount = 0;
35 }
36
37 // Token: 0x06000C2D RID: 3117 RVA: 0x0004C7B0 File Offset: 0x0004A9B0
38 public unsafe void DrawWall(Point point, int color, bool useMarkerPass = false, float offsetZ = 0f)
39 {
40 int num = -1;
41 if (num != -1)
42 {
43 Vector3 vector = *point.Position();
44 EMono.screen.guide.passGuideFloor.Add(vector.x, vector.y, vector.z - 0.01f, 0f, 0f);
45 }
46 SourceBlock.Row sourceBlock = point.sourceBlock;
47 RenderParam renderParam = sourceBlock.GetRenderParam(point.matBlock, point.cell.blockDir, point, num);
48 renderParam.matColor = (float)color;
49 renderParam.z -= 0.01f;
50 if (useMarkerPass)
51 {
52 renderParam.x += sourceBlock.renderData.offset.x;
53 renderParam.y += sourceBlock.renderData.offset.y;
54 renderParam.z += sourceBlock.renderData.offset.z + offsetZ;
55 this.passBlockMarker.Add(renderParam);
56 }
57 else
58 {
59 sourceBlock.renderData.Draw(renderParam);
60 }
61 if (point.cell.blockDir == 2)
62 {
63 renderParam.tile *= -1f;
64 if (useMarkerPass)
65 {
66 this.passBlockMarker.Add(renderParam);
67 return;
68 }
69 sourceBlock.renderData.Draw(renderParam);
70 }
71 }
72
73 // Token: 0x04000B20 RID: 2848
74 public MeshPass passGuideBlock;
75
76 // Token: 0x04000B21 RID: 2849
77 public MeshPass passGuideFloor;
78
79 // Token: 0x04000B22 RID: 2850
80 public MeshPass passArea;
81
82 // Token: 0x04000B23 RID: 2851
83 public MeshPass passBlockMarker;
84
85 // Token: 0x04000B24 RID: 2852
86 public LineRenderer lr;
87
88 // Token: 0x04000B25 RID: 2853
89 public bool isActive = true;
90}
Definition EMono.cs:6
Definition Point.cs:11