Elin Decompiled Documentation EA 23.102 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.bridgePillar == tileRow.id)
12 {
13 pos.cell.bridgePillar = byte.MaxValue;
14 }
15 else
16 {
17 pos.cell.bridgePillar = (byte)tileRow.id;
18 }
19 }
20
21 public override Recipe Duplicate()
22 {
23 return IO.DeepCopy(this);
24 }
25}
Definition: Card.cs:11
byte bridgePillar
Definition: Cell.cs:82
Definition: Chara.cs:10
Definition: IO.cs:11
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:191
int id
Definition: TileRow.cs:8
static TileTypeBridgePillar BridgePillar
Definition: TileType.cs:65