Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitRoadSign.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class TraitRoadSign : Trait
4{
5 public override bool CanBeMasked => true;
6
7 public override void OnRenderTile(Point point, HitResult result, int dir)
8 {
9 int num = ((dir == -1) ? owner.dir : dir);
10 Cell cell = point.cell;
11 Vector3 vector = (num switch
12 {
13 2 => cell.Back,
14 1 => cell.Right,
15 0 => cell.Front,
16 _ => cell.Left,
17 }).GetPoint().Position();
18 EClass.screen.guide.passGuideFloor.Add(vector.x, vector.y, vector.z, 10f, 0.3f);
19 }
20}
HitResult
Definition: HitResult.cs:2
ScreenGuide guide
int dir
Definition: Card.cs:142
Definition: Cell.cs:7
Cell Back
Definition: Cell.cs:153
Cell Front
Definition: Cell.cs:129
Cell Left
Definition: Cell.cs:165
Cell Right
Definition: Cell.cs:141
Definition: EClass.cs:5
static BaseGameScreen screen
Definition: EClass.cs:32
void Add(Point point, float tile=0f, float color=0f)
Definition: MeshPass.cs:122
Definition: Point.cs:9
ref Vector3 Position(int height)
Definition: Point.cs:524
Cell cell
Definition: Point.cs:51
MeshPass passGuideFloor
Definition: ScreenGuide.cs:7
override bool CanBeMasked
Definition: TraitRoadSign.cs:5
override void OnRenderTile(Point point, HitResult result, int dir)
Definition: TraitRoadSign.cs:7
Definition: Trait.cs:7
Point GetPoint()
Definition: Trait.cs:684
Card owner
Definition: Trait.cs:26