Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TileTypeWallMount.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public override string LangPlaceType => "place_WallMount";
6
7 public override bool CanStack => false;
8
9 public override bool IsSkipLowBlock => true;
10
11 public override bool IsBlockMount => true;
12
13 public override bool CanBuiltOnBlock => true;
14
15 protected override HitResult HitTest(Point pos)
16 {
17 if (pos.sourceBlock.tileType.MountHeight == 0f)
18 {
19 return HitResult.Default;
20 }
21 if (pos.HasObj)
22 {
23 return HitResult.Invalid;
24 }
25 return HitResult.Valid;
26 }
27
28 public override void GetMountHeight(ref Vector3 v, Point p, int d, Card target = null)
29 {
30 v.y += p.sourceBlock.tileType.MountHeight;
31 }
32}
HitResult
Definition: HitResult.cs:2
Definition: Card.cs:11
Definition: Point.cs:9
SourceBlock.Row sourceBlock
Definition: Point.cs:63
bool HasObj
Definition: Point.cs:137
override bool IsBlockMount
override bool CanStack
override string LangPlaceType
override HitResult HitTest(Point pos)
override bool CanBuiltOnBlock
override bool IsSkipLowBlock
override void GetMountHeight(ref Vector3 v, Point p, int d, Card target=null)