Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ScreenGuide Class Reference
Inheritance diagram for ScreenGuide:
EMono

Public Member Functions

void DrawLine (Vector3 from, Vector3 to)
 
void DrawFloor (Point pos, int tile)
 
void DrawBlock (Point pos, int tile)
 
void OnDrawPass ()
 
void OnEndOfFrame ()
 
void DrawWall (Point point, int color, bool useMarkerPass=false, float offsetZ=0f)
 

Public Attributes

MeshPass passGuideBlock
 
MeshPass passGuideFloor
 
MeshPass passArea
 
MeshPass passBlockMarker
 
LineRenderer lr
 
bool isActive = true
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file ScreenGuide.cs.

Member Function Documentation

◆ DrawBlock()

void ScreenGuide.DrawBlock ( Point  pos,
int  tile 
)
inline

Definition at line 29 of file ScreenGuide.cs.

30 {
31 }

◆ DrawFloor()

void ScreenGuide.DrawFloor ( Point  pos,
int  tile 
)
inline

Definition at line 25 of file ScreenGuide.cs.

26 {
27 }

◆ DrawLine()

void ScreenGuide.DrawLine ( Vector3  from,
Vector3  to 
)
inline

Definition at line 17 of file ScreenGuide.cs.

18 {
19 lr.positionCount = 2;
20 from.z = (to.z = -300f);
21 lr.SetPosition(0, from);
22 lr.SetPosition(1, to);
23 }
LineRenderer lr
Definition: ScreenGuide.cs:13

References lr.

Referenced by AM_MoveInstalled.OnRenderTile().

◆ DrawWall()

void ScreenGuide.DrawWall ( Point  point,
int  color,
bool  useMarkerPass = false,
float  offsetZ = 0f 
)
inline

Definition at line 42 of file ScreenGuide.cs.

43 {
44 int num = -1;
45 if (num != -1)
46 {
47 Vector3 vector = point.Position();
48 EMono.screen.guide.passGuideFloor.Add(vector.x, vector.y, vector.z - 0.01f);
49 }
50 SourceBlock.Row sourceBlock = point.sourceBlock;
51 RenderParam renderParam = sourceBlock.GetRenderParam(point.matBlock, point.cell.blockDir, point, num);
52 renderParam.matColor = color;
53 renderParam.z -= 0.01f;
54 if (useMarkerPass)
55 {
56 renderParam.x += sourceBlock.renderData.offset.x;
57 renderParam.y += sourceBlock.renderData.offset.y;
58 renderParam.z += sourceBlock.renderData.offset.z + offsetZ;
59 passBlockMarker.Add(renderParam);
60 }
61 else
62 {
63 sourceBlock.renderData.Draw(renderParam);
64 }
65 if (point.cell.blockDir == 2)
66 {
67 renderParam.tile *= -1f;
68 if (useMarkerPass)
69 {
70 passBlockMarker.Add(renderParam);
71 }
72 else
73 {
74 sourceBlock.renderData.Draw(renderParam);
75 }
76 }
77 }
ScreenGuide guide
int blockDir
Definition: Cell.cs:898
Definition: EMono.cs:4
static BaseGameScreen screen
Definition: EMono.cs:29
void Add(Point point, float tile=0f, float color=0f)
Definition: MeshPass.cs:122
SourceMaterial.Row matBlock
Definition: Point.cs:55
SourceBlock.Row sourceBlock
Definition: Point.cs:63
ref Vector3 Position(int height)
Definition: Point.cs:524
Cell cell
Definition: Point.cs:51
void Draw(RenderParam p, int tile)
Definition: RenderData.cs:128
Vector3 offset
Definition: RenderData.cs:18
RenderData renderData
Definition: RenderRow.cs:71
MeshPass passBlockMarker
Definition: ScreenGuide.cs:11
MeshPass passGuideFloor
Definition: ScreenGuide.cs:7
override RenderParam GetRenderParam(SourceMaterial.Row mat, int dir, Point point=null, int bridgeHeight=-1)
Definition: SourceBlock.cs:53

References MeshPass.Add(), Cell.blockDir, Point.cell, RenderData.Draw(), SourceBlock.Row.GetRenderParam(), BaseGameScreen.guide, Point.matBlock, RenderData.offset, passBlockMarker, passGuideFloor, Point.Position(), RenderRow.renderData, EMono.screen, and Point.sourceBlock.

Referenced by TaskMine.DrawMarker(), BaseTileMap.DrawTile(), ActionMode.OnRenderTile(), AM_Mine.OnRenderTile(), and AM_Picker.OnRenderTile().

◆ OnDrawPass()

void ScreenGuide.OnDrawPass ( )
inline

Definition at line 33 of file ScreenGuide.cs.

34 {
35 }

Referenced by Scene.DrawPass().

◆ OnEndOfFrame()

void ScreenGuide.OnEndOfFrame ( )
inline

Definition at line 37 of file ScreenGuide.cs.

38 {
39 lr.positionCount = 0;
40 }

Referenced by Core.OnEndOfFrame().

Member Data Documentation

◆ isActive

bool ScreenGuide.isActive = true

Definition at line 15 of file ScreenGuide.cs.

Referenced by Recipe.OnRenderMarker(), and Card.RenderMarker().

◆ lr

LineRenderer ScreenGuide.lr

Definition at line 13 of file ScreenGuide.cs.

Referenced by DrawLine().

◆ passArea

MeshPass ScreenGuide.passArea

Definition at line 9 of file ScreenGuide.cs.

Referenced by BaseTileSelector.OnUpdate().

◆ passBlockMarker

MeshPass ScreenGuide.passBlockMarker

Definition at line 11 of file ScreenGuide.cs.

Referenced by DrawWall().

◆ passGuideBlock

◆ passGuideFloor


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