Elin Decompiled Documentation EA 23.350.1 Nightly
Loading...
Searching...
No Matches
TileTypeVine.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public override bool CanStack => true;
6
7 public override bool IsBlockMount => true;
8
9 public override bool UseMountHeight => true;
10
11 public override bool UseHangZFix => true;
12
13 public override int GetDesiredDir(Point p, int d)
14 {
16 {
17 return 0;
18 }
20 {
21 return 1;
22 }
24 {
25 return 2;
26 }
28 {
29 return 3;
30 }
31 return -1;
32 }
33
34 public override void GetMountHeight(ref Vector3 v, Point p, int d, Card target = null)
35 {
36 Point.shared2.Set(p.x, p.z);
37 Vector3 vector = Point.shared2.Position();
38 v.x = vector.x;
39 v.y = vector.y + Point.shared2.sourceBlock.tileType.MountHeight;
40 v.z = vector.z;
41 v += EClass.screen.tileMap.altitudeFix * target.altitude;
42 if (target != null)
43 {
44 v.z += target.Pref.z;
45 }
46 }
47}
Definition: Card.cs:11
Cell Back
Definition: Cell.cs:175
Cell Front
Definition: Cell.cs:151
Cell Left
Definition: Cell.cs:187
Cell Right
Definition: Cell.cs:163
bool HasFullBlockOrWallOrFence
Definition: Cell.cs:856
Definition: Point.cs:9
SourceBlock.Row sourceBlock
Definition: Point.cs:63
ref Vector3 Position(int height)
Definition: Point.cs:553
static Point shared2
Definition: Point.cs:22
Point Set(int _x, int _z)
Definition: Point.cs:503
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
Cell cell
Definition: Point.cs:51
override void GetMountHeight(ref Vector3 v, Point p, int d, Card target=null)
Definition: TileTypeVine.cs:34
override bool UseHangZFix
Definition: TileTypeVine.cs:11
override bool IsBlockMount
Definition: TileTypeVine.cs:7
override bool CanStack
Definition: TileTypeVine.cs:5
override int GetDesiredDir(Point p, int d)
Definition: TileTypeVine.cs:13
override bool UseMountHeight
Definition: TileTypeVine.cs:9