Elin Modding Docs Doc
Loading...
Searching...
No Matches
TileTypeVine.cs
1using System;
2
3// Token: 0x020006D8 RID: 1752
5{
6 // Token: 0x060032B4 RID: 12980 RVA: 0x00116D68 File Offset: 0x00114F68
7 public override int GetDesiredDir(Point p, int d)
8 {
9 if (p.cell.Back.HasFullBlockOrWallOrFence)
10 {
11 return 0;
12 }
13 if (p.cell.Left.HasFullBlockOrWallOrFence)
14 {
15 return 1;
16 }
17 if (p.cell.Front.HasFullBlockOrWallOrFence)
18 {
19 return 2;
20 }
21 if (p.cell.Right.HasFullBlockOrWallOrFence)
22 {
23 return 3;
24 }
25 return -1;
26 }
27}
Definition Point.cs:11