Elin Decompiled Documentation EA 23.351.2 Nightly
Loading...
Searching...
No Matches
RecipeBridgePillar.cs
Go to the documentation of this file.
2{
4
5 public override bool IsBlock => false;
6
7 public override bool RequireIngredients => false;
8
9 public override void Build(Chara chara, Card t, Point pos, int mat, int dir, int altitude, int bridgeHeight)
10 {
11 if (!pos.cell.hidePillar && pos.cell.bridgePillar == tileRow.id)
12 {
13 pos.cell.bridgePillar = 0;
14 pos.cell.hidePillar = true;
15 }
16 else
17 {
18 pos.cell.bridgePillar = tileRow.id;
19 pos.cell.hidePillar = false;
20 }
21 }
22
23 public override Recipe Duplicate()
24 {
25 return IO.DeepCopy(this);
26 }
27}
Definition: Card.cs:11
int bridgePillar
Definition: Cell.cs:74
bool hidePillar
Definition: Cell.cs:654
Definition: Chara.cs:10
Definition: IO.cs:10
Definition: Point.cs:9
Cell cell
Definition: Point.cs:51
override bool RequireIngredients
override bool IsBlock
override Recipe Duplicate()
override TileType tileType
override void Build(Chara chara, Card t, Point pos, int mat, int dir, int altitude, int bridgeHeight)
Definition: Recipe.cs:7
virtual TileRow tileRow
Definition: Recipe.cs:208
int id
Definition: TileRow.cs:9
static TileTypeBridgePillar BridgePillar
Definition: TileType.cs:73